]>
Commit | Line | Data |
---|---|---|
03385ed3 | 1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
f00f02a3 | 3 | # Generated by GNU Autoconf 2.69 for package-unused version-unused. |
4 | # | |
5 | # | |
e06fcd5a | 6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
03385ed3 | 7 | # |
03385ed3 | 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. | |
f00f02a3 | 90 | as_myself= |
03385ed3 | 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 | ||
f00f02a3 | 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;} | |
03385ed3 | 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 | |
f00f02a3 | 193 | test x\$exitcode = x0 || exit 1 |
194 | test -x / || exit 1" | |
03385ed3 | 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 | |
79c21307 | 199 | test \$(( 1 + 1 )) = 2 || exit 1 |
03385ed3 | 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\" \\ | |
79c21307 | 207 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" |
03385ed3 | 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 : | |
f00f02a3 | 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 | |
03385ed3 | 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" | |
f00f02a3 | 363 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
03385ed3 | 364 | |
365 | ||
366 | } # as_fn_mkdir_p | |
f00f02a3 | 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 | |
03385ed3 | 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 | ||
f00f02a3 | 411 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
412 | # ---------------------------------------- | |
03385ed3 | 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 | |
f00f02a3 | 415 | # script with STATUS, using 1 if that was 0. |
03385ed3 | 416 | as_fn_error () |
417 | { | |
f00f02a3 | 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 | |
03385ed3 | 422 | fi |
f00f02a3 | 423 | $as_echo "$as_me: error: $2" >&2 |
03385ed3 | 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 | ||
f00f02a3 | 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 | |
03385ed3 | 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. | |
f00f02a3 | 534 | # In both cases, we have to default to `cp -pR'. |
03385ed3 | 535 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
f00f02a3 | 536 | as_ln_s='cp -pR' |
03385ed3 | 537 | elif ln conf$$.file conf$$ 2>/dev/null; then |
538 | as_ln_s=ln | |
539 | else | |
f00f02a3 | 540 | as_ln_s='cp -pR' |
03385ed3 | 541 | fi |
542 | else | |
f00f02a3 | 543 | as_ln_s='cp -pR' |
03385ed3 | 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 | ||
f00f02a3 | 555 | as_test_x='test -x' |
556 | as_executable_p=as_fn_executable_p | |
03385ed3 | 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 | ||
f00f02a3 | 567 | test -n "$DJDIR" || exec 7<&0 </dev/null |
568 | exec 6>&1 | |
03385ed3 | 569 | |
570 | # Name of the host. | |
f00f02a3 | 571 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
03385ed3 | 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 | |
636 | GDCFLAGSX | |
345422ff | 637 | libtool_VERSION |
03385ed3 | 638 | SPEC_PHOBOS_DEPS |
639 | gdc_include_dir | |
5114391d | 640 | libphobos_toolexeclibdir |
641 | libphobos_toolexecdir | |
03385ed3 | 642 | gcc_version |
e60a24bd | 643 | LIBZ |
03385ed3 | 644 | BACKTRACE_SUPPORTS_THREADS |
645 | BACKTRACE_USES_MALLOC | |
646 | BACKTRACE_SUPPORTED | |
647 | LIBBACKTRACE | |
648 | LIBATOMIC | |
649 | DCFG_HAVE_LIBATOMIC | |
650 | DCFG_HAVE_64BIT_ATOMICS | |
651 | DCFG_HAVE_ATOMIC_BUILTINS | |
f667f7c1 | 652 | DCFG_HAVE_QSORT_R |
5b79027a | 653 | OS_LINK_SPEC |
79c21307 | 654 | DCFG_DLPI_TLS_MODID |
e06fcd5a | 655 | DRUNTIME_OS_MINFO_BRACKETING_FALSE |
656 | DRUNTIME_OS_MINFO_BRACKETING_TRUE | |
03385ed3 | 657 | DCFG_MINFO_BRACKETING |
658 | DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE | |
659 | DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE | |
660 | DCFG_ARM_EABI_UNWINDER | |
661 | DCFG_THREAD_MODEL | |
662 | DRUNTIME_OS_SOLARIS_FALSE | |
663 | DRUNTIME_OS_SOLARIS_TRUE | |
664 | DRUNTIME_OS_MINGW_FALSE | |
665 | DRUNTIME_OS_MINGW_TRUE | |
666 | DRUNTIME_OS_LINUX_FALSE | |
667 | DRUNTIME_OS_LINUX_TRUE | |
668 | DRUNTIME_OS_OPENBSD_FALSE | |
669 | DRUNTIME_OS_OPENBSD_TRUE | |
670 | DRUNTIME_OS_NETBSD_FALSE | |
671 | DRUNTIME_OS_NETBSD_TRUE | |
672 | DRUNTIME_OS_FREEBSD_FALSE | |
673 | DRUNTIME_OS_FREEBSD_TRUE | |
674 | DRUNTIME_OS_DRAGONFLYBSD_FALSE | |
675 | DRUNTIME_OS_DRAGONFLYBSD_TRUE | |
676 | DRUNTIME_OS_DARWIN_FALSE | |
677 | DRUNTIME_OS_DARWIN_TRUE | |
678 | DRUNTIME_OS_ANDROID_FALSE | |
679 | DRUNTIME_OS_ANDROID_TRUE | |
680 | DRUNTIME_OS_AIX_FALSE | |
681 | DRUNTIME_OS_AIX_TRUE | |
682 | DRUNTIME_OS_UNIX_FALSE | |
683 | DRUNTIME_OS_UNIX_TRUE | |
684 | DRUNTIME_GC_ENABLE_FALSE | |
685 | DRUNTIME_GC_ENABLE_TRUE | |
686 | libphobos_srcdir | |
687 | libphobos_builddir | |
688 | get_gcc_base_ver | |
20abc61c | 689 | ENABLE_LIBPHOBOS_FALSE |
690 | ENABLE_LIBPHOBOS_TRUE | |
03385ed3 | 691 | phobos_compiler_shared_flag |
692 | phobos_compiler_pic_flag | |
03385ed3 | 693 | OTOOL64 |
694 | OTOOL | |
695 | LIPO | |
696 | NMEDIT | |
697 | DSYMUTIL | |
698 | OBJDUMP | |
699 | LN_S | |
700 | NM | |
701 | ac_ct_DUMPBIN | |
702 | DUMPBIN | |
703 | LD | |
704 | FGREP | |
03385ed3 | 705 | SED |
706 | LIBTOOL | |
707 | CFLAGS_FOR_BUILD | |
708 | CC_FOR_BUILD | |
709 | AR | |
710 | RANLIB | |
711 | MAINT | |
712 | MAINTAINER_MODE_FALSE | |
713 | MAINTAINER_MODE_TRUE | |
714 | GDCFLAGS | |
715 | GDC | |
716 | CCASFLAGS | |
717 | CCAS | |
f00f02a3 | 718 | AM_BACKSLASH |
719 | AM_DEFAULT_VERBOSITY | |
720 | AM_DEFAULT_V | |
721 | AM_V | |
03385ed3 | 722 | am__untar |
723 | am__tar | |
724 | AMTAR | |
725 | am__leading_dot | |
726 | SET_MAKE | |
727 | AWK | |
728 | mkdir_p | |
729 | MKDIR_P | |
730 | INSTALL_STRIP_PROGRAM | |
731 | STRIP | |
732 | install_sh | |
733 | MAKEINFO | |
734 | AUTOHEADER | |
735 | AUTOMAKE | |
736 | AUTOCONF | |
737 | ACLOCAL | |
738 | VERSION | |
739 | PACKAGE | |
740 | CYGPATH_W | |
741 | am__isrc | |
742 | INSTALL_DATA | |
743 | INSTALL_SCRIPT | |
744 | INSTALL_PROGRAM | |
79c21307 | 745 | EGREP |
746 | GREP | |
747 | CPP | |
748 | OBJEXT | |
749 | EXEEXT | |
750 | ac_ct_CC | |
751 | CPPFLAGS | |
752 | LDFLAGS | |
753 | CFLAGS | |
754 | CC | |
03385ed3 | 755 | target_os |
756 | target_vendor | |
757 | target_cpu | |
758 | target | |
759 | host_os | |
760 | host_vendor | |
761 | host_cpu | |
762 | host | |
763 | build_os | |
764 | build_vendor | |
765 | build_cpu | |
766 | build | |
767 | multi_basedir | |
768 | target_alias | |
769 | host_alias | |
770 | build_alias | |
771 | LIBS | |
772 | ECHO_T | |
773 | ECHO_N | |
774 | ECHO_C | |
775 | DEFS | |
776 | mandir | |
777 | localedir | |
778 | libdir | |
779 | psdir | |
780 | pdfdir | |
781 | dvidir | |
782 | htmldir | |
783 | infodir | |
784 | docdir | |
785 | oldincludedir | |
786 | includedir | |
787 | localstatedir | |
788 | sharedstatedir | |
789 | sysconfdir | |
790 | datadir | |
791 | datarootdir | |
792 | libexecdir | |
793 | sbindir | |
794 | bindir | |
795 | program_transform_name | |
796 | prefix | |
797 | exec_prefix | |
798 | PACKAGE_URL | |
799 | PACKAGE_BUGREPORT | |
800 | PACKAGE_STRING | |
801 | PACKAGE_VERSION | |
802 | PACKAGE_TARNAME | |
803 | PACKAGE_NAME | |
804 | PATH_SEPARATOR | |
805 | SHELL' | |
e06fcd5a | 806 | ac_subst_files='DRTSTUFF_SPEC' |
03385ed3 | 807 | ac_user_opts=' |
808 | enable_option_checking | |
809 | enable_multilib | |
f00f02a3 | 810 | enable_silent_rules |
03385ed3 | 811 | enable_maintainer_mode |
812 | enable_shared | |
813 | enable_static | |
814 | with_pic | |
815 | enable_fast_install | |
816 | with_gnu_ld | |
817 | enable_libtool_lock | |
20abc61c | 818 | enable_libphobos |
03385ed3 | 819 | with_gcc_major_version_only |
820 | enable_werror | |
821 | enable_druntime_gc | |
822 | enable_unix | |
823 | enable_thread_lib | |
824 | with_libatomic | |
825 | with_libbacktrace | |
826 | with_target_system_zlib | |
827 | with_cross_host | |
5114391d | 828 | enable_version_specific_runtime_libs |
03385ed3 | 829 | ' |
830 | ac_precious_vars='build_alias | |
831 | host_alias | |
832 | target_alias | |
79c21307 | 833 | CC |
834 | CFLAGS | |
835 | LDFLAGS | |
836 | LIBS | |
837 | CPPFLAGS | |
838 | CPP' | |
03385ed3 | 839 | |
840 | ||
841 | # Initialize some variables set by options. | |
842 | ac_init_help= | |
843 | ac_init_version=false | |
844 | ac_unrecognized_opts= | |
845 | ac_unrecognized_sep= | |
846 | # The variables have the same names as the options, with | |
847 | # dashes changed to underlines. | |
848 | cache_file=/dev/null | |
849 | exec_prefix=NONE | |
850 | no_create= | |
851 | no_recursion= | |
852 | prefix=NONE | |
853 | program_prefix=NONE | |
854 | program_suffix=NONE | |
855 | program_transform_name=s,x,x, | |
856 | silent= | |
857 | site= | |
858 | srcdir= | |
859 | verbose= | |
860 | x_includes=NONE | |
861 | x_libraries=NONE | |
862 | ||
863 | # Installation directory options. | |
864 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
865 | # and all the variables that are supposed to be based on exec_prefix | |
866 | # by default will actually change. | |
867 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
868 | # (The list follows the same order as the GNU Coding Standards.) | |
869 | bindir='${exec_prefix}/bin' | |
870 | sbindir='${exec_prefix}/sbin' | |
871 | libexecdir='${exec_prefix}/libexec' | |
872 | datarootdir='${prefix}/share' | |
873 | datadir='${datarootdir}' | |
874 | sysconfdir='${prefix}/etc' | |
875 | sharedstatedir='${prefix}/com' | |
876 | localstatedir='${prefix}/var' | |
877 | includedir='${prefix}/include' | |
878 | oldincludedir='/usr/include' | |
879 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
880 | infodir='${datarootdir}/info' | |
881 | htmldir='${docdir}' | |
882 | dvidir='${docdir}' | |
883 | pdfdir='${docdir}' | |
884 | psdir='${docdir}' | |
885 | libdir='${exec_prefix}/lib' | |
886 | localedir='${datarootdir}/locale' | |
887 | mandir='${datarootdir}/man' | |
888 | ||
889 | ac_prev= | |
890 | ac_dashdash= | |
891 | for ac_option | |
892 | do | |
893 | # If the previous option needs an argument, assign it. | |
894 | if test -n "$ac_prev"; then | |
895 | eval $ac_prev=\$ac_option | |
896 | ac_prev= | |
897 | continue | |
898 | fi | |
899 | ||
900 | case $ac_option in | |
f00f02a3 | 901 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
902 | *=) ac_optarg= ;; | |
903 | *) ac_optarg=yes ;; | |
03385ed3 | 904 | esac |
905 | ||
906 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
907 | ||
908 | case $ac_dashdash$ac_option in | |
909 | --) | |
910 | ac_dashdash=yes ;; | |
911 | ||
912 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
913 | ac_prev=bindir ;; | |
914 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
915 | bindir=$ac_optarg ;; | |
916 | ||
917 | -build | --build | --buil | --bui | --bu) | |
918 | ac_prev=build_alias ;; | |
919 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
920 | build_alias=$ac_optarg ;; | |
921 | ||
922 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
923 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
924 | ac_prev=cache_file ;; | |
925 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
926 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
927 | cache_file=$ac_optarg ;; | |
928 | ||
929 | --config-cache | -C) | |
930 | cache_file=config.cache ;; | |
931 | ||
932 | -datadir | --datadir | --datadi | --datad) | |
933 | ac_prev=datadir ;; | |
934 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
935 | datadir=$ac_optarg ;; | |
936 | ||
937 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
938 | | --dataroo | --dataro | --datar) | |
939 | ac_prev=datarootdir ;; | |
940 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
941 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
942 | datarootdir=$ac_optarg ;; | |
943 | ||
944 | -disable-* | --disable-*) | |
945 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
946 | # Reject names that are not valid shell variable names. | |
947 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
f00f02a3 | 948 | as_fn_error $? "invalid feature name: $ac_useropt" |
03385ed3 | 949 | ac_useropt_orig=$ac_useropt |
950 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
951 | case $ac_user_opts in | |
952 | *" | |
953 | "enable_$ac_useropt" | |
954 | "*) ;; | |
955 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
956 | ac_unrecognized_sep=', ';; | |
957 | esac | |
958 | eval enable_$ac_useropt=no ;; | |
959 | ||
960 | -docdir | --docdir | --docdi | --doc | --do) | |
961 | ac_prev=docdir ;; | |
962 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
963 | docdir=$ac_optarg ;; | |
964 | ||
965 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
966 | ac_prev=dvidir ;; | |
967 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
968 | dvidir=$ac_optarg ;; | |
969 | ||
970 | -enable-* | --enable-*) | |
971 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
972 | # Reject names that are not valid shell variable names. | |
973 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
f00f02a3 | 974 | as_fn_error $? "invalid feature name: $ac_useropt" |
03385ed3 | 975 | ac_useropt_orig=$ac_useropt |
976 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
977 | case $ac_user_opts in | |
978 | *" | |
979 | "enable_$ac_useropt" | |
980 | "*) ;; | |
981 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
982 | ac_unrecognized_sep=', ';; | |
983 | esac | |
984 | eval enable_$ac_useropt=\$ac_optarg ;; | |
985 | ||
986 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
987 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
988 | | --exec | --exe | --ex) | |
989 | ac_prev=exec_prefix ;; | |
990 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
991 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
992 | | --exec=* | --exe=* | --ex=*) | |
993 | exec_prefix=$ac_optarg ;; | |
994 | ||
995 | -gas | --gas | --ga | --g) | |
996 | # Obsolete; use --with-gas. | |
997 | with_gas=yes ;; | |
998 | ||
999 | -help | --help | --hel | --he | -h) | |
1000 | ac_init_help=long ;; | |
1001 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1002 | ac_init_help=recursive ;; | |
1003 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1004 | ac_init_help=short ;; | |
1005 | ||
1006 | -host | --host | --hos | --ho) | |
1007 | ac_prev=host_alias ;; | |
1008 | -host=* | --host=* | --hos=* | --ho=*) | |
1009 | host_alias=$ac_optarg ;; | |
1010 | ||
1011 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
1012 | ac_prev=htmldir ;; | |
1013 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1014 | | --ht=*) | |
1015 | htmldir=$ac_optarg ;; | |
1016 | ||
1017 | -includedir | --includedir | --includedi | --included | --include \ | |
1018 | | --includ | --inclu | --incl | --inc) | |
1019 | ac_prev=includedir ;; | |
1020 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1021 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1022 | includedir=$ac_optarg ;; | |
1023 | ||
1024 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1025 | ac_prev=infodir ;; | |
1026 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1027 | infodir=$ac_optarg ;; | |
1028 | ||
1029 | -libdir | --libdir | --libdi | --libd) | |
1030 | ac_prev=libdir ;; | |
1031 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1032 | libdir=$ac_optarg ;; | |
1033 | ||
1034 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1035 | | --libexe | --libex | --libe) | |
1036 | ac_prev=libexecdir ;; | |
1037 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1038 | | --libexe=* | --libex=* | --libe=*) | |
1039 | libexecdir=$ac_optarg ;; | |
1040 | ||
1041 | -localedir | --localedir | --localedi | --localed | --locale) | |
1042 | ac_prev=localedir ;; | |
1043 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1044 | localedir=$ac_optarg ;; | |
1045 | ||
1046 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1047 | | --localstate | --localstat | --localsta | --localst | --locals) | |
1048 | ac_prev=localstatedir ;; | |
1049 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1050 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1051 | localstatedir=$ac_optarg ;; | |
1052 | ||
1053 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1054 | ac_prev=mandir ;; | |
1055 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1056 | mandir=$ac_optarg ;; | |
1057 | ||
1058 | -nfp | --nfp | --nf) | |
1059 | # Obsolete; use --without-fp. | |
1060 | with_fp=no ;; | |
1061 | ||
1062 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1063 | | --no-cr | --no-c | -n) | |
1064 | no_create=yes ;; | |
1065 | ||
1066 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1067 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1068 | no_recursion=yes ;; | |
1069 | ||
1070 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1071 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1072 | | --oldin | --oldi | --old | --ol | --o) | |
1073 | ac_prev=oldincludedir ;; | |
1074 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1075 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1076 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1077 | oldincludedir=$ac_optarg ;; | |
1078 | ||
1079 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1080 | ac_prev=prefix ;; | |
1081 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1082 | prefix=$ac_optarg ;; | |
1083 | ||
1084 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1085 | | --program-pre | --program-pr | --program-p) | |
1086 | ac_prev=program_prefix ;; | |
1087 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1088 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1089 | program_prefix=$ac_optarg ;; | |
1090 | ||
1091 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1092 | | --program-suf | --program-su | --program-s) | |
1093 | ac_prev=program_suffix ;; | |
1094 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1095 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1096 | program_suffix=$ac_optarg ;; | |
1097 | ||
1098 | -program-transform-name | --program-transform-name \ | |
1099 | | --program-transform-nam | --program-transform-na \ | |
1100 | | --program-transform-n | --program-transform- \ | |
1101 | | --program-transform | --program-transfor \ | |
1102 | | --program-transfo | --program-transf \ | |
1103 | | --program-trans | --program-tran \ | |
1104 | | --progr-tra | --program-tr | --program-t) | |
1105 | ac_prev=program_transform_name ;; | |
1106 | -program-transform-name=* | --program-transform-name=* \ | |
1107 | | --program-transform-nam=* | --program-transform-na=* \ | |
1108 | | --program-transform-n=* | --program-transform-=* \ | |
1109 | | --program-transform=* | --program-transfor=* \ | |
1110 | | --program-transfo=* | --program-transf=* \ | |
1111 | | --program-trans=* | --program-tran=* \ | |
1112 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1113 | program_transform_name=$ac_optarg ;; | |
1114 | ||
1115 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1116 | ac_prev=pdfdir ;; | |
1117 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1118 | pdfdir=$ac_optarg ;; | |
1119 | ||
1120 | -psdir | --psdir | --psdi | --psd | --ps) | |
1121 | ac_prev=psdir ;; | |
1122 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1123 | psdir=$ac_optarg ;; | |
1124 | ||
1125 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1126 | | -silent | --silent | --silen | --sile | --sil) | |
1127 | silent=yes ;; | |
1128 | ||
1129 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1130 | ac_prev=sbindir ;; | |
1131 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1132 | | --sbi=* | --sb=*) | |
1133 | sbindir=$ac_optarg ;; | |
1134 | ||
1135 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1136 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1137 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1138 | | --sha | --sh) | |
1139 | ac_prev=sharedstatedir ;; | |
1140 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1141 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1142 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1143 | | --sha=* | --sh=*) | |
1144 | sharedstatedir=$ac_optarg ;; | |
1145 | ||
1146 | -site | --site | --sit) | |
1147 | ac_prev=site ;; | |
1148 | -site=* | --site=* | --sit=*) | |
1149 | site=$ac_optarg ;; | |
1150 | ||
1151 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1152 | ac_prev=srcdir ;; | |
1153 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1154 | srcdir=$ac_optarg ;; | |
1155 | ||
1156 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1157 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1158 | ac_prev=sysconfdir ;; | |
1159 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1160 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1161 | sysconfdir=$ac_optarg ;; | |
1162 | ||
1163 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1164 | ac_prev=target_alias ;; | |
1165 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1166 | target_alias=$ac_optarg ;; | |
1167 | ||
1168 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1169 | verbose=yes ;; | |
1170 | ||
1171 | -version | --version | --versio | --versi | --vers | -V) | |
1172 | ac_init_version=: ;; | |
1173 | ||
1174 | -with-* | --with-*) | |
1175 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1176 | # Reject names that are not valid shell variable names. | |
1177 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
f00f02a3 | 1178 | as_fn_error $? "invalid package name: $ac_useropt" |
03385ed3 | 1179 | ac_useropt_orig=$ac_useropt |
1180 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1181 | case $ac_user_opts in | |
1182 | *" | |
1183 | "with_$ac_useropt" | |
1184 | "*) ;; | |
1185 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1186 | ac_unrecognized_sep=', ';; | |
1187 | esac | |
1188 | eval with_$ac_useropt=\$ac_optarg ;; | |
1189 | ||
1190 | -without-* | --without-*) | |
1191 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1192 | # Reject names that are not valid shell variable names. | |
1193 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
f00f02a3 | 1194 | as_fn_error $? "invalid package name: $ac_useropt" |
03385ed3 | 1195 | ac_useropt_orig=$ac_useropt |
1196 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1197 | case $ac_user_opts in | |
1198 | *" | |
1199 | "with_$ac_useropt" | |
1200 | "*) ;; | |
1201 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1202 | ac_unrecognized_sep=', ';; | |
1203 | esac | |
1204 | eval with_$ac_useropt=no ;; | |
1205 | ||
1206 | --x) | |
1207 | # Obsolete; use --with-x. | |
1208 | with_x=yes ;; | |
1209 | ||
1210 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1211 | | --x-incl | --x-inc | --x-in | --x-i) | |
1212 | ac_prev=x_includes ;; | |
1213 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1214 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1215 | x_includes=$ac_optarg ;; | |
1216 | ||
1217 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1218 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1219 | ac_prev=x_libraries ;; | |
1220 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1221 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1222 | x_libraries=$ac_optarg ;; | |
1223 | ||
f00f02a3 | 1224 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1225 | Try \`$0 --help' for more information" | |
03385ed3 | 1226 | ;; |
1227 | ||
1228 | *=*) | |
1229 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1230 | # Reject names that are not valid shell variable names. | |
1231 | case $ac_envvar in #( | |
1232 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
f00f02a3 | 1233 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
03385ed3 | 1234 | esac |
1235 | eval $ac_envvar=\$ac_optarg | |
1236 | export $ac_envvar ;; | |
1237 | ||
1238 | *) | |
1239 | # FIXME: should be removed in autoconf 3.0. | |
1240 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1241 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1242 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
f00f02a3 | 1243 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
03385ed3 | 1244 | ;; |
1245 | ||
1246 | esac | |
1247 | done | |
1248 | ||
1249 | if test -n "$ac_prev"; then | |
1250 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
f00f02a3 | 1251 | as_fn_error $? "missing argument to $ac_option" |
03385ed3 | 1252 | fi |
1253 | ||
1254 | if test -n "$ac_unrecognized_opts"; then | |
1255 | case $enable_option_checking in | |
1256 | no) ;; | |
f00f02a3 | 1257 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
03385ed3 | 1258 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1259 | esac | |
1260 | fi | |
1261 | ||
1262 | # Check all directory arguments for consistency. | |
1263 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1264 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1265 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
59b584a4 | 1266 | libdir localedir mandir |
03385ed3 | 1267 | do |
1268 | eval ac_val=\$$ac_var | |
1269 | # Remove trailing slashes. | |
1270 | case $ac_val in | |
1271 | */ ) | |
1272 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1273 | eval $ac_var=\$ac_val;; | |
1274 | esac | |
1275 | # Be sure to have absolute directory names. | |
1276 | case $ac_val in | |
1277 | [\\/$]* | ?:[\\/]* ) continue;; | |
1278 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1279 | esac | |
f00f02a3 | 1280 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
03385ed3 | 1281 | done |
1282 | ||
1283 | # There might be people who depend on the old broken behavior: `$host' | |
1284 | # used to hold the argument of --host etc. | |
1285 | # FIXME: To remove some day. | |
1286 | build=$build_alias | |
1287 | host=$host_alias | |
1288 | target=$target_alias | |
1289 | ||
1290 | # FIXME: To remove some day. | |
1291 | if test "x$host_alias" != x; then | |
1292 | if test "x$build_alias" = x; then | |
1293 | cross_compiling=maybe | |
03385ed3 | 1294 | elif test "x$build_alias" != "x$host_alias"; then |
1295 | cross_compiling=yes | |
1296 | fi | |
1297 | fi | |
1298 | ||
1299 | ac_tool_prefix= | |
1300 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1301 | ||
1302 | test "$silent" = yes && exec 6>/dev/null | |
1303 | ||
1304 | ||
1305 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1306 | ac_ls_di=`ls -di .` && | |
1307 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
f00f02a3 | 1308 | as_fn_error $? "working directory cannot be determined" |
03385ed3 | 1309 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
f00f02a3 | 1310 | as_fn_error $? "pwd does not report name of working directory" |
03385ed3 | 1311 | |
1312 | ||
1313 | # Find the source files, if location was not specified. | |
1314 | if test -z "$srcdir"; then | |
1315 | ac_srcdir_defaulted=yes | |
1316 | # Try the directory containing this script, then the parent directory. | |
1317 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1318 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1319 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1320 | X"$as_myself" : 'X\(//\)$' \| \ | |
1321 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1322 | $as_echo X"$as_myself" | | |
1323 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1324 | s//\1/ | |
1325 | q | |
1326 | } | |
1327 | /^X\(\/\/\)[^/].*/{ | |
1328 | s//\1/ | |
1329 | q | |
1330 | } | |
1331 | /^X\(\/\/\)$/{ | |
1332 | s//\1/ | |
1333 | q | |
1334 | } | |
1335 | /^X\(\/\).*/{ | |
1336 | s//\1/ | |
1337 | q | |
1338 | } | |
1339 | s/.*/./; q'` | |
1340 | srcdir=$ac_confdir | |
1341 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1342 | srcdir=.. | |
1343 | fi | |
1344 | else | |
1345 | ac_srcdir_defaulted=no | |
1346 | fi | |
1347 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1348 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
f00f02a3 | 1349 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
03385ed3 | 1350 | fi |
1351 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1352 | ac_abs_confdir=`( | |
f00f02a3 | 1353 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
03385ed3 | 1354 | pwd)` |
1355 | # When building in place, set srcdir=. | |
1356 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1357 | srcdir=. | |
1358 | fi | |
1359 | # Remove unnecessary trailing slashes from srcdir. | |
1360 | # Double slashes in file names in object file debugging info | |
1361 | # mess up M-x gdb in Emacs. | |
1362 | case $srcdir in | |
1363 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1364 | esac | |
1365 | for ac_var in $ac_precious_vars; do | |
1366 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1367 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1368 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1369 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1370 | done | |
1371 | ||
1372 | # | |
1373 | # Report the --help message. | |
1374 | # | |
1375 | if test "$ac_init_help" = "long"; then | |
1376 | # Omit some internal or obsolete options to make the list less imposing. | |
1377 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1378 | cat <<_ACEOF | |
1379 | \`configure' configures package-unused version-unused to adapt to many kinds of systems. | |
1380 | ||
1381 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1382 | ||
1383 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1384 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1385 | ||
1386 | Defaults for the options are specified in brackets. | |
1387 | ||
1388 | Configuration: | |
1389 | -h, --help display this help and exit | |
1390 | --help=short display options specific to this package | |
1391 | --help=recursive display the short help of all the included packages | |
1392 | -V, --version display version information and exit | |
f00f02a3 | 1393 | -q, --quiet, --silent do not print \`checking ...' messages |
03385ed3 | 1394 | --cache-file=FILE cache test results in FILE [disabled] |
1395 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1396 | -n, --no-create do not create output files | |
1397 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1398 | ||
1399 | Installation directories: | |
1400 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1401 | [$ac_default_prefix] | |
1402 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1403 | [PREFIX] | |
1404 | ||
1405 | By default, \`make install' will install all the files in | |
1406 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1407 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1408 | for instance \`--prefix=\$HOME'. | |
1409 | ||
1410 | For better control, use the options below. | |
1411 | ||
1412 | Fine tuning of the installation directories: | |
1413 | --bindir=DIR user executables [EPREFIX/bin] | |
1414 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1415 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1416 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1417 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1418 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1419 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1420 | --includedir=DIR C header files [PREFIX/include] | |
1421 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1422 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1423 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1424 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1425 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1426 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1427 | --docdir=DIR documentation root [DATAROOTDIR/doc/libphobos] | |
1428 | --htmldir=DIR html documentation [DOCDIR] | |
1429 | --dvidir=DIR dvi documentation [DOCDIR] | |
1430 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1431 | --psdir=DIR ps documentation [DOCDIR] | |
1432 | _ACEOF | |
1433 | ||
1434 | cat <<\_ACEOF | |
1435 | ||
1436 | Program names: | |
1437 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1438 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1439 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1440 | ||
1441 | System types: | |
1442 | --build=BUILD configure for building on BUILD [guessed] | |
1443 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1444 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1445 | _ACEOF | |
1446 | fi | |
1447 | ||
1448 | if test -n "$ac_init_help"; then | |
1449 | case $ac_init_help in | |
1450 | short | recursive ) echo "Configuration of package-unused version-unused:";; | |
1451 | esac | |
1452 | cat <<\_ACEOF | |
1453 | ||
1454 | Optional Features: | |
1455 | --disable-option-checking ignore unrecognized --enable/--with options | |
1456 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1457 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1458 | --enable-multilib build many library versions (default) | |
f00f02a3 | 1459 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1460 | --disable-silent-rules verbose build output (undo: "make V=0") | |
1461 | --enable-maintainer-mode | |
1462 | enable make rules and dependencies not useful (and | |
1463 | sometimes confusing) to the casual installer | |
03385ed3 | 1464 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1465 | --enable-static[=PKGS] build static libraries [default=yes] | |
1466 | --enable-fast-install[=PKGS] | |
1467 | optimize for fast installation [default=yes] | |
1468 | --disable-libtool-lock avoid locking (might break parallel builds) | |
20abc61c | 1469 | --enable-libphobos Enable libphobos |
03385ed3 | 1470 | --enable-werror turns on -Werror [default=no] |
1471 | --enable-druntime-gc enable D runtime garbage collector (default: yes) | |
1472 | --enable-unix enables Unix runtime (default: yes, for Unix | |
1473 | targets) | |
1474 | --enable-thread-lib=<arg> | |
1475 | specify linker option for the system thread library | |
1476 | (default: autodetect) | |
5114391d | 1477 | --enable-version-specific-runtime-libs |
1478 | Specify that runtime libraries should be installed | |
1479 | in a compiler-specific directory | |
03385ed3 | 1480 | |
1481 | Optional Packages: | |
1482 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1483 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1484 | --with-pic try to use only PIC/non-PIC objects [default=use | |
1485 | both] | |
1486 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
1487 | --with-gcc-major-version-only | |
1488 | use only GCC major number in filesystem paths | |
1489 | --without-libatomic Do not use libatomic in core.atomic (default: auto) | |
1490 | --without-libbacktrace Do not use libbacktrace in core.runtime (default: | |
1491 | auto) | |
e60a24bd | 1492 | --with-target-system-zlib={yes,no,auto} |
03385ed3 | 1493 | use installed libz (default: no) |
1494 | --with-cross-host=HOST configuring with a cross compiler | |
1495 | ||
1496 | Some influential environment variables: | |
1497 | CC C compiler command | |
1498 | CFLAGS C compiler flags | |
1499 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1500 | nonstandard directory <lib dir> | |
1501 | LIBS libraries to pass to the linker, e.g. -l<library> | |
f00f02a3 | 1502 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
03385ed3 | 1503 | you have headers in a nonstandard directory <include dir> |
79c21307 | 1504 | CPP C preprocessor |
03385ed3 | 1505 | CCAS assembler compiler command (defaults to CC) |
1506 | CCASFLAGS assembler compiler flags (defaults to CFLAGS) | |
1507 | GDC D compiler command | |
1508 | GDCFLAGS D compiler flags | |
03385ed3 | 1509 | |
1510 | Use these variables to override the choices made by `configure' or to help | |
1511 | it to find libraries and programs with nonstandard names/locations. | |
1512 | ||
1513 | Report bugs to the package provider. | |
1514 | _ACEOF | |
1515 | ac_status=$? | |
1516 | fi | |
1517 | ||
1518 | if test "$ac_init_help" = "recursive"; then | |
1519 | # If there are subdirs, report their specific --help. | |
1520 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1521 | test -d "$ac_dir" || | |
1522 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1523 | continue | |
1524 | ac_builddir=. | |
1525 | ||
1526 | case "$ac_dir" in | |
1527 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1528 | *) | |
1529 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1530 | # A ".." for each directory in $ac_dir_suffix. | |
1531 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1532 | case $ac_top_builddir_sub in | |
1533 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1534 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1535 | esac ;; | |
1536 | esac | |
1537 | ac_abs_top_builddir=$ac_pwd | |
1538 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1539 | # for backward compatibility: | |
1540 | ac_top_builddir=$ac_top_build_prefix | |
1541 | ||
1542 | case $srcdir in | |
1543 | .) # We are building in place. | |
1544 | ac_srcdir=. | |
1545 | ac_top_srcdir=$ac_top_builddir_sub | |
1546 | ac_abs_top_srcdir=$ac_pwd ;; | |
1547 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1548 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1549 | ac_top_srcdir=$srcdir | |
1550 | ac_abs_top_srcdir=$srcdir ;; | |
1551 | *) # Relative name. | |
1552 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1553 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1554 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1555 | esac | |
1556 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1557 | ||
1558 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1559 | # Check for guested configure. | |
1560 | if test -f "$ac_srcdir/configure.gnu"; then | |
1561 | echo && | |
1562 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1563 | elif test -f "$ac_srcdir/configure"; then | |
1564 | echo && | |
1565 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1566 | else | |
1567 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1568 | fi || ac_status=$? | |
1569 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1570 | done | |
1571 | fi | |
1572 | ||
1573 | test -n "$ac_init_help" && exit $ac_status | |
1574 | if $ac_init_version; then | |
1575 | cat <<\_ACEOF | |
1576 | package-unused configure version-unused | |
f00f02a3 | 1577 | generated by GNU Autoconf 2.69 |
03385ed3 | 1578 | |
e06fcd5a | 1579 | Copyright (C) 2012 Free Software Foundation, Inc. |
03385ed3 | 1580 | This configure script is free software; the Free Software Foundation |
1581 | gives unlimited permission to copy, distribute and modify it. | |
1582 | _ACEOF | |
1583 | exit | |
1584 | fi | |
1585 | ||
1586 | ## ------------------------ ## | |
1587 | ## Autoconf initialization. ## | |
1588 | ## ------------------------ ## | |
1589 | ||
1590 | # ac_fn_c_try_compile LINENO | |
1591 | # -------------------------- | |
1592 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1593 | ac_fn_c_try_compile () | |
1594 | { | |
1595 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1596 | rm -f conftest.$ac_objext | |
1597 | if { { ac_try="$ac_compile" | |
1598 | case "(($ac_try" in | |
1599 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1600 | *) ac_try_echo=$ac_try;; | |
1601 | esac | |
1602 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1603 | $as_echo "$ac_try_echo"; } >&5 | |
1604 | (eval "$ac_compile") 2>conftest.err | |
1605 | ac_status=$? | |
1606 | if test -s conftest.err; then | |
1607 | grep -v '^ *+' conftest.err >conftest.er1 | |
1608 | cat conftest.er1 >&5 | |
1609 | mv -f conftest.er1 conftest.err | |
1610 | fi | |
1611 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1612 | test $ac_status = 0; } && { | |
1613 | test -z "$ac_c_werror_flag" || | |
1614 | test ! -s conftest.err | |
1615 | } && test -s conftest.$ac_objext; then : | |
1616 | ac_retval=0 | |
1617 | else | |
1618 | $as_echo "$as_me: failed program was:" >&5 | |
1619 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1620 | ||
1621 | ac_retval=1 | |
1622 | fi | |
f00f02a3 | 1623 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1624 | as_fn_set_status $ac_retval | |
03385ed3 | 1625 | |
1626 | } # ac_fn_c_try_compile | |
1627 | ||
79c21307 | 1628 | # ac_fn_c_try_cpp LINENO |
1629 | # ---------------------- | |
1630 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1631 | ac_fn_c_try_cpp () | |
03385ed3 | 1632 | { |
1633 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
79c21307 | 1634 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
03385ed3 | 1635 | case "(($ac_try" in |
1636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1637 | *) ac_try_echo=$ac_try;; | |
1638 | esac | |
1639 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1640 | $as_echo "$ac_try_echo"; } >&5 | |
79c21307 | 1641 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
03385ed3 | 1642 | ac_status=$? |
1643 | if test -s conftest.err; then | |
1644 | grep -v '^ *+' conftest.err >conftest.er1 | |
1645 | cat conftest.er1 >&5 | |
1646 | mv -f conftest.er1 conftest.err | |
1647 | fi | |
1648 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
79c21307 | 1649 | test $ac_status = 0; } > conftest.i && { |
1650 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
03385ed3 | 1651 | test ! -s conftest.err |
79c21307 | 1652 | }; then : |
03385ed3 | 1653 | ac_retval=0 |
1654 | else | |
1655 | $as_echo "$as_me: failed program was:" >&5 | |
1656 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1657 | ||
79c21307 | 1658 | ac_retval=1 |
03385ed3 | 1659 | fi |
f00f02a3 | 1660 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1661 | as_fn_set_status $ac_retval | |
03385ed3 | 1662 | |
79c21307 | 1663 | } # ac_fn_c_try_cpp |
03385ed3 | 1664 | |
79c21307 | 1665 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1666 | # ------------------------------------------------------- | |
1667 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1668 | # the include files in INCLUDES and setting the cache variable VAR | |
1669 | # accordingly. | |
1670 | ac_fn_c_check_header_mongrel () | |
1671 | { | |
1672 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1673 | if eval \${$3+:} false; then : | |
1674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1675 | $as_echo_n "checking for $2... " >&6; } | |
1676 | if eval \${$3+:} false; then : | |
1677 | $as_echo_n "(cached) " >&6 | |
1678 | fi | |
1679 | eval ac_res=\$$3 | |
1680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1681 | $as_echo "$ac_res" >&6; } | |
1682 | else | |
1683 | # Is the header compilable? | |
1684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1685 | $as_echo_n "checking $2 usability... " >&6; } | |
1686 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1687 | /* end confdefs.h. */ | |
1688 | $4 | |
1689 | #include <$2> | |
1690 | _ACEOF | |
1691 | if ac_fn_c_try_compile "$LINENO"; then : | |
1692 | ac_header_compiler=yes | |
1693 | else | |
1694 | ac_header_compiler=no | |
1695 | fi | |
1696 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1698 | $as_echo "$ac_header_compiler" >&6; } | |
1699 | ||
1700 | # Is the header present? | |
1701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1702 | $as_echo_n "checking $2 presence... " >&6; } | |
1703 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1704 | /* end confdefs.h. */ | |
1705 | #include <$2> | |
1706 | _ACEOF | |
1707 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1708 | ac_header_preproc=yes | |
1709 | else | |
1710 | ac_header_preproc=no | |
1711 | fi | |
1712 | rm -f conftest.err conftest.i conftest.$ac_ext | |
1713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1714 | $as_echo "$ac_header_preproc" >&6; } | |
1715 | ||
1716 | # So? What about this header? | |
1717 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1718 | yes:no: ) | |
1719 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1720 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1721 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1722 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1723 | ;; | |
1724 | no:yes:* ) | |
1725 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1726 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1727 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1728 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1729 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1730 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1731 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1732 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1733 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1734 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1735 | ;; | |
1736 | esac | |
1737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1738 | $as_echo_n "checking for $2... " >&6; } | |
1739 | if eval \${$3+:} false; then : | |
1740 | $as_echo_n "(cached) " >&6 | |
1741 | else | |
1742 | eval "$3=\$ac_header_compiler" | |
1743 | fi | |
1744 | eval ac_res=\$$3 | |
1745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1746 | $as_echo "$ac_res" >&6; } | |
1747 | fi | |
1748 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1749 | ||
1750 | } # ac_fn_c_check_header_mongrel | |
1751 | ||
1752 | # ac_fn_c_try_run LINENO | |
1753 | # ---------------------- | |
1754 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1755 | # that executables *can* be run. | |
1756 | ac_fn_c_try_run () | |
03385ed3 | 1757 | { |
1758 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
03385ed3 | 1759 | if { { ac_try="$ac_link" |
1760 | case "(($ac_try" in | |
1761 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1762 | *) ac_try_echo=$ac_try;; | |
1763 | esac | |
1764 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1765 | $as_echo "$ac_try_echo"; } >&5 | |
79c21307 | 1766 | (eval "$ac_link") 2>&5 |
03385ed3 | 1767 | ac_status=$? |
03385ed3 | 1768 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
79c21307 | 1769 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
1770 | { { case "(($ac_try" in | |
1771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1772 | *) ac_try_echo=$ac_try;; | |
1773 | esac | |
1774 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1775 | $as_echo "$ac_try_echo"; } >&5 | |
1776 | (eval "$ac_try") 2>&5 | |
1777 | ac_status=$? | |
1778 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1779 | test $ac_status = 0; }; }; then : | |
03385ed3 | 1780 | ac_retval=0 |
1781 | else | |
79c21307 | 1782 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
1783 | $as_echo "$as_me: failed program was:" >&5 | |
03385ed3 | 1784 | sed 's/^/| /' conftest.$ac_ext >&5 |
1785 | ||
79c21307 | 1786 | ac_retval=$ac_status |
03385ed3 | 1787 | fi |
03385ed3 | 1788 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
f00f02a3 | 1789 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1790 | as_fn_set_status $ac_retval | |
03385ed3 | 1791 | |
79c21307 | 1792 | } # ac_fn_c_try_run |
03385ed3 | 1793 | |
1794 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1795 | # ------------------------------------------------------- | |
1796 | # Tests whether HEADER exists and can be compiled using the include files in | |
1797 | # INCLUDES, setting the cache variable VAR accordingly. | |
1798 | ac_fn_c_check_header_compile () | |
1799 | { | |
1800 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1802 | $as_echo_n "checking for $2... " >&6; } | |
f00f02a3 | 1803 | if eval \${$3+:} false; then : |
03385ed3 | 1804 | $as_echo_n "(cached) " >&6 |
1805 | else | |
1806 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1807 | /* end confdefs.h. */ | |
1808 | $4 | |
1809 | #include <$2> | |
1810 | _ACEOF | |
1811 | if ac_fn_c_try_compile "$LINENO"; then : | |
1812 | eval "$3=yes" | |
1813 | else | |
1814 | eval "$3=no" | |
1815 | fi | |
1816 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1817 | fi | |
1818 | eval ac_res=\$$3 | |
1819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1820 | $as_echo "$ac_res" >&6; } | |
f00f02a3 | 1821 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
03385ed3 | 1822 | |
1823 | } # ac_fn_c_check_header_compile | |
1824 | ||
79c21307 | 1825 | # ac_fn_d_try_compile LINENO |
1826 | # -------------------------- | |
1827 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1828 | ac_fn_d_try_compile () | |
03385ed3 | 1829 | { |
1830 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
79c21307 | 1831 | rm -f conftest.$ac_objext |
1832 | if { { ac_try="$ac_compile" | |
03385ed3 | 1833 | case "(($ac_try" in |
1834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1835 | *) ac_try_echo=$ac_try;; | |
1836 | esac | |
1837 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1838 | $as_echo "$ac_try_echo"; } >&5 | |
79c21307 | 1839 | (eval "$ac_compile") 2>conftest.err |
03385ed3 | 1840 | ac_status=$? |
1841 | if test -s conftest.err; then | |
1842 | grep -v '^ *+' conftest.err >conftest.er1 | |
1843 | cat conftest.er1 >&5 | |
1844 | mv -f conftest.er1 conftest.err | |
1845 | fi | |
1846 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
79c21307 | 1847 | test $ac_status = 0; } && { |
1848 | test -z "$ac_d_werror_flag" || | |
03385ed3 | 1849 | test ! -s conftest.err |
79c21307 | 1850 | } && test -s conftest.$ac_objext; then : |
03385ed3 | 1851 | ac_retval=0 |
1852 | else | |
1853 | $as_echo "$as_me: failed program was:" >&5 | |
1854 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1855 | ||
79c21307 | 1856 | ac_retval=1 |
03385ed3 | 1857 | fi |
f00f02a3 | 1858 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1859 | as_fn_set_status $ac_retval | |
03385ed3 | 1860 | |
79c21307 | 1861 | } # ac_fn_d_try_compile |
03385ed3 | 1862 | |
79c21307 | 1863 | # ac_fn_c_try_link LINENO |
1864 | # ----------------------- | |
1865 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1866 | ac_fn_c_try_link () | |
03385ed3 | 1867 | { |
1868 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
79c21307 | 1869 | rm -f conftest.$ac_objext conftest$ac_exeext |
03385ed3 | 1870 | if { { ac_try="$ac_link" |
1871 | case "(($ac_try" in | |
1872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1873 | *) ac_try_echo=$ac_try;; | |
1874 | esac | |
1875 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1876 | $as_echo "$ac_try_echo"; } >&5 | |
79c21307 | 1877 | (eval "$ac_link") 2>conftest.err |
03385ed3 | 1878 | ac_status=$? |
79c21307 | 1879 | if test -s conftest.err; then |
1880 | grep -v '^ *+' conftest.err >conftest.er1 | |
1881 | cat conftest.er1 >&5 | |
1882 | mv -f conftest.er1 conftest.err | |
1883 | fi | |
03385ed3 | 1884 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
79c21307 | 1885 | test $ac_status = 0; } && { |
1886 | test -z "$ac_c_werror_flag" || | |
1887 | test ! -s conftest.err | |
1888 | } && test -s conftest$ac_exeext && { | |
1889 | test "$cross_compiling" = yes || | |
1890 | test -x conftest$ac_exeext | |
1891 | }; then : | |
03385ed3 | 1892 | ac_retval=0 |
1893 | else | |
79c21307 | 1894 | $as_echo "$as_me: failed program was:" >&5 |
03385ed3 | 1895 | sed 's/^/| /' conftest.$ac_ext >&5 |
1896 | ||
79c21307 | 1897 | ac_retval=1 |
03385ed3 | 1898 | fi |
79c21307 | 1899 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
1900 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1901 | # interfere with the next link command; also delete a directory that is | |
1902 | # left behind by Apple's compiler. We do this before executing the actions. | |
03385ed3 | 1903 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
f00f02a3 | 1904 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1905 | as_fn_set_status $ac_retval | |
03385ed3 | 1906 | |
79c21307 | 1907 | } # ac_fn_c_try_link |
03385ed3 | 1908 | |
1909 | # ac_fn_c_check_func LINENO FUNC VAR | |
1910 | # ---------------------------------- | |
1911 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1912 | ac_fn_c_check_func () | |
1913 | { | |
1914 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1916 | $as_echo_n "checking for $2... " >&6; } | |
f00f02a3 | 1917 | if eval \${$3+:} false; then : |
03385ed3 | 1918 | $as_echo_n "(cached) " >&6 |
1919 | else | |
1920 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1921 | /* end confdefs.h. */ | |
1922 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1923 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1924 | #define $2 innocuous_$2 | |
1925 | ||
1926 | /* System header to define __stub macros and hopefully few prototypes, | |
1927 | which can conflict with char $2 (); below. | |
1928 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1929 | <limits.h> exists even on freestanding compilers. */ | |
1930 | ||
1931 | #ifdef __STDC__ | |
1932 | # include <limits.h> | |
1933 | #else | |
1934 | # include <assert.h> | |
1935 | #endif | |
1936 | ||
1937 | #undef $2 | |
1938 | ||
1939 | /* Override any GCC internal prototype to avoid an error. | |
1940 | Use char because int might match the return type of a GCC | |
1941 | builtin and then its argument prototype would still apply. */ | |
1942 | #ifdef __cplusplus | |
1943 | extern "C" | |
1944 | #endif | |
1945 | char $2 (); | |
1946 | /* The GNU C library defines this for functions which it implements | |
1947 | to always fail with ENOSYS. Some functions are actually named | |
1948 | something starting with __ and the normal name is an alias. */ | |
1949 | #if defined __stub_$2 || defined __stub___$2 | |
1950 | choke me | |
1951 | #endif | |
1952 | ||
1953 | int | |
1954 | main () | |
1955 | { | |
1956 | return $2 (); | |
1957 | ; | |
1958 | return 0; | |
1959 | } | |
1960 | _ACEOF | |
1961 | if ac_fn_c_try_link "$LINENO"; then : | |
1962 | eval "$3=yes" | |
1963 | else | |
1964 | eval "$3=no" | |
1965 | fi | |
1966 | rm -f core conftest.err conftest.$ac_objext \ | |
1967 | conftest$ac_exeext conftest.$ac_ext | |
1968 | fi | |
1969 | eval ac_res=\$$3 | |
1970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1971 | $as_echo "$ac_res" >&6; } | |
f00f02a3 | 1972 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
03385ed3 | 1973 | |
1974 | } # ac_fn_c_check_func | |
1975 | ||
79c21307 | 1976 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
1977 | # ---------------------------------------------------- | |
1978 | # Tries to find if the field MEMBER exists in type AGGR, after including | |
1979 | # INCLUDES, setting cache variable VAR accordingly. | |
1980 | ac_fn_c_check_member () | |
1981 | { | |
1982 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | |
1984 | $as_echo_n "checking for $2.$3... " >&6; } | |
1985 | if eval \${$4+:} false; then : | |
1986 | $as_echo_n "(cached) " >&6 | |
1987 | else | |
1988 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1989 | /* end confdefs.h. */ | |
1990 | $5 | |
1991 | int | |
1992 | main () | |
1993 | { | |
1994 | static $2 ac_aggr; | |
1995 | if (ac_aggr.$3) | |
1996 | return 0; | |
1997 | ; | |
1998 | return 0; | |
1999 | } | |
2000 | _ACEOF | |
2001 | if ac_fn_c_try_compile "$LINENO"; then : | |
2002 | eval "$4=yes" | |
2003 | else | |
2004 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2005 | /* end confdefs.h. */ | |
2006 | $5 | |
2007 | int | |
2008 | main () | |
2009 | { | |
2010 | static $2 ac_aggr; | |
2011 | if (sizeof ac_aggr.$3) | |
2012 | return 0; | |
2013 | ; | |
2014 | return 0; | |
2015 | } | |
2016 | _ACEOF | |
2017 | if ac_fn_c_try_compile "$LINENO"; then : | |
2018 | eval "$4=yes" | |
2019 | else | |
2020 | eval "$4=no" | |
2021 | fi | |
2022 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2023 | fi | |
2024 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2025 | fi | |
2026 | eval ac_res=\$$4 | |
2027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2028 | $as_echo "$ac_res" >&6; } | |
2029 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2030 | ||
2031 | } # ac_fn_c_check_member | |
2032 | ||
2033 | # ac_fn_d_try_link LINENO | |
2034 | # ----------------------- | |
2035 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
03385ed3 | 2036 | ac_fn_d_try_link () |
2037 | { | |
2038 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2039 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2040 | if { { ac_try="$ac_link" | |
2041 | case "(($ac_try" in | |
2042 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2043 | *) ac_try_echo=$ac_try;; | |
2044 | esac | |
2045 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2046 | $as_echo "$ac_try_echo"; } >&5 | |
2047 | (eval "$ac_link") 2>conftest.err | |
2048 | ac_status=$? | |
2049 | if test -s conftest.err; then | |
2050 | grep -v '^ *+' conftest.err >conftest.er1 | |
2051 | cat conftest.er1 >&5 | |
2052 | mv -f conftest.er1 conftest.err | |
2053 | fi | |
2054 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2055 | test $ac_status = 0; } && { | |
2056 | test -z "$ac_d_werror_flag" || | |
2057 | test ! -s conftest.err | |
2058 | } && test -s conftest$ac_exeext && { | |
2059 | test "$cross_compiling" = yes || | |
f00f02a3 | 2060 | test -x conftest$ac_exeext |
03385ed3 | 2061 | }; then : |
2062 | ac_retval=0 | |
2063 | else | |
2064 | $as_echo "$as_me: failed program was:" >&5 | |
2065 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2066 | ||
2067 | ac_retval=1 | |
2068 | fi | |
2069 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2070 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2071 | # interfere with the next link command; also delete a directory that is | |
2072 | # left behind by Apple's compiler. We do this before executing the actions. | |
2073 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
f00f02a3 | 2074 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2075 | as_fn_set_status $ac_retval | |
03385ed3 | 2076 | |
2077 | } # ac_fn_d_try_link | |
03385ed3 | 2078 | cat >config.log <<_ACEOF |
2079 | This file contains any messages produced by compilers while | |
2080 | running configure, to aid debugging if configure makes a mistake. | |
2081 | ||
2082 | It was created by package-unused $as_me version-unused, which was | |
f00f02a3 | 2083 | generated by GNU Autoconf 2.69. Invocation command line was |
03385ed3 | 2084 | |
2085 | $ $0 $@ | |
2086 | ||
2087 | _ACEOF | |
2088 | exec 5>>config.log | |
2089 | { | |
2090 | cat <<_ASUNAME | |
2091 | ## --------- ## | |
2092 | ## Platform. ## | |
2093 | ## --------- ## | |
2094 | ||
2095 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2096 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2097 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2098 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2099 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2100 | ||
2101 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2102 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2103 | ||
2104 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2105 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2106 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2107 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2108 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2109 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2110 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2111 | ||
2112 | _ASUNAME | |
2113 | ||
2114 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2115 | for as_dir in $PATH | |
2116 | do | |
2117 | IFS=$as_save_IFS | |
2118 | test -z "$as_dir" && as_dir=. | |
2119 | $as_echo "PATH: $as_dir" | |
2120 | done | |
2121 | IFS=$as_save_IFS | |
2122 | ||
2123 | } >&5 | |
2124 | ||
2125 | cat >&5 <<_ACEOF | |
2126 | ||
2127 | ||
2128 | ## ----------- ## | |
2129 | ## Core tests. ## | |
2130 | ## ----------- ## | |
2131 | ||
2132 | _ACEOF | |
2133 | ||
2134 | ||
2135 | # Keep a trace of the command line. | |
2136 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2137 | # Strip out --silent because we don't want to record it for future runs. | |
2138 | # Also quote any args containing shell meta-characters. | |
2139 | # Make two passes to allow for proper duplicate-argument suppression. | |
2140 | ac_configure_args= | |
2141 | ac_configure_args0= | |
2142 | ac_configure_args1= | |
2143 | ac_must_keep_next=false | |
2144 | for ac_pass in 1 2 | |
2145 | do | |
2146 | for ac_arg | |
2147 | do | |
2148 | case $ac_arg in | |
2149 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2150 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2151 | | -silent | --silent | --silen | --sile | --sil) | |
2152 | continue ;; | |
2153 | *\'*) | |
2154 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2155 | esac | |
2156 | case $ac_pass in | |
2157 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2158 | 2) | |
2159 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2160 | if test $ac_must_keep_next = true; then | |
2161 | ac_must_keep_next=false # Got value, back to normal. | |
2162 | else | |
2163 | case $ac_arg in | |
2164 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2165 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2166 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2167 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2168 | case "$ac_configure_args0 " in | |
2169 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2170 | esac | |
2171 | ;; | |
2172 | -* ) ac_must_keep_next=true ;; | |
2173 | esac | |
2174 | fi | |
2175 | as_fn_append ac_configure_args " '$ac_arg'" | |
2176 | ;; | |
2177 | esac | |
2178 | done | |
2179 | done | |
2180 | { ac_configure_args0=; unset ac_configure_args0;} | |
2181 | { ac_configure_args1=; unset ac_configure_args1;} | |
2182 | ||
2183 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2184 | # config.log. We remove comments because anyway the quotes in there | |
2185 | # would cause problems or look ugly. | |
2186 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2187 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2188 | trap 'exit_status=$? | |
2189 | # Save into config.log some information that might help in debugging. | |
2190 | { | |
2191 | echo | |
2192 | ||
f00f02a3 | 2193 | $as_echo "## ---------------- ## |
03385ed3 | 2194 | ## Cache variables. ## |
f00f02a3 | 2195 | ## ---------------- ##" |
03385ed3 | 2196 | echo |
2197 | # The following way of writing the cache mishandles newlines in values, | |
2198 | ( | |
2199 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2200 | eval ac_val=\$$ac_var | |
2201 | case $ac_val in #( | |
2202 | *${as_nl}*) | |
2203 | case $ac_var in #( | |
2204 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2205 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2206 | esac | |
2207 | case $ac_var in #( | |
2208 | _ | IFS | as_nl) ;; #( | |
2209 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2210 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2211 | esac ;; | |
2212 | esac | |
2213 | done | |
2214 | (set) 2>&1 | | |
2215 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2216 | *${as_nl}ac_space=\ *) | |
2217 | sed -n \ | |
2218 | "s/'\''/'\''\\\\'\'''\''/g; | |
2219 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2220 | ;; #( | |
2221 | *) | |
2222 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2223 | ;; | |
2224 | esac | | |
2225 | sort | |
2226 | ) | |
2227 | echo | |
2228 | ||
f00f02a3 | 2229 | $as_echo "## ----------------- ## |
03385ed3 | 2230 | ## Output variables. ## |
f00f02a3 | 2231 | ## ----------------- ##" |
03385ed3 | 2232 | echo |
2233 | for ac_var in $ac_subst_vars | |
2234 | do | |
2235 | eval ac_val=\$$ac_var | |
2236 | case $ac_val in | |
2237 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2238 | esac | |
2239 | $as_echo "$ac_var='\''$ac_val'\''" | |
2240 | done | sort | |
2241 | echo | |
2242 | ||
2243 | if test -n "$ac_subst_files"; then | |
f00f02a3 | 2244 | $as_echo "## ------------------- ## |
03385ed3 | 2245 | ## File substitutions. ## |
f00f02a3 | 2246 | ## ------------------- ##" |
03385ed3 | 2247 | echo |
2248 | for ac_var in $ac_subst_files | |
2249 | do | |
2250 | eval ac_val=\$$ac_var | |
2251 | case $ac_val in | |
2252 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2253 | esac | |
2254 | $as_echo "$ac_var='\''$ac_val'\''" | |
2255 | done | sort | |
2256 | echo | |
2257 | fi | |
2258 | ||
2259 | if test -s confdefs.h; then | |
f00f02a3 | 2260 | $as_echo "## ----------- ## |
03385ed3 | 2261 | ## confdefs.h. ## |
f00f02a3 | 2262 | ## ----------- ##" |
03385ed3 | 2263 | echo |
2264 | cat confdefs.h | |
2265 | echo | |
2266 | fi | |
2267 | test "$ac_signal" != 0 && | |
2268 | $as_echo "$as_me: caught signal $ac_signal" | |
2269 | $as_echo "$as_me: exit $exit_status" | |
2270 | } >&5 | |
2271 | rm -f core *.core core.conftest.* && | |
2272 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2273 | exit $exit_status | |
2274 | ' 0 | |
2275 | for ac_signal in 1 2 13 15; do | |
2276 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2277 | done | |
2278 | ac_signal=0 | |
2279 | ||
2280 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2281 | rm -f -r conftest* confdefs.h | |
2282 | ||
2283 | $as_echo "/* confdefs.h */" > confdefs.h | |
2284 | ||
2285 | # Predefined preprocessor variables. | |
2286 | ||
2287 | cat >>confdefs.h <<_ACEOF | |
2288 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2289 | _ACEOF | |
2290 | ||
2291 | cat >>confdefs.h <<_ACEOF | |
2292 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2293 | _ACEOF | |
2294 | ||
2295 | cat >>confdefs.h <<_ACEOF | |
2296 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2297 | _ACEOF | |
2298 | ||
2299 | cat >>confdefs.h <<_ACEOF | |
2300 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2301 | _ACEOF | |
2302 | ||
2303 | cat >>confdefs.h <<_ACEOF | |
2304 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2305 | _ACEOF | |
2306 | ||
2307 | cat >>confdefs.h <<_ACEOF | |
2308 | #define PACKAGE_URL "$PACKAGE_URL" | |
2309 | _ACEOF | |
2310 | ||
2311 | ||
2312 | # Let the site file select an alternate cache file if it wants to. | |
2313 | # Prefer an explicitly selected file to automatically selected ones. | |
2314 | ac_site_file1=NONE | |
2315 | ac_site_file2=NONE | |
2316 | if test -n "$CONFIG_SITE"; then | |
f00f02a3 | 2317 | # We do not want a PATH search for config.site. |
2318 | case $CONFIG_SITE in #(( | |
2319 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2320 | */*) ac_site_file1=$CONFIG_SITE;; | |
2321 | *) ac_site_file1=./$CONFIG_SITE;; | |
2322 | esac | |
03385ed3 | 2323 | elif test "x$prefix" != xNONE; then |
2324 | ac_site_file1=$prefix/share/config.site | |
2325 | ac_site_file2=$prefix/etc/config.site | |
2326 | else | |
2327 | ac_site_file1=$ac_default_prefix/share/config.site | |
2328 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2329 | fi | |
2330 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2331 | do | |
2332 | test "x$ac_site_file" = xNONE && continue | |
f00f02a3 | 2333 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
03385ed3 | 2334 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2335 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2336 | sed 's/^/| /' "$ac_site_file" >&5 | |
f00f02a3 | 2337 | . "$ac_site_file" \ |
2338 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2339 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2340 | as_fn_error $? "failed to load site script $ac_site_file | |
2341 | See \`config.log' for more details" "$LINENO" 5; } | |
03385ed3 | 2342 | fi |
2343 | done | |
2344 | ||
2345 | if test -r "$cache_file"; then | |
f00f02a3 | 2346 | # Some versions of bash will fail to source /dev/null (special files |
2347 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2348 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
03385ed3 | 2349 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2350 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2351 | case $cache_file in | |
2352 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2353 | *) . "./$cache_file";; | |
2354 | esac | |
2355 | fi | |
2356 | else | |
2357 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2358 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2359 | >$cache_file | |
2360 | fi | |
2361 | ||
2362 | # Check that the precious variables saved in the cache have kept the same | |
2363 | # value. | |
2364 | ac_cache_corrupted=false | |
2365 | for ac_var in $ac_precious_vars; do | |
2366 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2367 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2368 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2369 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2370 | case $ac_old_set,$ac_new_set in | |
2371 | set,) | |
2372 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2373 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2374 | ac_cache_corrupted=: ;; | |
2375 | ,set) | |
2376 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2377 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2378 | ac_cache_corrupted=: ;; | |
2379 | ,);; | |
2380 | *) | |
2381 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2382 | # differences in whitespace do not lead to failure. | |
2383 | ac_old_val_w=`echo x $ac_old_val` | |
2384 | ac_new_val_w=`echo x $ac_new_val` | |
2385 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2386 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2387 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2388 | ac_cache_corrupted=: | |
2389 | else | |
2390 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2391 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2392 | eval $ac_var=\$ac_old_val | |
2393 | fi | |
2394 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2395 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2396 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2397 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2398 | fi;; | |
2399 | esac | |
2400 | # Pass precious variables to config.status. | |
2401 | if test "$ac_new_set" = set; then | |
2402 | case $ac_new_val in | |
2403 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2404 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2405 | esac | |
2406 | case " $ac_configure_args " in | |
2407 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2408 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2409 | esac | |
2410 | fi | |
2411 | done | |
2412 | if $ac_cache_corrupted; then | |
2413 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2414 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2415 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2416 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
f00f02a3 | 2417 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
03385ed3 | 2418 | fi |
2419 | ## -------------------- ## | |
2420 | ## Main body of script. ## | |
2421 | ## -------------------- ## | |
2422 | ||
2423 | ac_ext=c | |
2424 | ac_cpp='$CPP $CPPFLAGS' | |
2425 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2426 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2427 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2428 | ||
2429 | ||
2430 | ||
2431 | ||
2432 | ||
2433 | ||
2434 | ac_config_headers="$ac_config_headers config.h" | |
2435 | ||
2436 | ||
2437 | # Default to --enable-multilib | |
2438 | # Check whether --enable-multilib was given. | |
2439 | if test "${enable_multilib+set}" = set; then : | |
2440 | enableval=$enable_multilib; case "$enableval" in | |
2441 | yes) multilib=yes ;; | |
2442 | no) multilib=no ;; | |
f00f02a3 | 2443 | *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;; |
03385ed3 | 2444 | esac |
2445 | else | |
2446 | multilib=yes | |
2447 | fi | |
2448 | ||
2449 | ||
2450 | # We may get other options which we leave undocumented: | |
2451 | # --with-target-subdir, --with-multisrctop, --with-multisubdir | |
2452 | # See config-ml.in if you want the gory details. | |
2453 | ||
2454 | if test "$srcdir" = "."; then | |
2455 | if test "$with_target_subdir" != "."; then | |
2456 | multi_basedir="$srcdir/$with_multisrctop../.." | |
2457 | else | |
2458 | multi_basedir="$srcdir/$with_multisrctop.." | |
2459 | fi | |
2460 | else | |
2461 | multi_basedir="$srcdir/.." | |
2462 | fi | |
2463 | ||
2464 | ||
2465 | # Even if the default multilib is not a cross compilation, | |
2466 | # it may be that some of the other multilibs are. | |
2467 | if test $cross_compiling = no && test $multilib = yes \ | |
2468 | && test "x${with_multisubdir}" != x ; then | |
2469 | cross_compiling=maybe | |
2470 | fi | |
2471 | ||
2472 | ac_config_commands="$ac_config_commands default-1" | |
2473 | ||
2474 | ac_aux_dir= | |
2475 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
f00f02a3 | 2476 | if test -f "$ac_dir/install-sh"; then |
2477 | ac_aux_dir=$ac_dir | |
2478 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2479 | break | |
2480 | elif test -f "$ac_dir/install.sh"; then | |
2481 | ac_aux_dir=$ac_dir | |
2482 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2483 | break | |
2484 | elif test -f "$ac_dir/shtool"; then | |
2485 | ac_aux_dir=$ac_dir | |
2486 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2487 | break | |
2488 | fi | |
03385ed3 | 2489 | done |
2490 | if test -z "$ac_aux_dir"; then | |
f00f02a3 | 2491 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
03385ed3 | 2492 | fi |
2493 | ||
2494 | # These three variables are undocumented and unsupported, | |
2495 | # and are intended to be withdrawn in a future Autoconf release. | |
2496 | # They can cause serious problems if a builder's source tree is in a directory | |
2497 | # whose full name contains unusual characters. | |
2498 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2499 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2500 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2501 | ||
2502 | ||
2503 | # Make sure we can run config.sub. | |
2504 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
f00f02a3 | 2505 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
03385ed3 | 2506 | |
2507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2508 | $as_echo_n "checking build system type... " >&6; } | |
f00f02a3 | 2509 | if ${ac_cv_build+:} false; then : |
03385ed3 | 2510 | $as_echo_n "(cached) " >&6 |
2511 | else | |
2512 | ac_build_alias=$build_alias | |
2513 | test "x$ac_build_alias" = x && | |
2514 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2515 | test "x$ac_build_alias" = x && | |
f00f02a3 | 2516 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
03385ed3 | 2517 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
f00f02a3 | 2518 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
03385ed3 | 2519 | |
2520 | fi | |
2521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2522 | $as_echo "$ac_cv_build" >&6; } | |
2523 | case $ac_cv_build in | |
2524 | *-*-*) ;; | |
f00f02a3 | 2525 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
03385ed3 | 2526 | esac |
2527 | build=$ac_cv_build | |
2528 | ac_save_IFS=$IFS; IFS='-' | |
2529 | set x $ac_cv_build | |
2530 | shift | |
2531 | build_cpu=$1 | |
2532 | build_vendor=$2 | |
2533 | shift; shift | |
2534 | # Remember, the first character of IFS is used to create $*, | |
2535 | # except with old shells: | |
2536 | build_os=$* | |
2537 | IFS=$ac_save_IFS | |
2538 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2539 | ||
2540 | ||
2541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
2542 | $as_echo_n "checking host system type... " >&6; } | |
f00f02a3 | 2543 | if ${ac_cv_host+:} false; then : |
03385ed3 | 2544 | $as_echo_n "(cached) " >&6 |
2545 | else | |
2546 | if test "x$host_alias" = x; then | |
2547 | ac_cv_host=$ac_cv_build | |
2548 | else | |
2549 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
f00f02a3 | 2550 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
03385ed3 | 2551 | fi |
2552 | ||
2553 | fi | |
2554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2555 | $as_echo "$ac_cv_host" >&6; } | |
2556 | case $ac_cv_host in | |
2557 | *-*-*) ;; | |
f00f02a3 | 2558 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
03385ed3 | 2559 | esac |
2560 | host=$ac_cv_host | |
2561 | ac_save_IFS=$IFS; IFS='-' | |
2562 | set x $ac_cv_host | |
2563 | shift | |
2564 | host_cpu=$1 | |
2565 | host_vendor=$2 | |
2566 | shift; shift | |
2567 | # Remember, the first character of IFS is used to create $*, | |
2568 | # except with old shells: | |
2569 | host_os=$* | |
2570 | IFS=$ac_save_IFS | |
2571 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2572 | ||
2573 | ||
2574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 | |
2575 | $as_echo_n "checking target system type... " >&6; } | |
f00f02a3 | 2576 | if ${ac_cv_target+:} false; then : |
03385ed3 | 2577 | $as_echo_n "(cached) " >&6 |
2578 | else | |
2579 | if test "x$target_alias" = x; then | |
2580 | ac_cv_target=$ac_cv_host | |
2581 | else | |
2582 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
f00f02a3 | 2583 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
03385ed3 | 2584 | fi |
2585 | ||
2586 | fi | |
2587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 | |
2588 | $as_echo "$ac_cv_target" >&6; } | |
2589 | case $ac_cv_target in | |
2590 | *-*-*) ;; | |
f00f02a3 | 2591 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
03385ed3 | 2592 | esac |
2593 | target=$ac_cv_target | |
2594 | ac_save_IFS=$IFS; IFS='-' | |
2595 | set x $ac_cv_target | |
2596 | shift | |
2597 | target_cpu=$1 | |
2598 | target_vendor=$2 | |
2599 | shift; shift | |
2600 | # Remember, the first character of IFS is used to create $*, | |
2601 | # except with old shells: | |
2602 | target_os=$* | |
2603 | IFS=$ac_save_IFS | |
2604 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
2605 | ||
2606 | ||
2607 | # The aliases save the names the user supplied, while $host etc. | |
2608 | # will get canonicalized. | |
2609 | test -n "$target_alias" && | |
2610 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2611 | NONENONEs,x,x, && | |
2612 | program_prefix=${target_alias}- | |
2613 | ||
79c21307 | 2614 | # Expand $ac_aux_dir to an absolute path. |
2615 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
03385ed3 | 2616 | |
79c21307 | 2617 | ac_ext=c |
2618 | ac_cpp='$CPP $CPPFLAGS' | |
2619 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2620 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2621 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2622 | if test -n "$ac_tool_prefix"; then | |
2623 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2624 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2626 | $as_echo_n "checking for $ac_word... " >&6; } | |
2627 | if ${ac_cv_prog_CC+:} false; then : | |
03385ed3 | 2628 | $as_echo_n "(cached) " >&6 |
2629 | else | |
79c21307 | 2630 | if test -n "$CC"; then |
2631 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2632 | else | |
2633 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
03385ed3 | 2634 | for as_dir in $PATH |
2635 | do | |
2636 | IFS=$as_save_IFS | |
2637 | test -z "$as_dir" && as_dir=. | |
79c21307 | 2638 | for ac_exec_ext in '' $ac_executable_extensions; do |
2639 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2640 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2641 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2642 | break 2 | |
2643 | fi | |
2644 | done | |
03385ed3 | 2645 | done |
2646 | IFS=$as_save_IFS | |
2647 | ||
03385ed3 | 2648 | fi |
03385ed3 | 2649 | fi |
79c21307 | 2650 | CC=$ac_cv_prog_CC |
2651 | if test -n "$CC"; then | |
2652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2653 | $as_echo "$CC" >&6; } | |
2654 | else | |
2655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2656 | $as_echo "no" >&6; } | |
2657 | fi | |
03385ed3 | 2658 | |
03385ed3 | 2659 | |
03385ed3 | 2660 | fi |
79c21307 | 2661 | if test -z "$ac_cv_prog_CC"; then |
2662 | ac_ct_CC=$CC | |
2663 | # Extract the first word of "gcc", so it can be a program name with args. | |
2664 | set dummy gcc; ac_word=$2 | |
03385ed3 | 2665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2666 | $as_echo_n "checking for $ac_word... " >&6; } | |
79c21307 | 2667 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
03385ed3 | 2668 | $as_echo_n "(cached) " >&6 |
2669 | else | |
79c21307 | 2670 | if test -n "$ac_ct_CC"; then |
2671 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
03385ed3 | 2672 | else |
2673 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2674 | for as_dir in $PATH | |
2675 | do | |
2676 | IFS=$as_save_IFS | |
2677 | test -z "$as_dir" && as_dir=. | |
2678 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 2679 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
79c21307 | 2680 | ac_cv_prog_ac_ct_CC="gcc" |
03385ed3 | 2681 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2682 | break 2 | |
2683 | fi | |
2684 | done | |
2685 | done | |
2686 | IFS=$as_save_IFS | |
2687 | ||
2688 | fi | |
2689 | fi | |
79c21307 | 2690 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2691 | if test -n "$ac_ct_CC"; then | |
2692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2693 | $as_echo "$ac_ct_CC" >&6; } | |
03385ed3 | 2694 | else |
2695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2696 | $as_echo "no" >&6; } | |
2697 | fi | |
2698 | ||
79c21307 | 2699 | if test "x$ac_ct_CC" = x; then |
2700 | CC="" | |
2701 | else | |
2702 | case $cross_compiling:$ac_tool_warned in | |
2703 | yes:) | |
2704 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2705 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2706 | ac_tool_warned=yes ;; | |
2707 | esac | |
2708 | CC=$ac_ct_CC | |
2709 | fi | |
2710 | else | |
2711 | CC="$ac_cv_prog_CC" | |
03385ed3 | 2712 | fi |
79c21307 | 2713 | |
2714 | if test -z "$CC"; then | |
2715 | if test -n "$ac_tool_prefix"; then | |
2716 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2717 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
03385ed3 | 2718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2719 | $as_echo_n "checking for $ac_word... " >&6; } | |
79c21307 | 2720 | if ${ac_cv_prog_CC+:} false; then : |
03385ed3 | 2721 | $as_echo_n "(cached) " >&6 |
2722 | else | |
79c21307 | 2723 | if test -n "$CC"; then |
2724 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
03385ed3 | 2725 | else |
2726 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2727 | for as_dir in $PATH | |
2728 | do | |
2729 | IFS=$as_save_IFS | |
2730 | test -z "$as_dir" && as_dir=. | |
2731 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 2732 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
79c21307 | 2733 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
03385ed3 | 2734 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2735 | break 2 | |
2736 | fi | |
2737 | done | |
2738 | done | |
2739 | IFS=$as_save_IFS | |
2740 | ||
2741 | fi | |
2742 | fi | |
79c21307 | 2743 | CC=$ac_cv_prog_CC |
2744 | if test -n "$CC"; then | |
2745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2746 | $as_echo "$CC" >&6; } | |
03385ed3 | 2747 | else |
2748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2749 | $as_echo "no" >&6; } | |
2750 | fi | |
2751 | ||
03385ed3 | 2752 | |
03385ed3 | 2753 | fi |
2754 | fi | |
79c21307 | 2755 | if test -z "$CC"; then |
2756 | # Extract the first word of "cc", so it can be a program name with args. | |
2757 | set dummy cc; ac_word=$2 | |
03385ed3 | 2758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2759 | $as_echo_n "checking for $ac_word... " >&6; } | |
79c21307 | 2760 | if ${ac_cv_prog_CC+:} false; then : |
03385ed3 | 2761 | $as_echo_n "(cached) " >&6 |
2762 | else | |
79c21307 | 2763 | if test -n "$CC"; then |
2764 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
03385ed3 | 2765 | else |
79c21307 | 2766 | ac_prog_rejected=no |
03385ed3 | 2767 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2768 | for as_dir in $PATH | |
2769 | do | |
2770 | IFS=$as_save_IFS | |
2771 | test -z "$as_dir" && as_dir=. | |
2772 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 2773 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
79c21307 | 2774 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2775 | ac_prog_rejected=yes | |
2776 | continue | |
2777 | fi | |
2778 | ac_cv_prog_CC="cc" | |
03385ed3 | 2779 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2780 | break 2 | |
2781 | fi | |
2782 | done | |
2783 | done | |
2784 | IFS=$as_save_IFS | |
2785 | ||
79c21307 | 2786 | if test $ac_prog_rejected = yes; then |
2787 | # We found a bogon in the path, so make sure we never use it. | |
2788 | set dummy $ac_cv_prog_CC | |
2789 | shift | |
2790 | if test $# != 0; then | |
2791 | # We chose a different compiler from the bogus one. | |
2792 | # However, it has the same basename, so the bogon will be chosen | |
2793 | # first if we set CC to just the basename; use the full file name. | |
2794 | shift | |
2795 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2796 | fi | |
03385ed3 | 2797 | fi |
2798 | fi | |
79c21307 | 2799 | fi |
2800 | CC=$ac_cv_prog_CC | |
2801 | if test -n "$CC"; then | |
2802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2803 | $as_echo "$CC" >&6; } | |
03385ed3 | 2804 | else |
2805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2806 | $as_echo "no" >&6; } | |
03385ed3 | 2807 | fi |
2808 | ||
2809 | ||
f00f02a3 | 2810 | fi |
79c21307 | 2811 | if test -z "$CC"; then |
2812 | if test -n "$ac_tool_prefix"; then | |
2813 | for ac_prog in cl.exe | |
2814 | do | |
2815 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2816 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
03385ed3 | 2817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2818 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 2819 | if ${ac_cv_prog_CC+:} false; then : |
03385ed3 | 2820 | $as_echo_n "(cached) " >&6 |
2821 | else | |
2822 | if test -n "$CC"; then | |
2823 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2824 | else | |
2825 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2826 | for as_dir in $PATH | |
2827 | do | |
2828 | IFS=$as_save_IFS | |
2829 | test -z "$as_dir" && as_dir=. | |
2830 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 2831 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
79c21307 | 2832 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
03385ed3 | 2833 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2834 | break 2 | |
2835 | fi | |
2836 | done | |
2837 | done | |
2838 | IFS=$as_save_IFS | |
2839 | ||
2840 | fi | |
2841 | fi | |
2842 | CC=$ac_cv_prog_CC | |
2843 | if test -n "$CC"; then | |
2844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2845 | $as_echo "$CC" >&6; } | |
2846 | else | |
2847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2848 | $as_echo "no" >&6; } | |
2849 | fi | |
2850 | ||
2851 | ||
79c21307 | 2852 | test -n "$CC" && break |
2853 | done | |
03385ed3 | 2854 | fi |
79c21307 | 2855 | if test -z "$CC"; then |
03385ed3 | 2856 | ac_ct_CC=$CC |
79c21307 | 2857 | for ac_prog in cl.exe |
2858 | do | |
2859 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2860 | set dummy $ac_prog; ac_word=$2 | |
03385ed3 | 2861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2862 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 2863 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
03385ed3 | 2864 | $as_echo_n "(cached) " >&6 |
2865 | else | |
2866 | if test -n "$ac_ct_CC"; then | |
2867 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2868 | else | |
2869 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2870 | for as_dir in $PATH | |
2871 | do | |
2872 | IFS=$as_save_IFS | |
2873 | test -z "$as_dir" && as_dir=. | |
2874 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 2875 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
79c21307 | 2876 | ac_cv_prog_ac_ct_CC="$ac_prog" |
03385ed3 | 2877 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2878 | break 2 | |
2879 | fi | |
2880 | done | |
2881 | done | |
2882 | IFS=$as_save_IFS | |
2883 | ||
2884 | fi | |
2885 | fi | |
2886 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2887 | if test -n "$ac_ct_CC"; then | |
2888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2889 | $as_echo "$ac_ct_CC" >&6; } | |
2890 | else | |
2891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2892 | $as_echo "no" >&6; } | |
2893 | fi | |
79c21307 | 2894 | |
2895 | ||
2896 | test -n "$ac_ct_CC" && break | |
2897 | done | |
03385ed3 | 2898 | |
2899 | if test "x$ac_ct_CC" = x; then | |
2900 | CC="" | |
2901 | else | |
2902 | case $cross_compiling:$ac_tool_warned in | |
2903 | yes:) | |
2904 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2905 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2906 | ac_tool_warned=yes ;; | |
2907 | esac | |
2908 | CC=$ac_ct_CC | |
2909 | fi | |
2910 | fi | |
2911 | ||
2912 | fi | |
2913 | ||
2914 | ||
2915 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2916 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
f00f02a3 | 2917 | as_fn_error $? "no acceptable C compiler found in \$PATH |
2918 | See \`config.log' for more details" "$LINENO" 5; } | |
03385ed3 | 2919 | |
2920 | # Provide some information about the compiler. | |
2921 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
2922 | set X $ac_compile | |
2923 | ac_compiler=$2 | |
2924 | for ac_option in --version -v -V -qversion; do | |
2925 | { { ac_try="$ac_compiler $ac_option >&5" | |
2926 | case "(($ac_try" in | |
2927 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2928 | *) ac_try_echo=$ac_try;; | |
2929 | esac | |
2930 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2931 | $as_echo "$ac_try_echo"; } >&5 | |
2932 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
2933 | ac_status=$? | |
2934 | if test -s conftest.err; then | |
2935 | sed '10a\ | |
2936 | ... rest of stderr output deleted ... | |
2937 | 10q' conftest.err >conftest.er1 | |
2938 | cat conftest.er1 >&5 | |
03385ed3 | 2939 | fi |
f00f02a3 | 2940 | rm -f conftest.er1 conftest.err |
03385ed3 | 2941 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2942 | test $ac_status = 0; } | |
2943 | done | |
2944 | ||
2945 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2946 | /* end confdefs.h. */ | |
2947 | ||
2948 | int | |
2949 | main () | |
2950 | { | |
2951 | ||
2952 | ; | |
2953 | return 0; | |
2954 | } | |
2955 | _ACEOF | |
2956 | ac_clean_files_save=$ac_clean_files | |
f00f02a3 | 2957 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
03385ed3 | 2958 | # Try to create an executable without -o first, disregard a.out. |
2959 | # It will help us diagnose broken compilers, and finding out an intuition | |
2960 | # of exeext. | |
f00f02a3 | 2961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
2962 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
03385ed3 | 2963 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
2964 | ||
2965 | # The possible output files: | |
2966 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2967 | ||
2968 | ac_rmfiles= | |
2969 | for ac_file in $ac_files | |
2970 | do | |
2971 | case $ac_file in | |
2972 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2973 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2974 | esac | |
2975 | done | |
2976 | rm -f $ac_rmfiles | |
2977 | ||
2978 | if { { ac_try="$ac_link_default" | |
2979 | case "(($ac_try" in | |
2980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2981 | *) ac_try_echo=$ac_try;; | |
2982 | esac | |
2983 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2984 | $as_echo "$ac_try_echo"; } >&5 | |
2985 | (eval "$ac_link_default") 2>&5 | |
2986 | ac_status=$? | |
2987 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2988 | test $ac_status = 0; }; then : | |
2989 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
2990 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2991 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2992 | # so that the user can short-circuit this test for compilers unknown to | |
2993 | # Autoconf. | |
2994 | for ac_file in $ac_files '' | |
2995 | do | |
2996 | test -f "$ac_file" || continue | |
2997 | case $ac_file in | |
2998 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
2999 | ;; | |
3000 | [ab].out ) | |
3001 | # We found the default executable, but exeext='' is most | |
3002 | # certainly right. | |
3003 | break;; | |
3004 | *.* ) | |
3005 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3006 | then :; else | |
3007 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3008 | fi | |
3009 | # We set ac_cv_exeext here because the later test for it is not | |
3010 | # safe: cross compilers may not add the suffix if given an `-o' | |
3011 | # argument, so we may need to know it at that point already. | |
3012 | # Even if this section looks crufty: it has the advantage of | |
3013 | # actually working. | |
3014 | break;; | |
3015 | * ) | |
3016 | break;; | |
3017 | esac | |
3018 | done | |
3019 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3020 | ||
3021 | else | |
3022 | ac_file='' | |
3023 | fi | |
03385ed3 | 3024 | if test -z "$ac_file"; then : |
f00f02a3 | 3025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3026 | $as_echo "no" >&6; } | |
3027 | $as_echo "$as_me: failed program was:" >&5 | |
03385ed3 | 3028 | sed 's/^/| /' conftest.$ac_ext >&5 |
3029 | ||
3030 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3031 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
f00f02a3 | 3032 | as_fn_error 77 "C compiler cannot create executables |
3033 | See \`config.log' for more details" "$LINENO" 5; } | |
3034 | else | |
3035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3036 | $as_echo "yes" >&6; } | |
03385ed3 | 3037 | fi |
f00f02a3 | 3038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3039 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3041 | $as_echo "$ac_file" >&6; } | |
03385ed3 | 3042 | ac_exeext=$ac_cv_exeext |
3043 | ||
f00f02a3 | 3044 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
03385ed3 | 3045 | ac_clean_files=$ac_clean_files_save |
03385ed3 | 3046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
3047 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3048 | if { { ac_try="$ac_link" | |
3049 | case "(($ac_try" in | |
3050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3051 | *) ac_try_echo=$ac_try;; | |
3052 | esac | |
3053 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3054 | $as_echo "$ac_try_echo"; } >&5 | |
3055 | (eval "$ac_link") 2>&5 | |
3056 | ac_status=$? | |
3057 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3058 | test $ac_status = 0; }; then : | |
3059 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3060 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3061 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3062 | # `rm'. | |
3063 | for ac_file in conftest.exe conftest conftest.*; do | |
3064 | test -f "$ac_file" || continue | |
3065 | case $ac_file in | |
3066 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3067 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3068 | break;; | |
3069 | * ) break;; | |
3070 | esac | |
3071 | done | |
3072 | else | |
3073 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3074 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
f00f02a3 | 3075 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
3076 | See \`config.log' for more details" "$LINENO" 5; } | |
03385ed3 | 3077 | fi |
f00f02a3 | 3078 | rm -f conftest conftest$ac_cv_exeext |
03385ed3 | 3079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3080 | $as_echo "$ac_cv_exeext" >&6; } | |
3081 | ||
3082 | rm -f conftest.$ac_ext | |
3083 | EXEEXT=$ac_cv_exeext | |
3084 | ac_exeext=$EXEEXT | |
f00f02a3 | 3085 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3086 | /* end confdefs.h. */ | |
3087 | #include <stdio.h> | |
3088 | int | |
3089 | main () | |
3090 | { | |
3091 | FILE *f = fopen ("conftest.out", "w"); | |
3092 | return ferror (f) || fclose (f) != 0; | |
3093 | ||
3094 | ; | |
3095 | return 0; | |
3096 | } | |
3097 | _ACEOF | |
3098 | ac_clean_files="$ac_clean_files conftest.out" | |
3099 | # Check that the compiler produces executables we can run. If not, either | |
3100 | # the compiler is broken, or we cross compile. | |
3101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3102 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3103 | if test "$cross_compiling" != yes; then | |
3104 | { { ac_try="$ac_link" | |
3105 | case "(($ac_try" in | |
3106 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3107 | *) ac_try_echo=$ac_try;; | |
3108 | esac | |
3109 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3110 | $as_echo "$ac_try_echo"; } >&5 | |
3111 | (eval "$ac_link") 2>&5 | |
3112 | ac_status=$? | |
3113 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3114 | test $ac_status = 0; } | |
3115 | if { ac_try='./conftest$ac_cv_exeext' | |
3116 | { { case "(($ac_try" in | |
3117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3118 | *) ac_try_echo=$ac_try;; | |
3119 | esac | |
3120 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3121 | $as_echo "$ac_try_echo"; } >&5 | |
3122 | (eval "$ac_try") 2>&5 | |
3123 | ac_status=$? | |
3124 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3125 | test $ac_status = 0; }; }; then | |
3126 | cross_compiling=no | |
3127 | else | |
3128 | if test "$cross_compiling" = maybe; then | |
3129 | cross_compiling=yes | |
3130 | else | |
3131 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3132 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3133 | as_fn_error $? "cannot run C compiled programs. | |
3134 | If you meant to cross compile, use \`--host'. | |
3135 | See \`config.log' for more details" "$LINENO" 5; } | |
3136 | fi | |
3137 | fi | |
3138 | fi | |
3139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3140 | $as_echo "$cross_compiling" >&6; } | |
3141 | ||
3142 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3143 | ac_clean_files=$ac_clean_files_save | |
03385ed3 | 3144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3145 | $as_echo_n "checking for suffix of object files... " >&6; } | |
f00f02a3 | 3146 | if ${ac_cv_objext+:} false; then : |
03385ed3 | 3147 | $as_echo_n "(cached) " >&6 |
3148 | else | |
3149 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3150 | /* end confdefs.h. */ | |
3151 | ||
3152 | int | |
3153 | main () | |
3154 | { | |
3155 | ||
3156 | ; | |
3157 | return 0; | |
3158 | } | |
3159 | _ACEOF | |
3160 | rm -f conftest.o conftest.obj | |
3161 | if { { ac_try="$ac_compile" | |
3162 | case "(($ac_try" in | |
3163 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3164 | *) ac_try_echo=$ac_try;; | |
3165 | esac | |
3166 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3167 | $as_echo "$ac_try_echo"; } >&5 | |
3168 | (eval "$ac_compile") 2>&5 | |
3169 | ac_status=$? | |
3170 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3171 | test $ac_status = 0; }; then : | |
3172 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3173 | test -f "$ac_file" || continue; | |
3174 | case $ac_file in | |
3175 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3176 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3177 | break;; | |
3178 | esac | |
3179 | done | |
3180 | else | |
3181 | $as_echo "$as_me: failed program was:" >&5 | |
3182 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3183 | ||
3184 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3185 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
f00f02a3 | 3186 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
3187 | See \`config.log' for more details" "$LINENO" 5; } | |
03385ed3 | 3188 | fi |
3189 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3190 | fi | |
3191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3192 | $as_echo "$ac_cv_objext" >&6; } | |
3193 | OBJEXT=$ac_cv_objext | |
3194 | ac_objext=$OBJEXT | |
3195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3196 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
f00f02a3 | 3197 | if ${ac_cv_c_compiler_gnu+:} false; then : |
03385ed3 | 3198 | $as_echo_n "(cached) " >&6 |
3199 | else | |
3200 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3201 | /* end confdefs.h. */ | |
3202 | ||
3203 | int | |
3204 | main () | |
3205 | { | |
3206 | #ifndef __GNUC__ | |
3207 | choke me | |
3208 | #endif | |
3209 | ||
3210 | ; | |
3211 | return 0; | |
3212 | } | |
3213 | _ACEOF | |
3214 | if ac_fn_c_try_compile "$LINENO"; then : | |
3215 | ac_compiler_gnu=yes | |
3216 | else | |
3217 | ac_compiler_gnu=no | |
3218 | fi | |
3219 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3220 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3221 | ||
3222 | fi | |
3223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
3224 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3225 | if test $ac_compiler_gnu = yes; then | |
3226 | GCC=yes | |
3227 | else | |
3228 | GCC= | |
3229 | fi | |
3230 | ac_test_CFLAGS=${CFLAGS+set} | |
3231 | ac_save_CFLAGS=$CFLAGS | |
3232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3233 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
f00f02a3 | 3234 | if ${ac_cv_prog_cc_g+:} false; then : |
03385ed3 | 3235 | $as_echo_n "(cached) " >&6 |
3236 | else | |
3237 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3238 | ac_c_werror_flag=yes | |
3239 | ac_cv_prog_cc_g=no | |
3240 | CFLAGS="-g" | |
3241 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3242 | /* end confdefs.h. */ | |
3243 | ||
3244 | int | |
3245 | main () | |
3246 | { | |
3247 | ||
3248 | ; | |
3249 | return 0; | |
3250 | } | |
3251 | _ACEOF | |
3252 | if ac_fn_c_try_compile "$LINENO"; then : | |
3253 | ac_cv_prog_cc_g=yes | |
3254 | else | |
3255 | CFLAGS="" | |
3256 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3257 | /* end confdefs.h. */ | |
3258 | ||
3259 | int | |
3260 | main () | |
3261 | { | |
3262 | ||
3263 | ; | |
3264 | return 0; | |
3265 | } | |
3266 | _ACEOF | |
3267 | if ac_fn_c_try_compile "$LINENO"; then : | |
3268 | ||
3269 | else | |
3270 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3271 | CFLAGS="-g" | |
3272 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3273 | /* end confdefs.h. */ | |
3274 | ||
3275 | int | |
3276 | main () | |
3277 | { | |
3278 | ||
3279 | ; | |
3280 | return 0; | |
3281 | } | |
3282 | _ACEOF | |
3283 | if ac_fn_c_try_compile "$LINENO"; then : | |
3284 | ac_cv_prog_cc_g=yes | |
3285 | fi | |
3286 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3287 | fi | |
3288 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3289 | fi | |
3290 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3291 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3292 | fi | |
3293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3294 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3295 | if test "$ac_test_CFLAGS" = set; then | |
3296 | CFLAGS=$ac_save_CFLAGS | |
3297 | elif test $ac_cv_prog_cc_g = yes; then | |
3298 | if test "$GCC" = yes; then | |
3299 | CFLAGS="-g -O2" | |
3300 | else | |
3301 | CFLAGS="-g" | |
3302 | fi | |
3303 | else | |
3304 | if test "$GCC" = yes; then | |
3305 | CFLAGS="-O2" | |
3306 | else | |
3307 | CFLAGS= | |
3308 | fi | |
3309 | fi | |
3310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
3311 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
f00f02a3 | 3312 | if ${ac_cv_prog_cc_c89+:} false; then : |
03385ed3 | 3313 | $as_echo_n "(cached) " >&6 |
3314 | else | |
3315 | ac_cv_prog_cc_c89=no | |
3316 | ac_save_CC=$CC | |
3317 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3318 | /* end confdefs.h. */ | |
3319 | #include <stdarg.h> | |
3320 | #include <stdio.h> | |
f00f02a3 | 3321 | struct stat; |
03385ed3 | 3322 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3323 | struct buf { int x; }; | |
3324 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3325 | static char *e (p, i) | |
3326 | char **p; | |
3327 | int i; | |
3328 | { | |
3329 | return p[i]; | |
3330 | } | |
3331 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3332 | { | |
3333 | char *s; | |
3334 | va_list v; | |
3335 | va_start (v,p); | |
3336 | s = g (p, va_arg (v,int)); | |
3337 | va_end (v); | |
3338 | return s; | |
3339 | } | |
3340 | ||
3341 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3342 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3343 | These don't provoke an error unfortunately, instead are silently treated | |
3344 | as 'x'. The following induces an error, until -std is added to get | |
3345 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3346 | array size at least. It's necessary to write '\x00'==0 to get something | |
3347 | that's true only with -std. */ | |
3348 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3349 | ||
3350 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3351 | inside strings and character constants. */ | |
3352 | #define FOO(x) 'x' | |
3353 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3354 | ||
3355 | int test (int i, double x); | |
3356 | struct s1 {int (*f) (int a);}; | |
3357 | struct s2 {int (*f) (double a);}; | |
3358 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3359 | int argc; | |
3360 | char **argv; | |
3361 | int | |
3362 | main () | |
3363 | { | |
3364 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3365 | ; | |
3366 | return 0; | |
3367 | } | |
3368 | _ACEOF | |
3369 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3370 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3371 | do | |
3372 | CC="$ac_save_CC $ac_arg" | |
3373 | if ac_fn_c_try_compile "$LINENO"; then : | |
3374 | ac_cv_prog_cc_c89=$ac_arg | |
3375 | fi | |
3376 | rm -f core conftest.err conftest.$ac_objext | |
3377 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3378 | done | |
3379 | rm -f conftest.$ac_ext | |
3380 | CC=$ac_save_CC | |
3381 | ||
3382 | fi | |
3383 | # AC_CACHE_VAL | |
3384 | case "x$ac_cv_prog_cc_c89" in | |
3385 | x) | |
3386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3387 | $as_echo "none needed" >&6; } ;; | |
3388 | xno) | |
3389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3390 | $as_echo "unsupported" >&6; } ;; | |
3391 | *) | |
3392 | CC="$CC $ac_cv_prog_cc_c89" | |
3393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3394 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
3395 | esac | |
3396 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
3397 | ||
3398 | fi | |
3399 | ||
3400 | ac_ext=c | |
3401 | ac_cpp='$CPP $CPPFLAGS' | |
3402 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3403 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3404 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3405 | ||
f00f02a3 | 3406 | ac_ext=c |
3407 | ac_cpp='$CPP $CPPFLAGS' | |
3408 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3409 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3410 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
3412 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
3413 | if ${am_cv_prog_cc_c_o+:} false; then : | |
3414 | $as_echo_n "(cached) " >&6 | |
3415 | else | |
3416 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3417 | /* end confdefs.h. */ | |
3418 | ||
3419 | int | |
3420 | main () | |
3421 | { | |
3422 | ||
3423 | ; | |
3424 | return 0; | |
3425 | } | |
3426 | _ACEOF | |
3427 | # Make sure it works both with $CC and with simple cc. | |
3428 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
3429 | # compilers refuse to overwrite an existing .o file with -o, | |
3430 | # though they will create one. | |
3431 | am_cv_prog_cc_c_o=yes | |
3432 | for am_i in 1 2; do | |
3433 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
3434 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
3435 | ac_status=$? | |
3436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3437 | (exit $ac_status); } \ | |
3438 | && test -f conftest2.$ac_objext; then | |
3439 | : OK | |
3440 | else | |
3441 | am_cv_prog_cc_c_o=no | |
3442 | break | |
3443 | fi | |
3444 | done | |
3445 | rm -f core conftest* | |
3446 | unset am_i | |
3447 | fi | |
3448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
3449 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
3450 | if test "$am_cv_prog_cc_c_o" != yes; then | |
3451 | # Losing compiler, so override with the script. | |
3452 | # FIXME: It is wrong to rewrite CC. | |
3453 | # But if we don't then we get into trouble of one sort or another. | |
3454 | # A longer-term fix would be to have automake use am__CC in this case, | |
3455 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
3456 | CC="$am_aux_dir/compile $CC" | |
3457 | fi | |
3458 | ac_ext=c | |
3459 | ac_cpp='$CPP $CPPFLAGS' | |
3460 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3461 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3462 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3463 | ||
3464 | ||
03385ed3 | 3465 | |
3466 | ac_ext=c | |
3467 | ac_cpp='$CPP $CPPFLAGS' | |
3468 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3469 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3470 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
79c21307 | 3471 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
3472 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
3473 | # On Suns, sometimes $CPP names a directory. | |
3474 | if test -n "$CPP" && test -d "$CPP"; then | |
3475 | CPP= | |
3476 | fi | |
3477 | if test -z "$CPP"; then | |
3478 | if ${ac_cv_prog_CPP+:} false; then : | |
03385ed3 | 3479 | $as_echo_n "(cached) " >&6 |
3480 | else | |
79c21307 | 3481 | # Double quotes because CPP needs to be expanded |
3482 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3483 | do | |
3484 | ac_preproc_ok=false | |
3485 | for ac_c_preproc_warn_flag in '' yes | |
03385ed3 | 3486 | do |
79c21307 | 3487 | # Use a header file that comes with gcc, so configuring glibc |
3488 | # with a fresh cross-compiler works. | |
3489 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3490 | # <limits.h> exists even on freestanding compilers. | |
3491 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3492 | # not just through cpp. "Syntax error" is here to catch this case. | |
3493 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3494 | /* end confdefs.h. */ | |
3495 | #ifdef __STDC__ | |
3496 | # include <limits.h> | |
3497 | #else | |
3498 | # include <assert.h> | |
3499 | #endif | |
3500 | Syntax error | |
3501 | _ACEOF | |
3502 | if ac_fn_c_try_cpp "$LINENO"; then : | |
03385ed3 | 3503 | |
03385ed3 | 3504 | else |
79c21307 | 3505 | # Broken: fails on valid input. |
3506 | continue | |
03385ed3 | 3507 | fi |
79c21307 | 3508 | rm -f conftest.err conftest.i conftest.$ac_ext |
03385ed3 | 3509 | |
79c21307 | 3510 | # OK, works on sane cases. Now check whether nonexistent headers |
3511 | # can be detected and how. | |
3512 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3513 | /* end confdefs.h. */ | |
3514 | #include <ac_nonexistent.h> | |
3515 | _ACEOF | |
3516 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3517 | # Broken: success on invalid input. | |
3518 | continue | |
03385ed3 | 3519 | else |
79c21307 | 3520 | # Passes both tests. |
3521 | ac_preproc_ok=: | |
3522 | break | |
3523 | fi | |
3524 | rm -f conftest.err conftest.i conftest.$ac_ext | |
03385ed3 | 3525 | |
79c21307 | 3526 | done |
3527 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3528 | rm -f conftest.i conftest.err conftest.$ac_ext | |
3529 | if $ac_preproc_ok; then : | |
3530 | break | |
03385ed3 | 3531 | fi |
79c21307 | 3532 | |
3533 | done | |
3534 | ac_cv_prog_CPP=$CPP | |
3535 | ||
03385ed3 | 3536 | fi |
79c21307 | 3537 | CPP=$ac_cv_prog_CPP |
03385ed3 | 3538 | else |
79c21307 | 3539 | ac_cv_prog_CPP=$CPP |
03385ed3 | 3540 | fi |
79c21307 | 3541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
3542 | $as_echo "$CPP" >&6; } | |
3543 | ac_preproc_ok=false | |
3544 | for ac_c_preproc_warn_flag in '' yes | |
3545 | do | |
3546 | # Use a header file that comes with gcc, so configuring glibc | |
3547 | # with a fresh cross-compiler works. | |
3548 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3549 | # <limits.h> exists even on freestanding compilers. | |
3550 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3551 | # not just through cpp. "Syntax error" is here to catch this case. | |
3552 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3553 | /* end confdefs.h. */ | |
3554 | #ifdef __STDC__ | |
3555 | # include <limits.h> | |
3556 | #else | |
3557 | # include <assert.h> | |
3558 | #endif | |
3559 | Syntax error | |
3560 | _ACEOF | |
3561 | if ac_fn_c_try_cpp "$LINENO"; then : | |
03385ed3 | 3562 | |
03385ed3 | 3563 | else |
79c21307 | 3564 | # Broken: fails on valid input. |
3565 | continue | |
03385ed3 | 3566 | fi |
79c21307 | 3567 | rm -f conftest.err conftest.i conftest.$ac_ext |
03385ed3 | 3568 | |
79c21307 | 3569 | # OK, works on sane cases. Now check whether nonexistent headers |
3570 | # can be detected and how. | |
3571 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3572 | /* end confdefs.h. */ | |
3573 | #include <ac_nonexistent.h> | |
3574 | _ACEOF | |
3575 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3576 | # Broken: success on invalid input. | |
3577 | continue | |
03385ed3 | 3578 | else |
79c21307 | 3579 | # Passes both tests. |
3580 | ac_preproc_ok=: | |
3581 | break | |
3582 | fi | |
3583 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3584 | ||
03385ed3 | 3585 | done |
79c21307 | 3586 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
3587 | rm -f conftest.i conftest.err conftest.$ac_ext | |
3588 | if $ac_preproc_ok; then : | |
03385ed3 | 3589 | |
03385ed3 | 3590 | else |
79c21307 | 3591 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3592 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3593 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
3594 | See \`config.log' for more details" "$LINENO" 5; } | |
03385ed3 | 3595 | fi |
3596 | ||
79c21307 | 3597 | ac_ext=c |
3598 | ac_cpp='$CPP $CPPFLAGS' | |
3599 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3600 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3601 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
03385ed3 | 3602 | |
79c21307 | 3603 | |
3604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
3605 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
3606 | if ${ac_cv_path_GREP+:} false; then : | |
03385ed3 | 3607 | $as_echo_n "(cached) " >&6 |
3608 | else | |
79c21307 | 3609 | if test -z "$GREP"; then |
3610 | ac_path_GREP_found=false | |
3611 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3612 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3613 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
03385ed3 | 3614 | do |
3615 | IFS=$as_save_IFS | |
3616 | test -z "$as_dir" && as_dir=. | |
79c21307 | 3617 | for ac_prog in grep ggrep; do |
03385ed3 | 3618 | for ac_exec_ext in '' $ac_executable_extensions; do |
79c21307 | 3619 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
3620 | as_fn_executable_p "$ac_path_GREP" || continue | |
3621 | # Check for GNU ac_path_GREP and select it if it is found. | |
3622 | # Check for GNU $ac_path_GREP | |
3623 | case `"$ac_path_GREP" --version 2>&1` in | |
3624 | *GNU*) | |
3625 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3626 | *) | |
3627 | ac_count=0 | |
3628 | $as_echo_n 0123456789 >"conftest.in" | |
3629 | while : | |
3630 | do | |
3631 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3632 | mv "conftest.tmp" "conftest.in" | |
3633 | cp "conftest.in" "conftest.nl" | |
3634 | $as_echo 'GREP' >> "conftest.nl" | |
3635 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3636 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3637 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3638 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3639 | # Best one so far, save it but keep looking for a better one | |
3640 | ac_cv_path_GREP="$ac_path_GREP" | |
3641 | ac_path_GREP_max=$ac_count | |
3642 | fi | |
3643 | # 10*(2^10) chars as input seems more than enough | |
3644 | test $ac_count -gt 10 && break | |
03385ed3 | 3645 | done |
79c21307 | 3646 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
3647 | esac | |
03385ed3 | 3648 | |
79c21307 | 3649 | $ac_path_GREP_found && break 3 |
3650 | done | |
3651 | done | |
3652 | done | |
3653 | IFS=$as_save_IFS | |
3654 | if test -z "$ac_cv_path_GREP"; then | |
3655 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
03385ed3 | 3656 | fi |
03385ed3 | 3657 | else |
79c21307 | 3658 | ac_cv_path_GREP=$GREP |
03385ed3 | 3659 | fi |
3660 | ||
03385ed3 | 3661 | fi |
79c21307 | 3662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
3663 | $as_echo "$ac_cv_path_GREP" >&6; } | |
3664 | GREP="$ac_cv_path_GREP" | |
3665 | ||
3666 | ||
3667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
3668 | $as_echo_n "checking for egrep... " >&6; } | |
3669 | if ${ac_cv_path_EGREP+:} false; then : | |
03385ed3 | 3670 | $as_echo_n "(cached) " >&6 |
3671 | else | |
79c21307 | 3672 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3673 | then ac_cv_path_EGREP="$GREP -E" | |
3674 | else | |
3675 | if test -z "$EGREP"; then | |
3676 | ac_path_EGREP_found=false | |
3677 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3678 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3679 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3680 | do | |
03385ed3 | 3681 | IFS=$as_save_IFS |
3682 | test -z "$as_dir" && as_dir=. | |
79c21307 | 3683 | for ac_prog in egrep; do |
03385ed3 | 3684 | for ac_exec_ext in '' $ac_executable_extensions; do |
79c21307 | 3685 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
3686 | as_fn_executable_p "$ac_path_EGREP" || continue | |
3687 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3688 | # Check for GNU $ac_path_EGREP | |
3689 | case `"$ac_path_EGREP" --version 2>&1` in | |
3690 | *GNU*) | |
3691 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3692 | *) | |
3693 | ac_count=0 | |
3694 | $as_echo_n 0123456789 >"conftest.in" | |
3695 | while : | |
3696 | do | |
3697 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3698 | mv "conftest.tmp" "conftest.in" | |
3699 | cp "conftest.in" "conftest.nl" | |
3700 | $as_echo 'EGREP' >> "conftest.nl" | |
3701 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3702 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3703 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3704 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3705 | # Best one so far, save it but keep looking for a better one | |
3706 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3707 | ac_path_EGREP_max=$ac_count | |
3708 | fi | |
3709 | # 10*(2^10) chars as input seems more than enough | |
3710 | test $ac_count -gt 10 && break | |
03385ed3 | 3711 | done |
79c21307 | 3712 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
3713 | esac | |
03385ed3 | 3714 | |
79c21307 | 3715 | $ac_path_EGREP_found && break 3 |
3716 | done | |
03385ed3 | 3717 | done |
03385ed3 | 3718 | done |
3719 | IFS=$as_save_IFS | |
79c21307 | 3720 | if test -z "$ac_cv_path_EGREP"; then |
3721 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
03385ed3 | 3722 | fi |
79c21307 | 3723 | else |
3724 | ac_cv_path_EGREP=$EGREP | |
03385ed3 | 3725 | fi |
3726 | ||
79c21307 | 3727 | fi |
03385ed3 | 3728 | fi |
79c21307 | 3729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
3730 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
3731 | EGREP="$ac_cv_path_EGREP" | |
03385ed3 | 3732 | |
3733 | ||
79c21307 | 3734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
3735 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
3736 | if ${ac_cv_header_stdc+:} false; then : | |
03385ed3 | 3737 | $as_echo_n "(cached) " >&6 |
3738 | else | |
3739 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3740 | /* end confdefs.h. */ | |
79c21307 | 3741 | #include <stdlib.h> |
3742 | #include <stdarg.h> | |
3743 | #include <string.h> | |
3744 | #include <float.h> | |
03385ed3 | 3745 | |
3746 | int | |
3747 | main () | |
3748 | { | |
03385ed3 | 3749 | |
3750 | ; | |
3751 | return 0; | |
3752 | } | |
3753 | _ACEOF | |
3754 | if ac_fn_c_try_compile "$LINENO"; then : | |
79c21307 | 3755 | ac_cv_header_stdc=yes |
03385ed3 | 3756 | else |
79c21307 | 3757 | ac_cv_header_stdc=no |
03385ed3 | 3758 | fi |
3759 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
03385ed3 | 3760 | |
79c21307 | 3761 | if test $ac_cv_header_stdc = yes; then |
3762 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3763 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3764 | /* end confdefs.h. */ | |
3765 | #include <string.h> | |
3766 | ||
3767 | _ACEOF | |
3768 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3769 | $EGREP "memchr" >/dev/null 2>&1; then : | |
3770 | ||
03385ed3 | 3771 | else |
79c21307 | 3772 | ac_cv_header_stdc=no |
03385ed3 | 3773 | fi |
79c21307 | 3774 | rm -f conftest* |
03385ed3 | 3775 | |
79c21307 | 3776 | fi |
3777 | ||
3778 | if test $ac_cv_header_stdc = yes; then | |
3779 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3780 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3781 | /* end confdefs.h. */ | |
3782 | #include <stdlib.h> | |
03385ed3 | 3783 | |
03385ed3 | 3784 | _ACEOF |
79c21307 | 3785 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3786 | $EGREP "free" >/dev/null 2>&1; then : | |
3787 | ||
03385ed3 | 3788 | else |
79c21307 | 3789 | ac_cv_header_stdc=no |
3790 | fi | |
3791 | rm -f conftest* | |
3792 | ||
3793 | fi | |
3794 | ||
3795 | if test $ac_cv_header_stdc = yes; then | |
3796 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3797 | if test "$cross_compiling" = yes; then : | |
3798 | : | |
3799 | else | |
3800 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
03385ed3 | 3801 | /* end confdefs.h. */ |
79c21307 | 3802 | #include <ctype.h> |
3803 | #include <stdlib.h> | |
3804 | #if ((' ' & 0x0FF) == 0x020) | |
3805 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3806 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3807 | #else | |
3808 | # define ISLOWER(c) \ | |
3809 | (('a' <= (c) && (c) <= 'i') \ | |
3810 | || ('j' <= (c) && (c) <= 'r') \ | |
3811 | || ('s' <= (c) && (c) <= 'z')) | |
3812 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3813 | #endif | |
03385ed3 | 3814 | |
79c21307 | 3815 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
03385ed3 | 3816 | int |
3817 | main () | |
3818 | { | |
79c21307 | 3819 | int i; |
3820 | for (i = 0; i < 256; i++) | |
3821 | if (XOR (islower (i), ISLOWER (i)) | |
3822 | || toupper (i) != TOUPPER (i)) | |
3823 | return 2; | |
03385ed3 | 3824 | return 0; |
3825 | } | |
3826 | _ACEOF | |
79c21307 | 3827 | if ac_fn_c_try_run "$LINENO"; then : |
03385ed3 | 3828 | |
3829 | else | |
79c21307 | 3830 | ac_cv_header_stdc=no |
03385ed3 | 3831 | fi |
79c21307 | 3832 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
3833 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
03385ed3 | 3834 | fi |
79c21307 | 3835 | |
03385ed3 | 3836 | fi |
03385ed3 | 3837 | fi |
79c21307 | 3838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
3839 | $as_echo "$ac_cv_header_stdc" >&6; } | |
3840 | if test $ac_cv_header_stdc = yes; then | |
03385ed3 | 3841 | |
79c21307 | 3842 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
03385ed3 | 3843 | |
79c21307 | 3844 | fi |
03385ed3 | 3845 | |
79c21307 | 3846 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
3847 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
3848 | inttypes.h stdint.h unistd.h | |
3849 | do : | |
3850 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3851 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
3852 | " | |
3853 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
3854 | cat >>confdefs.h <<_ACEOF | |
3855 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
03385ed3 | 3856 | _ACEOF |
79c21307 | 3857 | |
03385ed3 | 3858 | fi |
79c21307 | 3859 | |
03385ed3 | 3860 | done |
03385ed3 | 3861 | |
03385ed3 | 3862 | |
79c21307 | 3863 | |
3864 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
3865 | if test "x$ac_cv_header_minix_config_h" = xyes; then : | |
3866 | MINIX=yes | |
3867 | else | |
3868 | MINIX= | |
03385ed3 | 3869 | fi |
3870 | ||
03385ed3 | 3871 | |
79c21307 | 3872 | if test "$MINIX" = yes; then |
3873 | ||
3874 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
3875 | ||
3876 | ||
3877 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
3878 | ||
3879 | ||
3880 | $as_echo "#define _MINIX 1" >>confdefs.h | |
3881 | ||
3882 | fi | |
3883 | ||
3884 | ||
3885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | |
3886 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
3887 | if ${ac_cv_safe_to_define___extensions__+:} false; then : | |
f00f02a3 | 3888 | $as_echo_n "(cached) " >&6 |
3889 | else | |
3890 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3891 | /* end confdefs.h. */ | |
3892 | ||
79c21307 | 3893 | # define __EXTENSIONS__ 1 |
3894 | $ac_includes_default | |
f00f02a3 | 3895 | int |
3896 | main () | |
3897 | { | |
3898 | ||
3899 | ; | |
3900 | return 0; | |
3901 | } | |
3902 | _ACEOF | |
79c21307 | 3903 | if ac_fn_c_try_compile "$LINENO"; then : |
3904 | ac_cv_safe_to_define___extensions__=yes | |
3905 | else | |
3906 | ac_cv_safe_to_define___extensions__=no | |
f00f02a3 | 3907 | fi |
79c21307 | 3908 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
f00f02a3 | 3909 | fi |
79c21307 | 3910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
3911 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
3912 | test $ac_cv_safe_to_define___extensions__ = yes && | |
3913 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
f00f02a3 | 3914 | |
79c21307 | 3915 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
f00f02a3 | 3916 | |
79c21307 | 3917 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
3918 | ||
3919 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | |
3920 | ||
3921 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
3922 | ||
3923 | ||
3924 | ||
3925 | target_alias=${target_alias-$target} | |
3926 | ||
3927 | ||
3928 | # 1.11.1: Require that version of automake. | |
3929 | # foreign: Don't require README, INSTALL, NEWS, etc. | |
3930 | # no-define: Don't define PACKAGE and VERSION. | |
3931 | # no-dependencies: Don't generate automatic dependencies. | |
3932 | # (because it breaks when using bootstrap-lean, since some of the | |
3933 | # headers are gone at "make install" time). | |
3934 | # subdir-objects: Build objects in sub-directories. | |
3935 | # -Wall: Issue all automake warnings. | |
3936 | # -Wno-portability: Don't warn about constructs supported by GNU make. | |
3937 | # (because GCC requires GNU make anyhow). | |
3938 | # -Wno-override: Overrides used in testsuite. | |
3939 | am__api_version='1.15' | |
3940 | ||
3941 | # Find a good install program. We prefer a C program (faster), | |
3942 | # so one script is as good as another. But avoid the broken or | |
3943 | # incompatible versions: | |
3944 | # SysV /etc/install, /usr/sbin/install | |
3945 | # SunOS /usr/etc/install | |
3946 | # IRIX /sbin/install | |
3947 | # AIX /bin/install | |
3948 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3949 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3950 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3951 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3952 | # OS/2's system install, which has a completely different semantic | |
3953 | # ./install, which can be erroneously created by make from ./install.sh. | |
3954 | # Reject install programs that cannot install multiple files. | |
3955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
3956 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
3957 | if test -z "$INSTALL"; then | |
3958 | if ${ac_cv_path_install+:} false; then : | |
03385ed3 | 3959 | $as_echo_n "(cached) " >&6 |
3960 | else | |
79c21307 | 3961 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
03385ed3 | 3962 | for as_dir in $PATH |
3963 | do | |
3964 | IFS=$as_save_IFS | |
3965 | test -z "$as_dir" && as_dir=. | |
79c21307 | 3966 | # Account for people who put trailing slashes in PATH elements. |
3967 | case $as_dir/ in #(( | |
3968 | ./ | .// | /[cC]/* | \ | |
3969 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3970 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
3971 | /usr/ucb/* ) ;; | |
3972 | *) | |
3973 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3974 | # Don't use installbsd from OSF since it installs stuff as root | |
3975 | # by default. | |
3976 | for ac_prog in ginstall scoinst install; do | |
3977 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3978 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
3979 | if test $ac_prog = install && | |
3980 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3981 | # AIX install. It has an incompatible calling convention. | |
3982 | : | |
3983 | elif test $ac_prog = install && | |
3984 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3985 | # program-specific install script used by HP pwplus--don't use. | |
3986 | : | |
3987 | else | |
3988 | rm -rf conftest.one conftest.two conftest.dir | |
3989 | echo one > conftest.one | |
3990 | echo two > conftest.two | |
3991 | mkdir conftest.dir | |
3992 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3993 | test -s conftest.one && test -s conftest.two && | |
3994 | test -s conftest.dir/conftest.one && | |
3995 | test -s conftest.dir/conftest.two | |
3996 | then | |
3997 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3998 | break 3 | |
3999 | fi | |
4000 | fi | |
4001 | fi | |
4002 | done | |
4003 | done | |
4004 | ;; | |
4005 | esac | |
4006 | ||
03385ed3 | 4007 | done |
4008 | IFS=$as_save_IFS | |
4009 | ||
79c21307 | 4010 | rm -rf conftest.one conftest.two conftest.dir |
4011 | ||
03385ed3 | 4012 | fi |
79c21307 | 4013 | if test "${ac_cv_path_install+set}" = set; then |
4014 | INSTALL=$ac_cv_path_install | |
4015 | else | |
4016 | # As a last resort, use the slow shell script. Don't cache a | |
4017 | # value for INSTALL within a source directory, because that will | |
4018 | # break other packages using the cache if that directory is | |
4019 | # removed, or if the value is a relative name. | |
4020 | INSTALL=$ac_install_sh | |
4021 | fi | |
03385ed3 | 4022 | fi |
79c21307 | 4023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
4024 | $as_echo "$INSTALL" >&6; } | |
4025 | ||
4026 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
4027 | # It thinks the first close brace ends the variable substitution. | |
4028 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
4029 | ||
4030 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
4031 | ||
4032 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
4033 | ||
4034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | |
4035 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
4036 | # Reject unsafe characters in $srcdir or the absolute working directory | |
4037 | # name. Accept space and tab only in the latter. | |
4038 | am_lf=' | |
4039 | ' | |
4040 | case `pwd` in | |
4041 | *[\\\"\#\$\&\'\`$am_lf]*) | |
4042 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | |
4043 | esac | |
4044 | case $srcdir in | |
4045 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
4046 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; | |
4047 | esac | |
4048 | ||
4049 | # Do 'set' in a subshell so we don't clobber the current shell's | |
4050 | # arguments. Must try -L first in case configure is actually a | |
4051 | # symlink; some systems play weird games with the mod time of symlinks | |
4052 | # (eg FreeBSD returns the mod time of the symlink's containing | |
4053 | # directory). | |
4054 | if ( | |
4055 | am_has_slept=no | |
4056 | for am_try in 1 2; do | |
4057 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
4058 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
4059 | if test "$*" = "X"; then | |
4060 | # -L didn't work. | |
4061 | set X `ls -t "$srcdir/configure" conftest.file` | |
4062 | fi | |
4063 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
4064 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
4065 | ||
4066 | # If neither matched, then we have a broken ls. This can happen | |
4067 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
4068 | # broken ls alias from the environment. This has actually | |
4069 | # happened. Such a system could not be considered "sane". | |
4070 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
4071 | alias in your environment" "$LINENO" 5 | |
4072 | fi | |
4073 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
4074 | break | |
4075 | fi | |
4076 | # Just in case. | |
4077 | sleep 1 | |
4078 | am_has_slept=yes | |
4079 | done | |
4080 | test "$2" = conftest.file | |
4081 | ) | |
4082 | then | |
4083 | # Ok. | |
4084 | : | |
03385ed3 | 4085 | else |
79c21307 | 4086 | as_fn_error $? "newly created file is older than distributed files! |
4087 | Check your system clock" "$LINENO" 5 | |
4088 | fi | |
4089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4090 | $as_echo "yes" >&6; } | |
4091 | # If we didn't sleep, we still need to ensure time stamps of config.status and | |
4092 | # generated files are strictly newer. | |
4093 | am_sleep_pid= | |
4094 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
4095 | ( sleep 1 ) & | |
4096 | am_sleep_pid=$! | |
03385ed3 | 4097 | fi |
4098 | ||
79c21307 | 4099 | rm -f conftest.file |
4100 | ||
4101 | test "$program_prefix" != NONE && | |
4102 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
4103 | # Use a double $ so make ignores it. | |
4104 | test "$program_suffix" != NONE && | |
4105 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
4106 | # Double any \ or $. | |
4107 | # By default was `s,x,x', remove it if useless. | |
4108 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
4109 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
03385ed3 | 4110 | |
79c21307 | 4111 | if test x"${MISSING+set}" != xset; then |
4112 | case $am_aux_dir in | |
4113 | *\ * | *\ *) | |
4114 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
4115 | *) | |
4116 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
4117 | esac | |
03385ed3 | 4118 | fi |
79c21307 | 4119 | # Use eval to expand $SHELL |
4120 | if eval "$MISSING --is-lightweight"; then | |
4121 | am_missing_run="$MISSING " | |
4122 | else | |
4123 | am_missing_run= | |
4124 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 | |
4125 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
4126 | fi | |
4127 | ||
4128 | if test x"${install_sh+set}" != xset; then | |
4129 | case $am_aux_dir in | |
4130 | *\ * | *\ *) | |
4131 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
4132 | *) | |
4133 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
4134 | esac | |
4135 | fi | |
4136 | ||
4137 | # Installed binaries are usually stripped using 'strip' when the user | |
4138 | # run "make install-strip". However 'strip' might not be the right | |
4139 | # tool to use in cross-compilation environments, therefore Automake | |
4140 | # will honor the 'STRIP' environment variable to overrule this program. | |
4141 | if test "$cross_compiling" != no; then | |
4142 | if test -n "$ac_tool_prefix"; then | |
4143 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
4144 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
03385ed3 | 4145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4146 | $as_echo_n "checking for $ac_word... " >&6; } | |
79c21307 | 4147 | if ${ac_cv_prog_STRIP+:} false; then : |
03385ed3 | 4148 | $as_echo_n "(cached) " >&6 |
4149 | else | |
79c21307 | 4150 | if test -n "$STRIP"; then |
4151 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
03385ed3 | 4152 | else |
4153 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4154 | for as_dir in $PATH | |
4155 | do | |
4156 | IFS=$as_save_IFS | |
4157 | test -z "$as_dir" && as_dir=. | |
4158 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 4159 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
79c21307 | 4160 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
03385ed3 | 4161 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4162 | break 2 | |
4163 | fi | |
4164 | done | |
4165 | done | |
4166 | IFS=$as_save_IFS | |
4167 | ||
4168 | fi | |
4169 | fi | |
79c21307 | 4170 | STRIP=$ac_cv_prog_STRIP |
4171 | if test -n "$STRIP"; then | |
4172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
4173 | $as_echo "$STRIP" >&6; } | |
03385ed3 | 4174 | else |
4175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4176 | $as_echo "no" >&6; } | |
4177 | fi | |
4178 | ||
03385ed3 | 4179 | |
79c21307 | 4180 | fi |
4181 | if test -z "$ac_cv_prog_STRIP"; then | |
4182 | ac_ct_STRIP=$STRIP | |
4183 | # Extract the first word of "strip", so it can be a program name with args. | |
4184 | set dummy strip; ac_word=$2 | |
03385ed3 | 4185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4186 | $as_echo_n "checking for $ac_word... " >&6; } | |
79c21307 | 4187 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
03385ed3 | 4188 | $as_echo_n "(cached) " >&6 |
4189 | else | |
79c21307 | 4190 | if test -n "$ac_ct_STRIP"; then |
4191 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
03385ed3 | 4192 | else |
4193 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4194 | for as_dir in $PATH | |
4195 | do | |
4196 | IFS=$as_save_IFS | |
4197 | test -z "$as_dir" && as_dir=. | |
4198 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 4199 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
79c21307 | 4200 | ac_cv_prog_ac_ct_STRIP="strip" |
03385ed3 | 4201 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4202 | break 2 | |
4203 | fi | |
4204 | done | |
4205 | done | |
4206 | IFS=$as_save_IFS | |
4207 | ||
4208 | fi | |
4209 | fi | |
79c21307 | 4210 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
4211 | if test -n "$ac_ct_STRIP"; then | |
4212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
4213 | $as_echo "$ac_ct_STRIP" >&6; } | |
03385ed3 | 4214 | else |
4215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4216 | $as_echo "no" >&6; } | |
4217 | fi | |
4218 | ||
79c21307 | 4219 | if test "x$ac_ct_STRIP" = x; then |
4220 | STRIP=":" | |
4221 | else | |
4222 | case $cross_compiling:$ac_tool_warned in | |
4223 | yes:) | |
4224 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4225 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4226 | ac_tool_warned=yes ;; | |
4227 | esac | |
4228 | STRIP=$ac_ct_STRIP | |
03385ed3 | 4229 | fi |
03385ed3 | 4230 | else |
79c21307 | 4231 | STRIP="$ac_cv_prog_STRIP" |
03385ed3 | 4232 | fi |
4233 | ||
03385ed3 | 4234 | fi |
79c21307 | 4235 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
03385ed3 | 4236 | |
79c21307 | 4237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
4238 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
4239 | if test -z "$MKDIR_P"; then | |
4240 | if ${ac_cv_path_mkdir+:} false; then : | |
03385ed3 | 4241 | $as_echo_n "(cached) " >&6 |
4242 | else | |
79c21307 | 4243 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4244 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
03385ed3 | 4245 | do |
4246 | IFS=$as_save_IFS | |
4247 | test -z "$as_dir" && as_dir=. | |
79c21307 | 4248 | for ac_prog in mkdir gmkdir; do |
4249 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4250 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | |
4251 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
4252 | 'mkdir (GNU coreutils) '* | \ | |
4253 | 'mkdir (coreutils) '* | \ | |
4254 | 'mkdir (fileutils) '4.1*) | |
4255 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
4256 | break 3;; | |
4257 | esac | |
4258 | done | |
4259 | done | |
03385ed3 | 4260 | done |
4261 | IFS=$as_save_IFS | |
4262 | ||
4263 | fi | |
03385ed3 | 4264 | |
79c21307 | 4265 | test -d ./--version && rmdir ./--version |
4266 | if test "${ac_cv_path_mkdir+set}" = set; then | |
4267 | MKDIR_P="$ac_cv_path_mkdir -p" | |
4268 | else | |
4269 | # As a last resort, use the slow shell script. Don't cache a | |
4270 | # value for MKDIR_P within a source directory, because that will | |
4271 | # break other packages using the cache if that directory is | |
4272 | # removed, or if the value is a relative name. | |
4273 | MKDIR_P="$ac_install_sh -d" | |
4274 | fi | |
03385ed3 | 4275 | fi |
79c21307 | 4276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
4277 | $as_echo "$MKDIR_P" >&6; } | |
4278 | ||
4279 | for ac_prog in gawk mawk nawk awk | |
4280 | do | |
4281 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4282 | set dummy $ac_prog; ac_word=$2 | |
03385ed3 | 4283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4284 | $as_echo_n "checking for $ac_word... " >&6; } | |
79c21307 | 4285 | if ${ac_cv_prog_AWK+:} false; then : |
03385ed3 | 4286 | $as_echo_n "(cached) " >&6 |
4287 | else | |
79c21307 | 4288 | if test -n "$AWK"; then |
4289 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
03385ed3 | 4290 | else |
4291 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4292 | for as_dir in $PATH | |
4293 | do | |
4294 | IFS=$as_save_IFS | |
4295 | test -z "$as_dir" && as_dir=. | |
4296 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 4297 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
79c21307 | 4298 | ac_cv_prog_AWK="$ac_prog" |
03385ed3 | 4299 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4300 | break 2 | |
4301 | fi | |
4302 | done | |
4303 | done | |
4304 | IFS=$as_save_IFS | |
4305 | ||
4306 | fi | |
4307 | fi | |
79c21307 | 4308 | AWK=$ac_cv_prog_AWK |
4309 | if test -n "$AWK"; then | |
4310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
4311 | $as_echo "$AWK" >&6; } | |
03385ed3 | 4312 | else |
4313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4314 | $as_echo "no" >&6; } | |
4315 | fi | |
4316 | ||
03385ed3 | 4317 | |
79c21307 | 4318 | test -n "$AWK" && break |
4319 | done | |
03385ed3 | 4320 | |
4321 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
4322 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
4323 | set x ${MAKE-make} | |
4324 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
f00f02a3 | 4325 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
03385ed3 | 4326 | $as_echo_n "(cached) " >&6 |
4327 | else | |
4328 | cat >conftest.make <<\_ACEOF | |
4329 | SHELL = /bin/sh | |
4330 | all: | |
4331 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
4332 | _ACEOF | |
f00f02a3 | 4333 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
03385ed3 | 4334 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
4335 | *@@@%%%=?*=@@@%%%*) | |
4336 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
4337 | *) | |
4338 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
4339 | esac | |
4340 | rm -f conftest.make | |
4341 | fi | |
4342 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
4343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4344 | $as_echo "yes" >&6; } | |
4345 | SET_MAKE= | |
4346 | else | |
4347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4348 | $as_echo "no" >&6; } | |
4349 | SET_MAKE="MAKE=${MAKE-make}" | |
4350 | fi | |
4351 | ||
79c21307 | 4352 | rm -rf .tst 2>/dev/null |
4353 | mkdir .tst 2>/dev/null | |
4354 | if test -d .tst; then | |
4355 | am__leading_dot=. | |
4356 | else | |
4357 | am__leading_dot=_ | |
4358 | fi | |
4359 | rmdir .tst 2>/dev/null | |
03385ed3 | 4360 | |
79c21307 | 4361 | # Check whether --enable-silent-rules was given. |
4362 | if test "${enable_silent_rules+set}" = set; then : | |
4363 | enableval=$enable_silent_rules; | |
4364 | fi | |
03385ed3 | 4365 | |
79c21307 | 4366 | case $enable_silent_rules in # ((( |
4367 | yes) AM_DEFAULT_VERBOSITY=0;; | |
4368 | no) AM_DEFAULT_VERBOSITY=1;; | |
4369 | *) AM_DEFAULT_VERBOSITY=1;; | |
03385ed3 | 4370 | esac |
79c21307 | 4371 | am_make=${MAKE-make} |
4372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
4373 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
4374 | if ${am_cv_make_support_nested_variables+:} false; then : | |
4375 | $as_echo_n "(cached) " >&6 | |
4376 | else | |
4377 | if $as_echo 'TRUE=$(BAR$(V)) | |
4378 | BAR0=false | |
4379 | BAR1=true | |
4380 | V=1 | |
4381 | am__doit: | |
4382 | @$(TRUE) | |
4383 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
4384 | am_cv_make_support_nested_variables=yes | |
4385 | else | |
4386 | am_cv_make_support_nested_variables=no | |
4387 | fi | |
4388 | fi | |
4389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
4390 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
4391 | if test $am_cv_make_support_nested_variables = yes; then | |
4392 | AM_V='$(V)' | |
4393 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
4394 | else | |
4395 | AM_V=$AM_DEFAULT_VERBOSITY | |
4396 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
4397 | fi | |
4398 | AM_BACKSLASH='\' | |
03385ed3 | 4399 | |
79c21307 | 4400 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
4401 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
4402 | # is not polluted with repeated "-I." | |
4403 | am__isrc=' -I$(srcdir)' | |
4404 | # test to see if srcdir already configured | |
4405 | if test -f $srcdir/config.status; then | |
4406 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
4407 | fi | |
4408 | fi | |
03385ed3 | 4409 | |
79c21307 | 4410 | # test whether we have cygpath |
4411 | if test -z "$CYGPATH_W"; then | |
4412 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
4413 | CYGPATH_W='cygpath -w' | |
4414 | else | |
4415 | CYGPATH_W=echo | |
4416 | fi | |
4417 | fi | |
03385ed3 | 4418 | |
03385ed3 | 4419 | |
79c21307 | 4420 | # Define the identity of the package. |
4421 | PACKAGE='libphobos' | |
4422 | VERSION='version-unused' | |
03385ed3 | 4423 | |
4424 | ||
79c21307 | 4425 | # Some tools Automake needs. |
03385ed3 | 4426 | |
79c21307 | 4427 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
03385ed3 | 4428 | |
4429 | ||
79c21307 | 4430 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
03385ed3 | 4431 | |
4432 | ||
79c21307 | 4433 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
03385ed3 | 4434 | |
4435 | ||
79c21307 | 4436 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
03385ed3 | 4437 | |
4438 | ||
79c21307 | 4439 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
03385ed3 | 4440 | |
79c21307 | 4441 | # For better backward compatibility. To be removed once Automake 1.9.x |
4442 | # dies out for good. For more background, see: | |
4443 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
4444 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
4445 | mkdir_p='$(MKDIR_P)' | |
03385ed3 | 4446 | |
79c21307 | 4447 | # We need awk for the "check" target (and possibly the TAP driver). The |
4448 | # system "awk" is bad on some platforms. | |
4449 | # Always define AMTAR for backward compatibility. Yes, it's still used | |
4450 | # in the wild :-( We should find a proper way to deprecate it ... | |
4451 | AMTAR='$${TAR-tar}' | |
03385ed3 | 4452 | |
03385ed3 | 4453 | |
79c21307 | 4454 | # We'll loop over all known methods to create a tar archive until one works. |
4455 | _am_tools='gnutar pax cpio none' | |
03385ed3 | 4456 | |
79c21307 | 4457 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
03385ed3 | 4458 | |
03385ed3 | 4459 | |
03385ed3 | 4460 | |
03385ed3 | 4461 | |
03385ed3 | 4462 | |
03385ed3 | 4463 | |
79c21307 | 4464 | # POSIX will say in a future version that running "rm -f" with no argument |
4465 | # is OK; and we want to be able to make that assumption in our Makefile | |
4466 | # recipes. So use an aggressive probe to check that the usage we want is | |
4467 | # actually supported "in the wild" to an acceptable degree. | |
4468 | # See automake bug#10828. | |
4469 | # To make any issue more visible, cause the running configure to be aborted | |
4470 | # by default if the 'rm' program in use doesn't match our expectations; the | |
4471 | # user can still override this though. | |
4472 | if rm -f && rm -fr && rm -rf; then : OK; else | |
4473 | cat >&2 <<'END' | |
4474 | Oops! | |
4475 | ||
4476 | Your 'rm' program seems unable to run without file operands specified | |
4477 | on the command line, even when the '-f' option is present. This is contrary | |
4478 | to the behaviour of most rm programs out there, and not conforming with | |
4479 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
03385ed3 | 4480 | |
79c21307 | 4481 | Please tell bug-automake@gnu.org about your system, including the value |
4482 | of your $PATH and any error possibly output before this message. This | |
4483 | can help us improve future automake versions. | |
03385ed3 | 4484 | |
79c21307 | 4485 | END |
4486 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
4487 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
4488 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
4489 | echo >&2 | |
4490 | else | |
4491 | cat >&2 <<'END' | |
4492 | Aborting the configuration process, to ensure you take notice of the issue. | |
03385ed3 | 4493 | |
79c21307 | 4494 | You can download and install GNU coreutils to get an 'rm' implementation |
4495 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
03385ed3 | 4496 | |
79c21307 | 4497 | If you want to complete the configuration process using your problematic |
4498 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
4499 | to "yes", and re-run configure. | |
03385ed3 | 4500 | |
79c21307 | 4501 | END |
4502 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
4503 | fi | |
4504 | fi | |
03385ed3 | 4505 | |
4506 | ||
4507 | ||
4508 | ||
79c21307 | 4509 | # By default we simply use the C compiler to build assembly code. |
03385ed3 | 4510 | |
79c21307 | 4511 | test "${CCAS+set}" = set || CCAS=$CC |
4512 | test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS | |
03385ed3 | 4513 | |
4514 | ||
4515 | ||
79c21307 | 4516 | ac_ext=c |
4517 | ac_cpp='$CPP $CPPFLAGS' | |
4518 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4519 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4520 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4521 | if test -n "$ac_tool_prefix"; then | |
4522 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4523 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
4524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4525 | $as_echo_n "checking for $ac_word... " >&6; } | |
4526 | if ${ac_cv_prog_CC+:} false; then : | |
03385ed3 | 4527 | $as_echo_n "(cached) " >&6 |
4528 | else | |
79c21307 | 4529 | if test -n "$CC"; then |
4530 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4531 | else | |
4532 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
03385ed3 | 4533 | for as_dir in $PATH |
4534 | do | |
4535 | IFS=$as_save_IFS | |
4536 | test -z "$as_dir" && as_dir=. | |
03385ed3 | 4537 | for ac_exec_ext in '' $ac_executable_extensions; do |
79c21307 | 4538 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4539 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
4540 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4541 | break 2 | |
4542 | fi | |
4543 | done | |
03385ed3 | 4544 | done |
4545 | IFS=$as_save_IFS | |
03385ed3 | 4546 | |
4547 | fi | |
79c21307 | 4548 | fi |
4549 | CC=$ac_cv_prog_CC | |
4550 | if test -n "$CC"; then | |
4551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4552 | $as_echo "$CC" >&6; } | |
4553 | else | |
4554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4555 | $as_echo "no" >&6; } | |
4556 | fi | |
03385ed3 | 4557 | |
4558 | ||
79c21307 | 4559 | fi |
4560 | if test -z "$ac_cv_prog_CC"; then | |
4561 | ac_ct_CC=$CC | |
4562 | # Extract the first word of "gcc", so it can be a program name with args. | |
4563 | set dummy gcc; ac_word=$2 | |
4564 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4565 | $as_echo_n "checking for $ac_word... " >&6; } | |
4566 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
03385ed3 | 4567 | $as_echo_n "(cached) " >&6 |
4568 | else | |
79c21307 | 4569 | if test -n "$ac_ct_CC"; then |
4570 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4571 | else | |
4572 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4573 | for as_dir in $PATH | |
03385ed3 | 4574 | do |
4575 | IFS=$as_save_IFS | |
4576 | test -z "$as_dir" && as_dir=. | |
03385ed3 | 4577 | for ac_exec_ext in '' $ac_executable_extensions; do |
79c21307 | 4578 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4579 | ac_cv_prog_ac_ct_CC="gcc" | |
4580 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4581 | break 2 | |
4582 | fi | |
4583 | done | |
03385ed3 | 4584 | done |
4585 | IFS=$as_save_IFS | |
79c21307 | 4586 | |
4587 | fi | |
4588 | fi | |
4589 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4590 | if test -n "$ac_ct_CC"; then | |
4591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
4592 | $as_echo "$ac_ct_CC" >&6; } | |
03385ed3 | 4593 | else |
79c21307 | 4594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4595 | $as_echo "no" >&6; } | |
03385ed3 | 4596 | fi |
4597 | ||
79c21307 | 4598 | if test "x$ac_ct_CC" = x; then |
4599 | CC="" | |
4600 | else | |
4601 | case $cross_compiling:$ac_tool_warned in | |
4602 | yes:) | |
4603 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4604 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4605 | ac_tool_warned=yes ;; | |
4606 | esac | |
4607 | CC=$ac_ct_CC | |
4608 | fi | |
4609 | else | |
4610 | CC="$ac_cv_prog_CC" | |
03385ed3 | 4611 | fi |
03385ed3 | 4612 | |
79c21307 | 4613 | if test -z "$CC"; then |
4614 | if test -n "$ac_tool_prefix"; then | |
4615 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
4616 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
4617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4618 | $as_echo_n "checking for $ac_word... " >&6; } | |
4619 | if ${ac_cv_prog_CC+:} false; then : | |
03385ed3 | 4620 | $as_echo_n "(cached) " >&6 |
4621 | else | |
79c21307 | 4622 | if test -n "$CC"; then |
4623 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4624 | else | |
4625 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4626 | for as_dir in $PATH | |
03385ed3 | 4627 | do |
4628 | IFS=$as_save_IFS | |
4629 | test -z "$as_dir" && as_dir=. | |
03385ed3 | 4630 | for ac_exec_ext in '' $ac_executable_extensions; do |
79c21307 | 4631 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4632 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
4633 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4634 | break 2 | |
4635 | fi | |
4636 | done | |
03385ed3 | 4637 | done |
4638 | IFS=$as_save_IFS | |
03385ed3 | 4639 | |
03385ed3 | 4640 | fi |
79c21307 | 4641 | fi |
4642 | CC=$ac_cv_prog_CC | |
4643 | if test -n "$CC"; then | |
4644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4645 | $as_echo "$CC" >&6; } | |
4646 | else | |
4647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4648 | $as_echo "no" >&6; } | |
4649 | fi | |
03385ed3 | 4650 | |
4651 | ||
79c21307 | 4652 | fi |
4653 | fi | |
4654 | if test -z "$CC"; then | |
4655 | # Extract the first word of "cc", so it can be a program name with args. | |
4656 | set dummy cc; ac_word=$2 | |
4657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4658 | $as_echo_n "checking for $ac_word... " >&6; } | |
4659 | if ${ac_cv_prog_CC+:} false; then : | |
03385ed3 | 4660 | $as_echo_n "(cached) " >&6 |
4661 | else | |
79c21307 | 4662 | if test -n "$CC"; then |
4663 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4664 | else | |
4665 | ac_prog_rejected=no | |
4666 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4667 | for as_dir in $PATH | |
03385ed3 | 4668 | do |
4669 | IFS=$as_save_IFS | |
4670 | test -z "$as_dir" && as_dir=. | |
03385ed3 | 4671 | for ac_exec_ext in '' $ac_executable_extensions; do |
79c21307 | 4672 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4673 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
4674 | ac_prog_rejected=yes | |
4675 | continue | |
4676 | fi | |
4677 | ac_cv_prog_CC="cc" | |
4678 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4679 | break 2 | |
4680 | fi | |
4681 | done | |
03385ed3 | 4682 | done |
4683 | IFS=$as_save_IFS | |
03385ed3 | 4684 | |
79c21307 | 4685 | if test $ac_prog_rejected = yes; then |
4686 | # We found a bogon in the path, so make sure we never use it. | |
4687 | set dummy $ac_cv_prog_CC | |
4688 | shift | |
4689 | if test $# != 0; then | |
4690 | # We chose a different compiler from the bogus one. | |
4691 | # However, it has the same basename, so the bogon will be chosen | |
4692 | # first if we set CC to just the basename; use the full file name. | |
4693 | shift | |
4694 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
4695 | fi | |
03385ed3 | 4696 | fi |
03385ed3 | 4697 | fi |
4698 | fi | |
79c21307 | 4699 | CC=$ac_cv_prog_CC |
4700 | if test -n "$CC"; then | |
4701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4702 | $as_echo "$CC" >&6; } | |
03385ed3 | 4703 | else |
4704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4705 | $as_echo "no" >&6; } | |
4706 | fi | |
03385ed3 | 4707 | |
4708 | ||
03385ed3 | 4709 | fi |
79c21307 | 4710 | if test -z "$CC"; then |
4711 | if test -n "$ac_tool_prefix"; then | |
4712 | for ac_prog in cl.exe | |
03385ed3 | 4713 | do |
4714 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4715 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4717 | $as_echo_n "checking for $ac_word... " >&6; } | |
79c21307 | 4718 | if ${ac_cv_prog_CC+:} false; then : |
03385ed3 | 4719 | $as_echo_n "(cached) " >&6 |
4720 | else | |
79c21307 | 4721 | if test -n "$CC"; then |
4722 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
03385ed3 | 4723 | else |
4724 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4725 | for as_dir in $PATH | |
4726 | do | |
4727 | IFS=$as_save_IFS | |
4728 | test -z "$as_dir" && as_dir=. | |
4729 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 4730 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
79c21307 | 4731 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
03385ed3 | 4732 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4733 | break 2 | |
4734 | fi | |
4735 | done | |
4736 | done | |
4737 | IFS=$as_save_IFS | |
4738 | ||
4739 | fi | |
4740 | fi | |
79c21307 | 4741 | CC=$ac_cv_prog_CC |
4742 | if test -n "$CC"; then | |
4743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4744 | $as_echo "$CC" >&6; } | |
03385ed3 | 4745 | else |
4746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4747 | $as_echo "no" >&6; } | |
4748 | fi | |
4749 | ||
4750 | ||
79c21307 | 4751 | test -n "$CC" && break |
03385ed3 | 4752 | done |
4753 | fi | |
79c21307 | 4754 | if test -z "$CC"; then |
4755 | ac_ct_CC=$CC | |
4756 | for ac_prog in cl.exe | |
03385ed3 | 4757 | do |
4758 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4759 | set dummy $ac_prog; ac_word=$2 | |
4760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4761 | $as_echo_n "checking for $ac_word... " >&6; } | |
79c21307 | 4762 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
03385ed3 | 4763 | $as_echo_n "(cached) " >&6 |
4764 | else | |
79c21307 | 4765 | if test -n "$ac_ct_CC"; then |
4766 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
03385ed3 | 4767 | else |
4768 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4769 | for as_dir in $PATH | |
4770 | do | |
4771 | IFS=$as_save_IFS | |
4772 | test -z "$as_dir" && as_dir=. | |
4773 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 4774 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
79c21307 | 4775 | ac_cv_prog_ac_ct_CC="$ac_prog" |
03385ed3 | 4776 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4777 | break 2 | |
4778 | fi | |
4779 | done | |
4780 | done | |
4781 | IFS=$as_save_IFS | |
4782 | ||
4783 | fi | |
4784 | fi | |
79c21307 | 4785 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4786 | if test -n "$ac_ct_CC"; then | |
4787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
4788 | $as_echo "$ac_ct_CC" >&6; } | |
03385ed3 | 4789 | else |
4790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4791 | $as_echo "no" >&6; } | |
4792 | fi | |
4793 | ||
4794 | ||
79c21307 | 4795 | test -n "$ac_ct_CC" && break |
03385ed3 | 4796 | done |
4797 | ||
79c21307 | 4798 | if test "x$ac_ct_CC" = x; then |
4799 | CC="" | |
03385ed3 | 4800 | else |
4801 | case $cross_compiling:$ac_tool_warned in | |
4802 | yes:) | |
4803 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4804 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4805 | ac_tool_warned=yes ;; | |
4806 | esac | |
79c21307 | 4807 | CC=$ac_ct_CC |
03385ed3 | 4808 | fi |
4809 | fi | |
4810 | ||
03385ed3 | 4811 | fi |
03385ed3 | 4812 | |
4813 | ||
79c21307 | 4814 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4815 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4816 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
4817 | See \`config.log' for more details" "$LINENO" 5; } | |
03385ed3 | 4818 | |
79c21307 | 4819 | # Provide some information about the compiler. |
4820 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
4821 | set X $ac_compile | |
4822 | ac_compiler=$2 | |
4823 | for ac_option in --version -v -V -qversion; do | |
4824 | { { ac_try="$ac_compiler $ac_option >&5" | |
4825 | case "(($ac_try" in | |
4826 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4827 | *) ac_try_echo=$ac_try;; | |
4828 | esac | |
4829 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4830 | $as_echo "$ac_try_echo"; } >&5 | |
4831 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
4832 | ac_status=$? | |
4833 | if test -s conftest.err; then | |
4834 | sed '10a\ | |
4835 | ... rest of stderr output deleted ... | |
4836 | 10q' conftest.err >conftest.er1 | |
4837 | cat conftest.er1 >&5 | |
4838 | fi | |
4839 | rm -f conftest.er1 conftest.err | |
4840 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4841 | test $ac_status = 0; } | |
4842 | done | |
03385ed3 | 4843 | |
79c21307 | 4844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4845 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4846 | if ${ac_cv_c_compiler_gnu+:} false; then : | |
4847 | $as_echo_n "(cached) " >&6 | |
4848 | else | |
4849 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4850 | /* end confdefs.h. */ | |
03385ed3 | 4851 | |
79c21307 | 4852 | int |
4853 | main () | |
4854 | { | |
4855 | #ifndef __GNUC__ | |
4856 | choke me | |
4857 | #endif | |
03385ed3 | 4858 | |
79c21307 | 4859 | ; |
4860 | return 0; | |
4861 | } | |
4862 | _ACEOF | |
4863 | if ac_fn_c_try_compile "$LINENO"; then : | |
4864 | ac_compiler_gnu=yes | |
03385ed3 | 4865 | else |
79c21307 | 4866 | ac_compiler_gnu=no |
03385ed3 | 4867 | fi |
79c21307 | 4868 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4869 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
03385ed3 | 4870 | |
79c21307 | 4871 | fi |
4872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
4873 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4874 | if test $ac_compiler_gnu = yes; then | |
4875 | GCC=yes | |
03385ed3 | 4876 | else |
79c21307 | 4877 | GCC= |
03385ed3 | 4878 | fi |
79c21307 | 4879 | ac_test_CFLAGS=${CFLAGS+set} |
4880 | ac_save_CFLAGS=$CFLAGS | |
4881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
4882 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4883 | if ${ac_cv_prog_cc_g+:} false; then : | |
03385ed3 | 4884 | $as_echo_n "(cached) " >&6 |
4885 | else | |
79c21307 | 4886 | ac_save_c_werror_flag=$ac_c_werror_flag |
4887 | ac_c_werror_flag=yes | |
4888 | ac_cv_prog_cc_g=no | |
4889 | CFLAGS="-g" | |
4890 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4891 | /* end confdefs.h. */ | |
03385ed3 | 4892 | |
79c21307 | 4893 | int |
4894 | main () | |
4895 | { | |
03385ed3 | 4896 | |
79c21307 | 4897 | ; |
4898 | return 0; | |
4899 | } | |
4900 | _ACEOF | |
4901 | if ac_fn_c_try_compile "$LINENO"; then : | |
4902 | ac_cv_prog_cc_g=yes | |
4903 | else | |
4904 | CFLAGS="" | |
4905 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4906 | /* end confdefs.h. */ | |
03385ed3 | 4907 | |
79c21307 | 4908 | int |
4909 | main () | |
4910 | { | |
03385ed3 | 4911 | |
79c21307 | 4912 | ; |
4913 | return 0; | |
4914 | } | |
4915 | _ACEOF | |
4916 | if ac_fn_c_try_compile "$LINENO"; then : | |
03385ed3 | 4917 | |
79c21307 | 4918 | else |
4919 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4920 | CFLAGS="-g" | |
4921 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4922 | /* end confdefs.h. */ | |
03385ed3 | 4923 | |
79c21307 | 4924 | int |
4925 | main () | |
4926 | { | |
03385ed3 | 4927 | |
79c21307 | 4928 | ; |
4929 | return 0; | |
4930 | } | |
4931 | _ACEOF | |
4932 | if ac_fn_c_try_compile "$LINENO"; then : | |
4933 | ac_cv_prog_cc_g=yes | |
4934 | fi | |
4935 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4936 | fi | |
4937 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4938 | fi | |
4939 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4940 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4941 | fi | |
4942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4943 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
4944 | if test "$ac_test_CFLAGS" = set; then | |
4945 | CFLAGS=$ac_save_CFLAGS | |
4946 | elif test $ac_cv_prog_cc_g = yes; then | |
4947 | if test "$GCC" = yes; then | |
4948 | CFLAGS="-g -O2" | |
4949 | else | |
4950 | CFLAGS="-g" | |
4951 | fi | |
4952 | else | |
4953 | if test "$GCC" = yes; then | |
4954 | CFLAGS="-O2" | |
4955 | else | |
4956 | CFLAGS= | |
4957 | fi | |
4958 | fi | |
4959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
4960 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4961 | if ${ac_cv_prog_cc_c89+:} false; then : | |
4962 | $as_echo_n "(cached) " >&6 | |
4963 | else | |
4964 | ac_cv_prog_cc_c89=no | |
4965 | ac_save_CC=$CC | |
4966 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4967 | /* end confdefs.h. */ | |
4968 | #include <stdarg.h> | |
4969 | #include <stdio.h> | |
4970 | struct stat; | |
4971 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4972 | struct buf { int x; }; | |
4973 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4974 | static char *e (p, i) | |
4975 | char **p; | |
4976 | int i; | |
4977 | { | |
4978 | return p[i]; | |
4979 | } | |
4980 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4981 | { | |
4982 | char *s; | |
4983 | va_list v; | |
4984 | va_start (v,p); | |
4985 | s = g (p, va_arg (v,int)); | |
4986 | va_end (v); | |
4987 | return s; | |
4988 | } | |
4989 | ||
4990 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4991 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4992 | These don't provoke an error unfortunately, instead are silently treated | |
4993 | as 'x'. The following induces an error, until -std is added to get | |
4994 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
4995 | array size at least. It's necessary to write '\x00'==0 to get something | |
4996 | that's true only with -std. */ | |
4997 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
4998 | ||
4999 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
5000 | inside strings and character constants. */ | |
5001 | #define FOO(x) 'x' | |
5002 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
5003 | ||
5004 | int test (int i, double x); | |
5005 | struct s1 {int (*f) (int a);}; | |
5006 | struct s2 {int (*f) (double a);}; | |
5007 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
5008 | int argc; | |
5009 | char **argv; | |
5010 | int | |
5011 | main () | |
5012 | { | |
5013 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
5014 | ; | |
5015 | return 0; | |
5016 | } | |
5017 | _ACEOF | |
5018 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
5019 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
5020 | do | |
5021 | CC="$ac_save_CC $ac_arg" | |
5022 | if ac_fn_c_try_compile "$LINENO"; then : | |
5023 | ac_cv_prog_cc_c89=$ac_arg | |
5024 | fi | |
5025 | rm -f core conftest.err conftest.$ac_objext | |
5026 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
5027 | done | |
5028 | rm -f conftest.$ac_ext | |
5029 | CC=$ac_save_CC | |
5030 | ||
5031 | fi | |
5032 | # AC_CACHE_VAL | |
5033 | case "x$ac_cv_prog_cc_c89" in | |
5034 | x) | |
5035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
5036 | $as_echo "none needed" >&6; } ;; | |
5037 | xno) | |
5038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
5039 | $as_echo "unsupported" >&6; } ;; | |
5040 | *) | |
5041 | CC="$CC $ac_cv_prog_cc_c89" | |
5042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
5043 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
5044 | esac | |
5045 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
5046 | ||
5047 | fi | |
5048 | ||
5049 | ac_ext=c | |
5050 | ac_cpp='$CPP $CPPFLAGS' | |
5051 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5052 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5053 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5054 | ||
5055 | ac_ext=c | |
5056 | ac_cpp='$CPP $CPPFLAGS' | |
5057 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5058 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5059 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
5061 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
5062 | if ${am_cv_prog_cc_c_o+:} false; then : | |
5063 | $as_echo_n "(cached) " >&6 | |
5064 | else | |
5065 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5066 | /* end confdefs.h. */ | |
5067 | ||
5068 | int | |
5069 | main () | |
5070 | { | |
5071 | ||
5072 | ; | |
5073 | return 0; | |
5074 | } | |
5075 | _ACEOF | |
5076 | # Make sure it works both with $CC and with simple cc. | |
5077 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
5078 | # compilers refuse to overwrite an existing .o file with -o, | |
5079 | # though they will create one. | |
5080 | am_cv_prog_cc_c_o=yes | |
5081 | for am_i in 1 2; do | |
5082 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
5083 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
5084 | ac_status=$? | |
5085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5086 | (exit $ac_status); } \ | |
5087 | && test -f conftest2.$ac_objext; then | |
5088 | : OK | |
5089 | else | |
5090 | am_cv_prog_cc_c_o=no | |
5091 | break | |
5092 | fi | |
5093 | done | |
5094 | rm -f core conftest* | |
5095 | unset am_i | |
5096 | fi | |
5097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
5098 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
5099 | if test "$am_cv_prog_cc_c_o" != yes; then | |
5100 | # Losing compiler, so override with the script. | |
5101 | # FIXME: It is wrong to rewrite CC. | |
5102 | # But if we don't then we get into trouble of one sort or another. | |
5103 | # A longer-term fix would be to have automake use am__CC in this case, | |
5104 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
5105 | CC="$am_aux_dir/compile $CC" | |
5106 | fi | |
5107 | ac_ext=c | |
5108 | ac_cpp='$CPP $CPPFLAGS' | |
5109 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5110 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5111 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5112 | ||
5113 | ||
5114 | ac_ext=d | |
5115 | ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5' | |
5116 | ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5117 | ac_compiler_gnu=yes | |
5118 | if test -n "$ac_tool_prefix"; then | |
5119 | # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args. | |
5120 | set dummy ${ac_tool_prefix}gdc; ac_word=$2 | |
5121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5122 | $as_echo_n "checking for $ac_word... " >&6; } | |
5123 | if ${ac_cv_prog_GDC+:} false; then : | |
5124 | $as_echo_n "(cached) " >&6 | |
5125 | else | |
5126 | if test -n "$GDC"; then | |
5127 | ac_cv_prog_GDC="$GDC" # Let the user override the test. | |
5128 | else | |
5129 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5130 | for as_dir in $PATH | |
5131 | do | |
5132 | IFS=$as_save_IFS | |
5133 | test -z "$as_dir" && as_dir=. | |
5134 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5135 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5136 | ac_cv_prog_GDC="${ac_tool_prefix}gdc" | |
5137 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5138 | break 2 | |
5139 | fi | |
5140 | done | |
5141 | done | |
5142 | IFS=$as_save_IFS | |
5143 | ||
5144 | fi | |
5145 | fi | |
5146 | GDC=$ac_cv_prog_GDC | |
5147 | if test -n "$GDC"; then | |
5148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5 | |
5149 | $as_echo "$GDC" >&6; } | |
5150 | else | |
5151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5152 | $as_echo "no" >&6; } | |
5153 | fi | |
5154 | ||
5155 | ||
5156 | fi | |
5157 | if test -z "$ac_cv_prog_GDC"; then | |
5158 | ac_ct_GDC=$GDC | |
5159 | # Extract the first word of "gdc", so it can be a program name with args. | |
5160 | set dummy gdc; ac_word=$2 | |
5161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5162 | $as_echo_n "checking for $ac_word... " >&6; } | |
5163 | if ${ac_cv_prog_ac_ct_GDC+:} false; then : | |
5164 | $as_echo_n "(cached) " >&6 | |
5165 | else | |
5166 | if test -n "$ac_ct_GDC"; then | |
5167 | ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test. | |
5168 | else | |
5169 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5170 | for as_dir in $PATH | |
5171 | do | |
5172 | IFS=$as_save_IFS | |
5173 | test -z "$as_dir" && as_dir=. | |
5174 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5175 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5176 | ac_cv_prog_ac_ct_GDC="gdc" | |
5177 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5178 | break 2 | |
5179 | fi | |
5180 | done | |
5181 | done | |
5182 | IFS=$as_save_IFS | |
5183 | ||
5184 | fi | |
5185 | fi | |
5186 | ac_ct_GDC=$ac_cv_prog_ac_ct_GDC | |
5187 | if test -n "$ac_ct_GDC"; then | |
5188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5 | |
5189 | $as_echo "$ac_ct_GDC" >&6; } | |
5190 | else | |
5191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5192 | $as_echo "no" >&6; } | |
5193 | fi | |
5194 | ||
5195 | if test "x$ac_ct_GDC" = x; then | |
5196 | GDC="" | |
5197 | else | |
5198 | case $cross_compiling:$ac_tool_warned in | |
5199 | yes:) | |
5200 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5201 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5202 | ac_tool_warned=yes ;; | |
5203 | esac | |
5204 | GDC=$ac_ct_GDC | |
5205 | fi | |
5206 | else | |
5207 | GDC="$ac_cv_prog_GDC" | |
5208 | fi | |
5209 | ||
5210 | if test -z "$GDC"; then | |
5211 | if test -n "$ac_tool_prefix"; then | |
5212 | # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args. | |
5213 | set dummy ${ac_tool_prefix}gdc; ac_word=$2 | |
5214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5215 | $as_echo_n "checking for $ac_word... " >&6; } | |
5216 | if ${ac_cv_prog_GDC+:} false; then : | |
5217 | $as_echo_n "(cached) " >&6 | |
5218 | else | |
5219 | if test -n "$GDC"; then | |
5220 | ac_cv_prog_GDC="$GDC" # Let the user override the test. | |
5221 | else | |
5222 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5223 | for as_dir in $PATH | |
5224 | do | |
5225 | IFS=$as_save_IFS | |
5226 | test -z "$as_dir" && as_dir=. | |
5227 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5228 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5229 | ac_cv_prog_GDC="$ac_tool_prefix}gdc" | |
5230 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5231 | break 2 | |
5232 | fi | |
5233 | done | |
5234 | done | |
5235 | IFS=$as_save_IFS | |
5236 | ||
5237 | fi | |
5238 | fi | |
5239 | GDC=$ac_cv_prog_GDC | |
5240 | if test -n "$GDC"; then | |
5241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5 | |
5242 | $as_echo "$GDC" >&6; } | |
5243 | else | |
5244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5245 | $as_echo "no" >&6; } | |
5246 | fi | |
5247 | ||
5248 | ||
5249 | fi | |
5250 | fi | |
5251 | if test -z "$GDC"; then | |
5252 | # Extract the first word of "gdc", so it can be a program name with args. | |
5253 | set dummy gdc; ac_word=$2 | |
5254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5255 | $as_echo_n "checking for $ac_word... " >&6; } | |
5256 | if ${ac_cv_prog_GDC+:} false; then : | |
5257 | $as_echo_n "(cached) " >&6 | |
5258 | else | |
5259 | if test -n "$GDC"; then | |
5260 | ac_cv_prog_GDC="$GDC" # Let the user override the test. | |
5261 | else | |
5262 | ac_prog_rejected=no | |
5263 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5264 | for as_dir in $PATH | |
5265 | do | |
5266 | IFS=$as_save_IFS | |
5267 | test -z "$as_dir" && as_dir=. | |
5268 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5269 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5270 | if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then | |
5271 | ac_prog_rejected=yes | |
5272 | continue | |
5273 | fi | |
5274 | ac_cv_prog_GDC="gdc" | |
5275 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5276 | break 2 | |
5277 | fi | |
5278 | done | |
5279 | done | |
5280 | IFS=$as_save_IFS | |
5281 | ||
5282 | if test $ac_prog_rejected = yes; then | |
5283 | # We found a bogon in the path, so make sure we never use it. | |
5284 | set dummy $ac_cv_prog_GDC | |
5285 | shift | |
5286 | if test $# != 0; then | |
5287 | # We chose a different compiler from the bogus one. | |
5288 | # However, it has the same basename, so the bogon will be chosen | |
5289 | # first if we set GDC to just the basename; use the full file name. | |
5290 | shift | |
5291 | ac_cv_prog_GDC="$as_dir/$ac_word${1+' '}$@" | |
5292 | fi | |
5293 | fi | |
5294 | fi | |
5295 | fi | |
5296 | GDC=$ac_cv_prog_GDC | |
5297 | if test -n "$GDC"; then | |
5298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5 | |
5299 | $as_echo "$GDC" >&6; } | |
5300 | else | |
5301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5302 | $as_echo "no" >&6; } | |
5303 | fi | |
5304 | ||
5305 | ||
5306 | fi | |
5307 | ||
5308 | ||
5309 | # Provide some information about the compiler. | |
5310 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for D compiler version" >&5 | |
5311 | set X $ac_compile | |
5312 | ac_compiler=$2 | |
5313 | { { ac_try="$ac_compiler --version >&5" | |
5314 | case "(($ac_try" in | |
5315 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5316 | *) ac_try_echo=$ac_try;; | |
5317 | esac | |
5318 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
5319 | $as_echo "$ac_try_echo"; } >&5 | |
5320 | (eval "$ac_compiler --version >&5") 2>conftest.err | |
5321 | ac_status=$? | |
5322 | if test -s conftest.err; then | |
5323 | sed '10a\ | |
5324 | ... rest of stderr output deleted ... | |
5325 | 10q' conftest.err >conftest.er1 | |
5326 | cat conftest.er1 >&5 | |
5327 | fi | |
5328 | rm -f conftest.er1 conftest.err | |
5329 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5330 | test $ac_status = 0; } | |
5331 | ac_ext=c | |
5332 | ac_cpp='$CPP $CPPFLAGS' | |
5333 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5334 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5335 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5336 | ||
5337 | ||
5338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for absolute libphobos source path" >&5 | |
5339 | $as_echo_n "checking for absolute libphobos source path... " >&6; } | |
5340 | if ${phobos_cv_abs_srcdir+:} false; then : | |
5341 | $as_echo_n "(cached) " >&6 | |
5342 | else | |
5343 | phobos_cv_abs_srcdir=`cd $srcdir && pwd` | |
5344 | fi | |
5345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $phobos_cv_abs_srcdir" >&5 | |
5346 | $as_echo "$phobos_cv_abs_srcdir" >&6; } | |
5347 | if test -d "$phobos_cv_abs_srcdir"; then : | |
5348 | ||
5349 | else | |
5350 | as_fn_error $? "can't find absolute libphobos source path" "$LINENO" 5 | |
5351 | fi | |
5352 | ||
5353 | ||
5354 | ||
5355 | ||
5356 | gdc_save_DFLAGS=$GDCFLAGS | |
5357 | GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS" | |
5358 | ||
5359 | ac_ext=d | |
5360 | ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5' | |
5361 | ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5362 | ac_compiler_gnu=yes | |
5363 | ||
5364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking If $GDC can compile D sources" >&5 | |
5365 | $as_echo_n "checking If $GDC can compile D sources... " >&6; } | |
5366 | cat > conftest.$ac_ext <<_ACEOF | |
5367 | module mod; | |
5368 | ||
5369 | ||
5370 | extern(C) int main() { | |
5371 | return 0; | |
5372 | } | |
5373 | _ACEOF | |
5374 | if ac_fn_d_try_compile "$LINENO"; then : | |
5375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5376 | $as_echo "yes" >&6; } | |
5377 | else | |
5378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5379 | $as_echo "no" >&6; } | |
5380 | as_fn_error $? "can't compile D sources!" "$LINENO" 5 | |
5381 | fi | |
5382 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5383 | ac_ext=c | |
5384 | ac_cpp='$CPP $CPPFLAGS' | |
5385 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5386 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5387 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5388 | ||
5389 | ||
5390 | GDCFLAGS=$gdc_save_DFLAGS | |
5391 | ||
5392 | ||
5393 | ||
5394 | ||
5395 | ||
5396 | ||
5397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
5398 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
5399 | # Check whether --enable-maintainer-mode was given. | |
5400 | if test "${enable_maintainer_mode+set}" = set; then : | |
5401 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
5402 | else | |
5403 | USE_MAINTAINER_MODE=no | |
5404 | fi | |
5405 | ||
5406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
5407 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
5408 | if test $USE_MAINTAINER_MODE = yes; then | |
5409 | MAINTAINER_MODE_TRUE= | |
5410 | MAINTAINER_MODE_FALSE='#' | |
5411 | else | |
5412 | MAINTAINER_MODE_TRUE='#' | |
5413 | MAINTAINER_MODE_FALSE= | |
5414 | fi | |
5415 | ||
5416 | MAINT=$MAINTAINER_MODE_TRUE | |
5417 | ||
5418 | ||
5419 | if test -n "$ac_tool_prefix"; then | |
5420 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5421 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5422 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5423 | $as_echo_n "checking for $ac_word... " >&6; } | |
5424 | if ${ac_cv_prog_RANLIB+:} false; then : | |
5425 | $as_echo_n "(cached) " >&6 | |
5426 | else | |
5427 | if test -n "$RANLIB"; then | |
5428 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5429 | else | |
5430 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5431 | for as_dir in $PATH | |
5432 | do | |
5433 | IFS=$as_save_IFS | |
5434 | test -z "$as_dir" && as_dir=. | |
5435 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5436 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5437 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
5438 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5439 | break 2 | |
5440 | fi | |
5441 | done | |
5442 | done | |
5443 | IFS=$as_save_IFS | |
5444 | ||
5445 | fi | |
5446 | fi | |
5447 | RANLIB=$ac_cv_prog_RANLIB | |
5448 | if test -n "$RANLIB"; then | |
5449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
5450 | $as_echo "$RANLIB" >&6; } | |
5451 | else | |
5452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5453 | $as_echo "no" >&6; } | |
5454 | fi | |
5455 | ||
5456 | ||
5457 | fi | |
5458 | if test -z "$ac_cv_prog_RANLIB"; then | |
5459 | ac_ct_RANLIB=$RANLIB | |
5460 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5461 | set dummy ranlib; ac_word=$2 | |
5462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5463 | $as_echo_n "checking for $ac_word... " >&6; } | |
5464 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | |
5465 | $as_echo_n "(cached) " >&6 | |
5466 | else | |
5467 | if test -n "$ac_ct_RANLIB"; then | |
5468 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5469 | else | |
5470 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5471 | for as_dir in $PATH | |
5472 | do | |
5473 | IFS=$as_save_IFS | |
5474 | test -z "$as_dir" && as_dir=. | |
5475 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5476 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5477 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
5478 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5479 | break 2 | |
5480 | fi | |
5481 | done | |
5482 | done | |
5483 | IFS=$as_save_IFS | |
5484 | ||
5485 | fi | |
5486 | fi | |
5487 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5488 | if test -n "$ac_ct_RANLIB"; then | |
5489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
5490 | $as_echo "$ac_ct_RANLIB" >&6; } | |
5491 | else | |
5492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5493 | $as_echo "no" >&6; } | |
5494 | fi | |
5495 | ||
5496 | if test "x$ac_ct_RANLIB" = x; then | |
5497 | RANLIB=":" | |
5498 | else | |
5499 | case $cross_compiling:$ac_tool_warned in | |
5500 | yes:) | |
5501 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5502 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5503 | ac_tool_warned=yes ;; | |
5504 | esac | |
5505 | RANLIB=$ac_ct_RANLIB | |
5506 | fi | |
5507 | else | |
5508 | RANLIB="$ac_cv_prog_RANLIB" | |
5509 | fi | |
5510 | ||
5511 | ||
5512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
5513 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
5514 | set x ${MAKE-make} | |
5515 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
5516 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
5517 | $as_echo_n "(cached) " >&6 | |
5518 | else | |
5519 | cat >conftest.make <<\_ACEOF | |
5520 | SHELL = /bin/sh | |
5521 | all: | |
5522 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
5523 | _ACEOF | |
5524 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
5525 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
5526 | *@@@%%%=?*=@@@%%%*) | |
5527 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
5528 | *) | |
5529 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
5530 | esac | |
5531 | rm -f conftest.make | |
5532 | fi | |
5533 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
5534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5535 | $as_echo "yes" >&6; } | |
5536 | SET_MAKE= | |
5537 | else | |
5538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5539 | $as_echo "no" >&6; } | |
5540 | SET_MAKE="MAKE=${MAKE-make}" | |
5541 | fi | |
5542 | ||
5543 | ||
5544 | # This should be inherited in the recursive make, but ensure it is defined. | |
5545 | test "$AR" || AR=ar | |
5546 | ||
5547 | ||
5548 | CC_FOR_BUILD=${CC_FOR_BUILD:-gcc} | |
5549 | ||
5550 | ||
5551 | ||
5552 | # Enable libtool | |
5553 | case `pwd` in | |
5554 | *\ * | *\ *) | |
5555 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
5556 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
5557 | esac | |
5558 | ||
5559 | ||
5560 | ||
5561 | macro_version='2.2.7a' | |
5562 | macro_revision='1.3134' | |
5563 | ||
5564 | ||
5565 | ||
5566 | ||
5567 | ||
5568 | ||
5569 | ||
5570 | ||
5571 | ||
5572 | ||
5573 | ||
5574 | ||
5575 | ||
5576 | ltmain="$ac_aux_dir/ltmain.sh" | |
5577 | ||
5578 | # Backslashify metacharacters that are still active within | |
5579 | # double-quoted strings. | |
5580 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
5581 | ||
5582 | # Same as above, but do not quote variable references. | |
5583 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
5584 | ||
5585 | # Sed substitution to delay expansion of an escaped shell variable in a | |
5586 | # double_quote_subst'ed string. | |
5587 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
5588 | ||
5589 | # Sed substitution to delay expansion of an escaped single quote. | |
5590 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
5591 | ||
5592 | # Sed substitution to avoid accidental globbing in evaled expressions | |
5593 | no_glob_subst='s/\*/\\\*/g' | |
5594 | ||
5595 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
5596 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
5597 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
5598 | ||
5599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
5600 | $as_echo_n "checking how to print strings... " >&6; } | |
5601 | # Test print first, because it will be a builtin if present. | |
5602 | if test "X`print -r -- -n 2>/dev/null`" = X-n && \ | |
5603 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5604 | ECHO='print -r --' | |
5605 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5606 | ECHO='printf %s\n' | |
5607 | else | |
5608 | # Use this function as a fallback that always works. | |
5609 | func_fallback_echo () | |
5610 | { | |
5611 | eval 'cat <<_LTECHO_EOF | |
5612 | $1 | |
5613 | _LTECHO_EOF' | |
5614 | } | |
5615 | ECHO='func_fallback_echo' | |
5616 | fi | |
5617 | ||
5618 | # func_echo_all arg... | |
5619 | # Invoke $ECHO with all args, space-separated. | |
5620 | func_echo_all () | |
5621 | { | |
5622 | $ECHO "" | |
5623 | } | |
5624 | ||
5625 | case "$ECHO" in | |
5626 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
5627 | $as_echo "printf" >&6; } ;; | |
5628 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
5629 | $as_echo "print -r" >&6; } ;; | |
5630 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
5631 | $as_echo "cat" >&6; } ;; | |
5632 | esac | |
5633 | ||
5634 | ||
5635 | ||
5636 | ||
5637 | ||
5638 | ||
5639 | ||
5640 | ||
5641 | ||
5642 | ||
5643 | ||
5644 | ||
5645 | ||
5646 | ||
5647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
5648 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
5649 | if ${ac_cv_path_SED+:} false; then : | |
5650 | $as_echo_n "(cached) " >&6 | |
5651 | else | |
5652 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
5653 | for ac_i in 1 2 3 4 5 6 7; do | |
5654 | ac_script="$ac_script$as_nl$ac_script" | |
5655 | done | |
5656 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
5657 | { ac_script=; unset ac_script;} | |
5658 | if test -z "$SED"; then | |
5659 | ac_path_SED_found=false | |
5660 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5661 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5662 | for as_dir in $PATH | |
5663 | do | |
5664 | IFS=$as_save_IFS | |
5665 | test -z "$as_dir" && as_dir=. | |
5666 | for ac_prog in sed gsed; do | |
5667 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5668 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
5669 | as_fn_executable_p "$ac_path_SED" || continue | |
5670 | # Check for GNU ac_path_SED and select it if it is found. | |
5671 | # Check for GNU $ac_path_SED | |
5672 | case `"$ac_path_SED" --version 2>&1` in | |
5673 | *GNU*) | |
5674 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
5675 | *) | |
5676 | ac_count=0 | |
5677 | $as_echo_n 0123456789 >"conftest.in" | |
5678 | while : | |
5679 | do | |
5680 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5681 | mv "conftest.tmp" "conftest.in" | |
5682 | cp "conftest.in" "conftest.nl" | |
5683 | $as_echo '' >> "conftest.nl" | |
5684 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5685 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5686 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5687 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
5688 | # Best one so far, save it but keep looking for a better one | |
5689 | ac_cv_path_SED="$ac_path_SED" | |
5690 | ac_path_SED_max=$ac_count | |
5691 | fi | |
5692 | # 10*(2^10) chars as input seems more than enough | |
5693 | test $ac_count -gt 10 && break | |
5694 | done | |
5695 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5696 | esac | |
5697 | ||
5698 | $ac_path_SED_found && break 3 | |
5699 | done | |
5700 | done | |
5701 | done | |
5702 | IFS=$as_save_IFS | |
5703 | if test -z "$ac_cv_path_SED"; then | |
5704 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
5705 | fi | |
5706 | else | |
5707 | ac_cv_path_SED=$SED | |
5708 | fi | |
5709 | ||
5710 | fi | |
5711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
5712 | $as_echo "$ac_cv_path_SED" >&6; } | |
5713 | SED="$ac_cv_path_SED" | |
5714 | rm -f conftest.sed | |
5715 | ||
5716 | test -z "$SED" && SED=sed | |
5717 | Xsed="$SED -e 1s/^X//" | |
5718 | ||
5719 | ||
5720 | ||
5721 | ||
5722 | ||
5723 | ||
5724 | ||
5725 | ||
5726 | ||
5727 | ||
5728 | ||
5729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | |
5730 | $as_echo_n "checking for fgrep... " >&6; } | |
5731 | if ${ac_cv_path_FGREP+:} false; then : | |
5732 | $as_echo_n "(cached) " >&6 | |
5733 | else | |
5734 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | |
5735 | then ac_cv_path_FGREP="$GREP -F" | |
5736 | else | |
5737 | if test -z "$FGREP"; then | |
5738 | ac_path_FGREP_found=false | |
5739 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5740 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5741 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5742 | do | |
5743 | IFS=$as_save_IFS | |
5744 | test -z "$as_dir" && as_dir=. | |
5745 | for ac_prog in fgrep; do | |
5746 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5747 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5748 | as_fn_executable_p "$ac_path_FGREP" || continue | |
5749 | # Check for GNU ac_path_FGREP and select it if it is found. | |
5750 | # Check for GNU $ac_path_FGREP | |
5751 | case `"$ac_path_FGREP" --version 2>&1` in | |
5752 | *GNU*) | |
5753 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
5754 | *) | |
5755 | ac_count=0 | |
5756 | $as_echo_n 0123456789 >"conftest.in" | |
5757 | while : | |
5758 | do | |
5759 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5760 | mv "conftest.tmp" "conftest.in" | |
5761 | cp "conftest.in" "conftest.nl" | |
5762 | $as_echo 'FGREP' >> "conftest.nl" | |
5763 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5764 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5765 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5766 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
5767 | # Best one so far, save it but keep looking for a better one | |
5768 | ac_cv_path_FGREP="$ac_path_FGREP" | |
5769 | ac_path_FGREP_max=$ac_count | |
5770 | fi | |
5771 | # 10*(2^10) chars as input seems more than enough | |
5772 | test $ac_count -gt 10 && break | |
5773 | done | |
5774 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5775 | esac | |
5776 | ||
5777 | $ac_path_FGREP_found && break 3 | |
5778 | done | |
5779 | done | |
5780 | done | |
5781 | IFS=$as_save_IFS | |
5782 | if test -z "$ac_cv_path_FGREP"; then | |
5783 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5784 | fi | |
5785 | else | |
5786 | ac_cv_path_FGREP=$FGREP | |
5787 | fi | |
5788 | ||
5789 | fi | |
5790 | fi | |
5791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | |
5792 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
5793 | FGREP="$ac_cv_path_FGREP" | |
5794 | ||
5795 | ||
5796 | test -z "$GREP" && GREP=grep | |
5797 | ||
5798 | ||
5799 | ||
5800 | ||
5801 | ||
5802 | ||
5803 | ||
5804 | ||
5805 | ||
5806 | ||
5807 | ||
5808 | ||
5809 | ||
5810 | ||
5811 | ||
5812 | ||
5813 | ||
5814 | ||
5815 | ||
5816 | # Check whether --with-gnu-ld was given. | |
5817 | if test "${with_gnu_ld+set}" = set; then : | |
5818 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
5819 | else | |
5820 | with_gnu_ld=no | |
5821 | fi | |
5822 | ||
5823 | ac_prog=ld | |
5824 | if test "$GCC" = yes; then | |
5825 | # Check if gcc -print-prog-name=ld gives a path. | |
5826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
5827 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
5828 | case $host in | |
5829 | *-*-mingw*) | |
5830 | # gcc leaves a trailing carriage return which upsets mingw | |
5831 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5832 | *) | |
5833 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5834 | esac | |
5835 | case $ac_prog in | |
5836 | # Accept absolute paths. | |
5837 | [\\/]* | ?:[\\/]*) | |
5838 | re_direlt='/[^/][^/]*/\.\./' | |
5839 | # Canonicalize the pathname of ld | |
5840 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
5841 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
5842 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
5843 | done | |
5844 | test -z "$LD" && LD="$ac_prog" | |
5845 | ;; | |
5846 | "") | |
5847 | # If it fails, then pretend we aren't using GCC. | |
5848 | ac_prog=ld | |
5849 | ;; | |
5850 | *) | |
5851 | # If it is relative, then search for the first ld in PATH. | |
5852 | with_gnu_ld=unknown | |
5853 | ;; | |
5854 | esac | |
5855 | elif test "$with_gnu_ld" = yes; then | |
5856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
5857 | $as_echo_n "checking for GNU ld... " >&6; } | |
5858 | else | |
5859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
5860 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
5861 | fi | |
5862 | if ${lt_cv_path_LD+:} false; then : | |
5863 | $as_echo_n "(cached) " >&6 | |
5864 | else | |
5865 | if test -z "$LD"; then | |
5866 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5867 | for ac_dir in $PATH; do | |
5868 | IFS="$lt_save_ifs" | |
5869 | test -z "$ac_dir" && ac_dir=. | |
5870 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5871 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
5872 | # Check to see if the program is GNU ld. I'd rather use --version, | |
5873 | # but apparently some variants of GNU ld only accept -v. | |
5874 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
5875 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
5876 | *GNU* | *'with BFD'*) | |
5877 | test "$with_gnu_ld" != no && break | |
5878 | ;; | |
5879 | *) | |
5880 | test "$with_gnu_ld" != yes && break | |
5881 | ;; | |
5882 | esac | |
5883 | fi | |
5884 | done | |
5885 | IFS="$lt_save_ifs" | |
5886 | else | |
5887 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
5888 | fi | |
5889 | fi | |
5890 | ||
5891 | LD="$lt_cv_path_LD" | |
5892 | if test -n "$LD"; then | |
5893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
5894 | $as_echo "$LD" >&6; } | |
5895 | else | |
5896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5897 | $as_echo "no" >&6; } | |
5898 | fi | |
5899 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | |
5900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
5901 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
5902 | if ${lt_cv_prog_gnu_ld+:} false; then : | |
5903 | $as_echo_n "(cached) " >&6 | |
5904 | else | |
5905 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
5906 | case `$LD -v 2>&1 </dev/null` in | |
5907 | *GNU* | *'with BFD'*) | |
5908 | lt_cv_prog_gnu_ld=yes | |
5909 | ;; | |
5910 | *) | |
5911 | lt_cv_prog_gnu_ld=no | |
5912 | ;; | |
5913 | esac | |
5914 | fi | |
5915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
5916 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
5917 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
5918 | ||
5919 | ||
5920 | ||
5921 | ||
5922 | ||
5923 | ||
5924 | ||
5925 | ||
5926 | ||
5927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
5928 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
5929 | if ${lt_cv_path_NM+:} false; then : | |
5930 | $as_echo_n "(cached) " >&6 | |
5931 | else | |
5932 | if test -n "$NM"; then | |
5933 | # Let the user override the test. | |
5934 | lt_cv_path_NM="$NM" | |
5935 | else | |
5936 | lt_nm_to_check="${ac_tool_prefix}nm" | |
5937 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
5938 | lt_nm_to_check="$lt_nm_to_check nm" | |
5939 | fi | |
5940 | for lt_tmp_nm in $lt_nm_to_check; do | |
5941 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5942 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
5943 | IFS="$lt_save_ifs" | |
5944 | test -z "$ac_dir" && ac_dir=. | |
5945 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
5946 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
5947 | # Check to see if the nm accepts a BSD-compat flag. | |
5948 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
5949 | # nm: unknown option "B" ignored | |
5950 | # Tru64's nm complains that /dev/null is an invalid object file | |
5951 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
5952 | */dev/null* | *'Invalid file or object type'*) | |
5953 | lt_cv_path_NM="$tmp_nm -B" | |
5954 | break | |
5955 | ;; | |
5956 | *) | |
5957 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
5958 | */dev/null*) | |
5959 | lt_cv_path_NM="$tmp_nm -p" | |
5960 | break | |
5961 | ;; | |
5962 | *) | |
5963 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
5964 | continue # so that we can try to find one that supports BSD flags | |
5965 | ;; | |
5966 | esac | |
5967 | ;; | |
5968 | esac | |
5969 | fi | |
5970 | done | |
5971 | IFS="$lt_save_ifs" | |
5972 | done | |
5973 | : ${lt_cv_path_NM=no} | |
5974 | fi | |
5975 | fi | |
5976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | |
5977 | $as_echo "$lt_cv_path_NM" >&6; } | |
5978 | if test "$lt_cv_path_NM" != "no"; then | |
5979 | NM="$lt_cv_path_NM" | |
5980 | else | |
5981 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
5982 | if test -n "$DUMPBIN"; then : | |
5983 | # Let the user override the test. | |
5984 | else | |
5985 | if test -n "$ac_tool_prefix"; then | |
5986 | for ac_prog in dumpbin "link -dump" | |
5987 | do | |
5988 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5989 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5991 | $as_echo_n "checking for $ac_word... " >&6; } | |
5992 | if ${ac_cv_prog_DUMPBIN+:} false; then : | |
5993 | $as_echo_n "(cached) " >&6 | |
5994 | else | |
5995 | if test -n "$DUMPBIN"; then | |
5996 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
5997 | else | |
5998 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5999 | for as_dir in $PATH | |
6000 | do | |
6001 | IFS=$as_save_IFS | |
6002 | test -z "$as_dir" && as_dir=. | |
6003 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6004 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6005 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | |
6006 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6007 | break 2 | |
6008 | fi | |
6009 | done | |
6010 | done | |
6011 | IFS=$as_save_IFS | |
6012 | ||
6013 | fi | |
6014 | fi | |
6015 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
6016 | if test -n "$DUMPBIN"; then | |
6017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
6018 | $as_echo "$DUMPBIN" >&6; } | |
6019 | else | |
6020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6021 | $as_echo "no" >&6; } | |
6022 | fi | |
6023 | ||
6024 | ||
6025 | test -n "$DUMPBIN" && break | |
6026 | done | |
6027 | fi | |
6028 | if test -z "$DUMPBIN"; then | |
6029 | ac_ct_DUMPBIN=$DUMPBIN | |
6030 | for ac_prog in dumpbin "link -dump" | |
6031 | do | |
6032 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6033 | set dummy $ac_prog; ac_word=$2 | |
6034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6035 | $as_echo_n "checking for $ac_word... " >&6; } | |
6036 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : | |
6037 | $as_echo_n "(cached) " >&6 | |
6038 | else | |
6039 | if test -n "$ac_ct_DUMPBIN"; then | |
6040 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
6041 | else | |
6042 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6043 | for as_dir in $PATH | |
6044 | do | |
6045 | IFS=$as_save_IFS | |
6046 | test -z "$as_dir" && as_dir=. | |
6047 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6048 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6049 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | |
6050 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6051 | break 2 | |
6052 | fi | |
6053 | done | |
6054 | done | |
6055 | IFS=$as_save_IFS | |
6056 | ||
6057 | fi | |
6058 | fi | |
6059 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
6060 | if test -n "$ac_ct_DUMPBIN"; then | |
6061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
6062 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
6063 | else | |
6064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6065 | $as_echo "no" >&6; } | |
6066 | fi | |
6067 | ||
6068 | ||
6069 | test -n "$ac_ct_DUMPBIN" && break | |
6070 | done | |
6071 | ||
6072 | if test "x$ac_ct_DUMPBIN" = x; then | |
6073 | DUMPBIN=":" | |
6074 | else | |
6075 | case $cross_compiling:$ac_tool_warned in | |
6076 | yes:) | |
6077 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6078 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6079 | ac_tool_warned=yes ;; | |
6080 | esac | |
6081 | DUMPBIN=$ac_ct_DUMPBIN | |
6082 | fi | |
6083 | fi | |
6084 | ||
6085 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in | |
6086 | *COFF*) | |
6087 | DUMPBIN="$DUMPBIN -symbols" | |
6088 | ;; | |
6089 | *) | |
6090 | DUMPBIN=: | |
6091 | ;; | |
6092 | esac | |
6093 | fi | |
6094 | ||
6095 | if test "$DUMPBIN" != ":"; then | |
6096 | NM="$DUMPBIN" | |
6097 | fi | |
6098 | fi | |
6099 | test -z "$NM" && NM=nm | |
6100 | ||
6101 | ||
6102 | ||
6103 | ||
6104 | ||
6105 | ||
6106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | |
6107 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
6108 | if ${lt_cv_nm_interface+:} false; then : | |
6109 | $as_echo_n "(cached) " >&6 | |
6110 | else | |
6111 | lt_cv_nm_interface="BSD nm" | |
6112 | echo "int some_variable = 0;" > conftest.$ac_ext | |
6113 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | |
6114 | (eval "$ac_compile" 2>conftest.err) | |
6115 | cat conftest.err >&5 | |
6116 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
6117 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
6118 | cat conftest.err >&5 | |
6119 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) | |
6120 | cat conftest.out >&5 | |
6121 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
6122 | lt_cv_nm_interface="MS dumpbin" | |
6123 | fi | |
6124 | rm -f conftest* | |
6125 | fi | |
6126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 | |
6127 | $as_echo "$lt_cv_nm_interface" >&6; } | |
6128 | ||
6129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
6130 | $as_echo_n "checking whether ln -s works... " >&6; } | |
6131 | LN_S=$as_ln_s | |
6132 | if test "$LN_S" = "ln -s"; then | |
6133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6134 | $as_echo "yes" >&6; } | |
6135 | else | |
6136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
6137 | $as_echo "no, using $LN_S" >&6; } | |
6138 | fi | |
6139 | ||
6140 | # find the maximum length of command line arguments | |
6141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
6142 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
6143 | if ${lt_cv_sys_max_cmd_len+:} false; then : | |
6144 | $as_echo_n "(cached) " >&6 | |
6145 | else | |
6146 | i=0 | |
6147 | teststring="ABCD" | |
6148 | ||
6149 | case $build_os in | |
6150 | msdosdjgpp*) | |
6151 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
6152 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
6153 | # during glob expansion). Even if it were fixed, the result of this | |
6154 | # check would be larger than it should be. | |
6155 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
6156 | ;; | |
6157 | ||
6158 | gnu*) | |
6159 | # Under GNU Hurd, this test is not required because there is | |
6160 | # no limit to the length of command line arguments. | |
6161 | # Libtool will interpret -1 as no limit whatsoever | |
6162 | lt_cv_sys_max_cmd_len=-1; | |
6163 | ;; | |
6164 | ||
6165 | cygwin* | mingw* | cegcc*) | |
6166 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
6167 | # about 5 minutes as the teststring grows exponentially. | |
6168 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
6169 | # you end up with a "frozen" computer, even though with patience | |
6170 | # the test eventually succeeds (with a max line length of 256k). | |
6171 | # Instead, let's just punt: use the minimum linelength reported by | |
6172 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
6173 | lt_cv_sys_max_cmd_len=8192; | |
6174 | ;; | |
6175 | ||
6176 | mint*) | |
6177 | # On MiNT this can take a long time and run out of memory. | |
6178 | lt_cv_sys_max_cmd_len=8192; | |
6179 | ;; | |
6180 | ||
6181 | amigaos*) | |
6182 | # On AmigaOS with pdksh, this test takes hours, literally. | |
6183 | # So we just punt and use a minimum line length of 8192. | |
6184 | lt_cv_sys_max_cmd_len=8192; | |
6185 | ;; | |
6186 | ||
6187 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
6188 | # This has been around since 386BSD, at least. Likely further. | |
6189 | if test -x /sbin/sysctl; then | |
6190 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
6191 | elif test -x /usr/sbin/sysctl; then | |
6192 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
6193 | else | |
6194 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
6195 | fi | |
6196 | # And add a safety zone | |
6197 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
6198 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
6199 | ;; | |
6200 | ||
6201 | interix*) | |
6202 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
6203 | lt_cv_sys_max_cmd_len=196608 | |
6204 | ;; | |
6205 | ||
6206 | osf*) | |
6207 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
6208 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
6209 | # nice to cause kernel panics so lets avoid the loop below. | |
6210 | # First set a reasonable default. | |
6211 | lt_cv_sys_max_cmd_len=16384 | |
6212 | # | |
6213 | if test -x /sbin/sysconfig; then | |
6214 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
6215 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
6216 | esac | |
6217 | fi | |
6218 | ;; | |
6219 | sco3.2v5*) | |
6220 | lt_cv_sys_max_cmd_len=102400 | |
6221 | ;; | |
6222 | sysv5* | sco5v6* | sysv4.2uw2*) | |
6223 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
6224 | if test -n "$kargmax"; then | |
6225 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
6226 | else | |
6227 | lt_cv_sys_max_cmd_len=32768 | |
6228 | fi | |
6229 | ;; | |
6230 | *) | |
6231 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
6232 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
6233 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
6234 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
6235 | else | |
6236 | # Make teststring a little bigger before we do anything with it. | |
6237 | # a 1K string should be a reasonable start. | |
6238 | for i in 1 2 3 4 5 6 7 8 ; do | |
6239 | teststring=$teststring$teststring | |
6240 | done | |
6241 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
6242 | # If test is not a shell built-in, we'll probably end up computing a | |
6243 | # maximum length that is only half of the actual maximum length, but | |
6244 | # we can't tell. | |
6245 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ | |
6246 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
6247 | test $i != 17 # 1/2 MB should be enough | |
6248 | do | |
6249 | i=`expr $i + 1` | |
03385ed3 | 6250 | teststring=$teststring$teststring |
6251 | done | |
6252 | # Only check the string length outside the loop. | |
6253 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
6254 | teststring= | |
6255 | # Add a significant safety factor because C++ compilers can tack on | |
6256 | # massive amounts of additional arguments before passing them to the | |
6257 | # linker. It appears as though 1/2 is a usable value. | |
6258 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
6259 | fi | |
6260 | ;; | |
6261 | esac | |
6262 | ||
6263 | fi | |
6264 | ||
6265 | if test -n $lt_cv_sys_max_cmd_len ; then | |
6266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | |
6267 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
6268 | else | |
6269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | |
6270 | $as_echo "none" >&6; } | |
6271 | fi | |
6272 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
6273 | ||
6274 | ||
6275 | ||
6276 | ||
6277 | ||
6278 | ||
6279 | : ${CP="cp -f"} | |
6280 | : ${MV="mv -f"} | |
6281 | : ${RM="rm -f"} | |
6282 | ||
6283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 | |
6284 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
6285 | # Try some XSI features | |
6286 | xsi_shell=no | |
6287 | ( _lt_dummy="a/b/c" | |
6288 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
6289 | = c,a/b,, \ | |
6290 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
6291 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
6292 | && xsi_shell=yes | |
6293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | |
6294 | $as_echo "$xsi_shell" >&6; } | |
6295 | ||
6296 | ||
6297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 | |
6298 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
6299 | lt_shell_append=no | |
6300 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
6301 | >/dev/null 2>&1 \ | |
6302 | && lt_shell_append=yes | |
6303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | |
6304 | $as_echo "$lt_shell_append" >&6; } | |
6305 | ||
6306 | ||
6307 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
6308 | lt_unset=unset | |
6309 | else | |
6310 | lt_unset=false | |
6311 | fi | |
6312 | ||
6313 | ||
6314 | ||
6315 | ||
6316 | ||
6317 | # test EBCDIC or ASCII | |
6318 | case `echo X|tr X '\101'` in | |
6319 | A) # ASCII based system | |
6320 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
6321 | lt_SP2NL='tr \040 \012' | |
6322 | lt_NL2SP='tr \015\012 \040\040' | |
6323 | ;; | |
6324 | *) # EBCDIC based system | |
6325 | lt_SP2NL='tr \100 \n' | |
6326 | lt_NL2SP='tr \r\n \100\100' | |
6327 | ;; | |
6328 | esac | |
6329 | ||
6330 | ||
6331 | ||
6332 | ||
6333 | ||
6334 | ||
6335 | ||
6336 | ||
6337 | ||
6338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
6339 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
f00f02a3 | 6340 | if ${lt_cv_ld_reload_flag+:} false; then : |
03385ed3 | 6341 | $as_echo_n "(cached) " >&6 |
6342 | else | |
6343 | lt_cv_ld_reload_flag='-r' | |
6344 | fi | |
6345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | |
6346 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
6347 | reload_flag=$lt_cv_ld_reload_flag | |
6348 | case $reload_flag in | |
6349 | "" | " "*) ;; | |
6350 | *) reload_flag=" $reload_flag" ;; | |
6351 | esac | |
6352 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6353 | case $host_os in | |
6354 | darwin*) | |
6355 | if test "$GCC" = yes; then | |
6356 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
6357 | else | |
6358 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6359 | fi | |
6360 | ;; | |
6361 | esac | |
6362 | ||
6363 | ||
6364 | ||
6365 | ||
6366 | ||
6367 | ||
6368 | ||
6369 | ||
6370 | ||
6371 | if test -n "$ac_tool_prefix"; then | |
6372 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
6373 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
6374 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6375 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 6376 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
03385ed3 | 6377 | $as_echo_n "(cached) " >&6 |
6378 | else | |
6379 | if test -n "$OBJDUMP"; then | |
6380 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
6381 | else | |
6382 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6383 | for as_dir in $PATH | |
6384 | do | |
6385 | IFS=$as_save_IFS | |
6386 | test -z "$as_dir" && as_dir=. | |
6387 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 6388 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
03385ed3 | 6389 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
6390 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6391 | break 2 | |
6392 | fi | |
6393 | done | |
6394 | done | |
6395 | IFS=$as_save_IFS | |
6396 | ||
6397 | fi | |
6398 | fi | |
6399 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
6400 | if test -n "$OBJDUMP"; then | |
6401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
6402 | $as_echo "$OBJDUMP" >&6; } | |
6403 | else | |
6404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6405 | $as_echo "no" >&6; } | |
6406 | fi | |
6407 | ||
6408 | ||
6409 | fi | |
6410 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
6411 | ac_ct_OBJDUMP=$OBJDUMP | |
6412 | # Extract the first word of "objdump", so it can be a program name with args. | |
6413 | set dummy objdump; ac_word=$2 | |
6414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6415 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 6416 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
03385ed3 | 6417 | $as_echo_n "(cached) " >&6 |
6418 | else | |
6419 | if test -n "$ac_ct_OBJDUMP"; then | |
6420 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
6421 | else | |
6422 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6423 | for as_dir in $PATH | |
6424 | do | |
6425 | IFS=$as_save_IFS | |
6426 | test -z "$as_dir" && as_dir=. | |
6427 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 6428 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
03385ed3 | 6429 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
6430 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6431 | break 2 | |
6432 | fi | |
6433 | done | |
6434 | done | |
6435 | IFS=$as_save_IFS | |
6436 | ||
6437 | fi | |
6438 | fi | |
6439 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
6440 | if test -n "$ac_ct_OBJDUMP"; then | |
6441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
6442 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
6443 | else | |
6444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6445 | $as_echo "no" >&6; } | |
6446 | fi | |
6447 | ||
6448 | if test "x$ac_ct_OBJDUMP" = x; then | |
6449 | OBJDUMP="false" | |
6450 | else | |
6451 | case $cross_compiling:$ac_tool_warned in | |
6452 | yes:) | |
6453 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6454 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6455 | ac_tool_warned=yes ;; | |
6456 | esac | |
6457 | OBJDUMP=$ac_ct_OBJDUMP | |
6458 | fi | |
6459 | else | |
6460 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
6461 | fi | |
6462 | ||
6463 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
6464 | ||
6465 | ||
6466 | ||
6467 | ||
6468 | ||
6469 | ||
6470 | ||
6471 | ||
6472 | ||
6473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 | |
6474 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
f00f02a3 | 6475 | if ${lt_cv_deplibs_check_method+:} false; then : |
03385ed3 | 6476 | $as_echo_n "(cached) " >&6 |
6477 | else | |
6478 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
6479 | lt_cv_file_magic_test_file= | |
6480 | lt_cv_deplibs_check_method='unknown' | |
6481 | # Need to set the preceding variable on all platforms that support | |
6482 | # interlibrary dependencies. | |
6483 | # 'none' -- dependencies not supported. | |
6484 | # `unknown' -- same as none, but documents that we really don't know. | |
6485 | # 'pass_all' -- all dependencies passed with no checks. | |
6486 | # 'test_compile' -- check by making test program. | |
6487 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
6488 | # which responds to the $file_magic_cmd with a given extended regex. | |
6489 | # If you have `file' or equivalent on your system and you're not sure | |
6490 | # whether `pass_all' will *always* work, you probably want this one. | |
6491 | ||
6492 | case $host_os in | |
6493 | aix[4-9]*) | |
6494 | lt_cv_deplibs_check_method=pass_all | |
6495 | ;; | |
6496 | ||
6497 | beos*) | |
6498 | lt_cv_deplibs_check_method=pass_all | |
6499 | ;; | |
6500 | ||
6501 | bsdi[45]*) | |
6502 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
6503 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
6504 | lt_cv_file_magic_test_file=/shlib/libc.so | |
6505 | ;; | |
6506 | ||
6507 | cygwin*) | |
6508 | # func_win32_libid is a shell function defined in ltmain.sh | |
6509 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6510 | lt_cv_file_magic_cmd='func_win32_libid' | |
6511 | ;; | |
6512 | ||
6513 | mingw* | pw32*) | |
6514 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
6515 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
6516 | # unless we find 'file', for example because we are cross-compiling. | |
6517 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. | |
6518 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
6519 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6520 | lt_cv_file_magic_cmd='func_win32_libid' | |
6521 | else | |
6522 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
6523 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6524 | fi | |
6525 | ;; | |
6526 | ||
6527 | cegcc*) | |
6528 | # use the weaker test based on 'objdump'. See mingw*. | |
6529 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
6530 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6531 | ;; | |
6532 | ||
6533 | darwin* | rhapsody*) | |
6534 | lt_cv_deplibs_check_method=pass_all | |
6535 | ;; | |
6536 | ||
6537 | freebsd* | dragonfly*) | |
6538 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6539 | case $host_cpu in | |
6540 | i*86 ) | |
6541 | # Not sure whether the presence of OpenBSD here was a mistake. | |
6542 | # Let's accept both of them until this is cleared up. | |
6543 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
6544 | lt_cv_file_magic_cmd=/usr/bin/file | |
6545 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
6546 | ;; | |
6547 | esac | |
6548 | else | |
6549 | lt_cv_deplibs_check_method=pass_all | |
6550 | fi | |
6551 | ;; | |
6552 | ||
6553 | gnu*) | |
6554 | lt_cv_deplibs_check_method=pass_all | |
6555 | ;; | |
6556 | ||
6557 | haiku*) | |
6558 | lt_cv_deplibs_check_method=pass_all | |
6559 | ;; | |
6560 | ||
6561 | hpux10.20* | hpux11*) | |
6562 | lt_cv_file_magic_cmd=/usr/bin/file | |
6563 | case $host_cpu in | |
6564 | ia64*) | |
6565 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
6566 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
6567 | ;; | |
6568 | hppa*64*) | |
6569 | 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]' | |
6570 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
6571 | ;; | |
6572 | *) | |
6573 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' | |
6574 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
6575 | ;; | |
6576 | esac | |
6577 | ;; | |
6578 | ||
6579 | interix[3-9]*) | |
6580 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
6581 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
6582 | ;; | |
6583 | ||
6584 | irix5* | irix6* | nonstopux*) | |
6585 | case $LD in | |
6586 | *-32|*"-32 ") libmagic=32-bit;; | |
6587 | *-n32|*"-n32 ") libmagic=N32;; | |
6588 | *-64|*"-64 ") libmagic=64-bit;; | |
6589 | *) libmagic=never-match;; | |
6590 | esac | |
6591 | lt_cv_deplibs_check_method=pass_all | |
6592 | ;; | |
6593 | ||
6594 | # This must be Linux ELF. | |
6595 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
6596 | lt_cv_deplibs_check_method=pass_all | |
6597 | ;; | |
6598 | ||
6599 | netbsd*) | |
6600 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6601 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6602 | else | |
6603 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
6604 | fi | |
6605 | ;; | |
6606 | ||
6607 | newos6*) | |
6608 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
6609 | lt_cv_file_magic_cmd=/usr/bin/file | |
6610 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
6611 | ;; | |
6612 | ||
6613 | *nto* | *qnx*) | |
6614 | lt_cv_deplibs_check_method=pass_all | |
6615 | ;; | |
6616 | ||
6617 | openbsd*) | |
6618 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
6619 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
6620 | else | |
6621 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6622 | fi | |
6623 | ;; | |
6624 | ||
6625 | osf3* | osf4* | osf5*) | |
6626 | lt_cv_deplibs_check_method=pass_all | |
6627 | ;; | |
6628 | ||
6629 | rdos*) | |
6630 | lt_cv_deplibs_check_method=pass_all | |
6631 | ;; | |
6632 | ||
6633 | solaris*) | |
6634 | lt_cv_deplibs_check_method=pass_all | |
6635 | ;; | |
6636 | ||
6637 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
6638 | lt_cv_deplibs_check_method=pass_all | |
6639 | ;; | |
6640 | ||
6641 | sysv4 | sysv4.3*) | |
6642 | case $host_vendor in | |
6643 | motorola) | |
6644 | 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]' | |
6645 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
6646 | ;; | |
6647 | ncr) | |
6648 | lt_cv_deplibs_check_method=pass_all | |
6649 | ;; | |
6650 | sequent) | |
6651 | lt_cv_file_magic_cmd='/bin/file' | |
6652 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
6653 | ;; | |
6654 | sni) | |
6655 | lt_cv_file_magic_cmd='/bin/file' | |
6656 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
6657 | lt_cv_file_magic_test_file=/lib/libc.so | |
6658 | ;; | |
6659 | siemens) | |
6660 | lt_cv_deplibs_check_method=pass_all | |
6661 | ;; | |
6662 | pc) | |
6663 | lt_cv_deplibs_check_method=pass_all | |
6664 | ;; | |
6665 | esac | |
6666 | ;; | |
6667 | ||
6668 | tpf*) | |
6669 | lt_cv_deplibs_check_method=pass_all | |
6670 | ;; | |
6671 | esac | |
6672 | ||
6673 | fi | |
6674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | |
6675 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
6676 | file_magic_cmd=$lt_cv_file_magic_cmd | |
6677 | deplibs_check_method=$lt_cv_deplibs_check_method | |
6678 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
6679 | ||
6680 | ||
6681 | ||
6682 | ||
6683 | ||
6684 | ||
6685 | ||
6686 | ||
6687 | ||
6688 | ||
6689 | ||
6690 | ||
6691 | if test -n "$ac_tool_prefix"; then | |
6692 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
6693 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
6694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6695 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 6696 | if ${ac_cv_prog_AR+:} false; then : |
03385ed3 | 6697 | $as_echo_n "(cached) " >&6 |
6698 | else | |
6699 | if test -n "$AR"; then | |
6700 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6701 | else | |
6702 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6703 | for as_dir in $PATH | |
6704 | do | |
6705 | IFS=$as_save_IFS | |
6706 | test -z "$as_dir" && as_dir=. | |
6707 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 6708 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
03385ed3 | 6709 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
6710 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6711 | break 2 | |
6712 | fi | |
6713 | done | |
6714 | done | |
6715 | IFS=$as_save_IFS | |
6716 | ||
6717 | fi | |
6718 | fi | |
6719 | AR=$ac_cv_prog_AR | |
6720 | if test -n "$AR"; then | |
6721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
6722 | $as_echo "$AR" >&6; } | |
6723 | else | |
6724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6725 | $as_echo "no" >&6; } | |
6726 | fi | |
6727 | ||
6728 | ||
6729 | fi | |
6730 | if test -z "$ac_cv_prog_AR"; then | |
6731 | ac_ct_AR=$AR | |
6732 | # Extract the first word of "ar", so it can be a program name with args. | |
6733 | set dummy ar; ac_word=$2 | |
6734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6735 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 6736 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
03385ed3 | 6737 | $as_echo_n "(cached) " >&6 |
6738 | else | |
6739 | if test -n "$ac_ct_AR"; then | |
6740 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
6741 | else | |
6742 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6743 | for as_dir in $PATH | |
6744 | do | |
6745 | IFS=$as_save_IFS | |
6746 | test -z "$as_dir" && as_dir=. | |
6747 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 6748 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
03385ed3 | 6749 | ac_cv_prog_ac_ct_AR="ar" |
6750 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6751 | break 2 | |
6752 | fi | |
6753 | done | |
6754 | done | |
6755 | IFS=$as_save_IFS | |
6756 | ||
6757 | fi | |
6758 | fi | |
6759 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
6760 | if test -n "$ac_ct_AR"; then | |
6761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
6762 | $as_echo "$ac_ct_AR" >&6; } | |
6763 | else | |
6764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6765 | $as_echo "no" >&6; } | |
6766 | fi | |
6767 | ||
6768 | if test "x$ac_ct_AR" = x; then | |
6769 | AR="false" | |
6770 | else | |
6771 | case $cross_compiling:$ac_tool_warned in | |
6772 | yes:) | |
6773 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6774 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6775 | ac_tool_warned=yes ;; | |
6776 | esac | |
6777 | AR=$ac_ct_AR | |
6778 | fi | |
6779 | else | |
6780 | AR="$ac_cv_prog_AR" | |
6781 | fi | |
6782 | ||
6783 | test -z "$AR" && AR=ar | |
6784 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
6785 | ||
6786 | ||
6787 | ||
6788 | ||
6789 | ||
6790 | ||
6791 | ||
6792 | ||
6793 | ||
6794 | ||
6795 | ||
6796 | if test -n "$ac_tool_prefix"; then | |
6797 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6798 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
6799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6800 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 6801 | if ${ac_cv_prog_STRIP+:} false; then : |
03385ed3 | 6802 | $as_echo_n "(cached) " >&6 |
6803 | else | |
6804 | if test -n "$STRIP"; then | |
6805 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6806 | else | |
6807 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6808 | for as_dir in $PATH | |
6809 | do | |
6810 | IFS=$as_save_IFS | |
6811 | test -z "$as_dir" && as_dir=. | |
6812 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 6813 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
03385ed3 | 6814 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
6815 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6816 | break 2 | |
6817 | fi | |
6818 | done | |
6819 | done | |
6820 | IFS=$as_save_IFS | |
6821 | ||
6822 | fi | |
6823 | fi | |
6824 | STRIP=$ac_cv_prog_STRIP | |
6825 | if test -n "$STRIP"; then | |
6826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
6827 | $as_echo "$STRIP" >&6; } | |
6828 | else | |
6829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6830 | $as_echo "no" >&6; } | |
6831 | fi | |
6832 | ||
6833 | ||
6834 | fi | |
6835 | if test -z "$ac_cv_prog_STRIP"; then | |
6836 | ac_ct_STRIP=$STRIP | |
6837 | # Extract the first word of "strip", so it can be a program name with args. | |
6838 | set dummy strip; ac_word=$2 | |
6839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6840 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 6841 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
03385ed3 | 6842 | $as_echo_n "(cached) " >&6 |
6843 | else | |
6844 | if test -n "$ac_ct_STRIP"; then | |
6845 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6846 | else | |
6847 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6848 | for as_dir in $PATH | |
6849 | do | |
6850 | IFS=$as_save_IFS | |
6851 | test -z "$as_dir" && as_dir=. | |
6852 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 6853 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
03385ed3 | 6854 | ac_cv_prog_ac_ct_STRIP="strip" |
6855 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6856 | break 2 | |
6857 | fi | |
6858 | done | |
6859 | done | |
6860 | IFS=$as_save_IFS | |
6861 | ||
6862 | fi | |
6863 | fi | |
6864 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
6865 | if test -n "$ac_ct_STRIP"; then | |
6866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
6867 | $as_echo "$ac_ct_STRIP" >&6; } | |
6868 | else | |
6869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6870 | $as_echo "no" >&6; } | |
6871 | fi | |
6872 | ||
6873 | if test "x$ac_ct_STRIP" = x; then | |
6874 | STRIP=":" | |
6875 | else | |
6876 | case $cross_compiling:$ac_tool_warned in | |
6877 | yes:) | |
6878 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6879 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6880 | ac_tool_warned=yes ;; | |
6881 | esac | |
6882 | STRIP=$ac_ct_STRIP | |
6883 | fi | |
6884 | else | |
6885 | STRIP="$ac_cv_prog_STRIP" | |
6886 | fi | |
6887 | ||
6888 | test -z "$STRIP" && STRIP=: | |
6889 | ||
6890 | ||
6891 | ||
6892 | ||
6893 | ||
6894 | ||
6895 | if test -n "$ac_tool_prefix"; then | |
6896 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6897 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
6898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6899 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 6900 | if ${ac_cv_prog_RANLIB+:} false; then : |
03385ed3 | 6901 | $as_echo_n "(cached) " >&6 |
6902 | else | |
6903 | if test -n "$RANLIB"; then | |
6904 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6905 | else | |
6906 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6907 | for as_dir in $PATH | |
6908 | do | |
6909 | IFS=$as_save_IFS | |
6910 | test -z "$as_dir" && as_dir=. | |
6911 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 6912 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
03385ed3 | 6913 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
6914 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6915 | break 2 | |
6916 | fi | |
6917 | done | |
6918 | done | |
6919 | IFS=$as_save_IFS | |
6920 | ||
6921 | fi | |
6922 | fi | |
6923 | RANLIB=$ac_cv_prog_RANLIB | |
6924 | if test -n "$RANLIB"; then | |
6925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
6926 | $as_echo "$RANLIB" >&6; } | |
6927 | else | |
6928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6929 | $as_echo "no" >&6; } | |
6930 | fi | |
6931 | ||
6932 | ||
6933 | fi | |
6934 | if test -z "$ac_cv_prog_RANLIB"; then | |
6935 | ac_ct_RANLIB=$RANLIB | |
6936 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6937 | set dummy ranlib; ac_word=$2 | |
6938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6939 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 6940 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
03385ed3 | 6941 | $as_echo_n "(cached) " >&6 |
6942 | else | |
6943 | if test -n "$ac_ct_RANLIB"; then | |
6944 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6945 | else | |
6946 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6947 | for as_dir in $PATH | |
6948 | do | |
6949 | IFS=$as_save_IFS | |
6950 | test -z "$as_dir" && as_dir=. | |
6951 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 6952 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
03385ed3 | 6953 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
6954 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6955 | break 2 | |
6956 | fi | |
6957 | done | |
6958 | done | |
6959 | IFS=$as_save_IFS | |
6960 | ||
6961 | fi | |
6962 | fi | |
6963 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6964 | if test -n "$ac_ct_RANLIB"; then | |
6965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
6966 | $as_echo "$ac_ct_RANLIB" >&6; } | |
6967 | else | |
6968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6969 | $as_echo "no" >&6; } | |
6970 | fi | |
6971 | ||
6972 | if test "x$ac_ct_RANLIB" = x; then | |
6973 | RANLIB=":" | |
6974 | else | |
6975 | case $cross_compiling:$ac_tool_warned in | |
6976 | yes:) | |
6977 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6978 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6979 | ac_tool_warned=yes ;; | |
6980 | esac | |
6981 | RANLIB=$ac_ct_RANLIB | |
6982 | fi | |
6983 | else | |
6984 | RANLIB="$ac_cv_prog_RANLIB" | |
6985 | fi | |
6986 | ||
6987 | test -z "$RANLIB" && RANLIB=: | |
6988 | ||
6989 | ||
6990 | ||
6991 | ||
6992 | ||
6993 | ||
6994 | # Determine commands to create old-style static archives. | |
6995 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
6996 | old_postinstall_cmds='chmod 644 $oldlib' | |
6997 | old_postuninstall_cmds= | |
6998 | ||
6999 | if test -n "$RANLIB"; then | |
7000 | case $host_os in | |
7001 | openbsd*) | |
7002 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
7003 | ;; | |
7004 | *) | |
7005 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
7006 | ;; | |
7007 | esac | |
7008 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
7009 | fi | |
7010 | ||
7011 | case $host_os in | |
7012 | darwin*) | |
7013 | lock_old_archive_extraction=yes ;; | |
7014 | *) | |
7015 | lock_old_archive_extraction=no ;; | |
7016 | esac | |
7017 | ||
7018 | ||
7019 | ||
7020 | ||
7021 | ||
7022 | ||
7023 | ||
7024 | ||
7025 | ||
7026 | ||
7027 | ||
7028 | ||
7029 | ||
7030 | ||
7031 | ||
7032 | ||
7033 | ||
7034 | ||
7035 | ||
7036 | ||
7037 | ||
7038 | ||
7039 | ||
7040 | ||
7041 | ||
7042 | ||
7043 | ||
7044 | ||
7045 | ||
7046 | ||
7047 | ||
7048 | ||
7049 | ||
7050 | ||
7051 | ||
7052 | ||
7053 | ||
7054 | ||
7055 | ||
7056 | # If no C compiler was specified, use CC. | |
7057 | LTCC=${LTCC-"$CC"} | |
7058 | ||
7059 | # If no C compiler flags were specified, use CFLAGS. | |
7060 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7061 | ||
7062 | # Allow CC to be a program name with arguments. | |
7063 | compiler=$CC | |
7064 | ||
7065 | ||
7066 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
7067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
7068 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
f00f02a3 | 7069 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
03385ed3 | 7070 | $as_echo_n "(cached) " >&6 |
7071 | else | |
7072 | ||
7073 | # These are sane defaults that work on at least a few old systems. | |
7074 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
7075 | ||
7076 | # Character class describing NM global symbol codes. | |
7077 | symcode='[BCDEGRST]' | |
7078 | ||
7079 | # Regexp to match symbols that can be accessed directly from C. | |
7080 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
7081 | ||
7082 | # Define system-specific variables. | |
7083 | case $host_os in | |
7084 | aix*) | |
7085 | symcode='[BCDT]' | |
7086 | ;; | |
7087 | cygwin* | mingw* | pw32* | cegcc*) | |
7088 | symcode='[ABCDGISTW]' | |
7089 | ;; | |
7090 | hpux*) | |
7091 | if test "$host_cpu" = ia64; then | |
7092 | symcode='[ABCDEGRST]' | |
7093 | fi | |
7094 | ;; | |
7095 | irix* | nonstopux*) | |
7096 | symcode='[BCDEGRST]' | |
7097 | ;; | |
7098 | osf*) | |
7099 | symcode='[BCDEGQRST]' | |
7100 | ;; | |
7101 | solaris*) | |
7102 | symcode='[BDRT]' | |
7103 | ;; | |
7104 | sco3.2v5*) | |
7105 | symcode='[DT]' | |
7106 | ;; | |
7107 | sysv4.2uw2*) | |
7108 | symcode='[DT]' | |
7109 | ;; | |
7110 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
7111 | symcode='[ABDT]' | |
7112 | ;; | |
7113 | sysv4) | |
7114 | symcode='[DFNSTU]' | |
7115 | ;; | |
7116 | esac | |
7117 | ||
7118 | # If we're using GNU nm, then use its standard symbol codes. | |
7119 | case `$NM -V 2>&1` in | |
7120 | *GNU* | *'with BFD'*) | |
7121 | symcode='[ABCDGIRSTW]' ;; | |
7122 | esac | |
7123 | ||
7124 | # Transform an extracted symbol line into a proper C declaration. | |
7125 | # Some systems (esp. on ia64) link data and code symbols differently, | |
7126 | # so use this general approach. | |
7127 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
7128 | ||
7129 | # Transform an extracted symbol line into symbol name and symbol address | |
7130 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
7131 | 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'" | |
7132 | ||
7133 | # Handle CRLF in mingw tool chain | |
7134 | opt_cr= | |
7135 | case $build_os in | |
7136 | mingw*) | |
7137 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
7138 | ;; | |
7139 | esac | |
7140 | ||
7141 | # Try without a prefix underscore, then with it. | |
7142 | for ac_symprfx in "" "_"; do | |
7143 | ||
7144 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
7145 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
7146 | ||
7147 | # Write the raw and C identifiers. | |
7148 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
7149 | # Fake it for dumpbin and say T for any non-static function | |
7150 | # and D for any global variable. | |
7151 | # Also find C++ and __fastcall symbols from MSVC++, | |
7152 | # which start with @ or ?. | |
7153 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
7154 | " {last_section=section; section=\$ 3};"\ | |
7155 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
7156 | " \$ 0!~/External *\|/{next};"\ | |
7157 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
7158 | " {if(hide[section]) next};"\ | |
7159 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
7160 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
7161 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
7162 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
7163 | " ' prfx=^$ac_symprfx" | |
7164 | else | |
7165 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
7166 | fi | |
7167 | ||
7168 | # Check to see that the pipe works correctly. | |
7169 | pipe_works=no | |
7170 | ||
7171 | rm -f conftest* | |
7172 | cat > conftest.$ac_ext <<_LT_EOF | |
7173 | #ifdef __cplusplus | |
7174 | extern "C" { | |
7175 | #endif | |
7176 | char nm_test_var; | |
7177 | void nm_test_func(void); | |
7178 | void nm_test_func(void){} | |
7179 | #ifdef __cplusplus | |
7180 | } | |
7181 | #endif | |
7182 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
7183 | _LT_EOF | |
7184 | ||
7185 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7186 | (eval $ac_compile) 2>&5 | |
7187 | ac_status=$? | |
7188 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7189 | test $ac_status = 0; }; then | |
7190 | # Now try to grab the symbols. | |
7191 | nlist=conftest.nm | |
7192 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | |
7193 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
7194 | ac_status=$? | |
7195 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7196 | test $ac_status = 0; } && test -s "$nlist"; then | |
7197 | # Try sorting and uniquifying the output. | |
7198 | if sort "$nlist" | uniq > "$nlist"T; then | |
7199 | mv -f "$nlist"T "$nlist" | |
7200 | else | |
7201 | rm -f "$nlist"T | |
7202 | fi | |
7203 | ||
7204 | # Make sure that we snagged all the symbols we need. | |
7205 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
7206 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
7207 | cat <<_LT_EOF > conftest.$ac_ext | |
7208 | #ifdef __cplusplus | |
7209 | extern "C" { | |
7210 | #endif | |
7211 | ||
7212 | _LT_EOF | |
7213 | # Now generate the symbol file. | |
7214 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
7215 | ||
7216 | cat <<_LT_EOF >> conftest.$ac_ext | |
7217 | ||
7218 | /* The mapping between symbol names and symbols. */ | |
7219 | const struct { | |
7220 | const char *name; | |
7221 | void *address; | |
7222 | } | |
7223 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
7224 | { | |
7225 | { "@PROGRAM@", (void *) 0 }, | |
7226 | _LT_EOF | |
7227 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
7228 | cat <<\_LT_EOF >> conftest.$ac_ext | |
7229 | {0, (void *) 0} | |
7230 | }; | |
7231 | ||
7232 | /* This works around a problem in FreeBSD linker */ | |
7233 | #ifdef FREEBSD_WORKAROUND | |
7234 | static const void *lt_preloaded_setup() { | |
7235 | return lt__PROGRAM__LTX_preloaded_symbols; | |
7236 | } | |
7237 | #endif | |
7238 | ||
7239 | #ifdef __cplusplus | |
7240 | } | |
7241 | #endif | |
7242 | _LT_EOF | |
7243 | # Now try linking the two files. | |
7244 | mv conftest.$ac_objext conftstm.$ac_objext | |
7245 | lt_save_LIBS="$LIBS" | |
7246 | lt_save_CFLAGS="$CFLAGS" | |
7247 | LIBS="conftstm.$ac_objext" | |
7248 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
7249 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
7250 | (eval $ac_link) 2>&5 | |
7251 | ac_status=$? | |
7252 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7253 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
7254 | pipe_works=yes | |
7255 | fi | |
7256 | LIBS="$lt_save_LIBS" | |
7257 | CFLAGS="$lt_save_CFLAGS" | |
7258 | else | |
7259 | echo "cannot find nm_test_func in $nlist" >&5 | |
7260 | fi | |
7261 | else | |
7262 | echo "cannot find nm_test_var in $nlist" >&5 | |
7263 | fi | |
7264 | else | |
7265 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
7266 | fi | |
7267 | else | |
7268 | echo "$progname: failed program was:" >&5 | |
7269 | cat conftest.$ac_ext >&5 | |
7270 | fi | |
7271 | rm -rf conftest* conftst* | |
7272 | ||
7273 | # Do not use the global_symbol_pipe unless it works. | |
7274 | if test "$pipe_works" = yes; then | |
7275 | break | |
7276 | else | |
7277 | lt_cv_sys_global_symbol_pipe= | |
7278 | fi | |
7279 | done | |
7280 | ||
7281 | fi | |
7282 | ||
7283 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
7284 | lt_cv_sys_global_symbol_to_cdecl= | |
7285 | fi | |
7286 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
7287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
7288 | $as_echo "failed" >&6; } | |
7289 | else | |
7290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
7291 | $as_echo "ok" >&6; } | |
7292 | fi | |
7293 | ||
7294 | ||
7295 | ||
7296 | ||
7297 | ||
7298 | ||
7299 | ||
7300 | ||
7301 | ||
7302 | ||
7303 | ||
7304 | ||
7305 | ||
7306 | ||
7307 | ||
7308 | ||
7309 | ||
7310 | ||
7311 | ||
7312 | ||
03385ed3 | 7313 | |
7314 | ||
7315 | # Check whether --enable-libtool-lock was given. | |
7316 | if test "${enable_libtool_lock+set}" = set; then : | |
7317 | enableval=$enable_libtool_lock; | |
7318 | fi | |
7319 | ||
7320 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
7321 | ||
7322 | # Some flags need to be propagated to the compiler or linker for good | |
7323 | # libtool support. | |
7324 | case $host in | |
7325 | ia64-*-hpux*) | |
7326 | # Find out which ABI we are using. | |
7327 | echo 'int i;' > conftest.$ac_ext | |
7328 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7329 | (eval $ac_compile) 2>&5 | |
7330 | ac_status=$? | |
7331 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7332 | test $ac_status = 0; }; then | |
7333 | case `/usr/bin/file conftest.$ac_objext` in | |
7334 | *ELF-32*) | |
7335 | HPUX_IA64_MODE="32" | |
7336 | ;; | |
7337 | *ELF-64*) | |
7338 | HPUX_IA64_MODE="64" | |
7339 | ;; | |
7340 | esac | |
7341 | fi | |
7342 | rm -rf conftest* | |
7343 | ;; | |
7344 | *-*-irix6*) | |
7345 | # Find out which ABI we are using. | |
7346 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
7347 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7348 | (eval $ac_compile) 2>&5 | |
7349 | ac_status=$? | |
7350 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7351 | test $ac_status = 0; }; then | |
7352 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
7353 | case `/usr/bin/file conftest.$ac_objext` in | |
7354 | *32-bit*) | |
7355 | LD="${LD-ld} -melf32bsmip" | |
7356 | ;; | |
7357 | *N32*) | |
7358 | LD="${LD-ld} -melf32bmipn32" | |
7359 | ;; | |
7360 | *64-bit*) | |
7361 | LD="${LD-ld} -melf64bmip" | |
7362 | ;; | |
7363 | esac | |
7364 | else | |
7365 | case `/usr/bin/file conftest.$ac_objext` in | |
7366 | *32-bit*) | |
7367 | LD="${LD-ld} -32" | |
7368 | ;; | |
7369 | *N32*) | |
7370 | LD="${LD-ld} -n32" | |
7371 | ;; | |
7372 | *64-bit*) | |
7373 | LD="${LD-ld} -64" | |
7374 | ;; | |
7375 | esac | |
7376 | fi | |
7377 | fi | |
7378 | rm -rf conftest* | |
7379 | ;; | |
7380 | ||
7381 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ | |
7382 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
7383 | # Find out which ABI we are using. | |
7384 | echo 'int i;' > conftest.$ac_ext | |
7385 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7386 | (eval $ac_compile) 2>&5 | |
7387 | ac_status=$? | |
7388 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7389 | test $ac_status = 0; }; then | |
7390 | case `/usr/bin/file conftest.o` in | |
7391 | *32-bit*) | |
7392 | case $host in | |
7393 | x86_64-*kfreebsd*-gnu) | |
7394 | LD="${LD-ld} -m elf_i386_fbsd" | |
7395 | ;; | |
7396 | x86_64-*linux*) | |
7397 | case `/usr/bin/file conftest.o` in | |
7398 | *x86-64*) | |
7399 | LD="${LD-ld} -m elf32_x86_64" | |
7400 | ;; | |
7401 | *) | |
7402 | LD="${LD-ld} -m elf_i386" | |
7403 | ;; | |
7404 | esac | |
7405 | ;; | |
7406 | powerpc64le-*linux*) | |
7407 | LD="${LD-ld} -m elf32lppclinux" | |
7408 | ;; | |
7409 | powerpc64-*linux*) | |
7410 | LD="${LD-ld} -m elf32ppclinux" | |
7411 | ;; | |
7412 | s390x-*linux*) | |
7413 | LD="${LD-ld} -m elf_s390" | |
7414 | ;; | |
7415 | sparc64-*linux*) | |
7416 | LD="${LD-ld} -m elf32_sparc" | |
7417 | ;; | |
7418 | esac | |
7419 | ;; | |
7420 | *64-bit*) | |
7421 | case $host in | |
7422 | x86_64-*kfreebsd*-gnu) | |
7423 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
7424 | ;; | |
7425 | x86_64-*linux*) | |
7426 | LD="${LD-ld} -m elf_x86_64" | |
7427 | ;; | |
7428 | powerpcle-*linux*) | |
7429 | LD="${LD-ld} -m elf64lppc" | |
7430 | ;; | |
7431 | powerpc-*linux*) | |
7432 | LD="${LD-ld} -m elf64ppc" | |
7433 | ;; | |
7434 | s390*-*linux*|s390*-*tpf*) | |
7435 | LD="${LD-ld} -m elf64_s390" | |
7436 | ;; | |
7437 | sparc*-*linux*) | |
7438 | LD="${LD-ld} -m elf64_sparc" | |
7439 | ;; | |
7440 | esac | |
7441 | ;; | |
7442 | esac | |
7443 | fi | |
7444 | rm -rf conftest* | |
7445 | ;; | |
7446 | ||
7447 | *-*-sco3.2v5*) | |
7448 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
7449 | SAVE_CFLAGS="$CFLAGS" | |
7450 | CFLAGS="$CFLAGS -belf" | |
7451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
7452 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
f00f02a3 | 7453 | if ${lt_cv_cc_needs_belf+:} false; then : |
03385ed3 | 7454 | $as_echo_n "(cached) " >&6 |
7455 | else | |
7456 | ac_ext=c | |
7457 | ac_cpp='$CPP $CPPFLAGS' | |
7458 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7459 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7460 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7461 | ||
7462 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7463 | /* end confdefs.h. */ | |
7464 | ||
7465 | int | |
7466 | main () | |
7467 | { | |
7468 | ||
7469 | ; | |
7470 | return 0; | |
7471 | } | |
7472 | _ACEOF | |
7473 | if ac_fn_c_try_link "$LINENO"; then : | |
7474 | lt_cv_cc_needs_belf=yes | |
7475 | else | |
7476 | lt_cv_cc_needs_belf=no | |
7477 | fi | |
7478 | rm -f core conftest.err conftest.$ac_objext \ | |
7479 | conftest$ac_exeext conftest.$ac_ext | |
7480 | ac_ext=c | |
7481 | ac_cpp='$CPP $CPPFLAGS' | |
7482 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7483 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7484 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7485 | ||
7486 | fi | |
7487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
7488 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
7489 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
7490 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
7491 | CFLAGS="$SAVE_CFLAGS" | |
7492 | fi | |
7493 | ;; | |
7494 | sparc*-*solaris*) | |
7495 | # Find out which ABI we are using. | |
7496 | echo 'int i;' > conftest.$ac_ext | |
7497 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7498 | (eval $ac_compile) 2>&5 | |
7499 | ac_status=$? | |
7500 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7501 | test $ac_status = 0; }; then | |
7502 | case `/usr/bin/file conftest.o` in | |
7503 | *64-bit*) | |
7504 | case $lt_cv_prog_gnu_ld in | |
7505 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
7506 | *) | |
7507 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
7508 | LD="${LD-ld} -64" | |
7509 | fi | |
7510 | ;; | |
7511 | esac | |
7512 | ;; | |
7513 | esac | |
7514 | fi | |
7515 | rm -rf conftest* | |
7516 | ;; | |
7517 | esac | |
7518 | ||
7519 | need_locks="$enable_libtool_lock" | |
7520 | ||
7521 | ||
7522 | case $host_os in | |
7523 | rhapsody* | darwin*) | |
7524 | if test -n "$ac_tool_prefix"; then | |
7525 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
7526 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
7527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7528 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 7529 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
03385ed3 | 7530 | $as_echo_n "(cached) " >&6 |
7531 | else | |
7532 | if test -n "$DSYMUTIL"; then | |
7533 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
7534 | else | |
7535 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7536 | for as_dir in $PATH | |
7537 | do | |
7538 | IFS=$as_save_IFS | |
7539 | test -z "$as_dir" && as_dir=. | |
7540 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 7541 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
03385ed3 | 7542 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
7543 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7544 | break 2 | |
7545 | fi | |
7546 | done | |
7547 | done | |
7548 | IFS=$as_save_IFS | |
7549 | ||
7550 | fi | |
7551 | fi | |
7552 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
7553 | if test -n "$DSYMUTIL"; then | |
7554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
7555 | $as_echo "$DSYMUTIL" >&6; } | |
7556 | else | |
7557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7558 | $as_echo "no" >&6; } | |
7559 | fi | |
7560 | ||
7561 | ||
7562 | fi | |
7563 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
7564 | ac_ct_DSYMUTIL=$DSYMUTIL | |
7565 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
7566 | set dummy dsymutil; ac_word=$2 | |
7567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7568 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 7569 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
03385ed3 | 7570 | $as_echo_n "(cached) " >&6 |
7571 | else | |
7572 | if test -n "$ac_ct_DSYMUTIL"; then | |
7573 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
7574 | else | |
7575 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7576 | for as_dir in $PATH | |
7577 | do | |
7578 | IFS=$as_save_IFS | |
7579 | test -z "$as_dir" && as_dir=. | |
7580 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 7581 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
79c21307 | 7582 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
03385ed3 | 7583 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7584 | break 2 | |
7585 | fi | |
7586 | done | |
7587 | done | |
7588 | IFS=$as_save_IFS | |
7589 | ||
7590 | fi | |
7591 | fi | |
79c21307 | 7592 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
7593 | if test -n "$ac_ct_DSYMUTIL"; then | |
7594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
7595 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
03385ed3 | 7596 | else |
7597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7598 | $as_echo "no" >&6; } | |
7599 | fi | |
7600 | ||
79c21307 | 7601 | if test "x$ac_ct_DSYMUTIL" = x; then |
7602 | DSYMUTIL=":" | |
03385ed3 | 7603 | else |
7604 | case $cross_compiling:$ac_tool_warned in | |
7605 | yes:) | |
7606 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7607 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7608 | ac_tool_warned=yes ;; | |
7609 | esac | |
79c21307 | 7610 | DSYMUTIL=$ac_ct_DSYMUTIL |
03385ed3 | 7611 | fi |
7612 | else | |
79c21307 | 7613 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
03385ed3 | 7614 | fi |
7615 | ||
7616 | if test -n "$ac_tool_prefix"; then | |
79c21307 | 7617 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
7618 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
03385ed3 | 7619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7620 | $as_echo_n "checking for $ac_word... " >&6; } | |
79c21307 | 7621 | if ${ac_cv_prog_NMEDIT+:} false; then : |
03385ed3 | 7622 | $as_echo_n "(cached) " >&6 |
7623 | else | |
79c21307 | 7624 | if test -n "$NMEDIT"; then |
7625 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
03385ed3 | 7626 | else |
7627 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7628 | for as_dir in $PATH | |
7629 | do | |
7630 | IFS=$as_save_IFS | |
7631 | test -z "$as_dir" && as_dir=. | |
7632 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 7633 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
79c21307 | 7634 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
03385ed3 | 7635 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7636 | break 2 | |
7637 | fi | |
7638 | done | |
7639 | done | |
7640 | IFS=$as_save_IFS | |
7641 | ||
7642 | fi | |
7643 | fi | |
79c21307 | 7644 | NMEDIT=$ac_cv_prog_NMEDIT |
7645 | if test -n "$NMEDIT"; then | |
7646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
7647 | $as_echo "$NMEDIT" >&6; } | |
03385ed3 | 7648 | else |
7649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7650 | $as_echo "no" >&6; } | |
7651 | fi | |
7652 | ||
7653 | ||
7654 | fi | |
79c21307 | 7655 | if test -z "$ac_cv_prog_NMEDIT"; then |
7656 | ac_ct_NMEDIT=$NMEDIT | |
7657 | # Extract the first word of "nmedit", so it can be a program name with args. | |
7658 | set dummy nmedit; ac_word=$2 | |
03385ed3 | 7659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7660 | $as_echo_n "checking for $ac_word... " >&6; } | |
79c21307 | 7661 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
03385ed3 | 7662 | $as_echo_n "(cached) " >&6 |
7663 | else | |
79c21307 | 7664 | if test -n "$ac_ct_NMEDIT"; then |
7665 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
03385ed3 | 7666 | else |
7667 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7668 | for as_dir in $PATH | |
7669 | do | |
7670 | IFS=$as_save_IFS | |
7671 | test -z "$as_dir" && as_dir=. | |
7672 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 7673 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
79c21307 | 7674 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
03385ed3 | 7675 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7676 | break 2 | |
7677 | fi | |
7678 | done | |
7679 | done | |
7680 | IFS=$as_save_IFS | |
7681 | ||
7682 | fi | |
7683 | fi | |
79c21307 | 7684 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
7685 | if test -n "$ac_ct_NMEDIT"; then | |
7686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
7687 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
03385ed3 | 7688 | else |
7689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7690 | $as_echo "no" >&6; } | |
7691 | fi | |
7692 | ||
79c21307 | 7693 | if test "x$ac_ct_NMEDIT" = x; then |
7694 | NMEDIT=":" | |
03385ed3 | 7695 | else |
7696 | case $cross_compiling:$ac_tool_warned in | |
7697 | yes:) | |
7698 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7699 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7700 | ac_tool_warned=yes ;; | |
7701 | esac | |
79c21307 | 7702 | NMEDIT=$ac_ct_NMEDIT |
03385ed3 | 7703 | fi |
7704 | else | |
79c21307 | 7705 | NMEDIT="$ac_cv_prog_NMEDIT" |
03385ed3 | 7706 | fi |
7707 | ||
7708 | if test -n "$ac_tool_prefix"; then | |
79c21307 | 7709 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
7710 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
03385ed3 | 7711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7712 | $as_echo_n "checking for $ac_word... " >&6; } | |
79c21307 | 7713 | if ${ac_cv_prog_LIPO+:} false; then : |
03385ed3 | 7714 | $as_echo_n "(cached) " >&6 |
7715 | else | |
79c21307 | 7716 | if test -n "$LIPO"; then |
7717 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
03385ed3 | 7718 | else |
7719 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7720 | for as_dir in $PATH | |
7721 | do | |
7722 | IFS=$as_save_IFS | |
7723 | test -z "$as_dir" && as_dir=. | |
7724 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 7725 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
79c21307 | 7726 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
03385ed3 | 7727 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7728 | break 2 | |
7729 | fi | |
7730 | done | |
7731 | done | |
7732 | IFS=$as_save_IFS | |
7733 | ||
7734 | fi | |
7735 | fi | |
79c21307 | 7736 | LIPO=$ac_cv_prog_LIPO |
7737 | if test -n "$LIPO"; then | |
7738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
7739 | $as_echo "$LIPO" >&6; } | |
03385ed3 | 7740 | else |
7741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7742 | $as_echo "no" >&6; } | |
7743 | fi | |
7744 | ||
7745 | ||
7746 | fi | |
79c21307 | 7747 | if test -z "$ac_cv_prog_LIPO"; then |
7748 | ac_ct_LIPO=$LIPO | |
7749 | # Extract the first word of "lipo", so it can be a program name with args. | |
7750 | set dummy lipo; ac_word=$2 | |
03385ed3 | 7751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7752 | $as_echo_n "checking for $ac_word... " >&6; } | |
79c21307 | 7753 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
03385ed3 | 7754 | $as_echo_n "(cached) " >&6 |
7755 | else | |
79c21307 | 7756 | if test -n "$ac_ct_LIPO"; then |
7757 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
03385ed3 | 7758 | else |
7759 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7760 | for as_dir in $PATH | |
7761 | do | |
7762 | IFS=$as_save_IFS | |
7763 | test -z "$as_dir" && as_dir=. | |
7764 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 7765 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
79c21307 | 7766 | ac_cv_prog_ac_ct_LIPO="lipo" |
03385ed3 | 7767 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7768 | break 2 | |
7769 | fi | |
7770 | done | |
7771 | done | |
7772 | IFS=$as_save_IFS | |
7773 | ||
7774 | fi | |
7775 | fi | |
79c21307 | 7776 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
7777 | if test -n "$ac_ct_LIPO"; then | |
7778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
7779 | $as_echo "$ac_ct_LIPO" >&6; } | |
03385ed3 | 7780 | else |
7781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7782 | $as_echo "no" >&6; } | |
7783 | fi | |
7784 | ||
79c21307 | 7785 | if test "x$ac_ct_LIPO" = x; then |
7786 | LIPO=":" | |
03385ed3 | 7787 | else |
7788 | case $cross_compiling:$ac_tool_warned in | |
7789 | yes:) | |
7790 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7791 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7792 | ac_tool_warned=yes ;; | |
7793 | esac | |
79c21307 | 7794 | LIPO=$ac_ct_LIPO |
03385ed3 | 7795 | fi |
7796 | else | |
79c21307 | 7797 | LIPO="$ac_cv_prog_LIPO" |
03385ed3 | 7798 | fi |
7799 | ||
79c21307 | 7800 | if test -n "$ac_tool_prefix"; then |
7801 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
7802 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
7803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7804 | $as_echo_n "checking for $ac_word... " >&6; } | |
7805 | if ${ac_cv_prog_OTOOL+:} false; then : | |
03385ed3 | 7806 | $as_echo_n "(cached) " >&6 |
7807 | else | |
79c21307 | 7808 | if test -n "$OTOOL"; then |
7809 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
03385ed3 | 7810 | else |
79c21307 | 7811 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7812 | for as_dir in $PATH | |
7813 | do | |
7814 | IFS=$as_save_IFS | |
7815 | test -z "$as_dir" && as_dir=. | |
7816 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7817 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7818 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
7819 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7820 | break 2 | |
7821 | fi | |
7822 | done | |
7823 | done | |
7824 | IFS=$as_save_IFS | |
03385ed3 | 7825 | |
03385ed3 | 7826 | fi |
03385ed3 | 7827 | fi |
79c21307 | 7828 | OTOOL=$ac_cv_prog_OTOOL |
7829 | if test -n "$OTOOL"; then | |
7830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
7831 | $as_echo "$OTOOL" >&6; } | |
03385ed3 | 7832 | else |
79c21307 | 7833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7834 | $as_echo "no" >&6; } | |
03385ed3 | 7835 | fi |
03385ed3 | 7836 | |
79c21307 | 7837 | |
03385ed3 | 7838 | fi |
79c21307 | 7839 | if test -z "$ac_cv_prog_OTOOL"; then |
7840 | ac_ct_OTOOL=$OTOOL | |
7841 | # Extract the first word of "otool", so it can be a program name with args. | |
7842 | set dummy otool; ac_word=$2 | |
7843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7844 | $as_echo_n "checking for $ac_word... " >&6; } | |
7845 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : | |
03385ed3 | 7846 | $as_echo_n "(cached) " >&6 |
7847 | else | |
79c21307 | 7848 | if test -n "$ac_ct_OTOOL"; then |
7849 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
7850 | else | |
7851 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7852 | for as_dir in $PATH | |
03385ed3 | 7853 | do |
79c21307 | 7854 | IFS=$as_save_IFS |
7855 | test -z "$as_dir" && as_dir=. | |
7856 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7857 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7858 | ac_cv_prog_ac_ct_OTOOL="otool" | |
7859 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7860 | break 2 | |
7861 | fi | |
7862 | done | |
7863 | done | |
7864 | IFS=$as_save_IFS | |
03385ed3 | 7865 | |
79c21307 | 7866 | fi |
7867 | fi | |
7868 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
7869 | if test -n "$ac_ct_OTOOL"; then | |
7870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
7871 | $as_echo "$ac_ct_OTOOL" >&6; } | |
03385ed3 | 7872 | else |
79c21307 | 7873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7874 | $as_echo "no" >&6; } | |
03385ed3 | 7875 | fi |
03385ed3 | 7876 | |
79c21307 | 7877 | if test "x$ac_ct_OTOOL" = x; then |
7878 | OTOOL=":" | |
7879 | else | |
7880 | case $cross_compiling:$ac_tool_warned in | |
7881 | yes:) | |
7882 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7883 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7884 | ac_tool_warned=yes ;; | |
7885 | esac | |
7886 | OTOOL=$ac_ct_OTOOL | |
7887 | fi | |
03385ed3 | 7888 | else |
79c21307 | 7889 | OTOOL="$ac_cv_prog_OTOOL" |
03385ed3 | 7890 | fi |
03385ed3 | 7891 | |
79c21307 | 7892 | if test -n "$ac_tool_prefix"; then |
7893 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
7894 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
7895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7896 | $as_echo_n "checking for $ac_word... " >&6; } | |
7897 | if ${ac_cv_prog_OTOOL64+:} false; then : | |
7898 | $as_echo_n "(cached) " >&6 | |
7899 | else | |
7900 | if test -n "$OTOOL64"; then | |
7901 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
7902 | else | |
7903 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7904 | for as_dir in $PATH | |
7905 | do | |
7906 | IFS=$as_save_IFS | |
7907 | test -z "$as_dir" && as_dir=. | |
7908 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7909 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7910 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
7911 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7912 | break 2 | |
7913 | fi | |
03385ed3 | 7914 | done |
79c21307 | 7915 | done |
7916 | IFS=$as_save_IFS | |
7917 | ||
7918 | fi | |
7919 | fi | |
7920 | OTOOL64=$ac_cv_prog_OTOOL64 | |
7921 | if test -n "$OTOOL64"; then | |
7922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
7923 | $as_echo "$OTOOL64" >&6; } | |
7924 | else | |
7925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7926 | $as_echo "no" >&6; } | |
03385ed3 | 7927 | fi |
7928 | ||
03385ed3 | 7929 | |
7930 | fi | |
79c21307 | 7931 | if test -z "$ac_cv_prog_OTOOL64"; then |
7932 | ac_ct_OTOOL64=$OTOOL64 | |
7933 | # Extract the first word of "otool64", so it can be a program name with args. | |
7934 | set dummy otool64; ac_word=$2 | |
7935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7936 | $as_echo_n "checking for $ac_word... " >&6; } | |
7937 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : | |
7938 | $as_echo_n "(cached) " >&6 | |
03385ed3 | 7939 | else |
79c21307 | 7940 | if test -n "$ac_ct_OTOOL64"; then |
7941 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
7942 | else | |
7943 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7944 | for as_dir in $PATH | |
03385ed3 | 7945 | do |
79c21307 | 7946 | IFS=$as_save_IFS |
7947 | test -z "$as_dir" && as_dir=. | |
7948 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7949 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7950 | ac_cv_prog_ac_ct_OTOOL64="otool64" | |
7951 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7952 | break 2 | |
7953 | fi | |
7954 | done | |
7955 | done | |
7956 | IFS=$as_save_IFS | |
03385ed3 | 7957 | |
03385ed3 | 7958 | fi |
79c21307 | 7959 | fi |
7960 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
7961 | if test -n "$ac_ct_OTOOL64"; then | |
7962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
7963 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
03385ed3 | 7964 | else |
79c21307 | 7965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7966 | $as_echo "no" >&6; } | |
03385ed3 | 7967 | fi |
03385ed3 | 7968 | |
79c21307 | 7969 | if test "x$ac_ct_OTOOL64" = x; then |
7970 | OTOOL64=":" | |
7971 | else | |
7972 | case $cross_compiling:$ac_tool_warned in | |
7973 | yes:) | |
7974 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7975 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7976 | ac_tool_warned=yes ;; | |
7977 | esac | |
7978 | OTOOL64=$ac_ct_OTOOL64 | |
7979 | fi | |
03385ed3 | 7980 | else |
79c21307 | 7981 | OTOOL64="$ac_cv_prog_OTOOL64" |
03385ed3 | 7982 | fi |
7983 | ||
03385ed3 | 7984 | |
7985 | ||
03385ed3 | 7986 | |
03385ed3 | 7987 | |
03385ed3 | 7988 | |
03385ed3 | 7989 | |
03385ed3 | 7990 | |
03385ed3 | 7991 | |
03385ed3 | 7992 | |
03385ed3 | 7993 | |
03385ed3 | 7994 | |
03385ed3 | 7995 | |
03385ed3 | 7996 | |
79c21307 | 7997 | |
7998 | ||
7999 | ||
8000 | ||
8001 | ||
8002 | ||
8003 | ||
8004 | ||
8005 | ||
8006 | ||
8007 | ||
8008 | ||
8009 | ||
8010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
8011 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
8012 | if ${lt_cv_apple_cc_single_mod+:} false; then : | |
8013 | $as_echo_n "(cached) " >&6 | |
03385ed3 | 8014 | else |
79c21307 | 8015 | lt_cv_apple_cc_single_mod=no |
8016 | if test -z "${LT_MULTI_MODULE}"; then | |
8017 | # By default we will add the -single_module flag. You can override | |
8018 | # by either setting the environment variable LT_MULTI_MODULE | |
8019 | # non-empty at configure time, or by adding -multi_module to the | |
8020 | # link flags. | |
8021 | rm -rf libconftest.dylib* | |
8022 | echo "int foo(void){return 1;}" > conftest.c | |
8023 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8024 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
8025 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8026 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
8027 | _lt_result=$? | |
8028 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
8029 | lt_cv_apple_cc_single_mod=yes | |
8030 | else | |
8031 | cat conftest.err >&5 | |
8032 | fi | |
8033 | rm -rf libconftest.dylib* | |
8034 | rm -f conftest.* | |
8035 | fi | |
8036 | fi | |
8037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
8038 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
8039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
8040 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
8041 | if ${lt_cv_ld_exported_symbols_list+:} false; then : | |
8042 | $as_echo_n "(cached) " >&6 | |
8043 | else | |
8044 | lt_cv_ld_exported_symbols_list=no | |
8045 | save_LDFLAGS=$LDFLAGS | |
8046 | echo "_main" > conftest.sym | |
8047 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
8048 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
03385ed3 | 8049 | /* end confdefs.h. */ |
03385ed3 | 8050 | |
03385ed3 | 8051 | int |
8052 | main () | |
8053 | { | |
79c21307 | 8054 | |
8055 | ; | |
03385ed3 | 8056 | return 0; |
8057 | } | |
8058 | _ACEOF | |
79c21307 | 8059 | if ac_fn_c_try_link "$LINENO"; then : |
8060 | lt_cv_ld_exported_symbols_list=yes | |
03385ed3 | 8061 | else |
79c21307 | 8062 | lt_cv_ld_exported_symbols_list=no |
03385ed3 | 8063 | fi |
79c21307 | 8064 | rm -f core conftest.err conftest.$ac_objext \ |
8065 | conftest$ac_exeext conftest.$ac_ext | |
8066 | LDFLAGS="$save_LDFLAGS" | |
03385ed3 | 8067 | |
8068 | fi | |
79c21307 | 8069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
8070 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
8071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | |
8072 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
8073 | if ${lt_cv_ld_force_load+:} false; then : | |
8074 | $as_echo_n "(cached) " >&6 | |
8075 | else | |
8076 | lt_cv_ld_force_load=no | |
8077 | cat > conftest.c << _LT_EOF | |
8078 | int forced_loaded() { return 2;} | |
8079 | _LT_EOF | |
8080 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
8081 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
8082 | echo "$AR cru libconftest.a conftest.o" >&5 | |
8083 | $AR cru libconftest.a conftest.o 2>&5 | |
8084 | cat > conftest.c << _LT_EOF | |
8085 | int main() { return 0;} | |
8086 | _LT_EOF | |
8087 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
8088 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
8089 | _lt_result=$? | |
8090 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | |
8091 | lt_cv_ld_force_load=yes | |
8092 | else | |
8093 | cat conftest.err >&5 | |
8094 | fi | |
8095 | rm -f conftest.err libconftest.a conftest conftest.c | |
8096 | rm -rf conftest.dSYM | |
03385ed3 | 8097 | |
8098 | fi | |
79c21307 | 8099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
8100 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
8101 | case $host_os in | |
8102 | rhapsody* | darwin1.[012]) | |
8103 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
8104 | darwin1.*) | |
8105 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
8106 | darwin*) # darwin 5.x on | |
8107 | # if running on 10.5 or later, the deployment target defaults | |
8108 | # to the OS version, if on x86, and 10.4, the deployment | |
8109 | # target defaults to 10.4. Don't you love it? | |
8110 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
8111 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
8112 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
8113 | 10.[012][,.]*) | |
8114 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
8115 | 10.*) | |
8116 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
8117 | esac | |
8118 | ;; | |
8119 | esac | |
8120 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
8121 | _lt_dar_single_mod='$single_module' | |
8122 | fi | |
8123 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
8124 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
8125 | else | |
8126 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
8127 | fi | |
8128 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | |
8129 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
8130 | else | |
8131 | _lt_dsymutil= | |
8132 | fi | |
8133 | ;; | |
8134 | esac | |
03385ed3 | 8135 | |
8136 | for ac_header in dlfcn.h | |
8137 | do : | |
8138 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
8139 | " | |
f00f02a3 | 8140 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
03385ed3 | 8141 | cat >>confdefs.h <<_ACEOF |
8142 | #define HAVE_DLFCN_H 1 | |
8143 | _ACEOF | |
8144 | ||
8145 | fi | |
8146 | ||
8147 | done | |
8148 | ||
8149 | ||
8150 | ||
8151 | ||
8152 | ||
8153 | # Set options | |
8154 | enable_dlopen=yes | |
8155 | ||
8156 | ||
8157 | ||
8158 | ||
8159 | enable_win32_dll=no | |
8160 | ||
8161 | ||
8162 | # Check whether --enable-shared was given. | |
8163 | if test "${enable_shared+set}" = set; then : | |
8164 | enableval=$enable_shared; p=${PACKAGE-default} | |
8165 | case $enableval in | |
8166 | yes) enable_shared=yes ;; | |
8167 | no) enable_shared=no ;; | |
8168 | *) | |
8169 | enable_shared=no | |
8170 | # Look at the argument we got. We use all the common list separators. | |
8171 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8172 | for pkg in $enableval; do | |
8173 | IFS="$lt_save_ifs" | |
8174 | if test "X$pkg" = "X$p"; then | |
8175 | enable_shared=yes | |
8176 | fi | |
8177 | done | |
8178 | IFS="$lt_save_ifs" | |
8179 | ;; | |
8180 | esac | |
8181 | else | |
8182 | enable_shared=yes | |
8183 | fi | |
8184 | ||
8185 | ||
8186 | ||
8187 | ||
8188 | ||
8189 | ||
8190 | ||
8191 | ||
8192 | ||
8193 | # Check whether --enable-static was given. | |
8194 | if test "${enable_static+set}" = set; then : | |
8195 | enableval=$enable_static; p=${PACKAGE-default} | |
8196 | case $enableval in | |
8197 | yes) enable_static=yes ;; | |
8198 | no) enable_static=no ;; | |
8199 | *) | |
8200 | enable_static=no | |
8201 | # Look at the argument we got. We use all the common list separators. | |
8202 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8203 | for pkg in $enableval; do | |
8204 | IFS="$lt_save_ifs" | |
8205 | if test "X$pkg" = "X$p"; then | |
8206 | enable_static=yes | |
8207 | fi | |
8208 | done | |
8209 | IFS="$lt_save_ifs" | |
8210 | ;; | |
8211 | esac | |
8212 | else | |
8213 | enable_static=yes | |
8214 | fi | |
8215 | ||
8216 | ||
8217 | ||
8218 | ||
8219 | ||
8220 | ||
8221 | ||
8222 | ||
8223 | ||
8224 | ||
8225 | # Check whether --with-pic was given. | |
8226 | if test "${with_pic+set}" = set; then : | |
8227 | withval=$with_pic; pic_mode="$withval" | |
8228 | else | |
8229 | pic_mode=default | |
8230 | fi | |
8231 | ||
8232 | ||
8233 | test -z "$pic_mode" && pic_mode=default | |
8234 | ||
8235 | ||
8236 | ||
8237 | ||
8238 | ||
8239 | ||
8240 | ||
8241 | # Check whether --enable-fast-install was given. | |
8242 | if test "${enable_fast_install+set}" = set; then : | |
8243 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
8244 | case $enableval in | |
8245 | yes) enable_fast_install=yes ;; | |
8246 | no) enable_fast_install=no ;; | |
8247 | *) | |
8248 | enable_fast_install=no | |
8249 | # Look at the argument we got. We use all the common list separators. | |
8250 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8251 | for pkg in $enableval; do | |
8252 | IFS="$lt_save_ifs" | |
8253 | if test "X$pkg" = "X$p"; then | |
8254 | enable_fast_install=yes | |
8255 | fi | |
8256 | done | |
8257 | IFS="$lt_save_ifs" | |
8258 | ;; | |
8259 | esac | |
8260 | else | |
8261 | enable_fast_install=yes | |
8262 | fi | |
8263 | ||
8264 | ||
8265 | ||
8266 | ||
8267 | ||
8268 | ||
8269 | ||
8270 | ||
8271 | ||
8272 | ||
8273 | ||
8274 | # This can be used to rebuild libtool when needed | |
8275 | LIBTOOL_DEPS="$ltmain" | |
8276 | ||
8277 | # Always use our own libtool. | |
8278 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
8279 | ||
8280 | ||
8281 | ||
8282 | ||
8283 | ||
8284 | ||
8285 | ||
8286 | ||
8287 | ||
8288 | ||
8289 | ||
8290 | ||
8291 | ||
8292 | ||
8293 | ||
8294 | ||
8295 | ||
8296 | ||
8297 | ||
8298 | ||
8299 | ||
8300 | ||
8301 | ||
8302 | ||
8303 | ||
8304 | ||
8305 | test -z "$LN_S" && LN_S="ln -s" | |
8306 | ||
8307 | ||
8308 | ||
8309 | ||
8310 | ||
8311 | ||
8312 | ||
8313 | ||
8314 | ||
8315 | ||
8316 | ||
8317 | ||
8318 | ||
8319 | ||
8320 | if test -n "${ZSH_VERSION+set}" ; then | |
8321 | setopt NO_GLOB_SUBST | |
8322 | fi | |
8323 | ||
8324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
8325 | $as_echo_n "checking for objdir... " >&6; } | |
f00f02a3 | 8326 | if ${lt_cv_objdir+:} false; then : |
03385ed3 | 8327 | $as_echo_n "(cached) " >&6 |
8328 | else | |
8329 | rm -f .libs 2>/dev/null | |
8330 | mkdir .libs 2>/dev/null | |
8331 | if test -d .libs; then | |
8332 | lt_cv_objdir=.libs | |
8333 | else | |
8334 | # MS-DOS does not allow filenames that begin with a dot. | |
8335 | lt_cv_objdir=_libs | |
8336 | fi | |
8337 | rmdir .libs 2>/dev/null | |
8338 | fi | |
8339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
8340 | $as_echo "$lt_cv_objdir" >&6; } | |
8341 | objdir=$lt_cv_objdir | |
8342 | ||
8343 | ||
8344 | ||
8345 | ||
8346 | ||
8347 | cat >>confdefs.h <<_ACEOF | |
8348 | #define LT_OBJDIR "$lt_cv_objdir/" | |
8349 | _ACEOF | |
8350 | ||
8351 | ||
8352 | ||
8353 | ||
8354 | case $host_os in | |
8355 | aix3*) | |
8356 | # AIX sometimes has problems with the GCC collect2 program. For some | |
8357 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
8358 | # vanish in a puff of smoke. | |
8359 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
8360 | COLLECT_NAMES= | |
8361 | export COLLECT_NAMES | |
8362 | fi | |
8363 | ;; | |
8364 | esac | |
8365 | ||
8366 | # Global variables: | |
8367 | ofile=libtool | |
8368 | can_build_shared=yes | |
8369 | ||
8370 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
8371 | # which needs '.lib'). | |
8372 | libext=a | |
8373 | ||
8374 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
8375 | ||
8376 | old_CC="$CC" | |
8377 | old_CFLAGS="$CFLAGS" | |
8378 | ||
8379 | # Set sane defaults for various variables | |
8380 | test -z "$CC" && CC=cc | |
8381 | test -z "$LTCC" && LTCC=$CC | |
8382 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
8383 | test -z "$LD" && LD=ld | |
8384 | test -z "$ac_objext" && ac_objext=o | |
8385 | ||
8386 | for cc_temp in $compiler""; do | |
8387 | case $cc_temp in | |
8388 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
8389 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
8390 | \-*) ;; | |
8391 | *) break;; | |
8392 | esac | |
8393 | done | |
8394 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
8395 | ||
8396 | ||
8397 | # Only perform the check for file, if the check method requires it | |
8398 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
8399 | case $deplibs_check_method in | |
8400 | file_magic*) | |
8401 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
8402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
8403 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
f00f02a3 | 8404 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
03385ed3 | 8405 | $as_echo_n "(cached) " >&6 |
8406 | else | |
8407 | case $MAGIC_CMD in | |
8408 | [\\/*] | ?:[\\/]*) | |
8409 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8410 | ;; | |
8411 | *) | |
8412 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8413 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8414 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8415 | for ac_dir in $ac_dummy; do | |
8416 | IFS="$lt_save_ifs" | |
8417 | test -z "$ac_dir" && ac_dir=. | |
8418 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
8419 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
8420 | if test -n "$file_magic_test_file"; then | |
8421 | case $deplibs_check_method in | |
8422 | "file_magic "*) | |
8423 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8424 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8425 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8426 | $EGREP "$file_magic_regex" > /dev/null; then | |
8427 | : | |
8428 | else | |
8429 | cat <<_LT_EOF 1>&2 | |
8430 | ||
8431 | *** Warning: the command libtool uses to detect shared libraries, | |
8432 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8433 | *** The result is that libtool may fail to recognize shared libraries | |
8434 | *** as such. This will affect the creation of libtool libraries that | |
8435 | *** depend on shared libraries, but programs linked with such libtool | |
8436 | *** libraries will work regardless of this problem. Nevertheless, you | |
8437 | *** may want to report the problem to your system manager and/or to | |
8438 | *** bug-libtool@gnu.org | |
8439 | ||
8440 | _LT_EOF | |
8441 | fi ;; | |
8442 | esac | |
8443 | fi | |
8444 | break | |
8445 | fi | |
8446 | done | |
8447 | IFS="$lt_save_ifs" | |
8448 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8449 | ;; | |
8450 | esac | |
8451 | fi | |
8452 | ||
8453 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8454 | if test -n "$MAGIC_CMD"; then | |
8455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
8456 | $as_echo "$MAGIC_CMD" >&6; } | |
8457 | else | |
8458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8459 | $as_echo "no" >&6; } | |
8460 | fi | |
8461 | ||
8462 | ||
8463 | ||
8464 | ||
8465 | ||
8466 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
8467 | if test -n "$ac_tool_prefix"; then | |
8468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
8469 | $as_echo_n "checking for file... " >&6; } | |
f00f02a3 | 8470 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
03385ed3 | 8471 | $as_echo_n "(cached) " >&6 |
8472 | else | |
8473 | case $MAGIC_CMD in | |
8474 | [\\/*] | ?:[\\/]*) | |
8475 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8476 | ;; | |
8477 | *) | |
8478 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8479 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8480 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8481 | for ac_dir in $ac_dummy; do | |
8482 | IFS="$lt_save_ifs" | |
8483 | test -z "$ac_dir" && ac_dir=. | |
8484 | if test -f $ac_dir/file; then | |
8485 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
8486 | if test -n "$file_magic_test_file"; then | |
8487 | case $deplibs_check_method in | |
8488 | "file_magic "*) | |
8489 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8490 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8491 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8492 | $EGREP "$file_magic_regex" > /dev/null; then | |
8493 | : | |
8494 | else | |
8495 | cat <<_LT_EOF 1>&2 | |
8496 | ||
8497 | *** Warning: the command libtool uses to detect shared libraries, | |
8498 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8499 | *** The result is that libtool may fail to recognize shared libraries | |
8500 | *** as such. This will affect the creation of libtool libraries that | |
8501 | *** depend on shared libraries, but programs linked with such libtool | |
8502 | *** libraries will work regardless of this problem. Nevertheless, you | |
8503 | *** may want to report the problem to your system manager and/or to | |
8504 | *** bug-libtool@gnu.org | |
8505 | ||
8506 | _LT_EOF | |
8507 | fi ;; | |
8508 | esac | |
8509 | fi | |
8510 | break | |
8511 | fi | |
8512 | done | |
8513 | IFS="$lt_save_ifs" | |
8514 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8515 | ;; | |
8516 | esac | |
8517 | fi | |
8518 | ||
8519 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8520 | if test -n "$MAGIC_CMD"; then | |
8521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
8522 | $as_echo "$MAGIC_CMD" >&6; } | |
8523 | else | |
8524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8525 | $as_echo "no" >&6; } | |
8526 | fi | |
8527 | ||
8528 | ||
8529 | else | |
8530 | MAGIC_CMD=: | |
8531 | fi | |
8532 | fi | |
8533 | ||
8534 | fi | |
8535 | ;; | |
8536 | esac | |
8537 | ||
8538 | # Use C for the default configuration in the libtool script | |
8539 | ||
8540 | lt_save_CC="$CC" | |
8541 | ac_ext=c | |
8542 | ac_cpp='$CPP $CPPFLAGS' | |
8543 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8544 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8545 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8546 | ||
8547 | ||
8548 | # Source file extension for C test sources. | |
8549 | ac_ext=c | |
8550 | ||
8551 | # Object file extension for compiled C test sources. | |
8552 | objext=o | |
8553 | objext=$objext | |
8554 | ||
8555 | # Code to be used in simple compile tests | |
8556 | lt_simple_compile_test_code="int some_variable = 0;" | |
8557 | ||
8558 | # Code to be used in simple link tests | |
8559 | lt_simple_link_test_code='int main(){return(0);}' | |
8560 | ||
8561 | ||
8562 | ||
8563 | ||
8564 | ||
8565 | ||
8566 | ||
8567 | # If no C compiler was specified, use CC. | |
8568 | LTCC=${LTCC-"$CC"} | |
8569 | ||
8570 | # If no C compiler flags were specified, use CFLAGS. | |
8571 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
8572 | ||
8573 | # Allow CC to be a program name with arguments. | |
8574 | compiler=$CC | |
8575 | ||
8576 | # Save the default compiler, since it gets overwritten when the other | |
8577 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
8578 | compiler_DEFAULT=$CC | |
8579 | ||
8580 | # save warnings/boilerplate of simple test code | |
8581 | ac_outfile=conftest.$ac_objext | |
8582 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
8583 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8584 | _lt_compiler_boilerplate=`cat conftest.err` | |
8585 | $RM conftest* | |
8586 | ||
8587 | ac_outfile=conftest.$ac_objext | |
8588 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
8589 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8590 | _lt_linker_boilerplate=`cat conftest.err` | |
8591 | $RM -r conftest* | |
8592 | ||
8593 | ||
8594 | ## CAVEAT EMPTOR: | |
8595 | ## There is no encapsulation within the following macros, do not change | |
8596 | ## the running order or otherwise move them around unless you know exactly | |
8597 | ## what you are doing... | |
8598 | if test -n "$compiler"; then | |
8599 | ||
8600 | lt_prog_compiler_no_builtin_flag= | |
8601 | ||
8602 | if test "$GCC" = yes; then | |
8603 | case $cc_basename in | |
8604 | nvcc*) | |
8605 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
8606 | *) | |
8607 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
8608 | esac | |
8609 | ||
8610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
8611 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
f00f02a3 | 8612 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
03385ed3 | 8613 | $as_echo_n "(cached) " >&6 |
8614 | else | |
8615 | lt_cv_prog_compiler_rtti_exceptions=no | |
8616 | ac_outfile=conftest.$ac_objext | |
8617 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8618 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
8619 | # Insert the option either (1) after the last *FLAGS variable, or | |
8620 | # (2) before a word containing "conftest.", or (3) at the end. | |
8621 | # Note that $ac_compile itself does not contain backslashes and begins | |
8622 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8623 | # The option is referenced via a variable to avoid confusing sed. | |
8624 | lt_compile=`echo "$ac_compile" | $SED \ | |
8625 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8626 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8627 | -e 's:$: $lt_compiler_flag:'` | |
8628 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8629 | (eval "$lt_compile" 2>conftest.err) | |
8630 | ac_status=$? | |
8631 | cat conftest.err >&5 | |
8632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8633 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
8634 | # The compiler can only warn and ignore the option if not recognized | |
8635 | # So say no if there are warnings other than the usual output. | |
8636 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
8637 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8638 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8639 | lt_cv_prog_compiler_rtti_exceptions=yes | |
8640 | fi | |
8641 | fi | |
8642 | $RM conftest* | |
8643 | ||
8644 | fi | |
8645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
8646 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
8647 | ||
8648 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
8649 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
8650 | else | |
8651 | : | |
8652 | fi | |
8653 | ||
8654 | fi | |
8655 | ||
8656 | ||
8657 | ||
8658 | ||
8659 | ||
8660 | ||
8661 | lt_prog_compiler_wl= | |
8662 | lt_prog_compiler_pic= | |
8663 | lt_prog_compiler_static= | |
8664 | ||
8665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
8666 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
8667 | ||
8668 | if test "$GCC" = yes; then | |
8669 | lt_prog_compiler_wl='-Wl,' | |
8670 | lt_prog_compiler_static='-static' | |
8671 | ||
8672 | case $host_os in | |
8673 | aix*) | |
8674 | # All AIX code is PIC. | |
8675 | if test "$host_cpu" = ia64; then | |
8676 | # AIX 5 now supports IA64 processor | |
8677 | lt_prog_compiler_static='-Bstatic' | |
8678 | fi | |
8679 | lt_prog_compiler_pic='-fPIC' | |
8680 | ;; | |
8681 | ||
8682 | amigaos*) | |
8683 | case $host_cpu in | |
8684 | powerpc) | |
8685 | # see comment about AmigaOS4 .so support | |
8686 | lt_prog_compiler_pic='-fPIC' | |
8687 | ;; | |
8688 | m68k) | |
8689 | # FIXME: we need at least 68020 code to build shared libraries, but | |
8690 | # adding the `-m68020' flag to GCC prevents building anything better, | |
8691 | # like `-m68040'. | |
8692 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
8693 | ;; | |
8694 | esac | |
8695 | ;; | |
8696 | ||
8697 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
8698 | # PIC is the default for these OSes. | |
8699 | ;; | |
8700 | ||
8701 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
8702 | # This hack is so that the source file can tell whether it is being | |
8703 | # built for inclusion in a dll (and should export symbols for example). | |
8704 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
8705 | # (--disable-auto-import) libraries | |
8706 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8707 | ;; | |
8708 | ||
8709 | darwin* | rhapsody*) | |
8710 | # PIC is the default on this platform | |
8711 | # Common symbols not allowed in MH_DYLIB files | |
8712 | lt_prog_compiler_pic='-fno-common' | |
8713 | ;; | |
8714 | ||
8715 | haiku*) | |
8716 | # PIC is the default for Haiku. | |
8717 | # The "-static" flag exists, but is broken. | |
8718 | lt_prog_compiler_static= | |
8719 | ;; | |
8720 | ||
8721 | hpux*) | |
8722 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
8723 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
8724 | # sets the default TLS model and affects inlining. | |
8725 | case $host_cpu in | |
8726 | hppa*64*) | |
8727 | # +Z the default | |
8728 | ;; | |
8729 | *) | |
8730 | lt_prog_compiler_pic='-fPIC' | |
8731 | ;; | |
8732 | esac | |
8733 | ;; | |
8734 | ||
8735 | interix[3-9]*) | |
8736 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
8737 | # Instead, we relocate shared libraries at runtime. | |
8738 | ;; | |
8739 | ||
8740 | msdosdjgpp*) | |
8741 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
8742 | # on systems that don't support them. | |
8743 | lt_prog_compiler_can_build_shared=no | |
8744 | enable_shared=no | |
8745 | ;; | |
8746 | ||
8747 | *nto* | *qnx*) | |
8748 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8749 | # it will coredump. | |
8750 | lt_prog_compiler_pic='-fPIC -shared' | |
8751 | ;; | |
8752 | ||
8753 | sysv4*MP*) | |
8754 | if test -d /usr/nec; then | |
8755 | lt_prog_compiler_pic=-Kconform_pic | |
8756 | fi | |
8757 | ;; | |
8758 | ||
8759 | *) | |
8760 | lt_prog_compiler_pic='-fPIC' | |
8761 | ;; | |
8762 | esac | |
8763 | ||
8764 | case $cc_basename in | |
8765 | nvcc*) # Cuda Compiler Driver 2.2 | |
8766 | lt_prog_compiler_wl='-Xlinker ' | |
8767 | lt_prog_compiler_pic='-Xcompiler -fPIC' | |
8768 | ;; | |
8769 | esac | |
8770 | else | |
8771 | # PORTME Check for flag to pass linker flags through the system compiler. | |
8772 | case $host_os in | |
8773 | aix*) | |
8774 | lt_prog_compiler_wl='-Wl,' | |
8775 | if test "$host_cpu" = ia64; then | |
8776 | # AIX 5 now supports IA64 processor | |
8777 | lt_prog_compiler_static='-Bstatic' | |
8778 | else | |
8779 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
8780 | fi | |
8781 | ;; | |
8782 | ||
8783 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
8784 | # This hack is so that the source file can tell whether it is being | |
8785 | # built for inclusion in a dll (and should export symbols for example). | |
8786 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8787 | ;; | |
8788 | ||
8789 | hpux9* | hpux10* | hpux11*) | |
8790 | lt_prog_compiler_wl='-Wl,' | |
8791 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
8792 | # not for PA HP-UX. | |
8793 | case $host_cpu in | |
8794 | hppa*64*|ia64*) | |
8795 | # +Z the default | |
8796 | ;; | |
8797 | *) | |
8798 | lt_prog_compiler_pic='+Z' | |
8799 | ;; | |
8800 | esac | |
8801 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
8802 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
8803 | ;; | |
8804 | ||
8805 | irix5* | irix6* | nonstopux*) | |
8806 | lt_prog_compiler_wl='-Wl,' | |
8807 | # PIC (with -KPIC) is the default. | |
8808 | lt_prog_compiler_static='-non_shared' | |
8809 | ;; | |
8810 | ||
8811 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
8812 | case $cc_basename in | |
8813 | # old Intel for x86_64 which still supported -KPIC. | |
8814 | ecc*) | |
8815 | lt_prog_compiler_wl='-Wl,' | |
8816 | lt_prog_compiler_pic='-KPIC' | |
8817 | lt_prog_compiler_static='-static' | |
8818 | ;; | |
8819 | # icc used to be incompatible with GCC. | |
8820 | # ICC 10 doesn't accept -KPIC any more. | |
8821 | icc* | ifort*) | |
8822 | lt_prog_compiler_wl='-Wl,' | |
8823 | lt_prog_compiler_pic='-fPIC' | |
8824 | lt_prog_compiler_static='-static' | |
8825 | ;; | |
8826 | # Lahey Fortran 8.1. | |
8827 | lf95*) | |
8828 | lt_prog_compiler_wl='-Wl,' | |
8829 | lt_prog_compiler_pic='--shared' | |
8830 | lt_prog_compiler_static='--static' | |
8831 | ;; | |
8832 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
8833 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
8834 | # which looks to be a dead project) | |
8835 | lt_prog_compiler_wl='-Wl,' | |
8836 | lt_prog_compiler_pic='-fpic' | |
8837 | lt_prog_compiler_static='-Bstatic' | |
8838 | ;; | |
8839 | ccc*) | |
8840 | lt_prog_compiler_wl='-Wl,' | |
8841 | # All Alpha code is PIC. | |
8842 | lt_prog_compiler_static='-non_shared' | |
8843 | ;; | |
8844 | xl* | bgxl* | bgf* | mpixl*) | |
8845 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
8846 | lt_prog_compiler_wl='-Wl,' | |
8847 | lt_prog_compiler_pic='-qpic' | |
8848 | lt_prog_compiler_static='-qstaticlink' | |
8849 | ;; | |
8850 | *) | |
8851 | case `$CC -V 2>&1 | sed 5q` in | |
8852 | *Sun\ F* | *Sun*Fortran*) | |
8853 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
8854 | lt_prog_compiler_pic='-KPIC' | |
8855 | lt_prog_compiler_static='-Bstatic' | |
8856 | lt_prog_compiler_wl='' | |
8857 | ;; | |
8858 | *Sun\ C*) | |
8859 | # Sun C 5.9 | |
8860 | lt_prog_compiler_pic='-KPIC' | |
8861 | lt_prog_compiler_static='-Bstatic' | |
8862 | lt_prog_compiler_wl='-Wl,' | |
8863 | ;; | |
8864 | esac | |
8865 | ;; | |
8866 | esac | |
8867 | ;; | |
8868 | ||
8869 | newsos6) | |
8870 | lt_prog_compiler_pic='-KPIC' | |
8871 | lt_prog_compiler_static='-Bstatic' | |
8872 | ;; | |
8873 | ||
8874 | *nto* | *qnx*) | |
8875 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8876 | # it will coredump. | |
8877 | lt_prog_compiler_pic='-fPIC -shared' | |
8878 | ;; | |
8879 | ||
8880 | osf3* | osf4* | osf5*) | |
8881 | lt_prog_compiler_wl='-Wl,' | |
8882 | # All OSF/1 code is PIC. | |
8883 | lt_prog_compiler_static='-non_shared' | |
8884 | ;; | |
8885 | ||
8886 | rdos*) | |
8887 | lt_prog_compiler_static='-non_shared' | |
8888 | ;; | |
8889 | ||
8890 | solaris*) | |
8891 | lt_prog_compiler_pic='-KPIC' | |
8892 | lt_prog_compiler_static='-Bstatic' | |
8893 | case $cc_basename in | |
8894 | f77* | f90* | f95*) | |
8895 | lt_prog_compiler_wl='-Qoption ld ';; | |
8896 | *) | |
8897 | lt_prog_compiler_wl='-Wl,';; | |
8898 | esac | |
8899 | ;; | |
8900 | ||
8901 | sunos4*) | |
8902 | lt_prog_compiler_wl='-Qoption ld ' | |
8903 | lt_prog_compiler_pic='-PIC' | |
8904 | lt_prog_compiler_static='-Bstatic' | |
8905 | ;; | |
8906 | ||
8907 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
8908 | lt_prog_compiler_wl='-Wl,' | |
8909 | lt_prog_compiler_pic='-KPIC' | |
8910 | lt_prog_compiler_static='-Bstatic' | |
8911 | ;; | |
8912 | ||
8913 | sysv4*MP*) | |
8914 | if test -d /usr/nec ;then | |
8915 | lt_prog_compiler_pic='-Kconform_pic' | |
8916 | lt_prog_compiler_static='-Bstatic' | |
8917 | fi | |
8918 | ;; | |
8919 | ||
8920 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
8921 | lt_prog_compiler_wl='-Wl,' | |
8922 | lt_prog_compiler_pic='-KPIC' | |
8923 | lt_prog_compiler_static='-Bstatic' | |
8924 | ;; | |
8925 | ||
8926 | unicos*) | |
8927 | lt_prog_compiler_wl='-Wl,' | |
8928 | lt_prog_compiler_can_build_shared=no | |
8929 | ;; | |
8930 | ||
8931 | uts4*) | |
8932 | lt_prog_compiler_pic='-pic' | |
8933 | lt_prog_compiler_static='-Bstatic' | |
8934 | ;; | |
8935 | ||
8936 | *) | |
8937 | lt_prog_compiler_can_build_shared=no | |
8938 | ;; | |
8939 | esac | |
8940 | fi | |
8941 | ||
8942 | case $host_os in | |
8943 | # For platforms which do not support PIC, -DPIC is meaningless: | |
8944 | *djgpp*) | |
8945 | lt_prog_compiler_pic= | |
8946 | ;; | |
8947 | *) | |
8948 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
8949 | ;; | |
8950 | esac | |
8951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 | |
8952 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
8953 | ||
8954 | ||
8955 | ||
8956 | ||
8957 | ||
8958 | ||
8959 | # | |
8960 | # Check to make sure the PIC flag actually works. | |
8961 | # | |
8962 | if test -n "$lt_prog_compiler_pic"; then | |
8963 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
8964 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
f00f02a3 | 8965 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
03385ed3 | 8966 | $as_echo_n "(cached) " >&6 |
8967 | else | |
8968 | lt_cv_prog_compiler_pic_works=no | |
8969 | ac_outfile=conftest.$ac_objext | |
8970 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8971 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
8972 | # Insert the option either (1) after the last *FLAGS variable, or | |
8973 | # (2) before a word containing "conftest.", or (3) at the end. | |
8974 | # Note that $ac_compile itself does not contain backslashes and begins | |
8975 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8976 | # The option is referenced via a variable to avoid confusing sed. | |
8977 | lt_compile=`echo "$ac_compile" | $SED \ | |
8978 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8979 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8980 | -e 's:$: $lt_compiler_flag:'` | |
8981 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8982 | (eval "$lt_compile" 2>conftest.err) | |
8983 | ac_status=$? | |
8984 | cat conftest.err >&5 | |
8985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8986 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
8987 | # The compiler can only warn and ignore the option if not recognized | |
8988 | # So say no if there are warnings other than the usual output. | |
8989 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
8990 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8991 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8992 | lt_cv_prog_compiler_pic_works=yes | |
8993 | fi | |
8994 | fi | |
8995 | $RM conftest* | |
8996 | ||
8997 | fi | |
8998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
8999 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
9000 | ||
9001 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then | |
9002 | case $lt_prog_compiler_pic in | |
9003 | "" | " "*) ;; | |
9004 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
9005 | esac | |
9006 | else | |
9007 | lt_prog_compiler_pic= | |
9008 | lt_prog_compiler_can_build_shared=no | |
9009 | fi | |
9010 | ||
9011 | fi | |
9012 | ||
9013 | ||
9014 | ||
9015 | ||
9016 | ||
9017 | ||
9018 | # | |
9019 | # Check to make sure the static flag actually works. | |
9020 | # | |
9021 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
9022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
9023 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
f00f02a3 | 9024 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
03385ed3 | 9025 | $as_echo_n "(cached) " >&6 |
9026 | else | |
9027 | lt_cv_prog_compiler_static_works=no | |
9028 | save_LDFLAGS="$LDFLAGS" | |
9029 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
9030 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9031 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9032 | # The linker can only warn and ignore the option if not recognized | |
9033 | # So say no if there are warnings | |
9034 | if test -s conftest.err; then | |
9035 | # Append any errors to the config.log. | |
9036 | cat conftest.err 1>&5 | |
9037 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9038 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9039 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9040 | lt_cv_prog_compiler_static_works=yes | |
9041 | fi | |
9042 | else | |
9043 | lt_cv_prog_compiler_static_works=yes | |
9044 | fi | |
9045 | fi | |
9046 | $RM -r conftest* | |
9047 | LDFLAGS="$save_LDFLAGS" | |
9048 | ||
9049 | fi | |
9050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
9051 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
9052 | ||
9053 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then | |
9054 | : | |
9055 | else | |
9056 | lt_prog_compiler_static= | |
9057 | fi | |
9058 | ||
9059 | ||
9060 | ||
9061 | ||
9062 | ||
9063 | ||
9064 | ||
9065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
9066 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
f00f02a3 | 9067 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
03385ed3 | 9068 | $as_echo_n "(cached) " >&6 |
9069 | else | |
9070 | lt_cv_prog_compiler_c_o=no | |
9071 | $RM -r conftest 2>/dev/null | |
9072 | mkdir conftest | |
9073 | cd conftest | |
9074 | mkdir out | |
9075 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9076 | ||
9077 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
9078 | # Insert the option either (1) after the last *FLAGS variable, or | |
9079 | # (2) before a word containing "conftest.", or (3) at the end. | |
9080 | # Note that $ac_compile itself does not contain backslashes and begins | |
9081 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9082 | lt_compile=`echo "$ac_compile" | $SED \ | |
9083 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9084 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9085 | -e 's:$: $lt_compiler_flag:'` | |
9086 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9087 | (eval "$lt_compile" 2>out/conftest.err) | |
9088 | ac_status=$? | |
9089 | cat out/conftest.err >&5 | |
9090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9091 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
9092 | then | |
9093 | # The compiler can only warn and ignore the option if not recognized | |
9094 | # So say no if there are warnings | |
9095 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
9096 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9097 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9098 | lt_cv_prog_compiler_c_o=yes | |
9099 | fi | |
9100 | fi | |
9101 | chmod u+w . 2>&5 | |
9102 | $RM conftest* | |
9103 | # SGI C++ compiler will create directory out/ii_files/ for | |
9104 | # template instantiation | |
9105 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9106 | $RM out/* && rmdir out | |
9107 | cd .. | |
9108 | $RM -r conftest | |
9109 | $RM conftest* | |
9110 | ||
9111 | fi | |
9112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9113 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
9114 | ||
9115 | ||
9116 | ||
9117 | ||
9118 | ||
9119 | ||
9120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
9121 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
f00f02a3 | 9122 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
03385ed3 | 9123 | $as_echo_n "(cached) " >&6 |
9124 | else | |
9125 | lt_cv_prog_compiler_c_o=no | |
9126 | $RM -r conftest 2>/dev/null | |
9127 | mkdir conftest | |
9128 | cd conftest | |
9129 | mkdir out | |
9130 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9131 | ||
9132 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
9133 | # Insert the option either (1) after the last *FLAGS variable, or | |
9134 | # (2) before a word containing "conftest.", or (3) at the end. | |
9135 | # Note that $ac_compile itself does not contain backslashes and begins | |
9136 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9137 | lt_compile=`echo "$ac_compile" | $SED \ | |
9138 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9139 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9140 | -e 's:$: $lt_compiler_flag:'` | |
9141 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9142 | (eval "$lt_compile" 2>out/conftest.err) | |
9143 | ac_status=$? | |
9144 | cat out/conftest.err >&5 | |
9145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9146 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
9147 | then | |
9148 | # The compiler can only warn and ignore the option if not recognized | |
9149 | # So say no if there are warnings | |
9150 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
9151 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9152 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9153 | lt_cv_prog_compiler_c_o=yes | |
9154 | fi | |
9155 | fi | |
9156 | chmod u+w . 2>&5 | |
9157 | $RM conftest* | |
9158 | # SGI C++ compiler will create directory out/ii_files/ for | |
9159 | # template instantiation | |
9160 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9161 | $RM out/* && rmdir out | |
9162 | cd .. | |
9163 | $RM -r conftest | |
9164 | $RM conftest* | |
9165 | ||
9166 | fi | |
9167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9168 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
9169 | ||
9170 | ||
9171 | ||
9172 | ||
9173 | hard_links="nottested" | |
9174 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
9175 | # do not overwrite the value of need_locks provided by the user | |
9176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
9177 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
9178 | hard_links=yes | |
9179 | $RM conftest* | |
9180 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9181 | touch conftest.a | |
9182 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
9183 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
9185 | $as_echo "$hard_links" >&6; } | |
9186 | if test "$hard_links" = no; then | |
9187 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
9188 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
9189 | need_locks=warn | |
9190 | fi | |
9191 | else | |
9192 | need_locks=no | |
9193 | fi | |
9194 | ||
9195 | ||
9196 | ||
9197 | ||
9198 | ||
9199 | ||
9200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
9201 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
9202 | ||
9203 | runpath_var= | |
9204 | allow_undefined_flag= | |
9205 | always_export_symbols=no | |
9206 | archive_cmds= | |
9207 | archive_expsym_cmds= | |
9208 | compiler_needs_object=no | |
9209 | enable_shared_with_static_runtimes=no | |
9210 | export_dynamic_flag_spec= | |
9211 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
9212 | hardcode_automatic=no | |
9213 | hardcode_direct=no | |
9214 | hardcode_direct_absolute=no | |
9215 | hardcode_libdir_flag_spec= | |
9216 | hardcode_libdir_flag_spec_ld= | |
9217 | hardcode_libdir_separator= | |
9218 | hardcode_minus_L=no | |
9219 | hardcode_shlibpath_var=unsupported | |
9220 | inherit_rpath=no | |
9221 | link_all_deplibs=unknown | |
9222 | module_cmds= | |
9223 | module_expsym_cmds= | |
9224 | old_archive_from_new_cmds= | |
9225 | old_archive_from_expsyms_cmds= | |
9226 | thread_safe_flag_spec= | |
9227 | whole_archive_flag_spec= | |
9228 | # include_expsyms should be a list of space-separated symbols to be *always* | |
9229 | # included in the symbol list | |
9230 | include_expsyms= | |
9231 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
9232 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
9233 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
9234 | # as well as any symbol that contains `d'. | |
9235 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
9236 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
9237 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
9238 | # the symbol is explicitly referenced. Since portable code cannot | |
9239 | # rely on this symbol name, it's probably fine to never include it in | |
9240 | # preloaded symbol tables. | |
9241 | # Exclude shared library initialization/finalization symbols. | |
9242 | extract_expsyms_cmds= | |
9243 | ||
9244 | case $host_os in | |
9245 | cygwin* | mingw* | pw32* | cegcc*) | |
9246 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
9247 | # When not using gcc, we currently assume that we are using | |
9248 | # Microsoft Visual C++. | |
9249 | if test "$GCC" != yes; then | |
9250 | with_gnu_ld=no | |
9251 | fi | |
9252 | ;; | |
9253 | interix*) | |
9254 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
9255 | with_gnu_ld=yes | |
9256 | ;; | |
9257 | openbsd*) | |
9258 | with_gnu_ld=no | |
9259 | ;; | |
9260 | esac | |
9261 | ||
9262 | ld_shlibs=yes | |
9263 | ||
9264 | # On some targets, GNU ld is compatible enough with the native linker | |
9265 | # that we're better off using the native interface for both. | |
9266 | lt_use_gnu_ld_interface=no | |
9267 | if test "$with_gnu_ld" = yes; then | |
9268 | case $host_os in | |
9269 | aix*) | |
9270 | # The AIX port of GNU ld has always aspired to compatibility | |
9271 | # with the native linker. However, as the warning in the GNU ld | |
9272 | # block says, versions before 2.19.5* couldn't really create working | |
9273 | # shared libraries, regardless of the interface used. | |
9274 | case `$LD -v 2>&1` in | |
9275 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
9276 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
9277 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
9278 | *) | |
9279 | lt_use_gnu_ld_interface=yes | |
9280 | ;; | |
9281 | esac | |
9282 | ;; | |
9283 | *) | |
9284 | lt_use_gnu_ld_interface=yes | |
9285 | ;; | |
9286 | esac | |
9287 | fi | |
9288 | ||
9289 | if test "$lt_use_gnu_ld_interface" = yes; then | |
9290 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
9291 | wlarc='${wl}' | |
9292 | ||
9293 | # Set some defaults for GNU ld with shared library support. These | |
9294 | # are reset later if shared libraries are not supported. Putting them | |
9295 | # here allows them to be overridden if necessary. | |
9296 | runpath_var=LD_RUN_PATH | |
9297 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9298 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
9299 | # ancient GNU ld didn't support --whole-archive et. al. | |
9300 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
9301 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
9302 | else | |
9303 | whole_archive_flag_spec= | |
9304 | fi | |
9305 | supports_anon_versioning=no | |
9306 | case `$LD -v 2>&1` in | |
9307 | *GNU\ gold*) supports_anon_versioning=yes ;; | |
9308 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
9309 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
9310 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
9311 | *\ 2.11.*) ;; # other 2.11 versions | |
9312 | *) supports_anon_versioning=yes ;; | |
9313 | esac | |
9314 | ||
9315 | # See if GNU ld supports shared libraries. | |
9316 | case $host_os in | |
9317 | aix[3-9]*) | |
9318 | # On AIX/PPC, the GNU linker is very broken | |
9319 | if test "$host_cpu" != ia64; then | |
9320 | ld_shlibs=no | |
9321 | cat <<_LT_EOF 1>&2 | |
9322 | ||
9323 | *** Warning: the GNU linker, at least up to release 2.19, is reported | |
9324 | *** to be unable to reliably create shared libraries on AIX. | |
9325 | *** Therefore, libtool is disabling shared libraries support. If you | |
9326 | *** really care for shared libraries, you may want to install binutils | |
9327 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
9328 | *** You will then need to restart the configuration process. | |
9329 | ||
9330 | _LT_EOF | |
9331 | fi | |
9332 | ;; | |
9333 | ||
9334 | amigaos*) | |
9335 | case $host_cpu in | |
9336 | powerpc) | |
9337 | # see comment about AmigaOS4 .so support | |
9338 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9339 | archive_expsym_cmds='' | |
9340 | ;; | |
9341 | m68k) | |
9342 | 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)' | |
9343 | hardcode_libdir_flag_spec='-L$libdir' | |
9344 | hardcode_minus_L=yes | |
9345 | ;; | |
9346 | esac | |
9347 | ;; | |
9348 | ||
9349 | beos*) | |
9350 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9351 | allow_undefined_flag=unsupported | |
9352 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
9353 | # support --undefined. This deserves some investigation. FIXME | |
9354 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9355 | else | |
9356 | ld_shlibs=no | |
9357 | fi | |
9358 | ;; | |
9359 | ||
9360 | cygwin* | mingw* | pw32* | cegcc*) | |
9361 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
9362 | # as there is no search path for DLLs. | |
9363 | hardcode_libdir_flag_spec='-L$libdir' | |
9364 | export_dynamic_flag_spec='${wl}--export-all-symbols' | |
9365 | allow_undefined_flag=unsupported | |
9366 | always_export_symbols=no | |
9367 | enable_shared_with_static_runtimes=yes | |
9368 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
9369 | ||
9370 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
9371 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9372 | # If the export-symbols file already is a .def file (1st line | |
9373 | # is EXPORTS), use it as is; otherwise, prepend... | |
9374 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
9375 | cp $export_symbols $output_objdir/$soname.def; | |
9376 | else | |
9377 | echo EXPORTS > $output_objdir/$soname.def; | |
9378 | cat $export_symbols >> $output_objdir/$soname.def; | |
9379 | fi~ | |
9380 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9381 | else | |
9382 | ld_shlibs=no | |
9383 | fi | |
9384 | ;; | |
9385 | ||
9386 | haiku*) | |
9387 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9388 | link_all_deplibs=yes | |
9389 | ;; | |
9390 | ||
9391 | interix[3-9]*) | |
9392 | hardcode_direct=no | |
9393 | hardcode_shlibpath_var=no | |
9394 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9395 | export_dynamic_flag_spec='${wl}-E' | |
9396 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
9397 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
9398 | # default) and relocated if they conflict, which is a slow very memory | |
9399 | # consuming and fragmenting process. To avoid this, we pick a random, | |
9400 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
9401 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
9402 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
9403 | 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' | |
9404 | ;; | |
9405 | ||
9406 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | |
9407 | tmp_diet=no | |
9408 | if test "$host_os" = linux-dietlibc; then | |
9409 | case $cc_basename in | |
9410 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
9411 | esac | |
9412 | fi | |
9413 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
9414 | && test "$tmp_diet" = no | |
9415 | then | |
9416 | tmp_addflag=' $pic_flag' | |
9417 | tmp_sharedflag='-shared' | |
9418 | case $cc_basename,$host_cpu in | |
9419 | pgcc*) # Portland Group C compiler | |
9420 | 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' | |
9421 | tmp_addflag=' $pic_flag' | |
9422 | ;; | |
9423 | pgf77* | pgf90* | pgf95* | pgfortran*) | |
9424 | # Portland Group f77 and f90 compilers | |
9425 | 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' | |
9426 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
9427 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
9428 | tmp_addflag=' -i_dynamic' ;; | |
9429 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
9430 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
9431 | ifc* | ifort*) # Intel Fortran compiler | |
9432 | tmp_addflag=' -nofor_main' ;; | |
9433 | lf95*) # Lahey Fortran 8.1 | |
9434 | whole_archive_flag_spec= | |
9435 | tmp_sharedflag='--shared' ;; | |
9436 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
9437 | tmp_sharedflag='-qmkshrobj' | |
9438 | tmp_addflag= ;; | |
9439 | nvcc*) # Cuda Compiler Driver 2.2 | |
9440 | 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' | |
9441 | compiler_needs_object=yes | |
9442 | ;; | |
9443 | esac | |
9444 | case `$CC -V 2>&1 | sed 5q` in | |
9445 | *Sun\ C*) # Sun C 5.9 | |
9446 | 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' | |
9447 | compiler_needs_object=yes | |
9448 | tmp_sharedflag='-G' ;; | |
9449 | *Sun\ F*) # Sun Fortran 8.3 | |
9450 | tmp_sharedflag='-G' ;; | |
9451 | esac | |
9452 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9453 | ||
9454 | if test "x$supports_anon_versioning" = xyes; then | |
9455 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9456 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9457 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9458 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
9459 | fi | |
9460 | ||
9461 | case $cc_basename in | |
9462 | xlf* | bgf* | bgxlf* | mpixlf*) | |
9463 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
9464 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
9465 | hardcode_libdir_flag_spec= | |
9466 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
9467 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
9468 | if test "x$supports_anon_versioning" = xyes; then | |
9469 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9470 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9471 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9472 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
9473 | fi | |
9474 | ;; | |
9475 | esac | |
9476 | else | |
9477 | ld_shlibs=no | |
9478 | fi | |
9479 | ;; | |
9480 | ||
9481 | netbsd*) | |
9482 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9483 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
9484 | wlarc= | |
9485 | else | |
9486 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9487 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9488 | fi | |
9489 | ;; | |
9490 | ||
9491 | solaris*) | |
9492 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
9493 | ld_shlibs=no | |
9494 | cat <<_LT_EOF 1>&2 | |
9495 | ||
9496 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
9497 | *** create shared libraries on Solaris systems. Therefore, libtool | |
9498 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9499 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
9500 | *** your PATH or compiler configuration so that the native linker is | |
9501 | *** used, and then restart. | |
9502 | ||
9503 | _LT_EOF | |
9504 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9505 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9506 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9507 | else | |
9508 | ld_shlibs=no | |
9509 | fi | |
9510 | ;; | |
9511 | ||
9512 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
9513 | case `$LD -v 2>&1` in | |
9514 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
9515 | ld_shlibs=no | |
9516 | cat <<_LT_EOF 1>&2 | |
9517 | ||
9518 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
9519 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
9520 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9521 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
9522 | *** your PATH or compiler configuration so that the native linker is | |
9523 | *** used, and then restart. | |
9524 | ||
9525 | _LT_EOF | |
9526 | ;; | |
9527 | *) | |
9528 | # For security reasons, it is highly recommended that you always | |
9529 | # use absolute paths for naming shared libraries, and exclude the | |
9530 | # DT_RUNPATH tag from executables and libraries. But doing so | |
9531 | # requires that you compile everything twice, which is a pain. | |
9532 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9533 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9534 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9535 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9536 | else | |
9537 | ld_shlibs=no | |
9538 | fi | |
9539 | ;; | |
9540 | esac | |
9541 | ;; | |
9542 | ||
9543 | sunos4*) | |
9544 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9545 | wlarc= | |
9546 | hardcode_direct=yes | |
9547 | hardcode_shlibpath_var=no | |
9548 | ;; | |
9549 | ||
9550 | *) | |
9551 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9552 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9553 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9554 | else | |
9555 | ld_shlibs=no | |
9556 | fi | |
9557 | ;; | |
9558 | esac | |
9559 | ||
9560 | if test "$ld_shlibs" = no; then | |
9561 | runpath_var= | |
9562 | hardcode_libdir_flag_spec= | |
9563 | export_dynamic_flag_spec= | |
9564 | whole_archive_flag_spec= | |
9565 | fi | |
9566 | else | |
9567 | # PORTME fill in a description of your system's linker (not GNU ld) | |
9568 | case $host_os in | |
9569 | aix3*) | |
9570 | allow_undefined_flag=unsupported | |
9571 | always_export_symbols=yes | |
9572 | 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' | |
9573 | # Note: this linker hardcodes the directories in LIBPATH if there | |
9574 | # are no directories specified by -L. | |
9575 | hardcode_minus_L=yes | |
9576 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
9577 | # Neither direct hardcoding nor static linking is supported with a | |
9578 | # broken collect2. | |
9579 | hardcode_direct=unsupported | |
9580 | fi | |
9581 | ;; | |
9582 | ||
9583 | aix[4-9]*) | |
9584 | if test "$host_cpu" = ia64; then | |
9585 | # On IA64, the linker does run time linking by default, so we don't | |
9586 | # have to do anything special. | |
9587 | aix_use_runtimelinking=no | |
9588 | exp_sym_flag='-Bexport' | |
9589 | no_entry_flag="" | |
9590 | else | |
9591 | # If we're using GNU nm, then we don't want the "-C" option. | |
9592 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
9593 | # Also, AIX nm treats weak defined symbols like other global | |
9594 | # defined symbols, whereas GNU nm marks them as "W". | |
9595 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
9596 | 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' | |
9597 | else | |
9598 | 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' | |
9599 | fi | |
9600 | aix_use_runtimelinking=no | |
9601 | ||
9602 | # Test if we are trying to use run time linking or normal | |
9603 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
9604 | # need to do runtime linking. | |
9605 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
9606 | for ld_flag in $LDFLAGS; do | |
9607 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
9608 | aix_use_runtimelinking=yes | |
9609 | break | |
9610 | fi | |
9611 | done | |
9612 | ;; | |
9613 | esac | |
9614 | ||
9615 | exp_sym_flag='-bexport' | |
9616 | no_entry_flag='-bnoentry' | |
9617 | fi | |
9618 | ||
9619 | # When large executables or shared objects are built, AIX ld can | |
9620 | # have problems creating the table of contents. If linking a library | |
9621 | # or program results in "error TOC overflow" add -mminimal-toc to | |
9622 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9623 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
9624 | ||
9625 | archive_cmds='' | |
9626 | hardcode_direct=yes | |
9627 | hardcode_direct_absolute=yes | |
9628 | hardcode_libdir_separator=':' | |
9629 | link_all_deplibs=yes | |
9630 | file_list_spec='${wl}-f,' | |
9631 | ||
9632 | if test "$GCC" = yes; then | |
9633 | case $host_os in aix4.[012]|aix4.[012].*) | |
9634 | # We only want to do this on AIX 4.2 and lower, the check | |
9635 | # below for broken collect2 doesn't work under 4.3+ | |
9636 | collect2name=`${CC} -print-prog-name=collect2` | |
9637 | if test -f "$collect2name" && | |
9638 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
9639 | then | |
9640 | # We have reworked collect2 | |
9641 | : | |
9642 | else | |
9643 | # We have old collect2 | |
9644 | hardcode_direct=unsupported | |
9645 | # It fails to find uninstalled libraries when the uninstalled | |
9646 | # path is not listed in the libpath. Setting hardcode_minus_L | |
9647 | # to unsupported forces relinking | |
9648 | hardcode_minus_L=yes | |
9649 | hardcode_libdir_flag_spec='-L$libdir' | |
9650 | hardcode_libdir_separator= | |
9651 | fi | |
9652 | ;; | |
9653 | esac | |
9654 | shared_flag='-shared' | |
9655 | if test "$aix_use_runtimelinking" = yes; then | |
9656 | shared_flag="$shared_flag "'${wl}-G' | |
9657 | fi | |
9658 | else | |
9659 | # not using gcc | |
9660 | if test "$host_cpu" = ia64; then | |
9661 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
9662 | # chokes on -Wl,-G. The following line is correct: | |
9663 | shared_flag='-G' | |
9664 | else | |
9665 | if test "$aix_use_runtimelinking" = yes; then | |
9666 | shared_flag='${wl}-G' | |
9667 | else | |
9668 | shared_flag='${wl}-bM:SRE' | |
9669 | fi | |
9670 | fi | |
9671 | fi | |
9672 | ||
9673 | export_dynamic_flag_spec='${wl}-bexpall' | |
9674 | # It seems that -bexpall does not export symbols beginning with | |
9675 | # underscore (_), so it is better to generate a list of symbols to export. | |
9676 | always_export_symbols=yes | |
9677 | if test "$aix_use_runtimelinking" = yes; then | |
9678 | # Warning - without using the other runtime loading flags (-brtl), | |
9679 | # -berok will link without error, but may produce a broken library. | |
9680 | allow_undefined_flag='-berok' | |
9681 | # Determine the default libpath from the value encoded in an | |
9682 | # empty executable. | |
9683 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9684 | /* end confdefs.h. */ | |
9685 | ||
9686 | int | |
9687 | main () | |
9688 | { | |
9689 | ||
9690 | ; | |
9691 | return 0; | |
9692 | } | |
9693 | _ACEOF | |
9694 | if ac_fn_c_try_link "$LINENO"; then : | |
9695 | ||
9696 | lt_aix_libpath_sed=' | |
9697 | /Import File Strings/,/^$/ { | |
9698 | /^0/ { | |
9699 | s/^0 *\(.*\)$/\1/ | |
9700 | p | |
9701 | } | |
9702 | }' | |
9703 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9704 | # Check for a 64-bit object if we didn't find anything. | |
9705 | if test -z "$aix_libpath"; then | |
9706 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9707 | fi | |
9708 | fi | |
9709 | rm -f core conftest.err conftest.$ac_objext \ | |
9710 | conftest$ac_exeext conftest.$ac_ext | |
9711 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
9712 | ||
9713 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
9714 | 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" | |
9715 | else | |
9716 | if test "$host_cpu" = ia64; then | |
9717 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
9718 | allow_undefined_flag="-z nodefs" | |
9719 | 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" | |
9720 | else | |
9721 | # Determine the default libpath from the value encoded in an | |
9722 | # empty executable. | |
9723 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9724 | /* end confdefs.h. */ | |
9725 | ||
9726 | int | |
9727 | main () | |
9728 | { | |
9729 | ||
9730 | ; | |
9731 | return 0; | |
9732 | } | |
9733 | _ACEOF | |
9734 | if ac_fn_c_try_link "$LINENO"; then : | |
9735 | ||
9736 | lt_aix_libpath_sed=' | |
9737 | /Import File Strings/,/^$/ { | |
9738 | /^0/ { | |
9739 | s/^0 *\(.*\)$/\1/ | |
9740 | p | |
9741 | } | |
9742 | }' | |
9743 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9744 | # Check for a 64-bit object if we didn't find anything. | |
9745 | if test -z "$aix_libpath"; then | |
9746 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9747 | fi | |
9748 | fi | |
9749 | rm -f core conftest.err conftest.$ac_objext \ | |
9750 | conftest$ac_exeext conftest.$ac_ext | |
9751 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
9752 | ||
9753 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
9754 | # Warning - without using the other run time loading flags, | |
9755 | # -berok will link without error, but may produce a broken library. | |
9756 | no_undefined_flag=' ${wl}-bernotok' | |
9757 | allow_undefined_flag=' ${wl}-berok' | |
9758 | if test "$with_gnu_ld" = yes; then | |
9759 | # We only use this code for GNU lds that support --whole-archive. | |
9760 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
9761 | else | |
9762 | # Exported symbols can be pulled into shared objects from archives | |
9763 | whole_archive_flag_spec='$convenience' | |
9764 | fi | |
9765 | archive_cmds_need_lc=yes | |
9766 | # This is similar to how AIX traditionally builds its shared libraries. | |
9767 | 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' | |
9768 | fi | |
9769 | fi | |
9770 | ;; | |
9771 | ||
9772 | amigaos*) | |
9773 | case $host_cpu in | |
9774 | powerpc) | |
9775 | # see comment about AmigaOS4 .so support | |
9776 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9777 | archive_expsym_cmds='' | |
9778 | ;; | |
9779 | m68k) | |
9780 | 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)' | |
9781 | hardcode_libdir_flag_spec='-L$libdir' | |
9782 | hardcode_minus_L=yes | |
9783 | ;; | |
9784 | esac | |
9785 | ;; | |
9786 | ||
9787 | bsdi[45]*) | |
9788 | export_dynamic_flag_spec=-rdynamic | |
9789 | ;; | |
9790 | ||
9791 | cygwin* | mingw* | pw32* | cegcc*) | |
9792 | # When not using gcc, we currently assume that we are using | |
9793 | # Microsoft Visual C++. | |
9794 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
9795 | # no search path for DLLs. | |
9796 | hardcode_libdir_flag_spec=' ' | |
9797 | allow_undefined_flag=unsupported | |
9798 | # Tell ltmain to make .lib files, not .a files. | |
9799 | libext=lib | |
9800 | # Tell ltmain to make .dll files, not .so files. | |
9801 | shrext_cmds=".dll" | |
9802 | # FIXME: Setting linknames here is a bad hack. | |
9803 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
9804 | # The linker will automatically build a .lib file if we build a DLL. | |
9805 | old_archive_from_new_cmds='true' | |
9806 | # FIXME: Should let the user specify the lib program. | |
9807 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
9808 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
9809 | enable_shared_with_static_runtimes=yes | |
9810 | ;; | |
9811 | ||
9812 | darwin* | rhapsody*) | |
9813 | ||
9814 | ||
9815 | archive_cmds_need_lc=no | |
9816 | hardcode_direct=no | |
9817 | hardcode_automatic=yes | |
9818 | hardcode_shlibpath_var=unsupported | |
9819 | if test "$lt_cv_ld_force_load" = "yes"; then | |
9820 | 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\"`' | |
9821 | else | |
9822 | whole_archive_flag_spec='' | |
9823 | fi | |
9824 | link_all_deplibs=yes | |
9825 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
9826 | case $cc_basename in | |
9827 | ifort*) _lt_dar_can_shared=yes ;; | |
9828 | *) _lt_dar_can_shared=$GCC ;; | |
9829 | esac | |
9830 | if test "$_lt_dar_can_shared" = "yes"; then | |
9831 | output_verbose_link_cmd=func_echo_all | |
9832 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
9833 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
9834 | 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}" | |
9835 | 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}" | |
9836 | ||
9837 | else | |
9838 | ld_shlibs=no | |
9839 | fi | |
9840 | ||
9841 | ;; | |
9842 | ||
9843 | dgux*) | |
9844 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9845 | hardcode_libdir_flag_spec='-L$libdir' | |
9846 | hardcode_shlibpath_var=no | |
9847 | ;; | |
9848 | ||
9849 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
9850 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
9851 | # does not break anything, and helps significantly (at the cost of a little | |
9852 | # extra space). | |
9853 | freebsd2.2*) | |
9854 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
9855 | hardcode_libdir_flag_spec='-R$libdir' | |
9856 | hardcode_direct=yes | |
9857 | hardcode_shlibpath_var=no | |
9858 | ;; | |
9859 | ||
9860 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
9861 | freebsd2.*) | |
9862 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9863 | hardcode_direct=yes | |
9864 | hardcode_minus_L=yes | |
9865 | hardcode_shlibpath_var=no | |
9866 | ;; | |
9867 | ||
9868 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
9869 | freebsd* | dragonfly*) | |
9870 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
9871 | hardcode_libdir_flag_spec='-R$libdir' | |
9872 | hardcode_direct=yes | |
9873 | hardcode_shlibpath_var=no | |
9874 | ;; | |
9875 | ||
9876 | hpux9*) | |
9877 | if test "$GCC" = yes; then | |
9878 | 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' | |
9879 | else | |
9880 | 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' | |
9881 | fi | |
9882 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9883 | hardcode_libdir_separator=: | |
9884 | hardcode_direct=yes | |
9885 | ||
9886 | # hardcode_minus_L: Not really in the search PATH, | |
9887 | # but as the default location of the library. | |
9888 | hardcode_minus_L=yes | |
9889 | export_dynamic_flag_spec='${wl}-E' | |
9890 | ;; | |
9891 | ||
9892 | hpux10*) | |
9893 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
9894 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9895 | else | |
9896 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9897 | fi | |
9898 | if test "$with_gnu_ld" = no; then | |
9899 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9900 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
9901 | hardcode_libdir_separator=: | |
9902 | hardcode_direct=yes | |
9903 | hardcode_direct_absolute=yes | |
9904 | export_dynamic_flag_spec='${wl}-E' | |
9905 | # hardcode_minus_L: Not really in the search PATH, | |
9906 | # but as the default location of the library. | |
9907 | hardcode_minus_L=yes | |
9908 | fi | |
9909 | ;; | |
9910 | ||
9911 | hpux11*) | |
9912 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
9913 | case $host_cpu in | |
9914 | hppa*64*) | |
9915 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9916 | ;; | |
9917 | ia64*) | |
9918 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9919 | ;; | |
9920 | *) | |
9921 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9922 | ;; | |
9923 | esac | |
9924 | else | |
9925 | case $host_cpu in | |
9926 | hppa*64*) | |
9927 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9928 | ;; | |
9929 | ia64*) | |
9930 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9931 | ;; | |
9932 | *) | |
9933 | ||
9934 | # Older versions of the 11.00 compiler do not understand -b yet | |
9935 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
9936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
9937 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
f00f02a3 | 9938 | if ${lt_cv_prog_compiler__b+:} false; then : |
03385ed3 | 9939 | $as_echo_n "(cached) " >&6 |
9940 | else | |
9941 | lt_cv_prog_compiler__b=no | |
9942 | save_LDFLAGS="$LDFLAGS" | |
9943 | LDFLAGS="$LDFLAGS -b" | |
9944 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9945 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9946 | # The linker can only warn and ignore the option if not recognized | |
9947 | # So say no if there are warnings | |
9948 | if test -s conftest.err; then | |
9949 | # Append any errors to the config.log. | |
9950 | cat conftest.err 1>&5 | |
9951 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9952 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9953 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9954 | lt_cv_prog_compiler__b=yes | |
9955 | fi | |
9956 | else | |
9957 | lt_cv_prog_compiler__b=yes | |
9958 | fi | |
9959 | fi | |
9960 | $RM -r conftest* | |
9961 | LDFLAGS="$save_LDFLAGS" | |
9962 | ||
9963 | fi | |
9964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
9965 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
9966 | ||
9967 | if test x"$lt_cv_prog_compiler__b" = xyes; then | |
9968 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9969 | else | |
9970 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9971 | fi | |
9972 | ||
9973 | ;; | |
9974 | esac | |
9975 | fi | |
9976 | if test "$with_gnu_ld" = no; then | |
9977 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9978 | hardcode_libdir_separator=: | |
9979 | ||
9980 | case $host_cpu in | |
9981 | hppa*64*|ia64*) | |
9982 | hardcode_direct=no | |
9983 | hardcode_shlibpath_var=no | |
9984 | ;; | |
9985 | *) | |
9986 | hardcode_direct=yes | |
9987 | hardcode_direct_absolute=yes | |
9988 | export_dynamic_flag_spec='${wl}-E' | |
9989 | ||
9990 | # hardcode_minus_L: Not really in the search PATH, | |
9991 | # but as the default location of the library. | |
9992 | hardcode_minus_L=yes | |
9993 | ;; | |
9994 | esac | |
9995 | fi | |
9996 | ;; | |
9997 | ||
9998 | irix5* | irix6* | nonstopux*) | |
9999 | if test "$GCC" = yes; then | |
10000 | 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' | |
10001 | # Try to use the -exported_symbol ld option, if it does not | |
10002 | # work, assume that -exports_file does not work either and | |
10003 | # implicitly export all symbols. | |
10004 | save_LDFLAGS="$LDFLAGS" | |
10005 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
10006 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10007 | /* end confdefs.h. */ | |
10008 | int foo(void) {} | |
10009 | _ACEOF | |
10010 | if ac_fn_c_try_link "$LINENO"; then : | |
10011 | 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' | |
10012 | ||
10013 | fi | |
10014 | rm -f core conftest.err conftest.$ac_objext \ | |
10015 | conftest$ac_exeext conftest.$ac_ext | |
10016 | LDFLAGS="$save_LDFLAGS" | |
10017 | else | |
10018 | 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' | |
10019 | 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' | |
10020 | fi | |
10021 | archive_cmds_need_lc='no' | |
10022 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10023 | hardcode_libdir_separator=: | |
10024 | inherit_rpath=yes | |
10025 | link_all_deplibs=yes | |
10026 | ;; | |
10027 | ||
10028 | netbsd*) | |
10029 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10030 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
10031 | else | |
10032 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
10033 | fi | |
10034 | hardcode_libdir_flag_spec='-R$libdir' | |
10035 | hardcode_direct=yes | |
10036 | hardcode_shlibpath_var=no | |
10037 | ;; | |
10038 | ||
10039 | newsos6) | |
10040 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10041 | hardcode_direct=yes | |
10042 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10043 | hardcode_libdir_separator=: | |
10044 | hardcode_shlibpath_var=no | |
10045 | ;; | |
10046 | ||
10047 | *nto* | *qnx*) | |
10048 | ;; | |
10049 | ||
10050 | openbsd*) | |
10051 | if test -f /usr/libexec/ld.so; then | |
10052 | hardcode_direct=yes | |
10053 | hardcode_shlibpath_var=no | |
10054 | hardcode_direct_absolute=yes | |
10055 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10056 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10057 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
10058 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10059 | export_dynamic_flag_spec='${wl}-E' | |
10060 | else | |
10061 | case $host_os in | |
10062 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
10063 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10064 | hardcode_libdir_flag_spec='-R$libdir' | |
10065 | ;; | |
10066 | *) | |
10067 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10068 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10069 | ;; | |
10070 | esac | |
10071 | fi | |
10072 | else | |
10073 | ld_shlibs=no | |
10074 | fi | |
10075 | ;; | |
10076 | ||
10077 | os2*) | |
10078 | hardcode_libdir_flag_spec='-L$libdir' | |
10079 | hardcode_minus_L=yes | |
10080 | allow_undefined_flag=unsupported | |
10081 | 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' | |
10082 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
10083 | ;; | |
10084 | ||
10085 | osf3*) | |
10086 | if test "$GCC" = yes; then | |
10087 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
10088 | 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' | |
10089 | else | |
10090 | allow_undefined_flag=' -expect_unresolved \*' | |
10091 | 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' | |
10092 | fi | |
10093 | archive_cmds_need_lc='no' | |
10094 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10095 | hardcode_libdir_separator=: | |
10096 | ;; | |
10097 | ||
10098 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
10099 | if test "$GCC" = yes; then | |
10100 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
10101 | 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' | |
10102 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10103 | else | |
10104 | allow_undefined_flag=' -expect_unresolved \*' | |
10105 | 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' | |
10106 | 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~ | |
10107 | $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' | |
10108 | ||
10109 | # Both c and cxx compiler support -rpath directly | |
10110 | hardcode_libdir_flag_spec='-rpath $libdir' | |
10111 | fi | |
10112 | archive_cmds_need_lc='no' | |
10113 | hardcode_libdir_separator=: | |
10114 | ;; | |
10115 | ||
10116 | solaris*) | |
10117 | no_undefined_flag=' -z defs' | |
10118 | if test "$GCC" = yes; then | |
10119 | wlarc='${wl}' | |
10120 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10121 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10122 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
10123 | else | |
10124 | case `$CC -V 2>&1` in | |
10125 | *"Compilers 5.0"*) | |
10126 | wlarc='' | |
10127 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10128 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10129 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
10130 | ;; | |
10131 | *) | |
10132 | wlarc='${wl}' | |
10133 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10134 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10135 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
10136 | ;; | |
10137 | esac | |
10138 | fi | |
10139 | hardcode_libdir_flag_spec='-R$libdir' | |
10140 | hardcode_shlibpath_var=no | |
10141 | case $host_os in | |
10142 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
10143 | *) | |
10144 | # The compiler driver will combine and reorder linker options, | |
10145 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
10146 | # but is careful enough not to reorder. | |
10147 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
10148 | if test "$GCC" = yes; then | |
10149 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
10150 | else | |
10151 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
10152 | fi | |
10153 | ;; | |
10154 | esac | |
10155 | link_all_deplibs=yes | |
10156 | ;; | |
10157 | ||
10158 | sunos4*) | |
10159 | if test "x$host_vendor" = xsequent; then | |
10160 | # Use $CC to link under sequent, because it throws in some extra .o | |
10161 | # files that make .init and .fini sections work. | |
10162 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10163 | else | |
10164 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
10165 | fi | |
10166 | hardcode_libdir_flag_spec='-L$libdir' | |
10167 | hardcode_direct=yes | |
10168 | hardcode_minus_L=yes | |
10169 | hardcode_shlibpath_var=no | |
10170 | ;; | |
10171 | ||
10172 | sysv4) | |
10173 | case $host_vendor in | |
10174 | sni) | |
10175 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10176 | hardcode_direct=yes # is this really true??? | |
10177 | ;; | |
10178 | siemens) | |
10179 | ## LD is ld it makes a PLAMLIB | |
10180 | ## CC just makes a GrossModule. | |
10181 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
10182 | reload_cmds='$CC -r -o $output$reload_objs' | |
10183 | hardcode_direct=no | |
10184 | ;; | |
10185 | motorola) | |
10186 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10187 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
10188 | ;; | |
10189 | esac | |
10190 | runpath_var='LD_RUN_PATH' | |
10191 | hardcode_shlibpath_var=no | |
10192 | ;; | |
10193 | ||
10194 | sysv4.3*) | |
10195 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10196 | hardcode_shlibpath_var=no | |
10197 | export_dynamic_flag_spec='-Bexport' | |
10198 | ;; | |
10199 | ||
10200 | sysv4*MP*) | |
10201 | if test -d /usr/nec; then | |
10202 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10203 | hardcode_shlibpath_var=no | |
10204 | runpath_var=LD_RUN_PATH | |
10205 | hardcode_runpath_var=yes | |
10206 | ld_shlibs=yes | |
10207 | fi | |
10208 | ;; | |
10209 | ||
10210 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
10211 | no_undefined_flag='${wl}-z,text' | |
10212 | archive_cmds_need_lc=no | |
10213 | hardcode_shlibpath_var=no | |
10214 | runpath_var='LD_RUN_PATH' | |
10215 | ||
10216 | if test "$GCC" = yes; then | |
10217 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10218 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10219 | else | |
10220 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10221 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10222 | fi | |
10223 | ;; | |
10224 | ||
10225 | sysv5* | sco3.2v5* | sco5v6*) | |
10226 | # Note: We can NOT use -z defs as we might desire, because we do not | |
10227 | # link with -lc, and that would cause any symbols used from libc to | |
10228 | # always be unresolved, which means just about no library would | |
10229 | # ever link correctly. If we're not using GNU ld we use -z text | |
10230 | # though, which does catch some bad symbols but isn't as heavy-handed | |
10231 | # as -z defs. | |
10232 | no_undefined_flag='${wl}-z,text' | |
10233 | allow_undefined_flag='${wl}-z,nodefs' | |
10234 | archive_cmds_need_lc=no | |
10235 | hardcode_shlibpath_var=no | |
10236 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
10237 | hardcode_libdir_separator=':' | |
10238 | link_all_deplibs=yes | |
10239 | export_dynamic_flag_spec='${wl}-Bexport' | |
10240 | runpath_var='LD_RUN_PATH' | |
10241 | ||
10242 | if test "$GCC" = yes; then | |
10243 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10244 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10245 | else | |
10246 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10247 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10248 | fi | |
10249 | ;; | |
10250 | ||
10251 | uts4*) | |
10252 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10253 | hardcode_libdir_flag_spec='-L$libdir' | |
10254 | hardcode_shlibpath_var=no | |
10255 | ;; | |
10256 | ||
10257 | *) | |
10258 | ld_shlibs=no | |
10259 | ;; | |
10260 | esac | |
10261 | ||
10262 | if test x$host_vendor = xsni; then | |
10263 | case $host in | |
10264 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
10265 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
10266 | ;; | |
10267 | esac | |
10268 | fi | |
10269 | fi | |
10270 | ||
10271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | |
10272 | $as_echo "$ld_shlibs" >&6; } | |
10273 | test "$ld_shlibs" = no && can_build_shared=no | |
10274 | ||
10275 | with_gnu_ld=$with_gnu_ld | |
10276 | ||
10277 | ||
10278 | ||
10279 | ||
10280 | ||
10281 | ||
10282 | ||
10283 | ||
10284 | ||
10285 | ||
10286 | ||
10287 | ||
10288 | ||
10289 | ||
10290 | ||
10291 | # | |
10292 | # Do we need to explicitly link libc? | |
10293 | # | |
10294 | case "x$archive_cmds_need_lc" in | |
10295 | x|xyes) | |
10296 | # Assume -lc should be added | |
10297 | archive_cmds_need_lc=yes | |
10298 | ||
10299 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
10300 | case $archive_cmds in | |
10301 | *'~'*) | |
10302 | # FIXME: we may have to deal with multi-command sequences. | |
10303 | ;; | |
10304 | '$CC '*) | |
10305 | # Test whether the compiler implicitly links with -lc since on some | |
10306 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
10307 | # to ld, don't add -lc before -lgcc. | |
10308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
10309 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
f00f02a3 | 10310 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
03385ed3 | 10311 | $as_echo_n "(cached) " >&6 |
10312 | else | |
10313 | $RM conftest* | |
10314 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10315 | ||
10316 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
10317 | (eval $ac_compile) 2>&5 | |
10318 | ac_status=$? | |
10319 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10320 | test $ac_status = 0; } 2>conftest.err; then | |
10321 | soname=conftest | |
10322 | lib=conftest | |
10323 | libobjs=conftest.$ac_objext | |
10324 | deplibs= | |
10325 | wl=$lt_prog_compiler_wl | |
10326 | pic_flag=$lt_prog_compiler_pic | |
10327 | compiler_flags=-v | |
10328 | linker_flags=-v | |
10329 | verstring= | |
10330 | output_objdir=. | |
10331 | libname=conftest | |
10332 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
10333 | allow_undefined_flag= | |
10334 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
10335 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
10336 | ac_status=$? | |
10337 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10338 | test $ac_status = 0; } | |
10339 | then | |
10340 | lt_cv_archive_cmds_need_lc=no | |
10341 | else | |
10342 | lt_cv_archive_cmds_need_lc=yes | |
10343 | fi | |
10344 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
10345 | else | |
10346 | cat conftest.err 1>&5 | |
10347 | fi | |
10348 | $RM conftest* | |
10349 | ||
10350 | fi | |
10351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
10352 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
10353 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
10354 | ;; | |
10355 | esac | |
10356 | fi | |
10357 | ;; | |
10358 | esac | |
10359 | ||
10360 | ||
10361 | ||
10362 | ||
10363 | ||
10364 | ||
10365 | ||
10366 | ||
10367 | ||
10368 | ||
10369 | ||
10370 | ||
10371 | ||
10372 | ||
10373 | ||
10374 | ||
10375 | ||
10376 | ||
10377 | ||
10378 | ||
10379 | ||
10380 | ||
10381 | ||
10382 | ||
10383 | ||
10384 | ||
10385 | ||
10386 | ||
10387 | ||
10388 | ||
10389 | ||
10390 | ||
10391 | ||
10392 | ||
10393 | ||
10394 | ||
10395 | ||
10396 | ||
10397 | ||
10398 | ||
10399 | ||
10400 | ||
10401 | ||
10402 | ||
10403 | ||
10404 | ||
10405 | ||
10406 | ||
10407 | ||
10408 | ||
10409 | ||
10410 | ||
10411 | ||
10412 | ||
10413 | ||
10414 | ||
10415 | ||
10416 | ||
10417 | ||
10418 | ||
10419 | ||
10420 | ||
10421 | ||
10422 | ||
10423 | ||
10424 | ||
10425 | ||
10426 | ||
10427 | ||
10428 | ||
10429 | ||
10430 | ||
10431 | ||
10432 | ||
10433 | ||
10434 | ||
10435 | ||
10436 | ||
10437 | ||
10438 | ||
10439 | ||
10440 | ||
10441 | ||
10442 | ||
10443 | ||
10444 | ||
10445 | ||
10446 | ||
10447 | ||
10448 | ||
10449 | ||
10450 | ||
10451 | ||
10452 | ||
10453 | ||
10454 | ||
10455 | ||
10456 | ||
10457 | ||
10458 | ||
10459 | ||
10460 | ||
10461 | ||
10462 | ||
10463 | ||
10464 | ||
10465 | ||
10466 | ||
10467 | ||
10468 | ||
10469 | ||
10470 | ||
10471 | ||
10472 | ||
10473 | ||
10474 | ||
10475 | ||
10476 | ||
10477 | ||
10478 | ||
10479 | ||
10480 | ||
10481 | ||
10482 | ||
10483 | ||
10484 | ||
10485 | ||
10486 | ||
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 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
10517 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
10518 | ||
10519 | if test "$GCC" = yes; then | |
10520 | case $host_os in | |
10521 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
10522 | *) lt_awk_arg="/^libraries:/" ;; | |
10523 | esac | |
10524 | case $host_os in | |
10525 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
10526 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
10527 | esac | |
10528 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
10529 | case $lt_search_path_spec in | |
10530 | *\;*) | |
10531 | # if the path contains ";" then we assume it to be the separator | |
10532 | # otherwise default to the standard path separator (i.e. ":") - it is | |
10533 | # assumed that no part of a normal pathname contains ";" but that should | |
10534 | # okay in the real world where ";" in dirpaths is itself problematic. | |
10535 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | |
10536 | ;; | |
10537 | *) | |
10538 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
10539 | ;; | |
10540 | esac | |
10541 | # Ok, now we have the path, separated by spaces, we can step through it | |
10542 | # and add multilib dir if necessary. | |
10543 | lt_tmp_lt_search_path_spec= | |
10544 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
10545 | for lt_sys_path in $lt_search_path_spec; do | |
10546 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
10547 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
10548 | else | |
10549 | test -d "$lt_sys_path" && \ | |
10550 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
10551 | fi | |
10552 | done | |
10553 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | |
10554 | BEGIN {RS=" "; FS="/|\n";} { | |
10555 | lt_foo=""; | |
10556 | lt_count=0; | |
10557 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
10558 | if ($lt_i != "" && $lt_i != ".") { | |
10559 | if ($lt_i == "..") { | |
10560 | lt_count++; | |
10561 | } else { | |
10562 | if (lt_count == 0) { | |
10563 | lt_foo="/" $lt_i lt_foo; | |
10564 | } else { | |
10565 | lt_count--; | |
10566 | } | |
10567 | } | |
10568 | } | |
10569 | } | |
10570 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
10571 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
10572 | }'` | |
10573 | # AWK program above erroneously prepends '/' to C:/dos/paths | |
10574 | # for these hosts. | |
10575 | case $host_os in | |
10576 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
10577 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
10578 | esac | |
10579 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
10580 | else | |
10581 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
10582 | fi | |
10583 | library_names_spec= | |
10584 | libname_spec='lib$name' | |
10585 | soname_spec= | |
10586 | shrext_cmds=".so" | |
10587 | postinstall_cmds= | |
10588 | postuninstall_cmds= | |
10589 | finish_cmds= | |
10590 | finish_eval= | |
10591 | shlibpath_var= | |
10592 | shlibpath_overrides_runpath=unknown | |
10593 | version_type=none | |
10594 | dynamic_linker="$host_os ld.so" | |
10595 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
10596 | need_lib_prefix=unknown | |
10597 | hardcode_into_libs=no | |
10598 | ||
10599 | # when you set need_version to no, make sure it does not cause -set_version | |
10600 | # flags to be left without arguments | |
10601 | need_version=unknown | |
10602 | ||
10603 | case $host_os in | |
10604 | aix3*) | |
10605 | version_type=linux | |
10606 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
10607 | shlibpath_var=LIBPATH | |
10608 | ||
10609 | # AIX 3 has no versioning support, so we append a major version to the name. | |
10610 | soname_spec='${libname}${release}${shared_ext}$major' | |
10611 | ;; | |
10612 | ||
10613 | aix[4-9]*) | |
10614 | version_type=linux | |
10615 | need_lib_prefix=no | |
10616 | need_version=no | |
10617 | hardcode_into_libs=yes | |
10618 | if test "$host_cpu" = ia64; then | |
10619 | # AIX 5 supports IA64 | |
10620 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
10621 | shlibpath_var=LD_LIBRARY_PATH | |
10622 | else | |
10623 | # With GCC up to 2.95.x, collect2 would create an import file | |
10624 | # for dependence libraries. The import file would start with | |
10625 | # the line `#! .'. This would cause the generated library to | |
10626 | # depend on `.', always an invalid library. This was fixed in | |
10627 | # development snapshots of GCC prior to 3.0. | |
10628 | case $host_os in | |
10629 | aix4 | aix4.[01] | aix4.[01].*) | |
10630 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10631 | echo ' yes ' | |
10632 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
10633 | : | |
10634 | else | |
10635 | can_build_shared=no | |
10636 | fi | |
10637 | ;; | |
10638 | esac | |
10639 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
10640 | # soname into executable. Probably we can add versioning support to | |
10641 | # collect2, so additional links can be useful in future. | |
10642 | if test "$aix_use_runtimelinking" = yes; then | |
10643 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
10644 | # instead of lib<name>.a to let people know that these are not | |
10645 | # typical AIX shared libraries. | |
10646 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10647 | else | |
10648 | # We preserve .a as extension for shared libraries through AIX4.2 | |
10649 | # and later when we are not doing run time linking. | |
10650 | library_names_spec='${libname}${release}.a $libname.a' | |
10651 | soname_spec='${libname}${release}${shared_ext}$major' | |
10652 | fi | |
10653 | shlibpath_var=LIBPATH | |
10654 | fi | |
10655 | ;; | |
10656 | ||
10657 | amigaos*) | |
10658 | case $host_cpu in | |
10659 | powerpc) | |
10660 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
10661 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
10662 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10663 | ;; | |
10664 | m68k) | |
10665 | library_names_spec='$libname.ixlibrary $libname.a' | |
10666 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
10667 | 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' | |
10668 | ;; | |
10669 | esac | |
10670 | ;; | |
10671 | ||
10672 | beos*) | |
10673 | library_names_spec='${libname}${shared_ext}' | |
10674 | dynamic_linker="$host_os ld.so" | |
10675 | shlibpath_var=LIBRARY_PATH | |
10676 | ;; | |
10677 | ||
10678 | bsdi[45]*) | |
10679 | version_type=linux | |
10680 | need_version=no | |
10681 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10682 | soname_spec='${libname}${release}${shared_ext}$major' | |
10683 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
10684 | shlibpath_var=LD_LIBRARY_PATH | |
10685 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
10686 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
10687 | # the default ld.so.conf also contains /usr/contrib/lib and | |
10688 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
10689 | # libtool to hard-code these into programs | |
10690 | ;; | |
10691 | ||
10692 | cygwin* | mingw* | pw32* | cegcc*) | |
10693 | version_type=windows | |
10694 | shrext_cmds=".dll" | |
10695 | need_version=no | |
10696 | need_lib_prefix=no | |
10697 | ||
10698 | case $GCC,$host_os in | |
10699 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
10700 | library_names_spec='$libname.dll.a' | |
10701 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
10702 | postinstall_cmds='base_file=`basename \${file}`~ | |
10703 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
10704 | dldir=$destdir/`dirname \$dlpath`~ | |
10705 | test -d \$dldir || mkdir -p \$dldir~ | |
10706 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
10707 | chmod a+x \$dldir/$dlname~ | |
10708 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
10709 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
10710 | fi' | |
10711 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10712 | dlpath=$dir/\$dldll~ | |
10713 | $RM \$dlpath' | |
10714 | shlibpath_overrides_runpath=yes | |
10715 | ||
10716 | case $host_os in | |
10717 | cygwin*) | |
10718 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
10719 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10720 | ||
10721 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
10722 | ;; | |
10723 | mingw* | cegcc*) | |
10724 | # MinGW DLLs use traditional 'lib' prefix | |
10725 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10726 | ;; | |
10727 | pw32*) | |
10728 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
10729 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10730 | ;; | |
10731 | esac | |
10732 | ;; | |
10733 | ||
10734 | *) | |
10735 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
10736 | ;; | |
10737 | esac | |
10738 | dynamic_linker='Win32 ld.exe' | |
10739 | # FIXME: first we should search . and the directory the executable is in | |
10740 | shlibpath_var=PATH | |
10741 | ;; | |
10742 | ||
10743 | darwin* | rhapsody*) | |
10744 | dynamic_linker="$host_os dyld" | |
10745 | version_type=darwin | |
10746 | need_lib_prefix=no | |
10747 | need_version=no | |
10748 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
10749 | soname_spec='${libname}${release}${major}$shared_ext' | |
10750 | shlibpath_overrides_runpath=yes | |
10751 | shlibpath_var=DYLD_LIBRARY_PATH | |
10752 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
10753 | ||
10754 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
10755 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
10756 | ;; | |
10757 | ||
10758 | dgux*) | |
10759 | version_type=linux | |
10760 | need_lib_prefix=no | |
10761 | need_version=no | |
10762 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
10763 | soname_spec='${libname}${release}${shared_ext}$major' | |
10764 | shlibpath_var=LD_LIBRARY_PATH | |
10765 | ;; | |
10766 | ||
10767 | freebsd* | dragonfly*) | |
10768 | # DragonFly does not have aout. When/if they implement a new | |
10769 | # versioning mechanism, adjust this. | |
10770 | if test -x /usr/bin/objformat; then | |
10771 | objformat=`/usr/bin/objformat` | |
10772 | else | |
10773 | case $host_os in | |
10774 | freebsd[23].*) objformat=aout ;; | |
10775 | *) objformat=elf ;; | |
10776 | esac | |
10777 | fi | |
10778 | version_type=freebsd-$objformat | |
10779 | case $version_type in | |
10780 | freebsd-elf*) | |
10781 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10782 | need_version=no | |
10783 | need_lib_prefix=no | |
10784 | ;; | |
10785 | freebsd-*) | |
10786 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
10787 | need_version=yes | |
10788 | ;; | |
10789 | esac | |
10790 | shlibpath_var=LD_LIBRARY_PATH | |
10791 | case $host_os in | |
10792 | freebsd2.*) | |
10793 | shlibpath_overrides_runpath=yes | |
10794 | ;; | |
10795 | freebsd3.[01]* | freebsdelf3.[01]*) | |
10796 | shlibpath_overrides_runpath=yes | |
10797 | hardcode_into_libs=yes | |
10798 | ;; | |
10799 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
10800 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
10801 | shlibpath_overrides_runpath=no | |
10802 | hardcode_into_libs=yes | |
10803 | ;; | |
10804 | *) # from 4.6 on, and DragonFly | |
10805 | shlibpath_overrides_runpath=yes | |
10806 | hardcode_into_libs=yes | |
10807 | ;; | |
10808 | esac | |
10809 | ;; | |
10810 | ||
10811 | gnu*) | |
10812 | version_type=linux | |
10813 | need_lib_prefix=no | |
10814 | need_version=no | |
10815 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10816 | soname_spec='${libname}${release}${shared_ext}$major' | |
10817 | shlibpath_var=LD_LIBRARY_PATH | |
10818 | hardcode_into_libs=yes | |
10819 | ;; | |
10820 | ||
10821 | haiku*) | |
10822 | version_type=linux | |
10823 | need_lib_prefix=no | |
10824 | need_version=no | |
10825 | dynamic_linker="$host_os runtime_loader" | |
10826 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10827 | soname_spec='${libname}${release}${shared_ext}$major' | |
10828 | shlibpath_var=LIBRARY_PATH | |
10829 | shlibpath_overrides_runpath=yes | |
10830 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | |
10831 | hardcode_into_libs=yes | |
10832 | ;; | |
10833 | ||
10834 | hpux9* | hpux10* | hpux11*) | |
10835 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
10836 | # link against other versions. | |
10837 | version_type=sunos | |
10838 | need_lib_prefix=no | |
10839 | need_version=no | |
10840 | case $host_cpu in | |
10841 | ia64*) | |
10842 | shrext_cmds='.so' | |
10843 | hardcode_into_libs=yes | |
10844 | dynamic_linker="$host_os dld.so" | |
10845 | shlibpath_var=LD_LIBRARY_PATH | |
10846 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10847 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10848 | soname_spec='${libname}${release}${shared_ext}$major' | |
10849 | if test "X$HPUX_IA64_MODE" = X32; then | |
10850 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
10851 | else | |
10852 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
10853 | fi | |
10854 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10855 | ;; | |
10856 | hppa*64*) | |
10857 | shrext_cmds='.sl' | |
10858 | hardcode_into_libs=yes | |
10859 | dynamic_linker="$host_os dld.sl" | |
10860 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
10861 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10862 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10863 | soname_spec='${libname}${release}${shared_ext}$major' | |
10864 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
10865 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10866 | ;; | |
10867 | *) | |
10868 | shrext_cmds='.sl' | |
10869 | dynamic_linker="$host_os dld.sl" | |
10870 | shlibpath_var=SHLIB_PATH | |
10871 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
10872 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10873 | soname_spec='${libname}${release}${shared_ext}$major' | |
10874 | ;; | |
10875 | esac | |
10876 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
10877 | postinstall_cmds='chmod 555 $lib' | |
10878 | # or fails outright, so override atomically: | |
10879 | install_override_mode=555 | |
10880 | ;; | |
10881 | ||
10882 | interix[3-9]*) | |
10883 | version_type=linux | |
10884 | need_lib_prefix=no | |
10885 | need_version=no | |
10886 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10887 | soname_spec='${libname}${release}${shared_ext}$major' | |
10888 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
10889 | shlibpath_var=LD_LIBRARY_PATH | |
10890 | shlibpath_overrides_runpath=no | |
10891 | hardcode_into_libs=yes | |
10892 | ;; | |
10893 | ||
10894 | irix5* | irix6* | nonstopux*) | |
10895 | case $host_os in | |
10896 | nonstopux*) version_type=nonstopux ;; | |
10897 | *) | |
10898 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
10899 | version_type=linux | |
10900 | else | |
10901 | version_type=irix | |
10902 | fi ;; | |
10903 | esac | |
10904 | need_lib_prefix=no | |
10905 | need_version=no | |
10906 | soname_spec='${libname}${release}${shared_ext}$major' | |
10907 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10908 | case $host_os in | |
10909 | irix5* | nonstopux*) | |
10910 | libsuff= shlibsuff= | |
10911 | ;; | |
10912 | *) | |
10913 | case $LD in # libtool.m4 will add one of these switches to LD | |
10914 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
10915 | libsuff= shlibsuff= libmagic=32-bit;; | |
10916 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
10917 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
10918 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
10919 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
10920 | *) libsuff= shlibsuff= libmagic=never-match;; | |
10921 | esac | |
10922 | ;; | |
10923 | esac | |
10924 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
10925 | shlibpath_overrides_runpath=no | |
10926 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
10927 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
10928 | hardcode_into_libs=yes | |
10929 | ;; | |
10930 | ||
10931 | # No shared lib support for Linux oldld, aout, or coff. | |
10932 | linux*oldld* | linux*aout* | linux*coff*) | |
10933 | dynamic_linker=no | |
10934 | ;; | |
10935 | ||
10936 | # This must be Linux ELF. | |
10937 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
10938 | version_type=linux | |
10939 | need_lib_prefix=no | |
10940 | need_version=no | |
10941 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10942 | soname_spec='${libname}${release}${shared_ext}$major' | |
10943 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
10944 | shlibpath_var=LD_LIBRARY_PATH | |
10945 | shlibpath_overrides_runpath=no | |
10946 | ||
10947 | # Some binutils ld are patched to set DT_RUNPATH | |
f00f02a3 | 10948 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
03385ed3 | 10949 | $as_echo_n "(cached) " >&6 |
10950 | else | |
10951 | lt_cv_shlibpath_overrides_runpath=no | |
10952 | save_LDFLAGS=$LDFLAGS | |
10953 | save_libdir=$libdir | |
10954 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
10955 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
10956 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10957 | /* end confdefs.h. */ | |
10958 | ||
10959 | int | |
10960 | main () | |
10961 | { | |
10962 | ||
10963 | ; | |
10964 | return 0; | |
10965 | } | |
10966 | _ACEOF | |
10967 | if ac_fn_c_try_link "$LINENO"; then : | |
10968 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
10969 | lt_cv_shlibpath_overrides_runpath=yes | |
10970 | fi | |
10971 | fi | |
10972 | rm -f core conftest.err conftest.$ac_objext \ | |
10973 | conftest$ac_exeext conftest.$ac_ext | |
10974 | LDFLAGS=$save_LDFLAGS | |
10975 | libdir=$save_libdir | |
10976 | ||
10977 | fi | |
10978 | ||
10979 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
10980 | ||
10981 | # This implies no fast_install, which is unacceptable. | |
10982 | # Some rework will be needed to allow for fast_install | |
10983 | # before this can be enabled. | |
10984 | hardcode_into_libs=yes | |
10985 | ||
10986 | # Append ld.so.conf contents to the search path | |
10987 | if test -f /etc/ld.so.conf; then | |
10988 | 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' ' '` | |
10989 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
10990 | fi | |
10991 | ||
10992 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
10993 | # powerpc, because MkLinux only supported shared libraries with the | |
10994 | # GNU dynamic linker. Since this was broken with cross compilers, | |
10995 | # most powerpc-linux boxes support dynamic linking these days and | |
10996 | # people can always --disable-shared, the test was removed, and we | |
10997 | # assume the GNU/Linux dynamic linker is in use. | |
10998 | dynamic_linker='GNU/Linux ld.so' | |
10999 | ;; | |
11000 | ||
11001 | netbsd*) | |
11002 | version_type=sunos | |
11003 | need_lib_prefix=no | |
11004 | need_version=no | |
11005 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11006 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11007 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11008 | dynamic_linker='NetBSD (a.out) ld.so' | |
11009 | else | |
11010 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11011 | soname_spec='${libname}${release}${shared_ext}$major' | |
11012 | dynamic_linker='NetBSD ld.elf_so' | |
11013 | fi | |
11014 | shlibpath_var=LD_LIBRARY_PATH | |
11015 | shlibpath_overrides_runpath=yes | |
11016 | hardcode_into_libs=yes | |
11017 | ;; | |
11018 | ||
11019 | newsos6) | |
11020 | version_type=linux | |
11021 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11022 | shlibpath_var=LD_LIBRARY_PATH | |
11023 | shlibpath_overrides_runpath=yes | |
11024 | ;; | |
11025 | ||
11026 | *nto* | *qnx*) | |
11027 | version_type=qnx | |
11028 | need_lib_prefix=no | |
11029 | need_version=no | |
11030 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11031 | soname_spec='${libname}${release}${shared_ext}$major' | |
11032 | shlibpath_var=LD_LIBRARY_PATH | |
11033 | shlibpath_overrides_runpath=no | |
11034 | hardcode_into_libs=yes | |
11035 | dynamic_linker='ldqnx.so' | |
11036 | ;; | |
11037 | ||
11038 | openbsd*) | |
11039 | version_type=sunos | |
11040 | sys_lib_dlsearch_path_spec="/usr/lib" | |
11041 | need_lib_prefix=no | |
11042 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
11043 | case $host_os in | |
11044 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
11045 | *) need_version=no ;; | |
11046 | esac | |
11047 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11048 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11049 | shlibpath_var=LD_LIBRARY_PATH | |
11050 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
11051 | case $host_os in | |
11052 | openbsd2.[89] | openbsd2.[89].*) | |
11053 | shlibpath_overrides_runpath=no | |
11054 | ;; | |
11055 | *) | |
11056 | shlibpath_overrides_runpath=yes | |
11057 | ;; | |
11058 | esac | |
11059 | else | |
11060 | shlibpath_overrides_runpath=yes | |
11061 | fi | |
11062 | ;; | |
11063 | ||
11064 | os2*) | |
11065 | libname_spec='$name' | |
11066 | shrext_cmds=".dll" | |
11067 | need_lib_prefix=no | |
11068 | library_names_spec='$libname${shared_ext} $libname.a' | |
11069 | dynamic_linker='OS/2 ld.exe' | |
11070 | shlibpath_var=LIBPATH | |
11071 | ;; | |
11072 | ||
11073 | osf3* | osf4* | osf5*) | |
11074 | version_type=osf | |
11075 | need_lib_prefix=no | |
11076 | need_version=no | |
11077 | soname_spec='${libname}${release}${shared_ext}$major' | |
11078 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11079 | shlibpath_var=LD_LIBRARY_PATH | |
11080 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
11081 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
11082 | ;; | |
11083 | ||
11084 | rdos*) | |
11085 | dynamic_linker=no | |
11086 | ;; | |
11087 | ||
11088 | solaris*) | |
11089 | version_type=linux | |
11090 | need_lib_prefix=no | |
11091 | need_version=no | |
11092 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11093 | soname_spec='${libname}${release}${shared_ext}$major' | |
11094 | shlibpath_var=LD_LIBRARY_PATH | |
11095 | shlibpath_overrides_runpath=yes | |
11096 | hardcode_into_libs=yes | |
11097 | # ldd complains unless libraries are executable | |
11098 | postinstall_cmds='chmod +x $lib' | |
11099 | ;; | |
11100 | ||
11101 | sunos4*) | |
11102 | version_type=sunos | |
11103 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11104 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
11105 | shlibpath_var=LD_LIBRARY_PATH | |
11106 | shlibpath_overrides_runpath=yes | |
11107 | if test "$with_gnu_ld" = yes; then | |
11108 | need_lib_prefix=no | |
11109 | fi | |
11110 | need_version=yes | |
11111 | ;; | |
11112 | ||
11113 | sysv4 | sysv4.3*) | |
11114 | version_type=linux | |
11115 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11116 | soname_spec='${libname}${release}${shared_ext}$major' | |
11117 | shlibpath_var=LD_LIBRARY_PATH | |
11118 | case $host_vendor in | |
11119 | sni) | |
11120 | shlibpath_overrides_runpath=no | |
11121 | need_lib_prefix=no | |
11122 | runpath_var=LD_RUN_PATH | |
11123 | ;; | |
11124 | siemens) | |
11125 | need_lib_prefix=no | |
11126 | ;; | |
11127 | motorola) | |
11128 | need_lib_prefix=no | |
11129 | need_version=no | |
11130 | shlibpath_overrides_runpath=no | |
11131 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
11132 | ;; | |
11133 | esac | |
11134 | ;; | |
11135 | ||
11136 | sysv4*MP*) | |
11137 | if test -d /usr/nec ;then | |
11138 | version_type=linux | |
11139 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
11140 | soname_spec='$libname${shared_ext}.$major' | |
11141 | shlibpath_var=LD_LIBRARY_PATH | |
11142 | fi | |
11143 | ;; | |
11144 | ||
11145 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
11146 | version_type=freebsd-elf | |
11147 | need_lib_prefix=no | |
11148 | need_version=no | |
11149 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11150 | soname_spec='${libname}${release}${shared_ext}$major' | |
11151 | shlibpath_var=LD_LIBRARY_PATH | |
11152 | shlibpath_overrides_runpath=yes | |
11153 | hardcode_into_libs=yes | |
11154 | if test "$with_gnu_ld" = yes; then | |
11155 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
11156 | else | |
11157 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
11158 | case $host_os in | |
11159 | sco3.2v5*) | |
11160 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
11161 | ;; | |
11162 | esac | |
11163 | fi | |
11164 | sys_lib_dlsearch_path_spec='/usr/lib' | |
11165 | ;; | |
11166 | ||
11167 | tpf*) | |
11168 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
11169 | version_type=linux | |
11170 | need_lib_prefix=no | |
11171 | need_version=no | |
11172 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11173 | shlibpath_var=LD_LIBRARY_PATH | |
11174 | shlibpath_overrides_runpath=no | |
11175 | hardcode_into_libs=yes | |
11176 | ;; | |
11177 | ||
11178 | uts4*) | |
11179 | version_type=linux | |
11180 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11181 | soname_spec='${libname}${release}${shared_ext}$major' | |
11182 | shlibpath_var=LD_LIBRARY_PATH | |
11183 | ;; | |
11184 | ||
11185 | *) | |
11186 | dynamic_linker=no | |
11187 | ;; | |
11188 | esac | |
11189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
11190 | $as_echo "$dynamic_linker" >&6; } | |
11191 | test "$dynamic_linker" = no && can_build_shared=no | |
11192 | ||
11193 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
11194 | if test "$GCC" = yes; then | |
11195 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
11196 | fi | |
11197 | ||
11198 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | |
11199 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
11200 | fi | |
11201 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
11202 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
11203 | fi | |
11204 | ||
11205 | ||
11206 | ||
11207 | ||
11208 | ||
11209 | ||
11210 | ||
11211 | ||
11212 | ||
11213 | ||
11214 | ||
11215 | ||
11216 | ||
11217 | ||
11218 | ||
11219 | ||
11220 | ||
11221 | ||
11222 | ||
11223 | ||
11224 | ||
11225 | ||
11226 | ||
11227 | ||
11228 | ||
11229 | ||
11230 | ||
11231 | ||
11232 | ||
11233 | ||
11234 | ||
11235 | ||
11236 | ||
11237 | ||
11238 | ||
11239 | ||
11240 | ||
11241 | ||
11242 | ||
11243 | ||
11244 | ||
11245 | ||
11246 | ||
11247 | ||
11248 | ||
11249 | ||
11250 | ||
11251 | ||
11252 | ||
11253 | ||
11254 | ||
11255 | ||
11256 | ||
11257 | ||
11258 | ||
11259 | ||
11260 | ||
11261 | ||
11262 | ||
11263 | ||
11264 | ||
11265 | ||
11266 | ||
11267 | ||
11268 | ||
11269 | ||
11270 | ||
11271 | ||
11272 | ||
11273 | ||
11274 | ||
11275 | ||
11276 | ||
11277 | ||
11278 | ||
11279 | ||
11280 | ||
11281 | ||
11282 | ||
11283 | ||
11284 | ||
11285 | ||
11286 | ||
11287 | ||
11288 | ||
11289 | ||
11290 | ||
11291 | ||
11292 | ||
11293 | ||
11294 | ||
11295 | ||
11296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
11297 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
11298 | hardcode_action= | |
11299 | if test -n "$hardcode_libdir_flag_spec" || | |
11300 | test -n "$runpath_var" || | |
11301 | test "X$hardcode_automatic" = "Xyes" ; then | |
11302 | ||
11303 | # We can hardcode non-existent directories. | |
11304 | if test "$hardcode_direct" != no && | |
11305 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
11306 | # have to relink, otherwise we might link with an installed library | |
11307 | # when we should be linking with a yet-to-be-installed one | |
11308 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
11309 | test "$hardcode_minus_L" != no; then | |
11310 | # Linking always hardcodes the temporary library directory. | |
11311 | hardcode_action=relink | |
11312 | else | |
11313 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
11314 | hardcode_action=immediate | |
11315 | fi | |
11316 | else | |
11317 | # We cannot hardcode anything, or else we can only hardcode existing | |
11318 | # directories. | |
11319 | hardcode_action=unsupported | |
11320 | fi | |
11321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | |
11322 | $as_echo "$hardcode_action" >&6; } | |
11323 | ||
11324 | if test "$hardcode_action" = relink || | |
11325 | test "$inherit_rpath" = yes; then | |
11326 | # Fast installation is not supported | |
11327 | enable_fast_install=no | |
11328 | elif test "$shlibpath_overrides_runpath" = yes || | |
11329 | test "$enable_shared" = no; then | |
11330 | # Fast installation is not necessary | |
11331 | enable_fast_install=needless | |
11332 | fi | |
11333 | ||
11334 | ||
11335 | ||
11336 | ||
11337 | ||
11338 | ||
11339 | if test "x$enable_dlopen" != xyes; then | |
11340 | enable_dlopen=unknown | |
11341 | enable_dlopen_self=unknown | |
11342 | enable_dlopen_self_static=unknown | |
11343 | else | |
11344 | lt_cv_dlopen=no | |
11345 | lt_cv_dlopen_libs= | |
11346 | ||
11347 | case $host_os in | |
11348 | beos*) | |
11349 | lt_cv_dlopen="load_add_on" | |
11350 | lt_cv_dlopen_libs= | |
11351 | lt_cv_dlopen_self=yes | |
11352 | ;; | |
11353 | ||
11354 | mingw* | pw32* | cegcc*) | |
11355 | lt_cv_dlopen="LoadLibrary" | |
11356 | lt_cv_dlopen_libs= | |
11357 | ;; | |
11358 | ||
11359 | cygwin*) | |
11360 | lt_cv_dlopen="dlopen" | |
11361 | lt_cv_dlopen_libs= | |
11362 | ;; | |
11363 | ||
11364 | darwin*) | |
11365 | # if libdl is installed we need to link against it | |
11366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
11367 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
f00f02a3 | 11368 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
03385ed3 | 11369 | $as_echo_n "(cached) " >&6 |
11370 | else | |
11371 | ac_check_lib_save_LIBS=$LIBS | |
11372 | LIBS="-ldl $LIBS" | |
11373 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11374 | /* end confdefs.h. */ | |
11375 | ||
11376 | /* Override any GCC internal prototype to avoid an error. | |
11377 | Use char because int might match the return type of a GCC | |
11378 | builtin and then its argument prototype would still apply. */ | |
11379 | #ifdef __cplusplus | |
11380 | extern "C" | |
11381 | #endif | |
11382 | char dlopen (); | |
11383 | int | |
11384 | main () | |
11385 | { | |
11386 | return dlopen (); | |
11387 | ; | |
11388 | return 0; | |
11389 | } | |
11390 | _ACEOF | |
11391 | if ac_fn_c_try_link "$LINENO"; then : | |
11392 | ac_cv_lib_dl_dlopen=yes | |
11393 | else | |
11394 | ac_cv_lib_dl_dlopen=no | |
11395 | fi | |
11396 | rm -f core conftest.err conftest.$ac_objext \ | |
11397 | conftest$ac_exeext conftest.$ac_ext | |
11398 | LIBS=$ac_check_lib_save_LIBS | |
11399 | fi | |
11400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
11401 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
f00f02a3 | 11402 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
03385ed3 | 11403 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
11404 | else | |
11405 | ||
11406 | lt_cv_dlopen="dyld" | |
11407 | lt_cv_dlopen_libs= | |
11408 | lt_cv_dlopen_self=yes | |
11409 | ||
11410 | fi | |
11411 | ||
11412 | ;; | |
11413 | ||
11414 | *) | |
11415 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
f00f02a3 | 11416 | if test "x$ac_cv_func_shl_load" = xyes; then : |
03385ed3 | 11417 | lt_cv_dlopen="shl_load" |
11418 | else | |
11419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
11420 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
f00f02a3 | 11421 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
03385ed3 | 11422 | $as_echo_n "(cached) " >&6 |
11423 | else | |
11424 | ac_check_lib_save_LIBS=$LIBS | |
11425 | LIBS="-ldld $LIBS" | |
11426 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11427 | /* end confdefs.h. */ | |
11428 | ||
11429 | /* Override any GCC internal prototype to avoid an error. | |
11430 | Use char because int might match the return type of a GCC | |
11431 | builtin and then its argument prototype would still apply. */ | |
11432 | #ifdef __cplusplus | |
11433 | extern "C" | |
11434 | #endif | |
11435 | char shl_load (); | |
11436 | int | |
11437 | main () | |
11438 | { | |
11439 | return shl_load (); | |
11440 | ; | |
11441 | return 0; | |
11442 | } | |
11443 | _ACEOF | |
11444 | if ac_fn_c_try_link "$LINENO"; then : | |
11445 | ac_cv_lib_dld_shl_load=yes | |
11446 | else | |
11447 | ac_cv_lib_dld_shl_load=no | |
11448 | fi | |
11449 | rm -f core conftest.err conftest.$ac_objext \ | |
11450 | conftest$ac_exeext conftest.$ac_ext | |
11451 | LIBS=$ac_check_lib_save_LIBS | |
11452 | fi | |
11453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
11454 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
f00f02a3 | 11455 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
03385ed3 | 11456 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
11457 | else | |
11458 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
f00f02a3 | 11459 | if test "x$ac_cv_func_dlopen" = xyes; then : |
03385ed3 | 11460 | lt_cv_dlopen="dlopen" |
11461 | else | |
11462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
11463 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
f00f02a3 | 11464 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
03385ed3 | 11465 | $as_echo_n "(cached) " >&6 |
11466 | else | |
11467 | ac_check_lib_save_LIBS=$LIBS | |
11468 | LIBS="-ldl $LIBS" | |
11469 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11470 | /* end confdefs.h. */ | |
11471 | ||
11472 | /* Override any GCC internal prototype to avoid an error. | |
11473 | Use char because int might match the return type of a GCC | |
11474 | builtin and then its argument prototype would still apply. */ | |
11475 | #ifdef __cplusplus | |
11476 | extern "C" | |
11477 | #endif | |
11478 | char dlopen (); | |
11479 | int | |
11480 | main () | |
11481 | { | |
11482 | return dlopen (); | |
11483 | ; | |
11484 | return 0; | |
11485 | } | |
11486 | _ACEOF | |
11487 | if ac_fn_c_try_link "$LINENO"; then : | |
11488 | ac_cv_lib_dl_dlopen=yes | |
11489 | else | |
11490 | ac_cv_lib_dl_dlopen=no | |
11491 | fi | |
11492 | rm -f core conftest.err conftest.$ac_objext \ | |
11493 | conftest$ac_exeext conftest.$ac_ext | |
11494 | LIBS=$ac_check_lib_save_LIBS | |
11495 | fi | |
11496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
11497 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
f00f02a3 | 11498 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
03385ed3 | 11499 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
11500 | else | |
11501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
11502 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
f00f02a3 | 11503 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
03385ed3 | 11504 | $as_echo_n "(cached) " >&6 |
11505 | else | |
11506 | ac_check_lib_save_LIBS=$LIBS | |
11507 | LIBS="-lsvld $LIBS" | |
11508 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11509 | /* end confdefs.h. */ | |
11510 | ||
11511 | /* Override any GCC internal prototype to avoid an error. | |
11512 | Use char because int might match the return type of a GCC | |
11513 | builtin and then its argument prototype would still apply. */ | |
11514 | #ifdef __cplusplus | |
11515 | extern "C" | |
11516 | #endif | |
11517 | char dlopen (); | |
11518 | int | |
11519 | main () | |
11520 | { | |
11521 | return dlopen (); | |
11522 | ; | |
11523 | return 0; | |
11524 | } | |
11525 | _ACEOF | |
11526 | if ac_fn_c_try_link "$LINENO"; then : | |
11527 | ac_cv_lib_svld_dlopen=yes | |
11528 | else | |
11529 | ac_cv_lib_svld_dlopen=no | |
11530 | fi | |
11531 | rm -f core conftest.err conftest.$ac_objext \ | |
11532 | conftest$ac_exeext conftest.$ac_ext | |
11533 | LIBS=$ac_check_lib_save_LIBS | |
11534 | fi | |
11535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
11536 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
f00f02a3 | 11537 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
03385ed3 | 11538 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
11539 | else | |
11540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
11541 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
f00f02a3 | 11542 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
03385ed3 | 11543 | $as_echo_n "(cached) " >&6 |
11544 | else | |
11545 | ac_check_lib_save_LIBS=$LIBS | |
11546 | LIBS="-ldld $LIBS" | |
11547 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11548 | /* end confdefs.h. */ | |
11549 | ||
11550 | /* Override any GCC internal prototype to avoid an error. | |
11551 | Use char because int might match the return type of a GCC | |
11552 | builtin and then its argument prototype would still apply. */ | |
11553 | #ifdef __cplusplus | |
11554 | extern "C" | |
11555 | #endif | |
11556 | char dld_link (); | |
11557 | int | |
11558 | main () | |
11559 | { | |
11560 | return dld_link (); | |
11561 | ; | |
11562 | return 0; | |
11563 | } | |
11564 | _ACEOF | |
11565 | if ac_fn_c_try_link "$LINENO"; then : | |
11566 | ac_cv_lib_dld_dld_link=yes | |
11567 | else | |
11568 | ac_cv_lib_dld_dld_link=no | |
11569 | fi | |
11570 | rm -f core conftest.err conftest.$ac_objext \ | |
11571 | conftest$ac_exeext conftest.$ac_ext | |
11572 | LIBS=$ac_check_lib_save_LIBS | |
11573 | fi | |
11574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
11575 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
f00f02a3 | 11576 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
03385ed3 | 11577 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
11578 | fi | |
11579 | ||
11580 | ||
11581 | fi | |
11582 | ||
11583 | ||
11584 | fi | |
11585 | ||
11586 | ||
11587 | fi | |
11588 | ||
11589 | ||
11590 | fi | |
11591 | ||
11592 | ||
11593 | fi | |
11594 | ||
11595 | ;; | |
11596 | esac | |
11597 | ||
11598 | if test "x$lt_cv_dlopen" != xno; then | |
11599 | enable_dlopen=yes | |
11600 | else | |
11601 | enable_dlopen=no | |
11602 | fi | |
11603 | ||
11604 | case $lt_cv_dlopen in | |
11605 | dlopen) | |
11606 | save_CPPFLAGS="$CPPFLAGS" | |
11607 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
11608 | ||
11609 | save_LDFLAGS="$LDFLAGS" | |
11610 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
11611 | ||
11612 | save_LIBS="$LIBS" | |
11613 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
11614 | ||
11615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 | |
11616 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
f00f02a3 | 11617 | if ${lt_cv_dlopen_self+:} false; then : |
03385ed3 | 11618 | $as_echo_n "(cached) " >&6 |
11619 | else | |
11620 | if test "$cross_compiling" = yes; then : | |
11621 | lt_cv_dlopen_self=cross | |
11622 | else | |
11623 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11624 | lt_status=$lt_dlunknown | |
11625 | cat > conftest.$ac_ext <<_LT_EOF | |
20abc61c | 11626 | #line 11626 "configure" |
03385ed3 | 11627 | #include "confdefs.h" |
11628 | ||
11629 | #if HAVE_DLFCN_H | |
11630 | #include <dlfcn.h> | |
11631 | #endif | |
11632 | ||
11633 | #include <stdio.h> | |
11634 | ||
11635 | #ifdef RTLD_GLOBAL | |
11636 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11637 | #else | |
11638 | # ifdef DL_GLOBAL | |
11639 | # define LT_DLGLOBAL DL_GLOBAL | |
11640 | # else | |
11641 | # define LT_DLGLOBAL 0 | |
11642 | # endif | |
11643 | #endif | |
11644 | ||
11645 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11646 | find out it does not work in some platform. */ | |
11647 | #ifndef LT_DLLAZY_OR_NOW | |
11648 | # ifdef RTLD_LAZY | |
11649 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11650 | # else | |
11651 | # ifdef DL_LAZY | |
11652 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11653 | # else | |
11654 | # ifdef RTLD_NOW | |
11655 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11656 | # else | |
11657 | # ifdef DL_NOW | |
11658 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11659 | # else | |
11660 | # define LT_DLLAZY_OR_NOW 0 | |
11661 | # endif | |
11662 | # endif | |
11663 | # endif | |
11664 | # endif | |
11665 | #endif | |
11666 | ||
11667 | /* When -fvisbility=hidden is used, assume the code has been annotated | |
11668 | correspondingly for the symbols needed. */ | |
11669 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
11670 | void fnord () __attribute__((visibility("default"))); | |
11671 | #endif | |
11672 | ||
11673 | void fnord () { int i=42; } | |
11674 | int main () | |
11675 | { | |
11676 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11677 | int status = $lt_dlunknown; | |
11678 | ||
11679 | if (self) | |
11680 | { | |
11681 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11682 | else | |
11683 | { | |
11684 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11685 | else puts (dlerror ()); | |
11686 | } | |
11687 | /* dlclose (self); */ | |
11688 | } | |
11689 | else | |
11690 | puts (dlerror ()); | |
11691 | ||
11692 | return status; | |
11693 | } | |
11694 | _LT_EOF | |
11695 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
11696 | (eval $ac_link) 2>&5 | |
11697 | ac_status=$? | |
11698 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11699 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11700 | (./conftest; exit; ) >&5 2>/dev/null | |
11701 | lt_status=$? | |
11702 | case x$lt_status in | |
11703 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
11704 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
11705 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
11706 | esac | |
11707 | else : | |
11708 | # compilation failed | |
11709 | lt_cv_dlopen_self=no | |
11710 | fi | |
11711 | fi | |
11712 | rm -fr conftest* | |
11713 | ||
11714 | ||
11715 | fi | |
11716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | |
11717 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
11718 | ||
11719 | if test "x$lt_cv_dlopen_self" = xyes; then | |
11720 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
11721 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
11722 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
f00f02a3 | 11723 | if ${lt_cv_dlopen_self_static+:} false; then : |
03385ed3 | 11724 | $as_echo_n "(cached) " >&6 |
11725 | else | |
11726 | if test "$cross_compiling" = yes; then : | |
11727 | lt_cv_dlopen_self_static=cross | |
11728 | else | |
11729 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11730 | lt_status=$lt_dlunknown | |
11731 | cat > conftest.$ac_ext <<_LT_EOF | |
20abc61c | 11732 | #line 11732 "configure" |
03385ed3 | 11733 | #include "confdefs.h" |
11734 | ||
11735 | #if HAVE_DLFCN_H | |
11736 | #include <dlfcn.h> | |
11737 | #endif | |
11738 | ||
11739 | #include <stdio.h> | |
11740 | ||
11741 | #ifdef RTLD_GLOBAL | |
11742 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11743 | #else | |
11744 | # ifdef DL_GLOBAL | |
11745 | # define LT_DLGLOBAL DL_GLOBAL | |
11746 | # else | |
11747 | # define LT_DLGLOBAL 0 | |
11748 | # endif | |
11749 | #endif | |
11750 | ||
11751 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11752 | find out it does not work in some platform. */ | |
11753 | #ifndef LT_DLLAZY_OR_NOW | |
11754 | # ifdef RTLD_LAZY | |
11755 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11756 | # else | |
11757 | # ifdef DL_LAZY | |
11758 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11759 | # else | |
11760 | # ifdef RTLD_NOW | |
11761 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11762 | # else | |
11763 | # ifdef DL_NOW | |
11764 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11765 | # else | |
11766 | # define LT_DLLAZY_OR_NOW 0 | |
11767 | # endif | |
11768 | # endif | |
11769 | # endif | |
11770 | # endif | |
11771 | #endif | |
11772 | ||
11773 | /* When -fvisbility=hidden is used, assume the code has been annotated | |
11774 | correspondingly for the symbols needed. */ | |
11775 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
11776 | void fnord () __attribute__((visibility("default"))); | |
11777 | #endif | |
11778 | ||
11779 | void fnord () { int i=42; } | |
11780 | int main () | |
11781 | { | |
11782 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11783 | int status = $lt_dlunknown; | |
11784 | ||
11785 | if (self) | |
11786 | { | |
11787 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11788 | else | |
11789 | { | |
11790 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11791 | else puts (dlerror ()); | |
11792 | } | |
11793 | /* dlclose (self); */ | |
11794 | } | |
11795 | else | |
11796 | puts (dlerror ()); | |
11797 | ||
11798 | return status; | |
11799 | } | |
11800 | _LT_EOF | |
11801 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
11802 | (eval $ac_link) 2>&5 | |
11803 | ac_status=$? | |
11804 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11805 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11806 | (./conftest; exit; ) >&5 2>/dev/null | |
11807 | lt_status=$? | |
11808 | case x$lt_status in | |
11809 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11810 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11811 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
11812 | esac | |
11813 | else : | |
11814 | # compilation failed | |
11815 | lt_cv_dlopen_self_static=no | |
11816 | fi | |
11817 | fi | |
11818 | rm -fr conftest* | |
11819 | ||
11820 | ||
11821 | fi | |
11822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | |
11823 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
11824 | fi | |
11825 | ||
11826 | CPPFLAGS="$save_CPPFLAGS" | |
11827 | LDFLAGS="$save_LDFLAGS" | |
11828 | LIBS="$save_LIBS" | |
11829 | ;; | |
11830 | esac | |
11831 | ||
11832 | case $lt_cv_dlopen_self in | |
11833 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11834 | *) enable_dlopen_self=unknown ;; | |
11835 | esac | |
11836 | ||
11837 | case $lt_cv_dlopen_self_static in | |
11838 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
11839 | *) enable_dlopen_self_static=unknown ;; | |
11840 | esac | |
11841 | fi | |
11842 | ||
11843 | ||
11844 | ||
11845 | ||
11846 | ||
11847 | ||
11848 | ||
11849 | ||
11850 | ||
11851 | ||
11852 | ||
11853 | ||
11854 | ||
11855 | ||
11856 | ||
11857 | ||
11858 | ||
11859 | striplib= | |
11860 | old_striplib= | |
11861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
11862 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
11863 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
11864 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
11865 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
11866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11867 | $as_echo "yes" >&6; } | |
11868 | else | |
11869 | # FIXME - insert some real tests, host_os isn't really good enough | |
11870 | case $host_os in | |
11871 | darwin*) | |
11872 | if test -n "$STRIP" ; then | |
11873 | striplib="$STRIP -x" | |
11874 | old_striplib="$STRIP -S" | |
11875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11876 | $as_echo "yes" >&6; } | |
11877 | else | |
11878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11879 | $as_echo "no" >&6; } | |
11880 | fi | |
11881 | ;; | |
11882 | *) | |
11883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11884 | $as_echo "no" >&6; } | |
11885 | ;; | |
11886 | esac | |
11887 | fi | |
11888 | ||
11889 | ||
11890 | ||
11891 | ||
11892 | ||
11893 | ||
11894 | ||
11895 | ||
11896 | ||
11897 | ||
11898 | ||
11899 | ||
11900 | # Report which library types will actually be built | |
11901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
11902 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
11903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
11904 | $as_echo "$can_build_shared" >&6; } | |
11905 | ||
11906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | |
11907 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
11908 | test "$can_build_shared" = "no" && enable_shared=no | |
11909 | ||
11910 | # On AIX, shared libraries and static libraries use the same namespace, and | |
11911 | # are all built from PIC. | |
11912 | case $host_os in | |
11913 | aix3*) | |
11914 | test "$enable_shared" = yes && enable_static=no | |
11915 | if test -n "$RANLIB"; then | |
11916 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
11917 | postinstall_cmds='$RANLIB $lib' | |
11918 | fi | |
11919 | ;; | |
11920 | ||
11921 | aix[4-9]*) | |
11922 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
11923 | test "$enable_shared" = yes && enable_static=no | |
11924 | fi | |
11925 | ;; | |
11926 | esac | |
11927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
11928 | $as_echo "$enable_shared" >&6; } | |
11929 | ||
11930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
11931 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
11932 | # Make sure either enable_shared or enable_static is yes. | |
11933 | test "$enable_shared" = yes || enable_static=yes | |
11934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
11935 | $as_echo "$enable_static" >&6; } | |
11936 | ||
11937 | ||
11938 | ||
11939 | ||
11940 | fi | |
11941 | ac_ext=c | |
11942 | ac_cpp='$CPP $CPPFLAGS' | |
11943 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11944 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11945 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11946 | ||
11947 | CC="$lt_save_CC" | |
11948 | ||
11949 | ||
11950 | ||
11951 | ||
11952 | ||
11953 | ||
11954 | ||
11955 | ||
11956 | ||
11957 | ||
11958 | ||
11959 | ||
11960 | ||
11961 | ac_config_commands="$ac_config_commands libtool" | |
11962 | ||
11963 | ||
11964 | ||
11965 | ||
11966 | # Only expand once: | |
11967 | ||
11968 | ||
11969 | ||
11970 | ||
11971 | ||
11972 | gdc_save_DFLAGS=$GDCFLAGS | |
11973 | GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS" | |
11974 | ||
11975 | ||
11976 | # Source file extension for D test sources. | |
11977 | ac_ext=d | |
11978 | ||
11979 | # Object file extension for compiled D test sources. | |
11980 | objext=o | |
11981 | objext_D=$objext | |
11982 | ||
11983 | # Code to be used in simple compile tests | |
11984 | lt_simple_compile_test_code="module mod; extern(C) int main() { return 0; }" | |
11985 | ||
11986 | # Code to be used in simple link tests | |
11987 | lt_simple_link_test_code='module mod; extern(C) int main() { return 0; }' | |
11988 | ||
11989 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
11990 | ||
11991 | ||
11992 | ||
11993 | ||
11994 | ||
11995 | ||
11996 | # If no C compiler was specified, use CC. | |
11997 | LTCC=${LTCC-"$CC"} | |
11998 | ||
11999 | # If no C compiler flags were specified, use CFLAGS. | |
12000 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
12001 | ||
12002 | # Allow CC to be a program name with arguments. | |
12003 | compiler=$CC | |
12004 | ||
12005 | ||
12006 | # save warnings/boilerplate of simple test code | |
12007 | ac_outfile=conftest.$ac_objext | |
12008 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
12009 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
12010 | _lt_compiler_boilerplate=`cat conftest.err` | |
12011 | $RM conftest* | |
12012 | ||
12013 | ac_outfile=conftest.$ac_objext | |
12014 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
12015 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
12016 | _lt_linker_boilerplate=`cat conftest.err` | |
12017 | $RM -r conftest* | |
12018 | ||
12019 | ||
12020 | # Allow CC to be a program name with arguments. | |
12021 | lt_save_CC=$CC | |
12022 | lt_save_CFLAGS=$CFLAGS | |
12023 | lt_save_DFLAGS=$GDCFLAGS | |
12024 | lt_save_GCC=$GCC | |
12025 | GCC=yes | |
12026 | CC=${GDC-"gdc"} | |
12027 | # Need to specify location for object.d | |
12028 | GDCFLAGS="-nophoboslib $GDCFLAGS" | |
12029 | CFLAGS=$GDCFLAGS | |
12030 | compiler=$CC | |
12031 | compiler_D=$CC | |
12032 | LD_D=$CC | |
12033 | for cc_temp in $compiler""; do | |
12034 | case $cc_temp in | |
12035 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
12036 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
12037 | \-*) ;; | |
12038 | *) break;; | |
12039 | esac | |
12040 | done | |
12041 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
12042 | ||
12043 | ||
12044 | # GDC did not exist at the time GCC didn't implicitly link libc in. | |
12045 | archive_cmds_need_lc_D=no | |
12046 | ||
12047 | old_archive_cmds_D=$old_archive_cmds | |
12048 | reload_flag_D=$reload_flag | |
12049 | reload_cmds_D=$reload_cmds | |
12050 | ||
12051 | ## CAVEAT EMPTOR: | |
12052 | ## There is no encapsulation within the following macros, do not change | |
12053 | ## the running order or otherwise move them around unless you know exactly | |
12054 | ## what you are doing... | |
12055 | if test -n "$compiler"; then | |
12056 | ||
12057 | lt_prog_compiler_no_builtin_flag_D= | |
12058 | ||
12059 | if test "$GCC" = yes; then | |
12060 | case $cc_basename in | |
12061 | nvcc*) | |
12062 | lt_prog_compiler_no_builtin_flag_D=' -Xcompiler -fno-builtin' ;; | |
12063 | *) | |
12064 | lt_prog_compiler_no_builtin_flag_D=' -fno-builtin' ;; | |
12065 | esac | |
12066 | ||
12067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
12068 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
f00f02a3 | 12069 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
03385ed3 | 12070 | $as_echo_n "(cached) " >&6 |
12071 | else | |
12072 | lt_cv_prog_compiler_rtti_exceptions=no | |
12073 | ac_outfile=conftest.$ac_objext | |
12074 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
12075 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
12076 | # Insert the option either (1) after the last *FLAGS variable, or | |
12077 | # (2) before a word containing "conftest.", or (3) at the end. | |
12078 | # Note that $ac_compile itself does not contain backslashes and begins | |
12079 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
12080 | # The option is referenced via a variable to avoid confusing sed. | |
12081 | lt_compile=`echo "$ac_compile" | $SED \ | |
12082 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
12083 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
12084 | -e 's:$: $lt_compiler_flag:'` | |
12085 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
12086 | (eval "$lt_compile" 2>conftest.err) | |
12087 | ac_status=$? | |
12088 | cat conftest.err >&5 | |
12089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12090 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
12091 | # The compiler can only warn and ignore the option if not recognized | |
12092 | # So say no if there are warnings other than the usual output. | |
12093 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
12094 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
12095 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
12096 | lt_cv_prog_compiler_rtti_exceptions=yes | |
12097 | fi | |
12098 | fi | |
12099 | $RM conftest* | |
12100 | ||
12101 | fi | |
12102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
12103 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
12104 | ||
12105 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
12106 | lt_prog_compiler_no_builtin_flag_D="$lt_prog_compiler_no_builtin_flag_D -fno-rtti -fno-exceptions" | |
12107 | else | |
12108 | : | |
12109 | fi | |
12110 | ||
12111 | fi | |
12112 | ||
12113 | ||
12114 | ||
12115 | lt_prog_compiler_wl_D= | |
12116 | lt_prog_compiler_pic_D= | |
12117 | lt_prog_compiler_static_D= | |
12118 | ||
12119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
12120 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
12121 | ||
12122 | if test "$GCC" = yes; then | |
12123 | lt_prog_compiler_wl_D='-Wl,' | |
12124 | lt_prog_compiler_static_D='-static' | |
12125 | ||
12126 | case $host_os in | |
12127 | aix*) | |
12128 | # All AIX code is PIC. | |
12129 | if test "$host_cpu" = ia64; then | |
12130 | # AIX 5 now supports IA64 processor | |
12131 | lt_prog_compiler_static_D='-Bstatic' | |
12132 | fi | |
12133 | lt_prog_compiler_pic_D='-fPIC' | |
12134 | ;; | |
12135 | ||
12136 | amigaos*) | |
12137 | case $host_cpu in | |
12138 | powerpc) | |
12139 | # see comment about AmigaOS4 .so support | |
12140 | lt_prog_compiler_pic_D='-fPIC' | |
12141 | ;; | |
12142 | m68k) | |
12143 | # FIXME: we need at least 68020 code to build shared libraries, but | |
12144 | # adding the `-m68020' flag to GCC prevents building anything better, | |
12145 | # like `-m68040'. | |
12146 | lt_prog_compiler_pic_D='-m68020 -resident32 -malways-restore-a4' | |
12147 | ;; | |
12148 | esac | |
12149 | ;; | |
12150 | ||
12151 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
12152 | # PIC is the default for these OSes. | |
12153 | ;; | |
12154 | ||
12155 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
12156 | # This hack is so that the source file can tell whether it is being | |
12157 | # built for inclusion in a dll (and should export symbols for example). | |
12158 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
12159 | # (--disable-auto-import) libraries | |
12160 | lt_prog_compiler_pic_D='-DDLL_EXPORT' | |
12161 | ;; | |
12162 | ||
12163 | darwin* | rhapsody*) | |
12164 | # PIC is the default on this platform | |
12165 | # Common symbols not allowed in MH_DYLIB files | |
12166 | lt_prog_compiler_pic_D='-fno-common' | |
12167 | ;; | |
12168 | ||
12169 | haiku*) | |
12170 | # PIC is the default for Haiku. | |
12171 | # The "-static" flag exists, but is broken. | |
12172 | lt_prog_compiler_static_D= | |
12173 | ;; | |
12174 | ||
12175 | hpux*) | |
12176 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
12177 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
12178 | # sets the default TLS model and affects inlining. | |
12179 | case $host_cpu in | |
12180 | hppa*64*) | |
12181 | # +Z the default | |
12182 | ;; | |
12183 | *) | |
12184 | lt_prog_compiler_pic_D='-fPIC' | |
12185 | ;; | |
12186 | esac | |
12187 | ;; | |
12188 | ||
12189 | interix[3-9]*) | |
12190 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
12191 | # Instead, we relocate shared libraries at runtime. | |
12192 | ;; | |
12193 | ||
12194 | msdosdjgpp*) | |
12195 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
12196 | # on systems that don't support them. | |
12197 | lt_prog_compiler_can_build_shared_D=no | |
12198 | enable_shared=no | |
12199 | ;; | |
12200 | ||
12201 | *nto* | *qnx*) | |
12202 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
12203 | # it will coredump. | |
12204 | lt_prog_compiler_pic_D='-fPIC -shared' | |
12205 | ;; | |
12206 | ||
12207 | sysv4*MP*) | |
12208 | if test -d /usr/nec; then | |
12209 | lt_prog_compiler_pic_D=-Kconform_pic | |
12210 | fi | |
12211 | ;; | |
12212 | ||
12213 | *) | |
12214 | lt_prog_compiler_pic_D='-fPIC' | |
12215 | ;; | |
12216 | esac | |
12217 | ||
12218 | case $cc_basename in | |
12219 | nvcc*) # Cuda Compiler Driver 2.2 | |
12220 | lt_prog_compiler_wl_D='-Xlinker ' | |
12221 | lt_prog_compiler_pic_D='-Xcompiler -fPIC' | |
12222 | ;; | |
12223 | esac | |
12224 | else | |
12225 | # PORTME Check for flag to pass linker flags through the system compiler. | |
12226 | case $host_os in | |
12227 | aix*) | |
12228 | lt_prog_compiler_wl_D='-Wl,' | |
12229 | if test "$host_cpu" = ia64; then | |
12230 | # AIX 5 now supports IA64 processor | |
12231 | lt_prog_compiler_static_D='-Bstatic' | |
12232 | else | |
12233 | lt_prog_compiler_static_D='-bnso -bI:/lib/syscalls.exp' | |
12234 | fi | |
12235 | ;; | |
12236 | ||
12237 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
12238 | # This hack is so that the source file can tell whether it is being | |
12239 | # built for inclusion in a dll (and should export symbols for example). | |
12240 | lt_prog_compiler_pic_D='-DDLL_EXPORT' | |
12241 | ;; | |
12242 | ||
12243 | hpux9* | hpux10* | hpux11*) | |
12244 | lt_prog_compiler_wl_D='-Wl,' | |
12245 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
12246 | # not for PA HP-UX. | |
12247 | case $host_cpu in | |
12248 | hppa*64*|ia64*) | |
12249 | # +Z the default | |
12250 | ;; | |
12251 | *) | |
12252 | lt_prog_compiler_pic_D='+Z' | |
12253 | ;; | |
12254 | esac | |
12255 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
12256 | lt_prog_compiler_static_D='${wl}-a ${wl}archive' | |
12257 | ;; | |
12258 | ||
12259 | irix5* | irix6* | nonstopux*) | |
12260 | lt_prog_compiler_wl_D='-Wl,' | |
12261 | # PIC (with -KPIC) is the default. | |
12262 | lt_prog_compiler_static_D='-non_shared' | |
12263 | ;; | |
12264 | ||
12265 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
12266 | case $cc_basename in | |
12267 | # old Intel for x86_64 which still supported -KPIC. | |
12268 | ecc*) | |
12269 | lt_prog_compiler_wl_D='-Wl,' | |
12270 | lt_prog_compiler_pic_D='-KPIC' | |
12271 | lt_prog_compiler_static_D='-static' | |
12272 | ;; | |
12273 | # icc used to be incompatible with GCC. | |
12274 | # ICC 10 doesn't accept -KPIC any more. | |
12275 | icc* | ifort*) | |
12276 | lt_prog_compiler_wl_D='-Wl,' | |
12277 | lt_prog_compiler_pic_D='-fPIC' | |
12278 | lt_prog_compiler_static_D='-static' | |
12279 | ;; | |
12280 | # Lahey Fortran 8.1. | |
12281 | lf95*) | |
12282 | lt_prog_compiler_wl_D='-Wl,' | |
12283 | lt_prog_compiler_pic_D='--shared' | |
12284 | lt_prog_compiler_static_D='--static' | |
12285 | ;; | |
12286 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
12287 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
12288 | # which looks to be a dead project) | |
12289 | lt_prog_compiler_wl_D='-Wl,' | |
12290 | lt_prog_compiler_pic_D='-fpic' | |
12291 | lt_prog_compiler_static_D='-Bstatic' | |
12292 | ;; | |
12293 | ccc*) | |
12294 | lt_prog_compiler_wl_D='-Wl,' | |
12295 | # All Alpha code is PIC. | |
12296 | lt_prog_compiler_static_D='-non_shared' | |
12297 | ;; | |
12298 | xl* | bgxl* | bgf* | mpixl*) | |
12299 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
12300 | lt_prog_compiler_wl_D='-Wl,' | |
12301 | lt_prog_compiler_pic_D='-qpic' | |
12302 | lt_prog_compiler_static_D='-qstaticlink' | |
12303 | ;; | |
12304 | *) | |
12305 | case `$CC -V 2>&1 | sed 5q` in | |
12306 | *Sun\ F* | *Sun*Fortran*) | |
12307 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
12308 | lt_prog_compiler_pic_D='-KPIC' | |
12309 | lt_prog_compiler_static_D='-Bstatic' | |
12310 | lt_prog_compiler_wl_D='' | |
12311 | ;; | |
12312 | *Sun\ C*) | |
12313 | # Sun C 5.9 | |
12314 | lt_prog_compiler_pic_D='-KPIC' | |
12315 | lt_prog_compiler_static_D='-Bstatic' | |
12316 | lt_prog_compiler_wl_D='-Wl,' | |
12317 | ;; | |
12318 | esac | |
12319 | ;; | |
12320 | esac | |
12321 | ;; | |
12322 | ||
12323 | newsos6) | |
12324 | lt_prog_compiler_pic_D='-KPIC' | |
12325 | lt_prog_compiler_static_D='-Bstatic' | |
12326 | ;; | |
12327 | ||
12328 | *nto* | *qnx*) | |
12329 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
12330 | # it will coredump. | |
12331 | lt_prog_compiler_pic_D='-fPIC -shared' | |
12332 | ;; | |
12333 | ||
12334 | osf3* | osf4* | osf5*) | |
12335 | lt_prog_compiler_wl_D='-Wl,' | |
12336 | # All OSF/1 code is PIC. | |
12337 | lt_prog_compiler_static_D='-non_shared' | |
12338 | ;; | |
12339 | ||
12340 | rdos*) | |
12341 | lt_prog_compiler_static_D='-non_shared' | |
12342 | ;; | |
12343 | ||
12344 | solaris*) | |
12345 | lt_prog_compiler_pic_D='-KPIC' | |
12346 | lt_prog_compiler_static_D='-Bstatic' | |
12347 | case $cc_basename in | |
12348 | f77* | f90* | f95*) | |
12349 | lt_prog_compiler_wl_D='-Qoption ld ';; | |
12350 | *) | |
12351 | lt_prog_compiler_wl_D='-Wl,';; | |
12352 | esac | |
12353 | ;; | |
12354 | ||
12355 | sunos4*) | |
12356 | lt_prog_compiler_wl_D='-Qoption ld ' | |
12357 | lt_prog_compiler_pic_D='-PIC' | |
12358 | lt_prog_compiler_static_D='-Bstatic' | |
12359 | ;; | |
12360 | ||
12361 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
12362 | lt_prog_compiler_wl_D='-Wl,' | |
12363 | lt_prog_compiler_pic_D='-KPIC' | |
12364 | lt_prog_compiler_static_D='-Bstatic' | |
12365 | ;; | |
12366 | ||
12367 | sysv4*MP*) | |
12368 | if test -d /usr/nec ;then | |
12369 | lt_prog_compiler_pic_D='-Kconform_pic' | |
12370 | lt_prog_compiler_static_D='-Bstatic' | |
12371 | fi | |
12372 | ;; | |
12373 | ||
12374 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
12375 | lt_prog_compiler_wl_D='-Wl,' | |
12376 | lt_prog_compiler_pic_D='-KPIC' | |
12377 | lt_prog_compiler_static_D='-Bstatic' | |
12378 | ;; | |
12379 | ||
12380 | unicos*) | |
12381 | lt_prog_compiler_wl_D='-Wl,' | |
12382 | lt_prog_compiler_can_build_shared_D=no | |
12383 | ;; | |
12384 | ||
12385 | uts4*) | |
12386 | lt_prog_compiler_pic_D='-pic' | |
12387 | lt_prog_compiler_static_D='-Bstatic' | |
12388 | ;; | |
12389 | ||
12390 | *) | |
12391 | lt_prog_compiler_can_build_shared_D=no | |
12392 | ;; | |
12393 | esac | |
12394 | fi | |
12395 | ||
12396 | case $host_os in | |
12397 | # For platforms which do not support PIC, -DPIC is meaningless: | |
12398 | *djgpp*) | |
12399 | lt_prog_compiler_pic_D= | |
12400 | ;; | |
12401 | *) | |
12402 | lt_prog_compiler_pic_D="$lt_prog_compiler_pic_D" | |
12403 | ;; | |
12404 | esac | |
12405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_D" >&5 | |
12406 | $as_echo "$lt_prog_compiler_pic_D" >&6; } | |
12407 | ||
12408 | ||
12409 | ||
12410 | # | |
12411 | # Check to make sure the PIC flag actually works. | |
12412 | # | |
12413 | if test -n "$lt_prog_compiler_pic_D"; then | |
12414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_D works" >&5 | |
12415 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_D works... " >&6; } | |
f00f02a3 | 12416 | if ${lt_cv_prog_compiler_pic_works_D+:} false; then : |
03385ed3 | 12417 | $as_echo_n "(cached) " >&6 |
12418 | else | |
12419 | lt_cv_prog_compiler_pic_works_D=no | |
12420 | ac_outfile=conftest.$ac_objext | |
12421 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
12422 | lt_compiler_flag="$lt_prog_compiler_pic_D" | |
12423 | # Insert the option either (1) after the last *FLAGS variable, or | |
12424 | # (2) before a word containing "conftest.", or (3) at the end. | |
12425 | # Note that $ac_compile itself does not contain backslashes and begins | |
12426 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
12427 | # The option is referenced via a variable to avoid confusing sed. | |
12428 | lt_compile=`echo "$ac_compile" | $SED \ | |
12429 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
12430 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
12431 | -e 's:$: $lt_compiler_flag:'` | |
12432 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
12433 | (eval "$lt_compile" 2>conftest.err) | |
12434 | ac_status=$? | |
12435 | cat conftest.err >&5 | |
12436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12437 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
12438 | # The compiler can only warn and ignore the option if not recognized | |
12439 | # So say no if there are warnings other than the usual output. | |
12440 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
12441 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
12442 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
12443 | lt_cv_prog_compiler_pic_works_D=yes | |
12444 | fi | |
12445 | fi | |
12446 | $RM conftest* | |
12447 | ||
12448 | fi | |
12449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_D" >&5 | |
12450 | $as_echo "$lt_cv_prog_compiler_pic_works_D" >&6; } | |
12451 | ||
12452 | if test x"$lt_cv_prog_compiler_pic_works_D" = xyes; then | |
12453 | case $lt_prog_compiler_pic_D in | |
12454 | "" | " "*) ;; | |
12455 | *) lt_prog_compiler_pic_D=" $lt_prog_compiler_pic_D" ;; | |
12456 | esac | |
12457 | else | |
12458 | lt_prog_compiler_pic_D= | |
12459 | lt_prog_compiler_can_build_shared_D=no | |
12460 | fi | |
12461 | ||
12462 | fi | |
12463 | ||
12464 | ||
12465 | ||
12466 | # | |
12467 | # Check to make sure the static flag actually works. | |
12468 | # | |
12469 | wl=$lt_prog_compiler_wl_D eval lt_tmp_static_flag=\"$lt_prog_compiler_static_D\" | |
12470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
12471 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
f00f02a3 | 12472 | if ${lt_cv_prog_compiler_static_works_D+:} false; then : |
03385ed3 | 12473 | $as_echo_n "(cached) " >&6 |
12474 | else | |
12475 | lt_cv_prog_compiler_static_works_D=no | |
12476 | save_LDFLAGS="$LDFLAGS" | |
12477 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
12478 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
12479 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
12480 | # The linker can only warn and ignore the option if not recognized | |
12481 | # So say no if there are warnings | |
12482 | if test -s conftest.err; then | |
12483 | # Append any errors to the config.log. | |
12484 | cat conftest.err 1>&5 | |
12485 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
12486 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
12487 | if diff conftest.exp conftest.er2 >/dev/null; then | |
12488 | lt_cv_prog_compiler_static_works_D=yes | |
12489 | fi | |
12490 | else | |
12491 | lt_cv_prog_compiler_static_works_D=yes | |
12492 | fi | |
12493 | fi | |
12494 | $RM -r conftest* | |
12495 | LDFLAGS="$save_LDFLAGS" | |
12496 | ||
12497 | fi | |
12498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_D" >&5 | |
12499 | $as_echo "$lt_cv_prog_compiler_static_works_D" >&6; } | |
12500 | ||
12501 | if test x"$lt_cv_prog_compiler_static_works_D" = xyes; then | |
12502 | : | |
12503 | else | |
12504 | lt_prog_compiler_static_D= | |
12505 | fi | |
12506 | ||
12507 | ||
12508 | ||
12509 | ||
12510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
12511 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
f00f02a3 | 12512 | if ${lt_cv_prog_compiler_c_o_D+:} false; then : |
03385ed3 | 12513 | $as_echo_n "(cached) " >&6 |
12514 | else | |
12515 | lt_cv_prog_compiler_c_o_D=no | |
12516 | $RM -r conftest 2>/dev/null | |
12517 | mkdir conftest | |
12518 | cd conftest | |
12519 | mkdir out | |
12520 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
12521 | ||
12522 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
12523 | # Insert the option either (1) after the last *FLAGS variable, or | |
12524 | # (2) before a word containing "conftest.", or (3) at the end. | |
12525 | # Note that $ac_compile itself does not contain backslashes and begins | |
12526 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
12527 | lt_compile=`echo "$ac_compile" | $SED \ | |
12528 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
12529 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
12530 | -e 's:$: $lt_compiler_flag:'` | |
12531 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
12532 | (eval "$lt_compile" 2>out/conftest.err) | |
12533 | ac_status=$? | |
12534 | cat out/conftest.err >&5 | |
12535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12536 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
12537 | then | |
12538 | # The compiler can only warn and ignore the option if not recognized | |
12539 | # So say no if there are warnings | |
12540 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
12541 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
12542 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
12543 | lt_cv_prog_compiler_c_o_D=yes | |
12544 | fi | |
12545 | fi | |
12546 | chmod u+w . 2>&5 | |
12547 | $RM conftest* | |
12548 | # SGI C++ compiler will create directory out/ii_files/ for | |
12549 | # template instantiation | |
12550 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
12551 | $RM out/* && rmdir out | |
12552 | cd .. | |
12553 | $RM -r conftest | |
12554 | $RM conftest* | |
12555 | ||
12556 | fi | |
12557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5 | |
12558 | $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; } | |
12559 | ||
12560 | ||
12561 | ||
12562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
12563 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
f00f02a3 | 12564 | if ${lt_cv_prog_compiler_c_o_D+:} false; then : |
03385ed3 | 12565 | $as_echo_n "(cached) " >&6 |
12566 | else | |
12567 | lt_cv_prog_compiler_c_o_D=no | |
12568 | $RM -r conftest 2>/dev/null | |
12569 | mkdir conftest | |
12570 | cd conftest | |
12571 | mkdir out | |
12572 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
12573 | ||
12574 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
12575 | # Insert the option either (1) after the last *FLAGS variable, or | |
12576 | # (2) before a word containing "conftest.", or (3) at the end. | |
12577 | # Note that $ac_compile itself does not contain backslashes and begins | |
12578 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
12579 | lt_compile=`echo "$ac_compile" | $SED \ | |
12580 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
12581 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
12582 | -e 's:$: $lt_compiler_flag:'` | |
12583 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
12584 | (eval "$lt_compile" 2>out/conftest.err) | |
12585 | ac_status=$? | |
12586 | cat out/conftest.err >&5 | |
12587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12588 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
12589 | then | |
12590 | # The compiler can only warn and ignore the option if not recognized | |
12591 | # So say no if there are warnings | |
12592 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
12593 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
12594 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
12595 | lt_cv_prog_compiler_c_o_D=yes | |
12596 | fi | |
12597 | fi | |
12598 | chmod u+w . 2>&5 | |
12599 | $RM conftest* | |
12600 | # SGI C++ compiler will create directory out/ii_files/ for | |
12601 | # template instantiation | |
12602 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
12603 | $RM out/* && rmdir out | |
12604 | cd .. | |
12605 | $RM -r conftest | |
12606 | $RM conftest* | |
12607 | ||
12608 | fi | |
12609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5 | |
12610 | $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; } | |
12611 | ||
12612 | ||
12613 | ||
12614 | ||
12615 | hard_links="nottested" | |
12616 | if test "$lt_cv_prog_compiler_c_o_D" = no && test "$need_locks" != no; then | |
12617 | # do not overwrite the value of need_locks provided by the user | |
12618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
12619 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
12620 | hard_links=yes | |
12621 | $RM conftest* | |
12622 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
12623 | touch conftest.a | |
12624 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
12625 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
12626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
12627 | $as_echo "$hard_links" >&6; } | |
12628 | if test "$hard_links" = no; then | |
12629 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
12630 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
12631 | need_locks=warn | |
12632 | fi | |
12633 | else | |
12634 | need_locks=no | |
12635 | fi | |
12636 | ||
12637 | ||
12638 | ||
12639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
12640 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
12641 | ||
12642 | runpath_var= | |
12643 | allow_undefined_flag_D= | |
12644 | always_export_symbols_D=no | |
12645 | archive_cmds_D= | |
12646 | archive_expsym_cmds_D= | |
12647 | compiler_needs_object_D=no | |
12648 | enable_shared_with_static_runtimes_D=no | |
12649 | export_dynamic_flag_spec_D= | |
12650 | export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
12651 | hardcode_automatic_D=no | |
12652 | hardcode_direct_D=no | |
12653 | hardcode_direct_absolute_D=no | |
12654 | hardcode_libdir_flag_spec_D= | |
12655 | hardcode_libdir_flag_spec_ld_D= | |
12656 | hardcode_libdir_separator_D= | |
12657 | hardcode_minus_L_D=no | |
12658 | hardcode_shlibpath_var_D=unsupported | |
12659 | inherit_rpath_D=no | |
12660 | link_all_deplibs_D=unknown | |
12661 | module_cmds_D= | |
12662 | module_expsym_cmds_D= | |
12663 | old_archive_from_new_cmds_D= | |
12664 | old_archive_from_expsyms_cmds_D= | |
12665 | thread_safe_flag_spec_D= | |
12666 | whole_archive_flag_spec_D= | |
12667 | # include_expsyms should be a list of space-separated symbols to be *always* | |
12668 | # included in the symbol list | |
12669 | include_expsyms_D= | |
12670 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
12671 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
12672 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
12673 | # as well as any symbol that contains `d'. | |
12674 | exclude_expsyms_D='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
12675 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
12676 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
12677 | # the symbol is explicitly referenced. Since portable code cannot | |
12678 | # rely on this symbol name, it's probably fine to never include it in | |
12679 | # preloaded symbol tables. | |
12680 | # Exclude shared library initialization/finalization symbols. | |
12681 | extract_expsyms_cmds= | |
12682 | ||
12683 | case $host_os in | |
12684 | cygwin* | mingw* | pw32* | cegcc*) | |
12685 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
12686 | # When not using gcc, we currently assume that we are using | |
12687 | # Microsoft Visual C++. | |
12688 | if test "$GCC" != yes; then | |
12689 | with_gnu_ld=no | |
12690 | fi | |
12691 | ;; | |
12692 | interix*) | |
12693 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
12694 | with_gnu_ld=yes | |
12695 | ;; | |
12696 | openbsd*) | |
12697 | with_gnu_ld=no | |
12698 | ;; | |
12699 | esac | |
12700 | ||
12701 | ld_shlibs_D=yes | |
12702 | ||
12703 | # On some targets, GNU ld is compatible enough with the native linker | |
12704 | # that we're better off using the native interface for both. | |
12705 | lt_use_gnu_ld_interface=no | |
12706 | if test "$with_gnu_ld" = yes; then | |
12707 | case $host_os in | |
12708 | aix*) | |
12709 | # The AIX port of GNU ld has always aspired to compatibility | |
12710 | # with the native linker. However, as the warning in the GNU ld | |
12711 | # block says, versions before 2.19.5* couldn't really create working | |
12712 | # shared libraries, regardless of the interface used. | |
12713 | case `$LD -v 2>&1` in | |
12714 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
12715 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
12716 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
12717 | *) | |
12718 | lt_use_gnu_ld_interface=yes | |
12719 | ;; | |
12720 | esac | |
12721 | ;; | |
12722 | *) | |
12723 | lt_use_gnu_ld_interface=yes | |
12724 | ;; | |
12725 | esac | |
12726 | fi | |
12727 | ||
12728 | if test "$lt_use_gnu_ld_interface" = yes; then | |
12729 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
12730 | wlarc='${wl}' | |
12731 | ||
12732 | # Set some defaults for GNU ld with shared library support. These | |
12733 | # are reset later if shared libraries are not supported. Putting them | |
12734 | # here allows them to be overridden if necessary. | |
12735 | runpath_var=LD_RUN_PATH | |
12736 | hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir' | |
12737 | export_dynamic_flag_spec_D='${wl}--export-dynamic' | |
12738 | # ancient GNU ld didn't support --whole-archive et. al. | |
12739 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
12740 | whole_archive_flag_spec_D="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
12741 | else | |
12742 | whole_archive_flag_spec_D= | |
12743 | fi | |
12744 | supports_anon_versioning=no | |
12745 | case `$LD -v 2>&1` in | |
12746 | *GNU\ gold*) supports_anon_versioning=yes ;; | |
12747 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
12748 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
12749 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
12750 | *\ 2.11.*) ;; # other 2.11 versions | |
12751 | *) supports_anon_versioning=yes ;; | |
12752 | esac | |
12753 | ||
12754 | # See if GNU ld supports shared libraries. | |
12755 | case $host_os in | |
12756 | aix[3-9]*) | |
12757 | # On AIX/PPC, the GNU linker is very broken | |
12758 | if test "$host_cpu" != ia64; then | |
12759 | ld_shlibs_D=no | |
12760 | cat <<_LT_EOF 1>&2 | |
12761 | ||
12762 | *** Warning: the GNU linker, at least up to release 2.19, is reported | |
12763 | *** to be unable to reliably create shared libraries on AIX. | |
12764 | *** Therefore, libtool is disabling shared libraries support. If you | |
12765 | *** really care for shared libraries, you may want to install binutils | |
12766 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
12767 | *** You will then need to restart the configuration process. | |
12768 | ||
12769 | _LT_EOF | |
12770 | fi | |
12771 | ;; | |
12772 | ||
12773 | amigaos*) | |
12774 | case $host_cpu in | |
12775 | powerpc) | |
12776 | # see comment about AmigaOS4 .so support | |
12777 | archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12778 | archive_expsym_cmds_D='' | |
12779 | ;; | |
12780 | m68k) | |
12781 | 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)' | |
12782 | hardcode_libdir_flag_spec_D='-L$libdir' | |
12783 | hardcode_minus_L_D=yes | |
12784 | ;; | |
12785 | esac | |
12786 | ;; | |
12787 | ||
12788 | beos*) | |
12789 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
12790 | allow_undefined_flag_D=unsupported | |
12791 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
12792 | # support --undefined. This deserves some investigation. FIXME | |
12793 | archive_cmds_D='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12794 | else | |
12795 | ld_shlibs_D=no | |
12796 | fi | |
12797 | ;; | |
12798 | ||
12799 | cygwin* | mingw* | pw32* | cegcc*) | |
12800 | # _LT_TAGVAR(hardcode_libdir_flag_spec, D) is actually meaningless, | |
12801 | # as there is no search path for DLLs. | |
12802 | hardcode_libdir_flag_spec_D='-L$libdir' | |
12803 | export_dynamic_flag_spec_D='${wl}--export-all-symbols' | |
12804 | allow_undefined_flag_D=unsupported | |
12805 | always_export_symbols_D=no | |
12806 | enable_shared_with_static_runtimes_D=yes | |
12807 | export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
12808 | ||
12809 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
12810 | archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
12811 | # If the export-symbols file already is a .def file (1st line | |
12812 | # is EXPORTS), use it as is; otherwise, prepend... | |
12813 | archive_expsym_cmds_D='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
12814 | cp $export_symbols $output_objdir/$soname.def; | |
12815 | else | |
12816 | echo EXPORTS > $output_objdir/$soname.def; | |
12817 | cat $export_symbols >> $output_objdir/$soname.def; | |
12818 | fi~ | |
12819 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
12820 | else | |
12821 | ld_shlibs_D=no | |
12822 | fi | |
12823 | ;; | |
12824 | ||
12825 | haiku*) | |
12826 | archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12827 | link_all_deplibs_D=yes | |
12828 | ;; | |
12829 | ||
12830 | interix[3-9]*) | |
12831 | hardcode_direct_D=no | |
12832 | hardcode_shlibpath_var_D=no | |
12833 | hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir' | |
12834 | export_dynamic_flag_spec_D='${wl}-E' | |
12835 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
12836 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
12837 | # default) and relocated if they conflict, which is a slow very memory | |
12838 | # consuming and fragmenting process. To avoid this, we pick a random, | |
12839 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
12840 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
12841 | 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' | |
12842 | 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' | |
12843 | ;; | |
12844 | ||
12845 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | |
12846 | tmp_diet=no | |
12847 | if test "$host_os" = linux-dietlibc; then | |
12848 | case $cc_basename in | |
12849 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
12850 | esac | |
12851 | fi | |
12852 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
12853 | && test "$tmp_diet" = no | |
12854 | then | |
12855 | tmp_addflag=' $pic_flag' | |
12856 | tmp_sharedflag='-shared' | |
12857 | case $cc_basename,$host_cpu in | |
12858 | pgcc*) # Portland Group C compiler | |
12859 | 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' | |
12860 | tmp_addflag=' $pic_flag' | |
12861 | ;; | |
12862 | pgf77* | pgf90* | pgf95* | pgfortran*) | |
12863 | # Portland Group f77 and f90 compilers | |
12864 | 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' | |
12865 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
12866 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
12867 | tmp_addflag=' -i_dynamic' ;; | |
12868 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
12869 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
12870 | ifc* | ifort*) # Intel Fortran compiler | |
12871 | tmp_addflag=' -nofor_main' ;; | |
12872 | lf95*) # Lahey Fortran 8.1 | |
12873 | whole_archive_flag_spec_D= | |
12874 | tmp_sharedflag='--shared' ;; | |
12875 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
12876 | tmp_sharedflag='-qmkshrobj' | |
12877 | tmp_addflag= ;; | |
12878 | nvcc*) # Cuda Compiler Driver 2.2 | |
12879 | 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' | |
12880 | compiler_needs_object_D=yes | |
12881 | ;; | |
12882 | esac | |
12883 | case `$CC -V 2>&1 | sed 5q` in | |
12884 | *Sun\ C*) # Sun C 5.9 | |
12885 | 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' | |
12886 | compiler_needs_object_D=yes | |
12887 | tmp_sharedflag='-G' ;; | |
12888 | *Sun\ F*) # Sun Fortran 8.3 | |
12889 | tmp_sharedflag='-G' ;; | |
12890 | esac | |
12891 | archive_cmds_D='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12892 | ||
12893 | if test "x$supports_anon_versioning" = xyes; then | |
12894 | archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~ | |
12895 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
12896 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
12897 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
12898 | fi | |
12899 | ||
12900 | case $cc_basename in | |
12901 | xlf* | bgf* | bgxlf* | mpixlf*) | |
12902 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
12903 | whole_archive_flag_spec_D='--whole-archive$convenience --no-whole-archive' | |
12904 | hardcode_libdir_flag_spec_D= | |
12905 | hardcode_libdir_flag_spec_ld_D='-rpath $libdir' | |
12906 | archive_cmds_D='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
12907 | if test "x$supports_anon_versioning" = xyes; then | |
12908 | archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~ | |
12909 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
12910 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
12911 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
12912 | fi | |
12913 | ;; | |
12914 | esac | |
12915 | else | |
12916 | ld_shlibs_D=no | |
12917 | fi | |
12918 | ;; | |
12919 | ||
12920 | netbsd*) | |
12921 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
12922 | archive_cmds_D='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
12923 | wlarc= | |
12924 | else | |
12925 | archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12926 | archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
12927 | fi | |
12928 | ;; | |
12929 | ||
12930 | solaris*) | |
12931 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
12932 | ld_shlibs_D=no | |
12933 | cat <<_LT_EOF 1>&2 | |
12934 | ||
12935 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
12936 | *** create shared libraries on Solaris systems. Therefore, libtool | |
12937 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
12938 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
12939 | *** your PATH or compiler configuration so that the native linker is | |
12940 | *** used, and then restart. | |
12941 | ||
12942 | _LT_EOF | |
12943 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
12944 | archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12945 | archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
12946 | else | |
12947 | ld_shlibs_D=no | |
12948 | fi | |
12949 | ;; | |
12950 | ||
12951 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
12952 | case `$LD -v 2>&1` in | |
12953 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
12954 | ld_shlibs_D=no | |
12955 | cat <<_LT_EOF 1>&2 | |
12956 | ||
12957 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
12958 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
12959 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
12960 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
12961 | *** your PATH or compiler configuration so that the native linker is | |
12962 | *** used, and then restart. | |
12963 | ||
12964 | _LT_EOF | |
12965 | ;; | |
12966 | *) | |
12967 | # For security reasons, it is highly recommended that you always | |
12968 | # use absolute paths for naming shared libraries, and exclude the | |
12969 | # DT_RUNPATH tag from executables and libraries. But doing so | |
12970 | # requires that you compile everything twice, which is a pain. | |
12971 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
12972 | hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir' | |
12973 | archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12974 | archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
12975 | else | |
12976 | ld_shlibs_D=no | |
12977 | fi | |
12978 | ;; | |
12979 | esac | |
12980 | ;; | |
12981 | ||
12982 | sunos4*) | |
12983 | archive_cmds_D='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
12984 | wlarc= | |
12985 | hardcode_direct_D=yes | |
12986 | hardcode_shlibpath_var_D=no | |
12987 | ;; | |
12988 | ||
12989 | *) | |
12990 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
12991 | archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12992 | archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
12993 | else | |
12994 | ld_shlibs_D=no | |
12995 | fi | |
12996 | ;; | |
12997 | esac | |
12998 | ||
12999 | if test "$ld_shlibs_D" = no; then | |
13000 | runpath_var= | |
13001 | hardcode_libdir_flag_spec_D= | |
13002 | export_dynamic_flag_spec_D= | |
13003 | whole_archive_flag_spec_D= | |
13004 | fi | |
13005 | else | |
13006 | # PORTME fill in a description of your system's linker (not GNU ld) | |
13007 | case $host_os in | |
13008 | aix3*) | |
13009 | allow_undefined_flag_D=unsupported | |
13010 | always_export_symbols_D=yes | |
13011 | 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' | |
13012 | # Note: this linker hardcodes the directories in LIBPATH if there | |
13013 | # are no directories specified by -L. | |
13014 | hardcode_minus_L_D=yes | |
13015 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
13016 | # Neither direct hardcoding nor static linking is supported with a | |
13017 | # broken collect2. | |
13018 | hardcode_direct_D=unsupported | |
13019 | fi | |
13020 | ;; | |
13021 | ||
13022 | aix[4-9]*) | |
13023 | if test "$host_cpu" = ia64; then | |
13024 | # On IA64, the linker does run time linking by default, so we don't | |
13025 | # have to do anything special. | |
13026 | aix_use_runtimelinking=no | |
13027 | exp_sym_flag='-Bexport' | |
13028 | no_entry_flag="" | |
13029 | else | |
13030 | # If we're using GNU nm, then we don't want the "-C" option. | |
13031 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
13032 | # Also, AIX nm treats weak defined symbols like other global | |
13033 | # defined symbols, whereas GNU nm marks them as "W". | |
13034 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
13035 | 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' | |
13036 | else | |
13037 | 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' | |
13038 | fi | |
13039 | aix_use_runtimelinking=no | |
13040 | ||
13041 | # Test if we are trying to use run time linking or normal | |
13042 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
13043 | # need to do runtime linking. | |
13044 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
13045 | for ld_flag in $LDFLAGS; do | |
13046 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
13047 | aix_use_runtimelinking=yes | |
13048 | break | |
13049 | fi | |
13050 | done | |
13051 | ;; | |
13052 | esac | |
13053 | ||
13054 | exp_sym_flag='-bexport' | |
13055 | no_entry_flag='-bnoentry' | |
13056 | fi | |
13057 | ||
13058 | # When large executables or shared objects are built, AIX ld can | |
13059 | # have problems creating the table of contents. If linking a library | |
13060 | # or program results in "error TOC overflow" add -mminimal-toc to | |
13061 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
13062 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
13063 | ||
13064 | archive_cmds_D='' | |
13065 | hardcode_direct_D=yes | |
13066 | hardcode_direct_absolute_D=yes | |
13067 | hardcode_libdir_separator_D=':' | |
13068 | link_all_deplibs_D=yes | |
13069 | file_list_spec_D='${wl}-f,' | |
13070 | ||
13071 | if test "$GCC" = yes; then | |
13072 | case $host_os in aix4.[012]|aix4.[012].*) | |
13073 | # We only want to do this on AIX 4.2 and lower, the check | |
13074 | # below for broken collect2 doesn't work under 4.3+ | |
13075 | collect2name=`${CC} -print-prog-name=collect2` | |
13076 | if test -f "$collect2name" && | |
13077 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
13078 | then | |
13079 | # We have reworked collect2 | |
13080 | : | |
13081 | else | |
13082 | # We have old collect2 | |
13083 | hardcode_direct_D=unsupported | |
13084 | # It fails to find uninstalled libraries when the uninstalled | |
13085 | # path is not listed in the libpath. Setting hardcode_minus_L | |
13086 | # to unsupported forces relinking | |
13087 | hardcode_minus_L_D=yes | |
13088 | hardcode_libdir_flag_spec_D='-L$libdir' | |
13089 | hardcode_libdir_separator_D= | |
13090 | fi | |
13091 | ;; | |
13092 | esac | |
13093 | shared_flag='-shared' | |
13094 | if test "$aix_use_runtimelinking" = yes; then | |
13095 | shared_flag="$shared_flag "'${wl}-G' | |
13096 | fi | |
13097 | else | |
13098 | # not using gcc | |
13099 | if test "$host_cpu" = ia64; then | |
13100 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
13101 | # chokes on -Wl,-G. The following line is correct: | |
13102 | shared_flag='-G' | |
13103 | else | |
13104 | if test "$aix_use_runtimelinking" = yes; then | |
13105 | shared_flag='${wl}-G' | |
13106 | else | |
13107 | shared_flag='${wl}-bM:SRE' | |
13108 | fi | |
13109 | fi | |
13110 | fi | |
13111 | ||
13112 | export_dynamic_flag_spec_D='${wl}-bexpall' | |
13113 | # It seems that -bexpall does not export symbols beginning with | |
13114 | # underscore (_), so it is better to generate a list of symbols to export. | |
13115 | always_export_symbols_D=yes | |
13116 | if test "$aix_use_runtimelinking" = yes; then | |
13117 | # Warning - without using the other runtime loading flags (-brtl), | |
13118 | # -berok will link without error, but may produce a broken library. | |
13119 | allow_undefined_flag_D='-berok' | |
13120 | # Determine the default libpath from the value encoded in an | |
13121 | # empty executable. | |
13122 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13123 | /* end confdefs.h. */ | |
13124 | ||
13125 | int | |
13126 | main () | |
13127 | { | |
13128 | ||
13129 | ; | |
13130 | return 0; | |
13131 | } | |
13132 | _ACEOF | |
13133 | if ac_fn_c_try_link "$LINENO"; then : | |
13134 | ||
13135 | lt_aix_libpath_sed=' | |
13136 | /Import File Strings/,/^$/ { | |
13137 | /^0/ { | |
13138 | s/^0 *\(.*\)$/\1/ | |
13139 | p | |
13140 | } | |
13141 | }' | |
13142 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13143 | # Check for a 64-bit object if we didn't find anything. | |
13144 | if test -z "$aix_libpath"; then | |
13145 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13146 | fi | |
13147 | fi | |
13148 | rm -f core conftest.err conftest.$ac_objext \ | |
13149 | conftest$ac_exeext conftest.$ac_ext | |
13150 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
13151 | ||
13152 | hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath" | |
13153 | 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" | |
13154 | else | |
13155 | if test "$host_cpu" = ia64; then | |
13156 | hardcode_libdir_flag_spec_D='${wl}-R $libdir:/usr/lib:/lib' | |
13157 | allow_undefined_flag_D="-z nodefs" | |
13158 | 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" | |
13159 | else | |
13160 | # Determine the default libpath from the value encoded in an | |
13161 | # empty executable. | |
13162 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13163 | /* end confdefs.h. */ | |
13164 | ||
13165 | int | |
13166 | main () | |
13167 | { | |
13168 | ||
13169 | ; | |
13170 | return 0; | |
13171 | } | |
13172 | _ACEOF | |
13173 | if ac_fn_c_try_link "$LINENO"; then : | |
13174 | ||
13175 | lt_aix_libpath_sed=' | |
13176 | /Import File Strings/,/^$/ { | |
13177 | /^0/ { | |
13178 | s/^0 *\(.*\)$/\1/ | |
13179 | p | |
13180 | } | |
13181 | }' | |
13182 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13183 | # Check for a 64-bit object if we didn't find anything. | |
13184 | if test -z "$aix_libpath"; then | |
13185 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13186 | fi | |
13187 | fi | |
13188 | rm -f core conftest.err conftest.$ac_objext \ | |
13189 | conftest$ac_exeext conftest.$ac_ext | |
13190 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
13191 | ||
13192 | hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath" | |
13193 | # Warning - without using the other run time loading flags, | |
13194 | # -berok will link without error, but may produce a broken library. | |
13195 | no_undefined_flag_D=' ${wl}-bernotok' | |
13196 | allow_undefined_flag_D=' ${wl}-berok' | |
13197 | if test "$with_gnu_ld" = yes; then | |
13198 | # We only use this code for GNU lds that support --whole-archive. | |
13199 | whole_archive_flag_spec_D='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
13200 | else | |
13201 | # Exported symbols can be pulled into shared objects from archives | |
13202 | whole_archive_flag_spec_D='$convenience' | |
13203 | fi | |
13204 | archive_cmds_need_lc_D=yes | |
13205 | # This is similar to how AIX traditionally builds its shared libraries. | |
13206 | 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' | |
13207 | fi | |
13208 | fi | |
13209 | ;; | |
13210 | ||
13211 | amigaos*) | |
13212 | case $host_cpu in | |
13213 | powerpc) | |
13214 | # see comment about AmigaOS4 .so support | |
13215 | archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13216 | archive_expsym_cmds_D='' | |
13217 | ;; | |
13218 | m68k) | |
13219 | 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)' | |
13220 | hardcode_libdir_flag_spec_D='-L$libdir' | |
13221 | hardcode_minus_L_D=yes | |
13222 | ;; | |
13223 | esac | |
13224 | ;; | |
13225 | ||
13226 | bsdi[45]*) | |
13227 | export_dynamic_flag_spec_D=-rdynamic | |
13228 | ;; | |
13229 | ||
13230 | cygwin* | mingw* | pw32* | cegcc*) | |
13231 | # When not using gcc, we currently assume that we are using | |
13232 | # Microsoft Visual C++. | |
13233 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
13234 | # no search path for DLLs. | |
13235 | hardcode_libdir_flag_spec_D=' ' | |
13236 | allow_undefined_flag_D=unsupported | |
13237 | # Tell ltmain to make .lib files, not .a files. | |
13238 | libext=lib | |
13239 | # Tell ltmain to make .dll files, not .so files. | |
13240 | shrext_cmds=".dll" | |
13241 | # FIXME: Setting linknames here is a bad hack. | |
13242 | archive_cmds_D='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
13243 | # The linker will automatically build a .lib file if we build a DLL. | |
13244 | old_archive_from_new_cmds_D='true' | |
13245 | # FIXME: Should let the user specify the lib program. | |
13246 | old_archive_cmds_D='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
13247 | fix_srcfile_path_D='`cygpath -w "$srcfile"`' | |
13248 | enable_shared_with_static_runtimes_D=yes | |
13249 | ;; | |
13250 | ||
13251 | darwin* | rhapsody*) | |
13252 | ||
13253 | ||
13254 | archive_cmds_need_lc_D=no | |
13255 | hardcode_direct_D=no | |
13256 | hardcode_automatic_D=yes | |
13257 | hardcode_shlibpath_var_D=unsupported | |
13258 | if test "$lt_cv_ld_force_load" = "yes"; then | |
13259 | 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\"`' | |
13260 | else | |
13261 | whole_archive_flag_spec_D='' | |
13262 | fi | |
13263 | link_all_deplibs_D=yes | |
13264 | allow_undefined_flag_D="$_lt_dar_allow_undefined" | |
13265 | case $cc_basename in | |
13266 | ifort*) _lt_dar_can_shared=yes ;; | |
13267 | *) _lt_dar_can_shared=$GCC ;; | |
13268 | esac | |
13269 | if test "$_lt_dar_can_shared" = "yes"; then | |
13270 | output_verbose_link_cmd=func_echo_all | |
13271 | 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}" | |
13272 | module_cmds_D="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
13273 | 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}" | |
13274 | 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}" | |
13275 | ||
13276 | else | |
13277 | ld_shlibs_D=no | |
13278 | fi | |
13279 | ||
13280 | ;; | |
13281 | ||
13282 | dgux*) | |
13283 | archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
13284 | hardcode_libdir_flag_spec_D='-L$libdir' | |
13285 | hardcode_shlibpath_var_D=no | |
13286 | ;; | |
13287 | ||
13288 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
13289 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
13290 | # does not break anything, and helps significantly (at the cost of a little | |
13291 | # extra space). | |
13292 | freebsd2.2*) | |
13293 | archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
13294 | hardcode_libdir_flag_spec_D='-R$libdir' | |
13295 | hardcode_direct_D=yes | |
13296 | hardcode_shlibpath_var_D=no | |
13297 | ;; | |
13298 | ||
13299 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
13300 | freebsd2.*) | |
13301 | archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
13302 | hardcode_direct_D=yes | |
13303 | hardcode_minus_L_D=yes | |
13304 | hardcode_shlibpath_var_D=no | |
13305 | ;; | |
13306 | ||
13307 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
13308 | freebsd* | dragonfly*) | |
13309 | archive_cmds_D='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
13310 | hardcode_libdir_flag_spec_D='-R$libdir' | |
13311 | hardcode_direct_D=yes | |
13312 | hardcode_shlibpath_var_D=no | |
13313 | ;; | |
13314 | ||
13315 | hpux9*) | |
13316 | if test "$GCC" = yes; then | |
13317 | 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' | |
13318 | else | |
13319 | 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' | |
13320 | fi | |
13321 | hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir' | |
13322 | hardcode_libdir_separator_D=: | |
13323 | hardcode_direct_D=yes | |
13324 | ||
13325 | # hardcode_minus_L: Not really in the search PATH, | |
13326 | # but as the default location of the library. | |
13327 | hardcode_minus_L_D=yes | |
13328 | export_dynamic_flag_spec_D='${wl}-E' | |
13329 | ;; | |
13330 | ||
13331 | hpux10*) | |
13332 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
13333 | archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
13334 | else | |
13335 | archive_cmds_D='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
13336 | fi | |
13337 | if test "$with_gnu_ld" = no; then | |
13338 | hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir' | |
13339 | hardcode_libdir_flag_spec_ld_D='+b $libdir' | |
13340 | hardcode_libdir_separator_D=: | |
13341 | hardcode_direct_D=yes | |
13342 | hardcode_direct_absolute_D=yes | |
13343 | export_dynamic_flag_spec_D='${wl}-E' | |
13344 | # hardcode_minus_L: Not really in the search PATH, | |
13345 | # but as the default location of the library. | |
13346 | hardcode_minus_L_D=yes | |
13347 | fi | |
13348 | ;; | |
13349 | ||
13350 | hpux11*) | |
13351 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
13352 | case $host_cpu in | |
13353 | hppa*64*) | |
13354 | archive_cmds_D='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13355 | ;; | |
13356 | ia64*) | |
13357 | archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
13358 | ;; | |
13359 | *) | |
13360 | archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
13361 | ;; | |
13362 | esac | |
13363 | else | |
13364 | case $host_cpu in | |
13365 | hppa*64*) | |
13366 | archive_cmds_D='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13367 | ;; | |
13368 | ia64*) | |
13369 | archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
13370 | ;; | |
13371 | *) | |
13372 | archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
13373 | ;; | |
13374 | esac | |
13375 | fi | |
13376 | if test "$with_gnu_ld" = no; then | |
13377 | hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir' | |
13378 | hardcode_libdir_separator_D=: | |
13379 | ||
13380 | case $host_cpu in | |
13381 | hppa*64*|ia64*) | |
13382 | hardcode_direct_D=no | |
13383 | hardcode_shlibpath_var_D=no | |
13384 | ;; | |
13385 | *) | |
13386 | hardcode_direct_D=yes | |
13387 | hardcode_direct_absolute_D=yes | |
13388 | export_dynamic_flag_spec_D='${wl}-E' | |
13389 | ||
13390 | # hardcode_minus_L: Not really in the search PATH, | |
13391 | # but as the default location of the library. | |
13392 | hardcode_minus_L_D=yes | |
13393 | ;; | |
13394 | esac | |
13395 | fi | |
13396 | ;; | |
13397 | ||
13398 | irix5* | irix6* | nonstopux*) | |
13399 | if test "$GCC" = yes; then | |
13400 | 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' | |
13401 | # Try to use the -exported_symbol ld option, if it does not | |
13402 | # work, assume that -exports_file does not work either and | |
13403 | # implicitly export all symbols. | |
13404 | save_LDFLAGS="$LDFLAGS" | |
13405 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
13406 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13407 | /* end confdefs.h. */ | |
13408 | int foo(void) {} | |
13409 | _ACEOF | |
13410 | if ac_fn_c_try_link "$LINENO"; then : | |
13411 | 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' | |
13412 | ||
13413 | fi | |
13414 | rm -f core conftest.err conftest.$ac_objext \ | |
13415 | conftest$ac_exeext conftest.$ac_ext | |
13416 | LDFLAGS="$save_LDFLAGS" | |
13417 | else | |
13418 | 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' | |
13419 | 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' | |
13420 | fi | |
13421 | archive_cmds_need_lc_D='no' | |
13422 | hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir' | |
13423 | hardcode_libdir_separator_D=: | |
13424 | inherit_rpath_D=yes | |
13425 | link_all_deplibs_D=yes | |
13426 | ;; | |
13427 | ||
13428 | netbsd*) | |
13429 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
13430 | archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
13431 | else | |
13432 | archive_cmds_D='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
13433 | fi | |
13434 | hardcode_libdir_flag_spec_D='-R$libdir' | |
13435 | hardcode_direct_D=yes | |
13436 | hardcode_shlibpath_var_D=no | |
13437 | ;; | |
13438 | ||
13439 | newsos6) | |
13440 | archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
13441 | hardcode_direct_D=yes | |
13442 | hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir' | |
13443 | hardcode_libdir_separator_D=: | |
13444 | hardcode_shlibpath_var_D=no | |
13445 | ;; | |
13446 | ||
13447 | *nto* | *qnx*) | |
13448 | ;; | |
13449 | ||
13450 | openbsd*) | |
13451 | if test -f /usr/libexec/ld.so; then | |
13452 | hardcode_direct_D=yes | |
13453 | hardcode_shlibpath_var_D=no | |
13454 | hardcode_direct_absolute_D=yes | |
13455 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
13456 | archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
13457 | archive_expsym_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
13458 | hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir' | |
13459 | export_dynamic_flag_spec_D='${wl}-E' | |
13460 | else | |
13461 | case $host_os in | |
13462 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
13463 | archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
13464 | hardcode_libdir_flag_spec_D='-R$libdir' | |
13465 | ;; | |
13466 | *) | |
13467 | archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
13468 | hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir' | |
13469 | ;; | |
13470 | esac | |
13471 | fi | |
13472 | else | |
13473 | ld_shlibs_D=no | |
13474 | fi | |
13475 | ;; | |
13476 | ||
13477 | os2*) | |
13478 | hardcode_libdir_flag_spec_D='-L$libdir' | |
13479 | hardcode_minus_L_D=yes | |
13480 | allow_undefined_flag_D=unsupported | |
13481 | 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' | |
13482 | old_archive_from_new_cmds_D='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
13483 | ;; | |
13484 | ||
13485 | osf3*) | |
13486 | if test "$GCC" = yes; then | |
13487 | allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*' | |
13488 | 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' | |
13489 | else | |
13490 | allow_undefined_flag_D=' -expect_unresolved \*' | |
13491 | 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' | |
13492 | fi | |
13493 | archive_cmds_need_lc_D='no' | |
13494 | hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir' | |
13495 | hardcode_libdir_separator_D=: | |
13496 | ;; | |
13497 | ||
13498 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
13499 | if test "$GCC" = yes; then | |
13500 | allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*' | |
13501 | 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' | |
13502 | hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir' | |
13503 | else | |
13504 | allow_undefined_flag_D=' -expect_unresolved \*' | |
13505 | 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' | |
13506 | 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~ | |
13507 | $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' | |
13508 | ||
13509 | # Both c and cxx compiler support -rpath directly | |
13510 | hardcode_libdir_flag_spec_D='-rpath $libdir' | |
13511 | fi | |
13512 | archive_cmds_need_lc_D='no' | |
13513 | hardcode_libdir_separator_D=: | |
13514 | ;; | |
13515 | ||
13516 | solaris*) | |
13517 | no_undefined_flag_D=' -z defs' | |
13518 | if test "$GCC" = yes; then | |
13519 | wlarc='${wl}' | |
13520 | archive_cmds_D='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13521 | archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
13522 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
13523 | else | |
13524 | case `$CC -V 2>&1` in | |
13525 | *"Compilers 5.0"*) | |
13526 | wlarc='' | |
13527 | archive_cmds_D='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
13528 | archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
13529 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
13530 | ;; | |
13531 | *) | |
13532 | wlarc='${wl}' | |
13533 | archive_cmds_D='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
13534 | archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
13535 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
13536 | ;; | |
13537 | esac | |
13538 | fi | |
13539 | hardcode_libdir_flag_spec_D='-R$libdir' | |
13540 | hardcode_shlibpath_var_D=no | |
13541 | case $host_os in | |
13542 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
13543 | *) | |
13544 | # The compiler driver will combine and reorder linker options, | |
13545 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
13546 | # but is careful enough not to reorder. | |
13547 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
13548 | if test "$GCC" = yes; then | |
13549 | whole_archive_flag_spec_D='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
13550 | else | |
13551 | whole_archive_flag_spec_D='-z allextract$convenience -z defaultextract' | |
13552 | fi | |
13553 | ;; | |
13554 | esac | |
13555 | link_all_deplibs_D=yes | |
13556 | ;; | |
13557 | ||
13558 | sunos4*) | |
13559 | if test "x$host_vendor" = xsequent; then | |
13560 | # Use $CC to link under sequent, because it throws in some extra .o | |
13561 | # files that make .init and .fini sections work. | |
13562 | archive_cmds_D='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
13563 | else | |
13564 | archive_cmds_D='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
13565 | fi | |
13566 | hardcode_libdir_flag_spec_D='-L$libdir' | |
13567 | hardcode_direct_D=yes | |
13568 | hardcode_minus_L_D=yes | |
13569 | hardcode_shlibpath_var_D=no | |
13570 | ;; | |
13571 | ||
13572 | sysv4) | |
13573 | case $host_vendor in | |
13574 | sni) | |
13575 | archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
13576 | hardcode_direct_D=yes # is this really true??? | |
13577 | ;; | |
13578 | siemens) | |
13579 | ## LD is ld it makes a PLAMLIB | |
13580 | ## CC just makes a GrossModule. | |
13581 | archive_cmds_D='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
13582 | reload_cmds_D='$CC -r -o $output$reload_objs' | |
13583 | hardcode_direct_D=no | |
13584 | ;; | |
13585 | motorola) | |
13586 | archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
13587 | hardcode_direct_D=no #Motorola manual says yes, but my tests say they lie | |
13588 | ;; | |
13589 | esac | |
13590 | runpath_var='LD_RUN_PATH' | |
13591 | hardcode_shlibpath_var_D=no | |
13592 | ;; | |
13593 | ||
13594 | sysv4.3*) | |
13595 | archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
13596 | hardcode_shlibpath_var_D=no | |
13597 | export_dynamic_flag_spec_D='-Bexport' | |
13598 | ;; | |
13599 | ||
13600 | sysv4*MP*) | |
13601 | if test -d /usr/nec; then | |
13602 | archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
13603 | hardcode_shlibpath_var_D=no | |
13604 | runpath_var=LD_RUN_PATH | |
13605 | hardcode_runpath_var=yes | |
13606 | ld_shlibs_D=yes | |
13607 | fi | |
13608 | ;; | |
13609 | ||
13610 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
13611 | no_undefined_flag_D='${wl}-z,text' | |
13612 | archive_cmds_need_lc_D=no | |
13613 | hardcode_shlibpath_var_D=no | |
13614 | runpath_var='LD_RUN_PATH' | |
13615 | ||
13616 | if test "$GCC" = yes; then | |
13617 | archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13618 | archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13619 | else | |
13620 | archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13621 | archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13622 | fi | |
13623 | ;; | |
13624 | ||
13625 | sysv5* | sco3.2v5* | sco5v6*) | |
13626 | # Note: We can NOT use -z defs as we might desire, because we do not | |
13627 | # link with -lc, and that would cause any symbols used from libc to | |
13628 | # always be unresolved, which means just about no library would | |
13629 | # ever link correctly. If we're not using GNU ld we use -z text | |
13630 | # though, which does catch some bad symbols but isn't as heavy-handed | |
13631 | # as -z defs. | |
13632 | no_undefined_flag_D='${wl}-z,text' | |
13633 | allow_undefined_flag_D='${wl}-z,nodefs' | |
13634 | archive_cmds_need_lc_D=no | |
13635 | hardcode_shlibpath_var_D=no | |
13636 | hardcode_libdir_flag_spec_D='${wl}-R,$libdir' | |
13637 | hardcode_libdir_separator_D=':' | |
13638 | link_all_deplibs_D=yes | |
13639 | export_dynamic_flag_spec_D='${wl}-Bexport' | |
13640 | runpath_var='LD_RUN_PATH' | |
13641 | ||
13642 | if test "$GCC" = yes; then | |
13643 | archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13644 | archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13645 | else | |
13646 | archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13647 | archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13648 | fi | |
13649 | ;; | |
13650 | ||
13651 | uts4*) | |
13652 | archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
13653 | hardcode_libdir_flag_spec_D='-L$libdir' | |
13654 | hardcode_shlibpath_var_D=no | |
13655 | ;; | |
13656 | ||
13657 | *) | |
13658 | ld_shlibs_D=no | |
13659 | ;; | |
13660 | esac | |
13661 | ||
13662 | if test x$host_vendor = xsni; then | |
13663 | case $host in | |
13664 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
13665 | export_dynamic_flag_spec_D='${wl}-Blargedynsym' | |
13666 | ;; | |
13667 | esac | |
13668 | fi | |
13669 | fi | |
13670 | ||
13671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_D" >&5 | |
13672 | $as_echo "$ld_shlibs_D" >&6; } | |
13673 | test "$ld_shlibs_D" = no && can_build_shared=no | |
13674 | ||
13675 | with_gnu_ld_D=$with_gnu_ld | |
13676 | ||
13677 | ||
13678 | ||
13679 | ||
13680 | ||
13681 | ||
13682 | # | |
13683 | # Do we need to explicitly link libc? | |
13684 | # | |
13685 | case "x$archive_cmds_need_lc_D" in | |
13686 | x|xyes) | |
13687 | # Assume -lc should be added | |
13688 | archive_cmds_need_lc_D=yes | |
13689 | ||
13690 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
13691 | case $archive_cmds_D in | |
13692 | *'~'*) | |
13693 | # FIXME: we may have to deal with multi-command sequences. | |
13694 | ;; | |
13695 | '$CC '*) | |
13696 | # Test whether the compiler implicitly links with -lc since on some | |
13697 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
13698 | # to ld, don't add -lc before -lgcc. | |
13699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
13700 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
f00f02a3 | 13701 | if ${lt_cv_archive_cmds_need_lc_D+:} false; then : |
03385ed3 | 13702 | $as_echo_n "(cached) " >&6 |
13703 | else | |
13704 | $RM conftest* | |
13705 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13706 | ||
13707 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
13708 | (eval $ac_compile) 2>&5 | |
13709 | ac_status=$? | |
13710 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13711 | test $ac_status = 0; } 2>conftest.err; then | |
13712 | soname=conftest | |
13713 | lib=conftest | |
13714 | libobjs=conftest.$ac_objext | |
13715 | deplibs= | |
13716 | wl=$lt_prog_compiler_wl_D | |
13717 | pic_flag=$lt_prog_compiler_pic_D | |
13718 | compiler_flags=-v | |
13719 | linker_flags=-v | |
13720 | verstring= | |
13721 | output_objdir=. | |
13722 | libname=conftest | |
13723 | lt_save_allow_undefined_flag=$allow_undefined_flag_D | |
13724 | allow_undefined_flag_D= | |
13725 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
13726 | (eval $archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
13727 | ac_status=$? | |
13728 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13729 | test $ac_status = 0; } | |
13730 | then | |
13731 | lt_cv_archive_cmds_need_lc_D=no | |
13732 | else | |
13733 | lt_cv_archive_cmds_need_lc_D=yes | |
13734 | fi | |
13735 | allow_undefined_flag_D=$lt_save_allow_undefined_flag | |
13736 | else | |
13737 | cat conftest.err 1>&5 | |
13738 | fi | |
13739 | $RM conftest* | |
13740 | ||
13741 | fi | |
13742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_D" >&5 | |
13743 | $as_echo "$lt_cv_archive_cmds_need_lc_D" >&6; } | |
13744 | archive_cmds_need_lc_D=$lt_cv_archive_cmds_need_lc_D | |
13745 | ;; | |
13746 | esac | |
13747 | fi | |
13748 | ;; | |
13749 | esac | |
13750 | ||
13751 | ||
13752 | ||
13753 | ||
13754 | ||
13755 | ||
13756 | ||
13757 | ||
13758 | ||
13759 | ||
13760 | ||
13761 | ||
13762 | ||
13763 | ||
13764 | ||
13765 | ||
13766 | ||
13767 | ||
13768 | ||
13769 | ||
13770 | ||
13771 | ||
13772 | ||
13773 | ||
13774 | ||
13775 | ||
13776 | ||
13777 | ||
13778 | ||
13779 | ||
13780 | ||
13781 | ||
13782 | ||
13783 | ||
13784 | ||
13785 | ||
13786 | ||
13787 | ||
13788 | ||
13789 | ||
13790 | ||
13791 | ||
13792 | ||
13793 | ||
13794 | ||
13795 | ||
13796 | ||
13797 | ||
13798 | ||
13799 | ||
13800 | ||
13801 | ||
13802 | ||
13803 | ||
13804 | ||
13805 | ||
13806 | ||
13807 | ||
13808 | ||
13809 | ||
13810 | ||
13811 | ||
13812 | ||
13813 | ||
13814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
13815 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
13816 | hardcode_action_D= | |
13817 | if test -n "$hardcode_libdir_flag_spec_D" || | |
13818 | test -n "$runpath_var_D" || | |
13819 | test "X$hardcode_automatic_D" = "Xyes" ; then | |
13820 | ||
13821 | # We can hardcode non-existent directories. | |
13822 | if test "$hardcode_direct_D" != no && | |
13823 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
13824 | # have to relink, otherwise we might link with an installed library | |
13825 | # when we should be linking with a yet-to-be-installed one | |
13826 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, D)" != no && | |
13827 | test "$hardcode_minus_L_D" != no; then | |
13828 | # Linking always hardcodes the temporary library directory. | |
13829 | hardcode_action_D=relink | |
13830 | else | |
13831 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
13832 | hardcode_action_D=immediate | |
13833 | fi | |
13834 | else | |
13835 | # We cannot hardcode anything, or else we can only hardcode existing | |
13836 | # directories. | |
13837 | hardcode_action_D=unsupported | |
13838 | fi | |
13839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_D" >&5 | |
13840 | $as_echo "$hardcode_action_D" >&6; } | |
13841 | ||
13842 | if test "$hardcode_action_D" = relink || | |
13843 | test "$inherit_rpath_D" = yes; then | |
13844 | # Fast installation is not supported | |
13845 | enable_fast_install=no | |
13846 | elif test "$shlibpath_overrides_runpath" = yes || | |
13847 | test "$enable_shared" = no; then | |
13848 | # Fast installation is not necessary | |
13849 | enable_fast_install=needless | |
13850 | fi | |
13851 | ||
13852 | ||
13853 | ||
13854 | ||
13855 | ||
13856 | ||
13857 | ||
13858 | fi | |
13859 | ||
13860 | ac_ext=c | |
13861 | ac_cpp='$CPP $CPPFLAGS' | |
13862 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13863 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13864 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13865 | ||
13866 | ||
13867 | GCC=$lt_save_GCC | |
13868 | CC=$lt_save_CC | |
13869 | CFLAGS=$lt_save_CFLAGS | |
13870 | GDCFLAGS=$lt_save_DFLAGS | |
13871 | ||
13872 | GDCFLAGS=$gdc_save_DFLAGS | |
13873 | ||
03385ed3 | 13874 | |
13875 | # libtool variables for Phobos shared and position-independent compiles. | |
13876 | # | |
13877 | # Use phobos_compiler_shared_flag to designate the compile-time flags for | |
13878 | # creating shared objects. Default: -fversion=Shared. | |
13879 | # | |
13880 | # Use phobos_compiler_pic_flag to designate the compile-time flags for | |
13881 | # creating position-independent objects. This varies with the target | |
13882 | # hardware and operating system, but is often: -fPIC. | |
13883 | # | |
13884 | # The distinction between pic and shared compilation flags is not present in | |
13885 | # libtool, and so we make it here. How it is handled is that in shared | |
13886 | # compilations the `lt_prog_compiler_pic_D' variable is used to instead | |
13887 | # ensure that conditional compilation of shared runtime code is compiled in. | |
13888 | # The original PIC flags are then used in the compilation of every object. | |
13889 | # | |
13890 | # Why are objects destined for libgphobos.a compiled with -fPIC? | |
13891 | # Because -fPIC is not harmful to use for objects destined for static | |
13892 | # libraries. In addition, using -fPIC will allow the use of static | |
13893 | # libgphobos.a in the creation of other D shared libraries. | |
13894 | if test "$enable_shared" = yes; then | |
13895 | phobos_compiler_pic_flag="$lt_prog_compiler_pic_D" | |
13896 | phobos_compiler_shared_flag="-fversion=Shared" | |
13897 | else | |
13898 | phobos_compiler_pic_flag= | |
13899 | phobos_compiler_shared_flag= | |
13900 | fi | |
13901 | ||
13902 | ||
13903 | ||
13904 | # Override the libtool's pic_flag and pic_mode. | |
13905 | # Do this step after AM_PROG_LIBTOOL, but before AC_OUTPUT. | |
13906 | # NB: this impacts --with-pic and --without-pic. | |
13907 | lt_prog_compiler_pic_D="$phobos_compiler_shared_flag" | |
13908 | pic_mode='default' | |
13909 | ||
20abc61c | 13910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-libphobos" >&5 |
13911 | $as_echo_n "checking for --enable-libphobos... " >&6; } | |
13912 | # Check whether --enable-libphobos was given. | |
13913 | if test "${enable_libphobos+set}" = set; then : | |
13914 | enableval=$enable_libphobos; | |
13915 | fi | |
13916 | ||
13917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libphobos" >&5 | |
13918 | $as_echo "$enable_libphobos" >&6; } | |
13919 | ||
13920 | # See if supported. | |
13921 | unset LIBPHOBOS_SUPPORTED | |
13922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for host support for libphobos" >&5 | |
13923 | $as_echo_n "checking for host support for libphobos... " >&6; } | |
13924 | . ${srcdir}/configure.tgt | |
13925 | case ${host} in | |
13926 | x86_64-*-solaris2.* | i?86-*-solaris2.*) | |
13927 | # libphobos doesn't compile with the Solaris/x86 assembler due to a | |
13928 | # relatively low linelength limit. | |
13929 | as_prog=`$CC -print-prog-name=as` | |
13930 | if test -n "$as_prog" && $as_prog -v /dev/null 2>&1 | grep GNU > /dev/null 2>&1; then | |
13931 | druntime_cv_use_gas=yes; | |
13932 | else | |
13933 | druntime_cv_use_gas=no; | |
13934 | fi | |
13935 | rm -f a.out | |
13936 | if test x$druntime_cv_use_gas = xno; then | |
13937 | LIBPHOBOS_SUPPORTED=no | |
13938 | fi | |
13939 | ;; | |
13940 | esac | |
13941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPHOBOS_SUPPORTED" >&5 | |
13942 | $as_echo "$LIBPHOBOS_SUPPORTED" >&6; } | |
13943 | ||
13944 | # Decide if it's usable. | |
13945 | case $LIBPHOBOS_SUPPORTED:$enable_libphobos in | |
13946 | *:no) use_libphobos=no ;; | |
13947 | *:yes) use_libphobos=yes ;; | |
13948 | yes:*) use_libphobos=yes ;; | |
13949 | *:*) use_libphobos=no ;; | |
13950 | esac | |
13951 | if test x$use_libphobos = xyes; then | |
13952 | ENABLE_LIBPHOBOS_TRUE= | |
13953 | ENABLE_LIBPHOBOS_FALSE='#' | |
13954 | else | |
13955 | ENABLE_LIBPHOBOS_TRUE='#' | |
13956 | ENABLE_LIBPHOBOS_FALSE= | |
13957 | fi | |
13958 | ||
13959 | ||
03385ed3 | 13960 | # Determine what GCC version number to use in filesystem paths. |
13961 | ||
13962 | get_gcc_base_ver="cat" | |
13963 | ||
13964 | # Check whether --with-gcc-major-version-only was given. | |
13965 | if test "${with_gcc_major_version_only+set}" = set; then : | |
13966 | withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then | |
13967 | get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" | |
13968 | fi | |
13969 | ||
13970 | fi | |
13971 | ||
13972 | ||
13973 | ||
13974 | ||
13975 | # libphobos/libdruntime specific options and feature detection | |
13976 | ||
13977 | # These need to be absolute paths, yet at the same time need to | |
13978 | # canonicalize only relative paths, because then amd will not unmount | |
13979 | # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd. | |
13980 | libphobos_builddir=`${PWDCMD-pwd}` | |
13981 | case $srcdir in | |
13982 | \\/$* | ?:\\/*) libphobos_srcdir=${srcdir} ;; | |
13983 | *) libphobos_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;; | |
13984 | esac | |
13985 | ||
13986 | ||
13987 | ||
13988 | ||
13989 | if test ${multilib} = yes; then | |
13990 | multilib_arg="--enable-multilib" | |
13991 | else | |
13992 | multilib_arg= | |
13993 | fi | |
13994 | ||
13995 | ||
13996 | # Check whether --enable-werror was given. | |
13997 | if test "${enable_werror+set}" = set; then : | |
13998 | enableval=$enable_werror; | |
13999 | fi | |
14000 | ||
14001 | WERROR_FLAG="" | |
14002 | if test "x$enable_werror" = "xyes"; then | |
14003 | WERROR_FLAG="-Werror" | |
14004 | fi | |
14005 | ||
14006 | ||
14007 | # Check whether --enable-druntime-gc was given. | |
14008 | if test "${enable_druntime_gc+set}" = set; then : | |
14009 | enableval=$enable_druntime_gc; enable_druntime_gc=no | |
14010 | else | |
14011 | enable_druntime_gc=yes | |
14012 | fi | |
14013 | ||
14014 | ||
14015 | if test "$enable_druntime_gc" = "yes"; then | |
14016 | DRUNTIME_GC_ENABLE_TRUE= | |
14017 | DRUNTIME_GC_ENABLE_FALSE='#' | |
14018 | else | |
14019 | DRUNTIME_GC_ENABLE_TRUE='#' | |
14020 | DRUNTIME_GC_ENABLE_FALSE= | |
14021 | fi | |
14022 | ||
14023 | ||
14024 | ||
14025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target OS" >&5 | |
14026 | $as_echo_n "checking for target OS... " >&6; } | |
f00f02a3 | 14027 | if ${druntime_cv_target_os+:} false; then : |
03385ed3 | 14028 | $as_echo_n "(cached) " >&6 |
14029 | else | |
14030 | druntime_cv_target_os=`echo $target_os | sed 's/^\([A-Za-z_]+\)/\1/'` | |
14031 | fi | |
14032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_target_os" >&5 | |
14033 | $as_echo "$druntime_cv_target_os" >&6; } | |
14034 | if test -z "$druntime_cv_target_os"; then : | |
f00f02a3 | 14035 | as_fn_error $? "can't detect target OS" "$LINENO" 5 |
03385ed3 | 14036 | fi |
14037 | ||
14038 | ||
14039 | ||
14040 | # Check whether --enable-unix was given. | |
14041 | if test "${enable_unix+set}" = set; then : | |
14042 | enableval=$enable_unix; : | |
14043 | else | |
14044 | enable_unix=auto | |
14045 | fi | |
14046 | ||
14047 | ||
14048 | case "$druntime_cv_target_os" in | |
14049 | aix*|*bsd*|cygwin*|darwin*|gnu*|linux*|skyos*|*solaris*|sysv*) d_have_unix=1 ;; | |
14050 | esac | |
14051 | if test -n "$d_have_unix" && test "$enable_unix" = auto ; then | |
14052 | enable_unix=yes | |
14053 | fi | |
14054 | if test "$enable_unix" = "yes"; then | |
14055 | DRUNTIME_OS_UNIX_TRUE= | |
14056 | DRUNTIME_OS_UNIX_FALSE='#' | |
14057 | else | |
14058 | DRUNTIME_OS_UNIX_TRUE='#' | |
14059 | DRUNTIME_OS_UNIX_FALSE= | |
14060 | fi | |
14061 | ||
14062 | ||
14063 | ||
14064 | ||
14065 | ||
14066 | druntime_target_os_parsed="" | |
14067 | case "$druntime_cv_target_os" in | |
14068 | aix*) druntime_target_os_parsed="aix" | |
14069 | ;; | |
14070 | *android*) | |
14071 | druntime_target_os_parsed="android" | |
14072 | ;; | |
14073 | darwin*) druntime_target_os_parsed="darwin" | |
14074 | ;; | |
14075 | dragonfly*) | |
14076 | druntime_target_os_parsed="dragonflybsd" | |
14077 | ;; | |
14078 | freebsd*|k*bsd*-gnu) | |
14079 | druntime_target_os_parsed="freebsd" | |
14080 | ;; | |
14081 | openbsd*) | |
14082 | druntime_target_os_parsed="openbsd" | |
14083 | ;; | |
14084 | netbsd*) | |
14085 | druntime_target_os_parsed="netbsd" | |
14086 | ;; | |
14087 | linux*) druntime_target_os_parsed="linux" | |
14088 | ;; | |
14089 | mingw*) druntime_target_os_parsed="mingw" | |
14090 | ;; | |
14091 | *solaris*) druntime_target_os_parsed="solaris" | |
14092 | esac | |
14093 | if test "$druntime_target_os_parsed" = "aix"; then | |
14094 | DRUNTIME_OS_AIX_TRUE= | |
14095 | DRUNTIME_OS_AIX_FALSE='#' | |
14096 | else | |
14097 | DRUNTIME_OS_AIX_TRUE='#' | |
14098 | DRUNTIME_OS_AIX_FALSE= | |
14099 | fi | |
14100 | ||
14101 | if test "$druntime_target_os_parsed" = "android"; then | |
14102 | DRUNTIME_OS_ANDROID_TRUE= | |
14103 | DRUNTIME_OS_ANDROID_FALSE='#' | |
14104 | else | |
14105 | DRUNTIME_OS_ANDROID_TRUE='#' | |
14106 | DRUNTIME_OS_ANDROID_FALSE= | |
14107 | fi | |
14108 | ||
14109 | if test "$druntime_target_os_parsed" = "darwin"; then | |
14110 | DRUNTIME_OS_DARWIN_TRUE= | |
14111 | DRUNTIME_OS_DARWIN_FALSE='#' | |
14112 | else | |
14113 | DRUNTIME_OS_DARWIN_TRUE='#' | |
14114 | DRUNTIME_OS_DARWIN_FALSE= | |
14115 | fi | |
14116 | ||
14117 | if test "$druntime_target_os_parsed" = "dragonflybsd"; then | |
14118 | DRUNTIME_OS_DRAGONFLYBSD_TRUE= | |
14119 | DRUNTIME_OS_DRAGONFLYBSD_FALSE='#' | |
14120 | else | |
14121 | DRUNTIME_OS_DRAGONFLYBSD_TRUE='#' | |
14122 | DRUNTIME_OS_DRAGONFLYBSD_FALSE= | |
14123 | fi | |
14124 | ||
14125 | if test "$druntime_target_os_parsed" = "freebsd"; then | |
14126 | DRUNTIME_OS_FREEBSD_TRUE= | |
14127 | DRUNTIME_OS_FREEBSD_FALSE='#' | |
14128 | else | |
14129 | DRUNTIME_OS_FREEBSD_TRUE='#' | |
14130 | DRUNTIME_OS_FREEBSD_FALSE= | |
14131 | fi | |
14132 | ||
14133 | if test "$druntime_target_os_parsed" = "netbsd"; then | |
14134 | DRUNTIME_OS_NETBSD_TRUE= | |
14135 | DRUNTIME_OS_NETBSD_FALSE='#' | |
14136 | else | |
14137 | DRUNTIME_OS_NETBSD_TRUE='#' | |
14138 | DRUNTIME_OS_NETBSD_FALSE= | |
14139 | fi | |
14140 | ||
14141 | if test "$druntime_target_os_parsed" = "openbsd"; then | |
14142 | DRUNTIME_OS_OPENBSD_TRUE= | |
14143 | DRUNTIME_OS_OPENBSD_FALSE='#' | |
14144 | else | |
14145 | DRUNTIME_OS_OPENBSD_TRUE='#' | |
14146 | DRUNTIME_OS_OPENBSD_FALSE= | |
14147 | fi | |
14148 | ||
14149 | if test "$druntime_target_os_parsed" = "linux"; then | |
14150 | DRUNTIME_OS_LINUX_TRUE= | |
14151 | DRUNTIME_OS_LINUX_FALSE='#' | |
14152 | else | |
14153 | DRUNTIME_OS_LINUX_TRUE='#' | |
14154 | DRUNTIME_OS_LINUX_FALSE= | |
14155 | fi | |
14156 | ||
14157 | if test "$druntime_target_os_parsed" = "mingw"; then | |
14158 | DRUNTIME_OS_MINGW_TRUE= | |
14159 | DRUNTIME_OS_MINGW_FALSE='#' | |
14160 | else | |
14161 | DRUNTIME_OS_MINGW_TRUE='#' | |
14162 | DRUNTIME_OS_MINGW_FALSE= | |
14163 | fi | |
14164 | ||
14165 | if test "$druntime_target_os_parsed" = "solaris"; then | |
14166 | DRUNTIME_OS_SOLARIS_TRUE= | |
14167 | DRUNTIME_OS_SOLARIS_FALSE='#' | |
14168 | else | |
14169 | DRUNTIME_OS_SOLARIS_TRUE='#' | |
14170 | DRUNTIME_OS_SOLARIS_FALSE= | |
14171 | fi | |
14172 | ||
14173 | ||
14174 | ||
14175 | ||
14176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GDC" >&5 | |
14177 | $as_echo_n "checking for thread model used by GDC... " >&6; } | |
14178 | d_thread_model=`$GDC -v 2>&1 | sed -n 's/^Thread model: //p'` | |
14179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d_thread_model" >&5 | |
14180 | $as_echo "$d_thread_model" >&6; } | |
14181 | ||
14182 | # Map from thread model to thread interface. | |
14183 | ||
14184 | case $d_thread_model in | |
14185 | aix) DCFG_THREAD_MODEL="Posix" ;; | |
14186 | lynx) DCFG_THREAD_MODEL="Posix" ;; | |
14187 | posix) DCFG_THREAD_MODEL="Posix" ;; | |
14188 | single) DCFG_THREAD_MODEL="Single" ;; | |
14189 | win32) DCFG_THREAD_MODEL="Win32" ;; | |
14190 | # TODO: These targets need porting. | |
14191 | dce|mipssde|rtems|tpf|vxworks) | |
14192 | DCFG_THREAD_MODEL="Single" ;; | |
14193 | *) as_fn_error "Thread implementation '$d_thread_model' not recognised" "$LINENO" 5 ;; | |
14194 | esac | |
14195 | ||
14196 | ||
14197 | ||
14198 | ||
14199 | ac_ext=c | |
14200 | ac_cpp='$CPP $CPPFLAGS' | |
14201 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14202 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14203 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
14204 | ||
14205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM unwinder" >&5 | |
14206 | $as_echo_n "checking for ARM unwinder... " >&6; } | |
14207 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14208 | /* end confdefs.h. */ | |
14209 | #include <unwind.h> | |
14210 | int | |
14211 | main () | |
14212 | { | |
14213 | ||
14214 | #if __ARM_EABI_UNWINDER__ | |
14215 | #error Yes, it is. | |
14216 | #endif | |
14217 | ||
14218 | ; | |
14219 | return 0; | |
14220 | } | |
14221 | _ACEOF | |
14222 | if ac_fn_c_try_compile "$LINENO"; then : | |
14223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14224 | $as_echo "no" >&6; } | |
14225 | DCFG_ARM_EABI_UNWINDER=false | |
14226 | else | |
14227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14228 | $as_echo "yes" >&6; } | |
14229 | DCFG_ARM_EABI_UNWINDER=true | |
14230 | fi | |
14231 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14232 | ||
14233 | if test "$DCFG_ARM_EABI_UNWINDER" = "true"; then | |
14234 | DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE= | |
14235 | DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE='#' | |
14236 | else | |
14237 | DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE='#' | |
14238 | DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE= | |
14239 | fi | |
14240 | ||
14241 | ac_ext=c | |
14242 | ac_cpp='$CPP $CPPFLAGS' | |
14243 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14244 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14245 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
14246 | ||
14247 | ||
14248 | ||
14249 | ac_ext=c | |
14250 | ac_cpp='$CPP $CPPFLAGS' | |
14251 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14252 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14253 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
14254 | ||
14255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minfo section bracketing" >&5 | |
14256 | $as_echo_n "checking for minfo section bracketing... " >&6; } | |
14257 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14258 | /* end confdefs.h. */ | |
14259 | ||
14260 | void* module_info_ptr __attribute__((section ("minfo"))); | |
14261 | extern void* __start_minfo __attribute__((visibility ("hidden"))); | |
14262 | extern void* __stop_minfo __attribute__((visibility ("hidden"))); | |
14263 | ||
14264 | int main() | |
14265 | { | |
14266 | // Never run, just to prevent compiler from optimizing access | |
14267 | return &__start_minfo == &__stop_minfo; | |
14268 | } | |
14269 | ||
14270 | _ACEOF | |
14271 | if ac_fn_c_try_link "$LINENO"; then : | |
14272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14273 | $as_echo "yes" >&6; } | |
14274 | DCFG_MINFO_BRACKETING=true | |
14275 | else | |
14276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14277 | $as_echo "no" >&6; } | |
14278 | DCFG_MINFO_BRACKETING=false | |
14279 | fi | |
14280 | rm -f core conftest.err conftest.$ac_objext \ | |
14281 | conftest$ac_exeext conftest.$ac_ext | |
14282 | ||
e06fcd5a | 14283 | if test "$DCFG_MINFO_BRACKETING" = "true"; then |
14284 | DRUNTIME_OS_MINFO_BRACKETING_TRUE= | |
14285 | DRUNTIME_OS_MINFO_BRACKETING_FALSE='#' | |
14286 | else | |
14287 | DRUNTIME_OS_MINFO_BRACKETING_TRUE='#' | |
14288 | DRUNTIME_OS_MINFO_BRACKETING_FALSE= | |
14289 | fi | |
14290 | ||
03385ed3 | 14291 | ac_ext=c |
14292 | ac_cpp='$CPP $CPPFLAGS' | |
14293 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14294 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14295 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
14296 | ||
14297 | ||
14298 | ||
79c21307 | 14299 | ac_ext=c |
14300 | ac_cpp='$CPP $CPPFLAGS' | |
14301 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14302 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14303 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
14304 | ||
14305 | 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> | |
14306 | " | |
14307 | if test "x$ac_cv_member_struct_dl_phdr_info_dlpi_tls_modid" = xyes; then : | |
14308 | DCFG_DLPI_TLS_MODID=true | |
14309 | else | |
14310 | DCFG_DLPI_TLS_MODID=false | |
14311 | fi | |
14312 | ||
14313 | ||
14314 | ac_ext=c | |
14315 | ac_cpp='$CPP $CPPFLAGS' | |
14316 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14317 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14318 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
14319 | ||
14320 | ||
14321 | ||
5b79027a | 14322 | case $target in |
14323 | i?86-*-solaris2.* | x86_64-*-solaris2.*) | |
14324 | # 64-bit Solaris/x86 ld breaks calls to __tls_get_addr with non-TLS | |
14325 | # relocs. Work around by disabling TLS transitions. Not necessary | |
14326 | # on 32-bit x86, but cannot be distinguished reliably in specs. | |
14327 | druntime_ld_prog=`$CC -print-prog-name=ld` | |
14328 | if test -n "$druntime_ld_prog" \ | |
14329 | && $druntime_ld_prog -v 2>&1 | grep GNU > /dev/null 2>&1; then | |
14330 | : | |
14331 | else | |
14332 | OS_LINK_SPEC='-z relax=transtls' | |
14333 | fi | |
14334 | ;; | |
14335 | esac | |
14336 | ||
14337 | ||
14338 | ||
f667f7c1 | 14339 | ac_ext=c |
14340 | ac_cpp='$CPP $CPPFLAGS' | |
14341 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14342 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14343 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
14344 | ||
14345 | DCFG_HAVE_QSORT_R=false | |
14346 | ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r" | |
14347 | if test "x$ac_cv_func_qsort_r" = xyes; then : | |
14348 | DCFG_HAVE_QSORT_R=true | |
14349 | fi | |
14350 | ||
14351 | ||
14352 | ac_ext=c | |
14353 | ac_cpp='$CPP $CPPFLAGS' | |
14354 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14355 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14356 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
14357 | ||
14358 | ||
14359 | ||
03385ed3 | 14360 | |
14361 | ||
14362 | gdc_save_DFLAGS=$GDCFLAGS | |
14363 | GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime -nophoboslib $GDCFLAGS" | |
14364 | ||
14365 | ac_ext=d | |
14366 | ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5' | |
14367 | ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14368 | ac_compiler_gnu=yes | |
14369 | ||
14370 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing malloc" >&5 | |
14371 | $as_echo_n "checking for library containing malloc... " >&6; } | |
f00f02a3 | 14372 | if ${ac_cv_search_malloc+:} false; then : |
03385ed3 | 14373 | $as_echo_n "(cached) " >&6 |
14374 | else | |
14375 | ac_func_search_save_LIBS=$LIBS | |
14376 | cat > conftest.$ac_ext <<_ACEOF | |
14377 | module mod; | |
14378 | extern(C) int malloc(); | |
14379 | ||
14380 | extern(C) int main() { | |
14381 | malloc(); return 0; | |
14382 | } | |
14383 | _ACEOF | |
14384 | for ac_lib in '' c; do | |
14385 | if test -z "$ac_lib"; then | |
14386 | ac_res="none required" | |
14387 | else | |
14388 | ac_res=-l$ac_lib | |
14389 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
14390 | fi | |
14391 | if ac_fn_d_try_link "$LINENO"; then : | |
14392 | ac_cv_search_malloc=$ac_res | |
14393 | fi | |
14394 | rm -f core conftest.err conftest.$ac_objext \ | |
14395 | conftest$ac_exeext | |
f00f02a3 | 14396 | if ${ac_cv_search_malloc+:} false; then : |
03385ed3 | 14397 | break |
14398 | fi | |
14399 | done | |
f00f02a3 | 14400 | if ${ac_cv_search_malloc+:} false; then : |
03385ed3 | 14401 | |
14402 | else | |
14403 | ac_cv_search_malloc=no | |
14404 | fi | |
14405 | rm conftest.$ac_ext | |
14406 | LIBS=$ac_func_search_save_LIBS | |
14407 | fi | |
14408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc" >&5 | |
14409 | $as_echo "$ac_cv_search_malloc" >&6; } | |
14410 | ac_res=$ac_cv_search_malloc | |
14411 | if test "$ac_res" != no; then : | |
14412 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
14413 | ||
14414 | fi | |
14415 | ||
14416 | ||
14417 | enable_thread_lib=yes | |
14418 | # Check whether --enable-thread-lib was given. | |
14419 | if test "${enable_thread_lib+set}" = set; then : | |
14420 | enableval=$enable_thread_lib; | |
14421 | fi | |
14422 | ||
14423 | ||
14424 | if test "x$enable_thread_lib" = "xyes"; then : | |
14425 | ||
14426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5 | |
14427 | $as_echo_n "checking for library containing pthread_create... " >&6; } | |
f00f02a3 | 14428 | if ${ac_cv_search_pthread_create+:} false; then : |
03385ed3 | 14429 | $as_echo_n "(cached) " >&6 |
14430 | else | |
14431 | ac_func_search_save_LIBS=$LIBS | |
14432 | cat > conftest.$ac_ext <<_ACEOF | |
14433 | module mod; | |
14434 | extern(C) int pthread_create(); | |
14435 | ||
14436 | extern(C) int main() { | |
14437 | pthread_create(); return 0; | |
14438 | } | |
14439 | _ACEOF | |
14440 | for ac_lib in '' pthread; do | |
14441 | if test -z "$ac_lib"; then | |
14442 | ac_res="none required" | |
14443 | else | |
14444 | ac_res=-l$ac_lib | |
14445 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
14446 | fi | |
14447 | if ac_fn_d_try_link "$LINENO"; then : | |
14448 | ac_cv_search_pthread_create=$ac_res | |
14449 | fi | |
14450 | rm -f core conftest.err conftest.$ac_objext \ | |
14451 | conftest$ac_exeext | |
f00f02a3 | 14452 | if ${ac_cv_search_pthread_create+:} false; then : |
03385ed3 | 14453 | break |
14454 | fi | |
14455 | done | |
f00f02a3 | 14456 | if ${ac_cv_search_pthread_create+:} false; then : |
03385ed3 | 14457 | |
14458 | else | |
14459 | ac_cv_search_pthread_create=no | |
14460 | fi | |
14461 | rm conftest.$ac_ext | |
14462 | LIBS=$ac_func_search_save_LIBS | |
14463 | fi | |
14464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5 | |
14465 | $as_echo "$ac_cv_search_pthread_create" >&6; } | |
14466 | ac_res=$ac_cv_search_pthread_create | |
14467 | if test "$ac_res" != no; then : | |
14468 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
14469 | ||
14470 | fi | |
14471 | ||
14472 | ||
14473 | else | |
14474 | ||
14475 | if test "x$enable_thread_lib" = "xno"; then : | |
14476 | ||
14477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread library" >&5 | |
14478 | $as_echo_n "checking for thread library... " >&6; } | |
14479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 | |
14480 | $as_echo "disabled" >&6; } | |
14481 | ||
14482 | else | |
14483 | ||
14484 | as_ac_Lib=`$as_echo "ac_cv_lib_$enable_thread_lib''_pthread_create" | $as_tr_sh` | |
14485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -l$enable_thread_lib" >&5 | |
14486 | $as_echo_n "checking for pthread_create in -l$enable_thread_lib... " >&6; } | |
f00f02a3 | 14487 | if eval \${$as_ac_Lib+:} false; then : |
03385ed3 | 14488 | $as_echo_n "(cached) " >&6 |
14489 | else | |
14490 | ac_check_lib_save_LIBS=$LIBS | |
14491 | LIBS="-l$enable_thread_lib $LIBS" | |
14492 | cat > conftest.$ac_ext <<_ACEOF | |
14493 | module mod; | |
14494 | extern(C) int pthread_create(); | |
14495 | ||
14496 | extern(C) int main() { | |
14497 | pthread_create(); return 0; | |
14498 | } | |
14499 | _ACEOF | |
14500 | if ac_fn_d_try_link "$LINENO"; then : | |
14501 | eval "$as_ac_Lib=yes" | |
14502 | else | |
14503 | eval "$as_ac_Lib=no" | |
14504 | fi | |
14505 | rm -f core conftest.err conftest.$ac_objext \ | |
14506 | conftest$ac_exeext conftest.$ac_ext | |
14507 | LIBS=$ac_check_lib_save_LIBS | |
14508 | fi | |
14509 | eval ac_res=\$$as_ac_Lib | |
14510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
14511 | $as_echo "$ac_res" >&6; } | |
f00f02a3 | 14512 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : |
03385ed3 | 14513 | cat >>confdefs.h <<_ACEOF |
14514 | #define `$as_echo "HAVE_LIB$enable_thread_lib" | $as_tr_cpp` 1 | |
14515 | _ACEOF | |
14516 | ||
14517 | LIBS="-l$enable_thread_lib $LIBS" | |
14518 | ||
14519 | else | |
14520 | ||
f00f02a3 | 14521 | as_fn_error $? "Thread library not found" "$LINENO" 5 |
03385ed3 | 14522 | |
14523 | fi | |
14524 | ||
14525 | ||
14526 | fi | |
14527 | ||
14528 | fi | |
14529 | ||
14530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cosf" >&5 | |
14531 | $as_echo_n "checking for library containing cosf... " >&6; } | |
f00f02a3 | 14532 | if ${ac_cv_search_cosf+:} false; then : |
03385ed3 | 14533 | $as_echo_n "(cached) " >&6 |
14534 | else | |
14535 | ac_func_search_save_LIBS=$LIBS | |
14536 | cat > conftest.$ac_ext <<_ACEOF | |
14537 | module mod; | |
14538 | extern(C) int cosf(); | |
14539 | ||
14540 | extern(C) int main() { | |
14541 | cosf(); return 0; | |
14542 | } | |
14543 | _ACEOF | |
14544 | for ac_lib in '' m; do | |
14545 | if test -z "$ac_lib"; then | |
14546 | ac_res="none required" | |
14547 | else | |
14548 | ac_res=-l$ac_lib | |
14549 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
14550 | fi | |
14551 | if ac_fn_d_try_link "$LINENO"; then : | |
14552 | ac_cv_search_cosf=$ac_res | |
14553 | fi | |
14554 | rm -f core conftest.err conftest.$ac_objext \ | |
14555 | conftest$ac_exeext | |
f00f02a3 | 14556 | if ${ac_cv_search_cosf+:} false; then : |
03385ed3 | 14557 | break |
14558 | fi | |
14559 | done | |
f00f02a3 | 14560 | if ${ac_cv_search_cosf+:} false; then : |
03385ed3 | 14561 | |
14562 | else | |
14563 | ac_cv_search_cosf=no | |
14564 | fi | |
14565 | rm conftest.$ac_ext | |
14566 | LIBS=$ac_func_search_save_LIBS | |
14567 | fi | |
14568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cosf" >&5 | |
14569 | $as_echo "$ac_cv_search_cosf" >&6; } | |
14570 | ac_res=$ac_cv_search_cosf | |
14571 | if test "$ac_res" != no; then : | |
14572 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
14573 | ||
14574 | fi | |
14575 | ||
14576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 | |
14577 | $as_echo_n "checking for library containing clock_gettime... " >&6; } | |
f00f02a3 | 14578 | if ${ac_cv_search_clock_gettime+:} false; then : |
03385ed3 | 14579 | $as_echo_n "(cached) " >&6 |
14580 | else | |
14581 | ac_func_search_save_LIBS=$LIBS | |
14582 | cat > conftest.$ac_ext <<_ACEOF | |
14583 | module mod; | |
14584 | extern(C) int clock_gettime(); | |
14585 | ||
14586 | extern(C) int main() { | |
14587 | clock_gettime(); return 0; | |
14588 | } | |
14589 | _ACEOF | |
14590 | for ac_lib in '' rt; do | |
14591 | if test -z "$ac_lib"; then | |
14592 | ac_res="none required" | |
14593 | else | |
14594 | ac_res=-l$ac_lib | |
14595 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
14596 | fi | |
14597 | if ac_fn_d_try_link "$LINENO"; then : | |
14598 | ac_cv_search_clock_gettime=$ac_res | |
14599 | fi | |
14600 | rm -f core conftest.err conftest.$ac_objext \ | |
14601 | conftest$ac_exeext | |
f00f02a3 | 14602 | if ${ac_cv_search_clock_gettime+:} false; then : |
03385ed3 | 14603 | break |
14604 | fi | |
14605 | done | |
f00f02a3 | 14606 | if ${ac_cv_search_clock_gettime+:} false; then : |
03385ed3 | 14607 | |
14608 | else | |
14609 | ac_cv_search_clock_gettime=no | |
14610 | fi | |
14611 | rm conftest.$ac_ext | |
14612 | LIBS=$ac_func_search_save_LIBS | |
14613 | fi | |
14614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 | |
14615 | $as_echo "$ac_cv_search_clock_gettime" >&6; } | |
14616 | ac_res=$ac_cv_search_clock_gettime | |
14617 | if test "$ac_res" != no; then : | |
14618 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
14619 | ||
14620 | fi | |
14621 | ||
14622 | ||
14623 | # This checks to see if the host supports the compiler-generated builtins | |
14624 | # for atomic operations for various integral sizes. Note, this is intended | |
14625 | # to be an all-or-nothing switch, so all the atomic operations that are | |
14626 | # used should be checked. | |
14627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for byte" >&5 | |
14628 | $as_echo_n "checking for atomic builtins for byte... " >&6; } | |
f00f02a3 | 14629 | if ${druntime_cv_atomic_byte+:} false; then : |
03385ed3 | 14630 | $as_echo_n "(cached) " >&6 |
14631 | else | |
14632 | ||
14633 | cat > conftest.$ac_ext <<_ACEOF | |
14634 | module mod; | |
14635 | import gcc.builtins; | |
14636 | ||
14637 | extern(C) int main() { | |
14638 | ||
14639 | shared(byte) c1; | |
14640 | byte c2, c3; | |
14641 | __atomic_compare_exchange_1(&c1, &c2, c3, false, 5, 5); | |
14642 | __atomic_load_1(&c1, 5); | |
14643 | __atomic_store_1(&c1, c2, 5); | |
14644 | return 0; | |
14645 | ||
14646 | } | |
14647 | _ACEOF | |
14648 | if ac_fn_d_try_link "$LINENO"; then : | |
14649 | druntime_cv_atomic_byte=yes | |
14650 | else | |
14651 | druntime_cv_atomic_byte=no | |
14652 | fi | |
14653 | rm -f core conftest.err conftest.$ac_objext \ | |
14654 | conftest$ac_exeext conftest.$ac_ext | |
14655 | ||
14656 | fi | |
14657 | ||
14658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_byte" >&5 | |
14659 | $as_echo "$druntime_cv_atomic_byte" >&6; } | |
14660 | ||
14661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5 | |
14662 | $as_echo_n "checking for atomic builtins for short... " >&6; } | |
f00f02a3 | 14663 | if ${druntime_cv_atomic_short+:} false; then : |
03385ed3 | 14664 | $as_echo_n "(cached) " >&6 |
14665 | else | |
14666 | ||
14667 | cat > conftest.$ac_ext <<_ACEOF | |
14668 | module mod; | |
14669 | import gcc.builtins; | |
14670 | ||
14671 | extern(C) int main() { | |
14672 | ||
14673 | shared(short) c1; | |
14674 | short c2, c3; | |
14675 | __atomic_compare_exchange_2(&c1, &c2, c3, false, 5, 5); | |
14676 | __atomic_load_2(&c1, 5); | |
14677 | __atomic_store_2(&c1, c2, 5); | |
14678 | return 0; | |
14679 | ||
14680 | } | |
14681 | _ACEOF | |
14682 | if ac_fn_d_try_link "$LINENO"; then : | |
14683 | druntime_cv_atomic_short=yes | |
14684 | else | |
14685 | druntime_cv_atomic_short=no | |
14686 | fi | |
14687 | rm -f core conftest.err conftest.$ac_objext \ | |
14688 | conftest$ac_exeext conftest.$ac_ext | |
14689 | ||
14690 | fi | |
14691 | ||
14692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_short" >&5 | |
14693 | $as_echo "$druntime_cv_atomic_short" >&6; } | |
14694 | ||
14695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5 | |
14696 | $as_echo_n "checking for atomic builtins for int... " >&6; } | |
f00f02a3 | 14697 | if ${druntime_cv_atomic_int+:} false; then : |
03385ed3 | 14698 | $as_echo_n "(cached) " >&6 |
14699 | else | |
14700 | ||
14701 | cat > conftest.$ac_ext <<_ACEOF | |
14702 | module mod; | |
14703 | import gcc.builtins; | |
14704 | ||
14705 | extern(C) int main() { | |
14706 | ||
14707 | shared(int) c1; | |
14708 | int c2, c3; | |
14709 | __atomic_compare_exchange_4(&c1, &c2, c3, false, 5, 5); | |
14710 | __atomic_load_4(&c1, 5); | |
14711 | __atomic_store_4(&c1, c2, 5); | |
14712 | return 0; | |
14713 | ||
14714 | } | |
14715 | _ACEOF | |
14716 | if ac_fn_d_try_link "$LINENO"; then : | |
14717 | druntime_cv_atomic_int=yes | |
14718 | else | |
14719 | druntime_cv_atomic_int=no | |
14720 | fi | |
14721 | rm -f core conftest.err conftest.$ac_objext \ | |
14722 | conftest$ac_exeext conftest.$ac_ext | |
14723 | ||
14724 | fi | |
14725 | ||
14726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_int" >&5 | |
14727 | $as_echo "$druntime_cv_atomic_int" >&6; } | |
14728 | ||
14729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long" >&5 | |
14730 | $as_echo_n "checking for atomic builtins for long... " >&6; } | |
f00f02a3 | 14731 | if ${druntime_cv_atomic_long+:} false; then : |
03385ed3 | 14732 | $as_echo_n "(cached) " >&6 |
14733 | else | |
14734 | ||
14735 | cat > conftest.$ac_ext <<_ACEOF | |
14736 | module mod; | |
14737 | import gcc.builtins; | |
14738 | ||
14739 | extern(C) int main() { | |
14740 | ||
14741 | shared(long) c1; | |
14742 | long c2, c3; | |
14743 | __atomic_compare_exchange_8(&c1, &c2, c3, false, 5, 5); | |
14744 | __atomic_load_8(&c1, 5); | |
14745 | __atomic_store_8(&c1, c2, 5); | |
14746 | return 0; | |
14747 | ||
14748 | } | |
14749 | _ACEOF | |
14750 | if ac_fn_d_try_link "$LINENO"; then : | |
14751 | druntime_cv_atomic_long=yes | |
14752 | else | |
14753 | druntime_cv_atomic_long=no | |
14754 | fi | |
14755 | rm -f core conftest.err conftest.$ac_objext \ | |
14756 | conftest$ac_exeext conftest.$ac_ext | |
14757 | ||
14758 | fi | |
14759 | ||
14760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_long" >&5 | |
14761 | $as_echo "$druntime_cv_atomic_long" >&6; } | |
14762 | ||
14763 | # Have atomic builtin support if all but the long test above passes. | |
14764 | DCFG_HAVE_ATOMIC_BUILTINS=false | |
14765 | if test "$druntime_cv_atomic_byte" = yes \ | |
14766 | && test "$druntime_cv_atomic_short" = yes \ | |
14767 | && test "$druntime_cv_atomic_int" = yes; then \ | |
14768 | DCFG_HAVE_ATOMIC_BUILTINS=true | |
14769 | fi | |
14770 | ||
14771 | # Have 64-bit atomic support if the long test above passes. | |
14772 | DCFG_HAVE_64BIT_ATOMICS=false | |
14773 | if test "$druntime_cv_atomic_long" = yes; then | |
14774 | DCFG_HAVE_64BIT_ATOMICS=true | |
14775 | fi | |
14776 | ||
14777 | ||
14778 | ||
14779 | ||
14780 | ac_ext=c | |
14781 | ac_cpp='$CPP $CPPFLAGS' | |
14782 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14783 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14784 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
14785 | ||
14786 | ||
14787 | GDCFLAGS=$gdc_save_DFLAGS | |
14788 | ||
14789 | ||
14790 | ||
14791 | ||
14792 | # Check whether --with-libatomic was given. | |
14793 | if test "${with_libatomic+set}" = set; then : | |
14794 | withval=$with_libatomic; | |
14795 | fi | |
14796 | ||
14797 | ||
14798 | DCFG_HAVE_LIBATOMIC=false | |
14799 | LIBATOMIC= | |
14800 | if test "x$with_libatomic" != "xno"; then : | |
14801 | ||
14802 | DCFG_HAVE_LIBATOMIC=true | |
14803 | LIBATOMIC=../../libatomic/libatomic_convenience.la | |
14804 | ||
14805 | else | |
14806 | ||
14807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic" >&5 | |
14808 | $as_echo_n "checking for libatomic... " >&6; } | |
14809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 | |
14810 | $as_echo "disabled" >&6; } | |
14811 | ||
14812 | fi | |
14813 | ||
14814 | ||
14815 | ||
14816 | ||
14817 | ||
14818 | ac_ext=c | |
14819 | ac_cpp='$CPP $CPPFLAGS' | |
14820 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14821 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14822 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
14823 | ||
14824 | BACKTRACE_SUPPORTED=false | |
14825 | BACKTRACE_USES_MALLOC=false | |
14826 | BACKTRACE_SUPPORTS_THREADS=false | |
14827 | LIBBACKTRACE="" | |
14828 | ||
14829 | ||
14830 | # Check whether --with-libbacktrace was given. | |
14831 | if test "${with_libbacktrace+set}" = set; then : | |
14832 | withval=$with_libbacktrace; | |
14833 | fi | |
14834 | ||
14835 | ||
14836 | if test "x$with_libbacktrace" != "xno"; then : | |
14837 | ||
14838 | LIBBACKTRACE=../../libbacktrace/libbacktrace.la | |
14839 | ||
14840 | gdc_save_CPPFLAGS=$CPPFLAGS | |
14841 | CPPFLAGS+=" -I../libbacktrace " | |
14842 | ||
14843 | ac_fn_c_check_header_mongrel "$LINENO" "backtrace-supported.h" "ac_cv_header_backtrace_supported_h" "$ac_includes_default" | |
f00f02a3 | 14844 | if test "x$ac_cv_header_backtrace_supported_h" = xyes; then : |
03385ed3 | 14845 | have_libbacktrace_h=true |
14846 | else | |
14847 | have_libbacktrace_h=false | |
14848 | fi | |
14849 | ||
14850 | ||
14851 | ||
14852 | if $have_libbacktrace_h; then | |
14853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTED" >&5 | |
14854 | $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTED... " >&6; } | |
14855 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14856 | /* end confdefs.h. */ | |
14857 | ||
14858 | #include <backtrace-supported.h> | |
14859 | #if BACKTRACE_SUPPORTED | |
14860 | FOUND_LIBBACKTRACE_RESULT_GDC | |
14861 | #endif | |
14862 | ||
14863 | _ACEOF | |
14864 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14865 | $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then : | |
14866 | BACKTRACE_SUPPORTED=true | |
14867 | else | |
14868 | BACKTRACE_SUPPORTED=false | |
14869 | fi | |
14870 | rm -f conftest* | |
14871 | ||
14872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTED" >&5 | |
14873 | $as_echo "$BACKTRACE_SUPPORTED" >&6; } | |
14874 | ||
14875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_USES_MALLOC" >&5 | |
14876 | $as_echo_n "checking libbacktrace: BACKTRACE_USES_MALLOC... " >&6; } | |
14877 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14878 | /* end confdefs.h. */ | |
14879 | ||
14880 | #include <backtrace-supported.h> | |
14881 | #if BACKTRACE_USES_MALLOC | |
14882 | FOUND_LIBBACKTRACE_RESULT_GDC | |
14883 | #endif | |
14884 | ||
14885 | _ACEOF | |
14886 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14887 | $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then : | |
14888 | BACKTRACE_USES_MALLOC=true | |
14889 | else | |
14890 | BACKTRACE_USES_MALLOC=false | |
14891 | fi | |
14892 | rm -f conftest* | |
14893 | ||
14894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_USES_MALLOC" >&5 | |
14895 | $as_echo "$BACKTRACE_USES_MALLOC" >&6; } | |
14896 | ||
14897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTS_THREADS" >&5 | |
14898 | $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTS_THREADS... " >&6; } | |
14899 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14900 | /* end confdefs.h. */ | |
14901 | ||
14902 | #include <backtrace-supported.h> | |
14903 | #if BACKTRACE_SUPPORTS_THREADS | |
14904 | FOUND_LIBBACKTRACE_RESULT_GDC | |
14905 | #endif | |
14906 | ||
14907 | _ACEOF | |
14908 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14909 | $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then : | |
14910 | BACKTRACE_SUPPORTS_THREADS=true | |
14911 | else | |
14912 | BACKTRACE_SUPPORTS_THREADS=false | |
14913 | fi | |
14914 | rm -f conftest* | |
14915 | ||
14916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTS_THREADS" >&5 | |
14917 | $as_echo "$BACKTRACE_SUPPORTS_THREADS" >&6; } | |
14918 | fi | |
14919 | CPPFLAGS=$gdc_save_CPPFLAGS | |
14920 | ||
14921 | else | |
14922 | ||
14923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbacktrace" >&5 | |
14924 | $as_echo_n "checking for libbacktrace... " >&6; } | |
14925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 | |
14926 | $as_echo "disabled" >&6; } | |
14927 | ||
14928 | fi | |
14929 | ||
14930 | ||
14931 | ||
14932 | ||
14933 | ||
14934 | ac_ext=c | |
14935 | ac_cpp='$CPP $CPPFLAGS' | |
14936 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14937 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14938 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
14939 | ||
14940 | ||
14941 | ||
14942 | # Libtool has already checked this, so re-use the inferred dlopen lib. | |
14943 | if test "x$enable_dlopen" = "xyes" && test -n "$lt_cv_dlopen_libs"; then : | |
14944 | ||
14945 | LIBS="$LIBS $lt_cv_dlopen_libs" | |
14946 | ||
14947 | fi | |
14948 | ||
14949 | ||
ebc4a4d2 | 14950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5 |
14951 | $as_echo_n "checking for socket libraries... " >&6; } | |
14952 | if ${druntime_cv_lib_sockets+:} false; then : | |
14953 | $as_echo_n "(cached) " >&6 | |
14954 | else | |
14955 | druntime_cv_lib_sockets= | |
14956 | druntime_check_both=no | |
14957 | ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" | |
14958 | if test "x$ac_cv_func_connect" = xyes; then : | |
14959 | druntime_check_socket=no | |
14960 | else | |
14961 | druntime_check_socket=yes | |
14962 | fi | |
14963 | ||
14964 | if test "$druntime_check_socket" = "yes"; then | |
14965 | unset ac_cv_func_connect | |
14966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5 | |
14967 | $as_echo_n "checking for main in -lsocket... " >&6; } | |
14968 | if ${ac_cv_lib_socket_main+:} false; then : | |
14969 | $as_echo_n "(cached) " >&6 | |
14970 | else | |
14971 | ac_check_lib_save_LIBS=$LIBS | |
14972 | LIBS="-lsocket $LIBS" | |
14973 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14974 | /* end confdefs.h. */ | |
14975 | ||
14976 | ||
14977 | int | |
14978 | main () | |
14979 | { | |
14980 | return main (); | |
14981 | ; | |
14982 | return 0; | |
14983 | } | |
14984 | _ACEOF | |
14985 | if ac_fn_c_try_link "$LINENO"; then : | |
14986 | ac_cv_lib_socket_main=yes | |
14987 | else | |
14988 | ac_cv_lib_socket_main=no | |
14989 | fi | |
14990 | rm -f core conftest.err conftest.$ac_objext \ | |
14991 | conftest$ac_exeext conftest.$ac_ext | |
14992 | LIBS=$ac_check_lib_save_LIBS | |
14993 | fi | |
14994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5 | |
14995 | $as_echo "$ac_cv_lib_socket_main" >&6; } | |
14996 | if test "x$ac_cv_lib_socket_main" = xyes; then : | |
14997 | druntime_cv_lib_sockets="-lsocket" | |
14998 | else | |
14999 | druntime_check_both=yes | |
15000 | fi | |
15001 | ||
15002 | fi | |
15003 | if test "$druntime_check_both" = "yes"; then | |
15004 | druntime_old_libs=$LIBS | |
15005 | LIBS="$LIBS -lsocket -lnsl" | |
15006 | unset ac_cv_func_accept | |
15007 | ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept" | |
15008 | if test "x$ac_cv_func_accept" = xyes; then : | |
15009 | druntime_check_nsl=no | |
15010 | druntime_cv_lib_sockets="-lsocket -lnsl" | |
15011 | fi | |
15012 | ||
15013 | unset ac_cv_func_accept | |
15014 | LIBS=$druntime_old_libs | |
15015 | fi | |
15016 | unset ac_cv_func_gethostbyname | |
15017 | druntime_old_libs="$LIBS" | |
15018 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" | |
15019 | if test "x$ac_cv_func_gethostbyname" = xyes; then : | |
15020 | ||
15021 | else | |
15022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5 | |
15023 | $as_echo_n "checking for main in -lnsl... " >&6; } | |
15024 | if ${ac_cv_lib_nsl_main+:} false; then : | |
15025 | $as_echo_n "(cached) " >&6 | |
15026 | else | |
15027 | ac_check_lib_save_LIBS=$LIBS | |
15028 | LIBS="-lnsl $LIBS" | |
15029 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15030 | /* end confdefs.h. */ | |
15031 | ||
15032 | ||
15033 | int | |
15034 | main () | |
15035 | { | |
15036 | return main (); | |
15037 | ; | |
15038 | return 0; | |
15039 | } | |
15040 | _ACEOF | |
15041 | if ac_fn_c_try_link "$LINENO"; then : | |
15042 | ac_cv_lib_nsl_main=yes | |
15043 | else | |
15044 | ac_cv_lib_nsl_main=no | |
15045 | fi | |
15046 | rm -f core conftest.err conftest.$ac_objext \ | |
15047 | conftest$ac_exeext conftest.$ac_ext | |
15048 | LIBS=$ac_check_lib_save_LIBS | |
15049 | fi | |
15050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5 | |
15051 | $as_echo "$ac_cv_lib_nsl_main" >&6; } | |
15052 | if test "x$ac_cv_lib_nsl_main" = xyes; then : | |
15053 | druntime_cv_lib_sockets="$druntime_cv_lib_sockets -lnsl" | |
15054 | fi | |
15055 | ||
15056 | fi | |
15057 | ||
15058 | ||
15059 | fi | |
15060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_lib_sockets" >&5 | |
15061 | $as_echo "$druntime_cv_lib_sockets" >&6; } | |
15062 | LIBS="$LIBS $druntime_cv_lib_sockets" | |
15063 | ||
15064 | ||
e60a24bd | 15065 | ac_ext=c |
15066 | ac_cpp='$CPP $CPPFLAGS' | |
15067 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15068 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15069 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
15070 | ||
15071 | LIBZ="" | |
15072 | ||
03385ed3 | 15073 | |
15074 | # Check whether --with-target-system-zlib was given. | |
15075 | if test "${with_target_system_zlib+set}" = set; then : | |
15076 | withval=$with_target_system_zlib; | |
e60a24bd | 15077 | else |
15078 | with_target_system_zlib=no | |
03385ed3 | 15079 | fi |
15080 | ||
15081 | ||
e60a24bd | 15082 | case "$with_target_system_zlib" in |
15083 | yes|no|auto) ;; | |
15084 | *) as_fn_error $? "Invalid argument for --with-target-system-zlib" "$LINENO" 5 ;; | |
15085 | esac | |
03385ed3 | 15086 | |
e60a24bd | 15087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system zlib" >&5 |
15088 | $as_echo_n "checking for system zlib... " >&6; } | |
15089 | save_LIBS=$LIBS | |
15090 | LIBS="$LIBS -lz" | |
15091 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
03385ed3 | 15092 | /* end confdefs.h. */ |
e60a24bd | 15093 | #include <zlib.h> |
03385ed3 | 15094 | int |
15095 | main () | |
15096 | { | |
e60a24bd | 15097 | gzopen("none", "rb") |
03385ed3 | 15098 | ; |
15099 | return 0; | |
15100 | } | |
15101 | _ACEOF | |
15102 | if ac_fn_c_try_link "$LINENO"; then : | |
03385ed3 | 15103 | |
e60a24bd | 15104 | if test "$cross_compiling" = yes; then : |
15105 | system_zlib_found=no | |
03385ed3 | 15106 | |
15107 | else | |
e60a24bd | 15108 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
15109 | /* end confdefs.h. */ | |
03385ed3 | 15110 | |
e60a24bd | 15111 | #include <zlib.h> |
15112 | int main() { | |
15113 | gzFile file = gzopen("none", "rb"); | |
15114 | return 0; | |
15115 | } | |
03385ed3 | 15116 | |
e60a24bd | 15117 | _ACEOF |
15118 | if ac_fn_c_try_run "$LINENO"; then : | |
15119 | system_zlib_found=yes | |
15120 | else | |
15121 | system_zlib_found=no | |
15122 | fi | |
15123 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
15124 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
03385ed3 | 15125 | fi |
15126 | ||
15127 | ||
15128 | else | |
e60a24bd | 15129 | system_zlib_found=no |
15130 | fi | |
15131 | rm -f core conftest.err conftest.$ac_objext \ | |
15132 | conftest$ac_exeext conftest.$ac_ext | |
15133 | LIBS=$save_LIBS | |
15134 | ||
15135 | if test x$system_zlib_found = xyes && test x$with_target_system_zlib != xno; then | |
15136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 | |
15137 | $as_echo "found" >&6; } | |
15138 | LIBS="$LIBS -lz" | |
15139 | elif test x$system_zlib_found = xno && test x$with_target_system_zlib = xyes; then | |
15140 | as_fn_error $? "system zlib required but not found" "$LINENO" 5 | |
15141 | else | |
03385ed3 | 15142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
15143 | $as_echo "just compiled" >&6; } | |
e60a24bd | 15144 | LIBZ=../../zlib/libz_convenience.la |
15145 | fi | |
03385ed3 | 15146 | |
03385ed3 | 15147 | |
e60a24bd | 15148 | ac_ext=c |
15149 | ac_cpp='$CPP $CPPFLAGS' | |
15150 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15151 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15152 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
03385ed3 | 15153 | |
15154 | ||
15155 | ||
15156 | ||
15157 | ||
15158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking D GCC version" >&5 | |
15159 | $as_echo_n "checking D GCC version... " >&6; } | |
15160 | gcc_version=`eval $get_gcc_base_ver $srcdir/../gcc/BASE-VER` | |
15161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_version" >&5 | |
15162 | $as_echo "$gcc_version" >&6; } | |
15163 | ||
15164 | ||
15165 | ||
15166 | # Check whether --with-cross-host was given. | |
15167 | if test "${with_cross_host+set}" = set; then : | |
15168 | withval=$with_cross_host; | |
15169 | fi | |
15170 | ||
15171 | ||
5114391d | 15172 | libphobos_toolexecdir=no |
15173 | libphobos_toolexeclibdir=no | |
03385ed3 | 15174 | |
5114391d | 15175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5 |
15176 | $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; } | |
15177 | # Check whether --enable-version-specific-runtime-libs was given. | |
15178 | if test "${enable_version_specific_runtime_libs+set}" = set; then : | |
15179 | enableval=$enable_version_specific_runtime_libs; case "$enableval" in | |
15180 | yes) version_specific_libs=yes ;; | |
15181 | no) version_specific_libs=no ;; | |
15182 | *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;; | |
15183 | esac | |
15184 | else | |
03385ed3 | 15185 | version_specific_libs=no |
5114391d | 15186 | fi |
15187 | ||
15188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5 | |
15189 | $as_echo "$version_specific_libs" >&6; } | |
03385ed3 | 15190 | |
15191 | # Version-specific runtime libs processing. | |
15192 | if test $version_specific_libs = yes; then | |
5114391d | 15193 | libphobos_toolexecdir='${libdir}/gcc/${host_alias}' |
15194 | libphobos_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)' | |
03385ed3 | 15195 | else |
5114391d | 15196 | # Calculate libphobos_toolexecdir, libphobos_toolexeclibdir |
15197 | # Install a library built with a cross compiler in tooldir, not libdir. | |
15198 | if test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then | |
15199 | libphobos_toolexecdir='${exec_prefix}/${host_alias}' | |
15200 | libphobos_toolexeclibdir='${toolexecdir}/lib' | |
15201 | else | |
15202 | libphobos_toolexecdir='${libdir}/gcc/${host_alias}' | |
15203 | libphobos_toolexeclibdir='${libdir}' | |
15204 | fi | |
15205 | multi_os_directory=`$GDC -print-multi-os-directory` | |
15206 | case $multi_os_directory in | |
15207 | .) ;; # Avoid trailing /. | |
15208 | *) libphobos_toolexeclibdir=${libphobos_toolexeclibdir}/${multi_os_directory} ;; | |
15209 | esac | |
03385ed3 | 15210 | fi |
15211 | ||
15212 | ||
15213 | ||
15214 | # Default case for install directory for D sources files. | |
15215 | gdc_include_dir='$(libdir)/gcc/${target_alias}/${gcc_version}/include/d' | |
15216 | ||
15217 | ||
15218 | ||
e06fcd5a | 15219 | # Add drtbegin.o/drtend.o to startfile/endfile specs in libgphobos.spec |
15220 | if test "$DCFG_MINFO_BRACKETING" = "false"; then | |
15221 | DRTSTUFF_SPEC=$srcdir/src/drtstuff.spec | |
15222 | else | |
15223 | DRTSTUFF_SPEC=/dev/null | |
15224 | fi | |
15225 | ||
15226 | ||
03385ed3 | 15227 | # Add dependencies for libgphobos.spec file |
15228 | SPEC_PHOBOS_DEPS="$LIBS" | |
15229 | ||
15230 | ||
15231 | # Libdruntime / phobos soname version | |
345422ff | 15232 | libtool_VERSION=76:3:0 |
03385ed3 | 15233 | |
15234 | ||
15235 | # Set default flags (after DRUNTIME_WERROR!) | |
15236 | if test -z "$GDCFLAGS"; then | |
15237 | GDCFLAGS="-Wall $WERROR_FLAG -g -frelease -O2" | |
15238 | fi | |
15239 | ||
15240 | ||
15241 | if test -z "$GDCFLAGSX"; then | |
15242 | GDCFLAGSX="-Wall $WERROR_FLAG -g -fno-release -funittest" | |
15243 | fi | |
15244 | ||
15245 | ||
15246 | # Sanity check for the cross-compilation case: | |
15247 | ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" | |
f00f02a3 | 15248 | if test "x$ac_cv_header_stdio_h" = xyes; then : |
03385ed3 | 15249 | : |
15250 | else | |
f00f02a3 | 15251 | as_fn_error $? "cannot find stdio.h." "$LINENO" 5 |
03385ed3 | 15252 | fi |
15253 | ||
15254 | ||
15255 | ||
5114391d | 15256 | ac_config_files="$ac_config_files Makefile" |
03385ed3 | 15257 | |
15258 | ||
15259 | ac_config_files="$ac_config_files libdruntime/gcc/config.d libdruntime/gcc/libbacktrace.d" | |
15260 | ||
15261 | ac_config_files="$ac_config_files src/libgphobos.spec" | |
15262 | ||
15263 | ac_config_files="$ac_config_files testsuite/testsuite_flags" | |
15264 | ||
15265 | ||
5114391d | 15266 | # Multilibs need MULTISUBDIR defined correctly in certain makefiles so |
15267 | # that multilib installs will end up installed in the correct place. | |
15268 | # The testsuite needs it for multilib-aware ABI baseline files. | |
15269 | # To work around this not being passed down from config-ml.in -> | |
15270 | # srcdir/Makefile.am -> srcdir/{src,libdruntime,...}/Makefile.am, manually | |
15271 | # append it here. Only modify Makefiles that have just been created. | |
15272 | # | |
15273 | # Also, get rid of this simulated-VPATH thing that automake does. | |
15274 | ac_config_files="$ac_config_files libdruntime/Makefile src/Makefile testsuite/Makefile" | |
03385ed3 | 15275 | |
15276 | ||
15277 | cat >confcache <<\_ACEOF | |
15278 | # This file is a shell script that caches the results of configure | |
15279 | # tests run on this system so they can be shared between configure | |
15280 | # scripts and configure runs, see configure's option --config-cache. | |
15281 | # It is not useful on other systems. If it contains results you don't | |
15282 | # want to keep, you may remove or edit it. | |
15283 | # | |
15284 | # config.status only pays attention to the cache file if you give it | |
15285 | # the --recheck option to rerun configure. | |
15286 | # | |
15287 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
15288 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
15289 | # following values. | |
15290 | ||
15291 | _ACEOF | |
15292 | ||
15293 | # The following way of writing the cache mishandles newlines in values, | |
15294 | # but we know of no workaround that is simple, portable, and efficient. | |
15295 | # So, we kill variables containing newlines. | |
15296 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
15297 | # and sets the high bit in the cache file unless we assign to the vars. | |
15298 | ( | |
15299 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
15300 | eval ac_val=\$$ac_var | |
15301 | case $ac_val in #( | |
15302 | *${as_nl}*) | |
15303 | case $ac_var in #( | |
15304 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
15305 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
15306 | esac | |
15307 | case $ac_var in #( | |
15308 | _ | IFS | as_nl) ;; #( | |
15309 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
15310 | *) { eval $ac_var=; unset $ac_var;} ;; | |
15311 | esac ;; | |
15312 | esac | |
15313 | done | |
15314 | ||
15315 | (set) 2>&1 | | |
15316 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
15317 | *${as_nl}ac_space=\ *) | |
15318 | # `set' does not quote correctly, so add quotes: double-quote | |
15319 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
15320 | sed -n \ | |
15321 | "s/'/'\\\\''/g; | |
15322 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
15323 | ;; #( | |
15324 | *) | |
15325 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
15326 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
15327 | ;; | |
15328 | esac | | |
15329 | sort | |
15330 | ) | | |
15331 | sed ' | |
15332 | /^ac_cv_env_/b end | |
15333 | t clear | |
15334 | :clear | |
15335 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
15336 | t end | |
15337 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
15338 | :end' >>confcache | |
15339 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
15340 | if test -w "$cache_file"; then | |
f00f02a3 | 15341 | if test "x$cache_file" != "x/dev/null"; then |
03385ed3 | 15342 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
15343 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
f00f02a3 | 15344 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
15345 | cat confcache >"$cache_file" | |
15346 | else | |
15347 | case $cache_file in #( | |
15348 | */* | ?:*) | |
15349 | mv -f confcache "$cache_file"$$ && | |
15350 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
15351 | *) | |
15352 | mv -f confcache "$cache_file" ;; | |
15353 | esac | |
15354 | fi | |
15355 | fi | |
03385ed3 | 15356 | else |
15357 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
15358 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
15359 | fi | |
15360 | fi | |
15361 | rm -f confcache | |
15362 | ||
15363 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
15364 | # Let make expand exec_prefix. | |
15365 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
15366 | ||
15367 | DEFS=-DHAVE_CONFIG_H | |
15368 | ||
15369 | ac_libobjs= | |
15370 | ac_ltlibobjs= | |
f00f02a3 | 15371 | U= |
03385ed3 | 15372 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
15373 | # 1. Remove the extension, and $U if already installed. | |
15374 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
15375 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
15376 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
15377 | # will be set to the directory where LIBOBJS objects are built. | |
15378 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
15379 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
15380 | done | |
15381 | LIBOBJS=$ac_libobjs | |
15382 | ||
15383 | LTLIBOBJS=$ac_ltlibobjs | |
15384 | ||
15385 | ||
f00f02a3 | 15386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
15387 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
15388 | if test -n "$am_sleep_pid"; then | |
15389 | # Hide warnings about reused PIDs. | |
15390 | wait $am_sleep_pid 2>/dev/null | |
15391 | fi | |
15392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
15393 | $as_echo "done" >&6; } | |
03385ed3 | 15394 | if test -n "$EXEEXT"; then |
15395 | am__EXEEXT_TRUE= | |
15396 | am__EXEEXT_FALSE='#' | |
15397 | else | |
15398 | am__EXEEXT_TRUE='#' | |
15399 | am__EXEEXT_FALSE= | |
15400 | fi | |
15401 | ||
15402 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
f00f02a3 | 15403 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
03385ed3 | 15404 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
15405 | fi | |
20abc61c | 15406 | if test -z "${ENABLE_LIBPHOBOS_TRUE}" && test -z "${ENABLE_LIBPHOBOS_FALSE}"; then |
15407 | as_fn_error $? "conditional \"ENABLE_LIBPHOBOS\" was never defined. | |
15408 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
15409 | fi | |
03385ed3 | 15410 | if test -z "${DRUNTIME_GC_ENABLE_TRUE}" && test -z "${DRUNTIME_GC_ENABLE_FALSE}"; then |
f00f02a3 | 15411 | as_fn_error $? "conditional \"DRUNTIME_GC_ENABLE\" was never defined. |
03385ed3 | 15412 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
15413 | fi | |
15414 | if test -z "${DRUNTIME_OS_UNIX_TRUE}" && test -z "${DRUNTIME_OS_UNIX_FALSE}"; then | |
f00f02a3 | 15415 | as_fn_error $? "conditional \"DRUNTIME_OS_UNIX\" was never defined. |
03385ed3 | 15416 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
15417 | fi | |
15418 | if test -z "${DRUNTIME_OS_AIX_TRUE}" && test -z "${DRUNTIME_OS_AIX_FALSE}"; then | |
f00f02a3 | 15419 | as_fn_error $? "conditional \"DRUNTIME_OS_AIX\" was never defined. |
03385ed3 | 15420 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
15421 | fi | |
15422 | if test -z "${DRUNTIME_OS_ANDROID_TRUE}" && test -z "${DRUNTIME_OS_ANDROID_FALSE}"; then | |
f00f02a3 | 15423 | as_fn_error $? "conditional \"DRUNTIME_OS_ANDROID\" was never defined. |
03385ed3 | 15424 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
15425 | fi | |
15426 | if test -z "${DRUNTIME_OS_DARWIN_TRUE}" && test -z "${DRUNTIME_OS_DARWIN_FALSE}"; then | |
f00f02a3 | 15427 | as_fn_error $? "conditional \"DRUNTIME_OS_DARWIN\" was never defined. |
03385ed3 | 15428 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
15429 | fi | |
15430 | if test -z "${DRUNTIME_OS_DRAGONFLYBSD_TRUE}" && test -z "${DRUNTIME_OS_DRAGONFLYBSD_FALSE}"; then | |
f00f02a3 | 15431 | as_fn_error $? "conditional \"DRUNTIME_OS_DRAGONFLYBSD\" was never defined. |
03385ed3 | 15432 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
15433 | fi | |
15434 | if test -z "${DRUNTIME_OS_FREEBSD_TRUE}" && test -z "${DRUNTIME_OS_FREEBSD_FALSE}"; then | |
f00f02a3 | 15435 | as_fn_error $? "conditional \"DRUNTIME_OS_FREEBSD\" was never defined. |
03385ed3 | 15436 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
15437 | fi | |
15438 | if test -z "${DRUNTIME_OS_NETBSD_TRUE}" && test -z "${DRUNTIME_OS_NETBSD_FALSE}"; then | |
f00f02a3 | 15439 | as_fn_error $? "conditional \"DRUNTIME_OS_NETBSD\" was never defined. |
03385ed3 | 15440 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
15441 | fi | |
15442 | if test -z "${DRUNTIME_OS_OPENBSD_TRUE}" && test -z "${DRUNTIME_OS_OPENBSD_FALSE}"; then | |
f00f02a3 | 15443 | as_fn_error $? "conditional \"DRUNTIME_OS_OPENBSD\" was never defined. |
03385ed3 | 15444 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
15445 | fi | |
15446 | if test -z "${DRUNTIME_OS_LINUX_TRUE}" && test -z "${DRUNTIME_OS_LINUX_FALSE}"; then | |
f00f02a3 | 15447 | as_fn_error $? "conditional \"DRUNTIME_OS_LINUX\" was never defined. |
03385ed3 | 15448 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
15449 | fi | |
15450 | if test -z "${DRUNTIME_OS_MINGW_TRUE}" && test -z "${DRUNTIME_OS_MINGW_FALSE}"; then | |
f00f02a3 | 15451 | as_fn_error $? "conditional \"DRUNTIME_OS_MINGW\" was never defined. |
03385ed3 | 15452 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
15453 | fi | |
15454 | if test -z "${DRUNTIME_OS_SOLARIS_TRUE}" && test -z "${DRUNTIME_OS_SOLARIS_FALSE}"; then | |
f00f02a3 | 15455 | as_fn_error $? "conditional \"DRUNTIME_OS_SOLARIS\" was never defined. |
03385ed3 | 15456 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
15457 | fi | |
15458 | if test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE}" && test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE}"; then | |
f00f02a3 | 15459 | as_fn_error $? "conditional \"DRUNTIME_OS_ARM_EABI_UNWINDER\" was never defined. |
03385ed3 | 15460 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
15461 | fi | |
e06fcd5a | 15462 | if test -z "${DRUNTIME_OS_MINFO_BRACKETING_TRUE}" && test -z "${DRUNTIME_OS_MINFO_BRACKETING_FALSE}"; then |
15463 | as_fn_error $? "conditional \"DRUNTIME_OS_MINFO_BRACKETING\" was never defined. | |
15464 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
15465 | fi | |
03385ed3 | 15466 | |
f00f02a3 | 15467 | : "${CONFIG_STATUS=./config.status}" |
03385ed3 | 15468 | ac_write_fail=0 |
15469 | ac_clean_files_save=$ac_clean_files | |
15470 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
15471 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
15472 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
15473 | as_write_fail=0 | |
15474 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
15475 | #! $SHELL | |
15476 | # Generated by $as_me. | |
15477 | # Run this file to recreate the current configuration. | |
15478 | # Compiler output produced by configure, useful for debugging | |
15479 | # configure, is in config.log if it exists. | |
15480 | ||
15481 | debug=false | |
15482 | ac_cs_recheck=false | |
15483 | ac_cs_silent=false | |
15484 | ||
15485 | SHELL=\${CONFIG_SHELL-$SHELL} | |
15486 | export SHELL | |
15487 | _ASEOF | |
15488 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
15489 | ## -------------------- ## | |
15490 | ## M4sh Initialization. ## | |
15491 | ## -------------------- ## | |
15492 | ||
15493 | # Be more Bourne compatible | |
15494 | DUALCASE=1; export DUALCASE # for MKS sh | |
15495 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
15496 | emulate sh | |
15497 | NULLCMD=: | |
15498 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
15499 | # is contrary to our usage. Disable this feature. | |
15500 | alias -g '${1+"$@"}'='"$@"' | |
15501 | setopt NO_GLOB_SUBST | |
15502 | else | |
15503 | case `(set -o) 2>/dev/null` in #( | |
15504 | *posix*) : | |
15505 | set -o posix ;; #( | |
15506 | *) : | |
15507 | ;; | |
15508 | esac | |
15509 | fi | |
15510 | ||
15511 | ||
15512 | as_nl=' | |
15513 | ' | |
15514 | export as_nl | |
15515 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
15516 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
15517 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
15518 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
15519 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
15520 | # but without wasting forks for bash or zsh. | |
15521 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
15522 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
15523 | as_echo='print -r --' | |
15524 | as_echo_n='print -rn --' | |
15525 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
15526 | as_echo='printf %s\n' | |
15527 | as_echo_n='printf %s' | |
15528 | else | |
15529 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
15530 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
15531 | as_echo_n='/usr/ucb/echo -n' | |
15532 | else | |
15533 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
15534 | as_echo_n_body='eval | |
15535 | arg=$1; | |
15536 | case $arg in #( | |
15537 | *"$as_nl"*) | |
15538 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
15539 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
15540 | esac; | |
15541 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
15542 | ' | |
15543 | export as_echo_n_body | |
15544 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
15545 | fi | |
15546 | export as_echo_body | |
15547 | as_echo='sh -c $as_echo_body as_echo' | |
15548 | fi | |
15549 | ||
15550 | # The user is always right. | |
15551 | if test "${PATH_SEPARATOR+set}" != set; then | |
15552 | PATH_SEPARATOR=: | |
15553 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
15554 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
15555 | PATH_SEPARATOR=';' | |
15556 | } | |
15557 | fi | |
15558 | ||
15559 | ||
15560 | # IFS | |
15561 | # We need space, tab and new line, in precisely that order. Quoting is | |
15562 | # there to prevent editors from complaining about space-tab. | |
15563 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
15564 | # splitting by setting IFS to empty value.) | |
15565 | IFS=" "" $as_nl" | |
15566 | ||
15567 | # Find who we are. Look in the path if we contain no directory separator. | |
f00f02a3 | 15568 | as_myself= |
03385ed3 | 15569 | case $0 in #(( |
15570 | *[\\/]* ) as_myself=$0 ;; | |
15571 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15572 | for as_dir in $PATH | |
15573 | do | |
15574 | IFS=$as_save_IFS | |
15575 | test -z "$as_dir" && as_dir=. | |
15576 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
15577 | done | |
15578 | IFS=$as_save_IFS | |
15579 | ||
15580 | ;; | |
15581 | esac | |
15582 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
15583 | # in which case we are not to be found in the path. | |
15584 | if test "x$as_myself" = x; then | |
15585 | as_myself=$0 | |
15586 | fi | |
15587 | if test ! -f "$as_myself"; then | |
15588 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
15589 | exit 1 | |
15590 | fi | |
15591 | ||
15592 | # Unset variables that we do not need and which cause bugs (e.g. in | |
15593 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
15594 | # suppresses any "Segmentation fault" message there. '((' could | |
15595 | # trigger a bug in pdksh 5.2.14. | |
15596 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
15597 | do eval test x\${$as_var+set} = xset \ | |
15598 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
15599 | done | |
15600 | PS1='$ ' | |
15601 | PS2='> ' | |
15602 | PS4='+ ' | |
15603 | ||
15604 | # NLS nuisances. | |
15605 | LC_ALL=C | |
15606 | export LC_ALL | |
15607 | LANGUAGE=C | |
15608 | export LANGUAGE | |
15609 | ||
15610 | # CDPATH. | |
15611 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
15612 | ||
15613 | ||
f00f02a3 | 15614 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
15615 | # ---------------------------------------- | |
03385ed3 | 15616 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
15617 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
f00f02a3 | 15618 | # script with STATUS, using 1 if that was 0. |
03385ed3 | 15619 | as_fn_error () |
15620 | { | |
f00f02a3 | 15621 | as_status=$1; test $as_status -eq 0 && as_status=1 |
15622 | if test "$4"; then | |
15623 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
15624 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
03385ed3 | 15625 | fi |
f00f02a3 | 15626 | $as_echo "$as_me: error: $2" >&2 |
03385ed3 | 15627 | as_fn_exit $as_status |
15628 | } # as_fn_error | |
15629 | ||
15630 | ||
15631 | # as_fn_set_status STATUS | |
15632 | # ----------------------- | |
15633 | # Set $? to STATUS, without forking. | |
15634 | as_fn_set_status () | |
15635 | { | |
15636 | return $1 | |
15637 | } # as_fn_set_status | |
15638 | ||
15639 | # as_fn_exit STATUS | |
15640 | # ----------------- | |
15641 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
15642 | as_fn_exit () | |
15643 | { | |
15644 | set +e | |
15645 | as_fn_set_status $1 | |
15646 | exit $1 | |
15647 | } # as_fn_exit | |
15648 | ||
15649 | # as_fn_unset VAR | |
15650 | # --------------- | |
15651 | # Portably unset VAR. | |
15652 | as_fn_unset () | |
15653 | { | |
15654 | { eval $1=; unset $1;} | |
15655 | } | |
15656 | as_unset=as_fn_unset | |
15657 | # as_fn_append VAR VALUE | |
15658 | # ---------------------- | |
15659 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
15660 | # advantage of any shell optimizations that allow amortized linear growth over | |
15661 | # repeated appends, instead of the typical quadratic growth present in naive | |
15662 | # implementations. | |
15663 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
15664 | eval 'as_fn_append () | |
15665 | { | |
15666 | eval $1+=\$2 | |
15667 | }' | |
15668 | else | |
15669 | as_fn_append () | |
15670 | { | |
15671 | eval $1=\$$1\$2 | |
15672 | } | |
15673 | fi # as_fn_append | |
15674 | ||
15675 | # as_fn_arith ARG... | |
15676 | # ------------------ | |
15677 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
15678 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
15679 | # must be portable across $(()) and expr. | |
15680 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
15681 | eval 'as_fn_arith () | |
15682 | { | |
15683 | as_val=$(( $* )) | |
15684 | }' | |
15685 | else | |
15686 | as_fn_arith () | |
15687 | { | |
15688 | as_val=`expr "$@" || test $? -eq 1` | |
15689 | } | |
15690 | fi # as_fn_arith | |
15691 | ||
15692 | ||
15693 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
15694 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
15695 | as_expr=expr | |
15696 | else | |
15697 | as_expr=false | |
15698 | fi | |
15699 | ||
15700 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
15701 | as_basename=basename | |
15702 | else | |
15703 | as_basename=false | |
15704 | fi | |
15705 | ||
15706 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
15707 | as_dirname=dirname | |
15708 | else | |
15709 | as_dirname=false | |
15710 | fi | |
15711 | ||
15712 | as_me=`$as_basename -- "$0" || | |
15713 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
15714 | X"$0" : 'X\(//\)$' \| \ | |
15715 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
15716 | $as_echo X/"$0" | | |
15717 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
15718 | s//\1/ | |
15719 | q | |
15720 | } | |
15721 | /^X\/\(\/\/\)$/{ | |
15722 | s//\1/ | |
15723 | q | |
15724 | } | |
15725 | /^X\/\(\/\).*/{ | |
15726 | s//\1/ | |
15727 | q | |
15728 | } | |
15729 | s/.*/./; q'` | |
15730 | ||
15731 | # Avoid depending upon Character Ranges. | |
15732 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
15733 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
15734 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
15735 | as_cr_digits='0123456789' | |
15736 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
15737 | ||
15738 | ECHO_C= ECHO_N= ECHO_T= | |
15739 | case `echo -n x` in #((((( | |
15740 | -n*) | |
15741 | case `echo 'xy\c'` in | |
15742 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
15743 | xy) ECHO_C='\c';; | |
15744 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
15745 | ECHO_T=' ';; | |
15746 | esac;; | |
15747 | *) | |
15748 | ECHO_N='-n';; | |
15749 | esac | |
15750 | ||
15751 | rm -f conf$$ conf$$.exe conf$$.file | |
15752 | if test -d conf$$.dir; then | |
15753 | rm -f conf$$.dir/conf$$.file | |
15754 | else | |
15755 | rm -f conf$$.dir | |
15756 | mkdir conf$$.dir 2>/dev/null | |
15757 | fi | |
15758 | if (echo >conf$$.file) 2>/dev/null; then | |
15759 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
15760 | as_ln_s='ln -s' | |
15761 | # ... but there are two gotchas: | |
15762 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
15763 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
f00f02a3 | 15764 | # In both cases, we have to default to `cp -pR'. |
03385ed3 | 15765 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
f00f02a3 | 15766 | as_ln_s='cp -pR' |
03385ed3 | 15767 | elif ln conf$$.file conf$$ 2>/dev/null; then |
15768 | as_ln_s=ln | |
15769 | else | |
f00f02a3 | 15770 | as_ln_s='cp -pR' |
03385ed3 | 15771 | fi |
15772 | else | |
f00f02a3 | 15773 | as_ln_s='cp -pR' |
03385ed3 | 15774 | fi |
15775 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
15776 | rmdir conf$$.dir 2>/dev/null | |
15777 | ||
15778 | ||
15779 | # as_fn_mkdir_p | |
15780 | # ------------- | |
15781 | # Create "$as_dir" as a directory, including parents if necessary. | |
15782 | as_fn_mkdir_p () | |
15783 | { | |
15784 | ||
15785 | case $as_dir in #( | |
15786 | -*) as_dir=./$as_dir;; | |
15787 | esac | |
15788 | test -d "$as_dir" || eval $as_mkdir_p || { | |
15789 | as_dirs= | |
15790 | while :; do | |
15791 | case $as_dir in #( | |
15792 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
15793 | *) as_qdir=$as_dir;; | |
15794 | esac | |
15795 | as_dirs="'$as_qdir' $as_dirs" | |
15796 | as_dir=`$as_dirname -- "$as_dir" || | |
15797 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15798 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
15799 | X"$as_dir" : 'X\(//\)$' \| \ | |
15800 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
15801 | $as_echo X"$as_dir" | | |
15802 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15803 | s//\1/ | |
15804 | q | |
15805 | } | |
15806 | /^X\(\/\/\)[^/].*/{ | |
15807 | s//\1/ | |
15808 | q | |
15809 | } | |
15810 | /^X\(\/\/\)$/{ | |
15811 | s//\1/ | |
15812 | q | |
15813 | } | |
15814 | /^X\(\/\).*/{ | |
15815 | s//\1/ | |
15816 | q | |
15817 | } | |
15818 | s/.*/./; q'` | |
15819 | test -d "$as_dir" && break | |
15820 | done | |
15821 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
f00f02a3 | 15822 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
03385ed3 | 15823 | |
15824 | ||
15825 | } # as_fn_mkdir_p | |
15826 | if mkdir -p . 2>/dev/null; then | |
15827 | as_mkdir_p='mkdir -p "$as_dir"' | |
15828 | else | |
15829 | test -d ./-p && rmdir ./-p | |
15830 | as_mkdir_p=false | |
15831 | fi | |
15832 | ||
f00f02a3 | 15833 | |
15834 | # as_fn_executable_p FILE | |
15835 | # ----------------------- | |
15836 | # Test if FILE is an executable regular file. | |
15837 | as_fn_executable_p () | |
15838 | { | |
15839 | test -f "$1" && test -x "$1" | |
15840 | } # as_fn_executable_p | |
15841 | as_test_x='test -x' | |
15842 | as_executable_p=as_fn_executable_p | |
03385ed3 | 15843 | |
15844 | # Sed expression to map a string onto a valid CPP name. | |
15845 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
15846 | ||
15847 | # Sed expression to map a string onto a valid variable name. | |
15848 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
15849 | ||
15850 | ||
15851 | exec 6>&1 | |
15852 | ## ----------------------------------- ## | |
15853 | ## Main body of $CONFIG_STATUS script. ## | |
15854 | ## ----------------------------------- ## | |
15855 | _ASEOF | |
15856 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
15857 | ||
15858 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15859 | # Save the log message, to keep $0 and so on meaningful, and to | |
15860 | # report actual input values of CONFIG_FILES etc. instead of their | |
15861 | # values after options handling. | |
15862 | ac_log=" | |
15863 | This file was extended by package-unused $as_me version-unused, which was | |
f00f02a3 | 15864 | generated by GNU Autoconf 2.69. Invocation command line was |
03385ed3 | 15865 | |
15866 | CONFIG_FILES = $CONFIG_FILES | |
15867 | CONFIG_HEADERS = $CONFIG_HEADERS | |
15868 | CONFIG_LINKS = $CONFIG_LINKS | |
15869 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
15870 | $ $0 $@ | |
15871 | ||
15872 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
15873 | " | |
15874 | ||
15875 | _ACEOF | |
15876 | ||
15877 | case $ac_config_files in *" | |
15878 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
15879 | esac | |
15880 | ||
15881 | case $ac_config_headers in *" | |
15882 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
15883 | esac | |
15884 | ||
15885 | ||
15886 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15887 | # Files that config.status was made for. | |
15888 | config_files="$ac_config_files" | |
15889 | config_headers="$ac_config_headers" | |
15890 | config_commands="$ac_config_commands" | |
15891 | ||
15892 | _ACEOF | |
15893 | ||
15894 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15895 | ac_cs_usage="\ | |
15896 | \`$as_me' instantiates files and other configuration actions | |
15897 | from templates according to the current configuration. Unless the files | |
15898 | and actions are specified as TAGs, all are instantiated by default. | |
15899 | ||
15900 | Usage: $0 [OPTION]... [TAG]... | |
15901 | ||
15902 | -h, --help print this help, then exit | |
15903 | -V, --version print version number and configuration settings, then exit | |
f00f02a3 | 15904 | --config print configuration, then exit |
03385ed3 | 15905 | -q, --quiet, --silent |
15906 | do not print progress messages | |
15907 | -d, --debug don't remove temporary files | |
15908 | --recheck update $as_me by reconfiguring in the same conditions | |
15909 | --file=FILE[:TEMPLATE] | |
15910 | instantiate the configuration file FILE | |
15911 | --header=FILE[:TEMPLATE] | |
15912 | instantiate the configuration header FILE | |
15913 | ||
15914 | Configuration files: | |
15915 | $config_files | |
15916 | ||
15917 | Configuration headers: | |
15918 | $config_headers | |
15919 | ||
15920 | Configuration commands: | |
15921 | $config_commands | |
15922 | ||
15923 | Report bugs to the package provider." | |
15924 | ||
15925 | _ACEOF | |
15926 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
f00f02a3 | 15927 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
03385ed3 | 15928 | ac_cs_version="\\ |
15929 | package-unused config.status version-unused | |
f00f02a3 | 15930 | configured by $0, generated by GNU Autoconf 2.69, |
15931 | with options \\"\$ac_cs_config\\" | |
03385ed3 | 15932 | |
e06fcd5a | 15933 | Copyright (C) 2012 Free Software Foundation, Inc. |
03385ed3 | 15934 | This config.status script is free software; the Free Software Foundation |
15935 | gives unlimited permission to copy, distribute and modify it." | |
15936 | ||
15937 | ac_pwd='$ac_pwd' | |
15938 | srcdir='$srcdir' | |
15939 | INSTALL='$INSTALL' | |
15940 | MKDIR_P='$MKDIR_P' | |
15941 | AWK='$AWK' | |
15942 | test -n "\$AWK" || AWK=awk | |
15943 | _ACEOF | |
15944 | ||
15945 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15946 | # The default lists apply if the user does not specify any file. | |
15947 | ac_need_defaults=: | |
15948 | while test $# != 0 | |
15949 | do | |
15950 | case $1 in | |
f00f02a3 | 15951 | --*=?*) |
03385ed3 | 15952 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
15953 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
15954 | ac_shift=: | |
15955 | ;; | |
f00f02a3 | 15956 | --*=) |
15957 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
15958 | ac_optarg= | |
15959 | ac_shift=: | |
15960 | ;; | |
03385ed3 | 15961 | *) |
15962 | ac_option=$1 | |
15963 | ac_optarg=$2 | |
15964 | ac_shift=shift | |
15965 | ;; | |
15966 | esac | |
15967 | ||
15968 | case $ac_option in | |
15969 | # Handling of the options. | |
15970 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
15971 | ac_cs_recheck=: ;; | |
15972 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
15973 | $as_echo "$ac_cs_version"; exit ;; | |
f00f02a3 | 15974 | --config | --confi | --conf | --con | --co | --c ) |
15975 | $as_echo "$ac_cs_config"; exit ;; | |
03385ed3 | 15976 | --debug | --debu | --deb | --de | --d | -d ) |
15977 | debug=: ;; | |
15978 | --file | --fil | --fi | --f ) | |
15979 | $ac_shift | |
15980 | case $ac_optarg in | |
15981 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
f00f02a3 | 15982 | '') as_fn_error $? "missing file argument" ;; |
03385ed3 | 15983 | esac |
15984 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
15985 | ac_need_defaults=false;; | |
15986 | --header | --heade | --head | --hea ) | |
15987 | $ac_shift | |
15988 | case $ac_optarg in | |
15989 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
15990 | esac | |
15991 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
15992 | ac_need_defaults=false;; | |
15993 | --he | --h) | |
15994 | # Conflict between --help and --header | |
f00f02a3 | 15995 | as_fn_error $? "ambiguous option: \`$1' |
03385ed3 | 15996 | Try \`$0 --help' for more information.";; |
15997 | --help | --hel | -h ) | |
15998 | $as_echo "$ac_cs_usage"; exit ;; | |
15999 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
16000 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
16001 | ac_cs_silent=: ;; | |
16002 | ||
16003 | # This is an error. | |
f00f02a3 | 16004 | -*) as_fn_error $? "unrecognized option: \`$1' |
03385ed3 | 16005 | Try \`$0 --help' for more information." ;; |
16006 | ||
16007 | *) as_fn_append ac_config_targets " $1" | |
16008 | ac_need_defaults=false ;; | |
16009 | ||
16010 | esac | |
16011 | shift | |
16012 | done | |
16013 | ||
16014 | ac_configure_extra_args= | |
16015 | ||
16016 | if $ac_cs_silent; then | |
16017 | exec 6>/dev/null | |
16018 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
16019 | fi | |
16020 | ||
16021 | _ACEOF | |
16022 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16023 | if \$ac_cs_recheck; then | |
f00f02a3 | 16024 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
03385ed3 | 16025 | shift |
16026 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
16027 | CONFIG_SHELL='$SHELL' | |
16028 | export CONFIG_SHELL | |
16029 | exec "\$@" | |
16030 | fi | |
16031 | ||
16032 | _ACEOF | |
16033 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16034 | exec 5>>config.log | |
16035 | { | |
16036 | echo | |
16037 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
16038 | ## Running $as_me. ## | |
16039 | _ASBOX | |
16040 | $as_echo "$ac_log" | |
16041 | } >&5 | |
16042 | ||
16043 | _ACEOF | |
16044 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16045 | # | |
16046 | # INIT-COMMANDS | |
16047 | # | |
16048 | ||
16049 | srcdir="$srcdir" | |
16050 | host="$host" | |
16051 | target="$target" | |
16052 | with_multisubdir="$with_multisubdir" | |
16053 | with_multisrctop="$with_multisrctop" | |
16054 | with_target_subdir="$with_target_subdir" | |
16055 | ac_configure_args="${multilib_arg} ${ac_configure_args}" | |
16056 | multi_basedir="$multi_basedir" | |
16057 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
16058 | CC="$CC" | |
16059 | CXX="$CXX" | |
16060 | GFORTRAN="$GFORTRAN" | |
16061 | GDC="$GDC" | |
16062 | ||
16063 | ||
16064 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
16065 | # if CDPATH is set. | |
16066 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
16067 | ||
16068 | sed_quote_subst='$sed_quote_subst' | |
16069 | double_quote_subst='$double_quote_subst' | |
16070 | delay_variable_subst='$delay_variable_subst' | |
16071 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | |
16072 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
16073 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
16074 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
16075 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
16076 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
16077 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
16078 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
16079 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
16080 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
16081 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
16082 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
16083 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
16084 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
16085 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
16086 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
16087 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
16088 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
16089 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
16090 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
16091 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
16092 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
16093 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
16094 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
16095 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
16096 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
16097 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
16098 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
16099 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
16100 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
16101 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
16102 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
16103 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
16104 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
16105 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
16106 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
16107 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
16108 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
16109 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
16110 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
16111 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
16112 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
16113 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
16114 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
16115 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
16116 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
16117 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
16118 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
16119 | 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"`' | |
16120 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
16121 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
16122 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
16123 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
16124 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
16125 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
16126 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
16127 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
16128 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
16129 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
16130 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
16131 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
16132 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
16133 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
16134 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
16135 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
16136 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
16137 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
16138 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
16139 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
16140 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
16141 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
16142 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
16143 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
16144 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
16145 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
16146 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
16147 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
16148 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
16149 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
16150 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
16151 | hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' | |
16152 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
16153 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
16154 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
16155 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
16156 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
16157 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
16158 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
16159 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
16160 | fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' | |
16161 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
16162 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
16163 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
16164 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
16165 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
16166 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
16167 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
16168 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
16169 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
16170 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
16171 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
16172 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
16173 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
16174 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
16175 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
16176 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
16177 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
16178 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
16179 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
16180 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
16181 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
16182 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
16183 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
16184 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
16185 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
16186 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
16187 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
16188 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
16189 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
16190 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
16191 | LD_D='`$ECHO "$LD_D" | $SED "$delay_single_quote_subst"`' | |
16192 | reload_flag_D='`$ECHO "$reload_flag_D" | $SED "$delay_single_quote_subst"`' | |
16193 | reload_cmds_D='`$ECHO "$reload_cmds_D" | $SED "$delay_single_quote_subst"`' | |
16194 | old_archive_cmds_D='`$ECHO "$old_archive_cmds_D" | $SED "$delay_single_quote_subst"`' | |
16195 | compiler_D='`$ECHO "$compiler_D" | $SED "$delay_single_quote_subst"`' | |
16196 | GCC_D='`$ECHO "$GCC_D" | $SED "$delay_single_quote_subst"`' | |
16197 | lt_prog_compiler_no_builtin_flag_D='`$ECHO "$lt_prog_compiler_no_builtin_flag_D" | $SED "$delay_single_quote_subst"`' | |
16198 | lt_prog_compiler_wl_D='`$ECHO "$lt_prog_compiler_wl_D" | $SED "$delay_single_quote_subst"`' | |
16199 | lt_prog_compiler_pic_D='`$ECHO "$lt_prog_compiler_pic_D" | $SED "$delay_single_quote_subst"`' | |
16200 | lt_prog_compiler_static_D='`$ECHO "$lt_prog_compiler_static_D" | $SED "$delay_single_quote_subst"`' | |
16201 | lt_cv_prog_compiler_c_o_D='`$ECHO "$lt_cv_prog_compiler_c_o_D" | $SED "$delay_single_quote_subst"`' | |
16202 | archive_cmds_need_lc_D='`$ECHO "$archive_cmds_need_lc_D" | $SED "$delay_single_quote_subst"`' | |
16203 | enable_shared_with_static_runtimes_D='`$ECHO "$enable_shared_with_static_runtimes_D" | $SED "$delay_single_quote_subst"`' | |
16204 | export_dynamic_flag_spec_D='`$ECHO "$export_dynamic_flag_spec_D" | $SED "$delay_single_quote_subst"`' | |
16205 | whole_archive_flag_spec_D='`$ECHO "$whole_archive_flag_spec_D" | $SED "$delay_single_quote_subst"`' | |
16206 | compiler_needs_object_D='`$ECHO "$compiler_needs_object_D" | $SED "$delay_single_quote_subst"`' | |
16207 | old_archive_from_new_cmds_D='`$ECHO "$old_archive_from_new_cmds_D" | $SED "$delay_single_quote_subst"`' | |
16208 | old_archive_from_expsyms_cmds_D='`$ECHO "$old_archive_from_expsyms_cmds_D" | $SED "$delay_single_quote_subst"`' | |
16209 | archive_cmds_D='`$ECHO "$archive_cmds_D" | $SED "$delay_single_quote_subst"`' | |
16210 | archive_expsym_cmds_D='`$ECHO "$archive_expsym_cmds_D" | $SED "$delay_single_quote_subst"`' | |
16211 | module_cmds_D='`$ECHO "$module_cmds_D" | $SED "$delay_single_quote_subst"`' | |
16212 | module_expsym_cmds_D='`$ECHO "$module_expsym_cmds_D" | $SED "$delay_single_quote_subst"`' | |
16213 | with_gnu_ld_D='`$ECHO "$with_gnu_ld_D" | $SED "$delay_single_quote_subst"`' | |
16214 | allow_undefined_flag_D='`$ECHO "$allow_undefined_flag_D" | $SED "$delay_single_quote_subst"`' | |
16215 | no_undefined_flag_D='`$ECHO "$no_undefined_flag_D" | $SED "$delay_single_quote_subst"`' | |
16216 | hardcode_libdir_flag_spec_D='`$ECHO "$hardcode_libdir_flag_spec_D" | $SED "$delay_single_quote_subst"`' | |
16217 | hardcode_libdir_flag_spec_ld_D='`$ECHO "$hardcode_libdir_flag_spec_ld_D" | $SED "$delay_single_quote_subst"`' | |
16218 | hardcode_libdir_separator_D='`$ECHO "$hardcode_libdir_separator_D" | $SED "$delay_single_quote_subst"`' | |
16219 | hardcode_direct_D='`$ECHO "$hardcode_direct_D" | $SED "$delay_single_quote_subst"`' | |
16220 | hardcode_direct_absolute_D='`$ECHO "$hardcode_direct_absolute_D" | $SED "$delay_single_quote_subst"`' | |
16221 | hardcode_minus_L_D='`$ECHO "$hardcode_minus_L_D" | $SED "$delay_single_quote_subst"`' | |
16222 | hardcode_shlibpath_var_D='`$ECHO "$hardcode_shlibpath_var_D" | $SED "$delay_single_quote_subst"`' | |
16223 | hardcode_automatic_D='`$ECHO "$hardcode_automatic_D" | $SED "$delay_single_quote_subst"`' | |
16224 | inherit_rpath_D='`$ECHO "$inherit_rpath_D" | $SED "$delay_single_quote_subst"`' | |
16225 | link_all_deplibs_D='`$ECHO "$link_all_deplibs_D" | $SED "$delay_single_quote_subst"`' | |
16226 | fix_srcfile_path_D='`$ECHO "$fix_srcfile_path_D" | $SED "$delay_single_quote_subst"`' | |
16227 | always_export_symbols_D='`$ECHO "$always_export_symbols_D" | $SED "$delay_single_quote_subst"`' | |
16228 | export_symbols_cmds_D='`$ECHO "$export_symbols_cmds_D" | $SED "$delay_single_quote_subst"`' | |
16229 | exclude_expsyms_D='`$ECHO "$exclude_expsyms_D" | $SED "$delay_single_quote_subst"`' | |
16230 | include_expsyms_D='`$ECHO "$include_expsyms_D" | $SED "$delay_single_quote_subst"`' | |
16231 | prelink_cmds_D='`$ECHO "$prelink_cmds_D" | $SED "$delay_single_quote_subst"`' | |
16232 | file_list_spec_D='`$ECHO "$file_list_spec_D" | $SED "$delay_single_quote_subst"`' | |
16233 | hardcode_action_D='`$ECHO "$hardcode_action_D" | $SED "$delay_single_quote_subst"`' | |
16234 | ||
16235 | LTCC='$LTCC' | |
16236 | LTCFLAGS='$LTCFLAGS' | |
16237 | compiler='$compiler_DEFAULT' | |
16238 | ||
16239 | # A function that is used when there is no print builtin or printf. | |
16240 | func_fallback_echo () | |
16241 | { | |
16242 | eval 'cat <<_LTECHO_EOF | |
16243 | \$1 | |
16244 | _LTECHO_EOF' | |
16245 | } | |
16246 | ||
16247 | # Quote evaled strings. | |
16248 | for var in SHELL \ | |
16249 | ECHO \ | |
16250 | SED \ | |
16251 | GREP \ | |
16252 | EGREP \ | |
16253 | FGREP \ | |
16254 | LD \ | |
16255 | NM \ | |
16256 | LN_S \ | |
16257 | lt_SP2NL \ | |
16258 | lt_NL2SP \ | |
16259 | reload_flag \ | |
16260 | OBJDUMP \ | |
16261 | deplibs_check_method \ | |
16262 | file_magic_cmd \ | |
16263 | AR \ | |
16264 | AR_FLAGS \ | |
16265 | STRIP \ | |
16266 | RANLIB \ | |
16267 | CC \ | |
16268 | CFLAGS \ | |
16269 | compiler \ | |
16270 | lt_cv_sys_global_symbol_pipe \ | |
16271 | lt_cv_sys_global_symbol_to_cdecl \ | |
16272 | lt_cv_sys_global_symbol_to_c_name_address \ | |
16273 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
16274 | lt_prog_compiler_no_builtin_flag \ | |
16275 | lt_prog_compiler_wl \ | |
16276 | lt_prog_compiler_pic \ | |
16277 | lt_prog_compiler_static \ | |
16278 | lt_cv_prog_compiler_c_o \ | |
16279 | need_locks \ | |
16280 | DSYMUTIL \ | |
16281 | NMEDIT \ | |
16282 | LIPO \ | |
16283 | OTOOL \ | |
16284 | OTOOL64 \ | |
16285 | shrext_cmds \ | |
16286 | export_dynamic_flag_spec \ | |
16287 | whole_archive_flag_spec \ | |
16288 | compiler_needs_object \ | |
16289 | with_gnu_ld \ | |
16290 | allow_undefined_flag \ | |
16291 | no_undefined_flag \ | |
16292 | hardcode_libdir_flag_spec \ | |
16293 | hardcode_libdir_flag_spec_ld \ | |
16294 | hardcode_libdir_separator \ | |
16295 | fix_srcfile_path \ | |
16296 | exclude_expsyms \ | |
16297 | include_expsyms \ | |
16298 | file_list_spec \ | |
16299 | variables_saved_for_relink \ | |
16300 | libname_spec \ | |
16301 | library_names_spec \ | |
16302 | soname_spec \ | |
16303 | install_override_mode \ | |
16304 | finish_eval \ | |
16305 | old_striplib \ | |
16306 | striplib \ | |
16307 | LD_D \ | |
16308 | reload_flag_D \ | |
16309 | compiler_D \ | |
16310 | lt_prog_compiler_no_builtin_flag_D \ | |
16311 | lt_prog_compiler_wl_D \ | |
16312 | lt_prog_compiler_pic_D \ | |
16313 | lt_prog_compiler_static_D \ | |
16314 | lt_cv_prog_compiler_c_o_D \ | |
16315 | export_dynamic_flag_spec_D \ | |
16316 | whole_archive_flag_spec_D \ | |
16317 | compiler_needs_object_D \ | |
16318 | with_gnu_ld_D \ | |
16319 | allow_undefined_flag_D \ | |
16320 | no_undefined_flag_D \ | |
16321 | hardcode_libdir_flag_spec_D \ | |
16322 | hardcode_libdir_flag_spec_ld_D \ | |
16323 | hardcode_libdir_separator_D \ | |
16324 | fix_srcfile_path_D \ | |
16325 | exclude_expsyms_D \ | |
16326 | include_expsyms_D \ | |
16327 | file_list_spec_D; do | |
16328 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
16329 | *[\\\\\\\`\\"\\\$]*) | |
16330 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
16331 | ;; | |
16332 | *) | |
16333 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
16334 | ;; | |
16335 | esac | |
16336 | done | |
16337 | ||
16338 | # Double-quote double-evaled strings. | |
16339 | for var in reload_cmds \ | |
16340 | old_postinstall_cmds \ | |
16341 | old_postuninstall_cmds \ | |
16342 | old_archive_cmds \ | |
16343 | extract_expsyms_cmds \ | |
16344 | old_archive_from_new_cmds \ | |
16345 | old_archive_from_expsyms_cmds \ | |
16346 | archive_cmds \ | |
16347 | archive_expsym_cmds \ | |
16348 | module_cmds \ | |
16349 | module_expsym_cmds \ | |
16350 | export_symbols_cmds \ | |
16351 | prelink_cmds \ | |
16352 | postinstall_cmds \ | |
16353 | postuninstall_cmds \ | |
16354 | finish_cmds \ | |
16355 | sys_lib_search_path_spec \ | |
16356 | sys_lib_dlsearch_path_spec \ | |
16357 | reload_cmds_D \ | |
16358 | old_archive_cmds_D \ | |
16359 | old_archive_from_new_cmds_D \ | |
16360 | old_archive_from_expsyms_cmds_D \ | |
16361 | archive_cmds_D \ | |
16362 | archive_expsym_cmds_D \ | |
16363 | module_cmds_D \ | |
16364 | module_expsym_cmds_D \ | |
16365 | export_symbols_cmds_D \ | |
16366 | prelink_cmds_D; do | |
16367 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
16368 | *[\\\\\\\`\\"\\\$]*) | |
16369 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
16370 | ;; | |
16371 | *) | |
16372 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
16373 | ;; | |
16374 | esac | |
16375 | done | |
16376 | ||
16377 | ac_aux_dir='$ac_aux_dir' | |
16378 | xsi_shell='$xsi_shell' | |
16379 | lt_shell_append='$lt_shell_append' | |
16380 | ||
16381 | # See if we are running on zsh, and set the options which allow our | |
16382 | # commands through without removal of \ escapes INIT. | |
16383 | if test -n "\${ZSH_VERSION+set}" ; then | |
16384 | setopt NO_GLOB_SUBST | |
16385 | fi | |
16386 | ||
16387 | ||
16388 | PACKAGE='$PACKAGE' | |
16389 | VERSION='$VERSION' | |
16390 | TIMESTAMP='$TIMESTAMP' | |
16391 | RM='$RM' | |
16392 | ofile='$ofile' | |
16393 | ||
16394 | ||
16395 | ||
16396 | ||
16397 | ||
16398 | ||
03385ed3 | 16399 | _ACEOF |
16400 | ||
16401 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16402 | ||
16403 | # Handling of arguments. | |
16404 | for ac_config_target in $ac_config_targets | |
16405 | do | |
16406 | case $ac_config_target in | |
16407 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
16408 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
16409 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
16410 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
03385ed3 | 16411 | "libdruntime/gcc/config.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/config.d" ;; |
16412 | "libdruntime/gcc/libbacktrace.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/libbacktrace.d" ;; | |
16413 | "src/libgphobos.spec") CONFIG_FILES="$CONFIG_FILES src/libgphobos.spec" ;; | |
16414 | "testsuite/testsuite_flags") CONFIG_FILES="$CONFIG_FILES testsuite/testsuite_flags" ;; | |
5114391d | 16415 | "libdruntime/Makefile") CONFIG_FILES="$CONFIG_FILES libdruntime/Makefile" ;; |
16416 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | |
16417 | "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;; | |
03385ed3 | 16418 | |
f00f02a3 | 16419 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
03385ed3 | 16420 | esac |
16421 | done | |
16422 | ||
16423 | ||
16424 | # If the user did not use the arguments to specify the items to instantiate, | |
16425 | # then the envvar interface is used. Set only those that are not. | |
16426 | # We use the long form for the default assignment because of an extremely | |
16427 | # bizarre bug on SunOS 4.1.3. | |
16428 | if $ac_need_defaults; then | |
16429 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
16430 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
16431 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
16432 | fi | |
16433 | ||
16434 | # Have a temporary directory for convenience. Make it in the build tree | |
16435 | # simply because there is no reason against having it here, and in addition, | |
16436 | # creating and moving files from /tmp can sometimes cause problems. | |
16437 | # Hook for its removal unless debugging. | |
16438 | # Note that there is a small window in which the directory will not be cleaned: | |
16439 | # after its creation but before its name has been assigned to `$tmp'. | |
16440 | $debug || | |
16441 | { | |
f00f02a3 | 16442 | tmp= ac_tmp= |
03385ed3 | 16443 | trap 'exit_status=$? |
f00f02a3 | 16444 | : "${ac_tmp:=$tmp}" |
16445 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
03385ed3 | 16446 | ' 0 |
16447 | trap 'as_fn_exit 1' 1 2 13 15 | |
16448 | } | |
16449 | # Create a (secure) tmp directory for tmp files. | |
16450 | ||
16451 | { | |
16452 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
f00f02a3 | 16453 | test -d "$tmp" |
03385ed3 | 16454 | } || |
16455 | { | |
16456 | tmp=./conf$$-$RANDOM | |
16457 | (umask 077 && mkdir "$tmp") | |
f00f02a3 | 16458 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
16459 | ac_tmp=$tmp | |
03385ed3 | 16460 | |
16461 | # Set up the scripts for CONFIG_FILES section. | |
16462 | # No need to generate them if there are no CONFIG_FILES. | |
16463 | # This happens for instance with `./config.status config.h'. | |
16464 | if test -n "$CONFIG_FILES"; then | |
16465 | ||
e06fcd5a | 16466 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then |
16467 | ac_cs_awk_getline=: | |
16468 | ac_cs_awk_pipe_init= | |
16469 | ac_cs_awk_read_file=' | |
16470 | while ((getline aline < (F[key])) > 0) | |
16471 | print(aline) | |
16472 | close(F[key])' | |
16473 | ac_cs_awk_pipe_fini= | |
16474 | else | |
16475 | ac_cs_awk_getline=false | |
16476 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
16477 | ac_cs_awk_read_file=' | |
16478 | print "|#_!!_#|" | |
16479 | print "cat " F[key] " &&" | |
16480 | '$ac_cs_awk_pipe_init | |
16481 | # The final `:' finishes the AND list. | |
16482 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
16483 | fi | |
03385ed3 | 16484 | ac_cr=`echo X | tr X '\015'` |
16485 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
16486 | # But we know of no other shell where ac_cr would be empty at this | |
16487 | # point, so we can use a bashism as a fallback. | |
16488 | if test "x$ac_cr" = x; then | |
16489 | eval ac_cr=\$\'\\r\' | |
16490 | fi | |
16491 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
16492 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
f00f02a3 | 16493 | ac_cs_awk_cr='\\r' |
03385ed3 | 16494 | else |
16495 | ac_cs_awk_cr=$ac_cr | |
16496 | fi | |
16497 | ||
f00f02a3 | 16498 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
03385ed3 | 16499 | _ACEOF |
16500 | ||
e06fcd5a | 16501 | # Create commands to substitute file output variables. |
16502 | { | |
16503 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && | |
16504 | echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && | |
16505 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && | |
16506 | echo "_ACAWK" && | |
16507 | echo "_ACEOF" | |
16508 | } >conf$$files.sh && | |
16509 | . ./conf$$files.sh || | |
16510 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
16511 | rm -f conf$$files.sh | |
03385ed3 | 16512 | |
16513 | { | |
16514 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
16515 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
16516 | echo "_ACEOF" | |
16517 | } >conf$$subs.sh || | |
f00f02a3 | 16518 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
16519 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
03385ed3 | 16520 | ac_delim='%!_!# ' |
16521 | for ac_last_try in false false false false false :; do | |
16522 | . ./conf$$subs.sh || | |
f00f02a3 | 16523 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
03385ed3 | 16524 | |
16525 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
16526 | if test $ac_delim_n = $ac_delim_num; then | |
16527 | break | |
16528 | elif $ac_last_try; then | |
f00f02a3 | 16529 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
03385ed3 | 16530 | else |
16531 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
16532 | fi | |
16533 | done | |
16534 | rm -f conf$$subs.sh | |
16535 | ||
16536 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
f00f02a3 | 16537 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
03385ed3 | 16538 | _ACEOF |
16539 | sed -n ' | |
16540 | h | |
16541 | s/^/S["/; s/!.*/"]=/ | |
16542 | p | |
16543 | g | |
16544 | s/^[^!]*!// | |
16545 | :repl | |
16546 | t repl | |
16547 | s/'"$ac_delim"'$// | |
16548 | t delim | |
16549 | :nl | |
16550 | h | |
f00f02a3 | 16551 | s/\(.\{148\}\)..*/\1/ |
03385ed3 | 16552 | t more1 |
16553 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
16554 | p | |
16555 | n | |
16556 | b repl | |
16557 | :more1 | |
16558 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
16559 | p | |
16560 | g | |
16561 | s/.\{148\}// | |
16562 | t nl | |
16563 | :delim | |
16564 | h | |
f00f02a3 | 16565 | s/\(.\{148\}\)..*/\1/ |
03385ed3 | 16566 | t more2 |
16567 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
16568 | p | |
16569 | b | |
16570 | :more2 | |
16571 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
16572 | p | |
16573 | g | |
16574 | s/.\{148\}// | |
16575 | t delim | |
16576 | ' <conf$$subs.awk | sed ' | |
16577 | /^[^""]/{ | |
16578 | N | |
16579 | s/\n// | |
16580 | } | |
16581 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
16582 | rm -f conf$$subs.awk | |
16583 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16584 | _ACAWK | |
f00f02a3 | 16585 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
03385ed3 | 16586 | for (key in S) S_is_set[key] = 1 |
16587 | FS = "\a" | |
e06fcd5a | 16588 | \$ac_cs_awk_pipe_init |
03385ed3 | 16589 | } |
16590 | { | |
16591 | line = $ 0 | |
16592 | nfields = split(line, field, "@") | |
16593 | substed = 0 | |
16594 | len = length(field[1]) | |
16595 | for (i = 2; i < nfields; i++) { | |
16596 | key = field[i] | |
16597 | keylen = length(key) | |
16598 | if (S_is_set[key]) { | |
16599 | value = S[key] | |
16600 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
16601 | len += length(value) + length(field[++i]) | |
16602 | substed = 1 | |
16603 | } else | |
16604 | len += 1 + keylen | |
16605 | } | |
e06fcd5a | 16606 | if (nfields == 3 && !substed) { |
16607 | key = field[2] | |
16608 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
16609 | \$ac_cs_awk_read_file | |
16610 | next | |
16611 | } | |
16612 | } | |
03385ed3 | 16613 | print line |
16614 | } | |
e06fcd5a | 16615 | \$ac_cs_awk_pipe_fini |
03385ed3 | 16616 | _ACAWK |
16617 | _ACEOF | |
16618 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16619 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
16620 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
16621 | else | |
16622 | cat | |
f00f02a3 | 16623 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
16624 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
03385ed3 | 16625 | _ACEOF |
16626 | ||
f00f02a3 | 16627 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
16628 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
03385ed3 | 16629 | # trailing colons and then remove the whole line if VPATH becomes empty |
16630 | # (actually we leave an empty line to preserve line numbers). | |
16631 | if test "x$srcdir" = x.; then | |
f00f02a3 | 16632 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
16633 | h | |
16634 | s/// | |
16635 | s/^/:/ | |
16636 | s/[ ]*$/:/ | |
16637 | s/:\$(srcdir):/:/g | |
16638 | s/:\${srcdir}:/:/g | |
16639 | s/:@srcdir@:/:/g | |
16640 | s/^:*// | |
03385ed3 | 16641 | s/:*$// |
f00f02a3 | 16642 | x |
16643 | s/\(=[ ]*\).*/\1/ | |
16644 | G | |
16645 | s/\n// | |
03385ed3 | 16646 | s/^[^=]*=[ ]*$// |
16647 | }' | |
16648 | fi | |
16649 | ||
16650 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16651 | fi # test -n "$CONFIG_FILES" | |
16652 | ||
16653 | # Set up the scripts for CONFIG_HEADERS section. | |
16654 | # No need to generate them if there are no CONFIG_HEADERS. | |
16655 | # This happens for instance with `./config.status Makefile'. | |
16656 | if test -n "$CONFIG_HEADERS"; then | |
f00f02a3 | 16657 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
03385ed3 | 16658 | BEGIN { |
16659 | _ACEOF | |
16660 | ||
16661 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
16662 | # here-document in config.status, that substitutes the proper values into | |
16663 | # config.h.in to produce config.h. | |
16664 | ||
16665 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
16666 | # handling of long lines. | |
16667 | ac_delim='%!_!# ' | |
16668 | for ac_last_try in false false :; do | |
f00f02a3 | 16669 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
16670 | if test -z "$ac_tt"; then | |
03385ed3 | 16671 | break |
16672 | elif $ac_last_try; then | |
f00f02a3 | 16673 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
03385ed3 | 16674 | else |
16675 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
16676 | fi | |
16677 | done | |
16678 | ||
16679 | # For the awk script, D is an array of macro values keyed by name, | |
16680 | # likewise P contains macro parameters if any. Preserve backslash | |
16681 | # newline sequences. | |
16682 | ||
16683 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
16684 | sed -n ' | |
16685 | s/.\{148\}/&'"$ac_delim"'/g | |
16686 | t rset | |
16687 | :rset | |
16688 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
16689 | t def | |
16690 | d | |
16691 | :def | |
16692 | s/\\$// | |
16693 | t bsnl | |
16694 | s/["\\]/\\&/g | |
16695 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
16696 | D["\1"]=" \3"/p | |
16697 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
16698 | d | |
16699 | :bsnl | |
16700 | s/["\\]/\\&/g | |
16701 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
16702 | D["\1"]=" \3\\\\\\n"\\/p | |
16703 | t cont | |
16704 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
16705 | t cont | |
16706 | d | |
16707 | :cont | |
16708 | n | |
16709 | s/.\{148\}/&'"$ac_delim"'/g | |
16710 | t clear | |
16711 | :clear | |
16712 | s/\\$// | |
16713 | t bsnlc | |
16714 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
16715 | d | |
16716 | :bsnlc | |
16717 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
16718 | b cont | |
16719 | ' <confdefs.h | sed ' | |
16720 | s/'"$ac_delim"'/"\\\ | |
16721 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
16722 | ||
16723 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16724 | for (key in D) D_is_set[key] = 1 | |
16725 | FS = "\a" | |
16726 | } | |
16727 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
16728 | line = \$ 0 | |
16729 | split(line, arg, " ") | |
16730 | if (arg[1] == "#") { | |
16731 | defundef = arg[2] | |
16732 | mac1 = arg[3] | |
16733 | } else { | |
16734 | defundef = substr(arg[1], 2) | |
16735 | mac1 = arg[2] | |
16736 | } | |
16737 | split(mac1, mac2, "(") #) | |
16738 | macro = mac2[1] | |
16739 | prefix = substr(line, 1, index(line, defundef) - 1) | |
16740 | if (D_is_set[macro]) { | |
16741 | # Preserve the white space surrounding the "#". | |
16742 | print prefix "define", macro P[macro] D[macro] | |
16743 | next | |
16744 | } else { | |
16745 | # Replace #undef with comments. This is necessary, for example, | |
16746 | # in the case of _POSIX_SOURCE, which is predefined and required | |
16747 | # on some systems where configure will not decide to define it. | |
16748 | if (defundef == "undef") { | |
16749 | print "/*", prefix defundef, macro, "*/" | |
16750 | next | |
16751 | } | |
16752 | } | |
16753 | } | |
16754 | { print } | |
16755 | _ACAWK | |
16756 | _ACEOF | |
16757 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
f00f02a3 | 16758 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
03385ed3 | 16759 | fi # test -n "$CONFIG_HEADERS" |
16760 | ||
16761 | ||
16762 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
16763 | shift | |
16764 | for ac_tag | |
16765 | do | |
16766 | case $ac_tag in | |
16767 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
16768 | esac | |
16769 | case $ac_mode$ac_tag in | |
16770 | :[FHL]*:*);; | |
f00f02a3 | 16771 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
03385ed3 | 16772 | :[FH]-) ac_tag=-:-;; |
16773 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
16774 | esac | |
16775 | ac_save_IFS=$IFS | |
16776 | IFS=: | |
16777 | set x $ac_tag | |
16778 | IFS=$ac_save_IFS | |
16779 | shift | |
16780 | ac_file=$1 | |
16781 | shift | |
16782 | ||
16783 | case $ac_mode in | |
16784 | :L) ac_source=$1;; | |
16785 | :[FH]) | |
16786 | ac_file_inputs= | |
16787 | for ac_f | |
16788 | do | |
16789 | case $ac_f in | |
f00f02a3 | 16790 | -) ac_f="$ac_tmp/stdin";; |
03385ed3 | 16791 | *) # Look for the file first in the build tree, then in the source tree |
16792 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
16793 | # because $ac_f cannot contain `:'. | |
16794 | test -f "$ac_f" || | |
16795 | case $ac_f in | |
16796 | [\\/$]*) false;; | |
16797 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
16798 | esac || | |
f00f02a3 | 16799 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
03385ed3 | 16800 | esac |
16801 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
16802 | as_fn_append ac_file_inputs " '$ac_f'" | |
16803 | done | |
16804 | ||
16805 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
16806 | # use $as_me), people would be surprised to read: | |
16807 | # /* config.h. Generated by config.status. */ | |
16808 | configure_input='Generated from '` | |
16809 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
16810 | `' by configure.' | |
16811 | if test x"$ac_file" != x-; then | |
16812 | configure_input="$ac_file. $configure_input" | |
16813 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
16814 | $as_echo "$as_me: creating $ac_file" >&6;} | |
16815 | fi | |
16816 | # Neutralize special characters interpreted by sed in replacement strings. | |
16817 | case $configure_input in #( | |
16818 | *\&* | *\|* | *\\* ) | |
16819 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
16820 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
16821 | *) ac_sed_conf_input=$configure_input;; | |
16822 | esac | |
16823 | ||
16824 | case $ac_tag in | |
f00f02a3 | 16825 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
16826 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
03385ed3 | 16827 | esac |
16828 | ;; | |
16829 | esac | |
16830 | ||
16831 | ac_dir=`$as_dirname -- "$ac_file" || | |
16832 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
16833 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
16834 | X"$ac_file" : 'X\(//\)$' \| \ | |
16835 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
16836 | $as_echo X"$ac_file" | | |
16837 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
16838 | s//\1/ | |
16839 | q | |
16840 | } | |
16841 | /^X\(\/\/\)[^/].*/{ | |
16842 | s//\1/ | |
16843 | q | |
16844 | } | |
16845 | /^X\(\/\/\)$/{ | |
16846 | s//\1/ | |
16847 | q | |
16848 | } | |
16849 | /^X\(\/\).*/{ | |
16850 | s//\1/ | |
16851 | q | |
16852 | } | |
16853 | s/.*/./; q'` | |
16854 | as_dir="$ac_dir"; as_fn_mkdir_p | |
16855 | ac_builddir=. | |
16856 | ||
16857 | case "$ac_dir" in | |
16858 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
16859 | *) | |
16860 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
16861 | # A ".." for each directory in $ac_dir_suffix. | |
16862 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
16863 | case $ac_top_builddir_sub in | |
16864 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
16865 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
16866 | esac ;; | |
16867 | esac | |
16868 | ac_abs_top_builddir=$ac_pwd | |
16869 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
16870 | # for backward compatibility: | |
16871 | ac_top_builddir=$ac_top_build_prefix | |
16872 | ||
16873 | case $srcdir in | |
16874 | .) # We are building in place. | |
16875 | ac_srcdir=. | |
16876 | ac_top_srcdir=$ac_top_builddir_sub | |
16877 | ac_abs_top_srcdir=$ac_pwd ;; | |
16878 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
16879 | ac_srcdir=$srcdir$ac_dir_suffix; | |
16880 | ac_top_srcdir=$srcdir | |
16881 | ac_abs_top_srcdir=$srcdir ;; | |
16882 | *) # Relative name. | |
16883 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
16884 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
16885 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
16886 | esac | |
16887 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
16888 | ||
16889 | ||
16890 | case $ac_mode in | |
16891 | :F) | |
16892 | # | |
16893 | # CONFIG_FILE | |
16894 | # | |
16895 | ||
16896 | case $INSTALL in | |
16897 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
16898 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
16899 | esac | |
16900 | ac_MKDIR_P=$MKDIR_P | |
16901 | case $MKDIR_P in | |
16902 | [\\/$]* | ?:[\\/]* ) ;; | |
16903 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
16904 | esac | |
16905 | _ACEOF | |
16906 | ||
16907 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16908 | # If the template does not know about datarootdir, expand it. | |
16909 | # FIXME: This hack should be removed a few years after 2.60. | |
16910 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
16911 | ac_sed_dataroot=' | |
16912 | /datarootdir/ { | |
16913 | p | |
16914 | q | |
16915 | } | |
16916 | /@datadir@/p | |
16917 | /@docdir@/p | |
16918 | /@infodir@/p | |
16919 | /@localedir@/p | |
16920 | /@mandir@/p' | |
16921 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
16922 | *datarootdir*) ac_datarootdir_seen=yes;; | |
16923 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
16924 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
16925 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
16926 | _ACEOF | |
16927 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16928 | ac_datarootdir_hack=' | |
16929 | s&@datadir@&$datadir&g | |
16930 | s&@docdir@&$docdir&g | |
16931 | s&@infodir@&$infodir&g | |
16932 | s&@localedir@&$localedir&g | |
16933 | s&@mandir@&$mandir&g | |
16934 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
16935 | esac | |
16936 | _ACEOF | |
16937 | ||
16938 | # Neutralize VPATH when `$srcdir' = `.'. | |
16939 | # Shell code in configure.ac might set extrasub. | |
16940 | # FIXME: do we really want to maintain this feature? | |
16941 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16942 | ac_sed_extra="$ac_vpsub | |
16943 | $extrasub | |
16944 | _ACEOF | |
16945 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16946 | :t | |
16947 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
16948 | s|@configure_input@|$ac_sed_conf_input|;t t | |
16949 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
16950 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
16951 | s&@srcdir@&$ac_srcdir&;t t | |
16952 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
16953 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
16954 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
16955 | s&@builddir@&$ac_builddir&;t t | |
16956 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
16957 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
16958 | s&@INSTALL@&$ac_INSTALL&;t t | |
16959 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
16960 | $ac_datarootdir_hack | |
16961 | " | |
e06fcd5a | 16962 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | |
16963 | if $ac_cs_awk_getline; then | |
16964 | $AWK -f "$ac_tmp/subs.awk" | |
16965 | else | |
16966 | $AWK -f "$ac_tmp/subs.awk" | $SHELL | |
16967 | fi \ | |
f00f02a3 | 16968 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
03385ed3 | 16969 | |
16970 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
f00f02a3 | 16971 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
16972 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
16973 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
03385ed3 | 16974 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
f00f02a3 | 16975 | which seems to be undefined. Please make sure it is defined" >&5 |
03385ed3 | 16976 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
f00f02a3 | 16977 | which seems to be undefined. Please make sure it is defined" >&2;} |
03385ed3 | 16978 | |
f00f02a3 | 16979 | rm -f "$ac_tmp/stdin" |
03385ed3 | 16980 | case $ac_file in |
f00f02a3 | 16981 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
16982 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
03385ed3 | 16983 | esac \ |
f00f02a3 | 16984 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
03385ed3 | 16985 | ;; |
16986 | :H) | |
16987 | # | |
16988 | # CONFIG_HEADER | |
16989 | # | |
16990 | if test x"$ac_file" != x-; then | |
16991 | { | |
16992 | $as_echo "/* $configure_input */" \ | |
f00f02a3 | 16993 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
16994 | } >"$ac_tmp/config.h" \ | |
16995 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
16996 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
03385ed3 | 16997 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
16998 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
16999 | else | |
17000 | rm -f "$ac_file" | |
f00f02a3 | 17001 | mv "$ac_tmp/config.h" "$ac_file" \ |
17002 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
03385ed3 | 17003 | fi |
17004 | else | |
17005 | $as_echo "/* $configure_input */" \ | |
f00f02a3 | 17006 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
17007 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
03385ed3 | 17008 | fi |
17009 | # Compute "$ac_file"'s index in $config_headers. | |
17010 | _am_arg="$ac_file" | |
17011 | _am_stamp_count=1 | |
17012 | for _am_header in $config_headers :; do | |
17013 | case $_am_header in | |
17014 | $_am_arg | $_am_arg:* ) | |
17015 | break ;; | |
17016 | * ) | |
17017 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
17018 | esac | |
17019 | done | |
17020 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
17021 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
17022 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
17023 | X"$_am_arg" : 'X\(//\)$' \| \ | |
17024 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
17025 | $as_echo X"$_am_arg" | | |
17026 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
17027 | s//\1/ | |
17028 | q | |
17029 | } | |
17030 | /^X\(\/\/\)[^/].*/{ | |
17031 | s//\1/ | |
17032 | q | |
17033 | } | |
17034 | /^X\(\/\/\)$/{ | |
17035 | s//\1/ | |
17036 | q | |
17037 | } | |
17038 | /^X\(\/\).*/{ | |
17039 | s//\1/ | |
17040 | q | |
17041 | } | |
17042 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
17043 | ;; | |
17044 | ||
17045 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | |
17046 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
17047 | ;; | |
17048 | esac | |
17049 | ||
17050 | ||
17051 | case $ac_file$ac_mode in | |
17052 | "default-1":C) | |
17053 | # Only add multilib support code if we just rebuilt the top-level | |
17054 | # Makefile. | |
17055 | case " $CONFIG_FILES " in | |
17056 | *" Makefile "*) | |
17057 | ac_file=Makefile . ${multi_basedir}/config-ml.in | |
17058 | ;; | |
17059 | esac ;; | |
17060 | "libtool":C) | |
17061 | ||
17062 | # See if we are running on zsh, and set the options which allow our | |
17063 | # commands through without removal of \ escapes. | |
17064 | if test -n "${ZSH_VERSION+set}" ; then | |
17065 | setopt NO_GLOB_SUBST | |
17066 | fi | |
17067 | ||
17068 | cfgfile="${ofile}T" | |
17069 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
17070 | $RM "$cfgfile" | |
17071 | ||
17072 | cat <<_LT_EOF >> "$cfgfile" | |
17073 | #! $SHELL | |
17074 | ||
17075 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
17076 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
17077 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
17078 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
17079 | # | |
e06fcd5a | 17080 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
17081 | # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. | |
03385ed3 | 17082 | # Written by Gordon Matzigkeit, 1996 |
17083 | # | |
17084 | # This file is part of GNU Libtool. | |
17085 | # | |
17086 | # GNU Libtool is free software; you can redistribute it and/or | |
17087 | # modify it under the terms of the GNU General Public License as | |
17088 | # published by the Free Software Foundation; either version 2 of | |
17089 | # the License, or (at your option) any later version. | |
17090 | # | |
17091 | # As a special exception to the GNU General Public License, | |
17092 | # if you distribute this file as part of a program or library that | |
17093 | # is built using GNU Libtool, you may include this file under the | |
17094 | # same distribution terms that you use for the rest of that program. | |
17095 | # | |
17096 | # GNU Libtool is distributed in the hope that it will be useful, | |
17097 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
17098 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17099 | # GNU General Public License for more details. | |
17100 | # | |
17101 | # You should have received a copy of the GNU General Public License | |
17102 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
17103 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
17104 | # obtained by writing to the Free Software Foundation, Inc., | |
17105 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
17106 | ||
17107 | ||
17108 | # The names of the tagged configurations supported by this script. | |
17109 | available_tags="D " | |
17110 | ||
17111 | # ### BEGIN LIBTOOL CONFIG | |
17112 | ||
17113 | # Which release of libtool.m4 was used? | |
17114 | macro_version=$macro_version | |
17115 | macro_revision=$macro_revision | |
17116 | ||
17117 | # Whether or not to build shared libraries. | |
17118 | build_libtool_libs=$enable_shared | |
17119 | ||
17120 | # Whether or not to build static libraries. | |
17121 | build_old_libs=$enable_static | |
17122 | ||
17123 | # What type of objects to build. | |
17124 | pic_mode=$pic_mode | |
17125 | ||
17126 | # Whether or not to optimize for fast installation. | |
17127 | fast_install=$enable_fast_install | |
17128 | ||
17129 | # Shell to use when invoking shell scripts. | |
17130 | SHELL=$lt_SHELL | |
17131 | ||
17132 | # An echo program that protects backslashes. | |
17133 | ECHO=$lt_ECHO | |
17134 | ||
17135 | # The host system. | |
17136 | host_alias=$host_alias | |
17137 | host=$host | |
17138 | host_os=$host_os | |
17139 | ||
17140 | # The build system. | |
17141 | build_alias=$build_alias | |
17142 | build=$build | |
17143 | build_os=$build_os | |
17144 | ||
17145 | # A sed program that does not truncate output. | |
17146 | SED=$lt_SED | |
17147 | ||
17148 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
17149 | Xsed="\$SED -e 1s/^X//" | |
17150 | ||
17151 | # A grep program that handles long lines. | |
17152 | GREP=$lt_GREP | |
17153 | ||
17154 | # An ERE matcher. | |
17155 | EGREP=$lt_EGREP | |
17156 | ||
17157 | # A literal string matcher. | |
17158 | FGREP=$lt_FGREP | |
17159 | ||
17160 | # A BSD- or MS-compatible name lister. | |
17161 | NM=$lt_NM | |
17162 | ||
17163 | # Whether we need soft or hard links. | |
17164 | LN_S=$lt_LN_S | |
17165 | ||
17166 | # What is the maximum length of a command? | |
17167 | max_cmd_len=$max_cmd_len | |
17168 | ||
17169 | # Object file suffix (normally "o"). | |
17170 | objext=$ac_objext | |
17171 | ||
17172 | # Executable file suffix (normally ""). | |
17173 | exeext=$exeext | |
17174 | ||
17175 | # whether the shell understands "unset". | |
17176 | lt_unset=$lt_unset | |
17177 | ||
17178 | # turn spaces into newlines. | |
17179 | SP2NL=$lt_lt_SP2NL | |
17180 | ||
17181 | # turn newlines into spaces. | |
17182 | NL2SP=$lt_lt_NL2SP | |
17183 | ||
17184 | # An object symbol dumper. | |
17185 | OBJDUMP=$lt_OBJDUMP | |
17186 | ||
17187 | # Method to check whether dependent libraries are shared objects. | |
17188 | deplibs_check_method=$lt_deplibs_check_method | |
17189 | ||
17190 | # Command to use when deplibs_check_method == "file_magic". | |
17191 | file_magic_cmd=$lt_file_magic_cmd | |
17192 | ||
17193 | # The archiver. | |
17194 | AR=$lt_AR | |
17195 | AR_FLAGS=$lt_AR_FLAGS | |
17196 | ||
17197 | # A symbol stripping program. | |
17198 | STRIP=$lt_STRIP | |
17199 | ||
17200 | # Commands used to install an old-style archive. | |
17201 | RANLIB=$lt_RANLIB | |
17202 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
17203 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
17204 | ||
17205 | # Whether to use a lock for old archive extraction. | |
17206 | lock_old_archive_extraction=$lock_old_archive_extraction | |
17207 | ||
17208 | # A C compiler. | |
17209 | LTCC=$lt_CC | |
17210 | ||
17211 | # LTCC compiler flags. | |
17212 | LTCFLAGS=$lt_CFLAGS | |
17213 | ||
17214 | # Take the output of nm and produce a listing of raw symbols and C names. | |
17215 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
17216 | ||
17217 | # Transform the output of nm in a proper C declaration. | |
17218 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
17219 | ||
17220 | # Transform the output of nm in a C name address pair. | |
17221 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
17222 | ||
17223 | # Transform the output of nm in a C name address pair when lib prefix is needed. | |
17224 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
17225 | ||
17226 | # The name of the directory that contains temporary libtool files. | |
17227 | objdir=$objdir | |
17228 | ||
17229 | # Used to examine libraries when file_magic_cmd begins with "file". | |
17230 | MAGIC_CMD=$MAGIC_CMD | |
17231 | ||
17232 | # Must we lock files when doing compilation? | |
17233 | need_locks=$lt_need_locks | |
17234 | ||
17235 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | |
17236 | DSYMUTIL=$lt_DSYMUTIL | |
17237 | ||
17238 | # Tool to change global to local symbols on Mac OS X. | |
17239 | NMEDIT=$lt_NMEDIT | |
17240 | ||
17241 | # Tool to manipulate fat objects and archives on Mac OS X. | |
17242 | LIPO=$lt_LIPO | |
17243 | ||
17244 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
17245 | OTOOL=$lt_OTOOL | |
17246 | ||
17247 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
17248 | OTOOL64=$lt_OTOOL64 | |
17249 | ||
17250 | # Old archive suffix (normally "a"). | |
17251 | libext=$libext | |
17252 | ||
17253 | # Shared library suffix (normally ".so"). | |
17254 | shrext_cmds=$lt_shrext_cmds | |
17255 | ||
17256 | # The commands to extract the exported symbol list from a shared archive. | |
17257 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
17258 | ||
17259 | # Variables whose values should be saved in libtool wrapper scripts and | |
17260 | # restored at link time. | |
17261 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
17262 | ||
17263 | # Do we need the "lib" prefix for modules? | |
17264 | need_lib_prefix=$need_lib_prefix | |
17265 | ||
17266 | # Do we need a version for libraries? | |
17267 | need_version=$need_version | |
17268 | ||
17269 | # Library versioning type. | |
17270 | version_type=$version_type | |
17271 | ||
17272 | # Shared library runtime path variable. | |
17273 | runpath_var=$runpath_var | |
17274 | ||
17275 | # Shared library path variable. | |
17276 | shlibpath_var=$shlibpath_var | |
17277 | ||
17278 | # Is shlibpath searched before the hard-coded library search path? | |
17279 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
17280 | ||
17281 | # Format of library name prefix. | |
17282 | libname_spec=$lt_libname_spec | |
17283 | ||
17284 | # List of archive names. First name is the real one, the rest are links. | |
17285 | # The last name is the one that the linker finds with -lNAME | |
17286 | library_names_spec=$lt_library_names_spec | |
17287 | ||
17288 | # The coded name of the library, if different from the real name. | |
17289 | soname_spec=$lt_soname_spec | |
17290 | ||
17291 | # Permission mode override for installation of shared libraries. | |
17292 | install_override_mode=$lt_install_override_mode | |
17293 | ||
17294 | # Command to use after installation of a shared archive. | |
17295 | postinstall_cmds=$lt_postinstall_cmds | |
17296 | ||
17297 | # Command to use after uninstallation of a shared archive. | |
17298 | postuninstall_cmds=$lt_postuninstall_cmds | |
17299 | ||
17300 | # Commands used to finish a libtool library installation in a directory. | |
17301 | finish_cmds=$lt_finish_cmds | |
17302 | ||
17303 | # As "finish_cmds", except a single script fragment to be evaled but | |
17304 | # not shown. | |
17305 | finish_eval=$lt_finish_eval | |
17306 | ||
17307 | # Whether we should hardcode library paths into libraries. | |
17308 | hardcode_into_libs=$hardcode_into_libs | |
17309 | ||
17310 | # Compile-time system search path for libraries. | |
17311 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
17312 | ||
17313 | # Run-time system search path for libraries. | |
17314 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
17315 | ||
17316 | # Whether dlopen is supported. | |
17317 | dlopen_support=$enable_dlopen | |
17318 | ||
17319 | # Whether dlopen of programs is supported. | |
17320 | dlopen_self=$enable_dlopen_self | |
17321 | ||
17322 | # Whether dlopen of statically linked programs is supported. | |
17323 | dlopen_self_static=$enable_dlopen_self_static | |
17324 | ||
17325 | # Commands to strip libraries. | |
17326 | old_striplib=$lt_old_striplib | |
17327 | striplib=$lt_striplib | |
17328 | ||
17329 | ||
17330 | # The linker used to build libraries. | |
17331 | LD=$lt_LD | |
17332 | ||
17333 | # How to create reloadable object files. | |
17334 | reload_flag=$lt_reload_flag | |
17335 | reload_cmds=$lt_reload_cmds | |
17336 | ||
17337 | # Commands used to build an old-style archive. | |
17338 | old_archive_cmds=$lt_old_archive_cmds | |
17339 | ||
17340 | # A language specific compiler. | |
17341 | CC=$lt_compiler | |
17342 | ||
17343 | # Is the compiler the GNU compiler? | |
17344 | with_gcc=$GCC | |
17345 | ||
17346 | # Compiler flag to turn off builtin functions. | |
17347 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
17348 | ||
17349 | # How to pass a linker flag through the compiler. | |
17350 | wl=$lt_lt_prog_compiler_wl | |
17351 | ||
17352 | # Additional compiler flags for building library objects. | |
17353 | pic_flag=$lt_lt_prog_compiler_pic | |
17354 | ||
17355 | # Compiler flag to prevent dynamic linking. | |
17356 | link_static_flag=$lt_lt_prog_compiler_static | |
17357 | ||
17358 | # Does compiler simultaneously support -c and -o options? | |
17359 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
17360 | ||
17361 | # Whether or not to add -lc for building shared libraries. | |
17362 | build_libtool_need_lc=$archive_cmds_need_lc | |
17363 | ||
17364 | # Whether or not to disallow shared libs when runtime libs are static. | |
17365 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
17366 | ||
17367 | # Compiler flag to allow reflexive dlopens. | |
17368 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
17369 | ||
17370 | # Compiler flag to generate shared objects directly from archives. | |
17371 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
17372 | ||
17373 | # Whether the compiler copes with passing no objects directly. | |
17374 | compiler_needs_object=$lt_compiler_needs_object | |
17375 | ||
17376 | # Create an old-style archive from a shared archive. | |
17377 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
17378 | ||
17379 | # Create a temporary old-style archive to link instead of a shared archive. | |
17380 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
17381 | ||
17382 | # Commands used to build a shared archive. | |
17383 | archive_cmds=$lt_archive_cmds | |
17384 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
17385 | ||
17386 | # Commands used to build a loadable module if different from building | |
17387 | # a shared archive. | |
17388 | module_cmds=$lt_module_cmds | |
17389 | module_expsym_cmds=$lt_module_expsym_cmds | |
17390 | ||
17391 | # Whether we are building with GNU ld or not. | |
17392 | with_gnu_ld=$lt_with_gnu_ld | |
17393 | ||
17394 | # Flag that allows shared libraries with undefined symbols to be built. | |
17395 | allow_undefined_flag=$lt_allow_undefined_flag | |
17396 | ||
17397 | # Flag that enforces no undefined symbols. | |
17398 | no_undefined_flag=$lt_no_undefined_flag | |
17399 | ||
17400 | # Flag to hardcode \$libdir into a binary during linking. | |
17401 | # This must work even if \$libdir does not exist | |
17402 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
17403 | ||
17404 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
17405 | # during linking. This must work even if \$libdir does not exist. | |
17406 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
17407 | ||
17408 | # Whether we need a single "-rpath" flag with a separated argument. | |
17409 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
17410 | ||
17411 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
17412 | # DIR into the resulting binary. | |
17413 | hardcode_direct=$hardcode_direct | |
17414 | ||
17415 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
17416 | # DIR into the resulting binary and the resulting library dependency is | |
17417 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
17418 | # library is relocated. | |
17419 | hardcode_direct_absolute=$hardcode_direct_absolute | |
17420 | ||
17421 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
17422 | # into the resulting binary. | |
17423 | hardcode_minus_L=$hardcode_minus_L | |
17424 | ||
17425 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
17426 | # into the resulting binary. | |
17427 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
17428 | ||
17429 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
17430 | # into the library and all subsequent libraries and executables linked | |
17431 | # against it. | |
17432 | hardcode_automatic=$hardcode_automatic | |
17433 | ||
17434 | # Set to yes if linker adds runtime paths of dependent libraries | |
17435 | # to runtime path list. | |
17436 | inherit_rpath=$inherit_rpath | |
17437 | ||
17438 | # Whether libtool must link a program against all its dependency libraries. | |
17439 | link_all_deplibs=$link_all_deplibs | |
17440 | ||
17441 | # Fix the shell variable \$srcfile for the compiler. | |
17442 | fix_srcfile_path=$lt_fix_srcfile_path | |
17443 | ||
17444 | # Set to "yes" if exported symbols are required. | |
17445 | always_export_symbols=$always_export_symbols | |
17446 | ||
17447 | # The commands to list exported symbols. | |
17448 | export_symbols_cmds=$lt_export_symbols_cmds | |
17449 | ||
17450 | # Symbols that should not be listed in the preloaded symbols. | |
17451 | exclude_expsyms=$lt_exclude_expsyms | |
17452 | ||
17453 | # Symbols that must always be exported. | |
17454 | include_expsyms=$lt_include_expsyms | |
17455 | ||
17456 | # Commands necessary for linking programs (against libraries) with templates. | |
17457 | prelink_cmds=$lt_prelink_cmds | |
17458 | ||
17459 | # Specify filename containing input files. | |
17460 | file_list_spec=$lt_file_list_spec | |
17461 | ||
17462 | # How to hardcode a shared library path into an executable. | |
17463 | hardcode_action=$hardcode_action | |
17464 | ||
17465 | # ### END LIBTOOL CONFIG | |
17466 | ||
17467 | _LT_EOF | |
17468 | ||
17469 | case $host_os in | |
17470 | aix3*) | |
17471 | cat <<\_LT_EOF >> "$cfgfile" | |
17472 | # AIX sometimes has problems with the GCC collect2 program. For some | |
17473 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
17474 | # vanish in a puff of smoke. | |
17475 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
17476 | COLLECT_NAMES= | |
17477 | export COLLECT_NAMES | |
17478 | fi | |
17479 | _LT_EOF | |
17480 | ;; | |
17481 | esac | |
17482 | ||
17483 | ||
17484 | ltmain="$ac_aux_dir/ltmain.sh" | |
17485 | ||
17486 | ||
17487 | # We use sed instead of cat because bash on DJGPP gets confused if | |
17488 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
17489 | # text mode, it properly converts lines to CR/LF. This bash problem | |
17490 | # is reportedly fixed, but why not run on old versions too? | |
17491 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
17492 | || (rm -f "$cfgfile"; exit 1) | |
17493 | ||
17494 | case $xsi_shell in | |
17495 | yes) | |
17496 | cat << \_LT_EOF >> "$cfgfile" | |
17497 | ||
17498 | # func_dirname file append nondir_replacement | |
17499 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
17500 | # otherwise set result to NONDIR_REPLACEMENT. | |
17501 | func_dirname () | |
17502 | { | |
17503 | case ${1} in | |
17504 | */*) func_dirname_result="${1%/*}${2}" ;; | |
17505 | * ) func_dirname_result="${3}" ;; | |
17506 | esac | |
17507 | } | |
17508 | ||
17509 | # func_basename file | |
17510 | func_basename () | |
17511 | { | |
17512 | func_basename_result="${1##*/}" | |
17513 | } | |
17514 | ||
17515 | # func_dirname_and_basename file append nondir_replacement | |
17516 | # perform func_basename and func_dirname in a single function | |
17517 | # call: | |
17518 | # dirname: Compute the dirname of FILE. If nonempty, | |
17519 | # add APPEND to the result, otherwise set result | |
17520 | # to NONDIR_REPLACEMENT. | |
17521 | # value returned in "$func_dirname_result" | |
17522 | # basename: Compute filename of FILE. | |
17523 | # value retuned in "$func_basename_result" | |
17524 | # Implementation must be kept synchronized with func_dirname | |
17525 | # and func_basename. For efficiency, we do not delegate to | |
17526 | # those functions but instead duplicate the functionality here. | |
17527 | func_dirname_and_basename () | |
17528 | { | |
17529 | case ${1} in | |
17530 | */*) func_dirname_result="${1%/*}${2}" ;; | |
17531 | * ) func_dirname_result="${3}" ;; | |
17532 | esac | |
17533 | func_basename_result="${1##*/}" | |
17534 | } | |
17535 | ||
17536 | # func_stripname prefix suffix name | |
17537 | # strip PREFIX and SUFFIX off of NAME. | |
17538 | # PREFIX and SUFFIX must not contain globbing or regex special | |
17539 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
17540 | # dot (in which case that matches only a dot). | |
17541 | func_stripname () | |
17542 | { | |
17543 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
17544 | # positional parameters, so assign one to ordinary parameter first. | |
17545 | func_stripname_result=${3} | |
17546 | func_stripname_result=${func_stripname_result#"${1}"} | |
17547 | func_stripname_result=${func_stripname_result%"${2}"} | |
17548 | } | |
17549 | ||
17550 | # func_opt_split | |
17551 | func_opt_split () | |
17552 | { | |
17553 | func_opt_split_opt=${1%%=*} | |
17554 | func_opt_split_arg=${1#*=} | |
17555 | } | |
17556 | ||
17557 | # func_lo2o object | |
17558 | func_lo2o () | |
17559 | { | |
17560 | case ${1} in | |
17561 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
17562 | *) func_lo2o_result=${1} ;; | |
17563 | esac | |
17564 | } | |
17565 | ||
17566 | # func_xform libobj-or-source | |
17567 | func_xform () | |
17568 | { | |
17569 | func_xform_result=${1%.*}.lo | |
17570 | } | |
17571 | ||
17572 | # func_arith arithmetic-term... | |
17573 | func_arith () | |
17574 | { | |
17575 | func_arith_result=$(( $* )) | |
17576 | } | |
17577 | ||
17578 | # func_len string | |
17579 | # STRING may not start with a hyphen. | |
17580 | func_len () | |
17581 | { | |
17582 | func_len_result=${#1} | |
17583 | } | |
17584 | ||
17585 | _LT_EOF | |
17586 | ;; | |
17587 | *) # Bourne compatible functions. | |
17588 | cat << \_LT_EOF >> "$cfgfile" | |
17589 | ||
17590 | # func_dirname file append nondir_replacement | |
17591 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
17592 | # otherwise set result to NONDIR_REPLACEMENT. | |
17593 | func_dirname () | |
17594 | { | |
17595 | # Extract subdirectory from the argument. | |
17596 | func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` | |
17597 | if test "X$func_dirname_result" = "X${1}"; then | |
17598 | func_dirname_result="${3}" | |
17599 | else | |
17600 | func_dirname_result="$func_dirname_result${2}" | |
17601 | fi | |
17602 | } | |
17603 | ||
17604 | # func_basename file | |
17605 | func_basename () | |
17606 | { | |
17607 | func_basename_result=`$ECHO "${1}" | $SED "$basename"` | |
17608 | } | |
17609 | ||
17610 | ||
17611 | # func_stripname prefix suffix name | |
17612 | # strip PREFIX and SUFFIX off of NAME. | |
17613 | # PREFIX and SUFFIX must not contain globbing or regex special | |
17614 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
17615 | # dot (in which case that matches only a dot). | |
17616 | # func_strip_suffix prefix name | |
17617 | func_stripname () | |
17618 | { | |
17619 | case ${2} in | |
17620 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; | |
17621 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
17622 | esac | |
17623 | } | |
17624 | ||
17625 | # sed scripts: | |
17626 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
17627 | my_sed_long_arg='1s/^-[^=]*=//' | |
17628 | ||
17629 | # func_opt_split | |
17630 | func_opt_split () | |
17631 | { | |
17632 | func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` | |
17633 | func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | |
17634 | } | |
17635 | ||
17636 | # func_lo2o object | |
17637 | func_lo2o () | |
17638 | { | |
17639 | func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` | |
17640 | } | |
17641 | ||
17642 | # func_xform libobj-or-source | |
17643 | func_xform () | |
17644 | { | |
17645 | func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` | |
17646 | } | |
17647 | ||
17648 | # func_arith arithmetic-term... | |
17649 | func_arith () | |
17650 | { | |
17651 | func_arith_result=`expr "$@"` | |
17652 | } | |
17653 | ||
17654 | # func_len string | |
17655 | # STRING may not start with a hyphen. | |
17656 | func_len () | |
17657 | { | |
17658 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
17659 | } | |
17660 | ||
17661 | _LT_EOF | |
17662 | esac | |
17663 | ||
17664 | case $lt_shell_append in | |
17665 | yes) | |
17666 | cat << \_LT_EOF >> "$cfgfile" | |
17667 | ||
17668 | # func_append var value | |
17669 | # Append VALUE to the end of shell variable VAR. | |
17670 | func_append () | |
17671 | { | |
17672 | eval "$1+=\$2" | |
17673 | } | |
17674 | _LT_EOF | |
17675 | ;; | |
17676 | *) | |
17677 | cat << \_LT_EOF >> "$cfgfile" | |
17678 | ||
17679 | # func_append var value | |
17680 | # Append VALUE to the end of shell variable VAR. | |
17681 | func_append () | |
17682 | { | |
17683 | eval "$1=\$$1\$2" | |
17684 | } | |
17685 | ||
17686 | _LT_EOF | |
17687 | ;; | |
17688 | esac | |
17689 | ||
17690 | ||
17691 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
17692 | || (rm -f "$cfgfile"; exit 1) | |
17693 | ||
17694 | mv -f "$cfgfile" "$ofile" || | |
17695 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
17696 | chmod +x "$ofile" | |
17697 | ||
17698 | ||
17699 | cat <<_LT_EOF >> "$ofile" | |
17700 | ||
17701 | # ### BEGIN LIBTOOL TAG CONFIG: D | |
17702 | ||
17703 | # The linker used to build libraries. | |
17704 | LD=$lt_LD_D | |
17705 | ||
17706 | # How to create reloadable object files. | |
17707 | reload_flag=$lt_reload_flag_D | |
17708 | reload_cmds=$lt_reload_cmds_D | |
17709 | ||
17710 | # Commands used to build an old-style archive. | |
17711 | old_archive_cmds=$lt_old_archive_cmds_D | |
17712 | ||
17713 | # A language specific compiler. | |
17714 | CC=$lt_compiler_D | |
17715 | ||
17716 | # Is the compiler the GNU compiler? | |
17717 | with_gcc=$GCC_D | |
17718 | ||
17719 | # Compiler flag to turn off builtin functions. | |
17720 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_D | |
17721 | ||
17722 | # How to pass a linker flag through the compiler. | |
17723 | wl=$lt_lt_prog_compiler_wl_D | |
17724 | ||
17725 | # Additional compiler flags for building library objects. | |
17726 | pic_flag=$lt_lt_prog_compiler_pic_D | |
17727 | ||
17728 | # Compiler flag to prevent dynamic linking. | |
17729 | link_static_flag=$lt_lt_prog_compiler_static_D | |
17730 | ||
17731 | # Does compiler simultaneously support -c and -o options? | |
17732 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_D | |
17733 | ||
17734 | # Whether or not to add -lc for building shared libraries. | |
17735 | build_libtool_need_lc=$archive_cmds_need_lc_D | |
17736 | ||
17737 | # Whether or not to disallow shared libs when runtime libs are static. | |
17738 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_D | |
17739 | ||
17740 | # Compiler flag to allow reflexive dlopens. | |
17741 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_D | |
17742 | ||
17743 | # Compiler flag to generate shared objects directly from archives. | |
17744 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_D | |
17745 | ||
17746 | # Whether the compiler copes with passing no objects directly. | |
17747 | compiler_needs_object=$lt_compiler_needs_object_D | |
17748 | ||
17749 | # Create an old-style archive from a shared archive. | |
17750 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_D | |
17751 | ||
17752 | # Create a temporary old-style archive to link instead of a shared archive. | |
17753 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_D | |
17754 | ||
17755 | # Commands used to build a shared archive. | |
17756 | archive_cmds=$lt_archive_cmds_D | |
17757 | archive_expsym_cmds=$lt_archive_expsym_cmds_D | |
17758 | ||
17759 | # Commands used to build a loadable module if different from building | |
17760 | # a shared archive. | |
17761 | module_cmds=$lt_module_cmds_D | |
17762 | module_expsym_cmds=$lt_module_expsym_cmds_D | |
17763 | ||
17764 | # Whether we are building with GNU ld or not. | |
17765 | with_gnu_ld=$lt_with_gnu_ld_D | |
17766 | ||
17767 | # Flag that allows shared libraries with undefined symbols to be built. | |
17768 | allow_undefined_flag=$lt_allow_undefined_flag_D | |
17769 | ||
17770 | # Flag that enforces no undefined symbols. | |
17771 | no_undefined_flag=$lt_no_undefined_flag_D | |
17772 | ||
17773 | # Flag to hardcode \$libdir into a binary during linking. | |
17774 | # This must work even if \$libdir does not exist | |
17775 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_D | |
17776 | ||
17777 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
17778 | # during linking. This must work even if \$libdir does not exist. | |
17779 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_D | |
17780 | ||
17781 | # Whether we need a single "-rpath" flag with a separated argument. | |
17782 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_D | |
17783 | ||
17784 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
17785 | # DIR into the resulting binary. | |
17786 | hardcode_direct=$hardcode_direct_D | |
17787 | ||
17788 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
17789 | # DIR into the resulting binary and the resulting library dependency is | |
17790 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
17791 | # library is relocated. | |
17792 | hardcode_direct_absolute=$hardcode_direct_absolute_D | |
17793 | ||
17794 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
17795 | # into the resulting binary. | |
17796 | hardcode_minus_L=$hardcode_minus_L_D | |
17797 | ||
17798 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
17799 | # into the resulting binary. | |
17800 | hardcode_shlibpath_var=$hardcode_shlibpath_var_D | |
17801 | ||
17802 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
17803 | # into the library and all subsequent libraries and executables linked | |
17804 | # against it. | |
17805 | hardcode_automatic=$hardcode_automatic_D | |
17806 | ||
17807 | # Set to yes if linker adds runtime paths of dependent libraries | |
17808 | # to runtime path list. | |
17809 | inherit_rpath=$inherit_rpath_D | |
17810 | ||
17811 | # Whether libtool must link a program against all its dependency libraries. | |
17812 | link_all_deplibs=$link_all_deplibs_D | |
17813 | ||
17814 | # Fix the shell variable \$srcfile for the compiler. | |
17815 | fix_srcfile_path=$lt_fix_srcfile_path_D | |
17816 | ||
17817 | # Set to "yes" if exported symbols are required. | |
17818 | always_export_symbols=$always_export_symbols_D | |
17819 | ||
17820 | # The commands to list exported symbols. | |
17821 | export_symbols_cmds=$lt_export_symbols_cmds_D | |
17822 | ||
17823 | # Symbols that should not be listed in the preloaded symbols. | |
17824 | exclude_expsyms=$lt_exclude_expsyms_D | |
17825 | ||
17826 | # Symbols that must always be exported. | |
17827 | include_expsyms=$lt_include_expsyms_D | |
17828 | ||
17829 | # Commands necessary for linking programs (against libraries) with templates. | |
17830 | prelink_cmds=$lt_prelink_cmds_D | |
17831 | ||
17832 | # Specify filename containing input files. | |
17833 | file_list_spec=$lt_file_list_spec_D | |
17834 | ||
17835 | # How to hardcode a shared library path into an executable. | |
17836 | hardcode_action=$hardcode_action_D | |
17837 | ||
17838 | # ### END LIBTOOL TAG CONFIG: D | |
17839 | _LT_EOF | |
17840 | ||
17841 | ;; | |
17842 | "testsuite/testsuite_flags":F) chmod +x testsuite/testsuite_flags ;; | |
5114391d | 17843 | "libdruntime/Makefile":F) cat > vpsed$$ << \_EOF |
17844 | s!`test -f '$<' || echo '$(srcdir)/'`!! | |
03385ed3 | 17845 | _EOF |
5114391d | 17846 | sed -f vpsed$$ $ac_file > tmp$$ |
17847 | mv tmp$$ $ac_file | |
17848 | rm vpsed$$ | |
17849 | echo 'MULTISUBDIR =' >> $ac_file | |
17850 | ml_norecursion=yes | |
17851 | . ${multi_basedir}/config-ml.in | |
17852 | { ml_norecursion=; unset ml_norecursion;} | |
17853 | ;; | |
17854 | "src/Makefile":F) cat > vpsed$$ << \_EOF | |
17855 | s!`test -f '$<' || echo '$(srcdir)/'`!! | |
17856 | _EOF | |
17857 | sed -f vpsed$$ $ac_file > tmp$$ | |
17858 | mv tmp$$ $ac_file | |
17859 | rm vpsed$$ | |
17860 | echo 'MULTISUBDIR =' >> $ac_file | |
17861 | ml_norecursion=yes | |
17862 | . ${multi_basedir}/config-ml.in | |
17863 | { ml_norecursion=; unset ml_norecursion;} | |
17864 | ;; | |
17865 | "testsuite/Makefile":F) cat > vpsed$$ << \_EOF | |
17866 | s!`test -f '$<' || echo '$(srcdir)/'`!! | |
17867 | _EOF | |
17868 | sed -f vpsed$$ $ac_file > tmp$$ | |
17869 | mv tmp$$ $ac_file | |
17870 | rm vpsed$$ | |
17871 | echo 'MULTISUBDIR =' >> $ac_file | |
17872 | ml_norecursion=yes | |
17873 | . ${multi_basedir}/config-ml.in | |
17874 | { ml_norecursion=; unset ml_norecursion;} | |
03385ed3 | 17875 | ;; |
17876 | ||
17877 | esac | |
17878 | done # for ac_tag | |
17879 | ||
17880 | ||
17881 | as_fn_exit 0 | |
17882 | _ACEOF | |
17883 | ac_clean_files=$ac_clean_files_save | |
17884 | ||
17885 | test $ac_write_fail = 0 || | |
f00f02a3 | 17886 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
03385ed3 | 17887 | |
17888 | ||
17889 | # configure is writing to config.log, and then calls config.status. | |
17890 | # config.status does its own redirection, appending to config.log. | |
17891 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
17892 | # by configure, so config.status won't be able to write to it; its | |
17893 | # output is simply discarded. So we exec the FD to /dev/null, | |
17894 | # effectively closing config.log, so it can be properly (re)opened and | |
17895 | # appended to by config.status. When coming back to configure, we | |
17896 | # need to make the FD available again. | |
17897 | if test "$no_create" != yes; then | |
17898 | ac_cs_success=: | |
17899 | ac_config_status_args= | |
17900 | test "$silent" = yes && | |
17901 | ac_config_status_args="$ac_config_status_args --quiet" | |
17902 | exec 5>/dev/null | |
17903 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
17904 | exec 5>>config.log | |
17905 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
17906 | # would make configure fail if this is the last instruction. | |
f00f02a3 | 17907 | $ac_cs_success || as_fn_exit 1 |
03385ed3 | 17908 | fi |
17909 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
17910 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
17911 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
17912 | fi | |
17913 |