Revert "Fix regression reported by tester due to recent IRA changes"
[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 GDCFLAGSX
637 libtool_VERSION
638 SPEC_PHOBOS_DEPS
639 ENABLE_LIBPHOBOS_FALSE
640 ENABLE_LIBPHOBOS_TRUE
641 gdc_include_dir
642 libphobos_toolexeclibdir
643 libphobos_toolexecdir
644 gcc_version
645 LIBZ
646 BACKTRACE_SUPPORTS_THREADS
647 BACKTRACE_USES_MALLOC
648 BACKTRACE_SUPPORTED
649 LIBBACKTRACE
650 LIBATOMIC
651 DCFG_HAVE_LIBATOMIC
652 DCFG_HAVE_64BIT_ATOMICS
653 DCFG_HAVE_ATOMIC_BUILTINS
654 DCFG_HAVE_QSORT_R
655 OS_LINK_SPEC
656 DCFG_DLPI_TLS_MODID
657 DRUNTIME_OS_MINFO_BRACKETING_FALSE
658 DRUNTIME_OS_MINFO_BRACKETING_TRUE
659 DCFG_MINFO_BRACKETING
660 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
661 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
662 DCFG_ARM_EABI_UNWINDER
663 DCFG_THREAD_MODEL
664 DRUNTIME_OS_SOLARIS_FALSE
665 DRUNTIME_OS_SOLARIS_TRUE
666 DRUNTIME_OS_MINGW_FALSE
667 DRUNTIME_OS_MINGW_TRUE
668 DRUNTIME_OS_LINUX_FALSE
669 DRUNTIME_OS_LINUX_TRUE
670 DRUNTIME_OS_OPENBSD_FALSE
671 DRUNTIME_OS_OPENBSD_TRUE
672 DRUNTIME_OS_NETBSD_FALSE
673 DRUNTIME_OS_NETBSD_TRUE
674 DRUNTIME_OS_FREEBSD_FALSE
675 DRUNTIME_OS_FREEBSD_TRUE
676 DRUNTIME_OS_DRAGONFLYBSD_FALSE
677 DRUNTIME_OS_DRAGONFLYBSD_TRUE
678 DRUNTIME_OS_DARWIN_FALSE
679 DRUNTIME_OS_DARWIN_TRUE
680 DRUNTIME_OS_ANDROID_FALSE
681 DRUNTIME_OS_ANDROID_TRUE
682 DRUNTIME_OS_AIX_FALSE
683 DRUNTIME_OS_AIX_TRUE
684 DRUNTIME_OS_UNIX_FALSE
685 DRUNTIME_OS_UNIX_TRUE
686 DRUNTIME_CPU_X86_FALSE
687 DRUNTIME_CPU_X86_TRUE
688 DRUNTIME_CPU_POWERPC64_FALSE
689 DRUNTIME_CPU_POWERPC64_TRUE
690 DRUNTIME_CPU_POWERPC_FALSE
691 DRUNTIME_CPU_POWERPC_TRUE
692 DRUNTIME_CPU_MIPS_FALSE
693 DRUNTIME_CPU_MIPS_TRUE
694 DRUNTIME_CPU_ARM_FALSE
695 DRUNTIME_CPU_ARM_TRUE
696 DRUNTIME_CPU_AARCH64_FALSE
697 DRUNTIME_CPU_AARCH64_TRUE
698 DRUNTIME_GC_ENABLE_FALSE
699 DRUNTIME_GC_ENABLE_TRUE
700 libphobos_srcdir
701 libphobos_builddir
702 get_gcc_base_ver
703 phobos_compiler_shared_flag
704 phobos_compiler_pic_flag
705 OTOOL64
706 OTOOL
707 LIPO
708 NMEDIT
709 DSYMUTIL
710 OBJDUMP
711 LN_S
712 NM
713 ac_ct_DUMPBIN
714 DUMPBIN
715 LD
716 FGREP
717 SED
718 LIBTOOL
719 CFLAGS_FOR_BUILD
720 CC_FOR_BUILD
721 AR
722 RANLIB
723 MAINT
724 MAINTAINER_MODE_FALSE
725 MAINTAINER_MODE_TRUE
726 GDCFLAGS
727 GDC
728 CCASFLAGS
729 CCAS
730 AM_BACKSLASH
731 AM_DEFAULT_VERBOSITY
732 AM_DEFAULT_V
733 AM_V
734 am__untar
735 am__tar
736 AMTAR
737 am__leading_dot
738 SET_MAKE
739 AWK
740 mkdir_p
741 MKDIR_P
742 INSTALL_STRIP_PROGRAM
743 STRIP
744 install_sh
745 MAKEINFO
746 AUTOHEADER
747 AUTOMAKE
748 AUTOCONF
749 ACLOCAL
750 VERSION
751 PACKAGE
752 CYGPATH_W
753 am__isrc
754 INSTALL_DATA
755 INSTALL_SCRIPT
756 INSTALL_PROGRAM
757 EGREP
758 GREP
759 CPP
760 OBJEXT
761 EXEEXT
762 ac_ct_CC
763 CPPFLAGS
764 LDFLAGS
765 CFLAGS
766 CC
767 target_os
768 target_vendor
769 target_cpu
770 target
771 host_os
772 host_vendor
773 host_cpu
774 host
775 build_os
776 build_vendor
777 build_cpu
778 build
779 multi_basedir
780 target_alias
781 host_alias
782 build_alias
783 LIBS
784 ECHO_T
785 ECHO_N
786 ECHO_C
787 DEFS
788 mandir
789 localedir
790 libdir
791 psdir
792 pdfdir
793 dvidir
794 htmldir
795 infodir
796 docdir
797 oldincludedir
798 includedir
799 localstatedir
800 sharedstatedir
801 sysconfdir
802 datadir
803 datarootdir
804 libexecdir
805 sbindir
806 bindir
807 program_transform_name
808 prefix
809 exec_prefix
810 PACKAGE_URL
811 PACKAGE_BUGREPORT
812 PACKAGE_STRING
813 PACKAGE_VERSION
814 PACKAGE_TARNAME
815 PACKAGE_NAME
816 PATH_SEPARATOR
817 SHELL'
818 ac_subst_files='DRTSTUFF_SPEC'
819 ac_user_opts='
820 enable_option_checking
821 enable_multilib
822 enable_silent_rules
823 enable_maintainer_mode
824 enable_shared
825 enable_static
826 with_pic
827 enable_fast_install
828 with_gnu_ld
829 enable_libtool_lock
830 with_gcc_major_version_only
831 enable_werror
832 enable_druntime_gc
833 enable_unix
834 enable_thread_lib
835 with_libatomic
836 with_libbacktrace
837 with_target_system_zlib
838 with_cross_host
839 enable_version_specific_runtime_libs
840 with_toolexeclibdir
841 enable_libphobos
842 '
843 ac_precious_vars='build_alias
844 host_alias
845 target_alias
846 CC
847 CFLAGS
848 LDFLAGS
849 LIBS
850 CPPFLAGS
851 CPP'
852
853
854 # Initialize some variables set by options.
855 ac_init_help=
856 ac_init_version=false
857 ac_unrecognized_opts=
858 ac_unrecognized_sep=
859 # The variables have the same names as the options, with
860 # dashes changed to underlines.
861 cache_file=/dev/null
862 exec_prefix=NONE
863 no_create=
864 no_recursion=
865 prefix=NONE
866 program_prefix=NONE
867 program_suffix=NONE
868 program_transform_name=s,x,x,
869 silent=
870 site=
871 srcdir=
872 verbose=
873 x_includes=NONE
874 x_libraries=NONE
875
876 # Installation directory options.
877 # These are left unexpanded so users can "make install exec_prefix=/foo"
878 # and all the variables that are supposed to be based on exec_prefix
879 # by default will actually change.
880 # Use braces instead of parens because sh, perl, etc. also accept them.
881 # (The list follows the same order as the GNU Coding Standards.)
882 bindir='${exec_prefix}/bin'
883 sbindir='${exec_prefix}/sbin'
884 libexecdir='${exec_prefix}/libexec'
885 datarootdir='${prefix}/share'
886 datadir='${datarootdir}'
887 sysconfdir='${prefix}/etc'
888 sharedstatedir='${prefix}/com'
889 localstatedir='${prefix}/var'
890 includedir='${prefix}/include'
891 oldincludedir='/usr/include'
892 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
893 infodir='${datarootdir}/info'
894 htmldir='${docdir}'
895 dvidir='${docdir}'
896 pdfdir='${docdir}'
897 psdir='${docdir}'
898 libdir='${exec_prefix}/lib'
899 localedir='${datarootdir}/locale'
900 mandir='${datarootdir}/man'
901
902 ac_prev=
903 ac_dashdash=
904 for ac_option
905 do
906 # If the previous option needs an argument, assign it.
907 if test -n "$ac_prev"; then
908 eval $ac_prev=\$ac_option
909 ac_prev=
910 continue
911 fi
912
913 case $ac_option in
914 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
915 *=) ac_optarg= ;;
916 *) ac_optarg=yes ;;
917 esac
918
919 # Accept the important Cygnus configure options, so we can diagnose typos.
920
921 case $ac_dashdash$ac_option in
922 --)
923 ac_dashdash=yes ;;
924
925 -bindir | --bindir | --bindi | --bind | --bin | --bi)
926 ac_prev=bindir ;;
927 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
928 bindir=$ac_optarg ;;
929
930 -build | --build | --buil | --bui | --bu)
931 ac_prev=build_alias ;;
932 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
933 build_alias=$ac_optarg ;;
934
935 -cache-file | --cache-file | --cache-fil | --cache-fi \
936 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
937 ac_prev=cache_file ;;
938 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
939 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
940 cache_file=$ac_optarg ;;
941
942 --config-cache | -C)
943 cache_file=config.cache ;;
944
945 -datadir | --datadir | --datadi | --datad)
946 ac_prev=datadir ;;
947 -datadir=* | --datadir=* | --datadi=* | --datad=*)
948 datadir=$ac_optarg ;;
949
950 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
951 | --dataroo | --dataro | --datar)
952 ac_prev=datarootdir ;;
953 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
954 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
955 datarootdir=$ac_optarg ;;
956
957 -disable-* | --disable-*)
958 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
959 # Reject names that are not valid shell variable names.
960 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
961 as_fn_error $? "invalid feature name: $ac_useropt"
962 ac_useropt_orig=$ac_useropt
963 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
964 case $ac_user_opts in
965 *"
966 "enable_$ac_useropt"
967 "*) ;;
968 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
969 ac_unrecognized_sep=', ';;
970 esac
971 eval enable_$ac_useropt=no ;;
972
973 -docdir | --docdir | --docdi | --doc | --do)
974 ac_prev=docdir ;;
975 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
976 docdir=$ac_optarg ;;
977
978 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
979 ac_prev=dvidir ;;
980 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
981 dvidir=$ac_optarg ;;
982
983 -enable-* | --enable-*)
984 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
985 # Reject names that are not valid shell variable names.
986 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
987 as_fn_error $? "invalid feature name: $ac_useropt"
988 ac_useropt_orig=$ac_useropt
989 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
990 case $ac_user_opts in
991 *"
992 "enable_$ac_useropt"
993 "*) ;;
994 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
995 ac_unrecognized_sep=', ';;
996 esac
997 eval enable_$ac_useropt=\$ac_optarg ;;
998
999 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1000 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1001 | --exec | --exe | --ex)
1002 ac_prev=exec_prefix ;;
1003 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1004 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1005 | --exec=* | --exe=* | --ex=*)
1006 exec_prefix=$ac_optarg ;;
1007
1008 -gas | --gas | --ga | --g)
1009 # Obsolete; use --with-gas.
1010 with_gas=yes ;;
1011
1012 -help | --help | --hel | --he | -h)
1013 ac_init_help=long ;;
1014 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1015 ac_init_help=recursive ;;
1016 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1017 ac_init_help=short ;;
1018
1019 -host | --host | --hos | --ho)
1020 ac_prev=host_alias ;;
1021 -host=* | --host=* | --hos=* | --ho=*)
1022 host_alias=$ac_optarg ;;
1023
1024 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1025 ac_prev=htmldir ;;
1026 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1027 | --ht=*)
1028 htmldir=$ac_optarg ;;
1029
1030 -includedir | --includedir | --includedi | --included | --include \
1031 | --includ | --inclu | --incl | --inc)
1032 ac_prev=includedir ;;
1033 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1034 | --includ=* | --inclu=* | --incl=* | --inc=*)
1035 includedir=$ac_optarg ;;
1036
1037 -infodir | --infodir | --infodi | --infod | --info | --inf)
1038 ac_prev=infodir ;;
1039 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1040 infodir=$ac_optarg ;;
1041
1042 -libdir | --libdir | --libdi | --libd)
1043 ac_prev=libdir ;;
1044 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1045 libdir=$ac_optarg ;;
1046
1047 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1048 | --libexe | --libex | --libe)
1049 ac_prev=libexecdir ;;
1050 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1051 | --libexe=* | --libex=* | --libe=*)
1052 libexecdir=$ac_optarg ;;
1053
1054 -localedir | --localedir | --localedi | --localed | --locale)
1055 ac_prev=localedir ;;
1056 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1057 localedir=$ac_optarg ;;
1058
1059 -localstatedir | --localstatedir | --localstatedi | --localstated \
1060 | --localstate | --localstat | --localsta | --localst | --locals)
1061 ac_prev=localstatedir ;;
1062 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1063 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1064 localstatedir=$ac_optarg ;;
1065
1066 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1067 ac_prev=mandir ;;
1068 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1069 mandir=$ac_optarg ;;
1070
1071 -nfp | --nfp | --nf)
1072 # Obsolete; use --without-fp.
1073 with_fp=no ;;
1074
1075 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1076 | --no-cr | --no-c | -n)
1077 no_create=yes ;;
1078
1079 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1080 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1081 no_recursion=yes ;;
1082
1083 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1084 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1085 | --oldin | --oldi | --old | --ol | --o)
1086 ac_prev=oldincludedir ;;
1087 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1088 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1089 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1090 oldincludedir=$ac_optarg ;;
1091
1092 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1093 ac_prev=prefix ;;
1094 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1095 prefix=$ac_optarg ;;
1096
1097 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1098 | --program-pre | --program-pr | --program-p)
1099 ac_prev=program_prefix ;;
1100 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1101 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1102 program_prefix=$ac_optarg ;;
1103
1104 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1105 | --program-suf | --program-su | --program-s)
1106 ac_prev=program_suffix ;;
1107 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1108 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1109 program_suffix=$ac_optarg ;;
1110
1111 -program-transform-name | --program-transform-name \
1112 | --program-transform-nam | --program-transform-na \
1113 | --program-transform-n | --program-transform- \
1114 | --program-transform | --program-transfor \
1115 | --program-transfo | --program-transf \
1116 | --program-trans | --program-tran \
1117 | --progr-tra | --program-tr | --program-t)
1118 ac_prev=program_transform_name ;;
1119 -program-transform-name=* | --program-transform-name=* \
1120 | --program-transform-nam=* | --program-transform-na=* \
1121 | --program-transform-n=* | --program-transform-=* \
1122 | --program-transform=* | --program-transfor=* \
1123 | --program-transfo=* | --program-transf=* \
1124 | --program-trans=* | --program-tran=* \
1125 | --progr-tra=* | --program-tr=* | --program-t=*)
1126 program_transform_name=$ac_optarg ;;
1127
1128 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1129 ac_prev=pdfdir ;;
1130 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1131 pdfdir=$ac_optarg ;;
1132
1133 -psdir | --psdir | --psdi | --psd | --ps)
1134 ac_prev=psdir ;;
1135 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1136 psdir=$ac_optarg ;;
1137
1138 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1139 | -silent | --silent | --silen | --sile | --sil)
1140 silent=yes ;;
1141
1142 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1143 ac_prev=sbindir ;;
1144 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1145 | --sbi=* | --sb=*)
1146 sbindir=$ac_optarg ;;
1147
1148 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1149 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1150 | --sharedst | --shareds | --shared | --share | --shar \
1151 | --sha | --sh)
1152 ac_prev=sharedstatedir ;;
1153 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1154 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1155 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1156 | --sha=* | --sh=*)
1157 sharedstatedir=$ac_optarg ;;
1158
1159 -site | --site | --sit)
1160 ac_prev=site ;;
1161 -site=* | --site=* | --sit=*)
1162 site=$ac_optarg ;;
1163
1164 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1165 ac_prev=srcdir ;;
1166 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1167 srcdir=$ac_optarg ;;
1168
1169 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1170 | --syscon | --sysco | --sysc | --sys | --sy)
1171 ac_prev=sysconfdir ;;
1172 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1173 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1174 sysconfdir=$ac_optarg ;;
1175
1176 -target | --target | --targe | --targ | --tar | --ta | --t)
1177 ac_prev=target_alias ;;
1178 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1179 target_alias=$ac_optarg ;;
1180
1181 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1182 verbose=yes ;;
1183
1184 -version | --version | --versio | --versi | --vers | -V)
1185 ac_init_version=: ;;
1186
1187 -with-* | --with-*)
1188 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1189 # Reject names that are not valid shell variable names.
1190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1191 as_fn_error $? "invalid package name: $ac_useropt"
1192 ac_useropt_orig=$ac_useropt
1193 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1194 case $ac_user_opts in
1195 *"
1196 "with_$ac_useropt"
1197 "*) ;;
1198 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1199 ac_unrecognized_sep=', ';;
1200 esac
1201 eval with_$ac_useropt=\$ac_optarg ;;
1202
1203 -without-* | --without-*)
1204 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1205 # Reject names that are not valid shell variable names.
1206 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1207 as_fn_error $? "invalid package name: $ac_useropt"
1208 ac_useropt_orig=$ac_useropt
1209 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1210 case $ac_user_opts in
1211 *"
1212 "with_$ac_useropt"
1213 "*) ;;
1214 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1215 ac_unrecognized_sep=', ';;
1216 esac
1217 eval with_$ac_useropt=no ;;
1218
1219 --x)
1220 # Obsolete; use --with-x.
1221 with_x=yes ;;
1222
1223 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1224 | --x-incl | --x-inc | --x-in | --x-i)
1225 ac_prev=x_includes ;;
1226 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1227 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1228 x_includes=$ac_optarg ;;
1229
1230 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1231 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1232 ac_prev=x_libraries ;;
1233 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1234 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1235 x_libraries=$ac_optarg ;;
1236
1237 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1238 Try \`$0 --help' for more information"
1239 ;;
1240
1241 *=*)
1242 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1243 # Reject names that are not valid shell variable names.
1244 case $ac_envvar in #(
1245 '' | [0-9]* | *[!_$as_cr_alnum]* )
1246 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1247 esac
1248 eval $ac_envvar=\$ac_optarg
1249 export $ac_envvar ;;
1250
1251 *)
1252 # FIXME: should be removed in autoconf 3.0.
1253 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1254 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1255 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1256 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1257 ;;
1258
1259 esac
1260 done
1261
1262 if test -n "$ac_prev"; then
1263 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1264 as_fn_error $? "missing argument to $ac_option"
1265 fi
1266
1267 if test -n "$ac_unrecognized_opts"; then
1268 case $enable_option_checking in
1269 no) ;;
1270 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1271 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1272 esac
1273 fi
1274
1275 # Check all directory arguments for consistency.
1276 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1277 datadir sysconfdir sharedstatedir localstatedir includedir \
1278 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1279 libdir localedir mandir
1280 do
1281 eval ac_val=\$$ac_var
1282 # Remove trailing slashes.
1283 case $ac_val in
1284 */ )
1285 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1286 eval $ac_var=\$ac_val;;
1287 esac
1288 # Be sure to have absolute directory names.
1289 case $ac_val in
1290 [\\/$]* | ?:[\\/]* ) continue;;
1291 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1292 esac
1293 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1294 done
1295
1296 # There might be people who depend on the old broken behavior: `$host'
1297 # used to hold the argument of --host etc.
1298 # FIXME: To remove some day.
1299 build=$build_alias
1300 host=$host_alias
1301 target=$target_alias
1302
1303 # FIXME: To remove some day.
1304 if test "x$host_alias" != x; then
1305 if test "x$build_alias" = x; then
1306 cross_compiling=maybe
1307 elif test "x$build_alias" != "x$host_alias"; then
1308 cross_compiling=yes
1309 fi
1310 fi
1311
1312 ac_tool_prefix=
1313 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1314
1315 test "$silent" = yes && exec 6>/dev/null
1316
1317
1318 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1319 ac_ls_di=`ls -di .` &&
1320 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1321 as_fn_error $? "working directory cannot be determined"
1322 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1323 as_fn_error $? "pwd does not report name of working directory"
1324
1325
1326 # Find the source files, if location was not specified.
1327 if test -z "$srcdir"; then
1328 ac_srcdir_defaulted=yes
1329 # Try the directory containing this script, then the parent directory.
1330 ac_confdir=`$as_dirname -- "$as_myself" ||
1331 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1332 X"$as_myself" : 'X\(//\)[^/]' \| \
1333 X"$as_myself" : 'X\(//\)$' \| \
1334 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1335 $as_echo X"$as_myself" |
1336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1337 s//\1/
1338 q
1339 }
1340 /^X\(\/\/\)[^/].*/{
1341 s//\1/
1342 q
1343 }
1344 /^X\(\/\/\)$/{
1345 s//\1/
1346 q
1347 }
1348 /^X\(\/\).*/{
1349 s//\1/
1350 q
1351 }
1352 s/.*/./; q'`
1353 srcdir=$ac_confdir
1354 if test ! -r "$srcdir/$ac_unique_file"; then
1355 srcdir=..
1356 fi
1357 else
1358 ac_srcdir_defaulted=no
1359 fi
1360 if test ! -r "$srcdir/$ac_unique_file"; then
1361 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1362 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1363 fi
1364 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1365 ac_abs_confdir=`(
1366 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1367 pwd)`
1368 # When building in place, set srcdir=.
1369 if test "$ac_abs_confdir" = "$ac_pwd"; then
1370 srcdir=.
1371 fi
1372 # Remove unnecessary trailing slashes from srcdir.
1373 # Double slashes in file names in object file debugging info
1374 # mess up M-x gdb in Emacs.
1375 case $srcdir in
1376 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1377 esac
1378 for ac_var in $ac_precious_vars; do
1379 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1380 eval ac_env_${ac_var}_value=\$${ac_var}
1381 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1382 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1383 done
1384
1385 #
1386 # Report the --help message.
1387 #
1388 if test "$ac_init_help" = "long"; then
1389 # Omit some internal or obsolete options to make the list less imposing.
1390 # This message is too long to be a string in the A/UX 3.1 sh.
1391 cat <<_ACEOF
1392 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1393
1394 Usage: $0 [OPTION]... [VAR=VALUE]...
1395
1396 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1397 VAR=VALUE. See below for descriptions of some of the useful variables.
1398
1399 Defaults for the options are specified in brackets.
1400
1401 Configuration:
1402 -h, --help display this help and exit
1403 --help=short display options specific to this package
1404 --help=recursive display the short help of all the included packages
1405 -V, --version display version information and exit
1406 -q, --quiet, --silent do not print \`checking ...' messages
1407 --cache-file=FILE cache test results in FILE [disabled]
1408 -C, --config-cache alias for \`--cache-file=config.cache'
1409 -n, --no-create do not create output files
1410 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1411
1412 Installation directories:
1413 --prefix=PREFIX install architecture-independent files in PREFIX
1414 [$ac_default_prefix]
1415 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1416 [PREFIX]
1417
1418 By default, \`make install' will install all the files in
1419 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1420 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1421 for instance \`--prefix=\$HOME'.
1422
1423 For better control, use the options below.
1424
1425 Fine tuning of the installation directories:
1426 --bindir=DIR user executables [EPREFIX/bin]
1427 --sbindir=DIR system admin executables [EPREFIX/sbin]
1428 --libexecdir=DIR program executables [EPREFIX/libexec]
1429 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1430 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1431 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1432 --libdir=DIR object code libraries [EPREFIX/lib]
1433 --includedir=DIR C header files [PREFIX/include]
1434 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1435 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1436 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1437 --infodir=DIR info documentation [DATAROOTDIR/info]
1438 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1439 --mandir=DIR man documentation [DATAROOTDIR/man]
1440 --docdir=DIR documentation root [DATAROOTDIR/doc/libphobos]
1441 --htmldir=DIR html documentation [DOCDIR]
1442 --dvidir=DIR dvi documentation [DOCDIR]
1443 --pdfdir=DIR pdf documentation [DOCDIR]
1444 --psdir=DIR ps documentation [DOCDIR]
1445 _ACEOF
1446
1447 cat <<\_ACEOF
1448
1449 Program names:
1450 --program-prefix=PREFIX prepend PREFIX to installed program names
1451 --program-suffix=SUFFIX append SUFFIX to installed program names
1452 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1453
1454 System types:
1455 --build=BUILD configure for building on BUILD [guessed]
1456 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1457 --target=TARGET configure for building compilers for TARGET [HOST]
1458 _ACEOF
1459 fi
1460
1461 if test -n "$ac_init_help"; then
1462 case $ac_init_help in
1463 short | recursive ) echo "Configuration of package-unused version-unused:";;
1464 esac
1465 cat <<\_ACEOF
1466
1467 Optional Features:
1468 --disable-option-checking ignore unrecognized --enable/--with options
1469 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1470 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1471 --enable-multilib build many library versions (default)
1472 --enable-silent-rules less verbose build output (undo: "make V=1")
1473 --disable-silent-rules verbose build output (undo: "make V=0")
1474 --enable-maintainer-mode
1475 enable make rules and dependencies not useful (and
1476 sometimes confusing) to the casual installer
1477 --enable-shared[=PKGS] build shared libraries [default=yes]
1478 --enable-static[=PKGS] build static libraries [default=yes]
1479 --enable-fast-install[=PKGS]
1480 optimize for fast installation [default=yes]
1481 --disable-libtool-lock avoid locking (might break parallel builds)
1482 --enable-werror turns on -Werror [default=no]
1483 --enable-druntime-gc enable D runtime garbage collector (default: yes)
1484 --enable-unix enables Unix runtime (default: yes, for Unix
1485 targets)
1486 --enable-thread-lib=<arg>
1487 specify linker option for the system thread library
1488 (default: autodetect)
1489 --enable-version-specific-runtime-libs
1490 Specify that runtime libraries should be installed
1491 in a compiler-specific directory
1492 --enable-libphobos Enable libphobos
1493
1494 Optional Packages:
1495 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1496 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1497 --with-pic try to use only PIC/non-PIC objects [default=use
1498 both]
1499 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1500 --with-gcc-major-version-only
1501 use only GCC major number in filesystem paths
1502 --without-libatomic Do not use libatomic in core.atomic (default: auto)
1503 --without-libbacktrace Do not use libbacktrace in core.runtime (default:
1504 auto)
1505 --with-target-system-zlib={yes,no,auto}
1506 use installed libz (default: no)
1507 --with-cross-host=HOST configuring with a cross compiler
1508 --with-toolexeclibdir=DIR
1509 install libraries built with a cross compiler within
1510 DIR
1511
1512 Some influential environment variables:
1513 CC C compiler command
1514 CFLAGS C compiler flags
1515 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1516 nonstandard directory <lib dir>
1517 LIBS libraries to pass to the linker, e.g. -l<library>
1518 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1519 you have headers in a nonstandard directory <include dir>
1520 CPP C preprocessor
1521 CCAS assembler compiler command (defaults to CC)
1522 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1523 GDC D compiler command
1524 GDCFLAGS D compiler flags
1525
1526 Use these variables to override the choices made by `configure' or to help
1527 it to find libraries and programs with nonstandard names/locations.
1528
1529 Report bugs to the package provider.
1530 _ACEOF
1531 ac_status=$?
1532 fi
1533
1534 if test "$ac_init_help" = "recursive"; then
1535 # If there are subdirs, report their specific --help.
1536 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1537 test -d "$ac_dir" ||
1538 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1539 continue
1540 ac_builddir=.
1541
1542 case "$ac_dir" in
1543 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1544 *)
1545 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1546 # A ".." for each directory in $ac_dir_suffix.
1547 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1548 case $ac_top_builddir_sub in
1549 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1550 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1551 esac ;;
1552 esac
1553 ac_abs_top_builddir=$ac_pwd
1554 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1555 # for backward compatibility:
1556 ac_top_builddir=$ac_top_build_prefix
1557
1558 case $srcdir in
1559 .) # We are building in place.
1560 ac_srcdir=.
1561 ac_top_srcdir=$ac_top_builddir_sub
1562 ac_abs_top_srcdir=$ac_pwd ;;
1563 [\\/]* | ?:[\\/]* ) # Absolute name.
1564 ac_srcdir=$srcdir$ac_dir_suffix;
1565 ac_top_srcdir=$srcdir
1566 ac_abs_top_srcdir=$srcdir ;;
1567 *) # Relative name.
1568 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1569 ac_top_srcdir=$ac_top_build_prefix$srcdir
1570 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1571 esac
1572 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1573
1574 cd "$ac_dir" || { ac_status=$?; continue; }
1575 # Check for guested configure.
1576 if test -f "$ac_srcdir/configure.gnu"; then
1577 echo &&
1578 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1579 elif test -f "$ac_srcdir/configure"; then
1580 echo &&
1581 $SHELL "$ac_srcdir/configure" --help=recursive
1582 else
1583 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1584 fi || ac_status=$?
1585 cd "$ac_pwd" || { ac_status=$?; break; }
1586 done
1587 fi
1588
1589 test -n "$ac_init_help" && exit $ac_status
1590 if $ac_init_version; then
1591 cat <<\_ACEOF
1592 package-unused configure version-unused
1593 generated by GNU Autoconf 2.69
1594
1595 Copyright (C) 2012 Free Software Foundation, Inc.
1596 This configure script is free software; the Free Software Foundation
1597 gives unlimited permission to copy, distribute and modify it.
1598 _ACEOF
1599 exit
1600 fi
1601
1602 ## ------------------------ ##
1603 ## Autoconf initialization. ##
1604 ## ------------------------ ##
1605
1606 # ac_fn_c_try_compile LINENO
1607 # --------------------------
1608 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1609 ac_fn_c_try_compile ()
1610 {
1611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612 rm -f conftest.$ac_objext
1613 if { { ac_try="$ac_compile"
1614 case "(($ac_try" in
1615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616 *) ac_try_echo=$ac_try;;
1617 esac
1618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619 $as_echo "$ac_try_echo"; } >&5
1620 (eval "$ac_compile") 2>conftest.err
1621 ac_status=$?
1622 if test -s conftest.err; then
1623 grep -v '^ *+' conftest.err >conftest.er1
1624 cat conftest.er1 >&5
1625 mv -f conftest.er1 conftest.err
1626 fi
1627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628 test $ac_status = 0; } && {
1629 test -z "$ac_c_werror_flag" ||
1630 test ! -s conftest.err
1631 } && test -s conftest.$ac_objext; then :
1632 ac_retval=0
1633 else
1634 $as_echo "$as_me: failed program was:" >&5
1635 sed 's/^/| /' conftest.$ac_ext >&5
1636
1637 ac_retval=1
1638 fi
1639 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1640 as_fn_set_status $ac_retval
1641
1642 } # ac_fn_c_try_compile
1643
1644 # ac_fn_c_try_cpp LINENO
1645 # ----------------------
1646 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1647 ac_fn_c_try_cpp ()
1648 {
1649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650 if { { ac_try="$ac_cpp conftest.$ac_ext"
1651 case "(($ac_try" in
1652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1653 *) ac_try_echo=$ac_try;;
1654 esac
1655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1656 $as_echo "$ac_try_echo"; } >&5
1657 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1658 ac_status=$?
1659 if test -s conftest.err; then
1660 grep -v '^ *+' conftest.err >conftest.er1
1661 cat conftest.er1 >&5
1662 mv -f conftest.er1 conftest.err
1663 fi
1664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1665 test $ac_status = 0; } > conftest.i && {
1666 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1667 test ! -s conftest.err
1668 }; then :
1669 ac_retval=0
1670 else
1671 $as_echo "$as_me: failed program was:" >&5
1672 sed 's/^/| /' conftest.$ac_ext >&5
1673
1674 ac_retval=1
1675 fi
1676 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1677 as_fn_set_status $ac_retval
1678
1679 } # ac_fn_c_try_cpp
1680
1681 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1682 # -------------------------------------------------------
1683 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1684 # the include files in INCLUDES and setting the cache variable VAR
1685 # accordingly.
1686 ac_fn_c_check_header_mongrel ()
1687 {
1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689 if eval \${$3+:} false; then :
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1691 $as_echo_n "checking for $2... " >&6; }
1692 if eval \${$3+:} false; then :
1693 $as_echo_n "(cached) " >&6
1694 fi
1695 eval ac_res=\$$3
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1697 $as_echo "$ac_res" >&6; }
1698 else
1699 # Is the header compilable?
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1701 $as_echo_n "checking $2 usability... " >&6; }
1702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1703 /* end confdefs.h. */
1704 $4
1705 #include <$2>
1706 _ACEOF
1707 if ac_fn_c_try_compile "$LINENO"; then :
1708 ac_header_compiler=yes
1709 else
1710 ac_header_compiler=no
1711 fi
1712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1714 $as_echo "$ac_header_compiler" >&6; }
1715
1716 # Is the header present?
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1718 $as_echo_n "checking $2 presence... " >&6; }
1719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1720 /* end confdefs.h. */
1721 #include <$2>
1722 _ACEOF
1723 if ac_fn_c_try_cpp "$LINENO"; then :
1724 ac_header_preproc=yes
1725 else
1726 ac_header_preproc=no
1727 fi
1728 rm -f conftest.err conftest.i conftest.$ac_ext
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1730 $as_echo "$ac_header_preproc" >&6; }
1731
1732 # So? What about this header?
1733 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1734 yes:no: )
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1736 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1738 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1739 ;;
1740 no:yes:* )
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1742 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1744 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1746 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1748 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1750 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1751 ;;
1752 esac
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1754 $as_echo_n "checking for $2... " >&6; }
1755 if eval \${$3+:} false; then :
1756 $as_echo_n "(cached) " >&6
1757 else
1758 eval "$3=\$ac_header_compiler"
1759 fi
1760 eval ac_res=\$$3
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1762 $as_echo "$ac_res" >&6; }
1763 fi
1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765
1766 } # ac_fn_c_check_header_mongrel
1767
1768 # ac_fn_c_try_run LINENO
1769 # ----------------------
1770 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1771 # that executables *can* be run.
1772 ac_fn_c_try_run ()
1773 {
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 if { { ac_try="$ac_link"
1776 case "(($ac_try" in
1777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778 *) ac_try_echo=$ac_try;;
1779 esac
1780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781 $as_echo "$ac_try_echo"; } >&5
1782 (eval "$ac_link") 2>&5
1783 ac_status=$?
1784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1786 { { case "(($ac_try" in
1787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1788 *) ac_try_echo=$ac_try;;
1789 esac
1790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791 $as_echo "$ac_try_echo"; } >&5
1792 (eval "$ac_try") 2>&5
1793 ac_status=$?
1794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795 test $ac_status = 0; }; }; then :
1796 ac_retval=0
1797 else
1798 $as_echo "$as_me: program exited with status $ac_status" >&5
1799 $as_echo "$as_me: failed program was:" >&5
1800 sed 's/^/| /' conftest.$ac_ext >&5
1801
1802 ac_retval=$ac_status
1803 fi
1804 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1805 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1806 as_fn_set_status $ac_retval
1807
1808 } # ac_fn_c_try_run
1809
1810 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1811 # -------------------------------------------------------
1812 # Tests whether HEADER exists and can be compiled using the include files in
1813 # INCLUDES, setting the cache variable VAR accordingly.
1814 ac_fn_c_check_header_compile ()
1815 {
1816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1818 $as_echo_n "checking for $2... " >&6; }
1819 if eval \${$3+:} false; then :
1820 $as_echo_n "(cached) " >&6
1821 else
1822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1823 /* end confdefs.h. */
1824 $4
1825 #include <$2>
1826 _ACEOF
1827 if ac_fn_c_try_compile "$LINENO"; then :
1828 eval "$3=yes"
1829 else
1830 eval "$3=no"
1831 fi
1832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1833 fi
1834 eval ac_res=\$$3
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1836 $as_echo "$ac_res" >&6; }
1837 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838
1839 } # ac_fn_c_check_header_compile
1840
1841 # ac_fn_d_try_compile LINENO
1842 # --------------------------
1843 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1844 ac_fn_d_try_compile ()
1845 {
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 rm -f conftest.$ac_objext
1848 if { { ac_try="$ac_compile"
1849 case "(($ac_try" in
1850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851 *) ac_try_echo=$ac_try;;
1852 esac
1853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854 $as_echo "$ac_try_echo"; } >&5
1855 (eval "$ac_compile") 2>conftest.err
1856 ac_status=$?
1857 if test -s conftest.err; then
1858 grep -v '^ *+' conftest.err >conftest.er1
1859 cat conftest.er1 >&5
1860 mv -f conftest.er1 conftest.err
1861 fi
1862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863 test $ac_status = 0; } && {
1864 test -z "$ac_d_werror_flag" ||
1865 test ! -s conftest.err
1866 } && test -s conftest.$ac_objext; then :
1867 ac_retval=0
1868 else
1869 $as_echo "$as_me: failed program was:" >&5
1870 sed 's/^/| /' conftest.$ac_ext >&5
1871
1872 ac_retval=1
1873 fi
1874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875 as_fn_set_status $ac_retval
1876
1877 } # ac_fn_d_try_compile
1878
1879 # ac_fn_c_try_link LINENO
1880 # -----------------------
1881 # Try to link conftest.$ac_ext, and return whether this succeeded.
1882 ac_fn_c_try_link ()
1883 {
1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885 rm -f conftest.$ac_objext conftest$ac_exeext
1886 if { { ac_try="$ac_link"
1887 case "(($ac_try" in
1888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889 *) ac_try_echo=$ac_try;;
1890 esac
1891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892 $as_echo "$ac_try_echo"; } >&5
1893 (eval "$ac_link") 2>conftest.err
1894 ac_status=$?
1895 if test -s conftest.err; then
1896 grep -v '^ *+' conftest.err >conftest.er1
1897 cat conftest.er1 >&5
1898 mv -f conftest.er1 conftest.err
1899 fi
1900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1901 test $ac_status = 0; } && {
1902 test -z "$ac_c_werror_flag" ||
1903 test ! -s conftest.err
1904 } && test -s conftest$ac_exeext && {
1905 test "$cross_compiling" = yes ||
1906 test -x conftest$ac_exeext
1907 }; then :
1908 ac_retval=0
1909 else
1910 $as_echo "$as_me: failed program was:" >&5
1911 sed 's/^/| /' conftest.$ac_ext >&5
1912
1913 ac_retval=1
1914 fi
1915 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1916 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1917 # interfere with the next link command; also delete a directory that is
1918 # left behind by Apple's compiler. We do this before executing the actions.
1919 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1920 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921 as_fn_set_status $ac_retval
1922
1923 } # ac_fn_c_try_link
1924
1925 # ac_fn_c_check_func LINENO FUNC VAR
1926 # ----------------------------------
1927 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1928 ac_fn_c_check_func ()
1929 {
1930 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1932 $as_echo_n "checking for $2... " >&6; }
1933 if eval \${$3+:} false; then :
1934 $as_echo_n "(cached) " >&6
1935 else
1936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937 /* end confdefs.h. */
1938 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1940 #define $2 innocuous_$2
1941
1942 /* System header to define __stub macros and hopefully few prototypes,
1943 which can conflict with char $2 (); below.
1944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1945 <limits.h> exists even on freestanding compilers. */
1946
1947 #ifdef __STDC__
1948 # include <limits.h>
1949 #else
1950 # include <assert.h>
1951 #endif
1952
1953 #undef $2
1954
1955 /* Override any GCC internal prototype to avoid an error.
1956 Use char because int might match the return type of a GCC
1957 builtin and then its argument prototype would still apply. */
1958 #ifdef __cplusplus
1959 extern "C"
1960 #endif
1961 char $2 ();
1962 /* The GNU C library defines this for functions which it implements
1963 to always fail with ENOSYS. Some functions are actually named
1964 something starting with __ and the normal name is an alias. */
1965 #if defined __stub_$2 || defined __stub___$2
1966 choke me
1967 #endif
1968
1969 int
1970 main ()
1971 {
1972 return $2 ();
1973 ;
1974 return 0;
1975 }
1976 _ACEOF
1977 if ac_fn_c_try_link "$LINENO"; then :
1978 eval "$3=yes"
1979 else
1980 eval "$3=no"
1981 fi
1982 rm -f core conftest.err conftest.$ac_objext \
1983 conftest$ac_exeext conftest.$ac_ext
1984 fi
1985 eval ac_res=\$$3
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1987 $as_echo "$ac_res" >&6; }
1988 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1989
1990 } # ac_fn_c_check_func
1991
1992 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1993 # ----------------------------------------------------
1994 # Tries to find if the field MEMBER exists in type AGGR, after including
1995 # INCLUDES, setting cache variable VAR accordingly.
1996 ac_fn_c_check_member ()
1997 {
1998 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2000 $as_echo_n "checking for $2.$3... " >&6; }
2001 if eval \${$4+:} false; then :
2002 $as_echo_n "(cached) " >&6
2003 else
2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005 /* end confdefs.h. */
2006 $5
2007 int
2008 main ()
2009 {
2010 static $2 ac_aggr;
2011 if (ac_aggr.$3)
2012 return 0;
2013 ;
2014 return 0;
2015 }
2016 _ACEOF
2017 if ac_fn_c_try_compile "$LINENO"; then :
2018 eval "$4=yes"
2019 else
2020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021 /* end confdefs.h. */
2022 $5
2023 int
2024 main ()
2025 {
2026 static $2 ac_aggr;
2027 if (sizeof ac_aggr.$3)
2028 return 0;
2029 ;
2030 return 0;
2031 }
2032 _ACEOF
2033 if ac_fn_c_try_compile "$LINENO"; then :
2034 eval "$4=yes"
2035 else
2036 eval "$4=no"
2037 fi
2038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039 fi
2040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2041 fi
2042 eval ac_res=\$$4
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2044 $as_echo "$ac_res" >&6; }
2045 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2046
2047 } # ac_fn_c_check_member
2048
2049 # ac_fn_d_try_link LINENO
2050 # -----------------------
2051 # Try to link conftest.$ac_ext, and return whether this succeeded.
2052 ac_fn_d_try_link ()
2053 {
2054 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2055 rm -f conftest.$ac_objext conftest$ac_exeext
2056 if { { ac_try="$ac_link"
2057 case "(($ac_try" in
2058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2059 *) ac_try_echo=$ac_try;;
2060 esac
2061 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2062 $as_echo "$ac_try_echo"; } >&5
2063 (eval "$ac_link") 2>conftest.err
2064 ac_status=$?
2065 if test -s conftest.err; then
2066 grep -v '^ *+' conftest.err >conftest.er1
2067 cat conftest.er1 >&5
2068 mv -f conftest.er1 conftest.err
2069 fi
2070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2071 test $ac_status = 0; } && {
2072 test -z "$ac_d_werror_flag" ||
2073 test ! -s conftest.err
2074 } && test -s conftest$ac_exeext && {
2075 test "$cross_compiling" = yes ||
2076 test -x conftest$ac_exeext
2077 }; then :
2078 ac_retval=0
2079 else
2080 $as_echo "$as_me: failed program was:" >&5
2081 sed 's/^/| /' conftest.$ac_ext >&5
2082
2083 ac_retval=1
2084 fi
2085 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2086 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2087 # interfere with the next link command; also delete a directory that is
2088 # left behind by Apple's compiler. We do this before executing the actions.
2089 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2090 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2091 as_fn_set_status $ac_retval
2092
2093 } # ac_fn_d_try_link
2094 cat >config.log <<_ACEOF
2095 This file contains any messages produced by compilers while
2096 running configure, to aid debugging if configure makes a mistake.
2097
2098 It was created by package-unused $as_me version-unused, which was
2099 generated by GNU Autoconf 2.69. Invocation command line was
2100
2101 $ $0 $@
2102
2103 _ACEOF
2104 exec 5>>config.log
2105 {
2106 cat <<_ASUNAME
2107 ## --------- ##
2108 ## Platform. ##
2109 ## --------- ##
2110
2111 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2112 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2113 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2114 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2115 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2116
2117 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2118 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2119
2120 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2121 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2122 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2123 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2124 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2125 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2126 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2127
2128 _ASUNAME
2129
2130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2131 for as_dir in $PATH
2132 do
2133 IFS=$as_save_IFS
2134 test -z "$as_dir" && as_dir=.
2135 $as_echo "PATH: $as_dir"
2136 done
2137 IFS=$as_save_IFS
2138
2139 } >&5
2140
2141 cat >&5 <<_ACEOF
2142
2143
2144 ## ----------- ##
2145 ## Core tests. ##
2146 ## ----------- ##
2147
2148 _ACEOF
2149
2150
2151 # Keep a trace of the command line.
2152 # Strip out --no-create and --no-recursion so they do not pile up.
2153 # Strip out --silent because we don't want to record it for future runs.
2154 # Also quote any args containing shell meta-characters.
2155 # Make two passes to allow for proper duplicate-argument suppression.
2156 ac_configure_args=
2157 ac_configure_args0=
2158 ac_configure_args1=
2159 ac_must_keep_next=false
2160 for ac_pass in 1 2
2161 do
2162 for ac_arg
2163 do
2164 case $ac_arg in
2165 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2166 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2167 | -silent | --silent | --silen | --sile | --sil)
2168 continue ;;
2169 *\'*)
2170 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2171 esac
2172 case $ac_pass in
2173 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2174 2)
2175 as_fn_append ac_configure_args1 " '$ac_arg'"
2176 if test $ac_must_keep_next = true; then
2177 ac_must_keep_next=false # Got value, back to normal.
2178 else
2179 case $ac_arg in
2180 *=* | --config-cache | -C | -disable-* | --disable-* \
2181 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2182 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2183 | -with-* | --with-* | -without-* | --without-* | --x)
2184 case "$ac_configure_args0 " in
2185 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2186 esac
2187 ;;
2188 -* ) ac_must_keep_next=true ;;
2189 esac
2190 fi
2191 as_fn_append ac_configure_args " '$ac_arg'"
2192 ;;
2193 esac
2194 done
2195 done
2196 { ac_configure_args0=; unset ac_configure_args0;}
2197 { ac_configure_args1=; unset ac_configure_args1;}
2198
2199 # When interrupted or exit'd, cleanup temporary files, and complete
2200 # config.log. We remove comments because anyway the quotes in there
2201 # would cause problems or look ugly.
2202 # WARNING: Use '\'' to represent an apostrophe within the trap.
2203 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2204 trap 'exit_status=$?
2205 # Save into config.log some information that might help in debugging.
2206 {
2207 echo
2208
2209 $as_echo "## ---------------- ##
2210 ## Cache variables. ##
2211 ## ---------------- ##"
2212 echo
2213 # The following way of writing the cache mishandles newlines in values,
2214 (
2215 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2216 eval ac_val=\$$ac_var
2217 case $ac_val in #(
2218 *${as_nl}*)
2219 case $ac_var in #(
2220 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2221 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2222 esac
2223 case $ac_var in #(
2224 _ | IFS | as_nl) ;; #(
2225 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2226 *) { eval $ac_var=; unset $ac_var;} ;;
2227 esac ;;
2228 esac
2229 done
2230 (set) 2>&1 |
2231 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2232 *${as_nl}ac_space=\ *)
2233 sed -n \
2234 "s/'\''/'\''\\\\'\'''\''/g;
2235 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2236 ;; #(
2237 *)
2238 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2239 ;;
2240 esac |
2241 sort
2242 )
2243 echo
2244
2245 $as_echo "## ----------------- ##
2246 ## Output variables. ##
2247 ## ----------------- ##"
2248 echo
2249 for ac_var in $ac_subst_vars
2250 do
2251 eval ac_val=\$$ac_var
2252 case $ac_val in
2253 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2254 esac
2255 $as_echo "$ac_var='\''$ac_val'\''"
2256 done | sort
2257 echo
2258
2259 if test -n "$ac_subst_files"; then
2260 $as_echo "## ------------------- ##
2261 ## File substitutions. ##
2262 ## ------------------- ##"
2263 echo
2264 for ac_var in $ac_subst_files
2265 do
2266 eval ac_val=\$$ac_var
2267 case $ac_val in
2268 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2269 esac
2270 $as_echo "$ac_var='\''$ac_val'\''"
2271 done | sort
2272 echo
2273 fi
2274
2275 if test -s confdefs.h; then
2276 $as_echo "## ----------- ##
2277 ## confdefs.h. ##
2278 ## ----------- ##"
2279 echo
2280 cat confdefs.h
2281 echo
2282 fi
2283 test "$ac_signal" != 0 &&
2284 $as_echo "$as_me: caught signal $ac_signal"
2285 $as_echo "$as_me: exit $exit_status"
2286 } >&5
2287 rm -f core *.core core.conftest.* &&
2288 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2289 exit $exit_status
2290 ' 0
2291 for ac_signal in 1 2 13 15; do
2292 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2293 done
2294 ac_signal=0
2295
2296 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2297 rm -f -r conftest* confdefs.h
2298
2299 $as_echo "/* confdefs.h */" > confdefs.h
2300
2301 # Predefined preprocessor variables.
2302
2303 cat >>confdefs.h <<_ACEOF
2304 #define PACKAGE_NAME "$PACKAGE_NAME"
2305 _ACEOF
2306
2307 cat >>confdefs.h <<_ACEOF
2308 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2309 _ACEOF
2310
2311 cat >>confdefs.h <<_ACEOF
2312 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2313 _ACEOF
2314
2315 cat >>confdefs.h <<_ACEOF
2316 #define PACKAGE_STRING "$PACKAGE_STRING"
2317 _ACEOF
2318
2319 cat >>confdefs.h <<_ACEOF
2320 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2321 _ACEOF
2322
2323 cat >>confdefs.h <<_ACEOF
2324 #define PACKAGE_URL "$PACKAGE_URL"
2325 _ACEOF
2326
2327
2328 # Let the site file select an alternate cache file if it wants to.
2329 # Prefer an explicitly selected file to automatically selected ones.
2330 ac_site_file1=NONE
2331 ac_site_file2=NONE
2332 if test -n "$CONFIG_SITE"; then
2333 # We do not want a PATH search for config.site.
2334 case $CONFIG_SITE in #((
2335 -*) ac_site_file1=./$CONFIG_SITE;;
2336 */*) ac_site_file1=$CONFIG_SITE;;
2337 *) ac_site_file1=./$CONFIG_SITE;;
2338 esac
2339 elif test "x$prefix" != xNONE; then
2340 ac_site_file1=$prefix/share/config.site
2341 ac_site_file2=$prefix/etc/config.site
2342 else
2343 ac_site_file1=$ac_default_prefix/share/config.site
2344 ac_site_file2=$ac_default_prefix/etc/config.site
2345 fi
2346 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2347 do
2348 test "x$ac_site_file" = xNONE && continue
2349 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2351 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2352 sed 's/^/| /' "$ac_site_file" >&5
2353 . "$ac_site_file" \
2354 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2356 as_fn_error $? "failed to load site script $ac_site_file
2357 See \`config.log' for more details" "$LINENO" 5; }
2358 fi
2359 done
2360
2361 if test -r "$cache_file"; then
2362 # Some versions of bash will fail to source /dev/null (special files
2363 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2364 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2366 $as_echo "$as_me: loading cache $cache_file" >&6;}
2367 case $cache_file in
2368 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2369 *) . "./$cache_file";;
2370 esac
2371 fi
2372 else
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2374 $as_echo "$as_me: creating cache $cache_file" >&6;}
2375 >$cache_file
2376 fi
2377
2378 # Check that the precious variables saved in the cache have kept the same
2379 # value.
2380 ac_cache_corrupted=false
2381 for ac_var in $ac_precious_vars; do
2382 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2383 eval ac_new_set=\$ac_env_${ac_var}_set
2384 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2385 eval ac_new_val=\$ac_env_${ac_var}_value
2386 case $ac_old_set,$ac_new_set in
2387 set,)
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2389 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2390 ac_cache_corrupted=: ;;
2391 ,set)
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2393 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2394 ac_cache_corrupted=: ;;
2395 ,);;
2396 *)
2397 if test "x$ac_old_val" != "x$ac_new_val"; then
2398 # differences in whitespace do not lead to failure.
2399 ac_old_val_w=`echo x $ac_old_val`
2400 ac_new_val_w=`echo x $ac_new_val`
2401 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2403 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2404 ac_cache_corrupted=:
2405 else
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2407 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2408 eval $ac_var=\$ac_old_val
2409 fi
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2411 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2413 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2414 fi;;
2415 esac
2416 # Pass precious variables to config.status.
2417 if test "$ac_new_set" = set; then
2418 case $ac_new_val in
2419 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2420 *) ac_arg=$ac_var=$ac_new_val ;;
2421 esac
2422 case " $ac_configure_args " in
2423 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2424 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2425 esac
2426 fi
2427 done
2428 if $ac_cache_corrupted; then
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2432 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2433 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2434 fi
2435 ## -------------------- ##
2436 ## Main body of script. ##
2437 ## -------------------- ##
2438
2439 ac_ext=c
2440 ac_cpp='$CPP $CPPFLAGS'
2441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2444
2445
2446
2447
2448
2449
2450 ac_config_headers="$ac_config_headers config.h"
2451
2452
2453 # Default to --enable-multilib
2454 # Check whether --enable-multilib was given.
2455 if test "${enable_multilib+set}" = set; then :
2456 enableval=$enable_multilib; case "$enableval" in
2457 yes) multilib=yes ;;
2458 no) multilib=no ;;
2459 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2460 esac
2461 else
2462 multilib=yes
2463 fi
2464
2465
2466 # We may get other options which we leave undocumented:
2467 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2468 # See config-ml.in if you want the gory details.
2469
2470 if test "$srcdir" = "."; then
2471 if test "$with_target_subdir" != "."; then
2472 multi_basedir="$srcdir/$with_multisrctop../.."
2473 else
2474 multi_basedir="$srcdir/$with_multisrctop.."
2475 fi
2476 else
2477 multi_basedir="$srcdir/.."
2478 fi
2479
2480
2481 # Even if the default multilib is not a cross compilation,
2482 # it may be that some of the other multilibs are.
2483 if test $cross_compiling = no && test $multilib = yes \
2484 && test "x${with_multisubdir}" != x ; then
2485 cross_compiling=maybe
2486 fi
2487
2488 ac_config_commands="$ac_config_commands default-1"
2489
2490 ac_aux_dir=
2491 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2492 if test -f "$ac_dir/install-sh"; then
2493 ac_aux_dir=$ac_dir
2494 ac_install_sh="$ac_aux_dir/install-sh -c"
2495 break
2496 elif test -f "$ac_dir/install.sh"; then
2497 ac_aux_dir=$ac_dir
2498 ac_install_sh="$ac_aux_dir/install.sh -c"
2499 break
2500 elif test -f "$ac_dir/shtool"; then
2501 ac_aux_dir=$ac_dir
2502 ac_install_sh="$ac_aux_dir/shtool install -c"
2503 break
2504 fi
2505 done
2506 if test -z "$ac_aux_dir"; then
2507 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2508 fi
2509
2510 # These three variables are undocumented and unsupported,
2511 # and are intended to be withdrawn in a future Autoconf release.
2512 # They can cause serious problems if a builder's source tree is in a directory
2513 # whose full name contains unusual characters.
2514 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2515 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2516 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2517
2518
2519 # Make sure we can run config.sub.
2520 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2521 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2522
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2524 $as_echo_n "checking build system type... " >&6; }
2525 if ${ac_cv_build+:} false; then :
2526 $as_echo_n "(cached) " >&6
2527 else
2528 ac_build_alias=$build_alias
2529 test "x$ac_build_alias" = x &&
2530 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2531 test "x$ac_build_alias" = x &&
2532 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2533 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2534 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2535
2536 fi
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2538 $as_echo "$ac_cv_build" >&6; }
2539 case $ac_cv_build in
2540 *-*-*) ;;
2541 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2542 esac
2543 build=$ac_cv_build
2544 ac_save_IFS=$IFS; IFS='-'
2545 set x $ac_cv_build
2546 shift
2547 build_cpu=$1
2548 build_vendor=$2
2549 shift; shift
2550 # Remember, the first character of IFS is used to create $*,
2551 # except with old shells:
2552 build_os=$*
2553 IFS=$ac_save_IFS
2554 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2555
2556
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2558 $as_echo_n "checking host system type... " >&6; }
2559 if ${ac_cv_host+:} false; then :
2560 $as_echo_n "(cached) " >&6
2561 else
2562 if test "x$host_alias" = x; then
2563 ac_cv_host=$ac_cv_build
2564 else
2565 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2566 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2567 fi
2568
2569 fi
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2571 $as_echo "$ac_cv_host" >&6; }
2572 case $ac_cv_host in
2573 *-*-*) ;;
2574 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2575 esac
2576 host=$ac_cv_host
2577 ac_save_IFS=$IFS; IFS='-'
2578 set x $ac_cv_host
2579 shift
2580 host_cpu=$1
2581 host_vendor=$2
2582 shift; shift
2583 # Remember, the first character of IFS is used to create $*,
2584 # except with old shells:
2585 host_os=$*
2586 IFS=$ac_save_IFS
2587 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2588
2589
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2591 $as_echo_n "checking target system type... " >&6; }
2592 if ${ac_cv_target+:} false; then :
2593 $as_echo_n "(cached) " >&6
2594 else
2595 if test "x$target_alias" = x; then
2596 ac_cv_target=$ac_cv_host
2597 else
2598 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2599 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2600 fi
2601
2602 fi
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2604 $as_echo "$ac_cv_target" >&6; }
2605 case $ac_cv_target in
2606 *-*-*) ;;
2607 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2608 esac
2609 target=$ac_cv_target
2610 ac_save_IFS=$IFS; IFS='-'
2611 set x $ac_cv_target
2612 shift
2613 target_cpu=$1
2614 target_vendor=$2
2615 shift; shift
2616 # Remember, the first character of IFS is used to create $*,
2617 # except with old shells:
2618 target_os=$*
2619 IFS=$ac_save_IFS
2620 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2621
2622
2623 # The aliases save the names the user supplied, while $host etc.
2624 # will get canonicalized.
2625 test -n "$target_alias" &&
2626 test "$program_prefix$program_suffix$program_transform_name" = \
2627 NONENONEs,x,x, &&
2628 program_prefix=${target_alias}-
2629
2630 # Expand $ac_aux_dir to an absolute path.
2631 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2632
2633 ac_ext=c
2634 ac_cpp='$CPP $CPPFLAGS'
2635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2638 if test -n "$ac_tool_prefix"; then
2639 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2640 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2642 $as_echo_n "checking for $ac_word... " >&6; }
2643 if ${ac_cv_prog_CC+:} false; then :
2644 $as_echo_n "(cached) " >&6
2645 else
2646 if test -n "$CC"; then
2647 ac_cv_prog_CC="$CC" # Let the user override the test.
2648 else
2649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650 for as_dir in $PATH
2651 do
2652 IFS=$as_save_IFS
2653 test -z "$as_dir" && as_dir=.
2654 for ac_exec_ext in '' $ac_executable_extensions; do
2655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2656 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2658 break 2
2659 fi
2660 done
2661 done
2662 IFS=$as_save_IFS
2663
2664 fi
2665 fi
2666 CC=$ac_cv_prog_CC
2667 if test -n "$CC"; then
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2669 $as_echo "$CC" >&6; }
2670 else
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2672 $as_echo "no" >&6; }
2673 fi
2674
2675
2676 fi
2677 if test -z "$ac_cv_prog_CC"; then
2678 ac_ct_CC=$CC
2679 # Extract the first word of "gcc", so it can be a program name with args.
2680 set dummy gcc; ac_word=$2
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2682 $as_echo_n "checking for $ac_word... " >&6; }
2683 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2684 $as_echo_n "(cached) " >&6
2685 else
2686 if test -n "$ac_ct_CC"; then
2687 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2688 else
2689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690 for as_dir in $PATH
2691 do
2692 IFS=$as_save_IFS
2693 test -z "$as_dir" && as_dir=.
2694 for ac_exec_ext in '' $ac_executable_extensions; do
2695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2696 ac_cv_prog_ac_ct_CC="gcc"
2697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2698 break 2
2699 fi
2700 done
2701 done
2702 IFS=$as_save_IFS
2703
2704 fi
2705 fi
2706 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2707 if test -n "$ac_ct_CC"; then
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2709 $as_echo "$ac_ct_CC" >&6; }
2710 else
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2712 $as_echo "no" >&6; }
2713 fi
2714
2715 if test "x$ac_ct_CC" = x; then
2716 CC=""
2717 else
2718 case $cross_compiling:$ac_tool_warned in
2719 yes:)
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2721 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2722 ac_tool_warned=yes ;;
2723 esac
2724 CC=$ac_ct_CC
2725 fi
2726 else
2727 CC="$ac_cv_prog_CC"
2728 fi
2729
2730 if test -z "$CC"; then
2731 if test -n "$ac_tool_prefix"; then
2732 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2733 set dummy ${ac_tool_prefix}cc; ac_word=$2
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2735 $as_echo_n "checking for $ac_word... " >&6; }
2736 if ${ac_cv_prog_CC+:} false; then :
2737 $as_echo_n "(cached) " >&6
2738 else
2739 if test -n "$CC"; then
2740 ac_cv_prog_CC="$CC" # Let the user override the test.
2741 else
2742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2743 for as_dir in $PATH
2744 do
2745 IFS=$as_save_IFS
2746 test -z "$as_dir" && as_dir=.
2747 for ac_exec_ext in '' $ac_executable_extensions; do
2748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2749 ac_cv_prog_CC="${ac_tool_prefix}cc"
2750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2751 break 2
2752 fi
2753 done
2754 done
2755 IFS=$as_save_IFS
2756
2757 fi
2758 fi
2759 CC=$ac_cv_prog_CC
2760 if test -n "$CC"; then
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2762 $as_echo "$CC" >&6; }
2763 else
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2765 $as_echo "no" >&6; }
2766 fi
2767
2768
2769 fi
2770 fi
2771 if test -z "$CC"; then
2772 # Extract the first word of "cc", so it can be a program name with args.
2773 set dummy cc; ac_word=$2
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2775 $as_echo_n "checking for $ac_word... " >&6; }
2776 if ${ac_cv_prog_CC+:} false; then :
2777 $as_echo_n "(cached) " >&6
2778 else
2779 if test -n "$CC"; then
2780 ac_cv_prog_CC="$CC" # Let the user override the test.
2781 else
2782 ac_prog_rejected=no
2783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784 for as_dir in $PATH
2785 do
2786 IFS=$as_save_IFS
2787 test -z "$as_dir" && as_dir=.
2788 for ac_exec_ext in '' $ac_executable_extensions; do
2789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2790 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2791 ac_prog_rejected=yes
2792 continue
2793 fi
2794 ac_cv_prog_CC="cc"
2795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2796 break 2
2797 fi
2798 done
2799 done
2800 IFS=$as_save_IFS
2801
2802 if test $ac_prog_rejected = yes; then
2803 # We found a bogon in the path, so make sure we never use it.
2804 set dummy $ac_cv_prog_CC
2805 shift
2806 if test $# != 0; then
2807 # We chose a different compiler from the bogus one.
2808 # However, it has the same basename, so the bogon will be chosen
2809 # first if we set CC to just the basename; use the full file name.
2810 shift
2811 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2812 fi
2813 fi
2814 fi
2815 fi
2816 CC=$ac_cv_prog_CC
2817 if test -n "$CC"; then
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2819 $as_echo "$CC" >&6; }
2820 else
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2822 $as_echo "no" >&6; }
2823 fi
2824
2825
2826 fi
2827 if test -z "$CC"; then
2828 if test -n "$ac_tool_prefix"; then
2829 for ac_prog in cl.exe
2830 do
2831 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2832 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2834 $as_echo_n "checking for $ac_word... " >&6; }
2835 if ${ac_cv_prog_CC+:} false; then :
2836 $as_echo_n "(cached) " >&6
2837 else
2838 if test -n "$CC"; then
2839 ac_cv_prog_CC="$CC" # Let the user override the test.
2840 else
2841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842 for as_dir in $PATH
2843 do
2844 IFS=$as_save_IFS
2845 test -z "$as_dir" && as_dir=.
2846 for ac_exec_ext in '' $ac_executable_extensions; do
2847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2848 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2850 break 2
2851 fi
2852 done
2853 done
2854 IFS=$as_save_IFS
2855
2856 fi
2857 fi
2858 CC=$ac_cv_prog_CC
2859 if test -n "$CC"; then
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2861 $as_echo "$CC" >&6; }
2862 else
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2864 $as_echo "no" >&6; }
2865 fi
2866
2867
2868 test -n "$CC" && break
2869 done
2870 fi
2871 if test -z "$CC"; then
2872 ac_ct_CC=$CC
2873 for ac_prog in cl.exe
2874 do
2875 # Extract the first word of "$ac_prog", so it can be a program name with args.
2876 set dummy $ac_prog; ac_word=$2
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2878 $as_echo_n "checking for $ac_word... " >&6; }
2879 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2880 $as_echo_n "(cached) " >&6
2881 else
2882 if test -n "$ac_ct_CC"; then
2883 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2884 else
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886 for as_dir in $PATH
2887 do
2888 IFS=$as_save_IFS
2889 test -z "$as_dir" && as_dir=.
2890 for ac_exec_ext in '' $ac_executable_extensions; do
2891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2892 ac_cv_prog_ac_ct_CC="$ac_prog"
2893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2894 break 2
2895 fi
2896 done
2897 done
2898 IFS=$as_save_IFS
2899
2900 fi
2901 fi
2902 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2903 if test -n "$ac_ct_CC"; then
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2905 $as_echo "$ac_ct_CC" >&6; }
2906 else
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2908 $as_echo "no" >&6; }
2909 fi
2910
2911
2912 test -n "$ac_ct_CC" && break
2913 done
2914
2915 if test "x$ac_ct_CC" = x; then
2916 CC=""
2917 else
2918 case $cross_compiling:$ac_tool_warned in
2919 yes:)
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2922 ac_tool_warned=yes ;;
2923 esac
2924 CC=$ac_ct_CC
2925 fi
2926 fi
2927
2928 fi
2929
2930
2931 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2932 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2933 as_fn_error $? "no acceptable C compiler found in \$PATH
2934 See \`config.log' for more details" "$LINENO" 5; }
2935
2936 # Provide some information about the compiler.
2937 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2938 set X $ac_compile
2939 ac_compiler=$2
2940 for ac_option in --version -v -V -qversion; do
2941 { { ac_try="$ac_compiler $ac_option >&5"
2942 case "(($ac_try" in
2943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2944 *) ac_try_echo=$ac_try;;
2945 esac
2946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2947 $as_echo "$ac_try_echo"; } >&5
2948 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2949 ac_status=$?
2950 if test -s conftest.err; then
2951 sed '10a\
2952 ... rest of stderr output deleted ...
2953 10q' conftest.err >conftest.er1
2954 cat conftest.er1 >&5
2955 fi
2956 rm -f conftest.er1 conftest.err
2957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2958 test $ac_status = 0; }
2959 done
2960
2961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2962 /* end confdefs.h. */
2963
2964 int
2965 main ()
2966 {
2967
2968 ;
2969 return 0;
2970 }
2971 _ACEOF
2972 ac_clean_files_save=$ac_clean_files
2973 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2974 # Try to create an executable without -o first, disregard a.out.
2975 # It will help us diagnose broken compilers, and finding out an intuition
2976 # of exeext.
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2978 $as_echo_n "checking whether the C compiler works... " >&6; }
2979 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2980
2981 # The possible output files:
2982 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2983
2984 ac_rmfiles=
2985 for ac_file in $ac_files
2986 do
2987 case $ac_file in
2988 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2989 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2990 esac
2991 done
2992 rm -f $ac_rmfiles
2993
2994 if { { ac_try="$ac_link_default"
2995 case "(($ac_try" in
2996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2997 *) ac_try_echo=$ac_try;;
2998 esac
2999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3000 $as_echo "$ac_try_echo"; } >&5
3001 (eval "$ac_link_default") 2>&5
3002 ac_status=$?
3003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3004 test $ac_status = 0; }; then :
3005 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3006 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3007 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3008 # so that the user can short-circuit this test for compilers unknown to
3009 # Autoconf.
3010 for ac_file in $ac_files ''
3011 do
3012 test -f "$ac_file" || continue
3013 case $ac_file in
3014 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3015 ;;
3016 [ab].out )
3017 # We found the default executable, but exeext='' is most
3018 # certainly right.
3019 break;;
3020 *.* )
3021 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3022 then :; else
3023 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3024 fi
3025 # We set ac_cv_exeext here because the later test for it is not
3026 # safe: cross compilers may not add the suffix if given an `-o'
3027 # argument, so we may need to know it at that point already.
3028 # Even if this section looks crufty: it has the advantage of
3029 # actually working.
3030 break;;
3031 * )
3032 break;;
3033 esac
3034 done
3035 test "$ac_cv_exeext" = no && ac_cv_exeext=
3036
3037 else
3038 ac_file=''
3039 fi
3040 if test -z "$ac_file"; then :
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3042 $as_echo "no" >&6; }
3043 $as_echo "$as_me: failed program was:" >&5
3044 sed 's/^/| /' conftest.$ac_ext >&5
3045
3046 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3047 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3048 as_fn_error 77 "C compiler cannot create executables
3049 See \`config.log' for more details" "$LINENO" 5; }
3050 else
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3052 $as_echo "yes" >&6; }
3053 fi
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3055 $as_echo_n "checking for C compiler default output file name... " >&6; }
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3057 $as_echo "$ac_file" >&6; }
3058 ac_exeext=$ac_cv_exeext
3059
3060 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3061 ac_clean_files=$ac_clean_files_save
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3063 $as_echo_n "checking for suffix of executables... " >&6; }
3064 if { { ac_try="$ac_link"
3065 case "(($ac_try" in
3066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3067 *) ac_try_echo=$ac_try;;
3068 esac
3069 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3070 $as_echo "$ac_try_echo"; } >&5
3071 (eval "$ac_link") 2>&5
3072 ac_status=$?
3073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3074 test $ac_status = 0; }; then :
3075 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3076 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3077 # work properly (i.e., refer to `conftest.exe'), while it won't with
3078 # `rm'.
3079 for ac_file in conftest.exe conftest conftest.*; do
3080 test -f "$ac_file" || continue
3081 case $ac_file in
3082 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3083 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3084 break;;
3085 * ) break;;
3086 esac
3087 done
3088 else
3089 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3091 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3092 See \`config.log' for more details" "$LINENO" 5; }
3093 fi
3094 rm -f conftest conftest$ac_cv_exeext
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3096 $as_echo "$ac_cv_exeext" >&6; }
3097
3098 rm -f conftest.$ac_ext
3099 EXEEXT=$ac_cv_exeext
3100 ac_exeext=$EXEEXT
3101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3102 /* end confdefs.h. */
3103 #include <stdio.h>
3104 int
3105 main ()
3106 {
3107 FILE *f = fopen ("conftest.out", "w");
3108 return ferror (f) || fclose (f) != 0;
3109
3110 ;
3111 return 0;
3112 }
3113 _ACEOF
3114 ac_clean_files="$ac_clean_files conftest.out"
3115 # Check that the compiler produces executables we can run. If not, either
3116 # the compiler is broken, or we cross compile.
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3118 $as_echo_n "checking whether we are cross compiling... " >&6; }
3119 if test "$cross_compiling" != yes; then
3120 { { ac_try="$ac_link"
3121 case "(($ac_try" in
3122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123 *) ac_try_echo=$ac_try;;
3124 esac
3125 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3126 $as_echo "$ac_try_echo"; } >&5
3127 (eval "$ac_link") 2>&5
3128 ac_status=$?
3129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3130 test $ac_status = 0; }
3131 if { ac_try='./conftest$ac_cv_exeext'
3132 { { case "(($ac_try" in
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3135 esac
3136 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3137 $as_echo "$ac_try_echo"; } >&5
3138 (eval "$ac_try") 2>&5
3139 ac_status=$?
3140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3141 test $ac_status = 0; }; }; then
3142 cross_compiling=no
3143 else
3144 if test "$cross_compiling" = maybe; then
3145 cross_compiling=yes
3146 else
3147 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3148 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3149 as_fn_error $? "cannot run C compiled programs.
3150 If you meant to cross compile, use \`--host'.
3151 See \`config.log' for more details" "$LINENO" 5; }
3152 fi
3153 fi
3154 fi
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3156 $as_echo "$cross_compiling" >&6; }
3157
3158 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3159 ac_clean_files=$ac_clean_files_save
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3161 $as_echo_n "checking for suffix of object files... " >&6; }
3162 if ${ac_cv_objext+:} false; then :
3163 $as_echo_n "(cached) " >&6
3164 else
3165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3166 /* end confdefs.h. */
3167
3168 int
3169 main ()
3170 {
3171
3172 ;
3173 return 0;
3174 }
3175 _ACEOF
3176 rm -f conftest.o conftest.obj
3177 if { { ac_try="$ac_compile"
3178 case "(($ac_try" in
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3181 esac
3182 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3183 $as_echo "$ac_try_echo"; } >&5
3184 (eval "$ac_compile") 2>&5
3185 ac_status=$?
3186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3187 test $ac_status = 0; }; then :
3188 for ac_file in conftest.o conftest.obj conftest.*; do
3189 test -f "$ac_file" || continue;
3190 case $ac_file in
3191 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3192 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3193 break;;
3194 esac
3195 done
3196 else
3197 $as_echo "$as_me: failed program was:" >&5
3198 sed 's/^/| /' conftest.$ac_ext >&5
3199
3200 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3201 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3202 as_fn_error $? "cannot compute suffix of object files: cannot compile
3203 See \`config.log' for more details" "$LINENO" 5; }
3204 fi
3205 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3206 fi
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3208 $as_echo "$ac_cv_objext" >&6; }
3209 OBJEXT=$ac_cv_objext
3210 ac_objext=$OBJEXT
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3212 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3213 if ${ac_cv_c_compiler_gnu+:} false; then :
3214 $as_echo_n "(cached) " >&6
3215 else
3216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3217 /* end confdefs.h. */
3218
3219 int
3220 main ()
3221 {
3222 #ifndef __GNUC__
3223 choke me
3224 #endif
3225
3226 ;
3227 return 0;
3228 }
3229 _ACEOF
3230 if ac_fn_c_try_compile "$LINENO"; then :
3231 ac_compiler_gnu=yes
3232 else
3233 ac_compiler_gnu=no
3234 fi
3235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3236 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3237
3238 fi
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3240 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3241 if test $ac_compiler_gnu = yes; then
3242 GCC=yes
3243 else
3244 GCC=
3245 fi
3246 ac_test_CFLAGS=${CFLAGS+set}
3247 ac_save_CFLAGS=$CFLAGS
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3249 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3250 if ${ac_cv_prog_cc_g+:} false; then :
3251 $as_echo_n "(cached) " >&6
3252 else
3253 ac_save_c_werror_flag=$ac_c_werror_flag
3254 ac_c_werror_flag=yes
3255 ac_cv_prog_cc_g=no
3256 CFLAGS="-g"
3257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3258 /* end confdefs.h. */
3259
3260 int
3261 main ()
3262 {
3263
3264 ;
3265 return 0;
3266 }
3267 _ACEOF
3268 if ac_fn_c_try_compile "$LINENO"; then :
3269 ac_cv_prog_cc_g=yes
3270 else
3271 CFLAGS=""
3272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3273 /* end confdefs.h. */
3274
3275 int
3276 main ()
3277 {
3278
3279 ;
3280 return 0;
3281 }
3282 _ACEOF
3283 if ac_fn_c_try_compile "$LINENO"; then :
3284
3285 else
3286 ac_c_werror_flag=$ac_save_c_werror_flag
3287 CFLAGS="-g"
3288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3289 /* end confdefs.h. */
3290
3291 int
3292 main ()
3293 {
3294
3295 ;
3296 return 0;
3297 }
3298 _ACEOF
3299 if ac_fn_c_try_compile "$LINENO"; then :
3300 ac_cv_prog_cc_g=yes
3301 fi
3302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3303 fi
3304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3305 fi
3306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3307 ac_c_werror_flag=$ac_save_c_werror_flag
3308 fi
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3310 $as_echo "$ac_cv_prog_cc_g" >&6; }
3311 if test "$ac_test_CFLAGS" = set; then
3312 CFLAGS=$ac_save_CFLAGS
3313 elif test $ac_cv_prog_cc_g = yes; then
3314 if test "$GCC" = yes; then
3315 CFLAGS="-g -O2"
3316 else
3317 CFLAGS="-g"
3318 fi
3319 else
3320 if test "$GCC" = yes; then
3321 CFLAGS="-O2"
3322 else
3323 CFLAGS=
3324 fi
3325 fi
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3327 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3328 if ${ac_cv_prog_cc_c89+:} false; then :
3329 $as_echo_n "(cached) " >&6
3330 else
3331 ac_cv_prog_cc_c89=no
3332 ac_save_CC=$CC
3333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3334 /* end confdefs.h. */
3335 #include <stdarg.h>
3336 #include <stdio.h>
3337 struct stat;
3338 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3339 struct buf { int x; };
3340 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3341 static char *e (p, i)
3342 char **p;
3343 int i;
3344 {
3345 return p[i];
3346 }
3347 static char *f (char * (*g) (char **, int), char **p, ...)
3348 {
3349 char *s;
3350 va_list v;
3351 va_start (v,p);
3352 s = g (p, va_arg (v,int));
3353 va_end (v);
3354 return s;
3355 }
3356
3357 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3358 function prototypes and stuff, but not '\xHH' hex character constants.
3359 These don't provoke an error unfortunately, instead are silently treated
3360 as 'x'. The following induces an error, until -std is added to get
3361 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3362 array size at least. It's necessary to write '\x00'==0 to get something
3363 that's true only with -std. */
3364 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3365
3366 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3367 inside strings and character constants. */
3368 #define FOO(x) 'x'
3369 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3370
3371 int test (int i, double x);
3372 struct s1 {int (*f) (int a);};
3373 struct s2 {int (*f) (double a);};
3374 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3375 int argc;
3376 char **argv;
3377 int
3378 main ()
3379 {
3380 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3381 ;
3382 return 0;
3383 }
3384 _ACEOF
3385 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3386 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3387 do
3388 CC="$ac_save_CC $ac_arg"
3389 if ac_fn_c_try_compile "$LINENO"; then :
3390 ac_cv_prog_cc_c89=$ac_arg
3391 fi
3392 rm -f core conftest.err conftest.$ac_objext
3393 test "x$ac_cv_prog_cc_c89" != "xno" && break
3394 done
3395 rm -f conftest.$ac_ext
3396 CC=$ac_save_CC
3397
3398 fi
3399 # AC_CACHE_VAL
3400 case "x$ac_cv_prog_cc_c89" in
3401 x)
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3403 $as_echo "none needed" >&6; } ;;
3404 xno)
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3406 $as_echo "unsupported" >&6; } ;;
3407 *)
3408 CC="$CC $ac_cv_prog_cc_c89"
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3410 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3411 esac
3412 if test "x$ac_cv_prog_cc_c89" != xno; then :
3413
3414 fi
3415
3416 ac_ext=c
3417 ac_cpp='$CPP $CPPFLAGS'
3418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3421
3422 ac_ext=c
3423 ac_cpp='$CPP $CPPFLAGS'
3424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3428 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3429 if ${am_cv_prog_cc_c_o+:} false; then :
3430 $as_echo_n "(cached) " >&6
3431 else
3432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3433 /* end confdefs.h. */
3434
3435 int
3436 main ()
3437 {
3438
3439 ;
3440 return 0;
3441 }
3442 _ACEOF
3443 # Make sure it works both with $CC and with simple cc.
3444 # Following AC_PROG_CC_C_O, we do the test twice because some
3445 # compilers refuse to overwrite an existing .o file with -o,
3446 # though they will create one.
3447 am_cv_prog_cc_c_o=yes
3448 for am_i in 1 2; do
3449 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3450 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3451 ac_status=$?
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); } \
3454 && test -f conftest2.$ac_objext; then
3455 : OK
3456 else
3457 am_cv_prog_cc_c_o=no
3458 break
3459 fi
3460 done
3461 rm -f core conftest*
3462 unset am_i
3463 fi
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3465 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3466 if test "$am_cv_prog_cc_c_o" != yes; then
3467 # Losing compiler, so override with the script.
3468 # FIXME: It is wrong to rewrite CC.
3469 # But if we don't then we get into trouble of one sort or another.
3470 # A longer-term fix would be to have automake use am__CC in this case,
3471 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3472 CC="$am_aux_dir/compile $CC"
3473 fi
3474 ac_ext=c
3475 ac_cpp='$CPP $CPPFLAGS'
3476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3479
3480
3481
3482 ac_ext=c
3483 ac_cpp='$CPP $CPPFLAGS'
3484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3488 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3489 # On Suns, sometimes $CPP names a directory.
3490 if test -n "$CPP" && test -d "$CPP"; then
3491 CPP=
3492 fi
3493 if test -z "$CPP"; then
3494 if ${ac_cv_prog_CPP+:} false; then :
3495 $as_echo_n "(cached) " >&6
3496 else
3497 # Double quotes because CPP needs to be expanded
3498 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3499 do
3500 ac_preproc_ok=false
3501 for ac_c_preproc_warn_flag in '' yes
3502 do
3503 # Use a header file that comes with gcc, so configuring glibc
3504 # with a fresh cross-compiler works.
3505 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3506 # <limits.h> exists even on freestanding compilers.
3507 # On the NeXT, cc -E runs the code through the compiler's parser,
3508 # not just through cpp. "Syntax error" is here to catch this case.
3509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3510 /* end confdefs.h. */
3511 #ifdef __STDC__
3512 # include <limits.h>
3513 #else
3514 # include <assert.h>
3515 #endif
3516 Syntax error
3517 _ACEOF
3518 if ac_fn_c_try_cpp "$LINENO"; then :
3519
3520 else
3521 # Broken: fails on valid input.
3522 continue
3523 fi
3524 rm -f conftest.err conftest.i conftest.$ac_ext
3525
3526 # OK, works on sane cases. Now check whether nonexistent headers
3527 # can be detected and how.
3528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3529 /* end confdefs.h. */
3530 #include <ac_nonexistent.h>
3531 _ACEOF
3532 if ac_fn_c_try_cpp "$LINENO"; then :
3533 # Broken: success on invalid input.
3534 continue
3535 else
3536 # Passes both tests.
3537 ac_preproc_ok=:
3538 break
3539 fi
3540 rm -f conftest.err conftest.i conftest.$ac_ext
3541
3542 done
3543 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3544 rm -f conftest.i conftest.err conftest.$ac_ext
3545 if $ac_preproc_ok; then :
3546 break
3547 fi
3548
3549 done
3550 ac_cv_prog_CPP=$CPP
3551
3552 fi
3553 CPP=$ac_cv_prog_CPP
3554 else
3555 ac_cv_prog_CPP=$CPP
3556 fi
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3558 $as_echo "$CPP" >&6; }
3559 ac_preproc_ok=false
3560 for ac_c_preproc_warn_flag in '' yes
3561 do
3562 # Use a header file that comes with gcc, so configuring glibc
3563 # with a fresh cross-compiler works.
3564 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3565 # <limits.h> exists even on freestanding compilers.
3566 # On the NeXT, cc -E runs the code through the compiler's parser,
3567 # not just through cpp. "Syntax error" is here to catch this case.
3568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3569 /* end confdefs.h. */
3570 #ifdef __STDC__
3571 # include <limits.h>
3572 #else
3573 # include <assert.h>
3574 #endif
3575 Syntax error
3576 _ACEOF
3577 if ac_fn_c_try_cpp "$LINENO"; then :
3578
3579 else
3580 # Broken: fails on valid input.
3581 continue
3582 fi
3583 rm -f conftest.err conftest.i conftest.$ac_ext
3584
3585 # OK, works on sane cases. Now check whether nonexistent headers
3586 # can be detected and how.
3587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3588 /* end confdefs.h. */
3589 #include <ac_nonexistent.h>
3590 _ACEOF
3591 if ac_fn_c_try_cpp "$LINENO"; then :
3592 # Broken: success on invalid input.
3593 continue
3594 else
3595 # Passes both tests.
3596 ac_preproc_ok=:
3597 break
3598 fi
3599 rm -f conftest.err conftest.i conftest.$ac_ext
3600
3601 done
3602 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3603 rm -f conftest.i conftest.err conftest.$ac_ext
3604 if $ac_preproc_ok; then :
3605
3606 else
3607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3609 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3610 See \`config.log' for more details" "$LINENO" 5; }
3611 fi
3612
3613 ac_ext=c
3614 ac_cpp='$CPP $CPPFLAGS'
3615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3618
3619
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3621 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3622 if ${ac_cv_path_GREP+:} false; then :
3623 $as_echo_n "(cached) " >&6
3624 else
3625 if test -z "$GREP"; then
3626 ac_path_GREP_found=false
3627 # Loop through the user's path and test for each of PROGNAME-LIST
3628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3629 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3630 do
3631 IFS=$as_save_IFS
3632 test -z "$as_dir" && as_dir=.
3633 for ac_prog in grep ggrep; do
3634 for ac_exec_ext in '' $ac_executable_extensions; do
3635 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3636 as_fn_executable_p "$ac_path_GREP" || continue
3637 # Check for GNU ac_path_GREP and select it if it is found.
3638 # Check for GNU $ac_path_GREP
3639 case `"$ac_path_GREP" --version 2>&1` in
3640 *GNU*)
3641 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3642 *)
3643 ac_count=0
3644 $as_echo_n 0123456789 >"conftest.in"
3645 while :
3646 do
3647 cat "conftest.in" "conftest.in" >"conftest.tmp"
3648 mv "conftest.tmp" "conftest.in"
3649 cp "conftest.in" "conftest.nl"
3650 $as_echo 'GREP' >> "conftest.nl"
3651 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3652 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3653 as_fn_arith $ac_count + 1 && ac_count=$as_val
3654 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3655 # Best one so far, save it but keep looking for a better one
3656 ac_cv_path_GREP="$ac_path_GREP"
3657 ac_path_GREP_max=$ac_count
3658 fi
3659 # 10*(2^10) chars as input seems more than enough
3660 test $ac_count -gt 10 && break
3661 done
3662 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3663 esac
3664
3665 $ac_path_GREP_found && break 3
3666 done
3667 done
3668 done
3669 IFS=$as_save_IFS
3670 if test -z "$ac_cv_path_GREP"; then
3671 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3672 fi
3673 else
3674 ac_cv_path_GREP=$GREP
3675 fi
3676
3677 fi
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3679 $as_echo "$ac_cv_path_GREP" >&6; }
3680 GREP="$ac_cv_path_GREP"
3681
3682
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3684 $as_echo_n "checking for egrep... " >&6; }
3685 if ${ac_cv_path_EGREP+:} false; then :
3686 $as_echo_n "(cached) " >&6
3687 else
3688 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3689 then ac_cv_path_EGREP="$GREP -E"
3690 else
3691 if test -z "$EGREP"; then
3692 ac_path_EGREP_found=false
3693 # Loop through the user's path and test for each of PROGNAME-LIST
3694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3695 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3696 do
3697 IFS=$as_save_IFS
3698 test -z "$as_dir" && as_dir=.
3699 for ac_prog in egrep; do
3700 for ac_exec_ext in '' $ac_executable_extensions; do
3701 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3702 as_fn_executable_p "$ac_path_EGREP" || continue
3703 # Check for GNU ac_path_EGREP and select it if it is found.
3704 # Check for GNU $ac_path_EGREP
3705 case `"$ac_path_EGREP" --version 2>&1` in
3706 *GNU*)
3707 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3708 *)
3709 ac_count=0
3710 $as_echo_n 0123456789 >"conftest.in"
3711 while :
3712 do
3713 cat "conftest.in" "conftest.in" >"conftest.tmp"
3714 mv "conftest.tmp" "conftest.in"
3715 cp "conftest.in" "conftest.nl"
3716 $as_echo 'EGREP' >> "conftest.nl"
3717 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3718 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3719 as_fn_arith $ac_count + 1 && ac_count=$as_val
3720 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3721 # Best one so far, save it but keep looking for a better one
3722 ac_cv_path_EGREP="$ac_path_EGREP"
3723 ac_path_EGREP_max=$ac_count
3724 fi
3725 # 10*(2^10) chars as input seems more than enough
3726 test $ac_count -gt 10 && break
3727 done
3728 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3729 esac
3730
3731 $ac_path_EGREP_found && break 3
3732 done
3733 done
3734 done
3735 IFS=$as_save_IFS
3736 if test -z "$ac_cv_path_EGREP"; then
3737 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3738 fi
3739 else
3740 ac_cv_path_EGREP=$EGREP
3741 fi
3742
3743 fi
3744 fi
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3746 $as_echo "$ac_cv_path_EGREP" >&6; }
3747 EGREP="$ac_cv_path_EGREP"
3748
3749
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3751 $as_echo_n "checking for ANSI C header files... " >&6; }
3752 if ${ac_cv_header_stdc+:} false; then :
3753 $as_echo_n "(cached) " >&6
3754 else
3755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756 /* end confdefs.h. */
3757 #include <stdlib.h>
3758 #include <stdarg.h>
3759 #include <string.h>
3760 #include <float.h>
3761
3762 int
3763 main ()
3764 {
3765
3766 ;
3767 return 0;
3768 }
3769 _ACEOF
3770 if ac_fn_c_try_compile "$LINENO"; then :
3771 ac_cv_header_stdc=yes
3772 else
3773 ac_cv_header_stdc=no
3774 fi
3775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3776
3777 if test $ac_cv_header_stdc = yes; then
3778 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780 /* end confdefs.h. */
3781 #include <string.h>
3782
3783 _ACEOF
3784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3785 $EGREP "memchr" >/dev/null 2>&1; then :
3786
3787 else
3788 ac_cv_header_stdc=no
3789 fi
3790 rm -f conftest*
3791
3792 fi
3793
3794 if test $ac_cv_header_stdc = yes; then
3795 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3797 /* end confdefs.h. */
3798 #include <stdlib.h>
3799
3800 _ACEOF
3801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3802 $EGREP "free" >/dev/null 2>&1; then :
3803
3804 else
3805 ac_cv_header_stdc=no
3806 fi
3807 rm -f conftest*
3808
3809 fi
3810
3811 if test $ac_cv_header_stdc = yes; then
3812 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3813 if test "$cross_compiling" = yes; then :
3814 :
3815 else
3816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817 /* end confdefs.h. */
3818 #include <ctype.h>
3819 #include <stdlib.h>
3820 #if ((' ' & 0x0FF) == 0x020)
3821 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3822 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3823 #else
3824 # define ISLOWER(c) \
3825 (('a' <= (c) && (c) <= 'i') \
3826 || ('j' <= (c) && (c) <= 'r') \
3827 || ('s' <= (c) && (c) <= 'z'))
3828 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3829 #endif
3830
3831 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3832 int
3833 main ()
3834 {
3835 int i;
3836 for (i = 0; i < 256; i++)
3837 if (XOR (islower (i), ISLOWER (i))
3838 || toupper (i) != TOUPPER (i))
3839 return 2;
3840 return 0;
3841 }
3842 _ACEOF
3843 if ac_fn_c_try_run "$LINENO"; then :
3844
3845 else
3846 ac_cv_header_stdc=no
3847 fi
3848 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3849 conftest.$ac_objext conftest.beam conftest.$ac_ext
3850 fi
3851
3852 fi
3853 fi
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3855 $as_echo "$ac_cv_header_stdc" >&6; }
3856 if test $ac_cv_header_stdc = yes; then
3857
3858 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3859
3860 fi
3861
3862 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3863 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3864 inttypes.h stdint.h unistd.h
3865 do :
3866 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3867 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3868 "
3869 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3870 cat >>confdefs.h <<_ACEOF
3871 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3872 _ACEOF
3873
3874 fi
3875
3876 done
3877
3878
3879
3880 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3881 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3882 MINIX=yes
3883 else
3884 MINIX=
3885 fi
3886
3887
3888 if test "$MINIX" = yes; then
3889
3890 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3891
3892
3893 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3894
3895
3896 $as_echo "#define _MINIX 1" >>confdefs.h
3897
3898 fi
3899
3900
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3902 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3903 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3904 $as_echo_n "(cached) " >&6
3905 else
3906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3907 /* end confdefs.h. */
3908
3909 # define __EXTENSIONS__ 1
3910 $ac_includes_default
3911 int
3912 main ()
3913 {
3914
3915 ;
3916 return 0;
3917 }
3918 _ACEOF
3919 if ac_fn_c_try_compile "$LINENO"; then :
3920 ac_cv_safe_to_define___extensions__=yes
3921 else
3922 ac_cv_safe_to_define___extensions__=no
3923 fi
3924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3925 fi
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3927 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3928 test $ac_cv_safe_to_define___extensions__ = yes &&
3929 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3930
3931 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3932
3933 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3934
3935 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3936
3937 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3938
3939
3940
3941 target_alias=${target_alias-$target}
3942
3943
3944 # 1.11.1: Require that version of automake.
3945 # foreign: Don't require README, INSTALL, NEWS, etc.
3946 # no-define: Don't define PACKAGE and VERSION.
3947 # no-dependencies: Don't generate automatic dependencies.
3948 # (because it breaks when using bootstrap-lean, since some of the
3949 # headers are gone at "make install" time).
3950 # subdir-objects: Build objects in sub-directories.
3951 # -Wall: Issue all automake warnings.
3952 # -Wno-portability: Don't warn about constructs supported by GNU make.
3953 # (because GCC requires GNU make anyhow).
3954 # -Wno-override: Overrides used in testsuite.
3955 am__api_version='1.15'
3956
3957 # Find a good install program. We prefer a C program (faster),
3958 # so one script is as good as another. But avoid the broken or
3959 # incompatible versions:
3960 # SysV /etc/install, /usr/sbin/install
3961 # SunOS /usr/etc/install
3962 # IRIX /sbin/install
3963 # AIX /bin/install
3964 # AmigaOS /C/install, which installs bootblocks on floppy discs
3965 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3966 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3967 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3968 # OS/2's system install, which has a completely different semantic
3969 # ./install, which can be erroneously created by make from ./install.sh.
3970 # Reject install programs that cannot install multiple files.
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3972 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3973 if test -z "$INSTALL"; then
3974 if ${ac_cv_path_install+:} false; then :
3975 $as_echo_n "(cached) " >&6
3976 else
3977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3978 for as_dir in $PATH
3979 do
3980 IFS=$as_save_IFS
3981 test -z "$as_dir" && as_dir=.
3982 # Account for people who put trailing slashes in PATH elements.
3983 case $as_dir/ in #((
3984 ./ | .// | /[cC]/* | \
3985 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3986 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3987 /usr/ucb/* ) ;;
3988 *)
3989 # OSF1 and SCO ODT 3.0 have their own names for install.
3990 # Don't use installbsd from OSF since it installs stuff as root
3991 # by default.
3992 for ac_prog in ginstall scoinst install; do
3993 for ac_exec_ext in '' $ac_executable_extensions; do
3994 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3995 if test $ac_prog = install &&
3996 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3997 # AIX install. It has an incompatible calling convention.
3998 :
3999 elif test $ac_prog = install &&
4000 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4001 # program-specific install script used by HP pwplus--don't use.
4002 :
4003 else
4004 rm -rf conftest.one conftest.two conftest.dir
4005 echo one > conftest.one
4006 echo two > conftest.two
4007 mkdir conftest.dir
4008 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4009 test -s conftest.one && test -s conftest.two &&
4010 test -s conftest.dir/conftest.one &&
4011 test -s conftest.dir/conftest.two
4012 then
4013 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4014 break 3
4015 fi
4016 fi
4017 fi
4018 done
4019 done
4020 ;;
4021 esac
4022
4023 done
4024 IFS=$as_save_IFS
4025
4026 rm -rf conftest.one conftest.two conftest.dir
4027
4028 fi
4029 if test "${ac_cv_path_install+set}" = set; then
4030 INSTALL=$ac_cv_path_install
4031 else
4032 # As a last resort, use the slow shell script. Don't cache a
4033 # value for INSTALL within a source directory, because that will
4034 # break other packages using the cache if that directory is
4035 # removed, or if the value is a relative name.
4036 INSTALL=$ac_install_sh
4037 fi
4038 fi
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4040 $as_echo "$INSTALL" >&6; }
4041
4042 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4043 # It thinks the first close brace ends the variable substitution.
4044 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4045
4046 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4047
4048 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4049
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4051 $as_echo_n "checking whether build environment is sane... " >&6; }
4052 # Reject unsafe characters in $srcdir or the absolute working directory
4053 # name. Accept space and tab only in the latter.
4054 am_lf='
4055 '
4056 case `pwd` in
4057 *[\\\"\#\$\&\'\`$am_lf]*)
4058 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4059 esac
4060 case $srcdir in
4061 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4062 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4063 esac
4064
4065 # Do 'set' in a subshell so we don't clobber the current shell's
4066 # arguments. Must try -L first in case configure is actually a
4067 # symlink; some systems play weird games with the mod time of symlinks
4068 # (eg FreeBSD returns the mod time of the symlink's containing
4069 # directory).
4070 if (
4071 am_has_slept=no
4072 for am_try in 1 2; do
4073 echo "timestamp, slept: $am_has_slept" > conftest.file
4074 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4075 if test "$*" = "X"; then
4076 # -L didn't work.
4077 set X `ls -t "$srcdir/configure" conftest.file`
4078 fi
4079 if test "$*" != "X $srcdir/configure conftest.file" \
4080 && test "$*" != "X conftest.file $srcdir/configure"; then
4081
4082 # If neither matched, then we have a broken ls. This can happen
4083 # if, for instance, CONFIG_SHELL is bash and it inherits a
4084 # broken ls alias from the environment. This has actually
4085 # happened. Such a system could not be considered "sane".
4086 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4087 alias in your environment" "$LINENO" 5
4088 fi
4089 if test "$2" = conftest.file || test $am_try -eq 2; then
4090 break
4091 fi
4092 # Just in case.
4093 sleep 1
4094 am_has_slept=yes
4095 done
4096 test "$2" = conftest.file
4097 )
4098 then
4099 # Ok.
4100 :
4101 else
4102 as_fn_error $? "newly created file is older than distributed files!
4103 Check your system clock" "$LINENO" 5
4104 fi
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4106 $as_echo "yes" >&6; }
4107 # If we didn't sleep, we still need to ensure time stamps of config.status and
4108 # generated files are strictly newer.
4109 am_sleep_pid=
4110 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4111 ( sleep 1 ) &
4112 am_sleep_pid=$!
4113 fi
4114
4115 rm -f conftest.file
4116
4117 test "$program_prefix" != NONE &&
4118 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4119 # Use a double $ so make ignores it.
4120 test "$program_suffix" != NONE &&
4121 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4122 # Double any \ or $.
4123 # By default was `s,x,x', remove it if useless.
4124 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4125 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4126
4127 if test x"${MISSING+set}" != xset; then
4128 case $am_aux_dir in
4129 *\ * | *\ *)
4130 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4131 *)
4132 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4133 esac
4134 fi
4135 # Use eval to expand $SHELL
4136 if eval "$MISSING --is-lightweight"; then
4137 am_missing_run="$MISSING "
4138 else
4139 am_missing_run=
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4141 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4142 fi
4143
4144 if test x"${install_sh+set}" != xset; then
4145 case $am_aux_dir in
4146 *\ * | *\ *)
4147 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4148 *)
4149 install_sh="\${SHELL} $am_aux_dir/install-sh"
4150 esac
4151 fi
4152
4153 # Installed binaries are usually stripped using 'strip' when the user
4154 # run "make install-strip". However 'strip' might not be the right
4155 # tool to use in cross-compilation environments, therefore Automake
4156 # will honor the 'STRIP' environment variable to overrule this program.
4157 if test "$cross_compiling" != no; then
4158 if test -n "$ac_tool_prefix"; then
4159 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4160 set dummy ${ac_tool_prefix}strip; ac_word=$2
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4162 $as_echo_n "checking for $ac_word... " >&6; }
4163 if ${ac_cv_prog_STRIP+:} false; then :
4164 $as_echo_n "(cached) " >&6
4165 else
4166 if test -n "$STRIP"; then
4167 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4168 else
4169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4170 for as_dir in $PATH
4171 do
4172 IFS=$as_save_IFS
4173 test -z "$as_dir" && as_dir=.
4174 for ac_exec_ext in '' $ac_executable_extensions; do
4175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4176 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4178 break 2
4179 fi
4180 done
4181 done
4182 IFS=$as_save_IFS
4183
4184 fi
4185 fi
4186 STRIP=$ac_cv_prog_STRIP
4187 if test -n "$STRIP"; then
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4189 $as_echo "$STRIP" >&6; }
4190 else
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4192 $as_echo "no" >&6; }
4193 fi
4194
4195
4196 fi
4197 if test -z "$ac_cv_prog_STRIP"; then
4198 ac_ct_STRIP=$STRIP
4199 # Extract the first word of "strip", so it can be a program name with args.
4200 set dummy strip; ac_word=$2
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4202 $as_echo_n "checking for $ac_word... " >&6; }
4203 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4204 $as_echo_n "(cached) " >&6
4205 else
4206 if test -n "$ac_ct_STRIP"; then
4207 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4208 else
4209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210 for as_dir in $PATH
4211 do
4212 IFS=$as_save_IFS
4213 test -z "$as_dir" && as_dir=.
4214 for ac_exec_ext in '' $ac_executable_extensions; do
4215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4216 ac_cv_prog_ac_ct_STRIP="strip"
4217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4218 break 2
4219 fi
4220 done
4221 done
4222 IFS=$as_save_IFS
4223
4224 fi
4225 fi
4226 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4227 if test -n "$ac_ct_STRIP"; then
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4229 $as_echo "$ac_ct_STRIP" >&6; }
4230 else
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4232 $as_echo "no" >&6; }
4233 fi
4234
4235 if test "x$ac_ct_STRIP" = x; then
4236 STRIP=":"
4237 else
4238 case $cross_compiling:$ac_tool_warned in
4239 yes:)
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4241 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4242 ac_tool_warned=yes ;;
4243 esac
4244 STRIP=$ac_ct_STRIP
4245 fi
4246 else
4247 STRIP="$ac_cv_prog_STRIP"
4248 fi
4249
4250 fi
4251 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4252
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4254 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4255 if test -z "$MKDIR_P"; then
4256 if ${ac_cv_path_mkdir+:} false; then :
4257 $as_echo_n "(cached) " >&6
4258 else
4259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4260 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4261 do
4262 IFS=$as_save_IFS
4263 test -z "$as_dir" && as_dir=.
4264 for ac_prog in mkdir gmkdir; do
4265 for ac_exec_ext in '' $ac_executable_extensions; do
4266 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4267 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4268 'mkdir (GNU coreutils) '* | \
4269 'mkdir (coreutils) '* | \
4270 'mkdir (fileutils) '4.1*)
4271 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4272 break 3;;
4273 esac
4274 done
4275 done
4276 done
4277 IFS=$as_save_IFS
4278
4279 fi
4280
4281 test -d ./--version && rmdir ./--version
4282 if test "${ac_cv_path_mkdir+set}" = set; then
4283 MKDIR_P="$ac_cv_path_mkdir -p"
4284 else
4285 # As a last resort, use the slow shell script. Don't cache a
4286 # value for MKDIR_P within a source directory, because that will
4287 # break other packages using the cache if that directory is
4288 # removed, or if the value is a relative name.
4289 MKDIR_P="$ac_install_sh -d"
4290 fi
4291 fi
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4293 $as_echo "$MKDIR_P" >&6; }
4294
4295 for ac_prog in gawk mawk nawk awk
4296 do
4297 # Extract the first word of "$ac_prog", so it can be a program name with args.
4298 set dummy $ac_prog; ac_word=$2
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4300 $as_echo_n "checking for $ac_word... " >&6; }
4301 if ${ac_cv_prog_AWK+:} false; then :
4302 $as_echo_n "(cached) " >&6
4303 else
4304 if test -n "$AWK"; then
4305 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4306 else
4307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4308 for as_dir in $PATH
4309 do
4310 IFS=$as_save_IFS
4311 test -z "$as_dir" && as_dir=.
4312 for ac_exec_ext in '' $ac_executable_extensions; do
4313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4314 ac_cv_prog_AWK="$ac_prog"
4315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4316 break 2
4317 fi
4318 done
4319 done
4320 IFS=$as_save_IFS
4321
4322 fi
4323 fi
4324 AWK=$ac_cv_prog_AWK
4325 if test -n "$AWK"; then
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4327 $as_echo "$AWK" >&6; }
4328 else
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4330 $as_echo "no" >&6; }
4331 fi
4332
4333
4334 test -n "$AWK" && break
4335 done
4336
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4338 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4339 set x ${MAKE-make}
4340 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4341 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4342 $as_echo_n "(cached) " >&6
4343 else
4344 cat >conftest.make <<\_ACEOF
4345 SHELL = /bin/sh
4346 all:
4347 @echo '@@@%%%=$(MAKE)=@@@%%%'
4348 _ACEOF
4349 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4350 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4351 *@@@%%%=?*=@@@%%%*)
4352 eval ac_cv_prog_make_${ac_make}_set=yes;;
4353 *)
4354 eval ac_cv_prog_make_${ac_make}_set=no;;
4355 esac
4356 rm -f conftest.make
4357 fi
4358 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4360 $as_echo "yes" >&6; }
4361 SET_MAKE=
4362 else
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4364 $as_echo "no" >&6; }
4365 SET_MAKE="MAKE=${MAKE-make}"
4366 fi
4367
4368 rm -rf .tst 2>/dev/null
4369 mkdir .tst 2>/dev/null
4370 if test -d .tst; then
4371 am__leading_dot=.
4372 else
4373 am__leading_dot=_
4374 fi
4375 rmdir .tst 2>/dev/null
4376
4377 # Check whether --enable-silent-rules was given.
4378 if test "${enable_silent_rules+set}" = set; then :
4379 enableval=$enable_silent_rules;
4380 fi
4381
4382 case $enable_silent_rules in # (((
4383 yes) AM_DEFAULT_VERBOSITY=0;;
4384 no) AM_DEFAULT_VERBOSITY=1;;
4385 *) AM_DEFAULT_VERBOSITY=1;;
4386 esac
4387 am_make=${MAKE-make}
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4389 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4390 if ${am_cv_make_support_nested_variables+:} false; then :
4391 $as_echo_n "(cached) " >&6
4392 else
4393 if $as_echo 'TRUE=$(BAR$(V))
4394 BAR0=false
4395 BAR1=true
4396 V=1
4397 am__doit:
4398 @$(TRUE)
4399 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4400 am_cv_make_support_nested_variables=yes
4401 else
4402 am_cv_make_support_nested_variables=no
4403 fi
4404 fi
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4406 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4407 if test $am_cv_make_support_nested_variables = yes; then
4408 AM_V='$(V)'
4409 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4410 else
4411 AM_V=$AM_DEFAULT_VERBOSITY
4412 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4413 fi
4414 AM_BACKSLASH='\'
4415
4416 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4417 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4418 # is not polluted with repeated "-I."
4419 am__isrc=' -I$(srcdir)'
4420 # test to see if srcdir already configured
4421 if test -f $srcdir/config.status; then
4422 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4423 fi
4424 fi
4425
4426 # test whether we have cygpath
4427 if test -z "$CYGPATH_W"; then
4428 if (cygpath --version) >/dev/null 2>/dev/null; then
4429 CYGPATH_W='cygpath -w'
4430 else
4431 CYGPATH_W=echo
4432 fi
4433 fi
4434
4435
4436 # Define the identity of the package.
4437 PACKAGE='libphobos'
4438 VERSION='version-unused'
4439
4440
4441 # Some tools Automake needs.
4442
4443 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4444
4445
4446 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4447
4448
4449 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4450
4451
4452 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4453
4454
4455 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4456
4457 # For better backward compatibility. To be removed once Automake 1.9.x
4458 # dies out for good. For more background, see:
4459 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4460 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4461 mkdir_p='$(MKDIR_P)'
4462
4463 # We need awk for the "check" target (and possibly the TAP driver). The
4464 # system "awk" is bad on some platforms.
4465 # Always define AMTAR for backward compatibility. Yes, it's still used
4466 # in the wild :-( We should find a proper way to deprecate it ...
4467 AMTAR='$${TAR-tar}'
4468
4469
4470 # We'll loop over all known methods to create a tar archive until one works.
4471 _am_tools='gnutar pax cpio none'
4472
4473 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4474
4475
4476
4477
4478
4479
4480 # POSIX will say in a future version that running "rm -f" with no argument
4481 # is OK; and we want to be able to make that assumption in our Makefile
4482 # recipes. So use an aggressive probe to check that the usage we want is
4483 # actually supported "in the wild" to an acceptable degree.
4484 # See automake bug#10828.
4485 # To make any issue more visible, cause the running configure to be aborted
4486 # by default if the 'rm' program in use doesn't match our expectations; the
4487 # user can still override this though.
4488 if rm -f && rm -fr && rm -rf; then : OK; else
4489 cat >&2 <<'END'
4490 Oops!
4491
4492 Your 'rm' program seems unable to run without file operands specified
4493 on the command line, even when the '-f' option is present. This is contrary
4494 to the behaviour of most rm programs out there, and not conforming with
4495 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4496
4497 Please tell bug-automake@gnu.org about your system, including the value
4498 of your $PATH and any error possibly output before this message. This
4499 can help us improve future automake versions.
4500
4501 END
4502 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4503 echo 'Configuration will proceed anyway, since you have set the' >&2
4504 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4505 echo >&2
4506 else
4507 cat >&2 <<'END'
4508 Aborting the configuration process, to ensure you take notice of the issue.
4509
4510 You can download and install GNU coreutils to get an 'rm' implementation
4511 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4512
4513 If you want to complete the configuration process using your problematic
4514 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4515 to "yes", and re-run configure.
4516
4517 END
4518 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4519 fi
4520 fi
4521
4522
4523
4524
4525 # By default we simply use the C compiler to build assembly code.
4526
4527 test "${CCAS+set}" = set || CCAS=$CC
4528 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4529
4530
4531
4532 ac_ext=c
4533 ac_cpp='$CPP $CPPFLAGS'
4534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4537 if test -n "$ac_tool_prefix"; then
4538 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4539 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4541 $as_echo_n "checking for $ac_word... " >&6; }
4542 if ${ac_cv_prog_CC+:} false; then :
4543 $as_echo_n "(cached) " >&6
4544 else
4545 if test -n "$CC"; then
4546 ac_cv_prog_CC="$CC" # Let the user override the test.
4547 else
4548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549 for as_dir in $PATH
4550 do
4551 IFS=$as_save_IFS
4552 test -z "$as_dir" && as_dir=.
4553 for ac_exec_ext in '' $ac_executable_extensions; do
4554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4555 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4557 break 2
4558 fi
4559 done
4560 done
4561 IFS=$as_save_IFS
4562
4563 fi
4564 fi
4565 CC=$ac_cv_prog_CC
4566 if test -n "$CC"; then
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4568 $as_echo "$CC" >&6; }
4569 else
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4571 $as_echo "no" >&6; }
4572 fi
4573
4574
4575 fi
4576 if test -z "$ac_cv_prog_CC"; then
4577 ac_ct_CC=$CC
4578 # Extract the first word of "gcc", so it can be a program name with args.
4579 set dummy gcc; ac_word=$2
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4581 $as_echo_n "checking for $ac_word... " >&6; }
4582 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4583 $as_echo_n "(cached) " >&6
4584 else
4585 if test -n "$ac_ct_CC"; then
4586 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4587 else
4588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4589 for as_dir in $PATH
4590 do
4591 IFS=$as_save_IFS
4592 test -z "$as_dir" && as_dir=.
4593 for ac_exec_ext in '' $ac_executable_extensions; do
4594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4595 ac_cv_prog_ac_ct_CC="gcc"
4596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4597 break 2
4598 fi
4599 done
4600 done
4601 IFS=$as_save_IFS
4602
4603 fi
4604 fi
4605 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4606 if test -n "$ac_ct_CC"; then
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4608 $as_echo "$ac_ct_CC" >&6; }
4609 else
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4611 $as_echo "no" >&6; }
4612 fi
4613
4614 if test "x$ac_ct_CC" = x; then
4615 CC=""
4616 else
4617 case $cross_compiling:$ac_tool_warned in
4618 yes:)
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4621 ac_tool_warned=yes ;;
4622 esac
4623 CC=$ac_ct_CC
4624 fi
4625 else
4626 CC="$ac_cv_prog_CC"
4627 fi
4628
4629 if test -z "$CC"; then
4630 if test -n "$ac_tool_prefix"; then
4631 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4632 set dummy ${ac_tool_prefix}cc; ac_word=$2
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4634 $as_echo_n "checking for $ac_word... " >&6; }
4635 if ${ac_cv_prog_CC+:} false; then :
4636 $as_echo_n "(cached) " >&6
4637 else
4638 if test -n "$CC"; then
4639 ac_cv_prog_CC="$CC" # Let the user override the test.
4640 else
4641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642 for as_dir in $PATH
4643 do
4644 IFS=$as_save_IFS
4645 test -z "$as_dir" && as_dir=.
4646 for ac_exec_ext in '' $ac_executable_extensions; do
4647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4648 ac_cv_prog_CC="${ac_tool_prefix}cc"
4649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4650 break 2
4651 fi
4652 done
4653 done
4654 IFS=$as_save_IFS
4655
4656 fi
4657 fi
4658 CC=$ac_cv_prog_CC
4659 if test -n "$CC"; then
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4661 $as_echo "$CC" >&6; }
4662 else
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4664 $as_echo "no" >&6; }
4665 fi
4666
4667
4668 fi
4669 fi
4670 if test -z "$CC"; then
4671 # Extract the first word of "cc", so it can be a program name with args.
4672 set dummy cc; ac_word=$2
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4674 $as_echo_n "checking for $ac_word... " >&6; }
4675 if ${ac_cv_prog_CC+:} false; then :
4676 $as_echo_n "(cached) " >&6
4677 else
4678 if test -n "$CC"; then
4679 ac_cv_prog_CC="$CC" # Let the user override the test.
4680 else
4681 ac_prog_rejected=no
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683 for as_dir in $PATH
4684 do
4685 IFS=$as_save_IFS
4686 test -z "$as_dir" && as_dir=.
4687 for ac_exec_ext in '' $ac_executable_extensions; do
4688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4689 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4690 ac_prog_rejected=yes
4691 continue
4692 fi
4693 ac_cv_prog_CC="cc"
4694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4695 break 2
4696 fi
4697 done
4698 done
4699 IFS=$as_save_IFS
4700
4701 if test $ac_prog_rejected = yes; then
4702 # We found a bogon in the path, so make sure we never use it.
4703 set dummy $ac_cv_prog_CC
4704 shift
4705 if test $# != 0; then
4706 # We chose a different compiler from the bogus one.
4707 # However, it has the same basename, so the bogon will be chosen
4708 # first if we set CC to just the basename; use the full file name.
4709 shift
4710 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4711 fi
4712 fi
4713 fi
4714 fi
4715 CC=$ac_cv_prog_CC
4716 if test -n "$CC"; then
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4718 $as_echo "$CC" >&6; }
4719 else
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4721 $as_echo "no" >&6; }
4722 fi
4723
4724
4725 fi
4726 if test -z "$CC"; then
4727 if test -n "$ac_tool_prefix"; then
4728 for ac_prog in cl.exe
4729 do
4730 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4731 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4733 $as_echo_n "checking for $ac_word... " >&6; }
4734 if ${ac_cv_prog_CC+:} false; then :
4735 $as_echo_n "(cached) " >&6
4736 else
4737 if test -n "$CC"; then
4738 ac_cv_prog_CC="$CC" # Let the user override the test.
4739 else
4740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4741 for as_dir in $PATH
4742 do
4743 IFS=$as_save_IFS
4744 test -z "$as_dir" && as_dir=.
4745 for ac_exec_ext in '' $ac_executable_extensions; do
4746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4747 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4749 break 2
4750 fi
4751 done
4752 done
4753 IFS=$as_save_IFS
4754
4755 fi
4756 fi
4757 CC=$ac_cv_prog_CC
4758 if test -n "$CC"; then
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4760 $as_echo "$CC" >&6; }
4761 else
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4763 $as_echo "no" >&6; }
4764 fi
4765
4766
4767 test -n "$CC" && break
4768 done
4769 fi
4770 if test -z "$CC"; then
4771 ac_ct_CC=$CC
4772 for ac_prog in cl.exe
4773 do
4774 # Extract the first word of "$ac_prog", so it can be a program name with args.
4775 set dummy $ac_prog; ac_word=$2
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4777 $as_echo_n "checking for $ac_word... " >&6; }
4778 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4779 $as_echo_n "(cached) " >&6
4780 else
4781 if test -n "$ac_ct_CC"; then
4782 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4783 else
4784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785 for as_dir in $PATH
4786 do
4787 IFS=$as_save_IFS
4788 test -z "$as_dir" && as_dir=.
4789 for ac_exec_ext in '' $ac_executable_extensions; do
4790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4791 ac_cv_prog_ac_ct_CC="$ac_prog"
4792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4793 break 2
4794 fi
4795 done
4796 done
4797 IFS=$as_save_IFS
4798
4799 fi
4800 fi
4801 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4802 if test -n "$ac_ct_CC"; then
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4804 $as_echo "$ac_ct_CC" >&6; }
4805 else
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4807 $as_echo "no" >&6; }
4808 fi
4809
4810
4811 test -n "$ac_ct_CC" && break
4812 done
4813
4814 if test "x$ac_ct_CC" = x; then
4815 CC=""
4816 else
4817 case $cross_compiling:$ac_tool_warned in
4818 yes:)
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4820 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4821 ac_tool_warned=yes ;;
4822 esac
4823 CC=$ac_ct_CC
4824 fi
4825 fi
4826
4827 fi
4828
4829
4830 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4831 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4832 as_fn_error $? "no acceptable C compiler found in \$PATH
4833 See \`config.log' for more details" "$LINENO" 5; }
4834
4835 # Provide some information about the compiler.
4836 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4837 set X $ac_compile
4838 ac_compiler=$2
4839 for ac_option in --version -v -V -qversion; do
4840 { { ac_try="$ac_compiler $ac_option >&5"
4841 case "(($ac_try" in
4842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4843 *) ac_try_echo=$ac_try;;
4844 esac
4845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4846 $as_echo "$ac_try_echo"; } >&5
4847 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4848 ac_status=$?
4849 if test -s conftest.err; then
4850 sed '10a\
4851 ... rest of stderr output deleted ...
4852 10q' conftest.err >conftest.er1
4853 cat conftest.er1 >&5
4854 fi
4855 rm -f conftest.er1 conftest.err
4856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4857 test $ac_status = 0; }
4858 done
4859
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4861 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4862 if ${ac_cv_c_compiler_gnu+:} false; then :
4863 $as_echo_n "(cached) " >&6
4864 else
4865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4866 /* end confdefs.h. */
4867
4868 int
4869 main ()
4870 {
4871 #ifndef __GNUC__
4872 choke me
4873 #endif
4874
4875 ;
4876 return 0;
4877 }
4878 _ACEOF
4879 if ac_fn_c_try_compile "$LINENO"; then :
4880 ac_compiler_gnu=yes
4881 else
4882 ac_compiler_gnu=no
4883 fi
4884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4885 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4886
4887 fi
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4889 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4890 if test $ac_compiler_gnu = yes; then
4891 GCC=yes
4892 else
4893 GCC=
4894 fi
4895 ac_test_CFLAGS=${CFLAGS+set}
4896 ac_save_CFLAGS=$CFLAGS
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4898 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4899 if ${ac_cv_prog_cc_g+:} false; then :
4900 $as_echo_n "(cached) " >&6
4901 else
4902 ac_save_c_werror_flag=$ac_c_werror_flag
4903 ac_c_werror_flag=yes
4904 ac_cv_prog_cc_g=no
4905 CFLAGS="-g"
4906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4907 /* end confdefs.h. */
4908
4909 int
4910 main ()
4911 {
4912
4913 ;
4914 return 0;
4915 }
4916 _ACEOF
4917 if ac_fn_c_try_compile "$LINENO"; then :
4918 ac_cv_prog_cc_g=yes
4919 else
4920 CFLAGS=""
4921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4922 /* end confdefs.h. */
4923
4924 int
4925 main ()
4926 {
4927
4928 ;
4929 return 0;
4930 }
4931 _ACEOF
4932 if ac_fn_c_try_compile "$LINENO"; then :
4933
4934 else
4935 ac_c_werror_flag=$ac_save_c_werror_flag
4936 CFLAGS="-g"
4937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4938 /* end confdefs.h. */
4939
4940 int
4941 main ()
4942 {
4943
4944 ;
4945 return 0;
4946 }
4947 _ACEOF
4948 if ac_fn_c_try_compile "$LINENO"; then :
4949 ac_cv_prog_cc_g=yes
4950 fi
4951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4952 fi
4953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4954 fi
4955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4956 ac_c_werror_flag=$ac_save_c_werror_flag
4957 fi
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4959 $as_echo "$ac_cv_prog_cc_g" >&6; }
4960 if test "$ac_test_CFLAGS" = set; then
4961 CFLAGS=$ac_save_CFLAGS
4962 elif test $ac_cv_prog_cc_g = yes; then
4963 if test "$GCC" = yes; then
4964 CFLAGS="-g -O2"
4965 else
4966 CFLAGS="-g"
4967 fi
4968 else
4969 if test "$GCC" = yes; then
4970 CFLAGS="-O2"
4971 else
4972 CFLAGS=
4973 fi
4974 fi
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4976 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4977 if ${ac_cv_prog_cc_c89+:} false; then :
4978 $as_echo_n "(cached) " >&6
4979 else
4980 ac_cv_prog_cc_c89=no
4981 ac_save_CC=$CC
4982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4983 /* end confdefs.h. */
4984 #include <stdarg.h>
4985 #include <stdio.h>
4986 struct stat;
4987 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4988 struct buf { int x; };
4989 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4990 static char *e (p, i)
4991 char **p;
4992 int i;
4993 {
4994 return p[i];
4995 }
4996 static char *f (char * (*g) (char **, int), char **p, ...)
4997 {
4998 char *s;
4999 va_list v;
5000 va_start (v,p);
5001 s = g (p, va_arg (v,int));
5002 va_end (v);
5003 return s;
5004 }
5005
5006 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5007 function prototypes and stuff, but not '\xHH' hex character constants.
5008 These don't provoke an error unfortunately, instead are silently treated
5009 as 'x'. The following induces an error, until -std is added to get
5010 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5011 array size at least. It's necessary to write '\x00'==0 to get something
5012 that's true only with -std. */
5013 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5014
5015 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5016 inside strings and character constants. */
5017 #define FOO(x) 'x'
5018 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5019
5020 int test (int i, double x);
5021 struct s1 {int (*f) (int a);};
5022 struct s2 {int (*f) (double a);};
5023 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5024 int argc;
5025 char **argv;
5026 int
5027 main ()
5028 {
5029 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5030 ;
5031 return 0;
5032 }
5033 _ACEOF
5034 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5035 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5036 do
5037 CC="$ac_save_CC $ac_arg"
5038 if ac_fn_c_try_compile "$LINENO"; then :
5039 ac_cv_prog_cc_c89=$ac_arg
5040 fi
5041 rm -f core conftest.err conftest.$ac_objext
5042 test "x$ac_cv_prog_cc_c89" != "xno" && break
5043 done
5044 rm -f conftest.$ac_ext
5045 CC=$ac_save_CC
5046
5047 fi
5048 # AC_CACHE_VAL
5049 case "x$ac_cv_prog_cc_c89" in
5050 x)
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5052 $as_echo "none needed" >&6; } ;;
5053 xno)
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5055 $as_echo "unsupported" >&6; } ;;
5056 *)
5057 CC="$CC $ac_cv_prog_cc_c89"
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5059 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5060 esac
5061 if test "x$ac_cv_prog_cc_c89" != xno; then :
5062
5063 fi
5064
5065 ac_ext=c
5066 ac_cpp='$CPP $CPPFLAGS'
5067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5070
5071 ac_ext=c
5072 ac_cpp='$CPP $CPPFLAGS'
5073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5077 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5078 if ${am_cv_prog_cc_c_o+:} false; then :
5079 $as_echo_n "(cached) " >&6
5080 else
5081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5082 /* end confdefs.h. */
5083
5084 int
5085 main ()
5086 {
5087
5088 ;
5089 return 0;
5090 }
5091 _ACEOF
5092 # Make sure it works both with $CC and with simple cc.
5093 # Following AC_PROG_CC_C_O, we do the test twice because some
5094 # compilers refuse to overwrite an existing .o file with -o,
5095 # though they will create one.
5096 am_cv_prog_cc_c_o=yes
5097 for am_i in 1 2; do
5098 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5099 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5100 ac_status=$?
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); } \
5103 && test -f conftest2.$ac_objext; then
5104 : OK
5105 else
5106 am_cv_prog_cc_c_o=no
5107 break
5108 fi
5109 done
5110 rm -f core conftest*
5111 unset am_i
5112 fi
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5114 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5115 if test "$am_cv_prog_cc_c_o" != yes; then
5116 # Losing compiler, so override with the script.
5117 # FIXME: It is wrong to rewrite CC.
5118 # But if we don't then we get into trouble of one sort or another.
5119 # A longer-term fix would be to have automake use am__CC in this case,
5120 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5121 CC="$am_aux_dir/compile $CC"
5122 fi
5123 ac_ext=c
5124 ac_cpp='$CPP $CPPFLAGS'
5125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5128
5129
5130 ac_ext=d
5131 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5132 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5133 ac_compiler_gnu=yes
5134 if test -n "$ac_tool_prefix"; then
5135 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5136 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5138 $as_echo_n "checking for $ac_word... " >&6; }
5139 if ${ac_cv_prog_GDC+:} false; then :
5140 $as_echo_n "(cached) " >&6
5141 else
5142 if test -n "$GDC"; then
5143 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5144 else
5145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5146 for as_dir in $PATH
5147 do
5148 IFS=$as_save_IFS
5149 test -z "$as_dir" && as_dir=.
5150 for ac_exec_ext in '' $ac_executable_extensions; do
5151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5152 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5154 break 2
5155 fi
5156 done
5157 done
5158 IFS=$as_save_IFS
5159
5160 fi
5161 fi
5162 GDC=$ac_cv_prog_GDC
5163 if test -n "$GDC"; then
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5165 $as_echo "$GDC" >&6; }
5166 else
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5168 $as_echo "no" >&6; }
5169 fi
5170
5171
5172 fi
5173 if test -z "$ac_cv_prog_GDC"; then
5174 ac_ct_GDC=$GDC
5175 # Extract the first word of "gdc", so it can be a program name with args.
5176 set dummy gdc; ac_word=$2
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5178 $as_echo_n "checking for $ac_word... " >&6; }
5179 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5180 $as_echo_n "(cached) " >&6
5181 else
5182 if test -n "$ac_ct_GDC"; then
5183 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5184 else
5185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186 for as_dir in $PATH
5187 do
5188 IFS=$as_save_IFS
5189 test -z "$as_dir" && as_dir=.
5190 for ac_exec_ext in '' $ac_executable_extensions; do
5191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5192 ac_cv_prog_ac_ct_GDC="gdc"
5193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5194 break 2
5195 fi
5196 done
5197 done
5198 IFS=$as_save_IFS
5199
5200 fi
5201 fi
5202 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5203 if test -n "$ac_ct_GDC"; then
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5205 $as_echo "$ac_ct_GDC" >&6; }
5206 else
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5208 $as_echo "no" >&6; }
5209 fi
5210
5211 if test "x$ac_ct_GDC" = x; then
5212 GDC=""
5213 else
5214 case $cross_compiling:$ac_tool_warned in
5215 yes:)
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5217 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5218 ac_tool_warned=yes ;;
5219 esac
5220 GDC=$ac_ct_GDC
5221 fi
5222 else
5223 GDC="$ac_cv_prog_GDC"
5224 fi
5225
5226 if test -z "$GDC"; then
5227 if test -n "$ac_tool_prefix"; then
5228 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5229 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5231 $as_echo_n "checking for $ac_word... " >&6; }
5232 if ${ac_cv_prog_GDC+:} false; then :
5233 $as_echo_n "(cached) " >&6
5234 else
5235 if test -n "$GDC"; then
5236 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5237 else
5238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5239 for as_dir in $PATH
5240 do
5241 IFS=$as_save_IFS
5242 test -z "$as_dir" && as_dir=.
5243 for ac_exec_ext in '' $ac_executable_extensions; do
5244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5245 ac_cv_prog_GDC="$ac_tool_prefix}gdc"
5246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5247 break 2
5248 fi
5249 done
5250 done
5251 IFS=$as_save_IFS
5252
5253 fi
5254 fi
5255 GDC=$ac_cv_prog_GDC
5256 if test -n "$GDC"; then
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5258 $as_echo "$GDC" >&6; }
5259 else
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5261 $as_echo "no" >&6; }
5262 fi
5263
5264
5265 fi
5266 fi
5267 if test -z "$GDC"; then
5268 # Extract the first word of "gdc", so it can be a program name with args.
5269 set dummy gdc; ac_word=$2
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5271 $as_echo_n "checking for $ac_word... " >&6; }
5272 if ${ac_cv_prog_GDC+:} false; then :
5273 $as_echo_n "(cached) " >&6
5274 else
5275 if test -n "$GDC"; then
5276 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5277 else
5278 ac_prog_rejected=no
5279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5280 for as_dir in $PATH
5281 do
5282 IFS=$as_save_IFS
5283 test -z "$as_dir" && as_dir=.
5284 for ac_exec_ext in '' $ac_executable_extensions; do
5285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5286 if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
5287 ac_prog_rejected=yes
5288 continue
5289 fi
5290 ac_cv_prog_GDC="gdc"
5291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5292 break 2
5293 fi
5294 done
5295 done
5296 IFS=$as_save_IFS
5297
5298 if test $ac_prog_rejected = yes; then
5299 # We found a bogon in the path, so make sure we never use it.
5300 set dummy $ac_cv_prog_GDC
5301 shift
5302 if test $# != 0; then
5303 # We chose a different compiler from the bogus one.
5304 # However, it has the same basename, so the bogon will be chosen
5305 # first if we set GDC to just the basename; use the full file name.
5306 shift
5307 ac_cv_prog_GDC="$as_dir/$ac_word${1+' '}$@"
5308 fi
5309 fi
5310 fi
5311 fi
5312 GDC=$ac_cv_prog_GDC
5313 if test -n "$GDC"; then
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5315 $as_echo "$GDC" >&6; }
5316 else
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5318 $as_echo "no" >&6; }
5319 fi
5320
5321
5322 fi
5323
5324
5325 # Provide some information about the compiler.
5326 $as_echo "$as_me:${as_lineno-$LINENO}: checking for D compiler version" >&5
5327 set X $ac_compile
5328 ac_compiler=$2
5329 { { ac_try="$ac_compiler --version >&5"
5330 case "(($ac_try" in
5331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5332 *) ac_try_echo=$ac_try;;
5333 esac
5334 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5335 $as_echo "$ac_try_echo"; } >&5
5336 (eval "$ac_compiler --version >&5") 2>conftest.err
5337 ac_status=$?
5338 if test -s conftest.err; then
5339 sed '10a\
5340 ... rest of stderr output deleted ...
5341 10q' conftest.err >conftest.er1
5342 cat conftest.er1 >&5
5343 fi
5344 rm -f conftest.er1 conftest.err
5345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5346 test $ac_status = 0; }
5347 ac_ext=c
5348 ac_cpp='$CPP $CPPFLAGS'
5349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5352
5353
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for absolute libphobos source path" >&5
5355 $as_echo_n "checking for absolute libphobos source path... " >&6; }
5356 if ${phobos_cv_abs_srcdir+:} false; then :
5357 $as_echo_n "(cached) " >&6
5358 else
5359 phobos_cv_abs_srcdir=`cd $srcdir && pwd`
5360 fi
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $phobos_cv_abs_srcdir" >&5
5362 $as_echo "$phobos_cv_abs_srcdir" >&6; }
5363 if test -d "$phobos_cv_abs_srcdir"; then :
5364
5365 else
5366 as_fn_error $? "can't find absolute libphobos source path" "$LINENO" 5
5367 fi
5368
5369
5370
5371
5372 gdc_save_DFLAGS=$GDCFLAGS
5373 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
5374
5375 ac_ext=d
5376 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5377 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5378 ac_compiler_gnu=yes
5379
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If $GDC can compile D sources" >&5
5381 $as_echo_n "checking If $GDC can compile D sources... " >&6; }
5382 cat > conftest.$ac_ext <<_ACEOF
5383 module mod;
5384
5385
5386 extern(C) int main() {
5387 return 0;
5388 }
5389 _ACEOF
5390 if ac_fn_d_try_compile "$LINENO"; then :
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5392 $as_echo "yes" >&6; }
5393 else
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5395 $as_echo "no" >&6; }
5396 as_fn_error $? "can't compile D sources!" "$LINENO" 5
5397 fi
5398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5399 ac_ext=c
5400 ac_cpp='$CPP $CPPFLAGS'
5401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5404
5405
5406 GDCFLAGS=$gdc_save_DFLAGS
5407
5408
5409
5410
5411
5412
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5414 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5415 # Check whether --enable-maintainer-mode was given.
5416 if test "${enable_maintainer_mode+set}" = set; then :
5417 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5418 else
5419 USE_MAINTAINER_MODE=no
5420 fi
5421
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5423 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5424 if test $USE_MAINTAINER_MODE = yes; then
5425 MAINTAINER_MODE_TRUE=
5426 MAINTAINER_MODE_FALSE='#'
5427 else
5428 MAINTAINER_MODE_TRUE='#'
5429 MAINTAINER_MODE_FALSE=
5430 fi
5431
5432 MAINT=$MAINTAINER_MODE_TRUE
5433
5434
5435 if test -n "$ac_tool_prefix"; then
5436 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5437 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5439 $as_echo_n "checking for $ac_word... " >&6; }
5440 if ${ac_cv_prog_RANLIB+:} false; then :
5441 $as_echo_n "(cached) " >&6
5442 else
5443 if test -n "$RANLIB"; then
5444 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5445 else
5446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5447 for as_dir in $PATH
5448 do
5449 IFS=$as_save_IFS
5450 test -z "$as_dir" && as_dir=.
5451 for ac_exec_ext in '' $ac_executable_extensions; do
5452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5453 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5455 break 2
5456 fi
5457 done
5458 done
5459 IFS=$as_save_IFS
5460
5461 fi
5462 fi
5463 RANLIB=$ac_cv_prog_RANLIB
5464 if test -n "$RANLIB"; then
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5466 $as_echo "$RANLIB" >&6; }
5467 else
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5469 $as_echo "no" >&6; }
5470 fi
5471
5472
5473 fi
5474 if test -z "$ac_cv_prog_RANLIB"; then
5475 ac_ct_RANLIB=$RANLIB
5476 # Extract the first word of "ranlib", so it can be a program name with args.
5477 set dummy ranlib; ac_word=$2
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5479 $as_echo_n "checking for $ac_word... " >&6; }
5480 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5481 $as_echo_n "(cached) " >&6
5482 else
5483 if test -n "$ac_ct_RANLIB"; then
5484 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5485 else
5486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5487 for as_dir in $PATH
5488 do
5489 IFS=$as_save_IFS
5490 test -z "$as_dir" && as_dir=.
5491 for ac_exec_ext in '' $ac_executable_extensions; do
5492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5493 ac_cv_prog_ac_ct_RANLIB="ranlib"
5494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5495 break 2
5496 fi
5497 done
5498 done
5499 IFS=$as_save_IFS
5500
5501 fi
5502 fi
5503 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5504 if test -n "$ac_ct_RANLIB"; then
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5506 $as_echo "$ac_ct_RANLIB" >&6; }
5507 else
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5509 $as_echo "no" >&6; }
5510 fi
5511
5512 if test "x$ac_ct_RANLIB" = x; then
5513 RANLIB=":"
5514 else
5515 case $cross_compiling:$ac_tool_warned in
5516 yes:)
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5518 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5519 ac_tool_warned=yes ;;
5520 esac
5521 RANLIB=$ac_ct_RANLIB
5522 fi
5523 else
5524 RANLIB="$ac_cv_prog_RANLIB"
5525 fi
5526
5527
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5529 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5530 set x ${MAKE-make}
5531 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5532 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5533 $as_echo_n "(cached) " >&6
5534 else
5535 cat >conftest.make <<\_ACEOF
5536 SHELL = /bin/sh
5537 all:
5538 @echo '@@@%%%=$(MAKE)=@@@%%%'
5539 _ACEOF
5540 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5541 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5542 *@@@%%%=?*=@@@%%%*)
5543 eval ac_cv_prog_make_${ac_make}_set=yes;;
5544 *)
5545 eval ac_cv_prog_make_${ac_make}_set=no;;
5546 esac
5547 rm -f conftest.make
5548 fi
5549 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5551 $as_echo "yes" >&6; }
5552 SET_MAKE=
5553 else
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5555 $as_echo "no" >&6; }
5556 SET_MAKE="MAKE=${MAKE-make}"
5557 fi
5558
5559
5560 # This should be inherited in the recursive make, but ensure it is defined.
5561 test "$AR" || AR=ar
5562
5563
5564 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
5565
5566
5567
5568 # Enable libtool
5569 case `pwd` in
5570 *\ * | *\ *)
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5572 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5573 esac
5574
5575
5576
5577 macro_version='2.2.7a'
5578 macro_revision='1.3134'
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592 ltmain="$ac_aux_dir/ltmain.sh"
5593
5594 # Backslashify metacharacters that are still active within
5595 # double-quoted strings.
5596 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5597
5598 # Same as above, but do not quote variable references.
5599 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5600
5601 # Sed substitution to delay expansion of an escaped shell variable in a
5602 # double_quote_subst'ed string.
5603 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5604
5605 # Sed substitution to delay expansion of an escaped single quote.
5606 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5607
5608 # Sed substitution to avoid accidental globbing in evaled expressions
5609 no_glob_subst='s/\*/\\\*/g'
5610
5611 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5612 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5613 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5614
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5616 $as_echo_n "checking how to print strings... " >&6; }
5617 # Test print first, because it will be a builtin if present.
5618 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5619 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5620 ECHO='print -r --'
5621 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5622 ECHO='printf %s\n'
5623 else
5624 # Use this function as a fallback that always works.
5625 func_fallback_echo ()
5626 {
5627 eval 'cat <<_LTECHO_EOF
5628 $1
5629 _LTECHO_EOF'
5630 }
5631 ECHO='func_fallback_echo'
5632 fi
5633
5634 # func_echo_all arg...
5635 # Invoke $ECHO with all args, space-separated.
5636 func_echo_all ()
5637 {
5638 $ECHO ""
5639 }
5640
5641 case "$ECHO" in
5642 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5643 $as_echo "printf" >&6; } ;;
5644 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5645 $as_echo "print -r" >&6; } ;;
5646 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5647 $as_echo "cat" >&6; } ;;
5648 esac
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5664 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5665 if ${ac_cv_path_SED+:} false; then :
5666 $as_echo_n "(cached) " >&6
5667 else
5668 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5669 for ac_i in 1 2 3 4 5 6 7; do
5670 ac_script="$ac_script$as_nl$ac_script"
5671 done
5672 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5673 { ac_script=; unset ac_script;}
5674 if test -z "$SED"; then
5675 ac_path_SED_found=false
5676 # Loop through the user's path and test for each of PROGNAME-LIST
5677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5678 for as_dir in $PATH
5679 do
5680 IFS=$as_save_IFS
5681 test -z "$as_dir" && as_dir=.
5682 for ac_prog in sed gsed; do
5683 for ac_exec_ext in '' $ac_executable_extensions; do
5684 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5685 as_fn_executable_p "$ac_path_SED" || continue
5686 # Check for GNU ac_path_SED and select it if it is found.
5687 # Check for GNU $ac_path_SED
5688 case `"$ac_path_SED" --version 2>&1` in
5689 *GNU*)
5690 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5691 *)
5692 ac_count=0
5693 $as_echo_n 0123456789 >"conftest.in"
5694 while :
5695 do
5696 cat "conftest.in" "conftest.in" >"conftest.tmp"
5697 mv "conftest.tmp" "conftest.in"
5698 cp "conftest.in" "conftest.nl"
5699 $as_echo '' >> "conftest.nl"
5700 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5701 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5702 as_fn_arith $ac_count + 1 && ac_count=$as_val
5703 if test $ac_count -gt ${ac_path_SED_max-0}; then
5704 # Best one so far, save it but keep looking for a better one
5705 ac_cv_path_SED="$ac_path_SED"
5706 ac_path_SED_max=$ac_count
5707 fi
5708 # 10*(2^10) chars as input seems more than enough
5709 test $ac_count -gt 10 && break
5710 done
5711 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5712 esac
5713
5714 $ac_path_SED_found && break 3
5715 done
5716 done
5717 done
5718 IFS=$as_save_IFS
5719 if test -z "$ac_cv_path_SED"; then
5720 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5721 fi
5722 else
5723 ac_cv_path_SED=$SED
5724 fi
5725
5726 fi
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5728 $as_echo "$ac_cv_path_SED" >&6; }
5729 SED="$ac_cv_path_SED"
5730 rm -f conftest.sed
5731
5732 test -z "$SED" && SED=sed
5733 Xsed="$SED -e 1s/^X//"
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5746 $as_echo_n "checking for fgrep... " >&6; }
5747 if ${ac_cv_path_FGREP+:} false; then :
5748 $as_echo_n "(cached) " >&6
5749 else
5750 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5751 then ac_cv_path_FGREP="$GREP -F"
5752 else
5753 if test -z "$FGREP"; then
5754 ac_path_FGREP_found=false
5755 # Loop through the user's path and test for each of PROGNAME-LIST
5756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5757 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5758 do
5759 IFS=$as_save_IFS
5760 test -z "$as_dir" && as_dir=.
5761 for ac_prog in fgrep; do
5762 for ac_exec_ext in '' $ac_executable_extensions; do
5763 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5764 as_fn_executable_p "$ac_path_FGREP" || continue
5765 # Check for GNU ac_path_FGREP and select it if it is found.
5766 # Check for GNU $ac_path_FGREP
5767 case `"$ac_path_FGREP" --version 2>&1` in
5768 *GNU*)
5769 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5770 *)
5771 ac_count=0
5772 $as_echo_n 0123456789 >"conftest.in"
5773 while :
5774 do
5775 cat "conftest.in" "conftest.in" >"conftest.tmp"
5776 mv "conftest.tmp" "conftest.in"
5777 cp "conftest.in" "conftest.nl"
5778 $as_echo 'FGREP' >> "conftest.nl"
5779 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5780 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5781 as_fn_arith $ac_count + 1 && ac_count=$as_val
5782 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5783 # Best one so far, save it but keep looking for a better one
5784 ac_cv_path_FGREP="$ac_path_FGREP"
5785 ac_path_FGREP_max=$ac_count
5786 fi
5787 # 10*(2^10) chars as input seems more than enough
5788 test $ac_count -gt 10 && break
5789 done
5790 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5791 esac
5792
5793 $ac_path_FGREP_found && break 3
5794 done
5795 done
5796 done
5797 IFS=$as_save_IFS
5798 if test -z "$ac_cv_path_FGREP"; then
5799 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5800 fi
5801 else
5802 ac_cv_path_FGREP=$FGREP
5803 fi
5804
5805 fi
5806 fi
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5808 $as_echo "$ac_cv_path_FGREP" >&6; }
5809 FGREP="$ac_cv_path_FGREP"
5810
5811
5812 test -z "$GREP" && GREP=grep
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832 # Check whether --with-gnu-ld was given.
5833 if test "${with_gnu_ld+set}" = set; then :
5834 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5835 else
5836 with_gnu_ld=no
5837 fi
5838
5839 ac_prog=ld
5840 if test "$GCC" = yes; then
5841 # Check if gcc -print-prog-name=ld gives a path.
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5843 $as_echo_n "checking for ld used by $CC... " >&6; }
5844 case $host in
5845 *-*-mingw*)
5846 # gcc leaves a trailing carriage return which upsets mingw
5847 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5848 *)
5849 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5850 esac
5851 case $ac_prog in
5852 # Accept absolute paths.
5853 [\\/]* | ?:[\\/]*)
5854 re_direlt='/[^/][^/]*/\.\./'
5855 # Canonicalize the pathname of ld
5856 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5857 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5858 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5859 done
5860 test -z "$LD" && LD="$ac_prog"
5861 ;;
5862 "")
5863 # If it fails, then pretend we aren't using GCC.
5864 ac_prog=ld
5865 ;;
5866 *)
5867 # If it is relative, then search for the first ld in PATH.
5868 with_gnu_ld=unknown
5869 ;;
5870 esac
5871 elif test "$with_gnu_ld" = yes; then
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5873 $as_echo_n "checking for GNU ld... " >&6; }
5874 else
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5876 $as_echo_n "checking for non-GNU ld... " >&6; }
5877 fi
5878 if ${lt_cv_path_LD+:} false; then :
5879 $as_echo_n "(cached) " >&6
5880 else
5881 if test -z "$LD"; then
5882 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5883 for ac_dir in $PATH; do
5884 IFS="$lt_save_ifs"
5885 test -z "$ac_dir" && ac_dir=.
5886 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5887 lt_cv_path_LD="$ac_dir/$ac_prog"
5888 # Check to see if the program is GNU ld. I'd rather use --version,
5889 # but apparently some variants of GNU ld only accept -v.
5890 # Break only if it was the GNU/non-GNU ld that we prefer.
5891 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5892 *GNU* | *'with BFD'*)
5893 test "$with_gnu_ld" != no && break
5894 ;;
5895 *)
5896 test "$with_gnu_ld" != yes && break
5897 ;;
5898 esac
5899 fi
5900 done
5901 IFS="$lt_save_ifs"
5902 else
5903 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5904 fi
5905 fi
5906
5907 LD="$lt_cv_path_LD"
5908 if test -n "$LD"; then
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5910 $as_echo "$LD" >&6; }
5911 else
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5913 $as_echo "no" >&6; }
5914 fi
5915 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5917 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5918 if ${lt_cv_prog_gnu_ld+:} false; then :
5919 $as_echo_n "(cached) " >&6
5920 else
5921 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5922 case `$LD -v 2>&1 </dev/null` in
5923 *GNU* | *'with BFD'*)
5924 lt_cv_prog_gnu_ld=yes
5925 ;;
5926 *)
5927 lt_cv_prog_gnu_ld=no
5928 ;;
5929 esac
5930 fi
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5932 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5933 with_gnu_ld=$lt_cv_prog_gnu_ld
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5944 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5945 if ${lt_cv_path_NM+:} false; then :
5946 $as_echo_n "(cached) " >&6
5947 else
5948 if test -n "$NM"; then
5949 # Let the user override the test.
5950 lt_cv_path_NM="$NM"
5951 else
5952 lt_nm_to_check="${ac_tool_prefix}nm"
5953 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5954 lt_nm_to_check="$lt_nm_to_check nm"
5955 fi
5956 for lt_tmp_nm in $lt_nm_to_check; do
5957 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5958 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5959 IFS="$lt_save_ifs"
5960 test -z "$ac_dir" && ac_dir=.
5961 tmp_nm="$ac_dir/$lt_tmp_nm"
5962 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5963 # Check to see if the nm accepts a BSD-compat flag.
5964 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5965 # nm: unknown option "B" ignored
5966 # Tru64's nm complains that /dev/null is an invalid object file
5967 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5968 */dev/null* | *'Invalid file or object type'*)
5969 lt_cv_path_NM="$tmp_nm -B"
5970 break
5971 ;;
5972 *)
5973 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5974 */dev/null*)
5975 lt_cv_path_NM="$tmp_nm -p"
5976 break
5977 ;;
5978 *)
5979 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5980 continue # so that we can try to find one that supports BSD flags
5981 ;;
5982 esac
5983 ;;
5984 esac
5985 fi
5986 done
5987 IFS="$lt_save_ifs"
5988 done
5989 : ${lt_cv_path_NM=no}
5990 fi
5991 fi
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5993 $as_echo "$lt_cv_path_NM" >&6; }
5994 if test "$lt_cv_path_NM" != "no"; then
5995 NM="$lt_cv_path_NM"
5996 else
5997 # Didn't find any BSD compatible name lister, look for dumpbin.
5998 if test -n "$DUMPBIN"; then :
5999 # Let the user override the test.
6000 else
6001 if test -n "$ac_tool_prefix"; then
6002 for ac_prog in dumpbin "link -dump"
6003 do
6004 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6005 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6007 $as_echo_n "checking for $ac_word... " >&6; }
6008 if ${ac_cv_prog_DUMPBIN+:} false; then :
6009 $as_echo_n "(cached) " >&6
6010 else
6011 if test -n "$DUMPBIN"; then
6012 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6013 else
6014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6015 for as_dir in $PATH
6016 do
6017 IFS=$as_save_IFS
6018 test -z "$as_dir" && as_dir=.
6019 for ac_exec_ext in '' $ac_executable_extensions; do
6020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6021 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6023 break 2
6024 fi
6025 done
6026 done
6027 IFS=$as_save_IFS
6028
6029 fi
6030 fi
6031 DUMPBIN=$ac_cv_prog_DUMPBIN
6032 if test -n "$DUMPBIN"; then
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6034 $as_echo "$DUMPBIN" >&6; }
6035 else
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6037 $as_echo "no" >&6; }
6038 fi
6039
6040
6041 test -n "$DUMPBIN" && break
6042 done
6043 fi
6044 if test -z "$DUMPBIN"; then
6045 ac_ct_DUMPBIN=$DUMPBIN
6046 for ac_prog in dumpbin "link -dump"
6047 do
6048 # Extract the first word of "$ac_prog", so it can be a program name with args.
6049 set dummy $ac_prog; ac_word=$2
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6051 $as_echo_n "checking for $ac_word... " >&6; }
6052 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6053 $as_echo_n "(cached) " >&6
6054 else
6055 if test -n "$ac_ct_DUMPBIN"; then
6056 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6057 else
6058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059 for as_dir in $PATH
6060 do
6061 IFS=$as_save_IFS
6062 test -z "$as_dir" && as_dir=.
6063 for ac_exec_ext in '' $ac_executable_extensions; do
6064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6065 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6067 break 2
6068 fi
6069 done
6070 done
6071 IFS=$as_save_IFS
6072
6073 fi
6074 fi
6075 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6076 if test -n "$ac_ct_DUMPBIN"; then
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6078 $as_echo "$ac_ct_DUMPBIN" >&6; }
6079 else
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6081 $as_echo "no" >&6; }
6082 fi
6083
6084
6085 test -n "$ac_ct_DUMPBIN" && break
6086 done
6087
6088 if test "x$ac_ct_DUMPBIN" = x; then
6089 DUMPBIN=":"
6090 else
6091 case $cross_compiling:$ac_tool_warned in
6092 yes:)
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6094 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6095 ac_tool_warned=yes ;;
6096 esac
6097 DUMPBIN=$ac_ct_DUMPBIN
6098 fi
6099 fi
6100
6101 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6102 *COFF*)
6103 DUMPBIN="$DUMPBIN -symbols"
6104 ;;
6105 *)
6106 DUMPBIN=:
6107 ;;
6108 esac
6109 fi
6110
6111 if test "$DUMPBIN" != ":"; then
6112 NM="$DUMPBIN"
6113 fi
6114 fi
6115 test -z "$NM" && NM=nm
6116
6117
6118
6119
6120
6121
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6123 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6124 if ${lt_cv_nm_interface+:} false; then :
6125 $as_echo_n "(cached) " >&6
6126 else
6127 lt_cv_nm_interface="BSD nm"
6128 echo "int some_variable = 0;" > conftest.$ac_ext
6129 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6130 (eval "$ac_compile" 2>conftest.err)
6131 cat conftest.err >&5
6132 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6133 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6134 cat conftest.err >&5
6135 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6136 cat conftest.out >&5
6137 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6138 lt_cv_nm_interface="MS dumpbin"
6139 fi
6140 rm -f conftest*
6141 fi
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6143 $as_echo "$lt_cv_nm_interface" >&6; }
6144
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6146 $as_echo_n "checking whether ln -s works... " >&6; }
6147 LN_S=$as_ln_s
6148 if test "$LN_S" = "ln -s"; then
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6150 $as_echo "yes" >&6; }
6151 else
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6153 $as_echo "no, using $LN_S" >&6; }
6154 fi
6155
6156 # find the maximum length of command line arguments
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6158 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6159 if ${lt_cv_sys_max_cmd_len+:} false; then :
6160 $as_echo_n "(cached) " >&6
6161 else
6162 i=0
6163 teststring="ABCD"
6164
6165 case $build_os in
6166 msdosdjgpp*)
6167 # On DJGPP, this test can blow up pretty badly due to problems in libc
6168 # (any single argument exceeding 2000 bytes causes a buffer overrun
6169 # during glob expansion). Even if it were fixed, the result of this
6170 # check would be larger than it should be.
6171 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6172 ;;
6173
6174 gnu*)
6175 # Under GNU Hurd, this test is not required because there is
6176 # no limit to the length of command line arguments.
6177 # Libtool will interpret -1 as no limit whatsoever
6178 lt_cv_sys_max_cmd_len=-1;
6179 ;;
6180
6181 cygwin* | mingw* | cegcc*)
6182 # On Win9x/ME, this test blows up -- it succeeds, but takes
6183 # about 5 minutes as the teststring grows exponentially.
6184 # Worse, since 9x/ME are not pre-emptively multitasking,
6185 # you end up with a "frozen" computer, even though with patience
6186 # the test eventually succeeds (with a max line length of 256k).
6187 # Instead, let's just punt: use the minimum linelength reported by
6188 # all of the supported platforms: 8192 (on NT/2K/XP).
6189 lt_cv_sys_max_cmd_len=8192;
6190 ;;
6191
6192 mint*)
6193 # On MiNT this can take a long time and run out of memory.
6194 lt_cv_sys_max_cmd_len=8192;
6195 ;;
6196
6197 amigaos*)
6198 # On AmigaOS with pdksh, this test takes hours, literally.
6199 # So we just punt and use a minimum line length of 8192.
6200 lt_cv_sys_max_cmd_len=8192;
6201 ;;
6202
6203 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6204 # This has been around since 386BSD, at least. Likely further.
6205 if test -x /sbin/sysctl; then
6206 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6207 elif test -x /usr/sbin/sysctl; then
6208 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6209 else
6210 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6211 fi
6212 # And add a safety zone
6213 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6214 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6215 ;;
6216
6217 interix*)
6218 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6219 lt_cv_sys_max_cmd_len=196608
6220 ;;
6221
6222 osf*)
6223 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6224 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6225 # nice to cause kernel panics so lets avoid the loop below.
6226 # First set a reasonable default.
6227 lt_cv_sys_max_cmd_len=16384
6228 #
6229 if test -x /sbin/sysconfig; then
6230 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6231 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6232 esac
6233 fi
6234 ;;
6235 sco3.2v5*)
6236 lt_cv_sys_max_cmd_len=102400
6237 ;;
6238 sysv5* | sco5v6* | sysv4.2uw2*)
6239 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6240 if test -n "$kargmax"; then
6241 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6242 else
6243 lt_cv_sys_max_cmd_len=32768
6244 fi
6245 ;;
6246 *)
6247 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6248 if test -n "$lt_cv_sys_max_cmd_len"; then
6249 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6250 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6251 else
6252 # Make teststring a little bigger before we do anything with it.
6253 # a 1K string should be a reasonable start.
6254 for i in 1 2 3 4 5 6 7 8 ; do
6255 teststring=$teststring$teststring
6256 done
6257 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6258 # If test is not a shell built-in, we'll probably end up computing a
6259 # maximum length that is only half of the actual maximum length, but
6260 # we can't tell.
6261 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6262 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6263 test $i != 17 # 1/2 MB should be enough
6264 do
6265 i=`expr $i + 1`
6266 teststring=$teststring$teststring
6267 done
6268 # Only check the string length outside the loop.
6269 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6270 teststring=
6271 # Add a significant safety factor because C++ compilers can tack on
6272 # massive amounts of additional arguments before passing them to the
6273 # linker. It appears as though 1/2 is a usable value.
6274 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6275 fi
6276 ;;
6277 esac
6278
6279 fi
6280
6281 if test -n $lt_cv_sys_max_cmd_len ; then
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6283 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6284 else
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6286 $as_echo "none" >&6; }
6287 fi
6288 max_cmd_len=$lt_cv_sys_max_cmd_len
6289
6290
6291
6292
6293
6294
6295 : ${CP="cp -f"}
6296 : ${MV="mv -f"}
6297 : ${RM="rm -f"}
6298
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6300 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6301 # Try some XSI features
6302 xsi_shell=no
6303 ( _lt_dummy="a/b/c"
6304 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6305 = c,a/b,, \
6306 && eval 'test $(( 1 + 1 )) -eq 2 \
6307 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6308 && xsi_shell=yes
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6310 $as_echo "$xsi_shell" >&6; }
6311
6312
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6314 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6315 lt_shell_append=no
6316 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6317 >/dev/null 2>&1 \
6318 && lt_shell_append=yes
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6320 $as_echo "$lt_shell_append" >&6; }
6321
6322
6323 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6324 lt_unset=unset
6325 else
6326 lt_unset=false
6327 fi
6328
6329
6330
6331
6332
6333 # test EBCDIC or ASCII
6334 case `echo X|tr X '\101'` in
6335 A) # ASCII based system
6336 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6337 lt_SP2NL='tr \040 \012'
6338 lt_NL2SP='tr \015\012 \040\040'
6339 ;;
6340 *) # EBCDIC based system
6341 lt_SP2NL='tr \100 \n'
6342 lt_NL2SP='tr \r\n \100\100'
6343 ;;
6344 esac
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6355 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6356 if ${lt_cv_ld_reload_flag+:} false; then :
6357 $as_echo_n "(cached) " >&6
6358 else
6359 lt_cv_ld_reload_flag='-r'
6360 fi
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6362 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6363 reload_flag=$lt_cv_ld_reload_flag
6364 case $reload_flag in
6365 "" | " "*) ;;
6366 *) reload_flag=" $reload_flag" ;;
6367 esac
6368 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6369 case $host_os in
6370 darwin*)
6371 if test "$GCC" = yes; then
6372 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6373 else
6374 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6375 fi
6376 ;;
6377 esac
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387 if test -n "$ac_tool_prefix"; then
6388 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6389 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6391 $as_echo_n "checking for $ac_word... " >&6; }
6392 if ${ac_cv_prog_OBJDUMP+:} false; then :
6393 $as_echo_n "(cached) " >&6
6394 else
6395 if test -n "$OBJDUMP"; then
6396 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6397 else
6398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6399 for as_dir in $PATH
6400 do
6401 IFS=$as_save_IFS
6402 test -z "$as_dir" && as_dir=.
6403 for ac_exec_ext in '' $ac_executable_extensions; do
6404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6405 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6407 break 2
6408 fi
6409 done
6410 done
6411 IFS=$as_save_IFS
6412
6413 fi
6414 fi
6415 OBJDUMP=$ac_cv_prog_OBJDUMP
6416 if test -n "$OBJDUMP"; then
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6418 $as_echo "$OBJDUMP" >&6; }
6419 else
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6421 $as_echo "no" >&6; }
6422 fi
6423
6424
6425 fi
6426 if test -z "$ac_cv_prog_OBJDUMP"; then
6427 ac_ct_OBJDUMP=$OBJDUMP
6428 # Extract the first word of "objdump", so it can be a program name with args.
6429 set dummy objdump; ac_word=$2
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6431 $as_echo_n "checking for $ac_word... " >&6; }
6432 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6433 $as_echo_n "(cached) " >&6
6434 else
6435 if test -n "$ac_ct_OBJDUMP"; then
6436 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6437 else
6438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6439 for as_dir in $PATH
6440 do
6441 IFS=$as_save_IFS
6442 test -z "$as_dir" && as_dir=.
6443 for ac_exec_ext in '' $ac_executable_extensions; do
6444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6445 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6447 break 2
6448 fi
6449 done
6450 done
6451 IFS=$as_save_IFS
6452
6453 fi
6454 fi
6455 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6456 if test -n "$ac_ct_OBJDUMP"; then
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6458 $as_echo "$ac_ct_OBJDUMP" >&6; }
6459 else
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6461 $as_echo "no" >&6; }
6462 fi
6463
6464 if test "x$ac_ct_OBJDUMP" = x; then
6465 OBJDUMP="false"
6466 else
6467 case $cross_compiling:$ac_tool_warned in
6468 yes:)
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6470 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6471 ac_tool_warned=yes ;;
6472 esac
6473 OBJDUMP=$ac_ct_OBJDUMP
6474 fi
6475 else
6476 OBJDUMP="$ac_cv_prog_OBJDUMP"
6477 fi
6478
6479 test -z "$OBJDUMP" && OBJDUMP=objdump
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6490 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6491 if ${lt_cv_deplibs_check_method+:} false; then :
6492 $as_echo_n "(cached) " >&6
6493 else
6494 lt_cv_file_magic_cmd='$MAGIC_CMD'
6495 lt_cv_file_magic_test_file=
6496 lt_cv_deplibs_check_method='unknown'
6497 # Need to set the preceding variable on all platforms that support
6498 # interlibrary dependencies.
6499 # 'none' -- dependencies not supported.
6500 # `unknown' -- same as none, but documents that we really don't know.
6501 # 'pass_all' -- all dependencies passed with no checks.
6502 # 'test_compile' -- check by making test program.
6503 # 'file_magic [[regex]]' -- check by looking for files in library path
6504 # which responds to the $file_magic_cmd with a given extended regex.
6505 # If you have `file' or equivalent on your system and you're not sure
6506 # whether `pass_all' will *always* work, you probably want this one.
6507
6508 case $host_os in
6509 aix[4-9]*)
6510 lt_cv_deplibs_check_method=pass_all
6511 ;;
6512
6513 beos*)
6514 lt_cv_deplibs_check_method=pass_all
6515 ;;
6516
6517 bsdi[45]*)
6518 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6519 lt_cv_file_magic_cmd='/usr/bin/file -L'
6520 lt_cv_file_magic_test_file=/shlib/libc.so
6521 ;;
6522
6523 cygwin*)
6524 # func_win32_libid is a shell function defined in ltmain.sh
6525 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6526 lt_cv_file_magic_cmd='func_win32_libid'
6527 ;;
6528
6529 mingw* | pw32*)
6530 # Base MSYS/MinGW do not provide the 'file' command needed by
6531 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6532 # unless we find 'file', for example because we are cross-compiling.
6533 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6534 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6535 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6536 lt_cv_file_magic_cmd='func_win32_libid'
6537 else
6538 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6539 lt_cv_file_magic_cmd='$OBJDUMP -f'
6540 fi
6541 ;;
6542
6543 cegcc*)
6544 # use the weaker test based on 'objdump'. See mingw*.
6545 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6546 lt_cv_file_magic_cmd='$OBJDUMP -f'
6547 ;;
6548
6549 darwin* | rhapsody*)
6550 lt_cv_deplibs_check_method=pass_all
6551 ;;
6552
6553 freebsd* | dragonfly*)
6554 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6555 case $host_cpu in
6556 i*86 )
6557 # Not sure whether the presence of OpenBSD here was a mistake.
6558 # Let's accept both of them until this is cleared up.
6559 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6560 lt_cv_file_magic_cmd=/usr/bin/file
6561 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6562 ;;
6563 esac
6564 else
6565 lt_cv_deplibs_check_method=pass_all
6566 fi
6567 ;;
6568
6569 gnu*)
6570 lt_cv_deplibs_check_method=pass_all
6571 ;;
6572
6573 haiku*)
6574 lt_cv_deplibs_check_method=pass_all
6575 ;;
6576
6577 hpux10.20* | hpux11*)
6578 lt_cv_file_magic_cmd=/usr/bin/file
6579 case $host_cpu in
6580 ia64*)
6581 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6582 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6583 ;;
6584 hppa*64*)
6585 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]'
6586 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6587 ;;
6588 *)
6589 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6590 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6591 ;;
6592 esac
6593 ;;
6594
6595 interix[3-9]*)
6596 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6597 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6598 ;;
6599
6600 irix5* | irix6* | nonstopux*)
6601 case $LD in
6602 *-32|*"-32 ") libmagic=32-bit;;
6603 *-n32|*"-n32 ") libmagic=N32;;
6604 *-64|*"-64 ") libmagic=64-bit;;
6605 *) libmagic=never-match;;
6606 esac
6607 lt_cv_deplibs_check_method=pass_all
6608 ;;
6609
6610 # This must be Linux ELF.
6611 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6612 lt_cv_deplibs_check_method=pass_all
6613 ;;
6614
6615 netbsd*)
6616 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6617 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6618 else
6619 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6620 fi
6621 ;;
6622
6623 newos6*)
6624 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6625 lt_cv_file_magic_cmd=/usr/bin/file
6626 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6627 ;;
6628
6629 *nto* | *qnx*)
6630 lt_cv_deplibs_check_method=pass_all
6631 ;;
6632
6633 openbsd*)
6634 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6635 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6636 else
6637 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6638 fi
6639 ;;
6640
6641 osf3* | osf4* | osf5*)
6642 lt_cv_deplibs_check_method=pass_all
6643 ;;
6644
6645 rdos*)
6646 lt_cv_deplibs_check_method=pass_all
6647 ;;
6648
6649 solaris*)
6650 lt_cv_deplibs_check_method=pass_all
6651 ;;
6652
6653 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6654 lt_cv_deplibs_check_method=pass_all
6655 ;;
6656
6657 sysv4 | sysv4.3*)
6658 case $host_vendor in
6659 motorola)
6660 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]'
6661 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6662 ;;
6663 ncr)
6664 lt_cv_deplibs_check_method=pass_all
6665 ;;
6666 sequent)
6667 lt_cv_file_magic_cmd='/bin/file'
6668 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6669 ;;
6670 sni)
6671 lt_cv_file_magic_cmd='/bin/file'
6672 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6673 lt_cv_file_magic_test_file=/lib/libc.so
6674 ;;
6675 siemens)
6676 lt_cv_deplibs_check_method=pass_all
6677 ;;
6678 pc)
6679 lt_cv_deplibs_check_method=pass_all
6680 ;;
6681 esac
6682 ;;
6683
6684 tpf*)
6685 lt_cv_deplibs_check_method=pass_all
6686 ;;
6687 esac
6688
6689 fi
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6691 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6692 file_magic_cmd=$lt_cv_file_magic_cmd
6693 deplibs_check_method=$lt_cv_deplibs_check_method
6694 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707 if test -n "$ac_tool_prefix"; then
6708 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6709 set dummy ${ac_tool_prefix}ar; ac_word=$2
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6711 $as_echo_n "checking for $ac_word... " >&6; }
6712 if ${ac_cv_prog_AR+:} false; then :
6713 $as_echo_n "(cached) " >&6
6714 else
6715 if test -n "$AR"; then
6716 ac_cv_prog_AR="$AR" # Let the user override the test.
6717 else
6718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719 for as_dir in $PATH
6720 do
6721 IFS=$as_save_IFS
6722 test -z "$as_dir" && as_dir=.
6723 for ac_exec_ext in '' $ac_executable_extensions; do
6724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6725 ac_cv_prog_AR="${ac_tool_prefix}ar"
6726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6727 break 2
6728 fi
6729 done
6730 done
6731 IFS=$as_save_IFS
6732
6733 fi
6734 fi
6735 AR=$ac_cv_prog_AR
6736 if test -n "$AR"; then
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6738 $as_echo "$AR" >&6; }
6739 else
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6741 $as_echo "no" >&6; }
6742 fi
6743
6744
6745 fi
6746 if test -z "$ac_cv_prog_AR"; then
6747 ac_ct_AR=$AR
6748 # Extract the first word of "ar", so it can be a program name with args.
6749 set dummy ar; ac_word=$2
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6751 $as_echo_n "checking for $ac_word... " >&6; }
6752 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6753 $as_echo_n "(cached) " >&6
6754 else
6755 if test -n "$ac_ct_AR"; then
6756 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6757 else
6758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759 for as_dir in $PATH
6760 do
6761 IFS=$as_save_IFS
6762 test -z "$as_dir" && as_dir=.
6763 for ac_exec_ext in '' $ac_executable_extensions; do
6764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6765 ac_cv_prog_ac_ct_AR="ar"
6766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6767 break 2
6768 fi
6769 done
6770 done
6771 IFS=$as_save_IFS
6772
6773 fi
6774 fi
6775 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6776 if test -n "$ac_ct_AR"; then
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6778 $as_echo "$ac_ct_AR" >&6; }
6779 else
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6781 $as_echo "no" >&6; }
6782 fi
6783
6784 if test "x$ac_ct_AR" = x; then
6785 AR="false"
6786 else
6787 case $cross_compiling:$ac_tool_warned in
6788 yes:)
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6790 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6791 ac_tool_warned=yes ;;
6792 esac
6793 AR=$ac_ct_AR
6794 fi
6795 else
6796 AR="$ac_cv_prog_AR"
6797 fi
6798
6799 test -z "$AR" && AR=ar
6800 test -z "$AR_FLAGS" && AR_FLAGS=cru
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812 if test -n "$ac_tool_prefix"; then
6813 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6814 set dummy ${ac_tool_prefix}strip; ac_word=$2
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6816 $as_echo_n "checking for $ac_word... " >&6; }
6817 if ${ac_cv_prog_STRIP+:} false; then :
6818 $as_echo_n "(cached) " >&6
6819 else
6820 if test -n "$STRIP"; then
6821 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6822 else
6823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6824 for as_dir in $PATH
6825 do
6826 IFS=$as_save_IFS
6827 test -z "$as_dir" && as_dir=.
6828 for ac_exec_ext in '' $ac_executable_extensions; do
6829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6830 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6832 break 2
6833 fi
6834 done
6835 done
6836 IFS=$as_save_IFS
6837
6838 fi
6839 fi
6840 STRIP=$ac_cv_prog_STRIP
6841 if test -n "$STRIP"; then
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6843 $as_echo "$STRIP" >&6; }
6844 else
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6846 $as_echo "no" >&6; }
6847 fi
6848
6849
6850 fi
6851 if test -z "$ac_cv_prog_STRIP"; then
6852 ac_ct_STRIP=$STRIP
6853 # Extract the first word of "strip", so it can be a program name with args.
6854 set dummy strip; ac_word=$2
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6856 $as_echo_n "checking for $ac_word... " >&6; }
6857 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6858 $as_echo_n "(cached) " >&6
6859 else
6860 if test -n "$ac_ct_STRIP"; then
6861 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6862 else
6863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6864 for as_dir in $PATH
6865 do
6866 IFS=$as_save_IFS
6867 test -z "$as_dir" && as_dir=.
6868 for ac_exec_ext in '' $ac_executable_extensions; do
6869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6870 ac_cv_prog_ac_ct_STRIP="strip"
6871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6872 break 2
6873 fi
6874 done
6875 done
6876 IFS=$as_save_IFS
6877
6878 fi
6879 fi
6880 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6881 if test -n "$ac_ct_STRIP"; then
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6883 $as_echo "$ac_ct_STRIP" >&6; }
6884 else
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6886 $as_echo "no" >&6; }
6887 fi
6888
6889 if test "x$ac_ct_STRIP" = x; then
6890 STRIP=":"
6891 else
6892 case $cross_compiling:$ac_tool_warned in
6893 yes:)
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6895 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6896 ac_tool_warned=yes ;;
6897 esac
6898 STRIP=$ac_ct_STRIP
6899 fi
6900 else
6901 STRIP="$ac_cv_prog_STRIP"
6902 fi
6903
6904 test -z "$STRIP" && STRIP=:
6905
6906
6907
6908
6909
6910
6911 if test -n "$ac_tool_prefix"; then
6912 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6913 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6915 $as_echo_n "checking for $ac_word... " >&6; }
6916 if ${ac_cv_prog_RANLIB+:} false; then :
6917 $as_echo_n "(cached) " >&6
6918 else
6919 if test -n "$RANLIB"; then
6920 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6921 else
6922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923 for as_dir in $PATH
6924 do
6925 IFS=$as_save_IFS
6926 test -z "$as_dir" && as_dir=.
6927 for ac_exec_ext in '' $ac_executable_extensions; do
6928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6929 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6931 break 2
6932 fi
6933 done
6934 done
6935 IFS=$as_save_IFS
6936
6937 fi
6938 fi
6939 RANLIB=$ac_cv_prog_RANLIB
6940 if test -n "$RANLIB"; then
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6942 $as_echo "$RANLIB" >&6; }
6943 else
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6945 $as_echo "no" >&6; }
6946 fi
6947
6948
6949 fi
6950 if test -z "$ac_cv_prog_RANLIB"; then
6951 ac_ct_RANLIB=$RANLIB
6952 # Extract the first word of "ranlib", so it can be a program name with args.
6953 set dummy ranlib; ac_word=$2
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6955 $as_echo_n "checking for $ac_word... " >&6; }
6956 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6957 $as_echo_n "(cached) " >&6
6958 else
6959 if test -n "$ac_ct_RANLIB"; then
6960 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6961 else
6962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6963 for as_dir in $PATH
6964 do
6965 IFS=$as_save_IFS
6966 test -z "$as_dir" && as_dir=.
6967 for ac_exec_ext in '' $ac_executable_extensions; do
6968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6969 ac_cv_prog_ac_ct_RANLIB="ranlib"
6970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6971 break 2
6972 fi
6973 done
6974 done
6975 IFS=$as_save_IFS
6976
6977 fi
6978 fi
6979 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6980 if test -n "$ac_ct_RANLIB"; then
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6982 $as_echo "$ac_ct_RANLIB" >&6; }
6983 else
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6985 $as_echo "no" >&6; }
6986 fi
6987
6988 if test "x$ac_ct_RANLIB" = x; then
6989 RANLIB=":"
6990 else
6991 case $cross_compiling:$ac_tool_warned in
6992 yes:)
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6994 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6995 ac_tool_warned=yes ;;
6996 esac
6997 RANLIB=$ac_ct_RANLIB
6998 fi
6999 else
7000 RANLIB="$ac_cv_prog_RANLIB"
7001 fi
7002
7003 test -z "$RANLIB" && RANLIB=:
7004
7005
7006
7007
7008
7009
7010 # Determine commands to create old-style static archives.
7011 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7012 old_postinstall_cmds='chmod 644 $oldlib'
7013 old_postuninstall_cmds=
7014
7015 if test -n "$RANLIB"; then
7016 case $host_os in
7017 openbsd*)
7018 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7019 ;;
7020 *)
7021 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7022 ;;
7023 esac
7024 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7025 fi
7026
7027 case $host_os in
7028 darwin*)
7029 lock_old_archive_extraction=yes ;;
7030 *)
7031 lock_old_archive_extraction=no ;;
7032 esac
7033
7034
7035
7036
7037
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 # If no C compiler was specified, use CC.
7073 LTCC=${LTCC-"$CC"}
7074
7075 # If no C compiler flags were specified, use CFLAGS.
7076 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7077
7078 # Allow CC to be a program name with arguments.
7079 compiler=$CC
7080
7081
7082 # Check for command to grab the raw symbol name followed by C symbol from nm.
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7084 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7085 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7086 $as_echo_n "(cached) " >&6
7087 else
7088
7089 # These are sane defaults that work on at least a few old systems.
7090 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7091
7092 # Character class describing NM global symbol codes.
7093 symcode='[BCDEGRST]'
7094
7095 # Regexp to match symbols that can be accessed directly from C.
7096 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7097
7098 # Define system-specific variables.
7099 case $host_os in
7100 aix*)
7101 symcode='[BCDT]'
7102 ;;
7103 cygwin* | mingw* | pw32* | cegcc*)
7104 symcode='[ABCDGISTW]'
7105 ;;
7106 hpux*)
7107 if test "$host_cpu" = ia64; then
7108 symcode='[ABCDEGRST]'
7109 fi
7110 ;;
7111 irix* | nonstopux*)
7112 symcode='[BCDEGRST]'
7113 ;;
7114 osf*)
7115 symcode='[BCDEGQRST]'
7116 ;;
7117 solaris*)
7118 symcode='[BDRT]'
7119 ;;
7120 sco3.2v5*)
7121 symcode='[DT]'
7122 ;;
7123 sysv4.2uw2*)
7124 symcode='[DT]'
7125 ;;
7126 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7127 symcode='[ABDT]'
7128 ;;
7129 sysv4)
7130 symcode='[DFNSTU]'
7131 ;;
7132 esac
7133
7134 # If we're using GNU nm, then use its standard symbol codes.
7135 case `$NM -V 2>&1` in
7136 *GNU* | *'with BFD'*)
7137 symcode='[ABCDGIRSTW]' ;;
7138 esac
7139
7140 # Transform an extracted symbol line into a proper C declaration.
7141 # Some systems (esp. on ia64) link data and code symbols differently,
7142 # so use this general approach.
7143 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7144
7145 # Transform an extracted symbol line into symbol name and symbol address
7146 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7147 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'"
7148
7149 # Handle CRLF in mingw tool chain
7150 opt_cr=
7151 case $build_os in
7152 mingw*)
7153 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7154 ;;
7155 esac
7156
7157 # Try without a prefix underscore, then with it.
7158 for ac_symprfx in "" "_"; do
7159
7160 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7161 symxfrm="\\1 $ac_symprfx\\2 \\2"
7162
7163 # Write the raw and C identifiers.
7164 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7165 # Fake it for dumpbin and say T for any non-static function
7166 # and D for any global variable.
7167 # Also find C++ and __fastcall symbols from MSVC++,
7168 # which start with @ or ?.
7169 lt_cv_sys_global_symbol_pipe="$AWK '"\
7170 " {last_section=section; section=\$ 3};"\
7171 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7172 " \$ 0!~/External *\|/{next};"\
7173 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7174 " {if(hide[section]) next};"\
7175 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7176 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7177 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7178 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7179 " ' prfx=^$ac_symprfx"
7180 else
7181 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7182 fi
7183
7184 # Check to see that the pipe works correctly.
7185 pipe_works=no
7186
7187 rm -f conftest*
7188 cat > conftest.$ac_ext <<_LT_EOF
7189 #ifdef __cplusplus
7190 extern "C" {
7191 #endif
7192 char nm_test_var;
7193 void nm_test_func(void);
7194 void nm_test_func(void){}
7195 #ifdef __cplusplus
7196 }
7197 #endif
7198 int main(){nm_test_var='a';nm_test_func();return(0);}
7199 _LT_EOF
7200
7201 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7202 (eval $ac_compile) 2>&5
7203 ac_status=$?
7204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7205 test $ac_status = 0; }; then
7206 # Now try to grab the symbols.
7207 nlist=conftest.nm
7208 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7209 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7210 ac_status=$?
7211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7212 test $ac_status = 0; } && test -s "$nlist"; then
7213 # Try sorting and uniquifying the output.
7214 if sort "$nlist" | uniq > "$nlist"T; then
7215 mv -f "$nlist"T "$nlist"
7216 else
7217 rm -f "$nlist"T
7218 fi
7219
7220 # Make sure that we snagged all the symbols we need.
7221 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7222 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7223 cat <<_LT_EOF > conftest.$ac_ext
7224 #ifdef __cplusplus
7225 extern "C" {
7226 #endif
7227
7228 _LT_EOF
7229 # Now generate the symbol file.
7230 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7231
7232 cat <<_LT_EOF >> conftest.$ac_ext
7233
7234 /* The mapping between symbol names and symbols. */
7235 const struct {
7236 const char *name;
7237 void *address;
7238 }
7239 lt__PROGRAM__LTX_preloaded_symbols[] =
7240 {
7241 { "@PROGRAM@", (void *) 0 },
7242 _LT_EOF
7243 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7244 cat <<\_LT_EOF >> conftest.$ac_ext
7245 {0, (void *) 0}
7246 };
7247
7248 /* This works around a problem in FreeBSD linker */
7249 #ifdef FREEBSD_WORKAROUND
7250 static const void *lt_preloaded_setup() {
7251 return lt__PROGRAM__LTX_preloaded_symbols;
7252 }
7253 #endif
7254
7255 #ifdef __cplusplus
7256 }
7257 #endif
7258 _LT_EOF
7259 # Now try linking the two files.
7260 mv conftest.$ac_objext conftstm.$ac_objext
7261 lt_save_LIBS="$LIBS"
7262 lt_save_CFLAGS="$CFLAGS"
7263 LIBS="conftstm.$ac_objext"
7264 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7265 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7266 (eval $ac_link) 2>&5
7267 ac_status=$?
7268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7269 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7270 pipe_works=yes
7271 fi
7272 LIBS="$lt_save_LIBS"
7273 CFLAGS="$lt_save_CFLAGS"
7274 else
7275 echo "cannot find nm_test_func in $nlist" >&5
7276 fi
7277 else
7278 echo "cannot find nm_test_var in $nlist" >&5
7279 fi
7280 else
7281 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7282 fi
7283 else
7284 echo "$progname: failed program was:" >&5
7285 cat conftest.$ac_ext >&5
7286 fi
7287 rm -rf conftest* conftst*
7288
7289 # Do not use the global_symbol_pipe unless it works.
7290 if test "$pipe_works" = yes; then
7291 break
7292 else
7293 lt_cv_sys_global_symbol_pipe=
7294 fi
7295 done
7296
7297 fi
7298
7299 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7300 lt_cv_sys_global_symbol_to_cdecl=
7301 fi
7302 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7304 $as_echo "failed" >&6; }
7305 else
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7307 $as_echo "ok" >&6; }
7308 fi
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331 # Check whether --enable-libtool-lock was given.
7332 if test "${enable_libtool_lock+set}" = set; then :
7333 enableval=$enable_libtool_lock;
7334 fi
7335
7336 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7337
7338 # Some flags need to be propagated to the compiler or linker for good
7339 # libtool support.
7340 case $host in
7341 ia64-*-hpux*)
7342 # Find out which ABI we are using.
7343 echo 'int i;' > conftest.$ac_ext
7344 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7345 (eval $ac_compile) 2>&5
7346 ac_status=$?
7347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7348 test $ac_status = 0; }; then
7349 case `/usr/bin/file conftest.$ac_objext` in
7350 *ELF-32*)
7351 HPUX_IA64_MODE="32"
7352 ;;
7353 *ELF-64*)
7354 HPUX_IA64_MODE="64"
7355 ;;
7356 esac
7357 fi
7358 rm -rf conftest*
7359 ;;
7360 *-*-irix6*)
7361 # Find out which ABI we are using.
7362 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7363 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7364 (eval $ac_compile) 2>&5
7365 ac_status=$?
7366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7367 test $ac_status = 0; }; then
7368 if test "$lt_cv_prog_gnu_ld" = yes; then
7369 case `/usr/bin/file conftest.$ac_objext` in
7370 *32-bit*)
7371 LD="${LD-ld} -melf32bsmip"
7372 ;;
7373 *N32*)
7374 LD="${LD-ld} -melf32bmipn32"
7375 ;;
7376 *64-bit*)
7377 LD="${LD-ld} -melf64bmip"
7378 ;;
7379 esac
7380 else
7381 case `/usr/bin/file conftest.$ac_objext` in
7382 *32-bit*)
7383 LD="${LD-ld} -32"
7384 ;;
7385 *N32*)
7386 LD="${LD-ld} -n32"
7387 ;;
7388 *64-bit*)
7389 LD="${LD-ld} -64"
7390 ;;
7391 esac
7392 fi
7393 fi
7394 rm -rf conftest*
7395 ;;
7396
7397 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7398 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7399 # Find out which ABI we are using.
7400 echo 'int i;' > conftest.$ac_ext
7401 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7402 (eval $ac_compile) 2>&5
7403 ac_status=$?
7404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7405 test $ac_status = 0; }; then
7406 case `/usr/bin/file conftest.o` in
7407 *32-bit*)
7408 case $host in
7409 x86_64-*kfreebsd*-gnu)
7410 LD="${LD-ld} -m elf_i386_fbsd"
7411 ;;
7412 x86_64-*linux*)
7413 case `/usr/bin/file conftest.o` in
7414 *x86-64*)
7415 LD="${LD-ld} -m elf32_x86_64"
7416 ;;
7417 *)
7418 LD="${LD-ld} -m elf_i386"
7419 ;;
7420 esac
7421 ;;
7422 powerpc64le-*linux*)
7423 LD="${LD-ld} -m elf32lppclinux"
7424 ;;
7425 powerpc64-*linux*)
7426 LD="${LD-ld} -m elf32ppclinux"
7427 ;;
7428 s390x-*linux*)
7429 LD="${LD-ld} -m elf_s390"
7430 ;;
7431 sparc64-*linux*)
7432 LD="${LD-ld} -m elf32_sparc"
7433 ;;
7434 esac
7435 ;;
7436 *64-bit*)
7437 case $host in
7438 x86_64-*kfreebsd*-gnu)
7439 LD="${LD-ld} -m elf_x86_64_fbsd"
7440 ;;
7441 x86_64-*linux*)
7442 LD="${LD-ld} -m elf_x86_64"
7443 ;;
7444 powerpcle-*linux*)
7445 LD="${LD-ld} -m elf64lppc"
7446 ;;
7447 powerpc-*linux*)
7448 LD="${LD-ld} -m elf64ppc"
7449 ;;
7450 s390*-*linux*|s390*-*tpf*)
7451 LD="${LD-ld} -m elf64_s390"
7452 ;;
7453 sparc*-*linux*)
7454 LD="${LD-ld} -m elf64_sparc"
7455 ;;
7456 esac
7457 ;;
7458 esac
7459 fi
7460 rm -rf conftest*
7461 ;;
7462
7463 *-*-sco3.2v5*)
7464 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7465 SAVE_CFLAGS="$CFLAGS"
7466 CFLAGS="$CFLAGS -belf"
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7468 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7469 if ${lt_cv_cc_needs_belf+:} false; then :
7470 $as_echo_n "(cached) " >&6
7471 else
7472 ac_ext=c
7473 ac_cpp='$CPP $CPPFLAGS'
7474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7477
7478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7479 /* end confdefs.h. */
7480
7481 int
7482 main ()
7483 {
7484
7485 ;
7486 return 0;
7487 }
7488 _ACEOF
7489 if ac_fn_c_try_link "$LINENO"; then :
7490 lt_cv_cc_needs_belf=yes
7491 else
7492 lt_cv_cc_needs_belf=no
7493 fi
7494 rm -f core conftest.err conftest.$ac_objext \
7495 conftest$ac_exeext conftest.$ac_ext
7496 ac_ext=c
7497 ac_cpp='$CPP $CPPFLAGS'
7498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7501
7502 fi
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7504 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7505 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7506 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7507 CFLAGS="$SAVE_CFLAGS"
7508 fi
7509 ;;
7510 sparc*-*solaris*)
7511 # Find out which ABI we are using.
7512 echo 'int i;' > conftest.$ac_ext
7513 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7514 (eval $ac_compile) 2>&5
7515 ac_status=$?
7516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7517 test $ac_status = 0; }; then
7518 case `/usr/bin/file conftest.o` in
7519 *64-bit*)
7520 case $lt_cv_prog_gnu_ld in
7521 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7522 *)
7523 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7524 LD="${LD-ld} -64"
7525 fi
7526 ;;
7527 esac
7528 ;;
7529 esac
7530 fi
7531 rm -rf conftest*
7532 ;;
7533 esac
7534
7535 need_locks="$enable_libtool_lock"
7536
7537
7538 case $host_os in
7539 rhapsody* | darwin*)
7540 if test -n "$ac_tool_prefix"; then
7541 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7542 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7544 $as_echo_n "checking for $ac_word... " >&6; }
7545 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7546 $as_echo_n "(cached) " >&6
7547 else
7548 if test -n "$DSYMUTIL"; then
7549 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7550 else
7551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7552 for as_dir in $PATH
7553 do
7554 IFS=$as_save_IFS
7555 test -z "$as_dir" && as_dir=.
7556 for ac_exec_ext in '' $ac_executable_extensions; do
7557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7558 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7560 break 2
7561 fi
7562 done
7563 done
7564 IFS=$as_save_IFS
7565
7566 fi
7567 fi
7568 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7569 if test -n "$DSYMUTIL"; then
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7571 $as_echo "$DSYMUTIL" >&6; }
7572 else
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7574 $as_echo "no" >&6; }
7575 fi
7576
7577
7578 fi
7579 if test -z "$ac_cv_prog_DSYMUTIL"; then
7580 ac_ct_DSYMUTIL=$DSYMUTIL
7581 # Extract the first word of "dsymutil", so it can be a program name with args.
7582 set dummy dsymutil; ac_word=$2
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7584 $as_echo_n "checking for $ac_word... " >&6; }
7585 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7586 $as_echo_n "(cached) " >&6
7587 else
7588 if test -n "$ac_ct_DSYMUTIL"; then
7589 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7590 else
7591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7592 for as_dir in $PATH
7593 do
7594 IFS=$as_save_IFS
7595 test -z "$as_dir" && as_dir=.
7596 for ac_exec_ext in '' $ac_executable_extensions; do
7597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7598 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7600 break 2
7601 fi
7602 done
7603 done
7604 IFS=$as_save_IFS
7605
7606 fi
7607 fi
7608 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7609 if test -n "$ac_ct_DSYMUTIL"; then
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7611 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7612 else
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7614 $as_echo "no" >&6; }
7615 fi
7616
7617 if test "x$ac_ct_DSYMUTIL" = x; then
7618 DSYMUTIL=":"
7619 else
7620 case $cross_compiling:$ac_tool_warned in
7621 yes:)
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7624 ac_tool_warned=yes ;;
7625 esac
7626 DSYMUTIL=$ac_ct_DSYMUTIL
7627 fi
7628 else
7629 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7630 fi
7631
7632 if test -n "$ac_tool_prefix"; then
7633 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7634 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7636 $as_echo_n "checking for $ac_word... " >&6; }
7637 if ${ac_cv_prog_NMEDIT+:} false; then :
7638 $as_echo_n "(cached) " >&6
7639 else
7640 if test -n "$NMEDIT"; then
7641 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7642 else
7643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7644 for as_dir in $PATH
7645 do
7646 IFS=$as_save_IFS
7647 test -z "$as_dir" && as_dir=.
7648 for ac_exec_ext in '' $ac_executable_extensions; do
7649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7650 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7652 break 2
7653 fi
7654 done
7655 done
7656 IFS=$as_save_IFS
7657
7658 fi
7659 fi
7660 NMEDIT=$ac_cv_prog_NMEDIT
7661 if test -n "$NMEDIT"; then
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7663 $as_echo "$NMEDIT" >&6; }
7664 else
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7666 $as_echo "no" >&6; }
7667 fi
7668
7669
7670 fi
7671 if test -z "$ac_cv_prog_NMEDIT"; then
7672 ac_ct_NMEDIT=$NMEDIT
7673 # Extract the first word of "nmedit", so it can be a program name with args.
7674 set dummy nmedit; ac_word=$2
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7676 $as_echo_n "checking for $ac_word... " >&6; }
7677 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7678 $as_echo_n "(cached) " >&6
7679 else
7680 if test -n "$ac_ct_NMEDIT"; then
7681 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7682 else
7683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7684 for as_dir in $PATH
7685 do
7686 IFS=$as_save_IFS
7687 test -z "$as_dir" && as_dir=.
7688 for ac_exec_ext in '' $ac_executable_extensions; do
7689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7690 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7692 break 2
7693 fi
7694 done
7695 done
7696 IFS=$as_save_IFS
7697
7698 fi
7699 fi
7700 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7701 if test -n "$ac_ct_NMEDIT"; then
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7703 $as_echo "$ac_ct_NMEDIT" >&6; }
7704 else
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7706 $as_echo "no" >&6; }
7707 fi
7708
7709 if test "x$ac_ct_NMEDIT" = x; then
7710 NMEDIT=":"
7711 else
7712 case $cross_compiling:$ac_tool_warned in
7713 yes:)
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7716 ac_tool_warned=yes ;;
7717 esac
7718 NMEDIT=$ac_ct_NMEDIT
7719 fi
7720 else
7721 NMEDIT="$ac_cv_prog_NMEDIT"
7722 fi
7723
7724 if test -n "$ac_tool_prefix"; then
7725 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7726 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7728 $as_echo_n "checking for $ac_word... " >&6; }
7729 if ${ac_cv_prog_LIPO+:} false; then :
7730 $as_echo_n "(cached) " >&6
7731 else
7732 if test -n "$LIPO"; then
7733 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7734 else
7735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7736 for as_dir in $PATH
7737 do
7738 IFS=$as_save_IFS
7739 test -z "$as_dir" && as_dir=.
7740 for ac_exec_ext in '' $ac_executable_extensions; do
7741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7742 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7744 break 2
7745 fi
7746 done
7747 done
7748 IFS=$as_save_IFS
7749
7750 fi
7751 fi
7752 LIPO=$ac_cv_prog_LIPO
7753 if test -n "$LIPO"; then
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7755 $as_echo "$LIPO" >&6; }
7756 else
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7758 $as_echo "no" >&6; }
7759 fi
7760
7761
7762 fi
7763 if test -z "$ac_cv_prog_LIPO"; then
7764 ac_ct_LIPO=$LIPO
7765 # Extract the first word of "lipo", so it can be a program name with args.
7766 set dummy lipo; ac_word=$2
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7768 $as_echo_n "checking for $ac_word... " >&6; }
7769 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7770 $as_echo_n "(cached) " >&6
7771 else
7772 if test -n "$ac_ct_LIPO"; then
7773 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7774 else
7775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7776 for as_dir in $PATH
7777 do
7778 IFS=$as_save_IFS
7779 test -z "$as_dir" && as_dir=.
7780 for ac_exec_ext in '' $ac_executable_extensions; do
7781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7782 ac_cv_prog_ac_ct_LIPO="lipo"
7783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7784 break 2
7785 fi
7786 done
7787 done
7788 IFS=$as_save_IFS
7789
7790 fi
7791 fi
7792 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7793 if test -n "$ac_ct_LIPO"; then
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7795 $as_echo "$ac_ct_LIPO" >&6; }
7796 else
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7798 $as_echo "no" >&6; }
7799 fi
7800
7801 if test "x$ac_ct_LIPO" = x; then
7802 LIPO=":"
7803 else
7804 case $cross_compiling:$ac_tool_warned in
7805 yes:)
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7807 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7808 ac_tool_warned=yes ;;
7809 esac
7810 LIPO=$ac_ct_LIPO
7811 fi
7812 else
7813 LIPO="$ac_cv_prog_LIPO"
7814 fi
7815
7816 if test -n "$ac_tool_prefix"; then
7817 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7818 set dummy ${ac_tool_prefix}otool; ac_word=$2
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7820 $as_echo_n "checking for $ac_word... " >&6; }
7821 if ${ac_cv_prog_OTOOL+:} false; then :
7822 $as_echo_n "(cached) " >&6
7823 else
7824 if test -n "$OTOOL"; then
7825 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7826 else
7827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7828 for as_dir in $PATH
7829 do
7830 IFS=$as_save_IFS
7831 test -z "$as_dir" && as_dir=.
7832 for ac_exec_ext in '' $ac_executable_extensions; do
7833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7834 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7836 break 2
7837 fi
7838 done
7839 done
7840 IFS=$as_save_IFS
7841
7842 fi
7843 fi
7844 OTOOL=$ac_cv_prog_OTOOL
7845 if test -n "$OTOOL"; then
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7847 $as_echo "$OTOOL" >&6; }
7848 else
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7850 $as_echo "no" >&6; }
7851 fi
7852
7853
7854 fi
7855 if test -z "$ac_cv_prog_OTOOL"; then
7856 ac_ct_OTOOL=$OTOOL
7857 # Extract the first word of "otool", so it can be a program name with args.
7858 set dummy otool; ac_word=$2
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7860 $as_echo_n "checking for $ac_word... " >&6; }
7861 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7862 $as_echo_n "(cached) " >&6
7863 else
7864 if test -n "$ac_ct_OTOOL"; then
7865 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7866 else
7867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7868 for as_dir in $PATH
7869 do
7870 IFS=$as_save_IFS
7871 test -z "$as_dir" && as_dir=.
7872 for ac_exec_ext in '' $ac_executable_extensions; do
7873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7874 ac_cv_prog_ac_ct_OTOOL="otool"
7875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7876 break 2
7877 fi
7878 done
7879 done
7880 IFS=$as_save_IFS
7881
7882 fi
7883 fi
7884 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7885 if test -n "$ac_ct_OTOOL"; then
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7887 $as_echo "$ac_ct_OTOOL" >&6; }
7888 else
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7890 $as_echo "no" >&6; }
7891 fi
7892
7893 if test "x$ac_ct_OTOOL" = x; then
7894 OTOOL=":"
7895 else
7896 case $cross_compiling:$ac_tool_warned in
7897 yes:)
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7899 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7900 ac_tool_warned=yes ;;
7901 esac
7902 OTOOL=$ac_ct_OTOOL
7903 fi
7904 else
7905 OTOOL="$ac_cv_prog_OTOOL"
7906 fi
7907
7908 if test -n "$ac_tool_prefix"; then
7909 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7910 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7912 $as_echo_n "checking for $ac_word... " >&6; }
7913 if ${ac_cv_prog_OTOOL64+:} false; then :
7914 $as_echo_n "(cached) " >&6
7915 else
7916 if test -n "$OTOOL64"; then
7917 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7918 else
7919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7920 for as_dir in $PATH
7921 do
7922 IFS=$as_save_IFS
7923 test -z "$as_dir" && as_dir=.
7924 for ac_exec_ext in '' $ac_executable_extensions; do
7925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7926 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7928 break 2
7929 fi
7930 done
7931 done
7932 IFS=$as_save_IFS
7933
7934 fi
7935 fi
7936 OTOOL64=$ac_cv_prog_OTOOL64
7937 if test -n "$OTOOL64"; then
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7939 $as_echo "$OTOOL64" >&6; }
7940 else
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7942 $as_echo "no" >&6; }
7943 fi
7944
7945
7946 fi
7947 if test -z "$ac_cv_prog_OTOOL64"; then
7948 ac_ct_OTOOL64=$OTOOL64
7949 # Extract the first word of "otool64", so it can be a program name with args.
7950 set dummy otool64; ac_word=$2
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7952 $as_echo_n "checking for $ac_word... " >&6; }
7953 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7954 $as_echo_n "(cached) " >&6
7955 else
7956 if test -n "$ac_ct_OTOOL64"; then
7957 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7958 else
7959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7960 for as_dir in $PATH
7961 do
7962 IFS=$as_save_IFS
7963 test -z "$as_dir" && as_dir=.
7964 for ac_exec_ext in '' $ac_executable_extensions; do
7965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7966 ac_cv_prog_ac_ct_OTOOL64="otool64"
7967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7968 break 2
7969 fi
7970 done
7971 done
7972 IFS=$as_save_IFS
7973
7974 fi
7975 fi
7976 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7977 if test -n "$ac_ct_OTOOL64"; then
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7979 $as_echo "$ac_ct_OTOOL64" >&6; }
7980 else
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7982 $as_echo "no" >&6; }
7983 fi
7984
7985 if test "x$ac_ct_OTOOL64" = x; then
7986 OTOOL64=":"
7987 else
7988 case $cross_compiling:$ac_tool_warned in
7989 yes:)
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7992 ac_tool_warned=yes ;;
7993 esac
7994 OTOOL64=$ac_ct_OTOOL64
7995 fi
7996 else
7997 OTOOL64="$ac_cv_prog_OTOOL64"
7998 fi
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8027 $as_echo_n "checking for -single_module linker flag... " >&6; }
8028 if ${lt_cv_apple_cc_single_mod+:} false; then :
8029 $as_echo_n "(cached) " >&6
8030 else
8031 lt_cv_apple_cc_single_mod=no
8032 if test -z "${LT_MULTI_MODULE}"; then
8033 # By default we will add the -single_module flag. You can override
8034 # by either setting the environment variable LT_MULTI_MODULE
8035 # non-empty at configure time, or by adding -multi_module to the
8036 # link flags.
8037 rm -rf libconftest.dylib*
8038 echo "int foo(void){return 1;}" > conftest.c
8039 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8040 -dynamiclib -Wl,-single_module conftest.c" >&5
8041 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8042 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8043 _lt_result=$?
8044 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8045 lt_cv_apple_cc_single_mod=yes
8046 else
8047 cat conftest.err >&5
8048 fi
8049 rm -rf libconftest.dylib*
8050 rm -f conftest.*
8051 fi
8052 fi
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8054 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8056 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8057 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8058 $as_echo_n "(cached) " >&6
8059 else
8060 lt_cv_ld_exported_symbols_list=no
8061 save_LDFLAGS=$LDFLAGS
8062 echo "_main" > conftest.sym
8063 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8065 /* end confdefs.h. */
8066
8067 int
8068 main ()
8069 {
8070
8071 ;
8072 return 0;
8073 }
8074 _ACEOF
8075 if ac_fn_c_try_link "$LINENO"; then :
8076 lt_cv_ld_exported_symbols_list=yes
8077 else
8078 lt_cv_ld_exported_symbols_list=no
8079 fi
8080 rm -f core conftest.err conftest.$ac_objext \
8081 conftest$ac_exeext conftest.$ac_ext
8082 LDFLAGS="$save_LDFLAGS"
8083
8084 fi
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8086 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8088 $as_echo_n "checking for -force_load linker flag... " >&6; }
8089 if ${lt_cv_ld_force_load+:} false; then :
8090 $as_echo_n "(cached) " >&6
8091 else
8092 lt_cv_ld_force_load=no
8093 cat > conftest.c << _LT_EOF
8094 int forced_loaded() { return 2;}
8095 _LT_EOF
8096 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8097 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8098 echo "$AR cru libconftest.a conftest.o" >&5
8099 $AR cru libconftest.a conftest.o 2>&5
8100 cat > conftest.c << _LT_EOF
8101 int main() { return 0;}
8102 _LT_EOF
8103 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8104 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8105 _lt_result=$?
8106 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8107 lt_cv_ld_force_load=yes
8108 else
8109 cat conftest.err >&5
8110 fi
8111 rm -f conftest.err libconftest.a conftest conftest.c
8112 rm -rf conftest.dSYM
8113
8114 fi
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8116 $as_echo "$lt_cv_ld_force_load" >&6; }
8117 case $host_os in
8118 rhapsody* | darwin1.[012])
8119 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8120 darwin1.*)
8121 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8122 darwin*) # darwin 5.x on
8123 # if running on 10.5 or later, the deployment target defaults
8124 # to the OS version, if on x86, and 10.4, the deployment
8125 # target defaults to 10.4. Don't you love it?
8126 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8127 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8128 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8129 10.[012][,.]*)
8130 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8131 10.*)
8132 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8133 esac
8134 ;;
8135 esac
8136 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8137 _lt_dar_single_mod='$single_module'
8138 fi
8139 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8140 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8141 else
8142 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8143 fi
8144 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8145 _lt_dsymutil='~$DSYMUTIL $lib || :'
8146 else
8147 _lt_dsymutil=
8148 fi
8149 ;;
8150 esac
8151
8152 for ac_header in dlfcn.h
8153 do :
8154 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8155 "
8156 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8157 cat >>confdefs.h <<_ACEOF
8158 #define HAVE_DLFCN_H 1
8159 _ACEOF
8160
8161 fi
8162
8163 done
8164
8165
8166
8167
8168
8169 # Set options
8170 enable_dlopen=yes
8171
8172
8173
8174
8175 enable_win32_dll=no
8176
8177
8178 # Check whether --enable-shared was given.
8179 if test "${enable_shared+set}" = set; then :
8180 enableval=$enable_shared; p=${PACKAGE-default}
8181 case $enableval in
8182 yes) enable_shared=yes ;;
8183 no) enable_shared=no ;;
8184 *)
8185 enable_shared=no
8186 # Look at the argument we got. We use all the common list separators.
8187 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8188 for pkg in $enableval; do
8189 IFS="$lt_save_ifs"
8190 if test "X$pkg" = "X$p"; then
8191 enable_shared=yes
8192 fi
8193 done
8194 IFS="$lt_save_ifs"
8195 ;;
8196 esac
8197 else
8198 enable_shared=yes
8199 fi
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209 # Check whether --enable-static was given.
8210 if test "${enable_static+set}" = set; then :
8211 enableval=$enable_static; p=${PACKAGE-default}
8212 case $enableval in
8213 yes) enable_static=yes ;;
8214 no) enable_static=no ;;
8215 *)
8216 enable_static=no
8217 # Look at the argument we got. We use all the common list separators.
8218 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8219 for pkg in $enableval; do
8220 IFS="$lt_save_ifs"
8221 if test "X$pkg" = "X$p"; then
8222 enable_static=yes
8223 fi
8224 done
8225 IFS="$lt_save_ifs"
8226 ;;
8227 esac
8228 else
8229 enable_static=yes
8230 fi
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241 # Check whether --with-pic was given.
8242 if test "${with_pic+set}" = set; then :
8243 withval=$with_pic; pic_mode="$withval"
8244 else
8245 pic_mode=default
8246 fi
8247
8248
8249 test -z "$pic_mode" && pic_mode=default
8250
8251
8252
8253
8254
8255
8256
8257 # Check whether --enable-fast-install was given.
8258 if test "${enable_fast_install+set}" = set; then :
8259 enableval=$enable_fast_install; p=${PACKAGE-default}
8260 case $enableval in
8261 yes) enable_fast_install=yes ;;
8262 no) enable_fast_install=no ;;
8263 *)
8264 enable_fast_install=no
8265 # Look at the argument we got. We use all the common list separators.
8266 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8267 for pkg in $enableval; do
8268 IFS="$lt_save_ifs"
8269 if test "X$pkg" = "X$p"; then
8270 enable_fast_install=yes
8271 fi
8272 done
8273 IFS="$lt_save_ifs"
8274 ;;
8275 esac
8276 else
8277 enable_fast_install=yes
8278 fi
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290 # This can be used to rebuild libtool when needed
8291 LIBTOOL_DEPS="$ltmain"
8292
8293 # Always use our own libtool.
8294 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321 test -z "$LN_S" && LN_S="ln -s"
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336 if test -n "${ZSH_VERSION+set}" ; then
8337 setopt NO_GLOB_SUBST
8338 fi
8339
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8341 $as_echo_n "checking for objdir... " >&6; }
8342 if ${lt_cv_objdir+:} false; then :
8343 $as_echo_n "(cached) " >&6
8344 else
8345 rm -f .libs 2>/dev/null
8346 mkdir .libs 2>/dev/null
8347 if test -d .libs; then
8348 lt_cv_objdir=.libs
8349 else
8350 # MS-DOS does not allow filenames that begin with a dot.
8351 lt_cv_objdir=_libs
8352 fi
8353 rmdir .libs 2>/dev/null
8354 fi
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8356 $as_echo "$lt_cv_objdir" >&6; }
8357 objdir=$lt_cv_objdir
8358
8359
8360
8361
8362
8363 cat >>confdefs.h <<_ACEOF
8364 #define LT_OBJDIR "$lt_cv_objdir/"
8365 _ACEOF
8366
8367
8368
8369
8370 case $host_os in
8371 aix3*)
8372 # AIX sometimes has problems with the GCC collect2 program. For some
8373 # reason, if we set the COLLECT_NAMES environment variable, the problems
8374 # vanish in a puff of smoke.
8375 if test "X${COLLECT_NAMES+set}" != Xset; then
8376 COLLECT_NAMES=
8377 export COLLECT_NAMES
8378 fi
8379 ;;
8380 esac
8381
8382 # Global variables:
8383 ofile=libtool
8384 can_build_shared=yes
8385
8386 # All known linkers require a `.a' archive for static linking (except MSVC,
8387 # which needs '.lib').
8388 libext=a
8389
8390 with_gnu_ld="$lt_cv_prog_gnu_ld"
8391
8392 old_CC="$CC"
8393 old_CFLAGS="$CFLAGS"
8394
8395 # Set sane defaults for various variables
8396 test -z "$CC" && CC=cc
8397 test -z "$LTCC" && LTCC=$CC
8398 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8399 test -z "$LD" && LD=ld
8400 test -z "$ac_objext" && ac_objext=o
8401
8402 for cc_temp in $compiler""; do
8403 case $cc_temp in
8404 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8405 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8406 \-*) ;;
8407 *) break;;
8408 esac
8409 done
8410 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8411
8412
8413 # Only perform the check for file, if the check method requires it
8414 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8415 case $deplibs_check_method in
8416 file_magic*)
8417 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8419 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8420 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8421 $as_echo_n "(cached) " >&6
8422 else
8423 case $MAGIC_CMD in
8424 [\\/*] | ?:[\\/]*)
8425 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8426 ;;
8427 *)
8428 lt_save_MAGIC_CMD="$MAGIC_CMD"
8429 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8430 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8431 for ac_dir in $ac_dummy; do
8432 IFS="$lt_save_ifs"
8433 test -z "$ac_dir" && ac_dir=.
8434 if test -f $ac_dir/${ac_tool_prefix}file; then
8435 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8436 if test -n "$file_magic_test_file"; then
8437 case $deplibs_check_method in
8438 "file_magic "*)
8439 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8440 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8441 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8442 $EGREP "$file_magic_regex" > /dev/null; then
8443 :
8444 else
8445 cat <<_LT_EOF 1>&2
8446
8447 *** Warning: the command libtool uses to detect shared libraries,
8448 *** $file_magic_cmd, produces output that libtool cannot recognize.
8449 *** The result is that libtool may fail to recognize shared libraries
8450 *** as such. This will affect the creation of libtool libraries that
8451 *** depend on shared libraries, but programs linked with such libtool
8452 *** libraries will work regardless of this problem. Nevertheless, you
8453 *** may want to report the problem to your system manager and/or to
8454 *** bug-libtool@gnu.org
8455
8456 _LT_EOF
8457 fi ;;
8458 esac
8459 fi
8460 break
8461 fi
8462 done
8463 IFS="$lt_save_ifs"
8464 MAGIC_CMD="$lt_save_MAGIC_CMD"
8465 ;;
8466 esac
8467 fi
8468
8469 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8470 if test -n "$MAGIC_CMD"; then
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8472 $as_echo "$MAGIC_CMD" >&6; }
8473 else
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8475 $as_echo "no" >&6; }
8476 fi
8477
8478
8479
8480
8481
8482 if test -z "$lt_cv_path_MAGIC_CMD"; then
8483 if test -n "$ac_tool_prefix"; then
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8485 $as_echo_n "checking for file... " >&6; }
8486 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8487 $as_echo_n "(cached) " >&6
8488 else
8489 case $MAGIC_CMD in
8490 [\\/*] | ?:[\\/]*)
8491 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8492 ;;
8493 *)
8494 lt_save_MAGIC_CMD="$MAGIC_CMD"
8495 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8496 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8497 for ac_dir in $ac_dummy; do
8498 IFS="$lt_save_ifs"
8499 test -z "$ac_dir" && ac_dir=.
8500 if test -f $ac_dir/file; then
8501 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8502 if test -n "$file_magic_test_file"; then
8503 case $deplibs_check_method in
8504 "file_magic "*)
8505 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8506 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8507 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8508 $EGREP "$file_magic_regex" > /dev/null; then
8509 :
8510 else
8511 cat <<_LT_EOF 1>&2
8512
8513 *** Warning: the command libtool uses to detect shared libraries,
8514 *** $file_magic_cmd, produces output that libtool cannot recognize.
8515 *** The result is that libtool may fail to recognize shared libraries
8516 *** as such. This will affect the creation of libtool libraries that
8517 *** depend on shared libraries, but programs linked with such libtool
8518 *** libraries will work regardless of this problem. Nevertheless, you
8519 *** may want to report the problem to your system manager and/or to
8520 *** bug-libtool@gnu.org
8521
8522 _LT_EOF
8523 fi ;;
8524 esac
8525 fi
8526 break
8527 fi
8528 done
8529 IFS="$lt_save_ifs"
8530 MAGIC_CMD="$lt_save_MAGIC_CMD"
8531 ;;
8532 esac
8533 fi
8534
8535 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8536 if test -n "$MAGIC_CMD"; then
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8538 $as_echo "$MAGIC_CMD" >&6; }
8539 else
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8541 $as_echo "no" >&6; }
8542 fi
8543
8544
8545 else
8546 MAGIC_CMD=:
8547 fi
8548 fi
8549
8550 fi
8551 ;;
8552 esac
8553
8554 # Use C for the default configuration in the libtool script
8555
8556 lt_save_CC="$CC"
8557 ac_ext=c
8558 ac_cpp='$CPP $CPPFLAGS'
8559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8562
8563
8564 # Source file extension for C test sources.
8565 ac_ext=c
8566
8567 # Object file extension for compiled C test sources.
8568 objext=o
8569 objext=$objext
8570
8571 # Code to be used in simple compile tests
8572 lt_simple_compile_test_code="int some_variable = 0;"
8573
8574 # Code to be used in simple link tests
8575 lt_simple_link_test_code='int main(){return(0);}'
8576
8577
8578
8579
8580
8581
8582
8583 # If no C compiler was specified, use CC.
8584 LTCC=${LTCC-"$CC"}
8585
8586 # If no C compiler flags were specified, use CFLAGS.
8587 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8588
8589 # Allow CC to be a program name with arguments.
8590 compiler=$CC
8591
8592 # Save the default compiler, since it gets overwritten when the other
8593 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8594 compiler_DEFAULT=$CC
8595
8596 # save warnings/boilerplate of simple test code
8597 ac_outfile=conftest.$ac_objext
8598 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8599 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8600 _lt_compiler_boilerplate=`cat conftest.err`
8601 $RM conftest*
8602
8603 ac_outfile=conftest.$ac_objext
8604 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8605 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8606 _lt_linker_boilerplate=`cat conftest.err`
8607 $RM -r conftest*
8608
8609
8610 ## CAVEAT EMPTOR:
8611 ## There is no encapsulation within the following macros, do not change
8612 ## the running order or otherwise move them around unless you know exactly
8613 ## what you are doing...
8614 if test -n "$compiler"; then
8615
8616 lt_prog_compiler_no_builtin_flag=
8617
8618 if test "$GCC" = yes; then
8619 case $cc_basename in
8620 nvcc*)
8621 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8622 *)
8623 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8624 esac
8625
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8627 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8628 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8629 $as_echo_n "(cached) " >&6
8630 else
8631 lt_cv_prog_compiler_rtti_exceptions=no
8632 ac_outfile=conftest.$ac_objext
8633 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8634 lt_compiler_flag="-fno-rtti -fno-exceptions"
8635 # Insert the option either (1) after the last *FLAGS variable, or
8636 # (2) before a word containing "conftest.", or (3) at the end.
8637 # Note that $ac_compile itself does not contain backslashes and begins
8638 # with a dollar sign (not a hyphen), so the echo should work correctly.
8639 # The option is referenced via a variable to avoid confusing sed.
8640 lt_compile=`echo "$ac_compile" | $SED \
8641 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8642 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8643 -e 's:$: $lt_compiler_flag:'`
8644 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8645 (eval "$lt_compile" 2>conftest.err)
8646 ac_status=$?
8647 cat conftest.err >&5
8648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649 if (exit $ac_status) && test -s "$ac_outfile"; then
8650 # The compiler can only warn and ignore the option if not recognized
8651 # So say no if there are warnings other than the usual output.
8652 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8653 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8654 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8655 lt_cv_prog_compiler_rtti_exceptions=yes
8656 fi
8657 fi
8658 $RM conftest*
8659
8660 fi
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8662 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8663
8664 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8665 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8666 else
8667 :
8668 fi
8669
8670 fi
8671
8672
8673
8674
8675
8676
8677 lt_prog_compiler_wl=
8678 lt_prog_compiler_pic=
8679 lt_prog_compiler_static=
8680
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8682 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8683
8684 if test "$GCC" = yes; then
8685 lt_prog_compiler_wl='-Wl,'
8686 lt_prog_compiler_static='-static'
8687
8688 case $host_os in
8689 aix*)
8690 # All AIX code is PIC.
8691 if test "$host_cpu" = ia64; then
8692 # AIX 5 now supports IA64 processor
8693 lt_prog_compiler_static='-Bstatic'
8694 fi
8695 lt_prog_compiler_pic='-fPIC'
8696 ;;
8697
8698 amigaos*)
8699 case $host_cpu in
8700 powerpc)
8701 # see comment about AmigaOS4 .so support
8702 lt_prog_compiler_pic='-fPIC'
8703 ;;
8704 m68k)
8705 # FIXME: we need at least 68020 code to build shared libraries, but
8706 # adding the `-m68020' flag to GCC prevents building anything better,
8707 # like `-m68040'.
8708 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8709 ;;
8710 esac
8711 ;;
8712
8713 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8714 # PIC is the default for these OSes.
8715 ;;
8716
8717 mingw* | cygwin* | pw32* | os2* | cegcc*)
8718 # This hack is so that the source file can tell whether it is being
8719 # built for inclusion in a dll (and should export symbols for example).
8720 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8721 # (--disable-auto-import) libraries
8722 lt_prog_compiler_pic='-DDLL_EXPORT'
8723 ;;
8724
8725 darwin* | rhapsody*)
8726 # PIC is the default on this platform
8727 # Common symbols not allowed in MH_DYLIB files
8728 lt_prog_compiler_pic='-fno-common'
8729 ;;
8730
8731 haiku*)
8732 # PIC is the default for Haiku.
8733 # The "-static" flag exists, but is broken.
8734 lt_prog_compiler_static=
8735 ;;
8736
8737 hpux*)
8738 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8739 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8740 # sets the default TLS model and affects inlining.
8741 case $host_cpu in
8742 hppa*64*)
8743 # +Z the default
8744 ;;
8745 *)
8746 lt_prog_compiler_pic='-fPIC'
8747 ;;
8748 esac
8749 ;;
8750
8751 interix[3-9]*)
8752 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8753 # Instead, we relocate shared libraries at runtime.
8754 ;;
8755
8756 msdosdjgpp*)
8757 # Just because we use GCC doesn't mean we suddenly get shared libraries
8758 # on systems that don't support them.
8759 lt_prog_compiler_can_build_shared=no
8760 enable_shared=no
8761 ;;
8762
8763 *nto* | *qnx*)
8764 # QNX uses GNU C++, but need to define -shared option too, otherwise
8765 # it will coredump.
8766 lt_prog_compiler_pic='-fPIC -shared'
8767 ;;
8768
8769 sysv4*MP*)
8770 if test -d /usr/nec; then
8771 lt_prog_compiler_pic=-Kconform_pic
8772 fi
8773 ;;
8774
8775 *)
8776 lt_prog_compiler_pic='-fPIC'
8777 ;;
8778 esac
8779
8780 case $cc_basename in
8781 nvcc*) # Cuda Compiler Driver 2.2
8782 lt_prog_compiler_wl='-Xlinker '
8783 lt_prog_compiler_pic='-Xcompiler -fPIC'
8784 ;;
8785 esac
8786 else
8787 # PORTME Check for flag to pass linker flags through the system compiler.
8788 case $host_os in
8789 aix*)
8790 lt_prog_compiler_wl='-Wl,'
8791 if test "$host_cpu" = ia64; then
8792 # AIX 5 now supports IA64 processor
8793 lt_prog_compiler_static='-Bstatic'
8794 else
8795 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8796 fi
8797 ;;
8798
8799 mingw* | cygwin* | pw32* | os2* | cegcc*)
8800 # This hack is so that the source file can tell whether it is being
8801 # built for inclusion in a dll (and should export symbols for example).
8802 lt_prog_compiler_pic='-DDLL_EXPORT'
8803 ;;
8804
8805 hpux9* | hpux10* | hpux11*)
8806 lt_prog_compiler_wl='-Wl,'
8807 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8808 # not for PA HP-UX.
8809 case $host_cpu in
8810 hppa*64*|ia64*)
8811 # +Z the default
8812 ;;
8813 *)
8814 lt_prog_compiler_pic='+Z'
8815 ;;
8816 esac
8817 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8818 lt_prog_compiler_static='${wl}-a ${wl}archive'
8819 ;;
8820
8821 irix5* | irix6* | nonstopux*)
8822 lt_prog_compiler_wl='-Wl,'
8823 # PIC (with -KPIC) is the default.
8824 lt_prog_compiler_static='-non_shared'
8825 ;;
8826
8827 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8828 case $cc_basename in
8829 # old Intel for x86_64 which still supported -KPIC.
8830 ecc*)
8831 lt_prog_compiler_wl='-Wl,'
8832 lt_prog_compiler_pic='-KPIC'
8833 lt_prog_compiler_static='-static'
8834 ;;
8835 # icc used to be incompatible with GCC.
8836 # ICC 10 doesn't accept -KPIC any more.
8837 icc* | ifort*)
8838 lt_prog_compiler_wl='-Wl,'
8839 lt_prog_compiler_pic='-fPIC'
8840 lt_prog_compiler_static='-static'
8841 ;;
8842 # Lahey Fortran 8.1.
8843 lf95*)
8844 lt_prog_compiler_wl='-Wl,'
8845 lt_prog_compiler_pic='--shared'
8846 lt_prog_compiler_static='--static'
8847 ;;
8848 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8849 # Portland Group compilers (*not* the Pentium gcc compiler,
8850 # which looks to be a dead project)
8851 lt_prog_compiler_wl='-Wl,'
8852 lt_prog_compiler_pic='-fpic'
8853 lt_prog_compiler_static='-Bstatic'
8854 ;;
8855 ccc*)
8856 lt_prog_compiler_wl='-Wl,'
8857 # All Alpha code is PIC.
8858 lt_prog_compiler_static='-non_shared'
8859 ;;
8860 xl* | bgxl* | bgf* | mpixl*)
8861 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8862 lt_prog_compiler_wl='-Wl,'
8863 lt_prog_compiler_pic='-qpic'
8864 lt_prog_compiler_static='-qstaticlink'
8865 ;;
8866 *)
8867 case `$CC -V 2>&1 | sed 5q` in
8868 *Sun\ F* | *Sun*Fortran*)
8869 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8870 lt_prog_compiler_pic='-KPIC'
8871 lt_prog_compiler_static='-Bstatic'
8872 lt_prog_compiler_wl=''
8873 ;;
8874 *Sun\ C*)
8875 # Sun C 5.9
8876 lt_prog_compiler_pic='-KPIC'
8877 lt_prog_compiler_static='-Bstatic'
8878 lt_prog_compiler_wl='-Wl,'
8879 ;;
8880 esac
8881 ;;
8882 esac
8883 ;;
8884
8885 newsos6)
8886 lt_prog_compiler_pic='-KPIC'
8887 lt_prog_compiler_static='-Bstatic'
8888 ;;
8889
8890 *nto* | *qnx*)
8891 # QNX uses GNU C++, but need to define -shared option too, otherwise
8892 # it will coredump.
8893 lt_prog_compiler_pic='-fPIC -shared'
8894 ;;
8895
8896 osf3* | osf4* | osf5*)
8897 lt_prog_compiler_wl='-Wl,'
8898 # All OSF/1 code is PIC.
8899 lt_prog_compiler_static='-non_shared'
8900 ;;
8901
8902 rdos*)
8903 lt_prog_compiler_static='-non_shared'
8904 ;;
8905
8906 solaris*)
8907 lt_prog_compiler_pic='-KPIC'
8908 lt_prog_compiler_static='-Bstatic'
8909 case $cc_basename in
8910 f77* | f90* | f95*)
8911 lt_prog_compiler_wl='-Qoption ld ';;
8912 *)
8913 lt_prog_compiler_wl='-Wl,';;
8914 esac
8915 ;;
8916
8917 sunos4*)
8918 lt_prog_compiler_wl='-Qoption ld '
8919 lt_prog_compiler_pic='-PIC'
8920 lt_prog_compiler_static='-Bstatic'
8921 ;;
8922
8923 sysv4 | sysv4.2uw2* | sysv4.3*)
8924 lt_prog_compiler_wl='-Wl,'
8925 lt_prog_compiler_pic='-KPIC'
8926 lt_prog_compiler_static='-Bstatic'
8927 ;;
8928
8929 sysv4*MP*)
8930 if test -d /usr/nec ;then
8931 lt_prog_compiler_pic='-Kconform_pic'
8932 lt_prog_compiler_static='-Bstatic'
8933 fi
8934 ;;
8935
8936 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8937 lt_prog_compiler_wl='-Wl,'
8938 lt_prog_compiler_pic='-KPIC'
8939 lt_prog_compiler_static='-Bstatic'
8940 ;;
8941
8942 unicos*)
8943 lt_prog_compiler_wl='-Wl,'
8944 lt_prog_compiler_can_build_shared=no
8945 ;;
8946
8947 uts4*)
8948 lt_prog_compiler_pic='-pic'
8949 lt_prog_compiler_static='-Bstatic'
8950 ;;
8951
8952 *)
8953 lt_prog_compiler_can_build_shared=no
8954 ;;
8955 esac
8956 fi
8957
8958 case $host_os in
8959 # For platforms which do not support PIC, -DPIC is meaningless:
8960 *djgpp*)
8961 lt_prog_compiler_pic=
8962 ;;
8963 *)
8964 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8965 ;;
8966 esac
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8968 $as_echo "$lt_prog_compiler_pic" >&6; }
8969
8970
8971
8972
8973
8974
8975 #
8976 # Check to make sure the PIC flag actually works.
8977 #
8978 if test -n "$lt_prog_compiler_pic"; then
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8980 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8981 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8982 $as_echo_n "(cached) " >&6
8983 else
8984 lt_cv_prog_compiler_pic_works=no
8985 ac_outfile=conftest.$ac_objext
8986 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8987 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8988 # Insert the option either (1) after the last *FLAGS variable, or
8989 # (2) before a word containing "conftest.", or (3) at the end.
8990 # Note that $ac_compile itself does not contain backslashes and begins
8991 # with a dollar sign (not a hyphen), so the echo should work correctly.
8992 # The option is referenced via a variable to avoid confusing sed.
8993 lt_compile=`echo "$ac_compile" | $SED \
8994 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8995 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8996 -e 's:$: $lt_compiler_flag:'`
8997 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8998 (eval "$lt_compile" 2>conftest.err)
8999 ac_status=$?
9000 cat conftest.err >&5
9001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002 if (exit $ac_status) && test -s "$ac_outfile"; then
9003 # The compiler can only warn and ignore the option if not recognized
9004 # So say no if there are warnings other than the usual output.
9005 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9006 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9007 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9008 lt_cv_prog_compiler_pic_works=yes
9009 fi
9010 fi
9011 $RM conftest*
9012
9013 fi
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9015 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9016
9017 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9018 case $lt_prog_compiler_pic in
9019 "" | " "*) ;;
9020 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9021 esac
9022 else
9023 lt_prog_compiler_pic=
9024 lt_prog_compiler_can_build_shared=no
9025 fi
9026
9027 fi
9028
9029
9030
9031
9032
9033
9034 #
9035 # Check to make sure the static flag actually works.
9036 #
9037 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9039 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9040 if ${lt_cv_prog_compiler_static_works+:} false; then :
9041 $as_echo_n "(cached) " >&6
9042 else
9043 lt_cv_prog_compiler_static_works=no
9044 save_LDFLAGS="$LDFLAGS"
9045 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9046 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9047 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9048 # The linker can only warn and ignore the option if not recognized
9049 # So say no if there are warnings
9050 if test -s conftest.err; then
9051 # Append any errors to the config.log.
9052 cat conftest.err 1>&5
9053 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9054 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9055 if diff conftest.exp conftest.er2 >/dev/null; then
9056 lt_cv_prog_compiler_static_works=yes
9057 fi
9058 else
9059 lt_cv_prog_compiler_static_works=yes
9060 fi
9061 fi
9062 $RM -r conftest*
9063 LDFLAGS="$save_LDFLAGS"
9064
9065 fi
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9067 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9068
9069 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9070 :
9071 else
9072 lt_prog_compiler_static=
9073 fi
9074
9075
9076
9077
9078
9079
9080
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9082 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9083 if ${lt_cv_prog_compiler_c_o+:} false; then :
9084 $as_echo_n "(cached) " >&6
9085 else
9086 lt_cv_prog_compiler_c_o=no
9087 $RM -r conftest 2>/dev/null
9088 mkdir conftest
9089 cd conftest
9090 mkdir out
9091 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9092
9093 lt_compiler_flag="-o out/conftest2.$ac_objext"
9094 # Insert the option either (1) after the last *FLAGS variable, or
9095 # (2) before a word containing "conftest.", or (3) at the end.
9096 # Note that $ac_compile itself does not contain backslashes and begins
9097 # with a dollar sign (not a hyphen), so the echo should work correctly.
9098 lt_compile=`echo "$ac_compile" | $SED \
9099 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9100 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9101 -e 's:$: $lt_compiler_flag:'`
9102 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9103 (eval "$lt_compile" 2>out/conftest.err)
9104 ac_status=$?
9105 cat out/conftest.err >&5
9106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9108 then
9109 # The compiler can only warn and ignore the option if not recognized
9110 # So say no if there are warnings
9111 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9112 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9113 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9114 lt_cv_prog_compiler_c_o=yes
9115 fi
9116 fi
9117 chmod u+w . 2>&5
9118 $RM conftest*
9119 # SGI C++ compiler will create directory out/ii_files/ for
9120 # template instantiation
9121 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9122 $RM out/* && rmdir out
9123 cd ..
9124 $RM -r conftest
9125 $RM conftest*
9126
9127 fi
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9129 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9130
9131
9132
9133
9134
9135
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9137 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9138 if ${lt_cv_prog_compiler_c_o+:} false; then :
9139 $as_echo_n "(cached) " >&6
9140 else
9141 lt_cv_prog_compiler_c_o=no
9142 $RM -r conftest 2>/dev/null
9143 mkdir conftest
9144 cd conftest
9145 mkdir out
9146 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9147
9148 lt_compiler_flag="-o out/conftest2.$ac_objext"
9149 # Insert the option either (1) after the last *FLAGS variable, or
9150 # (2) before a word containing "conftest.", or (3) at the end.
9151 # Note that $ac_compile itself does not contain backslashes and begins
9152 # with a dollar sign (not a hyphen), so the echo should work correctly.
9153 lt_compile=`echo "$ac_compile" | $SED \
9154 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9155 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9156 -e 's:$: $lt_compiler_flag:'`
9157 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9158 (eval "$lt_compile" 2>out/conftest.err)
9159 ac_status=$?
9160 cat out/conftest.err >&5
9161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9163 then
9164 # The compiler can only warn and ignore the option if not recognized
9165 # So say no if there are warnings
9166 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9167 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9168 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9169 lt_cv_prog_compiler_c_o=yes
9170 fi
9171 fi
9172 chmod u+w . 2>&5
9173 $RM conftest*
9174 # SGI C++ compiler will create directory out/ii_files/ for
9175 # template instantiation
9176 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9177 $RM out/* && rmdir out
9178 cd ..
9179 $RM -r conftest
9180 $RM conftest*
9181
9182 fi
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9184 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9185
9186
9187
9188
9189 hard_links="nottested"
9190 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9191 # do not overwrite the value of need_locks provided by the user
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9193 $as_echo_n "checking if we can lock with hard links... " >&6; }
9194 hard_links=yes
9195 $RM conftest*
9196 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9197 touch conftest.a
9198 ln conftest.a conftest.b 2>&5 || hard_links=no
9199 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9201 $as_echo "$hard_links" >&6; }
9202 if test "$hard_links" = no; then
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9204 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9205 need_locks=warn
9206 fi
9207 else
9208 need_locks=no
9209 fi
9210
9211
9212
9213
9214
9215
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9217 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9218
9219 runpath_var=
9220 allow_undefined_flag=
9221 always_export_symbols=no
9222 archive_cmds=
9223 archive_expsym_cmds=
9224 compiler_needs_object=no
9225 enable_shared_with_static_runtimes=no
9226 export_dynamic_flag_spec=
9227 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9228 hardcode_automatic=no
9229 hardcode_direct=no
9230 hardcode_direct_absolute=no
9231 hardcode_libdir_flag_spec=
9232 hardcode_libdir_flag_spec_ld=
9233 hardcode_libdir_separator=
9234 hardcode_minus_L=no
9235 hardcode_shlibpath_var=unsupported
9236 inherit_rpath=no
9237 link_all_deplibs=unknown
9238 module_cmds=
9239 module_expsym_cmds=
9240 old_archive_from_new_cmds=
9241 old_archive_from_expsyms_cmds=
9242 thread_safe_flag_spec=
9243 whole_archive_flag_spec=
9244 # include_expsyms should be a list of space-separated symbols to be *always*
9245 # included in the symbol list
9246 include_expsyms=
9247 # exclude_expsyms can be an extended regexp of symbols to exclude
9248 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9249 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9250 # as well as any symbol that contains `d'.
9251 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9252 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9253 # platforms (ab)use it in PIC code, but their linkers get confused if
9254 # the symbol is explicitly referenced. Since portable code cannot
9255 # rely on this symbol name, it's probably fine to never include it in
9256 # preloaded symbol tables.
9257 # Exclude shared library initialization/finalization symbols.
9258 extract_expsyms_cmds=
9259
9260 case $host_os in
9261 cygwin* | mingw* | pw32* | cegcc*)
9262 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9263 # When not using gcc, we currently assume that we are using
9264 # Microsoft Visual C++.
9265 if test "$GCC" != yes; then
9266 with_gnu_ld=no
9267 fi
9268 ;;
9269 interix*)
9270 # we just hope/assume this is gcc and not c89 (= MSVC++)
9271 with_gnu_ld=yes
9272 ;;
9273 openbsd*)
9274 with_gnu_ld=no
9275 ;;
9276 esac
9277
9278 ld_shlibs=yes
9279
9280 # On some targets, GNU ld is compatible enough with the native linker
9281 # that we're better off using the native interface for both.
9282 lt_use_gnu_ld_interface=no
9283 if test "$with_gnu_ld" = yes; then
9284 case $host_os in
9285 aix*)
9286 # The AIX port of GNU ld has always aspired to compatibility
9287 # with the native linker. However, as the warning in the GNU ld
9288 # block says, versions before 2.19.5* couldn't really create working
9289 # shared libraries, regardless of the interface used.
9290 case `$LD -v 2>&1` in
9291 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9292 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9293 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9294 *)
9295 lt_use_gnu_ld_interface=yes
9296 ;;
9297 esac
9298 ;;
9299 *)
9300 lt_use_gnu_ld_interface=yes
9301 ;;
9302 esac
9303 fi
9304
9305 if test "$lt_use_gnu_ld_interface" = yes; then
9306 # If archive_cmds runs LD, not CC, wlarc should be empty
9307 wlarc='${wl}'
9308
9309 # Set some defaults for GNU ld with shared library support. These
9310 # are reset later if shared libraries are not supported. Putting them
9311 # here allows them to be overridden if necessary.
9312 runpath_var=LD_RUN_PATH
9313 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9314 export_dynamic_flag_spec='${wl}--export-dynamic'
9315 # ancient GNU ld didn't support --whole-archive et. al.
9316 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9317 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9318 else
9319 whole_archive_flag_spec=
9320 fi
9321 supports_anon_versioning=no
9322 case `$LD -v 2>&1` in
9323 *GNU\ gold*) supports_anon_versioning=yes ;;
9324 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9325 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9326 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9327 *\ 2.11.*) ;; # other 2.11 versions
9328 *) supports_anon_versioning=yes ;;
9329 esac
9330
9331 # See if GNU ld supports shared libraries.
9332 case $host_os in
9333 aix[3-9]*)
9334 # On AIX/PPC, the GNU linker is very broken
9335 if test "$host_cpu" != ia64; then
9336 ld_shlibs=no
9337 cat <<_LT_EOF 1>&2
9338
9339 *** Warning: the GNU linker, at least up to release 2.19, is reported
9340 *** to be unable to reliably create shared libraries on AIX.
9341 *** Therefore, libtool is disabling shared libraries support. If you
9342 *** really care for shared libraries, you may want to install binutils
9343 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9344 *** You will then need to restart the configuration process.
9345
9346 _LT_EOF
9347 fi
9348 ;;
9349
9350 amigaos*)
9351 case $host_cpu in
9352 powerpc)
9353 # see comment about AmigaOS4 .so support
9354 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9355 archive_expsym_cmds=''
9356 ;;
9357 m68k)
9358 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)'
9359 hardcode_libdir_flag_spec='-L$libdir'
9360 hardcode_minus_L=yes
9361 ;;
9362 esac
9363 ;;
9364
9365 beos*)
9366 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9367 allow_undefined_flag=unsupported
9368 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9369 # support --undefined. This deserves some investigation. FIXME
9370 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9371 else
9372 ld_shlibs=no
9373 fi
9374 ;;
9375
9376 cygwin* | mingw* | pw32* | cegcc*)
9377 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9378 # as there is no search path for DLLs.
9379 hardcode_libdir_flag_spec='-L$libdir'
9380 export_dynamic_flag_spec='${wl}--export-all-symbols'
9381 allow_undefined_flag=unsupported
9382 always_export_symbols=no
9383 enable_shared_with_static_runtimes=yes
9384 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9385
9386 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9387 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9388 # If the export-symbols file already is a .def file (1st line
9389 # is EXPORTS), use it as is; otherwise, prepend...
9390 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9391 cp $export_symbols $output_objdir/$soname.def;
9392 else
9393 echo EXPORTS > $output_objdir/$soname.def;
9394 cat $export_symbols >> $output_objdir/$soname.def;
9395 fi~
9396 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9397 else
9398 ld_shlibs=no
9399 fi
9400 ;;
9401
9402 haiku*)
9403 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9404 link_all_deplibs=yes
9405 ;;
9406
9407 interix[3-9]*)
9408 hardcode_direct=no
9409 hardcode_shlibpath_var=no
9410 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9411 export_dynamic_flag_spec='${wl}-E'
9412 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9413 # Instead, shared libraries are loaded at an image base (0x10000000 by
9414 # default) and relocated if they conflict, which is a slow very memory
9415 # consuming and fragmenting process. To avoid this, we pick a random,
9416 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9417 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9418 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9419 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'
9420 ;;
9421
9422 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9423 tmp_diet=no
9424 if test "$host_os" = linux-dietlibc; then
9425 case $cc_basename in
9426 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9427 esac
9428 fi
9429 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9430 && test "$tmp_diet" = no
9431 then
9432 tmp_addflag=' $pic_flag'
9433 tmp_sharedflag='-shared'
9434 case $cc_basename,$host_cpu in
9435 pgcc*) # Portland Group C compiler
9436 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'
9437 tmp_addflag=' $pic_flag'
9438 ;;
9439 pgf77* | pgf90* | pgf95* | pgfortran*)
9440 # Portland Group f77 and f90 compilers
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 -Mnomain' ;;
9443 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9444 tmp_addflag=' -i_dynamic' ;;
9445 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9446 tmp_addflag=' -i_dynamic -nofor_main' ;;
9447 ifc* | ifort*) # Intel Fortran compiler
9448 tmp_addflag=' -nofor_main' ;;
9449 lf95*) # Lahey Fortran 8.1
9450 whole_archive_flag_spec=
9451 tmp_sharedflag='--shared' ;;
9452 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9453 tmp_sharedflag='-qmkshrobj'
9454 tmp_addflag= ;;
9455 nvcc*) # Cuda Compiler Driver 2.2
9456 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'
9457 compiler_needs_object=yes
9458 ;;
9459 esac
9460 case `$CC -V 2>&1 | sed 5q` in
9461 *Sun\ C*) # Sun C 5.9
9462 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'
9463 compiler_needs_object=yes
9464 tmp_sharedflag='-G' ;;
9465 *Sun\ F*) # Sun Fortran 8.3
9466 tmp_sharedflag='-G' ;;
9467 esac
9468 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9469
9470 if test "x$supports_anon_versioning" = xyes; then
9471 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9472 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9473 echo "local: *; };" >> $output_objdir/$libname.ver~
9474 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9475 fi
9476
9477 case $cc_basename in
9478 xlf* | bgf* | bgxlf* | mpixlf*)
9479 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9480 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9481 hardcode_libdir_flag_spec=
9482 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9483 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9484 if test "x$supports_anon_versioning" = xyes; then
9485 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9486 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9487 echo "local: *; };" >> $output_objdir/$libname.ver~
9488 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9489 fi
9490 ;;
9491 esac
9492 else
9493 ld_shlibs=no
9494 fi
9495 ;;
9496
9497 netbsd*)
9498 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9499 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9500 wlarc=
9501 else
9502 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9503 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9504 fi
9505 ;;
9506
9507 solaris*)
9508 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9509 ld_shlibs=no
9510 cat <<_LT_EOF 1>&2
9511
9512 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9513 *** create shared libraries on Solaris systems. Therefore, libtool
9514 *** is disabling shared libraries support. We urge you to upgrade GNU
9515 *** binutils to release 2.9.1 or newer. Another option is to modify
9516 *** your PATH or compiler configuration so that the native linker is
9517 *** used, and then restart.
9518
9519 _LT_EOF
9520 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9521 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9522 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9523 else
9524 ld_shlibs=no
9525 fi
9526 ;;
9527
9528 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9529 case `$LD -v 2>&1` in
9530 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9531 ld_shlibs=no
9532 cat <<_LT_EOF 1>&2
9533
9534 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9535 *** reliably create shared libraries on SCO systems. Therefore, libtool
9536 *** is disabling shared libraries support. We urge you to upgrade GNU
9537 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9538 *** your PATH or compiler configuration so that the native linker is
9539 *** used, and then restart.
9540
9541 _LT_EOF
9542 ;;
9543 *)
9544 # For security reasons, it is highly recommended that you always
9545 # use absolute paths for naming shared libraries, and exclude the
9546 # DT_RUNPATH tag from executables and libraries. But doing so
9547 # requires that you compile everything twice, which is a pain.
9548 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9549 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9550 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9551 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9552 else
9553 ld_shlibs=no
9554 fi
9555 ;;
9556 esac
9557 ;;
9558
9559 sunos4*)
9560 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9561 wlarc=
9562 hardcode_direct=yes
9563 hardcode_shlibpath_var=no
9564 ;;
9565
9566 *)
9567 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9568 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9569 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9570 else
9571 ld_shlibs=no
9572 fi
9573 ;;
9574 esac
9575
9576 if test "$ld_shlibs" = no; then
9577 runpath_var=
9578 hardcode_libdir_flag_spec=
9579 export_dynamic_flag_spec=
9580 whole_archive_flag_spec=
9581 fi
9582 else
9583 # PORTME fill in a description of your system's linker (not GNU ld)
9584 case $host_os in
9585 aix3*)
9586 allow_undefined_flag=unsupported
9587 always_export_symbols=yes
9588 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'
9589 # Note: this linker hardcodes the directories in LIBPATH if there
9590 # are no directories specified by -L.
9591 hardcode_minus_L=yes
9592 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9593 # Neither direct hardcoding nor static linking is supported with a
9594 # broken collect2.
9595 hardcode_direct=unsupported
9596 fi
9597 ;;
9598
9599 aix[4-9]*)
9600 if test "$host_cpu" = ia64; then
9601 # On IA64, the linker does run time linking by default, so we don't
9602 # have to do anything special.
9603 aix_use_runtimelinking=no
9604 exp_sym_flag='-Bexport'
9605 no_entry_flag=""
9606 else
9607 # If we're using GNU nm, then we don't want the "-C" option.
9608 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9609 # Also, AIX nm treats weak defined symbols like other global
9610 # defined symbols, whereas GNU nm marks them as "W".
9611 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9612 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'
9613 else
9614 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'
9615 fi
9616 aix_use_runtimelinking=no
9617
9618 # Test if we are trying to use run time linking or normal
9619 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9620 # need to do runtime linking.
9621 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9622 for ld_flag in $LDFLAGS; do
9623 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9624 aix_use_runtimelinking=yes
9625 break
9626 fi
9627 done
9628 ;;
9629 esac
9630
9631 exp_sym_flag='-bexport'
9632 no_entry_flag='-bnoentry'
9633 fi
9634
9635 # When large executables or shared objects are built, AIX ld can
9636 # have problems creating the table of contents. If linking a library
9637 # or program results in "error TOC overflow" add -mminimal-toc to
9638 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9639 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9640
9641 archive_cmds=''
9642 hardcode_direct=yes
9643 hardcode_direct_absolute=yes
9644 hardcode_libdir_separator=':'
9645 link_all_deplibs=yes
9646 file_list_spec='${wl}-f,'
9647
9648 if test "$GCC" = yes; then
9649 case $host_os in aix4.[012]|aix4.[012].*)
9650 # We only want to do this on AIX 4.2 and lower, the check
9651 # below for broken collect2 doesn't work under 4.3+
9652 collect2name=`${CC} -print-prog-name=collect2`
9653 if test -f "$collect2name" &&
9654 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9655 then
9656 # We have reworked collect2
9657 :
9658 else
9659 # We have old collect2
9660 hardcode_direct=unsupported
9661 # It fails to find uninstalled libraries when the uninstalled
9662 # path is not listed in the libpath. Setting hardcode_minus_L
9663 # to unsupported forces relinking
9664 hardcode_minus_L=yes
9665 hardcode_libdir_flag_spec='-L$libdir'
9666 hardcode_libdir_separator=
9667 fi
9668 ;;
9669 esac
9670 shared_flag='-shared'
9671 if test "$aix_use_runtimelinking" = yes; then
9672 shared_flag="$shared_flag "'${wl}-G'
9673 fi
9674 else
9675 # not using gcc
9676 if test "$host_cpu" = ia64; then
9677 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9678 # chokes on -Wl,-G. The following line is correct:
9679 shared_flag='-G'
9680 else
9681 if test "$aix_use_runtimelinking" = yes; then
9682 shared_flag='${wl}-G'
9683 else
9684 shared_flag='${wl}-bM:SRE'
9685 fi
9686 fi
9687 fi
9688
9689 export_dynamic_flag_spec='${wl}-bexpall'
9690 # It seems that -bexpall does not export symbols beginning with
9691 # underscore (_), so it is better to generate a list of symbols to export.
9692 always_export_symbols=yes
9693 if test "$aix_use_runtimelinking" = yes; then
9694 # Warning - without using the other runtime loading flags (-brtl),
9695 # -berok will link without error, but may produce a broken library.
9696 allow_undefined_flag='-berok'
9697 # Determine the default libpath from the value encoded in an
9698 # empty executable.
9699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9700 /* end confdefs.h. */
9701
9702 int
9703 main ()
9704 {
9705
9706 ;
9707 return 0;
9708 }
9709 _ACEOF
9710 if ac_fn_c_try_link "$LINENO"; then :
9711
9712 lt_aix_libpath_sed='
9713 /Import File Strings/,/^$/ {
9714 /^0/ {
9715 s/^0 *\(.*\)$/\1/
9716 p
9717 }
9718 }'
9719 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9720 # Check for a 64-bit object if we didn't find anything.
9721 if test -z "$aix_libpath"; then
9722 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9723 fi
9724 fi
9725 rm -f core conftest.err conftest.$ac_objext \
9726 conftest$ac_exeext conftest.$ac_ext
9727 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9728
9729 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9730 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"
9731 else
9732 if test "$host_cpu" = ia64; then
9733 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9734 allow_undefined_flag="-z nodefs"
9735 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"
9736 else
9737 # Determine the default libpath from the value encoded in an
9738 # empty executable.
9739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9740 /* end confdefs.h. */
9741
9742 int
9743 main ()
9744 {
9745
9746 ;
9747 return 0;
9748 }
9749 _ACEOF
9750 if ac_fn_c_try_link "$LINENO"; then :
9751
9752 lt_aix_libpath_sed='
9753 /Import File Strings/,/^$/ {
9754 /^0/ {
9755 s/^0 *\(.*\)$/\1/
9756 p
9757 }
9758 }'
9759 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9760 # Check for a 64-bit object if we didn't find anything.
9761 if test -z "$aix_libpath"; then
9762 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9763 fi
9764 fi
9765 rm -f core conftest.err conftest.$ac_objext \
9766 conftest$ac_exeext conftest.$ac_ext
9767 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9768
9769 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9770 # Warning - without using the other run time loading flags,
9771 # -berok will link without error, but may produce a broken library.
9772 no_undefined_flag=' ${wl}-bernotok'
9773 allow_undefined_flag=' ${wl}-berok'
9774 if test "$with_gnu_ld" = yes; then
9775 # We only use this code for GNU lds that support --whole-archive.
9776 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9777 else
9778 # Exported symbols can be pulled into shared objects from archives
9779 whole_archive_flag_spec='$convenience'
9780 fi
9781 archive_cmds_need_lc=yes
9782 # This is similar to how AIX traditionally builds its shared libraries.
9783 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'
9784 fi
9785 fi
9786 ;;
9787
9788 amigaos*)
9789 case $host_cpu in
9790 powerpc)
9791 # see comment about AmigaOS4 .so support
9792 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9793 archive_expsym_cmds=''
9794 ;;
9795 m68k)
9796 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)'
9797 hardcode_libdir_flag_spec='-L$libdir'
9798 hardcode_minus_L=yes
9799 ;;
9800 esac
9801 ;;
9802
9803 bsdi[45]*)
9804 export_dynamic_flag_spec=-rdynamic
9805 ;;
9806
9807 cygwin* | mingw* | pw32* | cegcc*)
9808 # When not using gcc, we currently assume that we are using
9809 # Microsoft Visual C++.
9810 # hardcode_libdir_flag_spec is actually meaningless, as there is
9811 # no search path for DLLs.
9812 hardcode_libdir_flag_spec=' '
9813 allow_undefined_flag=unsupported
9814 # Tell ltmain to make .lib files, not .a files.
9815 libext=lib
9816 # Tell ltmain to make .dll files, not .so files.
9817 shrext_cmds=".dll"
9818 # FIXME: Setting linknames here is a bad hack.
9819 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9820 # The linker will automatically build a .lib file if we build a DLL.
9821 old_archive_from_new_cmds='true'
9822 # FIXME: Should let the user specify the lib program.
9823 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9824 fix_srcfile_path='`cygpath -w "$srcfile"`'
9825 enable_shared_with_static_runtimes=yes
9826 ;;
9827
9828 darwin* | rhapsody*)
9829
9830
9831 archive_cmds_need_lc=no
9832 hardcode_direct=no
9833 hardcode_automatic=yes
9834 hardcode_shlibpath_var=unsupported
9835 if test "$lt_cv_ld_force_load" = "yes"; then
9836 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\"`'
9837 else
9838 whole_archive_flag_spec=''
9839 fi
9840 link_all_deplibs=yes
9841 allow_undefined_flag="$_lt_dar_allow_undefined"
9842 case $cc_basename in
9843 ifort*) _lt_dar_can_shared=yes ;;
9844 *) _lt_dar_can_shared=$GCC ;;
9845 esac
9846 if test "$_lt_dar_can_shared" = "yes"; then
9847 output_verbose_link_cmd=func_echo_all
9848 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9849 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9850 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}"
9851 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}"
9852
9853 else
9854 ld_shlibs=no
9855 fi
9856
9857 ;;
9858
9859 dgux*)
9860 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9861 hardcode_libdir_flag_spec='-L$libdir'
9862 hardcode_shlibpath_var=no
9863 ;;
9864
9865 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9866 # support. Future versions do this automatically, but an explicit c++rt0.o
9867 # does not break anything, and helps significantly (at the cost of a little
9868 # extra space).
9869 freebsd2.2*)
9870 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9871 hardcode_libdir_flag_spec='-R$libdir'
9872 hardcode_direct=yes
9873 hardcode_shlibpath_var=no
9874 ;;
9875
9876 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9877 freebsd2.*)
9878 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9879 hardcode_direct=yes
9880 hardcode_minus_L=yes
9881 hardcode_shlibpath_var=no
9882 ;;
9883
9884 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9885 freebsd* | dragonfly*)
9886 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9887 hardcode_libdir_flag_spec='-R$libdir'
9888 hardcode_direct=yes
9889 hardcode_shlibpath_var=no
9890 ;;
9891
9892 hpux9*)
9893 if test "$GCC" = yes; then
9894 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'
9895 else
9896 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'
9897 fi
9898 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9899 hardcode_libdir_separator=:
9900 hardcode_direct=yes
9901
9902 # hardcode_minus_L: Not really in the search PATH,
9903 # but as the default location of the library.
9904 hardcode_minus_L=yes
9905 export_dynamic_flag_spec='${wl}-E'
9906 ;;
9907
9908 hpux10*)
9909 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9910 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9911 else
9912 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9913 fi
9914 if test "$with_gnu_ld" = no; then
9915 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9916 hardcode_libdir_flag_spec_ld='+b $libdir'
9917 hardcode_libdir_separator=:
9918 hardcode_direct=yes
9919 hardcode_direct_absolute=yes
9920 export_dynamic_flag_spec='${wl}-E'
9921 # hardcode_minus_L: Not really in the search PATH,
9922 # but as the default location of the library.
9923 hardcode_minus_L=yes
9924 fi
9925 ;;
9926
9927 hpux11*)
9928 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9929 case $host_cpu in
9930 hppa*64*)
9931 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9932 ;;
9933 ia64*)
9934 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9935 ;;
9936 *)
9937 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9938 ;;
9939 esac
9940 else
9941 case $host_cpu in
9942 hppa*64*)
9943 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9944 ;;
9945 ia64*)
9946 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9947 ;;
9948 *)
9949
9950 # Older versions of the 11.00 compiler do not understand -b yet
9951 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9953 $as_echo_n "checking if $CC understands -b... " >&6; }
9954 if ${lt_cv_prog_compiler__b+:} false; then :
9955 $as_echo_n "(cached) " >&6
9956 else
9957 lt_cv_prog_compiler__b=no
9958 save_LDFLAGS="$LDFLAGS"
9959 LDFLAGS="$LDFLAGS -b"
9960 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9961 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9962 # The linker can only warn and ignore the option if not recognized
9963 # So say no if there are warnings
9964 if test -s conftest.err; then
9965 # Append any errors to the config.log.
9966 cat conftest.err 1>&5
9967 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9968 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9969 if diff conftest.exp conftest.er2 >/dev/null; then
9970 lt_cv_prog_compiler__b=yes
9971 fi
9972 else
9973 lt_cv_prog_compiler__b=yes
9974 fi
9975 fi
9976 $RM -r conftest*
9977 LDFLAGS="$save_LDFLAGS"
9978
9979 fi
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9981 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9982
9983 if test x"$lt_cv_prog_compiler__b" = xyes; then
9984 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9985 else
9986 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9987 fi
9988
9989 ;;
9990 esac
9991 fi
9992 if test "$with_gnu_ld" = no; then
9993 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9994 hardcode_libdir_separator=:
9995
9996 case $host_cpu in
9997 hppa*64*|ia64*)
9998 hardcode_direct=no
9999 hardcode_shlibpath_var=no
10000 ;;
10001 *)
10002 hardcode_direct=yes
10003 hardcode_direct_absolute=yes
10004 export_dynamic_flag_spec='${wl}-E'
10005
10006 # hardcode_minus_L: Not really in the search PATH,
10007 # but as the default location of the library.
10008 hardcode_minus_L=yes
10009 ;;
10010 esac
10011 fi
10012 ;;
10013
10014 irix5* | irix6* | nonstopux*)
10015 if test "$GCC" = yes; then
10016 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'
10017 # Try to use the -exported_symbol ld option, if it does not
10018 # work, assume that -exports_file does not work either and
10019 # implicitly export all symbols.
10020 save_LDFLAGS="$LDFLAGS"
10021 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10023 /* end confdefs.h. */
10024 int foo(void) {}
10025 _ACEOF
10026 if ac_fn_c_try_link "$LINENO"; then :
10027 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'
10028
10029 fi
10030 rm -f core conftest.err conftest.$ac_objext \
10031 conftest$ac_exeext conftest.$ac_ext
10032 LDFLAGS="$save_LDFLAGS"
10033 else
10034 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'
10035 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'
10036 fi
10037 archive_cmds_need_lc='no'
10038 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10039 hardcode_libdir_separator=:
10040 inherit_rpath=yes
10041 link_all_deplibs=yes
10042 ;;
10043
10044 netbsd*)
10045 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10046 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10047 else
10048 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10049 fi
10050 hardcode_libdir_flag_spec='-R$libdir'
10051 hardcode_direct=yes
10052 hardcode_shlibpath_var=no
10053 ;;
10054
10055 newsos6)
10056 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10057 hardcode_direct=yes
10058 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10059 hardcode_libdir_separator=:
10060 hardcode_shlibpath_var=no
10061 ;;
10062
10063 *nto* | *qnx*)
10064 ;;
10065
10066 openbsd*)
10067 if test -f /usr/libexec/ld.so; then
10068 hardcode_direct=yes
10069 hardcode_shlibpath_var=no
10070 hardcode_direct_absolute=yes
10071 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10072 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10073 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10074 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10075 export_dynamic_flag_spec='${wl}-E'
10076 else
10077 case $host_os in
10078 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10079 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10080 hardcode_libdir_flag_spec='-R$libdir'
10081 ;;
10082 *)
10083 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10084 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10085 ;;
10086 esac
10087 fi
10088 else
10089 ld_shlibs=no
10090 fi
10091 ;;
10092
10093 os2*)
10094 hardcode_libdir_flag_spec='-L$libdir'
10095 hardcode_minus_L=yes
10096 allow_undefined_flag=unsupported
10097 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'
10098 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10099 ;;
10100
10101 osf3*)
10102 if test "$GCC" = yes; then
10103 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10104 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'
10105 else
10106 allow_undefined_flag=' -expect_unresolved \*'
10107 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'
10108 fi
10109 archive_cmds_need_lc='no'
10110 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10111 hardcode_libdir_separator=:
10112 ;;
10113
10114 osf4* | osf5*) # as osf3* with the addition of -msym flag
10115 if test "$GCC" = yes; then
10116 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10117 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'
10118 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10119 else
10120 allow_undefined_flag=' -expect_unresolved \*'
10121 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'
10122 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~
10123 $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'
10124
10125 # Both c and cxx compiler support -rpath directly
10126 hardcode_libdir_flag_spec='-rpath $libdir'
10127 fi
10128 archive_cmds_need_lc='no'
10129 hardcode_libdir_separator=:
10130 ;;
10131
10132 solaris*)
10133 no_undefined_flag=' -z defs'
10134 if test "$GCC" = yes; then
10135 wlarc='${wl}'
10136 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10137 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10138 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10139 else
10140 case `$CC -V 2>&1` in
10141 *"Compilers 5.0"*)
10142 wlarc=''
10143 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10144 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10145 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10146 ;;
10147 *)
10148 wlarc='${wl}'
10149 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10150 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10151 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10152 ;;
10153 esac
10154 fi
10155 hardcode_libdir_flag_spec='-R$libdir'
10156 hardcode_shlibpath_var=no
10157 case $host_os in
10158 solaris2.[0-5] | solaris2.[0-5].*) ;;
10159 *)
10160 # The compiler driver will combine and reorder linker options,
10161 # but understands `-z linker_flag'. GCC discards it without `$wl',
10162 # but is careful enough not to reorder.
10163 # Supported since Solaris 2.6 (maybe 2.5.1?)
10164 if test "$GCC" = yes; then
10165 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10166 else
10167 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10168 fi
10169 ;;
10170 esac
10171 link_all_deplibs=yes
10172 ;;
10173
10174 sunos4*)
10175 if test "x$host_vendor" = xsequent; then
10176 # Use $CC to link under sequent, because it throws in some extra .o
10177 # files that make .init and .fini sections work.
10178 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10179 else
10180 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10181 fi
10182 hardcode_libdir_flag_spec='-L$libdir'
10183 hardcode_direct=yes
10184 hardcode_minus_L=yes
10185 hardcode_shlibpath_var=no
10186 ;;
10187
10188 sysv4)
10189 case $host_vendor in
10190 sni)
10191 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10192 hardcode_direct=yes # is this really true???
10193 ;;
10194 siemens)
10195 ## LD is ld it makes a PLAMLIB
10196 ## CC just makes a GrossModule.
10197 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10198 reload_cmds='$CC -r -o $output$reload_objs'
10199 hardcode_direct=no
10200 ;;
10201 motorola)
10202 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10203 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10204 ;;
10205 esac
10206 runpath_var='LD_RUN_PATH'
10207 hardcode_shlibpath_var=no
10208 ;;
10209
10210 sysv4.3*)
10211 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10212 hardcode_shlibpath_var=no
10213 export_dynamic_flag_spec='-Bexport'
10214 ;;
10215
10216 sysv4*MP*)
10217 if test -d /usr/nec; then
10218 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10219 hardcode_shlibpath_var=no
10220 runpath_var=LD_RUN_PATH
10221 hardcode_runpath_var=yes
10222 ld_shlibs=yes
10223 fi
10224 ;;
10225
10226 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10227 no_undefined_flag='${wl}-z,text'
10228 archive_cmds_need_lc=no
10229 hardcode_shlibpath_var=no
10230 runpath_var='LD_RUN_PATH'
10231
10232 if test "$GCC" = yes; then
10233 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10234 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10235 else
10236 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10237 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10238 fi
10239 ;;
10240
10241 sysv5* | sco3.2v5* | sco5v6*)
10242 # Note: We can NOT use -z defs as we might desire, because we do not
10243 # link with -lc, and that would cause any symbols used from libc to
10244 # always be unresolved, which means just about no library would
10245 # ever link correctly. If we're not using GNU ld we use -z text
10246 # though, which does catch some bad symbols but isn't as heavy-handed
10247 # as -z defs.
10248 no_undefined_flag='${wl}-z,text'
10249 allow_undefined_flag='${wl}-z,nodefs'
10250 archive_cmds_need_lc=no
10251 hardcode_shlibpath_var=no
10252 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10253 hardcode_libdir_separator=':'
10254 link_all_deplibs=yes
10255 export_dynamic_flag_spec='${wl}-Bexport'
10256 runpath_var='LD_RUN_PATH'
10257
10258 if test "$GCC" = yes; then
10259 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10260 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10261 else
10262 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10263 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10264 fi
10265 ;;
10266
10267 uts4*)
10268 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10269 hardcode_libdir_flag_spec='-L$libdir'
10270 hardcode_shlibpath_var=no
10271 ;;
10272
10273 *)
10274 ld_shlibs=no
10275 ;;
10276 esac
10277
10278 if test x$host_vendor = xsni; then
10279 case $host in
10280 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10281 export_dynamic_flag_spec='${wl}-Blargedynsym'
10282 ;;
10283 esac
10284 fi
10285 fi
10286
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10288 $as_echo "$ld_shlibs" >&6; }
10289 test "$ld_shlibs" = no && can_build_shared=no
10290
10291 with_gnu_ld=$with_gnu_ld
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307 #
10308 # Do we need to explicitly link libc?
10309 #
10310 case "x$archive_cmds_need_lc" in
10311 x|xyes)
10312 # Assume -lc should be added
10313 archive_cmds_need_lc=yes
10314
10315 if test "$enable_shared" = yes && test "$GCC" = yes; then
10316 case $archive_cmds in
10317 *'~'*)
10318 # FIXME: we may have to deal with multi-command sequences.
10319 ;;
10320 '$CC '*)
10321 # Test whether the compiler implicitly links with -lc since on some
10322 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10323 # to ld, don't add -lc before -lgcc.
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10325 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10326 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10327 $as_echo_n "(cached) " >&6
10328 else
10329 $RM conftest*
10330 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10331
10332 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10333 (eval $ac_compile) 2>&5
10334 ac_status=$?
10335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10336 test $ac_status = 0; } 2>conftest.err; then
10337 soname=conftest
10338 lib=conftest
10339 libobjs=conftest.$ac_objext
10340 deplibs=
10341 wl=$lt_prog_compiler_wl
10342 pic_flag=$lt_prog_compiler_pic
10343 compiler_flags=-v
10344 linker_flags=-v
10345 verstring=
10346 output_objdir=.
10347 libname=conftest
10348 lt_save_allow_undefined_flag=$allow_undefined_flag
10349 allow_undefined_flag=
10350 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10351 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10352 ac_status=$?
10353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10354 test $ac_status = 0; }
10355 then
10356 lt_cv_archive_cmds_need_lc=no
10357 else
10358 lt_cv_archive_cmds_need_lc=yes
10359 fi
10360 allow_undefined_flag=$lt_save_allow_undefined_flag
10361 else
10362 cat conftest.err 1>&5
10363 fi
10364 $RM conftest*
10365
10366 fi
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10368 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10369 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10370 ;;
10371 esac
10372 fi
10373 ;;
10374 esac
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10533 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10534
10535 if test "$GCC" = yes; then
10536 case $host_os in
10537 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10538 *) lt_awk_arg="/^libraries:/" ;;
10539 esac
10540 case $host_os in
10541 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10542 *) lt_sed_strip_eq="s,=/,/,g" ;;
10543 esac
10544 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10545 case $lt_search_path_spec in
10546 *\;*)
10547 # if the path contains ";" then we assume it to be the separator
10548 # otherwise default to the standard path separator (i.e. ":") - it is
10549 # assumed that no part of a normal pathname contains ";" but that should
10550 # okay in the real world where ";" in dirpaths is itself problematic.
10551 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10552 ;;
10553 *)
10554 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10555 ;;
10556 esac
10557 # Ok, now we have the path, separated by spaces, we can step through it
10558 # and add multilib dir if necessary.
10559 lt_tmp_lt_search_path_spec=
10560 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10561 for lt_sys_path in $lt_search_path_spec; do
10562 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10563 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10564 else
10565 test -d "$lt_sys_path" && \
10566 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10567 fi
10568 done
10569 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10570 BEGIN {RS=" "; FS="/|\n";} {
10571 lt_foo="";
10572 lt_count=0;
10573 for (lt_i = NF; lt_i > 0; lt_i--) {
10574 if ($lt_i != "" && $lt_i != ".") {
10575 if ($lt_i == "..") {
10576 lt_count++;
10577 } else {
10578 if (lt_count == 0) {
10579 lt_foo="/" $lt_i lt_foo;
10580 } else {
10581 lt_count--;
10582 }
10583 }
10584 }
10585 }
10586 if (lt_foo != "") { lt_freq[lt_foo]++; }
10587 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10588 }'`
10589 # AWK program above erroneously prepends '/' to C:/dos/paths
10590 # for these hosts.
10591 case $host_os in
10592 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10593 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10594 esac
10595 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10596 else
10597 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10598 fi
10599 library_names_spec=
10600 libname_spec='lib$name'
10601 soname_spec=
10602 shrext_cmds=".so"
10603 postinstall_cmds=
10604 postuninstall_cmds=
10605 finish_cmds=
10606 finish_eval=
10607 shlibpath_var=
10608 shlibpath_overrides_runpath=unknown
10609 version_type=none
10610 dynamic_linker="$host_os ld.so"
10611 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10612 need_lib_prefix=unknown
10613 hardcode_into_libs=no
10614
10615 # when you set need_version to no, make sure it does not cause -set_version
10616 # flags to be left without arguments
10617 need_version=unknown
10618
10619 case $host_os in
10620 aix3*)
10621 version_type=linux
10622 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10623 shlibpath_var=LIBPATH
10624
10625 # AIX 3 has no versioning support, so we append a major version to the name.
10626 soname_spec='${libname}${release}${shared_ext}$major'
10627 ;;
10628
10629 aix[4-9]*)
10630 version_type=linux
10631 need_lib_prefix=no
10632 need_version=no
10633 hardcode_into_libs=yes
10634 if test "$host_cpu" = ia64; then
10635 # AIX 5 supports IA64
10636 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10637 shlibpath_var=LD_LIBRARY_PATH
10638 else
10639 # With GCC up to 2.95.x, collect2 would create an import file
10640 # for dependence libraries. The import file would start with
10641 # the line `#! .'. This would cause the generated library to
10642 # depend on `.', always an invalid library. This was fixed in
10643 # development snapshots of GCC prior to 3.0.
10644 case $host_os in
10645 aix4 | aix4.[01] | aix4.[01].*)
10646 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10647 echo ' yes '
10648 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10649 :
10650 else
10651 can_build_shared=no
10652 fi
10653 ;;
10654 esac
10655 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10656 # soname into executable. Probably we can add versioning support to
10657 # collect2, so additional links can be useful in future.
10658 if test "$aix_use_runtimelinking" = yes; then
10659 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10660 # instead of lib<name>.a to let people know that these are not
10661 # typical AIX shared libraries.
10662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10663 else
10664 # We preserve .a as extension for shared libraries through AIX4.2
10665 # and later when we are not doing run time linking.
10666 library_names_spec='${libname}${release}.a $libname.a'
10667 soname_spec='${libname}${release}${shared_ext}$major'
10668 fi
10669 shlibpath_var=LIBPATH
10670 fi
10671 ;;
10672
10673 amigaos*)
10674 case $host_cpu in
10675 powerpc)
10676 # Since July 2007 AmigaOS4 officially supports .so libraries.
10677 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10679 ;;
10680 m68k)
10681 library_names_spec='$libname.ixlibrary $libname.a'
10682 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10683 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'
10684 ;;
10685 esac
10686 ;;
10687
10688 beos*)
10689 library_names_spec='${libname}${shared_ext}'
10690 dynamic_linker="$host_os ld.so"
10691 shlibpath_var=LIBRARY_PATH
10692 ;;
10693
10694 bsdi[45]*)
10695 version_type=linux
10696 need_version=no
10697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10698 soname_spec='${libname}${release}${shared_ext}$major'
10699 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10700 shlibpath_var=LD_LIBRARY_PATH
10701 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10702 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10703 # the default ld.so.conf also contains /usr/contrib/lib and
10704 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10705 # libtool to hard-code these into programs
10706 ;;
10707
10708 cygwin* | mingw* | pw32* | cegcc*)
10709 version_type=windows
10710 shrext_cmds=".dll"
10711 need_version=no
10712 need_lib_prefix=no
10713
10714 case $GCC,$host_os in
10715 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10716 library_names_spec='$libname.dll.a'
10717 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10718 postinstall_cmds='base_file=`basename \${file}`~
10719 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10720 dldir=$destdir/`dirname \$dlpath`~
10721 test -d \$dldir || mkdir -p \$dldir~
10722 $install_prog $dir/$dlname \$dldir/$dlname~
10723 chmod a+x \$dldir/$dlname~
10724 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10725 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10726 fi'
10727 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10728 dlpath=$dir/\$dldll~
10729 $RM \$dlpath'
10730 shlibpath_overrides_runpath=yes
10731
10732 case $host_os in
10733 cygwin*)
10734 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10735 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10736
10737 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10738 ;;
10739 mingw* | cegcc*)
10740 # MinGW DLLs use traditional 'lib' prefix
10741 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10742 ;;
10743 pw32*)
10744 # pw32 DLLs use 'pw' prefix rather than 'lib'
10745 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10746 ;;
10747 esac
10748 ;;
10749
10750 *)
10751 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10752 ;;
10753 esac
10754 dynamic_linker='Win32 ld.exe'
10755 # FIXME: first we should search . and the directory the executable is in
10756 shlibpath_var=PATH
10757 ;;
10758
10759 darwin* | rhapsody*)
10760 dynamic_linker="$host_os dyld"
10761 version_type=darwin
10762 need_lib_prefix=no
10763 need_version=no
10764 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10765 soname_spec='${libname}${release}${major}$shared_ext'
10766 shlibpath_overrides_runpath=yes
10767 shlibpath_var=DYLD_LIBRARY_PATH
10768 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10769
10770 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10771 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10772 ;;
10773
10774 dgux*)
10775 version_type=linux
10776 need_lib_prefix=no
10777 need_version=no
10778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10779 soname_spec='${libname}${release}${shared_ext}$major'
10780 shlibpath_var=LD_LIBRARY_PATH
10781 ;;
10782
10783 freebsd* | dragonfly*)
10784 # DragonFly does not have aout. When/if they implement a new
10785 # versioning mechanism, adjust this.
10786 if test -x /usr/bin/objformat; then
10787 objformat=`/usr/bin/objformat`
10788 else
10789 case $host_os in
10790 freebsd[23].*) objformat=aout ;;
10791 *) objformat=elf ;;
10792 esac
10793 fi
10794 version_type=freebsd-$objformat
10795 case $version_type in
10796 freebsd-elf*)
10797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10798 need_version=no
10799 need_lib_prefix=no
10800 ;;
10801 freebsd-*)
10802 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10803 need_version=yes
10804 ;;
10805 esac
10806 shlibpath_var=LD_LIBRARY_PATH
10807 case $host_os in
10808 freebsd2.*)
10809 shlibpath_overrides_runpath=yes
10810 ;;
10811 freebsd3.[01]* | freebsdelf3.[01]*)
10812 shlibpath_overrides_runpath=yes
10813 hardcode_into_libs=yes
10814 ;;
10815 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10816 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10817 shlibpath_overrides_runpath=no
10818 hardcode_into_libs=yes
10819 ;;
10820 *) # from 4.6 on, and DragonFly
10821 shlibpath_overrides_runpath=yes
10822 hardcode_into_libs=yes
10823 ;;
10824 esac
10825 ;;
10826
10827 gnu*)
10828 version_type=linux
10829 need_lib_prefix=no
10830 need_version=no
10831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10832 soname_spec='${libname}${release}${shared_ext}$major'
10833 shlibpath_var=LD_LIBRARY_PATH
10834 hardcode_into_libs=yes
10835 ;;
10836
10837 haiku*)
10838 version_type=linux
10839 need_lib_prefix=no
10840 need_version=no
10841 dynamic_linker="$host_os runtime_loader"
10842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10843 soname_spec='${libname}${release}${shared_ext}$major'
10844 shlibpath_var=LIBRARY_PATH
10845 shlibpath_overrides_runpath=yes
10846 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10847 hardcode_into_libs=yes
10848 ;;
10849
10850 hpux9* | hpux10* | hpux11*)
10851 # Give a soname corresponding to the major version so that dld.sl refuses to
10852 # link against other versions.
10853 version_type=sunos
10854 need_lib_prefix=no
10855 need_version=no
10856 case $host_cpu in
10857 ia64*)
10858 shrext_cmds='.so'
10859 hardcode_into_libs=yes
10860 dynamic_linker="$host_os dld.so"
10861 shlibpath_var=LD_LIBRARY_PATH
10862 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10864 soname_spec='${libname}${release}${shared_ext}$major'
10865 if test "X$HPUX_IA64_MODE" = X32; then
10866 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10867 else
10868 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10869 fi
10870 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10871 ;;
10872 hppa*64*)
10873 shrext_cmds='.sl'
10874 hardcode_into_libs=yes
10875 dynamic_linker="$host_os dld.sl"
10876 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10877 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10879 soname_spec='${libname}${release}${shared_ext}$major'
10880 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10881 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10882 ;;
10883 *)
10884 shrext_cmds='.sl'
10885 dynamic_linker="$host_os dld.sl"
10886 shlibpath_var=SHLIB_PATH
10887 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10889 soname_spec='${libname}${release}${shared_ext}$major'
10890 ;;
10891 esac
10892 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10893 postinstall_cmds='chmod 555 $lib'
10894 # or fails outright, so override atomically:
10895 install_override_mode=555
10896 ;;
10897
10898 interix[3-9]*)
10899 version_type=linux
10900 need_lib_prefix=no
10901 need_version=no
10902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10903 soname_spec='${libname}${release}${shared_ext}$major'
10904 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10905 shlibpath_var=LD_LIBRARY_PATH
10906 shlibpath_overrides_runpath=no
10907 hardcode_into_libs=yes
10908 ;;
10909
10910 irix5* | irix6* | nonstopux*)
10911 case $host_os in
10912 nonstopux*) version_type=nonstopux ;;
10913 *)
10914 if test "$lt_cv_prog_gnu_ld" = yes; then
10915 version_type=linux
10916 else
10917 version_type=irix
10918 fi ;;
10919 esac
10920 need_lib_prefix=no
10921 need_version=no
10922 soname_spec='${libname}${release}${shared_ext}$major'
10923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10924 case $host_os in
10925 irix5* | nonstopux*)
10926 libsuff= shlibsuff=
10927 ;;
10928 *)
10929 case $LD in # libtool.m4 will add one of these switches to LD
10930 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10931 libsuff= shlibsuff= libmagic=32-bit;;
10932 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10933 libsuff=32 shlibsuff=N32 libmagic=N32;;
10934 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10935 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10936 *) libsuff= shlibsuff= libmagic=never-match;;
10937 esac
10938 ;;
10939 esac
10940 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10941 shlibpath_overrides_runpath=no
10942 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10943 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10944 hardcode_into_libs=yes
10945 ;;
10946
10947 # No shared lib support for Linux oldld, aout, or coff.
10948 linux*oldld* | linux*aout* | linux*coff*)
10949 dynamic_linker=no
10950 ;;
10951
10952 # This must be Linux ELF.
10953
10954 # uclinux* changes (here and below) have been submitted to the libtool
10955 # project, but have not yet been accepted: they are GCC-local changes
10956 # for the time being. (See
10957 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10958 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
10959 version_type=linux
10960 need_lib_prefix=no
10961 need_version=no
10962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10963 soname_spec='${libname}${release}${shared_ext}$major'
10964 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10965 shlibpath_var=LD_LIBRARY_PATH
10966 shlibpath_overrides_runpath=no
10967
10968 # Some binutils ld are patched to set DT_RUNPATH
10969 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10970 $as_echo_n "(cached) " >&6
10971 else
10972 lt_cv_shlibpath_overrides_runpath=no
10973 save_LDFLAGS=$LDFLAGS
10974 save_libdir=$libdir
10975 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10976 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10978 /* end confdefs.h. */
10979
10980 int
10981 main ()
10982 {
10983
10984 ;
10985 return 0;
10986 }
10987 _ACEOF
10988 if ac_fn_c_try_link "$LINENO"; then :
10989 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10990 lt_cv_shlibpath_overrides_runpath=yes
10991 fi
10992 fi
10993 rm -f core conftest.err conftest.$ac_objext \
10994 conftest$ac_exeext conftest.$ac_ext
10995 LDFLAGS=$save_LDFLAGS
10996 libdir=$save_libdir
10997
10998 fi
10999
11000 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11001
11002 # This implies no fast_install, which is unacceptable.
11003 # Some rework will be needed to allow for fast_install
11004 # before this can be enabled.
11005 hardcode_into_libs=yes
11006
11007 # Append ld.so.conf contents to the search path
11008 if test -f /etc/ld.so.conf; then
11009 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' ' '`
11010 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11011 fi
11012
11013 # We used to test for /lib/ld.so.1 and disable shared libraries on
11014 # powerpc, because MkLinux only supported shared libraries with the
11015 # GNU dynamic linker. Since this was broken with cross compilers,
11016 # most powerpc-linux boxes support dynamic linking these days and
11017 # people can always --disable-shared, the test was removed, and we
11018 # assume the GNU/Linux dynamic linker is in use.
11019 dynamic_linker='GNU/Linux ld.so'
11020 ;;
11021
11022 netbsd*)
11023 version_type=sunos
11024 need_lib_prefix=no
11025 need_version=no
11026 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11028 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11029 dynamic_linker='NetBSD (a.out) ld.so'
11030 else
11031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11032 soname_spec='${libname}${release}${shared_ext}$major'
11033 dynamic_linker='NetBSD ld.elf_so'
11034 fi
11035 shlibpath_var=LD_LIBRARY_PATH
11036 shlibpath_overrides_runpath=yes
11037 hardcode_into_libs=yes
11038 ;;
11039
11040 newsos6)
11041 version_type=linux
11042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11043 shlibpath_var=LD_LIBRARY_PATH
11044 shlibpath_overrides_runpath=yes
11045 ;;
11046
11047 *nto* | *qnx*)
11048 version_type=qnx
11049 need_lib_prefix=no
11050 need_version=no
11051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11052 soname_spec='${libname}${release}${shared_ext}$major'
11053 shlibpath_var=LD_LIBRARY_PATH
11054 shlibpath_overrides_runpath=no
11055 hardcode_into_libs=yes
11056 dynamic_linker='ldqnx.so'
11057 ;;
11058
11059 openbsd*)
11060 version_type=sunos
11061 sys_lib_dlsearch_path_spec="/usr/lib"
11062 need_lib_prefix=no
11063 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11064 case $host_os in
11065 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11066 *) need_version=no ;;
11067 esac
11068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11069 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11070 shlibpath_var=LD_LIBRARY_PATH
11071 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11072 case $host_os in
11073 openbsd2.[89] | openbsd2.[89].*)
11074 shlibpath_overrides_runpath=no
11075 ;;
11076 *)
11077 shlibpath_overrides_runpath=yes
11078 ;;
11079 esac
11080 else
11081 shlibpath_overrides_runpath=yes
11082 fi
11083 ;;
11084
11085 os2*)
11086 libname_spec='$name'
11087 shrext_cmds=".dll"
11088 need_lib_prefix=no
11089 library_names_spec='$libname${shared_ext} $libname.a'
11090 dynamic_linker='OS/2 ld.exe'
11091 shlibpath_var=LIBPATH
11092 ;;
11093
11094 osf3* | osf4* | osf5*)
11095 version_type=osf
11096 need_lib_prefix=no
11097 need_version=no
11098 soname_spec='${libname}${release}${shared_ext}$major'
11099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11100 shlibpath_var=LD_LIBRARY_PATH
11101 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11102 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11103 ;;
11104
11105 rdos*)
11106 dynamic_linker=no
11107 ;;
11108
11109 solaris*)
11110 version_type=linux
11111 need_lib_prefix=no
11112 need_version=no
11113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11114 soname_spec='${libname}${release}${shared_ext}$major'
11115 shlibpath_var=LD_LIBRARY_PATH
11116 shlibpath_overrides_runpath=yes
11117 hardcode_into_libs=yes
11118 # ldd complains unless libraries are executable
11119 postinstall_cmds='chmod +x $lib'
11120 ;;
11121
11122 sunos4*)
11123 version_type=sunos
11124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11125 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11126 shlibpath_var=LD_LIBRARY_PATH
11127 shlibpath_overrides_runpath=yes
11128 if test "$with_gnu_ld" = yes; then
11129 need_lib_prefix=no
11130 fi
11131 need_version=yes
11132 ;;
11133
11134 sysv4 | sysv4.3*)
11135 version_type=linux
11136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11137 soname_spec='${libname}${release}${shared_ext}$major'
11138 shlibpath_var=LD_LIBRARY_PATH
11139 case $host_vendor in
11140 sni)
11141 shlibpath_overrides_runpath=no
11142 need_lib_prefix=no
11143 runpath_var=LD_RUN_PATH
11144 ;;
11145 siemens)
11146 need_lib_prefix=no
11147 ;;
11148 motorola)
11149 need_lib_prefix=no
11150 need_version=no
11151 shlibpath_overrides_runpath=no
11152 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11153 ;;
11154 esac
11155 ;;
11156
11157 sysv4*MP*)
11158 if test -d /usr/nec ;then
11159 version_type=linux
11160 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11161 soname_spec='$libname${shared_ext}.$major'
11162 shlibpath_var=LD_LIBRARY_PATH
11163 fi
11164 ;;
11165
11166 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11167 version_type=freebsd-elf
11168 need_lib_prefix=no
11169 need_version=no
11170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11171 soname_spec='${libname}${release}${shared_ext}$major'
11172 shlibpath_var=LD_LIBRARY_PATH
11173 shlibpath_overrides_runpath=yes
11174 hardcode_into_libs=yes
11175 if test "$with_gnu_ld" = yes; then
11176 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11177 else
11178 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11179 case $host_os in
11180 sco3.2v5*)
11181 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11182 ;;
11183 esac
11184 fi
11185 sys_lib_dlsearch_path_spec='/usr/lib'
11186 ;;
11187
11188 tpf*)
11189 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11190 version_type=linux
11191 need_lib_prefix=no
11192 need_version=no
11193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11194 shlibpath_var=LD_LIBRARY_PATH
11195 shlibpath_overrides_runpath=no
11196 hardcode_into_libs=yes
11197 ;;
11198
11199 uts4*)
11200 version_type=linux
11201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11202 soname_spec='${libname}${release}${shared_ext}$major'
11203 shlibpath_var=LD_LIBRARY_PATH
11204 ;;
11205
11206 *)
11207 dynamic_linker=no
11208 ;;
11209 esac
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11211 $as_echo "$dynamic_linker" >&6; }
11212 test "$dynamic_linker" = no && can_build_shared=no
11213
11214 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11215 if test "$GCC" = yes; then
11216 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11217 fi
11218
11219 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11220 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11221 fi
11222 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11223 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11224 fi
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11318 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11319 hardcode_action=
11320 if test -n "$hardcode_libdir_flag_spec" ||
11321 test -n "$runpath_var" ||
11322 test "X$hardcode_automatic" = "Xyes" ; then
11323
11324 # We can hardcode non-existent directories.
11325 if test "$hardcode_direct" != no &&
11326 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11327 # have to relink, otherwise we might link with an installed library
11328 # when we should be linking with a yet-to-be-installed one
11329 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11330 test "$hardcode_minus_L" != no; then
11331 # Linking always hardcodes the temporary library directory.
11332 hardcode_action=relink
11333 else
11334 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11335 hardcode_action=immediate
11336 fi
11337 else
11338 # We cannot hardcode anything, or else we can only hardcode existing
11339 # directories.
11340 hardcode_action=unsupported
11341 fi
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11343 $as_echo "$hardcode_action" >&6; }
11344
11345 if test "$hardcode_action" = relink ||
11346 test "$inherit_rpath" = yes; then
11347 # Fast installation is not supported
11348 enable_fast_install=no
11349 elif test "$shlibpath_overrides_runpath" = yes ||
11350 test "$enable_shared" = no; then
11351 # Fast installation is not necessary
11352 enable_fast_install=needless
11353 fi
11354
11355
11356
11357
11358
11359
11360 if test "x$enable_dlopen" != xyes; then
11361 enable_dlopen=unknown
11362 enable_dlopen_self=unknown
11363 enable_dlopen_self_static=unknown
11364 else
11365 lt_cv_dlopen=no
11366 lt_cv_dlopen_libs=
11367
11368 case $host_os in
11369 beos*)
11370 lt_cv_dlopen="load_add_on"
11371 lt_cv_dlopen_libs=
11372 lt_cv_dlopen_self=yes
11373 ;;
11374
11375 mingw* | pw32* | cegcc*)
11376 lt_cv_dlopen="LoadLibrary"
11377 lt_cv_dlopen_libs=
11378 ;;
11379
11380 cygwin*)
11381 lt_cv_dlopen="dlopen"
11382 lt_cv_dlopen_libs=
11383 ;;
11384
11385 darwin*)
11386 # if libdl is installed we need to link against it
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11388 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11389 if ${ac_cv_lib_dl_dlopen+:} false; then :
11390 $as_echo_n "(cached) " >&6
11391 else
11392 ac_check_lib_save_LIBS=$LIBS
11393 LIBS="-ldl $LIBS"
11394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11395 /* end confdefs.h. */
11396
11397 /* Override any GCC internal prototype to avoid an error.
11398 Use char because int might match the return type of a GCC
11399 builtin and then its argument prototype would still apply. */
11400 #ifdef __cplusplus
11401 extern "C"
11402 #endif
11403 char dlopen ();
11404 int
11405 main ()
11406 {
11407 return dlopen ();
11408 ;
11409 return 0;
11410 }
11411 _ACEOF
11412 if ac_fn_c_try_link "$LINENO"; then :
11413 ac_cv_lib_dl_dlopen=yes
11414 else
11415 ac_cv_lib_dl_dlopen=no
11416 fi
11417 rm -f core conftest.err conftest.$ac_objext \
11418 conftest$ac_exeext conftest.$ac_ext
11419 LIBS=$ac_check_lib_save_LIBS
11420 fi
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11422 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11423 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11424 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11425 else
11426
11427 lt_cv_dlopen="dyld"
11428 lt_cv_dlopen_libs=
11429 lt_cv_dlopen_self=yes
11430
11431 fi
11432
11433 ;;
11434
11435 *)
11436 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11437 if test "x$ac_cv_func_shl_load" = xyes; then :
11438 lt_cv_dlopen="shl_load"
11439 else
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11441 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11442 if ${ac_cv_lib_dld_shl_load+:} false; then :
11443 $as_echo_n "(cached) " >&6
11444 else
11445 ac_check_lib_save_LIBS=$LIBS
11446 LIBS="-ldld $LIBS"
11447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11448 /* end confdefs.h. */
11449
11450 /* Override any GCC internal prototype to avoid an error.
11451 Use char because int might match the return type of a GCC
11452 builtin and then its argument prototype would still apply. */
11453 #ifdef __cplusplus
11454 extern "C"
11455 #endif
11456 char shl_load ();
11457 int
11458 main ()
11459 {
11460 return shl_load ();
11461 ;
11462 return 0;
11463 }
11464 _ACEOF
11465 if ac_fn_c_try_link "$LINENO"; then :
11466 ac_cv_lib_dld_shl_load=yes
11467 else
11468 ac_cv_lib_dld_shl_load=no
11469 fi
11470 rm -f core conftest.err conftest.$ac_objext \
11471 conftest$ac_exeext conftest.$ac_ext
11472 LIBS=$ac_check_lib_save_LIBS
11473 fi
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11475 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11476 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11477 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11478 else
11479 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11480 if test "x$ac_cv_func_dlopen" = xyes; then :
11481 lt_cv_dlopen="dlopen"
11482 else
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11484 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11485 if ${ac_cv_lib_dl_dlopen+:} false; then :
11486 $as_echo_n "(cached) " >&6
11487 else
11488 ac_check_lib_save_LIBS=$LIBS
11489 LIBS="-ldl $LIBS"
11490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11491 /* end confdefs.h. */
11492
11493 /* Override any GCC internal prototype to avoid an error.
11494 Use char because int might match the return type of a GCC
11495 builtin and then its argument prototype would still apply. */
11496 #ifdef __cplusplus
11497 extern "C"
11498 #endif
11499 char dlopen ();
11500 int
11501 main ()
11502 {
11503 return dlopen ();
11504 ;
11505 return 0;
11506 }
11507 _ACEOF
11508 if ac_fn_c_try_link "$LINENO"; then :
11509 ac_cv_lib_dl_dlopen=yes
11510 else
11511 ac_cv_lib_dl_dlopen=no
11512 fi
11513 rm -f core conftest.err conftest.$ac_objext \
11514 conftest$ac_exeext conftest.$ac_ext
11515 LIBS=$ac_check_lib_save_LIBS
11516 fi
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11518 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11519 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11520 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11521 else
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11523 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11524 if ${ac_cv_lib_svld_dlopen+:} false; then :
11525 $as_echo_n "(cached) " >&6
11526 else
11527 ac_check_lib_save_LIBS=$LIBS
11528 LIBS="-lsvld $LIBS"
11529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11530 /* end confdefs.h. */
11531
11532 /* Override any GCC internal prototype to avoid an error.
11533 Use char because int might match the return type of a GCC
11534 builtin and then its argument prototype would still apply. */
11535 #ifdef __cplusplus
11536 extern "C"
11537 #endif
11538 char dlopen ();
11539 int
11540 main ()
11541 {
11542 return dlopen ();
11543 ;
11544 return 0;
11545 }
11546 _ACEOF
11547 if ac_fn_c_try_link "$LINENO"; then :
11548 ac_cv_lib_svld_dlopen=yes
11549 else
11550 ac_cv_lib_svld_dlopen=no
11551 fi
11552 rm -f core conftest.err conftest.$ac_objext \
11553 conftest$ac_exeext conftest.$ac_ext
11554 LIBS=$ac_check_lib_save_LIBS
11555 fi
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11557 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11558 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11559 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11560 else
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11562 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11563 if ${ac_cv_lib_dld_dld_link+:} false; then :
11564 $as_echo_n "(cached) " >&6
11565 else
11566 ac_check_lib_save_LIBS=$LIBS
11567 LIBS="-ldld $LIBS"
11568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11569 /* end confdefs.h. */
11570
11571 /* Override any GCC internal prototype to avoid an error.
11572 Use char because int might match the return type of a GCC
11573 builtin and then its argument prototype would still apply. */
11574 #ifdef __cplusplus
11575 extern "C"
11576 #endif
11577 char dld_link ();
11578 int
11579 main ()
11580 {
11581 return dld_link ();
11582 ;
11583 return 0;
11584 }
11585 _ACEOF
11586 if ac_fn_c_try_link "$LINENO"; then :
11587 ac_cv_lib_dld_dld_link=yes
11588 else
11589 ac_cv_lib_dld_dld_link=no
11590 fi
11591 rm -f core conftest.err conftest.$ac_objext \
11592 conftest$ac_exeext conftest.$ac_ext
11593 LIBS=$ac_check_lib_save_LIBS
11594 fi
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11596 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11597 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11598 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11599 fi
11600
11601
11602 fi
11603
11604
11605 fi
11606
11607
11608 fi
11609
11610
11611 fi
11612
11613
11614 fi
11615
11616 ;;
11617 esac
11618
11619 if test "x$lt_cv_dlopen" != xno; then
11620 enable_dlopen=yes
11621 else
11622 enable_dlopen=no
11623 fi
11624
11625 case $lt_cv_dlopen in
11626 dlopen)
11627 save_CPPFLAGS="$CPPFLAGS"
11628 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11629
11630 save_LDFLAGS="$LDFLAGS"
11631 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11632
11633 save_LIBS="$LIBS"
11634 LIBS="$lt_cv_dlopen_libs $LIBS"
11635
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11637 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11638 if ${lt_cv_dlopen_self+:} false; then :
11639 $as_echo_n "(cached) " >&6
11640 else
11641 if test "$cross_compiling" = yes; then :
11642 lt_cv_dlopen_self=cross
11643 else
11644 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11645 lt_status=$lt_dlunknown
11646 cat > conftest.$ac_ext <<_LT_EOF
11647 #line 11647 "configure"
11648 #include "confdefs.h"
11649
11650 #if HAVE_DLFCN_H
11651 #include <dlfcn.h>
11652 #endif
11653
11654 #include <stdio.h>
11655
11656 #ifdef RTLD_GLOBAL
11657 # define LT_DLGLOBAL RTLD_GLOBAL
11658 #else
11659 # ifdef DL_GLOBAL
11660 # define LT_DLGLOBAL DL_GLOBAL
11661 # else
11662 # define LT_DLGLOBAL 0
11663 # endif
11664 #endif
11665
11666 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11667 find out it does not work in some platform. */
11668 #ifndef LT_DLLAZY_OR_NOW
11669 # ifdef RTLD_LAZY
11670 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11671 # else
11672 # ifdef DL_LAZY
11673 # define LT_DLLAZY_OR_NOW DL_LAZY
11674 # else
11675 # ifdef RTLD_NOW
11676 # define LT_DLLAZY_OR_NOW RTLD_NOW
11677 # else
11678 # ifdef DL_NOW
11679 # define LT_DLLAZY_OR_NOW DL_NOW
11680 # else
11681 # define LT_DLLAZY_OR_NOW 0
11682 # endif
11683 # endif
11684 # endif
11685 # endif
11686 #endif
11687
11688 /* When -fvisbility=hidden is used, assume the code has been annotated
11689 correspondingly for the symbols needed. */
11690 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11691 void fnord () __attribute__((visibility("default")));
11692 #endif
11693
11694 void fnord () { int i=42; }
11695 int main ()
11696 {
11697 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11698 int status = $lt_dlunknown;
11699
11700 if (self)
11701 {
11702 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11703 else
11704 {
11705 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11706 else puts (dlerror ());
11707 }
11708 /* dlclose (self); */
11709 }
11710 else
11711 puts (dlerror ());
11712
11713 return status;
11714 }
11715 _LT_EOF
11716 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11717 (eval $ac_link) 2>&5
11718 ac_status=$?
11719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11720 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11721 (./conftest; exit; ) >&5 2>/dev/null
11722 lt_status=$?
11723 case x$lt_status in
11724 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11725 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11726 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11727 esac
11728 else :
11729 # compilation failed
11730 lt_cv_dlopen_self=no
11731 fi
11732 fi
11733 rm -fr conftest*
11734
11735
11736 fi
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11738 $as_echo "$lt_cv_dlopen_self" >&6; }
11739
11740 if test "x$lt_cv_dlopen_self" = xyes; then
11741 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11743 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11744 if ${lt_cv_dlopen_self_static+:} false; then :
11745 $as_echo_n "(cached) " >&6
11746 else
11747 if test "$cross_compiling" = yes; then :
11748 lt_cv_dlopen_self_static=cross
11749 else
11750 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11751 lt_status=$lt_dlunknown
11752 cat > conftest.$ac_ext <<_LT_EOF
11753 #line 11753 "configure"
11754 #include "confdefs.h"
11755
11756 #if HAVE_DLFCN_H
11757 #include <dlfcn.h>
11758 #endif
11759
11760 #include <stdio.h>
11761
11762 #ifdef RTLD_GLOBAL
11763 # define LT_DLGLOBAL RTLD_GLOBAL
11764 #else
11765 # ifdef DL_GLOBAL
11766 # define LT_DLGLOBAL DL_GLOBAL
11767 # else
11768 # define LT_DLGLOBAL 0
11769 # endif
11770 #endif
11771
11772 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11773 find out it does not work in some platform. */
11774 #ifndef LT_DLLAZY_OR_NOW
11775 # ifdef RTLD_LAZY
11776 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11777 # else
11778 # ifdef DL_LAZY
11779 # define LT_DLLAZY_OR_NOW DL_LAZY
11780 # else
11781 # ifdef RTLD_NOW
11782 # define LT_DLLAZY_OR_NOW RTLD_NOW
11783 # else
11784 # ifdef DL_NOW
11785 # define LT_DLLAZY_OR_NOW DL_NOW
11786 # else
11787 # define LT_DLLAZY_OR_NOW 0
11788 # endif
11789 # endif
11790 # endif
11791 # endif
11792 #endif
11793
11794 /* When -fvisbility=hidden is used, assume the code has been annotated
11795 correspondingly for the symbols needed. */
11796 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11797 void fnord () __attribute__((visibility("default")));
11798 #endif
11799
11800 void fnord () { int i=42; }
11801 int main ()
11802 {
11803 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11804 int status = $lt_dlunknown;
11805
11806 if (self)
11807 {
11808 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11809 else
11810 {
11811 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11812 else puts (dlerror ());
11813 }
11814 /* dlclose (self); */
11815 }
11816 else
11817 puts (dlerror ());
11818
11819 return status;
11820 }
11821 _LT_EOF
11822 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11823 (eval $ac_link) 2>&5
11824 ac_status=$?
11825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11826 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11827 (./conftest; exit; ) >&5 2>/dev/null
11828 lt_status=$?
11829 case x$lt_status in
11830 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11831 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11832 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11833 esac
11834 else :
11835 # compilation failed
11836 lt_cv_dlopen_self_static=no
11837 fi
11838 fi
11839 rm -fr conftest*
11840
11841
11842 fi
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11844 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11845 fi
11846
11847 CPPFLAGS="$save_CPPFLAGS"
11848 LDFLAGS="$save_LDFLAGS"
11849 LIBS="$save_LIBS"
11850 ;;
11851 esac
11852
11853 case $lt_cv_dlopen_self in
11854 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11855 *) enable_dlopen_self=unknown ;;
11856 esac
11857
11858 case $lt_cv_dlopen_self_static in
11859 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11860 *) enable_dlopen_self_static=unknown ;;
11861 esac
11862 fi
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880 striplib=
11881 old_striplib=
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11883 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11884 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11885 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11886 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11888 $as_echo "yes" >&6; }
11889 else
11890 # FIXME - insert some real tests, host_os isn't really good enough
11891 case $host_os in
11892 darwin*)
11893 if test -n "$STRIP" ; then
11894 striplib="$STRIP -x"
11895 old_striplib="$STRIP -S"
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11897 $as_echo "yes" >&6; }
11898 else
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11900 $as_echo "no" >&6; }
11901 fi
11902 ;;
11903 *)
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11905 $as_echo "no" >&6; }
11906 ;;
11907 esac
11908 fi
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921 # Report which library types will actually be built
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11923 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11925 $as_echo "$can_build_shared" >&6; }
11926
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11928 $as_echo_n "checking whether to build shared libraries... " >&6; }
11929 test "$can_build_shared" = "no" && enable_shared=no
11930
11931 # On AIX, shared libraries and static libraries use the same namespace, and
11932 # are all built from PIC.
11933 case $host_os in
11934 aix3*)
11935 test "$enable_shared" = yes && enable_static=no
11936 if test -n "$RANLIB"; then
11937 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11938 postinstall_cmds='$RANLIB $lib'
11939 fi
11940 ;;
11941
11942 aix[4-9]*)
11943 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11944 test "$enable_shared" = yes && enable_static=no
11945 fi
11946 ;;
11947 esac
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11949 $as_echo "$enable_shared" >&6; }
11950
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11952 $as_echo_n "checking whether to build static libraries... " >&6; }
11953 # Make sure either enable_shared or enable_static is yes.
11954 test "$enable_shared" = yes || enable_static=yes
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11956 $as_echo "$enable_static" >&6; }
11957
11958
11959
11960
11961 fi
11962 ac_ext=c
11963 ac_cpp='$CPP $CPPFLAGS'
11964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11967
11968 CC="$lt_save_CC"
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982 ac_config_commands="$ac_config_commands libtool"
11983
11984
11985
11986
11987 # Only expand once:
11988
11989
11990
11991
11992
11993 gdc_save_DFLAGS=$GDCFLAGS
11994 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
11995
11996
11997 # Source file extension for D test sources.
11998 ac_ext=d
11999
12000 # Object file extension for compiled D test sources.
12001 objext=o
12002 objext_D=$objext
12003
12004 # Code to be used in simple compile tests
12005 lt_simple_compile_test_code="\
12006 module object;
12007 shared int some_variable = 0;
12008 "
12009
12010 # Code to be used in simple link tests
12011 lt_simple_link_test_code="\
12012 module object;
12013 extern(C) int main() { return 0; }
12014 "
12015
12016 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12017
12018
12019
12020
12021
12022
12023 # If no C compiler was specified, use CC.
12024 LTCC=${LTCC-"$CC"}
12025
12026 # If no C compiler flags were specified, use CFLAGS.
12027 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12028
12029 # Allow CC to be a program name with arguments.
12030 compiler=$CC
12031
12032
12033 # save warnings/boilerplate of simple test code
12034 ac_outfile=conftest.$ac_objext
12035 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12036 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12037 _lt_compiler_boilerplate=`cat conftest.err`
12038 $RM conftest*
12039
12040 ac_outfile=conftest.$ac_objext
12041 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12042 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12043 _lt_linker_boilerplate=`cat conftest.err`
12044 $RM -r conftest*
12045
12046
12047 # Allow CC to be a program name with arguments.
12048 lt_save_CC=$CC
12049 lt_save_CFLAGS=$CFLAGS
12050 lt_save_GCC=$GCC
12051 GCC=yes
12052 CC=${GDC-"gdc"}
12053 CFLAGS=$GDCFLAGS
12054 compiler=$CC
12055 compiler_D=$CC
12056 LD_D=$CC
12057 for cc_temp in $compiler""; do
12058 case $cc_temp in
12059 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12060 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12061 \-*) ;;
12062 *) break;;
12063 esac
12064 done
12065 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12066
12067
12068 # GDC did not exist at the time GCC didn't implicitly link libc in.
12069 archive_cmds_need_lc_D=no
12070
12071 old_archive_cmds_D=$old_archive_cmds
12072 reload_flag_D=$reload_flag
12073 reload_cmds_D=$reload_cmds
12074
12075 ## CAVEAT EMPTOR:
12076 ## There is no encapsulation within the following macros, do not change
12077 ## the running order or otherwise move them around unless you know exactly
12078 ## what you are doing...
12079 if test -n "$compiler"; then
12080
12081 lt_prog_compiler_no_builtin_flag_D=
12082
12083 if test "$GCC" = yes; then
12084 case $cc_basename in
12085 nvcc*)
12086 lt_prog_compiler_no_builtin_flag_D=' -Xcompiler -fno-builtin' ;;
12087 *)
12088 lt_prog_compiler_no_builtin_flag_D=' -fno-builtin' ;;
12089 esac
12090
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12092 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12093 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
12094 $as_echo_n "(cached) " >&6
12095 else
12096 lt_cv_prog_compiler_rtti_exceptions=no
12097 ac_outfile=conftest.$ac_objext
12098 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12099 lt_compiler_flag="-fno-rtti -fno-exceptions"
12100 # Insert the option either (1) after the last *FLAGS variable, or
12101 # (2) before a word containing "conftest.", or (3) at the end.
12102 # Note that $ac_compile itself does not contain backslashes and begins
12103 # with a dollar sign (not a hyphen), so the echo should work correctly.
12104 # The option is referenced via a variable to avoid confusing sed.
12105 lt_compile=`echo "$ac_compile" | $SED \
12106 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12107 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12108 -e 's:$: $lt_compiler_flag:'`
12109 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12110 (eval "$lt_compile" 2>conftest.err)
12111 ac_status=$?
12112 cat conftest.err >&5
12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114 if (exit $ac_status) && test -s "$ac_outfile"; then
12115 # The compiler can only warn and ignore the option if not recognized
12116 # So say no if there are warnings other than the usual output.
12117 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12118 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12119 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12120 lt_cv_prog_compiler_rtti_exceptions=yes
12121 fi
12122 fi
12123 $RM conftest*
12124
12125 fi
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12127 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12128
12129 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12130 lt_prog_compiler_no_builtin_flag_D="$lt_prog_compiler_no_builtin_flag_D -fno-rtti -fno-exceptions"
12131 else
12132 :
12133 fi
12134
12135 fi
12136
12137
12138
12139 lt_prog_compiler_wl_D=
12140 lt_prog_compiler_pic_D=
12141 lt_prog_compiler_static_D=
12142
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12144 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12145
12146 if test "$GCC" = yes; then
12147 lt_prog_compiler_wl_D='-Wl,'
12148 lt_prog_compiler_static_D='-static'
12149
12150 case $host_os in
12151 aix*)
12152 # All AIX code is PIC.
12153 if test "$host_cpu" = ia64; then
12154 # AIX 5 now supports IA64 processor
12155 lt_prog_compiler_static_D='-Bstatic'
12156 fi
12157 lt_prog_compiler_pic_D='-fPIC'
12158 ;;
12159
12160 amigaos*)
12161 case $host_cpu in
12162 powerpc)
12163 # see comment about AmigaOS4 .so support
12164 lt_prog_compiler_pic_D='-fPIC'
12165 ;;
12166 m68k)
12167 # FIXME: we need at least 68020 code to build shared libraries, but
12168 # adding the `-m68020' flag to GCC prevents building anything better,
12169 # like `-m68040'.
12170 lt_prog_compiler_pic_D='-m68020 -resident32 -malways-restore-a4'
12171 ;;
12172 esac
12173 ;;
12174
12175 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12176 # PIC is the default for these OSes.
12177 ;;
12178
12179 mingw* | cygwin* | pw32* | os2* | cegcc*)
12180 # This hack is so that the source file can tell whether it is being
12181 # built for inclusion in a dll (and should export symbols for example).
12182 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12183 # (--disable-auto-import) libraries
12184 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12185 ;;
12186
12187 darwin* | rhapsody*)
12188 # PIC is the default on this platform
12189 # Common symbols not allowed in MH_DYLIB files
12190 lt_prog_compiler_pic_D='-fno-common'
12191 ;;
12192
12193 haiku*)
12194 # PIC is the default for Haiku.
12195 # The "-static" flag exists, but is broken.
12196 lt_prog_compiler_static_D=
12197 ;;
12198
12199 hpux*)
12200 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12201 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12202 # sets the default TLS model and affects inlining.
12203 case $host_cpu in
12204 hppa*64*)
12205 # +Z the default
12206 ;;
12207 *)
12208 lt_prog_compiler_pic_D='-fPIC'
12209 ;;
12210 esac
12211 ;;
12212
12213 interix[3-9]*)
12214 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12215 # Instead, we relocate shared libraries at runtime.
12216 ;;
12217
12218 msdosdjgpp*)
12219 # Just because we use GCC doesn't mean we suddenly get shared libraries
12220 # on systems that don't support them.
12221 lt_prog_compiler_can_build_shared_D=no
12222 enable_shared=no
12223 ;;
12224
12225 *nto* | *qnx*)
12226 # QNX uses GNU C++, but need to define -shared option too, otherwise
12227 # it will coredump.
12228 lt_prog_compiler_pic_D='-fPIC -shared'
12229 ;;
12230
12231 sysv4*MP*)
12232 if test -d /usr/nec; then
12233 lt_prog_compiler_pic_D=-Kconform_pic
12234 fi
12235 ;;
12236
12237 *)
12238 lt_prog_compiler_pic_D='-fPIC'
12239 ;;
12240 esac
12241
12242 case $cc_basename in
12243 nvcc*) # Cuda Compiler Driver 2.2
12244 lt_prog_compiler_wl_D='-Xlinker '
12245 lt_prog_compiler_pic_D='-Xcompiler -fPIC'
12246 ;;
12247 esac
12248 else
12249 # PORTME Check for flag to pass linker flags through the system compiler.
12250 case $host_os in
12251 aix*)
12252 lt_prog_compiler_wl_D='-Wl,'
12253 if test "$host_cpu" = ia64; then
12254 # AIX 5 now supports IA64 processor
12255 lt_prog_compiler_static_D='-Bstatic'
12256 else
12257 lt_prog_compiler_static_D='-bnso -bI:/lib/syscalls.exp'
12258 fi
12259 ;;
12260
12261 mingw* | cygwin* | pw32* | os2* | cegcc*)
12262 # This hack is so that the source file can tell whether it is being
12263 # built for inclusion in a dll (and should export symbols for example).
12264 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12265 ;;
12266
12267 hpux9* | hpux10* | hpux11*)
12268 lt_prog_compiler_wl_D='-Wl,'
12269 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12270 # not for PA HP-UX.
12271 case $host_cpu in
12272 hppa*64*|ia64*)
12273 # +Z the default
12274 ;;
12275 *)
12276 lt_prog_compiler_pic_D='+Z'
12277 ;;
12278 esac
12279 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12280 lt_prog_compiler_static_D='${wl}-a ${wl}archive'
12281 ;;
12282
12283 irix5* | irix6* | nonstopux*)
12284 lt_prog_compiler_wl_D='-Wl,'
12285 # PIC (with -KPIC) is the default.
12286 lt_prog_compiler_static_D='-non_shared'
12287 ;;
12288
12289 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12290 case $cc_basename in
12291 # old Intel for x86_64 which still supported -KPIC.
12292 ecc*)
12293 lt_prog_compiler_wl_D='-Wl,'
12294 lt_prog_compiler_pic_D='-KPIC'
12295 lt_prog_compiler_static_D='-static'
12296 ;;
12297 # icc used to be incompatible with GCC.
12298 # ICC 10 doesn't accept -KPIC any more.
12299 icc* | ifort*)
12300 lt_prog_compiler_wl_D='-Wl,'
12301 lt_prog_compiler_pic_D='-fPIC'
12302 lt_prog_compiler_static_D='-static'
12303 ;;
12304 # Lahey Fortran 8.1.
12305 lf95*)
12306 lt_prog_compiler_wl_D='-Wl,'
12307 lt_prog_compiler_pic_D='--shared'
12308 lt_prog_compiler_static_D='--static'
12309 ;;
12310 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12311 # Portland Group compilers (*not* the Pentium gcc compiler,
12312 # which looks to be a dead project)
12313 lt_prog_compiler_wl_D='-Wl,'
12314 lt_prog_compiler_pic_D='-fpic'
12315 lt_prog_compiler_static_D='-Bstatic'
12316 ;;
12317 ccc*)
12318 lt_prog_compiler_wl_D='-Wl,'
12319 # All Alpha code is PIC.
12320 lt_prog_compiler_static_D='-non_shared'
12321 ;;
12322 xl* | bgxl* | bgf* | mpixl*)
12323 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12324 lt_prog_compiler_wl_D='-Wl,'
12325 lt_prog_compiler_pic_D='-qpic'
12326 lt_prog_compiler_static_D='-qstaticlink'
12327 ;;
12328 *)
12329 case `$CC -V 2>&1 | sed 5q` in
12330 *Sun\ F* | *Sun*Fortran*)
12331 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12332 lt_prog_compiler_pic_D='-KPIC'
12333 lt_prog_compiler_static_D='-Bstatic'
12334 lt_prog_compiler_wl_D=''
12335 ;;
12336 *Sun\ C*)
12337 # Sun C 5.9
12338 lt_prog_compiler_pic_D='-KPIC'
12339 lt_prog_compiler_static_D='-Bstatic'
12340 lt_prog_compiler_wl_D='-Wl,'
12341 ;;
12342 esac
12343 ;;
12344 esac
12345 ;;
12346
12347 newsos6)
12348 lt_prog_compiler_pic_D='-KPIC'
12349 lt_prog_compiler_static_D='-Bstatic'
12350 ;;
12351
12352 *nto* | *qnx*)
12353 # QNX uses GNU C++, but need to define -shared option too, otherwise
12354 # it will coredump.
12355 lt_prog_compiler_pic_D='-fPIC -shared'
12356 ;;
12357
12358 osf3* | osf4* | osf5*)
12359 lt_prog_compiler_wl_D='-Wl,'
12360 # All OSF/1 code is PIC.
12361 lt_prog_compiler_static_D='-non_shared'
12362 ;;
12363
12364 rdos*)
12365 lt_prog_compiler_static_D='-non_shared'
12366 ;;
12367
12368 solaris*)
12369 lt_prog_compiler_pic_D='-KPIC'
12370 lt_prog_compiler_static_D='-Bstatic'
12371 case $cc_basename in
12372 f77* | f90* | f95*)
12373 lt_prog_compiler_wl_D='-Qoption ld ';;
12374 *)
12375 lt_prog_compiler_wl_D='-Wl,';;
12376 esac
12377 ;;
12378
12379 sunos4*)
12380 lt_prog_compiler_wl_D='-Qoption ld '
12381 lt_prog_compiler_pic_D='-PIC'
12382 lt_prog_compiler_static_D='-Bstatic'
12383 ;;
12384
12385 sysv4 | sysv4.2uw2* | sysv4.3*)
12386 lt_prog_compiler_wl_D='-Wl,'
12387 lt_prog_compiler_pic_D='-KPIC'
12388 lt_prog_compiler_static_D='-Bstatic'
12389 ;;
12390
12391 sysv4*MP*)
12392 if test -d /usr/nec ;then
12393 lt_prog_compiler_pic_D='-Kconform_pic'
12394 lt_prog_compiler_static_D='-Bstatic'
12395 fi
12396 ;;
12397
12398 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12399 lt_prog_compiler_wl_D='-Wl,'
12400 lt_prog_compiler_pic_D='-KPIC'
12401 lt_prog_compiler_static_D='-Bstatic'
12402 ;;
12403
12404 unicos*)
12405 lt_prog_compiler_wl_D='-Wl,'
12406 lt_prog_compiler_can_build_shared_D=no
12407 ;;
12408
12409 uts4*)
12410 lt_prog_compiler_pic_D='-pic'
12411 lt_prog_compiler_static_D='-Bstatic'
12412 ;;
12413
12414 *)
12415 lt_prog_compiler_can_build_shared_D=no
12416 ;;
12417 esac
12418 fi
12419
12420 case $host_os in
12421 # For platforms which do not support PIC, -DPIC is meaningless:
12422 *djgpp*)
12423 lt_prog_compiler_pic_D=
12424 ;;
12425 *)
12426 lt_prog_compiler_pic_D="$lt_prog_compiler_pic_D"
12427 ;;
12428 esac
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_D" >&5
12430 $as_echo "$lt_prog_compiler_pic_D" >&6; }
12431
12432
12433
12434 #
12435 # Check to make sure the PIC flag actually works.
12436 #
12437 if test -n "$lt_prog_compiler_pic_D"; then
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_D works" >&5
12439 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_D works... " >&6; }
12440 if ${lt_cv_prog_compiler_pic_works_D+:} false; then :
12441 $as_echo_n "(cached) " >&6
12442 else
12443 lt_cv_prog_compiler_pic_works_D=no
12444 ac_outfile=conftest.$ac_objext
12445 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12446 lt_compiler_flag="$lt_prog_compiler_pic_D"
12447 # Insert the option either (1) after the last *FLAGS variable, or
12448 # (2) before a word containing "conftest.", or (3) at the end.
12449 # Note that $ac_compile itself does not contain backslashes and begins
12450 # with a dollar sign (not a hyphen), so the echo should work correctly.
12451 # The option is referenced via a variable to avoid confusing sed.
12452 lt_compile=`echo "$ac_compile" | $SED \
12453 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12454 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12455 -e 's:$: $lt_compiler_flag:'`
12456 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12457 (eval "$lt_compile" 2>conftest.err)
12458 ac_status=$?
12459 cat conftest.err >&5
12460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461 if (exit $ac_status) && test -s "$ac_outfile"; then
12462 # The compiler can only warn and ignore the option if not recognized
12463 # So say no if there are warnings other than the usual output.
12464 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12465 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12466 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12467 lt_cv_prog_compiler_pic_works_D=yes
12468 fi
12469 fi
12470 $RM conftest*
12471
12472 fi
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_D" >&5
12474 $as_echo "$lt_cv_prog_compiler_pic_works_D" >&6; }
12475
12476 if test x"$lt_cv_prog_compiler_pic_works_D" = xyes; then
12477 case $lt_prog_compiler_pic_D in
12478 "" | " "*) ;;
12479 *) lt_prog_compiler_pic_D=" $lt_prog_compiler_pic_D" ;;
12480 esac
12481 else
12482 lt_prog_compiler_pic_D=
12483 lt_prog_compiler_can_build_shared_D=no
12484 fi
12485
12486 fi
12487
12488
12489
12490 #
12491 # Check to make sure the static flag actually works.
12492 #
12493 wl=$lt_prog_compiler_wl_D eval lt_tmp_static_flag=\"$lt_prog_compiler_static_D\"
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12495 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12496 if ${lt_cv_prog_compiler_static_works_D+:} false; then :
12497 $as_echo_n "(cached) " >&6
12498 else
12499 lt_cv_prog_compiler_static_works_D=no
12500 save_LDFLAGS="$LDFLAGS"
12501 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12502 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12503 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12504 # The linker can only warn and ignore the option if not recognized
12505 # So say no if there are warnings
12506 if test -s conftest.err; then
12507 # Append any errors to the config.log.
12508 cat conftest.err 1>&5
12509 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12510 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12511 if diff conftest.exp conftest.er2 >/dev/null; then
12512 lt_cv_prog_compiler_static_works_D=yes
12513 fi
12514 else
12515 lt_cv_prog_compiler_static_works_D=yes
12516 fi
12517 fi
12518 $RM -r conftest*
12519 LDFLAGS="$save_LDFLAGS"
12520
12521 fi
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_D" >&5
12523 $as_echo "$lt_cv_prog_compiler_static_works_D" >&6; }
12524
12525 if test x"$lt_cv_prog_compiler_static_works_D" = xyes; then
12526 :
12527 else
12528 lt_prog_compiler_static_D=
12529 fi
12530
12531
12532
12533
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12535 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12536 if ${lt_cv_prog_compiler_c_o_D+:} false; then :
12537 $as_echo_n "(cached) " >&6
12538 else
12539 lt_cv_prog_compiler_c_o_D=no
12540 $RM -r conftest 2>/dev/null
12541 mkdir conftest
12542 cd conftest
12543 mkdir out
12544 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12545
12546 lt_compiler_flag="-o out/conftest2.$ac_objext"
12547 # Insert the option either (1) after the last *FLAGS variable, or
12548 # (2) before a word containing "conftest.", or (3) at the end.
12549 # Note that $ac_compile itself does not contain backslashes and begins
12550 # with a dollar sign (not a hyphen), so the echo should work correctly.
12551 lt_compile=`echo "$ac_compile" | $SED \
12552 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12553 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12554 -e 's:$: $lt_compiler_flag:'`
12555 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12556 (eval "$lt_compile" 2>out/conftest.err)
12557 ac_status=$?
12558 cat out/conftest.err >&5
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12561 then
12562 # The compiler can only warn and ignore the option if not recognized
12563 # So say no if there are warnings
12564 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12565 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12566 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12567 lt_cv_prog_compiler_c_o_D=yes
12568 fi
12569 fi
12570 chmod u+w . 2>&5
12571 $RM conftest*
12572 # SGI C++ compiler will create directory out/ii_files/ for
12573 # template instantiation
12574 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12575 $RM out/* && rmdir out
12576 cd ..
12577 $RM -r conftest
12578 $RM conftest*
12579
12580 fi
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12582 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12583
12584
12585
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12587 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12588 if ${lt_cv_prog_compiler_c_o_D+:} false; then :
12589 $as_echo_n "(cached) " >&6
12590 else
12591 lt_cv_prog_compiler_c_o_D=no
12592 $RM -r conftest 2>/dev/null
12593 mkdir conftest
12594 cd conftest
12595 mkdir out
12596 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12597
12598 lt_compiler_flag="-o out/conftest2.$ac_objext"
12599 # Insert the option either (1) after the last *FLAGS variable, or
12600 # (2) before a word containing "conftest.", or (3) at the end.
12601 # Note that $ac_compile itself does not contain backslashes and begins
12602 # with a dollar sign (not a hyphen), so the echo should work correctly.
12603 lt_compile=`echo "$ac_compile" | $SED \
12604 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12605 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12606 -e 's:$: $lt_compiler_flag:'`
12607 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12608 (eval "$lt_compile" 2>out/conftest.err)
12609 ac_status=$?
12610 cat out/conftest.err >&5
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12613 then
12614 # The compiler can only warn and ignore the option if not recognized
12615 # So say no if there are warnings
12616 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12617 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12618 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12619 lt_cv_prog_compiler_c_o_D=yes
12620 fi
12621 fi
12622 chmod u+w . 2>&5
12623 $RM conftest*
12624 # SGI C++ compiler will create directory out/ii_files/ for
12625 # template instantiation
12626 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12627 $RM out/* && rmdir out
12628 cd ..
12629 $RM -r conftest
12630 $RM conftest*
12631
12632 fi
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12634 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12635
12636
12637
12638
12639 hard_links="nottested"
12640 if test "$lt_cv_prog_compiler_c_o_D" = no && test "$need_locks" != no; then
12641 # do not overwrite the value of need_locks provided by the user
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12643 $as_echo_n "checking if we can lock with hard links... " >&6; }
12644 hard_links=yes
12645 $RM conftest*
12646 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12647 touch conftest.a
12648 ln conftest.a conftest.b 2>&5 || hard_links=no
12649 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12651 $as_echo "$hard_links" >&6; }
12652 if test "$hard_links" = no; then
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12654 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12655 need_locks=warn
12656 fi
12657 else
12658 need_locks=no
12659 fi
12660
12661
12662
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12664 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12665
12666 runpath_var=
12667 allow_undefined_flag_D=
12668 always_export_symbols_D=no
12669 archive_cmds_D=
12670 archive_expsym_cmds_D=
12671 compiler_needs_object_D=no
12672 enable_shared_with_static_runtimes_D=no
12673 export_dynamic_flag_spec_D=
12674 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12675 hardcode_automatic_D=no
12676 hardcode_direct_D=no
12677 hardcode_direct_absolute_D=no
12678 hardcode_libdir_flag_spec_D=
12679 hardcode_libdir_flag_spec_ld_D=
12680 hardcode_libdir_separator_D=
12681 hardcode_minus_L_D=no
12682 hardcode_shlibpath_var_D=unsupported
12683 inherit_rpath_D=no
12684 link_all_deplibs_D=unknown
12685 module_cmds_D=
12686 module_expsym_cmds_D=
12687 old_archive_from_new_cmds_D=
12688 old_archive_from_expsyms_cmds_D=
12689 thread_safe_flag_spec_D=
12690 whole_archive_flag_spec_D=
12691 # include_expsyms should be a list of space-separated symbols to be *always*
12692 # included in the symbol list
12693 include_expsyms_D=
12694 # exclude_expsyms can be an extended regexp of symbols to exclude
12695 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12696 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12697 # as well as any symbol that contains `d'.
12698 exclude_expsyms_D='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12699 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12700 # platforms (ab)use it in PIC code, but their linkers get confused if
12701 # the symbol is explicitly referenced. Since portable code cannot
12702 # rely on this symbol name, it's probably fine to never include it in
12703 # preloaded symbol tables.
12704 # Exclude shared library initialization/finalization symbols.
12705 extract_expsyms_cmds=
12706
12707 case $host_os in
12708 cygwin* | mingw* | pw32* | cegcc*)
12709 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12710 # When not using gcc, we currently assume that we are using
12711 # Microsoft Visual C++.
12712 if test "$GCC" != yes; then
12713 with_gnu_ld=no
12714 fi
12715 ;;
12716 interix*)
12717 # we just hope/assume this is gcc and not c89 (= MSVC++)
12718 with_gnu_ld=yes
12719 ;;
12720 openbsd*)
12721 with_gnu_ld=no
12722 ;;
12723 esac
12724
12725 ld_shlibs_D=yes
12726
12727 # On some targets, GNU ld is compatible enough with the native linker
12728 # that we're better off using the native interface for both.
12729 lt_use_gnu_ld_interface=no
12730 if test "$with_gnu_ld" = yes; then
12731 case $host_os in
12732 aix*)
12733 # The AIX port of GNU ld has always aspired to compatibility
12734 # with the native linker. However, as the warning in the GNU ld
12735 # block says, versions before 2.19.5* couldn't really create working
12736 # shared libraries, regardless of the interface used.
12737 case `$LD -v 2>&1` in
12738 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12739 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12740 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12741 *)
12742 lt_use_gnu_ld_interface=yes
12743 ;;
12744 esac
12745 ;;
12746 *)
12747 lt_use_gnu_ld_interface=yes
12748 ;;
12749 esac
12750 fi
12751
12752 if test "$lt_use_gnu_ld_interface" = yes; then
12753 # If archive_cmds runs LD, not CC, wlarc should be empty
12754 wlarc='${wl}'
12755
12756 # Set some defaults for GNU ld with shared library support. These
12757 # are reset later if shared libraries are not supported. Putting them
12758 # here allows them to be overridden if necessary.
12759 runpath_var=LD_RUN_PATH
12760 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12761 export_dynamic_flag_spec_D='${wl}--export-dynamic'
12762 # ancient GNU ld didn't support --whole-archive et. al.
12763 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12764 whole_archive_flag_spec_D="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12765 else
12766 whole_archive_flag_spec_D=
12767 fi
12768 supports_anon_versioning=no
12769 case `$LD -v 2>&1` in
12770 *GNU\ gold*) supports_anon_versioning=yes ;;
12771 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12772 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12773 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12774 *\ 2.11.*) ;; # other 2.11 versions
12775 *) supports_anon_versioning=yes ;;
12776 esac
12777
12778 # See if GNU ld supports shared libraries.
12779 case $host_os in
12780 aix[3-9]*)
12781 # On AIX/PPC, the GNU linker is very broken
12782 if test "$host_cpu" != ia64; then
12783 ld_shlibs_D=no
12784 cat <<_LT_EOF 1>&2
12785
12786 *** Warning: the GNU linker, at least up to release 2.19, is reported
12787 *** to be unable to reliably create shared libraries on AIX.
12788 *** Therefore, libtool is disabling shared libraries support. If you
12789 *** really care for shared libraries, you may want to install binutils
12790 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12791 *** You will then need to restart the configuration process.
12792
12793 _LT_EOF
12794 fi
12795 ;;
12796
12797 amigaos*)
12798 case $host_cpu in
12799 powerpc)
12800 # see comment about AmigaOS4 .so support
12801 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12802 archive_expsym_cmds_D=''
12803 ;;
12804 m68k)
12805 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)'
12806 hardcode_libdir_flag_spec_D='-L$libdir'
12807 hardcode_minus_L_D=yes
12808 ;;
12809 esac
12810 ;;
12811
12812 beos*)
12813 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12814 allow_undefined_flag_D=unsupported
12815 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12816 # support --undefined. This deserves some investigation. FIXME
12817 archive_cmds_D='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12818 else
12819 ld_shlibs_D=no
12820 fi
12821 ;;
12822
12823 cygwin* | mingw* | pw32* | cegcc*)
12824 # _LT_TAGVAR(hardcode_libdir_flag_spec, D) is actually meaningless,
12825 # as there is no search path for DLLs.
12826 hardcode_libdir_flag_spec_D='-L$libdir'
12827 export_dynamic_flag_spec_D='${wl}--export-all-symbols'
12828 allow_undefined_flag_D=unsupported
12829 always_export_symbols_D=no
12830 enable_shared_with_static_runtimes_D=yes
12831 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12832
12833 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12834 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12835 # If the export-symbols file already is a .def file (1st line
12836 # is EXPORTS), use it as is; otherwise, prepend...
12837 archive_expsym_cmds_D='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12838 cp $export_symbols $output_objdir/$soname.def;
12839 else
12840 echo EXPORTS > $output_objdir/$soname.def;
12841 cat $export_symbols >> $output_objdir/$soname.def;
12842 fi~
12843 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12844 else
12845 ld_shlibs_D=no
12846 fi
12847 ;;
12848
12849 haiku*)
12850 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12851 link_all_deplibs_D=yes
12852 ;;
12853
12854 interix[3-9]*)
12855 hardcode_direct_D=no
12856 hardcode_shlibpath_var_D=no
12857 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
12858 export_dynamic_flag_spec_D='${wl}-E'
12859 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12860 # Instead, shared libraries are loaded at an image base (0x10000000 by
12861 # default) and relocated if they conflict, which is a slow very memory
12862 # consuming and fragmenting process. To avoid this, we pick a random,
12863 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12864 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12865 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'
12866 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'
12867 ;;
12868
12869 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
12870 tmp_diet=no
12871 if test "$host_os" = linux-dietlibc; then
12872 case $cc_basename in
12873 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12874 esac
12875 fi
12876 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12877 && test "$tmp_diet" = no
12878 then
12879 tmp_addflag=' $pic_flag'
12880 tmp_sharedflag='-shared'
12881 case $cc_basename,$host_cpu in
12882 pgcc*) # Portland Group C compiler
12883 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'
12884 tmp_addflag=' $pic_flag'
12885 ;;
12886 pgf77* | pgf90* | pgf95* | pgfortran*)
12887 # Portland Group f77 and f90 compilers
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 -Mnomain' ;;
12890 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12891 tmp_addflag=' -i_dynamic' ;;
12892 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12893 tmp_addflag=' -i_dynamic -nofor_main' ;;
12894 ifc* | ifort*) # Intel Fortran compiler
12895 tmp_addflag=' -nofor_main' ;;
12896 lf95*) # Lahey Fortran 8.1
12897 whole_archive_flag_spec_D=
12898 tmp_sharedflag='--shared' ;;
12899 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12900 tmp_sharedflag='-qmkshrobj'
12901 tmp_addflag= ;;
12902 nvcc*) # Cuda Compiler Driver 2.2
12903 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'
12904 compiler_needs_object_D=yes
12905 ;;
12906 esac
12907 case `$CC -V 2>&1 | sed 5q` in
12908 *Sun\ C*) # Sun C 5.9
12909 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'
12910 compiler_needs_object_D=yes
12911 tmp_sharedflag='-G' ;;
12912 *Sun\ F*) # Sun Fortran 8.3
12913 tmp_sharedflag='-G' ;;
12914 esac
12915 archive_cmds_D='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12916
12917 if test "x$supports_anon_versioning" = xyes; then
12918 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
12919 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12920 echo "local: *; };" >> $output_objdir/$libname.ver~
12921 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12922 fi
12923
12924 case $cc_basename in
12925 xlf* | bgf* | bgxlf* | mpixlf*)
12926 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12927 whole_archive_flag_spec_D='--whole-archive$convenience --no-whole-archive'
12928 hardcode_libdir_flag_spec_D=
12929 hardcode_libdir_flag_spec_ld_D='-rpath $libdir'
12930 archive_cmds_D='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12931 if test "x$supports_anon_versioning" = xyes; then
12932 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
12933 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12934 echo "local: *; };" >> $output_objdir/$libname.ver~
12935 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12936 fi
12937 ;;
12938 esac
12939 else
12940 ld_shlibs_D=no
12941 fi
12942 ;;
12943
12944 netbsd*)
12945 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12946 archive_cmds_D='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12947 wlarc=
12948 else
12949 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12950 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12951 fi
12952 ;;
12953
12954 solaris*)
12955 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12956 ld_shlibs_D=no
12957 cat <<_LT_EOF 1>&2
12958
12959 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12960 *** create shared libraries on Solaris systems. Therefore, libtool
12961 *** is disabling shared libraries support. We urge you to upgrade GNU
12962 *** binutils to release 2.9.1 or newer. Another option is to modify
12963 *** your PATH or compiler configuration so that the native linker is
12964 *** used, and then restart.
12965
12966 _LT_EOF
12967 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12968 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12969 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12970 else
12971 ld_shlibs_D=no
12972 fi
12973 ;;
12974
12975 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12976 case `$LD -v 2>&1` in
12977 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12978 ld_shlibs_D=no
12979 cat <<_LT_EOF 1>&2
12980
12981 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12982 *** reliably create shared libraries on SCO systems. Therefore, libtool
12983 *** is disabling shared libraries support. We urge you to upgrade GNU
12984 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12985 *** your PATH or compiler configuration so that the native linker is
12986 *** used, and then restart.
12987
12988 _LT_EOF
12989 ;;
12990 *)
12991 # For security reasons, it is highly recommended that you always
12992 # use absolute paths for naming shared libraries, and exclude the
12993 # DT_RUNPATH tag from executables and libraries. But doing so
12994 # requires that you compile everything twice, which is a pain.
12995 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12996 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12997 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12998 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12999 else
13000 ld_shlibs_D=no
13001 fi
13002 ;;
13003 esac
13004 ;;
13005
13006 sunos4*)
13007 archive_cmds_D='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13008 wlarc=
13009 hardcode_direct_D=yes
13010 hardcode_shlibpath_var_D=no
13011 ;;
13012
13013 *)
13014 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13015 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13016 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13017 else
13018 ld_shlibs_D=no
13019 fi
13020 ;;
13021 esac
13022
13023 if test "$ld_shlibs_D" = no; then
13024 runpath_var=
13025 hardcode_libdir_flag_spec_D=
13026 export_dynamic_flag_spec_D=
13027 whole_archive_flag_spec_D=
13028 fi
13029 else
13030 # PORTME fill in a description of your system's linker (not GNU ld)
13031 case $host_os in
13032 aix3*)
13033 allow_undefined_flag_D=unsupported
13034 always_export_symbols_D=yes
13035 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'
13036 # Note: this linker hardcodes the directories in LIBPATH if there
13037 # are no directories specified by -L.
13038 hardcode_minus_L_D=yes
13039 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13040 # Neither direct hardcoding nor static linking is supported with a
13041 # broken collect2.
13042 hardcode_direct_D=unsupported
13043 fi
13044 ;;
13045
13046 aix[4-9]*)
13047 if test "$host_cpu" = ia64; then
13048 # On IA64, the linker does run time linking by default, so we don't
13049 # have to do anything special.
13050 aix_use_runtimelinking=no
13051 exp_sym_flag='-Bexport'
13052 no_entry_flag=""
13053 else
13054 # If we're using GNU nm, then we don't want the "-C" option.
13055 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13056 # Also, AIX nm treats weak defined symbols like other global
13057 # defined symbols, whereas GNU nm marks them as "W".
13058 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13059 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'
13060 else
13061 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'
13062 fi
13063 aix_use_runtimelinking=no
13064
13065 # Test if we are trying to use run time linking or normal
13066 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13067 # need to do runtime linking.
13068 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13069 for ld_flag in $LDFLAGS; do
13070 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13071 aix_use_runtimelinking=yes
13072 break
13073 fi
13074 done
13075 ;;
13076 esac
13077
13078 exp_sym_flag='-bexport'
13079 no_entry_flag='-bnoentry'
13080 fi
13081
13082 # When large executables or shared objects are built, AIX ld can
13083 # have problems creating the table of contents. If linking a library
13084 # or program results in "error TOC overflow" add -mminimal-toc to
13085 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13086 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13087
13088 archive_cmds_D=''
13089 hardcode_direct_D=yes
13090 hardcode_direct_absolute_D=yes
13091 hardcode_libdir_separator_D=':'
13092 link_all_deplibs_D=yes
13093 file_list_spec_D='${wl}-f,'
13094
13095 if test "$GCC" = yes; then
13096 case $host_os in aix4.[012]|aix4.[012].*)
13097 # We only want to do this on AIX 4.2 and lower, the check
13098 # below for broken collect2 doesn't work under 4.3+
13099 collect2name=`${CC} -print-prog-name=collect2`
13100 if test -f "$collect2name" &&
13101 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13102 then
13103 # We have reworked collect2
13104 :
13105 else
13106 # We have old collect2
13107 hardcode_direct_D=unsupported
13108 # It fails to find uninstalled libraries when the uninstalled
13109 # path is not listed in the libpath. Setting hardcode_minus_L
13110 # to unsupported forces relinking
13111 hardcode_minus_L_D=yes
13112 hardcode_libdir_flag_spec_D='-L$libdir'
13113 hardcode_libdir_separator_D=
13114 fi
13115 ;;
13116 esac
13117 shared_flag='-shared'
13118 if test "$aix_use_runtimelinking" = yes; then
13119 shared_flag="$shared_flag "'${wl}-G'
13120 fi
13121 else
13122 # not using gcc
13123 if test "$host_cpu" = ia64; then
13124 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13125 # chokes on -Wl,-G. The following line is correct:
13126 shared_flag='-G'
13127 else
13128 if test "$aix_use_runtimelinking" = yes; then
13129 shared_flag='${wl}-G'
13130 else
13131 shared_flag='${wl}-bM:SRE'
13132 fi
13133 fi
13134 fi
13135
13136 export_dynamic_flag_spec_D='${wl}-bexpall'
13137 # It seems that -bexpall does not export symbols beginning with
13138 # underscore (_), so it is better to generate a list of symbols to export.
13139 always_export_symbols_D=yes
13140 if test "$aix_use_runtimelinking" = yes; then
13141 # Warning - without using the other runtime loading flags (-brtl),
13142 # -berok will link without error, but may produce a broken library.
13143 allow_undefined_flag_D='-berok'
13144 # Determine the default libpath from the value encoded in an
13145 # empty executable.
13146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13147 /* end confdefs.h. */
13148
13149 int
13150 main ()
13151 {
13152
13153 ;
13154 return 0;
13155 }
13156 _ACEOF
13157 if ac_fn_c_try_link "$LINENO"; then :
13158
13159 lt_aix_libpath_sed='
13160 /Import File Strings/,/^$/ {
13161 /^0/ {
13162 s/^0 *\(.*\)$/\1/
13163 p
13164 }
13165 }'
13166 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13167 # Check for a 64-bit object if we didn't find anything.
13168 if test -z "$aix_libpath"; then
13169 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13170 fi
13171 fi
13172 rm -f core conftest.err conftest.$ac_objext \
13173 conftest$ac_exeext conftest.$ac_ext
13174 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13175
13176 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13177 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"
13178 else
13179 if test "$host_cpu" = ia64; then
13180 hardcode_libdir_flag_spec_D='${wl}-R $libdir:/usr/lib:/lib'
13181 allow_undefined_flag_D="-z nodefs"
13182 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"
13183 else
13184 # Determine the default libpath from the value encoded in an
13185 # empty executable.
13186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13187 /* end confdefs.h. */
13188
13189 int
13190 main ()
13191 {
13192
13193 ;
13194 return 0;
13195 }
13196 _ACEOF
13197 if ac_fn_c_try_link "$LINENO"; then :
13198
13199 lt_aix_libpath_sed='
13200 /Import File Strings/,/^$/ {
13201 /^0/ {
13202 s/^0 *\(.*\)$/\1/
13203 p
13204 }
13205 }'
13206 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13207 # Check for a 64-bit object if we didn't find anything.
13208 if test -z "$aix_libpath"; then
13209 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13210 fi
13211 fi
13212 rm -f core conftest.err conftest.$ac_objext \
13213 conftest$ac_exeext conftest.$ac_ext
13214 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13215
13216 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13217 # Warning - without using the other run time loading flags,
13218 # -berok will link without error, but may produce a broken library.
13219 no_undefined_flag_D=' ${wl}-bernotok'
13220 allow_undefined_flag_D=' ${wl}-berok'
13221 if test "$with_gnu_ld" = yes; then
13222 # We only use this code for GNU lds that support --whole-archive.
13223 whole_archive_flag_spec_D='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13224 else
13225 # Exported symbols can be pulled into shared objects from archives
13226 whole_archive_flag_spec_D='$convenience'
13227 fi
13228 archive_cmds_need_lc_D=yes
13229 # This is similar to how AIX traditionally builds its shared libraries.
13230 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'
13231 fi
13232 fi
13233 ;;
13234
13235 amigaos*)
13236 case $host_cpu in
13237 powerpc)
13238 # see comment about AmigaOS4 .so support
13239 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13240 archive_expsym_cmds_D=''
13241 ;;
13242 m68k)
13243 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)'
13244 hardcode_libdir_flag_spec_D='-L$libdir'
13245 hardcode_minus_L_D=yes
13246 ;;
13247 esac
13248 ;;
13249
13250 bsdi[45]*)
13251 export_dynamic_flag_spec_D=-rdynamic
13252 ;;
13253
13254 cygwin* | mingw* | pw32* | cegcc*)
13255 # When not using gcc, we currently assume that we are using
13256 # Microsoft Visual C++.
13257 # hardcode_libdir_flag_spec is actually meaningless, as there is
13258 # no search path for DLLs.
13259 hardcode_libdir_flag_spec_D=' '
13260 allow_undefined_flag_D=unsupported
13261 # Tell ltmain to make .lib files, not .a files.
13262 libext=lib
13263 # Tell ltmain to make .dll files, not .so files.
13264 shrext_cmds=".dll"
13265 # FIXME: Setting linknames here is a bad hack.
13266 archive_cmds_D='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13267 # The linker will automatically build a .lib file if we build a DLL.
13268 old_archive_from_new_cmds_D='true'
13269 # FIXME: Should let the user specify the lib program.
13270 old_archive_cmds_D='lib -OUT:$oldlib$oldobjs$old_deplibs'
13271 fix_srcfile_path_D='`cygpath -w "$srcfile"`'
13272 enable_shared_with_static_runtimes_D=yes
13273 ;;
13274
13275 darwin* | rhapsody*)
13276
13277
13278 archive_cmds_need_lc_D=no
13279 hardcode_direct_D=no
13280 hardcode_automatic_D=yes
13281 hardcode_shlibpath_var_D=unsupported
13282 if test "$lt_cv_ld_force_load" = "yes"; then
13283 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\"`'
13284 else
13285 whole_archive_flag_spec_D=''
13286 fi
13287 link_all_deplibs_D=yes
13288 allow_undefined_flag_D="$_lt_dar_allow_undefined"
13289 case $cc_basename in
13290 ifort*) _lt_dar_can_shared=yes ;;
13291 *) _lt_dar_can_shared=$GCC ;;
13292 esac
13293 if test "$_lt_dar_can_shared" = "yes"; then
13294 output_verbose_link_cmd=func_echo_all
13295 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}"
13296 module_cmds_D="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13297 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}"
13298 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}"
13299
13300 else
13301 ld_shlibs_D=no
13302 fi
13303
13304 ;;
13305
13306 dgux*)
13307 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13308 hardcode_libdir_flag_spec_D='-L$libdir'
13309 hardcode_shlibpath_var_D=no
13310 ;;
13311
13312 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13313 # support. Future versions do this automatically, but an explicit c++rt0.o
13314 # does not break anything, and helps significantly (at the cost of a little
13315 # extra space).
13316 freebsd2.2*)
13317 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13318 hardcode_libdir_flag_spec_D='-R$libdir'
13319 hardcode_direct_D=yes
13320 hardcode_shlibpath_var_D=no
13321 ;;
13322
13323 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13324 freebsd2.*)
13325 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13326 hardcode_direct_D=yes
13327 hardcode_minus_L_D=yes
13328 hardcode_shlibpath_var_D=no
13329 ;;
13330
13331 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13332 freebsd* | dragonfly*)
13333 archive_cmds_D='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13334 hardcode_libdir_flag_spec_D='-R$libdir'
13335 hardcode_direct_D=yes
13336 hardcode_shlibpath_var_D=no
13337 ;;
13338
13339 hpux9*)
13340 if test "$GCC" = yes; then
13341 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'
13342 else
13343 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'
13344 fi
13345 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13346 hardcode_libdir_separator_D=:
13347 hardcode_direct_D=yes
13348
13349 # hardcode_minus_L: Not really in the search PATH,
13350 # but as the default location of the library.
13351 hardcode_minus_L_D=yes
13352 export_dynamic_flag_spec_D='${wl}-E'
13353 ;;
13354
13355 hpux10*)
13356 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13357 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13358 else
13359 archive_cmds_D='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13360 fi
13361 if test "$with_gnu_ld" = no; then
13362 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13363 hardcode_libdir_flag_spec_ld_D='+b $libdir'
13364 hardcode_libdir_separator_D=:
13365 hardcode_direct_D=yes
13366 hardcode_direct_absolute_D=yes
13367 export_dynamic_flag_spec_D='${wl}-E'
13368 # hardcode_minus_L: Not really in the search PATH,
13369 # but as the default location of the library.
13370 hardcode_minus_L_D=yes
13371 fi
13372 ;;
13373
13374 hpux11*)
13375 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13376 case $host_cpu in
13377 hppa*64*)
13378 archive_cmds_D='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13379 ;;
13380 ia64*)
13381 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13382 ;;
13383 *)
13384 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13385 ;;
13386 esac
13387 else
13388 case $host_cpu in
13389 hppa*64*)
13390 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13391 ;;
13392 ia64*)
13393 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13394 ;;
13395 *)
13396 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13397 ;;
13398 esac
13399 fi
13400 if test "$with_gnu_ld" = no; then
13401 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13402 hardcode_libdir_separator_D=:
13403
13404 case $host_cpu in
13405 hppa*64*|ia64*)
13406 hardcode_direct_D=no
13407 hardcode_shlibpath_var_D=no
13408 ;;
13409 *)
13410 hardcode_direct_D=yes
13411 hardcode_direct_absolute_D=yes
13412 export_dynamic_flag_spec_D='${wl}-E'
13413
13414 # hardcode_minus_L: Not really in the search PATH,
13415 # but as the default location of the library.
13416 hardcode_minus_L_D=yes
13417 ;;
13418 esac
13419 fi
13420 ;;
13421
13422 irix5* | irix6* | nonstopux*)
13423 if test "$GCC" = yes; then
13424 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'
13425 # Try to use the -exported_symbol ld option, if it does not
13426 # work, assume that -exports_file does not work either and
13427 # implicitly export all symbols.
13428 save_LDFLAGS="$LDFLAGS"
13429 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13431 /* end confdefs.h. */
13432 int foo(void) {}
13433 _ACEOF
13434 if ac_fn_c_try_link "$LINENO"; then :
13435 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'
13436
13437 fi
13438 rm -f core conftest.err conftest.$ac_objext \
13439 conftest$ac_exeext conftest.$ac_ext
13440 LDFLAGS="$save_LDFLAGS"
13441 else
13442 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'
13443 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'
13444 fi
13445 archive_cmds_need_lc_D='no'
13446 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13447 hardcode_libdir_separator_D=:
13448 inherit_rpath_D=yes
13449 link_all_deplibs_D=yes
13450 ;;
13451
13452 netbsd*)
13453 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13454 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13455 else
13456 archive_cmds_D='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13457 fi
13458 hardcode_libdir_flag_spec_D='-R$libdir'
13459 hardcode_direct_D=yes
13460 hardcode_shlibpath_var_D=no
13461 ;;
13462
13463 newsos6)
13464 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13465 hardcode_direct_D=yes
13466 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13467 hardcode_libdir_separator_D=:
13468 hardcode_shlibpath_var_D=no
13469 ;;
13470
13471 *nto* | *qnx*)
13472 ;;
13473
13474 openbsd*)
13475 if test -f /usr/libexec/ld.so; then
13476 hardcode_direct_D=yes
13477 hardcode_shlibpath_var_D=no
13478 hardcode_direct_absolute_D=yes
13479 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13480 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13481 archive_expsym_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13482 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13483 export_dynamic_flag_spec_D='${wl}-E'
13484 else
13485 case $host_os in
13486 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13487 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13488 hardcode_libdir_flag_spec_D='-R$libdir'
13489 ;;
13490 *)
13491 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13492 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13493 ;;
13494 esac
13495 fi
13496 else
13497 ld_shlibs_D=no
13498 fi
13499 ;;
13500
13501 os2*)
13502 hardcode_libdir_flag_spec_D='-L$libdir'
13503 hardcode_minus_L_D=yes
13504 allow_undefined_flag_D=unsupported
13505 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'
13506 old_archive_from_new_cmds_D='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13507 ;;
13508
13509 osf3*)
13510 if test "$GCC" = yes; then
13511 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13512 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'
13513 else
13514 allow_undefined_flag_D=' -expect_unresolved \*'
13515 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'
13516 fi
13517 archive_cmds_need_lc_D='no'
13518 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13519 hardcode_libdir_separator_D=:
13520 ;;
13521
13522 osf4* | osf5*) # as osf3* with the addition of -msym flag
13523 if test "$GCC" = yes; then
13524 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13525 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'
13526 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13527 else
13528 allow_undefined_flag_D=' -expect_unresolved \*'
13529 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'
13530 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~
13531 $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'
13532
13533 # Both c and cxx compiler support -rpath directly
13534 hardcode_libdir_flag_spec_D='-rpath $libdir'
13535 fi
13536 archive_cmds_need_lc_D='no'
13537 hardcode_libdir_separator_D=:
13538 ;;
13539
13540 solaris*)
13541 no_undefined_flag_D=' -z defs'
13542 if test "$GCC" = yes; then
13543 wlarc='${wl}'
13544 archive_cmds_D='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13545 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13546 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13547 else
13548 case `$CC -V 2>&1` in
13549 *"Compilers 5.0"*)
13550 wlarc=''
13551 archive_cmds_D='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13552 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13553 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13554 ;;
13555 *)
13556 wlarc='${wl}'
13557 archive_cmds_D='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13558 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13559 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13560 ;;
13561 esac
13562 fi
13563 hardcode_libdir_flag_spec_D='-R$libdir'
13564 hardcode_shlibpath_var_D=no
13565 case $host_os in
13566 solaris2.[0-5] | solaris2.[0-5].*) ;;
13567 *)
13568 # The compiler driver will combine and reorder linker options,
13569 # but understands `-z linker_flag'. GCC discards it without `$wl',
13570 # but is careful enough not to reorder.
13571 # Supported since Solaris 2.6 (maybe 2.5.1?)
13572 if test "$GCC" = yes; then
13573 whole_archive_flag_spec_D='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13574 else
13575 whole_archive_flag_spec_D='-z allextract$convenience -z defaultextract'
13576 fi
13577 ;;
13578 esac
13579 link_all_deplibs_D=yes
13580 ;;
13581
13582 sunos4*)
13583 if test "x$host_vendor" = xsequent; then
13584 # Use $CC to link under sequent, because it throws in some extra .o
13585 # files that make .init and .fini sections work.
13586 archive_cmds_D='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13587 else
13588 archive_cmds_D='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13589 fi
13590 hardcode_libdir_flag_spec_D='-L$libdir'
13591 hardcode_direct_D=yes
13592 hardcode_minus_L_D=yes
13593 hardcode_shlibpath_var_D=no
13594 ;;
13595
13596 sysv4)
13597 case $host_vendor in
13598 sni)
13599 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13600 hardcode_direct_D=yes # is this really true???
13601 ;;
13602 siemens)
13603 ## LD is ld it makes a PLAMLIB
13604 ## CC just makes a GrossModule.
13605 archive_cmds_D='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13606 reload_cmds_D='$CC -r -o $output$reload_objs'
13607 hardcode_direct_D=no
13608 ;;
13609 motorola)
13610 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13611 hardcode_direct_D=no #Motorola manual says yes, but my tests say they lie
13612 ;;
13613 esac
13614 runpath_var='LD_RUN_PATH'
13615 hardcode_shlibpath_var_D=no
13616 ;;
13617
13618 sysv4.3*)
13619 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13620 hardcode_shlibpath_var_D=no
13621 export_dynamic_flag_spec_D='-Bexport'
13622 ;;
13623
13624 sysv4*MP*)
13625 if test -d /usr/nec; then
13626 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13627 hardcode_shlibpath_var_D=no
13628 runpath_var=LD_RUN_PATH
13629 hardcode_runpath_var=yes
13630 ld_shlibs_D=yes
13631 fi
13632 ;;
13633
13634 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13635 no_undefined_flag_D='${wl}-z,text'
13636 archive_cmds_need_lc_D=no
13637 hardcode_shlibpath_var_D=no
13638 runpath_var='LD_RUN_PATH'
13639
13640 if test "$GCC" = yes; then
13641 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13642 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13643 else
13644 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13645 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13646 fi
13647 ;;
13648
13649 sysv5* | sco3.2v5* | sco5v6*)
13650 # Note: We can NOT use -z defs as we might desire, because we do not
13651 # link with -lc, and that would cause any symbols used from libc to
13652 # always be unresolved, which means just about no library would
13653 # ever link correctly. If we're not using GNU ld we use -z text
13654 # though, which does catch some bad symbols but isn't as heavy-handed
13655 # as -z defs.
13656 no_undefined_flag_D='${wl}-z,text'
13657 allow_undefined_flag_D='${wl}-z,nodefs'
13658 archive_cmds_need_lc_D=no
13659 hardcode_shlibpath_var_D=no
13660 hardcode_libdir_flag_spec_D='${wl}-R,$libdir'
13661 hardcode_libdir_separator_D=':'
13662 link_all_deplibs_D=yes
13663 export_dynamic_flag_spec_D='${wl}-Bexport'
13664 runpath_var='LD_RUN_PATH'
13665
13666 if test "$GCC" = yes; then
13667 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13668 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13669 else
13670 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13671 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13672 fi
13673 ;;
13674
13675 uts4*)
13676 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13677 hardcode_libdir_flag_spec_D='-L$libdir'
13678 hardcode_shlibpath_var_D=no
13679 ;;
13680
13681 *)
13682 ld_shlibs_D=no
13683 ;;
13684 esac
13685
13686 if test x$host_vendor = xsni; then
13687 case $host in
13688 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13689 export_dynamic_flag_spec_D='${wl}-Blargedynsym'
13690 ;;
13691 esac
13692 fi
13693 fi
13694
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_D" >&5
13696 $as_echo "$ld_shlibs_D" >&6; }
13697 test "$ld_shlibs_D" = no && can_build_shared=no
13698
13699 with_gnu_ld_D=$with_gnu_ld
13700
13701
13702
13703
13704
13705
13706 #
13707 # Do we need to explicitly link libc?
13708 #
13709 case "x$archive_cmds_need_lc_D" in
13710 x|xyes)
13711 # Assume -lc should be added
13712 archive_cmds_need_lc_D=yes
13713
13714 if test "$enable_shared" = yes && test "$GCC" = yes; then
13715 case $archive_cmds_D in
13716 *'~'*)
13717 # FIXME: we may have to deal with multi-command sequences.
13718 ;;
13719 '$CC '*)
13720 # Test whether the compiler implicitly links with -lc since on some
13721 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13722 # to ld, don't add -lc before -lgcc.
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13724 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13725 if ${lt_cv_archive_cmds_need_lc_D+:} false; then :
13726 $as_echo_n "(cached) " >&6
13727 else
13728 $RM conftest*
13729 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13730
13731 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13732 (eval $ac_compile) 2>&5
13733 ac_status=$?
13734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13735 test $ac_status = 0; } 2>conftest.err; then
13736 soname=conftest
13737 lib=conftest
13738 libobjs=conftest.$ac_objext
13739 deplibs=
13740 wl=$lt_prog_compiler_wl_D
13741 pic_flag=$lt_prog_compiler_pic_D
13742 compiler_flags=-v
13743 linker_flags=-v
13744 verstring=
13745 output_objdir=.
13746 libname=conftest
13747 lt_save_allow_undefined_flag=$allow_undefined_flag_D
13748 allow_undefined_flag_D=
13749 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13750 (eval $archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13751 ac_status=$?
13752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13753 test $ac_status = 0; }
13754 then
13755 lt_cv_archive_cmds_need_lc_D=no
13756 else
13757 lt_cv_archive_cmds_need_lc_D=yes
13758 fi
13759 allow_undefined_flag_D=$lt_save_allow_undefined_flag
13760 else
13761 cat conftest.err 1>&5
13762 fi
13763 $RM conftest*
13764
13765 fi
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_D" >&5
13767 $as_echo "$lt_cv_archive_cmds_need_lc_D" >&6; }
13768 archive_cmds_need_lc_D=$lt_cv_archive_cmds_need_lc_D
13769 ;;
13770 esac
13771 fi
13772 ;;
13773 esac
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13839 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13840 hardcode_action_D=
13841 if test -n "$hardcode_libdir_flag_spec_D" ||
13842 test -n "$runpath_var_D" ||
13843 test "X$hardcode_automatic_D" = "Xyes" ; then
13844
13845 # We can hardcode non-existent directories.
13846 if test "$hardcode_direct_D" != no &&
13847 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13848 # have to relink, otherwise we might link with an installed library
13849 # when we should be linking with a yet-to-be-installed one
13850 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, D)" != no &&
13851 test "$hardcode_minus_L_D" != no; then
13852 # Linking always hardcodes the temporary library directory.
13853 hardcode_action_D=relink
13854 else
13855 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13856 hardcode_action_D=immediate
13857 fi
13858 else
13859 # We cannot hardcode anything, or else we can only hardcode existing
13860 # directories.
13861 hardcode_action_D=unsupported
13862 fi
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_D" >&5
13864 $as_echo "$hardcode_action_D" >&6; }
13865
13866 if test "$hardcode_action_D" = relink ||
13867 test "$inherit_rpath_D" = yes; then
13868 # Fast installation is not supported
13869 enable_fast_install=no
13870 elif test "$shlibpath_overrides_runpath" = yes ||
13871 test "$enable_shared" = no; then
13872 # Fast installation is not necessary
13873 enable_fast_install=needless
13874 fi
13875
13876
13877
13878
13879
13880
13881
13882 fi
13883
13884 ac_ext=c
13885 ac_cpp='$CPP $CPPFLAGS'
13886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13889
13890
13891 GCC=$lt_save_GCC
13892 CC=$lt_save_CC
13893 CFLAGS=$lt_save_CFLAGS
13894
13895 GDCFLAGS=$gdc_save_DFLAGS
13896
13897
13898 # libtool variables for Phobos shared and position-independent compiles.
13899 #
13900 # Use phobos_compiler_shared_flag to designate the compile-time flags for
13901 # creating shared objects. Default: -fversion=Shared.
13902 #
13903 # Use phobos_compiler_pic_flag to designate the compile-time flags for
13904 # creating position-independent objects. This varies with the target
13905 # hardware and operating system, but is often: -fPIC.
13906 #
13907 # The distinction between pic and shared compilation flags is not present in
13908 # libtool, and so we make it here. How it is handled is that in shared
13909 # compilations the `lt_prog_compiler_pic_D' variable is used to instead
13910 # ensure that conditional compilation of shared runtime code is compiled in.
13911 # The original PIC flags are then used in the compilation of every object.
13912 #
13913 # Why are objects destined for libgphobos.a compiled with -fPIC?
13914 # Because -fPIC is not harmful to use for objects destined for static
13915 # libraries. In addition, using -fPIC will allow the use of static
13916 # libgphobos.a in the creation of other D shared libraries.
13917 if test "$enable_shared" = yes; then
13918 phobos_compiler_pic_flag="$lt_prog_compiler_pic_D"
13919 phobos_compiler_shared_flag="-fversion=Shared"
13920 else
13921 phobos_compiler_pic_flag=
13922 phobos_compiler_shared_flag=
13923 fi
13924
13925
13926
13927 # Override the libtool's pic_flag and pic_mode.
13928 # Do this step after AM_PROG_LIBTOOL, but before AC_OUTPUT.
13929 # NB: this impacts --with-pic and --without-pic.
13930 lt_prog_compiler_pic_D="$phobos_compiler_shared_flag"
13931 pic_mode='default'
13932
13933 # Determine what GCC version number to use in filesystem paths.
13934
13935 get_gcc_base_ver="cat"
13936
13937 # Check whether --with-gcc-major-version-only was given.
13938 if test "${with_gcc_major_version_only+set}" = set; then :
13939 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13940 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
13941 fi
13942
13943 fi
13944
13945
13946
13947
13948 # libphobos/libdruntime specific options and feature detection
13949
13950 # These need to be absolute paths, yet at the same time need to
13951 # canonicalize only relative paths, because then amd will not unmount
13952 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
13953 libphobos_builddir=`${PWDCMD-pwd}`
13954 case $srcdir in
13955 \\/$* | ?:\\/*) libphobos_srcdir=${srcdir} ;;
13956 *) libphobos_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
13957 esac
13958
13959
13960
13961
13962 if test ${multilib} = yes; then
13963 multilib_arg="--enable-multilib"
13964 else
13965 multilib_arg=
13966 fi
13967
13968
13969 # Check whether --enable-werror was given.
13970 if test "${enable_werror+set}" = set; then :
13971 enableval=$enable_werror;
13972 fi
13973
13974 WERROR_FLAG=""
13975 if test "x$enable_werror" = "xyes"; then
13976 WERROR_FLAG="-Werror"
13977 fi
13978
13979
13980 # Check whether --enable-druntime-gc was given.
13981 if test "${enable_druntime_gc+set}" = set; then :
13982 enableval=$enable_druntime_gc; enable_druntime_gc=no
13983 else
13984 enable_druntime_gc=yes
13985 fi
13986
13987
13988 if test "$enable_druntime_gc" = "yes"; then
13989 DRUNTIME_GC_ENABLE_TRUE=
13990 DRUNTIME_GC_ENABLE_FALSE='#'
13991 else
13992 DRUNTIME_GC_ENABLE_TRUE='#'
13993 DRUNTIME_GC_ENABLE_FALSE=
13994 fi
13995
13996
13997
13998 druntime_target_cpu_parsed=""
13999 case "$target_cpu" in
14000 aarch64*)
14001 druntime_target_cpu_parsed="aarch64"
14002 ;;
14003 arm*) druntime_target_cpu_parsed="arm"
14004 ;;
14005 mips*) druntime_target_cpu_parsed="mips"
14006 ;;
14007 powerpc) druntime_target_cpu_parsed="powerpc"
14008 ;;
14009 powerpc64)
14010 druntime_target_cpu_parsed="powerpc64"
14011 ;;
14012 i[34567]86|x86_64)
14013 druntime_target_cpu_parsed="x86"
14014 ;;
14015 esac
14016 if test "$druntime_target_cpu_parsed" = "aarch64"; then
14017 DRUNTIME_CPU_AARCH64_TRUE=
14018 DRUNTIME_CPU_AARCH64_FALSE='#'
14019 else
14020 DRUNTIME_CPU_AARCH64_TRUE='#'
14021 DRUNTIME_CPU_AARCH64_FALSE=
14022 fi
14023
14024 if test "$druntime_target_cpu_parsed" = "arm"; then
14025 DRUNTIME_CPU_ARM_TRUE=
14026 DRUNTIME_CPU_ARM_FALSE='#'
14027 else
14028 DRUNTIME_CPU_ARM_TRUE='#'
14029 DRUNTIME_CPU_ARM_FALSE=
14030 fi
14031
14032 if test "$druntime_target_cpu_parsed" = "mips"; then
14033 DRUNTIME_CPU_MIPS_TRUE=
14034 DRUNTIME_CPU_MIPS_FALSE='#'
14035 else
14036 DRUNTIME_CPU_MIPS_TRUE='#'
14037 DRUNTIME_CPU_MIPS_FALSE=
14038 fi
14039
14040 if test "$druntime_target_cpu_parsed" = "powerpc"; then
14041 DRUNTIME_CPU_POWERPC_TRUE=
14042 DRUNTIME_CPU_POWERPC_FALSE='#'
14043 else
14044 DRUNTIME_CPU_POWERPC_TRUE='#'
14045 DRUNTIME_CPU_POWERPC_FALSE=
14046 fi
14047
14048 if test "$druntime_target_cpu_parsed" = "powerpc64"; then
14049 DRUNTIME_CPU_POWERPC64_TRUE=
14050 DRUNTIME_CPU_POWERPC64_FALSE='#'
14051 else
14052 DRUNTIME_CPU_POWERPC64_TRUE='#'
14053 DRUNTIME_CPU_POWERPC64_FALSE=
14054 fi
14055
14056 if test "$druntime_target_cpu_parsed" = "x86"; then
14057 DRUNTIME_CPU_X86_TRUE=
14058 DRUNTIME_CPU_X86_FALSE='#'
14059 else
14060 DRUNTIME_CPU_X86_TRUE='#'
14061 DRUNTIME_CPU_X86_FALSE=
14062 fi
14063
14064
14065
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target OS" >&5
14067 $as_echo_n "checking for target OS... " >&6; }
14068 if ${druntime_cv_target_os+:} false; then :
14069 $as_echo_n "(cached) " >&6
14070 else
14071 druntime_cv_target_os=`echo $target_os | sed 's/^\([A-Za-z_]+\)/\1/'`
14072 fi
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_target_os" >&5
14074 $as_echo "$druntime_cv_target_os" >&6; }
14075 if test -z "$druntime_cv_target_os"; then :
14076 as_fn_error $? "can't detect target OS" "$LINENO" 5
14077 fi
14078
14079
14080
14081 # Check whether --enable-unix was given.
14082 if test "${enable_unix+set}" = set; then :
14083 enableval=$enable_unix; :
14084 else
14085 enable_unix=auto
14086 fi
14087
14088
14089 case "$druntime_cv_target_os" in
14090 aix*|*bsd*|cygwin*|darwin*|gnu*|linux*|skyos*|*solaris*|sysv*) d_have_unix=1 ;;
14091 esac
14092 if test -n "$d_have_unix" && test "$enable_unix" = auto ; then
14093 enable_unix=yes
14094 fi
14095 if test "$enable_unix" = "yes"; then
14096 DRUNTIME_OS_UNIX_TRUE=
14097 DRUNTIME_OS_UNIX_FALSE='#'
14098 else
14099 DRUNTIME_OS_UNIX_TRUE='#'
14100 DRUNTIME_OS_UNIX_FALSE=
14101 fi
14102
14103
14104
14105
14106
14107 druntime_target_os_parsed=""
14108 case "$druntime_cv_target_os" in
14109 aix*) druntime_target_os_parsed="aix"
14110 ;;
14111 *android*)
14112 druntime_target_os_parsed="android"
14113 ;;
14114 darwin*) druntime_target_os_parsed="darwin"
14115 ;;
14116 dragonfly*)
14117 druntime_target_os_parsed="dragonflybsd"
14118 ;;
14119 freebsd*|k*bsd*-gnu)
14120 druntime_target_os_parsed="freebsd"
14121 ;;
14122 openbsd*)
14123 druntime_target_os_parsed="openbsd"
14124 ;;
14125 netbsd*)
14126 druntime_target_os_parsed="netbsd"
14127 ;;
14128 linux*) druntime_target_os_parsed="linux"
14129 ;;
14130 mingw*) druntime_target_os_parsed="mingw"
14131 ;;
14132 *solaris*) druntime_target_os_parsed="solaris"
14133 esac
14134 if test "$druntime_target_os_parsed" = "aix"; then
14135 DRUNTIME_OS_AIX_TRUE=
14136 DRUNTIME_OS_AIX_FALSE='#'
14137 else
14138 DRUNTIME_OS_AIX_TRUE='#'
14139 DRUNTIME_OS_AIX_FALSE=
14140 fi
14141
14142 if test "$druntime_target_os_parsed" = "android"; then
14143 DRUNTIME_OS_ANDROID_TRUE=
14144 DRUNTIME_OS_ANDROID_FALSE='#'
14145 else
14146 DRUNTIME_OS_ANDROID_TRUE='#'
14147 DRUNTIME_OS_ANDROID_FALSE=
14148 fi
14149
14150 if test "$druntime_target_os_parsed" = "darwin"; then
14151 DRUNTIME_OS_DARWIN_TRUE=
14152 DRUNTIME_OS_DARWIN_FALSE='#'
14153 else
14154 DRUNTIME_OS_DARWIN_TRUE='#'
14155 DRUNTIME_OS_DARWIN_FALSE=
14156 fi
14157
14158 if test "$druntime_target_os_parsed" = "dragonflybsd"; then
14159 DRUNTIME_OS_DRAGONFLYBSD_TRUE=
14160 DRUNTIME_OS_DRAGONFLYBSD_FALSE='#'
14161 else
14162 DRUNTIME_OS_DRAGONFLYBSD_TRUE='#'
14163 DRUNTIME_OS_DRAGONFLYBSD_FALSE=
14164 fi
14165
14166 if test "$druntime_target_os_parsed" = "freebsd"; then
14167 DRUNTIME_OS_FREEBSD_TRUE=
14168 DRUNTIME_OS_FREEBSD_FALSE='#'
14169 else
14170 DRUNTIME_OS_FREEBSD_TRUE='#'
14171 DRUNTIME_OS_FREEBSD_FALSE=
14172 fi
14173
14174 if test "$druntime_target_os_parsed" = "netbsd"; then
14175 DRUNTIME_OS_NETBSD_TRUE=
14176 DRUNTIME_OS_NETBSD_FALSE='#'
14177 else
14178 DRUNTIME_OS_NETBSD_TRUE='#'
14179 DRUNTIME_OS_NETBSD_FALSE=
14180 fi
14181
14182 if test "$druntime_target_os_parsed" = "openbsd"; then
14183 DRUNTIME_OS_OPENBSD_TRUE=
14184 DRUNTIME_OS_OPENBSD_FALSE='#'
14185 else
14186 DRUNTIME_OS_OPENBSD_TRUE='#'
14187 DRUNTIME_OS_OPENBSD_FALSE=
14188 fi
14189
14190 if test "$druntime_target_os_parsed" = "linux"; then
14191 DRUNTIME_OS_LINUX_TRUE=
14192 DRUNTIME_OS_LINUX_FALSE='#'
14193 else
14194 DRUNTIME_OS_LINUX_TRUE='#'
14195 DRUNTIME_OS_LINUX_FALSE=
14196 fi
14197
14198 if test "$druntime_target_os_parsed" = "mingw"; then
14199 DRUNTIME_OS_MINGW_TRUE=
14200 DRUNTIME_OS_MINGW_FALSE='#'
14201 else
14202 DRUNTIME_OS_MINGW_TRUE='#'
14203 DRUNTIME_OS_MINGW_FALSE=
14204 fi
14205
14206 if test "$druntime_target_os_parsed" = "solaris"; then
14207 DRUNTIME_OS_SOLARIS_TRUE=
14208 DRUNTIME_OS_SOLARIS_FALSE='#'
14209 else
14210 DRUNTIME_OS_SOLARIS_TRUE='#'
14211 DRUNTIME_OS_SOLARIS_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
14470 enable_thread_lib=yes
14471 # Check whether --enable-thread-lib was given.
14472 if test "${enable_thread_lib+set}" = set; then :
14473 enableval=$enable_thread_lib;
14474 fi
14475
14476
14477 if test "x$enable_thread_lib" = "xyes"; then :
14478
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
14480 $as_echo_n "checking for library containing pthread_create... " >&6; }
14481 if ${ac_cv_search_pthread_create+:} false; then :
14482 $as_echo_n "(cached) " >&6
14483 else
14484 ac_func_search_save_LIBS=$LIBS
14485 cat > conftest.$ac_ext <<_ACEOF
14486 module mod;
14487 extern(C) int pthread_create();
14488
14489 extern(C) int main() {
14490 pthread_create(); return 0;
14491 }
14492 _ACEOF
14493 for ac_lib in '' pthread; do
14494 if test -z "$ac_lib"; then
14495 ac_res="none required"
14496 else
14497 ac_res=-l$ac_lib
14498 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14499 fi
14500 if ac_fn_d_try_link "$LINENO"; then :
14501 ac_cv_search_pthread_create=$ac_res
14502 fi
14503 rm -f core conftest.err conftest.$ac_objext \
14504 conftest$ac_exeext
14505 if ${ac_cv_search_pthread_create+:} false; then :
14506 break
14507 fi
14508 done
14509 if ${ac_cv_search_pthread_create+:} false; then :
14510
14511 else
14512 ac_cv_search_pthread_create=no
14513 fi
14514 rm conftest.$ac_ext
14515 LIBS=$ac_func_search_save_LIBS
14516 fi
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
14518 $as_echo "$ac_cv_search_pthread_create" >&6; }
14519 ac_res=$ac_cv_search_pthread_create
14520 if test "$ac_res" != no; then :
14521 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14522
14523 fi
14524
14525
14526 else
14527
14528 if test "x$enable_thread_lib" = "xno"; then :
14529
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread library" >&5
14531 $as_echo_n "checking for thread library... " >&6; }
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14533 $as_echo "disabled" >&6; }
14534
14535 else
14536
14537 as_ac_Lib=`$as_echo "ac_cv_lib_$enable_thread_lib''_pthread_create" | $as_tr_sh`
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -l$enable_thread_lib" >&5
14539 $as_echo_n "checking for pthread_create in -l$enable_thread_lib... " >&6; }
14540 if eval \${$as_ac_Lib+:} false; then :
14541 $as_echo_n "(cached) " >&6
14542 else
14543 ac_check_lib_save_LIBS=$LIBS
14544 LIBS="-l$enable_thread_lib $LIBS"
14545 cat > conftest.$ac_ext <<_ACEOF
14546 module mod;
14547 extern(C) int pthread_create();
14548
14549 extern(C) int main() {
14550 pthread_create(); return 0;
14551 }
14552 _ACEOF
14553 if ac_fn_d_try_link "$LINENO"; then :
14554 eval "$as_ac_Lib=yes"
14555 else
14556 eval "$as_ac_Lib=no"
14557 fi
14558 rm -f core conftest.err conftest.$ac_objext \
14559 conftest$ac_exeext conftest.$ac_ext
14560 LIBS=$ac_check_lib_save_LIBS
14561 fi
14562 eval ac_res=\$$as_ac_Lib
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14564 $as_echo "$ac_res" >&6; }
14565 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
14566 cat >>confdefs.h <<_ACEOF
14567 #define `$as_echo "HAVE_LIB$enable_thread_lib" | $as_tr_cpp` 1
14568 _ACEOF
14569
14570 LIBS="-l$enable_thread_lib $LIBS"
14571
14572 else
14573
14574 as_fn_error $? "Thread library not found" "$LINENO" 5
14575
14576 fi
14577
14578
14579 fi
14580
14581 fi
14582
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cosf" >&5
14584 $as_echo_n "checking for library containing cosf... " >&6; }
14585 if ${ac_cv_search_cosf+:} false; then :
14586 $as_echo_n "(cached) " >&6
14587 else
14588 ac_func_search_save_LIBS=$LIBS
14589 cat > conftest.$ac_ext <<_ACEOF
14590 module mod;
14591 extern(C) int cosf();
14592
14593 extern(C) int main() {
14594 cosf(); return 0;
14595 }
14596 _ACEOF
14597 for ac_lib in '' m; do
14598 if test -z "$ac_lib"; then
14599 ac_res="none required"
14600 else
14601 ac_res=-l$ac_lib
14602 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14603 fi
14604 if ac_fn_d_try_link "$LINENO"; then :
14605 ac_cv_search_cosf=$ac_res
14606 fi
14607 rm -f core conftest.err conftest.$ac_objext \
14608 conftest$ac_exeext
14609 if ${ac_cv_search_cosf+:} false; then :
14610 break
14611 fi
14612 done
14613 if ${ac_cv_search_cosf+:} false; then :
14614
14615 else
14616 ac_cv_search_cosf=no
14617 fi
14618 rm conftest.$ac_ext
14619 LIBS=$ac_func_search_save_LIBS
14620 fi
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cosf" >&5
14622 $as_echo "$ac_cv_search_cosf" >&6; }
14623 ac_res=$ac_cv_search_cosf
14624 if test "$ac_res" != no; then :
14625 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14626
14627 fi
14628
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14630 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14631 if ${ac_cv_search_clock_gettime+:} false; then :
14632 $as_echo_n "(cached) " >&6
14633 else
14634 ac_func_search_save_LIBS=$LIBS
14635 cat > conftest.$ac_ext <<_ACEOF
14636 module mod;
14637 extern(C) int clock_gettime();
14638
14639 extern(C) int main() {
14640 clock_gettime(); return 0;
14641 }
14642 _ACEOF
14643 for ac_lib in '' rt; do
14644 if test -z "$ac_lib"; then
14645 ac_res="none required"
14646 else
14647 ac_res=-l$ac_lib
14648 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14649 fi
14650 if ac_fn_d_try_link "$LINENO"; then :
14651 ac_cv_search_clock_gettime=$ac_res
14652 fi
14653 rm -f core conftest.err conftest.$ac_objext \
14654 conftest$ac_exeext
14655 if ${ac_cv_search_clock_gettime+:} false; then :
14656 break
14657 fi
14658 done
14659 if ${ac_cv_search_clock_gettime+:} false; then :
14660
14661 else
14662 ac_cv_search_clock_gettime=no
14663 fi
14664 rm conftest.$ac_ext
14665 LIBS=$ac_func_search_save_LIBS
14666 fi
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14668 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14669 ac_res=$ac_cv_search_clock_gettime
14670 if test "$ac_res" != no; then :
14671 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14672
14673 fi
14674
14675
14676 # This checks to see if the host supports the compiler-generated builtins
14677 # for atomic operations for various integral sizes. Note, this is intended
14678 # to be an all-or-nothing switch, so all the atomic operations that are
14679 # used should be checked.
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for byte" >&5
14681 $as_echo_n "checking for atomic builtins for byte... " >&6; }
14682 if ${druntime_cv_atomic_byte+:} 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(byte) c1;
14693 byte c2, c3;
14694 __atomic_compare_exchange_1(&c1, &c2, c3, false, 5, 5);
14695 __atomic_load_1(&c1, 5);
14696 __atomic_store_1(&c1, c2, 5);
14697 return 0;
14698
14699 }
14700 _ACEOF
14701 if ac_fn_d_try_link "$LINENO"; then :
14702 druntime_cv_atomic_byte=yes
14703 else
14704 druntime_cv_atomic_byte=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_byte" >&5
14712 $as_echo "$druntime_cv_atomic_byte" >&6; }
14713
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5
14715 $as_echo_n "checking for atomic builtins for short... " >&6; }
14716 if ${druntime_cv_atomic_short+:} 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(short) c1;
14727 short c2, c3;
14728 __atomic_compare_exchange_2(&c1, &c2, c3, false, 5, 5);
14729 __atomic_load_2(&c1, 5);
14730 __atomic_store_2(&c1, c2, 5);
14731 return 0;
14732
14733 }
14734 _ACEOF
14735 if ac_fn_d_try_link "$LINENO"; then :
14736 druntime_cv_atomic_short=yes
14737 else
14738 druntime_cv_atomic_short=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_short" >&5
14746 $as_echo "$druntime_cv_atomic_short" >&6; }
14747
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5
14749 $as_echo_n "checking for atomic builtins for int... " >&6; }
14750 if ${druntime_cv_atomic_int+:} false; then :
14751 $as_echo_n "(cached) " >&6
14752 else
14753
14754 cat > conftest.$ac_ext <<_ACEOF
14755 module mod;
14756 import gcc.builtins;
14757
14758 extern(C) int main() {
14759
14760 shared(int) c1;
14761 int c2, c3;
14762 __atomic_compare_exchange_4(&c1, &c2, c3, false, 5, 5);
14763 __atomic_load_4(&c1, 5);
14764 __atomic_store_4(&c1, c2, 5);
14765 return 0;
14766
14767 }
14768 _ACEOF
14769 if ac_fn_d_try_link "$LINENO"; then :
14770 druntime_cv_atomic_int=yes
14771 else
14772 druntime_cv_atomic_int=no
14773 fi
14774 rm -f core conftest.err conftest.$ac_objext \
14775 conftest$ac_exeext conftest.$ac_ext
14776
14777 fi
14778
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_int" >&5
14780 $as_echo "$druntime_cv_atomic_int" >&6; }
14781
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long" >&5
14783 $as_echo_n "checking for atomic builtins for long... " >&6; }
14784 if ${druntime_cv_atomic_long+:} false; then :
14785 $as_echo_n "(cached) " >&6
14786 else
14787
14788 cat > conftest.$ac_ext <<_ACEOF
14789 module mod;
14790 import gcc.builtins;
14791
14792 extern(C) int main() {
14793
14794 shared(long) c1;
14795 long c2, c3;
14796 __atomic_compare_exchange_8(&c1, &c2, c3, false, 5, 5);
14797 __atomic_load_8(&c1, 5);
14798 __atomic_store_8(&c1, c2, 5);
14799 return 0;
14800
14801 }
14802 _ACEOF
14803 if ac_fn_d_try_link "$LINENO"; then :
14804 druntime_cv_atomic_long=yes
14805 else
14806 druntime_cv_atomic_long=no
14807 fi
14808 rm -f core conftest.err conftest.$ac_objext \
14809 conftest$ac_exeext conftest.$ac_ext
14810
14811 fi
14812
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_long" >&5
14814 $as_echo "$druntime_cv_atomic_long" >&6; }
14815
14816 # Have atomic builtin support if all but the long test above passes.
14817 DCFG_HAVE_ATOMIC_BUILTINS=false
14818 if test "$druntime_cv_atomic_byte" = yes \
14819 && test "$druntime_cv_atomic_short" = yes \
14820 && test "$druntime_cv_atomic_int" = yes; then \
14821 DCFG_HAVE_ATOMIC_BUILTINS=true
14822 fi
14823
14824 # Have 64-bit atomic support if the long test above passes.
14825 DCFG_HAVE_64BIT_ATOMICS=false
14826 if test "$druntime_cv_atomic_long" = yes; then
14827 DCFG_HAVE_64BIT_ATOMICS=true
14828 fi
14829
14830
14831
14832
14833 ac_ext=c
14834 ac_cpp='$CPP $CPPFLAGS'
14835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14838
14839
14840 GDCFLAGS=$gdc_save_DFLAGS
14841
14842
14843
14844
14845 # Check whether --with-libatomic was given.
14846 if test "${with_libatomic+set}" = set; then :
14847 withval=$with_libatomic;
14848 fi
14849
14850
14851 DCFG_HAVE_LIBATOMIC=false
14852 LIBATOMIC=
14853 if test "x$with_libatomic" != "xno"; then :
14854
14855 DCFG_HAVE_LIBATOMIC=true
14856 LIBATOMIC=../../libatomic/libatomic_convenience.la
14857
14858 else
14859
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic" >&5
14861 $as_echo_n "checking for libatomic... " >&6; }
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14863 $as_echo "disabled" >&6; }
14864
14865 fi
14866
14867
14868
14869
14870
14871 ac_ext=c
14872 ac_cpp='$CPP $CPPFLAGS'
14873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14876
14877 BACKTRACE_SUPPORTED=false
14878 BACKTRACE_USES_MALLOC=false
14879 BACKTRACE_SUPPORTS_THREADS=false
14880 LIBBACKTRACE=""
14881
14882
14883 # Check whether --with-libbacktrace was given.
14884 if test "${with_libbacktrace+set}" = set; then :
14885 withval=$with_libbacktrace;
14886 fi
14887
14888
14889 if test "x$with_libbacktrace" != "xno"; then :
14890
14891 LIBBACKTRACE=../../libbacktrace/libbacktrace.la
14892
14893 gdc_save_CPPFLAGS=$CPPFLAGS
14894 CPPFLAGS="$CPPFLAGS -I../libbacktrace "
14895
14896 ac_fn_c_check_header_mongrel "$LINENO" "backtrace-supported.h" "ac_cv_header_backtrace_supported_h" "$ac_includes_default"
14897 if test "x$ac_cv_header_backtrace_supported_h" = xyes; then :
14898 have_libbacktrace_h=true
14899 else
14900 have_libbacktrace_h=false
14901 fi
14902
14903
14904
14905 if $have_libbacktrace_h; then
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTED" >&5
14907 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTED... " >&6; }
14908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14909 /* end confdefs.h. */
14910
14911 #include <backtrace-supported.h>
14912 #if BACKTRACE_SUPPORTED
14913 FOUND_LIBBACKTRACE_RESULT_GDC
14914 #endif
14915
14916 _ACEOF
14917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14918 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14919 BACKTRACE_SUPPORTED=true
14920 else
14921 BACKTRACE_SUPPORTED=false
14922 fi
14923 rm -f conftest*
14924
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTED" >&5
14926 $as_echo "$BACKTRACE_SUPPORTED" >&6; }
14927
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_USES_MALLOC" >&5
14929 $as_echo_n "checking libbacktrace: BACKTRACE_USES_MALLOC... " >&6; }
14930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14931 /* end confdefs.h. */
14932
14933 #include <backtrace-supported.h>
14934 #if BACKTRACE_USES_MALLOC
14935 FOUND_LIBBACKTRACE_RESULT_GDC
14936 #endif
14937
14938 _ACEOF
14939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14940 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14941 BACKTRACE_USES_MALLOC=true
14942 else
14943 BACKTRACE_USES_MALLOC=false
14944 fi
14945 rm -f conftest*
14946
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_USES_MALLOC" >&5
14948 $as_echo "$BACKTRACE_USES_MALLOC" >&6; }
14949
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTS_THREADS" >&5
14951 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTS_THREADS... " >&6; }
14952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14953 /* end confdefs.h. */
14954
14955 #include <backtrace-supported.h>
14956 #if BACKTRACE_SUPPORTS_THREADS
14957 FOUND_LIBBACKTRACE_RESULT_GDC
14958 #endif
14959
14960 _ACEOF
14961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14962 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14963 BACKTRACE_SUPPORTS_THREADS=true
14964 else
14965 BACKTRACE_SUPPORTS_THREADS=false
14966 fi
14967 rm -f conftest*
14968
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTS_THREADS" >&5
14970 $as_echo "$BACKTRACE_SUPPORTS_THREADS" >&6; }
14971 fi
14972 CPPFLAGS=$gdc_save_CPPFLAGS
14973
14974 else
14975
14976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbacktrace" >&5
14977 $as_echo_n "checking for libbacktrace... " >&6; }
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14979 $as_echo "disabled" >&6; }
14980
14981 fi
14982
14983
14984
14985
14986
14987 ac_ext=c
14988 ac_cpp='$CPP $CPPFLAGS'
14989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14992
14993
14994
14995 # Libtool has already checked this, so re-use the inferred dlopen lib.
14996 if test "x$enable_dlopen" = "xyes" && test -n "$lt_cv_dlopen_libs"; then :
14997
14998 LIBS="$LIBS $lt_cv_dlopen_libs"
14999
15000 fi
15001
15002
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
15004 $as_echo_n "checking for socket libraries... " >&6; }
15005 if ${druntime_cv_lib_sockets+:} false; then :
15006 $as_echo_n "(cached) " >&6
15007 else
15008 druntime_cv_lib_sockets=
15009 druntime_check_both=no
15010 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
15011 if test "x$ac_cv_func_connect" = xyes; then :
15012 druntime_check_socket=no
15013 else
15014 druntime_check_socket=yes
15015 fi
15016
15017 if test "$druntime_check_socket" = "yes"; then
15018 unset ac_cv_func_connect
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
15020 $as_echo_n "checking for main in -lsocket... " >&6; }
15021 if ${ac_cv_lib_socket_main+:} false; then :
15022 $as_echo_n "(cached) " >&6
15023 else
15024 ac_check_lib_save_LIBS=$LIBS
15025 LIBS="-lsocket $LIBS"
15026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15027 /* end confdefs.h. */
15028
15029
15030 int
15031 main ()
15032 {
15033 return main ();
15034 ;
15035 return 0;
15036 }
15037 _ACEOF
15038 if ac_fn_c_try_link "$LINENO"; then :
15039 ac_cv_lib_socket_main=yes
15040 else
15041 ac_cv_lib_socket_main=no
15042 fi
15043 rm -f core conftest.err conftest.$ac_objext \
15044 conftest$ac_exeext conftest.$ac_ext
15045 LIBS=$ac_check_lib_save_LIBS
15046 fi
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
15048 $as_echo "$ac_cv_lib_socket_main" >&6; }
15049 if test "x$ac_cv_lib_socket_main" = xyes; then :
15050 druntime_cv_lib_sockets="-lsocket"
15051 else
15052 druntime_check_both=yes
15053 fi
15054
15055 fi
15056 if test "$druntime_check_both" = "yes"; then
15057 druntime_old_libs=$LIBS
15058 LIBS="$LIBS -lsocket -lnsl"
15059 unset ac_cv_func_accept
15060 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
15061 if test "x$ac_cv_func_accept" = xyes; then :
15062 druntime_check_nsl=no
15063 druntime_cv_lib_sockets="-lsocket -lnsl"
15064 fi
15065
15066 unset ac_cv_func_accept
15067 LIBS=$druntime_old_libs
15068 fi
15069 unset ac_cv_func_gethostbyname
15070 druntime_old_libs="$LIBS"
15071 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
15072 if test "x$ac_cv_func_gethostbyname" = xyes; then :
15073
15074 else
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
15076 $as_echo_n "checking for main in -lnsl... " >&6; }
15077 if ${ac_cv_lib_nsl_main+:} false; then :
15078 $as_echo_n "(cached) " >&6
15079 else
15080 ac_check_lib_save_LIBS=$LIBS
15081 LIBS="-lnsl $LIBS"
15082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15083 /* end confdefs.h. */
15084
15085
15086 int
15087 main ()
15088 {
15089 return main ();
15090 ;
15091 return 0;
15092 }
15093 _ACEOF
15094 if ac_fn_c_try_link "$LINENO"; then :
15095 ac_cv_lib_nsl_main=yes
15096 else
15097 ac_cv_lib_nsl_main=no
15098 fi
15099 rm -f core conftest.err conftest.$ac_objext \
15100 conftest$ac_exeext conftest.$ac_ext
15101 LIBS=$ac_check_lib_save_LIBS
15102 fi
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
15104 $as_echo "$ac_cv_lib_nsl_main" >&6; }
15105 if test "x$ac_cv_lib_nsl_main" = xyes; then :
15106 druntime_cv_lib_sockets="$druntime_cv_lib_sockets -lnsl"
15107 fi
15108
15109 fi
15110
15111
15112 fi
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_lib_sockets" >&5
15114 $as_echo "$druntime_cv_lib_sockets" >&6; }
15115 LIBS="$LIBS $druntime_cv_lib_sockets"
15116
15117
15118 ac_ext=c
15119 ac_cpp='$CPP $CPPFLAGS'
15120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15123
15124 LIBZ=""
15125
15126
15127 # Check whether --with-target-system-zlib was given.
15128 if test "${with_target_system_zlib+set}" = set; then :
15129 withval=$with_target_system_zlib;
15130 else
15131 with_target_system_zlib=no
15132 fi
15133
15134
15135 case "$with_target_system_zlib" in
15136 yes|no|auto) ;;
15137 *) as_fn_error $? "Invalid argument for --with-target-system-zlib" "$LINENO" 5 ;;
15138 esac
15139
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system zlib" >&5
15141 $as_echo_n "checking for system zlib... " >&6; }
15142 save_LIBS=$LIBS
15143 LIBS="$LIBS -lz"
15144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15145 /* end confdefs.h. */
15146 #include <zlib.h>
15147 int
15148 main ()
15149 {
15150 gzopen("none", "rb")
15151 ;
15152 return 0;
15153 }
15154 _ACEOF
15155 if ac_fn_c_try_link "$LINENO"; then :
15156
15157 if test "$cross_compiling" = yes; then :
15158 system_zlib_found=no
15159
15160 else
15161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15162 /* end confdefs.h. */
15163
15164 #include <zlib.h>
15165 int main() {
15166 gzFile file = gzopen("none", "rb");
15167 return 0;
15168 }
15169
15170 _ACEOF
15171 if ac_fn_c_try_run "$LINENO"; then :
15172 system_zlib_found=yes
15173 else
15174 system_zlib_found=no
15175 fi
15176 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15177 conftest.$ac_objext conftest.beam conftest.$ac_ext
15178 fi
15179
15180
15181 else
15182 system_zlib_found=no
15183 fi
15184 rm -f core conftest.err conftest.$ac_objext \
15185 conftest$ac_exeext conftest.$ac_ext
15186 LIBS=$save_LIBS
15187
15188 if test x$system_zlib_found = xyes && test x$with_target_system_zlib != xno; then
15189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15190 $as_echo "found" >&6; }
15191 LIBS="$LIBS -lz"
15192 elif test x$system_zlib_found = xno && test x$with_target_system_zlib = xyes; then
15193 as_fn_error $? "system zlib required but not found" "$LINENO" 5
15194 else
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15196 $as_echo "just compiled" >&6; }
15197 LIBZ=../../zlib/libz_convenience.la
15198 fi
15199
15200
15201 ac_ext=c
15202 ac_cpp='$CPP $CPPFLAGS'
15203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15206
15207
15208
15209
15210
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking D GCC version" >&5
15212 $as_echo_n "checking D GCC version... " >&6; }
15213 gcc_version=`eval $get_gcc_base_ver $srcdir/../gcc/BASE-VER`
15214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_version" >&5
15215 $as_echo "$gcc_version" >&6; }
15216
15217
15218
15219 # Check whether --with-cross-host was given.
15220 if test "${with_cross_host+set}" = set; then :
15221 withval=$with_cross_host;
15222 fi
15223
15224
15225 libphobos_toolexecdir=no
15226 libphobos_toolexeclibdir=no
15227
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
15229 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
15230 # Check whether --enable-version-specific-runtime-libs was given.
15231 if test "${enable_version_specific_runtime_libs+set}" = set; then :
15232 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
15233 yes) version_specific_libs=yes ;;
15234 no) version_specific_libs=no ;;
15235 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
15236 esac
15237 else
15238 version_specific_libs=no
15239 fi
15240
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
15242 $as_echo "$version_specific_libs" >&6; }
15243
15244
15245 # Check whether --with-toolexeclibdir was given.
15246 if test "${with_toolexeclibdir+set}" = set; then :
15247 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
15248 /)
15249 ;;
15250 */)
15251 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
15252 ;;
15253 esac
15254 else
15255 with_toolexeclibdir=no
15256 fi
15257
15258
15259
15260 # Version-specific runtime libs processing.
15261 if test $version_specific_libs = yes; then
15262 libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15263 libphobos_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
15264 else
15265 # Calculate libphobos_toolexecdir, libphobos_toolexeclibdir
15266 # Install a library built with a cross compiler in tooldir, not libdir.
15267 if test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
15268 libphobos_toolexecdir='${exec_prefix}/${host_alias}'
15269 case ${with_toolexeclibdir} in
15270 no)
15271 libphobos_toolexeclibdir='${toolexecdir}/lib'
15272 ;;
15273 *)
15274 libphobos_toolexeclibdir=${with_toolexeclibdir}
15275 ;;
15276 esac
15277 else
15278 libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15279 libphobos_toolexeclibdir='${libdir}'
15280 fi
15281 multi_os_directory=`$GDC -print-multi-os-directory`
15282 case $multi_os_directory in
15283 .) ;; # Avoid trailing /.
15284 *) libphobos_toolexeclibdir=${libphobos_toolexeclibdir}/${multi_os_directory} ;;
15285 esac
15286 fi
15287
15288
15289
15290 # Default case for install directory for D sources files.
15291 gdc_include_dir='$(libdir)/gcc/${target_alias}/${gcc_version}/include/d'
15292
15293
15294
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-libphobos" >&5
15296 $as_echo_n "checking for --enable-libphobos... " >&6; }
15297 # Check whether --enable-libphobos was given.
15298 if test "${enable_libphobos+set}" = set; then :
15299 enableval=$enable_libphobos;
15300 fi
15301
15302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libphobos" >&5
15303 $as_echo "$enable_libphobos" >&6; }
15304
15305 # See if supported.
15306 unset LIBPHOBOS_SUPPORTED
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for host support for libphobos" >&5
15308 $as_echo_n "checking for host support for libphobos... " >&6; }
15309 . ${srcdir}/configure.tgt
15310 case ${host} in
15311 x86_64-*-solaris2.* | i?86-*-solaris2.*)
15312 # libphobos doesn't compile with the Solaris/x86 assembler due to a
15313 # relatively low linelength limit.
15314 as_prog=`$CC -print-prog-name=as`
15315 if test -n "$as_prog" && $as_prog -v /dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
15316 druntime_cv_use_gas=yes;
15317 else
15318 druntime_cv_use_gas=no;
15319 fi
15320 rm -f a.out
15321 if test x$druntime_cv_use_gas = xno; then
15322 LIBPHOBOS_SUPPORTED=no
15323 fi
15324 # 64-bit D execution fails with Solaris ld without -z relax=transtls support.
15325 if test "$druntime_ld_gld" = "no" && test "$druntime_ld_relax_transtls" = "no"; then
15326 LIBPHOBOS_SUPPORTED=no
15327 fi
15328 ;;
15329 esac
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPHOBOS_SUPPORTED" >&5
15331 $as_echo "$LIBPHOBOS_SUPPORTED" >&6; }
15332
15333 # Decide if it's usable.
15334 case $LIBPHOBOS_SUPPORTED:$enable_libphobos in
15335 *:no) use_libphobos=no ;;
15336 *:yes) use_libphobos=yes ;;
15337 yes:*) use_libphobos=yes ;;
15338 *:*) use_libphobos=no ;;
15339 esac
15340 if test x$use_libphobos = xyes; then
15341 ENABLE_LIBPHOBOS_TRUE=
15342 ENABLE_LIBPHOBOS_FALSE='#'
15343 else
15344 ENABLE_LIBPHOBOS_TRUE='#'
15345 ENABLE_LIBPHOBOS_FALSE=
15346 fi
15347
15348
15349 # Add drtbegin.o/drtend.o to startfile/endfile specs in libgphobos.spec
15350 if test "$DCFG_MINFO_BRACKETING" = "false"; then
15351 DRTSTUFF_SPEC=$srcdir/src/drtstuff.spec
15352 else
15353 DRTSTUFF_SPEC=/dev/null
15354 fi
15355
15356
15357 # Add dependencies for libgphobos.spec file
15358 SPEC_PHOBOS_DEPS="$LIBS"
15359
15360
15361 # Libdruntime / phobos soname version
15362 libtool_VERSION=76:3:0
15363
15364
15365 # Set default flags (after DRUNTIME_WERROR!)
15366 if test -z "$GDCFLAGS"; then
15367 GDCFLAGS="-Wall $WERROR_FLAG -g -frelease -O2"
15368 fi
15369
15370
15371 if test -z "$GDCFLAGSX"; then
15372 GDCFLAGSX="-Wall $WERROR_FLAG -g -fno-release -funittest"
15373 fi
15374
15375
15376 # Sanity check for the cross-compilation case:
15377 ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
15378 if test "x$ac_cv_header_stdio_h" = xyes; then :
15379 :
15380 else
15381 as_fn_error $? "cannot find stdio.h." "$LINENO" 5
15382 fi
15383
15384
15385
15386 ac_config_files="$ac_config_files Makefile"
15387
15388
15389 ac_config_files="$ac_config_files libdruntime/gcc/config.d libdruntime/gcc/libbacktrace.d"
15390
15391 ac_config_files="$ac_config_files src/libgphobos.spec"
15392
15393 ac_config_files="$ac_config_files testsuite/testsuite_flags"
15394
15395
15396 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
15397 # that multilib installs will end up installed in the correct place.
15398 # The testsuite needs it for multilib-aware ABI baseline files.
15399 # To work around this not being passed down from config-ml.in ->
15400 # srcdir/Makefile.am -> srcdir/{src,libdruntime,...}/Makefile.am, manually
15401 # append it here. Only modify Makefiles that have just been created.
15402 #
15403 # Also, get rid of this simulated-VPATH thing that automake does.
15404 ac_config_files="$ac_config_files libdruntime/Makefile src/Makefile testsuite/Makefile"
15405
15406
15407 cat >confcache <<\_ACEOF
15408 # This file is a shell script that caches the results of configure
15409 # tests run on this system so they can be shared between configure
15410 # scripts and configure runs, see configure's option --config-cache.
15411 # It is not useful on other systems. If it contains results you don't
15412 # want to keep, you may remove or edit it.
15413 #
15414 # config.status only pays attention to the cache file if you give it
15415 # the --recheck option to rerun configure.
15416 #
15417 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15418 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15419 # following values.
15420
15421 _ACEOF
15422
15423 # The following way of writing the cache mishandles newlines in values,
15424 # but we know of no workaround that is simple, portable, and efficient.
15425 # So, we kill variables containing newlines.
15426 # Ultrix sh set writes to stderr and can't be redirected directly,
15427 # and sets the high bit in the cache file unless we assign to the vars.
15428 (
15429 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15430 eval ac_val=\$$ac_var
15431 case $ac_val in #(
15432 *${as_nl}*)
15433 case $ac_var in #(
15434 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15435 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15436 esac
15437 case $ac_var in #(
15438 _ | IFS | as_nl) ;; #(
15439 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15440 *) { eval $ac_var=; unset $ac_var;} ;;
15441 esac ;;
15442 esac
15443 done
15444
15445 (set) 2>&1 |
15446 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15447 *${as_nl}ac_space=\ *)
15448 # `set' does not quote correctly, so add quotes: double-quote
15449 # substitution turns \\\\ into \\, and sed turns \\ into \.
15450 sed -n \
15451 "s/'/'\\\\''/g;
15452 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15453 ;; #(
15454 *)
15455 # `set' quotes correctly as required by POSIX, so do not add quotes.
15456 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15457 ;;
15458 esac |
15459 sort
15460 ) |
15461 sed '
15462 /^ac_cv_env_/b end
15463 t clear
15464 :clear
15465 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15466 t end
15467 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15468 :end' >>confcache
15469 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15470 if test -w "$cache_file"; then
15471 if test "x$cache_file" != "x/dev/null"; then
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15473 $as_echo "$as_me: updating cache $cache_file" >&6;}
15474 if test ! -f "$cache_file" || test -h "$cache_file"; then
15475 cat confcache >"$cache_file"
15476 else
15477 case $cache_file in #(
15478 */* | ?:*)
15479 mv -f confcache "$cache_file"$$ &&
15480 mv -f "$cache_file"$$ "$cache_file" ;; #(
15481 *)
15482 mv -f confcache "$cache_file" ;;
15483 esac
15484 fi
15485 fi
15486 else
15487 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15488 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15489 fi
15490 fi
15491 rm -f confcache
15492
15493 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15494 # Let make expand exec_prefix.
15495 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15496
15497 DEFS=-DHAVE_CONFIG_H
15498
15499 ac_libobjs=
15500 ac_ltlibobjs=
15501 U=
15502 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15503 # 1. Remove the extension, and $U if already installed.
15504 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15505 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15506 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15507 # will be set to the directory where LIBOBJS objects are built.
15508 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15509 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15510 done
15511 LIBOBJS=$ac_libobjs
15512
15513 LTLIBOBJS=$ac_ltlibobjs
15514
15515
15516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15517 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15518 if test -n "$am_sleep_pid"; then
15519 # Hide warnings about reused PIDs.
15520 wait $am_sleep_pid 2>/dev/null
15521 fi
15522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15523 $as_echo "done" >&6; }
15524 if test -n "$EXEEXT"; then
15525 am__EXEEXT_TRUE=
15526 am__EXEEXT_FALSE='#'
15527 else
15528 am__EXEEXT_TRUE='#'
15529 am__EXEEXT_FALSE=
15530 fi
15531
15532 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15533 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15534 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15535 fi
15536 if test -z "${DRUNTIME_GC_ENABLE_TRUE}" && test -z "${DRUNTIME_GC_ENABLE_FALSE}"; then
15537 as_fn_error $? "conditional \"DRUNTIME_GC_ENABLE\" was never defined.
15538 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15539 fi
15540 if test -z "${DRUNTIME_CPU_AARCH64_TRUE}" && test -z "${DRUNTIME_CPU_AARCH64_FALSE}"; then
15541 as_fn_error $? "conditional \"DRUNTIME_CPU_AARCH64\" was never defined.
15542 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15543 fi
15544 if test -z "${DRUNTIME_CPU_ARM_TRUE}" && test -z "${DRUNTIME_CPU_ARM_FALSE}"; then
15545 as_fn_error $? "conditional \"DRUNTIME_CPU_ARM\" was never defined.
15546 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15547 fi
15548 if test -z "${DRUNTIME_CPU_MIPS_TRUE}" && test -z "${DRUNTIME_CPU_MIPS_FALSE}"; then
15549 as_fn_error $? "conditional \"DRUNTIME_CPU_MIPS\" was never defined.
15550 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15551 fi
15552 if test -z "${DRUNTIME_CPU_POWERPC_TRUE}" && test -z "${DRUNTIME_CPU_POWERPC_FALSE}"; then
15553 as_fn_error $? "conditional \"DRUNTIME_CPU_POWERPC\" was never defined.
15554 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15555 fi
15556 if test -z "${DRUNTIME_CPU_POWERPC64_TRUE}" && test -z "${DRUNTIME_CPU_POWERPC64_FALSE}"; then
15557 as_fn_error $? "conditional \"DRUNTIME_CPU_POWERPC64\" was never defined.
15558 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15559 fi
15560 if test -z "${DRUNTIME_CPU_X86_TRUE}" && test -z "${DRUNTIME_CPU_X86_FALSE}"; then
15561 as_fn_error $? "conditional \"DRUNTIME_CPU_X86\" was never defined.
15562 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15563 fi
15564 if test -z "${DRUNTIME_OS_UNIX_TRUE}" && test -z "${DRUNTIME_OS_UNIX_FALSE}"; then
15565 as_fn_error $? "conditional \"DRUNTIME_OS_UNIX\" was never defined.
15566 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15567 fi
15568 if test -z "${DRUNTIME_OS_AIX_TRUE}" && test -z "${DRUNTIME_OS_AIX_FALSE}"; then
15569 as_fn_error $? "conditional \"DRUNTIME_OS_AIX\" was never defined.
15570 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15571 fi
15572 if test -z "${DRUNTIME_OS_ANDROID_TRUE}" && test -z "${DRUNTIME_OS_ANDROID_FALSE}"; then
15573 as_fn_error $? "conditional \"DRUNTIME_OS_ANDROID\" was never defined.
15574 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15575 fi
15576 if test -z "${DRUNTIME_OS_DARWIN_TRUE}" && test -z "${DRUNTIME_OS_DARWIN_FALSE}"; then
15577 as_fn_error $? "conditional \"DRUNTIME_OS_DARWIN\" was never defined.
15578 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15579 fi
15580 if test -z "${DRUNTIME_OS_DRAGONFLYBSD_TRUE}" && test -z "${DRUNTIME_OS_DRAGONFLYBSD_FALSE}"; then
15581 as_fn_error $? "conditional \"DRUNTIME_OS_DRAGONFLYBSD\" was never defined.
15582 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15583 fi
15584 if test -z "${DRUNTIME_OS_FREEBSD_TRUE}" && test -z "${DRUNTIME_OS_FREEBSD_FALSE}"; then
15585 as_fn_error $? "conditional \"DRUNTIME_OS_FREEBSD\" was never defined.
15586 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15587 fi
15588 if test -z "${DRUNTIME_OS_NETBSD_TRUE}" && test -z "${DRUNTIME_OS_NETBSD_FALSE}"; then
15589 as_fn_error $? "conditional \"DRUNTIME_OS_NETBSD\" was never defined.
15590 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15591 fi
15592 if test -z "${DRUNTIME_OS_OPENBSD_TRUE}" && test -z "${DRUNTIME_OS_OPENBSD_FALSE}"; then
15593 as_fn_error $? "conditional \"DRUNTIME_OS_OPENBSD\" was never defined.
15594 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15595 fi
15596 if test -z "${DRUNTIME_OS_LINUX_TRUE}" && test -z "${DRUNTIME_OS_LINUX_FALSE}"; then
15597 as_fn_error $? "conditional \"DRUNTIME_OS_LINUX\" was never defined.
15598 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15599 fi
15600 if test -z "${DRUNTIME_OS_MINGW_TRUE}" && test -z "${DRUNTIME_OS_MINGW_FALSE}"; then
15601 as_fn_error $? "conditional \"DRUNTIME_OS_MINGW\" was never defined.
15602 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15603 fi
15604 if test -z "${DRUNTIME_OS_SOLARIS_TRUE}" && test -z "${DRUNTIME_OS_SOLARIS_FALSE}"; then
15605 as_fn_error $? "conditional \"DRUNTIME_OS_SOLARIS\" was never defined.
15606 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15607 fi
15608 if test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE}" && test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE}"; then
15609 as_fn_error $? "conditional \"DRUNTIME_OS_ARM_EABI_UNWINDER\" was never defined.
15610 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15611 fi
15612 if test -z "${DRUNTIME_OS_MINFO_BRACKETING_TRUE}" && test -z "${DRUNTIME_OS_MINFO_BRACKETING_FALSE}"; then
15613 as_fn_error $? "conditional \"DRUNTIME_OS_MINFO_BRACKETING\" was never defined.
15614 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15615 fi
15616 if test -z "${ENABLE_LIBPHOBOS_TRUE}" && test -z "${ENABLE_LIBPHOBOS_FALSE}"; then
15617 as_fn_error $? "conditional \"ENABLE_LIBPHOBOS\" was never defined.
15618 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15619 fi
15620
15621 : "${CONFIG_STATUS=./config.status}"
15622 ac_write_fail=0
15623 ac_clean_files_save=$ac_clean_files
15624 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15626 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15627 as_write_fail=0
15628 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15629 #! $SHELL
15630 # Generated by $as_me.
15631 # Run this file to recreate the current configuration.
15632 # Compiler output produced by configure, useful for debugging
15633 # configure, is in config.log if it exists.
15634
15635 debug=false
15636 ac_cs_recheck=false
15637 ac_cs_silent=false
15638
15639 SHELL=\${CONFIG_SHELL-$SHELL}
15640 export SHELL
15641 _ASEOF
15642 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15643 ## -------------------- ##
15644 ## M4sh Initialization. ##
15645 ## -------------------- ##
15646
15647 # Be more Bourne compatible
15648 DUALCASE=1; export DUALCASE # for MKS sh
15649 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15650 emulate sh
15651 NULLCMD=:
15652 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15653 # is contrary to our usage. Disable this feature.
15654 alias -g '${1+"$@"}'='"$@"'
15655 setopt NO_GLOB_SUBST
15656 else
15657 case `(set -o) 2>/dev/null` in #(
15658 *posix*) :
15659 set -o posix ;; #(
15660 *) :
15661 ;;
15662 esac
15663 fi
15664
15665
15666 as_nl='
15667 '
15668 export as_nl
15669 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15670 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15671 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15672 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15673 # Prefer a ksh shell builtin over an external printf program on Solaris,
15674 # but without wasting forks for bash or zsh.
15675 if test -z "$BASH_VERSION$ZSH_VERSION" \
15676 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15677 as_echo='print -r --'
15678 as_echo_n='print -rn --'
15679 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15680 as_echo='printf %s\n'
15681 as_echo_n='printf %s'
15682 else
15683 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15684 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15685 as_echo_n='/usr/ucb/echo -n'
15686 else
15687 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15688 as_echo_n_body='eval
15689 arg=$1;
15690 case $arg in #(
15691 *"$as_nl"*)
15692 expr "X$arg" : "X\\(.*\\)$as_nl";
15693 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15694 esac;
15695 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15696 '
15697 export as_echo_n_body
15698 as_echo_n='sh -c $as_echo_n_body as_echo'
15699 fi
15700 export as_echo_body
15701 as_echo='sh -c $as_echo_body as_echo'
15702 fi
15703
15704 # The user is always right.
15705 if test "${PATH_SEPARATOR+set}" != set; then
15706 PATH_SEPARATOR=:
15707 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15708 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15709 PATH_SEPARATOR=';'
15710 }
15711 fi
15712
15713
15714 # IFS
15715 # We need space, tab and new line, in precisely that order. Quoting is
15716 # there to prevent editors from complaining about space-tab.
15717 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15718 # splitting by setting IFS to empty value.)
15719 IFS=" "" $as_nl"
15720
15721 # Find who we are. Look in the path if we contain no directory separator.
15722 as_myself=
15723 case $0 in #((
15724 *[\\/]* ) as_myself=$0 ;;
15725 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15726 for as_dir in $PATH
15727 do
15728 IFS=$as_save_IFS
15729 test -z "$as_dir" && as_dir=.
15730 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15731 done
15732 IFS=$as_save_IFS
15733
15734 ;;
15735 esac
15736 # We did not find ourselves, most probably we were run as `sh COMMAND'
15737 # in which case we are not to be found in the path.
15738 if test "x$as_myself" = x; then
15739 as_myself=$0
15740 fi
15741 if test ! -f "$as_myself"; then
15742 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15743 exit 1
15744 fi
15745
15746 # Unset variables that we do not need and which cause bugs (e.g. in
15747 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15748 # suppresses any "Segmentation fault" message there. '((' could
15749 # trigger a bug in pdksh 5.2.14.
15750 for as_var in BASH_ENV ENV MAIL MAILPATH
15751 do eval test x\${$as_var+set} = xset \
15752 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15753 done
15754 PS1='$ '
15755 PS2='> '
15756 PS4='+ '
15757
15758 # NLS nuisances.
15759 LC_ALL=C
15760 export LC_ALL
15761 LANGUAGE=C
15762 export LANGUAGE
15763
15764 # CDPATH.
15765 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15766
15767
15768 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15769 # ----------------------------------------
15770 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15771 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15772 # script with STATUS, using 1 if that was 0.
15773 as_fn_error ()
15774 {
15775 as_status=$1; test $as_status -eq 0 && as_status=1
15776 if test "$4"; then
15777 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15778 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15779 fi
15780 $as_echo "$as_me: error: $2" >&2
15781 as_fn_exit $as_status
15782 } # as_fn_error
15783
15784
15785 # as_fn_set_status STATUS
15786 # -----------------------
15787 # Set $? to STATUS, without forking.
15788 as_fn_set_status ()
15789 {
15790 return $1
15791 } # as_fn_set_status
15792
15793 # as_fn_exit STATUS
15794 # -----------------
15795 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15796 as_fn_exit ()
15797 {
15798 set +e
15799 as_fn_set_status $1
15800 exit $1
15801 } # as_fn_exit
15802
15803 # as_fn_unset VAR
15804 # ---------------
15805 # Portably unset VAR.
15806 as_fn_unset ()
15807 {
15808 { eval $1=; unset $1;}
15809 }
15810 as_unset=as_fn_unset
15811 # as_fn_append VAR VALUE
15812 # ----------------------
15813 # Append the text in VALUE to the end of the definition contained in VAR. Take
15814 # advantage of any shell optimizations that allow amortized linear growth over
15815 # repeated appends, instead of the typical quadratic growth present in naive
15816 # implementations.
15817 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15818 eval 'as_fn_append ()
15819 {
15820 eval $1+=\$2
15821 }'
15822 else
15823 as_fn_append ()
15824 {
15825 eval $1=\$$1\$2
15826 }
15827 fi # as_fn_append
15828
15829 # as_fn_arith ARG...
15830 # ------------------
15831 # Perform arithmetic evaluation on the ARGs, and store the result in the
15832 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15833 # must be portable across $(()) and expr.
15834 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15835 eval 'as_fn_arith ()
15836 {
15837 as_val=$(( $* ))
15838 }'
15839 else
15840 as_fn_arith ()
15841 {
15842 as_val=`expr "$@" || test $? -eq 1`
15843 }
15844 fi # as_fn_arith
15845
15846
15847 if expr a : '\(a\)' >/dev/null 2>&1 &&
15848 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15849 as_expr=expr
15850 else
15851 as_expr=false
15852 fi
15853
15854 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15855 as_basename=basename
15856 else
15857 as_basename=false
15858 fi
15859
15860 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15861 as_dirname=dirname
15862 else
15863 as_dirname=false
15864 fi
15865
15866 as_me=`$as_basename -- "$0" ||
15867 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15868 X"$0" : 'X\(//\)$' \| \
15869 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15870 $as_echo X/"$0" |
15871 sed '/^.*\/\([^/][^/]*\)\/*$/{
15872 s//\1/
15873 q
15874 }
15875 /^X\/\(\/\/\)$/{
15876 s//\1/
15877 q
15878 }
15879 /^X\/\(\/\).*/{
15880 s//\1/
15881 q
15882 }
15883 s/.*/./; q'`
15884
15885 # Avoid depending upon Character Ranges.
15886 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15887 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15888 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15889 as_cr_digits='0123456789'
15890 as_cr_alnum=$as_cr_Letters$as_cr_digits
15891
15892 ECHO_C= ECHO_N= ECHO_T=
15893 case `echo -n x` in #(((((
15894 -n*)
15895 case `echo 'xy\c'` in
15896 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15897 xy) ECHO_C='\c';;
15898 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15899 ECHO_T=' ';;
15900 esac;;
15901 *)
15902 ECHO_N='-n';;
15903 esac
15904
15905 rm -f conf$$ conf$$.exe conf$$.file
15906 if test -d conf$$.dir; then
15907 rm -f conf$$.dir/conf$$.file
15908 else
15909 rm -f conf$$.dir
15910 mkdir conf$$.dir 2>/dev/null
15911 fi
15912 if (echo >conf$$.file) 2>/dev/null; then
15913 if ln -s conf$$.file conf$$ 2>/dev/null; then
15914 as_ln_s='ln -s'
15915 # ... but there are two gotchas:
15916 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15917 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15918 # In both cases, we have to default to `cp -pR'.
15919 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15920 as_ln_s='cp -pR'
15921 elif ln conf$$.file conf$$ 2>/dev/null; then
15922 as_ln_s=ln
15923 else
15924 as_ln_s='cp -pR'
15925 fi
15926 else
15927 as_ln_s='cp -pR'
15928 fi
15929 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15930 rmdir conf$$.dir 2>/dev/null
15931
15932
15933 # as_fn_mkdir_p
15934 # -------------
15935 # Create "$as_dir" as a directory, including parents if necessary.
15936 as_fn_mkdir_p ()
15937 {
15938
15939 case $as_dir in #(
15940 -*) as_dir=./$as_dir;;
15941 esac
15942 test -d "$as_dir" || eval $as_mkdir_p || {
15943 as_dirs=
15944 while :; do
15945 case $as_dir in #(
15946 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15947 *) as_qdir=$as_dir;;
15948 esac
15949 as_dirs="'$as_qdir' $as_dirs"
15950 as_dir=`$as_dirname -- "$as_dir" ||
15951 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15952 X"$as_dir" : 'X\(//\)[^/]' \| \
15953 X"$as_dir" : 'X\(//\)$' \| \
15954 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15955 $as_echo X"$as_dir" |
15956 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15957 s//\1/
15958 q
15959 }
15960 /^X\(\/\/\)[^/].*/{
15961 s//\1/
15962 q
15963 }
15964 /^X\(\/\/\)$/{
15965 s//\1/
15966 q
15967 }
15968 /^X\(\/\).*/{
15969 s//\1/
15970 q
15971 }
15972 s/.*/./; q'`
15973 test -d "$as_dir" && break
15974 done
15975 test -z "$as_dirs" || eval "mkdir $as_dirs"
15976 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15977
15978
15979 } # as_fn_mkdir_p
15980 if mkdir -p . 2>/dev/null; then
15981 as_mkdir_p='mkdir -p "$as_dir"'
15982 else
15983 test -d ./-p && rmdir ./-p
15984 as_mkdir_p=false
15985 fi
15986
15987
15988 # as_fn_executable_p FILE
15989 # -----------------------
15990 # Test if FILE is an executable regular file.
15991 as_fn_executable_p ()
15992 {
15993 test -f "$1" && test -x "$1"
15994 } # as_fn_executable_p
15995 as_test_x='test -x'
15996 as_executable_p=as_fn_executable_p
15997
15998 # Sed expression to map a string onto a valid CPP name.
15999 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16000
16001 # Sed expression to map a string onto a valid variable name.
16002 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16003
16004
16005 exec 6>&1
16006 ## ----------------------------------- ##
16007 ## Main body of $CONFIG_STATUS script. ##
16008 ## ----------------------------------- ##
16009 _ASEOF
16010 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16011
16012 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16013 # Save the log message, to keep $0 and so on meaningful, and to
16014 # report actual input values of CONFIG_FILES etc. instead of their
16015 # values after options handling.
16016 ac_log="
16017 This file was extended by package-unused $as_me version-unused, which was
16018 generated by GNU Autoconf 2.69. Invocation command line was
16019
16020 CONFIG_FILES = $CONFIG_FILES
16021 CONFIG_HEADERS = $CONFIG_HEADERS
16022 CONFIG_LINKS = $CONFIG_LINKS
16023 CONFIG_COMMANDS = $CONFIG_COMMANDS
16024 $ $0 $@
16025
16026 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16027 "
16028
16029 _ACEOF
16030
16031 case $ac_config_files in *"
16032 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16033 esac
16034
16035 case $ac_config_headers in *"
16036 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16037 esac
16038
16039
16040 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16041 # Files that config.status was made for.
16042 config_files="$ac_config_files"
16043 config_headers="$ac_config_headers"
16044 config_commands="$ac_config_commands"
16045
16046 _ACEOF
16047
16048 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16049 ac_cs_usage="\
16050 \`$as_me' instantiates files and other configuration actions
16051 from templates according to the current configuration. Unless the files
16052 and actions are specified as TAGs, all are instantiated by default.
16053
16054 Usage: $0 [OPTION]... [TAG]...
16055
16056 -h, --help print this help, then exit
16057 -V, --version print version number and configuration settings, then exit
16058 --config print configuration, then exit
16059 -q, --quiet, --silent
16060 do not print progress messages
16061 -d, --debug don't remove temporary files
16062 --recheck update $as_me by reconfiguring in the same conditions
16063 --file=FILE[:TEMPLATE]
16064 instantiate the configuration file FILE
16065 --header=FILE[:TEMPLATE]
16066 instantiate the configuration header FILE
16067
16068 Configuration files:
16069 $config_files
16070
16071 Configuration headers:
16072 $config_headers
16073
16074 Configuration commands:
16075 $config_commands
16076
16077 Report bugs to the package provider."
16078
16079 _ACEOF
16080 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16081 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16082 ac_cs_version="\\
16083 package-unused config.status version-unused
16084 configured by $0, generated by GNU Autoconf 2.69,
16085 with options \\"\$ac_cs_config\\"
16086
16087 Copyright (C) 2012 Free Software Foundation, Inc.
16088 This config.status script is free software; the Free Software Foundation
16089 gives unlimited permission to copy, distribute and modify it."
16090
16091 ac_pwd='$ac_pwd'
16092 srcdir='$srcdir'
16093 INSTALL='$INSTALL'
16094 MKDIR_P='$MKDIR_P'
16095 AWK='$AWK'
16096 test -n "\$AWK" || AWK=awk
16097 _ACEOF
16098
16099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16100 # The default lists apply if the user does not specify any file.
16101 ac_need_defaults=:
16102 while test $# != 0
16103 do
16104 case $1 in
16105 --*=?*)
16106 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16107 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16108 ac_shift=:
16109 ;;
16110 --*=)
16111 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16112 ac_optarg=
16113 ac_shift=:
16114 ;;
16115 *)
16116 ac_option=$1
16117 ac_optarg=$2
16118 ac_shift=shift
16119 ;;
16120 esac
16121
16122 case $ac_option in
16123 # Handling of the options.
16124 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16125 ac_cs_recheck=: ;;
16126 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16127 $as_echo "$ac_cs_version"; exit ;;
16128 --config | --confi | --conf | --con | --co | --c )
16129 $as_echo "$ac_cs_config"; exit ;;
16130 --debug | --debu | --deb | --de | --d | -d )
16131 debug=: ;;
16132 --file | --fil | --fi | --f )
16133 $ac_shift
16134 case $ac_optarg in
16135 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16136 '') as_fn_error $? "missing file argument" ;;
16137 esac
16138 as_fn_append CONFIG_FILES " '$ac_optarg'"
16139 ac_need_defaults=false;;
16140 --header | --heade | --head | --hea )
16141 $ac_shift
16142 case $ac_optarg in
16143 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16144 esac
16145 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16146 ac_need_defaults=false;;
16147 --he | --h)
16148 # Conflict between --help and --header
16149 as_fn_error $? "ambiguous option: \`$1'
16150 Try \`$0 --help' for more information.";;
16151 --help | --hel | -h )
16152 $as_echo "$ac_cs_usage"; exit ;;
16153 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16154 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16155 ac_cs_silent=: ;;
16156
16157 # This is an error.
16158 -*) as_fn_error $? "unrecognized option: \`$1'
16159 Try \`$0 --help' for more information." ;;
16160
16161 *) as_fn_append ac_config_targets " $1"
16162 ac_need_defaults=false ;;
16163
16164 esac
16165 shift
16166 done
16167
16168 ac_configure_extra_args=
16169
16170 if $ac_cs_silent; then
16171 exec 6>/dev/null
16172 ac_configure_extra_args="$ac_configure_extra_args --silent"
16173 fi
16174
16175 _ACEOF
16176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16177 if \$ac_cs_recheck; then
16178 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16179 shift
16180 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16181 CONFIG_SHELL='$SHELL'
16182 export CONFIG_SHELL
16183 exec "\$@"
16184 fi
16185
16186 _ACEOF
16187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16188 exec 5>>config.log
16189 {
16190 echo
16191 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16192 ## Running $as_me. ##
16193 _ASBOX
16194 $as_echo "$ac_log"
16195 } >&5
16196
16197 _ACEOF
16198 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16199 #
16200 # INIT-COMMANDS
16201 #
16202
16203 srcdir="$srcdir"
16204 host="$host"
16205 target="$target"
16206 with_multisubdir="$with_multisubdir"
16207 with_multisrctop="$with_multisrctop"
16208 with_target_subdir="$with_target_subdir"
16209 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16210 multi_basedir="$multi_basedir"
16211 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16212 CC="$CC"
16213 CXX="$CXX"
16214 GFORTRAN="$GFORTRAN"
16215 GDC="$GDC"
16216
16217
16218 # The HP-UX ksh and POSIX shell print the target directory to stdout
16219 # if CDPATH is set.
16220 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16221
16222 sed_quote_subst='$sed_quote_subst'
16223 double_quote_subst='$double_quote_subst'
16224 delay_variable_subst='$delay_variable_subst'
16225 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16226 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16227 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16228 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16229 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16230 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16231 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16232 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16233 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16234 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16235 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16236 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16237 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16238 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16239 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16240 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16241 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16242 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16243 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16244 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16245 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16246 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16247 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16248 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16249 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16250 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16251 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16252 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16253 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16254 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16255 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16256 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16257 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16258 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16259 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16260 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16261 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16262 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16263 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16264 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16265 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16266 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16267 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16268 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16269 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16270 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16271 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16272 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16273 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"`'
16274 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16275 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16276 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16277 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16278 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16279 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16280 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16281 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16282 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16283 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16284 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16285 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16286 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16287 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16288 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16289 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16290 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16291 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16292 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16293 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16294 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16295 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16296 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16297 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16298 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16299 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16300 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16301 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16302 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16303 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16304 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16305 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16306 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16307 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16308 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16309 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16310 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16311 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16312 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16313 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16314 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16315 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16316 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16317 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16318 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16319 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16320 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16321 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16322 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16323 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16324 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16325 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16326 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16327 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16328 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16329 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16330 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16331 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16332 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16333 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16334 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16335 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16336 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16337 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16338 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16339 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16340 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16341 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16342 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16343 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16344 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16345 LD_D='`$ECHO "$LD_D" | $SED "$delay_single_quote_subst"`'
16346 reload_flag_D='`$ECHO "$reload_flag_D" | $SED "$delay_single_quote_subst"`'
16347 reload_cmds_D='`$ECHO "$reload_cmds_D" | $SED "$delay_single_quote_subst"`'
16348 old_archive_cmds_D='`$ECHO "$old_archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16349 compiler_D='`$ECHO "$compiler_D" | $SED "$delay_single_quote_subst"`'
16350 GCC_D='`$ECHO "$GCC_D" | $SED "$delay_single_quote_subst"`'
16351 lt_prog_compiler_no_builtin_flag_D='`$ECHO "$lt_prog_compiler_no_builtin_flag_D" | $SED "$delay_single_quote_subst"`'
16352 lt_prog_compiler_wl_D='`$ECHO "$lt_prog_compiler_wl_D" | $SED "$delay_single_quote_subst"`'
16353 lt_prog_compiler_pic_D='`$ECHO "$lt_prog_compiler_pic_D" | $SED "$delay_single_quote_subst"`'
16354 lt_prog_compiler_static_D='`$ECHO "$lt_prog_compiler_static_D" | $SED "$delay_single_quote_subst"`'
16355 lt_cv_prog_compiler_c_o_D='`$ECHO "$lt_cv_prog_compiler_c_o_D" | $SED "$delay_single_quote_subst"`'
16356 archive_cmds_need_lc_D='`$ECHO "$archive_cmds_need_lc_D" | $SED "$delay_single_quote_subst"`'
16357 enable_shared_with_static_runtimes_D='`$ECHO "$enable_shared_with_static_runtimes_D" | $SED "$delay_single_quote_subst"`'
16358 export_dynamic_flag_spec_D='`$ECHO "$export_dynamic_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16359 whole_archive_flag_spec_D='`$ECHO "$whole_archive_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16360 compiler_needs_object_D='`$ECHO "$compiler_needs_object_D" | $SED "$delay_single_quote_subst"`'
16361 old_archive_from_new_cmds_D='`$ECHO "$old_archive_from_new_cmds_D" | $SED "$delay_single_quote_subst"`'
16362 old_archive_from_expsyms_cmds_D='`$ECHO "$old_archive_from_expsyms_cmds_D" | $SED "$delay_single_quote_subst"`'
16363 archive_cmds_D='`$ECHO "$archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16364 archive_expsym_cmds_D='`$ECHO "$archive_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16365 module_cmds_D='`$ECHO "$module_cmds_D" | $SED "$delay_single_quote_subst"`'
16366 module_expsym_cmds_D='`$ECHO "$module_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16367 with_gnu_ld_D='`$ECHO "$with_gnu_ld_D" | $SED "$delay_single_quote_subst"`'
16368 allow_undefined_flag_D='`$ECHO "$allow_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16369 no_undefined_flag_D='`$ECHO "$no_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16370 hardcode_libdir_flag_spec_D='`$ECHO "$hardcode_libdir_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16371 hardcode_libdir_flag_spec_ld_D='`$ECHO "$hardcode_libdir_flag_spec_ld_D" | $SED "$delay_single_quote_subst"`'
16372 hardcode_libdir_separator_D='`$ECHO "$hardcode_libdir_separator_D" | $SED "$delay_single_quote_subst"`'
16373 hardcode_direct_D='`$ECHO "$hardcode_direct_D" | $SED "$delay_single_quote_subst"`'
16374 hardcode_direct_absolute_D='`$ECHO "$hardcode_direct_absolute_D" | $SED "$delay_single_quote_subst"`'
16375 hardcode_minus_L_D='`$ECHO "$hardcode_minus_L_D" | $SED "$delay_single_quote_subst"`'
16376 hardcode_shlibpath_var_D='`$ECHO "$hardcode_shlibpath_var_D" | $SED "$delay_single_quote_subst"`'
16377 hardcode_automatic_D='`$ECHO "$hardcode_automatic_D" | $SED "$delay_single_quote_subst"`'
16378 inherit_rpath_D='`$ECHO "$inherit_rpath_D" | $SED "$delay_single_quote_subst"`'
16379 link_all_deplibs_D='`$ECHO "$link_all_deplibs_D" | $SED "$delay_single_quote_subst"`'
16380 fix_srcfile_path_D='`$ECHO "$fix_srcfile_path_D" | $SED "$delay_single_quote_subst"`'
16381 always_export_symbols_D='`$ECHO "$always_export_symbols_D" | $SED "$delay_single_quote_subst"`'
16382 export_symbols_cmds_D='`$ECHO "$export_symbols_cmds_D" | $SED "$delay_single_quote_subst"`'
16383 exclude_expsyms_D='`$ECHO "$exclude_expsyms_D" | $SED "$delay_single_quote_subst"`'
16384 include_expsyms_D='`$ECHO "$include_expsyms_D" | $SED "$delay_single_quote_subst"`'
16385 prelink_cmds_D='`$ECHO "$prelink_cmds_D" | $SED "$delay_single_quote_subst"`'
16386 file_list_spec_D='`$ECHO "$file_list_spec_D" | $SED "$delay_single_quote_subst"`'
16387 hardcode_action_D='`$ECHO "$hardcode_action_D" | $SED "$delay_single_quote_subst"`'
16388
16389 LTCC='$LTCC'
16390 LTCFLAGS='$LTCFLAGS'
16391 compiler='$compiler_DEFAULT'
16392
16393 # A function that is used when there is no print builtin or printf.
16394 func_fallback_echo ()
16395 {
16396 eval 'cat <<_LTECHO_EOF
16397 \$1
16398 _LTECHO_EOF'
16399 }
16400
16401 # Quote evaled strings.
16402 for var in SHELL \
16403 ECHO \
16404 SED \
16405 GREP \
16406 EGREP \
16407 FGREP \
16408 LD \
16409 NM \
16410 LN_S \
16411 lt_SP2NL \
16412 lt_NL2SP \
16413 reload_flag \
16414 OBJDUMP \
16415 deplibs_check_method \
16416 file_magic_cmd \
16417 AR \
16418 AR_FLAGS \
16419 STRIP \
16420 RANLIB \
16421 CC \
16422 CFLAGS \
16423 compiler \
16424 lt_cv_sys_global_symbol_pipe \
16425 lt_cv_sys_global_symbol_to_cdecl \
16426 lt_cv_sys_global_symbol_to_c_name_address \
16427 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16428 lt_prog_compiler_no_builtin_flag \
16429 lt_prog_compiler_wl \
16430 lt_prog_compiler_pic \
16431 lt_prog_compiler_static \
16432 lt_cv_prog_compiler_c_o \
16433 need_locks \
16434 DSYMUTIL \
16435 NMEDIT \
16436 LIPO \
16437 OTOOL \
16438 OTOOL64 \
16439 shrext_cmds \
16440 export_dynamic_flag_spec \
16441 whole_archive_flag_spec \
16442 compiler_needs_object \
16443 with_gnu_ld \
16444 allow_undefined_flag \
16445 no_undefined_flag \
16446 hardcode_libdir_flag_spec \
16447 hardcode_libdir_flag_spec_ld \
16448 hardcode_libdir_separator \
16449 fix_srcfile_path \
16450 exclude_expsyms \
16451 include_expsyms \
16452 file_list_spec \
16453 variables_saved_for_relink \
16454 libname_spec \
16455 library_names_spec \
16456 soname_spec \
16457 install_override_mode \
16458 finish_eval \
16459 old_striplib \
16460 striplib \
16461 LD_D \
16462 reload_flag_D \
16463 compiler_D \
16464 lt_prog_compiler_no_builtin_flag_D \
16465 lt_prog_compiler_wl_D \
16466 lt_prog_compiler_pic_D \
16467 lt_prog_compiler_static_D \
16468 lt_cv_prog_compiler_c_o_D \
16469 export_dynamic_flag_spec_D \
16470 whole_archive_flag_spec_D \
16471 compiler_needs_object_D \
16472 with_gnu_ld_D \
16473 allow_undefined_flag_D \
16474 no_undefined_flag_D \
16475 hardcode_libdir_flag_spec_D \
16476 hardcode_libdir_flag_spec_ld_D \
16477 hardcode_libdir_separator_D \
16478 fix_srcfile_path_D \
16479 exclude_expsyms_D \
16480 include_expsyms_D \
16481 file_list_spec_D; do
16482 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16483 *[\\\\\\\`\\"\\\$]*)
16484 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16485 ;;
16486 *)
16487 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16488 ;;
16489 esac
16490 done
16491
16492 # Double-quote double-evaled strings.
16493 for var in reload_cmds \
16494 old_postinstall_cmds \
16495 old_postuninstall_cmds \
16496 old_archive_cmds \
16497 extract_expsyms_cmds \
16498 old_archive_from_new_cmds \
16499 old_archive_from_expsyms_cmds \
16500 archive_cmds \
16501 archive_expsym_cmds \
16502 module_cmds \
16503 module_expsym_cmds \
16504 export_symbols_cmds \
16505 prelink_cmds \
16506 postinstall_cmds \
16507 postuninstall_cmds \
16508 finish_cmds \
16509 sys_lib_search_path_spec \
16510 sys_lib_dlsearch_path_spec \
16511 reload_cmds_D \
16512 old_archive_cmds_D \
16513 old_archive_from_new_cmds_D \
16514 old_archive_from_expsyms_cmds_D \
16515 archive_cmds_D \
16516 archive_expsym_cmds_D \
16517 module_cmds_D \
16518 module_expsym_cmds_D \
16519 export_symbols_cmds_D \
16520 prelink_cmds_D; do
16521 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16522 *[\\\\\\\`\\"\\\$]*)
16523 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16524 ;;
16525 *)
16526 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16527 ;;
16528 esac
16529 done
16530
16531 ac_aux_dir='$ac_aux_dir'
16532 xsi_shell='$xsi_shell'
16533 lt_shell_append='$lt_shell_append'
16534
16535 # See if we are running on zsh, and set the options which allow our
16536 # commands through without removal of \ escapes INIT.
16537 if test -n "\${ZSH_VERSION+set}" ; then
16538 setopt NO_GLOB_SUBST
16539 fi
16540
16541
16542 PACKAGE='$PACKAGE'
16543 VERSION='$VERSION'
16544 TIMESTAMP='$TIMESTAMP'
16545 RM='$RM'
16546 ofile='$ofile'
16547
16548
16549
16550
16551
16552
16553 _ACEOF
16554
16555 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16556
16557 # Handling of arguments.
16558 for ac_config_target in $ac_config_targets
16559 do
16560 case $ac_config_target in
16561 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16562 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16563 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16564 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16565 "libdruntime/gcc/config.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/config.d" ;;
16566 "libdruntime/gcc/libbacktrace.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/libbacktrace.d" ;;
16567 "src/libgphobos.spec") CONFIG_FILES="$CONFIG_FILES src/libgphobos.spec" ;;
16568 "testsuite/testsuite_flags") CONFIG_FILES="$CONFIG_FILES testsuite/testsuite_flags" ;;
16569 "libdruntime/Makefile") CONFIG_FILES="$CONFIG_FILES libdruntime/Makefile" ;;
16570 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16571 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16572
16573 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16574 esac
16575 done
16576
16577
16578 # If the user did not use the arguments to specify the items to instantiate,
16579 # then the envvar interface is used. Set only those that are not.
16580 # We use the long form for the default assignment because of an extremely
16581 # bizarre bug on SunOS 4.1.3.
16582 if $ac_need_defaults; then
16583 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16584 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16585 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16586 fi
16587
16588 # Have a temporary directory for convenience. Make it in the build tree
16589 # simply because there is no reason against having it here, and in addition,
16590 # creating and moving files from /tmp can sometimes cause problems.
16591 # Hook for its removal unless debugging.
16592 # Note that there is a small window in which the directory will not be cleaned:
16593 # after its creation but before its name has been assigned to `$tmp'.
16594 $debug ||
16595 {
16596 tmp= ac_tmp=
16597 trap 'exit_status=$?
16598 : "${ac_tmp:=$tmp}"
16599 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16600 ' 0
16601 trap 'as_fn_exit 1' 1 2 13 15
16602 }
16603 # Create a (secure) tmp directory for tmp files.
16604
16605 {
16606 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16607 test -d "$tmp"
16608 } ||
16609 {
16610 tmp=./conf$$-$RANDOM
16611 (umask 077 && mkdir "$tmp")
16612 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16613 ac_tmp=$tmp
16614
16615 # Set up the scripts for CONFIG_FILES section.
16616 # No need to generate them if there are no CONFIG_FILES.
16617 # This happens for instance with `./config.status config.h'.
16618 if test -n "$CONFIG_FILES"; then
16619
16620 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16621 ac_cs_awk_getline=:
16622 ac_cs_awk_pipe_init=
16623 ac_cs_awk_read_file='
16624 while ((getline aline < (F[key])) > 0)
16625 print(aline)
16626 close(F[key])'
16627 ac_cs_awk_pipe_fini=
16628 else
16629 ac_cs_awk_getline=false
16630 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16631 ac_cs_awk_read_file='
16632 print "|#_!!_#|"
16633 print "cat " F[key] " &&"
16634 '$ac_cs_awk_pipe_init
16635 # The final `:' finishes the AND list.
16636 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16637 fi
16638 ac_cr=`echo X | tr X '\015'`
16639 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16640 # But we know of no other shell where ac_cr would be empty at this
16641 # point, so we can use a bashism as a fallback.
16642 if test "x$ac_cr" = x; then
16643 eval ac_cr=\$\'\\r\'
16644 fi
16645 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16646 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16647 ac_cs_awk_cr='\\r'
16648 else
16649 ac_cs_awk_cr=$ac_cr
16650 fi
16651
16652 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16653 _ACEOF
16654
16655 # Create commands to substitute file output variables.
16656 {
16657 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16658 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16659 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16660 echo "_ACAWK" &&
16661 echo "_ACEOF"
16662 } >conf$$files.sh &&
16663 . ./conf$$files.sh ||
16664 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16665 rm -f conf$$files.sh
16666
16667 {
16668 echo "cat >conf$$subs.awk <<_ACEOF" &&
16669 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16670 echo "_ACEOF"
16671 } >conf$$subs.sh ||
16672 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16673 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16674 ac_delim='%!_!# '
16675 for ac_last_try in false false false false false :; do
16676 . ./conf$$subs.sh ||
16677 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16678
16679 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16680 if test $ac_delim_n = $ac_delim_num; then
16681 break
16682 elif $ac_last_try; then
16683 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16684 else
16685 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16686 fi
16687 done
16688 rm -f conf$$subs.sh
16689
16690 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16691 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16692 _ACEOF
16693 sed -n '
16694 h
16695 s/^/S["/; s/!.*/"]=/
16696 p
16697 g
16698 s/^[^!]*!//
16699 :repl
16700 t repl
16701 s/'"$ac_delim"'$//
16702 t delim
16703 :nl
16704 h
16705 s/\(.\{148\}\)..*/\1/
16706 t more1
16707 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16708 p
16709 n
16710 b repl
16711 :more1
16712 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16713 p
16714 g
16715 s/.\{148\}//
16716 t nl
16717 :delim
16718 h
16719 s/\(.\{148\}\)..*/\1/
16720 t more2
16721 s/["\\]/\\&/g; s/^/"/; s/$/"/
16722 p
16723 b
16724 :more2
16725 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16726 p
16727 g
16728 s/.\{148\}//
16729 t delim
16730 ' <conf$$subs.awk | sed '
16731 /^[^""]/{
16732 N
16733 s/\n//
16734 }
16735 ' >>$CONFIG_STATUS || ac_write_fail=1
16736 rm -f conf$$subs.awk
16737 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16738 _ACAWK
16739 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16740 for (key in S) S_is_set[key] = 1
16741 FS = "\a"
16742 \$ac_cs_awk_pipe_init
16743 }
16744 {
16745 line = $ 0
16746 nfields = split(line, field, "@")
16747 substed = 0
16748 len = length(field[1])
16749 for (i = 2; i < nfields; i++) {
16750 key = field[i]
16751 keylen = length(key)
16752 if (S_is_set[key]) {
16753 value = S[key]
16754 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16755 len += length(value) + length(field[++i])
16756 substed = 1
16757 } else
16758 len += 1 + keylen
16759 }
16760 if (nfields == 3 && !substed) {
16761 key = field[2]
16762 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16763 \$ac_cs_awk_read_file
16764 next
16765 }
16766 }
16767 print line
16768 }
16769 \$ac_cs_awk_pipe_fini
16770 _ACAWK
16771 _ACEOF
16772 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16773 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16774 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16775 else
16776 cat
16777 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16778 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16779 _ACEOF
16780
16781 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16782 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16783 # trailing colons and then remove the whole line if VPATH becomes empty
16784 # (actually we leave an empty line to preserve line numbers).
16785 if test "x$srcdir" = x.; then
16786 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16787 h
16788 s///
16789 s/^/:/
16790 s/[ ]*$/:/
16791 s/:\$(srcdir):/:/g
16792 s/:\${srcdir}:/:/g
16793 s/:@srcdir@:/:/g
16794 s/^:*//
16795 s/:*$//
16796 x
16797 s/\(=[ ]*\).*/\1/
16798 G
16799 s/\n//
16800 s/^[^=]*=[ ]*$//
16801 }'
16802 fi
16803
16804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16805 fi # test -n "$CONFIG_FILES"
16806
16807 # Set up the scripts for CONFIG_HEADERS section.
16808 # No need to generate them if there are no CONFIG_HEADERS.
16809 # This happens for instance with `./config.status Makefile'.
16810 if test -n "$CONFIG_HEADERS"; then
16811 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16812 BEGIN {
16813 _ACEOF
16814
16815 # Transform confdefs.h into an awk script `defines.awk', embedded as
16816 # here-document in config.status, that substitutes the proper values into
16817 # config.h.in to produce config.h.
16818
16819 # Create a delimiter string that does not exist in confdefs.h, to ease
16820 # handling of long lines.
16821 ac_delim='%!_!# '
16822 for ac_last_try in false false :; do
16823 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16824 if test -z "$ac_tt"; then
16825 break
16826 elif $ac_last_try; then
16827 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16828 else
16829 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16830 fi
16831 done
16832
16833 # For the awk script, D is an array of macro values keyed by name,
16834 # likewise P contains macro parameters if any. Preserve backslash
16835 # newline sequences.
16836
16837 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16838 sed -n '
16839 s/.\{148\}/&'"$ac_delim"'/g
16840 t rset
16841 :rset
16842 s/^[ ]*#[ ]*define[ ][ ]*/ /
16843 t def
16844 d
16845 :def
16846 s/\\$//
16847 t bsnl
16848 s/["\\]/\\&/g
16849 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16850 D["\1"]=" \3"/p
16851 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16852 d
16853 :bsnl
16854 s/["\\]/\\&/g
16855 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16856 D["\1"]=" \3\\\\\\n"\\/p
16857 t cont
16858 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16859 t cont
16860 d
16861 :cont
16862 n
16863 s/.\{148\}/&'"$ac_delim"'/g
16864 t clear
16865 :clear
16866 s/\\$//
16867 t bsnlc
16868 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16869 d
16870 :bsnlc
16871 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16872 b cont
16873 ' <confdefs.h | sed '
16874 s/'"$ac_delim"'/"\\\
16875 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16876
16877 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16878 for (key in D) D_is_set[key] = 1
16879 FS = "\a"
16880 }
16881 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16882 line = \$ 0
16883 split(line, arg, " ")
16884 if (arg[1] == "#") {
16885 defundef = arg[2]
16886 mac1 = arg[3]
16887 } else {
16888 defundef = substr(arg[1], 2)
16889 mac1 = arg[2]
16890 }
16891 split(mac1, mac2, "(") #)
16892 macro = mac2[1]
16893 prefix = substr(line, 1, index(line, defundef) - 1)
16894 if (D_is_set[macro]) {
16895 # Preserve the white space surrounding the "#".
16896 print prefix "define", macro P[macro] D[macro]
16897 next
16898 } else {
16899 # Replace #undef with comments. This is necessary, for example,
16900 # in the case of _POSIX_SOURCE, which is predefined and required
16901 # on some systems where configure will not decide to define it.
16902 if (defundef == "undef") {
16903 print "/*", prefix defundef, macro, "*/"
16904 next
16905 }
16906 }
16907 }
16908 { print }
16909 _ACAWK
16910 _ACEOF
16911 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16912 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16913 fi # test -n "$CONFIG_HEADERS"
16914
16915
16916 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16917 shift
16918 for ac_tag
16919 do
16920 case $ac_tag in
16921 :[FHLC]) ac_mode=$ac_tag; continue;;
16922 esac
16923 case $ac_mode$ac_tag in
16924 :[FHL]*:*);;
16925 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16926 :[FH]-) ac_tag=-:-;;
16927 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16928 esac
16929 ac_save_IFS=$IFS
16930 IFS=:
16931 set x $ac_tag
16932 IFS=$ac_save_IFS
16933 shift
16934 ac_file=$1
16935 shift
16936
16937 case $ac_mode in
16938 :L) ac_source=$1;;
16939 :[FH])
16940 ac_file_inputs=
16941 for ac_f
16942 do
16943 case $ac_f in
16944 -) ac_f="$ac_tmp/stdin";;
16945 *) # Look for the file first in the build tree, then in the source tree
16946 # (if the path is not absolute). The absolute path cannot be DOS-style,
16947 # because $ac_f cannot contain `:'.
16948 test -f "$ac_f" ||
16949 case $ac_f in
16950 [\\/$]*) false;;
16951 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16952 esac ||
16953 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16954 esac
16955 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16956 as_fn_append ac_file_inputs " '$ac_f'"
16957 done
16958
16959 # Let's still pretend it is `configure' which instantiates (i.e., don't
16960 # use $as_me), people would be surprised to read:
16961 # /* config.h. Generated by config.status. */
16962 configure_input='Generated from '`
16963 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16964 `' by configure.'
16965 if test x"$ac_file" != x-; then
16966 configure_input="$ac_file. $configure_input"
16967 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16968 $as_echo "$as_me: creating $ac_file" >&6;}
16969 fi
16970 # Neutralize special characters interpreted by sed in replacement strings.
16971 case $configure_input in #(
16972 *\&* | *\|* | *\\* )
16973 ac_sed_conf_input=`$as_echo "$configure_input" |
16974 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16975 *) ac_sed_conf_input=$configure_input;;
16976 esac
16977
16978 case $ac_tag in
16979 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16980 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16981 esac
16982 ;;
16983 esac
16984
16985 ac_dir=`$as_dirname -- "$ac_file" ||
16986 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16987 X"$ac_file" : 'X\(//\)[^/]' \| \
16988 X"$ac_file" : 'X\(//\)$' \| \
16989 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16990 $as_echo X"$ac_file" |
16991 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16992 s//\1/
16993 q
16994 }
16995 /^X\(\/\/\)[^/].*/{
16996 s//\1/
16997 q
16998 }
16999 /^X\(\/\/\)$/{
17000 s//\1/
17001 q
17002 }
17003 /^X\(\/\).*/{
17004 s//\1/
17005 q
17006 }
17007 s/.*/./; q'`
17008 as_dir="$ac_dir"; as_fn_mkdir_p
17009 ac_builddir=.
17010
17011 case "$ac_dir" in
17012 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17013 *)
17014 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17015 # A ".." for each directory in $ac_dir_suffix.
17016 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17017 case $ac_top_builddir_sub in
17018 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17019 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17020 esac ;;
17021 esac
17022 ac_abs_top_builddir=$ac_pwd
17023 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17024 # for backward compatibility:
17025 ac_top_builddir=$ac_top_build_prefix
17026
17027 case $srcdir in
17028 .) # We are building in place.
17029 ac_srcdir=.
17030 ac_top_srcdir=$ac_top_builddir_sub
17031 ac_abs_top_srcdir=$ac_pwd ;;
17032 [\\/]* | ?:[\\/]* ) # Absolute name.
17033 ac_srcdir=$srcdir$ac_dir_suffix;
17034 ac_top_srcdir=$srcdir
17035 ac_abs_top_srcdir=$srcdir ;;
17036 *) # Relative name.
17037 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17038 ac_top_srcdir=$ac_top_build_prefix$srcdir
17039 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17040 esac
17041 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17042
17043
17044 case $ac_mode in
17045 :F)
17046 #
17047 # CONFIG_FILE
17048 #
17049
17050 case $INSTALL in
17051 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17052 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17053 esac
17054 ac_MKDIR_P=$MKDIR_P
17055 case $MKDIR_P in
17056 [\\/$]* | ?:[\\/]* ) ;;
17057 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17058 esac
17059 _ACEOF
17060
17061 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17062 # If the template does not know about datarootdir, expand it.
17063 # FIXME: This hack should be removed a few years after 2.60.
17064 ac_datarootdir_hack=; ac_datarootdir_seen=
17065 ac_sed_dataroot='
17066 /datarootdir/ {
17067 p
17068 q
17069 }
17070 /@datadir@/p
17071 /@docdir@/p
17072 /@infodir@/p
17073 /@localedir@/p
17074 /@mandir@/p'
17075 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17076 *datarootdir*) ac_datarootdir_seen=yes;;
17077 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17079 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17080 _ACEOF
17081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17082 ac_datarootdir_hack='
17083 s&@datadir@&$datadir&g
17084 s&@docdir@&$docdir&g
17085 s&@infodir@&$infodir&g
17086 s&@localedir@&$localedir&g
17087 s&@mandir@&$mandir&g
17088 s&\\\${datarootdir}&$datarootdir&g' ;;
17089 esac
17090 _ACEOF
17091
17092 # Neutralize VPATH when `$srcdir' = `.'.
17093 # Shell code in configure.ac might set extrasub.
17094 # FIXME: do we really want to maintain this feature?
17095 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17096 ac_sed_extra="$ac_vpsub
17097 $extrasub
17098 _ACEOF
17099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17100 :t
17101 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17102 s|@configure_input@|$ac_sed_conf_input|;t t
17103 s&@top_builddir@&$ac_top_builddir_sub&;t t
17104 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17105 s&@srcdir@&$ac_srcdir&;t t
17106 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17107 s&@top_srcdir@&$ac_top_srcdir&;t t
17108 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17109 s&@builddir@&$ac_builddir&;t t
17110 s&@abs_builddir@&$ac_abs_builddir&;t t
17111 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17112 s&@INSTALL@&$ac_INSTALL&;t t
17113 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17114 $ac_datarootdir_hack
17115 "
17116 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17117 if $ac_cs_awk_getline; then
17118 $AWK -f "$ac_tmp/subs.awk"
17119 else
17120 $AWK -f "$ac_tmp/subs.awk" | $SHELL
17121 fi \
17122 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17123
17124 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17125 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17126 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17127 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17129 which seems to be undefined. Please make sure it is defined" >&5
17130 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17131 which seems to be undefined. Please make sure it is defined" >&2;}
17132
17133 rm -f "$ac_tmp/stdin"
17134 case $ac_file in
17135 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17136 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17137 esac \
17138 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17139 ;;
17140 :H)
17141 #
17142 # CONFIG_HEADER
17143 #
17144 if test x"$ac_file" != x-; then
17145 {
17146 $as_echo "/* $configure_input */" \
17147 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17148 } >"$ac_tmp/config.h" \
17149 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17150 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17151 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17152 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17153 else
17154 rm -f "$ac_file"
17155 mv "$ac_tmp/config.h" "$ac_file" \
17156 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17157 fi
17158 else
17159 $as_echo "/* $configure_input */" \
17160 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17161 || as_fn_error $? "could not create -" "$LINENO" 5
17162 fi
17163 # Compute "$ac_file"'s index in $config_headers.
17164 _am_arg="$ac_file"
17165 _am_stamp_count=1
17166 for _am_header in $config_headers :; do
17167 case $_am_header in
17168 $_am_arg | $_am_arg:* )
17169 break ;;
17170 * )
17171 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17172 esac
17173 done
17174 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17175 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17176 X"$_am_arg" : 'X\(//\)[^/]' \| \
17177 X"$_am_arg" : 'X\(//\)$' \| \
17178 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17179 $as_echo X"$_am_arg" |
17180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17181 s//\1/
17182 q
17183 }
17184 /^X\(\/\/\)[^/].*/{
17185 s//\1/
17186 q
17187 }
17188 /^X\(\/\/\)$/{
17189 s//\1/
17190 q
17191 }
17192 /^X\(\/\).*/{
17193 s//\1/
17194 q
17195 }
17196 s/.*/./; q'`/stamp-h$_am_stamp_count
17197 ;;
17198
17199 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17200 $as_echo "$as_me: executing $ac_file commands" >&6;}
17201 ;;
17202 esac
17203
17204
17205 case $ac_file$ac_mode in
17206 "default-1":C)
17207 # Only add multilib support code if we just rebuilt the top-level
17208 # Makefile.
17209 case " $CONFIG_FILES " in
17210 *" Makefile "*)
17211 ac_file=Makefile . ${multi_basedir}/config-ml.in
17212 ;;
17213 esac ;;
17214 "libtool":C)
17215
17216 # See if we are running on zsh, and set the options which allow our
17217 # commands through without removal of \ escapes.
17218 if test -n "${ZSH_VERSION+set}" ; then
17219 setopt NO_GLOB_SUBST
17220 fi
17221
17222 cfgfile="${ofile}T"
17223 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17224 $RM "$cfgfile"
17225
17226 cat <<_LT_EOF >> "$cfgfile"
17227 #! $SHELL
17228
17229 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17230 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17231 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17232 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17233 #
17234 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17235 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17236 # Written by Gordon Matzigkeit, 1996
17237 #
17238 # This file is part of GNU Libtool.
17239 #
17240 # GNU Libtool is free software; you can redistribute it and/or
17241 # modify it under the terms of the GNU General Public License as
17242 # published by the Free Software Foundation; either version 2 of
17243 # the License, or (at your option) any later version.
17244 #
17245 # As a special exception to the GNU General Public License,
17246 # if you distribute this file as part of a program or library that
17247 # is built using GNU Libtool, you may include this file under the
17248 # same distribution terms that you use for the rest of that program.
17249 #
17250 # GNU Libtool is distributed in the hope that it will be useful,
17251 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17252 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17253 # GNU General Public License for more details.
17254 #
17255 # You should have received a copy of the GNU General Public License
17256 # along with GNU Libtool; see the file COPYING. If not, a copy
17257 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17258 # obtained by writing to the Free Software Foundation, Inc.,
17259 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17260
17261
17262 # The names of the tagged configurations supported by this script.
17263 available_tags="D "
17264
17265 # ### BEGIN LIBTOOL CONFIG
17266
17267 # Which release of libtool.m4 was used?
17268 macro_version=$macro_version
17269 macro_revision=$macro_revision
17270
17271 # Whether or not to build shared libraries.
17272 build_libtool_libs=$enable_shared
17273
17274 # Whether or not to build static libraries.
17275 build_old_libs=$enable_static
17276
17277 # What type of objects to build.
17278 pic_mode=$pic_mode
17279
17280 # Whether or not to optimize for fast installation.
17281 fast_install=$enable_fast_install
17282
17283 # Shell to use when invoking shell scripts.
17284 SHELL=$lt_SHELL
17285
17286 # An echo program that protects backslashes.
17287 ECHO=$lt_ECHO
17288
17289 # The host system.
17290 host_alias=$host_alias
17291 host=$host
17292 host_os=$host_os
17293
17294 # The build system.
17295 build_alias=$build_alias
17296 build=$build
17297 build_os=$build_os
17298
17299 # A sed program that does not truncate output.
17300 SED=$lt_SED
17301
17302 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17303 Xsed="\$SED -e 1s/^X//"
17304
17305 # A grep program that handles long lines.
17306 GREP=$lt_GREP
17307
17308 # An ERE matcher.
17309 EGREP=$lt_EGREP
17310
17311 # A literal string matcher.
17312 FGREP=$lt_FGREP
17313
17314 # A BSD- or MS-compatible name lister.
17315 NM=$lt_NM
17316
17317 # Whether we need soft or hard links.
17318 LN_S=$lt_LN_S
17319
17320 # What is the maximum length of a command?
17321 max_cmd_len=$max_cmd_len
17322
17323 # Object file suffix (normally "o").
17324 objext=$ac_objext
17325
17326 # Executable file suffix (normally "").
17327 exeext=$exeext
17328
17329 # whether the shell understands "unset".
17330 lt_unset=$lt_unset
17331
17332 # turn spaces into newlines.
17333 SP2NL=$lt_lt_SP2NL
17334
17335 # turn newlines into spaces.
17336 NL2SP=$lt_lt_NL2SP
17337
17338 # An object symbol dumper.
17339 OBJDUMP=$lt_OBJDUMP
17340
17341 # Method to check whether dependent libraries are shared objects.
17342 deplibs_check_method=$lt_deplibs_check_method
17343
17344 # Command to use when deplibs_check_method == "file_magic".
17345 file_magic_cmd=$lt_file_magic_cmd
17346
17347 # The archiver.
17348 AR=$lt_AR
17349 AR_FLAGS=$lt_AR_FLAGS
17350
17351 # A symbol stripping program.
17352 STRIP=$lt_STRIP
17353
17354 # Commands used to install an old-style archive.
17355 RANLIB=$lt_RANLIB
17356 old_postinstall_cmds=$lt_old_postinstall_cmds
17357 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17358
17359 # Whether to use a lock for old archive extraction.
17360 lock_old_archive_extraction=$lock_old_archive_extraction
17361
17362 # A C compiler.
17363 LTCC=$lt_CC
17364
17365 # LTCC compiler flags.
17366 LTCFLAGS=$lt_CFLAGS
17367
17368 # Take the output of nm and produce a listing of raw symbols and C names.
17369 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17370
17371 # Transform the output of nm in a proper C declaration.
17372 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17373
17374 # Transform the output of nm in a C name address pair.
17375 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17376
17377 # Transform the output of nm in a C name address pair when lib prefix is needed.
17378 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17379
17380 # The name of the directory that contains temporary libtool files.
17381 objdir=$objdir
17382
17383 # Used to examine libraries when file_magic_cmd begins with "file".
17384 MAGIC_CMD=$MAGIC_CMD
17385
17386 # Must we lock files when doing compilation?
17387 need_locks=$lt_need_locks
17388
17389 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17390 DSYMUTIL=$lt_DSYMUTIL
17391
17392 # Tool to change global to local symbols on Mac OS X.
17393 NMEDIT=$lt_NMEDIT
17394
17395 # Tool to manipulate fat objects and archives on Mac OS X.
17396 LIPO=$lt_LIPO
17397
17398 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17399 OTOOL=$lt_OTOOL
17400
17401 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17402 OTOOL64=$lt_OTOOL64
17403
17404 # Old archive suffix (normally "a").
17405 libext=$libext
17406
17407 # Shared library suffix (normally ".so").
17408 shrext_cmds=$lt_shrext_cmds
17409
17410 # The commands to extract the exported symbol list from a shared archive.
17411 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17412
17413 # Variables whose values should be saved in libtool wrapper scripts and
17414 # restored at link time.
17415 variables_saved_for_relink=$lt_variables_saved_for_relink
17416
17417 # Do we need the "lib" prefix for modules?
17418 need_lib_prefix=$need_lib_prefix
17419
17420 # Do we need a version for libraries?
17421 need_version=$need_version
17422
17423 # Library versioning type.
17424 version_type=$version_type
17425
17426 # Shared library runtime path variable.
17427 runpath_var=$runpath_var
17428
17429 # Shared library path variable.
17430 shlibpath_var=$shlibpath_var
17431
17432 # Is shlibpath searched before the hard-coded library search path?
17433 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17434
17435 # Format of library name prefix.
17436 libname_spec=$lt_libname_spec
17437
17438 # List of archive names. First name is the real one, the rest are links.
17439 # The last name is the one that the linker finds with -lNAME
17440 library_names_spec=$lt_library_names_spec
17441
17442 # The coded name of the library, if different from the real name.
17443 soname_spec=$lt_soname_spec
17444
17445 # Permission mode override for installation of shared libraries.
17446 install_override_mode=$lt_install_override_mode
17447
17448 # Command to use after installation of a shared archive.
17449 postinstall_cmds=$lt_postinstall_cmds
17450
17451 # Command to use after uninstallation of a shared archive.
17452 postuninstall_cmds=$lt_postuninstall_cmds
17453
17454 # Commands used to finish a libtool library installation in a directory.
17455 finish_cmds=$lt_finish_cmds
17456
17457 # As "finish_cmds", except a single script fragment to be evaled but
17458 # not shown.
17459 finish_eval=$lt_finish_eval
17460
17461 # Whether we should hardcode library paths into libraries.
17462 hardcode_into_libs=$hardcode_into_libs
17463
17464 # Compile-time system search path for libraries.
17465 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17466
17467 # Run-time system search path for libraries.
17468 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17469
17470 # Whether dlopen is supported.
17471 dlopen_support=$enable_dlopen
17472
17473 # Whether dlopen of programs is supported.
17474 dlopen_self=$enable_dlopen_self
17475
17476 # Whether dlopen of statically linked programs is supported.
17477 dlopen_self_static=$enable_dlopen_self_static
17478
17479 # Commands to strip libraries.
17480 old_striplib=$lt_old_striplib
17481 striplib=$lt_striplib
17482
17483
17484 # The linker used to build libraries.
17485 LD=$lt_LD
17486
17487 # How to create reloadable object files.
17488 reload_flag=$lt_reload_flag
17489 reload_cmds=$lt_reload_cmds
17490
17491 # Commands used to build an old-style archive.
17492 old_archive_cmds=$lt_old_archive_cmds
17493
17494 # A language specific compiler.
17495 CC=$lt_compiler
17496
17497 # Is the compiler the GNU compiler?
17498 with_gcc=$GCC
17499
17500 # Compiler flag to turn off builtin functions.
17501 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17502
17503 # How to pass a linker flag through the compiler.
17504 wl=$lt_lt_prog_compiler_wl
17505
17506 # Additional compiler flags for building library objects.
17507 pic_flag=$lt_lt_prog_compiler_pic
17508
17509 # Compiler flag to prevent dynamic linking.
17510 link_static_flag=$lt_lt_prog_compiler_static
17511
17512 # Does compiler simultaneously support -c and -o options?
17513 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17514
17515 # Whether or not to add -lc for building shared libraries.
17516 build_libtool_need_lc=$archive_cmds_need_lc
17517
17518 # Whether or not to disallow shared libs when runtime libs are static.
17519 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17520
17521 # Compiler flag to allow reflexive dlopens.
17522 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17523
17524 # Compiler flag to generate shared objects directly from archives.
17525 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17526
17527 # Whether the compiler copes with passing no objects directly.
17528 compiler_needs_object=$lt_compiler_needs_object
17529
17530 # Create an old-style archive from a shared archive.
17531 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17532
17533 # Create a temporary old-style archive to link instead of a shared archive.
17534 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17535
17536 # Commands used to build a shared archive.
17537 archive_cmds=$lt_archive_cmds
17538 archive_expsym_cmds=$lt_archive_expsym_cmds
17539
17540 # Commands used to build a loadable module if different from building
17541 # a shared archive.
17542 module_cmds=$lt_module_cmds
17543 module_expsym_cmds=$lt_module_expsym_cmds
17544
17545 # Whether we are building with GNU ld or not.
17546 with_gnu_ld=$lt_with_gnu_ld
17547
17548 # Flag that allows shared libraries with undefined symbols to be built.
17549 allow_undefined_flag=$lt_allow_undefined_flag
17550
17551 # Flag that enforces no undefined symbols.
17552 no_undefined_flag=$lt_no_undefined_flag
17553
17554 # Flag to hardcode \$libdir into a binary during linking.
17555 # This must work even if \$libdir does not exist
17556 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17557
17558 # If ld is used when linking, flag to hardcode \$libdir into a binary
17559 # during linking. This must work even if \$libdir does not exist.
17560 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17561
17562 # Whether we need a single "-rpath" flag with a separated argument.
17563 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17564
17565 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17566 # DIR into the resulting binary.
17567 hardcode_direct=$hardcode_direct
17568
17569 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17570 # DIR into the resulting binary and the resulting library dependency is
17571 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17572 # library is relocated.
17573 hardcode_direct_absolute=$hardcode_direct_absolute
17574
17575 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17576 # into the resulting binary.
17577 hardcode_minus_L=$hardcode_minus_L
17578
17579 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17580 # into the resulting binary.
17581 hardcode_shlibpath_var=$hardcode_shlibpath_var
17582
17583 # Set to "yes" if building a shared library automatically hardcodes DIR
17584 # into the library and all subsequent libraries and executables linked
17585 # against it.
17586 hardcode_automatic=$hardcode_automatic
17587
17588 # Set to yes if linker adds runtime paths of dependent libraries
17589 # to runtime path list.
17590 inherit_rpath=$inherit_rpath
17591
17592 # Whether libtool must link a program against all its dependency libraries.
17593 link_all_deplibs=$link_all_deplibs
17594
17595 # Fix the shell variable \$srcfile for the compiler.
17596 fix_srcfile_path=$lt_fix_srcfile_path
17597
17598 # Set to "yes" if exported symbols are required.
17599 always_export_symbols=$always_export_symbols
17600
17601 # The commands to list exported symbols.
17602 export_symbols_cmds=$lt_export_symbols_cmds
17603
17604 # Symbols that should not be listed in the preloaded symbols.
17605 exclude_expsyms=$lt_exclude_expsyms
17606
17607 # Symbols that must always be exported.
17608 include_expsyms=$lt_include_expsyms
17609
17610 # Commands necessary for linking programs (against libraries) with templates.
17611 prelink_cmds=$lt_prelink_cmds
17612
17613 # Specify filename containing input files.
17614 file_list_spec=$lt_file_list_spec
17615
17616 # How to hardcode a shared library path into an executable.
17617 hardcode_action=$hardcode_action
17618
17619 # ### END LIBTOOL CONFIG
17620
17621 _LT_EOF
17622
17623 case $host_os in
17624 aix3*)
17625 cat <<\_LT_EOF >> "$cfgfile"
17626 # AIX sometimes has problems with the GCC collect2 program. For some
17627 # reason, if we set the COLLECT_NAMES environment variable, the problems
17628 # vanish in a puff of smoke.
17629 if test "X${COLLECT_NAMES+set}" != Xset; then
17630 COLLECT_NAMES=
17631 export COLLECT_NAMES
17632 fi
17633 _LT_EOF
17634 ;;
17635 esac
17636
17637
17638 ltmain="$ac_aux_dir/ltmain.sh"
17639
17640
17641 # We use sed instead of cat because bash on DJGPP gets confused if
17642 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17643 # text mode, it properly converts lines to CR/LF. This bash problem
17644 # is reportedly fixed, but why not run on old versions too?
17645 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17646 || (rm -f "$cfgfile"; exit 1)
17647
17648 case $xsi_shell in
17649 yes)
17650 cat << \_LT_EOF >> "$cfgfile"
17651
17652 # func_dirname file append nondir_replacement
17653 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17654 # otherwise set result to NONDIR_REPLACEMENT.
17655 func_dirname ()
17656 {
17657 case ${1} in
17658 */*) func_dirname_result="${1%/*}${2}" ;;
17659 * ) func_dirname_result="${3}" ;;
17660 esac
17661 }
17662
17663 # func_basename file
17664 func_basename ()
17665 {
17666 func_basename_result="${1##*/}"
17667 }
17668
17669 # func_dirname_and_basename file append nondir_replacement
17670 # perform func_basename and func_dirname in a single function
17671 # call:
17672 # dirname: Compute the dirname of FILE. If nonempty,
17673 # add APPEND to the result, otherwise set result
17674 # to NONDIR_REPLACEMENT.
17675 # value returned in "$func_dirname_result"
17676 # basename: Compute filename of FILE.
17677 # value retuned in "$func_basename_result"
17678 # Implementation must be kept synchronized with func_dirname
17679 # and func_basename. For efficiency, we do not delegate to
17680 # those functions but instead duplicate the functionality here.
17681 func_dirname_and_basename ()
17682 {
17683 case ${1} in
17684 */*) func_dirname_result="${1%/*}${2}" ;;
17685 * ) func_dirname_result="${3}" ;;
17686 esac
17687 func_basename_result="${1##*/}"
17688 }
17689
17690 # func_stripname prefix suffix name
17691 # strip PREFIX and SUFFIX off of NAME.
17692 # PREFIX and SUFFIX must not contain globbing or regex special
17693 # characters, hashes, percent signs, but SUFFIX may contain a leading
17694 # dot (in which case that matches only a dot).
17695 func_stripname ()
17696 {
17697 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17698 # positional parameters, so assign one to ordinary parameter first.
17699 func_stripname_result=${3}
17700 func_stripname_result=${func_stripname_result#"${1}"}
17701 func_stripname_result=${func_stripname_result%"${2}"}
17702 }
17703
17704 # func_opt_split
17705 func_opt_split ()
17706 {
17707 func_opt_split_opt=${1%%=*}
17708 func_opt_split_arg=${1#*=}
17709 }
17710
17711 # func_lo2o object
17712 func_lo2o ()
17713 {
17714 case ${1} in
17715 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17716 *) func_lo2o_result=${1} ;;
17717 esac
17718 }
17719
17720 # func_xform libobj-or-source
17721 func_xform ()
17722 {
17723 func_xform_result=${1%.*}.lo
17724 }
17725
17726 # func_arith arithmetic-term...
17727 func_arith ()
17728 {
17729 func_arith_result=$(( $* ))
17730 }
17731
17732 # func_len string
17733 # STRING may not start with a hyphen.
17734 func_len ()
17735 {
17736 func_len_result=${#1}
17737 }
17738
17739 _LT_EOF
17740 ;;
17741 *) # Bourne compatible functions.
17742 cat << \_LT_EOF >> "$cfgfile"
17743
17744 # func_dirname file append nondir_replacement
17745 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17746 # otherwise set result to NONDIR_REPLACEMENT.
17747 func_dirname ()
17748 {
17749 # Extract subdirectory from the argument.
17750 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17751 if test "X$func_dirname_result" = "X${1}"; then
17752 func_dirname_result="${3}"
17753 else
17754 func_dirname_result="$func_dirname_result${2}"
17755 fi
17756 }
17757
17758 # func_basename file
17759 func_basename ()
17760 {
17761 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17762 }
17763
17764
17765 # func_stripname prefix suffix name
17766 # strip PREFIX and SUFFIX off of NAME.
17767 # PREFIX and SUFFIX must not contain globbing or regex special
17768 # characters, hashes, percent signs, but SUFFIX may contain a leading
17769 # dot (in which case that matches only a dot).
17770 # func_strip_suffix prefix name
17771 func_stripname ()
17772 {
17773 case ${2} in
17774 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17775 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17776 esac
17777 }
17778
17779 # sed scripts:
17780 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17781 my_sed_long_arg='1s/^-[^=]*=//'
17782
17783 # func_opt_split
17784 func_opt_split ()
17785 {
17786 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17787 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17788 }
17789
17790 # func_lo2o object
17791 func_lo2o ()
17792 {
17793 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17794 }
17795
17796 # func_xform libobj-or-source
17797 func_xform ()
17798 {
17799 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17800 }
17801
17802 # func_arith arithmetic-term...
17803 func_arith ()
17804 {
17805 func_arith_result=`expr "$@"`
17806 }
17807
17808 # func_len string
17809 # STRING may not start with a hyphen.
17810 func_len ()
17811 {
17812 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17813 }
17814
17815 _LT_EOF
17816 esac
17817
17818 case $lt_shell_append in
17819 yes)
17820 cat << \_LT_EOF >> "$cfgfile"
17821
17822 # func_append var value
17823 # Append VALUE to the end of shell variable VAR.
17824 func_append ()
17825 {
17826 eval "$1+=\$2"
17827 }
17828 _LT_EOF
17829 ;;
17830 *)
17831 cat << \_LT_EOF >> "$cfgfile"
17832
17833 # func_append var value
17834 # Append VALUE to the end of shell variable VAR.
17835 func_append ()
17836 {
17837 eval "$1=\$$1\$2"
17838 }
17839
17840 _LT_EOF
17841 ;;
17842 esac
17843
17844
17845 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17846 || (rm -f "$cfgfile"; exit 1)
17847
17848 mv -f "$cfgfile" "$ofile" ||
17849 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17850 chmod +x "$ofile"
17851
17852
17853 cat <<_LT_EOF >> "$ofile"
17854
17855 # ### BEGIN LIBTOOL TAG CONFIG: D
17856
17857 # The linker used to build libraries.
17858 LD=$lt_LD_D
17859
17860 # How to create reloadable object files.
17861 reload_flag=$lt_reload_flag_D
17862 reload_cmds=$lt_reload_cmds_D
17863
17864 # Commands used to build an old-style archive.
17865 old_archive_cmds=$lt_old_archive_cmds_D
17866
17867 # A language specific compiler.
17868 CC=$lt_compiler_D
17869
17870 # Is the compiler the GNU compiler?
17871 with_gcc=$GCC_D
17872
17873 # Compiler flag to turn off builtin functions.
17874 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_D
17875
17876 # How to pass a linker flag through the compiler.
17877 wl=$lt_lt_prog_compiler_wl_D
17878
17879 # Additional compiler flags for building library objects.
17880 pic_flag=$lt_lt_prog_compiler_pic_D
17881
17882 # Compiler flag to prevent dynamic linking.
17883 link_static_flag=$lt_lt_prog_compiler_static_D
17884
17885 # Does compiler simultaneously support -c and -o options?
17886 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_D
17887
17888 # Whether or not to add -lc for building shared libraries.
17889 build_libtool_need_lc=$archive_cmds_need_lc_D
17890
17891 # Whether or not to disallow shared libs when runtime libs are static.
17892 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_D
17893
17894 # Compiler flag to allow reflexive dlopens.
17895 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_D
17896
17897 # Compiler flag to generate shared objects directly from archives.
17898 whole_archive_flag_spec=$lt_whole_archive_flag_spec_D
17899
17900 # Whether the compiler copes with passing no objects directly.
17901 compiler_needs_object=$lt_compiler_needs_object_D
17902
17903 # Create an old-style archive from a shared archive.
17904 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_D
17905
17906 # Create a temporary old-style archive to link instead of a shared archive.
17907 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_D
17908
17909 # Commands used to build a shared archive.
17910 archive_cmds=$lt_archive_cmds_D
17911 archive_expsym_cmds=$lt_archive_expsym_cmds_D
17912
17913 # Commands used to build a loadable module if different from building
17914 # a shared archive.
17915 module_cmds=$lt_module_cmds_D
17916 module_expsym_cmds=$lt_module_expsym_cmds_D
17917
17918 # Whether we are building with GNU ld or not.
17919 with_gnu_ld=$lt_with_gnu_ld_D
17920
17921 # Flag that allows shared libraries with undefined symbols to be built.
17922 allow_undefined_flag=$lt_allow_undefined_flag_D
17923
17924 # Flag that enforces no undefined symbols.
17925 no_undefined_flag=$lt_no_undefined_flag_D
17926
17927 # Flag to hardcode \$libdir into a binary during linking.
17928 # This must work even if \$libdir does not exist
17929 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_D
17930
17931 # If ld is used when linking, flag to hardcode \$libdir into a binary
17932 # during linking. This must work even if \$libdir does not exist.
17933 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_D
17934
17935 # Whether we need a single "-rpath" flag with a separated argument.
17936 hardcode_libdir_separator=$lt_hardcode_libdir_separator_D
17937
17938 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17939 # DIR into the resulting binary.
17940 hardcode_direct=$hardcode_direct_D
17941
17942 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17943 # DIR into the resulting binary and the resulting library dependency is
17944 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17945 # library is relocated.
17946 hardcode_direct_absolute=$hardcode_direct_absolute_D
17947
17948 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17949 # into the resulting binary.
17950 hardcode_minus_L=$hardcode_minus_L_D
17951
17952 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17953 # into the resulting binary.
17954 hardcode_shlibpath_var=$hardcode_shlibpath_var_D
17955
17956 # Set to "yes" if building a shared library automatically hardcodes DIR
17957 # into the library and all subsequent libraries and executables linked
17958 # against it.
17959 hardcode_automatic=$hardcode_automatic_D
17960
17961 # Set to yes if linker adds runtime paths of dependent libraries
17962 # to runtime path list.
17963 inherit_rpath=$inherit_rpath_D
17964
17965 # Whether libtool must link a program against all its dependency libraries.
17966 link_all_deplibs=$link_all_deplibs_D
17967
17968 # Fix the shell variable \$srcfile for the compiler.
17969 fix_srcfile_path=$lt_fix_srcfile_path_D
17970
17971 # Set to "yes" if exported symbols are required.
17972 always_export_symbols=$always_export_symbols_D
17973
17974 # The commands to list exported symbols.
17975 export_symbols_cmds=$lt_export_symbols_cmds_D
17976
17977 # Symbols that should not be listed in the preloaded symbols.
17978 exclude_expsyms=$lt_exclude_expsyms_D
17979
17980 # Symbols that must always be exported.
17981 include_expsyms=$lt_include_expsyms_D
17982
17983 # Commands necessary for linking programs (against libraries) with templates.
17984 prelink_cmds=$lt_prelink_cmds_D
17985
17986 # Specify filename containing input files.
17987 file_list_spec=$lt_file_list_spec_D
17988
17989 # How to hardcode a shared library path into an executable.
17990 hardcode_action=$hardcode_action_D
17991
17992 # ### END LIBTOOL TAG CONFIG: D
17993 _LT_EOF
17994
17995 ;;
17996 "testsuite/testsuite_flags":F) chmod +x testsuite/testsuite_flags ;;
17997 "libdruntime/Makefile":F) cat > vpsed$$ << \_EOF
17998 s!`test -f '$<' || echo '$(srcdir)/'`!!
17999 _EOF
18000 sed -f vpsed$$ $ac_file > tmp$$
18001 mv tmp$$ $ac_file
18002 rm vpsed$$
18003 echo 'MULTISUBDIR =' >> $ac_file
18004 ml_norecursion=yes
18005 . ${multi_basedir}/config-ml.in
18006 { ml_norecursion=; unset ml_norecursion;}
18007 ;;
18008 "src/Makefile":F) cat > vpsed$$ << \_EOF
18009 s!`test -f '$<' || echo '$(srcdir)/'`!!
18010 _EOF
18011 sed -f vpsed$$ $ac_file > tmp$$
18012 mv tmp$$ $ac_file
18013 rm vpsed$$
18014 echo 'MULTISUBDIR =' >> $ac_file
18015 ml_norecursion=yes
18016 . ${multi_basedir}/config-ml.in
18017 { ml_norecursion=; unset ml_norecursion;}
18018 ;;
18019 "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
18020 s!`test -f '$<' || echo '$(srcdir)/'`!!
18021 _EOF
18022 sed -f vpsed$$ $ac_file > tmp$$
18023 mv tmp$$ $ac_file
18024 rm vpsed$$
18025 echo 'MULTISUBDIR =' >> $ac_file
18026 ml_norecursion=yes
18027 . ${multi_basedir}/config-ml.in
18028 { ml_norecursion=; unset ml_norecursion;}
18029 ;;
18030
18031 esac
18032 done # for ac_tag
18033
18034
18035 as_fn_exit 0
18036 _ACEOF
18037 ac_clean_files=$ac_clean_files_save
18038
18039 test $ac_write_fail = 0 ||
18040 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18041
18042
18043 # configure is writing to config.log, and then calls config.status.
18044 # config.status does its own redirection, appending to config.log.
18045 # Unfortunately, on DOS this fails, as config.log is still kept open
18046 # by configure, so config.status won't be able to write to it; its
18047 # output is simply discarded. So we exec the FD to /dev/null,
18048 # effectively closing config.log, so it can be properly (re)opened and
18049 # appended to by config.status. When coming back to configure, we
18050 # need to make the FD available again.
18051 if test "$no_create" != yes; then
18052 ac_cs_success=:
18053 ac_config_status_args=
18054 test "$silent" = yes &&
18055 ac_config_status_args="$ac_config_status_args --quiet"
18056 exec 5>/dev/null
18057 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18058 exec 5>>config.log
18059 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18060 # would make configure fail if this is the last instruction.
18061 $ac_cs_success || as_fn_exit 1
18062 fi
18063 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18065 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18066 fi
18067