Debian Codegraph @

libphobos/configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for package-unused version-unused.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
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.
90 as_myself=
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
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;}
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
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
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
199 test \$(( 1 + 1 )) = 2 || exit 1
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\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
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 :
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
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 [email protected] 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"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
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
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
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
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
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
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
422 fi
423 $as_echo "$as_me: error: $2" >&2
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
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
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.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
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
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
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
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
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 WARN_DFLAGS
637 libtool_VERSION
638 SPEC_PHOBOS_DEPS
639 CHECKING_DFLAGS
640 ENABLE_LIBDRUNTIME_ONLY_FALSE
641 ENABLE_LIBDRUNTIME_ONLY_TRUE
642 ENABLE_LIBPHOBOS_FALSE
643 ENABLE_LIBPHOBOS_TRUE
644 gdc_include_dir
645 libphobos_toolexeclibdir
646 libphobos_toolexecdir
647 gcc_version
648 LIBZ
649 BACKTRACE_SUPPORTS_THREADS
650 BACKTRACE_USES_MALLOC
651 BACKTRACE_SUPPORTED
652 LIBBACKTRACE
653 LIBATOMIC
654 DCFG_HAVE_LIBATOMIC
655 DCFG_HAVE_64BIT_ATOMICS
656 DCFG_HAVE_ATOMIC_BUILTINS
657 DCFG_HAVE_QSORT_R
658 OS_DFLAGS
659 OS_LINK_SPEC
660 DCFG_DLPI_TLS_MODID
661 DRUNTIME_OS_MINFO_BRACKETING_FALSE
662 DRUNTIME_OS_MINFO_BRACKETING_TRUE
663 DCFG_MINFO_BRACKETING
664 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
665 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
666 DCFG_ARM_EABI_UNWINDER
667 DCFG_THREAD_MODEL
668 DRUNTIME_OS_POSIX_FALSE
669 DRUNTIME_OS_POSIX_TRUE
670 DRUNTIME_OS_SOLARIS_FALSE
671 DRUNTIME_OS_SOLARIS_TRUE
672 DRUNTIME_OS_MINGW_FALSE
673 DRUNTIME_OS_MINGW_TRUE
674 DRUNTIME_OS_LINUX_FALSE
675 DRUNTIME_OS_LINUX_TRUE
676 DRUNTIME_OS_OPENBSD_FALSE
677 DRUNTIME_OS_OPENBSD_TRUE
678 DRUNTIME_OS_NETBSD_FALSE
679 DRUNTIME_OS_NETBSD_TRUE
680 DRUNTIME_OS_FREEBSD_FALSE
681 DRUNTIME_OS_FREEBSD_TRUE
682 DRUNTIME_OS_DRAGONFLYBSD_FALSE
683 DRUNTIME_OS_DRAGONFLYBSD_TRUE
684 DRUNTIME_OS_DARWIN_FALSE
685 DRUNTIME_OS_DARWIN_TRUE
686 DRUNTIME_OS_ANDROID_FALSE
687 DRUNTIME_OS_ANDROID_TRUE
688 DRUNTIME_OS_AIX_FALSE
689 DRUNTIME_OS_AIX_TRUE
690 DRUNTIME_CPU_S390_FALSE
691 DRUNTIME_CPU_S390_TRUE
692 DRUNTIME_CPU_SYSTEMZ_FALSE
693 DRUNTIME_CPU_SYSTEMZ_TRUE
694 DRUNTIME_CPU_X86_FALSE
695 DRUNTIME_CPU_X86_TRUE
696 DRUNTIME_CPU_POWERPC_FALSE
697 DRUNTIME_CPU_POWERPC_TRUE
698 DRUNTIME_CPU_MIPS_FALSE
699 DRUNTIME_CPU_MIPS_TRUE
700 DRUNTIME_CPU_LOONGARCH_FALSE
701 DRUNTIME_CPU_LOONGARCH_TRUE
702 DRUNTIME_CPU_ARM_FALSE
703 DRUNTIME_CPU_ARM_TRUE
704 DRUNTIME_CPU_AARCH64_FALSE
705 DRUNTIME_CPU_AARCH64_TRUE
706 SECTION_FLAGS
707 libphobos_srcdir
708 libphobos_builddir
709 get_gcc_base_ver
710 phobos_compiler_shared_flag
711 phobos_compiler_pic_flag
712 phobos_lt_pic_flag
713 ENABLE_DARWIN_AT_RPATH_FALSE
714 ENABLE_DARWIN_AT_RPATH_TRUE
715 enable_static
716 enable_shared
717 OTOOL64
718 OTOOL
719 LIPO
720 NMEDIT
721 DSYMUTIL
722 OBJDUMP
723 LN_S
724 NM
725 ac_ct_DUMPBIN
726 DUMPBIN
727 LD
728 FGREP
729 SED
730 LIBTOOL
731 CFLAGS_FOR_BUILD
732 CC_FOR_BUILD
733 AR
734 DCFG_ENABLE_CET
735 CET_FLAGS
736 RANLIB
737 MAINT
738 MAINTAINER_MODE_FALSE
739 MAINTAINER_MODE_TRUE
740 GDCFLAGS
741 GDC
742 CCASFLAGS
743 CCAS
744 AM_BACKSLASH
745 AM_DEFAULT_VERBOSITY
746 AM_DEFAULT_V
747 AM_V
748 am__untar
749 am__tar
750 AMTAR
751 am__leading_dot
752 SET_MAKE
753 AWK
754 mkdir_p
755 MKDIR_P
756 INSTALL_STRIP_PROGRAM
757 STRIP
758 install_sh
759 MAKEINFO
760 AUTOHEADER
761 AUTOMAKE
762 AUTOCONF
763 ACLOCAL
764 VERSION
765 PACKAGE
766 CYGPATH_W
767 am__isrc
768 INSTALL_DATA
769 INSTALL_SCRIPT
770 INSTALL_PROGRAM
771 EGREP
772 GREP
773 CPP
774 OBJEXT
775 EXEEXT
776 ac_ct_CC
777 CPPFLAGS
778 LDFLAGS
779 CFLAGS
780 CC
781 target_os
782 target_vendor
783 target_cpu
784 target
785 host_os
786 host_vendor
787 host_cpu
788 host
789 build_os
790 build_vendor
791 build_cpu
792 build
793 multi_basedir
794 target_alias
795 host_alias
796 build_alias
797 LIBS
798 ECHO_T
799 ECHO_N
800 ECHO_C
801 DEFS
802 mandir
803 localedir
804 libdir
805 psdir
806 pdfdir
807 dvidir
808 htmldir
809 infodir
810 docdir
811 oldincludedir
812 includedir
813 localstatedir
814 sharedstatedir
815 sysconfdir
816 datadir
817 datarootdir
818 libexecdir
819 sbindir
820 bindir
821 program_transform_name
822 prefix
823 exec_prefix
824 PACKAGE_URL
825 PACKAGE_BUGREPORT
826 PACKAGE_STRING
827 PACKAGE_VERSION
828 PACKAGE_TARNAME
829 PACKAGE_NAME
830 PATH_SEPARATOR
831 SHELL'
832 ac_subst_files='DRTSTUFF_SPEC'
833 ac_user_opts='
834 enable_option_checking
835 enable_multilib
836 enable_silent_rules
837 enable_maintainer_mode
838 enable_cet
839 enable_shared
840 enable_static
841 with_pic
842 enable_fast_install
843 with_gnu_ld
844 enable_libtool_lock
845 enable_darwin_at_rpath
846 with_gcc_major_version_only
847 enable_werror
848 with_libatomic
849 with_libbacktrace
850 with_target_system_zlib
851 with_cross_host
852 enable_version_specific_runtime_libs
853 with_toolexeclibdir
854 enable_libphobos
855 with_libphobos_druntime_only
856 enable_libphobos_checking
857 '
858 ac_precious_vars='build_alias
859 host_alias
860 target_alias
861 CC
862 CFLAGS
863 LDFLAGS
864 LIBS
865 CPPFLAGS
866 CPP'
867
868
869 # Initialize some variables set by options.
870 ac_init_help=
871 ac_init_version=false
872 ac_unrecognized_opts=
873 ac_unrecognized_sep=
874 # The variables have the same names as the options, with
875 # dashes changed to underlines.
876 cache_file=/dev/null
877 exec_prefix=NONE
878 no_create=
879 no_recursion=
880 prefix=NONE
881 program_prefix=NONE
882 program_suffix=NONE
883 program_transform_name=s,x,x,
884 silent=
885 site=
886 srcdir=
887 verbose=
888 x_includes=NONE
889 x_libraries=NONE
890
891 # Installation directory options.
892 # These are left unexpanded so users can "make install exec_prefix=/foo"
893 # and all the variables that are supposed to be based on exec_prefix
894 # by default will actually change.
895 # Use braces instead of parens because sh, perl, etc. also accept them.
896 # (The list follows the same order as the GNU Coding Standards.)
897 bindir='${exec_prefix}/bin'
898 sbindir='${exec_prefix}/sbin'
899 libexecdir='${exec_prefix}/libexec'
900 datarootdir='${prefix}/share'
901 datadir='${datarootdir}'
902 sysconfdir='${prefix}/etc'
903 sharedstatedir='${prefix}/com'
904 localstatedir='${prefix}/var'
905 includedir='${prefix}/include'
906 oldincludedir='/usr/include'
907 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
908 infodir='${datarootdir}/info'
909 htmldir='${docdir}'
910 dvidir='${docdir}'
911 pdfdir='${docdir}'
912 psdir='${docdir}'
913 libdir='${exec_prefix}/lib'
914 localedir='${datarootdir}/locale'
915 mandir='${datarootdir}/man'
916
917 ac_prev=
918 ac_dashdash=
919 for ac_option
920 do
921 # If the previous option needs an argument, assign it.
922 if test -n "$ac_prev"; then
923 eval $ac_prev=\$ac_option
924 ac_prev=
925 continue
926 fi
927
928 case $ac_option in
929 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
930 *=) ac_optarg= ;;
931 *) ac_optarg=yes ;;
932 esac
933
934 # Accept the important Cygnus configure options, so we can diagnose typos.
935
936 case $ac_dashdash$ac_option in
937 --)
938 ac_dashdash=yes ;;
939
940 -bindir | --bindir | --bindi | --bind | --bin | --bi)
941 ac_prev=bindir ;;
942 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
943 bindir=$ac_optarg ;;
944
945 -build | --build | --buil | --bui | --bu)
946 ac_prev=build_alias ;;
947 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
948 build_alias=$ac_optarg ;;
949
950 -cache-file | --cache-file | --cache-fil | --cache-fi \
951 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
952 ac_prev=cache_file ;;
953 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
954 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
955 cache_file=$ac_optarg ;;
956
957 --config-cache | -C)
958 cache_file=config.cache ;;
959
960 -datadir | --datadir | --datadi | --datad)
961 ac_prev=datadir ;;
962 -datadir=* | --datadir=* | --datadi=* | --datad=*)
963 datadir=$ac_optarg ;;
964
965 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
966 | --dataroo | --dataro | --datar)
967 ac_prev=datarootdir ;;
968 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
969 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
970 datarootdir=$ac_optarg ;;
971
972 -disable-* | --disable-*)
973 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
974 # Reject names that are not valid shell variable names.
975 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
976 as_fn_error $? "invalid feature name: $ac_useropt"
977 ac_useropt_orig=$ac_useropt
978 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
979 case $ac_user_opts in
980 *"
981 "enable_$ac_useropt"
982 "*) ;;
983 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
984 ac_unrecognized_sep=', ';;
985 esac
986 eval enable_$ac_useropt=no ;;
987
988 -docdir | --docdir | --docdi | --doc | --do)
989 ac_prev=docdir ;;
990 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
991 docdir=$ac_optarg ;;
992
993 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
994 ac_prev=dvidir ;;
995 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
996 dvidir=$ac_optarg ;;
997
998 -enable-* | --enable-*)
999 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1000 # Reject names that are not valid shell variable names.
1001 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1002 as_fn_error $? "invalid feature name: $ac_useropt"
1003 ac_useropt_orig=$ac_useropt
1004 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1005 case $ac_user_opts in
1006 *"
1007 "enable_$ac_useropt"
1008 "*) ;;
1009 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1010 ac_unrecognized_sep=', ';;
1011 esac
1012 eval enable_$ac_useropt=\$ac_optarg ;;
1013
1014 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1015 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1016 | --exec | --exe | --ex)
1017 ac_prev=exec_prefix ;;
1018 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1019 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1020 | --exec=* | --exe=* | --ex=*)
1021 exec_prefix=$ac_optarg ;;
1022
1023 -gas | --gas | --ga | --g)
1024 # Obsolete; use --with-gas.
1025 with_gas=yes ;;
1026
1027 -help | --help | --hel | --he | -h)
1028 ac_init_help=long ;;
1029 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1030 ac_init_help=recursive ;;
1031 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1032 ac_init_help=short ;;
1033
1034 -host | --host | --hos | --ho)
1035 ac_prev=host_alias ;;
1036 -host=* | --host=* | --hos=* | --ho=*)
1037 host_alias=$ac_optarg ;;
1038
1039 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1040 ac_prev=htmldir ;;
1041 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1042 | --ht=*)
1043 htmldir=$ac_optarg ;;
1044
1045 -includedir | --includedir | --includedi | --included | --include \
1046 | --includ | --inclu | --incl | --inc)
1047 ac_prev=includedir ;;
1048 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1049 | --includ=* | --inclu=* | --incl=* | --inc=*)
1050 includedir=$ac_optarg ;;
1051
1052 -infodir | --infodir | --infodi | --infod | --info | --inf)
1053 ac_prev=infodir ;;
1054 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1055 infodir=$ac_optarg ;;
1056
1057 -libdir | --libdir | --libdi | --libd)
1058 ac_prev=libdir ;;
1059 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1060 libdir=$ac_optarg ;;
1061
1062 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1063 | --libexe | --libex | --libe)
1064 ac_prev=libexecdir ;;
1065 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1066 | --libexe=* | --libex=* | --libe=*)
1067 libexecdir=$ac_optarg ;;
1068
1069 -localedir | --localedir | --localedi | --localed | --locale)
1070 ac_prev=localedir ;;
1071 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1072 localedir=$ac_optarg ;;
1073
1074 -localstatedir | --localstatedir | --localstatedi | --localstated \
1075 | --localstate | --localstat | --localsta | --localst | --locals)
1076 ac_prev=localstatedir ;;
1077 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1078 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1079 localstatedir=$ac_optarg ;;
1080
1081 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1082 ac_prev=mandir ;;
1083 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1084 mandir=$ac_optarg ;;
1085
1086 -nfp | --nfp | --nf)
1087 # Obsolete; use --without-fp.
1088 with_fp=no ;;
1089
1090 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1091 | --no-cr | --no-c | -n)
1092 no_create=yes ;;
1093
1094 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1095 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1096 no_recursion=yes ;;
1097
1098 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1099 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1100 | --oldin | --oldi | --old | --ol | --o)
1101 ac_prev=oldincludedir ;;
1102 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1103 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1104 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1105 oldincludedir=$ac_optarg ;;
1106
1107 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1108 ac_prev=prefix ;;
1109 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1110 prefix=$ac_optarg ;;
1111
1112 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1113 | --program-pre | --program-pr | --program-p)
1114 ac_prev=program_prefix ;;
1115 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1116 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1117 program_prefix=$ac_optarg ;;
1118
1119 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1120 | --program-suf | --program-su | --program-s)
1121 ac_prev=program_suffix ;;
1122 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1123 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1124 program_suffix=$ac_optarg ;;
1125
1126 -program-transform-name | --program-transform-name \
1127 | --program-transform-nam | --program-transform-na \
1128 | --program-transform-n | --program-transform- \
1129 | --program-transform | --program-transfor \
1130 | --program-transfo | --program-transf \
1131 | --program-trans | --program-tran \
1132 | --progr-tra | --program-tr | --program-t)
1133 ac_prev=program_transform_name ;;
1134 -program-transform-name=* | --program-transform-name=* \
1135 | --program-transform-nam=* | --program-transform-na=* \
1136 | --program-transform-n=* | --program-transform-=* \
1137 | --program-transform=* | --program-transfor=* \
1138 | --program-transfo=* | --program-transf=* \
1139 | --program-trans=* | --program-tran=* \
1140 | --progr-tra=* | --program-tr=* | --program-t=*)
1141 program_transform_name=$ac_optarg ;;
1142
1143 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1144 ac_prev=pdfdir ;;
1145 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1146 pdfdir=$ac_optarg ;;
1147
1148 -psdir | --psdir | --psdi | --psd | --ps)
1149 ac_prev=psdir ;;
1150 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1151 psdir=$ac_optarg ;;
1152
1153 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1154 | -silent | --silent | --silen | --sile | --sil)
1155 silent=yes ;;
1156
1157 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1158 ac_prev=sbindir ;;
1159 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1160 | --sbi=* | --sb=*)
1161 sbindir=$ac_optarg ;;
1162
1163 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1164 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1165 | --sharedst | --shareds | --shared | --share | --shar \
1166 | --sha | --sh)
1167 ac_prev=sharedstatedir ;;
1168 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1169 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1170 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1171 | --sha=* | --sh=*)
1172 sharedstatedir=$ac_optarg ;;
1173
1174 -site | --site | --sit)
1175 ac_prev=site ;;
1176 -site=* | --site=* | --sit=*)
1177 site=$ac_optarg ;;
1178
1179 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1180 ac_prev=srcdir ;;
1181 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1182 srcdir=$ac_optarg ;;
1183
1184 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1185 | --syscon | --sysco | --sysc | --sys | --sy)
1186 ac_prev=sysconfdir ;;
1187 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1188 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1189 sysconfdir=$ac_optarg ;;
1190
1191 -target | --target | --targe | --targ | --tar | --ta | --t)
1192 ac_prev=target_alias ;;
1193 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1194 target_alias=$ac_optarg ;;
1195
1196 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1197 verbose=yes ;;
1198
1199 -version | --version | --versio | --versi | --vers | -V)
1200 ac_init_version=: ;;
1201
1202 -with-* | --with-*)
1203 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1204 # Reject names that are not valid shell variable names.
1205 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1206 as_fn_error $? "invalid package name: $ac_useropt"
1207 ac_useropt_orig=$ac_useropt
1208 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1209 case $ac_user_opts in
1210 *"
1211 "with_$ac_useropt"
1212 "*) ;;
1213 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1214 ac_unrecognized_sep=', ';;
1215 esac
1216 eval with_$ac_useropt=\$ac_optarg ;;
1217
1218 -without-* | --without-*)
1219 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1220 # Reject names that are not valid shell variable names.
1221 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1222 as_fn_error $? "invalid package name: $ac_useropt"
1223 ac_useropt_orig=$ac_useropt
1224 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1225 case $ac_user_opts in
1226 *"
1227 "with_$ac_useropt"
1228 "*) ;;
1229 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1230 ac_unrecognized_sep=', ';;
1231 esac
1232 eval with_$ac_useropt=no ;;
1233
1234 --x)
1235 # Obsolete; use --with-x.
1236 with_x=yes ;;
1237
1238 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1239 | --x-incl | --x-inc | --x-in | --x-i)
1240 ac_prev=x_includes ;;
1241 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1242 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1243 x_includes=$ac_optarg ;;
1244
1245 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1246 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1247 ac_prev=x_libraries ;;
1248 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1249 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1250 x_libraries=$ac_optarg ;;
1251
1252 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1253 Try \`$0 --help' for more information"
1254 ;;
1255
1256 *=*)
1257 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1258 # Reject names that are not valid shell variable names.
1259 case $ac_envvar in #(
1260 '' | [0-9]* | *[!_$as_cr_alnum]* )
1261 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1262 esac
1263 eval $ac_envvar=\$ac_optarg
1264 export $ac_envvar ;;
1265
1266 *)
1267 # FIXME: should be removed in autoconf 3.0.
1268 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1269 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1270 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1271 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1272 ;;
1273
1274 esac
1275 done
1276
1277 if test -n "$ac_prev"; then
1278 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1279 as_fn_error $? "missing argument to $ac_option"
1280 fi
1281
1282 if test -n "$ac_unrecognized_opts"; then
1283 case $enable_option_checking in
1284 no) ;;
1285 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1286 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1287 esac
1288 fi
1289
1290 # Check all directory arguments for consistency.
1291 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1292 datadir sysconfdir sharedstatedir localstatedir includedir \
1293 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1294 libdir localedir mandir
1295 do
1296 eval ac_val=\$$ac_var
1297 # Remove trailing slashes.
1298 case $ac_val in
1299 */ )
1300 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1301 eval $ac_var=\$ac_val;;
1302 esac
1303 # Be sure to have absolute directory names.
1304 case $ac_val in
1305 [\\/$]* | ?:[\\/]* ) continue;;
1306 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1307 esac
1308 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1309 done
1310
1311 # There might be people who depend on the old broken behavior: `$host'
1312 # used to hold the argument of --host etc.
1313 # FIXME: To remove some day.
1314 build=$build_alias
1315 host=$host_alias
1316 target=$target_alias
1317
1318 # FIXME: To remove some day.
1319 if test "x$host_alias" != x; then
1320 if test "x$build_alias" = x; then
1321 cross_compiling=maybe
1322 elif test "x$build_alias" != "x$host_alias"; then
1323 cross_compiling=yes
1324 fi
1325 fi
1326
1327 ac_tool_prefix=
1328 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1329
1330 test "$silent" = yes && exec 6>/dev/null
1331
1332
1333 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1334 ac_ls_di=`ls -di .` &&
1335 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1336 as_fn_error $? "working directory cannot be determined"
1337 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1338 as_fn_error $? "pwd does not report name of working directory"
1339
1340
1341 # Find the source files, if location was not specified.
1342 if test -z "$srcdir"; then
1343 ac_srcdir_defaulted=yes
1344 # Try the directory containing this script, then the parent directory.
1345 ac_confdir=`$as_dirname -- "$as_myself" ||
1346 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1347 X"$as_myself" : 'X\(//\)[^/]' \| \
1348 X"$as_myself" : 'X\(//\)$' \| \
1349 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1350 $as_echo X"$as_myself" |
1351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1352 s//\1/
1353 q
1354 }
1355 /^X\(\/\/\)[^/].*/{
1356 s//\1/
1357 q
1358 }
1359 /^X\(\/\/\)$/{
1360 s//\1/
1361 q
1362 }
1363 /^X\(\/\).*/{
1364 s//\1/
1365 q
1366 }
1367 s/.*/./; q'`
1368 srcdir=$ac_confdir
1369 if test ! -r "$srcdir/$ac_unique_file"; then
1370 srcdir=..
1371 fi
1372 else
1373 ac_srcdir_defaulted=no
1374 fi
1375 if test ! -r "$srcdir/$ac_unique_file"; then
1376 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1377 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1378 fi
1379 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1380 ac_abs_confdir=`(
1381 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1382 pwd)`
1383 # When building in place, set srcdir=.
1384 if test "$ac_abs_confdir" = "$ac_pwd"; then
1385 srcdir=.
1386 fi
1387 # Remove unnecessary trailing slashes from srcdir.
1388 # Double slashes in file names in object file debugging info
1389 # mess up M-x gdb in Emacs.
1390 case $srcdir in
1391 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1392 esac
1393 for ac_var in $ac_precious_vars; do
1394 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1395 eval ac_env_${ac_var}_value=\$${ac_var}
1396 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1397 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1398 done
1399
1400 #
1401 # Report the --help message.
1402 #
1403 if test "$ac_init_help" = "long"; then
1404 # Omit some internal or obsolete options to make the list less imposing.
1405 # This message is too long to be a string in the A/UX 3.1 sh.
1406 cat <<_ACEOF
1407 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1408
1409 Usage: $0 [OPTION]... [VAR=VALUE]...
1410
1411 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1412 VAR=VALUE. See below for descriptions of some of the useful variables.
1413
1414 Defaults for the options are specified in brackets.
1415
1416 Configuration:
1417 -h, --help display this help and exit
1418 --help=short display options specific to this package
1419 --help=recursive display the short help of all the included packages
1420 -V, --version display version information and exit
1421 -q, --quiet, --silent do not print \`checking ...' messages
1422 --cache-file=FILE cache test results in FILE [disabled]
1423 -C, --config-cache alias for \`--cache-file=config.cache'
1424 -n, --no-create do not create output files
1425 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1426
1427 Installation directories:
1428 --prefix=PREFIX install architecture-independent files in PREFIX
1429 [$ac_default_prefix]
1430 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1431 [PREFIX]
1432
1433 By default, \`make install' will install all the files in
1434 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1435 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1436 for instance \`--prefix=\$HOME'.
1437
1438 For better control, use the options below.
1439
1440 Fine tuning of the installation directories:
1441 --bindir=DIR user executables [EPREFIX/bin]
1442 --sbindir=DIR system admin executables [EPREFIX/sbin]
1443 --libexecdir=DIR program executables [EPREFIX/libexec]
1444 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1445 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1446 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1447 --libdir=DIR object code libraries [EPREFIX/lib]
1448 --includedir=DIR C header files [PREFIX/include]
1449 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1450 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1451 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1452 --infodir=DIR info documentation [DATAROOTDIR/info]
1453 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1454 --mandir=DIR man documentation [DATAROOTDIR/man]
1455 --docdir=DIR documentation root [DATAROOTDIR/doc/libphobos]
1456 --htmldir=DIR html documentation [DOCDIR]
1457 --dvidir=DIR dvi documentation [DOCDIR]
1458 --pdfdir=DIR pdf documentation [DOCDIR]
1459 --psdir=DIR ps documentation [DOCDIR]
1460 _ACEOF
1461
1462 cat <<\_ACEOF
1463
1464 Program names:
1465 --program-prefix=PREFIX prepend PREFIX to installed program names
1466 --program-suffix=SUFFIX append SUFFIX to installed program names
1467 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1468
1469 System types:
1470 --build=BUILD configure for building on BUILD [guessed]
1471 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1472 --target=TARGET configure for building compilers for TARGET [HOST]
1473 _ACEOF
1474 fi
1475
1476 if test -n "$ac_init_help"; then
1477 case $ac_init_help in
1478 short | recursive ) echo "Configuration of package-unused version-unused:";;
1479 esac
1480 cat <<\_ACEOF
1481
1482 Optional Features:
1483 --disable-option-checking ignore unrecognized --enable/--with options
1484 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1485 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1486 --enable-multilib build many library versions (default)
1487 --enable-silent-rules less verbose build output (undo: "make V=1")
1488 --disable-silent-rules verbose build output (undo: "make V=0")
1489 --enable-maintainer-mode
1490 enable make rules and dependencies not useful (and
1491 sometimes confusing) to the casual installer
1492 --enable-cet enable Intel CET in target libraries [default=auto]
1493 --enable-shared[=PKGS] build shared libraries [default=yes]
1494 --enable-static[=PKGS] build static libraries [default=yes]
1495 --enable-fast-install[=PKGS]
1496 optimize for fast installation [default=yes]
1497 --disable-libtool-lock avoid locking (might break parallel builds)
1498 --enable-darwin-at-rpath
1499 install libraries with @rpath/library-name, requires
1500 rpaths to be added to executables
1501 --enable-werror turns on -Werror [default=no]
1502 --enable-version-specific-runtime-libs
1503 Specify that runtime libraries should be installed
1504 in a compiler-specific directory
1505 --enable-libphobos Enable libphobos
1506 --enable-libphobos-checking[=LIST]
1507 enable expensive run-time checks. With LIST, enable
1508 only specific categories of checks. Categories are:
1509 yes,no,all,none,release. Flags are: assert,valgrind
1510 or other strings
1511
1512 Optional Packages:
1513 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1514 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1515 --with-pic try to use only PIC/non-PIC objects [default=use
1516 both]
1517 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1518 --with-gcc-major-version-only
1519 use only GCC major number in filesystem paths
1520 --without-libatomic Do not use libatomic in core.atomic (default: auto)
1521 --without-libbacktrace Do not use libbacktrace in core.runtime (default:
1522 auto)
1523 --with-target-system-zlib={yes,no,auto}
1524 use installed libz (default: no)
1525 --with-cross-host=HOST configuring with a cross compiler
1526 --with-toolexeclibdir=DIR
1527 install libraries built with a cross compiler within
1528 DIR
1529 --with-libphobos-druntime-only={yes,no,auto}
1530 build only the druntime library (default: auto)
1531
1532 Some influential environment variables:
1533 CC C compiler command
1534 CFLAGS C compiler flags
1535 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1536 nonstandard directory <lib dir>
1537 LIBS libraries to pass to the linker, e.g. -l<library>
1538 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1539 you have headers in a nonstandard directory <include dir>
1540 CPP C preprocessor
1541 CCAS assembler compiler command (defaults to CC)
1542 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1543 GDC D compiler command
1544 GDCFLAGS D compiler flags
1545
1546 Use these variables to override the choices made by `configure' or to help
1547 it to find libraries and programs with nonstandard names/locations.
1548
1549 Report bugs to the package provider.
1550 _ACEOF
1551 ac_status=$?
1552 fi
1553
1554 if test "$ac_init_help" = "recursive"; then
1555 # If there are subdirs, report their specific --help.
1556 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1557 test -d "$ac_dir" ||
1558 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1559 continue
1560 ac_builddir=.
1561
1562 case "$ac_dir" in
1563 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1564 *)
1565 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1566 # A ".." for each directory in $ac_dir_suffix.
1567 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1568 case $ac_top_builddir_sub in
1569 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1570 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1571 esac ;;
1572 esac
1573 ac_abs_top_builddir=$ac_pwd
1574 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1575 # for backward compatibility:
1576 ac_top_builddir=$ac_top_build_prefix
1577
1578 case $srcdir in
1579 .) # We are building in place.
1580 ac_srcdir=.
1581 ac_top_srcdir=$ac_top_builddir_sub
1582 ac_abs_top_srcdir=$ac_pwd ;;
1583 [\\/]* | ?:[\\/]* ) # Absolute name.
1584 ac_srcdir=$srcdir$ac_dir_suffix;
1585 ac_top_srcdir=$srcdir
1586 ac_abs_top_srcdir=$srcdir ;;
1587 *) # Relative name.
1588 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1589 ac_top_srcdir=$ac_top_build_prefix$srcdir
1590 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1591 esac
1592 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1593
1594 cd "$ac_dir" || { ac_status=$?; continue; }
1595 # Check for guested configure.
1596 if test -f "$ac_srcdir/configure.gnu"; then
1597 echo &&
1598 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1599 elif test -f "$ac_srcdir/configure"; then
1600 echo &&
1601 $SHELL "$ac_srcdir/configure" --help=recursive
1602 else
1603 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1604 fi || ac_status=$?
1605 cd "$ac_pwd" || { ac_status=$?; break; }
1606 done
1607 fi
1608
1609 test -n "$ac_init_help" && exit $ac_status
1610 if $ac_init_version; then
1611 cat <<\_ACEOF
1612 package-unused configure version-unused
1613 generated by GNU Autoconf 2.69
1614
1615 Copyright (C) 2012 Free Software Foundation, Inc.
1616 This configure script is free software; the Free Software Foundation
1617 gives unlimited permission to copy, distribute and modify it.
1618 _ACEOF
1619 exit
1620 fi
1621
1622 ## ------------------------ ##
1623 ## Autoconf initialization. ##
1624 ## ------------------------ ##
1625
1626 # ac_fn_c_try_compile LINENO
1627 # --------------------------
1628 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1629 ac_fn_c_try_compile ()
1630 {
1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632 rm -f conftest.$ac_objext
1633 if { { ac_try="$ac_compile"
1634 case "(($ac_try" in
1635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636 *) ac_try_echo=$ac_try;;
1637 esac
1638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639 $as_echo "$ac_try_echo"; } >&5
1640 (eval "$ac_compile") 2>conftest.err
1641 ac_status=$?
1642 if test -s conftest.err; then
1643 grep -v '^ *+' conftest.err >conftest.er1
1644 cat conftest.er1 >&5
1645 mv -f conftest.er1 conftest.err
1646 fi
1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648 test $ac_status = 0; } && {
1649 test -z "$ac_c_werror_flag" ||
1650 test ! -s conftest.err
1651 } && test -s conftest.$ac_objext; then :
1652 ac_retval=0
1653 else
1654 $as_echo "$as_me: failed program was:" >&5
1655 sed 's/^/| /' conftest.$ac_ext >&5
1656
1657 ac_retval=1
1658 fi
1659 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660 as_fn_set_status $ac_retval
1661
1662 } # ac_fn_c_try_compile
1663
1664 # ac_fn_c_try_cpp LINENO
1665 # ----------------------
1666 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1667 ac_fn_c_try_cpp ()
1668 {
1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670 if { { ac_try="$ac_cpp conftest.$ac_ext"
1671 case "(($ac_try" in
1672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1673 *) ac_try_echo=$ac_try;;
1674 esac
1675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676 $as_echo "$ac_try_echo"; } >&5
1677 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1678 ac_status=$?
1679 if test -s conftest.err; then
1680 grep -v '^ *+' conftest.err >conftest.er1
1681 cat conftest.er1 >&5
1682 mv -f conftest.er1 conftest.err
1683 fi
1684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685 test $ac_status = 0; } > conftest.i && {
1686 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1687 test ! -s conftest.err
1688 }; then :
1689 ac_retval=0
1690 else
1691 $as_echo "$as_me: failed program was:" >&5
1692 sed 's/^/| /' conftest.$ac_ext >&5
1693
1694 ac_retval=1
1695 fi
1696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697 as_fn_set_status $ac_retval
1698
1699 } # ac_fn_c_try_cpp
1700
1701 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1702 # -------------------------------------------------------
1703 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1704 # the include files in INCLUDES and setting the cache variable VAR
1705 # accordingly.
1706 ac_fn_c_check_header_mongrel ()
1707 {
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 if eval \${$3+:} false; then :
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1711 $as_echo_n "checking for $2... " >&6; }
1712 if eval \${$3+:} false; then :
1713 $as_echo_n "(cached) " >&6
1714 fi
1715 eval ac_res=\$$3
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1717 $as_echo "$ac_res" >&6; }
1718 else
1719 # Is the header compilable?
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1721 $as_echo_n "checking $2 usability... " >&6; }
1722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1723 /* end confdefs.h. */
1724 $4
1725 #include <$2>
1726 _ACEOF
1727 if ac_fn_c_try_compile "$LINENO"; then :
1728 ac_header_compiler=yes
1729 else
1730 ac_header_compiler=no
1731 fi
1732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1734 $as_echo "$ac_header_compiler" >&6; }
1735
1736 # Is the header present?
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1738 $as_echo_n "checking $2 presence... " >&6; }
1739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1740 /* end confdefs.h. */
1741 #include <$2>
1742 _ACEOF
1743 if ac_fn_c_try_cpp "$LINENO"; then :
1744 ac_header_preproc=yes
1745 else
1746 ac_header_preproc=no
1747 fi
1748 rm -f conftest.err conftest.i conftest.$ac_ext
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1750 $as_echo "$ac_header_preproc" >&6; }
1751
1752 # So? What about this header?
1753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1754 yes:no: )
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1756 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1758 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1759 ;;
1760 no:yes:* )
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1762 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1764 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1766 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1768 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1770 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1771 ;;
1772 esac
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1774 $as_echo_n "checking for $2... " >&6; }
1775 if eval \${$3+:} false; then :
1776 $as_echo_n "(cached) " >&6
1777 else
1778 eval "$3=\$ac_header_compiler"
1779 fi
1780 eval ac_res=\$$3
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1782 $as_echo "$ac_res" >&6; }
1783 fi
1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1785
1786 } # ac_fn_c_check_header_mongrel
1787
1788 # ac_fn_c_try_run LINENO
1789 # ----------------------
1790 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1791 # that executables *can* be run.
1792 ac_fn_c_try_run ()
1793 {
1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795 if { { ac_try="$ac_link"
1796 case "(($ac_try" in
1797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1798 *) ac_try_echo=$ac_try;;
1799 esac
1800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1801 $as_echo "$ac_try_echo"; } >&5
1802 (eval "$ac_link") 2>&5
1803 ac_status=$?
1804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1806 { { case "(($ac_try" in
1807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808 *) ac_try_echo=$ac_try;;
1809 esac
1810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811 $as_echo "$ac_try_echo"; } >&5
1812 (eval "$ac_try") 2>&5
1813 ac_status=$?
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; }; }; then :
1816 ac_retval=0
1817 else
1818 $as_echo "$as_me: program exited with status $ac_status" >&5
1819 $as_echo "$as_me: failed program was:" >&5
1820 sed 's/^/| /' conftest.$ac_ext >&5
1821
1822 ac_retval=$ac_status
1823 fi
1824 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1825 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826 as_fn_set_status $ac_retval
1827
1828 } # ac_fn_c_try_run
1829
1830 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1831 # -------------------------------------------------------
1832 # Tests whether HEADER exists and can be compiled using the include files in
1833 # INCLUDES, setting the cache variable VAR accordingly.
1834 ac_fn_c_check_header_compile ()
1835 {
1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1838 $as_echo_n "checking for $2... " >&6; }
1839 if eval \${$3+:} false; then :
1840 $as_echo_n "(cached) " >&6
1841 else
1842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843 /* end confdefs.h. */
1844 $4
1845 #include <$2>
1846 _ACEOF
1847 if ac_fn_c_try_compile "$LINENO"; then :
1848 eval "$3=yes"
1849 else
1850 eval "$3=no"
1851 fi
1852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1853 fi
1854 eval ac_res=\$$3
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1856 $as_echo "$ac_res" >&6; }
1857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858
1859 } # ac_fn_c_check_header_compile
1860
1861 # ac_fn_d_try_compile LINENO
1862 # --------------------------
1863 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1864 ac_fn_d_try_compile ()
1865 {
1866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867 rm -f conftest.$ac_objext
1868 if { { ac_try="$ac_compile"
1869 case "(($ac_try" in
1870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1871 *) ac_try_echo=$ac_try;;
1872 esac
1873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1874 $as_echo "$ac_try_echo"; } >&5
1875 (eval "$ac_compile") 2>conftest.err
1876 ac_status=$?
1877 if test -s conftest.err; then
1878 grep -v '^ *+' conftest.err >conftest.er1
1879 cat conftest.er1 >&5
1880 mv -f conftest.er1 conftest.err
1881 fi
1882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1883 test $ac_status = 0; } && {
1884 test -z "$ac_d_werror_flag" ||
1885 test ! -s conftest.err
1886 } && test -s conftest.$ac_objext; then :
1887 ac_retval=0
1888 else
1889 $as_echo "$as_me: failed program was:" >&5
1890 sed 's/^/| /' conftest.$ac_ext >&5
1891
1892 ac_retval=1
1893 fi
1894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895 as_fn_set_status $ac_retval
1896
1897 } # ac_fn_d_try_compile
1898
1899 # ac_fn_c_try_link LINENO
1900 # -----------------------
1901 # Try to link conftest.$ac_ext, and return whether this succeeded.
1902 ac_fn_c_try_link ()
1903 {
1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905 rm -f conftest.$ac_objext conftest$ac_exeext
1906 if { { ac_try="$ac_link"
1907 case "(($ac_try" in
1908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1909 *) ac_try_echo=$ac_try;;
1910 esac
1911 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1912 $as_echo "$ac_try_echo"; } >&5
1913 (eval "$ac_link") 2>conftest.err
1914 ac_status=$?
1915 if test -s conftest.err; then
1916 grep -v '^ *+' conftest.err >conftest.er1
1917 cat conftest.er1 >&5
1918 mv -f conftest.er1 conftest.err
1919 fi
1920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1921 test $ac_status = 0; } && {
1922 test -z "$ac_c_werror_flag" ||
1923 test ! -s conftest.err
1924 } && test -s conftest$ac_exeext && {
1925 test "$cross_compiling" = yes ||
1926 test -x conftest$ac_exeext
1927 }; then :
1928 ac_retval=0
1929 else
1930 $as_echo "$as_me: failed program was:" >&5
1931 sed 's/^/| /' conftest.$ac_ext >&5
1932
1933 ac_retval=1
1934 fi
1935 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1936 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1937 # interfere with the next link command; also delete a directory that is
1938 # left behind by Apple's compiler. We do this before executing the actions.
1939 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1940 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941 as_fn_set_status $ac_retval
1942
1943 } # ac_fn_c_try_link
1944
1945 # ac_fn_c_check_func LINENO FUNC VAR
1946 # ----------------------------------
1947 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1948 ac_fn_c_check_func ()
1949 {
1950 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1952 $as_echo_n "checking for $2... " >&6; }
1953 if eval \${$3+:} false; then :
1954 $as_echo_n "(cached) " >&6
1955 else
1956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957 /* end confdefs.h. */
1958 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1959 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1960 #define $2 innocuous_$2
1961
1962 /* System header to define __stub macros and hopefully few prototypes,
1963 which can conflict with char $2 (); below.
1964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1965 <limits.h> exists even on freestanding compilers. */
1966
1967 #ifdef __STDC__
1968 # include <limits.h>
1969 #else
1970 # include <assert.h>
1971 #endif
1972
1973 #undef $2
1974
1975 /* Override any GCC internal prototype to avoid an error.
1976 Use char because int might match the return type of a GCC
1977 builtin and then its argument prototype would still apply. */
1978 #ifdef __cplusplus
1979 extern "C"
1980 #endif
1981 char $2 ();
1982 /* The GNU C library defines this for functions which it implements
1983 to always fail with ENOSYS. Some functions are actually named
1984 something starting with __ and the normal name is an alias. */
1985 #if defined __stub_$2 || defined __stub___$2
1986 choke me
1987 #endif
1988
1989 int
1990 main ()
1991 {
1992 return $2 ();
1993 ;
1994 return 0;
1995 }
1996 _ACEOF
1997 if ac_fn_c_try_link "$LINENO"; then :
1998 eval "$3=yes"
1999 else
2000 eval "$3=no"
2001 fi
2002 rm -f core conftest.err conftest.$ac_objext \
2003 conftest$ac_exeext conftest.$ac_ext
2004 fi
2005 eval ac_res=\$$3
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2007 $as_echo "$ac_res" >&6; }
2008 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2009
2010 } # ac_fn_c_check_func
2011
2012 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2013 # ----------------------------------------------------
2014 # Tries to find if the field MEMBER exists in type AGGR, after including
2015 # INCLUDES, setting cache variable VAR accordingly.
2016 ac_fn_c_check_member ()
2017 {
2018 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2020 $as_echo_n "checking for $2.$3... " >&6; }
2021 if eval \${$4+:} false; then :
2022 $as_echo_n "(cached) " >&6
2023 else
2024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025 /* end confdefs.h. */
2026 $5
2027 int
2028 main ()
2029 {
2030 static $2 ac_aggr;
2031 if (ac_aggr.$3)
2032 return 0;
2033 ;
2034 return 0;
2035 }
2036 _ACEOF
2037 if ac_fn_c_try_compile "$LINENO"; then :
2038 eval "$4=yes"
2039 else
2040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041 /* end confdefs.h. */
2042 $5
2043 int
2044 main ()
2045 {
2046 static $2 ac_aggr;
2047 if (sizeof ac_aggr.$3)
2048 return 0;
2049 ;
2050 return 0;
2051 }
2052 _ACEOF
2053 if ac_fn_c_try_compile "$LINENO"; then :
2054 eval "$4=yes"
2055 else
2056 eval "$4=no"
2057 fi
2058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2059 fi
2060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2061 fi
2062 eval ac_res=\$$4
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2064 $as_echo "$ac_res" >&6; }
2065 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2066
2067 } # ac_fn_c_check_member
2068
2069 # ac_fn_d_try_link LINENO
2070 # -----------------------
2071 # Try to link conftest.$ac_ext, and return whether this succeeded.
2072 ac_fn_d_try_link ()
2073 {
2074 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2075 rm -f conftest.$ac_objext conftest$ac_exeext
2076 if { { ac_try="$ac_link"
2077 case "(($ac_try" in
2078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2079 *) ac_try_echo=$ac_try;;
2080 esac
2081 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2082 $as_echo "$ac_try_echo"; } >&5
2083 (eval "$ac_link") 2>conftest.err
2084 ac_status=$?
2085 if test -s conftest.err; then
2086 grep -v '^ *+' conftest.err >conftest.er1
2087 cat conftest.er1 >&5
2088 mv -f conftest.er1 conftest.err
2089 fi
2090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2091 test $ac_status = 0; } && {
2092 test -z "$ac_d_werror_flag" ||
2093 test ! -s conftest.err
2094 } && test -s conftest$ac_exeext && {
2095 test "$cross_compiling" = yes ||
2096 test -x conftest$ac_exeext
2097 }; then :
2098 ac_retval=0
2099 else
2100 $as_echo "$as_me: failed program was:" >&5
2101 sed 's/^/| /' conftest.$ac_ext >&5
2102
2103 ac_retval=1
2104 fi
2105 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2106 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2107 # interfere with the next link command; also delete a directory that is
2108 # left behind by Apple's compiler. We do this before executing the actions.
2109 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2110 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2111 as_fn_set_status $ac_retval
2112
2113 } # ac_fn_d_try_link
2114 cat >config.log <<_ACEOF
2115 This file contains any messages produced by compilers while
2116 running configure, to aid debugging if configure makes a mistake.
2117
2118 It was created by package-unused $as_me version-unused, which was
2119 generated by GNU Autoconf 2.69. Invocation command line was
2120
2121 $ $0 $@
2122
2123 _ACEOF
2124 exec 5>>config.log
2125 {
2126 cat <<_ASUNAME
2127 ## --------- ##
2128 ## Platform. ##
2129 ## --------- ##
2130
2131 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2132 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2133 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2134 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2135 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2136
2137 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2138 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2139
2140 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2141 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2142 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2143 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2144 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2145 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2146 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2147
2148 _ASUNAME
2149
2150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2151 for as_dir in $PATH
2152 do
2153 IFS=$as_save_IFS
2154 test -z "$as_dir" && as_dir=.
2155 $as_echo "PATH: $as_dir"
2156 done
2157 IFS=$as_save_IFS
2158
2159 } >&5
2160
2161 cat >&5 <<_ACEOF
2162
2163
2164 ## ----------- ##
2165 ## Core tests. ##
2166 ## ----------- ##
2167
2168 _ACEOF
2169
2170
2171 # Keep a trace of the command line.
2172 # Strip out --no-create and --no-recursion so they do not pile up.
2173 # Strip out --silent because we don't want to record it for future runs.
2174 # Also quote any args containing shell meta-characters.
2175 # Make two passes to allow for proper duplicate-argument suppression.
2176 ac_configure_args=
2177 ac_configure_args0=
2178 ac_configure_args1=
2179 ac_must_keep_next=false
2180 for ac_pass in 1 2
2181 do
2182 for ac_arg
2183 do
2184 case $ac_arg in
2185 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2186 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2187 | -silent | --silent | --silen | --sile | --sil)
2188 continue ;;
2189 *\'*)
2190 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2191 esac
2192 case $ac_pass in
2193 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2194 2)
2195 as_fn_append ac_configure_args1 " '$ac_arg'"
2196 if test $ac_must_keep_next = true; then
2197 ac_must_keep_next=false # Got value, back to normal.
2198 else
2199 case $ac_arg in
2200 *=* | --config-cache | -C | -disable-* | --disable-* \
2201 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2202 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2203 | -with-* | --with-* | -without-* | --without-* | --x)
2204 case "$ac_configure_args0 " in
2205 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2206 esac
2207 ;;
2208 -* ) ac_must_keep_next=true ;;
2209 esac
2210 fi
2211 as_fn_append ac_configure_args " '$ac_arg'"
2212 ;;
2213 esac
2214 done
2215 done
2216 { ac_configure_args0=; unset ac_configure_args0;}
2217 { ac_configure_args1=; unset ac_configure_args1;}
2218
2219 # When interrupted or exit'd, cleanup temporary files, and complete
2220 # config.log. We remove comments because anyway the quotes in there
2221 # would cause problems or look ugly.
2222 # WARNING: Use '\'' to represent an apostrophe within the trap.
2223 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2224 trap 'exit_status=$?
2225 # Save into config.log some information that might help in debugging.
2226 {
2227 echo
2228
2229 $as_echo "## ---------------- ##
2230 ## Cache variables. ##
2231 ## ---------------- ##"
2232 echo
2233 # The following way of writing the cache mishandles newlines in values,
2234 (
2235 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2236 eval ac_val=\$$ac_var
2237 case $ac_val in #(
2238 *${as_nl}*)
2239 case $ac_var in #(
2240 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2241 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2242 esac
2243 case $ac_var in #(
2244 _ | IFS | as_nl) ;; #(
2245 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2246 *) { eval $ac_var=; unset $ac_var;} ;;
2247 esac ;;
2248 esac
2249 done
2250 (set) 2>&1 |
2251 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2252 *${as_nl}ac_space=\ *)
2253 sed -n \
2254 "s/'\''/'\''\\\\'\'''\''/g;
2255 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2256 ;; #(
2257 *)
2258 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2259 ;;
2260 esac |
2261 sort
2262 )
2263 echo
2264
2265 $as_echo "## ----------------- ##
2266 ## Output variables. ##
2267 ## ----------------- ##"
2268 echo
2269 for ac_var in $ac_subst_vars
2270 do
2271 eval ac_val=\$$ac_var
2272 case $ac_val in
2273 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2274 esac
2275 $as_echo "$ac_var='\''$ac_val'\''"
2276 done | sort
2277 echo
2278
2279 if test -n "$ac_subst_files"; then
2280 $as_echo "## ------------------- ##
2281 ## File substitutions. ##
2282 ## ------------------- ##"
2283 echo
2284 for ac_var in $ac_subst_files
2285 do
2286 eval ac_val=\$$ac_var
2287 case $ac_val in
2288 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2289 esac
2290 $as_echo "$ac_var='\''$ac_val'\''"
2291 done | sort
2292 echo
2293 fi
2294
2295 if test -s confdefs.h; then
2296 $as_echo "## ----------- ##
2297 ## confdefs.h. ##
2298 ## ----------- ##"
2299 echo
2300 cat confdefs.h
2301 echo
2302 fi
2303 test "$ac_signal" != 0 &&
2304 $as_echo "$as_me: caught signal $ac_signal"
2305 $as_echo "$as_me: exit $exit_status"
2306 } >&5
2307 rm -f core *.core core.conftest.* &&
2308 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2309 exit $exit_status
2310 ' 0
2311 for ac_signal in 1 2 13 15; do
2312 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2313 done
2314 ac_signal=0
2315
2316 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2317 rm -f -r conftest* confdefs.h
2318
2319 $as_echo "/* confdefs.h */" > confdefs.h
2320
2321 # Predefined preprocessor variables.
2322
2323 cat >>confdefs.h <<_ACEOF
2324 #define PACKAGE_NAME "$PACKAGE_NAME"
2325 _ACEOF
2326
2327 cat >>confdefs.h <<_ACEOF
2328 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2329 _ACEOF
2330
2331 cat >>confdefs.h <<_ACEOF
2332 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2333 _ACEOF
2334
2335 cat >>confdefs.h <<_ACEOF
2336 #define PACKAGE_STRING "$PACKAGE_STRING"
2337 _ACEOF
2338
2339 cat >>confdefs.h <<_ACEOF
2340 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2341 _ACEOF
2342
2343 cat >>confdefs.h <<_ACEOF
2344 #define PACKAGE_URL "$PACKAGE_URL"
2345 _ACEOF
2346
2347
2348 # Let the site file select an alternate cache file if it wants to.
2349 # Prefer an explicitly selected file to automatically selected ones.
2350 ac_site_file1=NONE
2351 ac_site_file2=NONE
2352 if test -n "$CONFIG_SITE"; then
2353 # We do not want a PATH search for config.site.
2354 case $CONFIG_SITE in #((
2355 -*) ac_site_file1=./$CONFIG_SITE;;
2356 */*) ac_site_file1=$CONFIG_SITE;;
2357 *) ac_site_file1=./$CONFIG_SITE;;
2358 esac
2359 elif test "x$prefix" != xNONE; then
2360 ac_site_file1=$prefix/share/config.site
2361 ac_site_file2=$prefix/etc/config.site
2362 else
2363 ac_site_file1=$ac_default_prefix/share/config.site
2364 ac_site_file2=$ac_default_prefix/etc/config.site
2365 fi
2366 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2367 do
2368 test "x$ac_site_file" = xNONE && continue
2369 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2371 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2372 sed 's/^/| /' "$ac_site_file" >&5
2373 . "$ac_site_file" \
2374 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2375 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2376 as_fn_error $? "failed to load site script $ac_site_file
2377 See \`config.log' for more details" "$LINENO" 5; }
2378 fi
2379 done
2380
2381 if test -r "$cache_file"; then
2382 # Some versions of bash will fail to source /dev/null (special files
2383 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2384 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2386 $as_echo "$as_me: loading cache $cache_file" >&6;}
2387 case $cache_file in
2388 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2389 *) . "./$cache_file";;
2390 esac
2391 fi
2392 else
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2394 $as_echo "$as_me: creating cache $cache_file" >&6;}
2395 >$cache_file
2396 fi
2397
2398 # Check that the precious variables saved in the cache have kept the same
2399 # value.
2400 ac_cache_corrupted=false
2401 for ac_var in $ac_precious_vars; do
2402 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2403 eval ac_new_set=\$ac_env_${ac_var}_set
2404 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2405 eval ac_new_val=\$ac_env_${ac_var}_value
2406 case $ac_old_set,$ac_new_set in
2407 set,)
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2409 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2410 ac_cache_corrupted=: ;;
2411 ,set)
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2413 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2414 ac_cache_corrupted=: ;;
2415 ,);;
2416 *)
2417 if test "x$ac_old_val" != "x$ac_new_val"; then
2418 # differences in whitespace do not lead to failure.
2419 ac_old_val_w=`echo x $ac_old_val`
2420 ac_new_val_w=`echo x $ac_new_val`
2421 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2423 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2424 ac_cache_corrupted=:
2425 else
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2427 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2428 eval $ac_var=\$ac_old_val
2429 fi
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2431 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2433 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2434 fi;;
2435 esac
2436 # Pass precious variables to config.status.
2437 if test "$ac_new_set" = set; then
2438 case $ac_new_val in
2439 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2440 *) ac_arg=$ac_var=$ac_new_val ;;
2441 esac
2442 case " $ac_configure_args " in
2443 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2444 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2445 esac
2446 fi
2447 done
2448 if $ac_cache_corrupted; then
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2452 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2453 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2454 fi
2455 ## -------------------- ##
2456 ## Main body of script. ##
2457 ## -------------------- ##
2458
2459 ac_ext=c
2460 ac_cpp='$CPP $CPPFLAGS'
2461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2464
2465
2466
2467
2468
2469
2470 ac_config_headers="$ac_config_headers config.h"
2471
2472
2473 # Default to --enable-multilib
2474 # Check whether --enable-multilib was given.
2475 if test "${enable_multilib+set}" = set; then :
2476 enableval=$enable_multilib; case "$enableval" in
2477 yes) multilib=yes ;;
2478 no) multilib=no ;;
2479 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2480 esac
2481 else
2482 multilib=yes
2483 fi
2484
2485
2486 # We may get other options which we leave undocumented:
2487 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2488 # See config-ml.in if you want the gory details.
2489
2490 if test "$srcdir" = "."; then
2491 if test "$with_target_subdir" != "."; then
2492 multi_basedir="$srcdir/$with_multisrctop../.."
2493 else
2494 multi_basedir="$srcdir/$with_multisrctop.."
2495 fi
2496 else
2497 multi_basedir="$srcdir/.."
2498 fi
2499
2500
2501 # Even if the default multilib is not a cross compilation,
2502 # it may be that some of the other multilibs are.
2503 if test $cross_compiling = no && test $multilib = yes \
2504 && test "x${with_multisubdir}" != x ; then
2505 cross_compiling=maybe
2506 fi
2507
2508 ac_config_commands="$ac_config_commands default-1"
2509
2510 ac_aux_dir=
2511 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2512 if test -f "$ac_dir/install-sh"; then
2513 ac_aux_dir=$ac_dir
2514 ac_install_sh="$ac_aux_dir/install-sh -c"
2515 break
2516 elif test -f "$ac_dir/install.sh"; then
2517 ac_aux_dir=$ac_dir
2518 ac_install_sh="$ac_aux_dir/install.sh -c"
2519 break
2520 elif test -f "$ac_dir/shtool"; then
2521 ac_aux_dir=$ac_dir
2522 ac_install_sh="$ac_aux_dir/shtool install -c"
2523 break
2524 fi
2525 done
2526 if test -z "$ac_aux_dir"; then
2527 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2528 fi
2529
2530 # These three variables are undocumented and unsupported,
2531 # and are intended to be withdrawn in a future Autoconf release.
2532 # They can cause serious problems if a builder's source tree is in a directory
2533 # whose full name contains unusual characters.
2534 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2535 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2536 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2537
2538
2539 # Make sure we can run config.sub.
2540 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2541 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2542
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2544 $as_echo_n "checking build system type... " >&6; }
2545 if ${ac_cv_build+:} false; then :
2546 $as_echo_n "(cached) " >&6
2547 else
2548 ac_build_alias=$build_alias
2549 test "x$ac_build_alias" = x &&
2550 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2551 test "x$ac_build_alias" = x &&
2552 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2553 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2554 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2555
2556 fi
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2558 $as_echo "$ac_cv_build" >&6; }
2559 case $ac_cv_build in
2560 *-*-*) ;;
2561 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2562 esac
2563 build=$ac_cv_build
2564 ac_save_IFS=$IFS; IFS='-'
2565 set x $ac_cv_build
2566 shift
2567 build_cpu=$1
2568 build_vendor=$2
2569 shift; shift
2570 # Remember, the first character of IFS is used to create $*,
2571 # except with old shells:
2572 build_os=$*
2573 IFS=$ac_save_IFS
2574 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2575
2576
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2578 $as_echo_n "checking host system type... " >&6; }
2579 if ${ac_cv_host+:} false; then :
2580 $as_echo_n "(cached) " >&6
2581 else
2582 if test "x$host_alias" = x; then
2583 ac_cv_host=$ac_cv_build
2584 else
2585 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2586 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2587 fi
2588
2589 fi
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2591 $as_echo "$ac_cv_host" >&6; }
2592 case $ac_cv_host in
2593 *-*-*) ;;
2594 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2595 esac
2596 host=$ac_cv_host
2597 ac_save_IFS=$IFS; IFS='-'
2598 set x $ac_cv_host
2599 shift
2600 host_cpu=$1
2601 host_vendor=$2
2602 shift; shift
2603 # Remember, the first character of IFS is used to create $*,
2604 # except with old shells:
2605 host_os=$*
2606 IFS=$ac_save_IFS
2607 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2608
2609
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2611 $as_echo_n "checking target system type... " >&6; }
2612 if ${ac_cv_target+:} false; then :
2613 $as_echo_n "(cached) " >&6
2614 else
2615 if test "x$target_alias" = x; then
2616 ac_cv_target=$ac_cv_host
2617 else
2618 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2619 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2620 fi
2621
2622 fi
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2624 $as_echo "$ac_cv_target" >&6; }
2625 case $ac_cv_target in
2626 *-*-*) ;;
2627 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2628 esac
2629 target=$ac_cv_target
2630 ac_save_IFS=$IFS; IFS='-'
2631 set x $ac_cv_target
2632 shift
2633 target_cpu=$1
2634 target_vendor=$2
2635 shift; shift
2636 # Remember, the first character of IFS is used to create $*,
2637 # except with old shells:
2638 target_os=$*
2639 IFS=$ac_save_IFS
2640 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2641
2642
2643 # The aliases save the names the user supplied, while $host etc.
2644 # will get canonicalized.
2645 test -n "$target_alias" &&
2646 test "$program_prefix$program_suffix$program_transform_name" = \
2647 NONENONEs,x,x, &&
2648 program_prefix=${target_alias}-
2649
2650 # Expand $ac_aux_dir to an absolute path.
2651 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2652
2653 ac_ext=c
2654 ac_cpp='$CPP $CPPFLAGS'
2655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2658 if test -n "$ac_tool_prefix"; then
2659 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2660 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2662 $as_echo_n "checking for $ac_word... " >&6; }
2663 if ${ac_cv_prog_CC+:} false; then :
2664 $as_echo_n "(cached) " >&6
2665 else
2666 if test -n "$CC"; then
2667 ac_cv_prog_CC="$CC" # Let the user override the test.
2668 else
2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670 for as_dir in $PATH
2671 do
2672 IFS=$as_save_IFS
2673 test -z "$as_dir" && as_dir=.
2674 for ac_exec_ext in '' $ac_executable_extensions; do
2675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2676 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2678 break 2
2679 fi
2680 done
2681 done
2682 IFS=$as_save_IFS
2683
2684 fi
2685 fi
2686 CC=$ac_cv_prog_CC
2687 if test -n "$CC"; then
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2689 $as_echo "$CC" >&6; }
2690 else
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2692 $as_echo "no" >&6; }
2693 fi
2694
2695
2696 fi
2697 if test -z "$ac_cv_prog_CC"; then
2698 ac_ct_CC=$CC
2699 # Extract the first word of "gcc", so it can be a program name with args.
2700 set dummy gcc; ac_word=$2
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2702 $as_echo_n "checking for $ac_word... " >&6; }
2703 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2704 $as_echo_n "(cached) " >&6
2705 else
2706 if test -n "$ac_ct_CC"; then
2707 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2708 else
2709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2710 for as_dir in $PATH
2711 do
2712 IFS=$as_save_IFS
2713 test -z "$as_dir" && as_dir=.
2714 for ac_exec_ext in '' $ac_executable_extensions; do
2715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2716 ac_cv_prog_ac_ct_CC="gcc"
2717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2718 break 2
2719 fi
2720 done
2721 done
2722 IFS=$as_save_IFS
2723
2724 fi
2725 fi
2726 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2727 if test -n "$ac_ct_CC"; then
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2729 $as_echo "$ac_ct_CC" >&6; }
2730 else
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2732 $as_echo "no" >&6; }
2733 fi
2734
2735 if test "x$ac_ct_CC" = x; then
2736 CC=""
2737 else
2738 case $cross_compiling:$ac_tool_warned in
2739 yes:)
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2741 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2742 ac_tool_warned=yes ;;
2743 esac
2744 CC=$ac_ct_CC
2745 fi
2746 else
2747 CC="$ac_cv_prog_CC"
2748 fi
2749
2750 if test -z "$CC"; then
2751 if test -n "$ac_tool_prefix"; then
2752 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2753 set dummy ${ac_tool_prefix}cc; ac_word=$2
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2755 $as_echo_n "checking for $ac_word... " >&6; }
2756 if ${ac_cv_prog_CC+:} false; then :
2757 $as_echo_n "(cached) " >&6
2758 else
2759 if test -n "$CC"; then
2760 ac_cv_prog_CC="$CC" # Let the user override the test.
2761 else
2762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763 for as_dir in $PATH
2764 do
2765 IFS=$as_save_IFS
2766 test -z "$as_dir" && as_dir=.
2767 for ac_exec_ext in '' $ac_executable_extensions; do
2768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2769 ac_cv_prog_CC="${ac_tool_prefix}cc"
2770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2771 break 2
2772 fi
2773 done
2774 done
2775 IFS=$as_save_IFS
2776
2777 fi
2778 fi
2779 CC=$ac_cv_prog_CC
2780 if test -n "$CC"; then
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2782 $as_echo "$CC" >&6; }
2783 else
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2785 $as_echo "no" >&6; }
2786 fi
2787
2788
2789 fi
2790 fi
2791 if test -z "$CC"; then
2792 # Extract the first word of "cc", so it can be a program name with args.
2793 set dummy cc; ac_word=$2
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2795 $as_echo_n "checking for $ac_word... " >&6; }
2796 if ${ac_cv_prog_CC+:} false; then :
2797 $as_echo_n "(cached) " >&6
2798 else
2799 if test -n "$CC"; then
2800 ac_cv_prog_CC="$CC" # Let the user override the test.
2801 else
2802 ac_prog_rejected=no
2803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2804 for as_dir in $PATH
2805 do
2806 IFS=$as_save_IFS
2807 test -z "$as_dir" && as_dir=.
2808 for ac_exec_ext in '' $ac_executable_extensions; do
2809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2810 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2811 ac_prog_rejected=yes
2812 continue
2813 fi
2814 ac_cv_prog_CC="cc"
2815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2816 break 2
2817 fi
2818 done
2819 done
2820 IFS=$as_save_IFS
2821
2822 if test $ac_prog_rejected = yes; then
2823 # We found a bogon in the path, so make sure we never use it.
2824 set dummy $ac_cv_prog_CC
2825 shift
2826 if test $# != 0; then
2827 # We chose a different compiler from the bogus one.
2828 # However, it has the same basename, so the bogon will be chosen
2829 # first if we set CC to just the basename; use the full file name.
2830 shift
2831 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2832 fi
2833 fi
2834 fi
2835 fi
2836 CC=$ac_cv_prog_CC
2837 if test -n "$CC"; then
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2839 $as_echo "$CC" >&6; }
2840 else
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2842 $as_echo "no" >&6; }
2843 fi
2844
2845
2846 fi
2847 if test -z "$CC"; then
2848 if test -n "$ac_tool_prefix"; then
2849 for ac_prog in cl.exe
2850 do
2851 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2852 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2854 $as_echo_n "checking for $ac_word... " >&6; }
2855 if ${ac_cv_prog_CC+:} false; then :
2856 $as_echo_n "(cached) " >&6
2857 else
2858 if test -n "$CC"; then
2859 ac_cv_prog_CC="$CC" # Let the user override the test.
2860 else
2861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862 for as_dir in $PATH
2863 do
2864 IFS=$as_save_IFS
2865 test -z "$as_dir" && as_dir=.
2866 for ac_exec_ext in '' $ac_executable_extensions; do
2867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2868 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2870 break 2
2871 fi
2872 done
2873 done
2874 IFS=$as_save_IFS
2875
2876 fi
2877 fi
2878 CC=$ac_cv_prog_CC
2879 if test -n "$CC"; then
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2881 $as_echo "$CC" >&6; }
2882 else
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2884 $as_echo "no" >&6; }
2885 fi
2886
2887
2888 test -n "$CC" && break
2889 done
2890 fi
2891 if test -z "$CC"; then
2892 ac_ct_CC=$CC
2893 for ac_prog in cl.exe
2894 do
2895 # Extract the first word of "$ac_prog", so it can be a program name with args.
2896 set dummy $ac_prog; ac_word=$2
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2898 $as_echo_n "checking for $ac_word... " >&6; }
2899 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2900 $as_echo_n "(cached) " >&6
2901 else
2902 if test -n "$ac_ct_CC"; then
2903 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2904 else
2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 for as_dir in $PATH
2907 do
2908 IFS=$as_save_IFS
2909 test -z "$as_dir" && as_dir=.
2910 for ac_exec_ext in '' $ac_executable_extensions; do
2911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2912 ac_cv_prog_ac_ct_CC="$ac_prog"
2913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2914 break 2
2915 fi
2916 done
2917 done
2918 IFS=$as_save_IFS
2919
2920 fi
2921 fi
2922 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2923 if test -n "$ac_ct_CC"; then
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2925 $as_echo "$ac_ct_CC" >&6; }
2926 else
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2928 $as_echo "no" >&6; }
2929 fi
2930
2931
2932 test -n "$ac_ct_CC" && break
2933 done
2934
2935 if test "x$ac_ct_CC" = x; then
2936 CC=""
2937 else
2938 case $cross_compiling:$ac_tool_warned in
2939 yes:)
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2941 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2942 ac_tool_warned=yes ;;
2943 esac
2944 CC=$ac_ct_CC
2945 fi
2946 fi
2947
2948 fi
2949
2950
2951 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2952 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2953 as_fn_error $? "no acceptable C compiler found in \$PATH
2954 See \`config.log' for more details" "$LINENO" 5; }
2955
2956 # Provide some information about the compiler.
2957 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2958 set X $ac_compile
2959 ac_compiler=$2
2960 for ac_option in --version -v -V -qversion; do
2961 { { ac_try="$ac_compiler $ac_option >&5"
2962 case "(($ac_try" in
2963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964 *) ac_try_echo=$ac_try;;
2965 esac
2966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2967 $as_echo "$ac_try_echo"; } >&5
2968 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2969 ac_status=$?
2970 if test -s conftest.err; then
2971 sed '10a\
2972 ... rest of stderr output deleted ...
2973 10q' conftest.err >conftest.er1
2974 cat conftest.er1 >&5
2975 fi
2976 rm -f conftest.er1 conftest.err
2977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2978 test $ac_status = 0; }
2979 done
2980
2981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2982 /* end confdefs.h. */
2983
2984 int
2985 main ()
2986 {
2987
2988 ;
2989 return 0;
2990 }
2991 _ACEOF
2992 ac_clean_files_save=$ac_clean_files
2993 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2994 # Try to create an executable without -o first, disregard a.out.
2995 # It will help us diagnose broken compilers, and finding out an intuition
2996 # of exeext.
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2998 $as_echo_n "checking whether the C compiler works... " >&6; }
2999 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3000
3001 # The possible output files:
3002 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3003
3004 ac_rmfiles=
3005 for ac_file in $ac_files
3006 do
3007 case $ac_file in
3008 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3009 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3010 esac
3011 done
3012 rm -f $ac_rmfiles
3013
3014 if { { ac_try="$ac_link_default"
3015 case "(($ac_try" in
3016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3017 *) ac_try_echo=$ac_try;;
3018 esac
3019 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3020 $as_echo "$ac_try_echo"; } >&5
3021 (eval "$ac_link_default") 2>&5
3022 ac_status=$?
3023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3024 test $ac_status = 0; }; then :
3025 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3026 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3027 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3028 # so that the user can short-circuit this test for compilers unknown to
3029 # Autoconf.
3030 for ac_file in $ac_files ''
3031 do
3032 test -f "$ac_file" || continue
3033 case $ac_file in
3034 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3035 ;;
3036 [ab].out )
3037 # We found the default executable, but exeext='' is most
3038 # certainly right.
3039 break;;
3040 *.* )
3041 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3042 then :; else
3043 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3044 fi
3045 # We set ac_cv_exeext here because the later test for it is not
3046 # safe: cross compilers may not add the suffix if given an `-o'
3047 # argument, so we may need to know it at that point already.
3048 # Even if this section looks crufty: it has the advantage of
3049 # actually working.
3050 break;;
3051 * )
3052 break;;
3053 esac
3054 done
3055 test "$ac_cv_exeext" = no && ac_cv_exeext=
3056
3057 else
3058 ac_file=''
3059 fi
3060 if test -z "$ac_file"; then :
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3062 $as_echo "no" >&6; }
3063 $as_echo "$as_me: failed program was:" >&5
3064 sed 's/^/| /' conftest.$ac_ext >&5
3065
3066 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3067 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3068 as_fn_error 77 "C compiler cannot create executables
3069 See \`config.log' for more details" "$LINENO" 5; }
3070 else
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3072 $as_echo "yes" >&6; }
3073 fi
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3075 $as_echo_n "checking for C compiler default output file name... " >&6; }
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3077 $as_echo "$ac_file" >&6; }
3078 ac_exeext=$ac_cv_exeext
3079
3080 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3081 ac_clean_files=$ac_clean_files_save
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3083 $as_echo_n "checking for suffix of executables... " >&6; }
3084 if { { ac_try="$ac_link"
3085 case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3088 esac
3089 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3090 $as_echo "$ac_try_echo"; } >&5
3091 (eval "$ac_link") 2>&5
3092 ac_status=$?
3093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3094 test $ac_status = 0; }; then :
3095 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3096 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3097 # work properly (i.e., refer to `conftest.exe'), while it won't with
3098 # `rm'.
3099 for ac_file in conftest.exe conftest conftest.*; do
3100 test -f "$ac_file" || continue
3101 case $ac_file in
3102 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3103 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3104 break;;
3105 * ) break;;
3106 esac
3107 done
3108 else
3109 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3110 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3111 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3112 See \`config.log' for more details" "$LINENO" 5; }
3113 fi
3114 rm -f conftest conftest$ac_cv_exeext
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3116 $as_echo "$ac_cv_exeext" >&6; }
3117
3118 rm -f conftest.$ac_ext
3119 EXEEXT=$ac_cv_exeext
3120 ac_exeext=$EXEEXT
3121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3122 /* end confdefs.h. */
3123 #include <stdio.h>
3124 int
3125 main ()
3126 {
3127 FILE *f = fopen ("conftest.out", "w");
3128 return ferror (f) || fclose (f) != 0;
3129
3130 ;
3131 return 0;
3132 }
3133 _ACEOF
3134 ac_clean_files="$ac_clean_files conftest.out"
3135 # Check that the compiler produces executables we can run. If not, either
3136 # the compiler is broken, or we cross compile.
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3138 $as_echo_n "checking whether we are cross compiling... " >&6; }
3139 if test "$cross_compiling" != yes; then
3140 { { ac_try="$ac_link"
3141 case "(($ac_try" in
3142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3143 *) ac_try_echo=$ac_try;;
3144 esac
3145 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3146 $as_echo "$ac_try_echo"; } >&5
3147 (eval "$ac_link") 2>&5
3148 ac_status=$?
3149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3150 test $ac_status = 0; }
3151 if { ac_try='./conftest$ac_cv_exeext'
3152 { { case "(($ac_try" in
3153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154 *) ac_try_echo=$ac_try;;
3155 esac
3156 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3157 $as_echo "$ac_try_echo"; } >&5
3158 (eval "$ac_try") 2>&5
3159 ac_status=$?
3160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3161 test $ac_status = 0; }; }; then
3162 cross_compiling=no
3163 else
3164 if test "$cross_compiling" = maybe; then
3165 cross_compiling=yes
3166 else
3167 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3169 as_fn_error $? "cannot run C compiled programs.
3170 If you meant to cross compile, use \`--host'.
3171 See \`config.log' for more details" "$LINENO" 5; }
3172 fi
3173 fi
3174 fi
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3176 $as_echo "$cross_compiling" >&6; }
3177
3178 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3179 ac_clean_files=$ac_clean_files_save
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3181 $as_echo_n "checking for suffix of object files... " >&6; }
3182 if ${ac_cv_objext+:} false; then :
3183 $as_echo_n "(cached) " >&6
3184 else
3185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3186 /* end confdefs.h. */
3187
3188 int
3189 main ()
3190 {
3191
3192 ;
3193 return 0;
3194 }
3195 _ACEOF
3196 rm -f conftest.o conftest.obj
3197 if { { ac_try="$ac_compile"
3198 case "(($ac_try" in
3199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200 *) ac_try_echo=$ac_try;;
3201 esac
3202 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3203 $as_echo "$ac_try_echo"; } >&5
3204 (eval "$ac_compile") 2>&5
3205 ac_status=$?
3206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3207 test $ac_status = 0; }; then :
3208 for ac_file in conftest.o conftest.obj conftest.*; do
3209 test -f "$ac_file" || continue;
3210 case $ac_file in
3211 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3212 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3213 break;;
3214 esac
3215 done
3216 else
3217 $as_echo "$as_me: failed program was:" >&5
3218 sed 's/^/| /' conftest.$ac_ext >&5
3219
3220 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3221 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3222 as_fn_error $? "cannot compute suffix of object files: cannot compile
3223 See \`config.log' for more details" "$LINENO" 5; }
3224 fi
3225 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3226 fi
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3228 $as_echo "$ac_cv_objext" >&6; }
3229 OBJEXT=$ac_cv_objext
3230 ac_objext=$OBJEXT
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3232 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3233 if ${ac_cv_c_compiler_gnu+:} false; then :
3234 $as_echo_n "(cached) " >&6
3235 else
3236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3237 /* end confdefs.h. */
3238
3239 int
3240 main ()
3241 {
3242 #ifndef __GNUC__
3243 choke me
3244 #endif
3245
3246 ;
3247 return 0;
3248 }
3249 _ACEOF
3250 if ac_fn_c_try_compile "$LINENO"; then :
3251 ac_compiler_gnu=yes
3252 else
3253 ac_compiler_gnu=no
3254 fi
3255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3256 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3257
3258 fi
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3260 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3261 if test $ac_compiler_gnu = yes; then
3262 GCC=yes
3263 else
3264 GCC=
3265 fi
3266 ac_test_CFLAGS=${CFLAGS+set}
3267 ac_save_CFLAGS=$CFLAGS
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3269 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3270 if ${ac_cv_prog_cc_g+:} false; then :
3271 $as_echo_n "(cached) " >&6
3272 else
3273 ac_save_c_werror_flag=$ac_c_werror_flag
3274 ac_c_werror_flag=yes
3275 ac_cv_prog_cc_g=no
3276 CFLAGS="-g"
3277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3278 /* end confdefs.h. */
3279
3280 int
3281 main ()
3282 {
3283
3284 ;
3285 return 0;
3286 }
3287 _ACEOF
3288 if ac_fn_c_try_compile "$LINENO"; then :
3289 ac_cv_prog_cc_g=yes
3290 else
3291 CFLAGS=""
3292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3293 /* end confdefs.h. */
3294
3295 int
3296 main ()
3297 {
3298
3299 ;
3300 return 0;
3301 }
3302 _ACEOF
3303 if ac_fn_c_try_compile "$LINENO"; then :
3304
3305 else
3306 ac_c_werror_flag=$ac_save_c_werror_flag
3307 CFLAGS="-g"
3308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3309 /* end confdefs.h. */
3310
3311 int
3312 main ()
3313 {
3314
3315 ;
3316 return 0;
3317 }
3318 _ACEOF
3319 if ac_fn_c_try_compile "$LINENO"; then :
3320 ac_cv_prog_cc_g=yes
3321 fi
3322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3323 fi
3324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3325 fi
3326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3327 ac_c_werror_flag=$ac_save_c_werror_flag
3328 fi
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3330 $as_echo "$ac_cv_prog_cc_g" >&6; }
3331 if test "$ac_test_CFLAGS" = set; then
3332 CFLAGS=$ac_save_CFLAGS
3333 elif test $ac_cv_prog_cc_g = yes; then
3334 if test "$GCC" = yes; then
3335 CFLAGS="-g -O2"
3336 else
3337 CFLAGS="-g"
3338 fi
3339 else
3340 if test "$GCC" = yes; then
3341 CFLAGS="-O2"
3342 else
3343 CFLAGS=
3344 fi
3345 fi
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3347 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3348 if ${ac_cv_prog_cc_c89+:} false; then :
3349 $as_echo_n "(cached) " >&6
3350 else
3351 ac_cv_prog_cc_c89=no
3352 ac_save_CC=$CC
3353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3354 /* end confdefs.h. */
3355 #include <stdarg.h>
3356 #include <stdio.h>
3357 struct stat;
3358 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3359 struct buf { int x; };
3360 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3361 static char *e (p, i)
3362 char **p;
3363 int i;
3364 {
3365 return p[i];
3366 }
3367 static char *f (char * (*g) (char **, int), char **p, ...)
3368 {
3369 char *s;
3370 va_list v;
3371 va_start (v,p);
3372 s = g (p, va_arg (v,int));
3373 va_end (v);
3374 return s;
3375 }
3376
3377 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3378 function prototypes and stuff, but not '\xHH' hex character constants.
3379 These don't provoke an error unfortunately, instead are silently treated
3380 as 'x'. The following induces an error, until -std is added to get
3381 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3382 array size at least. It's necessary to write '\x00'==0 to get something
3383 that's true only with -std. */
3384 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3385
3386 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3387 inside strings and character constants. */
3388 #define FOO(x) 'x'
3389 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3390
3391 int test (int i, double x);
3392 struct s1 {int (*f) (int a);};
3393 struct s2 {int (*f) (double a);};
3394 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3395 int argc;
3396 char **argv;
3397 int
3398 main ()
3399 {
3400 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3401 ;
3402 return 0;
3403 }
3404 _ACEOF
3405 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3406 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3407 do
3408 CC="$ac_save_CC $ac_arg"
3409 if ac_fn_c_try_compile "$LINENO"; then :
3410 ac_cv_prog_cc_c89=$ac_arg
3411 fi
3412 rm -f core conftest.err conftest.$ac_objext
3413 test "x$ac_cv_prog_cc_c89" != "xno" && break
3414 done
3415 rm -f conftest.$ac_ext
3416 CC=$ac_save_CC
3417
3418 fi
3419 # AC_CACHE_VAL
3420 case "x$ac_cv_prog_cc_c89" in
3421 x)
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3423 $as_echo "none needed" >&6; } ;;
3424 xno)
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3426 $as_echo "unsupported" >&6; } ;;
3427 *)
3428 CC="$CC $ac_cv_prog_cc_c89"
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3430 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3431 esac
3432 if test "x$ac_cv_prog_cc_c89" != xno; then :
3433
3434 fi
3435
3436 ac_ext=c
3437 ac_cpp='$CPP $CPPFLAGS'
3438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3441
3442 ac_ext=c
3443 ac_cpp='$CPP $CPPFLAGS'
3444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3448 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3449 if ${am_cv_prog_cc_c_o+:} false; then :
3450 $as_echo_n "(cached) " >&6
3451 else
3452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3453 /* end confdefs.h. */
3454
3455 int
3456 main ()
3457 {
3458
3459 ;
3460 return 0;
3461 }
3462 _ACEOF
3463 # Make sure it works both with $CC and with simple cc.
3464 # Following AC_PROG_CC_C_O, we do the test twice because some
3465 # compilers refuse to overwrite an existing .o file with -o,
3466 # though they will create one.
3467 am_cv_prog_cc_c_o=yes
3468 for am_i in 1 2; do
3469 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3470 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3471 ac_status=$?
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); } \
3474 && test -f conftest2.$ac_objext; then
3475 : OK
3476 else
3477 am_cv_prog_cc_c_o=no
3478 break
3479 fi
3480 done
3481 rm -f core conftest*
3482 unset am_i
3483 fi
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3485 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3486 if test "$am_cv_prog_cc_c_o" != yes; then
3487 # Losing compiler, so override with the script.
3488 # FIXME: It is wrong to rewrite CC.
3489 # But if we don't then we get into trouble of one sort or another.
3490 # A longer-term fix would be to have automake use am__CC in this case,
3491 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3492 CC="$am_aux_dir/compile $CC"
3493 fi
3494 ac_ext=c
3495 ac_cpp='$CPP $CPPFLAGS'
3496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3499
3500
3501
3502 ac_ext=c
3503 ac_cpp='$CPP $CPPFLAGS'
3504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3508 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3509 # On Suns, sometimes $CPP names a directory.
3510 if test -n "$CPP" && test -d "$CPP"; then
3511 CPP=
3512 fi
3513 if test -z "$CPP"; then
3514 if ${ac_cv_prog_CPP+:} false; then :
3515 $as_echo_n "(cached) " >&6
3516 else
3517 # Double quotes because CPP needs to be expanded
3518 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3519 do
3520 ac_preproc_ok=false
3521 for ac_c_preproc_warn_flag in '' yes
3522 do
3523 # Use a header file that comes with gcc, so configuring glibc
3524 # with a fresh cross-compiler works.
3525 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3526 # <limits.h> exists even on freestanding compilers.
3527 # On the NeXT, cc -E runs the code through the compiler's parser,
3528 # not just through cpp. "Syntax error" is here to catch this case.
3529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3530 /* end confdefs.h. */
3531 #ifdef __STDC__
3532 # include <limits.h>
3533 #else
3534 # include <assert.h>
3535 #endif
3536 Syntax error
3537 _ACEOF
3538 if ac_fn_c_try_cpp "$LINENO"; then :
3539
3540 else
3541 # Broken: fails on valid input.
3542 continue
3543 fi
3544 rm -f conftest.err conftest.i conftest.$ac_ext
3545
3546 # OK, works on sane cases. Now check whether nonexistent headers
3547 # can be detected and how.
3548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549 /* end confdefs.h. */
3550 #include <ac_nonexistent.h>
3551 _ACEOF
3552 if ac_fn_c_try_cpp "$LINENO"; then :
3553 # Broken: success on invalid input.
3554 continue
3555 else
3556 # Passes both tests.
3557 ac_preproc_ok=:
3558 break
3559 fi
3560 rm -f conftest.err conftest.i conftest.$ac_ext
3561
3562 done
3563 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3564 rm -f conftest.i conftest.err conftest.$ac_ext
3565 if $ac_preproc_ok; then :
3566 break
3567 fi
3568
3569 done
3570 ac_cv_prog_CPP=$CPP
3571
3572 fi
3573 CPP=$ac_cv_prog_CPP
3574 else
3575 ac_cv_prog_CPP=$CPP
3576 fi
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3578 $as_echo "$CPP" >&6; }
3579 ac_preproc_ok=false
3580 for ac_c_preproc_warn_flag in '' yes
3581 do
3582 # Use a header file that comes with gcc, so configuring glibc
3583 # with a fresh cross-compiler works.
3584 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3585 # <limits.h> exists even on freestanding compilers.
3586 # On the NeXT, cc -E runs the code through the compiler's parser,
3587 # not just through cpp. "Syntax error" is here to catch this case.
3588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3589 /* end confdefs.h. */
3590 #ifdef __STDC__
3591 # include <limits.h>
3592 #else
3593 # include <assert.h>
3594 #endif
3595 Syntax error
3596 _ACEOF
3597 if ac_fn_c_try_cpp "$LINENO"; then :
3598
3599 else
3600 # Broken: fails on valid input.
3601 continue
3602 fi
3603 rm -f conftest.err conftest.i conftest.$ac_ext
3604
3605 # OK, works on sane cases. Now check whether nonexistent headers
3606 # can be detected and how.
3607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3608 /* end confdefs.h. */
3609 #include <ac_nonexistent.h>
3610 _ACEOF
3611 if ac_fn_c_try_cpp "$LINENO"; then :
3612 # Broken: success on invalid input.
3613 continue
3614 else
3615 # Passes both tests.
3616 ac_preproc_ok=:
3617 break
3618 fi
3619 rm -f conftest.err conftest.i conftest.$ac_ext
3620
3621 done
3622 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3623 rm -f conftest.i conftest.err conftest.$ac_ext
3624 if $ac_preproc_ok; then :
3625
3626 else
3627 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3628 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3629 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3630 See \`config.log' for more details" "$LINENO" 5; }
3631 fi
3632
3633 ac_ext=c
3634 ac_cpp='$CPP $CPPFLAGS'
3635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3638
3639
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3641 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3642 if ${ac_cv_path_GREP+:} false; then :
3643 $as_echo_n "(cached) " >&6
3644 else
3645 if test -z "$GREP"; then
3646 ac_path_GREP_found=false
3647 # Loop through the user's path and test for each of PROGNAME-LIST
3648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3649 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3650 do
3651 IFS=$as_save_IFS
3652 test -z "$as_dir" && as_dir=.
3653 for ac_prog in grep ggrep; do
3654 for ac_exec_ext in '' $ac_executable_extensions; do
3655 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3656 as_fn_executable_p "$ac_path_GREP" || continue
3657 # Check for GNU ac_path_GREP and select it if it is found.
3658 # Check for GNU $ac_path_GREP
3659 case `"$ac_path_GREP" --version 2>&1` in
3660 *GNU*)
3661 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3662 *)
3663 ac_count=0
3664 $as_echo_n 0123456789 >"conftest.in"
3665 while :
3666 do
3667 cat "conftest.in" "conftest.in" >"conftest.tmp"
3668 mv "conftest.tmp" "conftest.in"
3669 cp "conftest.in" "conftest.nl"
3670 $as_echo 'GREP' >> "conftest.nl"
3671 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3672 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3673 as_fn_arith $ac_count + 1 && ac_count=$as_val
3674 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3675 # Best one so far, save it but keep looking for a better one
3676 ac_cv_path_GREP="$ac_path_GREP"
3677 ac_path_GREP_max=$ac_count
3678 fi
3679 # 10*(2^10) chars as input seems more than enough
3680 test $ac_count -gt 10 && break
3681 done
3682 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3683 esac
3684
3685 $ac_path_GREP_found && break 3
3686 done
3687 done
3688 done
3689 IFS=$as_save_IFS
3690 if test -z "$ac_cv_path_GREP"; then
3691 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3692 fi
3693 else
3694 ac_cv_path_GREP=$GREP
3695 fi
3696
3697 fi
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3699 $as_echo "$ac_cv_path_GREP" >&6; }
3700 GREP="$ac_cv_path_GREP"
3701
3702
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3704 $as_echo_n "checking for egrep... " >&6; }
3705 if ${ac_cv_path_EGREP+:} false; then :
3706 $as_echo_n "(cached) " >&6
3707 else
3708 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3709 then ac_cv_path_EGREP="$GREP -E"
3710 else
3711 if test -z "$EGREP"; then
3712 ac_path_EGREP_found=false
3713 # Loop through the user's path and test for each of PROGNAME-LIST
3714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3715 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3716 do
3717 IFS=$as_save_IFS
3718 test -z "$as_dir" && as_dir=.
3719 for ac_prog in egrep; do
3720 for ac_exec_ext in '' $ac_executable_extensions; do
3721 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3722 as_fn_executable_p "$ac_path_EGREP" || continue
3723 # Check for GNU ac_path_EGREP and select it if it is found.
3724 # Check for GNU $ac_path_EGREP
3725 case `"$ac_path_EGREP" --version 2>&1` in
3726 *GNU*)
3727 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3728 *)
3729 ac_count=0
3730 $as_echo_n 0123456789 >"conftest.in"
3731 while :
3732 do
3733 cat "conftest.in" "conftest.in" >"conftest.tmp"
3734 mv "conftest.tmp" "conftest.in"
3735 cp "conftest.in" "conftest.nl"
3736 $as_echo 'EGREP' >> "conftest.nl"
3737 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3738 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3739 as_fn_arith $ac_count + 1 && ac_count=$as_val
3740 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3741 # Best one so far, save it but keep looking for a better one
3742 ac_cv_path_EGREP="$ac_path_EGREP"
3743 ac_path_EGREP_max=$ac_count
3744 fi
3745 # 10*(2^10) chars as input seems more than enough
3746 test $ac_count -gt 10 && break
3747 done
3748 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3749 esac
3750
3751 $ac_path_EGREP_found && break 3
3752 done
3753 done
3754 done
3755 IFS=$as_save_IFS
3756 if test -z "$ac_cv_path_EGREP"; then
3757 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3758 fi
3759 else
3760 ac_cv_path_EGREP=$EGREP
3761 fi
3762
3763 fi
3764 fi
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3766 $as_echo "$ac_cv_path_EGREP" >&6; }
3767 EGREP="$ac_cv_path_EGREP"
3768
3769
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3771 $as_echo_n "checking for ANSI C header files... " >&6; }
3772 if ${ac_cv_header_stdc+:} false; then :
3773 $as_echo_n "(cached) " >&6
3774 else
3775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3776 /* end confdefs.h. */
3777 #include <stdlib.h>
3778 #include <stdarg.h>
3779 #include <string.h>
3780 #include <float.h>
3781
3782 int
3783 main ()
3784 {
3785
3786 ;
3787 return 0;
3788 }
3789 _ACEOF
3790 if ac_fn_c_try_compile "$LINENO"; then :
3791 ac_cv_header_stdc=yes
3792 else
3793 ac_cv_header_stdc=no
3794 fi
3795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3796
3797 if test $ac_cv_header_stdc = yes; then
3798 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3800 /* end confdefs.h. */
3801 #include <string.h>
3802
3803 _ACEOF
3804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3805 $EGREP "memchr" >/dev/null 2>&1; then :
3806
3807 else
3808 ac_cv_header_stdc=no
3809 fi
3810 rm -f conftest*
3811
3812 fi
3813
3814 if test $ac_cv_header_stdc = yes; then
3815 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817 /* end confdefs.h. */
3818 #include <stdlib.h>
3819
3820 _ACEOF
3821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3822 $EGREP "free" >/dev/null 2>&1; then :
3823
3824 else
3825 ac_cv_header_stdc=no
3826 fi
3827 rm -f conftest*
3828
3829 fi
3830
3831 if test $ac_cv_header_stdc = yes; then
3832 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3833 if test "$cross_compiling" = yes; then :
3834 :
3835 else
3836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3837 /* end confdefs.h. */
3838 #include <ctype.h>
3839 #include <stdlib.h>
3840 #if ((' ' & 0x0FF) == 0x020)
3841 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3842 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3843 #else
3844 # define ISLOWER(c) \
3845 (('a' <= (c) && (c) <= 'i') \
3846 || ('j' <= (c) && (c) <= 'r') \
3847 || ('s' <= (c) && (c) <= 'z'))
3848 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3849 #endif
3850
3851 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3852 int
3853 main ()
3854 {
3855 int i;
3856 for (i = 0; i < 256; i++)
3857 if (XOR (islower (i), ISLOWER (i))
3858 || toupper (i) != TOUPPER (i))
3859 return 2;
3860 return 0;
3861 }
3862 _ACEOF
3863 if ac_fn_c_try_run "$LINENO"; then :
3864
3865 else
3866 ac_cv_header_stdc=no
3867 fi
3868 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3869 conftest.$ac_objext conftest.beam conftest.$ac_ext
3870 fi
3871
3872 fi
3873 fi
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3875 $as_echo "$ac_cv_header_stdc" >&6; }
3876 if test $ac_cv_header_stdc = yes; then
3877
3878 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3879
3880 fi
3881
3882 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3883 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3884 inttypes.h stdint.h unistd.h
3885 do :
3886 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3887 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3888 "
3889 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3890 cat >>confdefs.h <<_ACEOF
3891 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3892 _ACEOF
3893
3894 fi
3895
3896 done
3897
3898
3899
3900 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3901 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3902 MINIX=yes
3903 else
3904 MINIX=
3905 fi
3906
3907
3908 if test "$MINIX" = yes; then
3909
3910 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3911
3912
3913 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3914
3915
3916 $as_echo "#define _MINIX 1" >>confdefs.h
3917
3918 fi
3919
3920
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3922 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3923 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3924 $as_echo_n "(cached) " >&6
3925 else
3926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3927 /* end confdefs.h. */
3928
3929 # define __EXTENSIONS__ 1
3930 $ac_includes_default
3931 int
3932 main ()
3933 {
3934
3935 ;
3936 return 0;
3937 }
3938 _ACEOF
3939 if ac_fn_c_try_compile "$LINENO"; then :
3940 ac_cv_safe_to_define___extensions__=yes
3941 else
3942 ac_cv_safe_to_define___extensions__=no
3943 fi
3944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3945 fi
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3947 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3948 test $ac_cv_safe_to_define___extensions__ = yes &&
3949 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3950
3951 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3952
3953 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3954
3955 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3956
3957 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3958
3959
3960
3961 target_alias=${target_alias-$target}
3962
3963
3964 # 1.11.1: Require that version of automake.
3965 # foreign: Don't require README, INSTALL, NEWS, etc.
3966 # no-define: Don't define PACKAGE and VERSION.
3967 # no-dependencies: Don't generate automatic dependencies.
3968 # (because it breaks when using bootstrap-lean, since some of the
3969 # headers are gone at "make install" time).
3970 # subdir-objects: Build objects in sub-directories.
3971 # -Wall: Issue all automake warnings.
3972 # -Wno-portability: Don't warn about constructs supported by GNU make.
3973 # (because GCC requires GNU make anyhow).
3974 # -Wno-override: Overrides used in testsuite.
3975 am__api_version='1.15'
3976
3977 # Find a good install program. We prefer a C program (faster),
3978 # so one script is as good as another. But avoid the broken or
3979 # incompatible versions:
3980 # SysV /etc/install, /usr/sbin/install
3981 # SunOS /usr/etc/install
3982 # IRIX /sbin/install
3983 # AIX /bin/install
3984 # AmigaOS /C/install, which installs bootblocks on floppy discs
3985 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3986 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3987 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3988 # OS/2's system install, which has a completely different semantic
3989 # ./install, which can be erroneously created by make from ./install.sh.
3990 # Reject install programs that cannot install multiple files.
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3992 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3993 if test -z "$INSTALL"; then
3994 if ${ac_cv_path_install+:} false; then :
3995 $as_echo_n "(cached) " >&6
3996 else
3997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3998 for as_dir in $PATH
3999 do
4000 IFS=$as_save_IFS
4001 test -z "$as_dir" && as_dir=.
4002 # Account for people who put trailing slashes in PATH elements.
4003 case $as_dir/ in #((
4004 ./ | .// | /[cC]/* | \
4005 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4006 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4007 /usr/ucb/* ) ;;
4008 *)
4009 # OSF1 and SCO ODT 3.0 have their own names for install.
4010 # Don't use installbsd from OSF since it installs stuff as root
4011 # by default.
4012 for ac_prog in ginstall scoinst install; do
4013 for ac_exec_ext in '' $ac_executable_extensions; do
4014 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4015 if test $ac_prog = install &&
4016 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4017 # AIX install. It has an incompatible calling convention.
4018 :
4019 elif test $ac_prog = install &&
4020 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4021 # program-specific install script used by HP pwplus--don't use.
4022 :
4023 else
4024 rm -rf conftest.one conftest.two conftest.dir
4025 echo one > conftest.one
4026 echo two > conftest.two
4027 mkdir conftest.dir
4028 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4029 test -s conftest.one && test -s conftest.two &&
4030 test -s conftest.dir/conftest.one &&
4031 test -s conftest.dir/conftest.two
4032 then
4033 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4034 break 3
4035 fi
4036 fi
4037 fi
4038 done
4039 done
4040 ;;
4041 esac
4042
4043 done
4044 IFS=$as_save_IFS
4045
4046 rm -rf conftest.one conftest.two conftest.dir
4047
4048 fi
4049 if test "${ac_cv_path_install+set}" = set; then
4050 INSTALL=$ac_cv_path_install
4051 else
4052 # As a last resort, use the slow shell script. Don't cache a
4053 # value for INSTALL within a source directory, because that will
4054 # break other packages using the cache if that directory is
4055 # removed, or if the value is a relative name.
4056 INSTALL=$ac_install_sh
4057 fi
4058 fi
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4060 $as_echo "$INSTALL" >&6; }
4061
4062 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4063 # It thinks the first close brace ends the variable substitution.
4064 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4065
4066 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4067
4068 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4069
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4071 $as_echo_n "checking whether build environment is sane... " >&6; }
4072 # Reject unsafe characters in $srcdir or the absolute working directory
4073 # name. Accept space and tab only in the latter.
4074 am_lf='
4075 '
4076 case `pwd` in
4077 *[\\\"\#\$\&\'\`$am_lf]*)
4078 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4079 esac
4080 case $srcdir in
4081 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4082 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4083 esac
4084
4085 # Do 'set' in a subshell so we don't clobber the current shell's
4086 # arguments. Must try -L first in case configure is actually a
4087 # symlink; some systems play weird games with the mod time of symlinks
4088 # (eg FreeBSD returns the mod time of the symlink's containing
4089 # directory).
4090 if (
4091 am_has_slept=no
4092 for am_try in 1 2; do
4093 echo "timestamp, slept: $am_has_slept" > conftest.file
4094 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4095 if test "$*" = "X"; then
4096 # -L didn't work.
4097 set X `ls -t "$srcdir/configure" conftest.file`
4098 fi
4099 if test "$*" != "X $srcdir/configure conftest.file" \
4100 && test "$*" != "X conftest.file $srcdir/configure"; then
4101
4102 # If neither matched, then we have a broken ls. This can happen
4103 # if, for instance, CONFIG_SHELL is bash and it inherits a
4104 # broken ls alias from the environment. This has actually
4105 # happened. Such a system could not be considered "sane".
4106 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4107 alias in your environment" "$LINENO" 5
4108 fi
4109 if test "$2" = conftest.file || test $am_try -eq 2; then
4110 break
4111 fi
4112 # Just in case.
4113 sleep 1
4114 am_has_slept=yes
4115 done
4116 test "$2" = conftest.file
4117 )
4118 then
4119 # Ok.
4120 :
4121 else
4122 as_fn_error $? "newly created file is older than distributed files!
4123 Check your system clock" "$LINENO" 5
4124 fi
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4126 $as_echo "yes" >&6; }
4127 # If we didn't sleep, we still need to ensure time stamps of config.status and
4128 # generated files are strictly newer.
4129 am_sleep_pid=
4130 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4131 ( sleep 1 ) &
4132 am_sleep_pid=$!
4133 fi
4134
4135 rm -f conftest.file
4136
4137 test "$program_prefix" != NONE &&
4138 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4139 # Use a double $ so make ignores it.
4140 test "$program_suffix" != NONE &&
4141 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4142 # Double any \ or $.
4143 # By default was `s,x,x', remove it if useless.
4144 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4145 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4146
4147 if test x"${MISSING+set}" != xset; then
4148 case $am_aux_dir in
4149 *\ * | *\ *)
4150 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4151 *)
4152 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4153 esac
4154 fi
4155 # Use eval to expand $SHELL
4156 if eval "$MISSING --is-lightweight"; then
4157 am_missing_run="$MISSING "
4158 else
4159 am_missing_run=
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4161 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4162 fi
4163
4164 if test x"${install_sh+set}" != xset; then
4165 case $am_aux_dir in
4166 *\ * | *\ *)
4167 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4168 *)
4169 install_sh="\${SHELL} $am_aux_dir/install-sh"
4170 esac
4171 fi
4172
4173 # Installed binaries are usually stripped using 'strip' when the user
4174 # run "make install-strip". However 'strip' might not be the right
4175 # tool to use in cross-compilation environments, therefore Automake
4176 # will honor the 'STRIP' environment variable to overrule this program.
4177 if test "$cross_compiling" != no; then
4178 if test -n "$ac_tool_prefix"; then
4179 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4180 set dummy ${ac_tool_prefix}strip; ac_word=$2
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4182 $as_echo_n "checking for $ac_word... " >&6; }
4183 if ${ac_cv_prog_STRIP+:} false; then :
4184 $as_echo_n "(cached) " >&6
4185 else
4186 if test -n "$STRIP"; then
4187 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4188 else
4189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190 for as_dir in $PATH
4191 do
4192 IFS=$as_save_IFS
4193 test -z "$as_dir" && as_dir=.
4194 for ac_exec_ext in '' $ac_executable_extensions; do
4195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4196 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4198 break 2
4199 fi
4200 done
4201 done
4202 IFS=$as_save_IFS
4203
4204 fi
4205 fi
4206 STRIP=$ac_cv_prog_STRIP
4207 if test -n "$STRIP"; then
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4209 $as_echo "$STRIP" >&6; }
4210 else
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4212 $as_echo "no" >&6; }
4213 fi
4214
4215
4216 fi
4217 if test -z "$ac_cv_prog_STRIP"; then
4218 ac_ct_STRIP=$STRIP
4219 # Extract the first word of "strip", so it can be a program name with args.
4220 set dummy strip; ac_word=$2
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4222 $as_echo_n "checking for $ac_word... " >&6; }
4223 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4224 $as_echo_n "(cached) " >&6
4225 else
4226 if test -n "$ac_ct_STRIP"; then
4227 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4228 else
4229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4230 for as_dir in $PATH
4231 do
4232 IFS=$as_save_IFS
4233 test -z "$as_dir" && as_dir=.
4234 for ac_exec_ext in '' $ac_executable_extensions; do
4235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4236 ac_cv_prog_ac_ct_STRIP="strip"
4237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4238 break 2
4239 fi
4240 done
4241 done
4242 IFS=$as_save_IFS
4243
4244 fi
4245 fi
4246 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4247 if test -n "$ac_ct_STRIP"; then
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4249 $as_echo "$ac_ct_STRIP" >&6; }
4250 else
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4252 $as_echo "no" >&6; }
4253 fi
4254
4255 if test "x$ac_ct_STRIP" = x; then
4256 STRIP=":"
4257 else
4258 case $cross_compiling:$ac_tool_warned in
4259 yes:)
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4261 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4262 ac_tool_warned=yes ;;
4263 esac
4264 STRIP=$ac_ct_STRIP
4265 fi
4266 else
4267 STRIP="$ac_cv_prog_STRIP"
4268 fi
4269
4270 fi
4271 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4272
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4274 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4275 if test -z "$MKDIR_P"; then
4276 if ${ac_cv_path_mkdir+:} false; then :
4277 $as_echo_n "(cached) " >&6
4278 else
4279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4280 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4281 do
4282 IFS=$as_save_IFS
4283 test -z "$as_dir" && as_dir=.
4284 for ac_prog in mkdir gmkdir; do
4285 for ac_exec_ext in '' $ac_executable_extensions; do
4286 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4287 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4288 'mkdir (GNU coreutils) '* | \
4289 'mkdir (coreutils) '* | \
4290 'mkdir (fileutils) '4.1*)
4291 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4292 break 3;;
4293 esac
4294 done
4295 done
4296 done
4297 IFS=$as_save_IFS
4298
4299 fi
4300
4301 test -d ./--version && rmdir ./--version
4302 if test "${ac_cv_path_mkdir+set}" = set; then
4303 MKDIR_P="$ac_cv_path_mkdir -p"
4304 else
4305 # As a last resort, use the slow shell script. Don't cache a
4306 # value for MKDIR_P within a source directory, because that will
4307 # break other packages using the cache if that directory is
4308 # removed, or if the value is a relative name.
4309 MKDIR_P="$ac_install_sh -d"
4310 fi
4311 fi
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4313 $as_echo "$MKDIR_P" >&6; }
4314
4315 for ac_prog in gawk mawk nawk awk
4316 do
4317 # Extract the first word of "$ac_prog", so it can be a program name with args.
4318 set dummy $ac_prog; ac_word=$2
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4320 $as_echo_n "checking for $ac_word... " >&6; }
4321 if ${ac_cv_prog_AWK+:} false; then :
4322 $as_echo_n "(cached) " >&6
4323 else
4324 if test -n "$AWK"; then
4325 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4326 else
4327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4328 for as_dir in $PATH
4329 do
4330 IFS=$as_save_IFS
4331 test -z "$as_dir" && as_dir=.
4332 for ac_exec_ext in '' $ac_executable_extensions; do
4333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4334 ac_cv_prog_AWK="$ac_prog"
4335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4336 break 2
4337 fi
4338 done
4339 done
4340 IFS=$as_save_IFS
4341
4342 fi
4343 fi
4344 AWK=$ac_cv_prog_AWK
4345 if test -n "$AWK"; then
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4347 $as_echo "$AWK" >&6; }
4348 else
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4350 $as_echo "no" >&6; }
4351 fi
4352
4353
4354 test -n "$AWK" && break
4355 done
4356
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4358 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4359 set x ${MAKE-make}
4360 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4361 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4362 $as_echo_n "(cached) " >&6
4363 else
4364 cat >conftest.make <<\_ACEOF
4365 SHELL = /bin/sh
4366 all:
4367 @echo '@@@%%%=$(MAKE)=@@@%%%'
4368 _ACEOF
4369 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4370 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4371 *@@@%%%=?*=@@@%%%*)
4372 eval ac_cv_prog_make_${ac_make}_set=yes;;
4373 *)
4374 eval ac_cv_prog_make_${ac_make}_set=no;;
4375 esac
4376 rm -f conftest.make
4377 fi
4378 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4380 $as_echo "yes" >&6; }
4381 SET_MAKE=
4382 else
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4384 $as_echo "no" >&6; }
4385 SET_MAKE="MAKE=${MAKE-make}"
4386 fi
4387
4388 rm -rf .tst 2>/dev/null
4389 mkdir .tst 2>/dev/null
4390 if test -d .tst; then
4391 am__leading_dot=.
4392 else
4393 am__leading_dot=_
4394 fi
4395 rmdir .tst 2>/dev/null
4396
4397 # Check whether --enable-silent-rules was given.
4398 if test "${enable_silent_rules+set}" = set; then :
4399 enableval=$enable_silent_rules;
4400 fi
4401
4402 case $enable_silent_rules in # (((
4403 yes) AM_DEFAULT_VERBOSITY=0;;
4404 no) AM_DEFAULT_VERBOSITY=1;;
4405 *) AM_DEFAULT_VERBOSITY=1;;
4406 esac
4407 am_make=${MAKE-make}
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4409 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4410 if ${am_cv_make_support_nested_variables+:} false; then :
4411 $as_echo_n "(cached) " >&6
4412 else
4413 if $as_echo 'TRUE=$(BAR$(V))
4414 BAR0=false
4415 BAR1=true
4416 V=1
4417 am__doit:
4418 @$(TRUE)
4419 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4420 am_cv_make_support_nested_variables=yes
4421 else
4422 am_cv_make_support_nested_variables=no
4423 fi
4424 fi
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4426 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4427 if test $am_cv_make_support_nested_variables = yes; then
4428 AM_V='$(V)'
4429 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4430 else
4431 AM_V=$AM_DEFAULT_VERBOSITY
4432 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4433 fi
4434 AM_BACKSLASH='\'
4435
4436 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4437 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4438 # is not polluted with repeated "-I."
4439 am__isrc=' -I$(srcdir)'
4440 # test to see if srcdir already configured
4441 if test -f $srcdir/config.status; then
4442 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4443 fi
4444 fi
4445
4446 # test whether we have cygpath
4447 if test -z "$CYGPATH_W"; then
4448 if (cygpath --version) >/dev/null 2>/dev/null; then
4449 CYGPATH_W='cygpath -w'
4450 else
4451 CYGPATH_W=echo
4452 fi
4453 fi
4454
4455
4456 # Define the identity of the package.
4457 PACKAGE='libphobos'
4458 VERSION='version-unused'
4459
4460
4461 # Some tools Automake needs.
4462
4463 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4464
4465
4466 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4467
4468
4469 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4470
4471
4472 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4473
4474
4475 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4476
4477 # For better backward compatibility. To be removed once Automake 1.9.x
4478 # dies out for good. For more background, see:
4479 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4480 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4481 mkdir_p='$(MKDIR_P)'
4482
4483 # We need awk for the "check" target (and possibly the TAP driver). The
4484 # system "awk" is bad on some platforms.
4485 # Always define AMTAR for backward compatibility. Yes, it's still used
4486 # in the wild :-( We should find a proper way to deprecate it ...
4487 AMTAR='$${TAR-tar}'
4488
4489
4490 # We'll loop over all known methods to create a tar archive until one works.
4491 _am_tools='gnutar pax cpio none'
4492
4493 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4494
4495
4496
4497
4498
4499
4500 # POSIX will say in a future version that running "rm -f" with no argument
4501 # is OK; and we want to be able to make that assumption in our Makefile
4502 # recipes. So use an aggressive probe to check that the usage we want is
4503 # actually supported "in the wild" to an acceptable degree.
4504 # See automake bug#10828.
4505 # To make any issue more visible, cause the running configure to be aborted
4506 # by default if the 'rm' program in use doesn't match our expectations; the
4507 # user can still override this though.
4508 if rm -f && rm -fr && rm -rf; then : OK; else
4509 cat >&2 <<'END'
4510 Oops!
4511
4512 Your 'rm' program seems unable to run without file operands specified
4513 on the command line, even when the '-f' option is present. This is contrary
4514 to the behaviour of most rm programs out there, and not conforming with
4515 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4516
4517 Please tell [email protected] about your system, including the value
4518 of your $PATH and any error possibly output before this message. This
4519 can help us improve future automake versions.
4520
4521 END
4522 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4523 echo 'Configuration will proceed anyway, since you have set the' >&2
4524 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4525 echo >&2
4526 else
4527 cat >&2 <<'END'
4528 Aborting the configuration process, to ensure you take notice of the issue.
4529
4530 You can download and install GNU coreutils to get an 'rm' implementation
4531 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4532
4533 If you want to complete the configuration process using your problematic
4534 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4535 to "yes", and re-run configure.
4536
4537 END
4538 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4539 fi
4540 fi
4541
4542
4543
4544
4545 # By default we simply use the C compiler to build assembly code.
4546
4547 test "${CCAS+set}" = set || CCAS=$CC
4548 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4549
4550
4551
4552 ac_ext=c
4553 ac_cpp='$CPP $CPPFLAGS'
4554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4557 if test -n "$ac_tool_prefix"; then
4558 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4559 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4561 $as_echo_n "checking for $ac_word... " >&6; }
4562 if ${ac_cv_prog_CC+:} false; then :
4563 $as_echo_n "(cached) " >&6
4564 else
4565 if test -n "$CC"; then
4566 ac_cv_prog_CC="$CC" # Let the user override the test.
4567 else
4568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4569 for as_dir in $PATH
4570 do
4571 IFS=$as_save_IFS
4572 test -z "$as_dir" && as_dir=.
4573 for ac_exec_ext in '' $ac_executable_extensions; do
4574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4575 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4577 break 2
4578 fi
4579 done
4580 done
4581 IFS=$as_save_IFS
4582
4583 fi
4584 fi
4585 CC=$ac_cv_prog_CC
4586 if test -n "$CC"; then
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4588 $as_echo "$CC" >&6; }
4589 else
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4591 $as_echo "no" >&6; }
4592 fi
4593
4594
4595 fi
4596 if test -z "$ac_cv_prog_CC"; then
4597 ac_ct_CC=$CC
4598 # Extract the first word of "gcc", so it can be a program name with args.
4599 set dummy gcc; ac_word=$2
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4601 $as_echo_n "checking for $ac_word... " >&6; }
4602 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4603 $as_echo_n "(cached) " >&6
4604 else
4605 if test -n "$ac_ct_CC"; then
4606 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4607 else
4608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609 for as_dir in $PATH
4610 do
4611 IFS=$as_save_IFS
4612 test -z "$as_dir" && as_dir=.
4613 for ac_exec_ext in '' $ac_executable_extensions; do
4614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4615 ac_cv_prog_ac_ct_CC="gcc"
4616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4617 break 2
4618 fi
4619 done
4620 done
4621 IFS=$as_save_IFS
4622
4623 fi
4624 fi
4625 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4626 if test -n "$ac_ct_CC"; then
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4628 $as_echo "$ac_ct_CC" >&6; }
4629 else
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4631 $as_echo "no" >&6; }
4632 fi
4633
4634 if test "x$ac_ct_CC" = x; then
4635 CC=""
4636 else
4637 case $cross_compiling:$ac_tool_warned in
4638 yes:)
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4641 ac_tool_warned=yes ;;
4642 esac
4643 CC=$ac_ct_CC
4644 fi
4645 else
4646 CC="$ac_cv_prog_CC"
4647 fi
4648
4649 if test -z "$CC"; then
4650 if test -n "$ac_tool_prefix"; then
4651 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4652 set dummy ${ac_tool_prefix}cc; ac_word=$2
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4654 $as_echo_n "checking for $ac_word... " >&6; }
4655 if ${ac_cv_prog_CC+:} false; then :
4656 $as_echo_n "(cached) " >&6
4657 else
4658 if test -n "$CC"; then
4659 ac_cv_prog_CC="$CC" # Let the user override the test.
4660 else
4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 for as_dir in $PATH
4663 do
4664 IFS=$as_save_IFS
4665 test -z "$as_dir" && as_dir=.
4666 for ac_exec_ext in '' $ac_executable_extensions; do
4667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4668 ac_cv_prog_CC="${ac_tool_prefix}cc"
4669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4670 break 2
4671 fi
4672 done
4673 done
4674 IFS=$as_save_IFS
4675
4676 fi
4677 fi
4678 CC=$ac_cv_prog_CC
4679 if test -n "$CC"; then
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4681 $as_echo "$CC" >&6; }
4682 else
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4684 $as_echo "no" >&6; }
4685 fi
4686
4687
4688 fi
4689 fi
4690 if test -z "$CC"; then
4691 # Extract the first word of "cc", so it can be a program name with args.
4692 set dummy cc; ac_word=$2
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4694 $as_echo_n "checking for $ac_word... " >&6; }
4695 if ${ac_cv_prog_CC+:} false; then :
4696 $as_echo_n "(cached) " >&6
4697 else
4698 if test -n "$CC"; then
4699 ac_cv_prog_CC="$CC" # Let the user override the test.
4700 else
4701 ac_prog_rejected=no
4702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703 for as_dir in $PATH
4704 do
4705 IFS=$as_save_IFS
4706 test -z "$as_dir" && as_dir=.
4707 for ac_exec_ext in '' $ac_executable_extensions; do
4708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4709 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4710 ac_prog_rejected=yes
4711 continue
4712 fi
4713 ac_cv_prog_CC="cc"
4714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4715 break 2
4716 fi
4717 done
4718 done
4719 IFS=$as_save_IFS
4720
4721 if test $ac_prog_rejected = yes; then
4722 # We found a bogon in the path, so make sure we never use it.
4723 set dummy $ac_cv_prog_CC
4724 shift
4725 if test $# != 0; then
4726 # We chose a different compiler from the bogus one.
4727 # However, it has the same basename, so the bogon will be chosen
4728 # first if we set CC to just the basename; use the full file name.
4729 shift
4730 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4731 fi
4732 fi
4733 fi
4734 fi
4735 CC=$ac_cv_prog_CC
4736 if test -n "$CC"; then
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4738 $as_echo "$CC" >&6; }
4739 else
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4741 $as_echo "no" >&6; }
4742 fi
4743
4744
4745 fi
4746 if test -z "$CC"; then
4747 if test -n "$ac_tool_prefix"; then
4748 for ac_prog in cl.exe
4749 do
4750 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4751 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4753 $as_echo_n "checking for $ac_word... " >&6; }
4754 if ${ac_cv_prog_CC+:} false; then :
4755 $as_echo_n "(cached) " >&6
4756 else
4757 if test -n "$CC"; then
4758 ac_cv_prog_CC="$CC" # Let the user override the test.
4759 else
4760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761 for as_dir in $PATH
4762 do
4763 IFS=$as_save_IFS
4764 test -z "$as_dir" && as_dir=.
4765 for ac_exec_ext in '' $ac_executable_extensions; do
4766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4767 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4769 break 2
4770 fi
4771 done
4772 done
4773 IFS=$as_save_IFS
4774
4775 fi
4776 fi
4777 CC=$ac_cv_prog_CC
4778 if test -n "$CC"; then
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4780 $as_echo "$CC" >&6; }
4781 else
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4783 $as_echo "no" >&6; }
4784 fi
4785
4786
4787 test -n "$CC" && break
4788 done
4789 fi
4790 if test -z "$CC"; then
4791 ac_ct_CC=$CC
4792 for ac_prog in cl.exe
4793 do
4794 # Extract the first word of "$ac_prog", so it can be a program name with args.
4795 set dummy $ac_prog; ac_word=$2
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4797 $as_echo_n "checking for $ac_word... " >&6; }
4798 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4799 $as_echo_n "(cached) " >&6
4800 else
4801 if test -n "$ac_ct_CC"; then
4802 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4803 else
4804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4805 for as_dir in $PATH
4806 do
4807 IFS=$as_save_IFS
4808 test -z "$as_dir" && as_dir=.
4809 for ac_exec_ext in '' $ac_executable_extensions; do
4810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4811 ac_cv_prog_ac_ct_CC="$ac_prog"
4812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4813 break 2
4814 fi
4815 done
4816 done
4817 IFS=$as_save_IFS
4818
4819 fi
4820 fi
4821 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4822 if test -n "$ac_ct_CC"; then
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4824 $as_echo "$ac_ct_CC" >&6; }
4825 else
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4827 $as_echo "no" >&6; }
4828 fi
4829
4830
4831 test -n "$ac_ct_CC" && break
4832 done
4833
4834 if test "x$ac_ct_CC" = x; then
4835 CC=""
4836 else
4837 case $cross_compiling:$ac_tool_warned in
4838 yes:)
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4841 ac_tool_warned=yes ;;
4842 esac
4843 CC=$ac_ct_CC
4844 fi
4845 fi
4846
4847 fi
4848
4849
4850 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4851 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4852 as_fn_error $? "no acceptable C compiler found in \$PATH
4853 See \`config.log' for more details" "$LINENO" 5; }
4854
4855 # Provide some information about the compiler.
4856 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4857 set X $ac_compile
4858 ac_compiler=$2
4859 for ac_option in --version -v -V -qversion; do
4860 { { ac_try="$ac_compiler $ac_option >&5"
4861 case "(($ac_try" in
4862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4863 *) ac_try_echo=$ac_try;;
4864 esac
4865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4866 $as_echo "$ac_try_echo"; } >&5
4867 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4868 ac_status=$?
4869 if test -s conftest.err; then
4870 sed '10a\
4871 ... rest of stderr output deleted ...
4872 10q' conftest.err >conftest.er1
4873 cat conftest.er1 >&5
4874 fi
4875 rm -f conftest.er1 conftest.err
4876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4877 test $ac_status = 0; }
4878 done
4879
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4881 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4882 if ${ac_cv_c_compiler_gnu+:} false; then :
4883 $as_echo_n "(cached) " >&6
4884 else
4885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4886 /* end confdefs.h. */
4887
4888 int
4889 main ()
4890 {
4891 #ifndef __GNUC__
4892 choke me
4893 #endif
4894
4895 ;
4896 return 0;
4897 }
4898 _ACEOF
4899 if ac_fn_c_try_compile "$LINENO"; then :
4900 ac_compiler_gnu=yes
4901 else
4902 ac_compiler_gnu=no
4903 fi
4904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4905 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4906
4907 fi
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4909 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4910 if test $ac_compiler_gnu = yes; then
4911 GCC=yes
4912 else
4913 GCC=
4914 fi
4915 ac_test_CFLAGS=${CFLAGS+set}
4916 ac_save_CFLAGS=$CFLAGS
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4918 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4919 if ${ac_cv_prog_cc_g+:} false; then :
4920 $as_echo_n "(cached) " >&6
4921 else
4922 ac_save_c_werror_flag=$ac_c_werror_flag
4923 ac_c_werror_flag=yes
4924 ac_cv_prog_cc_g=no
4925 CFLAGS="-g"
4926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4927 /* end confdefs.h. */
4928
4929 int
4930 main ()
4931 {
4932
4933 ;
4934 return 0;
4935 }
4936 _ACEOF
4937 if ac_fn_c_try_compile "$LINENO"; then :
4938 ac_cv_prog_cc_g=yes
4939 else
4940 CFLAGS=""
4941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4942 /* end confdefs.h. */
4943
4944 int
4945 main ()
4946 {
4947
4948 ;
4949 return 0;
4950 }
4951 _ACEOF
4952 if ac_fn_c_try_compile "$LINENO"; then :
4953
4954 else
4955 ac_c_werror_flag=$ac_save_c_werror_flag
4956 CFLAGS="-g"
4957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4958 /* end confdefs.h. */
4959
4960 int
4961 main ()
4962 {
4963
4964 ;
4965 return 0;
4966 }
4967 _ACEOF
4968 if ac_fn_c_try_compile "$LINENO"; then :
4969 ac_cv_prog_cc_g=yes
4970 fi
4971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4972 fi
4973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4974 fi
4975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4976 ac_c_werror_flag=$ac_save_c_werror_flag
4977 fi
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4979 $as_echo "$ac_cv_prog_cc_g" >&6; }
4980 if test "$ac_test_CFLAGS" = set; then
4981 CFLAGS=$ac_save_CFLAGS
4982 elif test $ac_cv_prog_cc_g = yes; then
4983 if test "$GCC" = yes; then
4984 CFLAGS="-g -O2"
4985 else
4986 CFLAGS="-g"
4987 fi
4988 else
4989 if test "$GCC" = yes; then
4990 CFLAGS="-O2"
4991 else
4992 CFLAGS=
4993 fi
4994 fi
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4996 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4997 if ${ac_cv_prog_cc_c89+:} false; then :
4998 $as_echo_n "(cached) " >&6
4999 else
5000 ac_cv_prog_cc_c89=no
5001 ac_save_CC=$CC
5002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5003 /* end confdefs.h. */
5004 #include <stdarg.h>
5005 #include <stdio.h>
5006 struct stat;
5007 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5008 struct buf { int x; };
5009 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5010 static char *e (p, i)
5011 char **p;
5012 int i;
5013 {
5014 return p[i];
5015 }
5016 static char *f (char * (*g) (char **, int), char **p, ...)
5017 {
5018 char *s;
5019 va_list v;
5020 va_start (v,p);
5021 s = g (p, va_arg (v,int));
5022 va_end (v);
5023 return s;
5024 }
5025
5026 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5027 function prototypes and stuff, but not '\xHH' hex character constants.
5028 These don't provoke an error unfortunately, instead are silently treated
5029 as 'x'. The following induces an error, until -std is added to get
5030 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5031 array size at least. It's necessary to write '\x00'==0 to get something
5032 that's true only with -std. */
5033 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5034
5035 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5036 inside strings and character constants. */
5037 #define FOO(x) 'x'
5038 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5039
5040 int test (int i, double x);
5041 struct s1 {int (*f) (int a);};
5042 struct s2 {int (*f) (double a);};
5043 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5044 int argc;
5045 char **argv;
5046 int
5047 main ()
5048 {
5049 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5050 ;
5051 return 0;
5052 }
5053 _ACEOF
5054 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5055 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5056 do
5057 CC="$ac_save_CC $ac_arg"
5058 if ac_fn_c_try_compile "$LINENO"; then :
5059 ac_cv_prog_cc_c89=$ac_arg
5060 fi
5061 rm -f core conftest.err conftest.$ac_objext
5062 test "x$ac_cv_prog_cc_c89" != "xno" && break
5063 done
5064 rm -f conftest.$ac_ext
5065 CC=$ac_save_CC
5066
5067 fi
5068 # AC_CACHE_VAL
5069 case "x$ac_cv_prog_cc_c89" in
5070 x)
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5072 $as_echo "none needed" >&6; } ;;
5073 xno)
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5075 $as_echo "unsupported" >&6; } ;;
5076 *)
5077 CC="$CC $ac_cv_prog_cc_c89"
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5079 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5080 esac
5081 if test "x$ac_cv_prog_cc_c89" != xno; then :
5082
5083 fi
5084
5085 ac_ext=c
5086 ac_cpp='$CPP $CPPFLAGS'
5087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5090
5091 ac_ext=c
5092 ac_cpp='$CPP $CPPFLAGS'
5093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5097 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5098 if ${am_cv_prog_cc_c_o+:} false; then :
5099 $as_echo_n "(cached) " >&6
5100 else
5101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5102 /* end confdefs.h. */
5103
5104 int
5105 main ()
5106 {
5107
5108 ;
5109 return 0;
5110 }
5111 _ACEOF
5112 # Make sure it works both with $CC and with simple cc.
5113 # Following AC_PROG_CC_C_O, we do the test twice because some
5114 # compilers refuse to overwrite an existing .o file with -o,
5115 # though they will create one.
5116 am_cv_prog_cc_c_o=yes
5117 for am_i in 1 2; do
5118 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5119 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5120 ac_status=$?
5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); } \
5123 && test -f conftest2.$ac_objext; then
5124 : OK
5125 else
5126 am_cv_prog_cc_c_o=no
5127 break
5128 fi
5129 done
5130 rm -f core conftest*
5131 unset am_i
5132 fi
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5134 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5135 if test "$am_cv_prog_cc_c_o" != yes; then
5136 # Losing compiler, so override with the script.
5137 # FIXME: It is wrong to rewrite CC.
5138 # But if we don't then we get into trouble of one sort or another.
5139 # A longer-term fix would be to have automake use am__CC in this case,
5140 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5141 CC="$am_aux_dir/compile $CC"
5142 fi
5143 ac_ext=c
5144 ac_cpp='$CPP $CPPFLAGS'
5145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5148
5149
5150 ac_ext=d
5151 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5152 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5153 ac_compiler_gnu=yes
5154 if test -n "$ac_tool_prefix"; then
5155 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5156 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5158 $as_echo_n "checking for $ac_word... " >&6; }
5159 if ${ac_cv_prog_GDC+:} false; then :
5160 $as_echo_n "(cached) " >&6
5161 else
5162 if test -n "$GDC"; then
5163 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5164 else
5165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166 for as_dir in $PATH
5167 do
5168 IFS=$as_save_IFS
5169 test -z "$as_dir" && as_dir=.
5170 for ac_exec_ext in '' $ac_executable_extensions; do
5171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5172 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5174 break 2
5175 fi
5176 done
5177 done
5178 IFS=$as_save_IFS
5179
5180 fi
5181 fi
5182 GDC=$ac_cv_prog_GDC
5183 if test -n "$GDC"; then
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5185 $as_echo "$GDC" >&6; }
5186 else
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5188 $as_echo "no" >&6; }
5189 fi
5190
5191
5192 fi
5193 if test -z "$ac_cv_prog_GDC"; then
5194 ac_ct_GDC=$GDC
5195 # Extract the first word of "gdc", so it can be a program name with args.
5196 set dummy gdc; ac_word=$2
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5198 $as_echo_n "checking for $ac_word... " >&6; }
5199 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5200 $as_echo_n "(cached) " >&6
5201 else
5202 if test -n "$ac_ct_GDC"; then
5203 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5204 else
5205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206 for as_dir in $PATH
5207 do
5208 IFS=$as_save_IFS
5209 test -z "$as_dir" && as_dir=.
5210 for ac_exec_ext in '' $ac_executable_extensions; do
5211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5212 ac_cv_prog_ac_ct_GDC="gdc"
5213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5214 break 2
5215 fi
5216 done
5217 done
5218 IFS=$as_save_IFS
5219
5220 fi
5221 fi
5222 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5223 if test -n "$ac_ct_GDC"; then
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5225 $as_echo "$ac_ct_GDC" >&6; }
5226 else
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5228 $as_echo "no" >&6; }
5229 fi
5230
5231 if test "x$ac_ct_GDC" = x; then
5232 GDC=""
5233 else
5234 case $cross_compiling:$ac_tool_warned in
5235 yes:)
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5237 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5238 ac_tool_warned=yes ;;
5239 esac
5240 GDC=$ac_ct_GDC
5241 fi
5242 else
5243 GDC="$ac_cv_prog_GDC"
5244 fi
5245
5246 if test -z "$GDC"; then
5247 if test -n "$ac_tool_prefix"; then
5248 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5249 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5251 $as_echo_n "checking for $ac_word... " >&6; }
5252 if ${ac_cv_prog_GDC+:} false; then :
5253 $as_echo_n "(cached) " >&6
5254 else
5255 if test -n "$GDC"; then
5256 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5257 else
5258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259 for as_dir in $PATH
5260 do
5261 IFS=$as_save_IFS
5262 test -z "$as_dir" && as_dir=.
5263 for ac_exec_ext in '' $ac_executable_extensions; do
5264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5265 ac_cv_prog_GDC="$ac_tool_prefix}gdc"
5266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5267 break 2
5268 fi
5269 done
5270 done
5271 IFS=$as_save_IFS
5272
5273 fi
5274 fi
5275 GDC=$ac_cv_prog_GDC
5276 if test -n "$GDC"; then
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5278 $as_echo "$GDC" >&6; }
5279 else
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5281 $as_echo "no" >&6; }
5282 fi
5283
5284
5285 fi
5286 fi
5287 if test -z "$GDC"; then
5288 # Extract the first word of "gdc", so it can be a program name with args.
5289 set dummy gdc; ac_word=$2
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5291 $as_echo_n "checking for $ac_word... " >&6; }
5292 if ${ac_cv_prog_GDC+:} false; then :
5293 $as_echo_n "(cached) " >&6
5294 else
5295 if test -n "$GDC"; then
5296 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5297 else
5298 ac_prog_rejected=no
5299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5300 for as_dir in $PATH
5301 do
5302 IFS=$as_save_IFS
5303 test -z "$as_dir" && as_dir=.
5304 for ac_exec_ext in '' $ac_executable_extensions; do
5305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5306 if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
5307 ac_prog_rejected=yes
5308 continue
5309 fi
5310 ac_cv_prog_GDC="gdc"
5311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5312 break 2
5313 fi
5314 done
5315 done
5316 IFS=$as_save_IFS
5317
5318 if test $ac_prog_rejected = yes; then
5319 # We found a bogon in the path, so make sure we never use it.
5320 set dummy $ac_cv_prog_GDC
5321 shift
5322 if test $# != 0; then
5323 # We chose a different compiler from the bogus one.
5324 # However, it has the same basename, so the bogon will be chosen
5325 # first if we set GDC to just the basename; use the full file name.
5326 shift
5327 ac_cv_prog_GDC="$as_dir/$ac_word${1+' '}$@"
5328 fi
5329 fi
5330 fi
5331 fi
5332 GDC=$ac_cv_prog_GDC
5333 if test -n "$GDC"; then
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5335 $as_echo "$GDC" >&6; }
5336 else
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5338 $as_echo "no" >&6; }
5339 fi
5340
5341
5342 fi
5343
5344
5345 # Provide some information about the compiler.
5346 $as_echo "$as_me:${as_lineno-$LINENO}: checking for D compiler version" >&5
5347 set X $ac_compile
5348 ac_compiler=$2
5349 { { ac_try="$ac_compiler --version >&5"
5350 case "(($ac_try" in
5351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5352 *) ac_try_echo=$ac_try;;
5353 esac
5354 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5355 $as_echo "$ac_try_echo"; } >&5
5356 (eval "$ac_compiler --version >&5") 2>conftest.err
5357 ac_status=$?
5358 if test -s conftest.err; then
5359 sed '10a\
5360 ... rest of stderr output deleted ...
5361 10q' conftest.err >conftest.er1
5362 cat conftest.er1 >&5
5363 fi
5364 rm -f conftest.er1 conftest.err
5365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5366 test $ac_status = 0; }
5367 ac_ext=c
5368 ac_cpp='$CPP $CPPFLAGS'
5369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5372
5373
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for absolute libphobos source path" >&5
5375 $as_echo_n "checking for absolute libphobos source path... " >&6; }
5376 if ${phobos_cv_abs_srcdir+:} false; then :
5377 $as_echo_n "(cached) " >&6
5378 else
5379 phobos_cv_abs_srcdir=`cd $srcdir && pwd`
5380 fi
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $phobos_cv_abs_srcdir" >&5
5382 $as_echo "$phobos_cv_abs_srcdir" >&6; }
5383 if test -d "$phobos_cv_abs_srcdir"; then :
5384
5385 else
5386 as_fn_error $? "can't find absolute libphobos source path" "$LINENO" 5
5387 fi
5388
5389
5390
5391
5392 gdc_save_DFLAGS=$GDCFLAGS
5393 GDCFLAGS="-fno-druntime -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
5394
5395 ac_ext=d
5396 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5397 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5398 ac_compiler_gnu=yes
5399
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If $GDC can compile D sources" >&5
5401 $as_echo_n "checking If $GDC can compile D sources... " >&6; }
5402 cat > conftest.$ac_ext <<_ACEOF
5403 module object;
5404
5405
5406 extern(C) int main() {
5407 return 0;
5408 }
5409 _ACEOF
5410 if ac_fn_d_try_compile "$LINENO"; then :
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5412 $as_echo "yes" >&6; }
5413 else
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5415 $as_echo "no" >&6; }
5416 as_fn_error $? "can't compile D sources!" "$LINENO" 5
5417 fi
5418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5419 ac_ext=c
5420 ac_cpp='$CPP $CPPFLAGS'
5421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5424
5425
5426 GDCFLAGS=$gdc_save_DFLAGS
5427
5428
5429
5430
5431
5432
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5434 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5435 # Check whether --enable-maintainer-mode was given.
5436 if test "${enable_maintainer_mode+set}" = set; then :
5437 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5438 else
5439 USE_MAINTAINER_MODE=no
5440 fi
5441
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5443 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5444 if test $USE_MAINTAINER_MODE = yes; then
5445 MAINTAINER_MODE_TRUE=
5446 MAINTAINER_MODE_FALSE='#'
5447 else
5448 MAINTAINER_MODE_TRUE='#'
5449 MAINTAINER_MODE_FALSE=
5450 fi
5451
5452 MAINT=$MAINTAINER_MODE_TRUE
5453
5454
5455 if test -n "$ac_tool_prefix"; then
5456 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5457 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5459 $as_echo_n "checking for $ac_word... " >&6; }
5460 if ${ac_cv_prog_RANLIB+:} false; then :
5461 $as_echo_n "(cached) " >&6
5462 else
5463 if test -n "$RANLIB"; then
5464 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5465 else
5466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5467 for as_dir in $PATH
5468 do
5469 IFS=$as_save_IFS
5470 test -z "$as_dir" && as_dir=.
5471 for ac_exec_ext in '' $ac_executable_extensions; do
5472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5473 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5475 break 2
5476 fi
5477 done
5478 done
5479 IFS=$as_save_IFS
5480
5481 fi
5482 fi
5483 RANLIB=$ac_cv_prog_RANLIB
5484 if test -n "$RANLIB"; then
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5486 $as_echo "$RANLIB" >&6; }
5487 else
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5489 $as_echo "no" >&6; }
5490 fi
5491
5492
5493 fi
5494 if test -z "$ac_cv_prog_RANLIB"; then
5495 ac_ct_RANLIB=$RANLIB
5496 # Extract the first word of "ranlib", so it can be a program name with args.
5497 set dummy ranlib; ac_word=$2
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5499 $as_echo_n "checking for $ac_word... " >&6; }
5500 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5501 $as_echo_n "(cached) " >&6
5502 else
5503 if test -n "$ac_ct_RANLIB"; then
5504 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5505 else
5506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507 for as_dir in $PATH
5508 do
5509 IFS=$as_save_IFS
5510 test -z "$as_dir" && as_dir=.
5511 for ac_exec_ext in '' $ac_executable_extensions; do
5512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5513 ac_cv_prog_ac_ct_RANLIB="ranlib"
5514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5515 break 2
5516 fi
5517 done
5518 done
5519 IFS=$as_save_IFS
5520
5521 fi
5522 fi
5523 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5524 if test -n "$ac_ct_RANLIB"; then
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5526 $as_echo "$ac_ct_RANLIB" >&6; }
5527 else
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5529 $as_echo "no" >&6; }
5530 fi
5531
5532 if test "x$ac_ct_RANLIB" = x; then
5533 RANLIB=":"
5534 else
5535 case $cross_compiling:$ac_tool_warned in
5536 yes:)
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5538 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5539 ac_tool_warned=yes ;;
5540 esac
5541 RANLIB=$ac_ct_RANLIB
5542 fi
5543 else
5544 RANLIB="$ac_cv_prog_RANLIB"
5545 fi
5546
5547
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5549 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5550 set x ${MAKE-make}
5551 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5552 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5553 $as_echo_n "(cached) " >&6
5554 else
5555 cat >conftest.make <<\_ACEOF
5556 SHELL = /bin/sh
5557 all:
5558 @echo '@@@%%%=$(MAKE)=@@@%%%'
5559 _ACEOF
5560 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5561 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5562 *@@@%%%=?*=@@@%%%*)
5563 eval ac_cv_prog_make_${ac_make}_set=yes;;
5564 *)
5565 eval ac_cv_prog_make_${ac_make}_set=no;;
5566 esac
5567 rm -f conftest.make
5568 fi
5569 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5571 $as_echo "yes" >&6; }
5572 SET_MAKE=
5573 else
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5575 $as_echo "no" >&6; }
5576 SET_MAKE="MAKE=${MAKE-make}"
5577 fi
5578
5579
5580 # Add CET specific flags if CET is enabled
5581 # Check whether --enable-cet was given.
5582 if test "${enable_cet+set}" = set; then :
5583 enableval=$enable_cet;
5584 case "$enableval" in
5585 yes|no|auto) ;;
5586 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
5587 esac
5588
5589 else
5590 enable_cet=auto
5591 fi
5592
5593
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
5595 $as_echo_n "checking for CET support... " >&6; }
5596
5597 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
5598 case "$host" in
5599 i[34567]86-*-linux* | x86_64-*-linux*)
5600 case "$enable_cet" in
5601 auto)
5602 # Check if target supports multi-byte NOPs
5603 # and if compiler and assembler support CET insn.
5604 cet_save_CFLAGS="$CFLAGS"
5605 CFLAGS="$CFLAGS -fcf-protection"
5606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5607 /* end confdefs.h. */
5608
5609 int
5610 main ()
5611 {
5612
5613 #if !defined(__SSE2__)
5614 #error target does not support multi-byte NOPs
5615 #else
5616 asm ("setssbsy");
5617 #endif
5618
5619 ;
5620 return 0;
5621 }
5622 _ACEOF
5623 if ac_fn_c_try_compile "$LINENO"; then :
5624 enable_cet=yes
5625 else
5626 enable_cet=no
5627 fi
5628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5629 CFLAGS="$cet_save_CFLAGS"
5630 ;;
5631 yes)
5632 # Check if assembler supports CET.
5633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5634 /* end confdefs.h. */
5635
5636 int
5637 main ()
5638 {
5639 asm ("setssbsy");
5640 ;
5641 return 0;
5642 }
5643 _ACEOF
5644 if ac_fn_c_try_compile "$LINENO"; then :
5645
5646 else
5647 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
5648 fi
5649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5650 ;;
5651 esac
5652 ;;
5653 *)
5654 enable_cet=no
5655 ;;
5656 esac
5657 if test x$enable_cet = xyes; then
5658 CET_FLAGS="-fcf-protection -mshstk"
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5660 $as_echo "yes" >&6; }
5661 else
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5663 $as_echo "no" >&6; }
5664 fi
5665
5666
5667 # To ensure that runtime code for CET is compiled in, add in D version flags.
5668 if test x$enable_cet = xyes; then :
5669
5670 DCFG_ENABLE_CET=true
5671
5672 else
5673
5674 DCFG_ENABLE_CET=false
5675
5676 fi
5677
5678
5679 # This should be inherited in the recursive make, but ensure it is defined.
5680 test "$AR" || AR=ar
5681
5682
5683 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
5684
5685
5686
5687 # Enable libtool
5688 case `pwd` in
5689 *\ * | *\ *)
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5691 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5692 esac
5693
5694
5695
5696 macro_version='2.2.7a'
5697 macro_revision='1.3134'
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711 ltmain="$ac_aux_dir/ltmain.sh"
5712
5713 # Backslashify metacharacters that are still active within
5714 # double-quoted strings.
5715 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5716
5717 # Same as above, but do not quote variable references.
5718 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5719
5720 # Sed substitution to delay expansion of an escaped shell variable in a
5721 # double_quote_subst'ed string.
5722 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5723
5724 # Sed substitution to delay expansion of an escaped single quote.
5725 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5726
5727 # Sed substitution to avoid accidental globbing in evaled expressions
5728 no_glob_subst='s/\*/\\\*/g'
5729
5730 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5731 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5732 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5733
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5735 $as_echo_n "checking how to print strings... " >&6; }
5736 # Test print first, because it will be a builtin if present.
5737 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5738 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5739 ECHO='print -r --'
5740 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5741 ECHO='printf %s\n'
5742 else
5743 # Use this function as a fallback that always works.
5744 func_fallback_echo ()
5745 {
5746 eval 'cat <<_LTECHO_EOF
5747 $1
5748 _LTECHO_EOF'
5749 }
5750 ECHO='func_fallback_echo'
5751 fi
5752
5753 # func_echo_all arg...
5754 # Invoke $ECHO with all args, space-separated.
5755 func_echo_all ()
5756 {
5757 $ECHO ""
5758 }
5759
5760 case "$ECHO" in
5761 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5762 $as_echo "printf" >&6; } ;;
5763 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5764 $as_echo "print -r" >&6; } ;;
5765 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5766 $as_echo "cat" >&6; } ;;
5767 esac
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5783 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5784 if ${ac_cv_path_SED+:} false; then :
5785 $as_echo_n "(cached) " >&6
5786 else
5787 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5788 for ac_i in 1 2 3 4 5 6 7; do
5789 ac_script="$ac_script$as_nl$ac_script"
5790 done
5791 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5792 { ac_script=; unset ac_script;}
5793 if test -z "$SED"; then
5794 ac_path_SED_found=false
5795 # Loop through the user's path and test for each of PROGNAME-LIST
5796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5797 for as_dir in $PATH
5798 do
5799 IFS=$as_save_IFS
5800 test -z "$as_dir" && as_dir=.
5801 for ac_prog in sed gsed; do
5802 for ac_exec_ext in '' $ac_executable_extensions; do
5803 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5804 as_fn_executable_p "$ac_path_SED" || continue
5805 # Check for GNU ac_path_SED and select it if it is found.
5806 # Check for GNU $ac_path_SED
5807 case `"$ac_path_SED" --version 2>&1` in
5808 *GNU*)
5809 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5810 *)
5811 ac_count=0
5812 $as_echo_n 0123456789 >"conftest.in"
5813 while :
5814 do
5815 cat "conftest.in" "conftest.in" >"conftest.tmp"
5816 mv "conftest.tmp" "conftest.in"
5817 cp "conftest.in" "conftest.nl"
5818 $as_echo '' >> "conftest.nl"
5819 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5820 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5821 as_fn_arith $ac_count + 1 && ac_count=$as_val
5822 if test $ac_count -gt ${ac_path_SED_max-0}; then
5823 # Best one so far, save it but keep looking for a better one
5824 ac_cv_path_SED="$ac_path_SED"
5825 ac_path_SED_max=$ac_count
5826 fi
5827 # 10*(2^10) chars as input seems more than enough
5828 test $ac_count -gt 10 && break
5829 done
5830 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5831 esac
5832
5833 $ac_path_SED_found && break 3
5834 done
5835 done
5836 done
5837 IFS=$as_save_IFS
5838 if test -z "$ac_cv_path_SED"; then
5839 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5840 fi
5841 else
5842 ac_cv_path_SED=$SED
5843 fi
5844
5845 fi
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5847 $as_echo "$ac_cv_path_SED" >&6; }
5848 SED="$ac_cv_path_SED"
5849 rm -f conftest.sed
5850
5851 test -z "$SED" && SED=sed
5852 Xsed="$SED -e 1s/^X//"
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5865 $as_echo_n "checking for fgrep... " >&6; }
5866 if ${ac_cv_path_FGREP+:} false; then :
5867 $as_echo_n "(cached) " >&6
5868 else
5869 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5870 then ac_cv_path_FGREP="$GREP -F"
5871 else
5872 if test -z "$FGREP"; then
5873 ac_path_FGREP_found=false
5874 # Loop through the user's path and test for each of PROGNAME-LIST
5875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5876 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5877 do
5878 IFS=$as_save_IFS
5879 test -z "$as_dir" && as_dir=.
5880 for ac_prog in fgrep; do
5881 for ac_exec_ext in '' $ac_executable_extensions; do
5882 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5883 as_fn_executable_p "$ac_path_FGREP" || continue
5884 # Check for GNU ac_path_FGREP and select it if it is found.
5885 # Check for GNU $ac_path_FGREP
5886 case `"$ac_path_FGREP" --version 2>&1` in
5887 *GNU*)
5888 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5889 *)
5890 ac_count=0
5891 $as_echo_n 0123456789 >"conftest.in"
5892 while :
5893 do
5894 cat "conftest.in" "conftest.in" >"conftest.tmp"
5895 mv "conftest.tmp" "conftest.in"
5896 cp "conftest.in" "conftest.nl"
5897 $as_echo 'FGREP' >> "conftest.nl"
5898 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5899 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5900 as_fn_arith $ac_count + 1 && ac_count=$as_val
5901 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5902 # Best one so far, save it but keep looking for a better one
5903 ac_cv_path_FGREP="$ac_path_FGREP"
5904 ac_path_FGREP_max=$ac_count
5905 fi
5906 # 10*(2^10) chars as input seems more than enough
5907 test $ac_count -gt 10 && break
5908 done
5909 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5910 esac
5911
5912 $ac_path_FGREP_found && break 3
5913 done
5914 done
5915 done
5916 IFS=$as_save_IFS
5917 if test -z "$ac_cv_path_FGREP"; then
5918 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5919 fi
5920 else
5921 ac_cv_path_FGREP=$FGREP
5922 fi
5923
5924 fi
5925 fi
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5927 $as_echo "$ac_cv_path_FGREP" >&6; }
5928 FGREP="$ac_cv_path_FGREP"
5929
5930
5931 test -z "$GREP" && GREP=grep
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951 # Check whether --with-gnu-ld was given.
5952 if test "${with_gnu_ld+set}" = set; then :
5953 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5954 else
5955 with_gnu_ld=no
5956 fi
5957
5958 ac_prog=ld
5959 if test "$GCC" = yes; then
5960 # Check if gcc -print-prog-name=ld gives a path.
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5962 $as_echo_n "checking for ld used by $CC... " >&6; }
5963 case $host in
5964 *-*-mingw*)
5965 # gcc leaves a trailing carriage return which upsets mingw
5966 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5967 *)
5968 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5969 esac
5970 case $ac_prog in
5971 # Accept absolute paths.
5972 [\\/]* | ?:[\\/]*)
5973 re_direlt='/[^/][^/]*/\.\./'
5974 # Canonicalize the pathname of ld
5975 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5976 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5977 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5978 done
5979 test -z "$LD" && LD="$ac_prog"
5980 ;;
5981 "")
5982 # If it fails, then pretend we aren't using GCC.
5983 ac_prog=ld
5984 ;;
5985 *)
5986 # If it is relative, then search for the first ld in PATH.
5987 with_gnu_ld=unknown
5988 ;;
5989 esac
5990 elif test "$with_gnu_ld" = yes; then
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5992 $as_echo_n "checking for GNU ld... " >&6; }
5993 else
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5995 $as_echo_n "checking for non-GNU ld... " >&6; }
5996 fi
5997 if ${lt_cv_path_LD+:} false; then :
5998 $as_echo_n "(cached) " >&6
5999 else
6000 if test -z "$LD"; then
6001 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6002 for ac_dir in $PATH; do
6003 IFS="$lt_save_ifs"
6004 test -z "$ac_dir" && ac_dir=.
6005 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6006 lt_cv_path_LD="$ac_dir/$ac_prog"
6007 # Check to see if the program is GNU ld. I'd rather use --version,
6008 # but apparently some variants of GNU ld only accept -v.
6009 # Break only if it was the GNU/non-GNU ld that we prefer.
6010 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6011 *GNU* | *'with BFD'*)
6012 test "$with_gnu_ld" != no && break
6013 ;;
6014 *)
6015 test "$with_gnu_ld" != yes && break
6016 ;;
6017 esac
6018 fi
6019 done
6020 IFS="$lt_save_ifs"
6021 else
6022 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6023 fi
6024 fi
6025
6026 LD="$lt_cv_path_LD"
6027 if test -n "$LD"; then
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6029 $as_echo "$LD" >&6; }
6030 else
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6032 $as_echo "no" >&6; }
6033 fi
6034 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6036 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6037 if ${lt_cv_prog_gnu_ld+:} false; then :
6038 $as_echo_n "(cached) " >&6
6039 else
6040 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6041 case `$LD -v 2>&1 </dev/null` in
6042 *GNU* | *'with BFD'*)
6043 lt_cv_prog_gnu_ld=yes
6044 ;;
6045 *)
6046 lt_cv_prog_gnu_ld=no
6047 ;;
6048 esac
6049 fi
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6051 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6052 with_gnu_ld=$lt_cv_prog_gnu_ld
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6063 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6064 if ${lt_cv_path_NM+:} false; then :
6065 $as_echo_n "(cached) " >&6
6066 else
6067 if test -n "$NM"; then
6068 # Let the user override the nm to test.
6069 lt_nm_to_check="$NM"
6070 else
6071 lt_nm_to_check="${ac_tool_prefix}nm"
6072 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6073 lt_nm_to_check="$lt_nm_to_check nm"
6074 fi
6075 fi
6076 for lt_tmp_nm in "$lt_nm_to_check"; do
6077 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6078 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6079 IFS="$lt_save_ifs"
6080 test -z "$ac_dir" && ac_dir=.
6081 # Strip out any user-provided options from the nm to test twice,
6082 # the first time to test to see if nm (rather than its options) has
6083 # an explicit path, the second time to yield a file which can be
6084 # nm'ed itself.
6085 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
6086 case "$tmp_nm_path" in
6087 */*|*\\*) tmp_nm="$lt_tmp_nm";;
6088 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
6089 esac
6090 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
6091 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
6092 # Check to see if the nm accepts a BSD-compat flag.
6093 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6094 # nm: unknown option "B" ignored
6095 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6096 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
6097 break
6098 ;;
6099 *)
6100 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6101 *$tmp_nm*)
6102 lt_cv_path_NM="$tmp_nm -p"
6103 break
6104 ;;
6105 *)
6106 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6107 continue # so that we can try to find one that supports BSD flags
6108 ;;
6109 esac
6110 ;;
6111 esac
6112 fi
6113 done
6114 IFS="$lt_save_ifs"
6115 done
6116 : ${lt_cv_path_NM=no}
6117 fi
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6119 $as_echo "$lt_cv_path_NM" >&6; }
6120 if test "$lt_cv_path_NM" != "no"; then
6121 NM="$lt_cv_path_NM"
6122 else
6123 # Didn't find any BSD compatible name lister, look for dumpbin.
6124 if test -n "$DUMPBIN"; then :
6125 # Let the user override the test.
6126 else
6127 if test -n "$ac_tool_prefix"; then
6128 for ac_prog in dumpbin "link -dump"
6129 do
6130 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6131 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6133 $as_echo_n "checking for $ac_word... " >&6; }
6134 if ${ac_cv_prog_DUMPBIN+:} false; then :
6135 $as_echo_n "(cached) " >&6
6136 else
6137 if test -n "$DUMPBIN"; then
6138 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6139 else
6140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141 for as_dir in $PATH
6142 do
6143 IFS=$as_save_IFS
6144 test -z "$as_dir" && as_dir=.
6145 for ac_exec_ext in '' $ac_executable_extensions; do
6146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6147 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6149 break 2
6150 fi
6151 done
6152 done
6153 IFS=$as_save_IFS
6154
6155 fi
6156 fi
6157 DUMPBIN=$ac_cv_prog_DUMPBIN
6158 if test -n "$DUMPBIN"; then
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6160 $as_echo "$DUMPBIN" >&6; }
6161 else
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6163 $as_echo "no" >&6; }
6164 fi
6165
6166
6167 test -n "$DUMPBIN" && break
6168 done
6169 fi
6170 if test -z "$DUMPBIN"; then
6171 ac_ct_DUMPBIN=$DUMPBIN
6172 for ac_prog in dumpbin "link -dump"
6173 do
6174 # Extract the first word of "$ac_prog", so it can be a program name with args.
6175 set dummy $ac_prog; ac_word=$2
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6177 $as_echo_n "checking for $ac_word... " >&6; }
6178 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6179 $as_echo_n "(cached) " >&6
6180 else
6181 if test -n "$ac_ct_DUMPBIN"; then
6182 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6183 else
6184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6185 for as_dir in $PATH
6186 do
6187 IFS=$as_save_IFS
6188 test -z "$as_dir" && as_dir=.
6189 for ac_exec_ext in '' $ac_executable_extensions; do
6190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6191 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6193 break 2
6194 fi
6195 done
6196 done
6197 IFS=$as_save_IFS
6198
6199 fi
6200 fi
6201 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6202 if test -n "$ac_ct_DUMPBIN"; then
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6204 $as_echo "$ac_ct_DUMPBIN" >&6; }
6205 else
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6207 $as_echo "no" >&6; }
6208 fi
6209
6210
6211 test -n "$ac_ct_DUMPBIN" && break
6212 done
6213
6214 if test "x$ac_ct_DUMPBIN" = x; then
6215 DUMPBIN=":"
6216 else
6217 case $cross_compiling:$ac_tool_warned in
6218 yes:)
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6221 ac_tool_warned=yes ;;
6222 esac
6223 DUMPBIN=$ac_ct_DUMPBIN
6224 fi
6225 fi
6226
6227 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6228 *COFF*)
6229 DUMPBIN="$DUMPBIN -symbols"
6230 ;;
6231 *)
6232 DUMPBIN=:
6233 ;;
6234 esac
6235 fi
6236
6237 if test "$DUMPBIN" != ":"; then
6238 NM="$DUMPBIN"
6239 fi
6240 fi
6241 test -z "$NM" && NM=nm
6242
6243
6244
6245
6246
6247
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6249 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6250 if ${lt_cv_nm_interface+:} false; then :
6251 $as_echo_n "(cached) " >&6
6252 else
6253 lt_cv_nm_interface="BSD nm"
6254 echo "int some_variable = 0;" > conftest.$ac_ext
6255 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6256 (eval "$ac_compile" 2>conftest.err)
6257 cat conftest.err >&5
6258 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6259 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6260 cat conftest.err >&5
6261 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6262 cat conftest.out >&5
6263 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6264 lt_cv_nm_interface="MS dumpbin"
6265 fi
6266 rm -f conftest*
6267 fi
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6269 $as_echo "$lt_cv_nm_interface" >&6; }
6270
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6272 $as_echo_n "checking whether ln -s works... " >&6; }
6273 LN_S=$as_ln_s
6274 if test "$LN_S" = "ln -s"; then
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6276 $as_echo "yes" >&6; }
6277 else
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6279 $as_echo "no, using $LN_S" >&6; }
6280 fi
6281
6282 # find the maximum length of command line arguments
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6284 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6285 if ${lt_cv_sys_max_cmd_len+:} false; then :
6286 $as_echo_n "(cached) " >&6
6287 else
6288 i=0
6289 teststring="ABCD"
6290
6291 case $build_os in
6292 msdosdjgpp*)
6293 # On DJGPP, this test can blow up pretty badly due to problems in libc
6294 # (any single argument exceeding 2000 bytes causes a buffer overrun
6295 # during glob expansion). Even if it were fixed, the result of this
6296 # check would be larger than it should be.
6297 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6298 ;;
6299
6300 gnu*)
6301 # Under GNU Hurd, this test is not required because there is
6302 # no limit to the length of command line arguments.
6303 # Libtool will interpret -1 as no limit whatsoever
6304 lt_cv_sys_max_cmd_len=-1;
6305 ;;
6306
6307 cygwin* | mingw* | cegcc*)
6308 # On Win9x/ME, this test blows up -- it succeeds, but takes
6309 # about 5 minutes as the teststring grows exponentially.
6310 # Worse, since 9x/ME are not pre-emptively multitasking,
6311 # you end up with a "frozen" computer, even though with patience
6312 # the test eventually succeeds (with a max line length of 256k).
6313 # Instead, let's just punt: use the minimum linelength reported by
6314 # all of the supported platforms: 8192 (on NT/2K/XP).
6315 lt_cv_sys_max_cmd_len=8192;
6316 ;;
6317
6318 mint*)
6319 # On MiNT this can take a long time and run out of memory.
6320 lt_cv_sys_max_cmd_len=8192;
6321 ;;
6322
6323 amigaos*)
6324 # On AmigaOS with pdksh, this test takes hours, literally.
6325 # So we just punt and use a minimum line length of 8192.
6326 lt_cv_sys_max_cmd_len=8192;
6327 ;;
6328
6329 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6330 # This has been around since 386BSD, at least. Likely further.
6331 if test -x /sbin/sysctl; then
6332 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6333 elif test -x /usr/sbin/sysctl; then
6334 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6335 else
6336 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6337 fi
6338 # And add a safety zone
6339 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6340 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6341 ;;
6342
6343 interix*)
6344 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6345 lt_cv_sys_max_cmd_len=196608
6346 ;;
6347
6348 osf*)
6349 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6350 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6351 # nice to cause kernel panics so lets avoid the loop below.
6352 # First set a reasonable default.
6353 lt_cv_sys_max_cmd_len=16384
6354 #
6355 if test -x /sbin/sysconfig; then
6356 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6357 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6358 esac
6359 fi
6360 ;;
6361 sco3.2v5*)
6362 lt_cv_sys_max_cmd_len=102400
6363 ;;
6364 sysv5* | sco5v6* | sysv4.2uw2*)
6365 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6366 if test -n "$kargmax"; then
6367 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6368 else
6369 lt_cv_sys_max_cmd_len=32768
6370 fi
6371 ;;
6372 *)
6373 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6374 if test -n "$lt_cv_sys_max_cmd_len"; then
6375 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6376 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6377 else
6378 # Make teststring a little bigger before we do anything with it.
6379 # a 1K string should be a reasonable start.
6380 for i in 1 2 3 4 5 6 7 8 ; do
6381 teststring=$teststring$teststring
6382 done
6383 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6384 # If test is not a shell built-in, we'll probably end up computing a
6385 # maximum length that is only half of the actual maximum length, but
6386 # we can't tell.
6387 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6388 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6389 test $i != 17 # 1/2 MB should be enough
6390 do
6391 i=`expr $i + 1`
6392 teststring=$teststring$teststring
6393 done
6394 # Only check the string length outside the loop.
6395 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6396 teststring=
6397 # Add a significant safety factor because C++ compilers can tack on
6398 # massive amounts of additional arguments before passing them to the
6399 # linker. It appears as though 1/2 is a usable value.
6400 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6401 fi
6402 ;;
6403 esac
6404
6405 fi
6406
6407 if test -n $lt_cv_sys_max_cmd_len ; then
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6409 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6410 else
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6412 $as_echo "none" >&6; }
6413 fi
6414 max_cmd_len=$lt_cv_sys_max_cmd_len
6415
6416
6417
6418
6419
6420
6421 : ${CP="cp -f"}
6422 : ${MV="mv -f"}
6423 : ${RM="rm -f"}
6424
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6426 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6427 # Try some XSI features
6428 xsi_shell=no
6429 ( _lt_dummy="a/b/c"
6430 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6431 = c,a/b,, \
6432 && eval 'test $(( 1 + 1 )) -eq 2 \
6433 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6434 && xsi_shell=yes
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6436 $as_echo "$xsi_shell" >&6; }
6437
6438
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6440 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6441 lt_shell_append=no
6442 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6443 >/dev/null 2>&1 \
6444 && lt_shell_append=yes
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6446 $as_echo "$lt_shell_append" >&6; }
6447
6448
6449 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6450 lt_unset=unset
6451 else
6452 lt_unset=false
6453 fi
6454
6455
6456
6457
6458
6459 # test EBCDIC or ASCII
6460 case `echo X|tr X '\101'` in
6461 A) # ASCII based system
6462 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6463 lt_SP2NL='tr \040 \012'
6464 lt_NL2SP='tr \015\012 \040\040'
6465 ;;
6466 *) # EBCDIC based system
6467 lt_SP2NL='tr \100 \n'
6468 lt_NL2SP='tr \r\n \100\100'
6469 ;;
6470 esac
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6481 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6482 if ${lt_cv_ld_reload_flag+:} false; then :
6483 $as_echo_n "(cached) " >&6
6484 else
6485 lt_cv_ld_reload_flag='-r'
6486 fi
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6488 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6489 reload_flag=$lt_cv_ld_reload_flag
6490 case $reload_flag in
6491 "" | " "*) ;;
6492 *) reload_flag=" $reload_flag" ;;
6493 esac
6494 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6495 case $host_os in
6496 darwin*)
6497 if test "$GCC" = yes; then
6498 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6499 else
6500 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6501 fi
6502 ;;
6503 esac
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513 if test -n "$ac_tool_prefix"; then
6514 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6515 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6517 $as_echo_n "checking for $ac_word... " >&6; }
6518 if ${ac_cv_prog_OBJDUMP+:} false; then :
6519 $as_echo_n "(cached) " >&6
6520 else
6521 if test -n "$OBJDUMP"; then
6522 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6523 else
6524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525 for as_dir in $PATH
6526 do
6527 IFS=$as_save_IFS
6528 test -z "$as_dir" && as_dir=.
6529 for ac_exec_ext in '' $ac_executable_extensions; do
6530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6531 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6533 break 2
6534 fi
6535 done
6536 done
6537 IFS=$as_save_IFS
6538
6539 fi
6540 fi
6541 OBJDUMP=$ac_cv_prog_OBJDUMP
6542 if test -n "$OBJDUMP"; then
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6544 $as_echo "$OBJDUMP" >&6; }
6545 else
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6547 $as_echo "no" >&6; }
6548 fi
6549
6550
6551 fi
6552 if test -z "$ac_cv_prog_OBJDUMP"; then
6553 ac_ct_OBJDUMP=$OBJDUMP
6554 # Extract the first word of "objdump", so it can be a program name with args.
6555 set dummy objdump; ac_word=$2
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6557 $as_echo_n "checking for $ac_word... " >&6; }
6558 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6559 $as_echo_n "(cached) " >&6
6560 else
6561 if test -n "$ac_ct_OBJDUMP"; then
6562 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6563 else
6564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6565 for as_dir in $PATH
6566 do
6567 IFS=$as_save_IFS
6568 test -z "$as_dir" && as_dir=.
6569 for ac_exec_ext in '' $ac_executable_extensions; do
6570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6571 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6573 break 2
6574 fi
6575 done
6576 done
6577 IFS=$as_save_IFS
6578
6579 fi
6580 fi
6581 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6582 if test -n "$ac_ct_OBJDUMP"; then
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6584 $as_echo "$ac_ct_OBJDUMP" >&6; }
6585 else
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6587 $as_echo "no" >&6; }
6588 fi
6589
6590 if test "x$ac_ct_OBJDUMP" = x; then
6591 OBJDUMP="false"
6592 else
6593 case $cross_compiling:$ac_tool_warned in
6594 yes:)
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6596 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6597 ac_tool_warned=yes ;;
6598 esac
6599 OBJDUMP=$ac_ct_OBJDUMP
6600 fi
6601 else
6602 OBJDUMP="$ac_cv_prog_OBJDUMP"
6603 fi
6604
6605 test -z "$OBJDUMP" && OBJDUMP=objdump
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6616 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6617 if ${lt_cv_deplibs_check_method+:} false; then :
6618 $as_echo_n "(cached) " >&6
6619 else
6620 lt_cv_file_magic_cmd='$MAGIC_CMD'
6621 lt_cv_file_magic_test_file=
6622 lt_cv_deplibs_check_method='unknown'
6623 # Need to set the preceding variable on all platforms that support
6624 # interlibrary dependencies.
6625 # 'none' -- dependencies not supported.
6626 # `unknown' -- same as none, but documents that we really don't know.
6627 # 'pass_all' -- all dependencies passed with no checks.
6628 # 'test_compile' -- check by making test program.
6629 # 'file_magic [[regex]]' -- check by looking for files in library path
6630 # which responds to the $file_magic_cmd with a given extended regex.
6631 # If you have `file' or equivalent on your system and you're not sure
6632 # whether `pass_all' will *always* work, you probably want this one.
6633
6634 case $host_os in
6635 aix[4-9]*)
6636 lt_cv_deplibs_check_method=pass_all
6637 ;;
6638
6639 beos*)
6640 lt_cv_deplibs_check_method=pass_all
6641 ;;
6642
6643 bsdi[45]*)
6644 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6645 lt_cv_file_magic_cmd='/usr/bin/file -L'
6646 lt_cv_file_magic_test_file=/shlib/libc.so
6647 ;;
6648
6649 cygwin*)
6650 # func_win32_libid is a shell function defined in ltmain.sh
6651 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6652 lt_cv_file_magic_cmd='func_win32_libid'
6653 ;;
6654
6655 mingw* | pw32*)
6656 # Base MSYS/MinGW do not provide the 'file' command needed by
6657 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6658 # unless we find 'file', for example because we are cross-compiling.
6659 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6660 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6661 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6662 lt_cv_file_magic_cmd='func_win32_libid'
6663 else
6664 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6665 lt_cv_file_magic_cmd='$OBJDUMP -f'
6666 fi
6667 ;;
6668
6669 cegcc*)
6670 # use the weaker test based on 'objdump'. See mingw*.
6671 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6672 lt_cv_file_magic_cmd='$OBJDUMP -f'
6673 ;;
6674
6675 darwin* | rhapsody*)
6676 lt_cv_deplibs_check_method=pass_all
6677 ;;
6678
6679 freebsd* | dragonfly*)
6680 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6681 case $host_cpu in
6682 i*86 )
6683 # Not sure whether the presence of OpenBSD here was a mistake.
6684 # Let's accept both of them until this is cleared up.
6685 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6686 lt_cv_file_magic_cmd=/usr/bin/file
6687 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6688 ;;
6689 esac
6690 else
6691 lt_cv_deplibs_check_method=pass_all
6692 fi
6693 ;;
6694
6695 gnu*)
6696 lt_cv_deplibs_check_method=pass_all
6697 ;;
6698
6699 haiku*)
6700 lt_cv_deplibs_check_method=pass_all
6701 ;;
6702
6703 hpux10.20* | hpux11*)
6704 lt_cv_file_magic_cmd=/usr/bin/file
6705 case $host_cpu in
6706 ia64*)
6707 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6708 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6709 ;;
6710 hppa*64*)
6711 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]'
6712 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6713 ;;
6714 *)
6715 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6716 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6717 ;;
6718 esac
6719 ;;
6720
6721 interix[3-9]*)
6722 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6723 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6724 ;;
6725
6726 irix5* | irix6* | nonstopux*)
6727 case $LD in
6728 *-32|*"-32 ") libmagic=32-bit;;
6729 *-n32|*"-n32 ") libmagic=N32;;
6730 *-64|*"-64 ") libmagic=64-bit;;
6731 *) libmagic=never-match;;
6732 esac
6733 lt_cv_deplibs_check_method=pass_all
6734 ;;
6735
6736 # This must be Linux ELF.
6737 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6738 lt_cv_deplibs_check_method=pass_all
6739 ;;
6740
6741 netbsd*)
6742 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6743 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6744 else
6745 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6746 fi
6747 ;;
6748
6749 newos6*)
6750 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6751 lt_cv_file_magic_cmd=/usr/bin/file
6752 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6753 ;;
6754
6755 *nto* | *qnx*)
6756 lt_cv_deplibs_check_method=pass_all
6757 ;;
6758
6759 openbsd*)
6760 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6761 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6762 else
6763 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6764 fi
6765 ;;
6766
6767 osf3* | osf4* | osf5*)
6768 lt_cv_deplibs_check_method=pass_all
6769 ;;
6770
6771 rdos*)
6772 lt_cv_deplibs_check_method=pass_all
6773 ;;
6774
6775 solaris*)
6776 lt_cv_deplibs_check_method=pass_all
6777 ;;
6778
6779 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6780 lt_cv_deplibs_check_method=pass_all
6781 ;;
6782
6783 sysv4 | sysv4.3*)
6784 case $host_vendor in
6785 motorola)
6786 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]'
6787 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6788 ;;
6789 ncr)
6790 lt_cv_deplibs_check_method=pass_all
6791 ;;
6792 sequent)
6793 lt_cv_file_magic_cmd='/bin/file'
6794 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6795 ;;
6796 sni)
6797 lt_cv_file_magic_cmd='/bin/file'
6798 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6799 lt_cv_file_magic_test_file=/lib/libc.so
6800 ;;
6801 siemens)
6802 lt_cv_deplibs_check_method=pass_all
6803 ;;
6804 pc)
6805 lt_cv_deplibs_check_method=pass_all
6806 ;;
6807 esac
6808 ;;
6809
6810 tpf*)
6811 lt_cv_deplibs_check_method=pass_all
6812 ;;
6813 vxworks*)
6814 # Assume VxWorks cross toolchains are built on Linux, possibly
6815 # as canadian for Windows hosts.
6816 lt_cv_deplibs_check_method=pass_all
6817 ;;
6818 esac
6819
6820 fi
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6822 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6823 file_magic_cmd=$lt_cv_file_magic_cmd
6824 deplibs_check_method=$lt_cv_deplibs_check_method
6825 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838 plugin_option=
6839 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6840 for plugin in $plugin_names; do
6841 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6842 if test x$plugin_so = x$plugin; then
6843 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6844 fi
6845 if test x$plugin_so != x$plugin; then
6846 plugin_option="--plugin $plugin_so"
6847 break
6848 fi
6849 done
6850
6851 if test -n "$ac_tool_prefix"; then
6852 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6853 set dummy ${ac_tool_prefix}ar; ac_word=$2
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6855 $as_echo_n "checking for $ac_word... " >&6; }
6856 if ${ac_cv_prog_AR+:} false; then :
6857 $as_echo_n "(cached) " >&6
6858 else
6859 if test -n "$AR"; then
6860 ac_cv_prog_AR="$AR" # Let the user override the test.
6861 else
6862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6863 for as_dir in $PATH
6864 do
6865 IFS=$as_save_IFS
6866 test -z "$as_dir" && as_dir=.
6867 for ac_exec_ext in '' $ac_executable_extensions; do
6868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6869 ac_cv_prog_AR="${ac_tool_prefix}ar"
6870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6871 break 2
6872 fi
6873 done
6874 done
6875 IFS=$as_save_IFS
6876
6877 fi
6878 fi
6879 AR=$ac_cv_prog_AR
6880 if test -n "$AR"; then
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6882 $as_echo "$AR" >&6; }
6883 else
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6885 $as_echo "no" >&6; }
6886 fi
6887
6888
6889 fi
6890 if test -z "$ac_cv_prog_AR"; then
6891 ac_ct_AR=$AR
6892 # Extract the first word of "ar", so it can be a program name with args.
6893 set dummy ar; ac_word=$2
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6895 $as_echo_n "checking for $ac_word... " >&6; }
6896 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6897 $as_echo_n "(cached) " >&6
6898 else
6899 if test -n "$ac_ct_AR"; then
6900 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6901 else
6902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6903 for as_dir in $PATH
6904 do
6905 IFS=$as_save_IFS
6906 test -z "$as_dir" && as_dir=.
6907 for ac_exec_ext in '' $ac_executable_extensions; do
6908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6909 ac_cv_prog_ac_ct_AR="ar"
6910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6911 break 2
6912 fi
6913 done
6914 done
6915 IFS=$as_save_IFS
6916
6917 fi
6918 fi
6919 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6920 if test -n "$ac_ct_AR"; then
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6922 $as_echo "$ac_ct_AR" >&6; }
6923 else
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6925 $as_echo "no" >&6; }
6926 fi
6927
6928 if test "x$ac_ct_AR" = x; then
6929 AR="false"
6930 else
6931 case $cross_compiling:$ac_tool_warned in
6932 yes:)
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6934 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6935 ac_tool_warned=yes ;;
6936 esac
6937 AR=$ac_ct_AR
6938 fi
6939 else
6940 AR="$ac_cv_prog_AR"
6941 fi
6942
6943 test -z "$AR" && AR=ar
6944 if test -n "$plugin_option"; then
6945 if $AR --help 2>&1 | grep -q "\--plugin"; then
6946 touch conftest.c
6947 $AR $plugin_option rc conftest.a conftest.c
6948 if test "$?" != 0; then
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6950 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6951 else
6952 AR="$AR $plugin_option"
6953 fi
6954 rm -f conftest.*
6955 fi
6956 fi
6957 test -z "$AR_FLAGS" && AR_FLAGS=cru
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969 if test -n "$ac_tool_prefix"; then
6970 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6971 set dummy ${ac_tool_prefix}strip; ac_word=$2
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6973 $as_echo_n "checking for $ac_word... " >&6; }
6974 if ${ac_cv_prog_STRIP+:} false; then :
6975 $as_echo_n "(cached) " >&6
6976 else
6977 if test -n "$STRIP"; then
6978 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6979 else
6980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6981 for as_dir in $PATH
6982 do
6983 IFS=$as_save_IFS
6984 test -z "$as_dir" && as_dir=.
6985 for ac_exec_ext in '' $ac_executable_extensions; do
6986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6987 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6989 break 2
6990 fi
6991 done
6992 done
6993 IFS=$as_save_IFS
6994
6995 fi
6996 fi
6997 STRIP=$ac_cv_prog_STRIP
6998 if test -n "$STRIP"; then
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7000 $as_echo "$STRIP" >&6; }
7001 else
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7003 $as_echo "no" >&6; }
7004 fi
7005
7006
7007 fi
7008 if test -z "$ac_cv_prog_STRIP"; then
7009 ac_ct_STRIP=$STRIP
7010 # Extract the first word of "strip", so it can be a program name with args.
7011 set dummy strip; ac_word=$2
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7013 $as_echo_n "checking for $ac_word... " >&6; }
7014 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7015 $as_echo_n "(cached) " >&6
7016 else
7017 if test -n "$ac_ct_STRIP"; then
7018 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7019 else
7020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7021 for as_dir in $PATH
7022 do
7023 IFS=$as_save_IFS
7024 test -z "$as_dir" && as_dir=.
7025 for ac_exec_ext in '' $ac_executable_extensions; do
7026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7027 ac_cv_prog_ac_ct_STRIP="strip"
7028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7029 break 2
7030 fi
7031 done
7032 done
7033 IFS=$as_save_IFS
7034
7035 fi
7036 fi
7037 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7038 if test -n "$ac_ct_STRIP"; then
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7040 $as_echo "$ac_ct_STRIP" >&6; }
7041 else
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7043 $as_echo "no" >&6; }
7044 fi
7045
7046 if test "x$ac_ct_STRIP" = x; then
7047 STRIP=":"
7048 else
7049 case $cross_compiling:$ac_tool_warned in
7050 yes:)
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7052 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7053 ac_tool_warned=yes ;;
7054 esac
7055 STRIP=$ac_ct_STRIP
7056 fi
7057 else
7058 STRIP="$ac_cv_prog_STRIP"
7059 fi
7060
7061 test -z "$STRIP" && STRIP=:
7062
7063
7064
7065
7066
7067
7068 if test -n "$ac_tool_prefix"; then
7069 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7070 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7072 $as_echo_n "checking for $ac_word... " >&6; }
7073 if ${ac_cv_prog_RANLIB+:} false; then :
7074 $as_echo_n "(cached) " >&6
7075 else
7076 if test -n "$RANLIB"; then
7077 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7078 else
7079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7080 for as_dir in $PATH
7081 do
7082 IFS=$as_save_IFS
7083 test -z "$as_dir" && as_dir=.
7084 for ac_exec_ext in '' $ac_executable_extensions; do
7085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7086 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7088 break 2
7089 fi
7090 done
7091 done
7092 IFS=$as_save_IFS
7093
7094 fi
7095 fi
7096 RANLIB=$ac_cv_prog_RANLIB
7097 if test -n "$RANLIB"; then
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7099 $as_echo "$RANLIB" >&6; }
7100 else
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7102 $as_echo "no" >&6; }
7103 fi
7104
7105
7106 fi
7107 if test -z "$ac_cv_prog_RANLIB"; then
7108 ac_ct_RANLIB=$RANLIB
7109 # Extract the first word of "ranlib", so it can be a program name with args.
7110 set dummy ranlib; ac_word=$2
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7112 $as_echo_n "checking for $ac_word... " >&6; }
7113 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7114 $as_echo_n "(cached) " >&6
7115 else
7116 if test -n "$ac_ct_RANLIB"; then
7117 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7118 else
7119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7120 for as_dir in $PATH
7121 do
7122 IFS=$as_save_IFS
7123 test -z "$as_dir" && as_dir=.
7124 for ac_exec_ext in '' $ac_executable_extensions; do
7125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7126 ac_cv_prog_ac_ct_RANLIB="ranlib"
7127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7128 break 2
7129 fi
7130 done
7131 done
7132 IFS=$as_save_IFS
7133
7134 fi
7135 fi
7136 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7137 if test -n "$ac_ct_RANLIB"; then
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7139 $as_echo "$ac_ct_RANLIB" >&6; }
7140 else
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7142 $as_echo "no" >&6; }
7143 fi
7144
7145 if test "x$ac_ct_RANLIB" = x; then
7146 RANLIB=":"
7147 else
7148 case $cross_compiling:$ac_tool_warned in
7149 yes:)
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7151 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7152 ac_tool_warned=yes ;;
7153 esac
7154 RANLIB=$ac_ct_RANLIB
7155 fi
7156 else
7157 RANLIB="$ac_cv_prog_RANLIB"
7158 fi
7159
7160 test -z "$RANLIB" && RANLIB=:
7161 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
7162 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
7163 RANLIB="$RANLIB $plugin_option"
7164 fi
7165 fi
7166
7167
7168
7169
7170
7171
7172 # Determine commands to create old-style static archives.
7173 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7174 old_postinstall_cmds='chmod 644 $oldlib'
7175 old_postuninstall_cmds=
7176
7177 if test -n "$RANLIB"; then
7178 case $host_os in
7179 openbsd*)
7180 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7181 ;;
7182 *)
7183 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7184 ;;
7185 esac
7186 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7187 fi
7188
7189 case $host_os in
7190 darwin*)
7191 lock_old_archive_extraction=yes ;;
7192 *)
7193 lock_old_archive_extraction=no ;;
7194 esac
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234 # If no C compiler was specified, use CC.
7235 LTCC=${LTCC-"$CC"}
7236
7237 # If no C compiler flags were specified, use CFLAGS.
7238 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7239
7240 # Allow CC to be a program name with arguments.
7241 compiler=$CC
7242
7243
7244 # Check for command to grab the raw symbol name followed by C symbol from nm.
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7246 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7247 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7248 $as_echo_n "(cached) " >&6
7249 else
7250
7251 # These are sane defaults that work on at least a few old systems.
7252 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7253
7254 # Character class describing NM global symbol codes.
7255 symcode='[BCDEGRST]'
7256
7257 # Regexp to match symbols that can be accessed directly from C.
7258 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7259
7260 # Define system-specific variables.
7261 case $host_os in
7262 aix*)
7263 symcode='[BCDT]'
7264 ;;
7265 cygwin* | mingw* | pw32* | cegcc*)
7266 symcode='[ABCDGISTW]'
7267 ;;
7268 hpux*)
7269 if test "$host_cpu" = ia64; then
7270 symcode='[ABCDEGRST]'
7271 fi
7272 ;;
7273 irix* | nonstopux*)
7274 symcode='[BCDEGRST]'
7275 ;;
7276 osf*)
7277 symcode='[BCDEGQRST]'
7278 ;;
7279 solaris*)
7280 symcode='[BCDRT]'
7281 ;;
7282 sco3.2v5*)
7283 symcode='[DT]'
7284 ;;
7285 sysv4.2uw2*)
7286 symcode='[DT]'
7287 ;;
7288 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7289 symcode='[ABDT]'
7290 ;;
7291 sysv4)
7292 symcode='[DFNSTU]'
7293 ;;
7294 esac
7295
7296 # If we're using GNU nm, then use its standard symbol codes.
7297 case `$NM -V 2>&1` in
7298 *GNU* | *'with BFD'*)
7299 symcode='[ABCDGIRSTW]' ;;
7300 esac
7301
7302 # Transform an extracted symbol line into a proper C declaration.
7303 # Some systems (esp. on ia64) link data and code symbols differently,
7304 # so use this general approach.
7305 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7306
7307 # Transform an extracted symbol line into symbol name and symbol address
7308 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7309 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'"
7310
7311 # Handle CRLF in mingw tool chain
7312 opt_cr=
7313 case $build_os in
7314 mingw*)
7315 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7316 ;;
7317 esac
7318
7319 # Try without a prefix underscore, then with it.
7320 for ac_symprfx in "" "_"; do
7321
7322 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7323 symxfrm="\\1 $ac_symprfx\\2 \\2"
7324
7325 # Write the raw and C identifiers.
7326 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7327 # Fake it for dumpbin and say T for any non-static function
7328 # and D for any global variable.
7329 # Also find C++ and __fastcall symbols from MSVC++,
7330 # which start with @ or ?.
7331 lt_cv_sys_global_symbol_pipe="$AWK '"\
7332 " {last_section=section; section=\$ 3};"\
7333 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7334 " \$ 0!~/External *\|/{next};"\
7335 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7336 " {if(hide[section]) next};"\
7337 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7338 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7339 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7340 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7341 " ' prfx=^$ac_symprfx"
7342 else
7343 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7344 fi
7345
7346 # Check to see that the pipe works correctly.
7347 pipe_works=no
7348
7349 rm -f conftest*
7350 cat > conftest.$ac_ext <<_LT_EOF
7351 #ifdef __cplusplus
7352 extern "C" {
7353 #endif
7354 char nm_test_var;
7355 void nm_test_func(void);
7356 void nm_test_func(void){}
7357 #ifdef __cplusplus
7358 }
7359 #endif
7360 int main(){nm_test_var='a';nm_test_func();return(0);}
7361 _LT_EOF
7362
7363 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7364 (eval $ac_compile) 2>&5
7365 ac_status=$?
7366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7367 test $ac_status = 0; }; then
7368 # Now try to grab the symbols.
7369 nlist=conftest.nm
7370 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7371 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7372 ac_status=$?
7373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7374 test $ac_status = 0; } && test -s "$nlist"; then
7375 # Try sorting and uniquifying the output.
7376 if sort "$nlist" | uniq > "$nlist"T; then
7377 mv -f "$nlist"T "$nlist"
7378 else
7379 rm -f "$nlist"T
7380 fi
7381
7382 # Make sure that we snagged all the symbols we need.
7383 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7384 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7385 cat <<_LT_EOF > conftest.$ac_ext
7386 #ifdef __cplusplus
7387 extern "C" {
7388 #endif
7389
7390 _LT_EOF
7391 # Now generate the symbol file.
7392 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7393
7394 cat <<_LT_EOF >> conftest.$ac_ext
7395
7396 /* The mapping between symbol names and symbols. */
7397 const struct {
7398 const char *name;
7399 void *address;
7400 }
7401 lt__PROGRAM__LTX_preloaded_symbols[] =
7402 {
7403 { "@PROGRAM@", (void *) 0 },
7404 _LT_EOF
7405 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7406 cat <<\_LT_EOF >> conftest.$ac_ext
7407 {0, (void *) 0}
7408 };
7409
7410 /* This works around a problem in FreeBSD linker */
7411 #ifdef FREEBSD_WORKAROUND
7412 static const void *lt_preloaded_setup() {
7413 return lt__PROGRAM__LTX_preloaded_symbols;
7414 }
7415 #endif
7416
7417 #ifdef __cplusplus
7418 }
7419 #endif
7420 _LT_EOF
7421 # Now try linking the two files.
7422 mv conftest.$ac_objext conftstm.$ac_objext
7423 lt_save_LIBS="$LIBS"
7424 lt_save_CFLAGS="$CFLAGS"
7425 LIBS="conftstm.$ac_objext"
7426 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7427 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7428 (eval $ac_link) 2>&5
7429 ac_status=$?
7430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7431 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7432 pipe_works=yes
7433 fi
7434 LIBS="$lt_save_LIBS"
7435 CFLAGS="$lt_save_CFLAGS"
7436 else
7437 echo "cannot find nm_test_func in $nlist" >&5
7438 fi
7439 else
7440 echo "cannot find nm_test_var in $nlist" >&5
7441 fi
7442 else
7443 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7444 fi
7445 else
7446 echo "$progname: failed program was:" >&5
7447 cat conftest.$ac_ext >&5
7448 fi
7449 rm -rf conftest* conftst*
7450
7451 # Do not use the global_symbol_pipe unless it works.
7452 if test "$pipe_works" = yes; then
7453 break
7454 else
7455 lt_cv_sys_global_symbol_pipe=
7456 fi
7457 done
7458
7459 fi
7460
7461 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7462 lt_cv_sys_global_symbol_to_cdecl=
7463 fi
7464 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7466 $as_echo "failed" >&6; }
7467 else
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7469 $as_echo "ok" >&6; }
7470 fi
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493 # Check whether --enable-libtool-lock was given.
7494 if test "${enable_libtool_lock+set}" = set; then :
7495 enableval=$enable_libtool_lock;
7496 fi
7497
7498 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7499
7500 # Some flags need to be propagated to the compiler or linker for good
7501 # libtool support.
7502 case $host in
7503 ia64-*-hpux*)
7504 # Find out which ABI we are using.
7505 echo 'int i;' > conftest.$ac_ext
7506 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7507 (eval $ac_compile) 2>&5
7508 ac_status=$?
7509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7510 test $ac_status = 0; }; then
7511 case `/usr/bin/file conftest.$ac_objext` in
7512 *ELF-32*)
7513 HPUX_IA64_MODE="32"
7514 ;;
7515 *ELF-64*)
7516 HPUX_IA64_MODE="64"
7517 ;;
7518 esac
7519 fi
7520 rm -rf conftest*
7521 ;;
7522 *-*-irix6*)
7523 # Find out which ABI we are using.
7524 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7525 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7526 (eval $ac_compile) 2>&5
7527 ac_status=$?
7528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7529 test $ac_status = 0; }; then
7530 if test "$lt_cv_prog_gnu_ld" = yes; then
7531 case `/usr/bin/file conftest.$ac_objext` in
7532 *32-bit*)
7533 LD="${LD-ld} -melf32bsmip"
7534 ;;
7535 *N32*)
7536 LD="${LD-ld} -melf32bmipn32"
7537 ;;
7538 *64-bit*)
7539 LD="${LD-ld} -melf64bmip"
7540 ;;
7541 esac
7542 else
7543 case `/usr/bin/file conftest.$ac_objext` in
7544 *32-bit*)
7545 LD="${LD-ld} -32"
7546 ;;
7547 *N32*)
7548 LD="${LD-ld} -n32"
7549 ;;
7550 *64-bit*)
7551 LD="${LD-ld} -64"
7552 ;;
7553 esac
7554 fi
7555 fi
7556 rm -rf conftest*
7557 ;;
7558
7559 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7560 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7561 # Find out which ABI we are using.
7562 echo 'int i;' > conftest.$ac_ext
7563 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7564 (eval $ac_compile) 2>&5
7565 ac_status=$?
7566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7567 test $ac_status = 0; }; then
7568 case `/usr/bin/file conftest.o` in
7569 *32-bit*)
7570 case $host in
7571 x86_64-*kfreebsd*-gnu)
7572 LD="${LD-ld} -m elf_i386_fbsd"
7573 ;;
7574 x86_64-*linux*)
7575 case `/usr/bin/file conftest.o` in
7576 *x86-64*)
7577 LD="${LD-ld} -m elf32_x86_64"
7578 ;;
7579 *)
7580 LD="${LD-ld} -m elf_i386"
7581 ;;
7582 esac
7583 ;;
7584 powerpc64le-*linux*)
7585 LD="${LD-ld} -m elf32lppclinux"
7586 ;;
7587 powerpc64-*linux*)
7588 LD="${LD-ld} -m elf32ppclinux"
7589 ;;
7590 s390x-*linux*)
7591 LD="${LD-ld} -m elf_s390"
7592 ;;
7593 sparc64-*linux*)
7594 LD="${LD-ld} -m elf32_sparc"
7595 ;;
7596 esac
7597 ;;
7598 *64-bit*)
7599 case $host in
7600 x86_64-*kfreebsd*-gnu)
7601 LD="${LD-ld} -m elf_x86_64_fbsd"
7602 ;;
7603 x86_64-*linux*)
7604 LD="${LD-ld} -m elf_x86_64"
7605 ;;
7606 powerpcle-*linux*)
7607 LD="${LD-ld} -m elf64lppc"
7608 ;;
7609 powerpc-*linux*)
7610 LD="${LD-ld} -m elf64ppc"
7611 ;;
7612 s390*-*linux*|s390*-*tpf*)
7613 LD="${LD-ld} -m elf64_s390"
7614 ;;
7615 sparc*-*linux*)
7616 LD="${LD-ld} -m elf64_sparc"
7617 ;;
7618 esac
7619 ;;
7620 esac
7621 fi
7622 rm -rf conftest*
7623 ;;
7624
7625 *-*-sco3.2v5*)
7626 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7627 SAVE_CFLAGS="$CFLAGS"
7628 CFLAGS="$CFLAGS -belf"
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7630 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7631 if ${lt_cv_cc_needs_belf+:} false; then :
7632 $as_echo_n "(cached) " >&6
7633 else
7634 ac_ext=c
7635 ac_cpp='$CPP $CPPFLAGS'
7636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7639
7640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7641 /* end confdefs.h. */
7642
7643 int
7644 main ()
7645 {
7646
7647 ;
7648 return 0;
7649 }
7650 _ACEOF
7651 if ac_fn_c_try_link "$LINENO"; then :
7652 lt_cv_cc_needs_belf=yes
7653 else
7654 lt_cv_cc_needs_belf=no
7655 fi
7656 rm -f core conftest.err conftest.$ac_objext \
7657 conftest$ac_exeext conftest.$ac_ext
7658 ac_ext=c
7659 ac_cpp='$CPP $CPPFLAGS'
7660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7663
7664 fi
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7666 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7667 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7668 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7669 CFLAGS="$SAVE_CFLAGS"
7670 fi
7671 ;;
7672 sparc*-*solaris*)
7673 # Find out which ABI we are using.
7674 echo 'int i;' > conftest.$ac_ext
7675 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7676 (eval $ac_compile) 2>&5
7677 ac_status=$?
7678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7679 test $ac_status = 0; }; then
7680 case `/usr/bin/file conftest.o` in
7681 *64-bit*)
7682 case $lt_cv_prog_gnu_ld in
7683 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7684 *)
7685 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7686 LD="${LD-ld} -64"
7687 fi
7688 ;;
7689 esac
7690 ;;
7691 esac
7692 fi
7693 rm -rf conftest*
7694 ;;
7695 esac
7696
7697 need_locks="$enable_libtool_lock"
7698
7699
7700 case $host_os in
7701 rhapsody* | darwin*)
7702 if test -n "$ac_tool_prefix"; then
7703 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7704 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7706 $as_echo_n "checking for $ac_word... " >&6; }
7707 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7708 $as_echo_n "(cached) " >&6
7709 else
7710 if test -n "$DSYMUTIL"; then
7711 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7712 else
7713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7714 for as_dir in $PATH
7715 do
7716 IFS=$as_save_IFS
7717 test -z "$as_dir" && as_dir=.
7718 for ac_exec_ext in '' $ac_executable_extensions; do
7719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7720 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7722 break 2
7723 fi
7724 done
7725 done
7726 IFS=$as_save_IFS
7727
7728 fi
7729 fi
7730 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7731 if test -n "$DSYMUTIL"; then
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7733 $as_echo "$DSYMUTIL" >&6; }
7734 else
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7736 $as_echo "no" >&6; }
7737 fi
7738
7739
7740 fi
7741 if test -z "$ac_cv_prog_DSYMUTIL"; then
7742 ac_ct_DSYMUTIL=$DSYMUTIL
7743 # Extract the first word of "dsymutil", so it can be a program name with args.
7744 set dummy dsymutil; ac_word=$2
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7746 $as_echo_n "checking for $ac_word... " >&6; }
7747 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7748 $as_echo_n "(cached) " >&6
7749 else
7750 if test -n "$ac_ct_DSYMUTIL"; then
7751 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7752 else
7753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754 for as_dir in $PATH
7755 do
7756 IFS=$as_save_IFS
7757 test -z "$as_dir" && as_dir=.
7758 for ac_exec_ext in '' $ac_executable_extensions; do
7759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7760 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7762 break 2
7763 fi
7764 done
7765 done
7766 IFS=$as_save_IFS
7767
7768 fi
7769 fi
7770 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7771 if test -n "$ac_ct_DSYMUTIL"; then
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7773 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7774 else
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7776 $as_echo "no" >&6; }
7777 fi
7778
7779 if test "x$ac_ct_DSYMUTIL" = x; then
7780 DSYMUTIL=":"
7781 else
7782 case $cross_compiling:$ac_tool_warned in
7783 yes:)
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7785 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7786 ac_tool_warned=yes ;;
7787 esac
7788 DSYMUTIL=$ac_ct_DSYMUTIL
7789 fi
7790 else
7791 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7792 fi
7793
7794 if test -n "$ac_tool_prefix"; then
7795 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7796 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7798 $as_echo_n "checking for $ac_word... " >&6; }
7799 if ${ac_cv_prog_NMEDIT+:} false; then :
7800 $as_echo_n "(cached) " >&6
7801 else
7802 if test -n "$NMEDIT"; then
7803 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7804 else
7805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7806 for as_dir in $PATH
7807 do
7808 IFS=$as_save_IFS
7809 test -z "$as_dir" && as_dir=.
7810 for ac_exec_ext in '' $ac_executable_extensions; do
7811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7812 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7814 break 2
7815 fi
7816 done
7817 done
7818 IFS=$as_save_IFS
7819
7820 fi
7821 fi
7822 NMEDIT=$ac_cv_prog_NMEDIT
7823 if test -n "$NMEDIT"; then
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7825 $as_echo "$NMEDIT" >&6; }
7826 else
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7828 $as_echo "no" >&6; }
7829 fi
7830
7831
7832 fi
7833 if test -z "$ac_cv_prog_NMEDIT"; then
7834 ac_ct_NMEDIT=$NMEDIT
7835 # Extract the first word of "nmedit", so it can be a program name with args.
7836 set dummy nmedit; ac_word=$2
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7838 $as_echo_n "checking for $ac_word... " >&6; }
7839 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7840 $as_echo_n "(cached) " >&6
7841 else
7842 if test -n "$ac_ct_NMEDIT"; then
7843 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7844 else
7845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7846 for as_dir in $PATH
7847 do
7848 IFS=$as_save_IFS
7849 test -z "$as_dir" && as_dir=.
7850 for ac_exec_ext in '' $ac_executable_extensions; do
7851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7852 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7854 break 2
7855 fi
7856 done
7857 done
7858 IFS=$as_save_IFS
7859
7860 fi
7861 fi
7862 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7863 if test -n "$ac_ct_NMEDIT"; then
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7865 $as_echo "$ac_ct_NMEDIT" >&6; }
7866 else
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7868 $as_echo "no" >&6; }
7869 fi
7870
7871 if test "x$ac_ct_NMEDIT" = x; then
7872 NMEDIT=":"
7873 else
7874 case $cross_compiling:$ac_tool_warned in
7875 yes:)
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7877 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7878 ac_tool_warned=yes ;;
7879 esac
7880 NMEDIT=$ac_ct_NMEDIT
7881 fi
7882 else
7883 NMEDIT="$ac_cv_prog_NMEDIT"
7884 fi
7885
7886 if test -n "$ac_tool_prefix"; then
7887 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7888 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7890 $as_echo_n "checking for $ac_word... " >&6; }
7891 if ${ac_cv_prog_LIPO+:} false; then :
7892 $as_echo_n "(cached) " >&6
7893 else
7894 if test -n "$LIPO"; then
7895 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7896 else
7897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7898 for as_dir in $PATH
7899 do
7900 IFS=$as_save_IFS
7901 test -z "$as_dir" && as_dir=.
7902 for ac_exec_ext in '' $ac_executable_extensions; do
7903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7904 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7906 break 2
7907 fi
7908 done
7909 done
7910 IFS=$as_save_IFS
7911
7912 fi
7913 fi
7914 LIPO=$ac_cv_prog_LIPO
7915 if test -n "$LIPO"; then
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7917 $as_echo "$LIPO" >&6; }
7918 else
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7920 $as_echo "no" >&6; }
7921 fi
7922
7923
7924 fi
7925 if test -z "$ac_cv_prog_LIPO"; then
7926 ac_ct_LIPO=$LIPO
7927 # Extract the first word of "lipo", so it can be a program name with args.
7928 set dummy lipo; ac_word=$2
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7930 $as_echo_n "checking for $ac_word... " >&6; }
7931 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7932 $as_echo_n "(cached) " >&6
7933 else
7934 if test -n "$ac_ct_LIPO"; then
7935 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7936 else
7937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7938 for as_dir in $PATH
7939 do
7940 IFS=$as_save_IFS
7941 test -z "$as_dir" && as_dir=.
7942 for ac_exec_ext in '' $ac_executable_extensions; do
7943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7944 ac_cv_prog_ac_ct_LIPO="lipo"
7945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7946 break 2
7947 fi
7948 done
7949 done
7950 IFS=$as_save_IFS
7951
7952 fi
7953 fi
7954 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7955 if test -n "$ac_ct_LIPO"; then
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7957 $as_echo "$ac_ct_LIPO" >&6; }
7958 else
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7960 $as_echo "no" >&6; }
7961 fi
7962
7963 if test "x$ac_ct_LIPO" = x; then
7964 LIPO=":"
7965 else
7966 case $cross_compiling:$ac_tool_warned in
7967 yes:)
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7969 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7970 ac_tool_warned=yes ;;
7971 esac
7972 LIPO=$ac_ct_LIPO
7973 fi
7974 else
7975 LIPO="$ac_cv_prog_LIPO"
7976 fi
7977
7978 if test -n "$ac_tool_prefix"; then
7979 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7980 set dummy ${ac_tool_prefix}otool; ac_word=$2
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7982 $as_echo_n "checking for $ac_word... " >&6; }
7983 if ${ac_cv_prog_OTOOL+:} false; then :
7984 $as_echo_n "(cached) " >&6
7985 else
7986 if test -n "$OTOOL"; then
7987 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7988 else
7989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7990 for as_dir in $PATH
7991 do
7992 IFS=$as_save_IFS
7993 test -z "$as_dir" && as_dir=.
7994 for ac_exec_ext in '' $ac_executable_extensions; do
7995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7996 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7998 break 2
7999 fi
8000 done
8001 done
8002 IFS=$as_save_IFS
8003
8004 fi
8005 fi
8006 OTOOL=$ac_cv_prog_OTOOL
8007 if test -n "$OTOOL"; then
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8009 $as_echo "$OTOOL" >&6; }
8010 else
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8012 $as_echo "no" >&6; }
8013 fi
8014
8015
8016 fi
8017 if test -z "$ac_cv_prog_OTOOL"; then
8018 ac_ct_OTOOL=$OTOOL
8019 # Extract the first word of "otool", so it can be a program name with args.
8020 set dummy otool; ac_word=$2
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8022 $as_echo_n "checking for $ac_word... " >&6; }
8023 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8024 $as_echo_n "(cached) " >&6
8025 else
8026 if test -n "$ac_ct_OTOOL"; then
8027 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8028 else
8029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8030 for as_dir in $PATH
8031 do
8032 IFS=$as_save_IFS
8033 test -z "$as_dir" && as_dir=.
8034 for ac_exec_ext in '' $ac_executable_extensions; do
8035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8036 ac_cv_prog_ac_ct_OTOOL="otool"
8037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8038 break 2
8039 fi
8040 done
8041 done
8042 IFS=$as_save_IFS
8043
8044 fi
8045 fi
8046 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8047 if test -n "$ac_ct_OTOOL"; then
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8049 $as_echo "$ac_ct_OTOOL" >&6; }
8050 else
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8052 $as_echo "no" >&6; }
8053 fi
8054
8055 if test "x$ac_ct_OTOOL" = x; then
8056 OTOOL=":"
8057 else
8058 case $cross_compiling:$ac_tool_warned in
8059 yes:)
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8061 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8062 ac_tool_warned=yes ;;
8063 esac
8064 OTOOL=$ac_ct_OTOOL
8065 fi
8066 else
8067 OTOOL="$ac_cv_prog_OTOOL"
8068 fi
8069
8070 if test -n "$ac_tool_prefix"; then
8071 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8072 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8074 $as_echo_n "checking for $ac_word... " >&6; }
8075 if ${ac_cv_prog_OTOOL64+:} false; then :
8076 $as_echo_n "(cached) " >&6
8077 else
8078 if test -n "$OTOOL64"; then
8079 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8080 else
8081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8082 for as_dir in $PATH
8083 do
8084 IFS=$as_save_IFS
8085 test -z "$as_dir" && as_dir=.
8086 for ac_exec_ext in '' $ac_executable_extensions; do
8087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8088 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8090 break 2
8091 fi
8092 done
8093 done
8094 IFS=$as_save_IFS
8095
8096 fi
8097 fi
8098 OTOOL64=$ac_cv_prog_OTOOL64
8099 if test -n "$OTOOL64"; then
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8101 $as_echo "$OTOOL64" >&6; }
8102 else
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8104 $as_echo "no" >&6; }
8105 fi
8106
8107
8108 fi
8109 if test -z "$ac_cv_prog_OTOOL64"; then
8110 ac_ct_OTOOL64=$OTOOL64
8111 # Extract the first word of "otool64", so it can be a program name with args.
8112 set dummy otool64; ac_word=$2
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8114 $as_echo_n "checking for $ac_word... " >&6; }
8115 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8116 $as_echo_n "(cached) " >&6
8117 else
8118 if test -n "$ac_ct_OTOOL64"; then
8119 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8120 else
8121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8122 for as_dir in $PATH
8123 do
8124 IFS=$as_save_IFS
8125 test -z "$as_dir" && as_dir=.
8126 for ac_exec_ext in '' $ac_executable_extensions; do
8127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8128 ac_cv_prog_ac_ct_OTOOL64="otool64"
8129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8130 break 2
8131 fi
8132 done
8133 done
8134 IFS=$as_save_IFS
8135
8136 fi
8137 fi
8138 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8139 if test -n "$ac_ct_OTOOL64"; then
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8141 $as_echo "$ac_ct_OTOOL64" >&6; }
8142 else
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8144 $as_echo "no" >&6; }
8145 fi
8146
8147 if test "x$ac_ct_OTOOL64" = x; then
8148 OTOOL64=":"
8149 else
8150 case $cross_compiling:$ac_tool_warned in
8151 yes:)
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8154 ac_tool_warned=yes ;;
8155 esac
8156 OTOOL64=$ac_ct_OTOOL64
8157 fi
8158 else
8159 OTOOL64="$ac_cv_prog_OTOOL64"
8160 fi
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8189 $as_echo_n "checking for -single_module linker flag... " >&6; }
8190 if ${lt_cv_apple_cc_single_mod+:} false; then :
8191 $as_echo_n "(cached) " >&6
8192 else
8193 lt_cv_apple_cc_single_mod=no
8194 if test -z "${LT_MULTI_MODULE}"; then
8195 # By default we will add the -single_module flag. You can override
8196 # by either setting the environment variable LT_MULTI_MODULE
8197 # non-empty at configure time, or by adding -multi_module to the
8198 # link flags.
8199 rm -rf libconftest.dylib*
8200 echo "int foo(void){return 1;}" > conftest.c
8201 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8202 -dynamiclib -Wl,-single_module conftest.c" >&5
8203 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8204 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8205 _lt_result=$?
8206 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8207 lt_cv_apple_cc_single_mod=yes
8208 else
8209 cat conftest.err >&5
8210 fi
8211 rm -rf libconftest.dylib*
8212 rm -f conftest.*
8213 fi
8214 fi
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8216 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8218 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8219 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8220 $as_echo_n "(cached) " >&6
8221 else
8222 lt_cv_ld_exported_symbols_list=no
8223 save_LDFLAGS=$LDFLAGS
8224 echo "_main" > conftest.sym
8225 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8227 /* end confdefs.h. */
8228
8229 int
8230 main ()
8231 {
8232
8233 ;
8234 return 0;
8235 }
8236 _ACEOF
8237 if ac_fn_c_try_link "$LINENO"; then :
8238 lt_cv_ld_exported_symbols_list=yes
8239 else
8240 lt_cv_ld_exported_symbols_list=no
8241 fi
8242 rm -f core conftest.err conftest.$ac_objext \
8243 conftest$ac_exeext conftest.$ac_ext
8244 LDFLAGS="$save_LDFLAGS"
8245
8246 fi
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8248 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8250 $as_echo_n "checking for -force_load linker flag... " >&6; }
8251 if ${lt_cv_ld_force_load+:} false; then :
8252 $as_echo_n "(cached) " >&6
8253 else
8254 lt_cv_ld_force_load=no
8255 cat > conftest.c << _LT_EOF
8256 int forced_loaded() { return 2;}
8257 _LT_EOF
8258 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8259 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8260 echo "$AR cru libconftest.a conftest.o" >&5
8261 $AR cru libconftest.a conftest.o 2>&5
8262 cat > conftest.c << _LT_EOF
8263 int main() { return 0;}
8264 _LT_EOF
8265 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8266 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8267 _lt_result=$?
8268 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8269 lt_cv_ld_force_load=yes
8270 else
8271 cat conftest.err >&5
8272 fi
8273 rm -f conftest.err libconftest.a conftest conftest.c
8274 rm -rf conftest.dSYM
8275
8276 fi
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8278 $as_echo "$lt_cv_ld_force_load" >&6; }
8279 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8280 # build without first building modern cctools / linker.
8281 case $host_cpu-$host_os in
8282 *-rhapsody* | *-darwin1.[012])
8283 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8284 *-darwin1.*)
8285 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8286 *-darwin*)
8287 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8288 # deployment target is forced to an earlier version.
8289 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8290 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0-9]*)
8291 ;;
8292 10.[012][,.]*)
8293 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8294 ;;
8295 *)
8296 ;;
8297 esac
8298 ;;
8299 esac
8300 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8301 _lt_dar_single_mod='$single_module'
8302 fi
8303 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8304 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8305 else
8306 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8307 fi
8308 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8309 _lt_dsymutil='~$DSYMUTIL $lib || :'
8310 else
8311 _lt_dsymutil=
8312 fi
8313 ;;
8314 esac
8315
8316 for ac_header in dlfcn.h
8317 do :
8318 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8319 "
8320 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8321 cat >>confdefs.h <<_ACEOF
8322 #define HAVE_DLFCN_H 1
8323 _ACEOF
8324
8325 fi
8326
8327 done
8328
8329
8330
8331
8332
8333 # Set options
8334 enable_dlopen=yes
8335
8336
8337
8338
8339 enable_win32_dll=no
8340
8341
8342 # Check whether --enable-shared was given.
8343 if test "${enable_shared+set}" = set; then :
8344 enableval=$enable_shared; p=${PACKAGE-default}
8345 case $enableval in
8346 yes) enable_shared=yes ;;
8347 no) enable_shared=no ;;
8348 *)
8349 enable_shared=no
8350 # Look at the argument we got. We use all the common list separators.
8351 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8352 for pkg in $enableval; do
8353 IFS="$lt_save_ifs"
8354 if test "X$pkg" = "X$p"; then
8355 enable_shared=yes
8356 fi
8357 done
8358 IFS="$lt_save_ifs"
8359 ;;
8360 esac
8361 else
8362 enable_shared=yes
8363 fi
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373 # Check whether --enable-static was given.
8374 if test "${enable_static+set}" = set; then :
8375 enableval=$enable_static; p=${PACKAGE-default}
8376 case $enableval in
8377 yes) enable_static=yes ;;
8378 no) enable_static=no ;;
8379 *)
8380 enable_static=no
8381 # Look at the argument we got. We use all the common list separators.
8382 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8383 for pkg in $enableval; do
8384 IFS="$lt_save_ifs"
8385 if test "X$pkg" = "X$p"; then
8386 enable_static=yes
8387 fi
8388 done
8389 IFS="$lt_save_ifs"
8390 ;;
8391 esac
8392 else
8393 enable_static=yes
8394 fi
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405 # Check whether --with-pic was given.
8406 if test "${with_pic+set}" = set; then :
8407 withval=$with_pic; pic_mode="$withval"
8408 else
8409 pic_mode=default
8410 fi
8411
8412
8413 test -z "$pic_mode" && pic_mode=default
8414
8415
8416
8417
8418
8419
8420
8421 # Check whether --enable-fast-install was given.
8422 if test "${enable_fast_install+set}" = set; then :
8423 enableval=$enable_fast_install; p=${PACKAGE-default}
8424 case $enableval in
8425 yes) enable_fast_install=yes ;;
8426 no) enable_fast_install=no ;;
8427 *)
8428 enable_fast_install=no
8429 # Look at the argument we got. We use all the common list separators.
8430 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8431 for pkg in $enableval; do
8432 IFS="$lt_save_ifs"
8433 if test "X$pkg" = "X$p"; then
8434 enable_fast_install=yes
8435 fi
8436 done
8437 IFS="$lt_save_ifs"
8438 ;;
8439 esac
8440 else
8441 enable_fast_install=yes
8442 fi
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454 # This can be used to rebuild libtool when needed
8455 LIBTOOL_DEPS="$ltmain"
8456
8457 # Always use our own libtool.
8458 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485 test -z "$LN_S" && LN_S="ln -s"
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500 if test -n "${ZSH_VERSION+set}" ; then
8501 setopt NO_GLOB_SUBST
8502 fi
8503
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8505 $as_echo_n "checking for objdir... " >&6; }
8506 if ${lt_cv_objdir+:} false; then :
8507 $as_echo_n "(cached) " >&6
8508 else
8509 rm -f .libs 2>/dev/null
8510 mkdir .libs 2>/dev/null
8511 if test -d .libs; then
8512 lt_cv_objdir=.libs
8513 else
8514 # MS-DOS does not allow filenames that begin with a dot.
8515 lt_cv_objdir=_libs
8516 fi
8517 rmdir .libs 2>/dev/null
8518 fi
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8520 $as_echo "$lt_cv_objdir" >&6; }
8521 objdir=$lt_cv_objdir
8522
8523
8524
8525
8526
8527 cat >>confdefs.h <<_ACEOF
8528 #define LT_OBJDIR "$lt_cv_objdir/"
8529 _ACEOF
8530
8531
8532
8533
8534 case $host_os in
8535 aix3*)
8536 # AIX sometimes has problems with the GCC collect2 program. For some
8537 # reason, if we set the COLLECT_NAMES environment variable, the problems
8538 # vanish in a puff of smoke.
8539 if test "X${COLLECT_NAMES+set}" != Xset; then
8540 COLLECT_NAMES=
8541 export COLLECT_NAMES
8542 fi
8543 ;;
8544 esac
8545
8546 # Global variables:
8547 ofile=libtool
8548 can_build_shared=yes
8549
8550 # All known linkers require a `.a' archive for static linking (except MSVC,
8551 # which needs '.lib').
8552 libext=a
8553
8554 with_gnu_ld="$lt_cv_prog_gnu_ld"
8555
8556 old_CC="$CC"
8557 old_CFLAGS="$CFLAGS"
8558
8559 # Set sane defaults for various variables
8560 test -z "$CC" && CC=cc
8561 test -z "$LTCC" && LTCC=$CC
8562 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8563 test -z "$LD" && LD=ld
8564 test -z "$ac_objext" && ac_objext=o
8565
8566 for cc_temp in $compiler""; do
8567 case $cc_temp in
8568 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8569 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8570 \-*) ;;
8571 *) break;;
8572 esac
8573 done
8574 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8575
8576
8577 # Only perform the check for file, if the check method requires it
8578 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8579 case $deplibs_check_method in
8580 file_magic*)
8581 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8583 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8584 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8585 $as_echo_n "(cached) " >&6
8586 else
8587 case $MAGIC_CMD in
8588 [\\/*] | ?:[\\/]*)
8589 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8590 ;;
8591 *)
8592 lt_save_MAGIC_CMD="$MAGIC_CMD"
8593 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8594 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8595 for ac_dir in $ac_dummy; do
8596 IFS="$lt_save_ifs"
8597 test -z "$ac_dir" && ac_dir=.
8598 if test -f $ac_dir/${ac_tool_prefix}file; then
8599 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8600 if test -n "$file_magic_test_file"; then
8601 case $deplibs_check_method in
8602 "file_magic "*)
8603 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8604 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8605 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8606 $EGREP "$file_magic_regex" > /dev/null; then
8607 :
8608 else
8609 cat <<_LT_EOF 1>&2
8610
8611 *** Warning: the command libtool uses to detect shared libraries,
8612 *** $file_magic_cmd, produces output that libtool cannot recognize.
8613 *** The result is that libtool may fail to recognize shared libraries
8614 *** as such. This will affect the creation of libtool libraries that
8615 *** depend on shared libraries, but programs linked with such libtool
8616 *** libraries will work regardless of this problem. Nevertheless, you
8617 *** may want to report the problem to your system manager and/or to
8618 *** [email protected]
8619
8620 _LT_EOF
8621 fi ;;
8622 esac
8623 fi
8624 break
8625 fi
8626 done
8627 IFS="$lt_save_ifs"
8628 MAGIC_CMD="$lt_save_MAGIC_CMD"
8629 ;;
8630 esac
8631 fi
8632
8633 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8634 if test -n "$MAGIC_CMD"; then
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8636 $as_echo "$MAGIC_CMD" >&6; }
8637 else
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8639 $as_echo "no" >&6; }
8640 fi
8641
8642
8643
8644
8645
8646 if test -z "$lt_cv_path_MAGIC_CMD"; then
8647 if test -n "$ac_tool_prefix"; then
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8649 $as_echo_n "checking for file... " >&6; }
8650 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8651 $as_echo_n "(cached) " >&6
8652 else
8653 case $MAGIC_CMD in
8654 [\\/*] | ?:[\\/]*)
8655 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8656 ;;
8657 *)
8658 lt_save_MAGIC_CMD="$MAGIC_CMD"
8659 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8660 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8661 for ac_dir in $ac_dummy; do
8662 IFS="$lt_save_ifs"
8663 test -z "$ac_dir" && ac_dir=.
8664 if test -f $ac_dir/file; then
8665 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8666 if test -n "$file_magic_test_file"; then
8667 case $deplibs_check_method in
8668 "file_magic "*)
8669 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8670 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8671 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8672 $EGREP "$file_magic_regex" > /dev/null; then
8673 :
8674 else
8675 cat <<_LT_EOF 1>&2
8676
8677 *** Warning: the command libtool uses to detect shared libraries,
8678 *** $file_magic_cmd, produces output that libtool cannot recognize.
8679 *** The result is that libtool may fail to recognize shared libraries
8680 *** as such. This will affect the creation of libtool libraries that
8681 *** depend on shared libraries, but programs linked with such libtool
8682 *** libraries will work regardless of this problem. Nevertheless, you
8683 *** may want to report the problem to your system manager and/or to
8684 *** [email protected]
8685
8686 _LT_EOF
8687 fi ;;
8688 esac
8689 fi
8690 break
8691 fi
8692 done
8693 IFS="$lt_save_ifs"
8694 MAGIC_CMD="$lt_save_MAGIC_CMD"
8695 ;;
8696 esac
8697 fi
8698
8699 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8700 if test -n "$MAGIC_CMD"; then
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8702 $as_echo "$MAGIC_CMD" >&6; }
8703 else
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8705 $as_echo "no" >&6; }
8706 fi
8707
8708
8709 else
8710 MAGIC_CMD=:
8711 fi
8712 fi
8713
8714 fi
8715 ;;
8716 esac
8717
8718 # Use C for the default configuration in the libtool script
8719
8720 lt_save_CC="$CC"
8721 ac_ext=c
8722 ac_cpp='$CPP $CPPFLAGS'
8723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8726
8727
8728 # Source file extension for C test sources.
8729 ac_ext=c
8730
8731 # Object file extension for compiled C test sources.
8732 objext=o
8733 objext=$objext
8734
8735 # Code to be used in simple compile tests
8736 lt_simple_compile_test_code="int some_variable = 0;"
8737
8738 # Code to be used in simple link tests
8739 lt_simple_link_test_code='int main(){return(0);}'
8740
8741
8742
8743
8744
8745
8746
8747 # If no C compiler was specified, use CC.
8748 LTCC=${LTCC-"$CC"}
8749
8750 # If no C compiler flags were specified, use CFLAGS.
8751 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8752
8753 # Allow CC to be a program name with arguments.
8754 compiler=$CC
8755
8756 # Save the default compiler, since it gets overwritten when the other
8757 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8758 compiler_DEFAULT=$CC
8759
8760 # save warnings/boilerplate of simple test code
8761 ac_outfile=conftest.$ac_objext
8762 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8763 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8764 _lt_compiler_boilerplate=`cat conftest.err`
8765 $RM conftest*
8766
8767 ac_outfile=conftest.$ac_objext
8768 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8769 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8770 _lt_linker_boilerplate=`cat conftest.err`
8771 $RM -r conftest*
8772
8773
8774 ## CAVEAT EMPTOR:
8775 ## There is no encapsulation within the following macros, do not change
8776 ## the running order or otherwise move them around unless you know exactly
8777 ## what you are doing...
8778 if test -n "$compiler"; then
8779
8780 lt_prog_compiler_no_builtin_flag=
8781
8782 if test "$GCC" = yes; then
8783 case $cc_basename in
8784 nvcc*)
8785 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8786 *)
8787 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8788 esac
8789
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8791 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8792 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8793 $as_echo_n "(cached) " >&6
8794 else
8795 lt_cv_prog_compiler_rtti_exceptions=no
8796 ac_outfile=conftest.$ac_objext
8797 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8798 lt_compiler_flag="-fno-rtti -fno-exceptions"
8799 # Insert the option either (1) after the last *FLAGS variable, or
8800 # (2) before a word containing "conftest.", or (3) at the end.
8801 # Note that $ac_compile itself does not contain backslashes and begins
8802 # with a dollar sign (not a hyphen), so the echo should work correctly.
8803 # The option is referenced via a variable to avoid confusing sed.
8804 lt_compile=`echo "$ac_compile" | $SED \
8805 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8806 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8807 -e 's:$: $lt_compiler_flag:'`
8808 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8809 (eval "$lt_compile" 2>conftest.err)
8810 ac_status=$?
8811 cat conftest.err >&5
8812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813 if (exit $ac_status) && test -s "$ac_outfile"; then
8814 # The compiler can only warn and ignore the option if not recognized
8815 # So say no if there are warnings other than the usual output.
8816 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8817 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8818 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8819 lt_cv_prog_compiler_rtti_exceptions=yes
8820 fi
8821 fi
8822 $RM conftest*
8823
8824 fi
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8826 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8827
8828 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8829 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8830 else
8831 :
8832 fi
8833
8834 fi
8835
8836
8837
8838
8839
8840
8841 lt_prog_compiler_wl=
8842 lt_prog_compiler_pic=
8843 lt_prog_compiler_static=
8844
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8846 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8847
8848 if test "$GCC" = yes; then
8849 lt_prog_compiler_wl='-Wl,'
8850 lt_prog_compiler_static='-static'
8851
8852 case $host_os in
8853 aix*)
8854 # All AIX code is PIC.
8855 if test "$host_cpu" = ia64; then
8856 # AIX 5 now supports IA64 processor
8857 lt_prog_compiler_static='-Bstatic'
8858 fi
8859 lt_prog_compiler_pic='-fPIC'
8860 ;;
8861
8862 amigaos*)
8863 case $host_cpu in
8864 powerpc)
8865 # see comment about AmigaOS4 .so support
8866 lt_prog_compiler_pic='-fPIC'
8867 ;;
8868 m68k)
8869 # FIXME: we need at least 68020 code to build shared libraries, but
8870 # adding the `-m68020' flag to GCC prevents building anything better,
8871 # like `-m68040'.
8872 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8873 ;;
8874 esac
8875 ;;
8876
8877 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8878 # PIC is the default for these OSes.
8879 ;;
8880
8881 mingw* | cygwin* | pw32* | os2* | cegcc*)
8882 # This hack is so that the source file can tell whether it is being
8883 # built for inclusion in a dll (and should export symbols for example).
8884 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8885 # (--disable-auto-import) libraries
8886 lt_prog_compiler_pic='-DDLL_EXPORT'
8887 ;;
8888
8889 darwin* | rhapsody*)
8890 # PIC is the default on this platform
8891 # Common symbols not allowed in MH_DYLIB files
8892 lt_prog_compiler_pic='-fno-common'
8893 ;;
8894
8895 haiku*)
8896 # PIC is the default for Haiku.
8897 # The "-static" flag exists, but is broken.
8898 lt_prog_compiler_static=
8899 ;;
8900
8901 hpux*)
8902 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8903 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8904 # sets the default TLS model and affects inlining.
8905 case $host_cpu in
8906 hppa*64*)
8907 # +Z the default
8908 ;;
8909 *)
8910 lt_prog_compiler_pic='-fPIC'
8911 ;;
8912 esac
8913 ;;
8914
8915 interix[3-9]*)
8916 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8917 # Instead, we relocate shared libraries at runtime.
8918 ;;
8919
8920 msdosdjgpp*)
8921 # Just because we use GCC doesn't mean we suddenly get shared libraries
8922 # on systems that don't support them.
8923 lt_prog_compiler_can_build_shared=no
8924 enable_shared=no
8925 ;;
8926
8927 *nto* | *qnx*)
8928 # QNX uses GNU C++, but need to define -shared option too, otherwise
8929 # it will coredump.
8930 lt_prog_compiler_pic='-fPIC -shared'
8931 ;;
8932
8933 sysv4*MP*)
8934 if test -d /usr/nec; then
8935 lt_prog_compiler_pic=-Kconform_pic
8936 fi
8937 ;;
8938
8939 *)
8940 lt_prog_compiler_pic='-fPIC'
8941 ;;
8942 esac
8943
8944 case $cc_basename in
8945 nvcc*) # Cuda Compiler Driver 2.2
8946 lt_prog_compiler_wl='-Xlinker '
8947 lt_prog_compiler_pic='-Xcompiler -fPIC'
8948 ;;
8949 esac
8950 else
8951 # PORTME Check for flag to pass linker flags through the system compiler.
8952 case $host_os in
8953 aix*)
8954 lt_prog_compiler_wl='-Wl,'
8955 if test "$host_cpu" = ia64; then
8956 # AIX 5 now supports IA64 processor
8957 lt_prog_compiler_static='-Bstatic'
8958 else
8959 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8960 fi
8961 ;;
8962
8963 mingw* | cygwin* | pw32* | os2* | cegcc*)
8964 # This hack is so that the source file can tell whether it is being
8965 # built for inclusion in a dll (and should export symbols for example).
8966 lt_prog_compiler_pic='-DDLL_EXPORT'
8967 ;;
8968
8969 hpux9* | hpux10* | hpux11*)
8970 lt_prog_compiler_wl='-Wl,'
8971 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8972 # not for PA HP-UX.
8973 case $host_cpu in
8974 hppa*64*|ia64*)
8975 # +Z the default
8976 ;;
8977 *)
8978 lt_prog_compiler_pic='+Z'
8979 ;;
8980 esac
8981 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8982 lt_prog_compiler_static='${wl}-a ${wl}archive'
8983 ;;
8984
8985 irix5* | irix6* | nonstopux*)
8986 lt_prog_compiler_wl='-Wl,'
8987 # PIC (with -KPIC) is the default.
8988 lt_prog_compiler_static='-non_shared'
8989 ;;
8990
8991 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8992 case $cc_basename in
8993 # old Intel for x86_64 which still supported -KPIC.
8994 ecc*)
8995 lt_prog_compiler_wl='-Wl,'
8996 lt_prog_compiler_pic='-KPIC'
8997 lt_prog_compiler_static='-static'
8998 ;;
8999 # icc used to be incompatible with GCC.
9000 # ICC 10 doesn't accept -KPIC any more.
9001 icc* | ifort*)
9002 lt_prog_compiler_wl='-Wl,'
9003 lt_prog_compiler_pic='-fPIC'
9004 lt_prog_compiler_static='-static'
9005 ;;
9006 # Lahey Fortran 8.1.
9007 lf95*)
9008 lt_prog_compiler_wl='-Wl,'
9009 lt_prog_compiler_pic='--shared'
9010 lt_prog_compiler_static='--static'
9011 ;;
9012 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9013 # Portland Group compilers (*not* the Pentium gcc compiler,
9014 # which looks to be a dead project)
9015 lt_prog_compiler_wl='-Wl,'
9016 lt_prog_compiler_pic='-fpic'
9017 lt_prog_compiler_static='-Bstatic'
9018 ;;
9019 ccc*)
9020 lt_prog_compiler_wl='-Wl,'
9021 # All Alpha code is PIC.
9022 lt_prog_compiler_static='-non_shared'
9023 ;;
9024 xl* | bgxl* | bgf* | mpixl*)
9025 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9026 lt_prog_compiler_wl='-Wl,'
9027 lt_prog_compiler_pic='-qpic'
9028 lt_prog_compiler_static='-qstaticlink'
9029 ;;
9030 *)
9031 case `$CC -V 2>&1 | sed 5q` in
9032 *Sun\ F* | *Sun*Fortran*)
9033 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9034 lt_prog_compiler_pic='-KPIC'
9035 lt_prog_compiler_static='-Bstatic'
9036 lt_prog_compiler_wl=''
9037 ;;
9038 *Sun\ C*)
9039 # Sun C 5.9
9040 lt_prog_compiler_pic='-KPIC'
9041 lt_prog_compiler_static='-Bstatic'
9042 lt_prog_compiler_wl='-Wl,'
9043 ;;
9044 esac
9045 ;;
9046 esac
9047 ;;
9048
9049 newsos6)
9050 lt_prog_compiler_pic='-KPIC'
9051 lt_prog_compiler_static='-Bstatic'
9052 ;;
9053
9054 *nto* | *qnx*)
9055 # QNX uses GNU C++, but need to define -shared option too, otherwise
9056 # it will coredump.
9057 lt_prog_compiler_pic='-fPIC -shared'
9058 ;;
9059
9060 osf3* | osf4* | osf5*)
9061 lt_prog_compiler_wl='-Wl,'
9062 # All OSF/1 code is PIC.
9063 lt_prog_compiler_static='-non_shared'
9064 ;;
9065
9066 rdos*)
9067 lt_prog_compiler_static='-non_shared'
9068 ;;
9069
9070 solaris*)
9071 lt_prog_compiler_pic='-KPIC'
9072 lt_prog_compiler_static='-Bstatic'
9073 case $cc_basename in
9074 f77* | f90* | f95*)
9075 lt_prog_compiler_wl='-Qoption ld ';;
9076 *)
9077 lt_prog_compiler_wl='-Wl,';;
9078 esac
9079 ;;
9080
9081 sunos4*)
9082 lt_prog_compiler_wl='-Qoption ld '
9083 lt_prog_compiler_pic='-PIC'
9084 lt_prog_compiler_static='-Bstatic'
9085 ;;
9086
9087 sysv4 | sysv4.2uw2* | sysv4.3*)
9088 lt_prog_compiler_wl='-Wl,'
9089 lt_prog_compiler_pic='-KPIC'
9090 lt_prog_compiler_static='-Bstatic'
9091 ;;
9092
9093 sysv4*MP*)
9094 if test -d /usr/nec ;then
9095 lt_prog_compiler_pic='-Kconform_pic'
9096 lt_prog_compiler_static='-Bstatic'
9097 fi
9098 ;;
9099
9100 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9101 lt_prog_compiler_wl='-Wl,'
9102 lt_prog_compiler_pic='-KPIC'
9103 lt_prog_compiler_static='-Bstatic'
9104 ;;
9105
9106 unicos*)
9107 lt_prog_compiler_wl='-Wl,'
9108 lt_prog_compiler_can_build_shared=no
9109 ;;
9110
9111 uts4*)
9112 lt_prog_compiler_pic='-pic'
9113 lt_prog_compiler_static='-Bstatic'
9114 ;;
9115
9116 *)
9117 lt_prog_compiler_can_build_shared=no
9118 ;;
9119 esac
9120 fi
9121
9122 case $host_os in
9123 # For platforms which do not support PIC, -DPIC is meaningless:
9124 *djgpp*)
9125 lt_prog_compiler_pic=
9126 ;;
9127 *)
9128 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9129 ;;
9130 esac
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9132 $as_echo "$lt_prog_compiler_pic" >&6; }
9133
9134
9135
9136
9137
9138
9139 #
9140 # Check to make sure the PIC flag actually works.
9141 #
9142 if test -n "$lt_prog_compiler_pic"; then
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9144 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9145 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9146 $as_echo_n "(cached) " >&6
9147 else
9148 lt_cv_prog_compiler_pic_works=no
9149 ac_outfile=conftest.$ac_objext
9150 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9151 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9152 # Insert the option either (1) after the last *FLAGS variable, or
9153 # (2) before a word containing "conftest.", or (3) at the end.
9154 # Note that $ac_compile itself does not contain backslashes and begins
9155 # with a dollar sign (not a hyphen), so the echo should work correctly.
9156 # The option is referenced via a variable to avoid confusing sed.
9157 lt_compile=`echo "$ac_compile" | $SED \
9158 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9159 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9160 -e 's:$: $lt_compiler_flag:'`
9161 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9162 (eval "$lt_compile" 2>conftest.err)
9163 ac_status=$?
9164 cat conftest.err >&5
9165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166 if (exit $ac_status) && test -s "$ac_outfile"; then
9167 # The compiler can only warn and ignore the option if not recognized
9168 # So say no if there are warnings other than the usual output.
9169 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9170 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9171 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9172 lt_cv_prog_compiler_pic_works=yes
9173 fi
9174 fi
9175 $RM conftest*
9176
9177 fi
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9179 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9180
9181 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9182 case $lt_prog_compiler_pic in
9183 "" | " "*) ;;
9184 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9185 esac
9186 else
9187 lt_prog_compiler_pic=
9188 lt_prog_compiler_can_build_shared=no
9189 fi
9190
9191 fi
9192
9193
9194
9195
9196
9197
9198 #
9199 # Check to make sure the static flag actually works.
9200 #
9201 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9203 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9204 if ${lt_cv_prog_compiler_static_works+:} false; then :
9205 $as_echo_n "(cached) " >&6
9206 else
9207 lt_cv_prog_compiler_static_works=no
9208 save_LDFLAGS="$LDFLAGS"
9209 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9210 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9211 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9212 # The linker can only warn and ignore the option if not recognized
9213 # So say no if there are warnings
9214 if test -s conftest.err; then
9215 # Append any errors to the config.log.
9216 cat conftest.err 1>&5
9217 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9218 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9219 if diff conftest.exp conftest.er2 >/dev/null; then
9220 lt_cv_prog_compiler_static_works=yes
9221 fi
9222 else
9223 lt_cv_prog_compiler_static_works=yes
9224 fi
9225 fi
9226 $RM -r conftest*
9227 LDFLAGS="$save_LDFLAGS"
9228
9229 fi
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9231 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9232
9233 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9234 :
9235 else
9236 lt_prog_compiler_static=
9237 fi
9238
9239
9240
9241
9242
9243
9244
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9246 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9247 if ${lt_cv_prog_compiler_c_o+:} false; then :
9248 $as_echo_n "(cached) " >&6
9249 else
9250 lt_cv_prog_compiler_c_o=no
9251 $RM -r conftest 2>/dev/null
9252 mkdir conftest
9253 cd conftest
9254 mkdir out
9255 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9256
9257 lt_compiler_flag="-o out/conftest2.$ac_objext"
9258 # Insert the option either (1) after the last *FLAGS variable, or
9259 # (2) before a word containing "conftest.", or (3) at the end.
9260 # Note that $ac_compile itself does not contain backslashes and begins
9261 # with a dollar sign (not a hyphen), so the echo should work correctly.
9262 lt_compile=`echo "$ac_compile" | $SED \
9263 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9264 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9265 -e 's:$: $lt_compiler_flag:'`
9266 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9267 (eval "$lt_compile" 2>out/conftest.err)
9268 ac_status=$?
9269 cat out/conftest.err >&5
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9272 then
9273 # The compiler can only warn and ignore the option if not recognized
9274 # So say no if there are warnings
9275 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9276 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9277 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9278 lt_cv_prog_compiler_c_o=yes
9279 fi
9280 fi
9281 chmod u+w . 2>&5
9282 $RM conftest*
9283 # SGI C++ compiler will create directory out/ii_files/ for
9284 # template instantiation
9285 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9286 $RM out/* && rmdir out
9287 cd ..
9288 $RM -r conftest
9289 $RM conftest*
9290
9291 fi
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9293 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9294
9295
9296
9297
9298
9299
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9301 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9302 if ${lt_cv_prog_compiler_c_o+:} false; then :
9303 $as_echo_n "(cached) " >&6
9304 else
9305 lt_cv_prog_compiler_c_o=no
9306 $RM -r conftest 2>/dev/null
9307 mkdir conftest
9308 cd conftest
9309 mkdir out
9310 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9311
9312 lt_compiler_flag="-o out/conftest2.$ac_objext"
9313 # Insert the option either (1) after the last *FLAGS variable, or
9314 # (2) before a word containing "conftest.", or (3) at the end.
9315 # Note that $ac_compile itself does not contain backslashes and begins
9316 # with a dollar sign (not a hyphen), so the echo should work correctly.
9317 lt_compile=`echo "$ac_compile" | $SED \
9318 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9319 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9320 -e 's:$: $lt_compiler_flag:'`
9321 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9322 (eval "$lt_compile" 2>out/conftest.err)
9323 ac_status=$?
9324 cat out/conftest.err >&5
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9327 then
9328 # The compiler can only warn and ignore the option if not recognized
9329 # So say no if there are warnings
9330 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9331 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9332 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9333 lt_cv_prog_compiler_c_o=yes
9334 fi
9335 fi
9336 chmod u+w . 2>&5
9337 $RM conftest*
9338 # SGI C++ compiler will create directory out/ii_files/ for
9339 # template instantiation
9340 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9341 $RM out/* && rmdir out
9342 cd ..
9343 $RM -r conftest
9344 $RM conftest*
9345
9346 fi
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9348 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9349
9350
9351
9352
9353 hard_links="nottested"
9354 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9355 # do not overwrite the value of need_locks provided by the user
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9357 $as_echo_n "checking if we can lock with hard links... " >&6; }
9358 hard_links=yes
9359 $RM conftest*
9360 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9361 touch conftest.a
9362 ln conftest.a conftest.b 2>&5 || hard_links=no
9363 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9365 $as_echo "$hard_links" >&6; }
9366 if test "$hard_links" = no; then
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9368 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9369 need_locks=warn
9370 fi
9371 else
9372 need_locks=no
9373 fi
9374
9375
9376
9377
9378
9379
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9381 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9382
9383 runpath_var=
9384 allow_undefined_flag=
9385 always_export_symbols=no
9386 archive_cmds=
9387 archive_expsym_cmds=
9388 compiler_needs_object=no
9389 enable_shared_with_static_runtimes=no
9390 export_dynamic_flag_spec=
9391 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9392 hardcode_automatic=no
9393 hardcode_direct=no
9394 hardcode_direct_absolute=no
9395 hardcode_libdir_flag_spec=
9396 hardcode_libdir_flag_spec_ld=
9397 hardcode_libdir_separator=
9398 hardcode_minus_L=no
9399 hardcode_shlibpath_var=unsupported
9400 inherit_rpath=no
9401 link_all_deplibs=unknown
9402 module_cmds=
9403 module_expsym_cmds=
9404 old_archive_from_new_cmds=
9405 old_archive_from_expsyms_cmds=
9406 thread_safe_flag_spec=
9407 whole_archive_flag_spec=
9408 # include_expsyms should be a list of space-separated symbols to be *always*
9409 # included in the symbol list
9410 include_expsyms=
9411 # exclude_expsyms can be an extended regexp of symbols to exclude
9412 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9413 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9414 # as well as any symbol that contains `d'.
9415 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9416 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9417 # platforms (ab)use it in PIC code, but their linkers get confused if
9418 # the symbol is explicitly referenced. Since portable code cannot
9419 # rely on this symbol name, it's probably fine to never include it in
9420 # preloaded symbol tables.
9421 # Exclude shared library initialization/finalization symbols.
9422 extract_expsyms_cmds=
9423
9424 case $host_os in
9425 cygwin* | mingw* | pw32* | cegcc*)
9426 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9427 # When not using gcc, we currently assume that we are using
9428 # Microsoft Visual C++.
9429 if test "$GCC" != yes; then
9430 with_gnu_ld=no
9431 fi
9432 ;;
9433 interix*)
9434 # we just hope/assume this is gcc and not c89 (= MSVC++)
9435 with_gnu_ld=yes
9436 ;;
9437 openbsd*)
9438 with_gnu_ld=no
9439 ;;
9440 esac
9441
9442 ld_shlibs=yes
9443
9444 # On some targets, GNU ld is compatible enough with the native linker
9445 # that we're better off using the native interface for both.
9446 lt_use_gnu_ld_interface=no
9447 if test "$with_gnu_ld" = yes; then
9448 case $host_os in
9449 aix*)
9450 # The AIX port of GNU ld has always aspired to compatibility
9451 # with the native linker. However, as the warning in the GNU ld
9452 # block says, versions before 2.19.5* couldn't really create working
9453 # shared libraries, regardless of the interface used.
9454 case `$LD -v 2>&1` in
9455 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9456 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9457 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9458 *)
9459 lt_use_gnu_ld_interface=yes
9460 ;;
9461 esac
9462 ;;
9463 *)
9464 lt_use_gnu_ld_interface=yes
9465 ;;
9466 esac
9467 fi
9468
9469 if test "$lt_use_gnu_ld_interface" = yes; then
9470 # If archive_cmds runs LD, not CC, wlarc should be empty
9471 wlarc='${wl}'
9472
9473 # Set some defaults for GNU ld with shared library support. These
9474 # are reset later if shared libraries are not supported. Putting them
9475 # here allows them to be overridden if necessary.
9476 runpath_var=LD_RUN_PATH
9477 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9478 export_dynamic_flag_spec='${wl}--export-dynamic'
9479 # ancient GNU ld didn't support --whole-archive et. al.
9480 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9481 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9482 else
9483 whole_archive_flag_spec=
9484 fi
9485 supports_anon_versioning=no
9486 case `$LD -v 2>&1` in
9487 *GNU\ gold*) supports_anon_versioning=yes ;;
9488 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9489 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9490 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9491 *\ 2.11.*) ;; # other 2.11 versions
9492 *) supports_anon_versioning=yes ;;
9493 esac
9494
9495 # See if GNU ld supports shared libraries.
9496 case $host_os in
9497 aix[3-9]*)
9498 # On AIX/PPC, the GNU linker is very broken
9499 if test "$host_cpu" != ia64; then
9500 ld_shlibs=no
9501 cat <<_LT_EOF 1>&2
9502
9503 *** Warning: the GNU linker, at least up to release 2.19, is reported
9504 *** to be unable to reliably create shared libraries on AIX.
9505 *** Therefore, libtool is disabling shared libraries support. If you
9506 *** really care for shared libraries, you may want to install binutils
9507 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9508 *** You will then need to restart the configuration process.
9509
9510 _LT_EOF
9511 fi
9512 ;;
9513
9514 amigaos*)
9515 case $host_cpu in
9516 powerpc)
9517 # see comment about AmigaOS4 .so support
9518 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9519 archive_expsym_cmds=''
9520 ;;
9521 m68k)
9522 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)'
9523 hardcode_libdir_flag_spec='-L$libdir'
9524 hardcode_minus_L=yes
9525 ;;
9526 esac
9527 ;;
9528
9529 beos*)
9530 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9531 allow_undefined_flag=unsupported
9532 # Joseph Beckenbach <[email protected]> says some releases of gcc
9533 # support --undefined. This deserves some investigation. FIXME
9534 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9535 else
9536 ld_shlibs=no
9537 fi
9538 ;;
9539
9540 cygwin* | mingw* | pw32* | cegcc*)
9541 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9542 # as there is no search path for DLLs.
9543 hardcode_libdir_flag_spec='-L$libdir'
9544 export_dynamic_flag_spec='${wl}--export-all-symbols'
9545 allow_undefined_flag=unsupported
9546 always_export_symbols=no
9547 enable_shared_with_static_runtimes=yes
9548 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9549
9550 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9551 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9552 # If the export-symbols file already is a .def file (1st line
9553 # is EXPORTS), use it as is; otherwise, prepend...
9554 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9555 cp $export_symbols $output_objdir/$soname.def;
9556 else
9557 echo EXPORTS > $output_objdir/$soname.def;
9558 cat $export_symbols >> $output_objdir/$soname.def;
9559 fi~
9560 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9561 else
9562 ld_shlibs=no
9563 fi
9564 ;;
9565
9566 haiku*)
9567 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9568 link_all_deplibs=yes
9569 ;;
9570
9571 interix[3-9]*)
9572 hardcode_direct=no
9573 hardcode_shlibpath_var=no
9574 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9575 export_dynamic_flag_spec='${wl}-E'
9576 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9577 # Instead, shared libraries are loaded at an image base (0x10000000 by
9578 # default) and relocated if they conflict, which is a slow very memory
9579 # consuming and fragmenting process. To avoid this, we pick a random,
9580 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9581 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9582 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9583 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'
9584 ;;
9585
9586 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9587 tmp_diet=no
9588 if test "$host_os" = linux-dietlibc; then
9589 case $cc_basename in
9590 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9591 esac
9592 fi
9593 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9594 && test "$tmp_diet" = no
9595 then
9596 tmp_addflag=' $pic_flag'
9597 tmp_sharedflag='-shared'
9598 case $cc_basename,$host_cpu in
9599 pgcc*) # Portland Group C compiler
9600 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'
9601 tmp_addflag=' $pic_flag'
9602 ;;
9603 pgf77* | pgf90* | pgf95* | pgfortran*)
9604 # Portland Group f77 and f90 compilers
9605 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'
9606 tmp_addflag=' $pic_flag -Mnomain' ;;
9607 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9608 tmp_addflag=' -i_dynamic' ;;
9609 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9610 tmp_addflag=' -i_dynamic -nofor_main' ;;
9611 ifc* | ifort*) # Intel Fortran compiler
9612 tmp_addflag=' -nofor_main' ;;
9613 lf95*) # Lahey Fortran 8.1
9614 whole_archive_flag_spec=
9615 tmp_sharedflag='--shared' ;;
9616 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9617 tmp_sharedflag='-qmkshrobj'
9618 tmp_addflag= ;;
9619 nvcc*) # Cuda Compiler Driver 2.2
9620 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'
9621 compiler_needs_object=yes
9622 ;;
9623 esac
9624 case `$CC -V 2>&1 | sed 5q` in
9625 *Sun\ C*) # Sun C 5.9
9626 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'
9627 compiler_needs_object=yes
9628 tmp_sharedflag='-G' ;;
9629 *Sun\ F*) # Sun Fortran 8.3
9630 tmp_sharedflag='-G' ;;
9631 esac
9632 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9633
9634 if test "x$supports_anon_versioning" = xyes; then
9635 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9636 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9637 echo "local: *; };" >> $output_objdir/$libname.ver~
9638 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9639 fi
9640
9641 case $cc_basename in
9642 xlf* | bgf* | bgxlf* | mpixlf*)
9643 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9644 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9645 hardcode_libdir_flag_spec=
9646 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9647 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9648 if test "x$supports_anon_versioning" = xyes; then
9649 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9650 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9651 echo "local: *; };" >> $output_objdir/$libname.ver~
9652 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9653 fi
9654 ;;
9655 esac
9656 else
9657 ld_shlibs=no
9658 fi
9659 ;;
9660
9661 netbsd*)
9662 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9663 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9664 wlarc=
9665 else
9666 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9667 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9668 fi
9669 ;;
9670
9671 solaris*)
9672 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9673 ld_shlibs=no
9674 cat <<_LT_EOF 1>&2
9675
9676 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9677 *** create shared libraries on Solaris systems. Therefore, libtool
9678 *** is disabling shared libraries support. We urge you to upgrade GNU
9679 *** binutils to release 2.9.1 or newer. Another option is to modify
9680 *** your PATH or compiler configuration so that the native linker is
9681 *** used, and then restart.
9682
9683 _LT_EOF
9684 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9685 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9686 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9687 else
9688 ld_shlibs=no
9689 fi
9690 ;;
9691
9692 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9693 case `$LD -v 2>&1` in
9694 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9695 ld_shlibs=no
9696 cat <<_LT_EOF 1>&2
9697
9698 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9699 *** reliably create shared libraries on SCO systems. Therefore, libtool
9700 *** is disabling shared libraries support. We urge you to upgrade GNU
9701 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9702 *** your PATH or compiler configuration so that the native linker is
9703 *** used, and then restart.
9704
9705 _LT_EOF
9706 ;;
9707 *)
9708 # For security reasons, it is highly recommended that you always
9709 # use absolute paths for naming shared libraries, and exclude the
9710 # DT_RUNPATH tag from executables and libraries. But doing so
9711 # requires that you compile everything twice, which is a pain.
9712 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9713 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9714 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9715 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9716 else
9717 ld_shlibs=no
9718 fi
9719 ;;
9720 esac
9721 ;;
9722
9723 sunos4*)
9724 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9725 wlarc=
9726 hardcode_direct=yes
9727 hardcode_shlibpath_var=no
9728 ;;
9729
9730 *)
9731 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9732 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9733 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9734 else
9735 ld_shlibs=no
9736 fi
9737 ;;
9738 esac
9739
9740 if test "$ld_shlibs" = no; then
9741 runpath_var=
9742 hardcode_libdir_flag_spec=
9743 export_dynamic_flag_spec=
9744 whole_archive_flag_spec=
9745 fi
9746 else
9747 # PORTME fill in a description of your system's linker (not GNU ld)
9748 case $host_os in
9749 aix3*)
9750 allow_undefined_flag=unsupported
9751 always_export_symbols=yes
9752 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'
9753 # Note: this linker hardcodes the directories in LIBPATH if there
9754 # are no directories specified by -L.
9755 hardcode_minus_L=yes
9756 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9757 # Neither direct hardcoding nor static linking is supported with a
9758 # broken collect2.
9759 hardcode_direct=unsupported
9760 fi
9761 ;;
9762
9763 aix[4-9]*)
9764 if test "$host_cpu" = ia64; then
9765 # On IA64, the linker does run time linking by default, so we don't
9766 # have to do anything special.
9767 aix_use_runtimelinking=no
9768 exp_sym_flag='-Bexport'
9769 no_entry_flag=""
9770 else
9771 # If we're using GNU nm, then we don't want the "-C" option.
9772 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9773 # Also, AIX nm treats weak defined symbols like other global
9774 # defined symbols, whereas GNU nm marks them as "W".
9775 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9776 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'
9777 else
9778 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'
9779 fi
9780 aix_use_runtimelinking=no
9781
9782 # Test if we are trying to use run time linking or normal
9783 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9784 # need to do runtime linking.
9785 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9786 for ld_flag in $LDFLAGS; do
9787 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9788 aix_use_runtimelinking=yes
9789 break
9790 fi
9791 done
9792 ;;
9793 esac
9794
9795 exp_sym_flag='-bexport'
9796 no_entry_flag='-bnoentry'
9797 fi
9798
9799 # When large executables or shared objects are built, AIX ld can
9800 # have problems creating the table of contents. If linking a library
9801 # or program results in "error TOC overflow" add -mminimal-toc to
9802 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9803 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9804
9805 archive_cmds=''
9806 hardcode_direct=yes
9807 hardcode_direct_absolute=yes
9808 hardcode_libdir_separator=':'
9809 link_all_deplibs=yes
9810 file_list_spec='${wl}-f,'
9811
9812 if test "$GCC" = yes; then
9813 case $host_os in aix4.[012]|aix4.[012].*)
9814 # We only want to do this on AIX 4.2 and lower, the check
9815 # below for broken collect2 doesn't work under 4.3+
9816 collect2name=`${CC} -print-prog-name=collect2`
9817 if test -f "$collect2name" &&
9818 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9819 then
9820 # We have reworked collect2
9821 :
9822 else
9823 # We have old collect2
9824 hardcode_direct=unsupported
9825 # It fails to find uninstalled libraries when the uninstalled
9826 # path is not listed in the libpath. Setting hardcode_minus_L
9827 # to unsupported forces relinking
9828 hardcode_minus_L=yes
9829 hardcode_libdir_flag_spec='-L$libdir'
9830 hardcode_libdir_separator=
9831 fi
9832 ;;
9833 esac
9834 shared_flag='-shared'
9835 if test "$aix_use_runtimelinking" = yes; then
9836 shared_flag="$shared_flag "'${wl}-G'
9837 fi
9838 else
9839 # not using gcc
9840 if test "$host_cpu" = ia64; then
9841 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9842 # chokes on -Wl,-G. The following line is correct:
9843 shared_flag='-G'
9844 else
9845 if test "$aix_use_runtimelinking" = yes; then
9846 shared_flag='${wl}-G'
9847 else
9848 shared_flag='${wl}-bM:SRE'
9849 fi
9850 fi
9851 fi
9852
9853 export_dynamic_flag_spec='${wl}-bexpall'
9854 # It seems that -bexpall does not export symbols beginning with
9855 # underscore (_), so it is better to generate a list of symbols to export.
9856 always_export_symbols=yes
9857 if test "$aix_use_runtimelinking" = yes; then
9858 # Warning - without using the other runtime loading flags (-brtl),
9859 # -berok will link without error, but may produce a broken library.
9860 allow_undefined_flag='-berok'
9861 # Determine the default libpath from the value encoded in an
9862 # empty executable.
9863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9864 /* end confdefs.h. */
9865
9866 int
9867 main ()
9868 {
9869
9870 ;
9871 return 0;
9872 }
9873 _ACEOF
9874 if ac_fn_c_try_link "$LINENO"; then :
9875
9876 lt_aix_libpath_sed='
9877 /Import File Strings/,/^$/ {
9878 /^0/ {
9879 s/^0 *\(.*\)$/\1/
9880 p
9881 }
9882 }'
9883 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9884 # Check for a 64-bit object if we didn't find anything.
9885 if test -z "$aix_libpath"; then
9886 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9887 fi
9888 fi
9889 rm -f core conftest.err conftest.$ac_objext \
9890 conftest$ac_exeext conftest.$ac_ext
9891 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9892
9893 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9894 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"
9895 else
9896 if test "$host_cpu" = ia64; then
9897 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9898 allow_undefined_flag="-z nodefs"
9899 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"
9900 else
9901 # Determine the default libpath from the value encoded in an
9902 # empty executable.
9903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9904 /* end confdefs.h. */
9905
9906 int
9907 main ()
9908 {
9909
9910 ;
9911 return 0;
9912 }
9913 _ACEOF
9914 if ac_fn_c_try_link "$LINENO"; then :
9915
9916 lt_aix_libpath_sed='
9917 /Import File Strings/,/^$/ {
9918 /^0/ {
9919 s/^0 *\(.*\)$/\1/
9920 p
9921 }
9922 }'
9923 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9924 # Check for a 64-bit object if we didn't find anything.
9925 if test -z "$aix_libpath"; then
9926 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9927 fi
9928 fi
9929 rm -f core conftest.err conftest.$ac_objext \
9930 conftest$ac_exeext conftest.$ac_ext
9931 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9932
9933 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9934 # Warning - without using the other run time loading flags,
9935 # -berok will link without error, but may produce a broken library.
9936 no_undefined_flag=' ${wl}-bernotok'
9937 allow_undefined_flag=' ${wl}-berok'
9938 if test "$with_gnu_ld" = yes; then
9939 # We only use this code for GNU lds that support --whole-archive.
9940 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9941 else
9942 # Exported symbols can be pulled into shared objects from archives
9943 whole_archive_flag_spec='$convenience'
9944 fi
9945 archive_cmds_need_lc=yes
9946 # This is similar to how AIX traditionally builds its shared libraries.
9947 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'
9948 fi
9949 fi
9950 ;;
9951
9952 amigaos*)
9953 case $host_cpu in
9954 powerpc)
9955 # see comment about AmigaOS4 .so support
9956 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9957 archive_expsym_cmds=''
9958 ;;
9959 m68k)
9960 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)'
9961 hardcode_libdir_flag_spec='-L$libdir'
9962 hardcode_minus_L=yes
9963 ;;
9964 esac
9965 ;;
9966
9967 bsdi[45]*)
9968 export_dynamic_flag_spec=-rdynamic
9969 ;;
9970
9971 cygwin* | mingw* | pw32* | cegcc*)
9972 # When not using gcc, we currently assume that we are using
9973 # Microsoft Visual C++.
9974 # hardcode_libdir_flag_spec is actually meaningless, as there is
9975 # no search path for DLLs.
9976 hardcode_libdir_flag_spec=' '
9977 allow_undefined_flag=unsupported
9978 # Tell ltmain to make .lib files, not .a files.
9979 libext=lib
9980 # Tell ltmain to make .dll files, not .so files.
9981 shrext_cmds=".dll"
9982 # FIXME: Setting linknames here is a bad hack.
9983 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9984 # The linker will automatically build a .lib file if we build a DLL.
9985 old_archive_from_new_cmds='true'
9986 # FIXME: Should let the user specify the lib program.
9987 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9988 fix_srcfile_path='`cygpath -w "$srcfile"`'
9989 enable_shared_with_static_runtimes=yes
9990 ;;
9991
9992 darwin* | rhapsody*)
9993
9994
9995
9996 # Publish an arg to allow the user to select that Darwin host (and target)
9997 # libraries should be given install-names like @rpath/libfoo.dylib. This
9998 # requires that the user of the library then adds an 'rpath' to the DSO that
9999 # needs access.
10000 # NOTE: there are defaults below, for systems that support rpaths. The person
10001 # configuring can override the defaults for any system version that supports
10002 # them - they are, however, forced off for system versions without support.
10003 # Check whether --enable-darwin-at-rpath was given.
10004 if test "${enable_darwin_at_rpath+set}" = set; then :
10005 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
10006 # This is not supported before macOS 10.5 / Darwin9.
10007 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
10008 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
10010 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
10011 enable_darwin_at_rpath=no
10012 ;;
10013 esac
10014 fi
10015 else
10016 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
10017 # As above, before 10.5 / Darwin9 this does not work.
10018 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
10019 enable_darwin_at_rpath=no
10020 ;;
10021
10022 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
10023 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
10024 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
10025 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
10027 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
10028 enable_darwin_at_rpath=yes
10029 ;;
10030 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
10031 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
10032
10033 esac
10034
10035 fi
10036
10037
10038 archive_cmds_need_lc=no
10039 hardcode_direct=no
10040 hardcode_automatic=yes
10041 hardcode_shlibpath_var=unsupported
10042 if test "$lt_cv_ld_force_load" = "yes"; then
10043 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\"`'
10044 else
10045 whole_archive_flag_spec=''
10046 fi
10047 link_all_deplibs=yes
10048 allow_undefined_flag="$_lt_dar_allow_undefined"
10049 case $cc_basename in
10050 ifort*) _lt_dar_can_shared=yes ;;
10051 *) _lt_dar_can_shared=$GCC ;;
10052 esac
10053 if test "$_lt_dar_can_shared" = "yes"; then
10054 output_verbose_link_cmd=func_echo_all
10055 _lt_install_name='\$rpath/\$soname'
10056 if test "x$enable_darwin_at_rpath" = "xyes"; then
10057 _lt_install_name='@rpath/\$soname'
10058 fi
10059 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
10060 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10061 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}"
10062 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}"
10063
10064 else
10065 ld_shlibs=no
10066 fi
10067
10068 ;;
10069
10070 dgux*)
10071 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10072 hardcode_libdir_flag_spec='-L$libdir'
10073 hardcode_shlibpath_var=no
10074 ;;
10075
10076 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10077 # support. Future versions do this automatically, but an explicit c++rt0.o
10078 # does not break anything, and helps significantly (at the cost of a little
10079 # extra space).
10080 freebsd2.2*)
10081 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10082 hardcode_libdir_flag_spec='-R$libdir'
10083 hardcode_direct=yes
10084 hardcode_shlibpath_var=no
10085 ;;
10086
10087 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10088 freebsd2.*)
10089 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10090 hardcode_direct=yes
10091 hardcode_minus_L=yes
10092 hardcode_shlibpath_var=no
10093 ;;
10094
10095 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10096 freebsd* | dragonfly*)
10097 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10098 hardcode_libdir_flag_spec='-R$libdir'
10099 hardcode_direct=yes
10100 hardcode_shlibpath_var=no
10101 ;;
10102
10103 hpux9*)
10104 if test "$GCC" = yes; then
10105 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'
10106 else
10107 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'
10108 fi
10109 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10110 hardcode_libdir_separator=:
10111 hardcode_direct=yes
10112
10113 # hardcode_minus_L: Not really in the search PATH,
10114 # but as the default location of the library.
10115 hardcode_minus_L=yes
10116 export_dynamic_flag_spec='${wl}-E'
10117 ;;
10118
10119 hpux10*)
10120 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10121 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10122 else
10123 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10124 fi
10125 if test "$with_gnu_ld" = no; then
10126 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10127 hardcode_libdir_flag_spec_ld='+b $libdir'
10128 hardcode_libdir_separator=:
10129 hardcode_direct=yes
10130 hardcode_direct_absolute=yes
10131 export_dynamic_flag_spec='${wl}-E'
10132 # hardcode_minus_L: Not really in the search PATH,
10133 # but as the default location of the library.
10134 hardcode_minus_L=yes
10135 fi
10136 ;;
10137
10138 hpux11*)
10139 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10140 case $host_cpu in
10141 hppa*64*)
10142 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10143 ;;
10144 ia64*)
10145 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10146 ;;
10147 *)
10148 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10149 ;;
10150 esac
10151 else
10152 case $host_cpu in
10153 hppa*64*)
10154 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10155 ;;
10156 ia64*)
10157 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10158 ;;
10159 *)
10160
10161 # Older versions of the 11.00 compiler do not understand -b yet
10162 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10164 $as_echo_n "checking if $CC understands -b... " >&6; }
10165 if ${lt_cv_prog_compiler__b+:} false; then :
10166 $as_echo_n "(cached) " >&6
10167 else
10168 lt_cv_prog_compiler__b=no
10169 save_LDFLAGS="$LDFLAGS"
10170 LDFLAGS="$LDFLAGS -b"
10171 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10172 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10173 # The linker can only warn and ignore the option if not recognized
10174 # So say no if there are warnings
10175 if test -s conftest.err; then
10176 # Append any errors to the config.log.
10177 cat conftest.err 1>&5
10178 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10179 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10180 if diff conftest.exp conftest.er2 >/dev/null; then
10181 lt_cv_prog_compiler__b=yes
10182 fi
10183 else
10184 lt_cv_prog_compiler__b=yes
10185 fi
10186 fi
10187 $RM -r conftest*
10188 LDFLAGS="$save_LDFLAGS"
10189
10190 fi
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10192 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10193
10194 if test x"$lt_cv_prog_compiler__b" = xyes; then
10195 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10196 else
10197 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10198 fi
10199
10200 ;;
10201 esac
10202 fi
10203 if test "$with_gnu_ld" = no; then
10204 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10205 hardcode_libdir_separator=:
10206
10207 case $host_cpu in
10208 hppa*64*|ia64*)
10209 hardcode_direct=no
10210 hardcode_shlibpath_var=no
10211 ;;
10212 *)
10213 hardcode_direct=yes
10214 hardcode_direct_absolute=yes
10215 export_dynamic_flag_spec='${wl}-E'
10216
10217 # hardcode_minus_L: Not really in the search PATH,
10218 # but as the default location of the library.
10219 hardcode_minus_L=yes
10220 ;;
10221 esac
10222 fi
10223 ;;
10224
10225 irix5* | irix6* | nonstopux*)
10226 if test "$GCC" = yes; then
10227 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'
10228 # Try to use the -exported_symbol ld option, if it does not
10229 # work, assume that -exports_file does not work either and
10230 # implicitly export all symbols.
10231 save_LDFLAGS="$LDFLAGS"
10232 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10234 /* end confdefs.h. */
10235 int foo(void) {}
10236 _ACEOF
10237 if ac_fn_c_try_link "$LINENO"; then :
10238 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'
10239
10240 fi
10241 rm -f core conftest.err conftest.$ac_objext \
10242 conftest$ac_exeext conftest.$ac_ext
10243 LDFLAGS="$save_LDFLAGS"
10244 else
10245 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'
10246 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'
10247 fi
10248 archive_cmds_need_lc='no'
10249 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10250 hardcode_libdir_separator=:
10251 inherit_rpath=yes
10252 link_all_deplibs=yes
10253 ;;
10254
10255 netbsd*)
10256 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10257 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10258 else
10259 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10260 fi
10261 hardcode_libdir_flag_spec='-R$libdir'
10262 hardcode_direct=yes
10263 hardcode_shlibpath_var=no
10264 ;;
10265
10266 newsos6)
10267 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10268 hardcode_direct=yes
10269 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10270 hardcode_libdir_separator=:
10271 hardcode_shlibpath_var=no
10272 ;;
10273
10274 *nto* | *qnx*)
10275 ;;
10276
10277 openbsd*)
10278 if test -f /usr/libexec/ld.so; then
10279 hardcode_direct=yes
10280 hardcode_shlibpath_var=no
10281 hardcode_direct_absolute=yes
10282 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10283 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10284 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10285 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10286 export_dynamic_flag_spec='${wl}-E'
10287 else
10288 case $host_os in
10289 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10290 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10291 hardcode_libdir_flag_spec='-R$libdir'
10292 ;;
10293 *)
10294 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10295 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10296 ;;
10297 esac
10298 fi
10299 else
10300 ld_shlibs=no
10301 fi
10302 ;;
10303
10304 os2*)
10305 hardcode_libdir_flag_spec='-L$libdir'
10306 hardcode_minus_L=yes
10307 allow_undefined_flag=unsupported
10308 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'
10309 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10310 ;;
10311
10312 osf3*)
10313 if test "$GCC" = yes; then
10314 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10315 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'
10316 else
10317 allow_undefined_flag=' -expect_unresolved \*'
10318 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'
10319 fi
10320 archive_cmds_need_lc='no'
10321 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10322 hardcode_libdir_separator=:
10323 ;;
10324
10325 osf4* | osf5*) # as osf3* with the addition of -msym flag
10326 if test "$GCC" = yes; then
10327 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10328 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'
10329 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10330 else
10331 allow_undefined_flag=' -expect_unresolved \*'
10332 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'
10333 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~
10334 $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'
10335
10336 # Both c and cxx compiler support -rpath directly
10337 hardcode_libdir_flag_spec='-rpath $libdir'
10338 fi
10339 archive_cmds_need_lc='no'
10340 hardcode_libdir_separator=:
10341 ;;
10342
10343 solaris*)
10344 no_undefined_flag=' -z defs'
10345 if test "$GCC" = yes; then
10346 wlarc='${wl}'
10347 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10348 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10349 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10350 else
10351 case `$CC -V 2>&1` in
10352 *"Compilers 5.0"*)
10353 wlarc=''
10354 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10355 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10356 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10357 ;;
10358 *)
10359 wlarc='${wl}'
10360 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10361 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10362 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10363 ;;
10364 esac
10365 fi
10366 hardcode_libdir_flag_spec='-R$libdir'
10367 hardcode_shlibpath_var=no
10368 case $host_os in
10369 solaris2.[0-5] | solaris2.[0-5].*) ;;
10370 *)
10371 # The compiler driver will combine and reorder linker options,
10372 # but understands `-z linker_flag'. GCC discards it without `$wl',
10373 # but is careful enough not to reorder.
10374 # Supported since Solaris 2.6 (maybe 2.5.1?)
10375 if test "$GCC" = yes; then
10376 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10377 else
10378 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10379 fi
10380 ;;
10381 esac
10382 link_all_deplibs=yes
10383 ;;
10384
10385 sunos4*)
10386 if test "x$host_vendor" = xsequent; then
10387 # Use $CC to link under sequent, because it throws in some extra .o
10388 # files that make .init and .fini sections work.
10389 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10390 else
10391 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10392 fi
10393 hardcode_libdir_flag_spec='-L$libdir'
10394 hardcode_direct=yes
10395 hardcode_minus_L=yes
10396 hardcode_shlibpath_var=no
10397 ;;
10398
10399 sysv4)
10400 case $host_vendor in
10401 sni)
10402 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10403 hardcode_direct=yes # is this really true???
10404 ;;
10405 siemens)
10406 ## LD is ld it makes a PLAMLIB
10407 ## CC just makes a GrossModule.
10408 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10409 reload_cmds='$CC -r -o $output$reload_objs'
10410 hardcode_direct=no
10411 ;;
10412 motorola)
10413 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10414 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10415 ;;
10416 esac
10417 runpath_var='LD_RUN_PATH'
10418 hardcode_shlibpath_var=no
10419 ;;
10420
10421 sysv4.3*)
10422 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10423 hardcode_shlibpath_var=no
10424 export_dynamic_flag_spec='-Bexport'
10425 ;;
10426
10427 sysv4*MP*)
10428 if test -d /usr/nec; then
10429 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10430 hardcode_shlibpath_var=no
10431 runpath_var=LD_RUN_PATH
10432 hardcode_runpath_var=yes
10433 ld_shlibs=yes
10434 fi
10435 ;;
10436
10437 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10438 no_undefined_flag='${wl}-z,text'
10439 archive_cmds_need_lc=no
10440 hardcode_shlibpath_var=no
10441 runpath_var='LD_RUN_PATH'
10442
10443 if test "$GCC" = yes; then
10444 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10445 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10446 else
10447 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10448 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10449 fi
10450 ;;
10451
10452 sysv5* | sco3.2v5* | sco5v6*)
10453 # Note: We can NOT use -z defs as we might desire, because we do not
10454 # link with -lc, and that would cause any symbols used from libc to
10455 # always be unresolved, which means just about no library would
10456 # ever link correctly. If we're not using GNU ld we use -z text
10457 # though, which does catch some bad symbols but isn't as heavy-handed
10458 # as -z defs.
10459 no_undefined_flag='${wl}-z,text'
10460 allow_undefined_flag='${wl}-z,nodefs'
10461 archive_cmds_need_lc=no
10462 hardcode_shlibpath_var=no
10463 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10464 hardcode_libdir_separator=':'
10465 link_all_deplibs=yes
10466 export_dynamic_flag_spec='${wl}-Bexport'
10467 runpath_var='LD_RUN_PATH'
10468
10469 if test "$GCC" = yes; then
10470 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10471 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10472 else
10473 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10474 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10475 fi
10476 ;;
10477
10478 uts4*)
10479 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10480 hardcode_libdir_flag_spec='-L$libdir'
10481 hardcode_shlibpath_var=no
10482 ;;
10483
10484 *)
10485 ld_shlibs=no
10486 ;;
10487 esac
10488
10489 if test x$host_vendor = xsni; then
10490 case $host in
10491 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10492 export_dynamic_flag_spec='${wl}-Blargedynsym'
10493 ;;
10494 esac
10495 fi
10496 fi
10497
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10499 $as_echo "$ld_shlibs" >&6; }
10500 test "$ld_shlibs" = no && can_build_shared=no
10501
10502 with_gnu_ld=$with_gnu_ld
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518 #
10519 # Do we need to explicitly link libc?
10520 #
10521 case "x$archive_cmds_need_lc" in
10522 x|xyes)
10523 # Assume -lc should be added
10524 archive_cmds_need_lc=yes
10525
10526 if test "$enable_shared" = yes && test "$GCC" = yes; then
10527 case $archive_cmds in
10528 *'~'*)
10529 # FIXME: we may have to deal with multi-command sequences.
10530 ;;
10531 '$CC '*)
10532 # Test whether the compiler implicitly links with -lc since on some
10533 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10534 # to ld, don't add -lc before -lgcc.
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10536 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10537 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10538 $as_echo_n "(cached) " >&6
10539 else
10540 $RM conftest*
10541 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10542
10543 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10544 (eval $ac_compile) 2>&5
10545 ac_status=$?
10546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10547 test $ac_status = 0; } 2>conftest.err; then
10548 soname=conftest
10549 lib=conftest
10550 libobjs=conftest.$ac_objext
10551 deplibs=
10552 wl=$lt_prog_compiler_wl
10553 pic_flag=$lt_prog_compiler_pic
10554 compiler_flags=-v
10555 linker_flags=-v
10556 verstring=
10557 output_objdir=.
10558 libname=conftest
10559 lt_save_allow_undefined_flag=$allow_undefined_flag
10560 allow_undefined_flag=
10561 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10562 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10563 ac_status=$?
10564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10565 test $ac_status = 0; }
10566 then
10567 lt_cv_archive_cmds_need_lc=no
10568 else
10569 lt_cv_archive_cmds_need_lc=yes
10570 fi
10571 allow_undefined_flag=$lt_save_allow_undefined_flag
10572 else
10573 cat conftest.err 1>&5
10574 fi
10575 $RM conftest*
10576
10577 fi
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10579 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10580 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10581 ;;
10582 esac
10583 fi
10584 ;;
10585 esac
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10744 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10745
10746 if test "$GCC" = yes; then
10747 case $host_os in
10748 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10749 *) lt_awk_arg="/^libraries:/" ;;
10750 esac
10751 case $host_os in
10752 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10753 *) lt_sed_strip_eq="s,=/,/,g" ;;
10754 esac
10755 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10756 case $lt_search_path_spec in
10757 *\;*)
10758 # if the path contains ";" then we assume it to be the separator
10759 # otherwise default to the standard path separator (i.e. ":") - it is
10760 # assumed that no part of a normal pathname contains ";" but that should
10761 # okay in the real world where ";" in dirpaths is itself problematic.
10762 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10763 ;;
10764 *)
10765 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10766 ;;
10767 esac
10768 # Ok, now we have the path, separated by spaces, we can step through it
10769 # and add multilib dir if necessary.
10770 lt_tmp_lt_search_path_spec=
10771 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10772 for lt_sys_path in $lt_search_path_spec; do
10773 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10774 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10775 else
10776 test -d "$lt_sys_path" && \
10777 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10778 fi
10779 done
10780 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10781 BEGIN {RS=" "; FS="/|\n";} {
10782 lt_foo="";
10783 lt_count=0;
10784 for (lt_i = NF; lt_i > 0; lt_i--) {
10785 if ($lt_i != "" && $lt_i != ".") {
10786 if ($lt_i == "..") {
10787 lt_count++;
10788 } else {
10789 if (lt_count == 0) {
10790 lt_foo="/" $lt_i lt_foo;
10791 } else {
10792 lt_count--;
10793 }
10794 }
10795 }
10796 }
10797 if (lt_foo != "") { lt_freq[lt_foo]++; }
10798 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10799 }'`
10800 # AWK program above erroneously prepends '/' to C:/dos/paths
10801 # for these hosts.
10802 case $host_os in
10803 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10804 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10805 esac
10806 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10807 else
10808 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10809 fi
10810 library_names_spec=
10811 libname_spec='lib$name'
10812 soname_spec=
10813 shrext_cmds=".so"
10814 postinstall_cmds=
10815 postuninstall_cmds=
10816 finish_cmds=
10817 finish_eval=
10818 shlibpath_var=
10819 shlibpath_overrides_runpath=unknown
10820 version_type=none
10821 dynamic_linker="$host_os ld.so"
10822 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10823 need_lib_prefix=unknown
10824 hardcode_into_libs=no
10825
10826 # when you set need_version to no, make sure it does not cause -set_version
10827 # flags to be left without arguments
10828 need_version=unknown
10829
10830 case $host_os in
10831 aix3*)
10832 version_type=linux
10833 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10834 shlibpath_var=LIBPATH
10835
10836 # AIX 3 has no versioning support, so we append a major version to the name.
10837 soname_spec='${libname}${release}${shared_ext}$major'
10838 ;;
10839
10840 aix[4-9]*)
10841 version_type=linux
10842 need_lib_prefix=no
10843 need_version=no
10844 hardcode_into_libs=yes
10845 if test "$host_cpu" = ia64; then
10846 # AIX 5 supports IA64
10847 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10848 shlibpath_var=LD_LIBRARY_PATH
10849 else
10850 # With GCC up to 2.95.x, collect2 would create an import file
10851 # for dependence libraries. The import file would start with
10852 # the line `#! .'. This would cause the generated library to
10853 # depend on `.', always an invalid library. This was fixed in
10854 # development snapshots of GCC prior to 3.0.
10855 case $host_os in
10856 aix4 | aix4.[01] | aix4.[01].*)
10857 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10858 echo ' yes '
10859 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10860 :
10861 else
10862 can_build_shared=no
10863 fi
10864 ;;
10865 esac
10866 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10867 # soname into executable. Probably we can add versioning support to
10868 # collect2, so additional links can be useful in future.
10869 if test "$aix_use_runtimelinking" = yes; then
10870 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10871 # instead of lib<name>.a to let people know that these are not
10872 # typical AIX shared libraries.
10873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10874 else
10875 # We preserve .a as extension for shared libraries through AIX4.2
10876 # and later when we are not doing run time linking.
10877 library_names_spec='${libname}${release}.a $libname.a'
10878 soname_spec='${libname}${release}${shared_ext}$major'
10879 fi
10880 shlibpath_var=LIBPATH
10881 fi
10882 ;;
10883
10884 amigaos*)
10885 case $host_cpu in
10886 powerpc)
10887 # Since July 2007 AmigaOS4 officially supports .so libraries.
10888 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10890 ;;
10891 m68k)
10892 library_names_spec='$libname.ixlibrary $libname.a'
10893 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10894 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'
10895 ;;
10896 esac
10897 ;;
10898
10899 beos*)
10900 library_names_spec='${libname}${shared_ext}'
10901 dynamic_linker="$host_os ld.so"
10902 shlibpath_var=LIBRARY_PATH
10903 ;;
10904
10905 bsdi[45]*)
10906 version_type=linux
10907 need_version=no
10908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10909 soname_spec='${libname}${release}${shared_ext}$major'
10910 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10911 shlibpath_var=LD_LIBRARY_PATH
10912 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10913 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10914 # the default ld.so.conf also contains /usr/contrib/lib and
10915 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10916 # libtool to hard-code these into programs
10917 ;;
10918
10919 cygwin* | mingw* | pw32* | cegcc*)
10920 version_type=windows
10921 shrext_cmds=".dll"
10922 need_version=no
10923 need_lib_prefix=no
10924
10925 case $GCC,$host_os in
10926 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10927 library_names_spec='$libname.dll.a'
10928 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10929 postinstall_cmds='base_file=`basename \${file}`~
10930 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10931 dldir=$destdir/`dirname \$dlpath`~
10932 test -d \$dldir || mkdir -p \$dldir~
10933 $install_prog $dir/$dlname \$dldir/$dlname~
10934 chmod a+x \$dldir/$dlname~
10935 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10936 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10937 fi'
10938 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10939 dlpath=$dir/\$dldll~
10940 $RM \$dlpath'
10941 shlibpath_overrides_runpath=yes
10942
10943 case $host_os in
10944 cygwin*)
10945 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10946 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10947
10948 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10949 ;;
10950 mingw* | cegcc*)
10951 # MinGW DLLs use traditional 'lib' prefix
10952 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10953 ;;
10954 pw32*)
10955 # pw32 DLLs use 'pw' prefix rather than 'lib'
10956 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10957 ;;
10958 esac
10959 ;;
10960
10961 *)
10962 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10963 ;;
10964 esac
10965 dynamic_linker='Win32 ld.exe'
10966 # FIXME: first we should search . and the directory the executable is in
10967 shlibpath_var=PATH
10968 ;;
10969
10970 darwin* | rhapsody*)
10971 dynamic_linker="$host_os dyld"
10972 version_type=darwin
10973 need_lib_prefix=no
10974 need_version=no
10975 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10976 soname_spec='${libname}${release}${major}$shared_ext'
10977 shlibpath_overrides_runpath=yes
10978 shlibpath_var=DYLD_LIBRARY_PATH
10979 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10980
10981 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10982 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10983 ;;
10984
10985 dgux*)
10986 version_type=linux
10987 need_lib_prefix=no
10988 need_version=no
10989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10990 soname_spec='${libname}${release}${shared_ext}$major'
10991 shlibpath_var=LD_LIBRARY_PATH
10992 ;;
10993
10994 freebsd* | dragonfly*)
10995 # DragonFly does not have aout. When/if they implement a new
10996 # versioning mechanism, adjust this.
10997 if test -x /usr/bin/objformat; then
10998 objformat=`/usr/bin/objformat`
10999 else
11000 case $host_os in
11001 freebsd[23].*) objformat=aout ;;
11002 *) objformat=elf ;;
11003 esac
11004 fi
11005 version_type=freebsd-$objformat
11006 case $version_type in
11007 freebsd-elf*)
11008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11009 need_version=no
11010 need_lib_prefix=no
11011 ;;
11012 freebsd-*)
11013 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11014 need_version=yes
11015 ;;
11016 esac
11017 shlibpath_var=LD_LIBRARY_PATH
11018 case $host_os in
11019 freebsd2.*)
11020 shlibpath_overrides_runpath=yes
11021 ;;
11022 freebsd3.[01]* | freebsdelf3.[01]*)
11023 shlibpath_overrides_runpath=yes
11024 hardcode_into_libs=yes
11025 ;;
11026 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11027 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11028 shlibpath_overrides_runpath=no
11029 hardcode_into_libs=yes
11030 ;;
11031 *) # from 4.6 on, and DragonFly
11032 shlibpath_overrides_runpath=yes
11033 hardcode_into_libs=yes
11034 ;;
11035 esac
11036 ;;
11037
11038 haiku*)
11039 version_type=linux
11040 need_lib_prefix=no
11041 need_version=no
11042 dynamic_linker="$host_os runtime_loader"
11043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11044 soname_spec='${libname}${release}${shared_ext}$major'
11045 shlibpath_var=LIBRARY_PATH
11046 shlibpath_overrides_runpath=yes
11047 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11048 hardcode_into_libs=yes
11049 ;;
11050
11051 hpux9* | hpux10* | hpux11*)
11052 # Give a soname corresponding to the major version so that dld.sl refuses to
11053 # link against other versions.
11054 version_type=sunos
11055 need_lib_prefix=no
11056 need_version=no
11057 case $host_cpu in
11058 ia64*)
11059 shrext_cmds='.so'
11060 hardcode_into_libs=yes
11061 dynamic_linker="$host_os dld.so"
11062 shlibpath_var=LD_LIBRARY_PATH
11063 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11065 soname_spec='${libname}${release}${shared_ext}$major'
11066 if test "X$HPUX_IA64_MODE" = X32; then
11067 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11068 else
11069 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11070 fi
11071 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11072 ;;
11073 hppa*64*)
11074 shrext_cmds='.sl'
11075 hardcode_into_libs=yes
11076 dynamic_linker="$host_os dld.sl"
11077 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11078 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11080 soname_spec='${libname}${release}${shared_ext}$major'
11081 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11082 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11083 ;;
11084 *)
11085 shrext_cmds='.sl'
11086 dynamic_linker="$host_os dld.sl"
11087 shlibpath_var=SHLIB_PATH
11088 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11090 soname_spec='${libname}${release}${shared_ext}$major'
11091 ;;
11092 esac
11093 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11094 postinstall_cmds='chmod 555 $lib'
11095 # or fails outright, so override atomically:
11096 install_override_mode=555
11097 ;;
11098
11099 interix[3-9]*)
11100 version_type=linux
11101 need_lib_prefix=no
11102 need_version=no
11103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11104 soname_spec='${libname}${release}${shared_ext}$major'
11105 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11106 shlibpath_var=LD_LIBRARY_PATH
11107 shlibpath_overrides_runpath=no
11108 hardcode_into_libs=yes
11109 ;;
11110
11111 irix5* | irix6* | nonstopux*)
11112 case $host_os in
11113 nonstopux*) version_type=nonstopux ;;
11114 *)
11115 if test "$lt_cv_prog_gnu_ld" = yes; then
11116 version_type=linux
11117 else
11118 version_type=irix
11119 fi ;;
11120 esac
11121 need_lib_prefix=no
11122 need_version=no
11123 soname_spec='${libname}${release}${shared_ext}$major'
11124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11125 case $host_os in
11126 irix5* | nonstopux*)
11127 libsuff= shlibsuff=
11128 ;;
11129 *)
11130 case $LD in # libtool.m4 will add one of these switches to LD
11131 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11132 libsuff= shlibsuff= libmagic=32-bit;;
11133 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11134 libsuff=32 shlibsuff=N32 libmagic=N32;;
11135 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11136 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11137 *) libsuff= shlibsuff= libmagic=never-match;;
11138 esac
11139 ;;
11140 esac
11141 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11142 shlibpath_overrides_runpath=no
11143 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11144 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11145 hardcode_into_libs=yes
11146 ;;
11147
11148 # No shared lib support for Linux oldld, aout, or coff.
11149 linux*oldld* | linux*aout* | linux*coff*)
11150 dynamic_linker=no
11151 ;;
11152
11153 # This must be Linux ELF.
11154
11155 # uclinux* changes (here and below) have been submitted to the libtool
11156 # project, but have not yet been accepted: they are GCC-local changes
11157 # for the time being. (See
11158 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
11159 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
11160 version_type=linux
11161 need_lib_prefix=no
11162 need_version=no
11163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11164 soname_spec='${libname}${release}${shared_ext}$major'
11165 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11166 shlibpath_var=LD_LIBRARY_PATH
11167 shlibpath_overrides_runpath=no
11168
11169 # Some binutils ld are patched to set DT_RUNPATH
11170 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11171 $as_echo_n "(cached) " >&6
11172 else
11173 lt_cv_shlibpath_overrides_runpath=no
11174 save_LDFLAGS=$LDFLAGS
11175 save_libdir=$libdir
11176 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11177 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11179 /* end confdefs.h. */
11180
11181 int
11182 main ()
11183 {
11184
11185 ;
11186 return 0;
11187 }
11188 _ACEOF
11189 if ac_fn_c_try_link "$LINENO"; then :
11190 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11191 lt_cv_shlibpath_overrides_runpath=yes
11192 fi
11193 fi
11194 rm -f core conftest.err conftest.$ac_objext \
11195 conftest$ac_exeext conftest.$ac_ext
11196 LDFLAGS=$save_LDFLAGS
11197 libdir=$save_libdir
11198
11199 fi
11200
11201 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11202
11203 # This implies no fast_install, which is unacceptable.
11204 # Some rework will be needed to allow for fast_install
11205 # before this can be enabled.
11206 hardcode_into_libs=yes
11207
11208 # Append ld.so.conf contents to the search path
11209 if test -f /etc/ld.so.conf; then
11210 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' ' '`
11211 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11212 fi
11213
11214 # We used to test for /lib/ld.so.1 and disable shared libraries on
11215 # powerpc, because MkLinux only supported shared libraries with the
11216 # GNU dynamic linker. Since this was broken with cross compilers,
11217 # most powerpc-linux boxes support dynamic linking these days and
11218 # people can always --disable-shared, the test was removed, and we
11219 # assume the GNU/Linux dynamic linker is in use.
11220 dynamic_linker='GNU/Linux ld.so'
11221 ;;
11222
11223 netbsd*)
11224 version_type=sunos
11225 need_lib_prefix=no
11226 need_version=no
11227 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11229 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11230 dynamic_linker='NetBSD (a.out) ld.so'
11231 else
11232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11233 soname_spec='${libname}${release}${shared_ext}$major'
11234 dynamic_linker='NetBSD ld.elf_so'
11235 fi
11236 shlibpath_var=LD_LIBRARY_PATH
11237 shlibpath_overrides_runpath=yes
11238 hardcode_into_libs=yes
11239 ;;
11240
11241 newsos6)
11242 version_type=linux
11243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11244 shlibpath_var=LD_LIBRARY_PATH
11245 shlibpath_overrides_runpath=yes
11246 ;;
11247
11248 *nto* | *qnx*)
11249 version_type=qnx
11250 need_lib_prefix=no
11251 need_version=no
11252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11253 soname_spec='${libname}${release}${shared_ext}$major'
11254 shlibpath_var=LD_LIBRARY_PATH
11255 shlibpath_overrides_runpath=no
11256 hardcode_into_libs=yes
11257 dynamic_linker='ldqnx.so'
11258 ;;
11259
11260 openbsd*)
11261 version_type=sunos
11262 sys_lib_dlsearch_path_spec="/usr/lib"
11263 need_lib_prefix=no
11264 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11265 case $host_os in
11266 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11267 *) need_version=no ;;
11268 esac
11269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11270 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11271 shlibpath_var=LD_LIBRARY_PATH
11272 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11273 case $host_os in
11274 openbsd2.[89] | openbsd2.[89].*)
11275 shlibpath_overrides_runpath=no
11276 ;;
11277 *)
11278 shlibpath_overrides_runpath=yes
11279 ;;
11280 esac
11281 else
11282 shlibpath_overrides_runpath=yes
11283 fi
11284 ;;
11285
11286 os2*)
11287 libname_spec='$name'
11288 shrext_cmds=".dll"
11289 need_lib_prefix=no
11290 library_names_spec='$libname${shared_ext} $libname.a'
11291 dynamic_linker='OS/2 ld.exe'
11292 shlibpath_var=LIBPATH
11293 ;;
11294
11295 osf3* | osf4* | osf5*)
11296 version_type=osf
11297 need_lib_prefix=no
11298 need_version=no
11299 soname_spec='${libname}${release}${shared_ext}$major'
11300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11301 shlibpath_var=LD_LIBRARY_PATH
11302 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11303 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11304 ;;
11305
11306 rdos*)
11307 dynamic_linker=no
11308 ;;
11309
11310 solaris*)
11311 version_type=linux
11312 need_lib_prefix=no
11313 need_version=no
11314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11315 soname_spec='${libname}${release}${shared_ext}$major'
11316 shlibpath_var=LD_LIBRARY_PATH
11317 shlibpath_overrides_runpath=yes
11318 hardcode_into_libs=yes
11319 # ldd complains unless libraries are executable
11320 postinstall_cmds='chmod +x $lib'
11321 ;;
11322
11323 sunos4*)
11324 version_type=sunos
11325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11326 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11327 shlibpath_var=LD_LIBRARY_PATH
11328 shlibpath_overrides_runpath=yes
11329 if test "$with_gnu_ld" = yes; then
11330 need_lib_prefix=no
11331 fi
11332 need_version=yes
11333 ;;
11334
11335 sysv4 | sysv4.3*)
11336 version_type=linux
11337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11338 soname_spec='${libname}${release}${shared_ext}$major'
11339 shlibpath_var=LD_LIBRARY_PATH
11340 case $host_vendor in
11341 sni)
11342 shlibpath_overrides_runpath=no
11343 need_lib_prefix=no
11344 runpath_var=LD_RUN_PATH
11345 ;;
11346 siemens)
11347 need_lib_prefix=no
11348 ;;
11349 motorola)
11350 need_lib_prefix=no
11351 need_version=no
11352 shlibpath_overrides_runpath=no
11353 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11354 ;;
11355 esac
11356 ;;
11357
11358 sysv4*MP*)
11359 if test -d /usr/nec ;then
11360 version_type=linux
11361 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11362 soname_spec='$libname${shared_ext}.$major'
11363 shlibpath_var=LD_LIBRARY_PATH
11364 fi
11365 ;;
11366
11367 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11368 version_type=freebsd-elf
11369 need_lib_prefix=no
11370 need_version=no
11371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11372 soname_spec='${libname}${release}${shared_ext}$major'
11373 shlibpath_var=LD_LIBRARY_PATH
11374 shlibpath_overrides_runpath=yes
11375 hardcode_into_libs=yes
11376 if test "$with_gnu_ld" = yes; then
11377 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11378 else
11379 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11380 case $host_os in
11381 sco3.2v5*)
11382 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11383 ;;
11384 esac
11385 fi
11386 sys_lib_dlsearch_path_spec='/usr/lib'
11387 ;;
11388
11389 tpf*)
11390 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11391 version_type=linux
11392 need_lib_prefix=no
11393 need_version=no
11394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11395 shlibpath_var=LD_LIBRARY_PATH
11396 shlibpath_overrides_runpath=no
11397 hardcode_into_libs=yes
11398 ;;
11399
11400 uts4*)
11401 version_type=linux
11402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11403 soname_spec='${libname}${release}${shared_ext}$major'
11404 shlibpath_var=LD_LIBRARY_PATH
11405 ;;
11406
11407 # Shared libraries for VwWorks, >= 7 only at this stage
11408 # and (fpic) still incompatible with "large" code models
11409 # in a few configurations. Only for RTP mode in any case,
11410 # and upon explicit request at configure time.
11411 vxworks7*)
11412 dynamic_linker=no
11413 case ${with_multisubdir}-${enable_shared} in
11414 *large*)
11415 ;;
11416 *mrtp*-yes)
11417 version_type=linux
11418 need_lib_prefix=no
11419 need_version=no
11420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11421 soname_spec='${libname}${release}${shared_ext}$major'
11422 dynamic_linker="$host_os module_loader"
11423 ;;
11424 esac
11425 ;;
11426 *)
11427 dynamic_linker=no
11428 ;;
11429 esac
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11431 $as_echo "$dynamic_linker" >&6; }
11432 test "$dynamic_linker" = no && can_build_shared=no
11433
11434 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11435 if test "$GCC" = yes; then
11436 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11437 fi
11438
11439 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11440 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11441 fi
11442 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11443 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11444 fi
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11538 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11539 hardcode_action=
11540 if test -n "$hardcode_libdir_flag_spec" ||
11541 test -n "$runpath_var" ||
11542 test "X$hardcode_automatic" = "Xyes" ; then
11543
11544 # We can hardcode non-existent directories.
11545 if test "$hardcode_direct" != no &&
11546 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11547 # have to relink, otherwise we might link with an installed library
11548 # when we should be linking with a yet-to-be-installed one
11549 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11550 test "$hardcode_minus_L" != no; then
11551 # Linking always hardcodes the temporary library directory.
11552 hardcode_action=relink
11553 else
11554 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11555 hardcode_action=immediate
11556 fi
11557 else
11558 # We cannot hardcode anything, or else we can only hardcode existing
11559 # directories.
11560 hardcode_action=unsupported
11561 fi
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11563 $as_echo "$hardcode_action" >&6; }
11564
11565 if test "$hardcode_action" = relink ||
11566 test "$inherit_rpath" = yes; then
11567 # Fast installation is not supported
11568 enable_fast_install=no
11569 elif test "$shlibpath_overrides_runpath" = yes ||
11570 test "$enable_shared" = no; then
11571 # Fast installation is not necessary
11572 enable_fast_install=needless
11573 fi
11574
11575
11576
11577
11578
11579
11580 if test "x$enable_dlopen" != xyes; then
11581 enable_dlopen=unknown
11582 enable_dlopen_self=unknown
11583 enable_dlopen_self_static=unknown
11584 else
11585 lt_cv_dlopen=no
11586 lt_cv_dlopen_libs=
11587
11588 case $host_os in
11589 beos*)
11590 lt_cv_dlopen="load_add_on"
11591 lt_cv_dlopen_libs=
11592 lt_cv_dlopen_self=yes
11593 ;;
11594
11595 mingw* | pw32* | cegcc*)
11596 lt_cv_dlopen="LoadLibrary"
11597 lt_cv_dlopen_libs=
11598 ;;
11599
11600 cygwin*)
11601 lt_cv_dlopen="dlopen"
11602 lt_cv_dlopen_libs=
11603 ;;
11604
11605 darwin*)
11606 # if libdl is installed we need to link against it
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11608 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11609 if ${ac_cv_lib_dl_dlopen+:} false; then :
11610 $as_echo_n "(cached) " >&6
11611 else
11612 ac_check_lib_save_LIBS=$LIBS
11613 LIBS="-ldl $LIBS"
11614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11615 /* end confdefs.h. */
11616
11617 /* Override any GCC internal prototype to avoid an error.
11618 Use char because int might match the return type of a GCC
11619 builtin and then its argument prototype would still apply. */
11620 #ifdef __cplusplus
11621 extern "C"
11622 #endif
11623 char dlopen ();
11624 int
11625 main ()
11626 {
11627 return dlopen ();
11628 ;
11629 return 0;
11630 }
11631 _ACEOF
11632 if ac_fn_c_try_link "$LINENO"; then :
11633 ac_cv_lib_dl_dlopen=yes
11634 else
11635 ac_cv_lib_dl_dlopen=no
11636 fi
11637 rm -f core conftest.err conftest.$ac_objext \
11638 conftest$ac_exeext conftest.$ac_ext
11639 LIBS=$ac_check_lib_save_LIBS
11640 fi
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11642 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11643 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11644 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11645 else
11646
11647 lt_cv_dlopen="dyld"
11648 lt_cv_dlopen_libs=
11649 lt_cv_dlopen_self=yes
11650
11651 fi
11652
11653 ;;
11654
11655 *)
11656 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11657 if test "x$ac_cv_func_shl_load" = xyes; then :
11658 lt_cv_dlopen="shl_load"
11659 else
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11661 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11662 if ${ac_cv_lib_dld_shl_load+:} false; then :
11663 $as_echo_n "(cached) " >&6
11664 else
11665 ac_check_lib_save_LIBS=$LIBS
11666 LIBS="-ldld $LIBS"
11667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11668 /* end confdefs.h. */
11669
11670 /* Override any GCC internal prototype to avoid an error.
11671 Use char because int might match the return type of a GCC
11672 builtin and then its argument prototype would still apply. */
11673 #ifdef __cplusplus
11674 extern "C"
11675 #endif
11676 char shl_load ();
11677 int
11678 main ()
11679 {
11680 return shl_load ();
11681 ;
11682 return 0;
11683 }
11684 _ACEOF
11685 if ac_fn_c_try_link "$LINENO"; then :
11686 ac_cv_lib_dld_shl_load=yes
11687 else
11688 ac_cv_lib_dld_shl_load=no
11689 fi
11690 rm -f core conftest.err conftest.$ac_objext \
11691 conftest$ac_exeext conftest.$ac_ext
11692 LIBS=$ac_check_lib_save_LIBS
11693 fi
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11695 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11696 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11697 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11698 else
11699 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11700 if test "x$ac_cv_func_dlopen" = xyes; then :
11701 lt_cv_dlopen="dlopen"
11702 else
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11704 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11705 if ${ac_cv_lib_dl_dlopen+:} false; then :
11706 $as_echo_n "(cached) " >&6
11707 else
11708 ac_check_lib_save_LIBS=$LIBS
11709 LIBS="-ldl $LIBS"
11710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11711 /* end confdefs.h. */
11712
11713 /* Override any GCC internal prototype to avoid an error.
11714 Use char because int might match the return type of a GCC
11715 builtin and then its argument prototype would still apply. */
11716 #ifdef __cplusplus
11717 extern "C"
11718 #endif
11719 char dlopen ();
11720 int
11721 main ()
11722 {
11723 return dlopen ();
11724 ;
11725 return 0;
11726 }
11727 _ACEOF
11728 if ac_fn_c_try_link "$LINENO"; then :
11729 ac_cv_lib_dl_dlopen=yes
11730 else
11731 ac_cv_lib_dl_dlopen=no
11732 fi
11733 rm -f core conftest.err conftest.$ac_objext \
11734 conftest$ac_exeext conftest.$ac_ext
11735 LIBS=$ac_check_lib_save_LIBS
11736 fi
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11738 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11739 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11740 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11741 else
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11743 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11744 if ${ac_cv_lib_svld_dlopen+:} false; then :
11745 $as_echo_n "(cached) " >&6
11746 else
11747 ac_check_lib_save_LIBS=$LIBS
11748 LIBS="-lsvld $LIBS"
11749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11750 /* end confdefs.h. */
11751
11752 /* Override any GCC internal prototype to avoid an error.
11753 Use char because int might match the return type of a GCC
11754 builtin and then its argument prototype would still apply. */
11755 #ifdef __cplusplus
11756 extern "C"
11757 #endif
11758 char dlopen ();
11759 int
11760 main ()
11761 {
11762 return dlopen ();
11763 ;
11764 return 0;
11765 }
11766 _ACEOF
11767 if ac_fn_c_try_link "$LINENO"; then :
11768 ac_cv_lib_svld_dlopen=yes
11769 else
11770 ac_cv_lib_svld_dlopen=no
11771 fi
11772 rm -f core conftest.err conftest.$ac_objext \
11773 conftest$ac_exeext conftest.$ac_ext
11774 LIBS=$ac_check_lib_save_LIBS
11775 fi
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11777 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11778 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11779 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11780 else
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11782 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11783 if ${ac_cv_lib_dld_dld_link+:} false; then :
11784 $as_echo_n "(cached) " >&6
11785 else
11786 ac_check_lib_save_LIBS=$LIBS
11787 LIBS="-ldld $LIBS"
11788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11789 /* end confdefs.h. */
11790
11791 /* Override any GCC internal prototype to avoid an error.
11792 Use char because int might match the return type of a GCC
11793 builtin and then its argument prototype would still apply. */
11794 #ifdef __cplusplus
11795 extern "C"
11796 #endif
11797 char dld_link ();
11798 int
11799 main ()
11800 {
11801 return dld_link ();
11802 ;
11803 return 0;
11804 }
11805 _ACEOF
11806 if ac_fn_c_try_link "$LINENO"; then :
11807 ac_cv_lib_dld_dld_link=yes
11808 else
11809 ac_cv_lib_dld_dld_link=no
11810 fi
11811 rm -f core conftest.err conftest.$ac_objext \
11812 conftest$ac_exeext conftest.$ac_ext
11813 LIBS=$ac_check_lib_save_LIBS
11814 fi
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11816 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11817 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11818 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11819 fi
11820
11821
11822 fi
11823
11824
11825 fi
11826
11827
11828 fi
11829
11830
11831 fi
11832
11833
11834 fi
11835
11836 ;;
11837 esac
11838
11839 if test "x$lt_cv_dlopen" != xno; then
11840 enable_dlopen=yes
11841 else
11842 enable_dlopen=no
11843 fi
11844
11845 case $lt_cv_dlopen in
11846 dlopen)
11847 save_CPPFLAGS="$CPPFLAGS"
11848 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11849
11850 save_LDFLAGS="$LDFLAGS"
11851 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11852
11853 save_LIBS="$LIBS"
11854 LIBS="$lt_cv_dlopen_libs $LIBS"
11855
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11857 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11858 if ${lt_cv_dlopen_self+:} false; then :
11859 $as_echo_n "(cached) " >&6
11860 else
11861 if test "$cross_compiling" = yes; then :
11862 lt_cv_dlopen_self=cross
11863 else
11864 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11865 lt_status=$lt_dlunknown
11866 cat > conftest.$ac_ext <<_LT_EOF
11867 #line 11867 "configure"
11868 #include "confdefs.h"
11869
11870 #if HAVE_DLFCN_H
11871 #include <dlfcn.h>
11872 #endif
11873
11874 #include <stdio.h>
11875
11876 #ifdef RTLD_GLOBAL
11877 # define LT_DLGLOBAL RTLD_GLOBAL
11878 #else
11879 # ifdef DL_GLOBAL
11880 # define LT_DLGLOBAL DL_GLOBAL
11881 # else
11882 # define LT_DLGLOBAL 0
11883 # endif
11884 #endif
11885
11886 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11887 find out it does not work in some platform. */
11888 #ifndef LT_DLLAZY_OR_NOW
11889 # ifdef RTLD_LAZY
11890 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11891 # else
11892 # ifdef DL_LAZY
11893 # define LT_DLLAZY_OR_NOW DL_LAZY
11894 # else
11895 # ifdef RTLD_NOW
11896 # define LT_DLLAZY_OR_NOW RTLD_NOW
11897 # else
11898 # ifdef DL_NOW
11899 # define LT_DLLAZY_OR_NOW DL_NOW
11900 # else
11901 # define LT_DLLAZY_OR_NOW 0
11902 # endif
11903 # endif
11904 # endif
11905 # endif
11906 #endif
11907
11908 /* When -fvisbility=hidden is used, assume the code has been annotated
11909 correspondingly for the symbols needed. */
11910 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11911 void fnord () __attribute__((visibility("default")));
11912 #endif
11913
11914 void fnord () { int i=42; }
11915 int main ()
11916 {
11917 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11918 int status = $lt_dlunknown;
11919
11920 if (self)
11921 {
11922 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11923 else
11924 {
11925 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11926 else puts (dlerror ());
11927 }
11928 /* dlclose (self); */
11929 }
11930 else
11931 puts (dlerror ());
11932
11933 return status;
11934 }
11935 _LT_EOF
11936 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11937 (eval $ac_link) 2>&5
11938 ac_status=$?
11939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11940 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11941 (./conftest; exit; ) >&5 2>/dev/null
11942 lt_status=$?
11943 case x$lt_status in
11944 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11945 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11946 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11947 esac
11948 else :
11949 # compilation failed
11950 lt_cv_dlopen_self=no
11951 fi
11952 fi
11953 rm -fr conftest*
11954
11955
11956 fi
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11958 $as_echo "$lt_cv_dlopen_self" >&6; }
11959
11960 if test "x$lt_cv_dlopen_self" = xyes; then
11961 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11963 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11964 if ${lt_cv_dlopen_self_static+:} false; then :
11965 $as_echo_n "(cached) " >&6
11966 else
11967 if test "$cross_compiling" = yes; then :
11968 lt_cv_dlopen_self_static=cross
11969 else
11970 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11971 lt_status=$lt_dlunknown
11972 cat > conftest.$ac_ext <<_LT_EOF
11973 #line 11973 "configure"
11974 #include "confdefs.h"
11975
11976 #if HAVE_DLFCN_H
11977 #include <dlfcn.h>
11978 #endif
11979
11980 #include <stdio.h>
11981
11982 #ifdef RTLD_GLOBAL
11983 # define LT_DLGLOBAL RTLD_GLOBAL
11984 #else
11985 # ifdef DL_GLOBAL
11986 # define LT_DLGLOBAL DL_GLOBAL
11987 # else
11988 # define LT_DLGLOBAL 0
11989 # endif
11990 #endif
11991
11992 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11993 find out it does not work in some platform. */
11994 #ifndef LT_DLLAZY_OR_NOW
11995 # ifdef RTLD_LAZY
11996 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11997 # else
11998 # ifdef DL_LAZY
11999 # define LT_DLLAZY_OR_NOW DL_LAZY
12000 # else
12001 # ifdef RTLD_NOW
12002 # define LT_DLLAZY_OR_NOW RTLD_NOW
12003 # else
12004 # ifdef DL_NOW
12005 # define LT_DLLAZY_OR_NOW DL_NOW
12006 # else
12007 # define LT_DLLAZY_OR_NOW 0
12008 # endif
12009 # endif
12010 # endif
12011 # endif
12012 #endif
12013
12014 /* When -fvisbility=hidden is used, assume the code has been annotated
12015 correspondingly for the symbols needed. */
12016 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12017 void fnord () __attribute__((visibility("default")));
12018 #endif
12019
12020 void fnord () { int i=42; }
12021 int main ()
12022 {
12023 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12024 int status = $lt_dlunknown;
12025
12026 if (self)
12027 {
12028 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12029 else
12030 {
12031 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12032 else puts (dlerror ());
12033 }
12034 /* dlclose (self); */
12035 }
12036 else
12037 puts (dlerror ());
12038
12039 return status;
12040 }
12041 _LT_EOF
12042 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12043 (eval $ac_link) 2>&5
12044 ac_status=$?
12045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12046 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12047 (./conftest; exit; ) >&5 2>/dev/null
12048 lt_status=$?
12049 case x$lt_status in
12050 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12051 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12052 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12053 esac
12054 else :
12055 # compilation failed
12056 lt_cv_dlopen_self_static=no
12057 fi
12058 fi
12059 rm -fr conftest*
12060
12061
12062 fi
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12064 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12065 fi
12066
12067 CPPFLAGS="$save_CPPFLAGS"
12068 LDFLAGS="$save_LDFLAGS"
12069 LIBS="$save_LIBS"
12070 ;;
12071 esac
12072
12073 case $lt_cv_dlopen_self in
12074 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12075 *) enable_dlopen_self=unknown ;;
12076 esac
12077
12078 case $lt_cv_dlopen_self_static in
12079 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12080 *) enable_dlopen_self_static=unknown ;;
12081 esac
12082 fi
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100 striplib=
12101 old_striplib=
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12103 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12104 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12105 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12106 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12108 $as_echo "yes" >&6; }
12109 else
12110 # FIXME - insert some real tests, host_os isn't really good enough
12111 case $host_os in
12112 darwin*)
12113 if test -n "$STRIP" ; then
12114 striplib="$STRIP -x"
12115 old_striplib="$STRIP -S"
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12117 $as_echo "yes" >&6; }
12118 else
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12120 $as_echo "no" >&6; }
12121 fi
12122 ;;
12123 *)
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12125 $as_echo "no" >&6; }
12126 ;;
12127 esac
12128 fi
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141 # Report which library types will actually be built
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12143 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12145 $as_echo "$can_build_shared" >&6; }
12146
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12148 $as_echo_n "checking whether to build shared libraries... " >&6; }
12149 test "$can_build_shared" = "no" && enable_shared=no
12150
12151 # On AIX, shared libraries and static libraries use the same namespace, and
12152 # are all built from PIC.
12153 case $host_os in
12154 aix3*)
12155 test "$enable_shared" = yes && enable_static=no
12156 if test -n "$RANLIB"; then
12157 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12158 postinstall_cmds='$RANLIB $lib'
12159 fi
12160 ;;
12161
12162 aix[4-9]*)
12163 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12164 test "$enable_shared" = yes && enable_static=no
12165 fi
12166 ;;
12167 esac
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12169 $as_echo "$enable_shared" >&6; }
12170
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12172 $as_echo_n "checking whether to build static libraries... " >&6; }
12173 # Make sure either enable_shared or enable_static is yes.
12174 test "$enable_shared" = yes || enable_static=yes
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12176 $as_echo "$enable_static" >&6; }
12177
12178
12179
12180
12181 fi
12182 ac_ext=c
12183 ac_cpp='$CPP $CPPFLAGS'
12184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12187
12188 CC="$lt_save_CC"
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202 ac_config_commands="$ac_config_commands libtool"
12203
12204
12205
12206
12207 # Only expand once:
12208
12209
12210
12211
12212
12213 gdc_save_DFLAGS=$GDCFLAGS
12214 GDCFLAGS="-fno-druntime -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
12215
12216
12217 # Source file extension for D test sources.
12218 ac_ext=d
12219
12220 # Object file extension for compiled D test sources.
12221 objext=o
12222 objext_D=$objext
12223
12224 # Code to be used in simple compile tests
12225 lt_simple_compile_test_code="\
12226 module object;
12227 shared int some_variable = 0;
12228 "
12229
12230 # Code to be used in simple link tests
12231 lt_simple_link_test_code="\
12232 module object;
12233 extern(C) int main() { return 0; }
12234 "
12235
12236 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12237
12238
12239
12240
12241
12242
12243 # If no C compiler was specified, use CC.
12244 LTCC=${LTCC-"$CC"}
12245
12246 # If no C compiler flags were specified, use CFLAGS.
12247 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12248
12249 # Allow CC to be a program name with arguments.
12250 compiler=$CC
12251
12252
12253 # save warnings/boilerplate of simple test code
12254 ac_outfile=conftest.$ac_objext
12255 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12256 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12257 _lt_compiler_boilerplate=`cat conftest.err`
12258 $RM conftest*
12259
12260 ac_outfile=conftest.$ac_objext
12261 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12262 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12263 _lt_linker_boilerplate=`cat conftest.err`
12264 $RM -r conftest*
12265
12266
12267 # Allow CC to be a program name with arguments.
12268 lt_save_CC=$CC
12269 lt_save_CFLAGS=$CFLAGS
12270 lt_save_GCC=$GCC
12271 GCC=yes
12272 CC=${GDC-"gdc"}
12273 CFLAGS=$GDCFLAGS
12274 compiler=$CC
12275 compiler_D=$CC
12276 LD_D=$CC
12277 for cc_temp in $compiler""; do
12278 case $cc_temp in
12279 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12280 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12281 \-*) ;;
12282 *) break;;
12283 esac
12284 done
12285 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12286
12287
12288 # GDC did not exist at the time GCC didn't implicitly link libc in.
12289 archive_cmds_need_lc_D=no
12290
12291 old_archive_cmds_D=$old_archive_cmds
12292 reload_flag_D=$reload_flag
12293 reload_cmds_D=$reload_cmds
12294
12295 ## CAVEAT EMPTOR:
12296 ## There is no encapsulation within the following macros, do not change
12297 ## the running order or otherwise move them around unless you know exactly
12298 ## what you are doing...
12299 if test -n "$compiler"; then
12300
12301 lt_prog_compiler_no_builtin_flag_D=
12302
12303 if test "$GCC" = yes; then
12304 case $cc_basename in
12305 nvcc*)
12306 lt_prog_compiler_no_builtin_flag_D=' -Xcompiler -fno-builtin' ;;
12307 *)
12308 lt_prog_compiler_no_builtin_flag_D=' -fno-builtin' ;;
12309 esac
12310
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12312 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12313 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
12314 $as_echo_n "(cached) " >&6
12315 else
12316 lt_cv_prog_compiler_rtti_exceptions=no
12317 ac_outfile=conftest.$ac_objext
12318 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12319 lt_compiler_flag="-fno-rtti -fno-exceptions"
12320 # Insert the option either (1) after the last *FLAGS variable, or
12321 # (2) before a word containing "conftest.", or (3) at the end.
12322 # Note that $ac_compile itself does not contain backslashes and begins
12323 # with a dollar sign (not a hyphen), so the echo should work correctly.
12324 # The option is referenced via a variable to avoid confusing sed.
12325 lt_compile=`echo "$ac_compile" | $SED \
12326 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12327 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12328 -e 's:$: $lt_compiler_flag:'`
12329 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12330 (eval "$lt_compile" 2>conftest.err)
12331 ac_status=$?
12332 cat conftest.err >&5
12333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334 if (exit $ac_status) && test -s "$ac_outfile"; then
12335 # The compiler can only warn and ignore the option if not recognized
12336 # So say no if there are warnings other than the usual output.
12337 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12338 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12339 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12340 lt_cv_prog_compiler_rtti_exceptions=yes
12341 fi
12342 fi
12343 $RM conftest*
12344
12345 fi
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12347 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12348
12349 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12350 lt_prog_compiler_no_builtin_flag_D="$lt_prog_compiler_no_builtin_flag_D -fno-rtti -fno-exceptions"
12351 else
12352 :
12353 fi
12354
12355 fi
12356
12357
12358
12359 lt_prog_compiler_wl_D=
12360 lt_prog_compiler_pic_D=
12361 lt_prog_compiler_static_D=
12362
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12364 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12365
12366 if test "$GCC" = yes; then
12367 lt_prog_compiler_wl_D='-Wl,'
12368 lt_prog_compiler_static_D='-static'
12369
12370 case $host_os in
12371 aix*)
12372 # All AIX code is PIC.
12373 if test "$host_cpu" = ia64; then
12374 # AIX 5 now supports IA64 processor
12375 lt_prog_compiler_static_D='-Bstatic'
12376 fi
12377 lt_prog_compiler_pic_D='-fPIC'
12378 ;;
12379
12380 amigaos*)
12381 case $host_cpu in
12382 powerpc)
12383 # see comment about AmigaOS4 .so support
12384 lt_prog_compiler_pic_D='-fPIC'
12385 ;;
12386 m68k)
12387 # FIXME: we need at least 68020 code to build shared libraries, but
12388 # adding the `-m68020' flag to GCC prevents building anything better,
12389 # like `-m68040'.
12390 lt_prog_compiler_pic_D='-m68020 -resident32 -malways-restore-a4'
12391 ;;
12392 esac
12393 ;;
12394
12395 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12396 # PIC is the default for these OSes.
12397 ;;
12398
12399 mingw* | cygwin* | pw32* | os2* | cegcc*)
12400 # This hack is so that the source file can tell whether it is being
12401 # built for inclusion in a dll (and should export symbols for example).
12402 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12403 # (--disable-auto-import) libraries
12404 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12405 ;;
12406
12407 darwin* | rhapsody*)
12408 # PIC is the default on this platform
12409 # Common symbols not allowed in MH_DYLIB files
12410 lt_prog_compiler_pic_D='-fno-common'
12411 ;;
12412
12413 haiku*)
12414 # PIC is the default for Haiku.
12415 # The "-static" flag exists, but is broken.
12416 lt_prog_compiler_static_D=
12417 ;;
12418
12419 hpux*)
12420 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12421 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12422 # sets the default TLS model and affects inlining.
12423 case $host_cpu in
12424 hppa*64*)
12425 # +Z the default
12426 ;;
12427 *)
12428 lt_prog_compiler_pic_D='-fPIC'
12429 ;;
12430 esac
12431 ;;
12432
12433 interix[3-9]*)
12434 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12435 # Instead, we relocate shared libraries at runtime.
12436 ;;
12437
12438 msdosdjgpp*)
12439 # Just because we use GCC doesn't mean we suddenly get shared libraries
12440 # on systems that don't support them.
12441 lt_prog_compiler_can_build_shared_D=no
12442 enable_shared=no
12443 ;;
12444
12445 *nto* | *qnx*)
12446 # QNX uses GNU C++, but need to define -shared option too, otherwise
12447 # it will coredump.
12448 lt_prog_compiler_pic_D='-fPIC -shared'
12449 ;;
12450
12451 sysv4*MP*)
12452 if test -d /usr/nec; then
12453 lt_prog_compiler_pic_D=-Kconform_pic
12454 fi
12455 ;;
12456
12457 *)
12458 lt_prog_compiler_pic_D='-fPIC'
12459 ;;
12460 esac
12461
12462 case $cc_basename in
12463 nvcc*) # Cuda Compiler Driver 2.2
12464 lt_prog_compiler_wl_D='-Xlinker '
12465 lt_prog_compiler_pic_D='-Xcompiler -fPIC'
12466 ;;
12467 esac
12468 else
12469 # PORTME Check for flag to pass linker flags through the system compiler.
12470 case $host_os in
12471 aix*)
12472 lt_prog_compiler_wl_D='-Wl,'
12473 if test "$host_cpu" = ia64; then
12474 # AIX 5 now supports IA64 processor
12475 lt_prog_compiler_static_D='-Bstatic'
12476 else
12477 lt_prog_compiler_static_D='-bnso -bI:/lib/syscalls.exp'
12478 fi
12479 ;;
12480
12481 mingw* | cygwin* | pw32* | os2* | cegcc*)
12482 # This hack is so that the source file can tell whether it is being
12483 # built for inclusion in a dll (and should export symbols for example).
12484 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12485 ;;
12486
12487 hpux9* | hpux10* | hpux11*)
12488 lt_prog_compiler_wl_D='-Wl,'
12489 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12490 # not for PA HP-UX.
12491 case $host_cpu in
12492 hppa*64*|ia64*)
12493 # +Z the default
12494 ;;
12495 *)
12496 lt_prog_compiler_pic_D='+Z'
12497 ;;
12498 esac
12499 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12500 lt_prog_compiler_static_D='${wl}-a ${wl}archive'
12501 ;;
12502
12503 irix5* | irix6* | nonstopux*)
12504 lt_prog_compiler_wl_D='-Wl,'
12505 # PIC (with -KPIC) is the default.
12506 lt_prog_compiler_static_D='-non_shared'
12507 ;;
12508
12509 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12510 case $cc_basename in
12511 # old Intel for x86_64 which still supported -KPIC.
12512 ecc*)
12513 lt_prog_compiler_wl_D='-Wl,'
12514 lt_prog_compiler_pic_D='-KPIC'
12515 lt_prog_compiler_static_D='-static'
12516 ;;
12517 # icc used to be incompatible with GCC.
12518 # ICC 10 doesn't accept -KPIC any more.
12519 icc* | ifort*)
12520 lt_prog_compiler_wl_D='-Wl,'
12521 lt_prog_compiler_pic_D='-fPIC'
12522 lt_prog_compiler_static_D='-static'
12523 ;;
12524 # Lahey Fortran 8.1.
12525 lf95*)
12526 lt_prog_compiler_wl_D='-Wl,'
12527 lt_prog_compiler_pic_D='--shared'
12528 lt_prog_compiler_static_D='--static'
12529 ;;
12530 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12531 # Portland Group compilers (*not* the Pentium gcc compiler,
12532 # which looks to be a dead project)
12533 lt_prog_compiler_wl_D='-Wl,'
12534 lt_prog_compiler_pic_D='-fpic'
12535 lt_prog_compiler_static_D='-Bstatic'
12536 ;;
12537 ccc*)
12538 lt_prog_compiler_wl_D='-Wl,'
12539 # All Alpha code is PIC.
12540 lt_prog_compiler_static_D='-non_shared'
12541 ;;
12542 xl* | bgxl* | bgf* | mpixl*)
12543 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12544 lt_prog_compiler_wl_D='-Wl,'
12545 lt_prog_compiler_pic_D='-qpic'
12546 lt_prog_compiler_static_D='-qstaticlink'
12547 ;;
12548 *)
12549 case `$CC -V 2>&1 | sed 5q` in
12550 *Sun\ F* | *Sun*Fortran*)
12551 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12552 lt_prog_compiler_pic_D='-KPIC'
12553 lt_prog_compiler_static_D='-Bstatic'
12554 lt_prog_compiler_wl_D=''
12555 ;;
12556 *Sun\ C*)
12557 # Sun C 5.9
12558 lt_prog_compiler_pic_D='-KPIC'
12559 lt_prog_compiler_static_D='-Bstatic'
12560 lt_prog_compiler_wl_D='-Wl,'
12561 ;;
12562 esac
12563 ;;
12564 esac
12565 ;;
12566
12567 newsos6)
12568 lt_prog_compiler_pic_D='-KPIC'
12569 lt_prog_compiler_static_D='-Bstatic'
12570 ;;
12571
12572 *nto* | *qnx*)
12573 # QNX uses GNU C++, but need to define -shared option too, otherwise
12574 # it will coredump.
12575 lt_prog_compiler_pic_D='-fPIC -shared'
12576 ;;
12577
12578 osf3* | osf4* | osf5*)
12579 lt_prog_compiler_wl_D='-Wl,'
12580 # All OSF/1 code is PIC.
12581 lt_prog_compiler_static_D='-non_shared'
12582 ;;
12583
12584 rdos*)
12585 lt_prog_compiler_static_D='-non_shared'
12586 ;;
12587
12588 solaris*)
12589 lt_prog_compiler_pic_D='-KPIC'
12590 lt_prog_compiler_static_D='-Bstatic'
12591 case $cc_basename in
12592 f77* | f90* | f95*)
12593 lt_prog_compiler_wl_D='-Qoption ld ';;
12594 *)
12595 lt_prog_compiler_wl_D='-Wl,';;
12596 esac
12597 ;;
12598
12599 sunos4*)
12600 lt_prog_compiler_wl_D='-Qoption ld '
12601 lt_prog_compiler_pic_D='-PIC'
12602 lt_prog_compiler_static_D='-Bstatic'
12603 ;;
12604
12605 sysv4 | sysv4.2uw2* | sysv4.3*)
12606 lt_prog_compiler_wl_D='-Wl,'
12607 lt_prog_compiler_pic_D='-KPIC'
12608 lt_prog_compiler_static_D='-Bstatic'
12609 ;;
12610
12611 sysv4*MP*)
12612 if test -d /usr/nec ;then
12613 lt_prog_compiler_pic_D='-Kconform_pic'
12614 lt_prog_compiler_static_D='-Bstatic'
12615 fi
12616 ;;
12617
12618 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12619 lt_prog_compiler_wl_D='-Wl,'
12620 lt_prog_compiler_pic_D='-KPIC'
12621 lt_prog_compiler_static_D='-Bstatic'
12622 ;;
12623
12624 unicos*)
12625 lt_prog_compiler_wl_D='-Wl,'
12626 lt_prog_compiler_can_build_shared_D=no
12627 ;;
12628
12629 uts4*)
12630 lt_prog_compiler_pic_D='-pic'
12631 lt_prog_compiler_static_D='-Bstatic'
12632 ;;
12633
12634 *)
12635 lt_prog_compiler_can_build_shared_D=no
12636 ;;
12637 esac
12638 fi
12639
12640 case $host_os in
12641 # For platforms which do not support PIC, -DPIC is meaningless:
12642 *djgpp*)
12643 lt_prog_compiler_pic_D=
12644 ;;
12645 *)
12646 lt_prog_compiler_pic_D="$lt_prog_compiler_pic_D"
12647 ;;
12648 esac
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_D" >&5
12650 $as_echo "$lt_prog_compiler_pic_D" >&6; }
12651
12652
12653
12654 #
12655 # Check to make sure the PIC flag actually works.
12656 #
12657 if test -n "$lt_prog_compiler_pic_D"; then
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_D works" >&5
12659 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_D works... " >&6; }
12660 if ${lt_cv_prog_compiler_pic_works_D+:} false; then :
12661 $as_echo_n "(cached) " >&6
12662 else
12663 lt_cv_prog_compiler_pic_works_D=no
12664 ac_outfile=conftest.$ac_objext
12665 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12666 lt_compiler_flag="$lt_prog_compiler_pic_D"
12667 # Insert the option either (1) after the last *FLAGS variable, or
12668 # (2) before a word containing "conftest.", or (3) at the end.
12669 # Note that $ac_compile itself does not contain backslashes and begins
12670 # with a dollar sign (not a hyphen), so the echo should work correctly.
12671 # The option is referenced via a variable to avoid confusing sed.
12672 lt_compile=`echo "$ac_compile" | $SED \
12673 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12674 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12675 -e 's:$: $lt_compiler_flag:'`
12676 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12677 (eval "$lt_compile" 2>conftest.err)
12678 ac_status=$?
12679 cat conftest.err >&5
12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 if (exit $ac_status) && test -s "$ac_outfile"; then
12682 # The compiler can only warn and ignore the option if not recognized
12683 # So say no if there are warnings other than the usual output.
12684 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12685 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12686 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12687 lt_cv_prog_compiler_pic_works_D=yes
12688 fi
12689 fi
12690 $RM conftest*
12691
12692 fi
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_D" >&5
12694 $as_echo "$lt_cv_prog_compiler_pic_works_D" >&6; }
12695
12696 if test x"$lt_cv_prog_compiler_pic_works_D" = xyes; then
12697 case $lt_prog_compiler_pic_D in
12698 "" | " "*) ;;
12699 *) lt_prog_compiler_pic_D=" $lt_prog_compiler_pic_D" ;;
12700 esac
12701 else
12702 lt_prog_compiler_pic_D=
12703 lt_prog_compiler_can_build_shared_D=no
12704 fi
12705
12706 fi
12707
12708
12709
12710 #
12711 # Check to make sure the static flag actually works.
12712 #
12713 wl=$lt_prog_compiler_wl_D eval lt_tmp_static_flag=\"$lt_prog_compiler_static_D\"
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12715 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12716 if ${lt_cv_prog_compiler_static_works_D+:} false; then :
12717 $as_echo_n "(cached) " >&6
12718 else
12719 lt_cv_prog_compiler_static_works_D=no
12720 save_LDFLAGS="$LDFLAGS"
12721 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12722 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12723 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12724 # The linker can only warn and ignore the option if not recognized
12725 # So say no if there are warnings
12726 if test -s conftest.err; then
12727 # Append any errors to the config.log.
12728 cat conftest.err 1>&5
12729 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12730 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12731 if diff conftest.exp conftest.er2 >/dev/null; then
12732 lt_cv_prog_compiler_static_works_D=yes
12733 fi
12734 else
12735 lt_cv_prog_compiler_static_works_D=yes
12736 fi
12737 fi
12738 $RM -r conftest*
12739 LDFLAGS="$save_LDFLAGS"
12740
12741 fi
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_D" >&5
12743 $as_echo "$lt_cv_prog_compiler_static_works_D" >&6; }
12744
12745 if test x"$lt_cv_prog_compiler_static_works_D" = xyes; then
12746 :
12747 else
12748 lt_prog_compiler_static_D=
12749 fi
12750
12751
12752
12753
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12755 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12756 if ${lt_cv_prog_compiler_c_o_D+:} false; then :
12757 $as_echo_n "(cached) " >&6
12758 else
12759 lt_cv_prog_compiler_c_o_D=no
12760 $RM -r conftest 2>/dev/null
12761 mkdir conftest
12762 cd conftest
12763 mkdir out
12764 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12765
12766 lt_compiler_flag="-o out/conftest2.$ac_objext"
12767 # Insert the option either (1) after the last *FLAGS variable, or
12768 # (2) before a word containing "conftest.", or (3) at the end.
12769 # Note that $ac_compile itself does not contain backslashes and begins
12770 # with a dollar sign (not a hyphen), so the echo should work correctly.
12771 lt_compile=`echo "$ac_compile" | $SED \
12772 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12773 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12774 -e 's:$: $lt_compiler_flag:'`
12775 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12776 (eval "$lt_compile" 2>out/conftest.err)
12777 ac_status=$?
12778 cat out/conftest.err >&5
12779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12781 then
12782 # The compiler can only warn and ignore the option if not recognized
12783 # So say no if there are warnings
12784 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12785 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12786 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12787 lt_cv_prog_compiler_c_o_D=yes
12788 fi
12789 fi
12790 chmod u+w . 2>&5
12791 $RM conftest*
12792 # SGI C++ compiler will create directory out/ii_files/ for
12793 # template instantiation
12794 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12795 $RM out/* && rmdir out
12796 cd ..
12797 $RM -r conftest
12798 $RM conftest*
12799
12800 fi
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12802 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12803
12804
12805
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12807 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12808 if ${lt_cv_prog_compiler_c_o_D+:} false; then :
12809 $as_echo_n "(cached) " >&6
12810 else
12811 lt_cv_prog_compiler_c_o_D=no
12812 $RM -r conftest 2>/dev/null
12813 mkdir conftest
12814 cd conftest
12815 mkdir out
12816 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12817
12818 lt_compiler_flag="-o out/conftest2.$ac_objext"
12819 # Insert the option either (1) after the last *FLAGS variable, or
12820 # (2) before a word containing "conftest.", or (3) at the end.
12821 # Note that $ac_compile itself does not contain backslashes and begins
12822 # with a dollar sign (not a hyphen), so the echo should work correctly.
12823 lt_compile=`echo "$ac_compile" | $SED \
12824 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12825 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12826 -e 's:$: $lt_compiler_flag:'`
12827 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12828 (eval "$lt_compile" 2>out/conftest.err)
12829 ac_status=$?
12830 cat out/conftest.err >&5
12831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12832 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12833 then
12834 # The compiler can only warn and ignore the option if not recognized
12835 # So say no if there are warnings
12836 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12837 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12838 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12839 lt_cv_prog_compiler_c_o_D=yes
12840 fi
12841 fi
12842 chmod u+w . 2>&5
12843 $RM conftest*
12844 # SGI C++ compiler will create directory out/ii_files/ for
12845 # template instantiation
12846 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12847 $RM out/* && rmdir out
12848 cd ..
12849 $RM -r conftest
12850 $RM conftest*
12851
12852 fi
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12854 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12855
12856
12857
12858
12859 hard_links="nottested"
12860 if test "$lt_cv_prog_compiler_c_o_D" = no && test "$need_locks" != no; then
12861 # do not overwrite the value of need_locks provided by the user
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12863 $as_echo_n "checking if we can lock with hard links... " >&6; }
12864 hard_links=yes
12865 $RM conftest*
12866 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12867 touch conftest.a
12868 ln conftest.a conftest.b 2>&5 || hard_links=no
12869 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12871 $as_echo "$hard_links" >&6; }
12872 if test "$hard_links" = no; then
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12874 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12875 need_locks=warn
12876 fi
12877 else
12878 need_locks=no
12879 fi
12880
12881
12882
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12884 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12885
12886 runpath_var=
12887 allow_undefined_flag_D=
12888 always_export_symbols_D=no
12889 archive_cmds_D=
12890 archive_expsym_cmds_D=
12891 compiler_needs_object_D=no
12892 enable_shared_with_static_runtimes_D=no
12893 export_dynamic_flag_spec_D=
12894 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12895 hardcode_automatic_D=no
12896 hardcode_direct_D=no
12897 hardcode_direct_absolute_D=no
12898 hardcode_libdir_flag_spec_D=
12899 hardcode_libdir_flag_spec_ld_D=
12900 hardcode_libdir_separator_D=
12901 hardcode_minus_L_D=no
12902 hardcode_shlibpath_var_D=unsupported
12903 inherit_rpath_D=no
12904 link_all_deplibs_D=unknown
12905 module_cmds_D=
12906 module_expsym_cmds_D=
12907 old_archive_from_new_cmds_D=
12908 old_archive_from_expsyms_cmds_D=
12909 thread_safe_flag_spec_D=
12910 whole_archive_flag_spec_D=
12911 # include_expsyms should be a list of space-separated symbols to be *always*
12912 # included in the symbol list
12913 include_expsyms_D=
12914 # exclude_expsyms can be an extended regexp of symbols to exclude
12915 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12916 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12917 # as well as any symbol that contains `d'.
12918 exclude_expsyms_D='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12919 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12920 # platforms (ab)use it in PIC code, but their linkers get confused if
12921 # the symbol is explicitly referenced. Since portable code cannot
12922 # rely on this symbol name, it's probably fine to never include it in
12923 # preloaded symbol tables.
12924 # Exclude shared library initialization/finalization symbols.
12925 extract_expsyms_cmds=
12926
12927 case $host_os in
12928 cygwin* | mingw* | pw32* | cegcc*)
12929 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12930 # When not using gcc, we currently assume that we are using
12931 # Microsoft Visual C++.
12932 if test "$GCC" != yes; then
12933 with_gnu_ld=no
12934 fi
12935 ;;
12936 interix*)
12937 # we just hope/assume this is gcc and not c89 (= MSVC++)
12938 with_gnu_ld=yes
12939 ;;
12940 openbsd*)
12941 with_gnu_ld=no
12942 ;;
12943 esac
12944
12945 ld_shlibs_D=yes
12946
12947 # On some targets, GNU ld is compatible enough with the native linker
12948 # that we're better off using the native interface for both.
12949 lt_use_gnu_ld_interface=no
12950 if test "$with_gnu_ld" = yes; then
12951 case $host_os in
12952 aix*)
12953 # The AIX port of GNU ld has always aspired to compatibility
12954 # with the native linker. However, as the warning in the GNU ld
12955 # block says, versions before 2.19.5* couldn't really create working
12956 # shared libraries, regardless of the interface used.
12957 case `$LD -v 2>&1` in
12958 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12959 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12960 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12961 *)
12962 lt_use_gnu_ld_interface=yes
12963 ;;
12964 esac
12965 ;;
12966 *)
12967 lt_use_gnu_ld_interface=yes
12968 ;;
12969 esac
12970 fi
12971
12972 if test "$lt_use_gnu_ld_interface" = yes; then
12973 # If archive_cmds runs LD, not CC, wlarc should be empty
12974 wlarc='${wl}'
12975
12976 # Set some defaults for GNU ld with shared library support. These
12977 # are reset later if shared libraries are not supported. Putting them
12978 # here allows them to be overridden if necessary.
12979 runpath_var=LD_RUN_PATH
12980 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12981 export_dynamic_flag_spec_D='${wl}--export-dynamic'
12982 # ancient GNU ld didn't support --whole-archive et. al.
12983 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12984 whole_archive_flag_spec_D="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12985 else
12986 whole_archive_flag_spec_D=
12987 fi
12988 supports_anon_versioning=no
12989 case `$LD -v 2>&1` in
12990 *GNU\ gold*) supports_anon_versioning=yes ;;
12991 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12992 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12993 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12994 *\ 2.11.*) ;; # other 2.11 versions
12995 *) supports_anon_versioning=yes ;;
12996 esac
12997
12998 # See if GNU ld supports shared libraries.
12999 case $host_os in
13000 aix[3-9]*)
13001 # On AIX/PPC, the GNU linker is very broken
13002 if test "$host_cpu" != ia64; then
13003 ld_shlibs_D=no
13004 cat <<_LT_EOF 1>&2
13005
13006 *** Warning: the GNU linker, at least up to release 2.19, is reported
13007 *** to be unable to reliably create shared libraries on AIX.
13008 *** Therefore, libtool is disabling shared libraries support. If you
13009 *** really care for shared libraries, you may want to install binutils
13010 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13011 *** You will then need to restart the configuration process.
13012
13013 _LT_EOF
13014 fi
13015 ;;
13016
13017 amigaos*)
13018 case $host_cpu in
13019 powerpc)
13020 # see comment about AmigaOS4 .so support
13021 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13022 archive_expsym_cmds_D=''
13023 ;;
13024 m68k)
13025 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)'
13026 hardcode_libdir_flag_spec_D='-L$libdir'
13027 hardcode_minus_L_D=yes
13028 ;;
13029 esac
13030 ;;
13031
13032 beos*)
13033 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13034 allow_undefined_flag_D=unsupported
13035 # Joseph Beckenbach <[email protected]> says some releases of gcc
13036 # support --undefined. This deserves some investigation. FIXME
13037 archive_cmds_D='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13038 else
13039 ld_shlibs_D=no
13040 fi
13041 ;;
13042
13043 cygwin* | mingw* | pw32* | cegcc*)
13044 # _LT_TAGVAR(hardcode_libdir_flag_spec, D) is actually meaningless,
13045 # as there is no search path for DLLs.
13046 hardcode_libdir_flag_spec_D='-L$libdir'
13047 export_dynamic_flag_spec_D='${wl}--export-all-symbols'
13048 allow_undefined_flag_D=unsupported
13049 always_export_symbols_D=no
13050 enable_shared_with_static_runtimes_D=yes
13051 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13052
13053 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13054 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13055 # If the export-symbols file already is a .def file (1st line
13056 # is EXPORTS), use it as is; otherwise, prepend...
13057 archive_expsym_cmds_D='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13058 cp $export_symbols $output_objdir/$soname.def;
13059 else
13060 echo EXPORTS > $output_objdir/$soname.def;
13061 cat $export_symbols >> $output_objdir/$soname.def;
13062 fi~
13063 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13064 else
13065 ld_shlibs_D=no
13066 fi
13067 ;;
13068
13069 haiku*)
13070 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13071 link_all_deplibs_D=yes
13072 ;;
13073
13074 interix[3-9]*)
13075 hardcode_direct_D=no
13076 hardcode_shlibpath_var_D=no
13077 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13078 export_dynamic_flag_spec_D='${wl}-E'
13079 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13080 # Instead, shared libraries are loaded at an image base (0x10000000 by
13081 # default) and relocated if they conflict, which is a slow very memory
13082 # consuming and fragmenting process. To avoid this, we pick a random,
13083 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13084 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13085 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'
13086 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'
13087 ;;
13088
13089 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
13090 tmp_diet=no
13091 if test "$host_os" = linux-dietlibc; then
13092 case $cc_basename in
13093 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13094 esac
13095 fi
13096 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13097 && test "$tmp_diet" = no
13098 then
13099 tmp_addflag=' $pic_flag'
13100 tmp_sharedflag='-shared'
13101 case $cc_basename,$host_cpu in
13102 pgcc*) # Portland Group C compiler
13103 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'
13104 tmp_addflag=' $pic_flag'
13105 ;;
13106 pgf77* | pgf90* | pgf95* | pgfortran*)
13107 # Portland Group f77 and f90 compilers
13108 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'
13109 tmp_addflag=' $pic_flag -Mnomain' ;;
13110 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13111 tmp_addflag=' -i_dynamic' ;;
13112 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13113 tmp_addflag=' -i_dynamic -nofor_main' ;;
13114 ifc* | ifort*) # Intel Fortran compiler
13115 tmp_addflag=' -nofor_main' ;;
13116 lf95*) # Lahey Fortran 8.1
13117 whole_archive_flag_spec_D=
13118 tmp_sharedflag='--shared' ;;
13119 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13120 tmp_sharedflag='-qmkshrobj'
13121 tmp_addflag= ;;
13122 nvcc*) # Cuda Compiler Driver 2.2
13123 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'
13124 compiler_needs_object_D=yes
13125 ;;
13126 esac
13127 case `$CC -V 2>&1 | sed 5q` in
13128 *Sun\ C*) # Sun C 5.9
13129 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'
13130 compiler_needs_object_D=yes
13131 tmp_sharedflag='-G' ;;
13132 *Sun\ F*) # Sun Fortran 8.3
13133 tmp_sharedflag='-G' ;;
13134 esac
13135 archive_cmds_D='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13136
13137 if test "x$supports_anon_versioning" = xyes; then
13138 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
13139 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13140 echo "local: *; };" >> $output_objdir/$libname.ver~
13141 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13142 fi
13143
13144 case $cc_basename in
13145 xlf* | bgf* | bgxlf* | mpixlf*)
13146 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13147 whole_archive_flag_spec_D='--whole-archive$convenience --no-whole-archive'
13148 hardcode_libdir_flag_spec_D=
13149 hardcode_libdir_flag_spec_ld_D='-rpath $libdir'
13150 archive_cmds_D='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13151 if test "x$supports_anon_versioning" = xyes; then
13152 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
13153 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13154 echo "local: *; };" >> $output_objdir/$libname.ver~
13155 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13156 fi
13157 ;;
13158 esac
13159 else
13160 ld_shlibs_D=no
13161 fi
13162 ;;
13163
13164 netbsd*)
13165 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13166 archive_cmds_D='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13167 wlarc=
13168 else
13169 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13170 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13171 fi
13172 ;;
13173
13174 solaris*)
13175 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13176 ld_shlibs_D=no
13177 cat <<_LT_EOF 1>&2
13178
13179 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13180 *** create shared libraries on Solaris systems. Therefore, libtool
13181 *** is disabling shared libraries support. We urge you to upgrade GNU
13182 *** binutils to release 2.9.1 or newer. Another option is to modify
13183 *** your PATH or compiler configuration so that the native linker is
13184 *** used, and then restart.
13185
13186 _LT_EOF
13187 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13188 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13189 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13190 else
13191 ld_shlibs_D=no
13192 fi
13193 ;;
13194
13195 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13196 case `$LD -v 2>&1` in
13197 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13198 ld_shlibs_D=no
13199 cat <<_LT_EOF 1>&2
13200
13201 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13202 *** reliably create shared libraries on SCO systems. Therefore, libtool
13203 *** is disabling shared libraries support. We urge you to upgrade GNU
13204 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13205 *** your PATH or compiler configuration so that the native linker is
13206 *** used, and then restart.
13207
13208 _LT_EOF
13209 ;;
13210 *)
13211 # For security reasons, it is highly recommended that you always
13212 # use absolute paths for naming shared libraries, and exclude the
13213 # DT_RUNPATH tag from executables and libraries. But doing so
13214 # requires that you compile everything twice, which is a pain.
13215 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13216 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13217 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13218 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13219 else
13220 ld_shlibs_D=no
13221 fi
13222 ;;
13223 esac
13224 ;;
13225
13226 sunos4*)
13227 archive_cmds_D='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13228 wlarc=
13229 hardcode_direct_D=yes
13230 hardcode_shlibpath_var_D=no
13231 ;;
13232
13233 *)
13234 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13235 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13236 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13237 else
13238 ld_shlibs_D=no
13239 fi
13240 ;;
13241 esac
13242
13243 if test "$ld_shlibs_D" = no; then
13244 runpath_var=
13245 hardcode_libdir_flag_spec_D=
13246 export_dynamic_flag_spec_D=
13247 whole_archive_flag_spec_D=
13248 fi
13249 else
13250 # PORTME fill in a description of your system's linker (not GNU ld)
13251 case $host_os in
13252 aix3*)
13253 allow_undefined_flag_D=unsupported
13254 always_export_symbols_D=yes
13255 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'
13256 # Note: this linker hardcodes the directories in LIBPATH if there
13257 # are no directories specified by -L.
13258 hardcode_minus_L_D=yes
13259 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13260 # Neither direct hardcoding nor static linking is supported with a
13261 # broken collect2.
13262 hardcode_direct_D=unsupported
13263 fi
13264 ;;
13265
13266 aix[4-9]*)
13267 if test "$host_cpu" = ia64; then
13268 # On IA64, the linker does run time linking by default, so we don't
13269 # have to do anything special.
13270 aix_use_runtimelinking=no
13271 exp_sym_flag='-Bexport'
13272 no_entry_flag=""
13273 else
13274 # If we're using GNU nm, then we don't want the "-C" option.
13275 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13276 # Also, AIX nm treats weak defined symbols like other global
13277 # defined symbols, whereas GNU nm marks them as "W".
13278 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13279 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'
13280 else
13281 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'
13282 fi
13283 aix_use_runtimelinking=no
13284
13285 # Test if we are trying to use run time linking or normal
13286 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13287 # need to do runtime linking.
13288 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13289 for ld_flag in $LDFLAGS; do
13290 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13291 aix_use_runtimelinking=yes
13292 break
13293 fi
13294 done
13295 ;;
13296 esac
13297
13298 exp_sym_flag='-bexport'
13299 no_entry_flag='-bnoentry'
13300 fi
13301
13302 # When large executables or shared objects are built, AIX ld can
13303 # have problems creating the table of contents. If linking a library
13304 # or program results in "error TOC overflow" add -mminimal-toc to
13305 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13306 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13307
13308 archive_cmds_D=''
13309 hardcode_direct_D=yes
13310 hardcode_direct_absolute_D=yes
13311 hardcode_libdir_separator_D=':'
13312 link_all_deplibs_D=yes
13313 file_list_spec_D='${wl}-f,'
13314
13315 if test "$GCC" = yes; then
13316 case $host_os in aix4.[012]|aix4.[012].*)
13317 # We only want to do this on AIX 4.2 and lower, the check
13318 # below for broken collect2 doesn't work under 4.3+
13319 collect2name=`${CC} -print-prog-name=collect2`
13320 if test -f "$collect2name" &&
13321 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13322 then
13323 # We have reworked collect2
13324 :
13325 else
13326 # We have old collect2
13327 hardcode_direct_D=unsupported
13328 # It fails to find uninstalled libraries when the uninstalled
13329 # path is not listed in the libpath. Setting hardcode_minus_L
13330 # to unsupported forces relinking
13331 hardcode_minus_L_D=yes
13332 hardcode_libdir_flag_spec_D='-L$libdir'
13333 hardcode_libdir_separator_D=
13334 fi
13335 ;;
13336 esac
13337 shared_flag='-shared'
13338 if test "$aix_use_runtimelinking" = yes; then
13339 shared_flag="$shared_flag "'${wl}-G'
13340 fi
13341 else
13342 # not using gcc
13343 if test "$host_cpu" = ia64; then
13344 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13345 # chokes on -Wl,-G. The following line is correct:
13346 shared_flag='-G'
13347 else
13348 if test "$aix_use_runtimelinking" = yes; then
13349 shared_flag='${wl}-G'
13350 else
13351 shared_flag='${wl}-bM:SRE'
13352 fi
13353 fi
13354 fi
13355
13356 export_dynamic_flag_spec_D='${wl}-bexpall'
13357 # It seems that -bexpall does not export symbols beginning with
13358 # underscore (_), so it is better to generate a list of symbols to export.
13359 always_export_symbols_D=yes
13360 if test "$aix_use_runtimelinking" = yes; then
13361 # Warning - without using the other runtime loading flags (-brtl),
13362 # -berok will link without error, but may produce a broken library.
13363 allow_undefined_flag_D='-berok'
13364 # Determine the default libpath from the value encoded in an
13365 # empty executable.
13366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13367 /* end confdefs.h. */
13368
13369 int
13370 main ()
13371 {
13372
13373 ;
13374 return 0;
13375 }
13376 _ACEOF
13377 if ac_fn_c_try_link "$LINENO"; then :
13378
13379 lt_aix_libpath_sed='
13380 /Import File Strings/,/^$/ {
13381 /^0/ {
13382 s/^0 *\(.*\)$/\1/
13383 p
13384 }
13385 }'
13386 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13387 # Check for a 64-bit object if we didn't find anything.
13388 if test -z "$aix_libpath"; then
13389 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13390 fi
13391 fi
13392 rm -f core conftest.err conftest.$ac_objext \
13393 conftest$ac_exeext conftest.$ac_ext
13394 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13395
13396 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13397 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"
13398 else
13399 if test "$host_cpu" = ia64; then
13400 hardcode_libdir_flag_spec_D='${wl}-R $libdir:/usr/lib:/lib'
13401 allow_undefined_flag_D="-z nodefs"
13402 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"
13403 else
13404 # Determine the default libpath from the value encoded in an
13405 # empty executable.
13406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13407 /* end confdefs.h. */
13408
13409 int
13410 main ()
13411 {
13412
13413 ;
13414 return 0;
13415 }
13416 _ACEOF
13417 if ac_fn_c_try_link "$LINENO"; then :
13418
13419 lt_aix_libpath_sed='
13420 /Import File Strings/,/^$/ {
13421 /^0/ {
13422 s/^0 *\(.*\)$/\1/
13423 p
13424 }
13425 }'
13426 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13427 # Check for a 64-bit object if we didn't find anything.
13428 if test -z "$aix_libpath"; then
13429 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13430 fi
13431 fi
13432 rm -f core conftest.err conftest.$ac_objext \
13433 conftest$ac_exeext conftest.$ac_ext
13434 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13435
13436 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13437 # Warning - without using the other run time loading flags,
13438 # -berok will link without error, but may produce a broken library.
13439 no_undefined_flag_D=' ${wl}-bernotok'
13440 allow_undefined_flag_D=' ${wl}-berok'
13441 if test "$with_gnu_ld" = yes; then
13442 # We only use this code for GNU lds that support --whole-archive.
13443 whole_archive_flag_spec_D='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13444 else
13445 # Exported symbols can be pulled into shared objects from archives
13446 whole_archive_flag_spec_D='$convenience'
13447 fi
13448 archive_cmds_need_lc_D=yes
13449 # This is similar to how AIX traditionally builds its shared libraries.
13450 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'
13451 fi
13452 fi
13453 ;;
13454
13455 amigaos*)
13456 case $host_cpu in
13457 powerpc)
13458 # see comment about AmigaOS4 .so support
13459 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13460 archive_expsym_cmds_D=''
13461 ;;
13462 m68k)
13463 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)'
13464 hardcode_libdir_flag_spec_D='-L$libdir'
13465 hardcode_minus_L_D=yes
13466 ;;
13467 esac
13468 ;;
13469
13470 bsdi[45]*)
13471 export_dynamic_flag_spec_D=-rdynamic
13472 ;;
13473
13474 cygwin* | mingw* | pw32* | cegcc*)
13475 # When not using gcc, we currently assume that we are using
13476 # Microsoft Visual C++.
13477 # hardcode_libdir_flag_spec is actually meaningless, as there is
13478 # no search path for DLLs.
13479 hardcode_libdir_flag_spec_D=' '
13480 allow_undefined_flag_D=unsupported
13481 # Tell ltmain to make .lib files, not .a files.
13482 libext=lib
13483 # Tell ltmain to make .dll files, not .so files.
13484 shrext_cmds=".dll"
13485 # FIXME: Setting linknames here is a bad hack.
13486 archive_cmds_D='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13487 # The linker will automatically build a .lib file if we build a DLL.
13488 old_archive_from_new_cmds_D='true'
13489 # FIXME: Should let the user specify the lib program.
13490 old_archive_cmds_D='lib -OUT:$oldlib$oldobjs$old_deplibs'
13491 fix_srcfile_path_D='`cygpath -w "$srcfile"`'
13492 enable_shared_with_static_runtimes_D=yes
13493 ;;
13494
13495 darwin* | rhapsody*)
13496
13497
13498
13499 # Publish an arg to allow the user to select that Darwin host (and target)
13500 # libraries should be given install-names like @rpath/libfoo.dylib. This
13501 # requires that the user of the library then adds an 'rpath' to the DSO that
13502 # needs access.
13503 # NOTE: there are defaults below, for systems that support rpaths. The person
13504 # configuring can override the defaults for any system version that supports
13505 # them - they are, however, forced off for system versions without support.
13506 # Check whether --enable-darwin-at-rpath was given.
13507 if test "${enable_darwin_at_rpath+set}" = set; then :
13508 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
13509 # This is not supported before macOS 10.5 / Darwin9.
13510 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
13511 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
13513 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
13514 enable_darwin_at_rpath=no
13515 ;;
13516 esac
13517 fi
13518 else
13519 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
13520 # As above, before 10.5 / Darwin9 this does not work.
13521 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
13522 enable_darwin_at_rpath=no
13523 ;;
13524
13525 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
13526 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
13527 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
13528 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
13530 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
13531 enable_darwin_at_rpath=yes
13532 ;;
13533 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
13534 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
13535
13536 esac
13537
13538 fi
13539
13540
13541 archive_cmds_need_lc_D=no
13542 hardcode_direct_D=no
13543 hardcode_automatic_D=yes
13544 hardcode_shlibpath_var_D=unsupported
13545 if test "$lt_cv_ld_force_load" = "yes"; then
13546 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\"`'
13547 else
13548 whole_archive_flag_spec_D=''
13549 fi
13550 link_all_deplibs_D=yes
13551 allow_undefined_flag_D="$_lt_dar_allow_undefined"
13552 case $cc_basename in
13553 ifort*) _lt_dar_can_shared=yes ;;
13554 *) _lt_dar_can_shared=$GCC ;;
13555 esac
13556 if test "$_lt_dar_can_shared" = "yes"; then
13557 output_verbose_link_cmd=func_echo_all
13558 _lt_install_name='\$rpath/\$soname'
13559 if test "x$enable_darwin_at_rpath" = "xyes"; then
13560 _lt_install_name='@rpath/\$soname'
13561 fi
13562 archive_cmds_D="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
13563 module_cmds_D="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13564 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 ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}"
13565 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}"
13566
13567 else
13568 ld_shlibs_D=no
13569 fi
13570
13571 ;;
13572
13573 dgux*)
13574 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13575 hardcode_libdir_flag_spec_D='-L$libdir'
13576 hardcode_shlibpath_var_D=no
13577 ;;
13578
13579 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13580 # support. Future versions do this automatically, but an explicit c++rt0.o
13581 # does not break anything, and helps significantly (at the cost of a little
13582 # extra space).
13583 freebsd2.2*)
13584 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13585 hardcode_libdir_flag_spec_D='-R$libdir'
13586 hardcode_direct_D=yes
13587 hardcode_shlibpath_var_D=no
13588 ;;
13589
13590 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13591 freebsd2.*)
13592 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13593 hardcode_direct_D=yes
13594 hardcode_minus_L_D=yes
13595 hardcode_shlibpath_var_D=no
13596 ;;
13597
13598 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13599 freebsd* | dragonfly*)
13600 archive_cmds_D='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13601 hardcode_libdir_flag_spec_D='-R$libdir'
13602 hardcode_direct_D=yes
13603 hardcode_shlibpath_var_D=no
13604 ;;
13605
13606 hpux9*)
13607 if test "$GCC" = yes; then
13608 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'
13609 else
13610 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'
13611 fi
13612 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13613 hardcode_libdir_separator_D=:
13614 hardcode_direct_D=yes
13615
13616 # hardcode_minus_L: Not really in the search PATH,
13617 # but as the default location of the library.
13618 hardcode_minus_L_D=yes
13619 export_dynamic_flag_spec_D='${wl}-E'
13620 ;;
13621
13622 hpux10*)
13623 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13624 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13625 else
13626 archive_cmds_D='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13627 fi
13628 if test "$with_gnu_ld" = no; then
13629 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13630 hardcode_libdir_flag_spec_ld_D='+b $libdir'
13631 hardcode_libdir_separator_D=:
13632 hardcode_direct_D=yes
13633 hardcode_direct_absolute_D=yes
13634 export_dynamic_flag_spec_D='${wl}-E'
13635 # hardcode_minus_L: Not really in the search PATH,
13636 # but as the default location of the library.
13637 hardcode_minus_L_D=yes
13638 fi
13639 ;;
13640
13641 hpux11*)
13642 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13643 case $host_cpu in
13644 hppa*64*)
13645 archive_cmds_D='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13646 ;;
13647 ia64*)
13648 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13649 ;;
13650 *)
13651 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13652 ;;
13653 esac
13654 else
13655 case $host_cpu in
13656 hppa*64*)
13657 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13658 ;;
13659 ia64*)
13660 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13661 ;;
13662 *)
13663 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13664 ;;
13665 esac
13666 fi
13667 if test "$with_gnu_ld" = no; then
13668 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13669 hardcode_libdir_separator_D=:
13670
13671 case $host_cpu in
13672 hppa*64*|ia64*)
13673 hardcode_direct_D=no
13674 hardcode_shlibpath_var_D=no
13675 ;;
13676 *)
13677 hardcode_direct_D=yes
13678 hardcode_direct_absolute_D=yes
13679 export_dynamic_flag_spec_D='${wl}-E'
13680
13681 # hardcode_minus_L: Not really in the search PATH,
13682 # but as the default location of the library.
13683 hardcode_minus_L_D=yes
13684 ;;
13685 esac
13686 fi
13687 ;;
13688
13689 irix5* | irix6* | nonstopux*)
13690 if test "$GCC" = yes; then
13691 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'
13692 # Try to use the -exported_symbol ld option, if it does not
13693 # work, assume that -exports_file does not work either and
13694 # implicitly export all symbols.
13695 save_LDFLAGS="$LDFLAGS"
13696 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13698 /* end confdefs.h. */
13699 int foo(void) {}
13700 _ACEOF
13701 if ac_fn_c_try_link "$LINENO"; then :
13702 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'
13703
13704 fi
13705 rm -f core conftest.err conftest.$ac_objext \
13706 conftest$ac_exeext conftest.$ac_ext
13707 LDFLAGS="$save_LDFLAGS"
13708 else
13709 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'
13710 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'
13711 fi
13712 archive_cmds_need_lc_D='no'
13713 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13714 hardcode_libdir_separator_D=:
13715 inherit_rpath_D=yes
13716 link_all_deplibs_D=yes
13717 ;;
13718
13719 netbsd*)
13720 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13721 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13722 else
13723 archive_cmds_D='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13724 fi
13725 hardcode_libdir_flag_spec_D='-R$libdir'
13726 hardcode_direct_D=yes
13727 hardcode_shlibpath_var_D=no
13728 ;;
13729
13730 newsos6)
13731 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13732 hardcode_direct_D=yes
13733 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13734 hardcode_libdir_separator_D=:
13735 hardcode_shlibpath_var_D=no
13736 ;;
13737
13738 *nto* | *qnx*)
13739 ;;
13740
13741 openbsd*)
13742 if test -f /usr/libexec/ld.so; then
13743 hardcode_direct_D=yes
13744 hardcode_shlibpath_var_D=no
13745 hardcode_direct_absolute_D=yes
13746 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13747 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13748 archive_expsym_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13749 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13750 export_dynamic_flag_spec_D='${wl}-E'
13751 else
13752 case $host_os in
13753 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13754 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13755 hardcode_libdir_flag_spec_D='-R$libdir'
13756 ;;
13757 *)
13758 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13759 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13760 ;;
13761 esac
13762 fi
13763 else
13764 ld_shlibs_D=no
13765 fi
13766 ;;
13767
13768 os2*)
13769 hardcode_libdir_flag_spec_D='-L$libdir'
13770 hardcode_minus_L_D=yes
13771 allow_undefined_flag_D=unsupported
13772 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'
13773 old_archive_from_new_cmds_D='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13774 ;;
13775
13776 osf3*)
13777 if test "$GCC" = yes; then
13778 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13779 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'
13780 else
13781 allow_undefined_flag_D=' -expect_unresolved \*'
13782 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'
13783 fi
13784 archive_cmds_need_lc_D='no'
13785 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13786 hardcode_libdir_separator_D=:
13787 ;;
13788
13789 osf4* | osf5*) # as osf3* with the addition of -msym flag
13790 if test "$GCC" = yes; then
13791 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13792 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'
13793 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13794 else
13795 allow_undefined_flag_D=' -expect_unresolved \*'
13796 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'
13797 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~
13798 $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'
13799
13800 # Both c and cxx compiler support -rpath directly
13801 hardcode_libdir_flag_spec_D='-rpath $libdir'
13802 fi
13803 archive_cmds_need_lc_D='no'
13804 hardcode_libdir_separator_D=:
13805 ;;
13806
13807 solaris*)
13808 no_undefined_flag_D=' -z defs'
13809 if test "$GCC" = yes; then
13810 wlarc='${wl}'
13811 archive_cmds_D='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13812 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13813 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13814 else
13815 case `$CC -V 2>&1` in
13816 *"Compilers 5.0"*)
13817 wlarc=''
13818 archive_cmds_D='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13819 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13820 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13821 ;;
13822 *)
13823 wlarc='${wl}'
13824 archive_cmds_D='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13825 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13826 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13827 ;;
13828 esac
13829 fi
13830 hardcode_libdir_flag_spec_D='-R$libdir'
13831 hardcode_shlibpath_var_D=no
13832 case $host_os in
13833 solaris2.[0-5] | solaris2.[0-5].*) ;;
13834 *)
13835 # The compiler driver will combine and reorder linker options,
13836 # but understands `-z linker_flag'. GCC discards it without `$wl',
13837 # but is careful enough not to reorder.
13838 # Supported since Solaris 2.6 (maybe 2.5.1?)
13839 if test "$GCC" = yes; then
13840 whole_archive_flag_spec_D='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13841 else
13842 whole_archive_flag_spec_D='-z allextract$convenience -z defaultextract'
13843 fi
13844 ;;
13845 esac
13846 link_all_deplibs_D=yes
13847 ;;
13848
13849 sunos4*)
13850 if test "x$host_vendor" = xsequent; then
13851 # Use $CC to link under sequent, because it throws in some extra .o
13852 # files that make .init and .fini sections work.
13853 archive_cmds_D='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13854 else
13855 archive_cmds_D='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13856 fi
13857 hardcode_libdir_flag_spec_D='-L$libdir'
13858 hardcode_direct_D=yes
13859 hardcode_minus_L_D=yes
13860 hardcode_shlibpath_var_D=no
13861 ;;
13862
13863 sysv4)
13864 case $host_vendor in
13865 sni)
13866 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13867 hardcode_direct_D=yes # is this really true???
13868 ;;
13869 siemens)
13870 ## LD is ld it makes a PLAMLIB
13871 ## CC just makes a GrossModule.
13872 archive_cmds_D='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13873 reload_cmds_D='$CC -r -o $output$reload_objs'
13874 hardcode_direct_D=no
13875 ;;
13876 motorola)
13877 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13878 hardcode_direct_D=no #Motorola manual says yes, but my tests say they lie
13879 ;;
13880 esac
13881 runpath_var='LD_RUN_PATH'
13882 hardcode_shlibpath_var_D=no
13883 ;;
13884
13885 sysv4.3*)
13886 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13887 hardcode_shlibpath_var_D=no
13888 export_dynamic_flag_spec_D='-Bexport'
13889 ;;
13890
13891 sysv4*MP*)
13892 if test -d /usr/nec; then
13893 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13894 hardcode_shlibpath_var_D=no
13895 runpath_var=LD_RUN_PATH
13896 hardcode_runpath_var=yes
13897 ld_shlibs_D=yes
13898 fi
13899 ;;
13900
13901 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13902 no_undefined_flag_D='${wl}-z,text'
13903 archive_cmds_need_lc_D=no
13904 hardcode_shlibpath_var_D=no
13905 runpath_var='LD_RUN_PATH'
13906
13907 if test "$GCC" = yes; then
13908 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13909 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13910 else
13911 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13912 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13913 fi
13914 ;;
13915
13916 sysv5* | sco3.2v5* | sco5v6*)
13917 # Note: We can NOT use -z defs as we might desire, because we do not
13918 # link with -lc, and that would cause any symbols used from libc to
13919 # always be unresolved, which means just about no library would
13920 # ever link correctly. If we're not using GNU ld we use -z text
13921 # though, which does catch some bad symbols but isn't as heavy-handed
13922 # as -z defs.
13923 no_undefined_flag_D='${wl}-z,text'
13924 allow_undefined_flag_D='${wl}-z,nodefs'
13925 archive_cmds_need_lc_D=no
13926 hardcode_shlibpath_var_D=no
13927 hardcode_libdir_flag_spec_D='${wl}-R,$libdir'
13928 hardcode_libdir_separator_D=':'
13929 link_all_deplibs_D=yes
13930 export_dynamic_flag_spec_D='${wl}-Bexport'
13931 runpath_var='LD_RUN_PATH'
13932
13933 if test "$GCC" = yes; then
13934 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13935 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13936 else
13937 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13938 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13939 fi
13940 ;;
13941
13942 uts4*)
13943 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13944 hardcode_libdir_flag_spec_D='-L$libdir'
13945 hardcode_shlibpath_var_D=no
13946 ;;
13947
13948 *)
13949 ld_shlibs_D=no
13950 ;;
13951 esac
13952
13953 if test x$host_vendor = xsni; then
13954 case $host in
13955 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13956 export_dynamic_flag_spec_D='${wl}-Blargedynsym'
13957 ;;
13958 esac
13959 fi
13960 fi
13961
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_D" >&5
13963 $as_echo "$ld_shlibs_D" >&6; }
13964 test "$ld_shlibs_D" = no && can_build_shared=no
13965
13966 with_gnu_ld_D=$with_gnu_ld
13967
13968
13969
13970
13971
13972
13973 #
13974 # Do we need to explicitly link libc?
13975 #
13976 case "x$archive_cmds_need_lc_D" in
13977 x|xyes)
13978 # Assume -lc should be added
13979 archive_cmds_need_lc_D=yes
13980
13981 if test "$enable_shared" = yes && test "$GCC" = yes; then
13982 case $archive_cmds_D in
13983 *'~'*)
13984 # FIXME: we may have to deal with multi-command sequences.
13985 ;;
13986 '$CC '*)
13987 # Test whether the compiler implicitly links with -lc since on some
13988 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13989 # to ld, don't add -lc before -lgcc.
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13991 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13992 if ${lt_cv_archive_cmds_need_lc_D+:} false; then :
13993 $as_echo_n "(cached) " >&6
13994 else
13995 $RM conftest*
13996 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13997
13998 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13999 (eval $ac_compile) 2>&5
14000 ac_status=$?
14001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14002 test $ac_status = 0; } 2>conftest.err; then
14003 soname=conftest
14004 lib=conftest
14005 libobjs=conftest.$ac_objext
14006 deplibs=
14007 wl=$lt_prog_compiler_wl_D
14008 pic_flag=$lt_prog_compiler_pic_D
14009 compiler_flags=-v
14010 linker_flags=-v
14011 verstring=
14012 output_objdir=.
14013 libname=conftest
14014 lt_save_allow_undefined_flag=$allow_undefined_flag_D
14015 allow_undefined_flag_D=
14016 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14017 (eval $archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14018 ac_status=$?
14019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14020 test $ac_status = 0; }
14021 then
14022 lt_cv_archive_cmds_need_lc_D=no
14023 else
14024 lt_cv_archive_cmds_need_lc_D=yes
14025 fi
14026 allow_undefined_flag_D=$lt_save_allow_undefined_flag
14027 else
14028 cat conftest.err 1>&5
14029 fi
14030 $RM conftest*
14031
14032 fi
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_D" >&5
14034 $as_echo "$lt_cv_archive_cmds_need_lc_D" >&6; }
14035 archive_cmds_need_lc_D=$lt_cv_archive_cmds_need_lc_D
14036 ;;
14037 esac
14038 fi
14039 ;;
14040 esac
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14106 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14107 hardcode_action_D=
14108 if test -n "$hardcode_libdir_flag_spec_D" ||
14109 test -n "$runpath_var_D" ||
14110 test "X$hardcode_automatic_D" = "Xyes" ; then
14111
14112 # We can hardcode non-existent directories.
14113 if test "$hardcode_direct_D" != no &&
14114 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14115 # have to relink, otherwise we might link with an installed library
14116 # when we should be linking with a yet-to-be-installed one
14117 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, D)" != no &&
14118 test "$hardcode_minus_L_D" != no; then
14119 # Linking always hardcodes the temporary library directory.
14120 hardcode_action_D=relink
14121 else
14122 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14123 hardcode_action_D=immediate
14124 fi
14125 else
14126 # We cannot hardcode anything, or else we can only hardcode existing
14127 # directories.
14128 hardcode_action_D=unsupported
14129 fi
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_D" >&5
14131 $as_echo "$hardcode_action_D" >&6; }
14132
14133 if test "$hardcode_action_D" = relink ||
14134 test "$inherit_rpath_D" = yes; then
14135 # Fast installation is not supported
14136 enable_fast_install=no
14137 elif test "$shlibpath_overrides_runpath" = yes ||
14138 test "$enable_shared" = no; then
14139 # Fast installation is not necessary
14140 enable_fast_install=needless
14141 fi
14142
14143
14144
14145
14146
14147
14148
14149 fi
14150
14151 ac_ext=c
14152 ac_cpp='$CPP $CPPFLAGS'
14153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14156
14157
14158 GCC=$lt_save_GCC
14159 CC=$lt_save_CC
14160 CFLAGS=$lt_save_CFLAGS
14161
14162 GDCFLAGS=$gdc_save_DFLAGS
14163
14164
14165
14166 if test x$enable_darwin_at_rpath = xyes; then
14167 ENABLE_DARWIN_AT_RPATH_TRUE=
14168 ENABLE_DARWIN_AT_RPATH_FALSE='#'
14169 else
14170 ENABLE_DARWIN_AT_RPATH_TRUE='#'
14171 ENABLE_DARWIN_AT_RPATH_FALSE=
14172 fi
14173
14174
14175 # libtool variables for Phobos shared and position-independent compiles.
14176 #
14177 # Use phobos_lt_pic_flag to designate the automake variable
14178 # used to encapsulate the default libtool approach to creating objects
14179 # with position-independent code. Default: -prefer-pic.
14180 #
14181 # Use phobos_compiler_shared_flag to designate the compile-time flags for
14182 # creating shared objects. Default: -fversion=Shared.
14183 #
14184 # Use phobos_compiler_pic_flag to designate the compile-time flags for
14185 # creating position-independent objects. This varies with the target
14186 # hardware and operating system, but is often: -fPIC.
14187 #
14188 # The distinction between pic and shared compilation flags is not present in
14189 # libtool, and so we make it here. How it is handled is that in shared
14190 # compilations the `lt_prog_compiler_pic_D' variable is used to instead
14191 # ensure that conditional compilation of shared runtime code is compiled in.
14192 if test "$enable_shared" = yes; then
14193 phobos_lt_pic_flag="-prefer-pic"
14194 phobos_compiler_pic_flag="$lt_prog_compiler_pic_D"
14195 phobos_compiler_shared_flag="-fversion=Shared"
14196 else
14197 phobos_lt_pic_flag=
14198 phobos_compiler_pic_flag=
14199 phobos_compiler_shared_flag=
14200 fi
14201
14202
14203
14204
14205 # Override the libtool's pic_flag and pic_mode.
14206 # Do this step after AM_PROG_LIBTOOL, but before AC_OUTPUT.
14207 # NB: this impacts --with-pic and --without-pic.
14208 lt_prog_compiler_pic_D="$phobos_compiler_pic_flag $phobos_compiler_shared_flag"
14209 pic_mode='default'
14210
14211 # Determine what GCC version number to use in filesystem paths.
14212
14213 get_gcc_base_ver="cat"
14214
14215 # Check whether --with-gcc-major-version-only was given.
14216 if test "${with_gcc_major_version_only+set}" = set; then :
14217 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
14218 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
14219 fi
14220
14221 fi
14222
14223
14224
14225
14226 # libphobos/libdruntime specific options and feature detection
14227
14228 # These need to be absolute paths, yet at the same time need to
14229 # canonicalize only relative paths, because then amd will not unmount
14230 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
14231 libphobos_builddir=`${PWDCMD-pwd}`
14232 case $srcdir in
14233 \\/$* | ?:\\/*) libphobos_srcdir=${srcdir} ;;
14234 *) libphobos_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
14235 esac
14236
14237
14238
14239
14240 if test ${multilib} = yes; then
14241 multilib_arg="--enable-multilib"
14242 else
14243 multilib_arg=
14244 fi
14245
14246
14247 # Check whether --enable-werror was given.
14248 if test "${enable_werror+set}" = set; then :
14249 enableval=$enable_werror;
14250 fi
14251
14252 WERROR_FLAG=""
14253 if test "x$enable_werror" = "xyes"; then
14254 WERROR_FLAG="-Werror"
14255 fi
14256
14257
14258
14259
14260 gdc_save_DFLAGS=$GDCFLAGS
14261 GDCFLAGS="-fno-druntime -nostdinc -I $phobos_cv_abs_srcdir/libdruntime -nophoboslib $GDCFLAGS"
14262
14263 ac_ext=d
14264 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
14265 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14266 ac_compiler_gnu=yes
14267
14268 GDCFLAGS="$GDCFLAGS -g -Werror -ffunction-sections -fdata-sections"
14269 cat > conftest.$ac_ext <<_ACEOF
14270 module object;
14271 int foo; void bar() { }
14272
14273 extern(C) int main() {
14274 return 0;
14275 }
14276 _ACEOF
14277 if ac_fn_d_try_compile "$LINENO"; then :
14278 ac_fdsections=yes
14279 else
14280 ac_fdsections=no
14281 fi
14282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14283 if test "x$ac_fdsections" = "xyes"; then
14284 SECTION_FLAGS='-ffunction-sections -fdata-sections'
14285 fi
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
14287 $as_echo "$ac_fdsections" >&6; }
14288 ac_ext=c
14289 ac_cpp='$CPP $CPPFLAGS'
14290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14293
14294
14295 GDCFLAGS=$gdc_save_DFLAGS
14296
14297
14298
14299
14300 druntime_target_cpu_parsed=""
14301 case "$target_cpu" in
14302 aarch64*)
14303 druntime_target_cpu_parsed="aarch64"
14304 ;;
14305 arm*) druntime_target_cpu_parsed="arm"
14306 ;;
14307 loongarch*)
14308 druntime_target_cpu_parsed="loongarch"
14309 ;;
14310 mips*) druntime_target_cpu_parsed="mips"
14311 ;;
14312 powerpc*)
14313 druntime_target_cpu_parsed="powerpc"
14314 ;;
14315 i[34567]86|x86_64)
14316 druntime_target_cpu_parsed="x86"
14317 ;;
14318 s390x)
14319 druntime_target_cpu_parsed="s390x"
14320 ;;
14321 s390)
14322 druntime_target_cpu_parsed="s390"
14323 ;;
14324 esac
14325 if test "$druntime_target_cpu_parsed" = "aarch64"; then
14326 DRUNTIME_CPU_AARCH64_TRUE=
14327 DRUNTIME_CPU_AARCH64_FALSE='#'
14328 else
14329 DRUNTIME_CPU_AARCH64_TRUE='#'
14330 DRUNTIME_CPU_AARCH64_FALSE=
14331 fi
14332
14333 if test "$druntime_target_cpu_parsed" = "arm"; then
14334 DRUNTIME_CPU_ARM_TRUE=
14335 DRUNTIME_CPU_ARM_FALSE='#'
14336 else
14337 DRUNTIME_CPU_ARM_TRUE='#'
14338 DRUNTIME_CPU_ARM_FALSE=
14339 fi
14340
14341 if test "$druntime_target_cpu_parsed" = "loongarch"; then
14342 DRUNTIME_CPU_LOONGARCH_TRUE=
14343 DRUNTIME_CPU_LOONGARCH_FALSE='#'
14344 else
14345 DRUNTIME_CPU_LOONGARCH_TRUE='#'
14346 DRUNTIME_CPU_LOONGARCH_FALSE=
14347 fi
14348
14349 if test "$druntime_target_cpu_parsed" = "mips"; then
14350 DRUNTIME_CPU_MIPS_TRUE=
14351 DRUNTIME_CPU_MIPS_FALSE='#'
14352 else
14353 DRUNTIME_CPU_MIPS_TRUE='#'
14354 DRUNTIME_CPU_MIPS_FALSE=
14355 fi
14356
14357 if test "$druntime_target_cpu_parsed" = "powerpc"; then
14358 DRUNTIME_CPU_POWERPC_TRUE=
14359 DRUNTIME_CPU_POWERPC_FALSE='#'
14360 else
14361 DRUNTIME_CPU_POWERPC_TRUE='#'
14362 DRUNTIME_CPU_POWERPC_FALSE=
14363 fi
14364
14365 if test "$druntime_target_cpu_parsed" = "x86"; then
14366 DRUNTIME_CPU_X86_TRUE=
14367 DRUNTIME_CPU_X86_FALSE='#'
14368 else
14369 DRUNTIME_CPU_X86_TRUE='#'
14370 DRUNTIME_CPU_X86_FALSE=
14371 fi
14372
14373 if test "$druntime_target_cpu_parsed" = "s390x"; then
14374 DRUNTIME_CPU_SYSTEMZ_TRUE=
14375 DRUNTIME_CPU_SYSTEMZ_FALSE='#'
14376 else
14377 DRUNTIME_CPU_SYSTEMZ_TRUE='#'
14378 DRUNTIME_CPU_SYSTEMZ_FALSE=
14379 fi
14380
14381 if test "$druntime_target_cpu_parsed" = "s390"; then
14382 DRUNTIME_CPU_S390_TRUE=
14383 DRUNTIME_CPU_S390_FALSE='#'
14384 else
14385 DRUNTIME_CPU_S390_TRUE='#'
14386 DRUNTIME_CPU_S390_FALSE=
14387 fi
14388
14389
14390
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target OS" >&5
14392 $as_echo_n "checking for target OS... " >&6; }
14393 if ${druntime_cv_target_os+:} false; then :
14394 $as_echo_n "(cached) " >&6
14395 else
14396 druntime_cv_target_os=`echo $target_os | sed 's/^\([A-Za-z_]+\)/\1/'`
14397 fi
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_target_os" >&5
14399 $as_echo "$druntime_cv_target_os" >&6; }
14400 if test -z "$druntime_cv_target_os"; then :
14401 as_fn_error $? "can't detect target OS" "$LINENO" 5
14402 fi
14403
14404
14405
14406
14407 druntime_target_os_parsed=""
14408 case "$druntime_cv_target_os" in
14409 aix*) druntime_target_os_parsed="aix"
14410 ;;
14411 *android*)
14412 druntime_target_os_parsed="android"
14413 ;;
14414 darwin*) druntime_target_os_parsed="darwin"
14415 ;;
14416 dragonfly*)
14417 druntime_target_os_parsed="dragonflybsd"
14418 ;;
14419 freebsd*|k*bsd*-gnu)
14420 druntime_target_os_parsed="freebsd"
14421 ;;
14422 openbsd*)
14423 druntime_target_os_parsed="openbsd"
14424 ;;
14425 netbsd*)
14426 druntime_target_os_parsed="netbsd"
14427 ;;
14428 linux*) druntime_target_os_parsed="linux"
14429 ;;
14430 mingw*) druntime_target_os_parsed="mingw"
14431 ;;
14432 *solaris*) druntime_target_os_parsed="solaris"
14433 esac
14434 if test "$druntime_target_os_parsed" = "aix"; then
14435 DRUNTIME_OS_AIX_TRUE=
14436 DRUNTIME_OS_AIX_FALSE='#'
14437 else
14438 DRUNTIME_OS_AIX_TRUE='#'
14439 DRUNTIME_OS_AIX_FALSE=
14440 fi
14441
14442 if test "$druntime_target_os_parsed" = "android"; then
14443 DRUNTIME_OS_ANDROID_TRUE=
14444 DRUNTIME_OS_ANDROID_FALSE='#'
14445 else
14446 DRUNTIME_OS_ANDROID_TRUE='#'
14447 DRUNTIME_OS_ANDROID_FALSE=
14448 fi
14449
14450 if test "$druntime_target_os_parsed" = "darwin"; then
14451 DRUNTIME_OS_DARWIN_TRUE=
14452 DRUNTIME_OS_DARWIN_FALSE='#'
14453 else
14454 DRUNTIME_OS_DARWIN_TRUE='#'
14455 DRUNTIME_OS_DARWIN_FALSE=
14456 fi
14457
14458 if test "$druntime_target_os_parsed" = "dragonflybsd"; then
14459 DRUNTIME_OS_DRAGONFLYBSD_TRUE=
14460 DRUNTIME_OS_DRAGONFLYBSD_FALSE='#'
14461 else
14462 DRUNTIME_OS_DRAGONFLYBSD_TRUE='#'
14463 DRUNTIME_OS_DRAGONFLYBSD_FALSE=
14464 fi
14465
14466 if test "$druntime_target_os_parsed" = "freebsd"; then
14467 DRUNTIME_OS_FREEBSD_TRUE=
14468 DRUNTIME_OS_FREEBSD_FALSE='#'
14469 else
14470 DRUNTIME_OS_FREEBSD_TRUE='#'
14471 DRUNTIME_OS_FREEBSD_FALSE=
14472 fi
14473
14474 if test "$druntime_target_os_parsed" = "netbsd"; then
14475 DRUNTIME_OS_NETBSD_TRUE=
14476 DRUNTIME_OS_NETBSD_FALSE='#'
14477 else
14478 DRUNTIME_OS_NETBSD_TRUE='#'
14479 DRUNTIME_OS_NETBSD_FALSE=
14480 fi
14481
14482 if test "$druntime_target_os_parsed" = "openbsd"; then
14483 DRUNTIME_OS_OPENBSD_TRUE=
14484 DRUNTIME_OS_OPENBSD_FALSE='#'
14485 else
14486 DRUNTIME_OS_OPENBSD_TRUE='#'
14487 DRUNTIME_OS_OPENBSD_FALSE=
14488 fi
14489
14490 if test "$druntime_target_os_parsed" = "linux"; then
14491 DRUNTIME_OS_LINUX_TRUE=
14492 DRUNTIME_OS_LINUX_FALSE='#'
14493 else
14494 DRUNTIME_OS_LINUX_TRUE='#'
14495 DRUNTIME_OS_LINUX_FALSE=
14496 fi
14497
14498 if test "$druntime_target_os_parsed" = "mingw"; then
14499 DRUNTIME_OS_MINGW_TRUE=
14500 DRUNTIME_OS_MINGW_FALSE='#'
14501 else
14502 DRUNTIME_OS_MINGW_TRUE='#'
14503 DRUNTIME_OS_MINGW_FALSE=
14504 fi
14505
14506 if test "$druntime_target_os_parsed" = "solaris"; then
14507 DRUNTIME_OS_SOLARIS_TRUE=
14508 DRUNTIME_OS_SOLARIS_FALSE='#'
14509 else
14510 DRUNTIME_OS_SOLARIS_TRUE='#'
14511 DRUNTIME_OS_SOLARIS_FALSE=
14512 fi
14513
14514
14515 druntime_target_posix="no"
14516 case "$druntime_cv_target_os" in
14517 aix*|*bsd*|cygwin*|darwin*|dragonfly*|gnu*|linux*|skyos*|*solaris*|sysv*)
14518 druntime_target_posix="yes"
14519 ;;
14520 esac
14521 if test "$druntime_target_posix" = "yes"; then
14522 DRUNTIME_OS_POSIX_TRUE=
14523 DRUNTIME_OS_POSIX_FALSE='#'
14524 else
14525 DRUNTIME_OS_POSIX_TRUE='#'
14526 DRUNTIME_OS_POSIX_FALSE=
14527 fi
14528
14529
14530
14531
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GDC" >&5
14533 $as_echo_n "checking for thread model used by GDC... " >&6; }
14534 d_thread_model=`$GDC -v 2>&1 | sed -n 's/^Thread model: //p'`
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d_thread_model" >&5
14536 $as_echo "$d_thread_model" >&6; }
14537
14538 # Map from thread model to thread interface.
14539
14540 case $d_thread_model in
14541 aix) DCFG_THREAD_MODEL="Posix" ;;
14542 lynx) DCFG_THREAD_MODEL="Posix" ;;
14543 posix) DCFG_THREAD_MODEL="Posix" ;;
14544 single) DCFG_THREAD_MODEL="Single" ;;
14545 win32) DCFG_THREAD_MODEL="Win32" ;;
14546 # TODO: These targets need porting.
14547 dce|mipssde|rtems|tpf|vxworks)
14548 DCFG_THREAD_MODEL="Single" ;;
14549 *) as_fn_error "Thread implementation '$d_thread_model' not recognised" "$LINENO" 5 ;;
14550 esac
14551
14552
14553
14554
14555 ac_ext=c
14556 ac_cpp='$CPP $CPPFLAGS'
14557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14560
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM unwinder" >&5
14562 $as_echo_n "checking for ARM unwinder... " >&6; }
14563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14564 /* end confdefs.h. */
14565 #include <unwind.h>
14566 int
14567 main ()
14568 {
14569
14570 #if __ARM_EABI_UNWINDER__
14571 #error Yes, it is.
14572 #endif
14573
14574 ;
14575 return 0;
14576 }
14577 _ACEOF
14578 if ac_fn_c_try_compile "$LINENO"; then :
14579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14580 $as_echo "no" >&6; }
14581 DCFG_ARM_EABI_UNWINDER=false
14582 else
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14584 $as_echo "yes" >&6; }
14585 DCFG_ARM_EABI_UNWINDER=true
14586 fi
14587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14588
14589 if test "$DCFG_ARM_EABI_UNWINDER" = "true"; then
14590 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE=
14591 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE='#'
14592 else
14593 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE='#'
14594 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE=
14595 fi
14596
14597 ac_ext=c
14598 ac_cpp='$CPP $CPPFLAGS'
14599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14602
14603
14604
14605
14606
14607 ac_ext=c
14608 ac_cpp='$CPP $CPPFLAGS'
14609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14612
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minfo section bracketing" >&5
14614 $as_echo_n "checking for minfo section bracketing... " >&6; }
14615 case "$druntime_cv_target_os" in
14616 darwin*)
14617 section="__DATA,__minfodata"
14618 start="section\$start\$__DATA\$__minfodata"
14619 stop="section\$end\$__DATA\$__minfodata"
14620 ;;
14621 *)
14622 section="minfo"
14623 start="__start_minfo"
14624 stop="__stop_minfo"
14625 ;;
14626 esac
14627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14628 /* end confdefs.h. */
14629
14630 void* module_info_ptr __attribute__((section ("$section")));
14631 extern void* start_minfo __asm__("$start") __attribute__((visibility ("hidden")));
14632 extern void* stop_minfo __asm__("$stop") __attribute__((visibility ("hidden")));
14633
14634 int main()
14635 {
14636 // Never run, just to prevent compiler from optimizing access
14637 return (int)(&stop_minfo - &start_minfo);
14638 }
14639
14640 _ACEOF
14641 if ac_fn_c_try_link "$LINENO"; then :
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14643 $as_echo "yes" >&6; }
14644 DCFG_MINFO_BRACKETING=true
14645 else
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14647 $as_echo "no" >&6; }
14648 DCFG_MINFO_BRACKETING=false
14649 fi
14650 rm -f core conftest.err conftest.$ac_objext \
14651 conftest$ac_exeext conftest.$ac_ext
14652
14653 if test "$DCFG_MINFO_BRACKETING" = "true"; then
14654 DRUNTIME_OS_MINFO_BRACKETING_TRUE=
14655 DRUNTIME_OS_MINFO_BRACKETING_FALSE='#'
14656 else
14657 DRUNTIME_OS_MINFO_BRACKETING_TRUE='#'
14658 DRUNTIME_OS_MINFO_BRACKETING_FALSE=
14659 fi
14660
14661 ac_ext=c
14662 ac_cpp='$CPP $CPPFLAGS'
14663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14666
14667
14668
14669 ac_ext=c
14670 ac_cpp='$CPP $CPPFLAGS'
14671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14674
14675 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>
14676 "
14677 if test "x$ac_cv_member_struct_dl_phdr_info_dlpi_tls_modid" = xyes; then :
14678 DCFG_DLPI_TLS_MODID=true
14679 else
14680 DCFG_DLPI_TLS_MODID=false
14681 fi
14682
14683
14684 ac_ext=c
14685 ac_cpp='$CPP $CPPFLAGS'
14686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14689
14690
14691
14692 case $target in
14693 i?86-*-solaris2.* | x86_64-*-solaris2.*)
14694 # 64-bit Solaris/x86 ld breaks calls to __tls_get_addr with non-TLS
14695 # relocs. Work around by disabling TLS transitions. Not necessary
14696 # on 32-bit x86, but cannot be distinguished reliably in specs.
14697 druntime_ld_prog=`$CC -print-prog-name=ld`
14698 druntime_ld_gld=no
14699 druntime_ld_relax_transtls=no
14700 if test -n "$druntime_ld_prog" \
14701 && $druntime_ld_prog -v 2>&1 | grep GNU > /dev/null 2>&1; then
14702 druntime_ld_gld=yes
14703 else
14704 echo 'int main (void) { return 0; }' > conftest.c
14705 save_LDFLAGS="$LDFLAGS"
14706 LDFLAGS="$LDFLAGS -Wl,-z,relax=transtls"
14707 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c > /dev/null 2>&1; then
14708 druntime_ld_relax_transtls=yes
14709 fi
14710 LDFLAGS="$save_LDFLAGS"
14711 rm -f conftest.c conftest
14712 fi
14713 if test "$druntime_ld_relax_transtls" = "yes"; then
14714 OS_LINK_SPEC='-z relax=transtls'
14715 fi
14716 ;;
14717 esac
14718
14719
14720
14721
14722 OS_DFLAGS=
14723
14724 case "$druntime_cv_target_os" in
14725 linux*) druntime_target_os_parsed="linux"
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getrandom" >&5
14727 $as_echo_n "checking for getrandom... " >&6; }
14728 ac_ext=c
14729 ac_cpp='$CPP $CPPFLAGS'
14730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14733
14734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14735 /* end confdefs.h. */
14736 #include <sys/syscall.h>
14737 #include <unistd.h>
14738 int
14739 main ()
14740 {
14741
14742 syscall (__NR_getrandom);
14743
14744 ;
14745 return 0;
14746 }
14747 _ACEOF
14748 if ac_fn_c_try_compile "$LINENO"; then :
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14750 $as_echo "yes" >&6; }
14751 else
14752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14753 $as_echo "no" >&6; }
14754 OS_DFLAGS=-fversion=linux_legacy_emulate_getrandom
14755 fi
14756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14757 ac_ext=c
14758 ac_cpp='$CPP $CPPFLAGS'
14759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14762
14763 ;;
14764 esac
14765
14766
14767
14768
14769 ac_ext=c
14770 ac_cpp='$CPP $CPPFLAGS'
14771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14774
14775 DCFG_HAVE_QSORT_R=false
14776 ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r"
14777 if test "x$ac_cv_func_qsort_r" = xyes; then :
14778 DCFG_HAVE_QSORT_R=true
14779 fi
14780
14781
14782 ac_ext=c
14783 ac_cpp='$CPP $CPPFLAGS'
14784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14787
14788
14789
14790
14791
14792 gdc_save_DFLAGS=$GDCFLAGS
14793 GDCFLAGS="-fno-druntime -nostdinc -I $phobos_cv_abs_srcdir/libdruntime -nophoboslib $GDCFLAGS"
14794
14795 ac_ext=d
14796 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
14797 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14798 ac_compiler_gnu=yes
14799
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing malloc" >&5
14801 $as_echo_n "checking for library containing malloc... " >&6; }
14802 if ${ac_cv_search_malloc+:} false; then :
14803 $as_echo_n "(cached) " >&6
14804 else
14805 ac_func_search_save_LIBS=$LIBS
14806 cat > conftest.$ac_ext <<_ACEOF
14807 module object;
14808 extern(C) int malloc();
14809
14810 extern(C) int main() {
14811 malloc(); return 0;
14812 }
14813 _ACEOF
14814 for ac_lib in '' c; do
14815 if test -z "$ac_lib"; then
14816 ac_res="none required"
14817 else
14818 ac_res=-l$ac_lib
14819 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14820 fi
14821 if ac_fn_d_try_link "$LINENO"; then :
14822 ac_cv_search_malloc=$ac_res
14823 fi
14824 rm -f core conftest.err conftest.$ac_objext \
14825 conftest$ac_exeext
14826 if ${ac_cv_search_malloc+:} false; then :
14827 break
14828 fi
14829 done
14830 if ${ac_cv_search_malloc+:} false; then :
14831
14832 else
14833 ac_cv_search_malloc=no
14834 fi
14835 rm conftest.$ac_ext
14836 LIBS=$ac_func_search_save_LIBS
14837 fi
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc" >&5
14839 $as_echo "$ac_cv_search_malloc" >&6; }
14840 ac_res=$ac_cv_search_malloc
14841 if test "$ac_res" != no; then :
14842 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14843
14844 fi
14845
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
14847 $as_echo_n "checking for library containing pthread_create... " >&6; }
14848 if ${ac_cv_search_pthread_create+:} false; then :
14849 $as_echo_n "(cached) " >&6
14850 else
14851 ac_func_search_save_LIBS=$LIBS
14852 cat > conftest.$ac_ext <<_ACEOF
14853 module object;
14854 extern(C) int pthread_create();
14855
14856 extern(C) int main() {
14857 pthread_create(); return 0;
14858 }
14859 _ACEOF
14860 for ac_lib in '' pthread; do
14861 if test -z "$ac_lib"; then
14862 ac_res="none required"
14863 else
14864 ac_res=-l$ac_lib
14865 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14866 fi
14867 if ac_fn_d_try_link "$LINENO"; then :
14868 ac_cv_search_pthread_create=$ac_res
14869 fi
14870 rm -f core conftest.err conftest.$ac_objext \
14871 conftest$ac_exeext
14872 if ${ac_cv_search_pthread_create+:} false; then :
14873 break
14874 fi
14875 done
14876 if ${ac_cv_search_pthread_create+:} false; then :
14877
14878 else
14879 ac_cv_search_pthread_create=no
14880 fi
14881 rm conftest.$ac_ext
14882 LIBS=$ac_func_search_save_LIBS
14883 fi
14884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
14885 $as_echo "$ac_cv_search_pthread_create" >&6; }
14886 ac_res=$ac_cv_search_pthread_create
14887 if test "$ac_res" != no; then :
14888 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14889
14890 fi
14891
14892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cosf" >&5
14893 $as_echo_n "checking for library containing cosf... " >&6; }
14894 if ${ac_cv_search_cosf+:} false; then :
14895 $as_echo_n "(cached) " >&6
14896 else
14897 ac_func_search_save_LIBS=$LIBS
14898 cat > conftest.$ac_ext <<_ACEOF
14899 module object;
14900 extern(C) int cosf();
14901
14902 extern(C) int main() {
14903 cosf(); return 0;
14904 }
14905 _ACEOF
14906 for ac_lib in '' m; do
14907 if test -z "$ac_lib"; then
14908 ac_res="none required"
14909 else
14910 ac_res=-l$ac_lib
14911 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14912 fi
14913 if ac_fn_d_try_link "$LINENO"; then :
14914 ac_cv_search_cosf=$ac_res
14915 fi
14916 rm -f core conftest.err conftest.$ac_objext \
14917 conftest$ac_exeext
14918 if ${ac_cv_search_cosf+:} false; then :
14919 break
14920 fi
14921 done
14922 if ${ac_cv_search_cosf+:} false; then :
14923
14924 else
14925 ac_cv_search_cosf=no
14926 fi
14927 rm conftest.$ac_ext
14928 LIBS=$ac_func_search_save_LIBS
14929 fi
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cosf" >&5
14931 $as_echo "$ac_cv_search_cosf" >&6; }
14932 ac_res=$ac_cv_search_cosf
14933 if test "$ac_res" != no; then :
14934 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14935
14936 fi
14937
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14939 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14940 if ${ac_cv_search_clock_gettime+:} false; then :
14941 $as_echo_n "(cached) " >&6
14942 else
14943 ac_func_search_save_LIBS=$LIBS
14944 cat > conftest.$ac_ext <<_ACEOF
14945 module object;
14946 extern(C) int clock_gettime();
14947
14948 extern(C) int main() {
14949 clock_gettime(); return 0;
14950 }
14951 _ACEOF
14952 for ac_lib in '' rt; do
14953 if test -z "$ac_lib"; then
14954 ac_res="none required"
14955 else
14956 ac_res=-l$ac_lib
14957 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14958 fi
14959 if ac_fn_d_try_link "$LINENO"; then :
14960 ac_cv_search_clock_gettime=$ac_res
14961 fi
14962 rm -f core conftest.err conftest.$ac_objext \
14963 conftest$ac_exeext
14964 if ${ac_cv_search_clock_gettime+:} false; then :
14965 break
14966 fi
14967 done
14968 if ${ac_cv_search_clock_gettime+:} false; then :
14969
14970 else
14971 ac_cv_search_clock_gettime=no
14972 fi
14973 rm conftest.$ac_ext
14974 LIBS=$ac_func_search_save_LIBS
14975 fi
14976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14977 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14978 ac_res=$ac_cv_search_clock_gettime
14979 if test "$ac_res" != no; then :
14980 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14981
14982 fi
14983
14984
14985 # This checks to see if the host supports the compiler-generated builtins
14986 # for atomic operations for various integral sizes. Note, this is intended
14987 # to be an all-or-nothing switch, so all the atomic operations that are
14988 # used should be checked.
14989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for byte" >&5
14990 $as_echo_n "checking for atomic builtins for byte... " >&6; }
14991 if ${druntime_cv_atomic_byte+:} false; then :
14992 $as_echo_n "(cached) " >&6
14993 else
14994
14995 cat > conftest.$ac_ext <<_ACEOF
14996 module object;
14997 import gcc.builtins;
14998
14999 extern(C) int main() {
15000
15001 shared(byte) c1;
15002 byte c2, c3;
15003 __atomic_compare_exchange_1(&c1, &c2, c3, false, 5, 5);
15004 __atomic_load_1(&c1, 5);
15005 __atomic_store_1(&c1, c2, 5);
15006 return 0;
15007
15008 }
15009 _ACEOF
15010 if ac_fn_d_try_link "$LINENO"; then :
15011 druntime_cv_atomic_byte=yes
15012 else
15013 druntime_cv_atomic_byte=no
15014 fi
15015 rm -f core conftest.err conftest.$ac_objext \
15016 conftest$ac_exeext conftest.$ac_ext
15017
15018 fi
15019
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_byte" >&5
15021 $as_echo "$druntime_cv_atomic_byte" >&6; }
15022
15023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5
15024 $as_echo_n "checking for atomic builtins for short... " >&6; }
15025 if ${druntime_cv_atomic_short+:} false; then :
15026 $as_echo_n "(cached) " >&6
15027 else
15028
15029 cat > conftest.$ac_ext <<_ACEOF
15030 module object;
15031 import gcc.builtins;
15032
15033 extern(C) int main() {
15034
15035 shared(short) c1;
15036 short c2, c3;
15037 __atomic_compare_exchange_2(&c1, &c2, c3, false, 5, 5);
15038 __atomic_load_2(&c1, 5);
15039 __atomic_store_2(&c1, c2, 5);
15040 return 0;
15041
15042 }
15043 _ACEOF
15044 if ac_fn_d_try_link "$LINENO"; then :
15045 druntime_cv_atomic_short=yes
15046 else
15047 druntime_cv_atomic_short=no
15048 fi
15049 rm -f core conftest.err conftest.$ac_objext \
15050 conftest$ac_exeext conftest.$ac_ext
15051
15052 fi
15053
15054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_short" >&5
15055 $as_echo "$druntime_cv_atomic_short" >&6; }
15056
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5
15058 $as_echo_n "checking for atomic builtins for int... " >&6; }
15059 if ${druntime_cv_atomic_int+:} false; then :
15060 $as_echo_n "(cached) " >&6
15061 else
15062
15063 cat > conftest.$ac_ext <<_ACEOF
15064 module object;
15065 import gcc.builtins;
15066
15067 extern(C) int main() {
15068
15069 shared(int) c1;
15070 int c2, c3;
15071 __atomic_compare_exchange_4(&c1, &c2, c3, false, 5, 5);
15072 __atomic_load_4(&c1, 5);
15073 __atomic_store_4(&c1, c2, 5);
15074 return 0;
15075
15076 }
15077 _ACEOF
15078 if ac_fn_d_try_link "$LINENO"; then :
15079 druntime_cv_atomic_int=yes
15080 else
15081 druntime_cv_atomic_int=no
15082 fi
15083 rm -f core conftest.err conftest.$ac_objext \
15084 conftest$ac_exeext conftest.$ac_ext
15085
15086 fi
15087
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_int" >&5
15089 $as_echo "$druntime_cv_atomic_int" >&6; }
15090
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long" >&5
15092 $as_echo_n "checking for atomic builtins for long... " >&6; }
15093 if ${druntime_cv_atomic_long+:} false; then :
15094 $as_echo_n "(cached) " >&6
15095 else
15096
15097 cat > conftest.$ac_ext <<_ACEOF
15098 module object;
15099 import gcc.builtins;
15100
15101 extern(C) int main() {
15102
15103 shared(long) c1;
15104 long c2, c3;
15105 __atomic_compare_exchange_8(&c1, &c2, c3, false, 5, 5);
15106 __atomic_load_8(&c1, 5);
15107 __atomic_store_8(&c1, c2, 5);
15108 return 0;
15109
15110 }
15111 _ACEOF
15112 if ac_fn_d_try_link "$LINENO"; then :
15113 druntime_cv_atomic_long=yes
15114 else
15115 druntime_cv_atomic_long=no
15116 fi
15117 rm -f core conftest.err conftest.$ac_objext \
15118 conftest$ac_exeext conftest.$ac_ext
15119
15120 fi
15121
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_long" >&5
15123 $as_echo "$druntime_cv_atomic_long" >&6; }
15124
15125 # Have atomic builtin support if all but the long test above passes.
15126 DCFG_HAVE_ATOMIC_BUILTINS=false
15127 if test "$druntime_cv_atomic_byte" = yes \
15128 && test "$druntime_cv_atomic_short" = yes \
15129 && test "$druntime_cv_atomic_int" = yes; then \
15130 DCFG_HAVE_ATOMIC_BUILTINS=true
15131 fi
15132
15133 # Have 64-bit atomic support if the long test above passes.
15134 DCFG_HAVE_64BIT_ATOMICS=false
15135 if test "$druntime_cv_atomic_long" = yes; then
15136 DCFG_HAVE_64BIT_ATOMICS=true
15137 fi
15138
15139
15140
15141
15142 ac_ext=c
15143 ac_cpp='$CPP $CPPFLAGS'
15144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15147
15148
15149 GDCFLAGS=$gdc_save_DFLAGS
15150
15151
15152
15153
15154 # Check whether --with-libatomic was given.
15155 if test "${with_libatomic+set}" = set; then :
15156 withval=$with_libatomic;
15157 fi
15158
15159
15160 DCFG_HAVE_LIBATOMIC=false
15161 LIBATOMIC=
15162 if test "x$enable_libatomic" != "xno" && test "x$with_libatomic" != "xno"; then :
15163
15164 DCFG_HAVE_LIBATOMIC=true
15165 LIBATOMIC=../../libatomic/libatomic_convenience.la
15166
15167 else
15168
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic" >&5
15170 $as_echo_n "checking for libatomic... " >&6; }
15171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15172 $as_echo "disabled" >&6; }
15173
15174 fi
15175
15176
15177
15178
15179
15180 ac_ext=c
15181 ac_cpp='$CPP $CPPFLAGS'
15182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15185
15186 BACKTRACE_SUPPORTED=false
15187 BACKTRACE_USES_MALLOC=false
15188 BACKTRACE_SUPPORTS_THREADS=false
15189 LIBBACKTRACE=""
15190
15191
15192 # Check whether --with-libbacktrace was given.
15193 if test "${with_libbacktrace+set}" = set; then :
15194 withval=$with_libbacktrace;
15195 fi
15196
15197
15198 if test "x$enable_libbacktrace" != "xno" && test "x$with_libbacktrace" != "xno"; then :
15199
15200 LIBBACKTRACE=../../libbacktrace/libbacktrace.la
15201
15202 gdc_save_CPPFLAGS=$CPPFLAGS
15203 CPPFLAGS="$CPPFLAGS -I../libbacktrace "
15204
15205 ac_fn_c_check_header_mongrel "$LINENO" "backtrace-supported.h" "ac_cv_header_backtrace_supported_h" "$ac_includes_default"
15206 if test "x$ac_cv_header_backtrace_supported_h" = xyes; then :
15207 have_libbacktrace_h=true
15208 else
15209 have_libbacktrace_h=false
15210 fi
15211
15212
15213
15214 if $have_libbacktrace_h; then
15215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTED" >&5
15216 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTED... " >&6; }
15217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15218 /* end confdefs.h. */
15219
15220 #include <backtrace-supported.h>
15221 #if BACKTRACE_SUPPORTED
15222 FOUND_LIBBACKTRACE_RESULT_GDC
15223 #endif
15224
15225 _ACEOF
15226 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15227 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
15228 BACKTRACE_SUPPORTED=true
15229 else
15230 BACKTRACE_SUPPORTED=false
15231 fi
15232 rm -f conftest*
15233
15234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTED" >&5
15235 $as_echo "$BACKTRACE_SUPPORTED" >&6; }
15236
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_USES_MALLOC" >&5
15238 $as_echo_n "checking libbacktrace: BACKTRACE_USES_MALLOC... " >&6; }
15239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15240 /* end confdefs.h. */
15241
15242 #include <backtrace-supported.h>
15243 #if BACKTRACE_USES_MALLOC
15244 FOUND_LIBBACKTRACE_RESULT_GDC
15245 #endif
15246
15247 _ACEOF
15248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15249 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
15250 BACKTRACE_USES_MALLOC=true
15251 else
15252 BACKTRACE_USES_MALLOC=false
15253 fi
15254 rm -f conftest*
15255
15256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_USES_MALLOC" >&5
15257 $as_echo "$BACKTRACE_USES_MALLOC" >&6; }
15258
15259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTS_THREADS" >&5
15260 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTS_THREADS... " >&6; }
15261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15262 /* end confdefs.h. */
15263
15264 #include <backtrace-supported.h>
15265 #if BACKTRACE_SUPPORTS_THREADS
15266 FOUND_LIBBACKTRACE_RESULT_GDC
15267 #endif
15268
15269 _ACEOF
15270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15271 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
15272 BACKTRACE_SUPPORTS_THREADS=true
15273 else
15274 BACKTRACE_SUPPORTS_THREADS=false
15275 fi
15276 rm -f conftest*
15277
15278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTS_THREADS" >&5
15279 $as_echo "$BACKTRACE_SUPPORTS_THREADS" >&6; }
15280 fi
15281 CPPFLAGS=$gdc_save_CPPFLAGS
15282
15283 else
15284
15285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbacktrace" >&5
15286 $as_echo_n "checking for libbacktrace... " >&6; }
15287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15288 $as_echo "disabled" >&6; }
15289
15290 fi
15291
15292
15293
15294
15295
15296 ac_ext=c
15297 ac_cpp='$CPP $CPPFLAGS'
15298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15301
15302
15303
15304 # Libtool has already checked this, so re-use the inferred dlopen lib.
15305 if test "x$enable_dlopen" = "xyes" && test -n "$lt_cv_dlopen_libs"; then :
15306
15307 LIBS="$LIBS $lt_cv_dlopen_libs"
15308
15309 fi
15310
15311
15312 druntime_check_both=no
15313 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
15314 if test "x$ac_cv_func_connect" = xyes; then :
15315
15316 else
15317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
15318 $as_echo_n "checking for connect in -lsocket... " >&6; }
15319 if ${ac_cv_lib_socket_connect+:} false; then :
15320 $as_echo_n "(cached) " >&6
15321 else
15322 ac_check_lib_save_LIBS=$LIBS
15323 LIBS="-lsocket $LIBS"
15324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15325 /* end confdefs.h. */
15326
15327 /* Override any GCC internal prototype to avoid an error.
15328 Use char because int might match the return type of a GCC
15329 builtin and then its argument prototype would still apply. */
15330 #ifdef __cplusplus
15331 extern "C"
15332 #endif
15333 char connect ();
15334 int
15335 main ()
15336 {
15337 return connect ();
15338 ;
15339 return 0;
15340 }
15341 _ACEOF
15342 if ac_fn_c_try_link "$LINENO"; then :
15343 ac_cv_lib_socket_connect=yes
15344 else
15345 ac_cv_lib_socket_connect=no
15346 fi
15347 rm -f core conftest.err conftest.$ac_objext \
15348 conftest$ac_exeext conftest.$ac_ext
15349 LIBS=$ac_check_lib_save_LIBS
15350 fi
15351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
15352 $as_echo "$ac_cv_lib_socket_connect" >&6; }
15353 if test "x$ac_cv_lib_socket_connect" = xyes; then :
15354 LIBS="$LIBS -lsocket"
15355 else
15356 druntime_check_both=yes
15357 fi
15358
15359 fi
15360
15361 if test "$druntime_check_both" = "yes"; then
15362 druntime_old_libs=$LIBS
15363 LIBS="$LIBS -lsocket -lnsl"
15364 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
15365 if test "x$ac_cv_func_accept" = xyes; then :
15366
15367 else
15368 LIBS=$druntime_old_libs
15369 fi
15370
15371 fi
15372 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
15373 if test "x$ac_cv_func_gethostbyname" = xyes; then :
15374
15375 else
15376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
15377 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
15378 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
15379 $as_echo_n "(cached) " >&6
15380 else
15381 ac_check_lib_save_LIBS=$LIBS
15382 LIBS="-lnsl $LIBS"
15383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15384 /* end confdefs.h. */
15385
15386 /* Override any GCC internal prototype to avoid an error.
15387 Use char because int might match the return type of a GCC
15388 builtin and then its argument prototype would still apply. */
15389 #ifdef __cplusplus
15390 extern "C"
15391 #endif
15392 char gethostbyname ();
15393 int
15394 main ()
15395 {
15396 return gethostbyname ();
15397 ;
15398 return 0;
15399 }
15400 _ACEOF
15401 if ac_fn_c_try_link "$LINENO"; then :
15402 ac_cv_lib_nsl_gethostbyname=yes
15403 else
15404 ac_cv_lib_nsl_gethostbyname=no
15405 fi
15406 rm -f core conftest.err conftest.$ac_objext \
15407 conftest$ac_exeext conftest.$ac_ext
15408 LIBS=$ac_check_lib_save_LIBS
15409 fi
15410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
15411 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
15412 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
15413 LIBS="$LIBS -lnsl"
15414 fi
15415
15416 fi
15417
15418
15419
15420 # Keep this in sync with core/thread.d, set druntime_fiber_asm_external to
15421 # "yes" for targets that have 'version = AsmExternal'.
15422 druntime_fiber_asm_external=no
15423 case "$target_cpu" in
15424 aarch64* | \
15425 arm* | \
15426 i[34567]86|x86_64 | \
15427 powerpc)
15428 druntime_fiber_asm_external=yes
15429 ;;
15430 esac
15431 if test "$druntime_fiber_asm_external" = no; then
15432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing swapcontext" >&5
15433 $as_echo_n "checking for library containing swapcontext... " >&6; }
15434 if ${ac_cv_search_swapcontext+:} false; then :
15435 $as_echo_n "(cached) " >&6
15436 else
15437 ac_func_search_save_LIBS=$LIBS
15438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15439 /* end confdefs.h. */
15440
15441 /* Override any GCC internal prototype to avoid an error.
15442 Use char because int might match the return type of a GCC
15443 builtin and then its argument prototype would still apply. */
15444 #ifdef __cplusplus
15445 extern "C"
15446 #endif
15447 char swapcontext ();
15448 int
15449 main ()
15450 {
15451 return swapcontext ();
15452 ;
15453 return 0;
15454 }
15455 _ACEOF
15456 for ac_lib in '' c ucontext; do
15457 if test -z "$ac_lib"; then
15458 ac_res="none required"
15459 else
15460 ac_res=-l$ac_lib
15461 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15462 fi
15463 if ac_fn_c_try_link "$LINENO"; then :
15464 ac_cv_search_swapcontext=$ac_res
15465 fi
15466 rm -f core conftest.err conftest.$ac_objext \
15467 conftest$ac_exeext
15468 if ${ac_cv_search_swapcontext+:} false; then :
15469 break
15470 fi
15471 done
15472 if ${ac_cv_search_swapcontext+:} false; then :
15473
15474 else
15475 ac_cv_search_swapcontext=no
15476 fi
15477 rm conftest.$ac_ext
15478 LIBS=$ac_func_search_save_LIBS
15479 fi
15480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_swapcontext" >&5
15481 $as_echo "$ac_cv_search_swapcontext" >&6; }
15482 ac_res=$ac_cv_search_swapcontext
15483 if test "$ac_res" != no; then :
15484 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15485
15486 else
15487 as_fn_error $? "swapcontext required but not found" "$LINENO" 5
15488 fi
15489
15490 fi
15491
15492
15493 ac_ext=c
15494 ac_cpp='$CPP $CPPFLAGS'
15495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15498
15499 LIBZ=""
15500
15501
15502 # Check whether --with-target-system-zlib was given.
15503 if test "${with_target_system_zlib+set}" = set; then :
15504 withval=$with_target_system_zlib;
15505 else
15506 with_target_system_zlib=no
15507 fi
15508
15509
15510 case "$with_target_system_zlib" in
15511 yes|no|auto) ;;
15512 *) as_fn_error $? "Invalid argument for --with-target-system-zlib" "$LINENO" 5 ;;
15513 esac
15514
15515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system zlib" >&5
15516 $as_echo_n "checking for system zlib... " >&6; }
15517 save_LIBS=$LIBS
15518 LIBS="$LIBS -lz"
15519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15520 /* end confdefs.h. */
15521 #include <zlib.h>
15522 int
15523 main ()
15524 {
15525 gzopen("none", "rb")
15526 ;
15527 return 0;
15528 }
15529 _ACEOF
15530 if ac_fn_c_try_link "$LINENO"; then :
15531
15532 if test "$cross_compiling" = yes; then :
15533 system_zlib_found=no
15534
15535 else
15536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15537 /* end confdefs.h. */
15538
15539 #include <zlib.h>
15540 int main() {
15541 gzFile file = gzopen("none", "rb");
15542 return 0;
15543 }
15544
15545 _ACEOF
15546 if ac_fn_c_try_run "$LINENO"; then :
15547 system_zlib_found=yes
15548 else
15549 system_zlib_found=no
15550 fi
15551 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15552 conftest.$ac_objext conftest.beam conftest.$ac_ext
15553 fi
15554
15555
15556 else
15557 system_zlib_found=no
15558 fi
15559 rm -f core conftest.err conftest.$ac_objext \
15560 conftest$ac_exeext conftest.$ac_ext
15561 LIBS=$save_LIBS
15562
15563 if test x$system_zlib_found = xyes && test x$with_target_system_zlib != xno; then
15564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15565 $as_echo "found" >&6; }
15566 LIBS="$LIBS -lz"
15567 elif test x$system_zlib_found = xno && test x$with_target_system_zlib = xyes; then
15568 as_fn_error $? "system zlib required but not found" "$LINENO" 5
15569 else
15570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15571 $as_echo "just compiled" >&6; }
15572 LIBZ=../../zlib/libz_convenience.la
15573 fi
15574
15575
15576 ac_ext=c
15577 ac_cpp='$CPP $CPPFLAGS'
15578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15581
15582
15583
15584
15585
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking D GCC version" >&5
15587 $as_echo_n "checking D GCC version... " >&6; }
15588 gcc_version=`eval $get_gcc_base_ver $srcdir/../gcc/BASE-VER`
15589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_version" >&5
15590 $as_echo "$gcc_version" >&6; }
15591
15592
15593
15594 # Check whether --with-cross-host was given.
15595 if test "${with_cross_host+set}" = set; then :
15596 withval=$with_cross_host;
15597 fi
15598
15599
15600 libphobos_toolexecdir=no
15601 libphobos_toolexeclibdir=no
15602
15603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
15604 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
15605 # Check whether --enable-version-specific-runtime-libs was given.
15606 if test "${enable_version_specific_runtime_libs+set}" = set; then :
15607 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
15608 yes) version_specific_libs=yes ;;
15609 no) version_specific_libs=no ;;
15610 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
15611 esac
15612 else
15613 version_specific_libs=no
15614 fi
15615
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
15617 $as_echo "$version_specific_libs" >&6; }
15618
15619
15620 # Check whether --with-toolexeclibdir was given.
15621 if test "${with_toolexeclibdir+set}" = set; then :
15622 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
15623 /)
15624 ;;
15625 */)
15626 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
15627 ;;
15628 esac
15629 else
15630 with_toolexeclibdir=no
15631 fi
15632
15633
15634
15635 # Version-specific runtime libs processing.
15636 if test $version_specific_libs = yes; then
15637 libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15638 libphobos_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
15639 else
15640 # Calculate libphobos_toolexecdir, libphobos_toolexeclibdir
15641 # Install a library built with a cross compiler in tooldir, not libdir.
15642 if test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
15643 libphobos_toolexecdir='${exec_prefix}/${host_alias}'
15644 case ${with_toolexeclibdir} in
15645 no)
15646 libphobos_toolexeclibdir='${toolexecdir}/lib'
15647 ;;
15648 *)
15649 libphobos_toolexeclibdir=${with_toolexeclibdir}
15650 ;;
15651 esac
15652 else
15653 libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15654 libphobos_toolexeclibdir='${libdir}'
15655 fi
15656 multi_os_directory=`$GDC -print-multi-os-directory`
15657 case $multi_os_directory in
15658 .) ;; # Avoid trailing /.
15659 *) libphobos_toolexeclibdir=${libphobos_toolexeclibdir}/${multi_os_directory} ;;
15660 esac
15661 fi
15662
15663
15664
15665 # Default case for install directory for D sources files.
15666 gdc_include_dir='$(libdir)/gcc/${target_alias}/${gcc_version}/include/d'
15667
15668
15669
15670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-libphobos" >&5
15671 $as_echo_n "checking for --enable-libphobos... " >&6; }
15672 # Check whether --enable-libphobos was given.
15673 if test "${enable_libphobos+set}" = set; then :
15674 enableval=$enable_libphobos;
15675 fi
15676
15677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libphobos" >&5
15678 $as_echo "$enable_libphobos" >&6; }
15679
15680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libphobos-druntime-only" >&5
15681 $as_echo_n "checking for --with-libphobos-druntime-only... " >&6; }
15682
15683 # Check whether --with-libphobos-druntime-only was given.
15684 if test "${with_libphobos_druntime_only+set}" = set; then :
15685 withval=$with_libphobos_druntime_only;
15686 else
15687 with_libphobos_druntime_only=auto
15688 fi
15689
15690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_libphobos_druntime_only" >&5
15691 $as_echo "$with_libphobos_druntime_only" >&6; }
15692
15693 case "$with_libphobos_druntime_only" in
15694 yes|no|auto) ;;
15695 *) as_fn_error $? "Invalid argument for --with-libphobos-druntime-only" "$LINENO" 5 ;;
15696 esac
15697
15698 # See if supported.
15699 unset LIBPHOBOS_SUPPORTED
15700 unset LIBDRUNTIME_ONLY
15701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for host support for libphobos" >&5
15702 $as_echo_n "checking for host support for libphobos... " >&6; }
15703 . ${srcdir}/configure.tgt
15704 case ${host} in
15705 x86_64-*-solaris2.* | i?86-*-solaris2.*)
15706 # 64-bit D execution fails with Solaris ld without -z relax=transtls support.
15707 if test "$druntime_ld_gld" = "no" && test "$druntime_ld_relax_transtls" = "no"; then
15708 LIBPHOBOS_SUPPORTED=no
15709 fi
15710 ;;
15711 esac
15712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPHOBOS_SUPPORTED" >&5
15713 $as_echo "$LIBPHOBOS_SUPPORTED" >&6; }
15714
15715 # Decide if it's usable.
15716 case $LIBPHOBOS_SUPPORTED:$enable_libphobos in
15717 *:no) use_libphobos=no ;;
15718 *:yes) use_libphobos=yes ;;
15719 yes:*) use_libphobos=yes ;;
15720 *:*) use_libphobos=no ;;
15721 esac
15722 if test x$use_libphobos = xyes; then
15723 ENABLE_LIBPHOBOS_TRUE=
15724 ENABLE_LIBPHOBOS_FALSE='#'
15725 else
15726 ENABLE_LIBPHOBOS_TRUE='#'
15727 ENABLE_LIBPHOBOS_FALSE=
15728 fi
15729
15730
15731 # Decide if only libdruntime should be built.
15732 case $LIBDRUNTIME_ONLY:$with_libphobos_druntime_only in
15733 *:no) only_libdruntime=no ;;
15734 *:yes) only_libdruntime=yes ;;
15735 yes:*) only_libdruntime=yes ;;
15736 *:*) only_libdruntime=no ;;
15737 esac
15738 if test x$only_libdruntime = xyes; then
15739 ENABLE_LIBDRUNTIME_ONLY_TRUE=
15740 ENABLE_LIBDRUNTIME_ONLY_FALSE='#'
15741 else
15742 ENABLE_LIBDRUNTIME_ONLY_TRUE='#'
15743 ENABLE_LIBDRUNTIME_ONLY_FALSE=
15744 fi
15745
15746
15747 # Enable expensive internal checks
15748 # Check whether --enable-libphobos-checking was given.
15749 if test "${enable_libphobos_checking+set}" = set; then :
15750 enableval=$enable_libphobos_checking; ac_checking_flags="${enableval}"
15751 else
15752 ac_checking_flags=release
15753 fi
15754
15755 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
15756 for check in release $ac_checking_flags
15757 do
15758 case $check in
15759 # These set all the flags to specific states
15760 yes|all) RELEASE_FLAG="-fno-release" ; ASSERT_FLAG= ;
15761 VALGRIND_FLAG= ;;
15762 no|none|release) RELEASE_FLAG="-frelease" ; ASSERT_FLAG= ;
15763 VALGRIND_FLAG= ;;
15764 # These enable particular checks
15765 assert) ASSERT_FLAG="-fassert" ;;
15766 valgrind) VALGRIND_FLAG="-fdebug=VALGRIND" ;;
15767 # Accept
15768 *) ;;
15769 esac
15770 done
15771 IFS="$ac_save_IFS"
15772 CHECKING_DFLAGS="$RELEASE_FLAG $ASSERT_FLAG $VALGRIND_FLAG"
15773
15774
15775
15776 # Add drtbegin.o/drtend.o to startfile/endfile specs in libgphobos.spec
15777 if test "$DCFG_MINFO_BRACKETING" = "false"; then
15778 DRTSTUFF_SPEC=$srcdir/src/drtstuff.spec
15779 else
15780 DRTSTUFF_SPEC=/dev/null
15781 fi
15782
15783
15784 # Add dependencies for libgphobos.spec file
15785 SPEC_PHOBOS_DEPS="$LIBS"
15786
15787
15788 # Libdruntime / phobos soname version
15789 libtool_VERSION=6:0:0
15790
15791
15792 # Set default flags (after DRUNTIME_WERROR!)
15793 if test -z "$GDCFLAGS"; then
15794 GDCFLAGS="-g -O2"
15795 fi
15796
15797
15798 WARN_DFLAGS="-Wall $WERROR_FLAG"
15799
15800
15801 # Sanity check for the cross-compilation case:
15802 ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
15803 if test "x$ac_cv_header_stdio_h" = xyes; then :
15804 :
15805 else
15806 as_fn_error $? "cannot find stdio.h." "$LINENO" 5
15807 fi
15808
15809
15810
15811
15812 for ac_header in stddef.h stdlib.h
15813 do :
15814 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15815 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15816 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15817 cat >>confdefs.h <<_ACEOF
15818 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15819 _ACEOF
15820
15821 fi
15822
15823 done
15824
15825
15826 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
15827 if test "x$ac_cv_header_valgrind_h" = xyes; then :
15828 have_valgrind_h=yes
15829 else
15830 have_valgrind_h=no
15831 fi
15832
15833
15834
15835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
15836 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
15837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15838 /* end confdefs.h. */
15839 #include <valgrind/memcheck.h>
15840 #ifndef VALGRIND_DISCARD
15841 #error VALGRIND_DISCARD not defined
15842 #endif
15843 _ACEOF
15844 if ac_fn_c_try_cpp "$LINENO"; then :
15845 have_valgrind_memcheck_h=yes
15846 else
15847 have_valgrind_memcheck_h=no
15848 fi
15849 rm -f conftest.err conftest.i conftest.$ac_ext
15850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_valgrind_memcheck_h" >&5
15851 $as_echo "$have_valgrind_memcheck_h" >&6; }
15852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
15853 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
15854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15855 /* end confdefs.h. */
15856 #include <memcheck.h>
15857 #ifndef VALGRIND_DISCARD
15858 #error VALGRIND_DISCARD not defined
15859 #endif
15860 _ACEOF
15861 if ac_fn_c_try_cpp "$LINENO"; then :
15862 have_memcheck_h=yes
15863 else
15864 have_memcheck_h=no
15865 fi
15866 rm -f conftest.err conftest.i conftest.$ac_ext
15867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_memcheck_h" >&5
15868 $as_echo "$have_memcheck_h" >&6; }
15869
15870 if test x$VALGRIND_FLAG != x ; then
15871
15872 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
15873
15874 fi
15875 if test $have_valgrind_memcheck_h = yes; then
15876
15877 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
15878
15879 fi
15880 if test $have_memcheck_h = yes; then
15881
15882 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
15883
15884 fi
15885
15886 if test x$VALGRIND_FLAG != x; then
15887 if (test $have_valgrind_h = no \
15888 && test $have_memcheck_h = no \
15889 && test $have_valgrind_memcheck_h = no); then
15890 as_fn_error $? "*** valgrind checking requested, but
15891 *** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
15892 fi
15893 fi
15894
15895
15896 ac_config_files="$ac_config_files Makefile"
15897
15898
15899 ac_config_files="$ac_config_files libdruntime/gcc/config.d libdruntime/gcc/libbacktrace.d"
15900
15901 ac_config_files="$ac_config_files src/libgphobos.spec"
15902
15903 ac_config_files="$ac_config_files testsuite/testsuite_flags"
15904
15905
15906 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
15907 # that multilib installs will end up installed in the correct place.
15908 # The testsuite needs it for multilib-aware ABI baseline files.
15909 # To work around this not being passed down from config-ml.in ->
15910 # srcdir/Makefile.am -> srcdir/{src,libdruntime,...}/Makefile.am, manually
15911 # append it here. Only modify Makefiles that have just been created.
15912 #
15913 # Also, get rid of this simulated-VPATH thing that automake does.
15914 ac_config_files="$ac_config_files libdruntime/Makefile src/Makefile testsuite/Makefile"
15915
15916
15917 cat >confcache <<\_ACEOF
15918 # This file is a shell script that caches the results of configure
15919 # tests run on this system so they can be shared between configure
15920 # scripts and configure runs, see configure's option --config-cache.
15921 # It is not useful on other systems. If it contains results you don't
15922 # want to keep, you may remove or edit it.
15923 #
15924 # config.status only pays attention to the cache file if you give it
15925 # the --recheck option to rerun configure.
15926 #
15927 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15928 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15929 # following values.
15930
15931 _ACEOF
15932
15933 # The following way of writing the cache mishandles newlines in values,
15934 # but we know of no workaround that is simple, portable, and efficient.
15935 # So, we kill variables containing newlines.
15936 # Ultrix sh set writes to stderr and can't be redirected directly,
15937 # and sets the high bit in the cache file unless we assign to the vars.
15938 (
15939 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15940 eval ac_val=\$$ac_var
15941 case $ac_val in #(
15942 *${as_nl}*)
15943 case $ac_var in #(
15944 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15945 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15946 esac
15947 case $ac_var in #(
15948 _ | IFS | as_nl) ;; #(
15949 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15950 *) { eval $ac_var=; unset $ac_var;} ;;
15951 esac ;;
15952 esac
15953 done
15954
15955 (set) 2>&1 |
15956 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15957 *${as_nl}ac_space=\ *)
15958 # `set' does not quote correctly, so add quotes: double-quote
15959 # substitution turns \\\\ into \\, and sed turns \\ into \.
15960 sed -n \
15961 "s/'/'\\\\''/g;
15962 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15963 ;; #(
15964 *)
15965 # `set' quotes correctly as required by POSIX, so do not add quotes.
15966 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15967 ;;
15968 esac |
15969 sort
15970 ) |
15971 sed '
15972 /^ac_cv_env_/b end
15973 t clear
15974 :clear
15975 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15976 t end
15977 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15978 :end' >>confcache
15979 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15980 if test -w "$cache_file"; then
15981 if test "x$cache_file" != "x/dev/null"; then
15982 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15983 $as_echo "$as_me: updating cache $cache_file" >&6;}
15984 if test ! -f "$cache_file" || test -h "$cache_file"; then
15985 cat confcache >"$cache_file"
15986 else
15987 case $cache_file in #(
15988 */* | ?:*)
15989 mv -f confcache "$cache_file"$$ &&
15990 mv -f "$cache_file"$$ "$cache_file" ;; #(
15991 *)
15992 mv -f confcache "$cache_file" ;;
15993 esac
15994 fi
15995 fi
15996 else
15997 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15998 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15999 fi
16000 fi
16001 rm -f confcache
16002
16003 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16004 # Let make expand exec_prefix.
16005 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16006
16007 DEFS=-DHAVE_CONFIG_H
16008
16009 ac_libobjs=
16010 ac_ltlibobjs=
16011 U=
16012 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16013 # 1. Remove the extension, and $U if already installed.
16014 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16015 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16016 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16017 # will be set to the directory where LIBOBJS objects are built.
16018 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16019 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16020 done
16021 LIBOBJS=$ac_libobjs
16022
16023 LTLIBOBJS=$ac_ltlibobjs
16024
16025
16026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16027 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16028 if test -n "$am_sleep_pid"; then
16029 # Hide warnings about reused PIDs.
16030 wait $am_sleep_pid 2>/dev/null
16031 fi
16032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16033 $as_echo "done" >&6; }
16034 if test -n "$EXEEXT"; then
16035 am__EXEEXT_TRUE=
16036 am__EXEEXT_FALSE='#'
16037 else
16038 am__EXEEXT_TRUE='#'
16039 am__EXEEXT_FALSE=
16040 fi
16041
16042 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16043 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16044 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16045 fi
16046 if test -z "${ENABLE_DARWIN_AT_RPATH_TRUE}" && test -z "${ENABLE_DARWIN_AT_RPATH_FALSE}"; then
16047 as_fn_error $? "conditional \"ENABLE_DARWIN_AT_RPATH\" was never defined.
16048 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16049 fi
16050 if test -z "${DRUNTIME_CPU_AARCH64_TRUE}" && test -z "${DRUNTIME_CPU_AARCH64_FALSE}"; then
16051 as_fn_error $? "conditional \"DRUNTIME_CPU_AARCH64\" was never defined.
16052 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16053 fi
16054 if test -z "${DRUNTIME_CPU_ARM_TRUE}" && test -z "${DRUNTIME_CPU_ARM_FALSE}"; then
16055 as_fn_error $? "conditional \"DRUNTIME_CPU_ARM\" was never defined.
16056 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16057 fi
16058 if test -z "${DRUNTIME_CPU_LOONGARCH_TRUE}" && test -z "${DRUNTIME_CPU_LOONGARCH_FALSE}"; then
16059 as_fn_error $? "conditional \"DRUNTIME_CPU_LOONGARCH\" was never defined.
16060 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16061 fi
16062 if test -z "${DRUNTIME_CPU_MIPS_TRUE}" && test -z "${DRUNTIME_CPU_MIPS_FALSE}"; then
16063 as_fn_error $? "conditional \"DRUNTIME_CPU_MIPS\" was never defined.
16064 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16065 fi
16066 if test -z "${DRUNTIME_CPU_POWERPC_TRUE}" && test -z "${DRUNTIME_CPU_POWERPC_FALSE}"; then
16067 as_fn_error $? "conditional \"DRUNTIME_CPU_POWERPC\" was never defined.
16068 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16069 fi
16070 if test -z "${DRUNTIME_CPU_X86_TRUE}" && test -z "${DRUNTIME_CPU_X86_FALSE}"; then
16071 as_fn_error $? "conditional \"DRUNTIME_CPU_X86\" was never defined.
16072 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16073 fi
16074 if test -z "${DRUNTIME_CPU_SYSTEMZ_TRUE}" && test -z "${DRUNTIME_CPU_SYSTEMZ_FALSE}"; then
16075 as_fn_error $? "conditional \"DRUNTIME_CPU_SYSTEMZ\" was never defined.
16076 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16077 fi
16078 if test -z "${DRUNTIME_CPU_S390_TRUE}" && test -z "${DRUNTIME_CPU_S390_FALSE}"; then
16079 as_fn_error $? "conditional \"DRUNTIME_CPU_S390\" was never defined.
16080 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16081 fi
16082 if test -z "${DRUNTIME_OS_AIX_TRUE}" && test -z "${DRUNTIME_OS_AIX_FALSE}"; then
16083 as_fn_error $? "conditional \"DRUNTIME_OS_AIX\" was never defined.
16084 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16085 fi
16086 if test -z "${DRUNTIME_OS_ANDROID_TRUE}" && test -z "${DRUNTIME_OS_ANDROID_FALSE}"; then
16087 as_fn_error $? "conditional \"DRUNTIME_OS_ANDROID\" was never defined.
16088 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16089 fi
16090 if test -z "${DRUNTIME_OS_DARWIN_TRUE}" && test -z "${DRUNTIME_OS_DARWIN_FALSE}"; then
16091 as_fn_error $? "conditional \"DRUNTIME_OS_DARWIN\" was never defined.
16092 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16093 fi
16094 if test -z "${DRUNTIME_OS_DRAGONFLYBSD_TRUE}" && test -z "${DRUNTIME_OS_DRAGONFLYBSD_FALSE}"; then
16095 as_fn_error $? "conditional \"DRUNTIME_OS_DRAGONFLYBSD\" was never defined.
16096 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16097 fi
16098 if test -z "${DRUNTIME_OS_FREEBSD_TRUE}" && test -z "${DRUNTIME_OS_FREEBSD_FALSE}"; then
16099 as_fn_error $? "conditional \"DRUNTIME_OS_FREEBSD\" was never defined.
16100 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16101 fi
16102 if test -z "${DRUNTIME_OS_NETBSD_TRUE}" && test -z "${DRUNTIME_OS_NETBSD_FALSE}"; then
16103 as_fn_error $? "conditional \"DRUNTIME_OS_NETBSD\" was never defined.
16104 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16105 fi
16106 if test -z "${DRUNTIME_OS_OPENBSD_TRUE}" && test -z "${DRUNTIME_OS_OPENBSD_FALSE}"; then
16107 as_fn_error $? "conditional \"DRUNTIME_OS_OPENBSD\" was never defined.
16108 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16109 fi
16110 if test -z "${DRUNTIME_OS_LINUX_TRUE}" && test -z "${DRUNTIME_OS_LINUX_FALSE}"; then
16111 as_fn_error $? "conditional \"DRUNTIME_OS_LINUX\" was never defined.
16112 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16113 fi
16114 if test -z "${DRUNTIME_OS_MINGW_TRUE}" && test -z "${DRUNTIME_OS_MINGW_FALSE}"; then
16115 as_fn_error $? "conditional \"DRUNTIME_OS_MINGW\" was never defined.
16116 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16117 fi
16118 if test -z "${DRUNTIME_OS_SOLARIS_TRUE}" && test -z "${DRUNTIME_OS_SOLARIS_FALSE}"; then
16119 as_fn_error $? "conditional \"DRUNTIME_OS_SOLARIS\" was never defined.
16120 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16121 fi
16122 if test -z "${DRUNTIME_OS_POSIX_TRUE}" && test -z "${DRUNTIME_OS_POSIX_FALSE}"; then
16123 as_fn_error $? "conditional \"DRUNTIME_OS_POSIX\" was never defined.
16124 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16125 fi
16126 if test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE}" && test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE}"; then
16127 as_fn_error $? "conditional \"DRUNTIME_OS_ARM_EABI_UNWINDER\" was never defined.
16128 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16129 fi
16130 if test -z "${DRUNTIME_OS_MINFO_BRACKETING_TRUE}" && test -z "${DRUNTIME_OS_MINFO_BRACKETING_FALSE}"; then
16131 as_fn_error $? "conditional \"DRUNTIME_OS_MINFO_BRACKETING\" was never defined.
16132 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16133 fi
16134 if test -z "${ENABLE_LIBPHOBOS_TRUE}" && test -z "${ENABLE_LIBPHOBOS_FALSE}"; then
16135 as_fn_error $? "conditional \"ENABLE_LIBPHOBOS\" was never defined.
16136 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16137 fi
16138 if test -z "${ENABLE_LIBDRUNTIME_ONLY_TRUE}" && test -z "${ENABLE_LIBDRUNTIME_ONLY_FALSE}"; then
16139 as_fn_error $? "conditional \"ENABLE_LIBDRUNTIME_ONLY\" was never defined.
16140 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16141 fi
16142
16143 : "${CONFIG_STATUS=./config.status}"
16144 ac_write_fail=0
16145 ac_clean_files_save=$ac_clean_files
16146 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16147 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16148 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16149 as_write_fail=0
16150 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16151 #! $SHELL
16152 # Generated by $as_me.
16153 # Run this file to recreate the current configuration.
16154 # Compiler output produced by configure, useful for debugging
16155 # configure, is in config.log if it exists.
16156
16157 debug=false
16158 ac_cs_recheck=false
16159 ac_cs_silent=false
16160
16161 SHELL=\${CONFIG_SHELL-$SHELL}
16162 export SHELL
16163 _ASEOF
16164 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16165 ## -------------------- ##
16166 ## M4sh Initialization. ##
16167 ## -------------------- ##
16168
16169 # Be more Bourne compatible
16170 DUALCASE=1; export DUALCASE # for MKS sh
16171 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16172 emulate sh
16173 NULLCMD=:
16174 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16175 # is contrary to our usage. Disable this feature.
16176 alias -g '${1+"$@"}'='"$@"'
16177 setopt NO_GLOB_SUBST
16178 else
16179 case `(set -o) 2>/dev/null` in #(
16180 *posix*) :
16181 set -o posix ;; #(
16182 *) :
16183 ;;
16184 esac
16185 fi
16186
16187
16188 as_nl='
16189 '
16190 export as_nl
16191 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16192 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16193 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16194 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16195 # Prefer a ksh shell builtin over an external printf program on Solaris,
16196 # but without wasting forks for bash or zsh.
16197 if test -z "$BASH_VERSION$ZSH_VERSION" \
16198 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16199 as_echo='print -r --'
16200 as_echo_n='print -rn --'
16201 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16202 as_echo='printf %s\n'
16203 as_echo_n='printf %s'
16204 else
16205 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16206 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16207 as_echo_n='/usr/ucb/echo -n'
16208 else
16209 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16210 as_echo_n_body='eval
16211 arg=$1;
16212 case $arg in #(
16213 *"$as_nl"*)
16214 expr "X$arg" : "X\\(.*\\)$as_nl";
16215 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16216 esac;
16217 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16218 '
16219 export as_echo_n_body
16220 as_echo_n='sh -c $as_echo_n_body as_echo'
16221 fi
16222 export as_echo_body
16223 as_echo='sh -c $as_echo_body as_echo'
16224 fi
16225
16226 # The user is always right.
16227 if test "${PATH_SEPARATOR+set}" != set; then
16228 PATH_SEPARATOR=:
16229 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16230 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16231 PATH_SEPARATOR=';'
16232 }
16233 fi
16234
16235
16236 # IFS
16237 # We need space, tab and new line, in precisely that order. Quoting is
16238 # there to prevent editors from complaining about space-tab.
16239 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16240 # splitting by setting IFS to empty value.)
16241 IFS=" "" $as_nl"
16242
16243 # Find who we are. Look in the path if we contain no directory separator.
16244 as_myself=
16245 case $0 in #((
16246 *[\\/]* ) as_myself=$0 ;;
16247 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16248 for as_dir in $PATH
16249 do
16250 IFS=$as_save_IFS
16251 test -z "$as_dir" && as_dir=.
16252 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16253 done
16254 IFS=$as_save_IFS
16255
16256 ;;
16257 esac
16258 # We did not find ourselves, most probably we were run as `sh COMMAND'
16259 # in which case we are not to be found in the path.
16260 if test "x$as_myself" = x; then
16261 as_myself=$0
16262 fi
16263 if test ! -f "$as_myself"; then
16264 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16265 exit 1
16266 fi
16267
16268 # Unset variables that we do not need and which cause bugs (e.g. in
16269 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16270 # suppresses any "Segmentation fault" message there. '((' could
16271 # trigger a bug in pdksh 5.2.14.
16272 for as_var in BASH_ENV ENV MAIL MAILPATH
16273 do eval test x\${$as_var+set} = xset \
16274 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16275 done
16276 PS1='$ '
16277 PS2='> '
16278 PS4='+ '
16279
16280 # NLS nuisances.
16281 LC_ALL=C
16282 export LC_ALL
16283 LANGUAGE=C
16284 export LANGUAGE
16285
16286 # CDPATH.
16287 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16288
16289
16290 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16291 # ----------------------------------------
16292 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16293 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16294 # script with STATUS, using 1 if that was 0.
16295 as_fn_error ()
16296 {
16297 as_status=$1; test $as_status -eq 0 && as_status=1
16298 if test "$4"; then
16299 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16300 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16301 fi
16302 $as_echo "$as_me: error: $2" >&2
16303 as_fn_exit $as_status
16304 } # as_fn_error
16305
16306
16307 # as_fn_set_status STATUS
16308 # -----------------------
16309 # Set $? to STATUS, without forking.
16310 as_fn_set_status ()
16311 {
16312 return $1
16313 } # as_fn_set_status
16314
16315 # as_fn_exit STATUS
16316 # -----------------
16317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16318 as_fn_exit ()
16319 {
16320 set +e
16321 as_fn_set_status $1
16322 exit $1
16323 } # as_fn_exit
16324
16325 # as_fn_unset VAR
16326 # ---------------
16327 # Portably unset VAR.
16328 as_fn_unset ()
16329 {
16330 { eval $1=; unset $1;}
16331 }
16332 as_unset=as_fn_unset
16333 # as_fn_append VAR VALUE
16334 # ----------------------
16335 # Append the text in VALUE to the end of the definition contained in VAR. Take
16336 # advantage of any shell optimizations that allow amortized linear growth over
16337 # repeated appends, instead of the typical quadratic growth present in naive
16338 # implementations.
16339 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16340 eval 'as_fn_append ()
16341 {
16342 eval $1+=\$2
16343 }'
16344 else
16345 as_fn_append ()
16346 {
16347 eval $1=\$$1\$2
16348 }
16349 fi # as_fn_append
16350
16351 # as_fn_arith ARG...
16352 # ------------------
16353 # Perform arithmetic evaluation on the ARGs, and store the result in the
16354 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16355 # must be portable across $(()) and expr.
16356 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16357 eval 'as_fn_arith ()
16358 {
16359 as_val=$(( $* ))
16360 }'
16361 else
16362 as_fn_arith ()
16363 {
16364 as_val=`expr "$@" || test $? -eq 1`
16365 }
16366 fi # as_fn_arith
16367
16368
16369 if expr a : '\(a\)' >/dev/null 2>&1 &&
16370 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16371 as_expr=expr
16372 else
16373 as_expr=false
16374 fi
16375
16376 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16377 as_basename=basename
16378 else
16379 as_basename=false
16380 fi
16381
16382 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16383 as_dirname=dirname
16384 else
16385 as_dirname=false
16386 fi
16387
16388 as_me=`$as_basename -- "$0" ||
16389 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16390 X"$0" : 'X\(//\)$' \| \
16391 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16392 $as_echo X/"$0" |
16393 sed '/^.*\/\([^/][^/]*\)\/*$/{
16394 s//\1/
16395 q
16396 }
16397 /^X\/\(\/\/\)$/{
16398 s//\1/
16399 q
16400 }
16401 /^X\/\(\/\).*/{
16402 s//\1/
16403 q
16404 }
16405 s/.*/./; q'`
16406
16407 # Avoid depending upon Character Ranges.
16408 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16409 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16410 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16411 as_cr_digits='0123456789'
16412 as_cr_alnum=$as_cr_Letters$as_cr_digits
16413
16414 ECHO_C= ECHO_N= ECHO_T=
16415 case `echo -n x` in #(((((
16416 -n*)
16417 case `echo 'xy\c'` in
16418 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16419 xy) ECHO_C='\c';;
16420 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16421 ECHO_T=' ';;
16422 esac;;
16423 *)
16424 ECHO_N='-n';;
16425 esac
16426
16427 rm -f conf$$ conf$$.exe conf$$.file
16428 if test -d conf$$.dir; then
16429 rm -f conf$$.dir/conf$$.file
16430 else
16431 rm -f conf$$.dir
16432 mkdir conf$$.dir 2>/dev/null
16433 fi
16434 if (echo >conf$$.file) 2>/dev/null; then
16435 if ln -s conf$$.file conf$$ 2>/dev/null; then
16436 as_ln_s='ln -s'
16437 # ... but there are two gotchas:
16438 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16439 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16440 # In both cases, we have to default to `cp -pR'.
16441 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16442 as_ln_s='cp -pR'
16443 elif ln conf$$.file conf$$ 2>/dev/null; then
16444 as_ln_s=ln
16445 else
16446 as_ln_s='cp -pR'
16447 fi
16448 else
16449 as_ln_s='cp -pR'
16450 fi
16451 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16452 rmdir conf$$.dir 2>/dev/null
16453
16454
16455 # as_fn_mkdir_p
16456 # -------------
16457 # Create "$as_dir" as a directory, including parents if necessary.
16458 as_fn_mkdir_p ()
16459 {
16460
16461 case $as_dir in #(
16462 -*) as_dir=./$as_dir;;
16463 esac
16464 test -d "$as_dir" || eval $as_mkdir_p || {
16465 as_dirs=
16466 while :; do
16467 case $as_dir in #(
16468 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16469 *) as_qdir=$as_dir;;
16470 esac
16471 as_dirs="'$as_qdir' $as_dirs"
16472 as_dir=`$as_dirname -- "$as_dir" ||
16473 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16474 X"$as_dir" : 'X\(//\)[^/]' \| \
16475 X"$as_dir" : 'X\(//\)$' \| \
16476 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16477 $as_echo X"$as_dir" |
16478 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16479 s//\1/
16480 q
16481 }
16482 /^X\(\/\/\)[^/].*/{
16483 s//\1/
16484 q
16485 }
16486 /^X\(\/\/\)$/{
16487 s//\1/
16488 q
16489 }
16490 /^X\(\/\).*/{
16491 s//\1/
16492 q
16493 }
16494 s/.*/./; q'`
16495 test -d "$as_dir" && break
16496 done
16497 test -z "$as_dirs" || eval "mkdir $as_dirs"
16498 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16499
16500
16501 } # as_fn_mkdir_p
16502 if mkdir -p . 2>/dev/null; then
16503 as_mkdir_p='mkdir -p "$as_dir"'
16504 else
16505 test -d ./-p && rmdir ./-p
16506 as_mkdir_p=false
16507 fi
16508
16509
16510 # as_fn_executable_p FILE
16511 # -----------------------
16512 # Test if FILE is an executable regular file.
16513 as_fn_executable_p ()
16514 {
16515 test -f "$1" && test -x "$1"
16516 } # as_fn_executable_p
16517 as_test_x='test -x'
16518 as_executable_p=as_fn_executable_p
16519
16520 # Sed expression to map a string onto a valid CPP name.
16521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16522
16523 # Sed expression to map a string onto a valid variable name.
16524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16525
16526
16527 exec 6>&1
16528 ## ----------------------------------- ##
16529 ## Main body of $CONFIG_STATUS script. ##
16530 ## ----------------------------------- ##
16531 _ASEOF
16532 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16533
16534 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16535 # Save the log message, to keep $0 and so on meaningful, and to
16536 # report actual input values of CONFIG_FILES etc. instead of their
16537 # values after options handling.
16538 ac_log="
16539 This file was extended by package-unused $as_me version-unused, which was
16540 generated by GNU Autoconf 2.69. Invocation command line was
16541
16542 CONFIG_FILES = $CONFIG_FILES
16543 CONFIG_HEADERS = $CONFIG_HEADERS
16544 CONFIG_LINKS = $CONFIG_LINKS
16545 CONFIG_COMMANDS = $CONFIG_COMMANDS
16546 $ $0 $@
16547
16548 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16549 "
16550
16551 _ACEOF
16552
16553 case $ac_config_files in *"
16554 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16555 esac
16556
16557 case $ac_config_headers in *"
16558 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16559 esac
16560
16561
16562 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16563 # Files that config.status was made for.
16564 config_files="$ac_config_files"
16565 config_headers="$ac_config_headers"
16566 config_commands="$ac_config_commands"
16567
16568 _ACEOF
16569
16570 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16571 ac_cs_usage="\
16572 \`$as_me' instantiates files and other configuration actions
16573 from templates according to the current configuration. Unless the files
16574 and actions are specified as TAGs, all are instantiated by default.
16575
16576 Usage: $0 [OPTION]... [TAG]...
16577
16578 -h, --help print this help, then exit
16579 -V, --version print version number and configuration settings, then exit
16580 --config print configuration, then exit
16581 -q, --quiet, --silent
16582 do not print progress messages
16583 -d, --debug don't remove temporary files
16584 --recheck update $as_me by reconfiguring in the same conditions
16585 --file=FILE[:TEMPLATE]
16586 instantiate the configuration file FILE
16587 --header=FILE[:TEMPLATE]
16588 instantiate the configuration header FILE
16589
16590 Configuration files:
16591 $config_files
16592
16593 Configuration headers:
16594 $config_headers
16595
16596 Configuration commands:
16597 $config_commands
16598
16599 Report bugs to the package provider."
16600
16601 _ACEOF
16602 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16603 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16604 ac_cs_version="\\
16605 package-unused config.status version-unused
16606 configured by $0, generated by GNU Autoconf 2.69,
16607 with options \\"\$ac_cs_config\\"
16608
16609 Copyright (C) 2012 Free Software Foundation, Inc.
16610 This config.status script is free software; the Free Software Foundation
16611 gives unlimited permission to copy, distribute and modify it."
16612
16613 ac_pwd='$ac_pwd'
16614 srcdir='$srcdir'
16615 INSTALL='$INSTALL'
16616 MKDIR_P='$MKDIR_P'
16617 AWK='$AWK'
16618 test -n "\$AWK" || AWK=awk
16619 _ACEOF
16620
16621 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16622 # The default lists apply if the user does not specify any file.
16623 ac_need_defaults=:
16624 while test $# != 0
16625 do
16626 case $1 in
16627 --*=?*)
16628 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16629 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16630 ac_shift=:
16631 ;;
16632 --*=)
16633 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16634 ac_optarg=
16635 ac_shift=:
16636 ;;
16637 *)
16638 ac_option=$1
16639 ac_optarg=$2
16640 ac_shift=shift
16641 ;;
16642 esac
16643
16644 case $ac_option in
16645 # Handling of the options.
16646 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16647 ac_cs_recheck=: ;;
16648 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16649 $as_echo "$ac_cs_version"; exit ;;
16650 --config | --confi | --conf | --con | --co | --c )
16651 $as_echo "$ac_cs_config"; exit ;;
16652 --debug | --debu | --deb | --de | --d | -d )
16653 debug=: ;;
16654 --file | --fil | --fi | --f )
16655 $ac_shift
16656 case $ac_optarg in
16657 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16658 '') as_fn_error $? "missing file argument" ;;
16659 esac
16660 as_fn_append CONFIG_FILES " '$ac_optarg'"
16661 ac_need_defaults=false;;
16662 --header | --heade | --head | --hea )
16663 $ac_shift
16664 case $ac_optarg in
16665 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16666 esac
16667 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16668 ac_need_defaults=false;;
16669 --he | --h)
16670 # Conflict between --help and --header
16671 as_fn_error $? "ambiguous option: \`$1'
16672 Try \`$0 --help' for more information.";;
16673 --help | --hel | -h )
16674 $as_echo "$ac_cs_usage"; exit ;;
16675 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16676 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16677 ac_cs_silent=: ;;
16678
16679 # This is an error.
16680 -*) as_fn_error $? "unrecognized option: \`$1'
16681 Try \`$0 --help' for more information." ;;
16682
16683 *) as_fn_append ac_config_targets " $1"
16684 ac_need_defaults=false ;;
16685
16686 esac
16687 shift
16688 done
16689
16690 ac_configure_extra_args=
16691
16692 if $ac_cs_silent; then
16693 exec 6>/dev/null
16694 ac_configure_extra_args="$ac_configure_extra_args --silent"
16695 fi
16696
16697 _ACEOF
16698 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16699 if \$ac_cs_recheck; then
16700 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16701 shift
16702 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16703 CONFIG_SHELL='$SHELL'
16704 export CONFIG_SHELL
16705 exec "\$@"
16706 fi
16707
16708 _ACEOF
16709 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16710 exec 5>>config.log
16711 {
16712 echo
16713 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16714 ## Running $as_me. ##
16715 _ASBOX
16716 $as_echo "$ac_log"
16717 } >&5
16718
16719 _ACEOF
16720 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16721 #
16722 # INIT-COMMANDS
16723 #
16724
16725 srcdir="$srcdir"
16726 host="$host"
16727 target="$target"
16728 with_multisubdir="$with_multisubdir"
16729 with_multisrctop="$with_multisrctop"
16730 with_target_subdir="$with_target_subdir"
16731 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16732 multi_basedir="$multi_basedir"
16733 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16734 CC="$CC"
16735 CXX="$CXX"
16736 GFORTRAN="$GFORTRAN"
16737 GDC="$GDC"
16738
16739
16740 # The HP-UX ksh and POSIX shell print the target directory to stdout
16741 # if CDPATH is set.
16742 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16743
16744 sed_quote_subst='$sed_quote_subst'
16745 double_quote_subst='$double_quote_subst'
16746 delay_variable_subst='$delay_variable_subst'
16747 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16748 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16749 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16750 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16751 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16752 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16753 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16754 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16755 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16756 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16757 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16758 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16759 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16760 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16761 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16762 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16763 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16764 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16765 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16766 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16767 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16768 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16769 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16770 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16771 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16772 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16773 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16774 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16775 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16776 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16777 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16778 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16779 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16780 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16781 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16782 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16783 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16784 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16785 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16786 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16787 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16788 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16789 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16790 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16791 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16792 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16793 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16794 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16795 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"`'
16796 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16797 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16798 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16799 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16800 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16801 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16802 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16803 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16804 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16805 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16806 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16807 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16808 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16809 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16810 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16811 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16812 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16813 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16814 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16815 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16816 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16817 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16818 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16819 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16820 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16821 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16822 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16823 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16824 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16825 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16826 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16827 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16828 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16829 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16830 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16831 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16832 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16833 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16834 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16835 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16836 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16837 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16838 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16839 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16840 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16841 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16842 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16843 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16844 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16845 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16846 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16847 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16848 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16849 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16850 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16851 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16852 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16853 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16854 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16855 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16856 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16857 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16858 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16859 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16860 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16861 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16862 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16863 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16864 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16865 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16866 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16867 LD_D='`$ECHO "$LD_D" | $SED "$delay_single_quote_subst"`'
16868 reload_flag_D='`$ECHO "$reload_flag_D" | $SED "$delay_single_quote_subst"`'
16869 reload_cmds_D='`$ECHO "$reload_cmds_D" | $SED "$delay_single_quote_subst"`'
16870 old_archive_cmds_D='`$ECHO "$old_archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16871 compiler_D='`$ECHO "$compiler_D" | $SED "$delay_single_quote_subst"`'
16872 GCC_D='`$ECHO "$GCC_D" | $SED "$delay_single_quote_subst"`'
16873 lt_prog_compiler_no_builtin_flag_D='`$ECHO "$lt_prog_compiler_no_builtin_flag_D" | $SED "$delay_single_quote_subst"`'
16874 lt_prog_compiler_wl_D='`$ECHO "$lt_prog_compiler_wl_D" | $SED "$delay_single_quote_subst"`'
16875 lt_prog_compiler_pic_D='`$ECHO "$lt_prog_compiler_pic_D" | $SED "$delay_single_quote_subst"`'
16876 lt_prog_compiler_static_D='`$ECHO "$lt_prog_compiler_static_D" | $SED "$delay_single_quote_subst"`'
16877 lt_cv_prog_compiler_c_o_D='`$ECHO "$lt_cv_prog_compiler_c_o_D" | $SED "$delay_single_quote_subst"`'
16878 archive_cmds_need_lc_D='`$ECHO "$archive_cmds_need_lc_D" | $SED "$delay_single_quote_subst"`'
16879 enable_shared_with_static_runtimes_D='`$ECHO "$enable_shared_with_static_runtimes_D" | $SED "$delay_single_quote_subst"`'
16880 export_dynamic_flag_spec_D='`$ECHO "$export_dynamic_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16881 whole_archive_flag_spec_D='`$ECHO "$whole_archive_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16882 compiler_needs_object_D='`$ECHO "$compiler_needs_object_D" | $SED "$delay_single_quote_subst"`'
16883 old_archive_from_new_cmds_D='`$ECHO "$old_archive_from_new_cmds_D" | $SED "$delay_single_quote_subst"`'
16884 old_archive_from_expsyms_cmds_D='`$ECHO "$old_archive_from_expsyms_cmds_D" | $SED "$delay_single_quote_subst"`'
16885 archive_cmds_D='`$ECHO "$archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16886 archive_expsym_cmds_D='`$ECHO "$archive_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16887 module_cmds_D='`$ECHO "$module_cmds_D" | $SED "$delay_single_quote_subst"`'
16888 module_expsym_cmds_D='`$ECHO "$module_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16889 with_gnu_ld_D='`$ECHO "$with_gnu_ld_D" | $SED "$delay_single_quote_subst"`'
16890 allow_undefined_flag_D='`$ECHO "$allow_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16891 no_undefined_flag_D='`$ECHO "$no_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16892 hardcode_libdir_flag_spec_D='`$ECHO "$hardcode_libdir_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16893 hardcode_libdir_flag_spec_ld_D='`$ECHO "$hardcode_libdir_flag_spec_ld_D" | $SED "$delay_single_quote_subst"`'
16894 hardcode_libdir_separator_D='`$ECHO "$hardcode_libdir_separator_D" | $SED "$delay_single_quote_subst"`'
16895 hardcode_direct_D='`$ECHO "$hardcode_direct_D" | $SED "$delay_single_quote_subst"`'
16896 hardcode_direct_absolute_D='`$ECHO "$hardcode_direct_absolute_D" | $SED "$delay_single_quote_subst"`'
16897 hardcode_minus_L_D='`$ECHO "$hardcode_minus_L_D" | $SED "$delay_single_quote_subst"`'
16898 hardcode_shlibpath_var_D='`$ECHO "$hardcode_shlibpath_var_D" | $SED "$delay_single_quote_subst"`'
16899 hardcode_automatic_D='`$ECHO "$hardcode_automatic_D" | $SED "$delay_single_quote_subst"`'
16900 inherit_rpath_D='`$ECHO "$inherit_rpath_D" | $SED "$delay_single_quote_subst"`'
16901 link_all_deplibs_D='`$ECHO "$link_all_deplibs_D" | $SED "$delay_single_quote_subst"`'
16902 fix_srcfile_path_D='`$ECHO "$fix_srcfile_path_D" | $SED "$delay_single_quote_subst"`'
16903 always_export_symbols_D='`$ECHO "$always_export_symbols_D" | $SED "$delay_single_quote_subst"`'
16904 export_symbols_cmds_D='`$ECHO "$export_symbols_cmds_D" | $SED "$delay_single_quote_subst"`'
16905 exclude_expsyms_D='`$ECHO "$exclude_expsyms_D" | $SED "$delay_single_quote_subst"`'
16906 include_expsyms_D='`$ECHO "$include_expsyms_D" | $SED "$delay_single_quote_subst"`'
16907 prelink_cmds_D='`$ECHO "$prelink_cmds_D" | $SED "$delay_single_quote_subst"`'
16908 file_list_spec_D='`$ECHO "$file_list_spec_D" | $SED "$delay_single_quote_subst"`'
16909 hardcode_action_D='`$ECHO "$hardcode_action_D" | $SED "$delay_single_quote_subst"`'
16910
16911 LTCC='$LTCC'
16912 LTCFLAGS='$LTCFLAGS'
16913 compiler='$compiler_DEFAULT'
16914
16915 # A function that is used when there is no print builtin or printf.
16916 func_fallback_echo ()
16917 {
16918 eval 'cat <<_LTECHO_EOF
16919 \$1
16920 _LTECHO_EOF'
16921 }
16922
16923 # Quote evaled strings.
16924 for var in SHELL \
16925 ECHO \
16926 SED \
16927 GREP \
16928 EGREP \
16929 FGREP \
16930 LD \
16931 NM \
16932 LN_S \
16933 lt_SP2NL \
16934 lt_NL2SP \
16935 reload_flag \
16936 OBJDUMP \
16937 deplibs_check_method \
16938 file_magic_cmd \
16939 AR \
16940 AR_FLAGS \
16941 STRIP \
16942 RANLIB \
16943 CC \
16944 CFLAGS \
16945 compiler \
16946 lt_cv_sys_global_symbol_pipe \
16947 lt_cv_sys_global_symbol_to_cdecl \
16948 lt_cv_sys_global_symbol_to_c_name_address \
16949 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16950 lt_prog_compiler_no_builtin_flag \
16951 lt_prog_compiler_wl \
16952 lt_prog_compiler_pic \
16953 lt_prog_compiler_static \
16954 lt_cv_prog_compiler_c_o \
16955 need_locks \
16956 DSYMUTIL \
16957 NMEDIT \
16958 LIPO \
16959 OTOOL \
16960 OTOOL64 \
16961 shrext_cmds \
16962 export_dynamic_flag_spec \
16963 whole_archive_flag_spec \
16964 compiler_needs_object \
16965 with_gnu_ld \
16966 allow_undefined_flag \
16967 no_undefined_flag \
16968 hardcode_libdir_flag_spec \
16969 hardcode_libdir_flag_spec_ld \
16970 hardcode_libdir_separator \
16971 fix_srcfile_path \
16972 exclude_expsyms \
16973 include_expsyms \
16974 file_list_spec \
16975 variables_saved_for_relink \
16976 libname_spec \
16977 library_names_spec \
16978 soname_spec \
16979 install_override_mode \
16980 finish_eval \
16981 old_striplib \
16982 striplib \
16983 LD_D \
16984 reload_flag_D \
16985 compiler_D \
16986 lt_prog_compiler_no_builtin_flag_D \
16987 lt_prog_compiler_wl_D \
16988 lt_prog_compiler_pic_D \
16989 lt_prog_compiler_static_D \
16990 lt_cv_prog_compiler_c_o_D \
16991 export_dynamic_flag_spec_D \
16992 whole_archive_flag_spec_D \
16993 compiler_needs_object_D \
16994 with_gnu_ld_D \
16995 allow_undefined_flag_D \
16996 no_undefined_flag_D \
16997 hardcode_libdir_flag_spec_D \
16998 hardcode_libdir_flag_spec_ld_D \
16999 hardcode_libdir_separator_D \
17000 fix_srcfile_path_D \
17001 exclude_expsyms_D \
17002 include_expsyms_D \
17003 file_list_spec_D; do
17004 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17005 *[\\\\\\\`\\"\\\$]*)
17006 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17007 ;;
17008 *)
17009 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17010 ;;
17011 esac
17012 done
17013
17014 # Double-quote double-evaled strings.
17015 for var in reload_cmds \
17016 old_postinstall_cmds \
17017 old_postuninstall_cmds \
17018 old_archive_cmds \
17019 extract_expsyms_cmds \
17020 old_archive_from_new_cmds \
17021 old_archive_from_expsyms_cmds \
17022 archive_cmds \
17023 archive_expsym_cmds \
17024 module_cmds \
17025 module_expsym_cmds \
17026 export_symbols_cmds \
17027 prelink_cmds \
17028 postinstall_cmds \
17029 postuninstall_cmds \
17030 finish_cmds \
17031 sys_lib_search_path_spec \
17032 sys_lib_dlsearch_path_spec \
17033 reload_cmds_D \
17034 old_archive_cmds_D \
17035 old_archive_from_new_cmds_D \
17036 old_archive_from_expsyms_cmds_D \
17037 archive_cmds_D \
17038 archive_expsym_cmds_D \
17039 module_cmds_D \
17040 module_expsym_cmds_D \
17041 export_symbols_cmds_D \
17042 prelink_cmds_D; do
17043 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17044 *[\\\\\\\`\\"\\\$]*)
17045 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17046 ;;
17047 *)
17048 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17049 ;;
17050 esac
17051 done
17052
17053 ac_aux_dir='$ac_aux_dir'
17054 xsi_shell='$xsi_shell'
17055 lt_shell_append='$lt_shell_append'
17056
17057 # See if we are running on zsh, and set the options which allow our
17058 # commands through without removal of \ escapes INIT.
17059 if test -n "\${ZSH_VERSION+set}" ; then
17060 setopt NO_GLOB_SUBST
17061 fi
17062
17063
17064 PACKAGE='$PACKAGE'
17065 VERSION='$VERSION'
17066 TIMESTAMP='$TIMESTAMP'
17067 RM='$RM'
17068 ofile='$ofile'
17069
17070
17071
17072
17073
17074
17075 _ACEOF
17076
17077 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17078
17079 # Handling of arguments.
17080 for ac_config_target in $ac_config_targets
17081 do
17082 case $ac_config_target in
17083 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17084 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17085 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17086 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17087 "libdruntime/gcc/config.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/config.d" ;;
17088 "libdruntime/gcc/libbacktrace.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/libbacktrace.d" ;;
17089 "src/libgphobos.spec") CONFIG_FILES="$CONFIG_FILES src/libgphobos.spec" ;;
17090 "testsuite/testsuite_flags") CONFIG_FILES="$CONFIG_FILES testsuite/testsuite_flags" ;;
17091 "libdruntime/Makefile") CONFIG_FILES="$CONFIG_FILES libdruntime/Makefile" ;;
17092 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17093 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17094
17095 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17096 esac
17097 done
17098
17099
17100 # If the user did not use the arguments to specify the items to instantiate,
17101 # then the envvar interface is used. Set only those that are not.
17102 # We use the long form for the default assignment because of an extremely
17103 # bizarre bug on SunOS 4.1.3.
17104 if $ac_need_defaults; then
17105 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17106 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17107 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17108 fi
17109
17110 # Have a temporary directory for convenience. Make it in the build tree
17111 # simply because there is no reason against having it here, and in addition,
17112 # creating and moving files from /tmp can sometimes cause problems.
17113 # Hook for its removal unless debugging.
17114 # Note that there is a small window in which the directory will not be cleaned:
17115 # after its creation but before its name has been assigned to `$tmp'.
17116 $debug ||
17117 {
17118 tmp= ac_tmp=
17119 trap 'exit_status=$?
17120 : "${ac_tmp:=$tmp}"
17121 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17122 ' 0
17123 trap 'as_fn_exit 1' 1 2 13 15
17124 }
17125 # Create a (secure) tmp directory for tmp files.
17126
17127 {
17128 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17129 test -d "$tmp"
17130 } ||
17131 {
17132 tmp=./conf$$-$RANDOM
17133 (umask 077 && mkdir "$tmp")
17134 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17135 ac_tmp=$tmp
17136
17137 # Set up the scripts for CONFIG_FILES section.
17138 # No need to generate them if there are no CONFIG_FILES.
17139 # This happens for instance with `./config.status config.h'.
17140 if test -n "$CONFIG_FILES"; then
17141
17142 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
17143 ac_cs_awk_getline=:
17144 ac_cs_awk_pipe_init=
17145 ac_cs_awk_read_file='
17146 while ((getline aline < (F[key])) > 0)
17147 print(aline)
17148 close(F[key])'
17149 ac_cs_awk_pipe_fini=
17150 else
17151 ac_cs_awk_getline=false
17152 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
17153 ac_cs_awk_read_file='
17154 print "|#_!!_#|"
17155 print "cat " F[key] " &&"
17156 '$ac_cs_awk_pipe_init
17157 # The final `:' finishes the AND list.
17158 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
17159 fi
17160 ac_cr=`echo X | tr X '\015'`
17161 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17162 # But we know of no other shell where ac_cr would be empty at this
17163 # point, so we can use a bashism as a fallback.
17164 if test "x$ac_cr" = x; then
17165 eval ac_cr=\$\'\\r\'
17166 fi
17167 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17168 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17169 ac_cs_awk_cr='\\r'
17170 else
17171 ac_cs_awk_cr=$ac_cr
17172 fi
17173
17174 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17175 _ACEOF
17176
17177 # Create commands to substitute file output variables.
17178 {
17179 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
17180 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
17181 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
17182 echo "_ACAWK" &&
17183 echo "_ACEOF"
17184 } >conf$$files.sh &&
17185 . ./conf$$files.sh ||
17186 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17187 rm -f conf$$files.sh
17188
17189 {
17190 echo "cat >conf$$subs.awk <<_ACEOF" &&
17191 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17192 echo "_ACEOF"
17193 } >conf$$subs.sh ||
17194 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17195 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17196 ac_delim='%!_!# '
17197 for ac_last_try in false false false false false :; do
17198 . ./conf$$subs.sh ||
17199 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17200
17201 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17202 if test $ac_delim_n = $ac_delim_num; then
17203 break
17204 elif $ac_last_try; then
17205 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17206 else
17207 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17208 fi
17209 done
17210 rm -f conf$$subs.sh
17211
17212 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17213 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17214 _ACEOF
17215 sed -n '
17216 h
17217 s/^/S["/; s/!.*/"]=/
17218 p
17219 g
17220 s/^[^!]*!//
17221 :repl
17222 t repl
17223 s/'"$ac_delim"'$//
17224 t delim
17225 :nl
17226 h
17227 s/\(.\{148\}\)..*/\1/
17228 t more1
17229 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17230 p
17231 n
17232 b repl
17233 :more1
17234 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17235 p
17236 g
17237 s/.\{148\}//
17238 t nl
17239 :delim
17240 h
17241 s/\(.\{148\}\)..*/\1/
17242 t more2
17243 s/["\\]/\\&/g; s/^/"/; s/$/"/
17244 p
17245 b
17246 :more2
17247 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17248 p
17249 g
17250 s/.\{148\}//
17251 t delim
17252 ' <conf$$subs.awk | sed '
17253 /^[^""]/{
17254 N
17255 s/\n//
17256 }
17257 ' >>$CONFIG_STATUS || ac_write_fail=1
17258 rm -f conf$$subs.awk
17259 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17260 _ACAWK
17261 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17262 for (key in S) S_is_set[key] = 1
17263 FS = ""
17264 \$ac_cs_awk_pipe_init
17265 }
17266 {
17267 line = $ 0
17268 nfields = split(line, field, "@")
17269 substed = 0
17270 len = length(field[1])
17271 for (i = 2; i < nfields; i++) {
17272 key = field[i]
17273 keylen = length(key)
17274 if (S_is_set[key]) {
17275 value = S[key]
17276 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17277 len += length(value) + length(field[++i])
17278 substed = 1
17279 } else
17280 len += 1 + keylen
17281 }
17282 if (nfields == 3 && !substed) {
17283 key = field[2]
17284 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
17285 \$ac_cs_awk_read_file
17286 next
17287 }
17288 }
17289 print line
17290 }
17291 \$ac_cs_awk_pipe_fini
17292 _ACAWK
17293 _ACEOF
17294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17295 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17296 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17297 else
17298 cat
17299 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17300 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17301 _ACEOF
17302
17303 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17304 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17305 # trailing colons and then remove the whole line if VPATH becomes empty
17306 # (actually we leave an empty line to preserve line numbers).
17307 if test "x$srcdir" = x.; then
17308 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17309 h
17310 s///
17311 s/^/:/
17312 s/[ ]*$/:/
17313 s/:\$(srcdir):/:/g
17314 s/:\${srcdir}:/:/g
17315 s/:@srcdir@:/:/g
17316 s/^:*//
17317 s/:*$//
17318 x
17319 s/\(=[ ]*\).*/\1/
17320 G
17321 s/\n//
17322 s/^[^=]*=[ ]*$//
17323 }'
17324 fi
17325
17326 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17327 fi # test -n "$CONFIG_FILES"
17328
17329 # Set up the scripts for CONFIG_HEADERS section.
17330 # No need to generate them if there are no CONFIG_HEADERS.
17331 # This happens for instance with `./config.status Makefile'.
17332 if test -n "$CONFIG_HEADERS"; then
17333 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17334 BEGIN {
17335 _ACEOF
17336
17337 # Transform confdefs.h into an awk script `defines.awk', embedded as
17338 # here-document in config.status, that substitutes the proper values into
17339 # config.h.in to produce config.h.
17340
17341 # Create a delimiter string that does not exist in confdefs.h, to ease
17342 # handling of long lines.
17343 ac_delim='%!_!# '
17344 for ac_last_try in false false :; do
17345 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17346 if test -z "$ac_tt"; then
17347 break
17348 elif $ac_last_try; then
17349 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17350 else
17351 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17352 fi
17353 done
17354
17355 # For the awk script, D is an array of macro values keyed by name,
17356 # likewise P contains macro parameters if any. Preserve backslash
17357 # newline sequences.
17358
17359 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17360 sed -n '
17361 s/.\{148\}/&'"$ac_delim"'/g
17362 t rset
17363 :rset
17364 s/^[ ]*#[ ]*define[ ][ ]*/ /
17365 t def
17366 d
17367 :def
17368 s/\\$//
17369 t bsnl
17370 s/["\\]/\\&/g
17371 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17372 D["\1"]=" \3"/p
17373 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17374 d
17375 :bsnl
17376 s/["\\]/\\&/g
17377 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17378 D["\1"]=" \3\\\\\\n"\\/p
17379 t cont
17380 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17381 t cont
17382 d
17383 :cont
17384 n
17385 s/.\{148\}/&'"$ac_delim"'/g
17386 t clear
17387 :clear
17388 s/\\$//
17389 t bsnlc
17390 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17391 d
17392 :bsnlc
17393 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17394 b cont
17395 ' <confdefs.h | sed '
17396 s/'"$ac_delim"'/"\\\
17397 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17398
17399 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17400 for (key in D) D_is_set[key] = 1
17401 FS = ""
17402 }
17403 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17404 line = \$ 0
17405 split(line, arg, " ")
17406 if (arg[1] == "#") {
17407 defundef = arg[2]
17408 mac1 = arg[3]
17409 } else {
17410 defundef = substr(arg[1], 2)
17411 mac1 = arg[2]
17412 }
17413 split(mac1, mac2, "(") #)
17414 macro = mac2[1]
17415 prefix = substr(line, 1, index(line, defundef) - 1)
17416 if (D_is_set[macro]) {
17417 # Preserve the white space surrounding the "#".
17418 print prefix "define", macro P[macro] D[macro]
17419 next
17420 } else {
17421 # Replace #undef with comments. This is necessary, for example,
17422 # in the case of _POSIX_SOURCE, which is predefined and required
17423 # on some systems where configure will not decide to define it.
17424 if (defundef == "undef") {
17425 print "/*", prefix defundef, macro, "*/"
17426 next
17427 }
17428 }
17429 }
17430 { print }
17431 _ACAWK
17432 _ACEOF
17433 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17434 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17435 fi # test -n "$CONFIG_HEADERS"
17436
17437
17438 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17439 shift
17440 for ac_tag
17441 do
17442 case $ac_tag in
17443 :[FHLC]) ac_mode=$ac_tag; continue;;
17444 esac
17445 case $ac_mode$ac_tag in
17446 :[FHL]*:*);;
17447 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17448 :[FH]-) ac_tag=-:-;;
17449 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17450 esac
17451 ac_save_IFS=$IFS
17452 IFS=:
17453 set x $ac_tag
17454 IFS=$ac_save_IFS
17455 shift
17456 ac_file=$1
17457 shift
17458
17459 case $ac_mode in
17460 :L) ac_source=$1;;
17461 :[FH])
17462 ac_file_inputs=
17463 for ac_f
17464 do
17465 case $ac_f in
17466 -) ac_f="$ac_tmp/stdin";;
17467 *) # Look for the file first in the build tree, then in the source tree
17468 # (if the path is not absolute). The absolute path cannot be DOS-style,
17469 # because $ac_f cannot contain `:'.
17470 test -f "$ac_f" ||
17471 case $ac_f in
17472 [\\/$]*) false;;
17473 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17474 esac ||
17475 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17476 esac
17477 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17478 as_fn_append ac_file_inputs " '$ac_f'"
17479 done
17480
17481 # Let's still pretend it is `configure' which instantiates (i.e., don't
17482 # use $as_me), people would be surprised to read:
17483 # /* config.h. Generated by config.status. */
17484 configure_input='Generated from '`
17485 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17486 `' by configure.'
17487 if test x"$ac_file" != x-; then
17488 configure_input="$ac_file. $configure_input"
17489 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17490 $as_echo "$as_me: creating $ac_file" >&6;}
17491 fi
17492 # Neutralize special characters interpreted by sed in replacement strings.
17493 case $configure_input in #(
17494 *\&* | *\|* | *\\* )
17495 ac_sed_conf_input=`$as_echo "$configure_input" |
17496 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17497 *) ac_sed_conf_input=$configure_input;;
17498 esac
17499
17500 case $ac_tag in
17501 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17502 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17503 esac
17504 ;;
17505 esac
17506
17507 ac_dir=`$as_dirname -- "$ac_file" ||
17508 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17509 X"$ac_file" : 'X\(//\)[^/]' \| \
17510 X"$ac_file" : 'X\(//\)$' \| \
17511 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17512 $as_echo X"$ac_file" |
17513 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17514 s//\1/
17515 q
17516 }
17517 /^X\(\/\/\)[^/].*/{
17518 s//\1/
17519 q
17520 }
17521 /^X\(\/\/\)$/{
17522 s//\1/
17523 q
17524 }
17525 /^X\(\/\).*/{
17526 s//\1/
17527 q
17528 }
17529 s/.*/./; q'`
17530 as_dir="$ac_dir"; as_fn_mkdir_p
17531 ac_builddir=.
17532
17533 case "$ac_dir" in
17534 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17535 *)
17536 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17537 # A ".." for each directory in $ac_dir_suffix.
17538 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17539 case $ac_top_builddir_sub in
17540 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17541 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17542 esac ;;
17543 esac
17544 ac_abs_top_builddir=$ac_pwd
17545 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17546 # for backward compatibility:
17547 ac_top_builddir=$ac_top_build_prefix
17548
17549 case $srcdir in
17550 .) # We are building in place.
17551 ac_srcdir=.
17552 ac_top_srcdir=$ac_top_builddir_sub
17553 ac_abs_top_srcdir=$ac_pwd ;;
17554 [\\/]* | ?:[\\/]* ) # Absolute name.
17555 ac_srcdir=$srcdir$ac_dir_suffix;
17556 ac_top_srcdir=$srcdir
17557 ac_abs_top_srcdir=$srcdir ;;
17558 *) # Relative name.
17559 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17560 ac_top_srcdir=$ac_top_build_prefix$srcdir
17561 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17562 esac
17563 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17564
17565
17566 case $ac_mode in
17567 :F)
17568 #
17569 # CONFIG_FILE
17570 #
17571
17572 case $INSTALL in
17573 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17574 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17575 esac
17576 ac_MKDIR_P=$MKDIR_P
17577 case $MKDIR_P in
17578 [\\/$]* | ?:[\\/]* ) ;;
17579 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17580 esac
17581 _ACEOF
17582
17583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17584 # If the template does not know about datarootdir, expand it.
17585 # FIXME: This hack should be removed a few years after 2.60.
17586 ac_datarootdir_hack=; ac_datarootdir_seen=
17587 ac_sed_dataroot='
17588 /datarootdir/ {
17589 p
17590 q
17591 }
17592 /@datadir@/p
17593 /@docdir@/p
17594 /@infodir@/p
17595 /@localedir@/p
17596 /@mandir@/p'
17597 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17598 *datarootdir*) ac_datarootdir_seen=yes;;
17599 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17601 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17602 _ACEOF
17603 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17604 ac_datarootdir_hack='
17605 s&@datadir@&$datadir&g
17606 s&@docdir@&$docdir&g
17607 s&@infodir@&$infodir&g
17608 s&@localedir@&$localedir&g
17609 s&@mandir@&$mandir&g
17610 s&\\\${datarootdir}&$datarootdir&g' ;;
17611 esac
17612 _ACEOF
17613
17614 # Neutralize VPATH when `$srcdir' = `.'.
17615 # Shell code in configure.ac might set extrasub.
17616 # FIXME: do we really want to maintain this feature?
17617 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17618 ac_sed_extra="$ac_vpsub
17619 $extrasub
17620 _ACEOF
17621 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17622 :t
17623 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17624 s|@configure_input@|$ac_sed_conf_input|;t t
17625 s&@top_builddir@&$ac_top_builddir_sub&;t t
17626 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17627 s&@srcdir@&$ac_srcdir&;t t
17628 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17629 s&@top_srcdir@&$ac_top_srcdir&;t t
17630 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17631 s&@builddir@&$ac_builddir&;t t
17632 s&@abs_builddir@&$ac_abs_builddir&;t t
17633 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17634 s&@INSTALL@&$ac_INSTALL&;t t
17635 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17636 $ac_datarootdir_hack
17637 "
17638 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17639 if $ac_cs_awk_getline; then
17640 $AWK -f "$ac_tmp/subs.awk"
17641 else
17642 $AWK -f "$ac_tmp/subs.awk" | $SHELL
17643 fi \
17644 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17645
17646 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17647 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17648 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17649 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17651 which seems to be undefined. Please make sure it is defined" >&5
17652 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17653 which seems to be undefined. Please make sure it is defined" >&2;}
17654
17655 rm -f "$ac_tmp/stdin"
17656 case $ac_file in
17657 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17658 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17659 esac \
17660 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17661 ;;
17662 :H)
17663 #
17664 # CONFIG_HEADER
17665 #
17666 if test x"$ac_file" != x-; then
17667 {
17668 $as_echo "/* $configure_input */" \
17669 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17670 } >"$ac_tmp/config.h" \
17671 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17672 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17673 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17674 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17675 else
17676 rm -f "$ac_file"
17677 mv "$ac_tmp/config.h" "$ac_file" \
17678 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17679 fi
17680 else
17681 $as_echo "/* $configure_input */" \
17682 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17683 || as_fn_error $? "could not create -" "$LINENO" 5
17684 fi
17685 # Compute "$ac_file"'s index in $config_headers.
17686 _am_arg="$ac_file"
17687 _am_stamp_count=1
17688 for _am_header in $config_headers :; do
17689 case $_am_header in
17690 $_am_arg | $_am_arg:* )
17691 break ;;
17692 * )
17693 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17694 esac
17695 done
17696 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17697 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17698 X"$_am_arg" : 'X\(//\)[^/]' \| \
17699 X"$_am_arg" : 'X\(//\)$' \| \
17700 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17701 $as_echo X"$_am_arg" |
17702 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17703 s//\1/
17704 q
17705 }
17706 /^X\(\/\/\)[^/].*/{
17707 s//\1/
17708 q
17709 }
17710 /^X\(\/\/\)$/{
17711 s//\1/
17712 q
17713 }
17714 /^X\(\/\).*/{
17715 s//\1/
17716 q
17717 }
17718 s/.*/./; q'`/stamp-h$_am_stamp_count
17719 ;;
17720
17721 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17722 $as_echo "$as_me: executing $ac_file commands" >&6;}
17723 ;;
17724 esac
17725
17726
17727 case $ac_file$ac_mode in
17728 "default-1":C)
17729 # Only add multilib support code if we just rebuilt the top-level
17730 # Makefile.
17731 case " $CONFIG_FILES " in
17732 *" Makefile "*)
17733 ac_file=Makefile . ${multi_basedir}/config-ml.in
17734 ;;
17735 esac ;;
17736 "libtool":C)
17737
17738 # See if we are running on zsh, and set the options which allow our
17739 # commands through without removal of \ escapes.
17740 if test -n "${ZSH_VERSION+set}" ; then
17741 setopt NO_GLOB_SUBST
17742 fi
17743
17744 cfgfile="${ofile}T"
17745 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17746 $RM "$cfgfile"
17747
17748 cat <<_LT_EOF >> "$cfgfile"
17749 #! $SHELL
17750
17751 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17752 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17753 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17754 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17755 #
17756 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17757 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17758 # Written by Gordon Matzigkeit, 1996
17759 #
17760 # This file is part of GNU Libtool.
17761 #
17762 # GNU Libtool is free software; you can redistribute it and/or
17763 # modify it under the terms of the GNU General Public License as
17764 # published by the Free Software Foundation; either version 2 of
17765 # the License, or (at your option) any later version.
17766 #
17767 # As a special exception to the GNU General Public License,
17768 # if you distribute this file as part of a program or library that
17769 # is built using GNU Libtool, you may include this file under the
17770 # same distribution terms that you use for the rest of that program.
17771 #
17772 # GNU Libtool is distributed in the hope that it will be useful,
17773 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17774 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17775 # GNU General Public License for more details.
17776 #
17777 # You should have received a copy of the GNU General Public License
17778 # along with GNU Libtool; see the file COPYING. If not, a copy
17779 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17780 # obtained by writing to the Free Software Foundation, Inc.,
17781 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17782
17783
17784 # The names of the tagged configurations supported by this script.
17785 available_tags="D "
17786
17787 # ### BEGIN LIBTOOL CONFIG
17788
17789 # Which release of libtool.m4 was used?
17790 macro_version=$macro_version
17791 macro_revision=$macro_revision
17792
17793 # Whether or not to build shared libraries.
17794 build_libtool_libs=$enable_shared
17795
17796 # Whether or not to build static libraries.
17797 build_old_libs=$enable_static
17798
17799 # What type of objects to build.
17800 pic_mode=$pic_mode
17801
17802 # Whether or not to optimize for fast installation.
17803 fast_install=$enable_fast_install
17804
17805 # Shell to use when invoking shell scripts.
17806 SHELL=$lt_SHELL
17807
17808 # An echo program that protects backslashes.
17809 ECHO=$lt_ECHO
17810
17811 # The host system.
17812 host_alias=$host_alias
17813 host=$host
17814 host_os=$host_os
17815
17816 # The build system.
17817 build_alias=$build_alias
17818 build=$build
17819 build_os=$build_os
17820
17821 # A sed program that does not truncate output.
17822 SED=$lt_SED
17823
17824 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17825 Xsed="\$SED -e 1s/^X//"
17826
17827 # A grep program that handles long lines.
17828 GREP=$lt_GREP
17829
17830 # An ERE matcher.
17831 EGREP=$lt_EGREP
17832
17833 # A literal string matcher.
17834 FGREP=$lt_FGREP
17835
17836 # A BSD- or MS-compatible name lister.
17837 NM=$lt_NM
17838
17839 # Whether we need soft or hard links.
17840 LN_S=$lt_LN_S
17841
17842 # What is the maximum length of a command?
17843 max_cmd_len=$max_cmd_len
17844
17845 # Object file suffix (normally "o").
17846 objext=$ac_objext
17847
17848 # Executable file suffix (normally "").
17849 exeext=$exeext
17850
17851 # whether the shell understands "unset".
17852 lt_unset=$lt_unset
17853
17854 # turn spaces into newlines.
17855 SP2NL=$lt_lt_SP2NL
17856
17857 # turn newlines into spaces.
17858 NL2SP=$lt_lt_NL2SP
17859
17860 # An object symbol dumper.
17861 OBJDUMP=$lt_OBJDUMP
17862
17863 # Method to check whether dependent libraries are shared objects.
17864 deplibs_check_method=$lt_deplibs_check_method
17865
17866 # Command to use when deplibs_check_method == "file_magic".
17867 file_magic_cmd=$lt_file_magic_cmd
17868
17869 # The archiver.
17870 AR=$lt_AR
17871 AR_FLAGS=$lt_AR_FLAGS
17872
17873 # A symbol stripping program.
17874 STRIP=$lt_STRIP
17875
17876 # Commands used to install an old-style archive.
17877 RANLIB=$lt_RANLIB
17878 old_postinstall_cmds=$lt_old_postinstall_cmds
17879 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17880
17881 # Whether to use a lock for old archive extraction.
17882 lock_old_archive_extraction=$lock_old_archive_extraction
17883
17884 # A C compiler.
17885 LTCC=$lt_CC
17886
17887 # LTCC compiler flags.
17888 LTCFLAGS=$lt_CFLAGS
17889
17890 # Take the output of nm and produce a listing of raw symbols and C names.
17891 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17892
17893 # Transform the output of nm in a proper C declaration.
17894 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17895
17896 # Transform the output of nm in a C name address pair.
17897 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17898
17899 # Transform the output of nm in a C name address pair when lib prefix is needed.
17900 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17901
17902 # The name of the directory that contains temporary libtool files.
17903 objdir=$objdir
17904
17905 # Used to examine libraries when file_magic_cmd begins with "file".
17906 MAGIC_CMD=$MAGIC_CMD
17907
17908 # Must we lock files when doing compilation?
17909 need_locks=$lt_need_locks
17910
17911 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17912 DSYMUTIL=$lt_DSYMUTIL
17913
17914 # Tool to change global to local symbols on Mac OS X.
17915 NMEDIT=$lt_NMEDIT
17916
17917 # Tool to manipulate fat objects and archives on Mac OS X.
17918 LIPO=$lt_LIPO
17919
17920 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17921 OTOOL=$lt_OTOOL
17922
17923 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17924 OTOOL64=$lt_OTOOL64
17925
17926 # Old archive suffix (normally "a").
17927 libext=$libext
17928
17929 # Shared library suffix (normally ".so").
17930 shrext_cmds=$lt_shrext_cmds
17931
17932 # The commands to extract the exported symbol list from a shared archive.
17933 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17934
17935 # Variables whose values should be saved in libtool wrapper scripts and
17936 # restored at link time.
17937 variables_saved_for_relink=$lt_variables_saved_for_relink
17938
17939 # Do we need the "lib" prefix for modules?
17940 need_lib_prefix=$need_lib_prefix
17941
17942 # Do we need a version for libraries?
17943 need_version=$need_version
17944
17945 # Library versioning type.
17946 version_type=$version_type
17947
17948 # Shared library runtime path variable.
17949 runpath_var=$runpath_var
17950
17951 # Shared library path variable.
17952 shlibpath_var=$shlibpath_var
17953
17954 # Is shlibpath searched before the hard-coded library search path?
17955 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17956
17957 # Format of library name prefix.
17958 libname_spec=$lt_libname_spec
17959
17960 # List of archive names. First name is the real one, the rest are links.
17961 # The last name is the one that the linker finds with -lNAME
17962 library_names_spec=$lt_library_names_spec
17963
17964 # The coded name of the library, if different from the real name.
17965 soname_spec=$lt_soname_spec
17966
17967 # Permission mode override for installation of shared libraries.
17968 install_override_mode=$lt_install_override_mode
17969
17970 # Command to use after installation of a shared archive.
17971 postinstall_cmds=$lt_postinstall_cmds
17972
17973 # Command to use after uninstallation of a shared archive.
17974 postuninstall_cmds=$lt_postuninstall_cmds
17975
17976 # Commands used to finish a libtool library installation in a directory.
17977 finish_cmds=$lt_finish_cmds
17978
17979 # As "finish_cmds", except a single script fragment to be evaled but
17980 # not shown.
17981 finish_eval=$lt_finish_eval
17982
17983 # Whether we should hardcode library paths into libraries.
17984 hardcode_into_libs=$hardcode_into_libs
17985
17986 # Compile-time system search path for libraries.
17987 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17988
17989 # Run-time system search path for libraries.
17990 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17991
17992 # Whether dlopen is supported.
17993 dlopen_support=$enable_dlopen
17994
17995 # Whether dlopen of programs is supported.
17996 dlopen_self=$enable_dlopen_self
17997
17998 # Whether dlopen of statically linked programs is supported.
17999 dlopen_self_static=$enable_dlopen_self_static
18000
18001 # Commands to strip libraries.
18002 old_striplib=$lt_old_striplib
18003 striplib=$lt_striplib
18004
18005
18006 # The linker used to build libraries.
18007 LD=$lt_LD
18008
18009 # How to create reloadable object files.
18010 reload_flag=$lt_reload_flag
18011 reload_cmds=$lt_reload_cmds
18012
18013 # Commands used to build an old-style archive.
18014 old_archive_cmds=$lt_old_archive_cmds
18015
18016 # A language specific compiler.
18017 CC=$lt_compiler
18018
18019 # Is the compiler the GNU compiler?
18020 with_gcc=$GCC
18021
18022 # Compiler flag to turn off builtin functions.
18023 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18024
18025 # How to pass a linker flag through the compiler.
18026 wl=$lt_lt_prog_compiler_wl
18027
18028 # Additional compiler flags for building library objects.
18029 pic_flag=$lt_lt_prog_compiler_pic
18030
18031 # Compiler flag to prevent dynamic linking.
18032 link_static_flag=$lt_lt_prog_compiler_static
18033
18034 # Does compiler simultaneously support -c and -o options?
18035 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18036
18037 # Whether or not to add -lc for building shared libraries.
18038 build_libtool_need_lc=$archive_cmds_need_lc
18039
18040 # Whether or not to disallow shared libs when runtime libs are static.
18041 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18042
18043 # Compiler flag to allow reflexive dlopens.
18044 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18045
18046 # Compiler flag to generate shared objects directly from archives.
18047 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18048
18049 # Whether the compiler copes with passing no objects directly.
18050 compiler_needs_object=$lt_compiler_needs_object
18051
18052 # Create an old-style archive from a shared archive.
18053 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18054
18055 # Create a temporary old-style archive to link instead of a shared archive.
18056 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18057
18058 # Commands used to build a shared archive.
18059 archive_cmds=$lt_archive_cmds
18060 archive_expsym_cmds=$lt_archive_expsym_cmds
18061
18062 # Commands used to build a loadable module if different from building
18063 # a shared archive.
18064 module_cmds=$lt_module_cmds
18065 module_expsym_cmds=$lt_module_expsym_cmds
18066
18067 # Whether we are building with GNU ld or not.
18068 with_gnu_ld=$lt_with_gnu_ld
18069
18070 # Flag that allows shared libraries with undefined symbols to be built.
18071 allow_undefined_flag=$lt_allow_undefined_flag
18072
18073 # Flag that enforces no undefined symbols.
18074 no_undefined_flag=$lt_no_undefined_flag
18075
18076 # Flag to hardcode \$libdir into a binary during linking.
18077 # This must work even if \$libdir does not exist
18078 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18079
18080 # If ld is used when linking, flag to hardcode \$libdir into a binary
18081 # during linking. This must work even if \$libdir does not exist.
18082 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18083
18084 # Whether we need a single "-rpath" flag with a separated argument.
18085 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18086
18087 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18088 # DIR into the resulting binary.
18089 hardcode_direct=$hardcode_direct
18090
18091 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18092 # DIR into the resulting binary and the resulting library dependency is
18093 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18094 # library is relocated.
18095 hardcode_direct_absolute=$hardcode_direct_absolute
18096
18097 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18098 # into the resulting binary.
18099 hardcode_minus_L=$hardcode_minus_L
18100
18101 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18102 # into the resulting binary.
18103 hardcode_shlibpath_var=$hardcode_shlibpath_var
18104
18105 # Set to "yes" if building a shared library automatically hardcodes DIR
18106 # into the library and all subsequent libraries and executables linked
18107 # against it.
18108 hardcode_automatic=$hardcode_automatic
18109
18110 # Set to yes if linker adds runtime paths of dependent libraries
18111 # to runtime path list.
18112 inherit_rpath=$inherit_rpath
18113
18114 # Whether libtool must link a program against all its dependency libraries.
18115 link_all_deplibs=$link_all_deplibs
18116
18117 # Fix the shell variable \$srcfile for the compiler.
18118 fix_srcfile_path=$lt_fix_srcfile_path
18119
18120 # Set to "yes" if exported symbols are required.
18121 always_export_symbols=$always_export_symbols
18122
18123 # The commands to list exported symbols.
18124 export_symbols_cmds=$lt_export_symbols_cmds
18125
18126 # Symbols that should not be listed in the preloaded symbols.
18127 exclude_expsyms=$lt_exclude_expsyms
18128
18129 # Symbols that must always be exported.
18130 include_expsyms=$lt_include_expsyms
18131
18132 # Commands necessary for linking programs (against libraries) with templates.
18133 prelink_cmds=$lt_prelink_cmds
18134
18135 # Specify filename containing input files.
18136 file_list_spec=$lt_file_list_spec
18137
18138 # How to hardcode a shared library path into an executable.
18139 hardcode_action=$hardcode_action
18140
18141 # ### END LIBTOOL CONFIG
18142
18143 _LT_EOF
18144
18145 case $host_os in
18146 aix3*)
18147 cat <<\_LT_EOF >> "$cfgfile"
18148 # AIX sometimes has problems with the GCC collect2 program. For some
18149 # reason, if we set the COLLECT_NAMES environment variable, the problems
18150 # vanish in a puff of smoke.
18151 if test "X${COLLECT_NAMES+set}" != Xset; then
18152 COLLECT_NAMES=
18153 export COLLECT_NAMES
18154 fi
18155 _LT_EOF
18156 ;;
18157 esac
18158
18159
18160 ltmain="$ac_aux_dir/ltmain.sh"
18161
18162
18163 # We use sed instead of cat because bash on DJGPP gets confused if
18164 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18165 # text mode, it properly converts lines to CR/LF. This bash problem
18166 # is reportedly fixed, but why not run on old versions too?
18167 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18168 || (rm -f "$cfgfile"; exit 1)
18169
18170 case $xsi_shell in
18171 yes)
18172 cat << \_LT_EOF >> "$cfgfile"
18173
18174 # func_dirname file append nondir_replacement
18175 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18176 # otherwise set result to NONDIR_REPLACEMENT.
18177 func_dirname ()
18178 {
18179 case ${1} in
18180 */*) func_dirname_result="${1%/*}${2}" ;;
18181 * ) func_dirname_result="${3}" ;;
18182 esac
18183 }
18184
18185 # func_basename file
18186 func_basename ()
18187 {
18188 func_basename_result="${1##*/}"
18189 }
18190
18191 # func_dirname_and_basename file append nondir_replacement
18192 # perform func_basename and func_dirname in a single function
18193 # call:
18194 # dirname: Compute the dirname of FILE. If nonempty,
18195 # add APPEND to the result, otherwise set result
18196 # to NONDIR_REPLACEMENT.
18197 # value returned in "$func_dirname_result"
18198 # basename: Compute filename of FILE.
18199 # value retuned in "$func_basename_result"
18200 # Implementation must be kept synchronized with func_dirname
18201 # and func_basename. For efficiency, we do not delegate to
18202 # those functions but instead duplicate the functionality here.
18203 func_dirname_and_basename ()
18204 {
18205 case ${1} in
18206 */*) func_dirname_result="${1%/*}${2}" ;;
18207 * ) func_dirname_result="${3}" ;;
18208 esac
18209 func_basename_result="${1##*/}"
18210 }
18211
18212 # func_stripname prefix suffix name
18213 # strip PREFIX and SUFFIX off of NAME.
18214 # PREFIX and SUFFIX must not contain globbing or regex special
18215 # characters, hashes, percent signs, but SUFFIX may contain a leading
18216 # dot (in which case that matches only a dot).
18217 func_stripname ()
18218 {
18219 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18220 # positional parameters, so assign one to ordinary parameter first.
18221 func_stripname_result=${3}
18222 func_stripname_result=${func_stripname_result#"${1}"}
18223 func_stripname_result=${func_stripname_result%"${2}"}
18224 }
18225
18226 # func_opt_split
18227 func_opt_split ()
18228 {
18229 func_opt_split_opt=${1%%=*}
18230 func_opt_split_arg=${1#*=}
18231 }
18232
18233 # func_lo2o object
18234 func_lo2o ()
18235 {
18236 case ${1} in
18237 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18238 *) func_lo2o_result=${1} ;;
18239 esac
18240 }
18241
18242 # func_xform libobj-or-source
18243 func_xform ()
18244 {
18245 func_xform_result=${1%.*}.lo
18246 }
18247
18248 # func_arith arithmetic-term...
18249 func_arith ()
18250 {
18251 func_arith_result=$(( $* ))
18252 }
18253
18254 # func_len string
18255 # STRING may not start with a hyphen.
18256 func_len ()
18257 {
18258 func_len_result=${#1}
18259 }
18260
18261 _LT_EOF
18262 ;;
18263 *) # Bourne compatible functions.
18264 cat << \_LT_EOF >> "$cfgfile"
18265
18266 # func_dirname file append nondir_replacement
18267 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18268 # otherwise set result to NONDIR_REPLACEMENT.
18269 func_dirname ()
18270 {
18271 # Extract subdirectory from the argument.
18272 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18273 if test "X$func_dirname_result" = "X${1}"; then
18274 func_dirname_result="${3}"
18275 else
18276 func_dirname_result="$func_dirname_result${2}"
18277 fi
18278 }
18279
18280 # func_basename file
18281 func_basename ()
18282 {
18283 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18284 }
18285
18286
18287 # func_stripname prefix suffix name
18288 # strip PREFIX and SUFFIX off of NAME.
18289 # PREFIX and SUFFIX must not contain globbing or regex special
18290 # characters, hashes, percent signs, but SUFFIX may contain a leading
18291 # dot (in which case that matches only a dot).
18292 # func_strip_suffix prefix name
18293 func_stripname ()
18294 {
18295 case ${2} in
18296 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18297 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18298 esac
18299 }
18300
18301 # sed scripts:
18302 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18303 my_sed_long_arg='1s/^-[^=]*=//'
18304
18305 # func_opt_split
18306 func_opt_split ()
18307 {
18308 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18309 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18310 }
18311
18312 # func_lo2o object
18313 func_lo2o ()
18314 {
18315 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18316 }
18317
18318 # func_xform libobj-or-source
18319 func_xform ()
18320 {
18321 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18322 }
18323
18324 # func_arith arithmetic-term...
18325 func_arith ()
18326 {
18327 func_arith_result=`expr "$@"`
18328 }
18329
18330 # func_len string
18331 # STRING may not start with a hyphen.
18332 func_len ()
18333 {
18334 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18335 }
18336
18337 _LT_EOF
18338 esac
18339
18340 case $lt_shell_append in
18341 yes)
18342 cat << \_LT_EOF >> "$cfgfile"
18343
18344 # func_append var value
18345 # Append VALUE to the end of shell variable VAR.
18346 func_append ()
18347 {
18348 eval "$1+=\$2"
18349 }
18350 _LT_EOF
18351 ;;
18352 *)
18353 cat << \_LT_EOF >> "$cfgfile"
18354
18355 # func_append var value
18356 # Append VALUE to the end of shell variable VAR.
18357 func_append ()
18358 {
18359 eval "$1=\$$1\$2"
18360 }
18361
18362 _LT_EOF
18363 ;;
18364 esac
18365
18366
18367 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18368 || (rm -f "$cfgfile"; exit 1)
18369
18370 mv -f "$cfgfile" "$ofile" ||
18371 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18372 chmod +x "$ofile"
18373
18374
18375 cat <<_LT_EOF >> "$ofile"
18376
18377 # ### BEGIN LIBTOOL TAG CONFIG: D
18378
18379 # The linker used to build libraries.
18380 LD=$lt_LD_D
18381
18382 # How to create reloadable object files.
18383 reload_flag=$lt_reload_flag_D
18384 reload_cmds=$lt_reload_cmds_D
18385
18386 # Commands used to build an old-style archive.
18387 old_archive_cmds=$lt_old_archive_cmds_D
18388
18389 # A language specific compiler.
18390 CC=$lt_compiler_D
18391
18392 # Is the compiler the GNU compiler?
18393 with_gcc=$GCC_D
18394
18395 # Compiler flag to turn off builtin functions.
18396 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_D
18397
18398 # How to pass a linker flag through the compiler.
18399 wl=$lt_lt_prog_compiler_wl_D
18400
18401 # Additional compiler flags for building library objects.
18402 pic_flag=$lt_lt_prog_compiler_pic_D
18403
18404 # Compiler flag to prevent dynamic linking.
18405 link_static_flag=$lt_lt_prog_compiler_static_D
18406
18407 # Does compiler simultaneously support -c and -o options?
18408 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_D
18409
18410 # Whether or not to add -lc for building shared libraries.
18411 build_libtool_need_lc=$archive_cmds_need_lc_D
18412
18413 # Whether or not to disallow shared libs when runtime libs are static.
18414 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_D
18415
18416 # Compiler flag to allow reflexive dlopens.
18417 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_D
18418
18419 # Compiler flag to generate shared objects directly from archives.
18420 whole_archive_flag_spec=$lt_whole_archive_flag_spec_D
18421
18422 # Whether the compiler copes with passing no objects directly.
18423 compiler_needs_object=$lt_compiler_needs_object_D
18424
18425 # Create an old-style archive from a shared archive.
18426 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_D
18427
18428 # Create a temporary old-style archive to link instead of a shared archive.
18429 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_D
18430
18431 # Commands used to build a shared archive.
18432 archive_cmds=$lt_archive_cmds_D
18433 archive_expsym_cmds=$lt_archive_expsym_cmds_D
18434
18435 # Commands used to build a loadable module if different from building
18436 # a shared archive.
18437 module_cmds=$lt_module_cmds_D
18438 module_expsym_cmds=$lt_module_expsym_cmds_D
18439
18440 # Whether we are building with GNU ld or not.
18441 with_gnu_ld=$lt_with_gnu_ld_D
18442
18443 # Flag that allows shared libraries with undefined symbols to be built.
18444 allow_undefined_flag=$lt_allow_undefined_flag_D
18445
18446 # Flag that enforces no undefined symbols.
18447 no_undefined_flag=$lt_no_undefined_flag_D
18448
18449 # Flag to hardcode \$libdir into a binary during linking.
18450 # This must work even if \$libdir does not exist
18451 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_D
18452
18453 # If ld is used when linking, flag to hardcode \$libdir into a binary
18454 # during linking. This must work even if \$libdir does not exist.
18455 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_D
18456
18457 # Whether we need a single "-rpath" flag with a separated argument.
18458 hardcode_libdir_separator=$lt_hardcode_libdir_separator_D
18459
18460 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18461 # DIR into the resulting binary.
18462 hardcode_direct=$hardcode_direct_D
18463
18464 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18465 # DIR into the resulting binary and the resulting library dependency is
18466 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18467 # library is relocated.
18468 hardcode_direct_absolute=$hardcode_direct_absolute_D
18469
18470 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18471 # into the resulting binary.
18472 hardcode_minus_L=$hardcode_minus_L_D
18473
18474 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18475 # into the resulting binary.
18476 hardcode_shlibpath_var=$hardcode_shlibpath_var_D
18477
18478 # Set to "yes" if building a shared library automatically hardcodes DIR
18479 # into the library and all subsequent libraries and executables linked
18480 # against it.
18481 hardcode_automatic=$hardcode_automatic_D
18482
18483 # Set to yes if linker adds runtime paths of dependent libraries
18484 # to runtime path list.
18485 inherit_rpath=$inherit_rpath_D
18486
18487 # Whether libtool must link a program against all its dependency libraries.
18488 link_all_deplibs=$link_all_deplibs_D
18489
18490 # Fix the shell variable \$srcfile for the compiler.
18491 fix_srcfile_path=$lt_fix_srcfile_path_D
18492
18493 # Set to "yes" if exported symbols are required.
18494 always_export_symbols=$always_export_symbols_D
18495
18496 # The commands to list exported symbols.
18497 export_symbols_cmds=$lt_export_symbols_cmds_D
18498
18499 # Symbols that should not be listed in the preloaded symbols.
18500 exclude_expsyms=$lt_exclude_expsyms_D
18501
18502 # Symbols that must always be exported.
18503 include_expsyms=$lt_include_expsyms_D
18504
18505 # Commands necessary for linking programs (against libraries) with templates.
18506 prelink_cmds=$lt_prelink_cmds_D
18507
18508 # Specify filename containing input files.
18509 file_list_spec=$lt_file_list_spec_D
18510
18511 # How to hardcode a shared library path into an executable.
18512 hardcode_action=$hardcode_action_D
18513
18514 # ### END LIBTOOL TAG CONFIG: D
18515 _LT_EOF
18516
18517 ;;
18518 "testsuite/testsuite_flags":F) chmod +x testsuite/testsuite_flags ;;
18519 "libdruntime/Makefile":F) cat > vpsed$$ << \_EOF
18520 s!`test -f '$<' || echo '$(srcdir)/'`!!
18521 _EOF
18522 sed -f vpsed$$ $ac_file > tmp$$
18523 mv tmp$$ $ac_file
18524 rm vpsed$$
18525 echo 'MULTISUBDIR =' >> $ac_file
18526 ml_norecursion=yes
18527 . ${multi_basedir}/config-ml.in
18528 { ml_norecursion=; unset ml_norecursion;}
18529 ;;
18530 "src/Makefile":F) cat > vpsed$$ << \_EOF
18531 s!`test -f '$<' || echo '$(srcdir)/'`!!
18532 _EOF
18533 sed -f vpsed$$ $ac_file > tmp$$
18534 mv tmp$$ $ac_file
18535 rm vpsed$$
18536 echo 'MULTISUBDIR =' >> $ac_file
18537 ml_norecursion=yes
18538 . ${multi_basedir}/config-ml.in
18539 { ml_norecursion=; unset ml_norecursion;}
18540 ;;
18541 "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
18542 s!`test -f '$<' || echo '$(srcdir)/'`!!
18543 _EOF
18544 sed -f vpsed$$ $ac_file > tmp$$
18545 mv tmp$$ $ac_file
18546 rm vpsed$$
18547 echo 'MULTISUBDIR =' >> $ac_file
18548 ml_norecursion=yes
18549 . ${multi_basedir}/config-ml.in
18550 { ml_norecursion=; unset ml_norecursion;}
18551 ;;
18552
18553 esac
18554 done # for ac_tag
18555
18556
18557 as_fn_exit 0
18558 _ACEOF
18559 ac_clean_files=$ac_clean_files_save
18560
18561 test $ac_write_fail = 0 ||
18562 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18563
18564
18565 # configure is writing to config.log, and then calls config.status.
18566 # config.status does its own redirection, appending to config.log.
18567 # Unfortunately, on DOS this fails, as config.log is still kept open
18568 # by configure, so config.status won't be able to write to it; its
18569 # output is simply discarded. So we exec the FD to /dev/null,
18570 # effectively closing config.log, so it can be properly (re)opened and
18571 # appended to by config.status. When coming back to configure, we
18572 # need to make the FD available again.
18573 if test "$no_create" != yes; then
18574 ac_cs_success=:
18575 ac_config_status_args=
18576 test "$silent" = yes &&
18577 ac_config_status_args="$ac_config_status_args --quiet"
18578 exec 5>/dev/null
18579 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18580 exec 5>>config.log
18581 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18582 # would make configure fail if this is the last instruction.
18583 $ac_cs_success || as_fn_exit 1
18584 fi
18585 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18587 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18588 fi
18589