libphobos: Add power*-*-linux* as a supported target
[gcc.git] / libphobos / configure
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 bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
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_LINK_SPEC
659 DCFG_DLPI_TLS_MODID
660 DRUNTIME_OS_MINFO_BRACKETING_FALSE
661 DRUNTIME_OS_MINFO_BRACKETING_TRUE
662 DCFG_MINFO_BRACKETING
663 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
664 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
665 DCFG_ARM_EABI_UNWINDER
666 DCFG_THREAD_MODEL
667 DRUNTIME_OS_POSIX_FALSE
668 DRUNTIME_OS_POSIX_TRUE
669 DRUNTIME_OS_SOLARIS_FALSE
670 DRUNTIME_OS_SOLARIS_TRUE
671 DRUNTIME_OS_MINGW_FALSE
672 DRUNTIME_OS_MINGW_TRUE
673 DRUNTIME_OS_LINUX_FALSE
674 DRUNTIME_OS_LINUX_TRUE
675 DRUNTIME_OS_OPENBSD_FALSE
676 DRUNTIME_OS_OPENBSD_TRUE
677 DRUNTIME_OS_NETBSD_FALSE
678 DRUNTIME_OS_NETBSD_TRUE
679 DRUNTIME_OS_FREEBSD_FALSE
680 DRUNTIME_OS_FREEBSD_TRUE
681 DRUNTIME_OS_DRAGONFLYBSD_FALSE
682 DRUNTIME_OS_DRAGONFLYBSD_TRUE
683 DRUNTIME_OS_DARWIN_FALSE
684 DRUNTIME_OS_DARWIN_TRUE
685 DRUNTIME_OS_ANDROID_FALSE
686 DRUNTIME_OS_ANDROID_TRUE
687 DRUNTIME_OS_AIX_FALSE
688 DRUNTIME_OS_AIX_TRUE
689 DRUNTIME_CPU_S390_FALSE
690 DRUNTIME_CPU_S390_TRUE
691 DRUNTIME_CPU_SYSTEMZ_FALSE
692 DRUNTIME_CPU_SYSTEMZ_TRUE
693 DRUNTIME_CPU_X86_FALSE
694 DRUNTIME_CPU_X86_TRUE
695 DRUNTIME_CPU_POWERPC64_FALSE
696 DRUNTIME_CPU_POWERPC64_TRUE
697 DRUNTIME_CPU_POWERPC_FALSE
698 DRUNTIME_CPU_POWERPC_TRUE
699 DRUNTIME_CPU_MIPS_FALSE
700 DRUNTIME_CPU_MIPS_TRUE
701 DRUNTIME_CPU_ARM_FALSE
702 DRUNTIME_CPU_ARM_TRUE
703 DRUNTIME_CPU_AARCH64_FALSE
704 DRUNTIME_CPU_AARCH64_TRUE
705 libphobos_srcdir
706 libphobos_builddir
707 get_gcc_base_ver
708 phobos_compiler_shared_flag
709 phobos_compiler_pic_flag
710 OTOOL64
711 OTOOL
712 LIPO
713 NMEDIT
714 DSYMUTIL
715 OBJDUMP
716 LN_S
717 NM
718 ac_ct_DUMPBIN
719 DUMPBIN
720 LD
721 FGREP
722 SED
723 LIBTOOL
724 CFLAGS_FOR_BUILD
725 CC_FOR_BUILD
726 AR
727 RANLIB
728 MAINT
729 MAINTAINER_MODE_FALSE
730 MAINTAINER_MODE_TRUE
731 GDCFLAGS
732 GDC
733 CCASFLAGS
734 CCAS
735 AM_BACKSLASH
736 AM_DEFAULT_VERBOSITY
737 AM_DEFAULT_V
738 AM_V
739 am__untar
740 am__tar
741 AMTAR
742 am__leading_dot
743 SET_MAKE
744 AWK
745 mkdir_p
746 MKDIR_P
747 INSTALL_STRIP_PROGRAM
748 STRIP
749 install_sh
750 MAKEINFO
751 AUTOHEADER
752 AUTOMAKE
753 AUTOCONF
754 ACLOCAL
755 VERSION
756 PACKAGE
757 CYGPATH_W
758 am__isrc
759 INSTALL_DATA
760 INSTALL_SCRIPT
761 INSTALL_PROGRAM
762 EGREP
763 GREP
764 CPP
765 OBJEXT
766 EXEEXT
767 ac_ct_CC
768 CPPFLAGS
769 LDFLAGS
770 CFLAGS
771 CC
772 target_os
773 target_vendor
774 target_cpu
775 target
776 host_os
777 host_vendor
778 host_cpu
779 host
780 build_os
781 build_vendor
782 build_cpu
783 build
784 multi_basedir
785 target_alias
786 host_alias
787 build_alias
788 LIBS
789 ECHO_T
790 ECHO_N
791 ECHO_C
792 DEFS
793 mandir
794 localedir
795 libdir
796 psdir
797 pdfdir
798 dvidir
799 htmldir
800 infodir
801 docdir
802 oldincludedir
803 includedir
804 localstatedir
805 sharedstatedir
806 sysconfdir
807 datadir
808 datarootdir
809 libexecdir
810 sbindir
811 bindir
812 program_transform_name
813 prefix
814 exec_prefix
815 PACKAGE_URL
816 PACKAGE_BUGREPORT
817 PACKAGE_STRING
818 PACKAGE_VERSION
819 PACKAGE_TARNAME
820 PACKAGE_NAME
821 PATH_SEPARATOR
822 SHELL'
823 ac_subst_files='DRTSTUFF_SPEC'
824 ac_user_opts='
825 enable_option_checking
826 enable_multilib
827 enable_silent_rules
828 enable_maintainer_mode
829 enable_shared
830 enable_static
831 with_pic
832 enable_fast_install
833 with_gnu_ld
834 enable_libtool_lock
835 with_gcc_major_version_only
836 enable_werror
837 with_libatomic
838 with_libbacktrace
839 with_target_system_zlib
840 with_cross_host
841 enable_version_specific_runtime_libs
842 with_toolexeclibdir
843 enable_libphobos
844 with_libphobos_druntime_only
845 enable_libphobos_checking
846 '
847 ac_precious_vars='build_alias
848 host_alias
849 target_alias
850 CC
851 CFLAGS
852 LDFLAGS
853 LIBS
854 CPPFLAGS
855 CPP'
856
857
858 # Initialize some variables set by options.
859 ac_init_help=
860 ac_init_version=false
861 ac_unrecognized_opts=
862 ac_unrecognized_sep=
863 # The variables have the same names as the options, with
864 # dashes changed to underlines.
865 cache_file=/dev/null
866 exec_prefix=NONE
867 no_create=
868 no_recursion=
869 prefix=NONE
870 program_prefix=NONE
871 program_suffix=NONE
872 program_transform_name=s,x,x,
873 silent=
874 site=
875 srcdir=
876 verbose=
877 x_includes=NONE
878 x_libraries=NONE
879
880 # Installation directory options.
881 # These are left unexpanded so users can "make install exec_prefix=/foo"
882 # and all the variables that are supposed to be based on exec_prefix
883 # by default will actually change.
884 # Use braces instead of parens because sh, perl, etc. also accept them.
885 # (The list follows the same order as the GNU Coding Standards.)
886 bindir='${exec_prefix}/bin'
887 sbindir='${exec_prefix}/sbin'
888 libexecdir='${exec_prefix}/libexec'
889 datarootdir='${prefix}/share'
890 datadir='${datarootdir}'
891 sysconfdir='${prefix}/etc'
892 sharedstatedir='${prefix}/com'
893 localstatedir='${prefix}/var'
894 includedir='${prefix}/include'
895 oldincludedir='/usr/include'
896 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
897 infodir='${datarootdir}/info'
898 htmldir='${docdir}'
899 dvidir='${docdir}'
900 pdfdir='${docdir}'
901 psdir='${docdir}'
902 libdir='${exec_prefix}/lib'
903 localedir='${datarootdir}/locale'
904 mandir='${datarootdir}/man'
905
906 ac_prev=
907 ac_dashdash=
908 for ac_option
909 do
910 # If the previous option needs an argument, assign it.
911 if test -n "$ac_prev"; then
912 eval $ac_prev=\$ac_option
913 ac_prev=
914 continue
915 fi
916
917 case $ac_option in
918 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
919 *=) ac_optarg= ;;
920 *) ac_optarg=yes ;;
921 esac
922
923 # Accept the important Cygnus configure options, so we can diagnose typos.
924
925 case $ac_dashdash$ac_option in
926 --)
927 ac_dashdash=yes ;;
928
929 -bindir | --bindir | --bindi | --bind | --bin | --bi)
930 ac_prev=bindir ;;
931 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
932 bindir=$ac_optarg ;;
933
934 -build | --build | --buil | --bui | --bu)
935 ac_prev=build_alias ;;
936 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
937 build_alias=$ac_optarg ;;
938
939 -cache-file | --cache-file | --cache-fil | --cache-fi \
940 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
941 ac_prev=cache_file ;;
942 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
943 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
944 cache_file=$ac_optarg ;;
945
946 --config-cache | -C)
947 cache_file=config.cache ;;
948
949 -datadir | --datadir | --datadi | --datad)
950 ac_prev=datadir ;;
951 -datadir=* | --datadir=* | --datadi=* | --datad=*)
952 datadir=$ac_optarg ;;
953
954 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
955 | --dataroo | --dataro | --datar)
956 ac_prev=datarootdir ;;
957 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
958 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
959 datarootdir=$ac_optarg ;;
960
961 -disable-* | --disable-*)
962 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
963 # Reject names that are not valid shell variable names.
964 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
965 as_fn_error $? "invalid feature name: $ac_useropt"
966 ac_useropt_orig=$ac_useropt
967 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
968 case $ac_user_opts in
969 *"
970 "enable_$ac_useropt"
971 "*) ;;
972 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
973 ac_unrecognized_sep=', ';;
974 esac
975 eval enable_$ac_useropt=no ;;
976
977 -docdir | --docdir | --docdi | --doc | --do)
978 ac_prev=docdir ;;
979 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
980 docdir=$ac_optarg ;;
981
982 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
983 ac_prev=dvidir ;;
984 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
985 dvidir=$ac_optarg ;;
986
987 -enable-* | --enable-*)
988 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
989 # Reject names that are not valid shell variable names.
990 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
991 as_fn_error $? "invalid feature name: $ac_useropt"
992 ac_useropt_orig=$ac_useropt
993 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
994 case $ac_user_opts in
995 *"
996 "enable_$ac_useropt"
997 "*) ;;
998 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
999 ac_unrecognized_sep=', ';;
1000 esac
1001 eval enable_$ac_useropt=\$ac_optarg ;;
1002
1003 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1004 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1005 | --exec | --exe | --ex)
1006 ac_prev=exec_prefix ;;
1007 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1008 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1009 | --exec=* | --exe=* | --ex=*)
1010 exec_prefix=$ac_optarg ;;
1011
1012 -gas | --gas | --ga | --g)
1013 # Obsolete; use --with-gas.
1014 with_gas=yes ;;
1015
1016 -help | --help | --hel | --he | -h)
1017 ac_init_help=long ;;
1018 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1019 ac_init_help=recursive ;;
1020 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1021 ac_init_help=short ;;
1022
1023 -host | --host | --hos | --ho)
1024 ac_prev=host_alias ;;
1025 -host=* | --host=* | --hos=* | --ho=*)
1026 host_alias=$ac_optarg ;;
1027
1028 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1029 ac_prev=htmldir ;;
1030 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1031 | --ht=*)
1032 htmldir=$ac_optarg ;;
1033
1034 -includedir | --includedir | --includedi | --included | --include \
1035 | --includ | --inclu | --incl | --inc)
1036 ac_prev=includedir ;;
1037 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1038 | --includ=* | --inclu=* | --incl=* | --inc=*)
1039 includedir=$ac_optarg ;;
1040
1041 -infodir | --infodir | --infodi | --infod | --info | --inf)
1042 ac_prev=infodir ;;
1043 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1044 infodir=$ac_optarg ;;
1045
1046 -libdir | --libdir | --libdi | --libd)
1047 ac_prev=libdir ;;
1048 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1049 libdir=$ac_optarg ;;
1050
1051 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1052 | --libexe | --libex | --libe)
1053 ac_prev=libexecdir ;;
1054 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1055 | --libexe=* | --libex=* | --libe=*)
1056 libexecdir=$ac_optarg ;;
1057
1058 -localedir | --localedir | --localedi | --localed | --locale)
1059 ac_prev=localedir ;;
1060 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1061 localedir=$ac_optarg ;;
1062
1063 -localstatedir | --localstatedir | --localstatedi | --localstated \
1064 | --localstate | --localstat | --localsta | --localst | --locals)
1065 ac_prev=localstatedir ;;
1066 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1067 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1068 localstatedir=$ac_optarg ;;
1069
1070 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1071 ac_prev=mandir ;;
1072 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1073 mandir=$ac_optarg ;;
1074
1075 -nfp | --nfp | --nf)
1076 # Obsolete; use --without-fp.
1077 with_fp=no ;;
1078
1079 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1080 | --no-cr | --no-c | -n)
1081 no_create=yes ;;
1082
1083 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1084 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1085 no_recursion=yes ;;
1086
1087 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1088 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1089 | --oldin | --oldi | --old | --ol | --o)
1090 ac_prev=oldincludedir ;;
1091 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1092 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1093 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1094 oldincludedir=$ac_optarg ;;
1095
1096 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1097 ac_prev=prefix ;;
1098 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1099 prefix=$ac_optarg ;;
1100
1101 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1102 | --program-pre | --program-pr | --program-p)
1103 ac_prev=program_prefix ;;
1104 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1105 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1106 program_prefix=$ac_optarg ;;
1107
1108 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1109 | --program-suf | --program-su | --program-s)
1110 ac_prev=program_suffix ;;
1111 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1112 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1113 program_suffix=$ac_optarg ;;
1114
1115 -program-transform-name | --program-transform-name \
1116 | --program-transform-nam | --program-transform-na \
1117 | --program-transform-n | --program-transform- \
1118 | --program-transform | --program-transfor \
1119 | --program-transfo | --program-transf \
1120 | --program-trans | --program-tran \
1121 | --progr-tra | --program-tr | --program-t)
1122 ac_prev=program_transform_name ;;
1123 -program-transform-name=* | --program-transform-name=* \
1124 | --program-transform-nam=* | --program-transform-na=* \
1125 | --program-transform-n=* | --program-transform-=* \
1126 | --program-transform=* | --program-transfor=* \
1127 | --program-transfo=* | --program-transf=* \
1128 | --program-trans=* | --program-tran=* \
1129 | --progr-tra=* | --program-tr=* | --program-t=*)
1130 program_transform_name=$ac_optarg ;;
1131
1132 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1133 ac_prev=pdfdir ;;
1134 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1135 pdfdir=$ac_optarg ;;
1136
1137 -psdir | --psdir | --psdi | --psd | --ps)
1138 ac_prev=psdir ;;
1139 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1140 psdir=$ac_optarg ;;
1141
1142 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1143 | -silent | --silent | --silen | --sile | --sil)
1144 silent=yes ;;
1145
1146 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1147 ac_prev=sbindir ;;
1148 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1149 | --sbi=* | --sb=*)
1150 sbindir=$ac_optarg ;;
1151
1152 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1153 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1154 | --sharedst | --shareds | --shared | --share | --shar \
1155 | --sha | --sh)
1156 ac_prev=sharedstatedir ;;
1157 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1158 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1159 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1160 | --sha=* | --sh=*)
1161 sharedstatedir=$ac_optarg ;;
1162
1163 -site | --site | --sit)
1164 ac_prev=site ;;
1165 -site=* | --site=* | --sit=*)
1166 site=$ac_optarg ;;
1167
1168 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1169 ac_prev=srcdir ;;
1170 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1171 srcdir=$ac_optarg ;;
1172
1173 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1174 | --syscon | --sysco | --sysc | --sys | --sy)
1175 ac_prev=sysconfdir ;;
1176 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1177 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1178 sysconfdir=$ac_optarg ;;
1179
1180 -target | --target | --targe | --targ | --tar | --ta | --t)
1181 ac_prev=target_alias ;;
1182 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1183 target_alias=$ac_optarg ;;
1184
1185 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1186 verbose=yes ;;
1187
1188 -version | --version | --versio | --versi | --vers | -V)
1189 ac_init_version=: ;;
1190
1191 -with-* | --with-*)
1192 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1193 # Reject names that are not valid shell variable names.
1194 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1195 as_fn_error $? "invalid package name: $ac_useropt"
1196 ac_useropt_orig=$ac_useropt
1197 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1198 case $ac_user_opts in
1199 *"
1200 "with_$ac_useropt"
1201 "*) ;;
1202 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1203 ac_unrecognized_sep=', ';;
1204 esac
1205 eval with_$ac_useropt=\$ac_optarg ;;
1206
1207 -without-* | --without-*)
1208 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1209 # Reject names that are not valid shell variable names.
1210 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1211 as_fn_error $? "invalid package name: $ac_useropt"
1212 ac_useropt_orig=$ac_useropt
1213 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1214 case $ac_user_opts in
1215 *"
1216 "with_$ac_useropt"
1217 "*) ;;
1218 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1219 ac_unrecognized_sep=', ';;
1220 esac
1221 eval with_$ac_useropt=no ;;
1222
1223 --x)
1224 # Obsolete; use --with-x.
1225 with_x=yes ;;
1226
1227 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1228 | --x-incl | --x-inc | --x-in | --x-i)
1229 ac_prev=x_includes ;;
1230 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1231 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1232 x_includes=$ac_optarg ;;
1233
1234 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1235 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1236 ac_prev=x_libraries ;;
1237 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1238 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1239 x_libraries=$ac_optarg ;;
1240
1241 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1242 Try \`$0 --help' for more information"
1243 ;;
1244
1245 *=*)
1246 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1247 # Reject names that are not valid shell variable names.
1248 case $ac_envvar in #(
1249 '' | [0-9]* | *[!_$as_cr_alnum]* )
1250 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1251 esac
1252 eval $ac_envvar=\$ac_optarg
1253 export $ac_envvar ;;
1254
1255 *)
1256 # FIXME: should be removed in autoconf 3.0.
1257 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1258 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1259 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1260 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1261 ;;
1262
1263 esac
1264 done
1265
1266 if test -n "$ac_prev"; then
1267 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1268 as_fn_error $? "missing argument to $ac_option"
1269 fi
1270
1271 if test -n "$ac_unrecognized_opts"; then
1272 case $enable_option_checking in
1273 no) ;;
1274 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1275 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1276 esac
1277 fi
1278
1279 # Check all directory arguments for consistency.
1280 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1281 datadir sysconfdir sharedstatedir localstatedir includedir \
1282 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1283 libdir localedir mandir
1284 do
1285 eval ac_val=\$$ac_var
1286 # Remove trailing slashes.
1287 case $ac_val in
1288 */ )
1289 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1290 eval $ac_var=\$ac_val;;
1291 esac
1292 # Be sure to have absolute directory names.
1293 case $ac_val in
1294 [\\/$]* | ?:[\\/]* ) continue;;
1295 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1296 esac
1297 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1298 done
1299
1300 # There might be people who depend on the old broken behavior: `$host'
1301 # used to hold the argument of --host etc.
1302 # FIXME: To remove some day.
1303 build=$build_alias
1304 host=$host_alias
1305 target=$target_alias
1306
1307 # FIXME: To remove some day.
1308 if test "x$host_alias" != x; then
1309 if test "x$build_alias" = x; then
1310 cross_compiling=maybe
1311 elif test "x$build_alias" != "x$host_alias"; then
1312 cross_compiling=yes
1313 fi
1314 fi
1315
1316 ac_tool_prefix=
1317 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1318
1319 test "$silent" = yes && exec 6>/dev/null
1320
1321
1322 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1323 ac_ls_di=`ls -di .` &&
1324 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1325 as_fn_error $? "working directory cannot be determined"
1326 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1327 as_fn_error $? "pwd does not report name of working directory"
1328
1329
1330 # Find the source files, if location was not specified.
1331 if test -z "$srcdir"; then
1332 ac_srcdir_defaulted=yes
1333 # Try the directory containing this script, then the parent directory.
1334 ac_confdir=`$as_dirname -- "$as_myself" ||
1335 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1336 X"$as_myself" : 'X\(//\)[^/]' \| \
1337 X"$as_myself" : 'X\(//\)$' \| \
1338 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1339 $as_echo X"$as_myself" |
1340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1341 s//\1/
1342 q
1343 }
1344 /^X\(\/\/\)[^/].*/{
1345 s//\1/
1346 q
1347 }
1348 /^X\(\/\/\)$/{
1349 s//\1/
1350 q
1351 }
1352 /^X\(\/\).*/{
1353 s//\1/
1354 q
1355 }
1356 s/.*/./; q'`
1357 srcdir=$ac_confdir
1358 if test ! -r "$srcdir/$ac_unique_file"; then
1359 srcdir=..
1360 fi
1361 else
1362 ac_srcdir_defaulted=no
1363 fi
1364 if test ! -r "$srcdir/$ac_unique_file"; then
1365 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1366 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1367 fi
1368 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1369 ac_abs_confdir=`(
1370 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1371 pwd)`
1372 # When building in place, set srcdir=.
1373 if test "$ac_abs_confdir" = "$ac_pwd"; then
1374 srcdir=.
1375 fi
1376 # Remove unnecessary trailing slashes from srcdir.
1377 # Double slashes in file names in object file debugging info
1378 # mess up M-x gdb in Emacs.
1379 case $srcdir in
1380 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1381 esac
1382 for ac_var in $ac_precious_vars; do
1383 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1384 eval ac_env_${ac_var}_value=\$${ac_var}
1385 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1387 done
1388
1389 #
1390 # Report the --help message.
1391 #
1392 if test "$ac_init_help" = "long"; then
1393 # Omit some internal or obsolete options to make the list less imposing.
1394 # This message is too long to be a string in the A/UX 3.1 sh.
1395 cat <<_ACEOF
1396 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1397
1398 Usage: $0 [OPTION]... [VAR=VALUE]...
1399
1400 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1401 VAR=VALUE. See below for descriptions of some of the useful variables.
1402
1403 Defaults for the options are specified in brackets.
1404
1405 Configuration:
1406 -h, --help display this help and exit
1407 --help=short display options specific to this package
1408 --help=recursive display the short help of all the included packages
1409 -V, --version display version information and exit
1410 -q, --quiet, --silent do not print \`checking ...' messages
1411 --cache-file=FILE cache test results in FILE [disabled]
1412 -C, --config-cache alias for \`--cache-file=config.cache'
1413 -n, --no-create do not create output files
1414 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1415
1416 Installation directories:
1417 --prefix=PREFIX install architecture-independent files in PREFIX
1418 [$ac_default_prefix]
1419 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1420 [PREFIX]
1421
1422 By default, \`make install' will install all the files in
1423 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1424 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1425 for instance \`--prefix=\$HOME'.
1426
1427 For better control, use the options below.
1428
1429 Fine tuning of the installation directories:
1430 --bindir=DIR user executables [EPREFIX/bin]
1431 --sbindir=DIR system admin executables [EPREFIX/sbin]
1432 --libexecdir=DIR program executables [EPREFIX/libexec]
1433 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1434 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1435 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1436 --libdir=DIR object code libraries [EPREFIX/lib]
1437 --includedir=DIR C header files [PREFIX/include]
1438 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1439 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1440 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1441 --infodir=DIR info documentation [DATAROOTDIR/info]
1442 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1443 --mandir=DIR man documentation [DATAROOTDIR/man]
1444 --docdir=DIR documentation root [DATAROOTDIR/doc/libphobos]
1445 --htmldir=DIR html documentation [DOCDIR]
1446 --dvidir=DIR dvi documentation [DOCDIR]
1447 --pdfdir=DIR pdf documentation [DOCDIR]
1448 --psdir=DIR ps documentation [DOCDIR]
1449 _ACEOF
1450
1451 cat <<\_ACEOF
1452
1453 Program names:
1454 --program-prefix=PREFIX prepend PREFIX to installed program names
1455 --program-suffix=SUFFIX append SUFFIX to installed program names
1456 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1457
1458 System types:
1459 --build=BUILD configure for building on BUILD [guessed]
1460 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1461 --target=TARGET configure for building compilers for TARGET [HOST]
1462 _ACEOF
1463 fi
1464
1465 if test -n "$ac_init_help"; then
1466 case $ac_init_help in
1467 short | recursive ) echo "Configuration of package-unused version-unused:";;
1468 esac
1469 cat <<\_ACEOF
1470
1471 Optional Features:
1472 --disable-option-checking ignore unrecognized --enable/--with options
1473 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1474 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1475 --enable-multilib build many library versions (default)
1476 --enable-silent-rules less verbose build output (undo: "make V=1")
1477 --disable-silent-rules verbose build output (undo: "make V=0")
1478 --enable-maintainer-mode
1479 enable make rules and dependencies not useful (and
1480 sometimes confusing) to the casual installer
1481 --enable-shared[=PKGS] build shared libraries [default=yes]
1482 --enable-static[=PKGS] build static libraries [default=yes]
1483 --enable-fast-install[=PKGS]
1484 optimize for fast installation [default=yes]
1485 --disable-libtool-lock avoid locking (might break parallel builds)
1486 --enable-werror turns on -Werror [default=no]
1487 --enable-version-specific-runtime-libs
1488 Specify that runtime libraries should be installed
1489 in a compiler-specific directory
1490 --enable-libphobos Enable libphobos
1491 --enable-libphobos-checking[=LIST]
1492 enable expensive run-time checks. With LIST, enable
1493 only specific categories of checks. Categories are:
1494 yes,no,all,none,release. Flags are: assert or other
1495 strings
1496
1497 Optional Packages:
1498 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1499 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1500 --with-pic try to use only PIC/non-PIC objects [default=use
1501 both]
1502 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1503 --with-gcc-major-version-only
1504 use only GCC major number in filesystem paths
1505 --without-libatomic Do not use libatomic in core.atomic (default: auto)
1506 --without-libbacktrace Do not use libbacktrace in core.runtime (default:
1507 auto)
1508 --with-target-system-zlib={yes,no,auto}
1509 use installed libz (default: no)
1510 --with-cross-host=HOST configuring with a cross compiler
1511 --with-toolexeclibdir=DIR
1512 install libraries built with a cross compiler within
1513 DIR
1514 --with-libphobos-druntime-only={yes,no,auto}
1515 build only the druntime library (default: auto)
1516
1517 Some influential environment variables:
1518 CC C compiler command
1519 CFLAGS C compiler flags
1520 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1521 nonstandard directory <lib dir>
1522 LIBS libraries to pass to the linker, e.g. -l<library>
1523 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1524 you have headers in a nonstandard directory <include dir>
1525 CPP C preprocessor
1526 CCAS assembler compiler command (defaults to CC)
1527 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1528 GDC D compiler command
1529 GDCFLAGS D compiler flags
1530
1531 Use these variables to override the choices made by `configure' or to help
1532 it to find libraries and programs with nonstandard names/locations.
1533
1534 Report bugs to the package provider.
1535 _ACEOF
1536 ac_status=$?
1537 fi
1538
1539 if test "$ac_init_help" = "recursive"; then
1540 # If there are subdirs, report their specific --help.
1541 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1542 test -d "$ac_dir" ||
1543 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1544 continue
1545 ac_builddir=.
1546
1547 case "$ac_dir" in
1548 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549 *)
1550 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1551 # A ".." for each directory in $ac_dir_suffix.
1552 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1553 case $ac_top_builddir_sub in
1554 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1555 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1556 esac ;;
1557 esac
1558 ac_abs_top_builddir=$ac_pwd
1559 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1560 # for backward compatibility:
1561 ac_top_builddir=$ac_top_build_prefix
1562
1563 case $srcdir in
1564 .) # We are building in place.
1565 ac_srcdir=.
1566 ac_top_srcdir=$ac_top_builddir_sub
1567 ac_abs_top_srcdir=$ac_pwd ;;
1568 [\\/]* | ?:[\\/]* ) # Absolute name.
1569 ac_srcdir=$srcdir$ac_dir_suffix;
1570 ac_top_srcdir=$srcdir
1571 ac_abs_top_srcdir=$srcdir ;;
1572 *) # Relative name.
1573 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1574 ac_top_srcdir=$ac_top_build_prefix$srcdir
1575 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1576 esac
1577 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1578
1579 cd "$ac_dir" || { ac_status=$?; continue; }
1580 # Check for guested configure.
1581 if test -f "$ac_srcdir/configure.gnu"; then
1582 echo &&
1583 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1584 elif test -f "$ac_srcdir/configure"; then
1585 echo &&
1586 $SHELL "$ac_srcdir/configure" --help=recursive
1587 else
1588 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1589 fi || ac_status=$?
1590 cd "$ac_pwd" || { ac_status=$?; break; }
1591 done
1592 fi
1593
1594 test -n "$ac_init_help" && exit $ac_status
1595 if $ac_init_version; then
1596 cat <<\_ACEOF
1597 package-unused configure version-unused
1598 generated by GNU Autoconf 2.69
1599
1600 Copyright (C) 2012 Free Software Foundation, Inc.
1601 This configure script is free software; the Free Software Foundation
1602 gives unlimited permission to copy, distribute and modify it.
1603 _ACEOF
1604 exit
1605 fi
1606
1607 ## ------------------------ ##
1608 ## Autoconf initialization. ##
1609 ## ------------------------ ##
1610
1611 # ac_fn_c_try_compile LINENO
1612 # --------------------------
1613 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1614 ac_fn_c_try_compile ()
1615 {
1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617 rm -f conftest.$ac_objext
1618 if { { ac_try="$ac_compile"
1619 case "(($ac_try" in
1620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621 *) ac_try_echo=$ac_try;;
1622 esac
1623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624 $as_echo "$ac_try_echo"; } >&5
1625 (eval "$ac_compile") 2>conftest.err
1626 ac_status=$?
1627 if test -s conftest.err; then
1628 grep -v '^ *+' conftest.err >conftest.er1
1629 cat conftest.er1 >&5
1630 mv -f conftest.er1 conftest.err
1631 fi
1632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633 test $ac_status = 0; } && {
1634 test -z "$ac_c_werror_flag" ||
1635 test ! -s conftest.err
1636 } && test -s conftest.$ac_objext; then :
1637 ac_retval=0
1638 else
1639 $as_echo "$as_me: failed program was:" >&5
1640 sed 's/^/| /' conftest.$ac_ext >&5
1641
1642 ac_retval=1
1643 fi
1644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645 as_fn_set_status $ac_retval
1646
1647 } # ac_fn_c_try_compile
1648
1649 # ac_fn_c_try_cpp LINENO
1650 # ----------------------
1651 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1652 ac_fn_c_try_cpp ()
1653 {
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 if { { ac_try="$ac_cpp conftest.$ac_ext"
1656 case "(($ac_try" in
1657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1658 *) ac_try_echo=$ac_try;;
1659 esac
1660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661 $as_echo "$ac_try_echo"; } >&5
1662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1663 ac_status=$?
1664 if test -s conftest.err; then
1665 grep -v '^ *+' conftest.err >conftest.er1
1666 cat conftest.er1 >&5
1667 mv -f conftest.er1 conftest.err
1668 fi
1669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1670 test $ac_status = 0; } > conftest.i && {
1671 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1672 test ! -s conftest.err
1673 }; then :
1674 ac_retval=0
1675 else
1676 $as_echo "$as_me: failed program was:" >&5
1677 sed 's/^/| /' conftest.$ac_ext >&5
1678
1679 ac_retval=1
1680 fi
1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682 as_fn_set_status $ac_retval
1683
1684 } # ac_fn_c_try_cpp
1685
1686 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1687 # -------------------------------------------------------
1688 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1689 # the include files in INCLUDES and setting the cache variable VAR
1690 # accordingly.
1691 ac_fn_c_check_header_mongrel ()
1692 {
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 if eval \${$3+:} false; then :
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1696 $as_echo_n "checking for $2... " >&6; }
1697 if eval \${$3+:} false; then :
1698 $as_echo_n "(cached) " >&6
1699 fi
1700 eval ac_res=\$$3
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1702 $as_echo "$ac_res" >&6; }
1703 else
1704 # Is the header compilable?
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1706 $as_echo_n "checking $2 usability... " >&6; }
1707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1708 /* end confdefs.h. */
1709 $4
1710 #include <$2>
1711 _ACEOF
1712 if ac_fn_c_try_compile "$LINENO"; then :
1713 ac_header_compiler=yes
1714 else
1715 ac_header_compiler=no
1716 fi
1717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1719 $as_echo "$ac_header_compiler" >&6; }
1720
1721 # Is the header present?
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1723 $as_echo_n "checking $2 presence... " >&6; }
1724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1725 /* end confdefs.h. */
1726 #include <$2>
1727 _ACEOF
1728 if ac_fn_c_try_cpp "$LINENO"; then :
1729 ac_header_preproc=yes
1730 else
1731 ac_header_preproc=no
1732 fi
1733 rm -f conftest.err conftest.i conftest.$ac_ext
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1735 $as_echo "$ac_header_preproc" >&6; }
1736
1737 # So? What about this header?
1738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1739 yes:no: )
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1741 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1743 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1744 ;;
1745 no:yes:* )
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1747 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1749 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1751 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1753 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1755 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1756 ;;
1757 esac
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1759 $as_echo_n "checking for $2... " >&6; }
1760 if eval \${$3+:} false; then :
1761 $as_echo_n "(cached) " >&6
1762 else
1763 eval "$3=\$ac_header_compiler"
1764 fi
1765 eval ac_res=\$$3
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1767 $as_echo "$ac_res" >&6; }
1768 fi
1769 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1770
1771 } # ac_fn_c_check_header_mongrel
1772
1773 # ac_fn_c_try_run LINENO
1774 # ----------------------
1775 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1776 # that executables *can* be run.
1777 ac_fn_c_try_run ()
1778 {
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 if { { ac_try="$ac_link"
1781 case "(($ac_try" in
1782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783 *) ac_try_echo=$ac_try;;
1784 esac
1785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786 $as_echo "$ac_try_echo"; } >&5
1787 (eval "$ac_link") 2>&5
1788 ac_status=$?
1789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1791 { { case "(($ac_try" in
1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793 *) ac_try_echo=$ac_try;;
1794 esac
1795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796 $as_echo "$ac_try_echo"; } >&5
1797 (eval "$ac_try") 2>&5
1798 ac_status=$?
1799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800 test $ac_status = 0; }; }; then :
1801 ac_retval=0
1802 else
1803 $as_echo "$as_me: program exited with status $ac_status" >&5
1804 $as_echo "$as_me: failed program was:" >&5
1805 sed 's/^/| /' conftest.$ac_ext >&5
1806
1807 ac_retval=$ac_status
1808 fi
1809 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1810 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1811 as_fn_set_status $ac_retval
1812
1813 } # ac_fn_c_try_run
1814
1815 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1816 # -------------------------------------------------------
1817 # Tests whether HEADER exists and can be compiled using the include files in
1818 # INCLUDES, setting the cache variable VAR accordingly.
1819 ac_fn_c_check_header_compile ()
1820 {
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1823 $as_echo_n "checking for $2... " >&6; }
1824 if eval \${$3+:} false; then :
1825 $as_echo_n "(cached) " >&6
1826 else
1827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828 /* end confdefs.h. */
1829 $4
1830 #include <$2>
1831 _ACEOF
1832 if ac_fn_c_try_compile "$LINENO"; then :
1833 eval "$3=yes"
1834 else
1835 eval "$3=no"
1836 fi
1837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1838 fi
1839 eval ac_res=\$$3
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1841 $as_echo "$ac_res" >&6; }
1842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1843
1844 } # ac_fn_c_check_header_compile
1845
1846 # ac_fn_d_try_compile LINENO
1847 # --------------------------
1848 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1849 ac_fn_d_try_compile ()
1850 {
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 rm -f conftest.$ac_objext
1853 if { { ac_try="$ac_compile"
1854 case "(($ac_try" in
1855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1856 *) ac_try_echo=$ac_try;;
1857 esac
1858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859 $as_echo "$ac_try_echo"; } >&5
1860 (eval "$ac_compile") 2>conftest.err
1861 ac_status=$?
1862 if test -s conftest.err; then
1863 grep -v '^ *+' conftest.err >conftest.er1
1864 cat conftest.er1 >&5
1865 mv -f conftest.er1 conftest.err
1866 fi
1867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868 test $ac_status = 0; } && {
1869 test -z "$ac_d_werror_flag" ||
1870 test ! -s conftest.err
1871 } && test -s conftest.$ac_objext; then :
1872 ac_retval=0
1873 else
1874 $as_echo "$as_me: failed program was:" >&5
1875 sed 's/^/| /' conftest.$ac_ext >&5
1876
1877 ac_retval=1
1878 fi
1879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1880 as_fn_set_status $ac_retval
1881
1882 } # ac_fn_d_try_compile
1883
1884 # ac_fn_c_try_link LINENO
1885 # -----------------------
1886 # Try to link conftest.$ac_ext, and return whether this succeeded.
1887 ac_fn_c_try_link ()
1888 {
1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890 rm -f conftest.$ac_objext conftest$ac_exeext
1891 if { { ac_try="$ac_link"
1892 case "(($ac_try" in
1893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1894 *) ac_try_echo=$ac_try;;
1895 esac
1896 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1897 $as_echo "$ac_try_echo"; } >&5
1898 (eval "$ac_link") 2>conftest.err
1899 ac_status=$?
1900 if test -s conftest.err; then
1901 grep -v '^ *+' conftest.err >conftest.er1
1902 cat conftest.er1 >&5
1903 mv -f conftest.er1 conftest.err
1904 fi
1905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1906 test $ac_status = 0; } && {
1907 test -z "$ac_c_werror_flag" ||
1908 test ! -s conftest.err
1909 } && test -s conftest$ac_exeext && {
1910 test "$cross_compiling" = yes ||
1911 test -x conftest$ac_exeext
1912 }; then :
1913 ac_retval=0
1914 else
1915 $as_echo "$as_me: failed program was:" >&5
1916 sed 's/^/| /' conftest.$ac_ext >&5
1917
1918 ac_retval=1
1919 fi
1920 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1921 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1922 # interfere with the next link command; also delete a directory that is
1923 # left behind by Apple's compiler. We do this before executing the actions.
1924 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926 as_fn_set_status $ac_retval
1927
1928 } # ac_fn_c_try_link
1929
1930 # ac_fn_c_check_func LINENO FUNC VAR
1931 # ----------------------------------
1932 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1933 ac_fn_c_check_func ()
1934 {
1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1937 $as_echo_n "checking for $2... " >&6; }
1938 if eval \${$3+:} false; then :
1939 $as_echo_n "(cached) " >&6
1940 else
1941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1942 /* end confdefs.h. */
1943 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1945 #define $2 innocuous_$2
1946
1947 /* System header to define __stub macros and hopefully few prototypes,
1948 which can conflict with char $2 (); below.
1949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1950 <limits.h> exists even on freestanding compilers. */
1951
1952 #ifdef __STDC__
1953 # include <limits.h>
1954 #else
1955 # include <assert.h>
1956 #endif
1957
1958 #undef $2
1959
1960 /* Override any GCC internal prototype to avoid an error.
1961 Use char because int might match the return type of a GCC
1962 builtin and then its argument prototype would still apply. */
1963 #ifdef __cplusplus
1964 extern "C"
1965 #endif
1966 char $2 ();
1967 /* The GNU C library defines this for functions which it implements
1968 to always fail with ENOSYS. Some functions are actually named
1969 something starting with __ and the normal name is an alias. */
1970 #if defined __stub_$2 || defined __stub___$2
1971 choke me
1972 #endif
1973
1974 int
1975 main ()
1976 {
1977 return $2 ();
1978 ;
1979 return 0;
1980 }
1981 _ACEOF
1982 if ac_fn_c_try_link "$LINENO"; then :
1983 eval "$3=yes"
1984 else
1985 eval "$3=no"
1986 fi
1987 rm -f core conftest.err conftest.$ac_objext \
1988 conftest$ac_exeext conftest.$ac_ext
1989 fi
1990 eval ac_res=\$$3
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1992 $as_echo "$ac_res" >&6; }
1993 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1994
1995 } # ac_fn_c_check_func
1996
1997 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1998 # ----------------------------------------------------
1999 # Tries to find if the field MEMBER exists in type AGGR, after including
2000 # INCLUDES, setting cache variable VAR accordingly.
2001 ac_fn_c_check_member ()
2002 {
2003 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2005 $as_echo_n "checking for $2.$3... " >&6; }
2006 if eval \${$4+:} false; then :
2007 $as_echo_n "(cached) " >&6
2008 else
2009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2010 /* end confdefs.h. */
2011 $5
2012 int
2013 main ()
2014 {
2015 static $2 ac_aggr;
2016 if (ac_aggr.$3)
2017 return 0;
2018 ;
2019 return 0;
2020 }
2021 _ACEOF
2022 if ac_fn_c_try_compile "$LINENO"; then :
2023 eval "$4=yes"
2024 else
2025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h. */
2027 $5
2028 int
2029 main ()
2030 {
2031 static $2 ac_aggr;
2032 if (sizeof ac_aggr.$3)
2033 return 0;
2034 ;
2035 return 0;
2036 }
2037 _ACEOF
2038 if ac_fn_c_try_compile "$LINENO"; then :
2039 eval "$4=yes"
2040 else
2041 eval "$4=no"
2042 fi
2043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2044 fi
2045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2046 fi
2047 eval ac_res=\$$4
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2049 $as_echo "$ac_res" >&6; }
2050 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2051
2052 } # ac_fn_c_check_member
2053
2054 # ac_fn_d_try_link LINENO
2055 # -----------------------
2056 # Try to link conftest.$ac_ext, and return whether this succeeded.
2057 ac_fn_d_try_link ()
2058 {
2059 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2060 rm -f conftest.$ac_objext conftest$ac_exeext
2061 if { { ac_try="$ac_link"
2062 case "(($ac_try" in
2063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2064 *) ac_try_echo=$ac_try;;
2065 esac
2066 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2067 $as_echo "$ac_try_echo"; } >&5
2068 (eval "$ac_link") 2>conftest.err
2069 ac_status=$?
2070 if test -s conftest.err; then
2071 grep -v '^ *+' conftest.err >conftest.er1
2072 cat conftest.er1 >&5
2073 mv -f conftest.er1 conftest.err
2074 fi
2075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2076 test $ac_status = 0; } && {
2077 test -z "$ac_d_werror_flag" ||
2078 test ! -s conftest.err
2079 } && test -s conftest$ac_exeext && {
2080 test "$cross_compiling" = yes ||
2081 test -x conftest$ac_exeext
2082 }; then :
2083 ac_retval=0
2084 else
2085 $as_echo "$as_me: failed program was:" >&5
2086 sed 's/^/| /' conftest.$ac_ext >&5
2087
2088 ac_retval=1
2089 fi
2090 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2091 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2092 # interfere with the next link command; also delete a directory that is
2093 # left behind by Apple's compiler. We do this before executing the actions.
2094 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2095 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2096 as_fn_set_status $ac_retval
2097
2098 } # ac_fn_d_try_link
2099 cat >config.log <<_ACEOF
2100 This file contains any messages produced by compilers while
2101 running configure, to aid debugging if configure makes a mistake.
2102
2103 It was created by package-unused $as_me version-unused, which was
2104 generated by GNU Autoconf 2.69. Invocation command line was
2105
2106 $ $0 $@
2107
2108 _ACEOF
2109 exec 5>>config.log
2110 {
2111 cat <<_ASUNAME
2112 ## --------- ##
2113 ## Platform. ##
2114 ## --------- ##
2115
2116 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2117 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2118 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2119 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2120 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2121
2122 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2123 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2124
2125 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2126 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2127 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2128 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2129 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2130 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2131 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2132
2133 _ASUNAME
2134
2135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2136 for as_dir in $PATH
2137 do
2138 IFS=$as_save_IFS
2139 test -z "$as_dir" && as_dir=.
2140 $as_echo "PATH: $as_dir"
2141 done
2142 IFS=$as_save_IFS
2143
2144 } >&5
2145
2146 cat >&5 <<_ACEOF
2147
2148
2149 ## ----------- ##
2150 ## Core tests. ##
2151 ## ----------- ##
2152
2153 _ACEOF
2154
2155
2156 # Keep a trace of the command line.
2157 # Strip out --no-create and --no-recursion so they do not pile up.
2158 # Strip out --silent because we don't want to record it for future runs.
2159 # Also quote any args containing shell meta-characters.
2160 # Make two passes to allow for proper duplicate-argument suppression.
2161 ac_configure_args=
2162 ac_configure_args0=
2163 ac_configure_args1=
2164 ac_must_keep_next=false
2165 for ac_pass in 1 2
2166 do
2167 for ac_arg
2168 do
2169 case $ac_arg in
2170 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2171 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2172 | -silent | --silent | --silen | --sile | --sil)
2173 continue ;;
2174 *\'*)
2175 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2176 esac
2177 case $ac_pass in
2178 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2179 2)
2180 as_fn_append ac_configure_args1 " '$ac_arg'"
2181 if test $ac_must_keep_next = true; then
2182 ac_must_keep_next=false # Got value, back to normal.
2183 else
2184 case $ac_arg in
2185 *=* | --config-cache | -C | -disable-* | --disable-* \
2186 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2187 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2188 | -with-* | --with-* | -without-* | --without-* | --x)
2189 case "$ac_configure_args0 " in
2190 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2191 esac
2192 ;;
2193 -* ) ac_must_keep_next=true ;;
2194 esac
2195 fi
2196 as_fn_append ac_configure_args " '$ac_arg'"
2197 ;;
2198 esac
2199 done
2200 done
2201 { ac_configure_args0=; unset ac_configure_args0;}
2202 { ac_configure_args1=; unset ac_configure_args1;}
2203
2204 # When interrupted or exit'd, cleanup temporary files, and complete
2205 # config.log. We remove comments because anyway the quotes in there
2206 # would cause problems or look ugly.
2207 # WARNING: Use '\'' to represent an apostrophe within the trap.
2208 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2209 trap 'exit_status=$?
2210 # Save into config.log some information that might help in debugging.
2211 {
2212 echo
2213
2214 $as_echo "## ---------------- ##
2215 ## Cache variables. ##
2216 ## ---------------- ##"
2217 echo
2218 # The following way of writing the cache mishandles newlines in values,
2219 (
2220 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2221 eval ac_val=\$$ac_var
2222 case $ac_val in #(
2223 *${as_nl}*)
2224 case $ac_var in #(
2225 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2226 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2227 esac
2228 case $ac_var in #(
2229 _ | IFS | as_nl) ;; #(
2230 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2231 *) { eval $ac_var=; unset $ac_var;} ;;
2232 esac ;;
2233 esac
2234 done
2235 (set) 2>&1 |
2236 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2237 *${as_nl}ac_space=\ *)
2238 sed -n \
2239 "s/'\''/'\''\\\\'\'''\''/g;
2240 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2241 ;; #(
2242 *)
2243 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2244 ;;
2245 esac |
2246 sort
2247 )
2248 echo
2249
2250 $as_echo "## ----------------- ##
2251 ## Output variables. ##
2252 ## ----------------- ##"
2253 echo
2254 for ac_var in $ac_subst_vars
2255 do
2256 eval ac_val=\$$ac_var
2257 case $ac_val in
2258 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2259 esac
2260 $as_echo "$ac_var='\''$ac_val'\''"
2261 done | sort
2262 echo
2263
2264 if test -n "$ac_subst_files"; then
2265 $as_echo "## ------------------- ##
2266 ## File substitutions. ##
2267 ## ------------------- ##"
2268 echo
2269 for ac_var in $ac_subst_files
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 fi
2279
2280 if test -s confdefs.h; then
2281 $as_echo "## ----------- ##
2282 ## confdefs.h. ##
2283 ## ----------- ##"
2284 echo
2285 cat confdefs.h
2286 echo
2287 fi
2288 test "$ac_signal" != 0 &&
2289 $as_echo "$as_me: caught signal $ac_signal"
2290 $as_echo "$as_me: exit $exit_status"
2291 } >&5
2292 rm -f core *.core core.conftest.* &&
2293 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2294 exit $exit_status
2295 ' 0
2296 for ac_signal in 1 2 13 15; do
2297 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2298 done
2299 ac_signal=0
2300
2301 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2302 rm -f -r conftest* confdefs.h
2303
2304 $as_echo "/* confdefs.h */" > confdefs.h
2305
2306 # Predefined preprocessor variables.
2307
2308 cat >>confdefs.h <<_ACEOF
2309 #define PACKAGE_NAME "$PACKAGE_NAME"
2310 _ACEOF
2311
2312 cat >>confdefs.h <<_ACEOF
2313 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2314 _ACEOF
2315
2316 cat >>confdefs.h <<_ACEOF
2317 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2318 _ACEOF
2319
2320 cat >>confdefs.h <<_ACEOF
2321 #define PACKAGE_STRING "$PACKAGE_STRING"
2322 _ACEOF
2323
2324 cat >>confdefs.h <<_ACEOF
2325 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2326 _ACEOF
2327
2328 cat >>confdefs.h <<_ACEOF
2329 #define PACKAGE_URL "$PACKAGE_URL"
2330 _ACEOF
2331
2332
2333 # Let the site file select an alternate cache file if it wants to.
2334 # Prefer an explicitly selected file to automatically selected ones.
2335 ac_site_file1=NONE
2336 ac_site_file2=NONE
2337 if test -n "$CONFIG_SITE"; then
2338 # We do not want a PATH search for config.site.
2339 case $CONFIG_SITE in #((
2340 -*) ac_site_file1=./$CONFIG_SITE;;
2341 */*) ac_site_file1=$CONFIG_SITE;;
2342 *) ac_site_file1=./$CONFIG_SITE;;
2343 esac
2344 elif test "x$prefix" != xNONE; then
2345 ac_site_file1=$prefix/share/config.site
2346 ac_site_file2=$prefix/etc/config.site
2347 else
2348 ac_site_file1=$ac_default_prefix/share/config.site
2349 ac_site_file2=$ac_default_prefix/etc/config.site
2350 fi
2351 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2352 do
2353 test "x$ac_site_file" = xNONE && continue
2354 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2356 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2357 sed 's/^/| /' "$ac_site_file" >&5
2358 . "$ac_site_file" \
2359 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2360 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2361 as_fn_error $? "failed to load site script $ac_site_file
2362 See \`config.log' for more details" "$LINENO" 5; }
2363 fi
2364 done
2365
2366 if test -r "$cache_file"; then
2367 # Some versions of bash will fail to source /dev/null (special files
2368 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2369 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2371 $as_echo "$as_me: loading cache $cache_file" >&6;}
2372 case $cache_file in
2373 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2374 *) . "./$cache_file";;
2375 esac
2376 fi
2377 else
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2379 $as_echo "$as_me: creating cache $cache_file" >&6;}
2380 >$cache_file
2381 fi
2382
2383 # Check that the precious variables saved in the cache have kept the same
2384 # value.
2385 ac_cache_corrupted=false
2386 for ac_var in $ac_precious_vars; do
2387 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2388 eval ac_new_set=\$ac_env_${ac_var}_set
2389 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2390 eval ac_new_val=\$ac_env_${ac_var}_value
2391 case $ac_old_set,$ac_new_set in
2392 set,)
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2394 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2395 ac_cache_corrupted=: ;;
2396 ,set)
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2398 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2399 ac_cache_corrupted=: ;;
2400 ,);;
2401 *)
2402 if test "x$ac_old_val" != "x$ac_new_val"; then
2403 # differences in whitespace do not lead to failure.
2404 ac_old_val_w=`echo x $ac_old_val`
2405 ac_new_val_w=`echo x $ac_new_val`
2406 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2408 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2409 ac_cache_corrupted=:
2410 else
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2412 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2413 eval $ac_var=\$ac_old_val
2414 fi
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2416 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2418 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2419 fi;;
2420 esac
2421 # Pass precious variables to config.status.
2422 if test "$ac_new_set" = set; then
2423 case $ac_new_val in
2424 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2425 *) ac_arg=$ac_var=$ac_new_val ;;
2426 esac
2427 case " $ac_configure_args " in
2428 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2429 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2430 esac
2431 fi
2432 done
2433 if $ac_cache_corrupted; then
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2435 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2437 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2438 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2439 fi
2440 ## -------------------- ##
2441 ## Main body of script. ##
2442 ## -------------------- ##
2443
2444 ac_ext=c
2445 ac_cpp='$CPP $CPPFLAGS'
2446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2449
2450
2451
2452
2453
2454
2455 ac_config_headers="$ac_config_headers config.h"
2456
2457
2458 # Default to --enable-multilib
2459 # Check whether --enable-multilib was given.
2460 if test "${enable_multilib+set}" = set; then :
2461 enableval=$enable_multilib; case "$enableval" in
2462 yes) multilib=yes ;;
2463 no) multilib=no ;;
2464 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2465 esac
2466 else
2467 multilib=yes
2468 fi
2469
2470
2471 # We may get other options which we leave undocumented:
2472 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2473 # See config-ml.in if you want the gory details.
2474
2475 if test "$srcdir" = "."; then
2476 if test "$with_target_subdir" != "."; then
2477 multi_basedir="$srcdir/$with_multisrctop../.."
2478 else
2479 multi_basedir="$srcdir/$with_multisrctop.."
2480 fi
2481 else
2482 multi_basedir="$srcdir/.."
2483 fi
2484
2485
2486 # Even if the default multilib is not a cross compilation,
2487 # it may be that some of the other multilibs are.
2488 if test $cross_compiling = no && test $multilib = yes \
2489 && test "x${with_multisubdir}" != x ; then
2490 cross_compiling=maybe
2491 fi
2492
2493 ac_config_commands="$ac_config_commands default-1"
2494
2495 ac_aux_dir=
2496 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2497 if test -f "$ac_dir/install-sh"; then
2498 ac_aux_dir=$ac_dir
2499 ac_install_sh="$ac_aux_dir/install-sh -c"
2500 break
2501 elif test -f "$ac_dir/install.sh"; then
2502 ac_aux_dir=$ac_dir
2503 ac_install_sh="$ac_aux_dir/install.sh -c"
2504 break
2505 elif test -f "$ac_dir/shtool"; then
2506 ac_aux_dir=$ac_dir
2507 ac_install_sh="$ac_aux_dir/shtool install -c"
2508 break
2509 fi
2510 done
2511 if test -z "$ac_aux_dir"; then
2512 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2513 fi
2514
2515 # These three variables are undocumented and unsupported,
2516 # and are intended to be withdrawn in a future Autoconf release.
2517 # They can cause serious problems if a builder's source tree is in a directory
2518 # whose full name contains unusual characters.
2519 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2520 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2521 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2522
2523
2524 # Make sure we can run config.sub.
2525 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2526 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2527
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2529 $as_echo_n "checking build system type... " >&6; }
2530 if ${ac_cv_build+:} false; then :
2531 $as_echo_n "(cached) " >&6
2532 else
2533 ac_build_alias=$build_alias
2534 test "x$ac_build_alias" = x &&
2535 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2536 test "x$ac_build_alias" = x &&
2537 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2538 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2539 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2540
2541 fi
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2543 $as_echo "$ac_cv_build" >&6; }
2544 case $ac_cv_build in
2545 *-*-*) ;;
2546 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2547 esac
2548 build=$ac_cv_build
2549 ac_save_IFS=$IFS; IFS='-'
2550 set x $ac_cv_build
2551 shift
2552 build_cpu=$1
2553 build_vendor=$2
2554 shift; shift
2555 # Remember, the first character of IFS is used to create $*,
2556 # except with old shells:
2557 build_os=$*
2558 IFS=$ac_save_IFS
2559 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2560
2561
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2563 $as_echo_n "checking host system type... " >&6; }
2564 if ${ac_cv_host+:} false; then :
2565 $as_echo_n "(cached) " >&6
2566 else
2567 if test "x$host_alias" = x; then
2568 ac_cv_host=$ac_cv_build
2569 else
2570 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2571 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2572 fi
2573
2574 fi
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2576 $as_echo "$ac_cv_host" >&6; }
2577 case $ac_cv_host in
2578 *-*-*) ;;
2579 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2580 esac
2581 host=$ac_cv_host
2582 ac_save_IFS=$IFS; IFS='-'
2583 set x $ac_cv_host
2584 shift
2585 host_cpu=$1
2586 host_vendor=$2
2587 shift; shift
2588 # Remember, the first character of IFS is used to create $*,
2589 # except with old shells:
2590 host_os=$*
2591 IFS=$ac_save_IFS
2592 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2593
2594
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2596 $as_echo_n "checking target system type... " >&6; }
2597 if ${ac_cv_target+:} false; then :
2598 $as_echo_n "(cached) " >&6
2599 else
2600 if test "x$target_alias" = x; then
2601 ac_cv_target=$ac_cv_host
2602 else
2603 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2604 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2605 fi
2606
2607 fi
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2609 $as_echo "$ac_cv_target" >&6; }
2610 case $ac_cv_target in
2611 *-*-*) ;;
2612 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2613 esac
2614 target=$ac_cv_target
2615 ac_save_IFS=$IFS; IFS='-'
2616 set x $ac_cv_target
2617 shift
2618 target_cpu=$1
2619 target_vendor=$2
2620 shift; shift
2621 # Remember, the first character of IFS is used to create $*,
2622 # except with old shells:
2623 target_os=$*
2624 IFS=$ac_save_IFS
2625 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2626
2627
2628 # The aliases save the names the user supplied, while $host etc.
2629 # will get canonicalized.
2630 test -n "$target_alias" &&
2631 test "$program_prefix$program_suffix$program_transform_name" = \
2632 NONENONEs,x,x, &&
2633 program_prefix=${target_alias}-
2634
2635 # Expand $ac_aux_dir to an absolute path.
2636 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2637
2638 ac_ext=c
2639 ac_cpp='$CPP $CPPFLAGS'
2640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2643 if test -n "$ac_tool_prefix"; then
2644 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2645 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2647 $as_echo_n "checking for $ac_word... " >&6; }
2648 if ${ac_cv_prog_CC+:} false; then :
2649 $as_echo_n "(cached) " >&6
2650 else
2651 if test -n "$CC"; then
2652 ac_cv_prog_CC="$CC" # Let the user override the test.
2653 else
2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655 for as_dir in $PATH
2656 do
2657 IFS=$as_save_IFS
2658 test -z "$as_dir" && as_dir=.
2659 for ac_exec_ext in '' $ac_executable_extensions; do
2660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2661 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2663 break 2
2664 fi
2665 done
2666 done
2667 IFS=$as_save_IFS
2668
2669 fi
2670 fi
2671 CC=$ac_cv_prog_CC
2672 if test -n "$CC"; then
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2674 $as_echo "$CC" >&6; }
2675 else
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2677 $as_echo "no" >&6; }
2678 fi
2679
2680
2681 fi
2682 if test -z "$ac_cv_prog_CC"; then
2683 ac_ct_CC=$CC
2684 # Extract the first word of "gcc", so it can be a program name with args.
2685 set dummy gcc; ac_word=$2
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2687 $as_echo_n "checking for $ac_word... " >&6; }
2688 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2689 $as_echo_n "(cached) " >&6
2690 else
2691 if test -n "$ac_ct_CC"; then
2692 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2693 else
2694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2695 for as_dir in $PATH
2696 do
2697 IFS=$as_save_IFS
2698 test -z "$as_dir" && as_dir=.
2699 for ac_exec_ext in '' $ac_executable_extensions; do
2700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2701 ac_cv_prog_ac_ct_CC="gcc"
2702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2703 break 2
2704 fi
2705 done
2706 done
2707 IFS=$as_save_IFS
2708
2709 fi
2710 fi
2711 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2712 if test -n "$ac_ct_CC"; then
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2714 $as_echo "$ac_ct_CC" >&6; }
2715 else
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2717 $as_echo "no" >&6; }
2718 fi
2719
2720 if test "x$ac_ct_CC" = x; then
2721 CC=""
2722 else
2723 case $cross_compiling:$ac_tool_warned in
2724 yes:)
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2726 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2727 ac_tool_warned=yes ;;
2728 esac
2729 CC=$ac_ct_CC
2730 fi
2731 else
2732 CC="$ac_cv_prog_CC"
2733 fi
2734
2735 if test -z "$CC"; then
2736 if test -n "$ac_tool_prefix"; then
2737 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2738 set dummy ${ac_tool_prefix}cc; ac_word=$2
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2740 $as_echo_n "checking for $ac_word... " >&6; }
2741 if ${ac_cv_prog_CC+:} false; then :
2742 $as_echo_n "(cached) " >&6
2743 else
2744 if test -n "$CC"; then
2745 ac_cv_prog_CC="$CC" # Let the user override the test.
2746 else
2747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2748 for as_dir in $PATH
2749 do
2750 IFS=$as_save_IFS
2751 test -z "$as_dir" && as_dir=.
2752 for ac_exec_ext in '' $ac_executable_extensions; do
2753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2754 ac_cv_prog_CC="${ac_tool_prefix}cc"
2755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2756 break 2
2757 fi
2758 done
2759 done
2760 IFS=$as_save_IFS
2761
2762 fi
2763 fi
2764 CC=$ac_cv_prog_CC
2765 if test -n "$CC"; then
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2767 $as_echo "$CC" >&6; }
2768 else
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2770 $as_echo "no" >&6; }
2771 fi
2772
2773
2774 fi
2775 fi
2776 if test -z "$CC"; then
2777 # Extract the first word of "cc", so it can be a program name with args.
2778 set dummy cc; ac_word=$2
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2780 $as_echo_n "checking for $ac_word... " >&6; }
2781 if ${ac_cv_prog_CC+:} false; then :
2782 $as_echo_n "(cached) " >&6
2783 else
2784 if test -n "$CC"; then
2785 ac_cv_prog_CC="$CC" # Let the user override the test.
2786 else
2787 ac_prog_rejected=no
2788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789 for as_dir in $PATH
2790 do
2791 IFS=$as_save_IFS
2792 test -z "$as_dir" && as_dir=.
2793 for ac_exec_ext in '' $ac_executable_extensions; do
2794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2795 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2796 ac_prog_rejected=yes
2797 continue
2798 fi
2799 ac_cv_prog_CC="cc"
2800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2801 break 2
2802 fi
2803 done
2804 done
2805 IFS=$as_save_IFS
2806
2807 if test $ac_prog_rejected = yes; then
2808 # We found a bogon in the path, so make sure we never use it.
2809 set dummy $ac_cv_prog_CC
2810 shift
2811 if test $# != 0; then
2812 # We chose a different compiler from the bogus one.
2813 # However, it has the same basename, so the bogon will be chosen
2814 # first if we set CC to just the basename; use the full file name.
2815 shift
2816 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2817 fi
2818 fi
2819 fi
2820 fi
2821 CC=$ac_cv_prog_CC
2822 if test -n "$CC"; then
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2824 $as_echo "$CC" >&6; }
2825 else
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2827 $as_echo "no" >&6; }
2828 fi
2829
2830
2831 fi
2832 if test -z "$CC"; then
2833 if test -n "$ac_tool_prefix"; then
2834 for ac_prog in cl.exe
2835 do
2836 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2837 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2839 $as_echo_n "checking for $ac_word... " >&6; }
2840 if ${ac_cv_prog_CC+:} false; then :
2841 $as_echo_n "(cached) " >&6
2842 else
2843 if test -n "$CC"; then
2844 ac_cv_prog_CC="$CC" # Let the user override the test.
2845 else
2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847 for as_dir in $PATH
2848 do
2849 IFS=$as_save_IFS
2850 test -z "$as_dir" && as_dir=.
2851 for ac_exec_ext in '' $ac_executable_extensions; do
2852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2853 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2855 break 2
2856 fi
2857 done
2858 done
2859 IFS=$as_save_IFS
2860
2861 fi
2862 fi
2863 CC=$ac_cv_prog_CC
2864 if test -n "$CC"; then
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2866 $as_echo "$CC" >&6; }
2867 else
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2869 $as_echo "no" >&6; }
2870 fi
2871
2872
2873 test -n "$CC" && break
2874 done
2875 fi
2876 if test -z "$CC"; then
2877 ac_ct_CC=$CC
2878 for ac_prog in cl.exe
2879 do
2880 # Extract the first word of "$ac_prog", so it can be a program name with args.
2881 set dummy $ac_prog; ac_word=$2
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2883 $as_echo_n "checking for $ac_word... " >&6; }
2884 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2885 $as_echo_n "(cached) " >&6
2886 else
2887 if test -n "$ac_ct_CC"; then
2888 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2889 else
2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891 for as_dir in $PATH
2892 do
2893 IFS=$as_save_IFS
2894 test -z "$as_dir" && as_dir=.
2895 for ac_exec_ext in '' $ac_executable_extensions; do
2896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2897 ac_cv_prog_ac_ct_CC="$ac_prog"
2898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2899 break 2
2900 fi
2901 done
2902 done
2903 IFS=$as_save_IFS
2904
2905 fi
2906 fi
2907 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2908 if test -n "$ac_ct_CC"; then
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2910 $as_echo "$ac_ct_CC" >&6; }
2911 else
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2913 $as_echo "no" >&6; }
2914 fi
2915
2916
2917 test -n "$ac_ct_CC" && break
2918 done
2919
2920 if test "x$ac_ct_CC" = x; then
2921 CC=""
2922 else
2923 case $cross_compiling:$ac_tool_warned in
2924 yes:)
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2926 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2927 ac_tool_warned=yes ;;
2928 esac
2929 CC=$ac_ct_CC
2930 fi
2931 fi
2932
2933 fi
2934
2935
2936 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2937 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2938 as_fn_error $? "no acceptable C compiler found in \$PATH
2939 See \`config.log' for more details" "$LINENO" 5; }
2940
2941 # Provide some information about the compiler.
2942 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2943 set X $ac_compile
2944 ac_compiler=$2
2945 for ac_option in --version -v -V -qversion; do
2946 { { ac_try="$ac_compiler $ac_option >&5"
2947 case "(($ac_try" in
2948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2949 *) ac_try_echo=$ac_try;;
2950 esac
2951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2952 $as_echo "$ac_try_echo"; } >&5
2953 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2954 ac_status=$?
2955 if test -s conftest.err; then
2956 sed '10a\
2957 ... rest of stderr output deleted ...
2958 10q' conftest.err >conftest.er1
2959 cat conftest.er1 >&5
2960 fi
2961 rm -f conftest.er1 conftest.err
2962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2963 test $ac_status = 0; }
2964 done
2965
2966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2967 /* end confdefs.h. */
2968
2969 int
2970 main ()
2971 {
2972
2973 ;
2974 return 0;
2975 }
2976 _ACEOF
2977 ac_clean_files_save=$ac_clean_files
2978 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2979 # Try to create an executable without -o first, disregard a.out.
2980 # It will help us diagnose broken compilers, and finding out an intuition
2981 # of exeext.
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2983 $as_echo_n "checking whether the C compiler works... " >&6; }
2984 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2985
2986 # The possible output files:
2987 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2988
2989 ac_rmfiles=
2990 for ac_file in $ac_files
2991 do
2992 case $ac_file in
2993 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2994 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2995 esac
2996 done
2997 rm -f $ac_rmfiles
2998
2999 if { { ac_try="$ac_link_default"
3000 case "(($ac_try" in
3001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3002 *) ac_try_echo=$ac_try;;
3003 esac
3004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3005 $as_echo "$ac_try_echo"; } >&5
3006 (eval "$ac_link_default") 2>&5
3007 ac_status=$?
3008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3009 test $ac_status = 0; }; then :
3010 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3011 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3012 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3013 # so that the user can short-circuit this test for compilers unknown to
3014 # Autoconf.
3015 for ac_file in $ac_files ''
3016 do
3017 test -f "$ac_file" || continue
3018 case $ac_file in
3019 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3020 ;;
3021 [ab].out )
3022 # We found the default executable, but exeext='' is most
3023 # certainly right.
3024 break;;
3025 *.* )
3026 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3027 then :; else
3028 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3029 fi
3030 # We set ac_cv_exeext here because the later test for it is not
3031 # safe: cross compilers may not add the suffix if given an `-o'
3032 # argument, so we may need to know it at that point already.
3033 # Even if this section looks crufty: it has the advantage of
3034 # actually working.
3035 break;;
3036 * )
3037 break;;
3038 esac
3039 done
3040 test "$ac_cv_exeext" = no && ac_cv_exeext=
3041
3042 else
3043 ac_file=''
3044 fi
3045 if test -z "$ac_file"; then :
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3047 $as_echo "no" >&6; }
3048 $as_echo "$as_me: failed program was:" >&5
3049 sed 's/^/| /' conftest.$ac_ext >&5
3050
3051 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3053 as_fn_error 77 "C compiler cannot create executables
3054 See \`config.log' for more details" "$LINENO" 5; }
3055 else
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3057 $as_echo "yes" >&6; }
3058 fi
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3060 $as_echo_n "checking for C compiler default output file name... " >&6; }
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3062 $as_echo "$ac_file" >&6; }
3063 ac_exeext=$ac_cv_exeext
3064
3065 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3066 ac_clean_files=$ac_clean_files_save
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3068 $as_echo_n "checking for suffix of executables... " >&6; }
3069 if { { ac_try="$ac_link"
3070 case "(($ac_try" in
3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072 *) ac_try_echo=$ac_try;;
3073 esac
3074 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3075 $as_echo "$ac_try_echo"; } >&5
3076 (eval "$ac_link") 2>&5
3077 ac_status=$?
3078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3079 test $ac_status = 0; }; then :
3080 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3081 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3082 # work properly (i.e., refer to `conftest.exe'), while it won't with
3083 # `rm'.
3084 for ac_file in conftest.exe conftest conftest.*; do
3085 test -f "$ac_file" || continue
3086 case $ac_file in
3087 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3088 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3089 break;;
3090 * ) break;;
3091 esac
3092 done
3093 else
3094 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3095 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3096 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3097 See \`config.log' for more details" "$LINENO" 5; }
3098 fi
3099 rm -f conftest conftest$ac_cv_exeext
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3101 $as_echo "$ac_cv_exeext" >&6; }
3102
3103 rm -f conftest.$ac_ext
3104 EXEEXT=$ac_cv_exeext
3105 ac_exeext=$EXEEXT
3106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3107 /* end confdefs.h. */
3108 #include <stdio.h>
3109 int
3110 main ()
3111 {
3112 FILE *f = fopen ("conftest.out", "w");
3113 return ferror (f) || fclose (f) != 0;
3114
3115 ;
3116 return 0;
3117 }
3118 _ACEOF
3119 ac_clean_files="$ac_clean_files conftest.out"
3120 # Check that the compiler produces executables we can run. If not, either
3121 # the compiler is broken, or we cross compile.
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3123 $as_echo_n "checking whether we are cross compiling... " >&6; }
3124 if test "$cross_compiling" != yes; then
3125 { { ac_try="$ac_link"
3126 case "(($ac_try" in
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3129 esac
3130 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3131 $as_echo "$ac_try_echo"; } >&5
3132 (eval "$ac_link") 2>&5
3133 ac_status=$?
3134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3135 test $ac_status = 0; }
3136 if { ac_try='./conftest$ac_cv_exeext'
3137 { { case "(($ac_try" in
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3140 esac
3141 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3142 $as_echo "$ac_try_echo"; } >&5
3143 (eval "$ac_try") 2>&5
3144 ac_status=$?
3145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3146 test $ac_status = 0; }; }; then
3147 cross_compiling=no
3148 else
3149 if test "$cross_compiling" = maybe; then
3150 cross_compiling=yes
3151 else
3152 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3154 as_fn_error $? "cannot run C compiled programs.
3155 If you meant to cross compile, use \`--host'.
3156 See \`config.log' for more details" "$LINENO" 5; }
3157 fi
3158 fi
3159 fi
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3161 $as_echo "$cross_compiling" >&6; }
3162
3163 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3164 ac_clean_files=$ac_clean_files_save
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3166 $as_echo_n "checking for suffix of object files... " >&6; }
3167 if ${ac_cv_objext+:} false; then :
3168 $as_echo_n "(cached) " >&6
3169 else
3170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3171 /* end confdefs.h. */
3172
3173 int
3174 main ()
3175 {
3176
3177 ;
3178 return 0;
3179 }
3180 _ACEOF
3181 rm -f conftest.o conftest.obj
3182 if { { ac_try="$ac_compile"
3183 case "(($ac_try" in
3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3186 esac
3187 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3188 $as_echo "$ac_try_echo"; } >&5
3189 (eval "$ac_compile") 2>&5
3190 ac_status=$?
3191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3192 test $ac_status = 0; }; then :
3193 for ac_file in conftest.o conftest.obj conftest.*; do
3194 test -f "$ac_file" || continue;
3195 case $ac_file in
3196 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3197 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3198 break;;
3199 esac
3200 done
3201 else
3202 $as_echo "$as_me: failed program was:" >&5
3203 sed 's/^/| /' conftest.$ac_ext >&5
3204
3205 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3206 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3207 as_fn_error $? "cannot compute suffix of object files: cannot compile
3208 See \`config.log' for more details" "$LINENO" 5; }
3209 fi
3210 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3211 fi
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3213 $as_echo "$ac_cv_objext" >&6; }
3214 OBJEXT=$ac_cv_objext
3215 ac_objext=$OBJEXT
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3217 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3218 if ${ac_cv_c_compiler_gnu+:} false; then :
3219 $as_echo_n "(cached) " >&6
3220 else
3221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3222 /* end confdefs.h. */
3223
3224 int
3225 main ()
3226 {
3227 #ifndef __GNUC__
3228 choke me
3229 #endif
3230
3231 ;
3232 return 0;
3233 }
3234 _ACEOF
3235 if ac_fn_c_try_compile "$LINENO"; then :
3236 ac_compiler_gnu=yes
3237 else
3238 ac_compiler_gnu=no
3239 fi
3240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3241 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3242
3243 fi
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3245 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3246 if test $ac_compiler_gnu = yes; then
3247 GCC=yes
3248 else
3249 GCC=
3250 fi
3251 ac_test_CFLAGS=${CFLAGS+set}
3252 ac_save_CFLAGS=$CFLAGS
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3254 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3255 if ${ac_cv_prog_cc_g+:} false; then :
3256 $as_echo_n "(cached) " >&6
3257 else
3258 ac_save_c_werror_flag=$ac_c_werror_flag
3259 ac_c_werror_flag=yes
3260 ac_cv_prog_cc_g=no
3261 CFLAGS="-g"
3262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3263 /* end confdefs.h. */
3264
3265 int
3266 main ()
3267 {
3268
3269 ;
3270 return 0;
3271 }
3272 _ACEOF
3273 if ac_fn_c_try_compile "$LINENO"; then :
3274 ac_cv_prog_cc_g=yes
3275 else
3276 CFLAGS=""
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
3290 else
3291 ac_c_werror_flag=$ac_save_c_werror_flag
3292 CFLAGS="-g"
3293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3294 /* end confdefs.h. */
3295
3296 int
3297 main ()
3298 {
3299
3300 ;
3301 return 0;
3302 }
3303 _ACEOF
3304 if ac_fn_c_try_compile "$LINENO"; then :
3305 ac_cv_prog_cc_g=yes
3306 fi
3307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3308 fi
3309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3310 fi
3311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3312 ac_c_werror_flag=$ac_save_c_werror_flag
3313 fi
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3315 $as_echo "$ac_cv_prog_cc_g" >&6; }
3316 if test "$ac_test_CFLAGS" = set; then
3317 CFLAGS=$ac_save_CFLAGS
3318 elif test $ac_cv_prog_cc_g = yes; then
3319 if test "$GCC" = yes; then
3320 CFLAGS="-g -O2"
3321 else
3322 CFLAGS="-g"
3323 fi
3324 else
3325 if test "$GCC" = yes; then
3326 CFLAGS="-O2"
3327 else
3328 CFLAGS=
3329 fi
3330 fi
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3332 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3333 if ${ac_cv_prog_cc_c89+:} false; then :
3334 $as_echo_n "(cached) " >&6
3335 else
3336 ac_cv_prog_cc_c89=no
3337 ac_save_CC=$CC
3338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3339 /* end confdefs.h. */
3340 #include <stdarg.h>
3341 #include <stdio.h>
3342 struct stat;
3343 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3344 struct buf { int x; };
3345 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3346 static char *e (p, i)
3347 char **p;
3348 int i;
3349 {
3350 return p[i];
3351 }
3352 static char *f (char * (*g) (char **, int), char **p, ...)
3353 {
3354 char *s;
3355 va_list v;
3356 va_start (v,p);
3357 s = g (p, va_arg (v,int));
3358 va_end (v);
3359 return s;
3360 }
3361
3362 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3363 function prototypes and stuff, but not '\xHH' hex character constants.
3364 These don't provoke an error unfortunately, instead are silently treated
3365 as 'x'. The following induces an error, until -std is added to get
3366 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3367 array size at least. It's necessary to write '\x00'==0 to get something
3368 that's true only with -std. */
3369 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3370
3371 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3372 inside strings and character constants. */
3373 #define FOO(x) 'x'
3374 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3375
3376 int test (int i, double x);
3377 struct s1 {int (*f) (int a);};
3378 struct s2 {int (*f) (double a);};
3379 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3380 int argc;
3381 char **argv;
3382 int
3383 main ()
3384 {
3385 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3386 ;
3387 return 0;
3388 }
3389 _ACEOF
3390 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3391 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3392 do
3393 CC="$ac_save_CC $ac_arg"
3394 if ac_fn_c_try_compile "$LINENO"; then :
3395 ac_cv_prog_cc_c89=$ac_arg
3396 fi
3397 rm -f core conftest.err conftest.$ac_objext
3398 test "x$ac_cv_prog_cc_c89" != "xno" && break
3399 done
3400 rm -f conftest.$ac_ext
3401 CC=$ac_save_CC
3402
3403 fi
3404 # AC_CACHE_VAL
3405 case "x$ac_cv_prog_cc_c89" in
3406 x)
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3408 $as_echo "none needed" >&6; } ;;
3409 xno)
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3411 $as_echo "unsupported" >&6; } ;;
3412 *)
3413 CC="$CC $ac_cv_prog_cc_c89"
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3415 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3416 esac
3417 if test "x$ac_cv_prog_cc_c89" != xno; then :
3418
3419 fi
3420
3421 ac_ext=c
3422 ac_cpp='$CPP $CPPFLAGS'
3423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3426
3427 ac_ext=c
3428 ac_cpp='$CPP $CPPFLAGS'
3429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3433 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3434 if ${am_cv_prog_cc_c_o+:} false; then :
3435 $as_echo_n "(cached) " >&6
3436 else
3437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3438 /* end confdefs.h. */
3439
3440 int
3441 main ()
3442 {
3443
3444 ;
3445 return 0;
3446 }
3447 _ACEOF
3448 # Make sure it works both with $CC and with simple cc.
3449 # Following AC_PROG_CC_C_O, we do the test twice because some
3450 # compilers refuse to overwrite an existing .o file with -o,
3451 # though they will create one.
3452 am_cv_prog_cc_c_o=yes
3453 for am_i in 1 2; do
3454 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3455 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3456 ac_status=$?
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); } \
3459 && test -f conftest2.$ac_objext; then
3460 : OK
3461 else
3462 am_cv_prog_cc_c_o=no
3463 break
3464 fi
3465 done
3466 rm -f core conftest*
3467 unset am_i
3468 fi
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3470 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3471 if test "$am_cv_prog_cc_c_o" != yes; then
3472 # Losing compiler, so override with the script.
3473 # FIXME: It is wrong to rewrite CC.
3474 # But if we don't then we get into trouble of one sort or another.
3475 # A longer-term fix would be to have automake use am__CC in this case,
3476 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3477 CC="$am_aux_dir/compile $CC"
3478 fi
3479 ac_ext=c
3480 ac_cpp='$CPP $CPPFLAGS'
3481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3484
3485
3486
3487 ac_ext=c
3488 ac_cpp='$CPP $CPPFLAGS'
3489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3493 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3494 # On Suns, sometimes $CPP names a directory.
3495 if test -n "$CPP" && test -d "$CPP"; then
3496 CPP=
3497 fi
3498 if test -z "$CPP"; then
3499 if ${ac_cv_prog_CPP+:} false; then :
3500 $as_echo_n "(cached) " >&6
3501 else
3502 # Double quotes because CPP needs to be expanded
3503 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3504 do
3505 ac_preproc_ok=false
3506 for ac_c_preproc_warn_flag in '' yes
3507 do
3508 # Use a header file that comes with gcc, so configuring glibc
3509 # with a fresh cross-compiler works.
3510 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3511 # <limits.h> exists even on freestanding compilers.
3512 # On the NeXT, cc -E runs the code through the compiler's parser,
3513 # not just through cpp. "Syntax error" is here to catch this case.
3514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3515 /* end confdefs.h. */
3516 #ifdef __STDC__
3517 # include <limits.h>
3518 #else
3519 # include <assert.h>
3520 #endif
3521 Syntax error
3522 _ACEOF
3523 if ac_fn_c_try_cpp "$LINENO"; then :
3524
3525 else
3526 # Broken: fails on valid input.
3527 continue
3528 fi
3529 rm -f conftest.err conftest.i conftest.$ac_ext
3530
3531 # OK, works on sane cases. Now check whether nonexistent headers
3532 # can be detected and how.
3533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534 /* end confdefs.h. */
3535 #include <ac_nonexistent.h>
3536 _ACEOF
3537 if ac_fn_c_try_cpp "$LINENO"; then :
3538 # Broken: success on invalid input.
3539 continue
3540 else
3541 # Passes both tests.
3542 ac_preproc_ok=:
3543 break
3544 fi
3545 rm -f conftest.err conftest.i conftest.$ac_ext
3546
3547 done
3548 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3549 rm -f conftest.i conftest.err conftest.$ac_ext
3550 if $ac_preproc_ok; then :
3551 break
3552 fi
3553
3554 done
3555 ac_cv_prog_CPP=$CPP
3556
3557 fi
3558 CPP=$ac_cv_prog_CPP
3559 else
3560 ac_cv_prog_CPP=$CPP
3561 fi
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3563 $as_echo "$CPP" >&6; }
3564 ac_preproc_ok=false
3565 for ac_c_preproc_warn_flag in '' yes
3566 do
3567 # Use a header file that comes with gcc, so configuring glibc
3568 # with a fresh cross-compiler works.
3569 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3570 # <limits.h> exists even on freestanding compilers.
3571 # On the NeXT, cc -E runs the code through the compiler's parser,
3572 # not just through cpp. "Syntax error" is here to catch this case.
3573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3574 /* end confdefs.h. */
3575 #ifdef __STDC__
3576 # include <limits.h>
3577 #else
3578 # include <assert.h>
3579 #endif
3580 Syntax error
3581 _ACEOF
3582 if ac_fn_c_try_cpp "$LINENO"; then :
3583
3584 else
3585 # Broken: fails on valid input.
3586 continue
3587 fi
3588 rm -f conftest.err conftest.i conftest.$ac_ext
3589
3590 # OK, works on sane cases. Now check whether nonexistent headers
3591 # can be detected and how.
3592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3593 /* end confdefs.h. */
3594 #include <ac_nonexistent.h>
3595 _ACEOF
3596 if ac_fn_c_try_cpp "$LINENO"; then :
3597 # Broken: success on invalid input.
3598 continue
3599 else
3600 # Passes both tests.
3601 ac_preproc_ok=:
3602 break
3603 fi
3604 rm -f conftest.err conftest.i conftest.$ac_ext
3605
3606 done
3607 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3608 rm -f conftest.i conftest.err conftest.$ac_ext
3609 if $ac_preproc_ok; then :
3610
3611 else
3612 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3613 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3614 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3615 See \`config.log' for more details" "$LINENO" 5; }
3616 fi
3617
3618 ac_ext=c
3619 ac_cpp='$CPP $CPPFLAGS'
3620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3623
3624
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3626 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3627 if ${ac_cv_path_GREP+:} false; then :
3628 $as_echo_n "(cached) " >&6
3629 else
3630 if test -z "$GREP"; then
3631 ac_path_GREP_found=false
3632 # Loop through the user's path and test for each of PROGNAME-LIST
3633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3634 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3635 do
3636 IFS=$as_save_IFS
3637 test -z "$as_dir" && as_dir=.
3638 for ac_prog in grep ggrep; do
3639 for ac_exec_ext in '' $ac_executable_extensions; do
3640 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3641 as_fn_executable_p "$ac_path_GREP" || continue
3642 # Check for GNU ac_path_GREP and select it if it is found.
3643 # Check for GNU $ac_path_GREP
3644 case `"$ac_path_GREP" --version 2>&1` in
3645 *GNU*)
3646 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3647 *)
3648 ac_count=0
3649 $as_echo_n 0123456789 >"conftest.in"
3650 while :
3651 do
3652 cat "conftest.in" "conftest.in" >"conftest.tmp"
3653 mv "conftest.tmp" "conftest.in"
3654 cp "conftest.in" "conftest.nl"
3655 $as_echo 'GREP' >> "conftest.nl"
3656 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3657 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3658 as_fn_arith $ac_count + 1 && ac_count=$as_val
3659 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3660 # Best one so far, save it but keep looking for a better one
3661 ac_cv_path_GREP="$ac_path_GREP"
3662 ac_path_GREP_max=$ac_count
3663 fi
3664 # 10*(2^10) chars as input seems more than enough
3665 test $ac_count -gt 10 && break
3666 done
3667 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3668 esac
3669
3670 $ac_path_GREP_found && break 3
3671 done
3672 done
3673 done
3674 IFS=$as_save_IFS
3675 if test -z "$ac_cv_path_GREP"; then
3676 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3677 fi
3678 else
3679 ac_cv_path_GREP=$GREP
3680 fi
3681
3682 fi
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3684 $as_echo "$ac_cv_path_GREP" >&6; }
3685 GREP="$ac_cv_path_GREP"
3686
3687
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3689 $as_echo_n "checking for egrep... " >&6; }
3690 if ${ac_cv_path_EGREP+:} false; then :
3691 $as_echo_n "(cached) " >&6
3692 else
3693 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3694 then ac_cv_path_EGREP="$GREP -E"
3695 else
3696 if test -z "$EGREP"; then
3697 ac_path_EGREP_found=false
3698 # Loop through the user's path and test for each of PROGNAME-LIST
3699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3700 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3701 do
3702 IFS=$as_save_IFS
3703 test -z "$as_dir" && as_dir=.
3704 for ac_prog in egrep; do
3705 for ac_exec_ext in '' $ac_executable_extensions; do
3706 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3707 as_fn_executable_p "$ac_path_EGREP" || continue
3708 # Check for GNU ac_path_EGREP and select it if it is found.
3709 # Check for GNU $ac_path_EGREP
3710 case `"$ac_path_EGREP" --version 2>&1` in
3711 *GNU*)
3712 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3713 *)
3714 ac_count=0
3715 $as_echo_n 0123456789 >"conftest.in"
3716 while :
3717 do
3718 cat "conftest.in" "conftest.in" >"conftest.tmp"
3719 mv "conftest.tmp" "conftest.in"
3720 cp "conftest.in" "conftest.nl"
3721 $as_echo 'EGREP' >> "conftest.nl"
3722 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3723 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3724 as_fn_arith $ac_count + 1 && ac_count=$as_val
3725 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3726 # Best one so far, save it but keep looking for a better one
3727 ac_cv_path_EGREP="$ac_path_EGREP"
3728 ac_path_EGREP_max=$ac_count
3729 fi
3730 # 10*(2^10) chars as input seems more than enough
3731 test $ac_count -gt 10 && break
3732 done
3733 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3734 esac
3735
3736 $ac_path_EGREP_found && break 3
3737 done
3738 done
3739 done
3740 IFS=$as_save_IFS
3741 if test -z "$ac_cv_path_EGREP"; then
3742 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3743 fi
3744 else
3745 ac_cv_path_EGREP=$EGREP
3746 fi
3747
3748 fi
3749 fi
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3751 $as_echo "$ac_cv_path_EGREP" >&6; }
3752 EGREP="$ac_cv_path_EGREP"
3753
3754
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3756 $as_echo_n "checking for ANSI C header files... " >&6; }
3757 if ${ac_cv_header_stdc+:} false; then :
3758 $as_echo_n "(cached) " >&6
3759 else
3760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3761 /* end confdefs.h. */
3762 #include <stdlib.h>
3763 #include <stdarg.h>
3764 #include <string.h>
3765 #include <float.h>
3766
3767 int
3768 main ()
3769 {
3770
3771 ;
3772 return 0;
3773 }
3774 _ACEOF
3775 if ac_fn_c_try_compile "$LINENO"; then :
3776 ac_cv_header_stdc=yes
3777 else
3778 ac_cv_header_stdc=no
3779 fi
3780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3781
3782 if test $ac_cv_header_stdc = yes; then
3783 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3785 /* end confdefs.h. */
3786 #include <string.h>
3787
3788 _ACEOF
3789 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3790 $EGREP "memchr" >/dev/null 2>&1; then :
3791
3792 else
3793 ac_cv_header_stdc=no
3794 fi
3795 rm -f conftest*
3796
3797 fi
3798
3799 if test $ac_cv_header_stdc = yes; then
3800 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3802 /* end confdefs.h. */
3803 #include <stdlib.h>
3804
3805 _ACEOF
3806 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3807 $EGREP "free" >/dev/null 2>&1; then :
3808
3809 else
3810 ac_cv_header_stdc=no
3811 fi
3812 rm -f conftest*
3813
3814 fi
3815
3816 if test $ac_cv_header_stdc = yes; then
3817 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3818 if test "$cross_compiling" = yes; then :
3819 :
3820 else
3821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3822 /* end confdefs.h. */
3823 #include <ctype.h>
3824 #include <stdlib.h>
3825 #if ((' ' & 0x0FF) == 0x020)
3826 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3827 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3828 #else
3829 # define ISLOWER(c) \
3830 (('a' <= (c) && (c) <= 'i') \
3831 || ('j' <= (c) && (c) <= 'r') \
3832 || ('s' <= (c) && (c) <= 'z'))
3833 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3834 #endif
3835
3836 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3837 int
3838 main ()
3839 {
3840 int i;
3841 for (i = 0; i < 256; i++)
3842 if (XOR (islower (i), ISLOWER (i))
3843 || toupper (i) != TOUPPER (i))
3844 return 2;
3845 return 0;
3846 }
3847 _ACEOF
3848 if ac_fn_c_try_run "$LINENO"; then :
3849
3850 else
3851 ac_cv_header_stdc=no
3852 fi
3853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3854 conftest.$ac_objext conftest.beam conftest.$ac_ext
3855 fi
3856
3857 fi
3858 fi
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3860 $as_echo "$ac_cv_header_stdc" >&6; }
3861 if test $ac_cv_header_stdc = yes; then
3862
3863 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3864
3865 fi
3866
3867 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3868 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3869 inttypes.h stdint.h unistd.h
3870 do :
3871 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3872 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3873 "
3874 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3875 cat >>confdefs.h <<_ACEOF
3876 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3877 _ACEOF
3878
3879 fi
3880
3881 done
3882
3883
3884
3885 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3886 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3887 MINIX=yes
3888 else
3889 MINIX=
3890 fi
3891
3892
3893 if test "$MINIX" = yes; then
3894
3895 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3896
3897
3898 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3899
3900
3901 $as_echo "#define _MINIX 1" >>confdefs.h
3902
3903 fi
3904
3905
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3907 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3908 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3909 $as_echo_n "(cached) " >&6
3910 else
3911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3912 /* end confdefs.h. */
3913
3914 # define __EXTENSIONS__ 1
3915 $ac_includes_default
3916 int
3917 main ()
3918 {
3919
3920 ;
3921 return 0;
3922 }
3923 _ACEOF
3924 if ac_fn_c_try_compile "$LINENO"; then :
3925 ac_cv_safe_to_define___extensions__=yes
3926 else
3927 ac_cv_safe_to_define___extensions__=no
3928 fi
3929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3930 fi
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3932 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3933 test $ac_cv_safe_to_define___extensions__ = yes &&
3934 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3935
3936 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3937
3938 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3939
3940 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3941
3942 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3943
3944
3945
3946 target_alias=${target_alias-$target}
3947
3948
3949 # 1.11.1: Require that version of automake.
3950 # foreign: Don't require README, INSTALL, NEWS, etc.
3951 # no-define: Don't define PACKAGE and VERSION.
3952 # no-dependencies: Don't generate automatic dependencies.
3953 # (because it breaks when using bootstrap-lean, since some of the
3954 # headers are gone at "make install" time).
3955 # subdir-objects: Build objects in sub-directories.
3956 # -Wall: Issue all automake warnings.
3957 # -Wno-portability: Don't warn about constructs supported by GNU make.
3958 # (because GCC requires GNU make anyhow).
3959 # -Wno-override: Overrides used in testsuite.
3960 am__api_version='1.15'
3961
3962 # Find a good install program. We prefer a C program (faster),
3963 # so one script is as good as another. But avoid the broken or
3964 # incompatible versions:
3965 # SysV /etc/install, /usr/sbin/install
3966 # SunOS /usr/etc/install
3967 # IRIX /sbin/install
3968 # AIX /bin/install
3969 # AmigaOS /C/install, which installs bootblocks on floppy discs
3970 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3971 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3972 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3973 # OS/2's system install, which has a completely different semantic
3974 # ./install, which can be erroneously created by make from ./install.sh.
3975 # Reject install programs that cannot install multiple files.
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3977 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3978 if test -z "$INSTALL"; then
3979 if ${ac_cv_path_install+:} false; then :
3980 $as_echo_n "(cached) " >&6
3981 else
3982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3983 for as_dir in $PATH
3984 do
3985 IFS=$as_save_IFS
3986 test -z "$as_dir" && as_dir=.
3987 # Account for people who put trailing slashes in PATH elements.
3988 case $as_dir/ in #((
3989 ./ | .// | /[cC]/* | \
3990 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3991 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3992 /usr/ucb/* ) ;;
3993 *)
3994 # OSF1 and SCO ODT 3.0 have their own names for install.
3995 # Don't use installbsd from OSF since it installs stuff as root
3996 # by default.
3997 for ac_prog in ginstall scoinst install; do
3998 for ac_exec_ext in '' $ac_executable_extensions; do
3999 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4000 if test $ac_prog = install &&
4001 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4002 # AIX install. It has an incompatible calling convention.
4003 :
4004 elif test $ac_prog = install &&
4005 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4006 # program-specific install script used by HP pwplus--don't use.
4007 :
4008 else
4009 rm -rf conftest.one conftest.two conftest.dir
4010 echo one > conftest.one
4011 echo two > conftest.two
4012 mkdir conftest.dir
4013 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4014 test -s conftest.one && test -s conftest.two &&
4015 test -s conftest.dir/conftest.one &&
4016 test -s conftest.dir/conftest.two
4017 then
4018 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4019 break 3
4020 fi
4021 fi
4022 fi
4023 done
4024 done
4025 ;;
4026 esac
4027
4028 done
4029 IFS=$as_save_IFS
4030
4031 rm -rf conftest.one conftest.two conftest.dir
4032
4033 fi
4034 if test "${ac_cv_path_install+set}" = set; then
4035 INSTALL=$ac_cv_path_install
4036 else
4037 # As a last resort, use the slow shell script. Don't cache a
4038 # value for INSTALL within a source directory, because that will
4039 # break other packages using the cache if that directory is
4040 # removed, or if the value is a relative name.
4041 INSTALL=$ac_install_sh
4042 fi
4043 fi
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4045 $as_echo "$INSTALL" >&6; }
4046
4047 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4048 # It thinks the first close brace ends the variable substitution.
4049 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4050
4051 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4052
4053 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4054
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4056 $as_echo_n "checking whether build environment is sane... " >&6; }
4057 # Reject unsafe characters in $srcdir or the absolute working directory
4058 # name. Accept space and tab only in the latter.
4059 am_lf='
4060 '
4061 case `pwd` in
4062 *[\\\"\#\$\&\'\`$am_lf]*)
4063 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4064 esac
4065 case $srcdir in
4066 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4067 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4068 esac
4069
4070 # Do 'set' in a subshell so we don't clobber the current shell's
4071 # arguments. Must try -L first in case configure is actually a
4072 # symlink; some systems play weird games with the mod time of symlinks
4073 # (eg FreeBSD returns the mod time of the symlink's containing
4074 # directory).
4075 if (
4076 am_has_slept=no
4077 for am_try in 1 2; do
4078 echo "timestamp, slept: $am_has_slept" > conftest.file
4079 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4080 if test "$*" = "X"; then
4081 # -L didn't work.
4082 set X `ls -t "$srcdir/configure" conftest.file`
4083 fi
4084 if test "$*" != "X $srcdir/configure conftest.file" \
4085 && test "$*" != "X conftest.file $srcdir/configure"; then
4086
4087 # If neither matched, then we have a broken ls. This can happen
4088 # if, for instance, CONFIG_SHELL is bash and it inherits a
4089 # broken ls alias from the environment. This has actually
4090 # happened. Such a system could not be considered "sane".
4091 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4092 alias in your environment" "$LINENO" 5
4093 fi
4094 if test "$2" = conftest.file || test $am_try -eq 2; then
4095 break
4096 fi
4097 # Just in case.
4098 sleep 1
4099 am_has_slept=yes
4100 done
4101 test "$2" = conftest.file
4102 )
4103 then
4104 # Ok.
4105 :
4106 else
4107 as_fn_error $? "newly created file is older than distributed files!
4108 Check your system clock" "$LINENO" 5
4109 fi
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4111 $as_echo "yes" >&6; }
4112 # If we didn't sleep, we still need to ensure time stamps of config.status and
4113 # generated files are strictly newer.
4114 am_sleep_pid=
4115 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4116 ( sleep 1 ) &
4117 am_sleep_pid=$!
4118 fi
4119
4120 rm -f conftest.file
4121
4122 test "$program_prefix" != NONE &&
4123 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4124 # Use a double $ so make ignores it.
4125 test "$program_suffix" != NONE &&
4126 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4127 # Double any \ or $.
4128 # By default was `s,x,x', remove it if useless.
4129 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4130 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4131
4132 if test x"${MISSING+set}" != xset; then
4133 case $am_aux_dir in
4134 *\ * | *\ *)
4135 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4136 *)
4137 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4138 esac
4139 fi
4140 # Use eval to expand $SHELL
4141 if eval "$MISSING --is-lightweight"; then
4142 am_missing_run="$MISSING "
4143 else
4144 am_missing_run=
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4146 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4147 fi
4148
4149 if test x"${install_sh+set}" != xset; then
4150 case $am_aux_dir in
4151 *\ * | *\ *)
4152 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4153 *)
4154 install_sh="\${SHELL} $am_aux_dir/install-sh"
4155 esac
4156 fi
4157
4158 # Installed binaries are usually stripped using 'strip' when the user
4159 # run "make install-strip". However 'strip' might not be the right
4160 # tool to use in cross-compilation environments, therefore Automake
4161 # will honor the 'STRIP' environment variable to overrule this program.
4162 if test "$cross_compiling" != no; then
4163 if test -n "$ac_tool_prefix"; then
4164 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4165 set dummy ${ac_tool_prefix}strip; ac_word=$2
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4167 $as_echo_n "checking for $ac_word... " >&6; }
4168 if ${ac_cv_prog_STRIP+:} false; then :
4169 $as_echo_n "(cached) " >&6
4170 else
4171 if test -n "$STRIP"; then
4172 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4173 else
4174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4175 for as_dir in $PATH
4176 do
4177 IFS=$as_save_IFS
4178 test -z "$as_dir" && as_dir=.
4179 for ac_exec_ext in '' $ac_executable_extensions; do
4180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4181 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4183 break 2
4184 fi
4185 done
4186 done
4187 IFS=$as_save_IFS
4188
4189 fi
4190 fi
4191 STRIP=$ac_cv_prog_STRIP
4192 if test -n "$STRIP"; then
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4194 $as_echo "$STRIP" >&6; }
4195 else
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4197 $as_echo "no" >&6; }
4198 fi
4199
4200
4201 fi
4202 if test -z "$ac_cv_prog_STRIP"; then
4203 ac_ct_STRIP=$STRIP
4204 # Extract the first word of "strip", so it can be a program name with args.
4205 set dummy strip; ac_word=$2
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4207 $as_echo_n "checking for $ac_word... " >&6; }
4208 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4209 $as_echo_n "(cached) " >&6
4210 else
4211 if test -n "$ac_ct_STRIP"; then
4212 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4213 else
4214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4215 for as_dir in $PATH
4216 do
4217 IFS=$as_save_IFS
4218 test -z "$as_dir" && as_dir=.
4219 for ac_exec_ext in '' $ac_executable_extensions; do
4220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4221 ac_cv_prog_ac_ct_STRIP="strip"
4222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4223 break 2
4224 fi
4225 done
4226 done
4227 IFS=$as_save_IFS
4228
4229 fi
4230 fi
4231 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4232 if test -n "$ac_ct_STRIP"; then
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4234 $as_echo "$ac_ct_STRIP" >&6; }
4235 else
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4237 $as_echo "no" >&6; }
4238 fi
4239
4240 if test "x$ac_ct_STRIP" = x; then
4241 STRIP=":"
4242 else
4243 case $cross_compiling:$ac_tool_warned in
4244 yes:)
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4246 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4247 ac_tool_warned=yes ;;
4248 esac
4249 STRIP=$ac_ct_STRIP
4250 fi
4251 else
4252 STRIP="$ac_cv_prog_STRIP"
4253 fi
4254
4255 fi
4256 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4257
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4259 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4260 if test -z "$MKDIR_P"; then
4261 if ${ac_cv_path_mkdir+:} false; then :
4262 $as_echo_n "(cached) " >&6
4263 else
4264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4265 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4266 do
4267 IFS=$as_save_IFS
4268 test -z "$as_dir" && as_dir=.
4269 for ac_prog in mkdir gmkdir; do
4270 for ac_exec_ext in '' $ac_executable_extensions; do
4271 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4272 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4273 'mkdir (GNU coreutils) '* | \
4274 'mkdir (coreutils) '* | \
4275 'mkdir (fileutils) '4.1*)
4276 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4277 break 3;;
4278 esac
4279 done
4280 done
4281 done
4282 IFS=$as_save_IFS
4283
4284 fi
4285
4286 test -d ./--version && rmdir ./--version
4287 if test "${ac_cv_path_mkdir+set}" = set; then
4288 MKDIR_P="$ac_cv_path_mkdir -p"
4289 else
4290 # As a last resort, use the slow shell script. Don't cache a
4291 # value for MKDIR_P within a source directory, because that will
4292 # break other packages using the cache if that directory is
4293 # removed, or if the value is a relative name.
4294 MKDIR_P="$ac_install_sh -d"
4295 fi
4296 fi
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4298 $as_echo "$MKDIR_P" >&6; }
4299
4300 for ac_prog in gawk mawk nawk awk
4301 do
4302 # Extract the first word of "$ac_prog", so it can be a program name with args.
4303 set dummy $ac_prog; ac_word=$2
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4305 $as_echo_n "checking for $ac_word... " >&6; }
4306 if ${ac_cv_prog_AWK+:} false; then :
4307 $as_echo_n "(cached) " >&6
4308 else
4309 if test -n "$AWK"; then
4310 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4311 else
4312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313 for as_dir in $PATH
4314 do
4315 IFS=$as_save_IFS
4316 test -z "$as_dir" && as_dir=.
4317 for ac_exec_ext in '' $ac_executable_extensions; do
4318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4319 ac_cv_prog_AWK="$ac_prog"
4320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4321 break 2
4322 fi
4323 done
4324 done
4325 IFS=$as_save_IFS
4326
4327 fi
4328 fi
4329 AWK=$ac_cv_prog_AWK
4330 if test -n "$AWK"; then
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4332 $as_echo "$AWK" >&6; }
4333 else
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4335 $as_echo "no" >&6; }
4336 fi
4337
4338
4339 test -n "$AWK" && break
4340 done
4341
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4343 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4344 set x ${MAKE-make}
4345 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4346 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4347 $as_echo_n "(cached) " >&6
4348 else
4349 cat >conftest.make <<\_ACEOF
4350 SHELL = /bin/sh
4351 all:
4352 @echo '@@@%%%=$(MAKE)=@@@%%%'
4353 _ACEOF
4354 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4355 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4356 *@@@%%%=?*=@@@%%%*)
4357 eval ac_cv_prog_make_${ac_make}_set=yes;;
4358 *)
4359 eval ac_cv_prog_make_${ac_make}_set=no;;
4360 esac
4361 rm -f conftest.make
4362 fi
4363 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4365 $as_echo "yes" >&6; }
4366 SET_MAKE=
4367 else
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4369 $as_echo "no" >&6; }
4370 SET_MAKE="MAKE=${MAKE-make}"
4371 fi
4372
4373 rm -rf .tst 2>/dev/null
4374 mkdir .tst 2>/dev/null
4375 if test -d .tst; then
4376 am__leading_dot=.
4377 else
4378 am__leading_dot=_
4379 fi
4380 rmdir .tst 2>/dev/null
4381
4382 # Check whether --enable-silent-rules was given.
4383 if test "${enable_silent_rules+set}" = set; then :
4384 enableval=$enable_silent_rules;
4385 fi
4386
4387 case $enable_silent_rules in # (((
4388 yes) AM_DEFAULT_VERBOSITY=0;;
4389 no) AM_DEFAULT_VERBOSITY=1;;
4390 *) AM_DEFAULT_VERBOSITY=1;;
4391 esac
4392 am_make=${MAKE-make}
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4394 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4395 if ${am_cv_make_support_nested_variables+:} false; then :
4396 $as_echo_n "(cached) " >&6
4397 else
4398 if $as_echo 'TRUE=$(BAR$(V))
4399 BAR0=false
4400 BAR1=true
4401 V=1
4402 am__doit:
4403 @$(TRUE)
4404 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4405 am_cv_make_support_nested_variables=yes
4406 else
4407 am_cv_make_support_nested_variables=no
4408 fi
4409 fi
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4411 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4412 if test $am_cv_make_support_nested_variables = yes; then
4413 AM_V='$(V)'
4414 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4415 else
4416 AM_V=$AM_DEFAULT_VERBOSITY
4417 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4418 fi
4419 AM_BACKSLASH='\'
4420
4421 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4422 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4423 # is not polluted with repeated "-I."
4424 am__isrc=' -I$(srcdir)'
4425 # test to see if srcdir already configured
4426 if test -f $srcdir/config.status; then
4427 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4428 fi
4429 fi
4430
4431 # test whether we have cygpath
4432 if test -z "$CYGPATH_W"; then
4433 if (cygpath --version) >/dev/null 2>/dev/null; then
4434 CYGPATH_W='cygpath -w'
4435 else
4436 CYGPATH_W=echo
4437 fi
4438 fi
4439
4440
4441 # Define the identity of the package.
4442 PACKAGE='libphobos'
4443 VERSION='version-unused'
4444
4445
4446 # Some tools Automake needs.
4447
4448 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4449
4450
4451 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4452
4453
4454 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4455
4456
4457 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4458
4459
4460 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4461
4462 # For better backward compatibility. To be removed once Automake 1.9.x
4463 # dies out for good. For more background, see:
4464 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4465 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4466 mkdir_p='$(MKDIR_P)'
4467
4468 # We need awk for the "check" target (and possibly the TAP driver). The
4469 # system "awk" is bad on some platforms.
4470 # Always define AMTAR for backward compatibility. Yes, it's still used
4471 # in the wild :-( We should find a proper way to deprecate it ...
4472 AMTAR='$${TAR-tar}'
4473
4474
4475 # We'll loop over all known methods to create a tar archive until one works.
4476 _am_tools='gnutar pax cpio none'
4477
4478 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4479
4480
4481
4482
4483
4484
4485 # POSIX will say in a future version that running "rm -f" with no argument
4486 # is OK; and we want to be able to make that assumption in our Makefile
4487 # recipes. So use an aggressive probe to check that the usage we want is
4488 # actually supported "in the wild" to an acceptable degree.
4489 # See automake bug#10828.
4490 # To make any issue more visible, cause the running configure to be aborted
4491 # by default if the 'rm' program in use doesn't match our expectations; the
4492 # user can still override this though.
4493 if rm -f && rm -fr && rm -rf; then : OK; else
4494 cat >&2 <<'END'
4495 Oops!
4496
4497 Your 'rm' program seems unable to run without file operands specified
4498 on the command line, even when the '-f' option is present. This is contrary
4499 to the behaviour of most rm programs out there, and not conforming with
4500 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4501
4502 Please tell bug-automake@gnu.org about your system, including the value
4503 of your $PATH and any error possibly output before this message. This
4504 can help us improve future automake versions.
4505
4506 END
4507 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4508 echo 'Configuration will proceed anyway, since you have set the' >&2
4509 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4510 echo >&2
4511 else
4512 cat >&2 <<'END'
4513 Aborting the configuration process, to ensure you take notice of the issue.
4514
4515 You can download and install GNU coreutils to get an 'rm' implementation
4516 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4517
4518 If you want to complete the configuration process using your problematic
4519 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4520 to "yes", and re-run configure.
4521
4522 END
4523 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4524 fi
4525 fi
4526
4527
4528
4529
4530 # By default we simply use the C compiler to build assembly code.
4531
4532 test "${CCAS+set}" = set || CCAS=$CC
4533 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4534
4535
4536
4537 ac_ext=c
4538 ac_cpp='$CPP $CPPFLAGS'
4539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4542 if test -n "$ac_tool_prefix"; then
4543 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4544 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4546 $as_echo_n "checking for $ac_word... " >&6; }
4547 if ${ac_cv_prog_CC+:} false; then :
4548 $as_echo_n "(cached) " >&6
4549 else
4550 if test -n "$CC"; then
4551 ac_cv_prog_CC="$CC" # Let the user override the test.
4552 else
4553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554 for as_dir in $PATH
4555 do
4556 IFS=$as_save_IFS
4557 test -z "$as_dir" && as_dir=.
4558 for ac_exec_ext in '' $ac_executable_extensions; do
4559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4560 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4562 break 2
4563 fi
4564 done
4565 done
4566 IFS=$as_save_IFS
4567
4568 fi
4569 fi
4570 CC=$ac_cv_prog_CC
4571 if test -n "$CC"; then
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4573 $as_echo "$CC" >&6; }
4574 else
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4576 $as_echo "no" >&6; }
4577 fi
4578
4579
4580 fi
4581 if test -z "$ac_cv_prog_CC"; then
4582 ac_ct_CC=$CC
4583 # Extract the first word of "gcc", so it can be a program name with args.
4584 set dummy gcc; ac_word=$2
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4586 $as_echo_n "checking for $ac_word... " >&6; }
4587 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4588 $as_echo_n "(cached) " >&6
4589 else
4590 if test -n "$ac_ct_CC"; then
4591 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4592 else
4593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594 for as_dir in $PATH
4595 do
4596 IFS=$as_save_IFS
4597 test -z "$as_dir" && as_dir=.
4598 for ac_exec_ext in '' $ac_executable_extensions; do
4599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4600 ac_cv_prog_ac_ct_CC="gcc"
4601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4602 break 2
4603 fi
4604 done
4605 done
4606 IFS=$as_save_IFS
4607
4608 fi
4609 fi
4610 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4611 if test -n "$ac_ct_CC"; then
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4613 $as_echo "$ac_ct_CC" >&6; }
4614 else
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4616 $as_echo "no" >&6; }
4617 fi
4618
4619 if test "x$ac_ct_CC" = x; then
4620 CC=""
4621 else
4622 case $cross_compiling:$ac_tool_warned in
4623 yes:)
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4625 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4626 ac_tool_warned=yes ;;
4627 esac
4628 CC=$ac_ct_CC
4629 fi
4630 else
4631 CC="$ac_cv_prog_CC"
4632 fi
4633
4634 if test -z "$CC"; then
4635 if test -n "$ac_tool_prefix"; then
4636 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4637 set dummy ${ac_tool_prefix}cc; ac_word=$2
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4639 $as_echo_n "checking for $ac_word... " >&6; }
4640 if ${ac_cv_prog_CC+:} false; then :
4641 $as_echo_n "(cached) " >&6
4642 else
4643 if test -n "$CC"; then
4644 ac_cv_prog_CC="$CC" # Let the user override the test.
4645 else
4646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647 for as_dir in $PATH
4648 do
4649 IFS=$as_save_IFS
4650 test -z "$as_dir" && as_dir=.
4651 for ac_exec_ext in '' $ac_executable_extensions; do
4652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4653 ac_cv_prog_CC="${ac_tool_prefix}cc"
4654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4655 break 2
4656 fi
4657 done
4658 done
4659 IFS=$as_save_IFS
4660
4661 fi
4662 fi
4663 CC=$ac_cv_prog_CC
4664 if test -n "$CC"; then
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4666 $as_echo "$CC" >&6; }
4667 else
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4669 $as_echo "no" >&6; }
4670 fi
4671
4672
4673 fi
4674 fi
4675 if test -z "$CC"; then
4676 # Extract the first word of "cc", so it can be a program name with args.
4677 set dummy cc; ac_word=$2
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4679 $as_echo_n "checking for $ac_word... " >&6; }
4680 if ${ac_cv_prog_CC+:} false; then :
4681 $as_echo_n "(cached) " >&6
4682 else
4683 if test -n "$CC"; then
4684 ac_cv_prog_CC="$CC" # Let the user override the test.
4685 else
4686 ac_prog_rejected=no
4687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4688 for as_dir in $PATH
4689 do
4690 IFS=$as_save_IFS
4691 test -z "$as_dir" && as_dir=.
4692 for ac_exec_ext in '' $ac_executable_extensions; do
4693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4694 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4695 ac_prog_rejected=yes
4696 continue
4697 fi
4698 ac_cv_prog_CC="cc"
4699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4700 break 2
4701 fi
4702 done
4703 done
4704 IFS=$as_save_IFS
4705
4706 if test $ac_prog_rejected = yes; then
4707 # We found a bogon in the path, so make sure we never use it.
4708 set dummy $ac_cv_prog_CC
4709 shift
4710 if test $# != 0; then
4711 # We chose a different compiler from the bogus one.
4712 # However, it has the same basename, so the bogon will be chosen
4713 # first if we set CC to just the basename; use the full file name.
4714 shift
4715 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4716 fi
4717 fi
4718 fi
4719 fi
4720 CC=$ac_cv_prog_CC
4721 if test -n "$CC"; then
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4723 $as_echo "$CC" >&6; }
4724 else
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4726 $as_echo "no" >&6; }
4727 fi
4728
4729
4730 fi
4731 if test -z "$CC"; then
4732 if test -n "$ac_tool_prefix"; then
4733 for ac_prog in cl.exe
4734 do
4735 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4736 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4738 $as_echo_n "checking for $ac_word... " >&6; }
4739 if ${ac_cv_prog_CC+:} false; then :
4740 $as_echo_n "(cached) " >&6
4741 else
4742 if test -n "$CC"; then
4743 ac_cv_prog_CC="$CC" # Let the user override the test.
4744 else
4745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746 for as_dir in $PATH
4747 do
4748 IFS=$as_save_IFS
4749 test -z "$as_dir" && as_dir=.
4750 for ac_exec_ext in '' $ac_executable_extensions; do
4751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4752 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4754 break 2
4755 fi
4756 done
4757 done
4758 IFS=$as_save_IFS
4759
4760 fi
4761 fi
4762 CC=$ac_cv_prog_CC
4763 if test -n "$CC"; then
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4765 $as_echo "$CC" >&6; }
4766 else
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4768 $as_echo "no" >&6; }
4769 fi
4770
4771
4772 test -n "$CC" && break
4773 done
4774 fi
4775 if test -z "$CC"; then
4776 ac_ct_CC=$CC
4777 for ac_prog in cl.exe
4778 do
4779 # Extract the first word of "$ac_prog", so it can be a program name with args.
4780 set dummy $ac_prog; ac_word=$2
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4782 $as_echo_n "checking for $ac_word... " >&6; }
4783 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4784 $as_echo_n "(cached) " >&6
4785 else
4786 if test -n "$ac_ct_CC"; then
4787 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4788 else
4789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790 for as_dir in $PATH
4791 do
4792 IFS=$as_save_IFS
4793 test -z "$as_dir" && as_dir=.
4794 for ac_exec_ext in '' $ac_executable_extensions; do
4795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4796 ac_cv_prog_ac_ct_CC="$ac_prog"
4797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4798 break 2
4799 fi
4800 done
4801 done
4802 IFS=$as_save_IFS
4803
4804 fi
4805 fi
4806 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4807 if test -n "$ac_ct_CC"; then
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4809 $as_echo "$ac_ct_CC" >&6; }
4810 else
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4812 $as_echo "no" >&6; }
4813 fi
4814
4815
4816 test -n "$ac_ct_CC" && break
4817 done
4818
4819 if test "x$ac_ct_CC" = x; then
4820 CC=""
4821 else
4822 case $cross_compiling:$ac_tool_warned in
4823 yes:)
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4825 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4826 ac_tool_warned=yes ;;
4827 esac
4828 CC=$ac_ct_CC
4829 fi
4830 fi
4831
4832 fi
4833
4834
4835 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4836 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4837 as_fn_error $? "no acceptable C compiler found in \$PATH
4838 See \`config.log' for more details" "$LINENO" 5; }
4839
4840 # Provide some information about the compiler.
4841 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4842 set X $ac_compile
4843 ac_compiler=$2
4844 for ac_option in --version -v -V -qversion; do
4845 { { ac_try="$ac_compiler $ac_option >&5"
4846 case "(($ac_try" in
4847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4848 *) ac_try_echo=$ac_try;;
4849 esac
4850 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4851 $as_echo "$ac_try_echo"; } >&5
4852 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4853 ac_status=$?
4854 if test -s conftest.err; then
4855 sed '10a\
4856 ... rest of stderr output deleted ...
4857 10q' conftest.err >conftest.er1
4858 cat conftest.er1 >&5
4859 fi
4860 rm -f conftest.er1 conftest.err
4861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4862 test $ac_status = 0; }
4863 done
4864
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4866 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4867 if ${ac_cv_c_compiler_gnu+:} false; then :
4868 $as_echo_n "(cached) " >&6
4869 else
4870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4871 /* end confdefs.h. */
4872
4873 int
4874 main ()
4875 {
4876 #ifndef __GNUC__
4877 choke me
4878 #endif
4879
4880 ;
4881 return 0;
4882 }
4883 _ACEOF
4884 if ac_fn_c_try_compile "$LINENO"; then :
4885 ac_compiler_gnu=yes
4886 else
4887 ac_compiler_gnu=no
4888 fi
4889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4890 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4891
4892 fi
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4894 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4895 if test $ac_compiler_gnu = yes; then
4896 GCC=yes
4897 else
4898 GCC=
4899 fi
4900 ac_test_CFLAGS=${CFLAGS+set}
4901 ac_save_CFLAGS=$CFLAGS
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4903 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4904 if ${ac_cv_prog_cc_g+:} false; then :
4905 $as_echo_n "(cached) " >&6
4906 else
4907 ac_save_c_werror_flag=$ac_c_werror_flag
4908 ac_c_werror_flag=yes
4909 ac_cv_prog_cc_g=no
4910 CFLAGS="-g"
4911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4912 /* end confdefs.h. */
4913
4914 int
4915 main ()
4916 {
4917
4918 ;
4919 return 0;
4920 }
4921 _ACEOF
4922 if ac_fn_c_try_compile "$LINENO"; then :
4923 ac_cv_prog_cc_g=yes
4924 else
4925 CFLAGS=""
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
4939 else
4940 ac_c_werror_flag=$ac_save_c_werror_flag
4941 CFLAGS="-g"
4942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4943 /* end confdefs.h. */
4944
4945 int
4946 main ()
4947 {
4948
4949 ;
4950 return 0;
4951 }
4952 _ACEOF
4953 if ac_fn_c_try_compile "$LINENO"; then :
4954 ac_cv_prog_cc_g=yes
4955 fi
4956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4957 fi
4958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4959 fi
4960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4961 ac_c_werror_flag=$ac_save_c_werror_flag
4962 fi
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4964 $as_echo "$ac_cv_prog_cc_g" >&6; }
4965 if test "$ac_test_CFLAGS" = set; then
4966 CFLAGS=$ac_save_CFLAGS
4967 elif test $ac_cv_prog_cc_g = yes; then
4968 if test "$GCC" = yes; then
4969 CFLAGS="-g -O2"
4970 else
4971 CFLAGS="-g"
4972 fi
4973 else
4974 if test "$GCC" = yes; then
4975 CFLAGS="-O2"
4976 else
4977 CFLAGS=
4978 fi
4979 fi
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4981 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4982 if ${ac_cv_prog_cc_c89+:} false; then :
4983 $as_echo_n "(cached) " >&6
4984 else
4985 ac_cv_prog_cc_c89=no
4986 ac_save_CC=$CC
4987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4988 /* end confdefs.h. */
4989 #include <stdarg.h>
4990 #include <stdio.h>
4991 struct stat;
4992 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4993 struct buf { int x; };
4994 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4995 static char *e (p, i)
4996 char **p;
4997 int i;
4998 {
4999 return p[i];
5000 }
5001 static char *f (char * (*g) (char **, int), char **p, ...)
5002 {
5003 char *s;
5004 va_list v;
5005 va_start (v,p);
5006 s = g (p, va_arg (v,int));
5007 va_end (v);
5008 return s;
5009 }
5010
5011 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5012 function prototypes and stuff, but not '\xHH' hex character constants.
5013 These don't provoke an error unfortunately, instead are silently treated
5014 as 'x'. The following induces an error, until -std is added to get
5015 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5016 array size at least. It's necessary to write '\x00'==0 to get something
5017 that's true only with -std. */
5018 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5019
5020 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5021 inside strings and character constants. */
5022 #define FOO(x) 'x'
5023 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5024
5025 int test (int i, double x);
5026 struct s1 {int (*f) (int a);};
5027 struct s2 {int (*f) (double a);};
5028 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5029 int argc;
5030 char **argv;
5031 int
5032 main ()
5033 {
5034 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5035 ;
5036 return 0;
5037 }
5038 _ACEOF
5039 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5040 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5041 do
5042 CC="$ac_save_CC $ac_arg"
5043 if ac_fn_c_try_compile "$LINENO"; then :
5044 ac_cv_prog_cc_c89=$ac_arg
5045 fi
5046 rm -f core conftest.err conftest.$ac_objext
5047 test "x$ac_cv_prog_cc_c89" != "xno" && break
5048 done
5049 rm -f conftest.$ac_ext
5050 CC=$ac_save_CC
5051
5052 fi
5053 # AC_CACHE_VAL
5054 case "x$ac_cv_prog_cc_c89" in
5055 x)
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5057 $as_echo "none needed" >&6; } ;;
5058 xno)
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5060 $as_echo "unsupported" >&6; } ;;
5061 *)
5062 CC="$CC $ac_cv_prog_cc_c89"
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5064 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5065 esac
5066 if test "x$ac_cv_prog_cc_c89" != xno; then :
5067
5068 fi
5069
5070 ac_ext=c
5071 ac_cpp='$CPP $CPPFLAGS'
5072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5075
5076 ac_ext=c
5077 ac_cpp='$CPP $CPPFLAGS'
5078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5082 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5083 if ${am_cv_prog_cc_c_o+:} false; then :
5084 $as_echo_n "(cached) " >&6
5085 else
5086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5087 /* end confdefs.h. */
5088
5089 int
5090 main ()
5091 {
5092
5093 ;
5094 return 0;
5095 }
5096 _ACEOF
5097 # Make sure it works both with $CC and with simple cc.
5098 # Following AC_PROG_CC_C_O, we do the test twice because some
5099 # compilers refuse to overwrite an existing .o file with -o,
5100 # though they will create one.
5101 am_cv_prog_cc_c_o=yes
5102 for am_i in 1 2; do
5103 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5104 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5105 ac_status=$?
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); } \
5108 && test -f conftest2.$ac_objext; then
5109 : OK
5110 else
5111 am_cv_prog_cc_c_o=no
5112 break
5113 fi
5114 done
5115 rm -f core conftest*
5116 unset am_i
5117 fi
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5119 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5120 if test "$am_cv_prog_cc_c_o" != yes; then
5121 # Losing compiler, so override with the script.
5122 # FIXME: It is wrong to rewrite CC.
5123 # But if we don't then we get into trouble of one sort or another.
5124 # A longer-term fix would be to have automake use am__CC in this case,
5125 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5126 CC="$am_aux_dir/compile $CC"
5127 fi
5128 ac_ext=c
5129 ac_cpp='$CPP $CPPFLAGS'
5130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5133
5134
5135 ac_ext=d
5136 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5137 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5138 ac_compiler_gnu=yes
5139 if test -n "$ac_tool_prefix"; then
5140 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5141 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5143 $as_echo_n "checking for $ac_word... " >&6; }
5144 if ${ac_cv_prog_GDC+:} false; then :
5145 $as_echo_n "(cached) " >&6
5146 else
5147 if test -n "$GDC"; then
5148 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5149 else
5150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151 for as_dir in $PATH
5152 do
5153 IFS=$as_save_IFS
5154 test -z "$as_dir" && as_dir=.
5155 for ac_exec_ext in '' $ac_executable_extensions; do
5156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5157 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5159 break 2
5160 fi
5161 done
5162 done
5163 IFS=$as_save_IFS
5164
5165 fi
5166 fi
5167 GDC=$ac_cv_prog_GDC
5168 if test -n "$GDC"; then
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5170 $as_echo "$GDC" >&6; }
5171 else
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5173 $as_echo "no" >&6; }
5174 fi
5175
5176
5177 fi
5178 if test -z "$ac_cv_prog_GDC"; then
5179 ac_ct_GDC=$GDC
5180 # Extract the first word of "gdc", so it can be a program name with args.
5181 set dummy gdc; ac_word=$2
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5183 $as_echo_n "checking for $ac_word... " >&6; }
5184 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5185 $as_echo_n "(cached) " >&6
5186 else
5187 if test -n "$ac_ct_GDC"; then
5188 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5189 else
5190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191 for as_dir in $PATH
5192 do
5193 IFS=$as_save_IFS
5194 test -z "$as_dir" && as_dir=.
5195 for ac_exec_ext in '' $ac_executable_extensions; do
5196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5197 ac_cv_prog_ac_ct_GDC="gdc"
5198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5199 break 2
5200 fi
5201 done
5202 done
5203 IFS=$as_save_IFS
5204
5205 fi
5206 fi
5207 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5208 if test -n "$ac_ct_GDC"; then
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5210 $as_echo "$ac_ct_GDC" >&6; }
5211 else
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5213 $as_echo "no" >&6; }
5214 fi
5215
5216 if test "x$ac_ct_GDC" = x; then
5217 GDC=""
5218 else
5219 case $cross_compiling:$ac_tool_warned in
5220 yes:)
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5223 ac_tool_warned=yes ;;
5224 esac
5225 GDC=$ac_ct_GDC
5226 fi
5227 else
5228 GDC="$ac_cv_prog_GDC"
5229 fi
5230
5231 if test -z "$GDC"; then
5232 if test -n "$ac_tool_prefix"; then
5233 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5234 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5236 $as_echo_n "checking for $ac_word... " >&6; }
5237 if ${ac_cv_prog_GDC+:} false; then :
5238 $as_echo_n "(cached) " >&6
5239 else
5240 if test -n "$GDC"; then
5241 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5242 else
5243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5244 for as_dir in $PATH
5245 do
5246 IFS=$as_save_IFS
5247 test -z "$as_dir" && as_dir=.
5248 for ac_exec_ext in '' $ac_executable_extensions; do
5249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5250 ac_cv_prog_GDC="$ac_tool_prefix}gdc"
5251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5252 break 2
5253 fi
5254 done
5255 done
5256 IFS=$as_save_IFS
5257
5258 fi
5259 fi
5260 GDC=$ac_cv_prog_GDC
5261 if test -n "$GDC"; then
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5263 $as_echo "$GDC" >&6; }
5264 else
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5266 $as_echo "no" >&6; }
5267 fi
5268
5269
5270 fi
5271 fi
5272 if test -z "$GDC"; then
5273 # Extract the first word of "gdc", so it can be a program name with args.
5274 set dummy gdc; ac_word=$2
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5276 $as_echo_n "checking for $ac_word... " >&6; }
5277 if ${ac_cv_prog_GDC+:} false; then :
5278 $as_echo_n "(cached) " >&6
5279 else
5280 if test -n "$GDC"; then
5281 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5282 else
5283 ac_prog_rejected=no
5284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5285 for as_dir in $PATH
5286 do
5287 IFS=$as_save_IFS
5288 test -z "$as_dir" && as_dir=.
5289 for ac_exec_ext in '' $ac_executable_extensions; do
5290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5291 if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
5292 ac_prog_rejected=yes
5293 continue
5294 fi
5295 ac_cv_prog_GDC="gdc"
5296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5297 break 2
5298 fi
5299 done
5300 done
5301 IFS=$as_save_IFS
5302
5303 if test $ac_prog_rejected = yes; then
5304 # We found a bogon in the path, so make sure we never use it.
5305 set dummy $ac_cv_prog_GDC
5306 shift
5307 if test $# != 0; then
5308 # We chose a different compiler from the bogus one.
5309 # However, it has the same basename, so the bogon will be chosen
5310 # first if we set GDC to just the basename; use the full file name.
5311 shift
5312 ac_cv_prog_GDC="$as_dir/$ac_word${1+' '}$@"
5313 fi
5314 fi
5315 fi
5316 fi
5317 GDC=$ac_cv_prog_GDC
5318 if test -n "$GDC"; then
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5320 $as_echo "$GDC" >&6; }
5321 else
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5323 $as_echo "no" >&6; }
5324 fi
5325
5326
5327 fi
5328
5329
5330 # Provide some information about the compiler.
5331 $as_echo "$as_me:${as_lineno-$LINENO}: checking for D compiler version" >&5
5332 set X $ac_compile
5333 ac_compiler=$2
5334 { { ac_try="$ac_compiler --version >&5"
5335 case "(($ac_try" in
5336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5337 *) ac_try_echo=$ac_try;;
5338 esac
5339 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5340 $as_echo "$ac_try_echo"; } >&5
5341 (eval "$ac_compiler --version >&5") 2>conftest.err
5342 ac_status=$?
5343 if test -s conftest.err; then
5344 sed '10a\
5345 ... rest of stderr output deleted ...
5346 10q' conftest.err >conftest.er1
5347 cat conftest.er1 >&5
5348 fi
5349 rm -f conftest.er1 conftest.err
5350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5351 test $ac_status = 0; }
5352 ac_ext=c
5353 ac_cpp='$CPP $CPPFLAGS'
5354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5357
5358
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for absolute libphobos source path" >&5
5360 $as_echo_n "checking for absolute libphobos source path... " >&6; }
5361 if ${phobos_cv_abs_srcdir+:} false; then :
5362 $as_echo_n "(cached) " >&6
5363 else
5364 phobos_cv_abs_srcdir=`cd $srcdir && pwd`
5365 fi
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $phobos_cv_abs_srcdir" >&5
5367 $as_echo "$phobos_cv_abs_srcdir" >&6; }
5368 if test -d "$phobos_cv_abs_srcdir"; then :
5369
5370 else
5371 as_fn_error $? "can't find absolute libphobos source path" "$LINENO" 5
5372 fi
5373
5374
5375
5376
5377 gdc_save_DFLAGS=$GDCFLAGS
5378 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
5379
5380 ac_ext=d
5381 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5382 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5383 ac_compiler_gnu=yes
5384
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If $GDC can compile D sources" >&5
5386 $as_echo_n "checking If $GDC can compile D sources... " >&6; }
5387 cat > conftest.$ac_ext <<_ACEOF
5388 module mod;
5389
5390
5391 extern(C) int main() {
5392 return 0;
5393 }
5394 _ACEOF
5395 if ac_fn_d_try_compile "$LINENO"; then :
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5397 $as_echo "yes" >&6; }
5398 else
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5400 $as_echo "no" >&6; }
5401 as_fn_error $? "can't compile D sources!" "$LINENO" 5
5402 fi
5403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5404 ac_ext=c
5405 ac_cpp='$CPP $CPPFLAGS'
5406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5409
5410
5411 GDCFLAGS=$gdc_save_DFLAGS
5412
5413
5414
5415
5416
5417
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5419 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5420 # Check whether --enable-maintainer-mode was given.
5421 if test "${enable_maintainer_mode+set}" = set; then :
5422 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5423 else
5424 USE_MAINTAINER_MODE=no
5425 fi
5426
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5428 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5429 if test $USE_MAINTAINER_MODE = yes; then
5430 MAINTAINER_MODE_TRUE=
5431 MAINTAINER_MODE_FALSE='#'
5432 else
5433 MAINTAINER_MODE_TRUE='#'
5434 MAINTAINER_MODE_FALSE=
5435 fi
5436
5437 MAINT=$MAINTAINER_MODE_TRUE
5438
5439
5440 if test -n "$ac_tool_prefix"; then
5441 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5442 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5444 $as_echo_n "checking for $ac_word... " >&6; }
5445 if ${ac_cv_prog_RANLIB+:} false; then :
5446 $as_echo_n "(cached) " >&6
5447 else
5448 if test -n "$RANLIB"; then
5449 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5450 else
5451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5452 for as_dir in $PATH
5453 do
5454 IFS=$as_save_IFS
5455 test -z "$as_dir" && as_dir=.
5456 for ac_exec_ext in '' $ac_executable_extensions; do
5457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5458 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5460 break 2
5461 fi
5462 done
5463 done
5464 IFS=$as_save_IFS
5465
5466 fi
5467 fi
5468 RANLIB=$ac_cv_prog_RANLIB
5469 if test -n "$RANLIB"; then
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5471 $as_echo "$RANLIB" >&6; }
5472 else
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5474 $as_echo "no" >&6; }
5475 fi
5476
5477
5478 fi
5479 if test -z "$ac_cv_prog_RANLIB"; then
5480 ac_ct_RANLIB=$RANLIB
5481 # Extract the first word of "ranlib", so it can be a program name with args.
5482 set dummy ranlib; ac_word=$2
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5484 $as_echo_n "checking for $ac_word... " >&6; }
5485 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5486 $as_echo_n "(cached) " >&6
5487 else
5488 if test -n "$ac_ct_RANLIB"; then
5489 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5490 else
5491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5492 for as_dir in $PATH
5493 do
5494 IFS=$as_save_IFS
5495 test -z "$as_dir" && as_dir=.
5496 for ac_exec_ext in '' $ac_executable_extensions; do
5497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5498 ac_cv_prog_ac_ct_RANLIB="ranlib"
5499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5500 break 2
5501 fi
5502 done
5503 done
5504 IFS=$as_save_IFS
5505
5506 fi
5507 fi
5508 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5509 if test -n "$ac_ct_RANLIB"; then
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5511 $as_echo "$ac_ct_RANLIB" >&6; }
5512 else
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5514 $as_echo "no" >&6; }
5515 fi
5516
5517 if test "x$ac_ct_RANLIB" = x; then
5518 RANLIB=":"
5519 else
5520 case $cross_compiling:$ac_tool_warned in
5521 yes:)
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5523 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5524 ac_tool_warned=yes ;;
5525 esac
5526 RANLIB=$ac_ct_RANLIB
5527 fi
5528 else
5529 RANLIB="$ac_cv_prog_RANLIB"
5530 fi
5531
5532
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5534 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5535 set x ${MAKE-make}
5536 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5537 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5538 $as_echo_n "(cached) " >&6
5539 else
5540 cat >conftest.make <<\_ACEOF
5541 SHELL = /bin/sh
5542 all:
5543 @echo '@@@%%%=$(MAKE)=@@@%%%'
5544 _ACEOF
5545 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5546 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5547 *@@@%%%=?*=@@@%%%*)
5548 eval ac_cv_prog_make_${ac_make}_set=yes;;
5549 *)
5550 eval ac_cv_prog_make_${ac_make}_set=no;;
5551 esac
5552 rm -f conftest.make
5553 fi
5554 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5556 $as_echo "yes" >&6; }
5557 SET_MAKE=
5558 else
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5560 $as_echo "no" >&6; }
5561 SET_MAKE="MAKE=${MAKE-make}"
5562 fi
5563
5564
5565 # This should be inherited in the recursive make, but ensure it is defined.
5566 test "$AR" || AR=ar
5567
5568
5569 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
5570
5571
5572
5573 # Enable libtool
5574 case `pwd` in
5575 *\ * | *\ *)
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5577 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5578 esac
5579
5580
5581
5582 macro_version='2.2.7a'
5583 macro_revision='1.3134'
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597 ltmain="$ac_aux_dir/ltmain.sh"
5598
5599 # Backslashify metacharacters that are still active within
5600 # double-quoted strings.
5601 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5602
5603 # Same as above, but do not quote variable references.
5604 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5605
5606 # Sed substitution to delay expansion of an escaped shell variable in a
5607 # double_quote_subst'ed string.
5608 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5609
5610 # Sed substitution to delay expansion of an escaped single quote.
5611 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5612
5613 # Sed substitution to avoid accidental globbing in evaled expressions
5614 no_glob_subst='s/\*/\\\*/g'
5615
5616 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5617 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5618 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5619
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5621 $as_echo_n "checking how to print strings... " >&6; }
5622 # Test print first, because it will be a builtin if present.
5623 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5624 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5625 ECHO='print -r --'
5626 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5627 ECHO='printf %s\n'
5628 else
5629 # Use this function as a fallback that always works.
5630 func_fallback_echo ()
5631 {
5632 eval 'cat <<_LTECHO_EOF
5633 $1
5634 _LTECHO_EOF'
5635 }
5636 ECHO='func_fallback_echo'
5637 fi
5638
5639 # func_echo_all arg...
5640 # Invoke $ECHO with all args, space-separated.
5641 func_echo_all ()
5642 {
5643 $ECHO ""
5644 }
5645
5646 case "$ECHO" in
5647 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5648 $as_echo "printf" >&6; } ;;
5649 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5650 $as_echo "print -r" >&6; } ;;
5651 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5652 $as_echo "cat" >&6; } ;;
5653 esac
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5669 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5670 if ${ac_cv_path_SED+:} false; then :
5671 $as_echo_n "(cached) " >&6
5672 else
5673 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5674 for ac_i in 1 2 3 4 5 6 7; do
5675 ac_script="$ac_script$as_nl$ac_script"
5676 done
5677 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5678 { ac_script=; unset ac_script;}
5679 if test -z "$SED"; then
5680 ac_path_SED_found=false
5681 # Loop through the user's path and test for each of PROGNAME-LIST
5682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5683 for as_dir in $PATH
5684 do
5685 IFS=$as_save_IFS
5686 test -z "$as_dir" && as_dir=.
5687 for ac_prog in sed gsed; do
5688 for ac_exec_ext in '' $ac_executable_extensions; do
5689 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5690 as_fn_executable_p "$ac_path_SED" || continue
5691 # Check for GNU ac_path_SED and select it if it is found.
5692 # Check for GNU $ac_path_SED
5693 case `"$ac_path_SED" --version 2>&1` in
5694 *GNU*)
5695 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5696 *)
5697 ac_count=0
5698 $as_echo_n 0123456789 >"conftest.in"
5699 while :
5700 do
5701 cat "conftest.in" "conftest.in" >"conftest.tmp"
5702 mv "conftest.tmp" "conftest.in"
5703 cp "conftest.in" "conftest.nl"
5704 $as_echo '' >> "conftest.nl"
5705 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5706 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5707 as_fn_arith $ac_count + 1 && ac_count=$as_val
5708 if test $ac_count -gt ${ac_path_SED_max-0}; then
5709 # Best one so far, save it but keep looking for a better one
5710 ac_cv_path_SED="$ac_path_SED"
5711 ac_path_SED_max=$ac_count
5712 fi
5713 # 10*(2^10) chars as input seems more than enough
5714 test $ac_count -gt 10 && break
5715 done
5716 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5717 esac
5718
5719 $ac_path_SED_found && break 3
5720 done
5721 done
5722 done
5723 IFS=$as_save_IFS
5724 if test -z "$ac_cv_path_SED"; then
5725 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5726 fi
5727 else
5728 ac_cv_path_SED=$SED
5729 fi
5730
5731 fi
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5733 $as_echo "$ac_cv_path_SED" >&6; }
5734 SED="$ac_cv_path_SED"
5735 rm -f conftest.sed
5736
5737 test -z "$SED" && SED=sed
5738 Xsed="$SED -e 1s/^X//"
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5751 $as_echo_n "checking for fgrep... " >&6; }
5752 if ${ac_cv_path_FGREP+:} false; then :
5753 $as_echo_n "(cached) " >&6
5754 else
5755 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5756 then ac_cv_path_FGREP="$GREP -F"
5757 else
5758 if test -z "$FGREP"; then
5759 ac_path_FGREP_found=false
5760 # Loop through the user's path and test for each of PROGNAME-LIST
5761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5762 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5763 do
5764 IFS=$as_save_IFS
5765 test -z "$as_dir" && as_dir=.
5766 for ac_prog in fgrep; do
5767 for ac_exec_ext in '' $ac_executable_extensions; do
5768 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5769 as_fn_executable_p "$ac_path_FGREP" || continue
5770 # Check for GNU ac_path_FGREP and select it if it is found.
5771 # Check for GNU $ac_path_FGREP
5772 case `"$ac_path_FGREP" --version 2>&1` in
5773 *GNU*)
5774 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5775 *)
5776 ac_count=0
5777 $as_echo_n 0123456789 >"conftest.in"
5778 while :
5779 do
5780 cat "conftest.in" "conftest.in" >"conftest.tmp"
5781 mv "conftest.tmp" "conftest.in"
5782 cp "conftest.in" "conftest.nl"
5783 $as_echo 'FGREP' >> "conftest.nl"
5784 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5785 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5786 as_fn_arith $ac_count + 1 && ac_count=$as_val
5787 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5788 # Best one so far, save it but keep looking for a better one
5789 ac_cv_path_FGREP="$ac_path_FGREP"
5790 ac_path_FGREP_max=$ac_count
5791 fi
5792 # 10*(2^10) chars as input seems more than enough
5793 test $ac_count -gt 10 && break
5794 done
5795 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5796 esac
5797
5798 $ac_path_FGREP_found && break 3
5799 done
5800 done
5801 done
5802 IFS=$as_save_IFS
5803 if test -z "$ac_cv_path_FGREP"; then
5804 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5805 fi
5806 else
5807 ac_cv_path_FGREP=$FGREP
5808 fi
5809
5810 fi
5811 fi
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5813 $as_echo "$ac_cv_path_FGREP" >&6; }
5814 FGREP="$ac_cv_path_FGREP"
5815
5816
5817 test -z "$GREP" && GREP=grep
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837 # Check whether --with-gnu-ld was given.
5838 if test "${with_gnu_ld+set}" = set; then :
5839 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5840 else
5841 with_gnu_ld=no
5842 fi
5843
5844 ac_prog=ld
5845 if test "$GCC" = yes; then
5846 # Check if gcc -print-prog-name=ld gives a path.
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5848 $as_echo_n "checking for ld used by $CC... " >&6; }
5849 case $host in
5850 *-*-mingw*)
5851 # gcc leaves a trailing carriage return which upsets mingw
5852 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5853 *)
5854 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5855 esac
5856 case $ac_prog in
5857 # Accept absolute paths.
5858 [\\/]* | ?:[\\/]*)
5859 re_direlt='/[^/][^/]*/\.\./'
5860 # Canonicalize the pathname of ld
5861 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5862 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5863 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5864 done
5865 test -z "$LD" && LD="$ac_prog"
5866 ;;
5867 "")
5868 # If it fails, then pretend we aren't using GCC.
5869 ac_prog=ld
5870 ;;
5871 *)
5872 # If it is relative, then search for the first ld in PATH.
5873 with_gnu_ld=unknown
5874 ;;
5875 esac
5876 elif test "$with_gnu_ld" = yes; then
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5878 $as_echo_n "checking for GNU ld... " >&6; }
5879 else
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5881 $as_echo_n "checking for non-GNU ld... " >&6; }
5882 fi
5883 if ${lt_cv_path_LD+:} false; then :
5884 $as_echo_n "(cached) " >&6
5885 else
5886 if test -z "$LD"; then
5887 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5888 for ac_dir in $PATH; do
5889 IFS="$lt_save_ifs"
5890 test -z "$ac_dir" && ac_dir=.
5891 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5892 lt_cv_path_LD="$ac_dir/$ac_prog"
5893 # Check to see if the program is GNU ld. I'd rather use --version,
5894 # but apparently some variants of GNU ld only accept -v.
5895 # Break only if it was the GNU/non-GNU ld that we prefer.
5896 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5897 *GNU* | *'with BFD'*)
5898 test "$with_gnu_ld" != no && break
5899 ;;
5900 *)
5901 test "$with_gnu_ld" != yes && break
5902 ;;
5903 esac
5904 fi
5905 done
5906 IFS="$lt_save_ifs"
5907 else
5908 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5909 fi
5910 fi
5911
5912 LD="$lt_cv_path_LD"
5913 if test -n "$LD"; then
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5915 $as_echo "$LD" >&6; }
5916 else
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5918 $as_echo "no" >&6; }
5919 fi
5920 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5922 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5923 if ${lt_cv_prog_gnu_ld+:} false; then :
5924 $as_echo_n "(cached) " >&6
5925 else
5926 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5927 case `$LD -v 2>&1 </dev/null` in
5928 *GNU* | *'with BFD'*)
5929 lt_cv_prog_gnu_ld=yes
5930 ;;
5931 *)
5932 lt_cv_prog_gnu_ld=no
5933 ;;
5934 esac
5935 fi
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5937 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5938 with_gnu_ld=$lt_cv_prog_gnu_ld
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5949 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5950 if ${lt_cv_path_NM+:} false; then :
5951 $as_echo_n "(cached) " >&6
5952 else
5953 if test -n "$NM"; then
5954 # Let the user override the test.
5955 lt_cv_path_NM="$NM"
5956 else
5957 lt_nm_to_check="${ac_tool_prefix}nm"
5958 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5959 lt_nm_to_check="$lt_nm_to_check nm"
5960 fi
5961 for lt_tmp_nm in $lt_nm_to_check; do
5962 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5963 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5964 IFS="$lt_save_ifs"
5965 test -z "$ac_dir" && ac_dir=.
5966 tmp_nm="$ac_dir/$lt_tmp_nm"
5967 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5968 # Check to see if the nm accepts a BSD-compat flag.
5969 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5970 # nm: unknown option "B" ignored
5971 # Tru64's nm complains that /dev/null is an invalid object file
5972 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5973 */dev/null* | *'Invalid file or object type'*)
5974 lt_cv_path_NM="$tmp_nm -B"
5975 break
5976 ;;
5977 *)
5978 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5979 */dev/null*)
5980 lt_cv_path_NM="$tmp_nm -p"
5981 break
5982 ;;
5983 *)
5984 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5985 continue # so that we can try to find one that supports BSD flags
5986 ;;
5987 esac
5988 ;;
5989 esac
5990 fi
5991 done
5992 IFS="$lt_save_ifs"
5993 done
5994 : ${lt_cv_path_NM=no}
5995 fi
5996 fi
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5998 $as_echo "$lt_cv_path_NM" >&6; }
5999 if test "$lt_cv_path_NM" != "no"; then
6000 NM="$lt_cv_path_NM"
6001 else
6002 # Didn't find any BSD compatible name lister, look for dumpbin.
6003 if test -n "$DUMPBIN"; then :
6004 # Let the user override the test.
6005 else
6006 if test -n "$ac_tool_prefix"; then
6007 for ac_prog in dumpbin "link -dump"
6008 do
6009 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6010 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6012 $as_echo_n "checking for $ac_word... " >&6; }
6013 if ${ac_cv_prog_DUMPBIN+:} false; then :
6014 $as_echo_n "(cached) " >&6
6015 else
6016 if test -n "$DUMPBIN"; then
6017 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6018 else
6019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6020 for as_dir in $PATH
6021 do
6022 IFS=$as_save_IFS
6023 test -z "$as_dir" && as_dir=.
6024 for ac_exec_ext in '' $ac_executable_extensions; do
6025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6026 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6028 break 2
6029 fi
6030 done
6031 done
6032 IFS=$as_save_IFS
6033
6034 fi
6035 fi
6036 DUMPBIN=$ac_cv_prog_DUMPBIN
6037 if test -n "$DUMPBIN"; then
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6039 $as_echo "$DUMPBIN" >&6; }
6040 else
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6042 $as_echo "no" >&6; }
6043 fi
6044
6045
6046 test -n "$DUMPBIN" && break
6047 done
6048 fi
6049 if test -z "$DUMPBIN"; then
6050 ac_ct_DUMPBIN=$DUMPBIN
6051 for ac_prog in dumpbin "link -dump"
6052 do
6053 # Extract the first word of "$ac_prog", so it can be a program name with args.
6054 set dummy $ac_prog; ac_word=$2
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6056 $as_echo_n "checking for $ac_word... " >&6; }
6057 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6058 $as_echo_n "(cached) " >&6
6059 else
6060 if test -n "$ac_ct_DUMPBIN"; then
6061 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6062 else
6063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6064 for as_dir in $PATH
6065 do
6066 IFS=$as_save_IFS
6067 test -z "$as_dir" && as_dir=.
6068 for ac_exec_ext in '' $ac_executable_extensions; do
6069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6070 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6072 break 2
6073 fi
6074 done
6075 done
6076 IFS=$as_save_IFS
6077
6078 fi
6079 fi
6080 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6081 if test -n "$ac_ct_DUMPBIN"; then
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6083 $as_echo "$ac_ct_DUMPBIN" >&6; }
6084 else
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6086 $as_echo "no" >&6; }
6087 fi
6088
6089
6090 test -n "$ac_ct_DUMPBIN" && break
6091 done
6092
6093 if test "x$ac_ct_DUMPBIN" = x; then
6094 DUMPBIN=":"
6095 else
6096 case $cross_compiling:$ac_tool_warned in
6097 yes:)
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6099 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6100 ac_tool_warned=yes ;;
6101 esac
6102 DUMPBIN=$ac_ct_DUMPBIN
6103 fi
6104 fi
6105
6106 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6107 *COFF*)
6108 DUMPBIN="$DUMPBIN -symbols"
6109 ;;
6110 *)
6111 DUMPBIN=:
6112 ;;
6113 esac
6114 fi
6115
6116 if test "$DUMPBIN" != ":"; then
6117 NM="$DUMPBIN"
6118 fi
6119 fi
6120 test -z "$NM" && NM=nm
6121
6122
6123
6124
6125
6126
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6128 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6129 if ${lt_cv_nm_interface+:} false; then :
6130 $as_echo_n "(cached) " >&6
6131 else
6132 lt_cv_nm_interface="BSD nm"
6133 echo "int some_variable = 0;" > conftest.$ac_ext
6134 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6135 (eval "$ac_compile" 2>conftest.err)
6136 cat conftest.err >&5
6137 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6138 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6139 cat conftest.err >&5
6140 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6141 cat conftest.out >&5
6142 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6143 lt_cv_nm_interface="MS dumpbin"
6144 fi
6145 rm -f conftest*
6146 fi
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6148 $as_echo "$lt_cv_nm_interface" >&6; }
6149
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6151 $as_echo_n "checking whether ln -s works... " >&6; }
6152 LN_S=$as_ln_s
6153 if test "$LN_S" = "ln -s"; then
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6155 $as_echo "yes" >&6; }
6156 else
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6158 $as_echo "no, using $LN_S" >&6; }
6159 fi
6160
6161 # find the maximum length of command line arguments
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6163 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6164 if ${lt_cv_sys_max_cmd_len+:} false; then :
6165 $as_echo_n "(cached) " >&6
6166 else
6167 i=0
6168 teststring="ABCD"
6169
6170 case $build_os in
6171 msdosdjgpp*)
6172 # On DJGPP, this test can blow up pretty badly due to problems in libc
6173 # (any single argument exceeding 2000 bytes causes a buffer overrun
6174 # during glob expansion). Even if it were fixed, the result of this
6175 # check would be larger than it should be.
6176 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6177 ;;
6178
6179 gnu*)
6180 # Under GNU Hurd, this test is not required because there is
6181 # no limit to the length of command line arguments.
6182 # Libtool will interpret -1 as no limit whatsoever
6183 lt_cv_sys_max_cmd_len=-1;
6184 ;;
6185
6186 cygwin* | mingw* | cegcc*)
6187 # On Win9x/ME, this test blows up -- it succeeds, but takes
6188 # about 5 minutes as the teststring grows exponentially.
6189 # Worse, since 9x/ME are not pre-emptively multitasking,
6190 # you end up with a "frozen" computer, even though with patience
6191 # the test eventually succeeds (with a max line length of 256k).
6192 # Instead, let's just punt: use the minimum linelength reported by
6193 # all of the supported platforms: 8192 (on NT/2K/XP).
6194 lt_cv_sys_max_cmd_len=8192;
6195 ;;
6196
6197 mint*)
6198 # On MiNT this can take a long time and run out of memory.
6199 lt_cv_sys_max_cmd_len=8192;
6200 ;;
6201
6202 amigaos*)
6203 # On AmigaOS with pdksh, this test takes hours, literally.
6204 # So we just punt and use a minimum line length of 8192.
6205 lt_cv_sys_max_cmd_len=8192;
6206 ;;
6207
6208 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6209 # This has been around since 386BSD, at least. Likely further.
6210 if test -x /sbin/sysctl; then
6211 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6212 elif test -x /usr/sbin/sysctl; then
6213 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6214 else
6215 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6216 fi
6217 # And add a safety zone
6218 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6219 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6220 ;;
6221
6222 interix*)
6223 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6224 lt_cv_sys_max_cmd_len=196608
6225 ;;
6226
6227 osf*)
6228 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6229 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6230 # nice to cause kernel panics so lets avoid the loop below.
6231 # First set a reasonable default.
6232 lt_cv_sys_max_cmd_len=16384
6233 #
6234 if test -x /sbin/sysconfig; then
6235 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6236 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6237 esac
6238 fi
6239 ;;
6240 sco3.2v5*)
6241 lt_cv_sys_max_cmd_len=102400
6242 ;;
6243 sysv5* | sco5v6* | sysv4.2uw2*)
6244 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6245 if test -n "$kargmax"; then
6246 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6247 else
6248 lt_cv_sys_max_cmd_len=32768
6249 fi
6250 ;;
6251 *)
6252 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6253 if test -n "$lt_cv_sys_max_cmd_len"; then
6254 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6255 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6256 else
6257 # Make teststring a little bigger before we do anything with it.
6258 # a 1K string should be a reasonable start.
6259 for i in 1 2 3 4 5 6 7 8 ; do
6260 teststring=$teststring$teststring
6261 done
6262 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6263 # If test is not a shell built-in, we'll probably end up computing a
6264 # maximum length that is only half of the actual maximum length, but
6265 # we can't tell.
6266 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6267 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6268 test $i != 17 # 1/2 MB should be enough
6269 do
6270 i=`expr $i + 1`
6271 teststring=$teststring$teststring
6272 done
6273 # Only check the string length outside the loop.
6274 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6275 teststring=
6276 # Add a significant safety factor because C++ compilers can tack on
6277 # massive amounts of additional arguments before passing them to the
6278 # linker. It appears as though 1/2 is a usable value.
6279 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6280 fi
6281 ;;
6282 esac
6283
6284 fi
6285
6286 if test -n $lt_cv_sys_max_cmd_len ; then
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6288 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6289 else
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6291 $as_echo "none" >&6; }
6292 fi
6293 max_cmd_len=$lt_cv_sys_max_cmd_len
6294
6295
6296
6297
6298
6299
6300 : ${CP="cp -f"}
6301 : ${MV="mv -f"}
6302 : ${RM="rm -f"}
6303
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6305 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6306 # Try some XSI features
6307 xsi_shell=no
6308 ( _lt_dummy="a/b/c"
6309 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6310 = c,a/b,, \
6311 && eval 'test $(( 1 + 1 )) -eq 2 \
6312 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6313 && xsi_shell=yes
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6315 $as_echo "$xsi_shell" >&6; }
6316
6317
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6319 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6320 lt_shell_append=no
6321 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6322 >/dev/null 2>&1 \
6323 && lt_shell_append=yes
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6325 $as_echo "$lt_shell_append" >&6; }
6326
6327
6328 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6329 lt_unset=unset
6330 else
6331 lt_unset=false
6332 fi
6333
6334
6335
6336
6337
6338 # test EBCDIC or ASCII
6339 case `echo X|tr X '\101'` in
6340 A) # ASCII based system
6341 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6342 lt_SP2NL='tr \040 \012'
6343 lt_NL2SP='tr \015\012 \040\040'
6344 ;;
6345 *) # EBCDIC based system
6346 lt_SP2NL='tr \100 \n'
6347 lt_NL2SP='tr \r\n \100\100'
6348 ;;
6349 esac
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6360 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6361 if ${lt_cv_ld_reload_flag+:} false; then :
6362 $as_echo_n "(cached) " >&6
6363 else
6364 lt_cv_ld_reload_flag='-r'
6365 fi
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6367 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6368 reload_flag=$lt_cv_ld_reload_flag
6369 case $reload_flag in
6370 "" | " "*) ;;
6371 *) reload_flag=" $reload_flag" ;;
6372 esac
6373 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6374 case $host_os in
6375 darwin*)
6376 if test "$GCC" = yes; then
6377 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6378 else
6379 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6380 fi
6381 ;;
6382 esac
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392 if test -n "$ac_tool_prefix"; then
6393 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6394 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6396 $as_echo_n "checking for $ac_word... " >&6; }
6397 if ${ac_cv_prog_OBJDUMP+:} false; then :
6398 $as_echo_n "(cached) " >&6
6399 else
6400 if test -n "$OBJDUMP"; then
6401 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6402 else
6403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6404 for as_dir in $PATH
6405 do
6406 IFS=$as_save_IFS
6407 test -z "$as_dir" && as_dir=.
6408 for ac_exec_ext in '' $ac_executable_extensions; do
6409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6410 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6412 break 2
6413 fi
6414 done
6415 done
6416 IFS=$as_save_IFS
6417
6418 fi
6419 fi
6420 OBJDUMP=$ac_cv_prog_OBJDUMP
6421 if test -n "$OBJDUMP"; then
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6423 $as_echo "$OBJDUMP" >&6; }
6424 else
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6426 $as_echo "no" >&6; }
6427 fi
6428
6429
6430 fi
6431 if test -z "$ac_cv_prog_OBJDUMP"; then
6432 ac_ct_OBJDUMP=$OBJDUMP
6433 # Extract the first word of "objdump", so it can be a program name with args.
6434 set dummy objdump; ac_word=$2
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6436 $as_echo_n "checking for $ac_word... " >&6; }
6437 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6438 $as_echo_n "(cached) " >&6
6439 else
6440 if test -n "$ac_ct_OBJDUMP"; then
6441 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6442 else
6443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6444 for as_dir in $PATH
6445 do
6446 IFS=$as_save_IFS
6447 test -z "$as_dir" && as_dir=.
6448 for ac_exec_ext in '' $ac_executable_extensions; do
6449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6450 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6452 break 2
6453 fi
6454 done
6455 done
6456 IFS=$as_save_IFS
6457
6458 fi
6459 fi
6460 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6461 if test -n "$ac_ct_OBJDUMP"; then
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6463 $as_echo "$ac_ct_OBJDUMP" >&6; }
6464 else
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6466 $as_echo "no" >&6; }
6467 fi
6468
6469 if test "x$ac_ct_OBJDUMP" = x; then
6470 OBJDUMP="false"
6471 else
6472 case $cross_compiling:$ac_tool_warned in
6473 yes:)
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6475 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6476 ac_tool_warned=yes ;;
6477 esac
6478 OBJDUMP=$ac_ct_OBJDUMP
6479 fi
6480 else
6481 OBJDUMP="$ac_cv_prog_OBJDUMP"
6482 fi
6483
6484 test -z "$OBJDUMP" && OBJDUMP=objdump
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6495 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6496 if ${lt_cv_deplibs_check_method+:} false; then :
6497 $as_echo_n "(cached) " >&6
6498 else
6499 lt_cv_file_magic_cmd='$MAGIC_CMD'
6500 lt_cv_file_magic_test_file=
6501 lt_cv_deplibs_check_method='unknown'
6502 # Need to set the preceding variable on all platforms that support
6503 # interlibrary dependencies.
6504 # 'none' -- dependencies not supported.
6505 # `unknown' -- same as none, but documents that we really don't know.
6506 # 'pass_all' -- all dependencies passed with no checks.
6507 # 'test_compile' -- check by making test program.
6508 # 'file_magic [[regex]]' -- check by looking for files in library path
6509 # which responds to the $file_magic_cmd with a given extended regex.
6510 # If you have `file' or equivalent on your system and you're not sure
6511 # whether `pass_all' will *always* work, you probably want this one.
6512
6513 case $host_os in
6514 aix[4-9]*)
6515 lt_cv_deplibs_check_method=pass_all
6516 ;;
6517
6518 beos*)
6519 lt_cv_deplibs_check_method=pass_all
6520 ;;
6521
6522 bsdi[45]*)
6523 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6524 lt_cv_file_magic_cmd='/usr/bin/file -L'
6525 lt_cv_file_magic_test_file=/shlib/libc.so
6526 ;;
6527
6528 cygwin*)
6529 # func_win32_libid is a shell function defined in ltmain.sh
6530 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6531 lt_cv_file_magic_cmd='func_win32_libid'
6532 ;;
6533
6534 mingw* | pw32*)
6535 # Base MSYS/MinGW do not provide the 'file' command needed by
6536 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6537 # unless we find 'file', for example because we are cross-compiling.
6538 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6539 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6540 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6541 lt_cv_file_magic_cmd='func_win32_libid'
6542 else
6543 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6544 lt_cv_file_magic_cmd='$OBJDUMP -f'
6545 fi
6546 ;;
6547
6548 cegcc*)
6549 # use the weaker test based on 'objdump'. See mingw*.
6550 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6551 lt_cv_file_magic_cmd='$OBJDUMP -f'
6552 ;;
6553
6554 darwin* | rhapsody*)
6555 lt_cv_deplibs_check_method=pass_all
6556 ;;
6557
6558 freebsd* | dragonfly*)
6559 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6560 case $host_cpu in
6561 i*86 )
6562 # Not sure whether the presence of OpenBSD here was a mistake.
6563 # Let's accept both of them until this is cleared up.
6564 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6565 lt_cv_file_magic_cmd=/usr/bin/file
6566 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6567 ;;
6568 esac
6569 else
6570 lt_cv_deplibs_check_method=pass_all
6571 fi
6572 ;;
6573
6574 gnu*)
6575 lt_cv_deplibs_check_method=pass_all
6576 ;;
6577
6578 haiku*)
6579 lt_cv_deplibs_check_method=pass_all
6580 ;;
6581
6582 hpux10.20* | hpux11*)
6583 lt_cv_file_magic_cmd=/usr/bin/file
6584 case $host_cpu in
6585 ia64*)
6586 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6587 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6588 ;;
6589 hppa*64*)
6590 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]'
6591 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6592 ;;
6593 *)
6594 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6595 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6596 ;;
6597 esac
6598 ;;
6599
6600 interix[3-9]*)
6601 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6602 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6603 ;;
6604
6605 irix5* | irix6* | nonstopux*)
6606 case $LD in
6607 *-32|*"-32 ") libmagic=32-bit;;
6608 *-n32|*"-n32 ") libmagic=N32;;
6609 *-64|*"-64 ") libmagic=64-bit;;
6610 *) libmagic=never-match;;
6611 esac
6612 lt_cv_deplibs_check_method=pass_all
6613 ;;
6614
6615 # This must be Linux ELF.
6616 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6617 lt_cv_deplibs_check_method=pass_all
6618 ;;
6619
6620 netbsd*)
6621 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6622 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6623 else
6624 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6625 fi
6626 ;;
6627
6628 newos6*)
6629 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6630 lt_cv_file_magic_cmd=/usr/bin/file
6631 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6632 ;;
6633
6634 *nto* | *qnx*)
6635 lt_cv_deplibs_check_method=pass_all
6636 ;;
6637
6638 openbsd*)
6639 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6640 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6641 else
6642 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6643 fi
6644 ;;
6645
6646 osf3* | osf4* | osf5*)
6647 lt_cv_deplibs_check_method=pass_all
6648 ;;
6649
6650 rdos*)
6651 lt_cv_deplibs_check_method=pass_all
6652 ;;
6653
6654 solaris*)
6655 lt_cv_deplibs_check_method=pass_all
6656 ;;
6657
6658 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6659 lt_cv_deplibs_check_method=pass_all
6660 ;;
6661
6662 sysv4 | sysv4.3*)
6663 case $host_vendor in
6664 motorola)
6665 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]'
6666 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6667 ;;
6668 ncr)
6669 lt_cv_deplibs_check_method=pass_all
6670 ;;
6671 sequent)
6672 lt_cv_file_magic_cmd='/bin/file'
6673 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6674 ;;
6675 sni)
6676 lt_cv_file_magic_cmd='/bin/file'
6677 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6678 lt_cv_file_magic_test_file=/lib/libc.so
6679 ;;
6680 siemens)
6681 lt_cv_deplibs_check_method=pass_all
6682 ;;
6683 pc)
6684 lt_cv_deplibs_check_method=pass_all
6685 ;;
6686 esac
6687 ;;
6688
6689 tpf*)
6690 lt_cv_deplibs_check_method=pass_all
6691 ;;
6692 esac
6693
6694 fi
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6696 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6697 file_magic_cmd=$lt_cv_file_magic_cmd
6698 deplibs_check_method=$lt_cv_deplibs_check_method
6699 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712 if test -n "$ac_tool_prefix"; then
6713 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6714 set dummy ${ac_tool_prefix}ar; ac_word=$2
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6716 $as_echo_n "checking for $ac_word... " >&6; }
6717 if ${ac_cv_prog_AR+:} false; then :
6718 $as_echo_n "(cached) " >&6
6719 else
6720 if test -n "$AR"; then
6721 ac_cv_prog_AR="$AR" # Let the user override the test.
6722 else
6723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6724 for as_dir in $PATH
6725 do
6726 IFS=$as_save_IFS
6727 test -z "$as_dir" && as_dir=.
6728 for ac_exec_ext in '' $ac_executable_extensions; do
6729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6730 ac_cv_prog_AR="${ac_tool_prefix}ar"
6731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6732 break 2
6733 fi
6734 done
6735 done
6736 IFS=$as_save_IFS
6737
6738 fi
6739 fi
6740 AR=$ac_cv_prog_AR
6741 if test -n "$AR"; then
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6743 $as_echo "$AR" >&6; }
6744 else
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6746 $as_echo "no" >&6; }
6747 fi
6748
6749
6750 fi
6751 if test -z "$ac_cv_prog_AR"; then
6752 ac_ct_AR=$AR
6753 # Extract the first word of "ar", so it can be a program name with args.
6754 set dummy ar; ac_word=$2
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6756 $as_echo_n "checking for $ac_word... " >&6; }
6757 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6758 $as_echo_n "(cached) " >&6
6759 else
6760 if test -n "$ac_ct_AR"; then
6761 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6762 else
6763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6764 for as_dir in $PATH
6765 do
6766 IFS=$as_save_IFS
6767 test -z "$as_dir" && as_dir=.
6768 for ac_exec_ext in '' $ac_executable_extensions; do
6769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6770 ac_cv_prog_ac_ct_AR="ar"
6771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6772 break 2
6773 fi
6774 done
6775 done
6776 IFS=$as_save_IFS
6777
6778 fi
6779 fi
6780 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6781 if test -n "$ac_ct_AR"; then
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6783 $as_echo "$ac_ct_AR" >&6; }
6784 else
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6786 $as_echo "no" >&6; }
6787 fi
6788
6789 if test "x$ac_ct_AR" = x; then
6790 AR="false"
6791 else
6792 case $cross_compiling:$ac_tool_warned in
6793 yes:)
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6796 ac_tool_warned=yes ;;
6797 esac
6798 AR=$ac_ct_AR
6799 fi
6800 else
6801 AR="$ac_cv_prog_AR"
6802 fi
6803
6804 test -z "$AR" && AR=ar
6805 test -z "$AR_FLAGS" && AR_FLAGS=cru
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817 if test -n "$ac_tool_prefix"; then
6818 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6819 set dummy ${ac_tool_prefix}strip; ac_word=$2
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6821 $as_echo_n "checking for $ac_word... " >&6; }
6822 if ${ac_cv_prog_STRIP+:} false; then :
6823 $as_echo_n "(cached) " >&6
6824 else
6825 if test -n "$STRIP"; then
6826 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6827 else
6828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6829 for as_dir in $PATH
6830 do
6831 IFS=$as_save_IFS
6832 test -z "$as_dir" && as_dir=.
6833 for ac_exec_ext in '' $ac_executable_extensions; do
6834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6835 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6837 break 2
6838 fi
6839 done
6840 done
6841 IFS=$as_save_IFS
6842
6843 fi
6844 fi
6845 STRIP=$ac_cv_prog_STRIP
6846 if test -n "$STRIP"; then
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6848 $as_echo "$STRIP" >&6; }
6849 else
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6851 $as_echo "no" >&6; }
6852 fi
6853
6854
6855 fi
6856 if test -z "$ac_cv_prog_STRIP"; then
6857 ac_ct_STRIP=$STRIP
6858 # Extract the first word of "strip", so it can be a program name with args.
6859 set dummy strip; ac_word=$2
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6861 $as_echo_n "checking for $ac_word... " >&6; }
6862 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6863 $as_echo_n "(cached) " >&6
6864 else
6865 if test -n "$ac_ct_STRIP"; then
6866 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6867 else
6868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6869 for as_dir in $PATH
6870 do
6871 IFS=$as_save_IFS
6872 test -z "$as_dir" && as_dir=.
6873 for ac_exec_ext in '' $ac_executable_extensions; do
6874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6875 ac_cv_prog_ac_ct_STRIP="strip"
6876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6877 break 2
6878 fi
6879 done
6880 done
6881 IFS=$as_save_IFS
6882
6883 fi
6884 fi
6885 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6886 if test -n "$ac_ct_STRIP"; then
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6888 $as_echo "$ac_ct_STRIP" >&6; }
6889 else
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6891 $as_echo "no" >&6; }
6892 fi
6893
6894 if test "x$ac_ct_STRIP" = x; then
6895 STRIP=":"
6896 else
6897 case $cross_compiling:$ac_tool_warned in
6898 yes:)
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6901 ac_tool_warned=yes ;;
6902 esac
6903 STRIP=$ac_ct_STRIP
6904 fi
6905 else
6906 STRIP="$ac_cv_prog_STRIP"
6907 fi
6908
6909 test -z "$STRIP" && STRIP=:
6910
6911
6912
6913
6914
6915
6916 if test -n "$ac_tool_prefix"; then
6917 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6918 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6920 $as_echo_n "checking for $ac_word... " >&6; }
6921 if ${ac_cv_prog_RANLIB+:} false; then :
6922 $as_echo_n "(cached) " >&6
6923 else
6924 if test -n "$RANLIB"; then
6925 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6926 else
6927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6928 for as_dir in $PATH
6929 do
6930 IFS=$as_save_IFS
6931 test -z "$as_dir" && as_dir=.
6932 for ac_exec_ext in '' $ac_executable_extensions; do
6933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6934 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6936 break 2
6937 fi
6938 done
6939 done
6940 IFS=$as_save_IFS
6941
6942 fi
6943 fi
6944 RANLIB=$ac_cv_prog_RANLIB
6945 if test -n "$RANLIB"; then
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6947 $as_echo "$RANLIB" >&6; }
6948 else
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6950 $as_echo "no" >&6; }
6951 fi
6952
6953
6954 fi
6955 if test -z "$ac_cv_prog_RANLIB"; then
6956 ac_ct_RANLIB=$RANLIB
6957 # Extract the first word of "ranlib", so it can be a program name with args.
6958 set dummy ranlib; ac_word=$2
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6960 $as_echo_n "checking for $ac_word... " >&6; }
6961 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6962 $as_echo_n "(cached) " >&6
6963 else
6964 if test -n "$ac_ct_RANLIB"; then
6965 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6966 else
6967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6968 for as_dir in $PATH
6969 do
6970 IFS=$as_save_IFS
6971 test -z "$as_dir" && as_dir=.
6972 for ac_exec_ext in '' $ac_executable_extensions; do
6973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6974 ac_cv_prog_ac_ct_RANLIB="ranlib"
6975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6976 break 2
6977 fi
6978 done
6979 done
6980 IFS=$as_save_IFS
6981
6982 fi
6983 fi
6984 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6985 if test -n "$ac_ct_RANLIB"; then
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6987 $as_echo "$ac_ct_RANLIB" >&6; }
6988 else
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6990 $as_echo "no" >&6; }
6991 fi
6992
6993 if test "x$ac_ct_RANLIB" = x; then
6994 RANLIB=":"
6995 else
6996 case $cross_compiling:$ac_tool_warned in
6997 yes:)
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6999 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7000 ac_tool_warned=yes ;;
7001 esac
7002 RANLIB=$ac_ct_RANLIB
7003 fi
7004 else
7005 RANLIB="$ac_cv_prog_RANLIB"
7006 fi
7007
7008 test -z "$RANLIB" && RANLIB=:
7009
7010
7011
7012
7013
7014
7015 # Determine commands to create old-style static archives.
7016 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7017 old_postinstall_cmds='chmod 644 $oldlib'
7018 old_postuninstall_cmds=
7019
7020 if test -n "$RANLIB"; then
7021 case $host_os in
7022 openbsd*)
7023 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7024 ;;
7025 *)
7026 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7027 ;;
7028 esac
7029 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7030 fi
7031
7032 case $host_os in
7033 darwin*)
7034 lock_old_archive_extraction=yes ;;
7035 *)
7036 lock_old_archive_extraction=no ;;
7037 esac
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077 # If no C compiler was specified, use CC.
7078 LTCC=${LTCC-"$CC"}
7079
7080 # If no C compiler flags were specified, use CFLAGS.
7081 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7082
7083 # Allow CC to be a program name with arguments.
7084 compiler=$CC
7085
7086
7087 # Check for command to grab the raw symbol name followed by C symbol from nm.
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7089 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7090 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7091 $as_echo_n "(cached) " >&6
7092 else
7093
7094 # These are sane defaults that work on at least a few old systems.
7095 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7096
7097 # Character class describing NM global symbol codes.
7098 symcode='[BCDEGRST]'
7099
7100 # Regexp to match symbols that can be accessed directly from C.
7101 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7102
7103 # Define system-specific variables.
7104 case $host_os in
7105 aix*)
7106 symcode='[BCDT]'
7107 ;;
7108 cygwin* | mingw* | pw32* | cegcc*)
7109 symcode='[ABCDGISTW]'
7110 ;;
7111 hpux*)
7112 if test "$host_cpu" = ia64; then
7113 symcode='[ABCDEGRST]'
7114 fi
7115 ;;
7116 irix* | nonstopux*)
7117 symcode='[BCDEGRST]'
7118 ;;
7119 osf*)
7120 symcode='[BCDEGQRST]'
7121 ;;
7122 solaris*)
7123 symcode='[BDRT]'
7124 ;;
7125 sco3.2v5*)
7126 symcode='[DT]'
7127 ;;
7128 sysv4.2uw2*)
7129 symcode='[DT]'
7130 ;;
7131 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7132 symcode='[ABDT]'
7133 ;;
7134 sysv4)
7135 symcode='[DFNSTU]'
7136 ;;
7137 esac
7138
7139 # If we're using GNU nm, then use its standard symbol codes.
7140 case `$NM -V 2>&1` in
7141 *GNU* | *'with BFD'*)
7142 symcode='[ABCDGIRSTW]' ;;
7143 esac
7144
7145 # Transform an extracted symbol line into a proper C declaration.
7146 # Some systems (esp. on ia64) link data and code symbols differently,
7147 # so use this general approach.
7148 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7149
7150 # Transform an extracted symbol line into symbol name and symbol address
7151 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7152 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'"
7153
7154 # Handle CRLF in mingw tool chain
7155 opt_cr=
7156 case $build_os in
7157 mingw*)
7158 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7159 ;;
7160 esac
7161
7162 # Try without a prefix underscore, then with it.
7163 for ac_symprfx in "" "_"; do
7164
7165 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7166 symxfrm="\\1 $ac_symprfx\\2 \\2"
7167
7168 # Write the raw and C identifiers.
7169 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7170 # Fake it for dumpbin and say T for any non-static function
7171 # and D for any global variable.
7172 # Also find C++ and __fastcall symbols from MSVC++,
7173 # which start with @ or ?.
7174 lt_cv_sys_global_symbol_pipe="$AWK '"\
7175 " {last_section=section; section=\$ 3};"\
7176 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7177 " \$ 0!~/External *\|/{next};"\
7178 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7179 " {if(hide[section]) next};"\
7180 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7181 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7182 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7183 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7184 " ' prfx=^$ac_symprfx"
7185 else
7186 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7187 fi
7188
7189 # Check to see that the pipe works correctly.
7190 pipe_works=no
7191
7192 rm -f conftest*
7193 cat > conftest.$ac_ext <<_LT_EOF
7194 #ifdef __cplusplus
7195 extern "C" {
7196 #endif
7197 char nm_test_var;
7198 void nm_test_func(void);
7199 void nm_test_func(void){}
7200 #ifdef __cplusplus
7201 }
7202 #endif
7203 int main(){nm_test_var='a';nm_test_func();return(0);}
7204 _LT_EOF
7205
7206 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7207 (eval $ac_compile) 2>&5
7208 ac_status=$?
7209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7210 test $ac_status = 0; }; then
7211 # Now try to grab the symbols.
7212 nlist=conftest.nm
7213 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7214 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7215 ac_status=$?
7216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7217 test $ac_status = 0; } && test -s "$nlist"; then
7218 # Try sorting and uniquifying the output.
7219 if sort "$nlist" | uniq > "$nlist"T; then
7220 mv -f "$nlist"T "$nlist"
7221 else
7222 rm -f "$nlist"T
7223 fi
7224
7225 # Make sure that we snagged all the symbols we need.
7226 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7227 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7228 cat <<_LT_EOF > conftest.$ac_ext
7229 #ifdef __cplusplus
7230 extern "C" {
7231 #endif
7232
7233 _LT_EOF
7234 # Now generate the symbol file.
7235 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7236
7237 cat <<_LT_EOF >> conftest.$ac_ext
7238
7239 /* The mapping between symbol names and symbols. */
7240 const struct {
7241 const char *name;
7242 void *address;
7243 }
7244 lt__PROGRAM__LTX_preloaded_symbols[] =
7245 {
7246 { "@PROGRAM@", (void *) 0 },
7247 _LT_EOF
7248 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7249 cat <<\_LT_EOF >> conftest.$ac_ext
7250 {0, (void *) 0}
7251 };
7252
7253 /* This works around a problem in FreeBSD linker */
7254 #ifdef FREEBSD_WORKAROUND
7255 static const void *lt_preloaded_setup() {
7256 return lt__PROGRAM__LTX_preloaded_symbols;
7257 }
7258 #endif
7259
7260 #ifdef __cplusplus
7261 }
7262 #endif
7263 _LT_EOF
7264 # Now try linking the two files.
7265 mv conftest.$ac_objext conftstm.$ac_objext
7266 lt_save_LIBS="$LIBS"
7267 lt_save_CFLAGS="$CFLAGS"
7268 LIBS="conftstm.$ac_objext"
7269 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7270 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7271 (eval $ac_link) 2>&5
7272 ac_status=$?
7273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7274 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7275 pipe_works=yes
7276 fi
7277 LIBS="$lt_save_LIBS"
7278 CFLAGS="$lt_save_CFLAGS"
7279 else
7280 echo "cannot find nm_test_func in $nlist" >&5
7281 fi
7282 else
7283 echo "cannot find nm_test_var in $nlist" >&5
7284 fi
7285 else
7286 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7287 fi
7288 else
7289 echo "$progname: failed program was:" >&5
7290 cat conftest.$ac_ext >&5
7291 fi
7292 rm -rf conftest* conftst*
7293
7294 # Do not use the global_symbol_pipe unless it works.
7295 if test "$pipe_works" = yes; then
7296 break
7297 else
7298 lt_cv_sys_global_symbol_pipe=
7299 fi
7300 done
7301
7302 fi
7303
7304 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7305 lt_cv_sys_global_symbol_to_cdecl=
7306 fi
7307 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7309 $as_echo "failed" >&6; }
7310 else
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7312 $as_echo "ok" >&6; }
7313 fi
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336 # Check whether --enable-libtool-lock was given.
7337 if test "${enable_libtool_lock+set}" = set; then :
7338 enableval=$enable_libtool_lock;
7339 fi
7340
7341 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7342
7343 # Some flags need to be propagated to the compiler or linker for good
7344 # libtool support.
7345 case $host in
7346 ia64-*-hpux*)
7347 # Find out which ABI we are using.
7348 echo 'int i;' > conftest.$ac_ext
7349 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7350 (eval $ac_compile) 2>&5
7351 ac_status=$?
7352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7353 test $ac_status = 0; }; then
7354 case `/usr/bin/file conftest.$ac_objext` in
7355 *ELF-32*)
7356 HPUX_IA64_MODE="32"
7357 ;;
7358 *ELF-64*)
7359 HPUX_IA64_MODE="64"
7360 ;;
7361 esac
7362 fi
7363 rm -rf conftest*
7364 ;;
7365 *-*-irix6*)
7366 # Find out which ABI we are using.
7367 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7368 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7369 (eval $ac_compile) 2>&5
7370 ac_status=$?
7371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7372 test $ac_status = 0; }; then
7373 if test "$lt_cv_prog_gnu_ld" = yes; then
7374 case `/usr/bin/file conftest.$ac_objext` in
7375 *32-bit*)
7376 LD="${LD-ld} -melf32bsmip"
7377 ;;
7378 *N32*)
7379 LD="${LD-ld} -melf32bmipn32"
7380 ;;
7381 *64-bit*)
7382 LD="${LD-ld} -melf64bmip"
7383 ;;
7384 esac
7385 else
7386 case `/usr/bin/file conftest.$ac_objext` in
7387 *32-bit*)
7388 LD="${LD-ld} -32"
7389 ;;
7390 *N32*)
7391 LD="${LD-ld} -n32"
7392 ;;
7393 *64-bit*)
7394 LD="${LD-ld} -64"
7395 ;;
7396 esac
7397 fi
7398 fi
7399 rm -rf conftest*
7400 ;;
7401
7402 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7403 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7404 # Find out which ABI we are using.
7405 echo 'int i;' > conftest.$ac_ext
7406 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7407 (eval $ac_compile) 2>&5
7408 ac_status=$?
7409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7410 test $ac_status = 0; }; then
7411 case `/usr/bin/file conftest.o` in
7412 *32-bit*)
7413 case $host in
7414 x86_64-*kfreebsd*-gnu)
7415 LD="${LD-ld} -m elf_i386_fbsd"
7416 ;;
7417 x86_64-*linux*)
7418 case `/usr/bin/file conftest.o` in
7419 *x86-64*)
7420 LD="${LD-ld} -m elf32_x86_64"
7421 ;;
7422 *)
7423 LD="${LD-ld} -m elf_i386"
7424 ;;
7425 esac
7426 ;;
7427 powerpc64le-*linux*)
7428 LD="${LD-ld} -m elf32lppclinux"
7429 ;;
7430 powerpc64-*linux*)
7431 LD="${LD-ld} -m elf32ppclinux"
7432 ;;
7433 s390x-*linux*)
7434 LD="${LD-ld} -m elf_s390"
7435 ;;
7436 sparc64-*linux*)
7437 LD="${LD-ld} -m elf32_sparc"
7438 ;;
7439 esac
7440 ;;
7441 *64-bit*)
7442 case $host in
7443 x86_64-*kfreebsd*-gnu)
7444 LD="${LD-ld} -m elf_x86_64_fbsd"
7445 ;;
7446 x86_64-*linux*)
7447 LD="${LD-ld} -m elf_x86_64"
7448 ;;
7449 powerpcle-*linux*)
7450 LD="${LD-ld} -m elf64lppc"
7451 ;;
7452 powerpc-*linux*)
7453 LD="${LD-ld} -m elf64ppc"
7454 ;;
7455 s390*-*linux*|s390*-*tpf*)
7456 LD="${LD-ld} -m elf64_s390"
7457 ;;
7458 sparc*-*linux*)
7459 LD="${LD-ld} -m elf64_sparc"
7460 ;;
7461 esac
7462 ;;
7463 esac
7464 fi
7465 rm -rf conftest*
7466 ;;
7467
7468 *-*-sco3.2v5*)
7469 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7470 SAVE_CFLAGS="$CFLAGS"
7471 CFLAGS="$CFLAGS -belf"
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7473 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7474 if ${lt_cv_cc_needs_belf+:} false; then :
7475 $as_echo_n "(cached) " >&6
7476 else
7477 ac_ext=c
7478 ac_cpp='$CPP $CPPFLAGS'
7479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7482
7483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7484 /* end confdefs.h. */
7485
7486 int
7487 main ()
7488 {
7489
7490 ;
7491 return 0;
7492 }
7493 _ACEOF
7494 if ac_fn_c_try_link "$LINENO"; then :
7495 lt_cv_cc_needs_belf=yes
7496 else
7497 lt_cv_cc_needs_belf=no
7498 fi
7499 rm -f core conftest.err conftest.$ac_objext \
7500 conftest$ac_exeext conftest.$ac_ext
7501 ac_ext=c
7502 ac_cpp='$CPP $CPPFLAGS'
7503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7506
7507 fi
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7509 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7510 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7511 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7512 CFLAGS="$SAVE_CFLAGS"
7513 fi
7514 ;;
7515 sparc*-*solaris*)
7516 # Find out which ABI we are using.
7517 echo 'int i;' > conftest.$ac_ext
7518 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7519 (eval $ac_compile) 2>&5
7520 ac_status=$?
7521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7522 test $ac_status = 0; }; then
7523 case `/usr/bin/file conftest.o` in
7524 *64-bit*)
7525 case $lt_cv_prog_gnu_ld in
7526 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7527 *)
7528 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7529 LD="${LD-ld} -64"
7530 fi
7531 ;;
7532 esac
7533 ;;
7534 esac
7535 fi
7536 rm -rf conftest*
7537 ;;
7538 esac
7539
7540 need_locks="$enable_libtool_lock"
7541
7542
7543 case $host_os in
7544 rhapsody* | darwin*)
7545 if test -n "$ac_tool_prefix"; then
7546 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7547 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7549 $as_echo_n "checking for $ac_word... " >&6; }
7550 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7551 $as_echo_n "(cached) " >&6
7552 else
7553 if test -n "$DSYMUTIL"; then
7554 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7555 else
7556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557 for as_dir in $PATH
7558 do
7559 IFS=$as_save_IFS
7560 test -z "$as_dir" && as_dir=.
7561 for ac_exec_ext in '' $ac_executable_extensions; do
7562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7563 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7565 break 2
7566 fi
7567 done
7568 done
7569 IFS=$as_save_IFS
7570
7571 fi
7572 fi
7573 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7574 if test -n "$DSYMUTIL"; then
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7576 $as_echo "$DSYMUTIL" >&6; }
7577 else
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7579 $as_echo "no" >&6; }
7580 fi
7581
7582
7583 fi
7584 if test -z "$ac_cv_prog_DSYMUTIL"; then
7585 ac_ct_DSYMUTIL=$DSYMUTIL
7586 # Extract the first word of "dsymutil", so it can be a program name with args.
7587 set dummy dsymutil; ac_word=$2
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7589 $as_echo_n "checking for $ac_word... " >&6; }
7590 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7591 $as_echo_n "(cached) " >&6
7592 else
7593 if test -n "$ac_ct_DSYMUTIL"; then
7594 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7595 else
7596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597 for as_dir in $PATH
7598 do
7599 IFS=$as_save_IFS
7600 test -z "$as_dir" && as_dir=.
7601 for ac_exec_ext in '' $ac_executable_extensions; do
7602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7603 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7605 break 2
7606 fi
7607 done
7608 done
7609 IFS=$as_save_IFS
7610
7611 fi
7612 fi
7613 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7614 if test -n "$ac_ct_DSYMUTIL"; then
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7616 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7617 else
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7619 $as_echo "no" >&6; }
7620 fi
7621
7622 if test "x$ac_ct_DSYMUTIL" = x; then
7623 DSYMUTIL=":"
7624 else
7625 case $cross_compiling:$ac_tool_warned in
7626 yes:)
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7628 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7629 ac_tool_warned=yes ;;
7630 esac
7631 DSYMUTIL=$ac_ct_DSYMUTIL
7632 fi
7633 else
7634 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7635 fi
7636
7637 if test -n "$ac_tool_prefix"; then
7638 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7639 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7641 $as_echo_n "checking for $ac_word... " >&6; }
7642 if ${ac_cv_prog_NMEDIT+:} false; then :
7643 $as_echo_n "(cached) " >&6
7644 else
7645 if test -n "$NMEDIT"; then
7646 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7647 else
7648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7649 for as_dir in $PATH
7650 do
7651 IFS=$as_save_IFS
7652 test -z "$as_dir" && as_dir=.
7653 for ac_exec_ext in '' $ac_executable_extensions; do
7654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7655 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7657 break 2
7658 fi
7659 done
7660 done
7661 IFS=$as_save_IFS
7662
7663 fi
7664 fi
7665 NMEDIT=$ac_cv_prog_NMEDIT
7666 if test -n "$NMEDIT"; then
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7668 $as_echo "$NMEDIT" >&6; }
7669 else
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7671 $as_echo "no" >&6; }
7672 fi
7673
7674
7675 fi
7676 if test -z "$ac_cv_prog_NMEDIT"; then
7677 ac_ct_NMEDIT=$NMEDIT
7678 # Extract the first word of "nmedit", so it can be a program name with args.
7679 set dummy nmedit; ac_word=$2
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7681 $as_echo_n "checking for $ac_word... " >&6; }
7682 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7683 $as_echo_n "(cached) " >&6
7684 else
7685 if test -n "$ac_ct_NMEDIT"; then
7686 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7687 else
7688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7689 for as_dir in $PATH
7690 do
7691 IFS=$as_save_IFS
7692 test -z "$as_dir" && as_dir=.
7693 for ac_exec_ext in '' $ac_executable_extensions; do
7694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7695 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7697 break 2
7698 fi
7699 done
7700 done
7701 IFS=$as_save_IFS
7702
7703 fi
7704 fi
7705 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7706 if test -n "$ac_ct_NMEDIT"; then
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7708 $as_echo "$ac_ct_NMEDIT" >&6; }
7709 else
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7711 $as_echo "no" >&6; }
7712 fi
7713
7714 if test "x$ac_ct_NMEDIT" = x; then
7715 NMEDIT=":"
7716 else
7717 case $cross_compiling:$ac_tool_warned in
7718 yes:)
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7720 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7721 ac_tool_warned=yes ;;
7722 esac
7723 NMEDIT=$ac_ct_NMEDIT
7724 fi
7725 else
7726 NMEDIT="$ac_cv_prog_NMEDIT"
7727 fi
7728
7729 if test -n "$ac_tool_prefix"; then
7730 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7731 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7733 $as_echo_n "checking for $ac_word... " >&6; }
7734 if ${ac_cv_prog_LIPO+:} false; then :
7735 $as_echo_n "(cached) " >&6
7736 else
7737 if test -n "$LIPO"; then
7738 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7739 else
7740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741 for as_dir in $PATH
7742 do
7743 IFS=$as_save_IFS
7744 test -z "$as_dir" && as_dir=.
7745 for ac_exec_ext in '' $ac_executable_extensions; do
7746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7747 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7749 break 2
7750 fi
7751 done
7752 done
7753 IFS=$as_save_IFS
7754
7755 fi
7756 fi
7757 LIPO=$ac_cv_prog_LIPO
7758 if test -n "$LIPO"; then
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7760 $as_echo "$LIPO" >&6; }
7761 else
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7763 $as_echo "no" >&6; }
7764 fi
7765
7766
7767 fi
7768 if test -z "$ac_cv_prog_LIPO"; then
7769 ac_ct_LIPO=$LIPO
7770 # Extract the first word of "lipo", so it can be a program name with args.
7771 set dummy lipo; ac_word=$2
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7773 $as_echo_n "checking for $ac_word... " >&6; }
7774 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7775 $as_echo_n "(cached) " >&6
7776 else
7777 if test -n "$ac_ct_LIPO"; then
7778 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7779 else
7780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7781 for as_dir in $PATH
7782 do
7783 IFS=$as_save_IFS
7784 test -z "$as_dir" && as_dir=.
7785 for ac_exec_ext in '' $ac_executable_extensions; do
7786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7787 ac_cv_prog_ac_ct_LIPO="lipo"
7788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7789 break 2
7790 fi
7791 done
7792 done
7793 IFS=$as_save_IFS
7794
7795 fi
7796 fi
7797 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7798 if test -n "$ac_ct_LIPO"; then
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7800 $as_echo "$ac_ct_LIPO" >&6; }
7801 else
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7803 $as_echo "no" >&6; }
7804 fi
7805
7806 if test "x$ac_ct_LIPO" = x; then
7807 LIPO=":"
7808 else
7809 case $cross_compiling:$ac_tool_warned in
7810 yes:)
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7812 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7813 ac_tool_warned=yes ;;
7814 esac
7815 LIPO=$ac_ct_LIPO
7816 fi
7817 else
7818 LIPO="$ac_cv_prog_LIPO"
7819 fi
7820
7821 if test -n "$ac_tool_prefix"; then
7822 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7823 set dummy ${ac_tool_prefix}otool; ac_word=$2
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7825 $as_echo_n "checking for $ac_word... " >&6; }
7826 if ${ac_cv_prog_OTOOL+:} false; then :
7827 $as_echo_n "(cached) " >&6
7828 else
7829 if test -n "$OTOOL"; then
7830 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7831 else
7832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7833 for as_dir in $PATH
7834 do
7835 IFS=$as_save_IFS
7836 test -z "$as_dir" && as_dir=.
7837 for ac_exec_ext in '' $ac_executable_extensions; do
7838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7839 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7841 break 2
7842 fi
7843 done
7844 done
7845 IFS=$as_save_IFS
7846
7847 fi
7848 fi
7849 OTOOL=$ac_cv_prog_OTOOL
7850 if test -n "$OTOOL"; then
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7852 $as_echo "$OTOOL" >&6; }
7853 else
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7855 $as_echo "no" >&6; }
7856 fi
7857
7858
7859 fi
7860 if test -z "$ac_cv_prog_OTOOL"; then
7861 ac_ct_OTOOL=$OTOOL
7862 # Extract the first word of "otool", so it can be a program name with args.
7863 set dummy otool; ac_word=$2
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7865 $as_echo_n "checking for $ac_word... " >&6; }
7866 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7867 $as_echo_n "(cached) " >&6
7868 else
7869 if test -n "$ac_ct_OTOOL"; then
7870 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7871 else
7872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7873 for as_dir in $PATH
7874 do
7875 IFS=$as_save_IFS
7876 test -z "$as_dir" && as_dir=.
7877 for ac_exec_ext in '' $ac_executable_extensions; do
7878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7879 ac_cv_prog_ac_ct_OTOOL="otool"
7880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7881 break 2
7882 fi
7883 done
7884 done
7885 IFS=$as_save_IFS
7886
7887 fi
7888 fi
7889 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7890 if test -n "$ac_ct_OTOOL"; then
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7892 $as_echo "$ac_ct_OTOOL" >&6; }
7893 else
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7895 $as_echo "no" >&6; }
7896 fi
7897
7898 if test "x$ac_ct_OTOOL" = x; then
7899 OTOOL=":"
7900 else
7901 case $cross_compiling:$ac_tool_warned in
7902 yes:)
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7905 ac_tool_warned=yes ;;
7906 esac
7907 OTOOL=$ac_ct_OTOOL
7908 fi
7909 else
7910 OTOOL="$ac_cv_prog_OTOOL"
7911 fi
7912
7913 if test -n "$ac_tool_prefix"; then
7914 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7915 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7917 $as_echo_n "checking for $ac_word... " >&6; }
7918 if ${ac_cv_prog_OTOOL64+:} false; then :
7919 $as_echo_n "(cached) " >&6
7920 else
7921 if test -n "$OTOOL64"; then
7922 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7923 else
7924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7925 for as_dir in $PATH
7926 do
7927 IFS=$as_save_IFS
7928 test -z "$as_dir" && as_dir=.
7929 for ac_exec_ext in '' $ac_executable_extensions; do
7930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7931 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7933 break 2
7934 fi
7935 done
7936 done
7937 IFS=$as_save_IFS
7938
7939 fi
7940 fi
7941 OTOOL64=$ac_cv_prog_OTOOL64
7942 if test -n "$OTOOL64"; then
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7944 $as_echo "$OTOOL64" >&6; }
7945 else
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7947 $as_echo "no" >&6; }
7948 fi
7949
7950
7951 fi
7952 if test -z "$ac_cv_prog_OTOOL64"; then
7953 ac_ct_OTOOL64=$OTOOL64
7954 # Extract the first word of "otool64", so it can be a program name with args.
7955 set dummy otool64; ac_word=$2
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7957 $as_echo_n "checking for $ac_word... " >&6; }
7958 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7959 $as_echo_n "(cached) " >&6
7960 else
7961 if test -n "$ac_ct_OTOOL64"; then
7962 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7963 else
7964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7965 for as_dir in $PATH
7966 do
7967 IFS=$as_save_IFS
7968 test -z "$as_dir" && as_dir=.
7969 for ac_exec_ext in '' $ac_executable_extensions; do
7970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7971 ac_cv_prog_ac_ct_OTOOL64="otool64"
7972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7973 break 2
7974 fi
7975 done
7976 done
7977 IFS=$as_save_IFS
7978
7979 fi
7980 fi
7981 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7982 if test -n "$ac_ct_OTOOL64"; then
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7984 $as_echo "$ac_ct_OTOOL64" >&6; }
7985 else
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7987 $as_echo "no" >&6; }
7988 fi
7989
7990 if test "x$ac_ct_OTOOL64" = x; then
7991 OTOOL64=":"
7992 else
7993 case $cross_compiling:$ac_tool_warned in
7994 yes:)
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7996 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7997 ac_tool_warned=yes ;;
7998 esac
7999 OTOOL64=$ac_ct_OTOOL64
8000 fi
8001 else
8002 OTOOL64="$ac_cv_prog_OTOOL64"
8003 fi
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8032 $as_echo_n "checking for -single_module linker flag... " >&6; }
8033 if ${lt_cv_apple_cc_single_mod+:} false; then :
8034 $as_echo_n "(cached) " >&6
8035 else
8036 lt_cv_apple_cc_single_mod=no
8037 if test -z "${LT_MULTI_MODULE}"; then
8038 # By default we will add the -single_module flag. You can override
8039 # by either setting the environment variable LT_MULTI_MODULE
8040 # non-empty at configure time, or by adding -multi_module to the
8041 # link flags.
8042 rm -rf libconftest.dylib*
8043 echo "int foo(void){return 1;}" > conftest.c
8044 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8045 -dynamiclib -Wl,-single_module conftest.c" >&5
8046 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8047 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8048 _lt_result=$?
8049 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8050 lt_cv_apple_cc_single_mod=yes
8051 else
8052 cat conftest.err >&5
8053 fi
8054 rm -rf libconftest.dylib*
8055 rm -f conftest.*
8056 fi
8057 fi
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8059 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8061 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8062 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8063 $as_echo_n "(cached) " >&6
8064 else
8065 lt_cv_ld_exported_symbols_list=no
8066 save_LDFLAGS=$LDFLAGS
8067 echo "_main" > conftest.sym
8068 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8070 /* end confdefs.h. */
8071
8072 int
8073 main ()
8074 {
8075
8076 ;
8077 return 0;
8078 }
8079 _ACEOF
8080 if ac_fn_c_try_link "$LINENO"; then :
8081 lt_cv_ld_exported_symbols_list=yes
8082 else
8083 lt_cv_ld_exported_symbols_list=no
8084 fi
8085 rm -f core conftest.err conftest.$ac_objext \
8086 conftest$ac_exeext conftest.$ac_ext
8087 LDFLAGS="$save_LDFLAGS"
8088
8089 fi
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8091 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8093 $as_echo_n "checking for -force_load linker flag... " >&6; }
8094 if ${lt_cv_ld_force_load+:} false; then :
8095 $as_echo_n "(cached) " >&6
8096 else
8097 lt_cv_ld_force_load=no
8098 cat > conftest.c << _LT_EOF
8099 int forced_loaded() { return 2;}
8100 _LT_EOF
8101 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8102 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8103 echo "$AR cru libconftest.a conftest.o" >&5
8104 $AR cru libconftest.a conftest.o 2>&5
8105 cat > conftest.c << _LT_EOF
8106 int main() { return 0;}
8107 _LT_EOF
8108 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8109 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8110 _lt_result=$?
8111 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8112 lt_cv_ld_force_load=yes
8113 else
8114 cat conftest.err >&5
8115 fi
8116 rm -f conftest.err libconftest.a conftest conftest.c
8117 rm -rf conftest.dSYM
8118
8119 fi
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8121 $as_echo "$lt_cv_ld_force_load" >&6; }
8122 case $host_os in
8123 rhapsody* | darwin1.[012])
8124 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8125 darwin1.*)
8126 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8127 darwin*) # darwin 5.x on
8128 # if running on 10.5 or later, the deployment target defaults
8129 # to the OS version, if on x86, and 10.4, the deployment
8130 # target defaults to 10.4. Don't you love it?
8131 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8132 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8133 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8134 10.[012][,.]*)
8135 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8136 10.*)
8137 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8138 esac
8139 ;;
8140 esac
8141 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8142 _lt_dar_single_mod='$single_module'
8143 fi
8144 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8145 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8146 else
8147 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8148 fi
8149 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8150 _lt_dsymutil='~$DSYMUTIL $lib || :'
8151 else
8152 _lt_dsymutil=
8153 fi
8154 ;;
8155 esac
8156
8157 for ac_header in dlfcn.h
8158 do :
8159 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8160 "
8161 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8162 cat >>confdefs.h <<_ACEOF
8163 #define HAVE_DLFCN_H 1
8164 _ACEOF
8165
8166 fi
8167
8168 done
8169
8170
8171
8172
8173
8174 # Set options
8175 enable_dlopen=yes
8176
8177
8178
8179
8180 enable_win32_dll=no
8181
8182
8183 # Check whether --enable-shared was given.
8184 if test "${enable_shared+set}" = set; then :
8185 enableval=$enable_shared; p=${PACKAGE-default}
8186 case $enableval in
8187 yes) enable_shared=yes ;;
8188 no) enable_shared=no ;;
8189 *)
8190 enable_shared=no
8191 # Look at the argument we got. We use all the common list separators.
8192 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8193 for pkg in $enableval; do
8194 IFS="$lt_save_ifs"
8195 if test "X$pkg" = "X$p"; then
8196 enable_shared=yes
8197 fi
8198 done
8199 IFS="$lt_save_ifs"
8200 ;;
8201 esac
8202 else
8203 enable_shared=yes
8204 fi
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214 # Check whether --enable-static was given.
8215 if test "${enable_static+set}" = set; then :
8216 enableval=$enable_static; p=${PACKAGE-default}
8217 case $enableval in
8218 yes) enable_static=yes ;;
8219 no) enable_static=no ;;
8220 *)
8221 enable_static=no
8222 # Look at the argument we got. We use all the common list separators.
8223 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8224 for pkg in $enableval; do
8225 IFS="$lt_save_ifs"
8226 if test "X$pkg" = "X$p"; then
8227 enable_static=yes
8228 fi
8229 done
8230 IFS="$lt_save_ifs"
8231 ;;
8232 esac
8233 else
8234 enable_static=yes
8235 fi
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246 # Check whether --with-pic was given.
8247 if test "${with_pic+set}" = set; then :
8248 withval=$with_pic; pic_mode="$withval"
8249 else
8250 pic_mode=default
8251 fi
8252
8253
8254 test -z "$pic_mode" && pic_mode=default
8255
8256
8257
8258
8259
8260
8261
8262 # Check whether --enable-fast-install was given.
8263 if test "${enable_fast_install+set}" = set; then :
8264 enableval=$enable_fast_install; p=${PACKAGE-default}
8265 case $enableval in
8266 yes) enable_fast_install=yes ;;
8267 no) enable_fast_install=no ;;
8268 *)
8269 enable_fast_install=no
8270 # Look at the argument we got. We use all the common list separators.
8271 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8272 for pkg in $enableval; do
8273 IFS="$lt_save_ifs"
8274 if test "X$pkg" = "X$p"; then
8275 enable_fast_install=yes
8276 fi
8277 done
8278 IFS="$lt_save_ifs"
8279 ;;
8280 esac
8281 else
8282 enable_fast_install=yes
8283 fi
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295 # This can be used to rebuild libtool when needed
8296 LIBTOOL_DEPS="$ltmain"
8297
8298 # Always use our own libtool.
8299 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326 test -z "$LN_S" && LN_S="ln -s"
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341 if test -n "${ZSH_VERSION+set}" ; then
8342 setopt NO_GLOB_SUBST
8343 fi
8344
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8346 $as_echo_n "checking for objdir... " >&6; }
8347 if ${lt_cv_objdir+:} false; then :
8348 $as_echo_n "(cached) " >&6
8349 else
8350 rm -f .libs 2>/dev/null
8351 mkdir .libs 2>/dev/null
8352 if test -d .libs; then
8353 lt_cv_objdir=.libs
8354 else
8355 # MS-DOS does not allow filenames that begin with a dot.
8356 lt_cv_objdir=_libs
8357 fi
8358 rmdir .libs 2>/dev/null
8359 fi
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8361 $as_echo "$lt_cv_objdir" >&6; }
8362 objdir=$lt_cv_objdir
8363
8364
8365
8366
8367
8368 cat >>confdefs.h <<_ACEOF
8369 #define LT_OBJDIR "$lt_cv_objdir/"
8370 _ACEOF
8371
8372
8373
8374
8375 case $host_os in
8376 aix3*)
8377 # AIX sometimes has problems with the GCC collect2 program. For some
8378 # reason, if we set the COLLECT_NAMES environment variable, the problems
8379 # vanish in a puff of smoke.
8380 if test "X${COLLECT_NAMES+set}" != Xset; then
8381 COLLECT_NAMES=
8382 export COLLECT_NAMES
8383 fi
8384 ;;
8385 esac
8386
8387 # Global variables:
8388 ofile=libtool
8389 can_build_shared=yes
8390
8391 # All known linkers require a `.a' archive for static linking (except MSVC,
8392 # which needs '.lib').
8393 libext=a
8394
8395 with_gnu_ld="$lt_cv_prog_gnu_ld"
8396
8397 old_CC="$CC"
8398 old_CFLAGS="$CFLAGS"
8399
8400 # Set sane defaults for various variables
8401 test -z "$CC" && CC=cc
8402 test -z "$LTCC" && LTCC=$CC
8403 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8404 test -z "$LD" && LD=ld
8405 test -z "$ac_objext" && ac_objext=o
8406
8407 for cc_temp in $compiler""; do
8408 case $cc_temp in
8409 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8410 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8411 \-*) ;;
8412 *) break;;
8413 esac
8414 done
8415 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8416
8417
8418 # Only perform the check for file, if the check method requires it
8419 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8420 case $deplibs_check_method in
8421 file_magic*)
8422 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8424 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8425 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8426 $as_echo_n "(cached) " >&6
8427 else
8428 case $MAGIC_CMD in
8429 [\\/*] | ?:[\\/]*)
8430 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8431 ;;
8432 *)
8433 lt_save_MAGIC_CMD="$MAGIC_CMD"
8434 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8435 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8436 for ac_dir in $ac_dummy; do
8437 IFS="$lt_save_ifs"
8438 test -z "$ac_dir" && ac_dir=.
8439 if test -f $ac_dir/${ac_tool_prefix}file; then
8440 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8441 if test -n "$file_magic_test_file"; then
8442 case $deplibs_check_method in
8443 "file_magic "*)
8444 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8445 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8446 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8447 $EGREP "$file_magic_regex" > /dev/null; then
8448 :
8449 else
8450 cat <<_LT_EOF 1>&2
8451
8452 *** Warning: the command libtool uses to detect shared libraries,
8453 *** $file_magic_cmd, produces output that libtool cannot recognize.
8454 *** The result is that libtool may fail to recognize shared libraries
8455 *** as such. This will affect the creation of libtool libraries that
8456 *** depend on shared libraries, but programs linked with such libtool
8457 *** libraries will work regardless of this problem. Nevertheless, you
8458 *** may want to report the problem to your system manager and/or to
8459 *** bug-libtool@gnu.org
8460
8461 _LT_EOF
8462 fi ;;
8463 esac
8464 fi
8465 break
8466 fi
8467 done
8468 IFS="$lt_save_ifs"
8469 MAGIC_CMD="$lt_save_MAGIC_CMD"
8470 ;;
8471 esac
8472 fi
8473
8474 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8475 if test -n "$MAGIC_CMD"; then
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8477 $as_echo "$MAGIC_CMD" >&6; }
8478 else
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8480 $as_echo "no" >&6; }
8481 fi
8482
8483
8484
8485
8486
8487 if test -z "$lt_cv_path_MAGIC_CMD"; then
8488 if test -n "$ac_tool_prefix"; then
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8490 $as_echo_n "checking for file... " >&6; }
8491 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8492 $as_echo_n "(cached) " >&6
8493 else
8494 case $MAGIC_CMD in
8495 [\\/*] | ?:[\\/]*)
8496 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8497 ;;
8498 *)
8499 lt_save_MAGIC_CMD="$MAGIC_CMD"
8500 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8501 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8502 for ac_dir in $ac_dummy; do
8503 IFS="$lt_save_ifs"
8504 test -z "$ac_dir" && ac_dir=.
8505 if test -f $ac_dir/file; then
8506 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8507 if test -n "$file_magic_test_file"; then
8508 case $deplibs_check_method in
8509 "file_magic "*)
8510 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8511 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8512 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8513 $EGREP "$file_magic_regex" > /dev/null; then
8514 :
8515 else
8516 cat <<_LT_EOF 1>&2
8517
8518 *** Warning: the command libtool uses to detect shared libraries,
8519 *** $file_magic_cmd, produces output that libtool cannot recognize.
8520 *** The result is that libtool may fail to recognize shared libraries
8521 *** as such. This will affect the creation of libtool libraries that
8522 *** depend on shared libraries, but programs linked with such libtool
8523 *** libraries will work regardless of this problem. Nevertheless, you
8524 *** may want to report the problem to your system manager and/or to
8525 *** bug-libtool@gnu.org
8526
8527 _LT_EOF
8528 fi ;;
8529 esac
8530 fi
8531 break
8532 fi
8533 done
8534 IFS="$lt_save_ifs"
8535 MAGIC_CMD="$lt_save_MAGIC_CMD"
8536 ;;
8537 esac
8538 fi
8539
8540 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8541 if test -n "$MAGIC_CMD"; then
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8543 $as_echo "$MAGIC_CMD" >&6; }
8544 else
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8546 $as_echo "no" >&6; }
8547 fi
8548
8549
8550 else
8551 MAGIC_CMD=:
8552 fi
8553 fi
8554
8555 fi
8556 ;;
8557 esac
8558
8559 # Use C for the default configuration in the libtool script
8560
8561 lt_save_CC="$CC"
8562 ac_ext=c
8563 ac_cpp='$CPP $CPPFLAGS'
8564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8567
8568
8569 # Source file extension for C test sources.
8570 ac_ext=c
8571
8572 # Object file extension for compiled C test sources.
8573 objext=o
8574 objext=$objext
8575
8576 # Code to be used in simple compile tests
8577 lt_simple_compile_test_code="int some_variable = 0;"
8578
8579 # Code to be used in simple link tests
8580 lt_simple_link_test_code='int main(){return(0);}'
8581
8582
8583
8584
8585
8586
8587
8588 # If no C compiler was specified, use CC.
8589 LTCC=${LTCC-"$CC"}
8590
8591 # If no C compiler flags were specified, use CFLAGS.
8592 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8593
8594 # Allow CC to be a program name with arguments.
8595 compiler=$CC
8596
8597 # Save the default compiler, since it gets overwritten when the other
8598 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8599 compiler_DEFAULT=$CC
8600
8601 # save warnings/boilerplate of simple test code
8602 ac_outfile=conftest.$ac_objext
8603 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8604 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8605 _lt_compiler_boilerplate=`cat conftest.err`
8606 $RM conftest*
8607
8608 ac_outfile=conftest.$ac_objext
8609 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8610 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8611 _lt_linker_boilerplate=`cat conftest.err`
8612 $RM -r conftest*
8613
8614
8615 ## CAVEAT EMPTOR:
8616 ## There is no encapsulation within the following macros, do not change
8617 ## the running order or otherwise move them around unless you know exactly
8618 ## what you are doing...
8619 if test -n "$compiler"; then
8620
8621 lt_prog_compiler_no_builtin_flag=
8622
8623 if test "$GCC" = yes; then
8624 case $cc_basename in
8625 nvcc*)
8626 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8627 *)
8628 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8629 esac
8630
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8632 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8633 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8634 $as_echo_n "(cached) " >&6
8635 else
8636 lt_cv_prog_compiler_rtti_exceptions=no
8637 ac_outfile=conftest.$ac_objext
8638 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8639 lt_compiler_flag="-fno-rtti -fno-exceptions"
8640 # Insert the option either (1) after the last *FLAGS variable, or
8641 # (2) before a word containing "conftest.", or (3) at the end.
8642 # Note that $ac_compile itself does not contain backslashes and begins
8643 # with a dollar sign (not a hyphen), so the echo should work correctly.
8644 # The option is referenced via a variable to avoid confusing sed.
8645 lt_compile=`echo "$ac_compile" | $SED \
8646 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8647 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8648 -e 's:$: $lt_compiler_flag:'`
8649 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8650 (eval "$lt_compile" 2>conftest.err)
8651 ac_status=$?
8652 cat conftest.err >&5
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 if (exit $ac_status) && test -s "$ac_outfile"; then
8655 # The compiler can only warn and ignore the option if not recognized
8656 # So say no if there are warnings other than the usual output.
8657 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8658 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8659 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8660 lt_cv_prog_compiler_rtti_exceptions=yes
8661 fi
8662 fi
8663 $RM conftest*
8664
8665 fi
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8667 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8668
8669 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8670 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8671 else
8672 :
8673 fi
8674
8675 fi
8676
8677
8678
8679
8680
8681
8682 lt_prog_compiler_wl=
8683 lt_prog_compiler_pic=
8684 lt_prog_compiler_static=
8685
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8687 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8688
8689 if test "$GCC" = yes; then
8690 lt_prog_compiler_wl='-Wl,'
8691 lt_prog_compiler_static='-static'
8692
8693 case $host_os in
8694 aix*)
8695 # All AIX code is PIC.
8696 if test "$host_cpu" = ia64; then
8697 # AIX 5 now supports IA64 processor
8698 lt_prog_compiler_static='-Bstatic'
8699 fi
8700 lt_prog_compiler_pic='-fPIC'
8701 ;;
8702
8703 amigaos*)
8704 case $host_cpu in
8705 powerpc)
8706 # see comment about AmigaOS4 .so support
8707 lt_prog_compiler_pic='-fPIC'
8708 ;;
8709 m68k)
8710 # FIXME: we need at least 68020 code to build shared libraries, but
8711 # adding the `-m68020' flag to GCC prevents building anything better,
8712 # like `-m68040'.
8713 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8714 ;;
8715 esac
8716 ;;
8717
8718 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8719 # PIC is the default for these OSes.
8720 ;;
8721
8722 mingw* | cygwin* | pw32* | os2* | cegcc*)
8723 # This hack is so that the source file can tell whether it is being
8724 # built for inclusion in a dll (and should export symbols for example).
8725 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8726 # (--disable-auto-import) libraries
8727 lt_prog_compiler_pic='-DDLL_EXPORT'
8728 ;;
8729
8730 darwin* | rhapsody*)
8731 # PIC is the default on this platform
8732 # Common symbols not allowed in MH_DYLIB files
8733 lt_prog_compiler_pic='-fno-common'
8734 ;;
8735
8736 haiku*)
8737 # PIC is the default for Haiku.
8738 # The "-static" flag exists, but is broken.
8739 lt_prog_compiler_static=
8740 ;;
8741
8742 hpux*)
8743 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8744 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8745 # sets the default TLS model and affects inlining.
8746 case $host_cpu in
8747 hppa*64*)
8748 # +Z the default
8749 ;;
8750 *)
8751 lt_prog_compiler_pic='-fPIC'
8752 ;;
8753 esac
8754 ;;
8755
8756 interix[3-9]*)
8757 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8758 # Instead, we relocate shared libraries at runtime.
8759 ;;
8760
8761 msdosdjgpp*)
8762 # Just because we use GCC doesn't mean we suddenly get shared libraries
8763 # on systems that don't support them.
8764 lt_prog_compiler_can_build_shared=no
8765 enable_shared=no
8766 ;;
8767
8768 *nto* | *qnx*)
8769 # QNX uses GNU C++, but need to define -shared option too, otherwise
8770 # it will coredump.
8771 lt_prog_compiler_pic='-fPIC -shared'
8772 ;;
8773
8774 sysv4*MP*)
8775 if test -d /usr/nec; then
8776 lt_prog_compiler_pic=-Kconform_pic
8777 fi
8778 ;;
8779
8780 *)
8781 lt_prog_compiler_pic='-fPIC'
8782 ;;
8783 esac
8784
8785 case $cc_basename in
8786 nvcc*) # Cuda Compiler Driver 2.2
8787 lt_prog_compiler_wl='-Xlinker '
8788 lt_prog_compiler_pic='-Xcompiler -fPIC'
8789 ;;
8790 esac
8791 else
8792 # PORTME Check for flag to pass linker flags through the system compiler.
8793 case $host_os in
8794 aix*)
8795 lt_prog_compiler_wl='-Wl,'
8796 if test "$host_cpu" = ia64; then
8797 # AIX 5 now supports IA64 processor
8798 lt_prog_compiler_static='-Bstatic'
8799 else
8800 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8801 fi
8802 ;;
8803
8804 mingw* | cygwin* | pw32* | os2* | cegcc*)
8805 # This hack is so that the source file can tell whether it is being
8806 # built for inclusion in a dll (and should export symbols for example).
8807 lt_prog_compiler_pic='-DDLL_EXPORT'
8808 ;;
8809
8810 hpux9* | hpux10* | hpux11*)
8811 lt_prog_compiler_wl='-Wl,'
8812 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8813 # not for PA HP-UX.
8814 case $host_cpu in
8815 hppa*64*|ia64*)
8816 # +Z the default
8817 ;;
8818 *)
8819 lt_prog_compiler_pic='+Z'
8820 ;;
8821 esac
8822 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8823 lt_prog_compiler_static='${wl}-a ${wl}archive'
8824 ;;
8825
8826 irix5* | irix6* | nonstopux*)
8827 lt_prog_compiler_wl='-Wl,'
8828 # PIC (with -KPIC) is the default.
8829 lt_prog_compiler_static='-non_shared'
8830 ;;
8831
8832 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8833 case $cc_basename in
8834 # old Intel for x86_64 which still supported -KPIC.
8835 ecc*)
8836 lt_prog_compiler_wl='-Wl,'
8837 lt_prog_compiler_pic='-KPIC'
8838 lt_prog_compiler_static='-static'
8839 ;;
8840 # icc used to be incompatible with GCC.
8841 # ICC 10 doesn't accept -KPIC any more.
8842 icc* | ifort*)
8843 lt_prog_compiler_wl='-Wl,'
8844 lt_prog_compiler_pic='-fPIC'
8845 lt_prog_compiler_static='-static'
8846 ;;
8847 # Lahey Fortran 8.1.
8848 lf95*)
8849 lt_prog_compiler_wl='-Wl,'
8850 lt_prog_compiler_pic='--shared'
8851 lt_prog_compiler_static='--static'
8852 ;;
8853 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8854 # Portland Group compilers (*not* the Pentium gcc compiler,
8855 # which looks to be a dead project)
8856 lt_prog_compiler_wl='-Wl,'
8857 lt_prog_compiler_pic='-fpic'
8858 lt_prog_compiler_static='-Bstatic'
8859 ;;
8860 ccc*)
8861 lt_prog_compiler_wl='-Wl,'
8862 # All Alpha code is PIC.
8863 lt_prog_compiler_static='-non_shared'
8864 ;;
8865 xl* | bgxl* | bgf* | mpixl*)
8866 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8867 lt_prog_compiler_wl='-Wl,'
8868 lt_prog_compiler_pic='-qpic'
8869 lt_prog_compiler_static='-qstaticlink'
8870 ;;
8871 *)
8872 case `$CC -V 2>&1 | sed 5q` in
8873 *Sun\ F* | *Sun*Fortran*)
8874 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8875 lt_prog_compiler_pic='-KPIC'
8876 lt_prog_compiler_static='-Bstatic'
8877 lt_prog_compiler_wl=''
8878 ;;
8879 *Sun\ C*)
8880 # Sun C 5.9
8881 lt_prog_compiler_pic='-KPIC'
8882 lt_prog_compiler_static='-Bstatic'
8883 lt_prog_compiler_wl='-Wl,'
8884 ;;
8885 esac
8886 ;;
8887 esac
8888 ;;
8889
8890 newsos6)
8891 lt_prog_compiler_pic='-KPIC'
8892 lt_prog_compiler_static='-Bstatic'
8893 ;;
8894
8895 *nto* | *qnx*)
8896 # QNX uses GNU C++, but need to define -shared option too, otherwise
8897 # it will coredump.
8898 lt_prog_compiler_pic='-fPIC -shared'
8899 ;;
8900
8901 osf3* | osf4* | osf5*)
8902 lt_prog_compiler_wl='-Wl,'
8903 # All OSF/1 code is PIC.
8904 lt_prog_compiler_static='-non_shared'
8905 ;;
8906
8907 rdos*)
8908 lt_prog_compiler_static='-non_shared'
8909 ;;
8910
8911 solaris*)
8912 lt_prog_compiler_pic='-KPIC'
8913 lt_prog_compiler_static='-Bstatic'
8914 case $cc_basename in
8915 f77* | f90* | f95*)
8916 lt_prog_compiler_wl='-Qoption ld ';;
8917 *)
8918 lt_prog_compiler_wl='-Wl,';;
8919 esac
8920 ;;
8921
8922 sunos4*)
8923 lt_prog_compiler_wl='-Qoption ld '
8924 lt_prog_compiler_pic='-PIC'
8925 lt_prog_compiler_static='-Bstatic'
8926 ;;
8927
8928 sysv4 | sysv4.2uw2* | sysv4.3*)
8929 lt_prog_compiler_wl='-Wl,'
8930 lt_prog_compiler_pic='-KPIC'
8931 lt_prog_compiler_static='-Bstatic'
8932 ;;
8933
8934 sysv4*MP*)
8935 if test -d /usr/nec ;then
8936 lt_prog_compiler_pic='-Kconform_pic'
8937 lt_prog_compiler_static='-Bstatic'
8938 fi
8939 ;;
8940
8941 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8942 lt_prog_compiler_wl='-Wl,'
8943 lt_prog_compiler_pic='-KPIC'
8944 lt_prog_compiler_static='-Bstatic'
8945 ;;
8946
8947 unicos*)
8948 lt_prog_compiler_wl='-Wl,'
8949 lt_prog_compiler_can_build_shared=no
8950 ;;
8951
8952 uts4*)
8953 lt_prog_compiler_pic='-pic'
8954 lt_prog_compiler_static='-Bstatic'
8955 ;;
8956
8957 *)
8958 lt_prog_compiler_can_build_shared=no
8959 ;;
8960 esac
8961 fi
8962
8963 case $host_os in
8964 # For platforms which do not support PIC, -DPIC is meaningless:
8965 *djgpp*)
8966 lt_prog_compiler_pic=
8967 ;;
8968 *)
8969 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8970 ;;
8971 esac
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8973 $as_echo "$lt_prog_compiler_pic" >&6; }
8974
8975
8976
8977
8978
8979
8980 #
8981 # Check to make sure the PIC flag actually works.
8982 #
8983 if test -n "$lt_prog_compiler_pic"; then
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8985 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8986 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8987 $as_echo_n "(cached) " >&6
8988 else
8989 lt_cv_prog_compiler_pic_works=no
8990 ac_outfile=conftest.$ac_objext
8991 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8992 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8993 # Insert the option either (1) after the last *FLAGS variable, or
8994 # (2) before a word containing "conftest.", or (3) at the end.
8995 # Note that $ac_compile itself does not contain backslashes and begins
8996 # with a dollar sign (not a hyphen), so the echo should work correctly.
8997 # The option is referenced via a variable to avoid confusing sed.
8998 lt_compile=`echo "$ac_compile" | $SED \
8999 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9000 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9001 -e 's:$: $lt_compiler_flag:'`
9002 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9003 (eval "$lt_compile" 2>conftest.err)
9004 ac_status=$?
9005 cat conftest.err >&5
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 if (exit $ac_status) && test -s "$ac_outfile"; then
9008 # The compiler can only warn and ignore the option if not recognized
9009 # So say no if there are warnings other than the usual output.
9010 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9011 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9012 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9013 lt_cv_prog_compiler_pic_works=yes
9014 fi
9015 fi
9016 $RM conftest*
9017
9018 fi
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9020 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9021
9022 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9023 case $lt_prog_compiler_pic in
9024 "" | " "*) ;;
9025 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9026 esac
9027 else
9028 lt_prog_compiler_pic=
9029 lt_prog_compiler_can_build_shared=no
9030 fi
9031
9032 fi
9033
9034
9035
9036
9037
9038
9039 #
9040 # Check to make sure the static flag actually works.
9041 #
9042 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9044 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9045 if ${lt_cv_prog_compiler_static_works+:} false; then :
9046 $as_echo_n "(cached) " >&6
9047 else
9048 lt_cv_prog_compiler_static_works=no
9049 save_LDFLAGS="$LDFLAGS"
9050 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9051 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9052 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9053 # The linker can only warn and ignore the option if not recognized
9054 # So say no if there are warnings
9055 if test -s conftest.err; then
9056 # Append any errors to the config.log.
9057 cat conftest.err 1>&5
9058 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9059 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9060 if diff conftest.exp conftest.er2 >/dev/null; then
9061 lt_cv_prog_compiler_static_works=yes
9062 fi
9063 else
9064 lt_cv_prog_compiler_static_works=yes
9065 fi
9066 fi
9067 $RM -r conftest*
9068 LDFLAGS="$save_LDFLAGS"
9069
9070 fi
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9072 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9073
9074 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9075 :
9076 else
9077 lt_prog_compiler_static=
9078 fi
9079
9080
9081
9082
9083
9084
9085
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9087 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9088 if ${lt_cv_prog_compiler_c_o+:} false; then :
9089 $as_echo_n "(cached) " >&6
9090 else
9091 lt_cv_prog_compiler_c_o=no
9092 $RM -r conftest 2>/dev/null
9093 mkdir conftest
9094 cd conftest
9095 mkdir out
9096 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9097
9098 lt_compiler_flag="-o out/conftest2.$ac_objext"
9099 # Insert the option either (1) after the last *FLAGS variable, or
9100 # (2) before a word containing "conftest.", or (3) at the end.
9101 # Note that $ac_compile itself does not contain backslashes and begins
9102 # with a dollar sign (not a hyphen), so the echo should work correctly.
9103 lt_compile=`echo "$ac_compile" | $SED \
9104 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9105 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9106 -e 's:$: $lt_compiler_flag:'`
9107 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9108 (eval "$lt_compile" 2>out/conftest.err)
9109 ac_status=$?
9110 cat out/conftest.err >&5
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9113 then
9114 # The compiler can only warn and ignore the option if not recognized
9115 # So say no if there are warnings
9116 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9117 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9118 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9119 lt_cv_prog_compiler_c_o=yes
9120 fi
9121 fi
9122 chmod u+w . 2>&5
9123 $RM conftest*
9124 # SGI C++ compiler will create directory out/ii_files/ for
9125 # template instantiation
9126 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9127 $RM out/* && rmdir out
9128 cd ..
9129 $RM -r conftest
9130 $RM conftest*
9131
9132 fi
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9134 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9135
9136
9137
9138
9139
9140
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9142 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9143 if ${lt_cv_prog_compiler_c_o+:} false; then :
9144 $as_echo_n "(cached) " >&6
9145 else
9146 lt_cv_prog_compiler_c_o=no
9147 $RM -r conftest 2>/dev/null
9148 mkdir conftest
9149 cd conftest
9150 mkdir out
9151 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9152
9153 lt_compiler_flag="-o out/conftest2.$ac_objext"
9154 # Insert the option either (1) after the last *FLAGS variable, or
9155 # (2) before a word containing "conftest.", or (3) at the end.
9156 # Note that $ac_compile itself does not contain backslashes and begins
9157 # with a dollar sign (not a hyphen), so the echo should work correctly.
9158 lt_compile=`echo "$ac_compile" | $SED \
9159 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9160 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9161 -e 's:$: $lt_compiler_flag:'`
9162 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9163 (eval "$lt_compile" 2>out/conftest.err)
9164 ac_status=$?
9165 cat out/conftest.err >&5
9166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9168 then
9169 # The compiler can only warn and ignore the option if not recognized
9170 # So say no if there are warnings
9171 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9172 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9173 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9174 lt_cv_prog_compiler_c_o=yes
9175 fi
9176 fi
9177 chmod u+w . 2>&5
9178 $RM conftest*
9179 # SGI C++ compiler will create directory out/ii_files/ for
9180 # template instantiation
9181 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9182 $RM out/* && rmdir out
9183 cd ..
9184 $RM -r conftest
9185 $RM conftest*
9186
9187 fi
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9189 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9190
9191
9192
9193
9194 hard_links="nottested"
9195 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9196 # do not overwrite the value of need_locks provided by the user
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9198 $as_echo_n "checking if we can lock with hard links... " >&6; }
9199 hard_links=yes
9200 $RM conftest*
9201 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9202 touch conftest.a
9203 ln conftest.a conftest.b 2>&5 || hard_links=no
9204 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9206 $as_echo "$hard_links" >&6; }
9207 if test "$hard_links" = no; then
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9209 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9210 need_locks=warn
9211 fi
9212 else
9213 need_locks=no
9214 fi
9215
9216
9217
9218
9219
9220
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9222 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9223
9224 runpath_var=
9225 allow_undefined_flag=
9226 always_export_symbols=no
9227 archive_cmds=
9228 archive_expsym_cmds=
9229 compiler_needs_object=no
9230 enable_shared_with_static_runtimes=no
9231 export_dynamic_flag_spec=
9232 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9233 hardcode_automatic=no
9234 hardcode_direct=no
9235 hardcode_direct_absolute=no
9236 hardcode_libdir_flag_spec=
9237 hardcode_libdir_flag_spec_ld=
9238 hardcode_libdir_separator=
9239 hardcode_minus_L=no
9240 hardcode_shlibpath_var=unsupported
9241 inherit_rpath=no
9242 link_all_deplibs=unknown
9243 module_cmds=
9244 module_expsym_cmds=
9245 old_archive_from_new_cmds=
9246 old_archive_from_expsyms_cmds=
9247 thread_safe_flag_spec=
9248 whole_archive_flag_spec=
9249 # include_expsyms should be a list of space-separated symbols to be *always*
9250 # included in the symbol list
9251 include_expsyms=
9252 # exclude_expsyms can be an extended regexp of symbols to exclude
9253 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9254 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9255 # as well as any symbol that contains `d'.
9256 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9257 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9258 # platforms (ab)use it in PIC code, but their linkers get confused if
9259 # the symbol is explicitly referenced. Since portable code cannot
9260 # rely on this symbol name, it's probably fine to never include it in
9261 # preloaded symbol tables.
9262 # Exclude shared library initialization/finalization symbols.
9263 extract_expsyms_cmds=
9264
9265 case $host_os in
9266 cygwin* | mingw* | pw32* | cegcc*)
9267 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9268 # When not using gcc, we currently assume that we are using
9269 # Microsoft Visual C++.
9270 if test "$GCC" != yes; then
9271 with_gnu_ld=no
9272 fi
9273 ;;
9274 interix*)
9275 # we just hope/assume this is gcc and not c89 (= MSVC++)
9276 with_gnu_ld=yes
9277 ;;
9278 openbsd*)
9279 with_gnu_ld=no
9280 ;;
9281 esac
9282
9283 ld_shlibs=yes
9284
9285 # On some targets, GNU ld is compatible enough with the native linker
9286 # that we're better off using the native interface for both.
9287 lt_use_gnu_ld_interface=no
9288 if test "$with_gnu_ld" = yes; then
9289 case $host_os in
9290 aix*)
9291 # The AIX port of GNU ld has always aspired to compatibility
9292 # with the native linker. However, as the warning in the GNU ld
9293 # block says, versions before 2.19.5* couldn't really create working
9294 # shared libraries, regardless of the interface used.
9295 case `$LD -v 2>&1` in
9296 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9297 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9298 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9299 *)
9300 lt_use_gnu_ld_interface=yes
9301 ;;
9302 esac
9303 ;;
9304 *)
9305 lt_use_gnu_ld_interface=yes
9306 ;;
9307 esac
9308 fi
9309
9310 if test "$lt_use_gnu_ld_interface" = yes; then
9311 # If archive_cmds runs LD, not CC, wlarc should be empty
9312 wlarc='${wl}'
9313
9314 # Set some defaults for GNU ld with shared library support. These
9315 # are reset later if shared libraries are not supported. Putting them
9316 # here allows them to be overridden if necessary.
9317 runpath_var=LD_RUN_PATH
9318 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9319 export_dynamic_flag_spec='${wl}--export-dynamic'
9320 # ancient GNU ld didn't support --whole-archive et. al.
9321 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9322 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9323 else
9324 whole_archive_flag_spec=
9325 fi
9326 supports_anon_versioning=no
9327 case `$LD -v 2>&1` in
9328 *GNU\ gold*) supports_anon_versioning=yes ;;
9329 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9330 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9331 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9332 *\ 2.11.*) ;; # other 2.11 versions
9333 *) supports_anon_versioning=yes ;;
9334 esac
9335
9336 # See if GNU ld supports shared libraries.
9337 case $host_os in
9338 aix[3-9]*)
9339 # On AIX/PPC, the GNU linker is very broken
9340 if test "$host_cpu" != ia64; then
9341 ld_shlibs=no
9342 cat <<_LT_EOF 1>&2
9343
9344 *** Warning: the GNU linker, at least up to release 2.19, is reported
9345 *** to be unable to reliably create shared libraries on AIX.
9346 *** Therefore, libtool is disabling shared libraries support. If you
9347 *** really care for shared libraries, you may want to install binutils
9348 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9349 *** You will then need to restart the configuration process.
9350
9351 _LT_EOF
9352 fi
9353 ;;
9354
9355 amigaos*)
9356 case $host_cpu in
9357 powerpc)
9358 # see comment about AmigaOS4 .so support
9359 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9360 archive_expsym_cmds=''
9361 ;;
9362 m68k)
9363 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)'
9364 hardcode_libdir_flag_spec='-L$libdir'
9365 hardcode_minus_L=yes
9366 ;;
9367 esac
9368 ;;
9369
9370 beos*)
9371 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9372 allow_undefined_flag=unsupported
9373 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9374 # support --undefined. This deserves some investigation. FIXME
9375 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9376 else
9377 ld_shlibs=no
9378 fi
9379 ;;
9380
9381 cygwin* | mingw* | pw32* | cegcc*)
9382 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9383 # as there is no search path for DLLs.
9384 hardcode_libdir_flag_spec='-L$libdir'
9385 export_dynamic_flag_spec='${wl}--export-all-symbols'
9386 allow_undefined_flag=unsupported
9387 always_export_symbols=no
9388 enable_shared_with_static_runtimes=yes
9389 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9390
9391 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9392 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9393 # If the export-symbols file already is a .def file (1st line
9394 # is EXPORTS), use it as is; otherwise, prepend...
9395 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9396 cp $export_symbols $output_objdir/$soname.def;
9397 else
9398 echo EXPORTS > $output_objdir/$soname.def;
9399 cat $export_symbols >> $output_objdir/$soname.def;
9400 fi~
9401 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9402 else
9403 ld_shlibs=no
9404 fi
9405 ;;
9406
9407 haiku*)
9408 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9409 link_all_deplibs=yes
9410 ;;
9411
9412 interix[3-9]*)
9413 hardcode_direct=no
9414 hardcode_shlibpath_var=no
9415 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9416 export_dynamic_flag_spec='${wl}-E'
9417 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9418 # Instead, shared libraries are loaded at an image base (0x10000000 by
9419 # default) and relocated if they conflict, which is a slow very memory
9420 # consuming and fragmenting process. To avoid this, we pick a random,
9421 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9422 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9423 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9424 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'
9425 ;;
9426
9427 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9428 tmp_diet=no
9429 if test "$host_os" = linux-dietlibc; then
9430 case $cc_basename in
9431 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9432 esac
9433 fi
9434 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9435 && test "$tmp_diet" = no
9436 then
9437 tmp_addflag=' $pic_flag'
9438 tmp_sharedflag='-shared'
9439 case $cc_basename,$host_cpu in
9440 pgcc*) # Portland Group C compiler
9441 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'
9442 tmp_addflag=' $pic_flag'
9443 ;;
9444 pgf77* | pgf90* | pgf95* | pgfortran*)
9445 # Portland Group f77 and f90 compilers
9446 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'
9447 tmp_addflag=' $pic_flag -Mnomain' ;;
9448 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9449 tmp_addflag=' -i_dynamic' ;;
9450 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9451 tmp_addflag=' -i_dynamic -nofor_main' ;;
9452 ifc* | ifort*) # Intel Fortran compiler
9453 tmp_addflag=' -nofor_main' ;;
9454 lf95*) # Lahey Fortran 8.1
9455 whole_archive_flag_spec=
9456 tmp_sharedflag='--shared' ;;
9457 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9458 tmp_sharedflag='-qmkshrobj'
9459 tmp_addflag= ;;
9460 nvcc*) # Cuda Compiler Driver 2.2
9461 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'
9462 compiler_needs_object=yes
9463 ;;
9464 esac
9465 case `$CC -V 2>&1 | sed 5q` in
9466 *Sun\ C*) # Sun C 5.9
9467 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'
9468 compiler_needs_object=yes
9469 tmp_sharedflag='-G' ;;
9470 *Sun\ F*) # Sun Fortran 8.3
9471 tmp_sharedflag='-G' ;;
9472 esac
9473 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9474
9475 if test "x$supports_anon_versioning" = xyes; then
9476 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9477 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9478 echo "local: *; };" >> $output_objdir/$libname.ver~
9479 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9480 fi
9481
9482 case $cc_basename in
9483 xlf* | bgf* | bgxlf* | mpixlf*)
9484 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9485 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9486 hardcode_libdir_flag_spec=
9487 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9488 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9489 if test "x$supports_anon_versioning" = xyes; then
9490 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9491 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9492 echo "local: *; };" >> $output_objdir/$libname.ver~
9493 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9494 fi
9495 ;;
9496 esac
9497 else
9498 ld_shlibs=no
9499 fi
9500 ;;
9501
9502 netbsd*)
9503 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9504 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9505 wlarc=
9506 else
9507 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9508 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9509 fi
9510 ;;
9511
9512 solaris*)
9513 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9514 ld_shlibs=no
9515 cat <<_LT_EOF 1>&2
9516
9517 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9518 *** create shared libraries on Solaris systems. Therefore, libtool
9519 *** is disabling shared libraries support. We urge you to upgrade GNU
9520 *** binutils to release 2.9.1 or newer. Another option is to modify
9521 *** your PATH or compiler configuration so that the native linker is
9522 *** used, and then restart.
9523
9524 _LT_EOF
9525 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9526 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9527 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9528 else
9529 ld_shlibs=no
9530 fi
9531 ;;
9532
9533 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9534 case `$LD -v 2>&1` in
9535 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9536 ld_shlibs=no
9537 cat <<_LT_EOF 1>&2
9538
9539 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9540 *** reliably create shared libraries on SCO systems. Therefore, libtool
9541 *** is disabling shared libraries support. We urge you to upgrade GNU
9542 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9543 *** your PATH or compiler configuration so that the native linker is
9544 *** used, and then restart.
9545
9546 _LT_EOF
9547 ;;
9548 *)
9549 # For security reasons, it is highly recommended that you always
9550 # use absolute paths for naming shared libraries, and exclude the
9551 # DT_RUNPATH tag from executables and libraries. But doing so
9552 # requires that you compile everything twice, which is a pain.
9553 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9554 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9555 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9556 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9557 else
9558 ld_shlibs=no
9559 fi
9560 ;;
9561 esac
9562 ;;
9563
9564 sunos4*)
9565 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9566 wlarc=
9567 hardcode_direct=yes
9568 hardcode_shlibpath_var=no
9569 ;;
9570
9571 *)
9572 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9573 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9574 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9575 else
9576 ld_shlibs=no
9577 fi
9578 ;;
9579 esac
9580
9581 if test "$ld_shlibs" = no; then
9582 runpath_var=
9583 hardcode_libdir_flag_spec=
9584 export_dynamic_flag_spec=
9585 whole_archive_flag_spec=
9586 fi
9587 else
9588 # PORTME fill in a description of your system's linker (not GNU ld)
9589 case $host_os in
9590 aix3*)
9591 allow_undefined_flag=unsupported
9592 always_export_symbols=yes
9593 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'
9594 # Note: this linker hardcodes the directories in LIBPATH if there
9595 # are no directories specified by -L.
9596 hardcode_minus_L=yes
9597 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9598 # Neither direct hardcoding nor static linking is supported with a
9599 # broken collect2.
9600 hardcode_direct=unsupported
9601 fi
9602 ;;
9603
9604 aix[4-9]*)
9605 if test "$host_cpu" = ia64; then
9606 # On IA64, the linker does run time linking by default, so we don't
9607 # have to do anything special.
9608 aix_use_runtimelinking=no
9609 exp_sym_flag='-Bexport'
9610 no_entry_flag=""
9611 else
9612 # If we're using GNU nm, then we don't want the "-C" option.
9613 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9614 # Also, AIX nm treats weak defined symbols like other global
9615 # defined symbols, whereas GNU nm marks them as "W".
9616 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9617 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'
9618 else
9619 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'
9620 fi
9621 aix_use_runtimelinking=no
9622
9623 # Test if we are trying to use run time linking or normal
9624 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9625 # need to do runtime linking.
9626 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9627 for ld_flag in $LDFLAGS; do
9628 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9629 aix_use_runtimelinking=yes
9630 break
9631 fi
9632 done
9633 ;;
9634 esac
9635
9636 exp_sym_flag='-bexport'
9637 no_entry_flag='-bnoentry'
9638 fi
9639
9640 # When large executables or shared objects are built, AIX ld can
9641 # have problems creating the table of contents. If linking a library
9642 # or program results in "error TOC overflow" add -mminimal-toc to
9643 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9644 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9645
9646 archive_cmds=''
9647 hardcode_direct=yes
9648 hardcode_direct_absolute=yes
9649 hardcode_libdir_separator=':'
9650 link_all_deplibs=yes
9651 file_list_spec='${wl}-f,'
9652
9653 if test "$GCC" = yes; then
9654 case $host_os in aix4.[012]|aix4.[012].*)
9655 # We only want to do this on AIX 4.2 and lower, the check
9656 # below for broken collect2 doesn't work under 4.3+
9657 collect2name=`${CC} -print-prog-name=collect2`
9658 if test -f "$collect2name" &&
9659 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9660 then
9661 # We have reworked collect2
9662 :
9663 else
9664 # We have old collect2
9665 hardcode_direct=unsupported
9666 # It fails to find uninstalled libraries when the uninstalled
9667 # path is not listed in the libpath. Setting hardcode_minus_L
9668 # to unsupported forces relinking
9669 hardcode_minus_L=yes
9670 hardcode_libdir_flag_spec='-L$libdir'
9671 hardcode_libdir_separator=
9672 fi
9673 ;;
9674 esac
9675 shared_flag='-shared'
9676 if test "$aix_use_runtimelinking" = yes; then
9677 shared_flag="$shared_flag "'${wl}-G'
9678 fi
9679 else
9680 # not using gcc
9681 if test "$host_cpu" = ia64; then
9682 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9683 # chokes on -Wl,-G. The following line is correct:
9684 shared_flag='-G'
9685 else
9686 if test "$aix_use_runtimelinking" = yes; then
9687 shared_flag='${wl}-G'
9688 else
9689 shared_flag='${wl}-bM:SRE'
9690 fi
9691 fi
9692 fi
9693
9694 export_dynamic_flag_spec='${wl}-bexpall'
9695 # It seems that -bexpall does not export symbols beginning with
9696 # underscore (_), so it is better to generate a list of symbols to export.
9697 always_export_symbols=yes
9698 if test "$aix_use_runtimelinking" = yes; then
9699 # Warning - without using the other runtime loading flags (-brtl),
9700 # -berok will link without error, but may produce a broken library.
9701 allow_undefined_flag='-berok'
9702 # Determine the default libpath from the value encoded in an
9703 # empty executable.
9704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9705 /* end confdefs.h. */
9706
9707 int
9708 main ()
9709 {
9710
9711 ;
9712 return 0;
9713 }
9714 _ACEOF
9715 if ac_fn_c_try_link "$LINENO"; then :
9716
9717 lt_aix_libpath_sed='
9718 /Import File Strings/,/^$/ {
9719 /^0/ {
9720 s/^0 *\(.*\)$/\1/
9721 p
9722 }
9723 }'
9724 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9725 # Check for a 64-bit object if we didn't find anything.
9726 if test -z "$aix_libpath"; then
9727 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9728 fi
9729 fi
9730 rm -f core conftest.err conftest.$ac_objext \
9731 conftest$ac_exeext conftest.$ac_ext
9732 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9733
9734 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9735 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"
9736 else
9737 if test "$host_cpu" = ia64; then
9738 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9739 allow_undefined_flag="-z nodefs"
9740 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"
9741 else
9742 # Determine the default libpath from the value encoded in an
9743 # empty executable.
9744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9745 /* end confdefs.h. */
9746
9747 int
9748 main ()
9749 {
9750
9751 ;
9752 return 0;
9753 }
9754 _ACEOF
9755 if ac_fn_c_try_link "$LINENO"; then :
9756
9757 lt_aix_libpath_sed='
9758 /Import File Strings/,/^$/ {
9759 /^0/ {
9760 s/^0 *\(.*\)$/\1/
9761 p
9762 }
9763 }'
9764 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9765 # Check for a 64-bit object if we didn't find anything.
9766 if test -z "$aix_libpath"; then
9767 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9768 fi
9769 fi
9770 rm -f core conftest.err conftest.$ac_objext \
9771 conftest$ac_exeext conftest.$ac_ext
9772 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9773
9774 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9775 # Warning - without using the other run time loading flags,
9776 # -berok will link without error, but may produce a broken library.
9777 no_undefined_flag=' ${wl}-bernotok'
9778 allow_undefined_flag=' ${wl}-berok'
9779 if test "$with_gnu_ld" = yes; then
9780 # We only use this code for GNU lds that support --whole-archive.
9781 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9782 else
9783 # Exported symbols can be pulled into shared objects from archives
9784 whole_archive_flag_spec='$convenience'
9785 fi
9786 archive_cmds_need_lc=yes
9787 # This is similar to how AIX traditionally builds its shared libraries.
9788 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'
9789 fi
9790 fi
9791 ;;
9792
9793 amigaos*)
9794 case $host_cpu in
9795 powerpc)
9796 # see comment about AmigaOS4 .so support
9797 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9798 archive_expsym_cmds=''
9799 ;;
9800 m68k)
9801 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)'
9802 hardcode_libdir_flag_spec='-L$libdir'
9803 hardcode_minus_L=yes
9804 ;;
9805 esac
9806 ;;
9807
9808 bsdi[45]*)
9809 export_dynamic_flag_spec=-rdynamic
9810 ;;
9811
9812 cygwin* | mingw* | pw32* | cegcc*)
9813 # When not using gcc, we currently assume that we are using
9814 # Microsoft Visual C++.
9815 # hardcode_libdir_flag_spec is actually meaningless, as there is
9816 # no search path for DLLs.
9817 hardcode_libdir_flag_spec=' '
9818 allow_undefined_flag=unsupported
9819 # Tell ltmain to make .lib files, not .a files.
9820 libext=lib
9821 # Tell ltmain to make .dll files, not .so files.
9822 shrext_cmds=".dll"
9823 # FIXME: Setting linknames here is a bad hack.
9824 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9825 # The linker will automatically build a .lib file if we build a DLL.
9826 old_archive_from_new_cmds='true'
9827 # FIXME: Should let the user specify the lib program.
9828 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9829 fix_srcfile_path='`cygpath -w "$srcfile"`'
9830 enable_shared_with_static_runtimes=yes
9831 ;;
9832
9833 darwin* | rhapsody*)
9834
9835
9836 archive_cmds_need_lc=no
9837 hardcode_direct=no
9838 hardcode_automatic=yes
9839 hardcode_shlibpath_var=unsupported
9840 if test "$lt_cv_ld_force_load" = "yes"; then
9841 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\"`'
9842 else
9843 whole_archive_flag_spec=''
9844 fi
9845 link_all_deplibs=yes
9846 allow_undefined_flag="$_lt_dar_allow_undefined"
9847 case $cc_basename in
9848 ifort*) _lt_dar_can_shared=yes ;;
9849 *) _lt_dar_can_shared=$GCC ;;
9850 esac
9851 if test "$_lt_dar_can_shared" = "yes"; then
9852 output_verbose_link_cmd=func_echo_all
9853 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9854 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9855 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9856 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}"
9857
9858 else
9859 ld_shlibs=no
9860 fi
9861
9862 ;;
9863
9864 dgux*)
9865 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9866 hardcode_libdir_flag_spec='-L$libdir'
9867 hardcode_shlibpath_var=no
9868 ;;
9869
9870 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9871 # support. Future versions do this automatically, but an explicit c++rt0.o
9872 # does not break anything, and helps significantly (at the cost of a little
9873 # extra space).
9874 freebsd2.2*)
9875 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9876 hardcode_libdir_flag_spec='-R$libdir'
9877 hardcode_direct=yes
9878 hardcode_shlibpath_var=no
9879 ;;
9880
9881 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9882 freebsd2.*)
9883 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9884 hardcode_direct=yes
9885 hardcode_minus_L=yes
9886 hardcode_shlibpath_var=no
9887 ;;
9888
9889 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9890 freebsd* | dragonfly*)
9891 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9892 hardcode_libdir_flag_spec='-R$libdir'
9893 hardcode_direct=yes
9894 hardcode_shlibpath_var=no
9895 ;;
9896
9897 hpux9*)
9898 if test "$GCC" = yes; then
9899 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'
9900 else
9901 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'
9902 fi
9903 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9904 hardcode_libdir_separator=:
9905 hardcode_direct=yes
9906
9907 # hardcode_minus_L: Not really in the search PATH,
9908 # but as the default location of the library.
9909 hardcode_minus_L=yes
9910 export_dynamic_flag_spec='${wl}-E'
9911 ;;
9912
9913 hpux10*)
9914 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9915 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9916 else
9917 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9918 fi
9919 if test "$with_gnu_ld" = no; then
9920 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9921 hardcode_libdir_flag_spec_ld='+b $libdir'
9922 hardcode_libdir_separator=:
9923 hardcode_direct=yes
9924 hardcode_direct_absolute=yes
9925 export_dynamic_flag_spec='${wl}-E'
9926 # hardcode_minus_L: Not really in the search PATH,
9927 # but as the default location of the library.
9928 hardcode_minus_L=yes
9929 fi
9930 ;;
9931
9932 hpux11*)
9933 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9934 case $host_cpu in
9935 hppa*64*)
9936 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9937 ;;
9938 ia64*)
9939 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9940 ;;
9941 *)
9942 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9943 ;;
9944 esac
9945 else
9946 case $host_cpu in
9947 hppa*64*)
9948 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9949 ;;
9950 ia64*)
9951 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9952 ;;
9953 *)
9954
9955 # Older versions of the 11.00 compiler do not understand -b yet
9956 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9958 $as_echo_n "checking if $CC understands -b... " >&6; }
9959 if ${lt_cv_prog_compiler__b+:} false; then :
9960 $as_echo_n "(cached) " >&6
9961 else
9962 lt_cv_prog_compiler__b=no
9963 save_LDFLAGS="$LDFLAGS"
9964 LDFLAGS="$LDFLAGS -b"
9965 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9966 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9967 # The linker can only warn and ignore the option if not recognized
9968 # So say no if there are warnings
9969 if test -s conftest.err; then
9970 # Append any errors to the config.log.
9971 cat conftest.err 1>&5
9972 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9973 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9974 if diff conftest.exp conftest.er2 >/dev/null; then
9975 lt_cv_prog_compiler__b=yes
9976 fi
9977 else
9978 lt_cv_prog_compiler__b=yes
9979 fi
9980 fi
9981 $RM -r conftest*
9982 LDFLAGS="$save_LDFLAGS"
9983
9984 fi
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9986 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9987
9988 if test x"$lt_cv_prog_compiler__b" = xyes; then
9989 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9990 else
9991 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9992 fi
9993
9994 ;;
9995 esac
9996 fi
9997 if test "$with_gnu_ld" = no; then
9998 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9999 hardcode_libdir_separator=:
10000
10001 case $host_cpu in
10002 hppa*64*|ia64*)
10003 hardcode_direct=no
10004 hardcode_shlibpath_var=no
10005 ;;
10006 *)
10007 hardcode_direct=yes
10008 hardcode_direct_absolute=yes
10009 export_dynamic_flag_spec='${wl}-E'
10010
10011 # hardcode_minus_L: Not really in the search PATH,
10012 # but as the default location of the library.
10013 hardcode_minus_L=yes
10014 ;;
10015 esac
10016 fi
10017 ;;
10018
10019 irix5* | irix6* | nonstopux*)
10020 if test "$GCC" = yes; then
10021 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'
10022 # Try to use the -exported_symbol ld option, if it does not
10023 # work, assume that -exports_file does not work either and
10024 # implicitly export all symbols.
10025 save_LDFLAGS="$LDFLAGS"
10026 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10028 /* end confdefs.h. */
10029 int foo(void) {}
10030 _ACEOF
10031 if ac_fn_c_try_link "$LINENO"; then :
10032 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'
10033
10034 fi
10035 rm -f core conftest.err conftest.$ac_objext \
10036 conftest$ac_exeext conftest.$ac_ext
10037 LDFLAGS="$save_LDFLAGS"
10038 else
10039 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'
10040 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'
10041 fi
10042 archive_cmds_need_lc='no'
10043 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10044 hardcode_libdir_separator=:
10045 inherit_rpath=yes
10046 link_all_deplibs=yes
10047 ;;
10048
10049 netbsd*)
10050 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10051 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10052 else
10053 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10054 fi
10055 hardcode_libdir_flag_spec='-R$libdir'
10056 hardcode_direct=yes
10057 hardcode_shlibpath_var=no
10058 ;;
10059
10060 newsos6)
10061 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10062 hardcode_direct=yes
10063 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10064 hardcode_libdir_separator=:
10065 hardcode_shlibpath_var=no
10066 ;;
10067
10068 *nto* | *qnx*)
10069 ;;
10070
10071 openbsd*)
10072 if test -f /usr/libexec/ld.so; then
10073 hardcode_direct=yes
10074 hardcode_shlibpath_var=no
10075 hardcode_direct_absolute=yes
10076 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10077 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10078 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10079 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10080 export_dynamic_flag_spec='${wl}-E'
10081 else
10082 case $host_os in
10083 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10084 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10085 hardcode_libdir_flag_spec='-R$libdir'
10086 ;;
10087 *)
10088 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10089 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10090 ;;
10091 esac
10092 fi
10093 else
10094 ld_shlibs=no
10095 fi
10096 ;;
10097
10098 os2*)
10099 hardcode_libdir_flag_spec='-L$libdir'
10100 hardcode_minus_L=yes
10101 allow_undefined_flag=unsupported
10102 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'
10103 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10104 ;;
10105
10106 osf3*)
10107 if test "$GCC" = yes; then
10108 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10109 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'
10110 else
10111 allow_undefined_flag=' -expect_unresolved \*'
10112 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'
10113 fi
10114 archive_cmds_need_lc='no'
10115 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10116 hardcode_libdir_separator=:
10117 ;;
10118
10119 osf4* | osf5*) # as osf3* with the addition of -msym flag
10120 if test "$GCC" = yes; then
10121 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10122 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'
10123 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10124 else
10125 allow_undefined_flag=' -expect_unresolved \*'
10126 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'
10127 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~
10128 $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'
10129
10130 # Both c and cxx compiler support -rpath directly
10131 hardcode_libdir_flag_spec='-rpath $libdir'
10132 fi
10133 archive_cmds_need_lc='no'
10134 hardcode_libdir_separator=:
10135 ;;
10136
10137 solaris*)
10138 no_undefined_flag=' -z defs'
10139 if test "$GCC" = yes; then
10140 wlarc='${wl}'
10141 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10142 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10143 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10144 else
10145 case `$CC -V 2>&1` in
10146 *"Compilers 5.0"*)
10147 wlarc=''
10148 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10149 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10150 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10151 ;;
10152 *)
10153 wlarc='${wl}'
10154 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10155 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10156 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10157 ;;
10158 esac
10159 fi
10160 hardcode_libdir_flag_spec='-R$libdir'
10161 hardcode_shlibpath_var=no
10162 case $host_os in
10163 solaris2.[0-5] | solaris2.[0-5].*) ;;
10164 *)
10165 # The compiler driver will combine and reorder linker options,
10166 # but understands `-z linker_flag'. GCC discards it without `$wl',
10167 # but is careful enough not to reorder.
10168 # Supported since Solaris 2.6 (maybe 2.5.1?)
10169 if test "$GCC" = yes; then
10170 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10171 else
10172 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10173 fi
10174 ;;
10175 esac
10176 link_all_deplibs=yes
10177 ;;
10178
10179 sunos4*)
10180 if test "x$host_vendor" = xsequent; then
10181 # Use $CC to link under sequent, because it throws in some extra .o
10182 # files that make .init and .fini sections work.
10183 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10184 else
10185 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10186 fi
10187 hardcode_libdir_flag_spec='-L$libdir'
10188 hardcode_direct=yes
10189 hardcode_minus_L=yes
10190 hardcode_shlibpath_var=no
10191 ;;
10192
10193 sysv4)
10194 case $host_vendor in
10195 sni)
10196 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10197 hardcode_direct=yes # is this really true???
10198 ;;
10199 siemens)
10200 ## LD is ld it makes a PLAMLIB
10201 ## CC just makes a GrossModule.
10202 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10203 reload_cmds='$CC -r -o $output$reload_objs'
10204 hardcode_direct=no
10205 ;;
10206 motorola)
10207 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10208 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10209 ;;
10210 esac
10211 runpath_var='LD_RUN_PATH'
10212 hardcode_shlibpath_var=no
10213 ;;
10214
10215 sysv4.3*)
10216 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10217 hardcode_shlibpath_var=no
10218 export_dynamic_flag_spec='-Bexport'
10219 ;;
10220
10221 sysv4*MP*)
10222 if test -d /usr/nec; then
10223 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10224 hardcode_shlibpath_var=no
10225 runpath_var=LD_RUN_PATH
10226 hardcode_runpath_var=yes
10227 ld_shlibs=yes
10228 fi
10229 ;;
10230
10231 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10232 no_undefined_flag='${wl}-z,text'
10233 archive_cmds_need_lc=no
10234 hardcode_shlibpath_var=no
10235 runpath_var='LD_RUN_PATH'
10236
10237 if test "$GCC" = yes; then
10238 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10239 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10240 else
10241 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10242 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10243 fi
10244 ;;
10245
10246 sysv5* | sco3.2v5* | sco5v6*)
10247 # Note: We can NOT use -z defs as we might desire, because we do not
10248 # link with -lc, and that would cause any symbols used from libc to
10249 # always be unresolved, which means just about no library would
10250 # ever link correctly. If we're not using GNU ld we use -z text
10251 # though, which does catch some bad symbols but isn't as heavy-handed
10252 # as -z defs.
10253 no_undefined_flag='${wl}-z,text'
10254 allow_undefined_flag='${wl}-z,nodefs'
10255 archive_cmds_need_lc=no
10256 hardcode_shlibpath_var=no
10257 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10258 hardcode_libdir_separator=':'
10259 link_all_deplibs=yes
10260 export_dynamic_flag_spec='${wl}-Bexport'
10261 runpath_var='LD_RUN_PATH'
10262
10263 if test "$GCC" = yes; then
10264 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10265 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10266 else
10267 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10268 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10269 fi
10270 ;;
10271
10272 uts4*)
10273 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10274 hardcode_libdir_flag_spec='-L$libdir'
10275 hardcode_shlibpath_var=no
10276 ;;
10277
10278 *)
10279 ld_shlibs=no
10280 ;;
10281 esac
10282
10283 if test x$host_vendor = xsni; then
10284 case $host in
10285 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10286 export_dynamic_flag_spec='${wl}-Blargedynsym'
10287 ;;
10288 esac
10289 fi
10290 fi
10291
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10293 $as_echo "$ld_shlibs" >&6; }
10294 test "$ld_shlibs" = no && can_build_shared=no
10295
10296 with_gnu_ld=$with_gnu_ld
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312 #
10313 # Do we need to explicitly link libc?
10314 #
10315 case "x$archive_cmds_need_lc" in
10316 x|xyes)
10317 # Assume -lc should be added
10318 archive_cmds_need_lc=yes
10319
10320 if test "$enable_shared" = yes && test "$GCC" = yes; then
10321 case $archive_cmds in
10322 *'~'*)
10323 # FIXME: we may have to deal with multi-command sequences.
10324 ;;
10325 '$CC '*)
10326 # Test whether the compiler implicitly links with -lc since on some
10327 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10328 # to ld, don't add -lc before -lgcc.
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10330 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10331 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10332 $as_echo_n "(cached) " >&6
10333 else
10334 $RM conftest*
10335 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10336
10337 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10338 (eval $ac_compile) 2>&5
10339 ac_status=$?
10340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10341 test $ac_status = 0; } 2>conftest.err; then
10342 soname=conftest
10343 lib=conftest
10344 libobjs=conftest.$ac_objext
10345 deplibs=
10346 wl=$lt_prog_compiler_wl
10347 pic_flag=$lt_prog_compiler_pic
10348 compiler_flags=-v
10349 linker_flags=-v
10350 verstring=
10351 output_objdir=.
10352 libname=conftest
10353 lt_save_allow_undefined_flag=$allow_undefined_flag
10354 allow_undefined_flag=
10355 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10356 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10357 ac_status=$?
10358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10359 test $ac_status = 0; }
10360 then
10361 lt_cv_archive_cmds_need_lc=no
10362 else
10363 lt_cv_archive_cmds_need_lc=yes
10364 fi
10365 allow_undefined_flag=$lt_save_allow_undefined_flag
10366 else
10367 cat conftest.err 1>&5
10368 fi
10369 $RM conftest*
10370
10371 fi
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10373 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10374 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10375 ;;
10376 esac
10377 fi
10378 ;;
10379 esac
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10538 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10539
10540 if test "$GCC" = yes; then
10541 case $host_os in
10542 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10543 *) lt_awk_arg="/^libraries:/" ;;
10544 esac
10545 case $host_os in
10546 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10547 *) lt_sed_strip_eq="s,=/,/,g" ;;
10548 esac
10549 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10550 case $lt_search_path_spec in
10551 *\;*)
10552 # if the path contains ";" then we assume it to be the separator
10553 # otherwise default to the standard path separator (i.e. ":") - it is
10554 # assumed that no part of a normal pathname contains ";" but that should
10555 # okay in the real world where ";" in dirpaths is itself problematic.
10556 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10557 ;;
10558 *)
10559 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10560 ;;
10561 esac
10562 # Ok, now we have the path, separated by spaces, we can step through it
10563 # and add multilib dir if necessary.
10564 lt_tmp_lt_search_path_spec=
10565 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10566 for lt_sys_path in $lt_search_path_spec; do
10567 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10568 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10569 else
10570 test -d "$lt_sys_path" && \
10571 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10572 fi
10573 done
10574 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10575 BEGIN {RS=" "; FS="/|\n";} {
10576 lt_foo="";
10577 lt_count=0;
10578 for (lt_i = NF; lt_i > 0; lt_i--) {
10579 if ($lt_i != "" && $lt_i != ".") {
10580 if ($lt_i == "..") {
10581 lt_count++;
10582 } else {
10583 if (lt_count == 0) {
10584 lt_foo="/" $lt_i lt_foo;
10585 } else {
10586 lt_count--;
10587 }
10588 }
10589 }
10590 }
10591 if (lt_foo != "") { lt_freq[lt_foo]++; }
10592 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10593 }'`
10594 # AWK program above erroneously prepends '/' to C:/dos/paths
10595 # for these hosts.
10596 case $host_os in
10597 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10598 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10599 esac
10600 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10601 else
10602 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10603 fi
10604 library_names_spec=
10605 libname_spec='lib$name'
10606 soname_spec=
10607 shrext_cmds=".so"
10608 postinstall_cmds=
10609 postuninstall_cmds=
10610 finish_cmds=
10611 finish_eval=
10612 shlibpath_var=
10613 shlibpath_overrides_runpath=unknown
10614 version_type=none
10615 dynamic_linker="$host_os ld.so"
10616 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10617 need_lib_prefix=unknown
10618 hardcode_into_libs=no
10619
10620 # when you set need_version to no, make sure it does not cause -set_version
10621 # flags to be left without arguments
10622 need_version=unknown
10623
10624 case $host_os in
10625 aix3*)
10626 version_type=linux
10627 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10628 shlibpath_var=LIBPATH
10629
10630 # AIX 3 has no versioning support, so we append a major version to the name.
10631 soname_spec='${libname}${release}${shared_ext}$major'
10632 ;;
10633
10634 aix[4-9]*)
10635 version_type=linux
10636 need_lib_prefix=no
10637 need_version=no
10638 hardcode_into_libs=yes
10639 if test "$host_cpu" = ia64; then
10640 # AIX 5 supports IA64
10641 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10642 shlibpath_var=LD_LIBRARY_PATH
10643 else
10644 # With GCC up to 2.95.x, collect2 would create an import file
10645 # for dependence libraries. The import file would start with
10646 # the line `#! .'. This would cause the generated library to
10647 # depend on `.', always an invalid library. This was fixed in
10648 # development snapshots of GCC prior to 3.0.
10649 case $host_os in
10650 aix4 | aix4.[01] | aix4.[01].*)
10651 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10652 echo ' yes '
10653 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10654 :
10655 else
10656 can_build_shared=no
10657 fi
10658 ;;
10659 esac
10660 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10661 # soname into executable. Probably we can add versioning support to
10662 # collect2, so additional links can be useful in future.
10663 if test "$aix_use_runtimelinking" = yes; then
10664 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10665 # instead of lib<name>.a to let people know that these are not
10666 # typical AIX shared libraries.
10667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10668 else
10669 # We preserve .a as extension for shared libraries through AIX4.2
10670 # and later when we are not doing run time linking.
10671 library_names_spec='${libname}${release}.a $libname.a'
10672 soname_spec='${libname}${release}${shared_ext}$major'
10673 fi
10674 shlibpath_var=LIBPATH
10675 fi
10676 ;;
10677
10678 amigaos*)
10679 case $host_cpu in
10680 powerpc)
10681 # Since July 2007 AmigaOS4 officially supports .so libraries.
10682 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10684 ;;
10685 m68k)
10686 library_names_spec='$libname.ixlibrary $libname.a'
10687 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10688 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'
10689 ;;
10690 esac
10691 ;;
10692
10693 beos*)
10694 library_names_spec='${libname}${shared_ext}'
10695 dynamic_linker="$host_os ld.so"
10696 shlibpath_var=LIBRARY_PATH
10697 ;;
10698
10699 bsdi[45]*)
10700 version_type=linux
10701 need_version=no
10702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10703 soname_spec='${libname}${release}${shared_ext}$major'
10704 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10705 shlibpath_var=LD_LIBRARY_PATH
10706 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10707 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10708 # the default ld.so.conf also contains /usr/contrib/lib and
10709 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10710 # libtool to hard-code these into programs
10711 ;;
10712
10713 cygwin* | mingw* | pw32* | cegcc*)
10714 version_type=windows
10715 shrext_cmds=".dll"
10716 need_version=no
10717 need_lib_prefix=no
10718
10719 case $GCC,$host_os in
10720 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10721 library_names_spec='$libname.dll.a'
10722 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10723 postinstall_cmds='base_file=`basename \${file}`~
10724 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10725 dldir=$destdir/`dirname \$dlpath`~
10726 test -d \$dldir || mkdir -p \$dldir~
10727 $install_prog $dir/$dlname \$dldir/$dlname~
10728 chmod a+x \$dldir/$dlname~
10729 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10730 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10731 fi'
10732 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10733 dlpath=$dir/\$dldll~
10734 $RM \$dlpath'
10735 shlibpath_overrides_runpath=yes
10736
10737 case $host_os in
10738 cygwin*)
10739 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10740 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10741
10742 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10743 ;;
10744 mingw* | cegcc*)
10745 # MinGW DLLs use traditional 'lib' prefix
10746 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10747 ;;
10748 pw32*)
10749 # pw32 DLLs use 'pw' prefix rather than 'lib'
10750 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10751 ;;
10752 esac
10753 ;;
10754
10755 *)
10756 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10757 ;;
10758 esac
10759 dynamic_linker='Win32 ld.exe'
10760 # FIXME: first we should search . and the directory the executable is in
10761 shlibpath_var=PATH
10762 ;;
10763
10764 darwin* | rhapsody*)
10765 dynamic_linker="$host_os dyld"
10766 version_type=darwin
10767 need_lib_prefix=no
10768 need_version=no
10769 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10770 soname_spec='${libname}${release}${major}$shared_ext'
10771 shlibpath_overrides_runpath=yes
10772 shlibpath_var=DYLD_LIBRARY_PATH
10773 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10774
10775 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10776 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10777 ;;
10778
10779 dgux*)
10780 version_type=linux
10781 need_lib_prefix=no
10782 need_version=no
10783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10784 soname_spec='${libname}${release}${shared_ext}$major'
10785 shlibpath_var=LD_LIBRARY_PATH
10786 ;;
10787
10788 freebsd* | dragonfly*)
10789 # DragonFly does not have aout. When/if they implement a new
10790 # versioning mechanism, adjust this.
10791 if test -x /usr/bin/objformat; then
10792 objformat=`/usr/bin/objformat`
10793 else
10794 case $host_os in
10795 freebsd[23].*) objformat=aout ;;
10796 *) objformat=elf ;;
10797 esac
10798 fi
10799 version_type=freebsd-$objformat
10800 case $version_type in
10801 freebsd-elf*)
10802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10803 need_version=no
10804 need_lib_prefix=no
10805 ;;
10806 freebsd-*)
10807 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10808 need_version=yes
10809 ;;
10810 esac
10811 shlibpath_var=LD_LIBRARY_PATH
10812 case $host_os in
10813 freebsd2.*)
10814 shlibpath_overrides_runpath=yes
10815 ;;
10816 freebsd3.[01]* | freebsdelf3.[01]*)
10817 shlibpath_overrides_runpath=yes
10818 hardcode_into_libs=yes
10819 ;;
10820 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10821 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10822 shlibpath_overrides_runpath=no
10823 hardcode_into_libs=yes
10824 ;;
10825 *) # from 4.6 on, and DragonFly
10826 shlibpath_overrides_runpath=yes
10827 hardcode_into_libs=yes
10828 ;;
10829 esac
10830 ;;
10831
10832 gnu*)
10833 version_type=linux
10834 need_lib_prefix=no
10835 need_version=no
10836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10837 soname_spec='${libname}${release}${shared_ext}$major'
10838 shlibpath_var=LD_LIBRARY_PATH
10839 hardcode_into_libs=yes
10840 ;;
10841
10842 haiku*)
10843 version_type=linux
10844 need_lib_prefix=no
10845 need_version=no
10846 dynamic_linker="$host_os runtime_loader"
10847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10848 soname_spec='${libname}${release}${shared_ext}$major'
10849 shlibpath_var=LIBRARY_PATH
10850 shlibpath_overrides_runpath=yes
10851 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10852 hardcode_into_libs=yes
10853 ;;
10854
10855 hpux9* | hpux10* | hpux11*)
10856 # Give a soname corresponding to the major version so that dld.sl refuses to
10857 # link against other versions.
10858 version_type=sunos
10859 need_lib_prefix=no
10860 need_version=no
10861 case $host_cpu in
10862 ia64*)
10863 shrext_cmds='.so'
10864 hardcode_into_libs=yes
10865 dynamic_linker="$host_os dld.so"
10866 shlibpath_var=LD_LIBRARY_PATH
10867 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10869 soname_spec='${libname}${release}${shared_ext}$major'
10870 if test "X$HPUX_IA64_MODE" = X32; then
10871 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10872 else
10873 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10874 fi
10875 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10876 ;;
10877 hppa*64*)
10878 shrext_cmds='.sl'
10879 hardcode_into_libs=yes
10880 dynamic_linker="$host_os dld.sl"
10881 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10882 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10884 soname_spec='${libname}${release}${shared_ext}$major'
10885 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10886 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10887 ;;
10888 *)
10889 shrext_cmds='.sl'
10890 dynamic_linker="$host_os dld.sl"
10891 shlibpath_var=SHLIB_PATH
10892 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10894 soname_spec='${libname}${release}${shared_ext}$major'
10895 ;;
10896 esac
10897 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10898 postinstall_cmds='chmod 555 $lib'
10899 # or fails outright, so override atomically:
10900 install_override_mode=555
10901 ;;
10902
10903 interix[3-9]*)
10904 version_type=linux
10905 need_lib_prefix=no
10906 need_version=no
10907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10908 soname_spec='${libname}${release}${shared_ext}$major'
10909 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10910 shlibpath_var=LD_LIBRARY_PATH
10911 shlibpath_overrides_runpath=no
10912 hardcode_into_libs=yes
10913 ;;
10914
10915 irix5* | irix6* | nonstopux*)
10916 case $host_os in
10917 nonstopux*) version_type=nonstopux ;;
10918 *)
10919 if test "$lt_cv_prog_gnu_ld" = yes; then
10920 version_type=linux
10921 else
10922 version_type=irix
10923 fi ;;
10924 esac
10925 need_lib_prefix=no
10926 need_version=no
10927 soname_spec='${libname}${release}${shared_ext}$major'
10928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10929 case $host_os in
10930 irix5* | nonstopux*)
10931 libsuff= shlibsuff=
10932 ;;
10933 *)
10934 case $LD in # libtool.m4 will add one of these switches to LD
10935 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10936 libsuff= shlibsuff= libmagic=32-bit;;
10937 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10938 libsuff=32 shlibsuff=N32 libmagic=N32;;
10939 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10940 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10941 *) libsuff= shlibsuff= libmagic=never-match;;
10942 esac
10943 ;;
10944 esac
10945 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10946 shlibpath_overrides_runpath=no
10947 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10948 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10949 hardcode_into_libs=yes
10950 ;;
10951
10952 # No shared lib support for Linux oldld, aout, or coff.
10953 linux*oldld* | linux*aout* | linux*coff*)
10954 dynamic_linker=no
10955 ;;
10956
10957 # This must be Linux ELF.
10958
10959 # uclinux* changes (here and below) have been submitted to the libtool
10960 # project, but have not yet been accepted: they are GCC-local changes
10961 # for the time being. (See
10962 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10963 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
10964 version_type=linux
10965 need_lib_prefix=no
10966 need_version=no
10967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10968 soname_spec='${libname}${release}${shared_ext}$major'
10969 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10970 shlibpath_var=LD_LIBRARY_PATH
10971 shlibpath_overrides_runpath=no
10972
10973 # Some binutils ld are patched to set DT_RUNPATH
10974 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10975 $as_echo_n "(cached) " >&6
10976 else
10977 lt_cv_shlibpath_overrides_runpath=no
10978 save_LDFLAGS=$LDFLAGS
10979 save_libdir=$libdir
10980 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10981 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10983 /* end confdefs.h. */
10984
10985 int
10986 main ()
10987 {
10988
10989 ;
10990 return 0;
10991 }
10992 _ACEOF
10993 if ac_fn_c_try_link "$LINENO"; then :
10994 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10995 lt_cv_shlibpath_overrides_runpath=yes
10996 fi
10997 fi
10998 rm -f core conftest.err conftest.$ac_objext \
10999 conftest$ac_exeext conftest.$ac_ext
11000 LDFLAGS=$save_LDFLAGS
11001 libdir=$save_libdir
11002
11003 fi
11004
11005 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11006
11007 # This implies no fast_install, which is unacceptable.
11008 # Some rework will be needed to allow for fast_install
11009 # before this can be enabled.
11010 hardcode_into_libs=yes
11011
11012 # Append ld.so.conf contents to the search path
11013 if test -f /etc/ld.so.conf; then
11014 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' ' '`
11015 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11016 fi
11017
11018 # We used to test for /lib/ld.so.1 and disable shared libraries on
11019 # powerpc, because MkLinux only supported shared libraries with the
11020 # GNU dynamic linker. Since this was broken with cross compilers,
11021 # most powerpc-linux boxes support dynamic linking these days and
11022 # people can always --disable-shared, the test was removed, and we
11023 # assume the GNU/Linux dynamic linker is in use.
11024 dynamic_linker='GNU/Linux ld.so'
11025 ;;
11026
11027 netbsd*)
11028 version_type=sunos
11029 need_lib_prefix=no
11030 need_version=no
11031 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11033 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11034 dynamic_linker='NetBSD (a.out) ld.so'
11035 else
11036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11037 soname_spec='${libname}${release}${shared_ext}$major'
11038 dynamic_linker='NetBSD ld.elf_so'
11039 fi
11040 shlibpath_var=LD_LIBRARY_PATH
11041 shlibpath_overrides_runpath=yes
11042 hardcode_into_libs=yes
11043 ;;
11044
11045 newsos6)
11046 version_type=linux
11047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11048 shlibpath_var=LD_LIBRARY_PATH
11049 shlibpath_overrides_runpath=yes
11050 ;;
11051
11052 *nto* | *qnx*)
11053 version_type=qnx
11054 need_lib_prefix=no
11055 need_version=no
11056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11057 soname_spec='${libname}${release}${shared_ext}$major'
11058 shlibpath_var=LD_LIBRARY_PATH
11059 shlibpath_overrides_runpath=no
11060 hardcode_into_libs=yes
11061 dynamic_linker='ldqnx.so'
11062 ;;
11063
11064 openbsd*)
11065 version_type=sunos
11066 sys_lib_dlsearch_path_spec="/usr/lib"
11067 need_lib_prefix=no
11068 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11069 case $host_os in
11070 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11071 *) need_version=no ;;
11072 esac
11073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11074 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11075 shlibpath_var=LD_LIBRARY_PATH
11076 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11077 case $host_os in
11078 openbsd2.[89] | openbsd2.[89].*)
11079 shlibpath_overrides_runpath=no
11080 ;;
11081 *)
11082 shlibpath_overrides_runpath=yes
11083 ;;
11084 esac
11085 else
11086 shlibpath_overrides_runpath=yes
11087 fi
11088 ;;
11089
11090 os2*)
11091 libname_spec='$name'
11092 shrext_cmds=".dll"
11093 need_lib_prefix=no
11094 library_names_spec='$libname${shared_ext} $libname.a'
11095 dynamic_linker='OS/2 ld.exe'
11096 shlibpath_var=LIBPATH
11097 ;;
11098
11099 osf3* | osf4* | osf5*)
11100 version_type=osf
11101 need_lib_prefix=no
11102 need_version=no
11103 soname_spec='${libname}${release}${shared_ext}$major'
11104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11105 shlibpath_var=LD_LIBRARY_PATH
11106 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11107 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11108 ;;
11109
11110 rdos*)
11111 dynamic_linker=no
11112 ;;
11113
11114 solaris*)
11115 version_type=linux
11116 need_lib_prefix=no
11117 need_version=no
11118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11119 soname_spec='${libname}${release}${shared_ext}$major'
11120 shlibpath_var=LD_LIBRARY_PATH
11121 shlibpath_overrides_runpath=yes
11122 hardcode_into_libs=yes
11123 # ldd complains unless libraries are executable
11124 postinstall_cmds='chmod +x $lib'
11125 ;;
11126
11127 sunos4*)
11128 version_type=sunos
11129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11130 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11131 shlibpath_var=LD_LIBRARY_PATH
11132 shlibpath_overrides_runpath=yes
11133 if test "$with_gnu_ld" = yes; then
11134 need_lib_prefix=no
11135 fi
11136 need_version=yes
11137 ;;
11138
11139 sysv4 | sysv4.3*)
11140 version_type=linux
11141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11142 soname_spec='${libname}${release}${shared_ext}$major'
11143 shlibpath_var=LD_LIBRARY_PATH
11144 case $host_vendor in
11145 sni)
11146 shlibpath_overrides_runpath=no
11147 need_lib_prefix=no
11148 runpath_var=LD_RUN_PATH
11149 ;;
11150 siemens)
11151 need_lib_prefix=no
11152 ;;
11153 motorola)
11154 need_lib_prefix=no
11155 need_version=no
11156 shlibpath_overrides_runpath=no
11157 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11158 ;;
11159 esac
11160 ;;
11161
11162 sysv4*MP*)
11163 if test -d /usr/nec ;then
11164 version_type=linux
11165 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11166 soname_spec='$libname${shared_ext}.$major'
11167 shlibpath_var=LD_LIBRARY_PATH
11168 fi
11169 ;;
11170
11171 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11172 version_type=freebsd-elf
11173 need_lib_prefix=no
11174 need_version=no
11175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11176 soname_spec='${libname}${release}${shared_ext}$major'
11177 shlibpath_var=LD_LIBRARY_PATH
11178 shlibpath_overrides_runpath=yes
11179 hardcode_into_libs=yes
11180 if test "$with_gnu_ld" = yes; then
11181 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11182 else
11183 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11184 case $host_os in
11185 sco3.2v5*)
11186 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11187 ;;
11188 esac
11189 fi
11190 sys_lib_dlsearch_path_spec='/usr/lib'
11191 ;;
11192
11193 tpf*)
11194 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11195 version_type=linux
11196 need_lib_prefix=no
11197 need_version=no
11198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11199 shlibpath_var=LD_LIBRARY_PATH
11200 shlibpath_overrides_runpath=no
11201 hardcode_into_libs=yes
11202 ;;
11203
11204 uts4*)
11205 version_type=linux
11206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11207 soname_spec='${libname}${release}${shared_ext}$major'
11208 shlibpath_var=LD_LIBRARY_PATH
11209 ;;
11210
11211 *)
11212 dynamic_linker=no
11213 ;;
11214 esac
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11216 $as_echo "$dynamic_linker" >&6; }
11217 test "$dynamic_linker" = no && can_build_shared=no
11218
11219 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11220 if test "$GCC" = yes; then
11221 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11222 fi
11223
11224 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11225 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11226 fi
11227 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11228 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11229 fi
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11323 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11324 hardcode_action=
11325 if test -n "$hardcode_libdir_flag_spec" ||
11326 test -n "$runpath_var" ||
11327 test "X$hardcode_automatic" = "Xyes" ; then
11328
11329 # We can hardcode non-existent directories.
11330 if test "$hardcode_direct" != no &&
11331 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11332 # have to relink, otherwise we might link with an installed library
11333 # when we should be linking with a yet-to-be-installed one
11334 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11335 test "$hardcode_minus_L" != no; then
11336 # Linking always hardcodes the temporary library directory.
11337 hardcode_action=relink
11338 else
11339 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11340 hardcode_action=immediate
11341 fi
11342 else
11343 # We cannot hardcode anything, or else we can only hardcode existing
11344 # directories.
11345 hardcode_action=unsupported
11346 fi
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11348 $as_echo "$hardcode_action" >&6; }
11349
11350 if test "$hardcode_action" = relink ||
11351 test "$inherit_rpath" = yes; then
11352 # Fast installation is not supported
11353 enable_fast_install=no
11354 elif test "$shlibpath_overrides_runpath" = yes ||
11355 test "$enable_shared" = no; then
11356 # Fast installation is not necessary
11357 enable_fast_install=needless
11358 fi
11359
11360
11361
11362
11363
11364
11365 if test "x$enable_dlopen" != xyes; then
11366 enable_dlopen=unknown
11367 enable_dlopen_self=unknown
11368 enable_dlopen_self_static=unknown
11369 else
11370 lt_cv_dlopen=no
11371 lt_cv_dlopen_libs=
11372
11373 case $host_os in
11374 beos*)
11375 lt_cv_dlopen="load_add_on"
11376 lt_cv_dlopen_libs=
11377 lt_cv_dlopen_self=yes
11378 ;;
11379
11380 mingw* | pw32* | cegcc*)
11381 lt_cv_dlopen="LoadLibrary"
11382 lt_cv_dlopen_libs=
11383 ;;
11384
11385 cygwin*)
11386 lt_cv_dlopen="dlopen"
11387 lt_cv_dlopen_libs=
11388 ;;
11389
11390 darwin*)
11391 # if libdl is installed we need to link against it
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11393 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11394 if ${ac_cv_lib_dl_dlopen+:} false; then :
11395 $as_echo_n "(cached) " >&6
11396 else
11397 ac_check_lib_save_LIBS=$LIBS
11398 LIBS="-ldl $LIBS"
11399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11400 /* end confdefs.h. */
11401
11402 /* Override any GCC internal prototype to avoid an error.
11403 Use char because int might match the return type of a GCC
11404 builtin and then its argument prototype would still apply. */
11405 #ifdef __cplusplus
11406 extern "C"
11407 #endif
11408 char dlopen ();
11409 int
11410 main ()
11411 {
11412 return dlopen ();
11413 ;
11414 return 0;
11415 }
11416 _ACEOF
11417 if ac_fn_c_try_link "$LINENO"; then :
11418 ac_cv_lib_dl_dlopen=yes
11419 else
11420 ac_cv_lib_dl_dlopen=no
11421 fi
11422 rm -f core conftest.err conftest.$ac_objext \
11423 conftest$ac_exeext conftest.$ac_ext
11424 LIBS=$ac_check_lib_save_LIBS
11425 fi
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11427 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11428 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11429 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11430 else
11431
11432 lt_cv_dlopen="dyld"
11433 lt_cv_dlopen_libs=
11434 lt_cv_dlopen_self=yes
11435
11436 fi
11437
11438 ;;
11439
11440 *)
11441 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11442 if test "x$ac_cv_func_shl_load" = xyes; then :
11443 lt_cv_dlopen="shl_load"
11444 else
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11446 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11447 if ${ac_cv_lib_dld_shl_load+:} false; then :
11448 $as_echo_n "(cached) " >&6
11449 else
11450 ac_check_lib_save_LIBS=$LIBS
11451 LIBS="-ldld $LIBS"
11452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11453 /* end confdefs.h. */
11454
11455 /* Override any GCC internal prototype to avoid an error.
11456 Use char because int might match the return type of a GCC
11457 builtin and then its argument prototype would still apply. */
11458 #ifdef __cplusplus
11459 extern "C"
11460 #endif
11461 char shl_load ();
11462 int
11463 main ()
11464 {
11465 return shl_load ();
11466 ;
11467 return 0;
11468 }
11469 _ACEOF
11470 if ac_fn_c_try_link "$LINENO"; then :
11471 ac_cv_lib_dld_shl_load=yes
11472 else
11473 ac_cv_lib_dld_shl_load=no
11474 fi
11475 rm -f core conftest.err conftest.$ac_objext \
11476 conftest$ac_exeext conftest.$ac_ext
11477 LIBS=$ac_check_lib_save_LIBS
11478 fi
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11480 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11481 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11482 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11483 else
11484 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11485 if test "x$ac_cv_func_dlopen" = xyes; then :
11486 lt_cv_dlopen="dlopen"
11487 else
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11489 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11490 if ${ac_cv_lib_dl_dlopen+:} false; then :
11491 $as_echo_n "(cached) " >&6
11492 else
11493 ac_check_lib_save_LIBS=$LIBS
11494 LIBS="-ldl $LIBS"
11495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11496 /* end confdefs.h. */
11497
11498 /* Override any GCC internal prototype to avoid an error.
11499 Use char because int might match the return type of a GCC
11500 builtin and then its argument prototype would still apply. */
11501 #ifdef __cplusplus
11502 extern "C"
11503 #endif
11504 char dlopen ();
11505 int
11506 main ()
11507 {
11508 return dlopen ();
11509 ;
11510 return 0;
11511 }
11512 _ACEOF
11513 if ac_fn_c_try_link "$LINENO"; then :
11514 ac_cv_lib_dl_dlopen=yes
11515 else
11516 ac_cv_lib_dl_dlopen=no
11517 fi
11518 rm -f core conftest.err conftest.$ac_objext \
11519 conftest$ac_exeext conftest.$ac_ext
11520 LIBS=$ac_check_lib_save_LIBS
11521 fi
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11523 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11524 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11525 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11526 else
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11528 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11529 if ${ac_cv_lib_svld_dlopen+:} false; then :
11530 $as_echo_n "(cached) " >&6
11531 else
11532 ac_check_lib_save_LIBS=$LIBS
11533 LIBS="-lsvld $LIBS"
11534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11535 /* end confdefs.h. */
11536
11537 /* Override any GCC internal prototype to avoid an error.
11538 Use char because int might match the return type of a GCC
11539 builtin and then its argument prototype would still apply. */
11540 #ifdef __cplusplus
11541 extern "C"
11542 #endif
11543 char dlopen ();
11544 int
11545 main ()
11546 {
11547 return dlopen ();
11548 ;
11549 return 0;
11550 }
11551 _ACEOF
11552 if ac_fn_c_try_link "$LINENO"; then :
11553 ac_cv_lib_svld_dlopen=yes
11554 else
11555 ac_cv_lib_svld_dlopen=no
11556 fi
11557 rm -f core conftest.err conftest.$ac_objext \
11558 conftest$ac_exeext conftest.$ac_ext
11559 LIBS=$ac_check_lib_save_LIBS
11560 fi
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11562 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11563 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11564 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11565 else
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11567 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11568 if ${ac_cv_lib_dld_dld_link+:} false; then :
11569 $as_echo_n "(cached) " >&6
11570 else
11571 ac_check_lib_save_LIBS=$LIBS
11572 LIBS="-ldld $LIBS"
11573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11574 /* end confdefs.h. */
11575
11576 /* Override any GCC internal prototype to avoid an error.
11577 Use char because int might match the return type of a GCC
11578 builtin and then its argument prototype would still apply. */
11579 #ifdef __cplusplus
11580 extern "C"
11581 #endif
11582 char dld_link ();
11583 int
11584 main ()
11585 {
11586 return dld_link ();
11587 ;
11588 return 0;
11589 }
11590 _ACEOF
11591 if ac_fn_c_try_link "$LINENO"; then :
11592 ac_cv_lib_dld_dld_link=yes
11593 else
11594 ac_cv_lib_dld_dld_link=no
11595 fi
11596 rm -f core conftest.err conftest.$ac_objext \
11597 conftest$ac_exeext conftest.$ac_ext
11598 LIBS=$ac_check_lib_save_LIBS
11599 fi
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11601 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11602 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11603 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11604 fi
11605
11606
11607 fi
11608
11609
11610 fi
11611
11612
11613 fi
11614
11615
11616 fi
11617
11618
11619 fi
11620
11621 ;;
11622 esac
11623
11624 if test "x$lt_cv_dlopen" != xno; then
11625 enable_dlopen=yes
11626 else
11627 enable_dlopen=no
11628 fi
11629
11630 case $lt_cv_dlopen in
11631 dlopen)
11632 save_CPPFLAGS="$CPPFLAGS"
11633 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11634
11635 save_LDFLAGS="$LDFLAGS"
11636 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11637
11638 save_LIBS="$LIBS"
11639 LIBS="$lt_cv_dlopen_libs $LIBS"
11640
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11642 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11643 if ${lt_cv_dlopen_self+:} false; then :
11644 $as_echo_n "(cached) " >&6
11645 else
11646 if test "$cross_compiling" = yes; then :
11647 lt_cv_dlopen_self=cross
11648 else
11649 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11650 lt_status=$lt_dlunknown
11651 cat > conftest.$ac_ext <<_LT_EOF
11652 #line 11652 "configure"
11653 #include "confdefs.h"
11654
11655 #if HAVE_DLFCN_H
11656 #include <dlfcn.h>
11657 #endif
11658
11659 #include <stdio.h>
11660
11661 #ifdef RTLD_GLOBAL
11662 # define LT_DLGLOBAL RTLD_GLOBAL
11663 #else
11664 # ifdef DL_GLOBAL
11665 # define LT_DLGLOBAL DL_GLOBAL
11666 # else
11667 # define LT_DLGLOBAL 0
11668 # endif
11669 #endif
11670
11671 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11672 find out it does not work in some platform. */
11673 #ifndef LT_DLLAZY_OR_NOW
11674 # ifdef RTLD_LAZY
11675 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11676 # else
11677 # ifdef DL_LAZY
11678 # define LT_DLLAZY_OR_NOW DL_LAZY
11679 # else
11680 # ifdef RTLD_NOW
11681 # define LT_DLLAZY_OR_NOW RTLD_NOW
11682 # else
11683 # ifdef DL_NOW
11684 # define LT_DLLAZY_OR_NOW DL_NOW
11685 # else
11686 # define LT_DLLAZY_OR_NOW 0
11687 # endif
11688 # endif
11689 # endif
11690 # endif
11691 #endif
11692
11693 /* When -fvisbility=hidden is used, assume the code has been annotated
11694 correspondingly for the symbols needed. */
11695 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11696 void fnord () __attribute__((visibility("default")));
11697 #endif
11698
11699 void fnord () { int i=42; }
11700 int main ()
11701 {
11702 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11703 int status = $lt_dlunknown;
11704
11705 if (self)
11706 {
11707 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11708 else
11709 {
11710 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11711 else puts (dlerror ());
11712 }
11713 /* dlclose (self); */
11714 }
11715 else
11716 puts (dlerror ());
11717
11718 return status;
11719 }
11720 _LT_EOF
11721 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11722 (eval $ac_link) 2>&5
11723 ac_status=$?
11724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11725 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11726 (./conftest; exit; ) >&5 2>/dev/null
11727 lt_status=$?
11728 case x$lt_status in
11729 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11730 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11731 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11732 esac
11733 else :
11734 # compilation failed
11735 lt_cv_dlopen_self=no
11736 fi
11737 fi
11738 rm -fr conftest*
11739
11740
11741 fi
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11743 $as_echo "$lt_cv_dlopen_self" >&6; }
11744
11745 if test "x$lt_cv_dlopen_self" = xyes; then
11746 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11748 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11749 if ${lt_cv_dlopen_self_static+:} false; then :
11750 $as_echo_n "(cached) " >&6
11751 else
11752 if test "$cross_compiling" = yes; then :
11753 lt_cv_dlopen_self_static=cross
11754 else
11755 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11756 lt_status=$lt_dlunknown
11757 cat > conftest.$ac_ext <<_LT_EOF
11758 #line 11758 "configure"
11759 #include "confdefs.h"
11760
11761 #if HAVE_DLFCN_H
11762 #include <dlfcn.h>
11763 #endif
11764
11765 #include <stdio.h>
11766
11767 #ifdef RTLD_GLOBAL
11768 # define LT_DLGLOBAL RTLD_GLOBAL
11769 #else
11770 # ifdef DL_GLOBAL
11771 # define LT_DLGLOBAL DL_GLOBAL
11772 # else
11773 # define LT_DLGLOBAL 0
11774 # endif
11775 #endif
11776
11777 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11778 find out it does not work in some platform. */
11779 #ifndef LT_DLLAZY_OR_NOW
11780 # ifdef RTLD_LAZY
11781 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11782 # else
11783 # ifdef DL_LAZY
11784 # define LT_DLLAZY_OR_NOW DL_LAZY
11785 # else
11786 # ifdef RTLD_NOW
11787 # define LT_DLLAZY_OR_NOW RTLD_NOW
11788 # else
11789 # ifdef DL_NOW
11790 # define LT_DLLAZY_OR_NOW DL_NOW
11791 # else
11792 # define LT_DLLAZY_OR_NOW 0
11793 # endif
11794 # endif
11795 # endif
11796 # endif
11797 #endif
11798
11799 /* When -fvisbility=hidden is used, assume the code has been annotated
11800 correspondingly for the symbols needed. */
11801 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11802 void fnord () __attribute__((visibility("default")));
11803 #endif
11804
11805 void fnord () { int i=42; }
11806 int main ()
11807 {
11808 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11809 int status = $lt_dlunknown;
11810
11811 if (self)
11812 {
11813 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11814 else
11815 {
11816 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11817 else puts (dlerror ());
11818 }
11819 /* dlclose (self); */
11820 }
11821 else
11822 puts (dlerror ());
11823
11824 return status;
11825 }
11826 _LT_EOF
11827 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11828 (eval $ac_link) 2>&5
11829 ac_status=$?
11830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11831 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11832 (./conftest; exit; ) >&5 2>/dev/null
11833 lt_status=$?
11834 case x$lt_status in
11835 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11836 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11837 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11838 esac
11839 else :
11840 # compilation failed
11841 lt_cv_dlopen_self_static=no
11842 fi
11843 fi
11844 rm -fr conftest*
11845
11846
11847 fi
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11849 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11850 fi
11851
11852 CPPFLAGS="$save_CPPFLAGS"
11853 LDFLAGS="$save_LDFLAGS"
11854 LIBS="$save_LIBS"
11855 ;;
11856 esac
11857
11858 case $lt_cv_dlopen_self in
11859 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11860 *) enable_dlopen_self=unknown ;;
11861 esac
11862
11863 case $lt_cv_dlopen_self_static in
11864 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11865 *) enable_dlopen_self_static=unknown ;;
11866 esac
11867 fi
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885 striplib=
11886 old_striplib=
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11888 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11889 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11890 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11891 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11893 $as_echo "yes" >&6; }
11894 else
11895 # FIXME - insert some real tests, host_os isn't really good enough
11896 case $host_os in
11897 darwin*)
11898 if test -n "$STRIP" ; then
11899 striplib="$STRIP -x"
11900 old_striplib="$STRIP -S"
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11902 $as_echo "yes" >&6; }
11903 else
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11905 $as_echo "no" >&6; }
11906 fi
11907 ;;
11908 *)
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11910 $as_echo "no" >&6; }
11911 ;;
11912 esac
11913 fi
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926 # Report which library types will actually be built
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11928 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11930 $as_echo "$can_build_shared" >&6; }
11931
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11933 $as_echo_n "checking whether to build shared libraries... " >&6; }
11934 test "$can_build_shared" = "no" && enable_shared=no
11935
11936 # On AIX, shared libraries and static libraries use the same namespace, and
11937 # are all built from PIC.
11938 case $host_os in
11939 aix3*)
11940 test "$enable_shared" = yes && enable_static=no
11941 if test -n "$RANLIB"; then
11942 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11943 postinstall_cmds='$RANLIB $lib'
11944 fi
11945 ;;
11946
11947 aix[4-9]*)
11948 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11949 test "$enable_shared" = yes && enable_static=no
11950 fi
11951 ;;
11952 esac
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11954 $as_echo "$enable_shared" >&6; }
11955
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11957 $as_echo_n "checking whether to build static libraries... " >&6; }
11958 # Make sure either enable_shared or enable_static is yes.
11959 test "$enable_shared" = yes || enable_static=yes
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11961 $as_echo "$enable_static" >&6; }
11962
11963
11964
11965
11966 fi
11967 ac_ext=c
11968 ac_cpp='$CPP $CPPFLAGS'
11969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11972
11973 CC="$lt_save_CC"
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987 ac_config_commands="$ac_config_commands libtool"
11988
11989
11990
11991
11992 # Only expand once:
11993
11994
11995
11996
11997
11998 gdc_save_DFLAGS=$GDCFLAGS
11999 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
12000
12001
12002 # Source file extension for D test sources.
12003 ac_ext=d
12004
12005 # Object file extension for compiled D test sources.
12006 objext=o
12007 objext_D=$objext
12008
12009 # Code to be used in simple compile tests
12010 lt_simple_compile_test_code="\
12011 module object;
12012 shared int some_variable = 0;
12013 "
12014
12015 # Code to be used in simple link tests
12016 lt_simple_link_test_code="\
12017 module object;
12018 extern(C) int main() { return 0; }
12019 "
12020
12021 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12022
12023
12024
12025
12026
12027
12028 # If no C compiler was specified, use CC.
12029 LTCC=${LTCC-"$CC"}
12030
12031 # If no C compiler flags were specified, use CFLAGS.
12032 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12033
12034 # Allow CC to be a program name with arguments.
12035 compiler=$CC
12036
12037
12038 # save warnings/boilerplate of simple test code
12039 ac_outfile=conftest.$ac_objext
12040 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12041 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12042 _lt_compiler_boilerplate=`cat conftest.err`
12043 $RM conftest*
12044
12045 ac_outfile=conftest.$ac_objext
12046 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12047 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12048 _lt_linker_boilerplate=`cat conftest.err`
12049 $RM -r conftest*
12050
12051
12052 # Allow CC to be a program name with arguments.
12053 lt_save_CC=$CC
12054 lt_save_CFLAGS=$CFLAGS
12055 lt_save_GCC=$GCC
12056 GCC=yes
12057 CC=${GDC-"gdc"}
12058 CFLAGS=$GDCFLAGS
12059 compiler=$CC
12060 compiler_D=$CC
12061 LD_D=$CC
12062 for cc_temp in $compiler""; do
12063 case $cc_temp in
12064 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12065 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12066 \-*) ;;
12067 *) break;;
12068 esac
12069 done
12070 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12071
12072
12073 # GDC did not exist at the time GCC didn't implicitly link libc in.
12074 archive_cmds_need_lc_D=no
12075
12076 old_archive_cmds_D=$old_archive_cmds
12077 reload_flag_D=$reload_flag
12078 reload_cmds_D=$reload_cmds
12079
12080 ## CAVEAT EMPTOR:
12081 ## There is no encapsulation within the following macros, do not change
12082 ## the running order or otherwise move them around unless you know exactly
12083 ## what you are doing...
12084 if test -n "$compiler"; then
12085
12086 lt_prog_compiler_no_builtin_flag_D=
12087
12088 if test "$GCC" = yes; then
12089 case $cc_basename in
12090 nvcc*)
12091 lt_prog_compiler_no_builtin_flag_D=' -Xcompiler -fno-builtin' ;;
12092 *)
12093 lt_prog_compiler_no_builtin_flag_D=' -fno-builtin' ;;
12094 esac
12095
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12097 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12098 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
12099 $as_echo_n "(cached) " >&6
12100 else
12101 lt_cv_prog_compiler_rtti_exceptions=no
12102 ac_outfile=conftest.$ac_objext
12103 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12104 lt_compiler_flag="-fno-rtti -fno-exceptions"
12105 # Insert the option either (1) after the last *FLAGS variable, or
12106 # (2) before a word containing "conftest.", or (3) at the end.
12107 # Note that $ac_compile itself does not contain backslashes and begins
12108 # with a dollar sign (not a hyphen), so the echo should work correctly.
12109 # The option is referenced via a variable to avoid confusing sed.
12110 lt_compile=`echo "$ac_compile" | $SED \
12111 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12112 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12113 -e 's:$: $lt_compiler_flag:'`
12114 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12115 (eval "$lt_compile" 2>conftest.err)
12116 ac_status=$?
12117 cat conftest.err >&5
12118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119 if (exit $ac_status) && test -s "$ac_outfile"; then
12120 # The compiler can only warn and ignore the option if not recognized
12121 # So say no if there are warnings other than the usual output.
12122 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12123 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12124 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12125 lt_cv_prog_compiler_rtti_exceptions=yes
12126 fi
12127 fi
12128 $RM conftest*
12129
12130 fi
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12132 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12133
12134 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12135 lt_prog_compiler_no_builtin_flag_D="$lt_prog_compiler_no_builtin_flag_D -fno-rtti -fno-exceptions"
12136 else
12137 :
12138 fi
12139
12140 fi
12141
12142
12143
12144 lt_prog_compiler_wl_D=
12145 lt_prog_compiler_pic_D=
12146 lt_prog_compiler_static_D=
12147
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12149 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12150
12151 if test "$GCC" = yes; then
12152 lt_prog_compiler_wl_D='-Wl,'
12153 lt_prog_compiler_static_D='-static'
12154
12155 case $host_os in
12156 aix*)
12157 # All AIX code is PIC.
12158 if test "$host_cpu" = ia64; then
12159 # AIX 5 now supports IA64 processor
12160 lt_prog_compiler_static_D='-Bstatic'
12161 fi
12162 lt_prog_compiler_pic_D='-fPIC'
12163 ;;
12164
12165 amigaos*)
12166 case $host_cpu in
12167 powerpc)
12168 # see comment about AmigaOS4 .so support
12169 lt_prog_compiler_pic_D='-fPIC'
12170 ;;
12171 m68k)
12172 # FIXME: we need at least 68020 code to build shared libraries, but
12173 # adding the `-m68020' flag to GCC prevents building anything better,
12174 # like `-m68040'.
12175 lt_prog_compiler_pic_D='-m68020 -resident32 -malways-restore-a4'
12176 ;;
12177 esac
12178 ;;
12179
12180 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12181 # PIC is the default for these OSes.
12182 ;;
12183
12184 mingw* | cygwin* | pw32* | os2* | cegcc*)
12185 # This hack is so that the source file can tell whether it is being
12186 # built for inclusion in a dll (and should export symbols for example).
12187 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12188 # (--disable-auto-import) libraries
12189 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12190 ;;
12191
12192 darwin* | rhapsody*)
12193 # PIC is the default on this platform
12194 # Common symbols not allowed in MH_DYLIB files
12195 lt_prog_compiler_pic_D='-fno-common'
12196 ;;
12197
12198 haiku*)
12199 # PIC is the default for Haiku.
12200 # The "-static" flag exists, but is broken.
12201 lt_prog_compiler_static_D=
12202 ;;
12203
12204 hpux*)
12205 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12206 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12207 # sets the default TLS model and affects inlining.
12208 case $host_cpu in
12209 hppa*64*)
12210 # +Z the default
12211 ;;
12212 *)
12213 lt_prog_compiler_pic_D='-fPIC'
12214 ;;
12215 esac
12216 ;;
12217
12218 interix[3-9]*)
12219 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12220 # Instead, we relocate shared libraries at runtime.
12221 ;;
12222
12223 msdosdjgpp*)
12224 # Just because we use GCC doesn't mean we suddenly get shared libraries
12225 # on systems that don't support them.
12226 lt_prog_compiler_can_build_shared_D=no
12227 enable_shared=no
12228 ;;
12229
12230 *nto* | *qnx*)
12231 # QNX uses GNU C++, but need to define -shared option too, otherwise
12232 # it will coredump.
12233 lt_prog_compiler_pic_D='-fPIC -shared'
12234 ;;
12235
12236 sysv4*MP*)
12237 if test -d /usr/nec; then
12238 lt_prog_compiler_pic_D=-Kconform_pic
12239 fi
12240 ;;
12241
12242 *)
12243 lt_prog_compiler_pic_D='-fPIC'
12244 ;;
12245 esac
12246
12247 case $cc_basename in
12248 nvcc*) # Cuda Compiler Driver 2.2
12249 lt_prog_compiler_wl_D='-Xlinker '
12250 lt_prog_compiler_pic_D='-Xcompiler -fPIC'
12251 ;;
12252 esac
12253 else
12254 # PORTME Check for flag to pass linker flags through the system compiler.
12255 case $host_os in
12256 aix*)
12257 lt_prog_compiler_wl_D='-Wl,'
12258 if test "$host_cpu" = ia64; then
12259 # AIX 5 now supports IA64 processor
12260 lt_prog_compiler_static_D='-Bstatic'
12261 else
12262 lt_prog_compiler_static_D='-bnso -bI:/lib/syscalls.exp'
12263 fi
12264 ;;
12265
12266 mingw* | cygwin* | pw32* | os2* | cegcc*)
12267 # This hack is so that the source file can tell whether it is being
12268 # built for inclusion in a dll (and should export symbols for example).
12269 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12270 ;;
12271
12272 hpux9* | hpux10* | hpux11*)
12273 lt_prog_compiler_wl_D='-Wl,'
12274 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12275 # not for PA HP-UX.
12276 case $host_cpu in
12277 hppa*64*|ia64*)
12278 # +Z the default
12279 ;;
12280 *)
12281 lt_prog_compiler_pic_D='+Z'
12282 ;;
12283 esac
12284 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12285 lt_prog_compiler_static_D='${wl}-a ${wl}archive'
12286 ;;
12287
12288 irix5* | irix6* | nonstopux*)
12289 lt_prog_compiler_wl_D='-Wl,'
12290 # PIC (with -KPIC) is the default.
12291 lt_prog_compiler_static_D='-non_shared'
12292 ;;
12293
12294 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12295 case $cc_basename in
12296 # old Intel for x86_64 which still supported -KPIC.
12297 ecc*)
12298 lt_prog_compiler_wl_D='-Wl,'
12299 lt_prog_compiler_pic_D='-KPIC'
12300 lt_prog_compiler_static_D='-static'
12301 ;;
12302 # icc used to be incompatible with GCC.
12303 # ICC 10 doesn't accept -KPIC any more.
12304 icc* | ifort*)
12305 lt_prog_compiler_wl_D='-Wl,'
12306 lt_prog_compiler_pic_D='-fPIC'
12307 lt_prog_compiler_static_D='-static'
12308 ;;
12309 # Lahey Fortran 8.1.
12310 lf95*)
12311 lt_prog_compiler_wl_D='-Wl,'
12312 lt_prog_compiler_pic_D='--shared'
12313 lt_prog_compiler_static_D='--static'
12314 ;;
12315 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12316 # Portland Group compilers (*not* the Pentium gcc compiler,
12317 # which looks to be a dead project)
12318 lt_prog_compiler_wl_D='-Wl,'
12319 lt_prog_compiler_pic_D='-fpic'
12320 lt_prog_compiler_static_D='-Bstatic'
12321 ;;
12322 ccc*)
12323 lt_prog_compiler_wl_D='-Wl,'
12324 # All Alpha code is PIC.
12325 lt_prog_compiler_static_D='-non_shared'
12326 ;;
12327 xl* | bgxl* | bgf* | mpixl*)
12328 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12329 lt_prog_compiler_wl_D='-Wl,'
12330 lt_prog_compiler_pic_D='-qpic'
12331 lt_prog_compiler_static_D='-qstaticlink'
12332 ;;
12333 *)
12334 case `$CC -V 2>&1 | sed 5q` in
12335 *Sun\ F* | *Sun*Fortran*)
12336 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12337 lt_prog_compiler_pic_D='-KPIC'
12338 lt_prog_compiler_static_D='-Bstatic'
12339 lt_prog_compiler_wl_D=''
12340 ;;
12341 *Sun\ C*)
12342 # Sun C 5.9
12343 lt_prog_compiler_pic_D='-KPIC'
12344 lt_prog_compiler_static_D='-Bstatic'
12345 lt_prog_compiler_wl_D='-Wl,'
12346 ;;
12347 esac
12348 ;;
12349 esac
12350 ;;
12351
12352 newsos6)
12353 lt_prog_compiler_pic_D='-KPIC'
12354 lt_prog_compiler_static_D='-Bstatic'
12355 ;;
12356
12357 *nto* | *qnx*)
12358 # QNX uses GNU C++, but need to define -shared option too, otherwise
12359 # it will coredump.
12360 lt_prog_compiler_pic_D='-fPIC -shared'
12361 ;;
12362
12363 osf3* | osf4* | osf5*)
12364 lt_prog_compiler_wl_D='-Wl,'
12365 # All OSF/1 code is PIC.
12366 lt_prog_compiler_static_D='-non_shared'
12367 ;;
12368
12369 rdos*)
12370 lt_prog_compiler_static_D='-non_shared'
12371 ;;
12372
12373 solaris*)
12374 lt_prog_compiler_pic_D='-KPIC'
12375 lt_prog_compiler_static_D='-Bstatic'
12376 case $cc_basename in
12377 f77* | f90* | f95*)
12378 lt_prog_compiler_wl_D='-Qoption ld ';;
12379 *)
12380 lt_prog_compiler_wl_D='-Wl,';;
12381 esac
12382 ;;
12383
12384 sunos4*)
12385 lt_prog_compiler_wl_D='-Qoption ld '
12386 lt_prog_compiler_pic_D='-PIC'
12387 lt_prog_compiler_static_D='-Bstatic'
12388 ;;
12389
12390 sysv4 | sysv4.2uw2* | sysv4.3*)
12391 lt_prog_compiler_wl_D='-Wl,'
12392 lt_prog_compiler_pic_D='-KPIC'
12393 lt_prog_compiler_static_D='-Bstatic'
12394 ;;
12395
12396 sysv4*MP*)
12397 if test -d /usr/nec ;then
12398 lt_prog_compiler_pic_D='-Kconform_pic'
12399 lt_prog_compiler_static_D='-Bstatic'
12400 fi
12401 ;;
12402
12403 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12404 lt_prog_compiler_wl_D='-Wl,'
12405 lt_prog_compiler_pic_D='-KPIC'
12406 lt_prog_compiler_static_D='-Bstatic'
12407 ;;
12408
12409 unicos*)
12410 lt_prog_compiler_wl_D='-Wl,'
12411 lt_prog_compiler_can_build_shared_D=no
12412 ;;
12413
12414 uts4*)
12415 lt_prog_compiler_pic_D='-pic'
12416 lt_prog_compiler_static_D='-Bstatic'
12417 ;;
12418
12419 *)
12420 lt_prog_compiler_can_build_shared_D=no
12421 ;;
12422 esac
12423 fi
12424
12425 case $host_os in
12426 # For platforms which do not support PIC, -DPIC is meaningless:
12427 *djgpp*)
12428 lt_prog_compiler_pic_D=
12429 ;;
12430 *)
12431 lt_prog_compiler_pic_D="$lt_prog_compiler_pic_D"
12432 ;;
12433 esac
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_D" >&5
12435 $as_echo "$lt_prog_compiler_pic_D" >&6; }
12436
12437
12438
12439 #
12440 # Check to make sure the PIC flag actually works.
12441 #
12442 if test -n "$lt_prog_compiler_pic_D"; then
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_D works" >&5
12444 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_D works... " >&6; }
12445 if ${lt_cv_prog_compiler_pic_works_D+:} false; then :
12446 $as_echo_n "(cached) " >&6
12447 else
12448 lt_cv_prog_compiler_pic_works_D=no
12449 ac_outfile=conftest.$ac_objext
12450 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12451 lt_compiler_flag="$lt_prog_compiler_pic_D"
12452 # Insert the option either (1) after the last *FLAGS variable, or
12453 # (2) before a word containing "conftest.", or (3) at the end.
12454 # Note that $ac_compile itself does not contain backslashes and begins
12455 # with a dollar sign (not a hyphen), so the echo should work correctly.
12456 # The option is referenced via a variable to avoid confusing sed.
12457 lt_compile=`echo "$ac_compile" | $SED \
12458 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12459 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12460 -e 's:$: $lt_compiler_flag:'`
12461 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12462 (eval "$lt_compile" 2>conftest.err)
12463 ac_status=$?
12464 cat conftest.err >&5
12465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466 if (exit $ac_status) && test -s "$ac_outfile"; then
12467 # The compiler can only warn and ignore the option if not recognized
12468 # So say no if there are warnings other than the usual output.
12469 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12470 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12471 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12472 lt_cv_prog_compiler_pic_works_D=yes
12473 fi
12474 fi
12475 $RM conftest*
12476
12477 fi
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_D" >&5
12479 $as_echo "$lt_cv_prog_compiler_pic_works_D" >&6; }
12480
12481 if test x"$lt_cv_prog_compiler_pic_works_D" = xyes; then
12482 case $lt_prog_compiler_pic_D in
12483 "" | " "*) ;;
12484 *) lt_prog_compiler_pic_D=" $lt_prog_compiler_pic_D" ;;
12485 esac
12486 else
12487 lt_prog_compiler_pic_D=
12488 lt_prog_compiler_can_build_shared_D=no
12489 fi
12490
12491 fi
12492
12493
12494
12495 #
12496 # Check to make sure the static flag actually works.
12497 #
12498 wl=$lt_prog_compiler_wl_D eval lt_tmp_static_flag=\"$lt_prog_compiler_static_D\"
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12500 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12501 if ${lt_cv_prog_compiler_static_works_D+:} false; then :
12502 $as_echo_n "(cached) " >&6
12503 else
12504 lt_cv_prog_compiler_static_works_D=no
12505 save_LDFLAGS="$LDFLAGS"
12506 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12507 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12508 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12509 # The linker can only warn and ignore the option if not recognized
12510 # So say no if there are warnings
12511 if test -s conftest.err; then
12512 # Append any errors to the config.log.
12513 cat conftest.err 1>&5
12514 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12515 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12516 if diff conftest.exp conftest.er2 >/dev/null; then
12517 lt_cv_prog_compiler_static_works_D=yes
12518 fi
12519 else
12520 lt_cv_prog_compiler_static_works_D=yes
12521 fi
12522 fi
12523 $RM -r conftest*
12524 LDFLAGS="$save_LDFLAGS"
12525
12526 fi
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_D" >&5
12528 $as_echo "$lt_cv_prog_compiler_static_works_D" >&6; }
12529
12530 if test x"$lt_cv_prog_compiler_static_works_D" = xyes; then
12531 :
12532 else
12533 lt_prog_compiler_static_D=
12534 fi
12535
12536
12537
12538
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12540 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12541 if ${lt_cv_prog_compiler_c_o_D+:} false; then :
12542 $as_echo_n "(cached) " >&6
12543 else
12544 lt_cv_prog_compiler_c_o_D=no
12545 $RM -r conftest 2>/dev/null
12546 mkdir conftest
12547 cd conftest
12548 mkdir out
12549 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12550
12551 lt_compiler_flag="-o out/conftest2.$ac_objext"
12552 # Insert the option either (1) after the last *FLAGS variable, or
12553 # (2) before a word containing "conftest.", or (3) at the end.
12554 # Note that $ac_compile itself does not contain backslashes and begins
12555 # with a dollar sign (not a hyphen), so the echo should work correctly.
12556 lt_compile=`echo "$ac_compile" | $SED \
12557 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12558 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12559 -e 's:$: $lt_compiler_flag:'`
12560 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12561 (eval "$lt_compile" 2>out/conftest.err)
12562 ac_status=$?
12563 cat out/conftest.err >&5
12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12566 then
12567 # The compiler can only warn and ignore the option if not recognized
12568 # So say no if there are warnings
12569 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12570 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12571 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12572 lt_cv_prog_compiler_c_o_D=yes
12573 fi
12574 fi
12575 chmod u+w . 2>&5
12576 $RM conftest*
12577 # SGI C++ compiler will create directory out/ii_files/ for
12578 # template instantiation
12579 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12580 $RM out/* && rmdir out
12581 cd ..
12582 $RM -r conftest
12583 $RM conftest*
12584
12585 fi
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12587 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12588
12589
12590
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12592 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12593 if ${lt_cv_prog_compiler_c_o_D+:} false; then :
12594 $as_echo_n "(cached) " >&6
12595 else
12596 lt_cv_prog_compiler_c_o_D=no
12597 $RM -r conftest 2>/dev/null
12598 mkdir conftest
12599 cd conftest
12600 mkdir out
12601 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12602
12603 lt_compiler_flag="-o out/conftest2.$ac_objext"
12604 # Insert the option either (1) after the last *FLAGS variable, or
12605 # (2) before a word containing "conftest.", or (3) at the end.
12606 # Note that $ac_compile itself does not contain backslashes and begins
12607 # with a dollar sign (not a hyphen), so the echo should work correctly.
12608 lt_compile=`echo "$ac_compile" | $SED \
12609 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12610 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12611 -e 's:$: $lt_compiler_flag:'`
12612 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12613 (eval "$lt_compile" 2>out/conftest.err)
12614 ac_status=$?
12615 cat out/conftest.err >&5
12616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12618 then
12619 # The compiler can only warn and ignore the option if not recognized
12620 # So say no if there are warnings
12621 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12622 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12623 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12624 lt_cv_prog_compiler_c_o_D=yes
12625 fi
12626 fi
12627 chmod u+w . 2>&5
12628 $RM conftest*
12629 # SGI C++ compiler will create directory out/ii_files/ for
12630 # template instantiation
12631 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12632 $RM out/* && rmdir out
12633 cd ..
12634 $RM -r conftest
12635 $RM conftest*
12636
12637 fi
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12639 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12640
12641
12642
12643
12644 hard_links="nottested"
12645 if test "$lt_cv_prog_compiler_c_o_D" = no && test "$need_locks" != no; then
12646 # do not overwrite the value of need_locks provided by the user
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12648 $as_echo_n "checking if we can lock with hard links... " >&6; }
12649 hard_links=yes
12650 $RM conftest*
12651 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12652 touch conftest.a
12653 ln conftest.a conftest.b 2>&5 || hard_links=no
12654 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12656 $as_echo "$hard_links" >&6; }
12657 if test "$hard_links" = no; then
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12659 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12660 need_locks=warn
12661 fi
12662 else
12663 need_locks=no
12664 fi
12665
12666
12667
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12669 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12670
12671 runpath_var=
12672 allow_undefined_flag_D=
12673 always_export_symbols_D=no
12674 archive_cmds_D=
12675 archive_expsym_cmds_D=
12676 compiler_needs_object_D=no
12677 enable_shared_with_static_runtimes_D=no
12678 export_dynamic_flag_spec_D=
12679 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12680 hardcode_automatic_D=no
12681 hardcode_direct_D=no
12682 hardcode_direct_absolute_D=no
12683 hardcode_libdir_flag_spec_D=
12684 hardcode_libdir_flag_spec_ld_D=
12685 hardcode_libdir_separator_D=
12686 hardcode_minus_L_D=no
12687 hardcode_shlibpath_var_D=unsupported
12688 inherit_rpath_D=no
12689 link_all_deplibs_D=unknown
12690 module_cmds_D=
12691 module_expsym_cmds_D=
12692 old_archive_from_new_cmds_D=
12693 old_archive_from_expsyms_cmds_D=
12694 thread_safe_flag_spec_D=
12695 whole_archive_flag_spec_D=
12696 # include_expsyms should be a list of space-separated symbols to be *always*
12697 # included in the symbol list
12698 include_expsyms_D=
12699 # exclude_expsyms can be an extended regexp of symbols to exclude
12700 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12701 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12702 # as well as any symbol that contains `d'.
12703 exclude_expsyms_D='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12704 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12705 # platforms (ab)use it in PIC code, but their linkers get confused if
12706 # the symbol is explicitly referenced. Since portable code cannot
12707 # rely on this symbol name, it's probably fine to never include it in
12708 # preloaded symbol tables.
12709 # Exclude shared library initialization/finalization symbols.
12710 extract_expsyms_cmds=
12711
12712 case $host_os in
12713 cygwin* | mingw* | pw32* | cegcc*)
12714 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12715 # When not using gcc, we currently assume that we are using
12716 # Microsoft Visual C++.
12717 if test "$GCC" != yes; then
12718 with_gnu_ld=no
12719 fi
12720 ;;
12721 interix*)
12722 # we just hope/assume this is gcc and not c89 (= MSVC++)
12723 with_gnu_ld=yes
12724 ;;
12725 openbsd*)
12726 with_gnu_ld=no
12727 ;;
12728 esac
12729
12730 ld_shlibs_D=yes
12731
12732 # On some targets, GNU ld is compatible enough with the native linker
12733 # that we're better off using the native interface for both.
12734 lt_use_gnu_ld_interface=no
12735 if test "$with_gnu_ld" = yes; then
12736 case $host_os in
12737 aix*)
12738 # The AIX port of GNU ld has always aspired to compatibility
12739 # with the native linker. However, as the warning in the GNU ld
12740 # block says, versions before 2.19.5* couldn't really create working
12741 # shared libraries, regardless of the interface used.
12742 case `$LD -v 2>&1` in
12743 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12744 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12745 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12746 *)
12747 lt_use_gnu_ld_interface=yes
12748 ;;
12749 esac
12750 ;;
12751 *)
12752 lt_use_gnu_ld_interface=yes
12753 ;;
12754 esac
12755 fi
12756
12757 if test "$lt_use_gnu_ld_interface" = yes; then
12758 # If archive_cmds runs LD, not CC, wlarc should be empty
12759 wlarc='${wl}'
12760
12761 # Set some defaults for GNU ld with shared library support. These
12762 # are reset later if shared libraries are not supported. Putting them
12763 # here allows them to be overridden if necessary.
12764 runpath_var=LD_RUN_PATH
12765 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12766 export_dynamic_flag_spec_D='${wl}--export-dynamic'
12767 # ancient GNU ld didn't support --whole-archive et. al.
12768 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12769 whole_archive_flag_spec_D="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12770 else
12771 whole_archive_flag_spec_D=
12772 fi
12773 supports_anon_versioning=no
12774 case `$LD -v 2>&1` in
12775 *GNU\ gold*) supports_anon_versioning=yes ;;
12776 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12777 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12778 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12779 *\ 2.11.*) ;; # other 2.11 versions
12780 *) supports_anon_versioning=yes ;;
12781 esac
12782
12783 # See if GNU ld supports shared libraries.
12784 case $host_os in
12785 aix[3-9]*)
12786 # On AIX/PPC, the GNU linker is very broken
12787 if test "$host_cpu" != ia64; then
12788 ld_shlibs_D=no
12789 cat <<_LT_EOF 1>&2
12790
12791 *** Warning: the GNU linker, at least up to release 2.19, is reported
12792 *** to be unable to reliably create shared libraries on AIX.
12793 *** Therefore, libtool is disabling shared libraries support. If you
12794 *** really care for shared libraries, you may want to install binutils
12795 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12796 *** You will then need to restart the configuration process.
12797
12798 _LT_EOF
12799 fi
12800 ;;
12801
12802 amigaos*)
12803 case $host_cpu in
12804 powerpc)
12805 # see comment about AmigaOS4 .so support
12806 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12807 archive_expsym_cmds_D=''
12808 ;;
12809 m68k)
12810 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)'
12811 hardcode_libdir_flag_spec_D='-L$libdir'
12812 hardcode_minus_L_D=yes
12813 ;;
12814 esac
12815 ;;
12816
12817 beos*)
12818 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12819 allow_undefined_flag_D=unsupported
12820 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12821 # support --undefined. This deserves some investigation. FIXME
12822 archive_cmds_D='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12823 else
12824 ld_shlibs_D=no
12825 fi
12826 ;;
12827
12828 cygwin* | mingw* | pw32* | cegcc*)
12829 # _LT_TAGVAR(hardcode_libdir_flag_spec, D) is actually meaningless,
12830 # as there is no search path for DLLs.
12831 hardcode_libdir_flag_spec_D='-L$libdir'
12832 export_dynamic_flag_spec_D='${wl}--export-all-symbols'
12833 allow_undefined_flag_D=unsupported
12834 always_export_symbols_D=no
12835 enable_shared_with_static_runtimes_D=yes
12836 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12837
12838 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12839 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12840 # If the export-symbols file already is a .def file (1st line
12841 # is EXPORTS), use it as is; otherwise, prepend...
12842 archive_expsym_cmds_D='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12843 cp $export_symbols $output_objdir/$soname.def;
12844 else
12845 echo EXPORTS > $output_objdir/$soname.def;
12846 cat $export_symbols >> $output_objdir/$soname.def;
12847 fi~
12848 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12849 else
12850 ld_shlibs_D=no
12851 fi
12852 ;;
12853
12854 haiku*)
12855 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12856 link_all_deplibs_D=yes
12857 ;;
12858
12859 interix[3-9]*)
12860 hardcode_direct_D=no
12861 hardcode_shlibpath_var_D=no
12862 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
12863 export_dynamic_flag_spec_D='${wl}-E'
12864 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12865 # Instead, shared libraries are loaded at an image base (0x10000000 by
12866 # default) and relocated if they conflict, which is a slow very memory
12867 # consuming and fragmenting process. To avoid this, we pick a random,
12868 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12869 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12870 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'
12871 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'
12872 ;;
12873
12874 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
12875 tmp_diet=no
12876 if test "$host_os" = linux-dietlibc; then
12877 case $cc_basename in
12878 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12879 esac
12880 fi
12881 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12882 && test "$tmp_diet" = no
12883 then
12884 tmp_addflag=' $pic_flag'
12885 tmp_sharedflag='-shared'
12886 case $cc_basename,$host_cpu in
12887 pgcc*) # Portland Group C compiler
12888 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'
12889 tmp_addflag=' $pic_flag'
12890 ;;
12891 pgf77* | pgf90* | pgf95* | pgfortran*)
12892 # Portland Group f77 and f90 compilers
12893 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'
12894 tmp_addflag=' $pic_flag -Mnomain' ;;
12895 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12896 tmp_addflag=' -i_dynamic' ;;
12897 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12898 tmp_addflag=' -i_dynamic -nofor_main' ;;
12899 ifc* | ifort*) # Intel Fortran compiler
12900 tmp_addflag=' -nofor_main' ;;
12901 lf95*) # Lahey Fortran 8.1
12902 whole_archive_flag_spec_D=
12903 tmp_sharedflag='--shared' ;;
12904 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12905 tmp_sharedflag='-qmkshrobj'
12906 tmp_addflag= ;;
12907 nvcc*) # Cuda Compiler Driver 2.2
12908 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'
12909 compiler_needs_object_D=yes
12910 ;;
12911 esac
12912 case `$CC -V 2>&1 | sed 5q` in
12913 *Sun\ C*) # Sun C 5.9
12914 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'
12915 compiler_needs_object_D=yes
12916 tmp_sharedflag='-G' ;;
12917 *Sun\ F*) # Sun Fortran 8.3
12918 tmp_sharedflag='-G' ;;
12919 esac
12920 archive_cmds_D='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12921
12922 if test "x$supports_anon_versioning" = xyes; then
12923 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
12924 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12925 echo "local: *; };" >> $output_objdir/$libname.ver~
12926 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12927 fi
12928
12929 case $cc_basename in
12930 xlf* | bgf* | bgxlf* | mpixlf*)
12931 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12932 whole_archive_flag_spec_D='--whole-archive$convenience --no-whole-archive'
12933 hardcode_libdir_flag_spec_D=
12934 hardcode_libdir_flag_spec_ld_D='-rpath $libdir'
12935 archive_cmds_D='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12936 if test "x$supports_anon_versioning" = xyes; then
12937 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
12938 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12939 echo "local: *; };" >> $output_objdir/$libname.ver~
12940 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12941 fi
12942 ;;
12943 esac
12944 else
12945 ld_shlibs_D=no
12946 fi
12947 ;;
12948
12949 netbsd*)
12950 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12951 archive_cmds_D='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12952 wlarc=
12953 else
12954 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12955 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12956 fi
12957 ;;
12958
12959 solaris*)
12960 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12961 ld_shlibs_D=no
12962 cat <<_LT_EOF 1>&2
12963
12964 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12965 *** create shared libraries on Solaris systems. Therefore, libtool
12966 *** is disabling shared libraries support. We urge you to upgrade GNU
12967 *** binutils to release 2.9.1 or newer. Another option is to modify
12968 *** your PATH or compiler configuration so that the native linker is
12969 *** used, and then restart.
12970
12971 _LT_EOF
12972 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12973 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12974 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12975 else
12976 ld_shlibs_D=no
12977 fi
12978 ;;
12979
12980 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12981 case `$LD -v 2>&1` in
12982 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12983 ld_shlibs_D=no
12984 cat <<_LT_EOF 1>&2
12985
12986 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12987 *** reliably create shared libraries on SCO systems. Therefore, libtool
12988 *** is disabling shared libraries support. We urge you to upgrade GNU
12989 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12990 *** your PATH or compiler configuration so that the native linker is
12991 *** used, and then restart.
12992
12993 _LT_EOF
12994 ;;
12995 *)
12996 # For security reasons, it is highly recommended that you always
12997 # use absolute paths for naming shared libraries, and exclude the
12998 # DT_RUNPATH tag from executables and libraries. But doing so
12999 # requires that you compile everything twice, which is a pain.
13000 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13001 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13002 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13003 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13004 else
13005 ld_shlibs_D=no
13006 fi
13007 ;;
13008 esac
13009 ;;
13010
13011 sunos4*)
13012 archive_cmds_D='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13013 wlarc=
13014 hardcode_direct_D=yes
13015 hardcode_shlibpath_var_D=no
13016 ;;
13017
13018 *)
13019 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13020 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13021 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13022 else
13023 ld_shlibs_D=no
13024 fi
13025 ;;
13026 esac
13027
13028 if test "$ld_shlibs_D" = no; then
13029 runpath_var=
13030 hardcode_libdir_flag_spec_D=
13031 export_dynamic_flag_spec_D=
13032 whole_archive_flag_spec_D=
13033 fi
13034 else
13035 # PORTME fill in a description of your system's linker (not GNU ld)
13036 case $host_os in
13037 aix3*)
13038 allow_undefined_flag_D=unsupported
13039 always_export_symbols_D=yes
13040 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'
13041 # Note: this linker hardcodes the directories in LIBPATH if there
13042 # are no directories specified by -L.
13043 hardcode_minus_L_D=yes
13044 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13045 # Neither direct hardcoding nor static linking is supported with a
13046 # broken collect2.
13047 hardcode_direct_D=unsupported
13048 fi
13049 ;;
13050
13051 aix[4-9]*)
13052 if test "$host_cpu" = ia64; then
13053 # On IA64, the linker does run time linking by default, so we don't
13054 # have to do anything special.
13055 aix_use_runtimelinking=no
13056 exp_sym_flag='-Bexport'
13057 no_entry_flag=""
13058 else
13059 # If we're using GNU nm, then we don't want the "-C" option.
13060 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13061 # Also, AIX nm treats weak defined symbols like other global
13062 # defined symbols, whereas GNU nm marks them as "W".
13063 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13064 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'
13065 else
13066 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'
13067 fi
13068 aix_use_runtimelinking=no
13069
13070 # Test if we are trying to use run time linking or normal
13071 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13072 # need to do runtime linking.
13073 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13074 for ld_flag in $LDFLAGS; do
13075 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13076 aix_use_runtimelinking=yes
13077 break
13078 fi
13079 done
13080 ;;
13081 esac
13082
13083 exp_sym_flag='-bexport'
13084 no_entry_flag='-bnoentry'
13085 fi
13086
13087 # When large executables or shared objects are built, AIX ld can
13088 # have problems creating the table of contents. If linking a library
13089 # or program results in "error TOC overflow" add -mminimal-toc to
13090 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13091 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13092
13093 archive_cmds_D=''
13094 hardcode_direct_D=yes
13095 hardcode_direct_absolute_D=yes
13096 hardcode_libdir_separator_D=':'
13097 link_all_deplibs_D=yes
13098 file_list_spec_D='${wl}-f,'
13099
13100 if test "$GCC" = yes; then
13101 case $host_os in aix4.[012]|aix4.[012].*)
13102 # We only want to do this on AIX 4.2 and lower, the check
13103 # below for broken collect2 doesn't work under 4.3+
13104 collect2name=`${CC} -print-prog-name=collect2`
13105 if test -f "$collect2name" &&
13106 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13107 then
13108 # We have reworked collect2
13109 :
13110 else
13111 # We have old collect2
13112 hardcode_direct_D=unsupported
13113 # It fails to find uninstalled libraries when the uninstalled
13114 # path is not listed in the libpath. Setting hardcode_minus_L
13115 # to unsupported forces relinking
13116 hardcode_minus_L_D=yes
13117 hardcode_libdir_flag_spec_D='-L$libdir'
13118 hardcode_libdir_separator_D=
13119 fi
13120 ;;
13121 esac
13122 shared_flag='-shared'
13123 if test "$aix_use_runtimelinking" = yes; then
13124 shared_flag="$shared_flag "'${wl}-G'
13125 fi
13126 else
13127 # not using gcc
13128 if test "$host_cpu" = ia64; then
13129 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13130 # chokes on -Wl,-G. The following line is correct:
13131 shared_flag='-G'
13132 else
13133 if test "$aix_use_runtimelinking" = yes; then
13134 shared_flag='${wl}-G'
13135 else
13136 shared_flag='${wl}-bM:SRE'
13137 fi
13138 fi
13139 fi
13140
13141 export_dynamic_flag_spec_D='${wl}-bexpall'
13142 # It seems that -bexpall does not export symbols beginning with
13143 # underscore (_), so it is better to generate a list of symbols to export.
13144 always_export_symbols_D=yes
13145 if test "$aix_use_runtimelinking" = yes; then
13146 # Warning - without using the other runtime loading flags (-brtl),
13147 # -berok will link without error, but may produce a broken library.
13148 allow_undefined_flag_D='-berok'
13149 # Determine the default libpath from the value encoded in an
13150 # empty executable.
13151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13152 /* end confdefs.h. */
13153
13154 int
13155 main ()
13156 {
13157
13158 ;
13159 return 0;
13160 }
13161 _ACEOF
13162 if ac_fn_c_try_link "$LINENO"; then :
13163
13164 lt_aix_libpath_sed='
13165 /Import File Strings/,/^$/ {
13166 /^0/ {
13167 s/^0 *\(.*\)$/\1/
13168 p
13169 }
13170 }'
13171 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13172 # Check for a 64-bit object if we didn't find anything.
13173 if test -z "$aix_libpath"; then
13174 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13175 fi
13176 fi
13177 rm -f core conftest.err conftest.$ac_objext \
13178 conftest$ac_exeext conftest.$ac_ext
13179 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13180
13181 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13182 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"
13183 else
13184 if test "$host_cpu" = ia64; then
13185 hardcode_libdir_flag_spec_D='${wl}-R $libdir:/usr/lib:/lib'
13186 allow_undefined_flag_D="-z nodefs"
13187 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"
13188 else
13189 # Determine the default libpath from the value encoded in an
13190 # empty executable.
13191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13192 /* end confdefs.h. */
13193
13194 int
13195 main ()
13196 {
13197
13198 ;
13199 return 0;
13200 }
13201 _ACEOF
13202 if ac_fn_c_try_link "$LINENO"; then :
13203
13204 lt_aix_libpath_sed='
13205 /Import File Strings/,/^$/ {
13206 /^0/ {
13207 s/^0 *\(.*\)$/\1/
13208 p
13209 }
13210 }'
13211 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13212 # Check for a 64-bit object if we didn't find anything.
13213 if test -z "$aix_libpath"; then
13214 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13215 fi
13216 fi
13217 rm -f core conftest.err conftest.$ac_objext \
13218 conftest$ac_exeext conftest.$ac_ext
13219 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13220
13221 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13222 # Warning - without using the other run time loading flags,
13223 # -berok will link without error, but may produce a broken library.
13224 no_undefined_flag_D=' ${wl}-bernotok'
13225 allow_undefined_flag_D=' ${wl}-berok'
13226 if test "$with_gnu_ld" = yes; then
13227 # We only use this code for GNU lds that support --whole-archive.
13228 whole_archive_flag_spec_D='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13229 else
13230 # Exported symbols can be pulled into shared objects from archives
13231 whole_archive_flag_spec_D='$convenience'
13232 fi
13233 archive_cmds_need_lc_D=yes
13234 # This is similar to how AIX traditionally builds its shared libraries.
13235 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'
13236 fi
13237 fi
13238 ;;
13239
13240 amigaos*)
13241 case $host_cpu in
13242 powerpc)
13243 # see comment about AmigaOS4 .so support
13244 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13245 archive_expsym_cmds_D=''
13246 ;;
13247 m68k)
13248 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)'
13249 hardcode_libdir_flag_spec_D='-L$libdir'
13250 hardcode_minus_L_D=yes
13251 ;;
13252 esac
13253 ;;
13254
13255 bsdi[45]*)
13256 export_dynamic_flag_spec_D=-rdynamic
13257 ;;
13258
13259 cygwin* | mingw* | pw32* | cegcc*)
13260 # When not using gcc, we currently assume that we are using
13261 # Microsoft Visual C++.
13262 # hardcode_libdir_flag_spec is actually meaningless, as there is
13263 # no search path for DLLs.
13264 hardcode_libdir_flag_spec_D=' '
13265 allow_undefined_flag_D=unsupported
13266 # Tell ltmain to make .lib files, not .a files.
13267 libext=lib
13268 # Tell ltmain to make .dll files, not .so files.
13269 shrext_cmds=".dll"
13270 # FIXME: Setting linknames here is a bad hack.
13271 archive_cmds_D='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13272 # The linker will automatically build a .lib file if we build a DLL.
13273 old_archive_from_new_cmds_D='true'
13274 # FIXME: Should let the user specify the lib program.
13275 old_archive_cmds_D='lib -OUT:$oldlib$oldobjs$old_deplibs'
13276 fix_srcfile_path_D='`cygpath -w "$srcfile"`'
13277 enable_shared_with_static_runtimes_D=yes
13278 ;;
13279
13280 darwin* | rhapsody*)
13281
13282
13283 archive_cmds_need_lc_D=no
13284 hardcode_direct_D=no
13285 hardcode_automatic_D=yes
13286 hardcode_shlibpath_var_D=unsupported
13287 if test "$lt_cv_ld_force_load" = "yes"; then
13288 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\"`'
13289 else
13290 whole_archive_flag_spec_D=''
13291 fi
13292 link_all_deplibs_D=yes
13293 allow_undefined_flag_D="$_lt_dar_allow_undefined"
13294 case $cc_basename in
13295 ifort*) _lt_dar_can_shared=yes ;;
13296 *) _lt_dar_can_shared=$GCC ;;
13297 esac
13298 if test "$_lt_dar_can_shared" = "yes"; then
13299 output_verbose_link_cmd=func_echo_all
13300 archive_cmds_D="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13301 module_cmds_D="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13302 archive_expsym_cmds_D="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13303 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}"
13304
13305 else
13306 ld_shlibs_D=no
13307 fi
13308
13309 ;;
13310
13311 dgux*)
13312 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13313 hardcode_libdir_flag_spec_D='-L$libdir'
13314 hardcode_shlibpath_var_D=no
13315 ;;
13316
13317 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13318 # support. Future versions do this automatically, but an explicit c++rt0.o
13319 # does not break anything, and helps significantly (at the cost of a little
13320 # extra space).
13321 freebsd2.2*)
13322 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13323 hardcode_libdir_flag_spec_D='-R$libdir'
13324 hardcode_direct_D=yes
13325 hardcode_shlibpath_var_D=no
13326 ;;
13327
13328 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13329 freebsd2.*)
13330 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13331 hardcode_direct_D=yes
13332 hardcode_minus_L_D=yes
13333 hardcode_shlibpath_var_D=no
13334 ;;
13335
13336 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13337 freebsd* | dragonfly*)
13338 archive_cmds_D='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13339 hardcode_libdir_flag_spec_D='-R$libdir'
13340 hardcode_direct_D=yes
13341 hardcode_shlibpath_var_D=no
13342 ;;
13343
13344 hpux9*)
13345 if test "$GCC" = yes; then
13346 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'
13347 else
13348 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'
13349 fi
13350 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13351 hardcode_libdir_separator_D=:
13352 hardcode_direct_D=yes
13353
13354 # hardcode_minus_L: Not really in the search PATH,
13355 # but as the default location of the library.
13356 hardcode_minus_L_D=yes
13357 export_dynamic_flag_spec_D='${wl}-E'
13358 ;;
13359
13360 hpux10*)
13361 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13362 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13363 else
13364 archive_cmds_D='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13365 fi
13366 if test "$with_gnu_ld" = no; then
13367 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13368 hardcode_libdir_flag_spec_ld_D='+b $libdir'
13369 hardcode_libdir_separator_D=:
13370 hardcode_direct_D=yes
13371 hardcode_direct_absolute_D=yes
13372 export_dynamic_flag_spec_D='${wl}-E'
13373 # hardcode_minus_L: Not really in the search PATH,
13374 # but as the default location of the library.
13375 hardcode_minus_L_D=yes
13376 fi
13377 ;;
13378
13379 hpux11*)
13380 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13381 case $host_cpu in
13382 hppa*64*)
13383 archive_cmds_D='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13384 ;;
13385 ia64*)
13386 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13387 ;;
13388 *)
13389 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13390 ;;
13391 esac
13392 else
13393 case $host_cpu in
13394 hppa*64*)
13395 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13396 ;;
13397 ia64*)
13398 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13399 ;;
13400 *)
13401 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13402 ;;
13403 esac
13404 fi
13405 if test "$with_gnu_ld" = no; then
13406 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13407 hardcode_libdir_separator_D=:
13408
13409 case $host_cpu in
13410 hppa*64*|ia64*)
13411 hardcode_direct_D=no
13412 hardcode_shlibpath_var_D=no
13413 ;;
13414 *)
13415 hardcode_direct_D=yes
13416 hardcode_direct_absolute_D=yes
13417 export_dynamic_flag_spec_D='${wl}-E'
13418
13419 # hardcode_minus_L: Not really in the search PATH,
13420 # but as the default location of the library.
13421 hardcode_minus_L_D=yes
13422 ;;
13423 esac
13424 fi
13425 ;;
13426
13427 irix5* | irix6* | nonstopux*)
13428 if test "$GCC" = yes; then
13429 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'
13430 # Try to use the -exported_symbol ld option, if it does not
13431 # work, assume that -exports_file does not work either and
13432 # implicitly export all symbols.
13433 save_LDFLAGS="$LDFLAGS"
13434 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13436 /* end confdefs.h. */
13437 int foo(void) {}
13438 _ACEOF
13439 if ac_fn_c_try_link "$LINENO"; then :
13440 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'
13441
13442 fi
13443 rm -f core conftest.err conftest.$ac_objext \
13444 conftest$ac_exeext conftest.$ac_ext
13445 LDFLAGS="$save_LDFLAGS"
13446 else
13447 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'
13448 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'
13449 fi
13450 archive_cmds_need_lc_D='no'
13451 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13452 hardcode_libdir_separator_D=:
13453 inherit_rpath_D=yes
13454 link_all_deplibs_D=yes
13455 ;;
13456
13457 netbsd*)
13458 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13459 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13460 else
13461 archive_cmds_D='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13462 fi
13463 hardcode_libdir_flag_spec_D='-R$libdir'
13464 hardcode_direct_D=yes
13465 hardcode_shlibpath_var_D=no
13466 ;;
13467
13468 newsos6)
13469 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13470 hardcode_direct_D=yes
13471 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13472 hardcode_libdir_separator_D=:
13473 hardcode_shlibpath_var_D=no
13474 ;;
13475
13476 *nto* | *qnx*)
13477 ;;
13478
13479 openbsd*)
13480 if test -f /usr/libexec/ld.so; then
13481 hardcode_direct_D=yes
13482 hardcode_shlibpath_var_D=no
13483 hardcode_direct_absolute_D=yes
13484 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13485 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13486 archive_expsym_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13487 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13488 export_dynamic_flag_spec_D='${wl}-E'
13489 else
13490 case $host_os in
13491 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13492 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13493 hardcode_libdir_flag_spec_D='-R$libdir'
13494 ;;
13495 *)
13496 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13497 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13498 ;;
13499 esac
13500 fi
13501 else
13502 ld_shlibs_D=no
13503 fi
13504 ;;
13505
13506 os2*)
13507 hardcode_libdir_flag_spec_D='-L$libdir'
13508 hardcode_minus_L_D=yes
13509 allow_undefined_flag_D=unsupported
13510 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'
13511 old_archive_from_new_cmds_D='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13512 ;;
13513
13514 osf3*)
13515 if test "$GCC" = yes; then
13516 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13517 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'
13518 else
13519 allow_undefined_flag_D=' -expect_unresolved \*'
13520 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'
13521 fi
13522 archive_cmds_need_lc_D='no'
13523 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13524 hardcode_libdir_separator_D=:
13525 ;;
13526
13527 osf4* | osf5*) # as osf3* with the addition of -msym flag
13528 if test "$GCC" = yes; then
13529 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13530 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'
13531 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13532 else
13533 allow_undefined_flag_D=' -expect_unresolved \*'
13534 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'
13535 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~
13536 $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'
13537
13538 # Both c and cxx compiler support -rpath directly
13539 hardcode_libdir_flag_spec_D='-rpath $libdir'
13540 fi
13541 archive_cmds_need_lc_D='no'
13542 hardcode_libdir_separator_D=:
13543 ;;
13544
13545 solaris*)
13546 no_undefined_flag_D=' -z defs'
13547 if test "$GCC" = yes; then
13548 wlarc='${wl}'
13549 archive_cmds_D='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13550 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13551 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13552 else
13553 case `$CC -V 2>&1` in
13554 *"Compilers 5.0"*)
13555 wlarc=''
13556 archive_cmds_D='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13557 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13558 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13559 ;;
13560 *)
13561 wlarc='${wl}'
13562 archive_cmds_D='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13563 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13564 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13565 ;;
13566 esac
13567 fi
13568 hardcode_libdir_flag_spec_D='-R$libdir'
13569 hardcode_shlibpath_var_D=no
13570 case $host_os in
13571 solaris2.[0-5] | solaris2.[0-5].*) ;;
13572 *)
13573 # The compiler driver will combine and reorder linker options,
13574 # but understands `-z linker_flag'. GCC discards it without `$wl',
13575 # but is careful enough not to reorder.
13576 # Supported since Solaris 2.6 (maybe 2.5.1?)
13577 if test "$GCC" = yes; then
13578 whole_archive_flag_spec_D='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13579 else
13580 whole_archive_flag_spec_D='-z allextract$convenience -z defaultextract'
13581 fi
13582 ;;
13583 esac
13584 link_all_deplibs_D=yes
13585 ;;
13586
13587 sunos4*)
13588 if test "x$host_vendor" = xsequent; then
13589 # Use $CC to link under sequent, because it throws in some extra .o
13590 # files that make .init and .fini sections work.
13591 archive_cmds_D='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13592 else
13593 archive_cmds_D='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13594 fi
13595 hardcode_libdir_flag_spec_D='-L$libdir'
13596 hardcode_direct_D=yes
13597 hardcode_minus_L_D=yes
13598 hardcode_shlibpath_var_D=no
13599 ;;
13600
13601 sysv4)
13602 case $host_vendor in
13603 sni)
13604 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13605 hardcode_direct_D=yes # is this really true???
13606 ;;
13607 siemens)
13608 ## LD is ld it makes a PLAMLIB
13609 ## CC just makes a GrossModule.
13610 archive_cmds_D='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13611 reload_cmds_D='$CC -r -o $output$reload_objs'
13612 hardcode_direct_D=no
13613 ;;
13614 motorola)
13615 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13616 hardcode_direct_D=no #Motorola manual says yes, but my tests say they lie
13617 ;;
13618 esac
13619 runpath_var='LD_RUN_PATH'
13620 hardcode_shlibpath_var_D=no
13621 ;;
13622
13623 sysv4.3*)
13624 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13625 hardcode_shlibpath_var_D=no
13626 export_dynamic_flag_spec_D='-Bexport'
13627 ;;
13628
13629 sysv4*MP*)
13630 if test -d /usr/nec; then
13631 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13632 hardcode_shlibpath_var_D=no
13633 runpath_var=LD_RUN_PATH
13634 hardcode_runpath_var=yes
13635 ld_shlibs_D=yes
13636 fi
13637 ;;
13638
13639 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13640 no_undefined_flag_D='${wl}-z,text'
13641 archive_cmds_need_lc_D=no
13642 hardcode_shlibpath_var_D=no
13643 runpath_var='LD_RUN_PATH'
13644
13645 if test "$GCC" = yes; then
13646 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13647 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13648 else
13649 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13650 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13651 fi
13652 ;;
13653
13654 sysv5* | sco3.2v5* | sco5v6*)
13655 # Note: We can NOT use -z defs as we might desire, because we do not
13656 # link with -lc, and that would cause any symbols used from libc to
13657 # always be unresolved, which means just about no library would
13658 # ever link correctly. If we're not using GNU ld we use -z text
13659 # though, which does catch some bad symbols but isn't as heavy-handed
13660 # as -z defs.
13661 no_undefined_flag_D='${wl}-z,text'
13662 allow_undefined_flag_D='${wl}-z,nodefs'
13663 archive_cmds_need_lc_D=no
13664 hardcode_shlibpath_var_D=no
13665 hardcode_libdir_flag_spec_D='${wl}-R,$libdir'
13666 hardcode_libdir_separator_D=':'
13667 link_all_deplibs_D=yes
13668 export_dynamic_flag_spec_D='${wl}-Bexport'
13669 runpath_var='LD_RUN_PATH'
13670
13671 if test "$GCC" = yes; then
13672 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13673 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13674 else
13675 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13676 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13677 fi
13678 ;;
13679
13680 uts4*)
13681 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13682 hardcode_libdir_flag_spec_D='-L$libdir'
13683 hardcode_shlibpath_var_D=no
13684 ;;
13685
13686 *)
13687 ld_shlibs_D=no
13688 ;;
13689 esac
13690
13691 if test x$host_vendor = xsni; then
13692 case $host in
13693 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13694 export_dynamic_flag_spec_D='${wl}-Blargedynsym'
13695 ;;
13696 esac
13697 fi
13698 fi
13699
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_D" >&5
13701 $as_echo "$ld_shlibs_D" >&6; }
13702 test "$ld_shlibs_D" = no && can_build_shared=no
13703
13704 with_gnu_ld_D=$with_gnu_ld
13705
13706
13707
13708
13709
13710
13711 #
13712 # Do we need to explicitly link libc?
13713 #
13714 case "x$archive_cmds_need_lc_D" in
13715 x|xyes)
13716 # Assume -lc should be added
13717 archive_cmds_need_lc_D=yes
13718
13719 if test "$enable_shared" = yes && test "$GCC" = yes; then
13720 case $archive_cmds_D in
13721 *'~'*)
13722 # FIXME: we may have to deal with multi-command sequences.
13723 ;;
13724 '$CC '*)
13725 # Test whether the compiler implicitly links with -lc since on some
13726 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13727 # to ld, don't add -lc before -lgcc.
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13729 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13730 if ${lt_cv_archive_cmds_need_lc_D+:} false; then :
13731 $as_echo_n "(cached) " >&6
13732 else
13733 $RM conftest*
13734 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13735
13736 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13737 (eval $ac_compile) 2>&5
13738 ac_status=$?
13739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13740 test $ac_status = 0; } 2>conftest.err; then
13741 soname=conftest
13742 lib=conftest
13743 libobjs=conftest.$ac_objext
13744 deplibs=
13745 wl=$lt_prog_compiler_wl_D
13746 pic_flag=$lt_prog_compiler_pic_D
13747 compiler_flags=-v
13748 linker_flags=-v
13749 verstring=
13750 output_objdir=.
13751 libname=conftest
13752 lt_save_allow_undefined_flag=$allow_undefined_flag_D
13753 allow_undefined_flag_D=
13754 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13755 (eval $archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13756 ac_status=$?
13757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13758 test $ac_status = 0; }
13759 then
13760 lt_cv_archive_cmds_need_lc_D=no
13761 else
13762 lt_cv_archive_cmds_need_lc_D=yes
13763 fi
13764 allow_undefined_flag_D=$lt_save_allow_undefined_flag
13765 else
13766 cat conftest.err 1>&5
13767 fi
13768 $RM conftest*
13769
13770 fi
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_D" >&5
13772 $as_echo "$lt_cv_archive_cmds_need_lc_D" >&6; }
13773 archive_cmds_need_lc_D=$lt_cv_archive_cmds_need_lc_D
13774 ;;
13775 esac
13776 fi
13777 ;;
13778 esac
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13844 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13845 hardcode_action_D=
13846 if test -n "$hardcode_libdir_flag_spec_D" ||
13847 test -n "$runpath_var_D" ||
13848 test "X$hardcode_automatic_D" = "Xyes" ; then
13849
13850 # We can hardcode non-existent directories.
13851 if test "$hardcode_direct_D" != no &&
13852 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13853 # have to relink, otherwise we might link with an installed library
13854 # when we should be linking with a yet-to-be-installed one
13855 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, D)" != no &&
13856 test "$hardcode_minus_L_D" != no; then
13857 # Linking always hardcodes the temporary library directory.
13858 hardcode_action_D=relink
13859 else
13860 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13861 hardcode_action_D=immediate
13862 fi
13863 else
13864 # We cannot hardcode anything, or else we can only hardcode existing
13865 # directories.
13866 hardcode_action_D=unsupported
13867 fi
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_D" >&5
13869 $as_echo "$hardcode_action_D" >&6; }
13870
13871 if test "$hardcode_action_D" = relink ||
13872 test "$inherit_rpath_D" = yes; then
13873 # Fast installation is not supported
13874 enable_fast_install=no
13875 elif test "$shlibpath_overrides_runpath" = yes ||
13876 test "$enable_shared" = no; then
13877 # Fast installation is not necessary
13878 enable_fast_install=needless
13879 fi
13880
13881
13882
13883
13884
13885
13886
13887 fi
13888
13889 ac_ext=c
13890 ac_cpp='$CPP $CPPFLAGS'
13891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13894
13895
13896 GCC=$lt_save_GCC
13897 CC=$lt_save_CC
13898 CFLAGS=$lt_save_CFLAGS
13899
13900 GDCFLAGS=$gdc_save_DFLAGS
13901
13902
13903 # libtool variables for Phobos shared and position-independent compiles.
13904 #
13905 # Use phobos_compiler_shared_flag to designate the compile-time flags for
13906 # creating shared objects. Default: -fversion=Shared.
13907 #
13908 # Use phobos_compiler_pic_flag to designate the compile-time flags for
13909 # creating position-independent objects. This varies with the target
13910 # hardware and operating system, but is often: -fPIC.
13911 #
13912 # The distinction between pic and shared compilation flags is not present in
13913 # libtool, and so we make it here. How it is handled is that in shared
13914 # compilations the `lt_prog_compiler_pic_D' variable is used to instead
13915 # ensure that conditional compilation of shared runtime code is compiled in.
13916 # The original PIC flags are then used in the compilation of every object.
13917 #
13918 # Why are objects destined for libgphobos.a compiled with -fPIC?
13919 # Because -fPIC is not harmful to use for objects destined for static
13920 # libraries. In addition, using -fPIC will allow the use of static
13921 # libgphobos.a in the creation of other D shared libraries.
13922 if test "$enable_shared" = yes; then
13923 phobos_compiler_pic_flag="$lt_prog_compiler_pic_D"
13924 phobos_compiler_shared_flag="-fversion=Shared"
13925 else
13926 phobos_compiler_pic_flag=
13927 phobos_compiler_shared_flag=
13928 fi
13929
13930
13931
13932 # Override the libtool's pic_flag and pic_mode.
13933 # Do this step after AM_PROG_LIBTOOL, but before AC_OUTPUT.
13934 # NB: this impacts --with-pic and --without-pic.
13935 lt_prog_compiler_pic_D="$phobos_compiler_shared_flag"
13936 pic_mode='default'
13937
13938 # Determine what GCC version number to use in filesystem paths.
13939
13940 get_gcc_base_ver="cat"
13941
13942 # Check whether --with-gcc-major-version-only was given.
13943 if test "${with_gcc_major_version_only+set}" = set; then :
13944 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13945 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
13946 fi
13947
13948 fi
13949
13950
13951
13952
13953 # libphobos/libdruntime specific options and feature detection
13954
13955 # These need to be absolute paths, yet at the same time need to
13956 # canonicalize only relative paths, because then amd will not unmount
13957 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
13958 libphobos_builddir=`${PWDCMD-pwd}`
13959 case $srcdir in
13960 \\/$* | ?:\\/*) libphobos_srcdir=${srcdir} ;;
13961 *) libphobos_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
13962 esac
13963
13964
13965
13966
13967 if test ${multilib} = yes; then
13968 multilib_arg="--enable-multilib"
13969 else
13970 multilib_arg=
13971 fi
13972
13973
13974 # Check whether --enable-werror was given.
13975 if test "${enable_werror+set}" = set; then :
13976 enableval=$enable_werror;
13977 fi
13978
13979 WERROR_FLAG=""
13980 if test "x$enable_werror" = "xyes"; then
13981 WERROR_FLAG="-Werror"
13982 fi
13983
13984
13985 druntime_target_cpu_parsed=""
13986 case "$target_cpu" in
13987 aarch64*)
13988 druntime_target_cpu_parsed="aarch64"
13989 ;;
13990 arm*) druntime_target_cpu_parsed="arm"
13991 ;;
13992 mips*) druntime_target_cpu_parsed="mips"
13993 ;;
13994 powerpc|powerpcle)
13995 druntime_target_cpu_parsed="powerpc"
13996 ;;
13997 powerpc64|powerpc64le)
13998 druntime_target_cpu_parsed="powerpc64"
13999 ;;
14000 i[34567]86|x86_64)
14001 druntime_target_cpu_parsed="x86"
14002 ;;
14003 s390x)
14004 druntime_target_cpu_parsed="s390x"
14005 ;;
14006 s390)
14007 druntime_target_cpu_parsed="s390"
14008 ;;
14009 esac
14010 if test "$druntime_target_cpu_parsed" = "aarch64"; then
14011 DRUNTIME_CPU_AARCH64_TRUE=
14012 DRUNTIME_CPU_AARCH64_FALSE='#'
14013 else
14014 DRUNTIME_CPU_AARCH64_TRUE='#'
14015 DRUNTIME_CPU_AARCH64_FALSE=
14016 fi
14017
14018 if test "$druntime_target_cpu_parsed" = "arm"; then
14019 DRUNTIME_CPU_ARM_TRUE=
14020 DRUNTIME_CPU_ARM_FALSE='#'
14021 else
14022 DRUNTIME_CPU_ARM_TRUE='#'
14023 DRUNTIME_CPU_ARM_FALSE=
14024 fi
14025
14026 if test "$druntime_target_cpu_parsed" = "mips"; then
14027 DRUNTIME_CPU_MIPS_TRUE=
14028 DRUNTIME_CPU_MIPS_FALSE='#'
14029 else
14030 DRUNTIME_CPU_MIPS_TRUE='#'
14031 DRUNTIME_CPU_MIPS_FALSE=
14032 fi
14033
14034 if test "$druntime_target_cpu_parsed" = "powerpc"; then
14035 DRUNTIME_CPU_POWERPC_TRUE=
14036 DRUNTIME_CPU_POWERPC_FALSE='#'
14037 else
14038 DRUNTIME_CPU_POWERPC_TRUE='#'
14039 DRUNTIME_CPU_POWERPC_FALSE=
14040 fi
14041
14042 if test "$druntime_target_cpu_parsed" = "powerpc64"; then
14043 DRUNTIME_CPU_POWERPC64_TRUE=
14044 DRUNTIME_CPU_POWERPC64_FALSE='#'
14045 else
14046 DRUNTIME_CPU_POWERPC64_TRUE='#'
14047 DRUNTIME_CPU_POWERPC64_FALSE=
14048 fi
14049
14050 if test "$druntime_target_cpu_parsed" = "x86"; then
14051 DRUNTIME_CPU_X86_TRUE=
14052 DRUNTIME_CPU_X86_FALSE='#'
14053 else
14054 DRUNTIME_CPU_X86_TRUE='#'
14055 DRUNTIME_CPU_X86_FALSE=
14056 fi
14057
14058 if test "$druntime_target_cpu_parsed" = "s390x"; then
14059 DRUNTIME_CPU_SYSTEMZ_TRUE=
14060 DRUNTIME_CPU_SYSTEMZ_FALSE='#'
14061 else
14062 DRUNTIME_CPU_SYSTEMZ_TRUE='#'
14063 DRUNTIME_CPU_SYSTEMZ_FALSE=
14064 fi
14065
14066 if test "$druntime_target_cpu_parsed" = "s390"; then
14067 DRUNTIME_CPU_S390_TRUE=
14068 DRUNTIME_CPU_S390_FALSE='#'
14069 else
14070 DRUNTIME_CPU_S390_TRUE='#'
14071 DRUNTIME_CPU_S390_FALSE=
14072 fi
14073
14074
14075
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target OS" >&5
14077 $as_echo_n "checking for target OS... " >&6; }
14078 if ${druntime_cv_target_os+:} false; then :
14079 $as_echo_n "(cached) " >&6
14080 else
14081 druntime_cv_target_os=`echo $target_os | sed 's/^\([A-Za-z_]+\)/\1/'`
14082 fi
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_target_os" >&5
14084 $as_echo "$druntime_cv_target_os" >&6; }
14085 if test -z "$druntime_cv_target_os"; then :
14086 as_fn_error $? "can't detect target OS" "$LINENO" 5
14087 fi
14088
14089
14090
14091
14092 druntime_target_os_parsed=""
14093 case "$druntime_cv_target_os" in
14094 aix*) druntime_target_os_parsed="aix"
14095 ;;
14096 *android*)
14097 druntime_target_os_parsed="android"
14098 ;;
14099 darwin*) druntime_target_os_parsed="darwin"
14100 ;;
14101 dragonfly*)
14102 druntime_target_os_parsed="dragonflybsd"
14103 ;;
14104 freebsd*|k*bsd*-gnu)
14105 druntime_target_os_parsed="freebsd"
14106 ;;
14107 openbsd*)
14108 druntime_target_os_parsed="openbsd"
14109 ;;
14110 netbsd*)
14111 druntime_target_os_parsed="netbsd"
14112 ;;
14113 linux*) druntime_target_os_parsed="linux"
14114 ;;
14115 mingw*) druntime_target_os_parsed="mingw"
14116 ;;
14117 *solaris*) druntime_target_os_parsed="solaris"
14118 esac
14119 if test "$druntime_target_os_parsed" = "aix"; then
14120 DRUNTIME_OS_AIX_TRUE=
14121 DRUNTIME_OS_AIX_FALSE='#'
14122 else
14123 DRUNTIME_OS_AIX_TRUE='#'
14124 DRUNTIME_OS_AIX_FALSE=
14125 fi
14126
14127 if test "$druntime_target_os_parsed" = "android"; then
14128 DRUNTIME_OS_ANDROID_TRUE=
14129 DRUNTIME_OS_ANDROID_FALSE='#'
14130 else
14131 DRUNTIME_OS_ANDROID_TRUE='#'
14132 DRUNTIME_OS_ANDROID_FALSE=
14133 fi
14134
14135 if test "$druntime_target_os_parsed" = "darwin"; then
14136 DRUNTIME_OS_DARWIN_TRUE=
14137 DRUNTIME_OS_DARWIN_FALSE='#'
14138 else
14139 DRUNTIME_OS_DARWIN_TRUE='#'
14140 DRUNTIME_OS_DARWIN_FALSE=
14141 fi
14142
14143 if test "$druntime_target_os_parsed" = "dragonflybsd"; then
14144 DRUNTIME_OS_DRAGONFLYBSD_TRUE=
14145 DRUNTIME_OS_DRAGONFLYBSD_FALSE='#'
14146 else
14147 DRUNTIME_OS_DRAGONFLYBSD_TRUE='#'
14148 DRUNTIME_OS_DRAGONFLYBSD_FALSE=
14149 fi
14150
14151 if test "$druntime_target_os_parsed" = "freebsd"; then
14152 DRUNTIME_OS_FREEBSD_TRUE=
14153 DRUNTIME_OS_FREEBSD_FALSE='#'
14154 else
14155 DRUNTIME_OS_FREEBSD_TRUE='#'
14156 DRUNTIME_OS_FREEBSD_FALSE=
14157 fi
14158
14159 if test "$druntime_target_os_parsed" = "netbsd"; then
14160 DRUNTIME_OS_NETBSD_TRUE=
14161 DRUNTIME_OS_NETBSD_FALSE='#'
14162 else
14163 DRUNTIME_OS_NETBSD_TRUE='#'
14164 DRUNTIME_OS_NETBSD_FALSE=
14165 fi
14166
14167 if test "$druntime_target_os_parsed" = "openbsd"; then
14168 DRUNTIME_OS_OPENBSD_TRUE=
14169 DRUNTIME_OS_OPENBSD_FALSE='#'
14170 else
14171 DRUNTIME_OS_OPENBSD_TRUE='#'
14172 DRUNTIME_OS_OPENBSD_FALSE=
14173 fi
14174
14175 if test "$druntime_target_os_parsed" = "linux"; then
14176 DRUNTIME_OS_LINUX_TRUE=
14177 DRUNTIME_OS_LINUX_FALSE='#'
14178 else
14179 DRUNTIME_OS_LINUX_TRUE='#'
14180 DRUNTIME_OS_LINUX_FALSE=
14181 fi
14182
14183 if test "$druntime_target_os_parsed" = "mingw"; then
14184 DRUNTIME_OS_MINGW_TRUE=
14185 DRUNTIME_OS_MINGW_FALSE='#'
14186 else
14187 DRUNTIME_OS_MINGW_TRUE='#'
14188 DRUNTIME_OS_MINGW_FALSE=
14189 fi
14190
14191 if test "$druntime_target_os_parsed" = "solaris"; then
14192 DRUNTIME_OS_SOLARIS_TRUE=
14193 DRUNTIME_OS_SOLARIS_FALSE='#'
14194 else
14195 DRUNTIME_OS_SOLARIS_TRUE='#'
14196 DRUNTIME_OS_SOLARIS_FALSE=
14197 fi
14198
14199
14200 druntime_target_posix="no"
14201 case "$druntime_cv_target_os" in
14202 aix*|*bsd*|cygwin*|darwin*|gnu*|linux*|skyos*|*solaris*|sysv*)
14203 druntime_target_posix="yes"
14204 ;;
14205 esac
14206 if test "$druntime_target_posix" = "yes"; then
14207 DRUNTIME_OS_POSIX_TRUE=
14208 DRUNTIME_OS_POSIX_FALSE='#'
14209 else
14210 DRUNTIME_OS_POSIX_TRUE='#'
14211 DRUNTIME_OS_POSIX_FALSE=
14212 fi
14213
14214
14215
14216
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GDC" >&5
14218 $as_echo_n "checking for thread model used by GDC... " >&6; }
14219 d_thread_model=`$GDC -v 2>&1 | sed -n 's/^Thread model: //p'`
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d_thread_model" >&5
14221 $as_echo "$d_thread_model" >&6; }
14222
14223 # Map from thread model to thread interface.
14224
14225 case $d_thread_model in
14226 aix) DCFG_THREAD_MODEL="Posix" ;;
14227 lynx) DCFG_THREAD_MODEL="Posix" ;;
14228 posix) DCFG_THREAD_MODEL="Posix" ;;
14229 single) DCFG_THREAD_MODEL="Single" ;;
14230 win32) DCFG_THREAD_MODEL="Win32" ;;
14231 # TODO: These targets need porting.
14232 dce|mipssde|rtems|tpf|vxworks)
14233 DCFG_THREAD_MODEL="Single" ;;
14234 *) as_fn_error "Thread implementation '$d_thread_model' not recognised" "$LINENO" 5 ;;
14235 esac
14236
14237
14238
14239
14240 ac_ext=c
14241 ac_cpp='$CPP $CPPFLAGS'
14242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14245
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM unwinder" >&5
14247 $as_echo_n "checking for ARM unwinder... " >&6; }
14248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14249 /* end confdefs.h. */
14250 #include <unwind.h>
14251 int
14252 main ()
14253 {
14254
14255 #if __ARM_EABI_UNWINDER__
14256 #error Yes, it is.
14257 #endif
14258
14259 ;
14260 return 0;
14261 }
14262 _ACEOF
14263 if ac_fn_c_try_compile "$LINENO"; then :
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14265 $as_echo "no" >&6; }
14266 DCFG_ARM_EABI_UNWINDER=false
14267 else
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14269 $as_echo "yes" >&6; }
14270 DCFG_ARM_EABI_UNWINDER=true
14271 fi
14272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14273
14274 if test "$DCFG_ARM_EABI_UNWINDER" = "true"; then
14275 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE=
14276 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE='#'
14277 else
14278 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE='#'
14279 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE=
14280 fi
14281
14282 ac_ext=c
14283 ac_cpp='$CPP $CPPFLAGS'
14284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14287
14288
14289
14290 ac_ext=c
14291 ac_cpp='$CPP $CPPFLAGS'
14292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14295
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minfo section bracketing" >&5
14297 $as_echo_n "checking for minfo section bracketing... " >&6; }
14298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14299 /* end confdefs.h. */
14300
14301 void* module_info_ptr __attribute__((section ("minfo")));
14302 extern void* __start_minfo __attribute__((visibility ("hidden")));
14303 extern void* __stop_minfo __attribute__((visibility ("hidden")));
14304
14305 int main()
14306 {
14307 // Never run, just to prevent compiler from optimizing access
14308 return &__start_minfo == &__stop_minfo;
14309 }
14310
14311 _ACEOF
14312 if ac_fn_c_try_link "$LINENO"; then :
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14314 $as_echo "yes" >&6; }
14315 DCFG_MINFO_BRACKETING=true
14316 else
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14318 $as_echo "no" >&6; }
14319 DCFG_MINFO_BRACKETING=false
14320 fi
14321 rm -f core conftest.err conftest.$ac_objext \
14322 conftest$ac_exeext conftest.$ac_ext
14323
14324 if test "$DCFG_MINFO_BRACKETING" = "true"; then
14325 DRUNTIME_OS_MINFO_BRACKETING_TRUE=
14326 DRUNTIME_OS_MINFO_BRACKETING_FALSE='#'
14327 else
14328 DRUNTIME_OS_MINFO_BRACKETING_TRUE='#'
14329 DRUNTIME_OS_MINFO_BRACKETING_FALSE=
14330 fi
14331
14332 ac_ext=c
14333 ac_cpp='$CPP $CPPFLAGS'
14334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14337
14338
14339
14340 ac_ext=c
14341 ac_cpp='$CPP $CPPFLAGS'
14342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14345
14346 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>
14347 "
14348 if test "x$ac_cv_member_struct_dl_phdr_info_dlpi_tls_modid" = xyes; then :
14349 DCFG_DLPI_TLS_MODID=true
14350 else
14351 DCFG_DLPI_TLS_MODID=false
14352 fi
14353
14354
14355 ac_ext=c
14356 ac_cpp='$CPP $CPPFLAGS'
14357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14360
14361
14362
14363 case $target in
14364 i?86-*-solaris2.* | x86_64-*-solaris2.*)
14365 # 64-bit Solaris/x86 ld breaks calls to __tls_get_addr with non-TLS
14366 # relocs. Work around by disabling TLS transitions. Not necessary
14367 # on 32-bit x86, but cannot be distinguished reliably in specs.
14368 druntime_ld_prog=`$CC -print-prog-name=ld`
14369 druntime_ld_gld=no
14370 druntime_ld_relax_transtls=no
14371 if test -n "$druntime_ld_prog" \
14372 && $druntime_ld_prog -v 2>&1 | grep GNU > /dev/null 2>&1; then
14373 druntime_ld_gld=yes
14374 else
14375 echo 'int main (void) { return 0; }' > conftest.c
14376 save_LDFLAGS="$LDFLAGS"
14377 LDFLAGS="$LDFLAGS -Wl,-z,relax=transtls"
14378 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c > /dev/null 2>&1; then
14379 druntime_ld_relax_transtls=yes
14380 fi
14381 LDFLAGS="$save_LDFLAGS"
14382 rm -f conftest.c conftest
14383 fi
14384 if test "$druntime_ld_relax_transtls" = "yes"; then
14385 OS_LINK_SPEC='-z relax=transtls'
14386 fi
14387 ;;
14388 esac
14389
14390
14391
14392 ac_ext=c
14393 ac_cpp='$CPP $CPPFLAGS'
14394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14397
14398 DCFG_HAVE_QSORT_R=false
14399 ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r"
14400 if test "x$ac_cv_func_qsort_r" = xyes; then :
14401 DCFG_HAVE_QSORT_R=true
14402 fi
14403
14404
14405 ac_ext=c
14406 ac_cpp='$CPP $CPPFLAGS'
14407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14410
14411
14412
14413
14414
14415 gdc_save_DFLAGS=$GDCFLAGS
14416 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime -nophoboslib $GDCFLAGS"
14417
14418 ac_ext=d
14419 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
14420 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14421 ac_compiler_gnu=yes
14422
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing malloc" >&5
14424 $as_echo_n "checking for library containing malloc... " >&6; }
14425 if ${ac_cv_search_malloc+:} false; then :
14426 $as_echo_n "(cached) " >&6
14427 else
14428 ac_func_search_save_LIBS=$LIBS
14429 cat > conftest.$ac_ext <<_ACEOF
14430 module mod;
14431 extern(C) int malloc();
14432
14433 extern(C) int main() {
14434 malloc(); return 0;
14435 }
14436 _ACEOF
14437 for ac_lib in '' c; do
14438 if test -z "$ac_lib"; then
14439 ac_res="none required"
14440 else
14441 ac_res=-l$ac_lib
14442 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14443 fi
14444 if ac_fn_d_try_link "$LINENO"; then :
14445 ac_cv_search_malloc=$ac_res
14446 fi
14447 rm -f core conftest.err conftest.$ac_objext \
14448 conftest$ac_exeext
14449 if ${ac_cv_search_malloc+:} false; then :
14450 break
14451 fi
14452 done
14453 if ${ac_cv_search_malloc+:} false; then :
14454
14455 else
14456 ac_cv_search_malloc=no
14457 fi
14458 rm conftest.$ac_ext
14459 LIBS=$ac_func_search_save_LIBS
14460 fi
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc" >&5
14462 $as_echo "$ac_cv_search_malloc" >&6; }
14463 ac_res=$ac_cv_search_malloc
14464 if test "$ac_res" != no; then :
14465 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14466
14467 fi
14468
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
14470 $as_echo_n "checking for library containing pthread_create... " >&6; }
14471 if ${ac_cv_search_pthread_create+:} false; then :
14472 $as_echo_n "(cached) " >&6
14473 else
14474 ac_func_search_save_LIBS=$LIBS
14475 cat > conftest.$ac_ext <<_ACEOF
14476 module mod;
14477 extern(C) int pthread_create();
14478
14479 extern(C) int main() {
14480 pthread_create(); return 0;
14481 }
14482 _ACEOF
14483 for ac_lib in '' pthread; do
14484 if test -z "$ac_lib"; then
14485 ac_res="none required"
14486 else
14487 ac_res=-l$ac_lib
14488 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14489 fi
14490 if ac_fn_d_try_link "$LINENO"; then :
14491 ac_cv_search_pthread_create=$ac_res
14492 fi
14493 rm -f core conftest.err conftest.$ac_objext \
14494 conftest$ac_exeext
14495 if ${ac_cv_search_pthread_create+:} false; then :
14496 break
14497 fi
14498 done
14499 if ${ac_cv_search_pthread_create+:} false; then :
14500
14501 else
14502 ac_cv_search_pthread_create=no
14503 fi
14504 rm conftest.$ac_ext
14505 LIBS=$ac_func_search_save_LIBS
14506 fi
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
14508 $as_echo "$ac_cv_search_pthread_create" >&6; }
14509 ac_res=$ac_cv_search_pthread_create
14510 if test "$ac_res" != no; then :
14511 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14512
14513 fi
14514
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cosf" >&5
14516 $as_echo_n "checking for library containing cosf... " >&6; }
14517 if ${ac_cv_search_cosf+:} false; then :
14518 $as_echo_n "(cached) " >&6
14519 else
14520 ac_func_search_save_LIBS=$LIBS
14521 cat > conftest.$ac_ext <<_ACEOF
14522 module mod;
14523 extern(C) int cosf();
14524
14525 extern(C) int main() {
14526 cosf(); return 0;
14527 }
14528 _ACEOF
14529 for ac_lib in '' m; do
14530 if test -z "$ac_lib"; then
14531 ac_res="none required"
14532 else
14533 ac_res=-l$ac_lib
14534 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14535 fi
14536 if ac_fn_d_try_link "$LINENO"; then :
14537 ac_cv_search_cosf=$ac_res
14538 fi
14539 rm -f core conftest.err conftest.$ac_objext \
14540 conftest$ac_exeext
14541 if ${ac_cv_search_cosf+:} false; then :
14542 break
14543 fi
14544 done
14545 if ${ac_cv_search_cosf+:} false; then :
14546
14547 else
14548 ac_cv_search_cosf=no
14549 fi
14550 rm conftest.$ac_ext
14551 LIBS=$ac_func_search_save_LIBS
14552 fi
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cosf" >&5
14554 $as_echo "$ac_cv_search_cosf" >&6; }
14555 ac_res=$ac_cv_search_cosf
14556 if test "$ac_res" != no; then :
14557 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14558
14559 fi
14560
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14562 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14563 if ${ac_cv_search_clock_gettime+:} false; then :
14564 $as_echo_n "(cached) " >&6
14565 else
14566 ac_func_search_save_LIBS=$LIBS
14567 cat > conftest.$ac_ext <<_ACEOF
14568 module mod;
14569 extern(C) int clock_gettime();
14570
14571 extern(C) int main() {
14572 clock_gettime(); return 0;
14573 }
14574 _ACEOF
14575 for ac_lib in '' rt; do
14576 if test -z "$ac_lib"; then
14577 ac_res="none required"
14578 else
14579 ac_res=-l$ac_lib
14580 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14581 fi
14582 if ac_fn_d_try_link "$LINENO"; then :
14583 ac_cv_search_clock_gettime=$ac_res
14584 fi
14585 rm -f core conftest.err conftest.$ac_objext \
14586 conftest$ac_exeext
14587 if ${ac_cv_search_clock_gettime+:} false; then :
14588 break
14589 fi
14590 done
14591 if ${ac_cv_search_clock_gettime+:} false; then :
14592
14593 else
14594 ac_cv_search_clock_gettime=no
14595 fi
14596 rm conftest.$ac_ext
14597 LIBS=$ac_func_search_save_LIBS
14598 fi
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14600 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14601 ac_res=$ac_cv_search_clock_gettime
14602 if test "$ac_res" != no; then :
14603 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14604
14605 fi
14606
14607
14608 # This checks to see if the host supports the compiler-generated builtins
14609 # for atomic operations for various integral sizes. Note, this is intended
14610 # to be an all-or-nothing switch, so all the atomic operations that are
14611 # used should be checked.
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for byte" >&5
14613 $as_echo_n "checking for atomic builtins for byte... " >&6; }
14614 if ${druntime_cv_atomic_byte+:} false; then :
14615 $as_echo_n "(cached) " >&6
14616 else
14617
14618 cat > conftest.$ac_ext <<_ACEOF
14619 module mod;
14620 import gcc.builtins;
14621
14622 extern(C) int main() {
14623
14624 shared(byte) c1;
14625 byte c2, c3;
14626 __atomic_compare_exchange_1(&c1, &c2, c3, false, 5, 5);
14627 __atomic_load_1(&c1, 5);
14628 __atomic_store_1(&c1, c2, 5);
14629 return 0;
14630
14631 }
14632 _ACEOF
14633 if ac_fn_d_try_link "$LINENO"; then :
14634 druntime_cv_atomic_byte=yes
14635 else
14636 druntime_cv_atomic_byte=no
14637 fi
14638 rm -f core conftest.err conftest.$ac_objext \
14639 conftest$ac_exeext conftest.$ac_ext
14640
14641 fi
14642
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_byte" >&5
14644 $as_echo "$druntime_cv_atomic_byte" >&6; }
14645
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5
14647 $as_echo_n "checking for atomic builtins for short... " >&6; }
14648 if ${druntime_cv_atomic_short+:} false; then :
14649 $as_echo_n "(cached) " >&6
14650 else
14651
14652 cat > conftest.$ac_ext <<_ACEOF
14653 module mod;
14654 import gcc.builtins;
14655
14656 extern(C) int main() {
14657
14658 shared(short) c1;
14659 short c2, c3;
14660 __atomic_compare_exchange_2(&c1, &c2, c3, false, 5, 5);
14661 __atomic_load_2(&c1, 5);
14662 __atomic_store_2(&c1, c2, 5);
14663 return 0;
14664
14665 }
14666 _ACEOF
14667 if ac_fn_d_try_link "$LINENO"; then :
14668 druntime_cv_atomic_short=yes
14669 else
14670 druntime_cv_atomic_short=no
14671 fi
14672 rm -f core conftest.err conftest.$ac_objext \
14673 conftest$ac_exeext conftest.$ac_ext
14674
14675 fi
14676
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_short" >&5
14678 $as_echo "$druntime_cv_atomic_short" >&6; }
14679
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5
14681 $as_echo_n "checking for atomic builtins for int... " >&6; }
14682 if ${druntime_cv_atomic_int+:} false; then :
14683 $as_echo_n "(cached) " >&6
14684 else
14685
14686 cat > conftest.$ac_ext <<_ACEOF
14687 module mod;
14688 import gcc.builtins;
14689
14690 extern(C) int main() {
14691
14692 shared(int) c1;
14693 int c2, c3;
14694 __atomic_compare_exchange_4(&c1, &c2, c3, false, 5, 5);
14695 __atomic_load_4(&c1, 5);
14696 __atomic_store_4(&c1, c2, 5);
14697 return 0;
14698
14699 }
14700 _ACEOF
14701 if ac_fn_d_try_link "$LINENO"; then :
14702 druntime_cv_atomic_int=yes
14703 else
14704 druntime_cv_atomic_int=no
14705 fi
14706 rm -f core conftest.err conftest.$ac_objext \
14707 conftest$ac_exeext conftest.$ac_ext
14708
14709 fi
14710
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_int" >&5
14712 $as_echo "$druntime_cv_atomic_int" >&6; }
14713
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long" >&5
14715 $as_echo_n "checking for atomic builtins for long... " >&6; }
14716 if ${druntime_cv_atomic_long+:} false; then :
14717 $as_echo_n "(cached) " >&6
14718 else
14719
14720 cat > conftest.$ac_ext <<_ACEOF
14721 module mod;
14722 import gcc.builtins;
14723
14724 extern(C) int main() {
14725
14726 shared(long) c1;
14727 long c2, c3;
14728 __atomic_compare_exchange_8(&c1, &c2, c3, false, 5, 5);
14729 __atomic_load_8(&c1, 5);
14730 __atomic_store_8(&c1, c2, 5);
14731 return 0;
14732
14733 }
14734 _ACEOF
14735 if ac_fn_d_try_link "$LINENO"; then :
14736 druntime_cv_atomic_long=yes
14737 else
14738 druntime_cv_atomic_long=no
14739 fi
14740 rm -f core conftest.err conftest.$ac_objext \
14741 conftest$ac_exeext conftest.$ac_ext
14742
14743 fi
14744
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_long" >&5
14746 $as_echo "$druntime_cv_atomic_long" >&6; }
14747
14748 # Have atomic builtin support if all but the long test above passes.
14749 DCFG_HAVE_ATOMIC_BUILTINS=false
14750 if test "$druntime_cv_atomic_byte" = yes \
14751 && test "$druntime_cv_atomic_short" = yes \
14752 && test "$druntime_cv_atomic_int" = yes; then \
14753 DCFG_HAVE_ATOMIC_BUILTINS=true
14754 fi
14755
14756 # Have 64-bit atomic support if the long test above passes.
14757 DCFG_HAVE_64BIT_ATOMICS=false
14758 if test "$druntime_cv_atomic_long" = yes; then
14759 DCFG_HAVE_64BIT_ATOMICS=true
14760 fi
14761
14762
14763
14764
14765 ac_ext=c
14766 ac_cpp='$CPP $CPPFLAGS'
14767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14770
14771
14772 GDCFLAGS=$gdc_save_DFLAGS
14773
14774
14775
14776
14777 # Check whether --with-libatomic was given.
14778 if test "${with_libatomic+set}" = set; then :
14779 withval=$with_libatomic;
14780 fi
14781
14782
14783 DCFG_HAVE_LIBATOMIC=false
14784 LIBATOMIC=
14785 if test "x$with_libatomic" != "xno"; then :
14786
14787 DCFG_HAVE_LIBATOMIC=true
14788 LIBATOMIC=../../libatomic/libatomic_convenience.la
14789
14790 else
14791
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic" >&5
14793 $as_echo_n "checking for libatomic... " >&6; }
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14795 $as_echo "disabled" >&6; }
14796
14797 fi
14798
14799
14800
14801
14802
14803 ac_ext=c
14804 ac_cpp='$CPP $CPPFLAGS'
14805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14808
14809 BACKTRACE_SUPPORTED=false
14810 BACKTRACE_USES_MALLOC=false
14811 BACKTRACE_SUPPORTS_THREADS=false
14812 LIBBACKTRACE=""
14813
14814
14815 # Check whether --with-libbacktrace was given.
14816 if test "${with_libbacktrace+set}" = set; then :
14817 withval=$with_libbacktrace;
14818 fi
14819
14820
14821 if test "x$with_libbacktrace" != "xno"; then :
14822
14823 LIBBACKTRACE=../../libbacktrace/libbacktrace.la
14824
14825 gdc_save_CPPFLAGS=$CPPFLAGS
14826 CPPFLAGS="$CPPFLAGS -I../libbacktrace "
14827
14828 ac_fn_c_check_header_mongrel "$LINENO" "backtrace-supported.h" "ac_cv_header_backtrace_supported_h" "$ac_includes_default"
14829 if test "x$ac_cv_header_backtrace_supported_h" = xyes; then :
14830 have_libbacktrace_h=true
14831 else
14832 have_libbacktrace_h=false
14833 fi
14834
14835
14836
14837 if $have_libbacktrace_h; then
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTED" >&5
14839 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTED... " >&6; }
14840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14841 /* end confdefs.h. */
14842
14843 #include <backtrace-supported.h>
14844 #if BACKTRACE_SUPPORTED
14845 FOUND_LIBBACKTRACE_RESULT_GDC
14846 #endif
14847
14848 _ACEOF
14849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14850 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14851 BACKTRACE_SUPPORTED=true
14852 else
14853 BACKTRACE_SUPPORTED=false
14854 fi
14855 rm -f conftest*
14856
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTED" >&5
14858 $as_echo "$BACKTRACE_SUPPORTED" >&6; }
14859
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_USES_MALLOC" >&5
14861 $as_echo_n "checking libbacktrace: BACKTRACE_USES_MALLOC... " >&6; }
14862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14863 /* end confdefs.h. */
14864
14865 #include <backtrace-supported.h>
14866 #if BACKTRACE_USES_MALLOC
14867 FOUND_LIBBACKTRACE_RESULT_GDC
14868 #endif
14869
14870 _ACEOF
14871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14872 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14873 BACKTRACE_USES_MALLOC=true
14874 else
14875 BACKTRACE_USES_MALLOC=false
14876 fi
14877 rm -f conftest*
14878
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_USES_MALLOC" >&5
14880 $as_echo "$BACKTRACE_USES_MALLOC" >&6; }
14881
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTS_THREADS" >&5
14883 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTS_THREADS... " >&6; }
14884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14885 /* end confdefs.h. */
14886
14887 #include <backtrace-supported.h>
14888 #if BACKTRACE_SUPPORTS_THREADS
14889 FOUND_LIBBACKTRACE_RESULT_GDC
14890 #endif
14891
14892 _ACEOF
14893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14894 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14895 BACKTRACE_SUPPORTS_THREADS=true
14896 else
14897 BACKTRACE_SUPPORTS_THREADS=false
14898 fi
14899 rm -f conftest*
14900
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTS_THREADS" >&5
14902 $as_echo "$BACKTRACE_SUPPORTS_THREADS" >&6; }
14903 fi
14904 CPPFLAGS=$gdc_save_CPPFLAGS
14905
14906 else
14907
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbacktrace" >&5
14909 $as_echo_n "checking for libbacktrace... " >&6; }
14910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14911 $as_echo "disabled" >&6; }
14912
14913 fi
14914
14915
14916
14917
14918
14919 ac_ext=c
14920 ac_cpp='$CPP $CPPFLAGS'
14921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14924
14925
14926
14927 # Libtool has already checked this, so re-use the inferred dlopen lib.
14928 if test "x$enable_dlopen" = "xyes" && test -n "$lt_cv_dlopen_libs"; then :
14929
14930 LIBS="$LIBS $lt_cv_dlopen_libs"
14931
14932 fi
14933
14934
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14936 $as_echo_n "checking for socket libraries... " >&6; }
14937 if ${druntime_cv_lib_sockets+:} false; then :
14938 $as_echo_n "(cached) " >&6
14939 else
14940 druntime_cv_lib_sockets=
14941 druntime_check_both=no
14942 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
14943 if test "x$ac_cv_func_connect" = xyes; then :
14944 druntime_check_socket=no
14945 else
14946 druntime_check_socket=yes
14947 fi
14948
14949 if test "$druntime_check_socket" = "yes"; then
14950 unset ac_cv_func_connect
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
14952 $as_echo_n "checking for main in -lsocket... " >&6; }
14953 if ${ac_cv_lib_socket_main+:} false; then :
14954 $as_echo_n "(cached) " >&6
14955 else
14956 ac_check_lib_save_LIBS=$LIBS
14957 LIBS="-lsocket $LIBS"
14958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14959 /* end confdefs.h. */
14960
14961
14962 int
14963 main ()
14964 {
14965 return main ();
14966 ;
14967 return 0;
14968 }
14969 _ACEOF
14970 if ac_fn_c_try_link "$LINENO"; then :
14971 ac_cv_lib_socket_main=yes
14972 else
14973 ac_cv_lib_socket_main=no
14974 fi
14975 rm -f core conftest.err conftest.$ac_objext \
14976 conftest$ac_exeext conftest.$ac_ext
14977 LIBS=$ac_check_lib_save_LIBS
14978 fi
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14980 $as_echo "$ac_cv_lib_socket_main" >&6; }
14981 if test "x$ac_cv_lib_socket_main" = xyes; then :
14982 druntime_cv_lib_sockets="-lsocket"
14983 else
14984 druntime_check_both=yes
14985 fi
14986
14987 fi
14988 if test "$druntime_check_both" = "yes"; then
14989 druntime_old_libs=$LIBS
14990 LIBS="$LIBS -lsocket -lnsl"
14991 unset ac_cv_func_accept
14992 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
14993 if test "x$ac_cv_func_accept" = xyes; then :
14994 druntime_check_nsl=no
14995 druntime_cv_lib_sockets="-lsocket -lnsl"
14996 fi
14997
14998 unset ac_cv_func_accept
14999 LIBS=$druntime_old_libs
15000 fi
15001 unset ac_cv_func_gethostbyname
15002 druntime_old_libs="$LIBS"
15003 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
15004 if test "x$ac_cv_func_gethostbyname" = xyes; then :
15005
15006 else
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
15008 $as_echo_n "checking for main in -lnsl... " >&6; }
15009 if ${ac_cv_lib_nsl_main+:} false; then :
15010 $as_echo_n "(cached) " >&6
15011 else
15012 ac_check_lib_save_LIBS=$LIBS
15013 LIBS="-lnsl $LIBS"
15014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15015 /* end confdefs.h. */
15016
15017
15018 int
15019 main ()
15020 {
15021 return main ();
15022 ;
15023 return 0;
15024 }
15025 _ACEOF
15026 if ac_fn_c_try_link "$LINENO"; then :
15027 ac_cv_lib_nsl_main=yes
15028 else
15029 ac_cv_lib_nsl_main=no
15030 fi
15031 rm -f core conftest.err conftest.$ac_objext \
15032 conftest$ac_exeext conftest.$ac_ext
15033 LIBS=$ac_check_lib_save_LIBS
15034 fi
15035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
15036 $as_echo "$ac_cv_lib_nsl_main" >&6; }
15037 if test "x$ac_cv_lib_nsl_main" = xyes; then :
15038 druntime_cv_lib_sockets="$druntime_cv_lib_sockets -lnsl"
15039 fi
15040
15041 fi
15042
15043
15044 fi
15045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_lib_sockets" >&5
15046 $as_echo "$druntime_cv_lib_sockets" >&6; }
15047 LIBS="$LIBS $druntime_cv_lib_sockets"
15048
15049
15050 # Keep this in sync with core/thread.d, set druntime_fiber_asm_external to
15051 # "yes" for targets that have 'version = AsmExternal'.
15052 druntime_fiber_asm_external=no
15053 case "$target_cpu" in
15054 aarch64* | \
15055 arm* | \
15056 i[34567]86|x86_64 | \
15057 powerpc)
15058 druntime_fiber_asm_external=yes
15059 ;;
15060 esac
15061 if test "$druntime_fiber_asm_external" = no; then
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing swapcontext" >&5
15063 $as_echo_n "checking for library containing swapcontext... " >&6; }
15064 if ${ac_cv_search_swapcontext+:} false; then :
15065 $as_echo_n "(cached) " >&6
15066 else
15067 ac_func_search_save_LIBS=$LIBS
15068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15069 /* end confdefs.h. */
15070
15071 /* Override any GCC internal prototype to avoid an error.
15072 Use char because int might match the return type of a GCC
15073 builtin and then its argument prototype would still apply. */
15074 #ifdef __cplusplus
15075 extern "C"
15076 #endif
15077 char swapcontext ();
15078 int
15079 main ()
15080 {
15081 return swapcontext ();
15082 ;
15083 return 0;
15084 }
15085 _ACEOF
15086 for ac_lib in '' c ucontext; do
15087 if test -z "$ac_lib"; then
15088 ac_res="none required"
15089 else
15090 ac_res=-l$ac_lib
15091 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15092 fi
15093 if ac_fn_c_try_link "$LINENO"; then :
15094 ac_cv_search_swapcontext=$ac_res
15095 fi
15096 rm -f core conftest.err conftest.$ac_objext \
15097 conftest$ac_exeext
15098 if ${ac_cv_search_swapcontext+:} false; then :
15099 break
15100 fi
15101 done
15102 if ${ac_cv_search_swapcontext+:} false; then :
15103
15104 else
15105 ac_cv_search_swapcontext=no
15106 fi
15107 rm conftest.$ac_ext
15108 LIBS=$ac_func_search_save_LIBS
15109 fi
15110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_swapcontext" >&5
15111 $as_echo "$ac_cv_search_swapcontext" >&6; }
15112 ac_res=$ac_cv_search_swapcontext
15113 if test "$ac_res" != no; then :
15114 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15115
15116 else
15117 as_fn_error $? "swapcontext required but not found" "$LINENO" 5
15118 fi
15119
15120 fi
15121
15122
15123 ac_ext=c
15124 ac_cpp='$CPP $CPPFLAGS'
15125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15128
15129 LIBZ=""
15130
15131
15132 # Check whether --with-target-system-zlib was given.
15133 if test "${with_target_system_zlib+set}" = set; then :
15134 withval=$with_target_system_zlib;
15135 else
15136 with_target_system_zlib=no
15137 fi
15138
15139
15140 case "$with_target_system_zlib" in
15141 yes|no|auto) ;;
15142 *) as_fn_error $? "Invalid argument for --with-target-system-zlib" "$LINENO" 5 ;;
15143 esac
15144
15145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system zlib" >&5
15146 $as_echo_n "checking for system zlib... " >&6; }
15147 save_LIBS=$LIBS
15148 LIBS="$LIBS -lz"
15149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15150 /* end confdefs.h. */
15151 #include <zlib.h>
15152 int
15153 main ()
15154 {
15155 gzopen("none", "rb")
15156 ;
15157 return 0;
15158 }
15159 _ACEOF
15160 if ac_fn_c_try_link "$LINENO"; then :
15161
15162 if test "$cross_compiling" = yes; then :
15163 system_zlib_found=no
15164
15165 else
15166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15167 /* end confdefs.h. */
15168
15169 #include <zlib.h>
15170 int main() {
15171 gzFile file = gzopen("none", "rb");
15172 return 0;
15173 }
15174
15175 _ACEOF
15176 if ac_fn_c_try_run "$LINENO"; then :
15177 system_zlib_found=yes
15178 else
15179 system_zlib_found=no
15180 fi
15181 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15182 conftest.$ac_objext conftest.beam conftest.$ac_ext
15183 fi
15184
15185
15186 else
15187 system_zlib_found=no
15188 fi
15189 rm -f core conftest.err conftest.$ac_objext \
15190 conftest$ac_exeext conftest.$ac_ext
15191 LIBS=$save_LIBS
15192
15193 if test x$system_zlib_found = xyes && test x$with_target_system_zlib != xno; then
15194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15195 $as_echo "found" >&6; }
15196 LIBS="$LIBS -lz"
15197 elif test x$system_zlib_found = xno && test x$with_target_system_zlib = xyes; then
15198 as_fn_error $? "system zlib required but not found" "$LINENO" 5
15199 else
15200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15201 $as_echo "just compiled" >&6; }
15202 LIBZ=../../zlib/libz_convenience.la
15203 fi
15204
15205
15206 ac_ext=c
15207 ac_cpp='$CPP $CPPFLAGS'
15208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15211
15212
15213
15214
15215
15216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking D GCC version" >&5
15217 $as_echo_n "checking D GCC version... " >&6; }
15218 gcc_version=`eval $get_gcc_base_ver $srcdir/../gcc/BASE-VER`
15219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_version" >&5
15220 $as_echo "$gcc_version" >&6; }
15221
15222
15223
15224 # Check whether --with-cross-host was given.
15225 if test "${with_cross_host+set}" = set; then :
15226 withval=$with_cross_host;
15227 fi
15228
15229
15230 libphobos_toolexecdir=no
15231 libphobos_toolexeclibdir=no
15232
15233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
15234 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
15235 # Check whether --enable-version-specific-runtime-libs was given.
15236 if test "${enable_version_specific_runtime_libs+set}" = set; then :
15237 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
15238 yes) version_specific_libs=yes ;;
15239 no) version_specific_libs=no ;;
15240 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
15241 esac
15242 else
15243 version_specific_libs=no
15244 fi
15245
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
15247 $as_echo "$version_specific_libs" >&6; }
15248
15249
15250 # Check whether --with-toolexeclibdir was given.
15251 if test "${with_toolexeclibdir+set}" = set; then :
15252 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
15253 /)
15254 ;;
15255 */)
15256 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
15257 ;;
15258 esac
15259 else
15260 with_toolexeclibdir=no
15261 fi
15262
15263
15264
15265 # Version-specific runtime libs processing.
15266 if test $version_specific_libs = yes; then
15267 libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15268 libphobos_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
15269 else
15270 # Calculate libphobos_toolexecdir, libphobos_toolexeclibdir
15271 # Install a library built with a cross compiler in tooldir, not libdir.
15272 if test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
15273 libphobos_toolexecdir='${exec_prefix}/${host_alias}'
15274 case ${with_toolexeclibdir} in
15275 no)
15276 libphobos_toolexeclibdir='${toolexecdir}/lib'
15277 ;;
15278 *)
15279 libphobos_toolexeclibdir=${with_toolexeclibdir}
15280 ;;
15281 esac
15282 else
15283 libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15284 libphobos_toolexeclibdir='${libdir}'
15285 fi
15286 multi_os_directory=`$GDC -print-multi-os-directory`
15287 case $multi_os_directory in
15288 .) ;; # Avoid trailing /.
15289 *) libphobos_toolexeclibdir=${libphobos_toolexeclibdir}/${multi_os_directory} ;;
15290 esac
15291 fi
15292
15293
15294
15295 # Default case for install directory for D sources files.
15296 gdc_include_dir='$(libdir)/gcc/${target_alias}/${gcc_version}/include/d'
15297
15298
15299
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-libphobos" >&5
15301 $as_echo_n "checking for --enable-libphobos... " >&6; }
15302 # Check whether --enable-libphobos was given.
15303 if test "${enable_libphobos+set}" = set; then :
15304 enableval=$enable_libphobos;
15305 fi
15306
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libphobos" >&5
15308 $as_echo "$enable_libphobos" >&6; }
15309
15310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libphobos-druntime-only" >&5
15311 $as_echo_n "checking for --with-libphobos-druntime-only... " >&6; }
15312
15313 # Check whether --with-libphobos-druntime-only was given.
15314 if test "${with_libphobos_druntime_only+set}" = set; then :
15315 withval=$with_libphobos_druntime_only;
15316 else
15317 with_libphobos_druntime_only=auto
15318 fi
15319
15320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_libphobos_druntime_only" >&5
15321 $as_echo "$with_libphobos_druntime_only" >&6; }
15322
15323 case "$with_libphobos_druntime_only" in
15324 yes|no|auto) ;;
15325 *) as_fn_error $? "Invalid argument for --with-libphobos-druntime-only" "$LINENO" 5 ;;
15326 esac
15327
15328 # See if supported.
15329 unset LIBPHOBOS_SUPPORTED
15330 unset LIBDRUNTIME_ONLY
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for host support for libphobos" >&5
15332 $as_echo_n "checking for host support for libphobos... " >&6; }
15333 . ${srcdir}/configure.tgt
15334 case ${host} in
15335 x86_64-*-solaris2.* | i?86-*-solaris2.*)
15336 # libphobos doesn't compile with the Solaris/x86 assembler due to a
15337 # relatively low linelength limit.
15338 as_prog=`$CC -print-prog-name=as`
15339 if test -n "$as_prog" && $as_prog -v /dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
15340 druntime_cv_use_gas=yes;
15341 else
15342 druntime_cv_use_gas=no;
15343 fi
15344 rm -f a.out
15345 if test x$druntime_cv_use_gas = xno; then
15346 LIBPHOBOS_SUPPORTED=no
15347 fi
15348 # 64-bit D execution fails with Solaris ld without -z relax=transtls support.
15349 if test "$druntime_ld_gld" = "no" && test "$druntime_ld_relax_transtls" = "no"; then
15350 LIBPHOBOS_SUPPORTED=no
15351 fi
15352 ;;
15353 esac
15354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPHOBOS_SUPPORTED" >&5
15355 $as_echo "$LIBPHOBOS_SUPPORTED" >&6; }
15356
15357 # Decide if it's usable.
15358 case $LIBPHOBOS_SUPPORTED:$enable_libphobos in
15359 *:no) use_libphobos=no ;;
15360 *:yes) use_libphobos=yes ;;
15361 yes:*) use_libphobos=yes ;;
15362 *:*) use_libphobos=no ;;
15363 esac
15364 if test x$use_libphobos = xyes; then
15365 ENABLE_LIBPHOBOS_TRUE=
15366 ENABLE_LIBPHOBOS_FALSE='#'
15367 else
15368 ENABLE_LIBPHOBOS_TRUE='#'
15369 ENABLE_LIBPHOBOS_FALSE=
15370 fi
15371
15372
15373 # Decide if only libdruntime should be built.
15374 case $LIBDRUNTIME_ONLY:$with_libphobos_druntime_only in
15375 *:no) only_libdruntime=no ;;
15376 *:yes) only_libdruntime=yes ;;
15377 yes:*) only_libdruntime=yes ;;
15378 *:*) only_libdruntime=no ;;
15379 esac
15380 if test x$only_libdruntime = xyes; then
15381 ENABLE_LIBDRUNTIME_ONLY_TRUE=
15382 ENABLE_LIBDRUNTIME_ONLY_FALSE='#'
15383 else
15384 ENABLE_LIBDRUNTIME_ONLY_TRUE='#'
15385 ENABLE_LIBDRUNTIME_ONLY_FALSE=
15386 fi
15387
15388
15389 # Enable expensive internal checks
15390 # Check whether --enable-libphobos-checking was given.
15391 if test "${enable_libphobos_checking+set}" = set; then :
15392 enableval=$enable_libphobos_checking; ac_checking_flags="${enableval}"
15393 else
15394 ac_checking_flags=release
15395 fi
15396
15397 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
15398 for check in release $ac_checking_flags
15399 do
15400 case $check in
15401 # These set all the flags to specific states
15402 yes|all) RELEASE_FLAG="-fno-release" ; ASSERT_FLAG= ;;
15403 no|none|release) RELEASE_FLAG="-frelease" ; ASSERT_FLAG= ;;
15404 # These enable particular checks
15405 assert) ASSERT_FLAG="-fassert" ;;
15406 # Accept
15407 *) ;;
15408 esac
15409 done
15410 IFS="$ac_save_IFS"
15411 CHECKING_DFLAGS="$RELEASE_FLAG $ASSERT_FLAG"
15412
15413
15414 # Add drtbegin.o/drtend.o to startfile/endfile specs in libgphobos.spec
15415 if test "$DCFG_MINFO_BRACKETING" = "false"; then
15416 DRTSTUFF_SPEC=$srcdir/src/drtstuff.spec
15417 else
15418 DRTSTUFF_SPEC=/dev/null
15419 fi
15420
15421
15422 # Add dependencies for libgphobos.spec file
15423 SPEC_PHOBOS_DEPS="$LIBS"
15424
15425
15426 # Libdruntime / phobos soname version
15427 libtool_VERSION=1:0:0
15428
15429
15430 # Set default flags (after DRUNTIME_WERROR!)
15431 if test -z "$GDCFLAGS"; then
15432 GDCFLAGS="-g -O2"
15433 fi
15434
15435
15436 WARN_DFLAGS="-Wall $WERROR_FLAG"
15437
15438
15439 # Sanity check for the cross-compilation case:
15440 ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
15441 if test "x$ac_cv_header_stdio_h" = xyes; then :
15442 :
15443 else
15444 as_fn_error $? "cannot find stdio.h." "$LINENO" 5
15445 fi
15446
15447
15448
15449 ac_config_files="$ac_config_files Makefile"
15450
15451
15452 ac_config_files="$ac_config_files libdruntime/gcc/config.d libdruntime/gcc/libbacktrace.d"
15453
15454 ac_config_files="$ac_config_files src/libgphobos.spec"
15455
15456 ac_config_files="$ac_config_files testsuite/testsuite_flags"
15457
15458
15459 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
15460 # that multilib installs will end up installed in the correct place.
15461 # The testsuite needs it for multilib-aware ABI baseline files.
15462 # To work around this not being passed down from config-ml.in ->
15463 # srcdir/Makefile.am -> srcdir/{src,libdruntime,...}/Makefile.am, manually
15464 # append it here. Only modify Makefiles that have just been created.
15465 #
15466 # Also, get rid of this simulated-VPATH thing that automake does.
15467 ac_config_files="$ac_config_files libdruntime/Makefile src/Makefile testsuite/Makefile"
15468
15469
15470 cat >confcache <<\_ACEOF
15471 # This file is a shell script that caches the results of configure
15472 # tests run on this system so they can be shared between configure
15473 # scripts and configure runs, see configure's option --config-cache.
15474 # It is not useful on other systems. If it contains results you don't
15475 # want to keep, you may remove or edit it.
15476 #
15477 # config.status only pays attention to the cache file if you give it
15478 # the --recheck option to rerun configure.
15479 #
15480 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15481 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15482 # following values.
15483
15484 _ACEOF
15485
15486 # The following way of writing the cache mishandles newlines in values,
15487 # but we know of no workaround that is simple, portable, and efficient.
15488 # So, we kill variables containing newlines.
15489 # Ultrix sh set writes to stderr and can't be redirected directly,
15490 # and sets the high bit in the cache file unless we assign to the vars.
15491 (
15492 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15493 eval ac_val=\$$ac_var
15494 case $ac_val in #(
15495 *${as_nl}*)
15496 case $ac_var in #(
15497 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15498 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15499 esac
15500 case $ac_var in #(
15501 _ | IFS | as_nl) ;; #(
15502 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15503 *) { eval $ac_var=; unset $ac_var;} ;;
15504 esac ;;
15505 esac
15506 done
15507
15508 (set) 2>&1 |
15509 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15510 *${as_nl}ac_space=\ *)
15511 # `set' does not quote correctly, so add quotes: double-quote
15512 # substitution turns \\\\ into \\, and sed turns \\ into \.
15513 sed -n \
15514 "s/'/'\\\\''/g;
15515 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15516 ;; #(
15517 *)
15518 # `set' quotes correctly as required by POSIX, so do not add quotes.
15519 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15520 ;;
15521 esac |
15522 sort
15523 ) |
15524 sed '
15525 /^ac_cv_env_/b end
15526 t clear
15527 :clear
15528 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15529 t end
15530 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15531 :end' >>confcache
15532 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15533 if test -w "$cache_file"; then
15534 if test "x$cache_file" != "x/dev/null"; then
15535 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15536 $as_echo "$as_me: updating cache $cache_file" >&6;}
15537 if test ! -f "$cache_file" || test -h "$cache_file"; then
15538 cat confcache >"$cache_file"
15539 else
15540 case $cache_file in #(
15541 */* | ?:*)
15542 mv -f confcache "$cache_file"$$ &&
15543 mv -f "$cache_file"$$ "$cache_file" ;; #(
15544 *)
15545 mv -f confcache "$cache_file" ;;
15546 esac
15547 fi
15548 fi
15549 else
15550 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15551 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15552 fi
15553 fi
15554 rm -f confcache
15555
15556 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15557 # Let make expand exec_prefix.
15558 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15559
15560 DEFS=-DHAVE_CONFIG_H
15561
15562 ac_libobjs=
15563 ac_ltlibobjs=
15564 U=
15565 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15566 # 1. Remove the extension, and $U if already installed.
15567 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15568 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15569 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15570 # will be set to the directory where LIBOBJS objects are built.
15571 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15572 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15573 done
15574 LIBOBJS=$ac_libobjs
15575
15576 LTLIBOBJS=$ac_ltlibobjs
15577
15578
15579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15580 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15581 if test -n "$am_sleep_pid"; then
15582 # Hide warnings about reused PIDs.
15583 wait $am_sleep_pid 2>/dev/null
15584 fi
15585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15586 $as_echo "done" >&6; }
15587 if test -n "$EXEEXT"; then
15588 am__EXEEXT_TRUE=
15589 am__EXEEXT_FALSE='#'
15590 else
15591 am__EXEEXT_TRUE='#'
15592 am__EXEEXT_FALSE=
15593 fi
15594
15595 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15596 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15597 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15598 fi
15599 if test -z "${DRUNTIME_CPU_AARCH64_TRUE}" && test -z "${DRUNTIME_CPU_AARCH64_FALSE}"; then
15600 as_fn_error $? "conditional \"DRUNTIME_CPU_AARCH64\" was never defined.
15601 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15602 fi
15603 if test -z "${DRUNTIME_CPU_ARM_TRUE}" && test -z "${DRUNTIME_CPU_ARM_FALSE}"; then
15604 as_fn_error $? "conditional \"DRUNTIME_CPU_ARM\" was never defined.
15605 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15606 fi
15607 if test -z "${DRUNTIME_CPU_MIPS_TRUE}" && test -z "${DRUNTIME_CPU_MIPS_FALSE}"; then
15608 as_fn_error $? "conditional \"DRUNTIME_CPU_MIPS\" was never defined.
15609 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15610 fi
15611 if test -z "${DRUNTIME_CPU_POWERPC_TRUE}" && test -z "${DRUNTIME_CPU_POWERPC_FALSE}"; then
15612 as_fn_error $? "conditional \"DRUNTIME_CPU_POWERPC\" was never defined.
15613 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15614 fi
15615 if test -z "${DRUNTIME_CPU_POWERPC64_TRUE}" && test -z "${DRUNTIME_CPU_POWERPC64_FALSE}"; then
15616 as_fn_error $? "conditional \"DRUNTIME_CPU_POWERPC64\" was never defined.
15617 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15618 fi
15619 if test -z "${DRUNTIME_CPU_X86_TRUE}" && test -z "${DRUNTIME_CPU_X86_FALSE}"; then
15620 as_fn_error $? "conditional \"DRUNTIME_CPU_X86\" was never defined.
15621 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15622 fi
15623 if test -z "${DRUNTIME_CPU_SYSTEMZ_TRUE}" && test -z "${DRUNTIME_CPU_SYSTEMZ_FALSE}"; then
15624 as_fn_error $? "conditional \"DRUNTIME_CPU_SYSTEMZ\" was never defined.
15625 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15626 fi
15627 if test -z "${DRUNTIME_CPU_S390_TRUE}" && test -z "${DRUNTIME_CPU_S390_FALSE}"; then
15628 as_fn_error $? "conditional \"DRUNTIME_CPU_S390\" was never defined.
15629 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15630 fi
15631 if test -z "${DRUNTIME_OS_AIX_TRUE}" && test -z "${DRUNTIME_OS_AIX_FALSE}"; then
15632 as_fn_error $? "conditional \"DRUNTIME_OS_AIX\" was never defined.
15633 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15634 fi
15635 if test -z "${DRUNTIME_OS_ANDROID_TRUE}" && test -z "${DRUNTIME_OS_ANDROID_FALSE}"; then
15636 as_fn_error $? "conditional \"DRUNTIME_OS_ANDROID\" was never defined.
15637 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15638 fi
15639 if test -z "${DRUNTIME_OS_DARWIN_TRUE}" && test -z "${DRUNTIME_OS_DARWIN_FALSE}"; then
15640 as_fn_error $? "conditional \"DRUNTIME_OS_DARWIN\" was never defined.
15641 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15642 fi
15643 if test -z "${DRUNTIME_OS_DRAGONFLYBSD_TRUE}" && test -z "${DRUNTIME_OS_DRAGONFLYBSD_FALSE}"; then
15644 as_fn_error $? "conditional \"DRUNTIME_OS_DRAGONFLYBSD\" was never defined.
15645 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15646 fi
15647 if test -z "${DRUNTIME_OS_FREEBSD_TRUE}" && test -z "${DRUNTIME_OS_FREEBSD_FALSE}"; then
15648 as_fn_error $? "conditional \"DRUNTIME_OS_FREEBSD\" was never defined.
15649 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15650 fi
15651 if test -z "${DRUNTIME_OS_NETBSD_TRUE}" && test -z "${DRUNTIME_OS_NETBSD_FALSE}"; then
15652 as_fn_error $? "conditional \"DRUNTIME_OS_NETBSD\" was never defined.
15653 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15654 fi
15655 if test -z "${DRUNTIME_OS_OPENBSD_TRUE}" && test -z "${DRUNTIME_OS_OPENBSD_FALSE}"; then
15656 as_fn_error $? "conditional \"DRUNTIME_OS_OPENBSD\" was never defined.
15657 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15658 fi
15659 if test -z "${DRUNTIME_OS_LINUX_TRUE}" && test -z "${DRUNTIME_OS_LINUX_FALSE}"; then
15660 as_fn_error $? "conditional \"DRUNTIME_OS_LINUX\" was never defined.
15661 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15662 fi
15663 if test -z "${DRUNTIME_OS_MINGW_TRUE}" && test -z "${DRUNTIME_OS_MINGW_FALSE}"; then
15664 as_fn_error $? "conditional \"DRUNTIME_OS_MINGW\" was never defined.
15665 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15666 fi
15667 if test -z "${DRUNTIME_OS_SOLARIS_TRUE}" && test -z "${DRUNTIME_OS_SOLARIS_FALSE}"; then
15668 as_fn_error $? "conditional \"DRUNTIME_OS_SOLARIS\" was never defined.
15669 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15670 fi
15671 if test -z "${DRUNTIME_OS_POSIX_TRUE}" && test -z "${DRUNTIME_OS_POSIX_FALSE}"; then
15672 as_fn_error $? "conditional \"DRUNTIME_OS_POSIX\" was never defined.
15673 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15674 fi
15675 if test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE}" && test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE}"; then
15676 as_fn_error $? "conditional \"DRUNTIME_OS_ARM_EABI_UNWINDER\" was never defined.
15677 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15678 fi
15679 if test -z "${DRUNTIME_OS_MINFO_BRACKETING_TRUE}" && test -z "${DRUNTIME_OS_MINFO_BRACKETING_FALSE}"; then
15680 as_fn_error $? "conditional \"DRUNTIME_OS_MINFO_BRACKETING\" was never defined.
15681 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15682 fi
15683 if test -z "${ENABLE_LIBPHOBOS_TRUE}" && test -z "${ENABLE_LIBPHOBOS_FALSE}"; then
15684 as_fn_error $? "conditional \"ENABLE_LIBPHOBOS\" was never defined.
15685 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15686 fi
15687 if test -z "${ENABLE_LIBDRUNTIME_ONLY_TRUE}" && test -z "${ENABLE_LIBDRUNTIME_ONLY_FALSE}"; then
15688 as_fn_error $? "conditional \"ENABLE_LIBDRUNTIME_ONLY\" was never defined.
15689 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15690 fi
15691
15692 : "${CONFIG_STATUS=./config.status}"
15693 ac_write_fail=0
15694 ac_clean_files_save=$ac_clean_files
15695 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15696 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15697 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15698 as_write_fail=0
15699 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15700 #! $SHELL
15701 # Generated by $as_me.
15702 # Run this file to recreate the current configuration.
15703 # Compiler output produced by configure, useful for debugging
15704 # configure, is in config.log if it exists.
15705
15706 debug=false
15707 ac_cs_recheck=false
15708 ac_cs_silent=false
15709
15710 SHELL=\${CONFIG_SHELL-$SHELL}
15711 export SHELL
15712 _ASEOF
15713 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15714 ## -------------------- ##
15715 ## M4sh Initialization. ##
15716 ## -------------------- ##
15717
15718 # Be more Bourne compatible
15719 DUALCASE=1; export DUALCASE # for MKS sh
15720 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15721 emulate sh
15722 NULLCMD=:
15723 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15724 # is contrary to our usage. Disable this feature.
15725 alias -g '${1+"$@"}'='"$@"'
15726 setopt NO_GLOB_SUBST
15727 else
15728 case `(set -o) 2>/dev/null` in #(
15729 *posix*) :
15730 set -o posix ;; #(
15731 *) :
15732 ;;
15733 esac
15734 fi
15735
15736
15737 as_nl='
15738 '
15739 export as_nl
15740 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15741 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15742 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15743 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15744 # Prefer a ksh shell builtin over an external printf program on Solaris,
15745 # but without wasting forks for bash or zsh.
15746 if test -z "$BASH_VERSION$ZSH_VERSION" \
15747 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15748 as_echo='print -r --'
15749 as_echo_n='print -rn --'
15750 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15751 as_echo='printf %s\n'
15752 as_echo_n='printf %s'
15753 else
15754 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15755 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15756 as_echo_n='/usr/ucb/echo -n'
15757 else
15758 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15759 as_echo_n_body='eval
15760 arg=$1;
15761 case $arg in #(
15762 *"$as_nl"*)
15763 expr "X$arg" : "X\\(.*\\)$as_nl";
15764 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15765 esac;
15766 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15767 '
15768 export as_echo_n_body
15769 as_echo_n='sh -c $as_echo_n_body as_echo'
15770 fi
15771 export as_echo_body
15772 as_echo='sh -c $as_echo_body as_echo'
15773 fi
15774
15775 # The user is always right.
15776 if test "${PATH_SEPARATOR+set}" != set; then
15777 PATH_SEPARATOR=:
15778 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15779 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15780 PATH_SEPARATOR=';'
15781 }
15782 fi
15783
15784
15785 # IFS
15786 # We need space, tab and new line, in precisely that order. Quoting is
15787 # there to prevent editors from complaining about space-tab.
15788 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15789 # splitting by setting IFS to empty value.)
15790 IFS=" "" $as_nl"
15791
15792 # Find who we are. Look in the path if we contain no directory separator.
15793 as_myself=
15794 case $0 in #((
15795 *[\\/]* ) as_myself=$0 ;;
15796 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15797 for as_dir in $PATH
15798 do
15799 IFS=$as_save_IFS
15800 test -z "$as_dir" && as_dir=.
15801 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15802 done
15803 IFS=$as_save_IFS
15804
15805 ;;
15806 esac
15807 # We did not find ourselves, most probably we were run as `sh COMMAND'
15808 # in which case we are not to be found in the path.
15809 if test "x$as_myself" = x; then
15810 as_myself=$0
15811 fi
15812 if test ! -f "$as_myself"; then
15813 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15814 exit 1
15815 fi
15816
15817 # Unset variables that we do not need and which cause bugs (e.g. in
15818 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15819 # suppresses any "Segmentation fault" message there. '((' could
15820 # trigger a bug in pdksh 5.2.14.
15821 for as_var in BASH_ENV ENV MAIL MAILPATH
15822 do eval test x\${$as_var+set} = xset \
15823 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15824 done
15825 PS1='$ '
15826 PS2='> '
15827 PS4='+ '
15828
15829 # NLS nuisances.
15830 LC_ALL=C
15831 export LC_ALL
15832 LANGUAGE=C
15833 export LANGUAGE
15834
15835 # CDPATH.
15836 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15837
15838
15839 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15840 # ----------------------------------------
15841 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15842 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15843 # script with STATUS, using 1 if that was 0.
15844 as_fn_error ()
15845 {
15846 as_status=$1; test $as_status -eq 0 && as_status=1
15847 if test "$4"; then
15848 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15849 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15850 fi
15851 $as_echo "$as_me: error: $2" >&2
15852 as_fn_exit $as_status
15853 } # as_fn_error
15854
15855
15856 # as_fn_set_status STATUS
15857 # -----------------------
15858 # Set $? to STATUS, without forking.
15859 as_fn_set_status ()
15860 {
15861 return $1
15862 } # as_fn_set_status
15863
15864 # as_fn_exit STATUS
15865 # -----------------
15866 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15867 as_fn_exit ()
15868 {
15869 set +e
15870 as_fn_set_status $1
15871 exit $1
15872 } # as_fn_exit
15873
15874 # as_fn_unset VAR
15875 # ---------------
15876 # Portably unset VAR.
15877 as_fn_unset ()
15878 {
15879 { eval $1=; unset $1;}
15880 }
15881 as_unset=as_fn_unset
15882 # as_fn_append VAR VALUE
15883 # ----------------------
15884 # Append the text in VALUE to the end of the definition contained in VAR. Take
15885 # advantage of any shell optimizations that allow amortized linear growth over
15886 # repeated appends, instead of the typical quadratic growth present in naive
15887 # implementations.
15888 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15889 eval 'as_fn_append ()
15890 {
15891 eval $1+=\$2
15892 }'
15893 else
15894 as_fn_append ()
15895 {
15896 eval $1=\$$1\$2
15897 }
15898 fi # as_fn_append
15899
15900 # as_fn_arith ARG...
15901 # ------------------
15902 # Perform arithmetic evaluation on the ARGs, and store the result in the
15903 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15904 # must be portable across $(()) and expr.
15905 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15906 eval 'as_fn_arith ()
15907 {
15908 as_val=$(( $* ))
15909 }'
15910 else
15911 as_fn_arith ()
15912 {
15913 as_val=`expr "$@" || test $? -eq 1`
15914 }
15915 fi # as_fn_arith
15916
15917
15918 if expr a : '\(a\)' >/dev/null 2>&1 &&
15919 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15920 as_expr=expr
15921 else
15922 as_expr=false
15923 fi
15924
15925 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15926 as_basename=basename
15927 else
15928 as_basename=false
15929 fi
15930
15931 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15932 as_dirname=dirname
15933 else
15934 as_dirname=false
15935 fi
15936
15937 as_me=`$as_basename -- "$0" ||
15938 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15939 X"$0" : 'X\(//\)$' \| \
15940 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15941 $as_echo X/"$0" |
15942 sed '/^.*\/\([^/][^/]*\)\/*$/{
15943 s//\1/
15944 q
15945 }
15946 /^X\/\(\/\/\)$/{
15947 s//\1/
15948 q
15949 }
15950 /^X\/\(\/\).*/{
15951 s//\1/
15952 q
15953 }
15954 s/.*/./; q'`
15955
15956 # Avoid depending upon Character Ranges.
15957 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15958 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15959 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15960 as_cr_digits='0123456789'
15961 as_cr_alnum=$as_cr_Letters$as_cr_digits
15962
15963 ECHO_C= ECHO_N= ECHO_T=
15964 case `echo -n x` in #(((((
15965 -n*)
15966 case `echo 'xy\c'` in
15967 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15968 xy) ECHO_C='\c';;
15969 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15970 ECHO_T=' ';;
15971 esac;;
15972 *)
15973 ECHO_N='-n';;
15974 esac
15975
15976 rm -f conf$$ conf$$.exe conf$$.file
15977 if test -d conf$$.dir; then
15978 rm -f conf$$.dir/conf$$.file
15979 else
15980 rm -f conf$$.dir
15981 mkdir conf$$.dir 2>/dev/null
15982 fi
15983 if (echo >conf$$.file) 2>/dev/null; then
15984 if ln -s conf$$.file conf$$ 2>/dev/null; then
15985 as_ln_s='ln -s'
15986 # ... but there are two gotchas:
15987 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15988 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15989 # In both cases, we have to default to `cp -pR'.
15990 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15991 as_ln_s='cp -pR'
15992 elif ln conf$$.file conf$$ 2>/dev/null; then
15993 as_ln_s=ln
15994 else
15995 as_ln_s='cp -pR'
15996 fi
15997 else
15998 as_ln_s='cp -pR'
15999 fi
16000 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16001 rmdir conf$$.dir 2>/dev/null
16002
16003
16004 # as_fn_mkdir_p
16005 # -------------
16006 # Create "$as_dir" as a directory, including parents if necessary.
16007 as_fn_mkdir_p ()
16008 {
16009
16010 case $as_dir in #(
16011 -*) as_dir=./$as_dir;;
16012 esac
16013 test -d "$as_dir" || eval $as_mkdir_p || {
16014 as_dirs=
16015 while :; do
16016 case $as_dir in #(
16017 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16018 *) as_qdir=$as_dir;;
16019 esac
16020 as_dirs="'$as_qdir' $as_dirs"
16021 as_dir=`$as_dirname -- "$as_dir" ||
16022 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16023 X"$as_dir" : 'X\(//\)[^/]' \| \
16024 X"$as_dir" : 'X\(//\)$' \| \
16025 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16026 $as_echo X"$as_dir" |
16027 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16028 s//\1/
16029 q
16030 }
16031 /^X\(\/\/\)[^/].*/{
16032 s//\1/
16033 q
16034 }
16035 /^X\(\/\/\)$/{
16036 s//\1/
16037 q
16038 }
16039 /^X\(\/\).*/{
16040 s//\1/
16041 q
16042 }
16043 s/.*/./; q'`
16044 test -d "$as_dir" && break
16045 done
16046 test -z "$as_dirs" || eval "mkdir $as_dirs"
16047 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16048
16049
16050 } # as_fn_mkdir_p
16051 if mkdir -p . 2>/dev/null; then
16052 as_mkdir_p='mkdir -p "$as_dir"'
16053 else
16054 test -d ./-p && rmdir ./-p
16055 as_mkdir_p=false
16056 fi
16057
16058
16059 # as_fn_executable_p FILE
16060 # -----------------------
16061 # Test if FILE is an executable regular file.
16062 as_fn_executable_p ()
16063 {
16064 test -f "$1" && test -x "$1"
16065 } # as_fn_executable_p
16066 as_test_x='test -x'
16067 as_executable_p=as_fn_executable_p
16068
16069 # Sed expression to map a string onto a valid CPP name.
16070 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16071
16072 # Sed expression to map a string onto a valid variable name.
16073 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16074
16075
16076 exec 6>&1
16077 ## ----------------------------------- ##
16078 ## Main body of $CONFIG_STATUS script. ##
16079 ## ----------------------------------- ##
16080 _ASEOF
16081 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16082
16083 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16084 # Save the log message, to keep $0 and so on meaningful, and to
16085 # report actual input values of CONFIG_FILES etc. instead of their
16086 # values after options handling.
16087 ac_log="
16088 This file was extended by package-unused $as_me version-unused, which was
16089 generated by GNU Autoconf 2.69. Invocation command line was
16090
16091 CONFIG_FILES = $CONFIG_FILES
16092 CONFIG_HEADERS = $CONFIG_HEADERS
16093 CONFIG_LINKS = $CONFIG_LINKS
16094 CONFIG_COMMANDS = $CONFIG_COMMANDS
16095 $ $0 $@
16096
16097 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16098 "
16099
16100 _ACEOF
16101
16102 case $ac_config_files in *"
16103 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16104 esac
16105
16106 case $ac_config_headers in *"
16107 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16108 esac
16109
16110
16111 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16112 # Files that config.status was made for.
16113 config_files="$ac_config_files"
16114 config_headers="$ac_config_headers"
16115 config_commands="$ac_config_commands"
16116
16117 _ACEOF
16118
16119 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16120 ac_cs_usage="\
16121 \`$as_me' instantiates files and other configuration actions
16122 from templates according to the current configuration. Unless the files
16123 and actions are specified as TAGs, all are instantiated by default.
16124
16125 Usage: $0 [OPTION]... [TAG]...
16126
16127 -h, --help print this help, then exit
16128 -V, --version print version number and configuration settings, then exit
16129 --config print configuration, then exit
16130 -q, --quiet, --silent
16131 do not print progress messages
16132 -d, --debug don't remove temporary files
16133 --recheck update $as_me by reconfiguring in the same conditions
16134 --file=FILE[:TEMPLATE]
16135 instantiate the configuration file FILE
16136 --header=FILE[:TEMPLATE]
16137 instantiate the configuration header FILE
16138
16139 Configuration files:
16140 $config_files
16141
16142 Configuration headers:
16143 $config_headers
16144
16145 Configuration commands:
16146 $config_commands
16147
16148 Report bugs to the package provider."
16149
16150 _ACEOF
16151 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16152 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16153 ac_cs_version="\\
16154 package-unused config.status version-unused
16155 configured by $0, generated by GNU Autoconf 2.69,
16156 with options \\"\$ac_cs_config\\"
16157
16158 Copyright (C) 2012 Free Software Foundation, Inc.
16159 This config.status script is free software; the Free Software Foundation
16160 gives unlimited permission to copy, distribute and modify it."
16161
16162 ac_pwd='$ac_pwd'
16163 srcdir='$srcdir'
16164 INSTALL='$INSTALL'
16165 MKDIR_P='$MKDIR_P'
16166 AWK='$AWK'
16167 test -n "\$AWK" || AWK=awk
16168 _ACEOF
16169
16170 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16171 # The default lists apply if the user does not specify any file.
16172 ac_need_defaults=:
16173 while test $# != 0
16174 do
16175 case $1 in
16176 --*=?*)
16177 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16178 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16179 ac_shift=:
16180 ;;
16181 --*=)
16182 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16183 ac_optarg=
16184 ac_shift=:
16185 ;;
16186 *)
16187 ac_option=$1
16188 ac_optarg=$2
16189 ac_shift=shift
16190 ;;
16191 esac
16192
16193 case $ac_option in
16194 # Handling of the options.
16195 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16196 ac_cs_recheck=: ;;
16197 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16198 $as_echo "$ac_cs_version"; exit ;;
16199 --config | --confi | --conf | --con | --co | --c )
16200 $as_echo "$ac_cs_config"; exit ;;
16201 --debug | --debu | --deb | --de | --d | -d )
16202 debug=: ;;
16203 --file | --fil | --fi | --f )
16204 $ac_shift
16205 case $ac_optarg in
16206 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16207 '') as_fn_error $? "missing file argument" ;;
16208 esac
16209 as_fn_append CONFIG_FILES " '$ac_optarg'"
16210 ac_need_defaults=false;;
16211 --header | --heade | --head | --hea )
16212 $ac_shift
16213 case $ac_optarg in
16214 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16215 esac
16216 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16217 ac_need_defaults=false;;
16218 --he | --h)
16219 # Conflict between --help and --header
16220 as_fn_error $? "ambiguous option: \`$1'
16221 Try \`$0 --help' for more information.";;
16222 --help | --hel | -h )
16223 $as_echo "$ac_cs_usage"; exit ;;
16224 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16225 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16226 ac_cs_silent=: ;;
16227
16228 # This is an error.
16229 -*) as_fn_error $? "unrecognized option: \`$1'
16230 Try \`$0 --help' for more information." ;;
16231
16232 *) as_fn_append ac_config_targets " $1"
16233 ac_need_defaults=false ;;
16234
16235 esac
16236 shift
16237 done
16238
16239 ac_configure_extra_args=
16240
16241 if $ac_cs_silent; then
16242 exec 6>/dev/null
16243 ac_configure_extra_args="$ac_configure_extra_args --silent"
16244 fi
16245
16246 _ACEOF
16247 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16248 if \$ac_cs_recheck; then
16249 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16250 shift
16251 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16252 CONFIG_SHELL='$SHELL'
16253 export CONFIG_SHELL
16254 exec "\$@"
16255 fi
16256
16257 _ACEOF
16258 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16259 exec 5>>config.log
16260 {
16261 echo
16262 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16263 ## Running $as_me. ##
16264 _ASBOX
16265 $as_echo "$ac_log"
16266 } >&5
16267
16268 _ACEOF
16269 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16270 #
16271 # INIT-COMMANDS
16272 #
16273
16274 srcdir="$srcdir"
16275 host="$host"
16276 target="$target"
16277 with_multisubdir="$with_multisubdir"
16278 with_multisrctop="$with_multisrctop"
16279 with_target_subdir="$with_target_subdir"
16280 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16281 multi_basedir="$multi_basedir"
16282 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16283 CC="$CC"
16284 CXX="$CXX"
16285 GFORTRAN="$GFORTRAN"
16286 GDC="$GDC"
16287
16288
16289 # The HP-UX ksh and POSIX shell print the target directory to stdout
16290 # if CDPATH is set.
16291 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16292
16293 sed_quote_subst='$sed_quote_subst'
16294 double_quote_subst='$double_quote_subst'
16295 delay_variable_subst='$delay_variable_subst'
16296 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16297 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16298 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16299 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16300 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16301 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16302 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16303 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16304 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16305 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16306 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16307 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16308 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16309 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16310 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16311 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16312 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16313 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16314 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16315 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16316 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16317 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16318 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16319 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16320 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16321 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16322 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16323 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16324 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16325 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16326 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16327 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16328 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16329 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16330 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16331 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16332 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16333 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16334 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16335 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16336 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16337 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16338 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16339 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16340 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16341 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16342 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16343 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16344 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"`'
16345 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16346 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16347 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16348 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16349 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16350 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16351 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16352 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16353 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16354 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16355 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16356 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16357 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16358 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16359 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16360 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16361 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16362 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16363 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16364 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16365 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16366 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16367 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16368 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16369 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16370 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16371 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16372 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16373 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16374 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16375 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16376 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16377 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16378 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16379 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16380 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16381 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16382 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16383 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16384 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16385 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16386 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16387 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16388 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16389 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16390 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16391 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16392 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16393 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16394 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16395 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16396 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16397 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16398 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16399 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16400 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16401 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16402 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16403 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16404 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16405 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16406 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16407 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16408 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16409 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16410 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16411 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16412 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16413 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16414 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16415 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16416 LD_D='`$ECHO "$LD_D" | $SED "$delay_single_quote_subst"`'
16417 reload_flag_D='`$ECHO "$reload_flag_D" | $SED "$delay_single_quote_subst"`'
16418 reload_cmds_D='`$ECHO "$reload_cmds_D" | $SED "$delay_single_quote_subst"`'
16419 old_archive_cmds_D='`$ECHO "$old_archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16420 compiler_D='`$ECHO "$compiler_D" | $SED "$delay_single_quote_subst"`'
16421 GCC_D='`$ECHO "$GCC_D" | $SED "$delay_single_quote_subst"`'
16422 lt_prog_compiler_no_builtin_flag_D='`$ECHO "$lt_prog_compiler_no_builtin_flag_D" | $SED "$delay_single_quote_subst"`'
16423 lt_prog_compiler_wl_D='`$ECHO "$lt_prog_compiler_wl_D" | $SED "$delay_single_quote_subst"`'
16424 lt_prog_compiler_pic_D='`$ECHO "$lt_prog_compiler_pic_D" | $SED "$delay_single_quote_subst"`'
16425 lt_prog_compiler_static_D='`$ECHO "$lt_prog_compiler_static_D" | $SED "$delay_single_quote_subst"`'
16426 lt_cv_prog_compiler_c_o_D='`$ECHO "$lt_cv_prog_compiler_c_o_D" | $SED "$delay_single_quote_subst"`'
16427 archive_cmds_need_lc_D='`$ECHO "$archive_cmds_need_lc_D" | $SED "$delay_single_quote_subst"`'
16428 enable_shared_with_static_runtimes_D='`$ECHO "$enable_shared_with_static_runtimes_D" | $SED "$delay_single_quote_subst"`'
16429 export_dynamic_flag_spec_D='`$ECHO "$export_dynamic_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16430 whole_archive_flag_spec_D='`$ECHO "$whole_archive_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16431 compiler_needs_object_D='`$ECHO "$compiler_needs_object_D" | $SED "$delay_single_quote_subst"`'
16432 old_archive_from_new_cmds_D='`$ECHO "$old_archive_from_new_cmds_D" | $SED "$delay_single_quote_subst"`'
16433 old_archive_from_expsyms_cmds_D='`$ECHO "$old_archive_from_expsyms_cmds_D" | $SED "$delay_single_quote_subst"`'
16434 archive_cmds_D='`$ECHO "$archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16435 archive_expsym_cmds_D='`$ECHO "$archive_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16436 module_cmds_D='`$ECHO "$module_cmds_D" | $SED "$delay_single_quote_subst"`'
16437 module_expsym_cmds_D='`$ECHO "$module_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16438 with_gnu_ld_D='`$ECHO "$with_gnu_ld_D" | $SED "$delay_single_quote_subst"`'
16439 allow_undefined_flag_D='`$ECHO "$allow_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16440 no_undefined_flag_D='`$ECHO "$no_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16441 hardcode_libdir_flag_spec_D='`$ECHO "$hardcode_libdir_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16442 hardcode_libdir_flag_spec_ld_D='`$ECHO "$hardcode_libdir_flag_spec_ld_D" | $SED "$delay_single_quote_subst"`'
16443 hardcode_libdir_separator_D='`$ECHO "$hardcode_libdir_separator_D" | $SED "$delay_single_quote_subst"`'
16444 hardcode_direct_D='`$ECHO "$hardcode_direct_D" | $SED "$delay_single_quote_subst"`'
16445 hardcode_direct_absolute_D='`$ECHO "$hardcode_direct_absolute_D" | $SED "$delay_single_quote_subst"`'
16446 hardcode_minus_L_D='`$ECHO "$hardcode_minus_L_D" | $SED "$delay_single_quote_subst"`'
16447 hardcode_shlibpath_var_D='`$ECHO "$hardcode_shlibpath_var_D" | $SED "$delay_single_quote_subst"`'
16448 hardcode_automatic_D='`$ECHO "$hardcode_automatic_D" | $SED "$delay_single_quote_subst"`'
16449 inherit_rpath_D='`$ECHO "$inherit_rpath_D" | $SED "$delay_single_quote_subst"`'
16450 link_all_deplibs_D='`$ECHO "$link_all_deplibs_D" | $SED "$delay_single_quote_subst"`'
16451 fix_srcfile_path_D='`$ECHO "$fix_srcfile_path_D" | $SED "$delay_single_quote_subst"`'
16452 always_export_symbols_D='`$ECHO "$always_export_symbols_D" | $SED "$delay_single_quote_subst"`'
16453 export_symbols_cmds_D='`$ECHO "$export_symbols_cmds_D" | $SED "$delay_single_quote_subst"`'
16454 exclude_expsyms_D='`$ECHO "$exclude_expsyms_D" | $SED "$delay_single_quote_subst"`'
16455 include_expsyms_D='`$ECHO "$include_expsyms_D" | $SED "$delay_single_quote_subst"`'
16456 prelink_cmds_D='`$ECHO "$prelink_cmds_D" | $SED "$delay_single_quote_subst"`'
16457 file_list_spec_D='`$ECHO "$file_list_spec_D" | $SED "$delay_single_quote_subst"`'
16458 hardcode_action_D='`$ECHO "$hardcode_action_D" | $SED "$delay_single_quote_subst"`'
16459
16460 LTCC='$LTCC'
16461 LTCFLAGS='$LTCFLAGS'
16462 compiler='$compiler_DEFAULT'
16463
16464 # A function that is used when there is no print builtin or printf.
16465 func_fallback_echo ()
16466 {
16467 eval 'cat <<_LTECHO_EOF
16468 \$1
16469 _LTECHO_EOF'
16470 }
16471
16472 # Quote evaled strings.
16473 for var in SHELL \
16474 ECHO \
16475 SED \
16476 GREP \
16477 EGREP \
16478 FGREP \
16479 LD \
16480 NM \
16481 LN_S \
16482 lt_SP2NL \
16483 lt_NL2SP \
16484 reload_flag \
16485 OBJDUMP \
16486 deplibs_check_method \
16487 file_magic_cmd \
16488 AR \
16489 AR_FLAGS \
16490 STRIP \
16491 RANLIB \
16492 CC \
16493 CFLAGS \
16494 compiler \
16495 lt_cv_sys_global_symbol_pipe \
16496 lt_cv_sys_global_symbol_to_cdecl \
16497 lt_cv_sys_global_symbol_to_c_name_address \
16498 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16499 lt_prog_compiler_no_builtin_flag \
16500 lt_prog_compiler_wl \
16501 lt_prog_compiler_pic \
16502 lt_prog_compiler_static \
16503 lt_cv_prog_compiler_c_o \
16504 need_locks \
16505 DSYMUTIL \
16506 NMEDIT \
16507 LIPO \
16508 OTOOL \
16509 OTOOL64 \
16510 shrext_cmds \
16511 export_dynamic_flag_spec \
16512 whole_archive_flag_spec \
16513 compiler_needs_object \
16514 with_gnu_ld \
16515 allow_undefined_flag \
16516 no_undefined_flag \
16517 hardcode_libdir_flag_spec \
16518 hardcode_libdir_flag_spec_ld \
16519 hardcode_libdir_separator \
16520 fix_srcfile_path \
16521 exclude_expsyms \
16522 include_expsyms \
16523 file_list_spec \
16524 variables_saved_for_relink \
16525 libname_spec \
16526 library_names_spec \
16527 soname_spec \
16528 install_override_mode \
16529 finish_eval \
16530 old_striplib \
16531 striplib \
16532 LD_D \
16533 reload_flag_D \
16534 compiler_D \
16535 lt_prog_compiler_no_builtin_flag_D \
16536 lt_prog_compiler_wl_D \
16537 lt_prog_compiler_pic_D \
16538 lt_prog_compiler_static_D \
16539 lt_cv_prog_compiler_c_o_D \
16540 export_dynamic_flag_spec_D \
16541 whole_archive_flag_spec_D \
16542 compiler_needs_object_D \
16543 with_gnu_ld_D \
16544 allow_undefined_flag_D \
16545 no_undefined_flag_D \
16546 hardcode_libdir_flag_spec_D \
16547 hardcode_libdir_flag_spec_ld_D \
16548 hardcode_libdir_separator_D \
16549 fix_srcfile_path_D \
16550 exclude_expsyms_D \
16551 include_expsyms_D \
16552 file_list_spec_D; do
16553 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16554 *[\\\\\\\`\\"\\\$]*)
16555 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16556 ;;
16557 *)
16558 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16559 ;;
16560 esac
16561 done
16562
16563 # Double-quote double-evaled strings.
16564 for var in reload_cmds \
16565 old_postinstall_cmds \
16566 old_postuninstall_cmds \
16567 old_archive_cmds \
16568 extract_expsyms_cmds \
16569 old_archive_from_new_cmds \
16570 old_archive_from_expsyms_cmds \
16571 archive_cmds \
16572 archive_expsym_cmds \
16573 module_cmds \
16574 module_expsym_cmds \
16575 export_symbols_cmds \
16576 prelink_cmds \
16577 postinstall_cmds \
16578 postuninstall_cmds \
16579 finish_cmds \
16580 sys_lib_search_path_spec \
16581 sys_lib_dlsearch_path_spec \
16582 reload_cmds_D \
16583 old_archive_cmds_D \
16584 old_archive_from_new_cmds_D \
16585 old_archive_from_expsyms_cmds_D \
16586 archive_cmds_D \
16587 archive_expsym_cmds_D \
16588 module_cmds_D \
16589 module_expsym_cmds_D \
16590 export_symbols_cmds_D \
16591 prelink_cmds_D; do
16592 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16593 *[\\\\\\\`\\"\\\$]*)
16594 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16595 ;;
16596 *)
16597 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16598 ;;
16599 esac
16600 done
16601
16602 ac_aux_dir='$ac_aux_dir'
16603 xsi_shell='$xsi_shell'
16604 lt_shell_append='$lt_shell_append'
16605
16606 # See if we are running on zsh, and set the options which allow our
16607 # commands through without removal of \ escapes INIT.
16608 if test -n "\${ZSH_VERSION+set}" ; then
16609 setopt NO_GLOB_SUBST
16610 fi
16611
16612
16613 PACKAGE='$PACKAGE'
16614 VERSION='$VERSION'
16615 TIMESTAMP='$TIMESTAMP'
16616 RM='$RM'
16617 ofile='$ofile'
16618
16619
16620
16621
16622
16623
16624 _ACEOF
16625
16626 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16627
16628 # Handling of arguments.
16629 for ac_config_target in $ac_config_targets
16630 do
16631 case $ac_config_target in
16632 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16633 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16634 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16635 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16636 "libdruntime/gcc/config.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/config.d" ;;
16637 "libdruntime/gcc/libbacktrace.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/libbacktrace.d" ;;
16638 "src/libgphobos.spec") CONFIG_FILES="$CONFIG_FILES src/libgphobos.spec" ;;
16639 "testsuite/testsuite_flags") CONFIG_FILES="$CONFIG_FILES testsuite/testsuite_flags" ;;
16640 "libdruntime/Makefile") CONFIG_FILES="$CONFIG_FILES libdruntime/Makefile" ;;
16641 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16642 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16643
16644 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16645 esac
16646 done
16647
16648
16649 # If the user did not use the arguments to specify the items to instantiate,
16650 # then the envvar interface is used. Set only those that are not.
16651 # We use the long form for the default assignment because of an extremely
16652 # bizarre bug on SunOS 4.1.3.
16653 if $ac_need_defaults; then
16654 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16655 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16656 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16657 fi
16658
16659 # Have a temporary directory for convenience. Make it in the build tree
16660 # simply because there is no reason against having it here, and in addition,
16661 # creating and moving files from /tmp can sometimes cause problems.
16662 # Hook for its removal unless debugging.
16663 # Note that there is a small window in which the directory will not be cleaned:
16664 # after its creation but before its name has been assigned to `$tmp'.
16665 $debug ||
16666 {
16667 tmp= ac_tmp=
16668 trap 'exit_status=$?
16669 : "${ac_tmp:=$tmp}"
16670 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16671 ' 0
16672 trap 'as_fn_exit 1' 1 2 13 15
16673 }
16674 # Create a (secure) tmp directory for tmp files.
16675
16676 {
16677 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16678 test -d "$tmp"
16679 } ||
16680 {
16681 tmp=./conf$$-$RANDOM
16682 (umask 077 && mkdir "$tmp")
16683 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16684 ac_tmp=$tmp
16685
16686 # Set up the scripts for CONFIG_FILES section.
16687 # No need to generate them if there are no CONFIG_FILES.
16688 # This happens for instance with `./config.status config.h'.
16689 if test -n "$CONFIG_FILES"; then
16690
16691 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16692 ac_cs_awk_getline=:
16693 ac_cs_awk_pipe_init=
16694 ac_cs_awk_read_file='
16695 while ((getline aline < (F[key])) > 0)
16696 print(aline)
16697 close(F[key])'
16698 ac_cs_awk_pipe_fini=
16699 else
16700 ac_cs_awk_getline=false
16701 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16702 ac_cs_awk_read_file='
16703 print "|#_!!_#|"
16704 print "cat " F[key] " &&"
16705 '$ac_cs_awk_pipe_init
16706 # The final `:' finishes the AND list.
16707 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16708 fi
16709 ac_cr=`echo X | tr X '\015'`
16710 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16711 # But we know of no other shell where ac_cr would be empty at this
16712 # point, so we can use a bashism as a fallback.
16713 if test "x$ac_cr" = x; then
16714 eval ac_cr=\$\'\\r\'
16715 fi
16716 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16717 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16718 ac_cs_awk_cr='\\r'
16719 else
16720 ac_cs_awk_cr=$ac_cr
16721 fi
16722
16723 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16724 _ACEOF
16725
16726 # Create commands to substitute file output variables.
16727 {
16728 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16729 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16730 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16731 echo "_ACAWK" &&
16732 echo "_ACEOF"
16733 } >conf$$files.sh &&
16734 . ./conf$$files.sh ||
16735 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16736 rm -f conf$$files.sh
16737
16738 {
16739 echo "cat >conf$$subs.awk <<_ACEOF" &&
16740 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16741 echo "_ACEOF"
16742 } >conf$$subs.sh ||
16743 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16744 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16745 ac_delim='%!_!# '
16746 for ac_last_try in false false false false false :; do
16747 . ./conf$$subs.sh ||
16748 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16749
16750 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16751 if test $ac_delim_n = $ac_delim_num; then
16752 break
16753 elif $ac_last_try; then
16754 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16755 else
16756 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16757 fi
16758 done
16759 rm -f conf$$subs.sh
16760
16761 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16762 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16763 _ACEOF
16764 sed -n '
16765 h
16766 s/^/S["/; s/!.*/"]=/
16767 p
16768 g
16769 s/^[^!]*!//
16770 :repl
16771 t repl
16772 s/'"$ac_delim"'$//
16773 t delim
16774 :nl
16775 h
16776 s/\(.\{148\}\)..*/\1/
16777 t more1
16778 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16779 p
16780 n
16781 b repl
16782 :more1
16783 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16784 p
16785 g
16786 s/.\{148\}//
16787 t nl
16788 :delim
16789 h
16790 s/\(.\{148\}\)..*/\1/
16791 t more2
16792 s/["\\]/\\&/g; s/^/"/; s/$/"/
16793 p
16794 b
16795 :more2
16796 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16797 p
16798 g
16799 s/.\{148\}//
16800 t delim
16801 ' <conf$$subs.awk | sed '
16802 /^[^""]/{
16803 N
16804 s/\n//
16805 }
16806 ' >>$CONFIG_STATUS || ac_write_fail=1
16807 rm -f conf$$subs.awk
16808 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16809 _ACAWK
16810 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16811 for (key in S) S_is_set[key] = 1
16812 FS = "\a"
16813 \$ac_cs_awk_pipe_init
16814 }
16815 {
16816 line = $ 0
16817 nfields = split(line, field, "@")
16818 substed = 0
16819 len = length(field[1])
16820 for (i = 2; i < nfields; i++) {
16821 key = field[i]
16822 keylen = length(key)
16823 if (S_is_set[key]) {
16824 value = S[key]
16825 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16826 len += length(value) + length(field[++i])
16827 substed = 1
16828 } else
16829 len += 1 + keylen
16830 }
16831 if (nfields == 3 && !substed) {
16832 key = field[2]
16833 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16834 \$ac_cs_awk_read_file
16835 next
16836 }
16837 }
16838 print line
16839 }
16840 \$ac_cs_awk_pipe_fini
16841 _ACAWK
16842 _ACEOF
16843 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16844 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16845 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16846 else
16847 cat
16848 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16849 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16850 _ACEOF
16851
16852 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16853 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16854 # trailing colons and then remove the whole line if VPATH becomes empty
16855 # (actually we leave an empty line to preserve line numbers).
16856 if test "x$srcdir" = x.; then
16857 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16858 h
16859 s///
16860 s/^/:/
16861 s/[ ]*$/:/
16862 s/:\$(srcdir):/:/g
16863 s/:\${srcdir}:/:/g
16864 s/:@srcdir@:/:/g
16865 s/^:*//
16866 s/:*$//
16867 x
16868 s/\(=[ ]*\).*/\1/
16869 G
16870 s/\n//
16871 s/^[^=]*=[ ]*$//
16872 }'
16873 fi
16874
16875 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16876 fi # test -n "$CONFIG_FILES"
16877
16878 # Set up the scripts for CONFIG_HEADERS section.
16879 # No need to generate them if there are no CONFIG_HEADERS.
16880 # This happens for instance with `./config.status Makefile'.
16881 if test -n "$CONFIG_HEADERS"; then
16882 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16883 BEGIN {
16884 _ACEOF
16885
16886 # Transform confdefs.h into an awk script `defines.awk', embedded as
16887 # here-document in config.status, that substitutes the proper values into
16888 # config.h.in to produce config.h.
16889
16890 # Create a delimiter string that does not exist in confdefs.h, to ease
16891 # handling of long lines.
16892 ac_delim='%!_!# '
16893 for ac_last_try in false false :; do
16894 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16895 if test -z "$ac_tt"; then
16896 break
16897 elif $ac_last_try; then
16898 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16899 else
16900 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16901 fi
16902 done
16903
16904 # For the awk script, D is an array of macro values keyed by name,
16905 # likewise P contains macro parameters if any. Preserve backslash
16906 # newline sequences.
16907
16908 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16909 sed -n '
16910 s/.\{148\}/&'"$ac_delim"'/g
16911 t rset
16912 :rset
16913 s/^[ ]*#[ ]*define[ ][ ]*/ /
16914 t def
16915 d
16916 :def
16917 s/\\$//
16918 t bsnl
16919 s/["\\]/\\&/g
16920 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16921 D["\1"]=" \3"/p
16922 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16923 d
16924 :bsnl
16925 s/["\\]/\\&/g
16926 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16927 D["\1"]=" \3\\\\\\n"\\/p
16928 t cont
16929 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16930 t cont
16931 d
16932 :cont
16933 n
16934 s/.\{148\}/&'"$ac_delim"'/g
16935 t clear
16936 :clear
16937 s/\\$//
16938 t bsnlc
16939 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16940 d
16941 :bsnlc
16942 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16943 b cont
16944 ' <confdefs.h | sed '
16945 s/'"$ac_delim"'/"\\\
16946 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16947
16948 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16949 for (key in D) D_is_set[key] = 1
16950 FS = "\a"
16951 }
16952 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16953 line = \$ 0
16954 split(line, arg, " ")
16955 if (arg[1] == "#") {
16956 defundef = arg[2]
16957 mac1 = arg[3]
16958 } else {
16959 defundef = substr(arg[1], 2)
16960 mac1 = arg[2]
16961 }
16962 split(mac1, mac2, "(") #)
16963 macro = mac2[1]
16964 prefix = substr(line, 1, index(line, defundef) - 1)
16965 if (D_is_set[macro]) {
16966 # Preserve the white space surrounding the "#".
16967 print prefix "define", macro P[macro] D[macro]
16968 next
16969 } else {
16970 # Replace #undef with comments. This is necessary, for example,
16971 # in the case of _POSIX_SOURCE, which is predefined and required
16972 # on some systems where configure will not decide to define it.
16973 if (defundef == "undef") {
16974 print "/*", prefix defundef, macro, "*/"
16975 next
16976 }
16977 }
16978 }
16979 { print }
16980 _ACAWK
16981 _ACEOF
16982 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16983 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16984 fi # test -n "$CONFIG_HEADERS"
16985
16986
16987 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16988 shift
16989 for ac_tag
16990 do
16991 case $ac_tag in
16992 :[FHLC]) ac_mode=$ac_tag; continue;;
16993 esac
16994 case $ac_mode$ac_tag in
16995 :[FHL]*:*);;
16996 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16997 :[FH]-) ac_tag=-:-;;
16998 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16999 esac
17000 ac_save_IFS=$IFS
17001 IFS=:
17002 set x $ac_tag
17003 IFS=$ac_save_IFS
17004 shift
17005 ac_file=$1
17006 shift
17007
17008 case $ac_mode in
17009 :L) ac_source=$1;;
17010 :[FH])
17011 ac_file_inputs=
17012 for ac_f
17013 do
17014 case $ac_f in
17015 -) ac_f="$ac_tmp/stdin";;
17016 *) # Look for the file first in the build tree, then in the source tree
17017 # (if the path is not absolute). The absolute path cannot be DOS-style,
17018 # because $ac_f cannot contain `:'.
17019 test -f "$ac_f" ||
17020 case $ac_f in
17021 [\\/$]*) false;;
17022 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17023 esac ||
17024 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17025 esac
17026 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17027 as_fn_append ac_file_inputs " '$ac_f'"
17028 done
17029
17030 # Let's still pretend it is `configure' which instantiates (i.e., don't
17031 # use $as_me), people would be surprised to read:
17032 # /* config.h. Generated by config.status. */
17033 configure_input='Generated from '`
17034 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17035 `' by configure.'
17036 if test x"$ac_file" != x-; then
17037 configure_input="$ac_file. $configure_input"
17038 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17039 $as_echo "$as_me: creating $ac_file" >&6;}
17040 fi
17041 # Neutralize special characters interpreted by sed in replacement strings.
17042 case $configure_input in #(
17043 *\&* | *\|* | *\\* )
17044 ac_sed_conf_input=`$as_echo "$configure_input" |
17045 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17046 *) ac_sed_conf_input=$configure_input;;
17047 esac
17048
17049 case $ac_tag in
17050 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17051 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17052 esac
17053 ;;
17054 esac
17055
17056 ac_dir=`$as_dirname -- "$ac_file" ||
17057 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17058 X"$ac_file" : 'X\(//\)[^/]' \| \
17059 X"$ac_file" : 'X\(//\)$' \| \
17060 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17061 $as_echo X"$ac_file" |
17062 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17063 s//\1/
17064 q
17065 }
17066 /^X\(\/\/\)[^/].*/{
17067 s//\1/
17068 q
17069 }
17070 /^X\(\/\/\)$/{
17071 s//\1/
17072 q
17073 }
17074 /^X\(\/\).*/{
17075 s//\1/
17076 q
17077 }
17078 s/.*/./; q'`
17079 as_dir="$ac_dir"; as_fn_mkdir_p
17080 ac_builddir=.
17081
17082 case "$ac_dir" in
17083 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17084 *)
17085 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17086 # A ".." for each directory in $ac_dir_suffix.
17087 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17088 case $ac_top_builddir_sub in
17089 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17090 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17091 esac ;;
17092 esac
17093 ac_abs_top_builddir=$ac_pwd
17094 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17095 # for backward compatibility:
17096 ac_top_builddir=$ac_top_build_prefix
17097
17098 case $srcdir in
17099 .) # We are building in place.
17100 ac_srcdir=.
17101 ac_top_srcdir=$ac_top_builddir_sub
17102 ac_abs_top_srcdir=$ac_pwd ;;
17103 [\\/]* | ?:[\\/]* ) # Absolute name.
17104 ac_srcdir=$srcdir$ac_dir_suffix;
17105 ac_top_srcdir=$srcdir
17106 ac_abs_top_srcdir=$srcdir ;;
17107 *) # Relative name.
17108 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17109 ac_top_srcdir=$ac_top_build_prefix$srcdir
17110 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17111 esac
17112 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17113
17114
17115 case $ac_mode in
17116 :F)
17117 #
17118 # CONFIG_FILE
17119 #
17120
17121 case $INSTALL in
17122 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17123 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17124 esac
17125 ac_MKDIR_P=$MKDIR_P
17126 case $MKDIR_P in
17127 [\\/$]* | ?:[\\/]* ) ;;
17128 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17129 esac
17130 _ACEOF
17131
17132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17133 # If the template does not know about datarootdir, expand it.
17134 # FIXME: This hack should be removed a few years after 2.60.
17135 ac_datarootdir_hack=; ac_datarootdir_seen=
17136 ac_sed_dataroot='
17137 /datarootdir/ {
17138 p
17139 q
17140 }
17141 /@datadir@/p
17142 /@docdir@/p
17143 /@infodir@/p
17144 /@localedir@/p
17145 /@mandir@/p'
17146 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17147 *datarootdir*) ac_datarootdir_seen=yes;;
17148 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17150 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17151 _ACEOF
17152 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17153 ac_datarootdir_hack='
17154 s&@datadir@&$datadir&g
17155 s&@docdir@&$docdir&g
17156 s&@infodir@&$infodir&g
17157 s&@localedir@&$localedir&g
17158 s&@mandir@&$mandir&g
17159 s&\\\${datarootdir}&$datarootdir&g' ;;
17160 esac
17161 _ACEOF
17162
17163 # Neutralize VPATH when `$srcdir' = `.'.
17164 # Shell code in configure.ac might set extrasub.
17165 # FIXME: do we really want to maintain this feature?
17166 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17167 ac_sed_extra="$ac_vpsub
17168 $extrasub
17169 _ACEOF
17170 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17171 :t
17172 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17173 s|@configure_input@|$ac_sed_conf_input|;t t
17174 s&@top_builddir@&$ac_top_builddir_sub&;t t
17175 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17176 s&@srcdir@&$ac_srcdir&;t t
17177 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17178 s&@top_srcdir@&$ac_top_srcdir&;t t
17179 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17180 s&@builddir@&$ac_builddir&;t t
17181 s&@abs_builddir@&$ac_abs_builddir&;t t
17182 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17183 s&@INSTALL@&$ac_INSTALL&;t t
17184 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17185 $ac_datarootdir_hack
17186 "
17187 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17188 if $ac_cs_awk_getline; then
17189 $AWK -f "$ac_tmp/subs.awk"
17190 else
17191 $AWK -f "$ac_tmp/subs.awk" | $SHELL
17192 fi \
17193 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17194
17195 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17196 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17197 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17198 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17200 which seems to be undefined. Please make sure it is defined" >&5
17201 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17202 which seems to be undefined. Please make sure it is defined" >&2;}
17203
17204 rm -f "$ac_tmp/stdin"
17205 case $ac_file in
17206 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17207 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17208 esac \
17209 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17210 ;;
17211 :H)
17212 #
17213 # CONFIG_HEADER
17214 #
17215 if test x"$ac_file" != x-; then
17216 {
17217 $as_echo "/* $configure_input */" \
17218 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17219 } >"$ac_tmp/config.h" \
17220 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17221 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17222 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17223 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17224 else
17225 rm -f "$ac_file"
17226 mv "$ac_tmp/config.h" "$ac_file" \
17227 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17228 fi
17229 else
17230 $as_echo "/* $configure_input */" \
17231 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17232 || as_fn_error $? "could not create -" "$LINENO" 5
17233 fi
17234 # Compute "$ac_file"'s index in $config_headers.
17235 _am_arg="$ac_file"
17236 _am_stamp_count=1
17237 for _am_header in $config_headers :; do
17238 case $_am_header in
17239 $_am_arg | $_am_arg:* )
17240 break ;;
17241 * )
17242 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17243 esac
17244 done
17245 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17246 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17247 X"$_am_arg" : 'X\(//\)[^/]' \| \
17248 X"$_am_arg" : 'X\(//\)$' \| \
17249 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17250 $as_echo X"$_am_arg" |
17251 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17252 s//\1/
17253 q
17254 }
17255 /^X\(\/\/\)[^/].*/{
17256 s//\1/
17257 q
17258 }
17259 /^X\(\/\/\)$/{
17260 s//\1/
17261 q
17262 }
17263 /^X\(\/\).*/{
17264 s//\1/
17265 q
17266 }
17267 s/.*/./; q'`/stamp-h$_am_stamp_count
17268 ;;
17269
17270 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17271 $as_echo "$as_me: executing $ac_file commands" >&6;}
17272 ;;
17273 esac
17274
17275
17276 case $ac_file$ac_mode in
17277 "default-1":C)
17278 # Only add multilib support code if we just rebuilt the top-level
17279 # Makefile.
17280 case " $CONFIG_FILES " in
17281 *" Makefile "*)
17282 ac_file=Makefile . ${multi_basedir}/config-ml.in
17283 ;;
17284 esac ;;
17285 "libtool":C)
17286
17287 # See if we are running on zsh, and set the options which allow our
17288 # commands through without removal of \ escapes.
17289 if test -n "${ZSH_VERSION+set}" ; then
17290 setopt NO_GLOB_SUBST
17291 fi
17292
17293 cfgfile="${ofile}T"
17294 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17295 $RM "$cfgfile"
17296
17297 cat <<_LT_EOF >> "$cfgfile"
17298 #! $SHELL
17299
17300 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17301 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17302 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17303 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17304 #
17305 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17306 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17307 # Written by Gordon Matzigkeit, 1996
17308 #
17309 # This file is part of GNU Libtool.
17310 #
17311 # GNU Libtool is free software; you can redistribute it and/or
17312 # modify it under the terms of the GNU General Public License as
17313 # published by the Free Software Foundation; either version 2 of
17314 # the License, or (at your option) any later version.
17315 #
17316 # As a special exception to the GNU General Public License,
17317 # if you distribute this file as part of a program or library that
17318 # is built using GNU Libtool, you may include this file under the
17319 # same distribution terms that you use for the rest of that program.
17320 #
17321 # GNU Libtool is distributed in the hope that it will be useful,
17322 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17323 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17324 # GNU General Public License for more details.
17325 #
17326 # You should have received a copy of the GNU General Public License
17327 # along with GNU Libtool; see the file COPYING. If not, a copy
17328 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17329 # obtained by writing to the Free Software Foundation, Inc.,
17330 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17331
17332
17333 # The names of the tagged configurations supported by this script.
17334 available_tags="D "
17335
17336 # ### BEGIN LIBTOOL CONFIG
17337
17338 # Which release of libtool.m4 was used?
17339 macro_version=$macro_version
17340 macro_revision=$macro_revision
17341
17342 # Whether or not to build shared libraries.
17343 build_libtool_libs=$enable_shared
17344
17345 # Whether or not to build static libraries.
17346 build_old_libs=$enable_static
17347
17348 # What type of objects to build.
17349 pic_mode=$pic_mode
17350
17351 # Whether or not to optimize for fast installation.
17352 fast_install=$enable_fast_install
17353
17354 # Shell to use when invoking shell scripts.
17355 SHELL=$lt_SHELL
17356
17357 # An echo program that protects backslashes.
17358 ECHO=$lt_ECHO
17359
17360 # The host system.
17361 host_alias=$host_alias
17362 host=$host
17363 host_os=$host_os
17364
17365 # The build system.
17366 build_alias=$build_alias
17367 build=$build
17368 build_os=$build_os
17369
17370 # A sed program that does not truncate output.
17371 SED=$lt_SED
17372
17373 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17374 Xsed="\$SED -e 1s/^X//"
17375
17376 # A grep program that handles long lines.
17377 GREP=$lt_GREP
17378
17379 # An ERE matcher.
17380 EGREP=$lt_EGREP
17381
17382 # A literal string matcher.
17383 FGREP=$lt_FGREP
17384
17385 # A BSD- or MS-compatible name lister.
17386 NM=$lt_NM
17387
17388 # Whether we need soft or hard links.
17389 LN_S=$lt_LN_S
17390
17391 # What is the maximum length of a command?
17392 max_cmd_len=$max_cmd_len
17393
17394 # Object file suffix (normally "o").
17395 objext=$ac_objext
17396
17397 # Executable file suffix (normally "").
17398 exeext=$exeext
17399
17400 # whether the shell understands "unset".
17401 lt_unset=$lt_unset
17402
17403 # turn spaces into newlines.
17404 SP2NL=$lt_lt_SP2NL
17405
17406 # turn newlines into spaces.
17407 NL2SP=$lt_lt_NL2SP
17408
17409 # An object symbol dumper.
17410 OBJDUMP=$lt_OBJDUMP
17411
17412 # Method to check whether dependent libraries are shared objects.
17413 deplibs_check_method=$lt_deplibs_check_method
17414
17415 # Command to use when deplibs_check_method == "file_magic".
17416 file_magic_cmd=$lt_file_magic_cmd
17417
17418 # The archiver.
17419 AR=$lt_AR
17420 AR_FLAGS=$lt_AR_FLAGS
17421
17422 # A symbol stripping program.
17423 STRIP=$lt_STRIP
17424
17425 # Commands used to install an old-style archive.
17426 RANLIB=$lt_RANLIB
17427 old_postinstall_cmds=$lt_old_postinstall_cmds
17428 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17429
17430 # Whether to use a lock for old archive extraction.
17431 lock_old_archive_extraction=$lock_old_archive_extraction
17432
17433 # A C compiler.
17434 LTCC=$lt_CC
17435
17436 # LTCC compiler flags.
17437 LTCFLAGS=$lt_CFLAGS
17438
17439 # Take the output of nm and produce a listing of raw symbols and C names.
17440 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17441
17442 # Transform the output of nm in a proper C declaration.
17443 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17444
17445 # Transform the output of nm in a C name address pair.
17446 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17447
17448 # Transform the output of nm in a C name address pair when lib prefix is needed.
17449 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17450
17451 # The name of the directory that contains temporary libtool files.
17452 objdir=$objdir
17453
17454 # Used to examine libraries when file_magic_cmd begins with "file".
17455 MAGIC_CMD=$MAGIC_CMD
17456
17457 # Must we lock files when doing compilation?
17458 need_locks=$lt_need_locks
17459
17460 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17461 DSYMUTIL=$lt_DSYMUTIL
17462
17463 # Tool to change global to local symbols on Mac OS X.
17464 NMEDIT=$lt_NMEDIT
17465
17466 # Tool to manipulate fat objects and archives on Mac OS X.
17467 LIPO=$lt_LIPO
17468
17469 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17470 OTOOL=$lt_OTOOL
17471
17472 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17473 OTOOL64=$lt_OTOOL64
17474
17475 # Old archive suffix (normally "a").
17476 libext=$libext
17477
17478 # Shared library suffix (normally ".so").
17479 shrext_cmds=$lt_shrext_cmds
17480
17481 # The commands to extract the exported symbol list from a shared archive.
17482 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17483
17484 # Variables whose values should be saved in libtool wrapper scripts and
17485 # restored at link time.
17486 variables_saved_for_relink=$lt_variables_saved_for_relink
17487
17488 # Do we need the "lib" prefix for modules?
17489 need_lib_prefix=$need_lib_prefix
17490
17491 # Do we need a version for libraries?
17492 need_version=$need_version
17493
17494 # Library versioning type.
17495 version_type=$version_type
17496
17497 # Shared library runtime path variable.
17498 runpath_var=$runpath_var
17499
17500 # Shared library path variable.
17501 shlibpath_var=$shlibpath_var
17502
17503 # Is shlibpath searched before the hard-coded library search path?
17504 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17505
17506 # Format of library name prefix.
17507 libname_spec=$lt_libname_spec
17508
17509 # List of archive names. First name is the real one, the rest are links.
17510 # The last name is the one that the linker finds with -lNAME
17511 library_names_spec=$lt_library_names_spec
17512
17513 # The coded name of the library, if different from the real name.
17514 soname_spec=$lt_soname_spec
17515
17516 # Permission mode override for installation of shared libraries.
17517 install_override_mode=$lt_install_override_mode
17518
17519 # Command to use after installation of a shared archive.
17520 postinstall_cmds=$lt_postinstall_cmds
17521
17522 # Command to use after uninstallation of a shared archive.
17523 postuninstall_cmds=$lt_postuninstall_cmds
17524
17525 # Commands used to finish a libtool library installation in a directory.
17526 finish_cmds=$lt_finish_cmds
17527
17528 # As "finish_cmds", except a single script fragment to be evaled but
17529 # not shown.
17530 finish_eval=$lt_finish_eval
17531
17532 # Whether we should hardcode library paths into libraries.
17533 hardcode_into_libs=$hardcode_into_libs
17534
17535 # Compile-time system search path for libraries.
17536 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17537
17538 # Run-time system search path for libraries.
17539 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17540
17541 # Whether dlopen is supported.
17542 dlopen_support=$enable_dlopen
17543
17544 # Whether dlopen of programs is supported.
17545 dlopen_self=$enable_dlopen_self
17546
17547 # Whether dlopen of statically linked programs is supported.
17548 dlopen_self_static=$enable_dlopen_self_static
17549
17550 # Commands to strip libraries.
17551 old_striplib=$lt_old_striplib
17552 striplib=$lt_striplib
17553
17554
17555 # The linker used to build libraries.
17556 LD=$lt_LD
17557
17558 # How to create reloadable object files.
17559 reload_flag=$lt_reload_flag
17560 reload_cmds=$lt_reload_cmds
17561
17562 # Commands used to build an old-style archive.
17563 old_archive_cmds=$lt_old_archive_cmds
17564
17565 # A language specific compiler.
17566 CC=$lt_compiler
17567
17568 # Is the compiler the GNU compiler?
17569 with_gcc=$GCC
17570
17571 # Compiler flag to turn off builtin functions.
17572 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17573
17574 # How to pass a linker flag through the compiler.
17575 wl=$lt_lt_prog_compiler_wl
17576
17577 # Additional compiler flags for building library objects.
17578 pic_flag=$lt_lt_prog_compiler_pic
17579
17580 # Compiler flag to prevent dynamic linking.
17581 link_static_flag=$lt_lt_prog_compiler_static
17582
17583 # Does compiler simultaneously support -c and -o options?
17584 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17585
17586 # Whether or not to add -lc for building shared libraries.
17587 build_libtool_need_lc=$archive_cmds_need_lc
17588
17589 # Whether or not to disallow shared libs when runtime libs are static.
17590 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17591
17592 # Compiler flag to allow reflexive dlopens.
17593 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17594
17595 # Compiler flag to generate shared objects directly from archives.
17596 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17597
17598 # Whether the compiler copes with passing no objects directly.
17599 compiler_needs_object=$lt_compiler_needs_object
17600
17601 # Create an old-style archive from a shared archive.
17602 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17603
17604 # Create a temporary old-style archive to link instead of a shared archive.
17605 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17606
17607 # Commands used to build a shared archive.
17608 archive_cmds=$lt_archive_cmds
17609 archive_expsym_cmds=$lt_archive_expsym_cmds
17610
17611 # Commands used to build a loadable module if different from building
17612 # a shared archive.
17613 module_cmds=$lt_module_cmds
17614 module_expsym_cmds=$lt_module_expsym_cmds
17615
17616 # Whether we are building with GNU ld or not.
17617 with_gnu_ld=$lt_with_gnu_ld
17618
17619 # Flag that allows shared libraries with undefined symbols to be built.
17620 allow_undefined_flag=$lt_allow_undefined_flag
17621
17622 # Flag that enforces no undefined symbols.
17623 no_undefined_flag=$lt_no_undefined_flag
17624
17625 # Flag to hardcode \$libdir into a binary during linking.
17626 # This must work even if \$libdir does not exist
17627 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17628
17629 # If ld is used when linking, flag to hardcode \$libdir into a binary
17630 # during linking. This must work even if \$libdir does not exist.
17631 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17632
17633 # Whether we need a single "-rpath" flag with a separated argument.
17634 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17635
17636 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17637 # DIR into the resulting binary.
17638 hardcode_direct=$hardcode_direct
17639
17640 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17641 # DIR into the resulting binary and the resulting library dependency is
17642 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17643 # library is relocated.
17644 hardcode_direct_absolute=$hardcode_direct_absolute
17645
17646 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17647 # into the resulting binary.
17648 hardcode_minus_L=$hardcode_minus_L
17649
17650 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17651 # into the resulting binary.
17652 hardcode_shlibpath_var=$hardcode_shlibpath_var
17653
17654 # Set to "yes" if building a shared library automatically hardcodes DIR
17655 # into the library and all subsequent libraries and executables linked
17656 # against it.
17657 hardcode_automatic=$hardcode_automatic
17658
17659 # Set to yes if linker adds runtime paths of dependent libraries
17660 # to runtime path list.
17661 inherit_rpath=$inherit_rpath
17662
17663 # Whether libtool must link a program against all its dependency libraries.
17664 link_all_deplibs=$link_all_deplibs
17665
17666 # Fix the shell variable \$srcfile for the compiler.
17667 fix_srcfile_path=$lt_fix_srcfile_path
17668
17669 # Set to "yes" if exported symbols are required.
17670 always_export_symbols=$always_export_symbols
17671
17672 # The commands to list exported symbols.
17673 export_symbols_cmds=$lt_export_symbols_cmds
17674
17675 # Symbols that should not be listed in the preloaded symbols.
17676 exclude_expsyms=$lt_exclude_expsyms
17677
17678 # Symbols that must always be exported.
17679 include_expsyms=$lt_include_expsyms
17680
17681 # Commands necessary for linking programs (against libraries) with templates.
17682 prelink_cmds=$lt_prelink_cmds
17683
17684 # Specify filename containing input files.
17685 file_list_spec=$lt_file_list_spec
17686
17687 # How to hardcode a shared library path into an executable.
17688 hardcode_action=$hardcode_action
17689
17690 # ### END LIBTOOL CONFIG
17691
17692 _LT_EOF
17693
17694 case $host_os in
17695 aix3*)
17696 cat <<\_LT_EOF >> "$cfgfile"
17697 # AIX sometimes has problems with the GCC collect2 program. For some
17698 # reason, if we set the COLLECT_NAMES environment variable, the problems
17699 # vanish in a puff of smoke.
17700 if test "X${COLLECT_NAMES+set}" != Xset; then
17701 COLLECT_NAMES=
17702 export COLLECT_NAMES
17703 fi
17704 _LT_EOF
17705 ;;
17706 esac
17707
17708
17709 ltmain="$ac_aux_dir/ltmain.sh"
17710
17711
17712 # We use sed instead of cat because bash on DJGPP gets confused if
17713 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17714 # text mode, it properly converts lines to CR/LF. This bash problem
17715 # is reportedly fixed, but why not run on old versions too?
17716 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17717 || (rm -f "$cfgfile"; exit 1)
17718
17719 case $xsi_shell in
17720 yes)
17721 cat << \_LT_EOF >> "$cfgfile"
17722
17723 # func_dirname file append nondir_replacement
17724 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17725 # otherwise set result to NONDIR_REPLACEMENT.
17726 func_dirname ()
17727 {
17728 case ${1} in
17729 */*) func_dirname_result="${1%/*}${2}" ;;
17730 * ) func_dirname_result="${3}" ;;
17731 esac
17732 }
17733
17734 # func_basename file
17735 func_basename ()
17736 {
17737 func_basename_result="${1##*/}"
17738 }
17739
17740 # func_dirname_and_basename file append nondir_replacement
17741 # perform func_basename and func_dirname in a single function
17742 # call:
17743 # dirname: Compute the dirname of FILE. If nonempty,
17744 # add APPEND to the result, otherwise set result
17745 # to NONDIR_REPLACEMENT.
17746 # value returned in "$func_dirname_result"
17747 # basename: Compute filename of FILE.
17748 # value retuned in "$func_basename_result"
17749 # Implementation must be kept synchronized with func_dirname
17750 # and func_basename. For efficiency, we do not delegate to
17751 # those functions but instead duplicate the functionality here.
17752 func_dirname_and_basename ()
17753 {
17754 case ${1} in
17755 */*) func_dirname_result="${1%/*}${2}" ;;
17756 * ) func_dirname_result="${3}" ;;
17757 esac
17758 func_basename_result="${1##*/}"
17759 }
17760
17761 # func_stripname prefix suffix name
17762 # strip PREFIX and SUFFIX off of NAME.
17763 # PREFIX and SUFFIX must not contain globbing or regex special
17764 # characters, hashes, percent signs, but SUFFIX may contain a leading
17765 # dot (in which case that matches only a dot).
17766 func_stripname ()
17767 {
17768 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17769 # positional parameters, so assign one to ordinary parameter first.
17770 func_stripname_result=${3}
17771 func_stripname_result=${func_stripname_result#"${1}"}
17772 func_stripname_result=${func_stripname_result%"${2}"}
17773 }
17774
17775 # func_opt_split
17776 func_opt_split ()
17777 {
17778 func_opt_split_opt=${1%%=*}
17779 func_opt_split_arg=${1#*=}
17780 }
17781
17782 # func_lo2o object
17783 func_lo2o ()
17784 {
17785 case ${1} in
17786 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17787 *) func_lo2o_result=${1} ;;
17788 esac
17789 }
17790
17791 # func_xform libobj-or-source
17792 func_xform ()
17793 {
17794 func_xform_result=${1%.*}.lo
17795 }
17796
17797 # func_arith arithmetic-term...
17798 func_arith ()
17799 {
17800 func_arith_result=$(( $* ))
17801 }
17802
17803 # func_len string
17804 # STRING may not start with a hyphen.
17805 func_len ()
17806 {
17807 func_len_result=${#1}
17808 }
17809
17810 _LT_EOF
17811 ;;
17812 *) # Bourne compatible functions.
17813 cat << \_LT_EOF >> "$cfgfile"
17814
17815 # func_dirname file append nondir_replacement
17816 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17817 # otherwise set result to NONDIR_REPLACEMENT.
17818 func_dirname ()
17819 {
17820 # Extract subdirectory from the argument.
17821 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17822 if test "X$func_dirname_result" = "X${1}"; then
17823 func_dirname_result="${3}"
17824 else
17825 func_dirname_result="$func_dirname_result${2}"
17826 fi
17827 }
17828
17829 # func_basename file
17830 func_basename ()
17831 {
17832 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17833 }
17834
17835
17836 # func_stripname prefix suffix name
17837 # strip PREFIX and SUFFIX off of NAME.
17838 # PREFIX and SUFFIX must not contain globbing or regex special
17839 # characters, hashes, percent signs, but SUFFIX may contain a leading
17840 # dot (in which case that matches only a dot).
17841 # func_strip_suffix prefix name
17842 func_stripname ()
17843 {
17844 case ${2} in
17845 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17846 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17847 esac
17848 }
17849
17850 # sed scripts:
17851 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17852 my_sed_long_arg='1s/^-[^=]*=//'
17853
17854 # func_opt_split
17855 func_opt_split ()
17856 {
17857 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17858 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17859 }
17860
17861 # func_lo2o object
17862 func_lo2o ()
17863 {
17864 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17865 }
17866
17867 # func_xform libobj-or-source
17868 func_xform ()
17869 {
17870 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17871 }
17872
17873 # func_arith arithmetic-term...
17874 func_arith ()
17875 {
17876 func_arith_result=`expr "$@"`
17877 }
17878
17879 # func_len string
17880 # STRING may not start with a hyphen.
17881 func_len ()
17882 {
17883 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17884 }
17885
17886 _LT_EOF
17887 esac
17888
17889 case $lt_shell_append in
17890 yes)
17891 cat << \_LT_EOF >> "$cfgfile"
17892
17893 # func_append var value
17894 # Append VALUE to the end of shell variable VAR.
17895 func_append ()
17896 {
17897 eval "$1+=\$2"
17898 }
17899 _LT_EOF
17900 ;;
17901 *)
17902 cat << \_LT_EOF >> "$cfgfile"
17903
17904 # func_append var value
17905 # Append VALUE to the end of shell variable VAR.
17906 func_append ()
17907 {
17908 eval "$1=\$$1\$2"
17909 }
17910
17911 _LT_EOF
17912 ;;
17913 esac
17914
17915
17916 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17917 || (rm -f "$cfgfile"; exit 1)
17918
17919 mv -f "$cfgfile" "$ofile" ||
17920 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17921 chmod +x "$ofile"
17922
17923
17924 cat <<_LT_EOF >> "$ofile"
17925
17926 # ### BEGIN LIBTOOL TAG CONFIG: D
17927
17928 # The linker used to build libraries.
17929 LD=$lt_LD_D
17930
17931 # How to create reloadable object files.
17932 reload_flag=$lt_reload_flag_D
17933 reload_cmds=$lt_reload_cmds_D
17934
17935 # Commands used to build an old-style archive.
17936 old_archive_cmds=$lt_old_archive_cmds_D
17937
17938 # A language specific compiler.
17939 CC=$lt_compiler_D
17940
17941 # Is the compiler the GNU compiler?
17942 with_gcc=$GCC_D
17943
17944 # Compiler flag to turn off builtin functions.
17945 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_D
17946
17947 # How to pass a linker flag through the compiler.
17948 wl=$lt_lt_prog_compiler_wl_D
17949
17950 # Additional compiler flags for building library objects.
17951 pic_flag=$lt_lt_prog_compiler_pic_D
17952
17953 # Compiler flag to prevent dynamic linking.
17954 link_static_flag=$lt_lt_prog_compiler_static_D
17955
17956 # Does compiler simultaneously support -c and -o options?
17957 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_D
17958
17959 # Whether or not to add -lc for building shared libraries.
17960 build_libtool_need_lc=$archive_cmds_need_lc_D
17961
17962 # Whether or not to disallow shared libs when runtime libs are static.
17963 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_D
17964
17965 # Compiler flag to allow reflexive dlopens.
17966 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_D
17967
17968 # Compiler flag to generate shared objects directly from archives.
17969 whole_archive_flag_spec=$lt_whole_archive_flag_spec_D
17970
17971 # Whether the compiler copes with passing no objects directly.
17972 compiler_needs_object=$lt_compiler_needs_object_D
17973
17974 # Create an old-style archive from a shared archive.
17975 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_D
17976
17977 # Create a temporary old-style archive to link instead of a shared archive.
17978 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_D
17979
17980 # Commands used to build a shared archive.
17981 archive_cmds=$lt_archive_cmds_D
17982 archive_expsym_cmds=$lt_archive_expsym_cmds_D
17983
17984 # Commands used to build a loadable module if different from building
17985 # a shared archive.
17986 module_cmds=$lt_module_cmds_D
17987 module_expsym_cmds=$lt_module_expsym_cmds_D
17988
17989 # Whether we are building with GNU ld or not.
17990 with_gnu_ld=$lt_with_gnu_ld_D
17991
17992 # Flag that allows shared libraries with undefined symbols to be built.
17993 allow_undefined_flag=$lt_allow_undefined_flag_D
17994
17995 # Flag that enforces no undefined symbols.
17996 no_undefined_flag=$lt_no_undefined_flag_D
17997
17998 # Flag to hardcode \$libdir into a binary during linking.
17999 # This must work even if \$libdir does not exist
18000 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_D
18001
18002 # If ld is used when linking, flag to hardcode \$libdir into a binary
18003 # during linking. This must work even if \$libdir does not exist.
18004 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_D
18005
18006 # Whether we need a single "-rpath" flag with a separated argument.
18007 hardcode_libdir_separator=$lt_hardcode_libdir_separator_D
18008
18009 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18010 # DIR into the resulting binary.
18011 hardcode_direct=$hardcode_direct_D
18012
18013 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18014 # DIR into the resulting binary and the resulting library dependency is
18015 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18016 # library is relocated.
18017 hardcode_direct_absolute=$hardcode_direct_absolute_D
18018
18019 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18020 # into the resulting binary.
18021 hardcode_minus_L=$hardcode_minus_L_D
18022
18023 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18024 # into the resulting binary.
18025 hardcode_shlibpath_var=$hardcode_shlibpath_var_D
18026
18027 # Set to "yes" if building a shared library automatically hardcodes DIR
18028 # into the library and all subsequent libraries and executables linked
18029 # against it.
18030 hardcode_automatic=$hardcode_automatic_D
18031
18032 # Set to yes if linker adds runtime paths of dependent libraries
18033 # to runtime path list.
18034 inherit_rpath=$inherit_rpath_D
18035
18036 # Whether libtool must link a program against all its dependency libraries.
18037 link_all_deplibs=$link_all_deplibs_D
18038
18039 # Fix the shell variable \$srcfile for the compiler.
18040 fix_srcfile_path=$lt_fix_srcfile_path_D
18041
18042 # Set to "yes" if exported symbols are required.
18043 always_export_symbols=$always_export_symbols_D
18044
18045 # The commands to list exported symbols.
18046 export_symbols_cmds=$lt_export_symbols_cmds_D
18047
18048 # Symbols that should not be listed in the preloaded symbols.
18049 exclude_expsyms=$lt_exclude_expsyms_D
18050
18051 # Symbols that must always be exported.
18052 include_expsyms=$lt_include_expsyms_D
18053
18054 # Commands necessary for linking programs (against libraries) with templates.
18055 prelink_cmds=$lt_prelink_cmds_D
18056
18057 # Specify filename containing input files.
18058 file_list_spec=$lt_file_list_spec_D
18059
18060 # How to hardcode a shared library path into an executable.
18061 hardcode_action=$hardcode_action_D
18062
18063 # ### END LIBTOOL TAG CONFIG: D
18064 _LT_EOF
18065
18066 ;;
18067 "testsuite/testsuite_flags":F) chmod +x testsuite/testsuite_flags ;;
18068 "libdruntime/Makefile":F) cat > vpsed$$ << \_EOF
18069 s!`test -f '$<' || echo '$(srcdir)/'`!!
18070 _EOF
18071 sed -f vpsed$$ $ac_file > tmp$$
18072 mv tmp$$ $ac_file
18073 rm vpsed$$
18074 echo 'MULTISUBDIR =' >> $ac_file
18075 ml_norecursion=yes
18076 . ${multi_basedir}/config-ml.in
18077 { ml_norecursion=; unset ml_norecursion;}
18078 ;;
18079 "src/Makefile":F) cat > vpsed$$ << \_EOF
18080 s!`test -f '$<' || echo '$(srcdir)/'`!!
18081 _EOF
18082 sed -f vpsed$$ $ac_file > tmp$$
18083 mv tmp$$ $ac_file
18084 rm vpsed$$
18085 echo 'MULTISUBDIR =' >> $ac_file
18086 ml_norecursion=yes
18087 . ${multi_basedir}/config-ml.in
18088 { ml_norecursion=; unset ml_norecursion;}
18089 ;;
18090 "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
18091 s!`test -f '$<' || echo '$(srcdir)/'`!!
18092 _EOF
18093 sed -f vpsed$$ $ac_file > tmp$$
18094 mv tmp$$ $ac_file
18095 rm vpsed$$
18096 echo 'MULTISUBDIR =' >> $ac_file
18097 ml_norecursion=yes
18098 . ${multi_basedir}/config-ml.in
18099 { ml_norecursion=; unset ml_norecursion;}
18100 ;;
18101
18102 esac
18103 done # for ac_tag
18104
18105
18106 as_fn_exit 0
18107 _ACEOF
18108 ac_clean_files=$ac_clean_files_save
18109
18110 test $ac_write_fail = 0 ||
18111 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18112
18113
18114 # configure is writing to config.log, and then calls config.status.
18115 # config.status does its own redirection, appending to config.log.
18116 # Unfortunately, on DOS this fails, as config.log is still kept open
18117 # by configure, so config.status won't be able to write to it; its
18118 # output is simply discarded. So we exec the FD to /dev/null,
18119 # effectively closing config.log, so it can be properly (re)opened and
18120 # appended to by config.status. When coming back to configure, we
18121 # need to make the FD available again.
18122 if test "$no_create" != yes; then
18123 ac_cs_success=:
18124 ac_config_status_args=
18125 test "$silent" = yes &&
18126 ac_config_status_args="$ac_config_status_args --quiet"
18127 exec 5>/dev/null
18128 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18129 exec 5>>config.log
18130 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18131 # would make configure fail if this is the last instruction.
18132 $ac_cs_success || as_fn_exit 1
18133 fi
18134 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18136 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18137 fi
18138