]> git.ipfire.org Git - thirdparty/gcc.git/blob - libphobos/configure
Make TOPN counter dynamically allocated.
[thirdparty/gcc.git] / libphobos / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for package-unused version-unused.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='package-unused'
589 PACKAGE_TARNAME='libphobos'
590 PACKAGE_VERSION='version-unused'
591 PACKAGE_STRING='package-unused version-unused'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="libdruntime/gcc/attribute.d"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 WARN_DFLAGS
637 libtool_VERSION
638 SPEC_PHOBOS_DEPS
639 CHECKING_DFLAGS
640 ENABLE_LIBDRUNTIME_ONLY_FALSE
641 ENABLE_LIBDRUNTIME_ONLY_TRUE
642 ENABLE_LIBPHOBOS_FALSE
643 ENABLE_LIBPHOBOS_TRUE
644 gdc_include_dir
645 libphobos_toolexeclibdir
646 libphobos_toolexecdir
647 gcc_version
648 LIBZ
649 BACKTRACE_SUPPORTS_THREADS
650 BACKTRACE_USES_MALLOC
651 BACKTRACE_SUPPORTED
652 LIBBACKTRACE
653 LIBATOMIC
654 DCFG_HAVE_LIBATOMIC
655 DCFG_HAVE_64BIT_ATOMICS
656 DCFG_HAVE_ATOMIC_BUILTINS
657 DCFG_HAVE_QSORT_R
658 OS_LINK_SPEC
659 DCFG_DLPI_TLS_MODID
660 DRUNTIME_OS_MINFO_BRACKETING_FALSE
661 DRUNTIME_OS_MINFO_BRACKETING_TRUE
662 DCFG_MINFO_BRACKETING
663 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
664 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
665 DCFG_ARM_EABI_UNWINDER
666 DCFG_THREAD_MODEL
667 DRUNTIME_OS_POSIX_FALSE
668 DRUNTIME_OS_POSIX_TRUE
669 DRUNTIME_OS_SOLARIS_FALSE
670 DRUNTIME_OS_SOLARIS_TRUE
671 DRUNTIME_OS_MINGW_FALSE
672 DRUNTIME_OS_MINGW_TRUE
673 DRUNTIME_OS_LINUX_FALSE
674 DRUNTIME_OS_LINUX_TRUE
675 DRUNTIME_OS_OPENBSD_FALSE
676 DRUNTIME_OS_OPENBSD_TRUE
677 DRUNTIME_OS_NETBSD_FALSE
678 DRUNTIME_OS_NETBSD_TRUE
679 DRUNTIME_OS_FREEBSD_FALSE
680 DRUNTIME_OS_FREEBSD_TRUE
681 DRUNTIME_OS_DRAGONFLYBSD_FALSE
682 DRUNTIME_OS_DRAGONFLYBSD_TRUE
683 DRUNTIME_OS_DARWIN_FALSE
684 DRUNTIME_OS_DARWIN_TRUE
685 DRUNTIME_OS_ANDROID_FALSE
686 DRUNTIME_OS_ANDROID_TRUE
687 DRUNTIME_OS_AIX_FALSE
688 DRUNTIME_OS_AIX_TRUE
689 DRUNTIME_CPU_S390_FALSE
690 DRUNTIME_CPU_S390_TRUE
691 DRUNTIME_CPU_SYSTEMZ_FALSE
692 DRUNTIME_CPU_SYSTEMZ_TRUE
693 DRUNTIME_CPU_X86_FALSE
694 DRUNTIME_CPU_X86_TRUE
695 DRUNTIME_CPU_POWERPC_FALSE
696 DRUNTIME_CPU_POWERPC_TRUE
697 DRUNTIME_CPU_MIPS_FALSE
698 DRUNTIME_CPU_MIPS_TRUE
699 DRUNTIME_CPU_ARM_FALSE
700 DRUNTIME_CPU_ARM_TRUE
701 DRUNTIME_CPU_AARCH64_FALSE
702 DRUNTIME_CPU_AARCH64_TRUE
703 libphobos_srcdir
704 libphobos_builddir
705 get_gcc_base_ver
706 phobos_compiler_shared_flag
707 phobos_compiler_pic_flag
708 OTOOL64
709 OTOOL
710 LIPO
711 NMEDIT
712 DSYMUTIL
713 OBJDUMP
714 LN_S
715 NM
716 ac_ct_DUMPBIN
717 DUMPBIN
718 LD
719 FGREP
720 SED
721 LIBTOOL
722 CFLAGS_FOR_BUILD
723 CC_FOR_BUILD
724 AR
725 CET_FLAGS
726 RANLIB
727 MAINT
728 MAINTAINER_MODE_FALSE
729 MAINTAINER_MODE_TRUE
730 GDCFLAGS
731 GDC
732 CCASFLAGS
733 CCAS
734 AM_BACKSLASH
735 AM_DEFAULT_VERBOSITY
736 AM_DEFAULT_V
737 AM_V
738 am__untar
739 am__tar
740 AMTAR
741 am__leading_dot
742 SET_MAKE
743 AWK
744 mkdir_p
745 MKDIR_P
746 INSTALL_STRIP_PROGRAM
747 STRIP
748 install_sh
749 MAKEINFO
750 AUTOHEADER
751 AUTOMAKE
752 AUTOCONF
753 ACLOCAL
754 VERSION
755 PACKAGE
756 CYGPATH_W
757 am__isrc
758 INSTALL_DATA
759 INSTALL_SCRIPT
760 INSTALL_PROGRAM
761 EGREP
762 GREP
763 CPP
764 OBJEXT
765 EXEEXT
766 ac_ct_CC
767 CPPFLAGS
768 LDFLAGS
769 CFLAGS
770 CC
771 target_os
772 target_vendor
773 target_cpu
774 target
775 host_os
776 host_vendor
777 host_cpu
778 host
779 build_os
780 build_vendor
781 build_cpu
782 build
783 multi_basedir
784 target_alias
785 host_alias
786 build_alias
787 LIBS
788 ECHO_T
789 ECHO_N
790 ECHO_C
791 DEFS
792 mandir
793 localedir
794 libdir
795 psdir
796 pdfdir
797 dvidir
798 htmldir
799 infodir
800 docdir
801 oldincludedir
802 includedir
803 localstatedir
804 sharedstatedir
805 sysconfdir
806 datadir
807 datarootdir
808 libexecdir
809 sbindir
810 bindir
811 program_transform_name
812 prefix
813 exec_prefix
814 PACKAGE_URL
815 PACKAGE_BUGREPORT
816 PACKAGE_STRING
817 PACKAGE_VERSION
818 PACKAGE_TARNAME
819 PACKAGE_NAME
820 PATH_SEPARATOR
821 SHELL'
822 ac_subst_files='DRTSTUFF_SPEC'
823 ac_user_opts='
824 enable_option_checking
825 enable_multilib
826 enable_silent_rules
827 enable_maintainer_mode
828 enable_cet
829 enable_shared
830 enable_static
831 with_pic
832 enable_fast_install
833 with_gnu_ld
834 enable_libtool_lock
835 with_gcc_major_version_only
836 enable_werror
837 with_libatomic
838 with_libbacktrace
839 with_target_system_zlib
840 with_cross_host
841 enable_version_specific_runtime_libs
842 with_toolexeclibdir
843 enable_libphobos
844 with_libphobos_druntime_only
845 enable_libphobos_checking
846 '
847 ac_precious_vars='build_alias
848 host_alias
849 target_alias
850 CC
851 CFLAGS
852 LDFLAGS
853 LIBS
854 CPPFLAGS
855 CPP'
856
857
858 # Initialize some variables set by options.
859 ac_init_help=
860 ac_init_version=false
861 ac_unrecognized_opts=
862 ac_unrecognized_sep=
863 # The variables have the same names as the options, with
864 # dashes changed to underlines.
865 cache_file=/dev/null
866 exec_prefix=NONE
867 no_create=
868 no_recursion=
869 prefix=NONE
870 program_prefix=NONE
871 program_suffix=NONE
872 program_transform_name=s,x,x,
873 silent=
874 site=
875 srcdir=
876 verbose=
877 x_includes=NONE
878 x_libraries=NONE
879
880 # Installation directory options.
881 # These are left unexpanded so users can "make install exec_prefix=/foo"
882 # and all the variables that are supposed to be based on exec_prefix
883 # by default will actually change.
884 # Use braces instead of parens because sh, perl, etc. also accept them.
885 # (The list follows the same order as the GNU Coding Standards.)
886 bindir='${exec_prefix}/bin'
887 sbindir='${exec_prefix}/sbin'
888 libexecdir='${exec_prefix}/libexec'
889 datarootdir='${prefix}/share'
890 datadir='${datarootdir}'
891 sysconfdir='${prefix}/etc'
892 sharedstatedir='${prefix}/com'
893 localstatedir='${prefix}/var'
894 includedir='${prefix}/include'
895 oldincludedir='/usr/include'
896 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
897 infodir='${datarootdir}/info'
898 htmldir='${docdir}'
899 dvidir='${docdir}'
900 pdfdir='${docdir}'
901 psdir='${docdir}'
902 libdir='${exec_prefix}/lib'
903 localedir='${datarootdir}/locale'
904 mandir='${datarootdir}/man'
905
906 ac_prev=
907 ac_dashdash=
908 for ac_option
909 do
910 # If the previous option needs an argument, assign it.
911 if test -n "$ac_prev"; then
912 eval $ac_prev=\$ac_option
913 ac_prev=
914 continue
915 fi
916
917 case $ac_option in
918 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
919 *=) ac_optarg= ;;
920 *) ac_optarg=yes ;;
921 esac
922
923 # Accept the important Cygnus configure options, so we can diagnose typos.
924
925 case $ac_dashdash$ac_option in
926 --)
927 ac_dashdash=yes ;;
928
929 -bindir | --bindir | --bindi | --bind | --bin | --bi)
930 ac_prev=bindir ;;
931 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
932 bindir=$ac_optarg ;;
933
934 -build | --build | --buil | --bui | --bu)
935 ac_prev=build_alias ;;
936 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
937 build_alias=$ac_optarg ;;
938
939 -cache-file | --cache-file | --cache-fil | --cache-fi \
940 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
941 ac_prev=cache_file ;;
942 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
943 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
944 cache_file=$ac_optarg ;;
945
946 --config-cache | -C)
947 cache_file=config.cache ;;
948
949 -datadir | --datadir | --datadi | --datad)
950 ac_prev=datadir ;;
951 -datadir=* | --datadir=* | --datadi=* | --datad=*)
952 datadir=$ac_optarg ;;
953
954 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
955 | --dataroo | --dataro | --datar)
956 ac_prev=datarootdir ;;
957 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
958 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
959 datarootdir=$ac_optarg ;;
960
961 -disable-* | --disable-*)
962 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
963 # Reject names that are not valid shell variable names.
964 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
965 as_fn_error $? "invalid feature name: $ac_useropt"
966 ac_useropt_orig=$ac_useropt
967 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
968 case $ac_user_opts in
969 *"
970 "enable_$ac_useropt"
971 "*) ;;
972 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
973 ac_unrecognized_sep=', ';;
974 esac
975 eval enable_$ac_useropt=no ;;
976
977 -docdir | --docdir | --docdi | --doc | --do)
978 ac_prev=docdir ;;
979 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
980 docdir=$ac_optarg ;;
981
982 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
983 ac_prev=dvidir ;;
984 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
985 dvidir=$ac_optarg ;;
986
987 -enable-* | --enable-*)
988 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
989 # Reject names that are not valid shell variable names.
990 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
991 as_fn_error $? "invalid feature name: $ac_useropt"
992 ac_useropt_orig=$ac_useropt
993 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
994 case $ac_user_opts in
995 *"
996 "enable_$ac_useropt"
997 "*) ;;
998 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
999 ac_unrecognized_sep=', ';;
1000 esac
1001 eval enable_$ac_useropt=\$ac_optarg ;;
1002
1003 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1004 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1005 | --exec | --exe | --ex)
1006 ac_prev=exec_prefix ;;
1007 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1008 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1009 | --exec=* | --exe=* | --ex=*)
1010 exec_prefix=$ac_optarg ;;
1011
1012 -gas | --gas | --ga | --g)
1013 # Obsolete; use --with-gas.
1014 with_gas=yes ;;
1015
1016 -help | --help | --hel | --he | -h)
1017 ac_init_help=long ;;
1018 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1019 ac_init_help=recursive ;;
1020 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1021 ac_init_help=short ;;
1022
1023 -host | --host | --hos | --ho)
1024 ac_prev=host_alias ;;
1025 -host=* | --host=* | --hos=* | --ho=*)
1026 host_alias=$ac_optarg ;;
1027
1028 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1029 ac_prev=htmldir ;;
1030 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1031 | --ht=*)
1032 htmldir=$ac_optarg ;;
1033
1034 -includedir | --includedir | --includedi | --included | --include \
1035 | --includ | --inclu | --incl | --inc)
1036 ac_prev=includedir ;;
1037 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1038 | --includ=* | --inclu=* | --incl=* | --inc=*)
1039 includedir=$ac_optarg ;;
1040
1041 -infodir | --infodir | --infodi | --infod | --info | --inf)
1042 ac_prev=infodir ;;
1043 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1044 infodir=$ac_optarg ;;
1045
1046 -libdir | --libdir | --libdi | --libd)
1047 ac_prev=libdir ;;
1048 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1049 libdir=$ac_optarg ;;
1050
1051 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1052 | --libexe | --libex | --libe)
1053 ac_prev=libexecdir ;;
1054 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1055 | --libexe=* | --libex=* | --libe=*)
1056 libexecdir=$ac_optarg ;;
1057
1058 -localedir | --localedir | --localedi | --localed | --locale)
1059 ac_prev=localedir ;;
1060 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1061 localedir=$ac_optarg ;;
1062
1063 -localstatedir | --localstatedir | --localstatedi | --localstated \
1064 | --localstate | --localstat | --localsta | --localst | --locals)
1065 ac_prev=localstatedir ;;
1066 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1067 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1068 localstatedir=$ac_optarg ;;
1069
1070 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1071 ac_prev=mandir ;;
1072 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1073 mandir=$ac_optarg ;;
1074
1075 -nfp | --nfp | --nf)
1076 # Obsolete; use --without-fp.
1077 with_fp=no ;;
1078
1079 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1080 | --no-cr | --no-c | -n)
1081 no_create=yes ;;
1082
1083 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1084 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1085 no_recursion=yes ;;
1086
1087 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1088 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1089 | --oldin | --oldi | --old | --ol | --o)
1090 ac_prev=oldincludedir ;;
1091 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1092 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1093 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1094 oldincludedir=$ac_optarg ;;
1095
1096 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1097 ac_prev=prefix ;;
1098 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1099 prefix=$ac_optarg ;;
1100
1101 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1102 | --program-pre | --program-pr | --program-p)
1103 ac_prev=program_prefix ;;
1104 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1105 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1106 program_prefix=$ac_optarg ;;
1107
1108 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1109 | --program-suf | --program-su | --program-s)
1110 ac_prev=program_suffix ;;
1111 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1112 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1113 program_suffix=$ac_optarg ;;
1114
1115 -program-transform-name | --program-transform-name \
1116 | --program-transform-nam | --program-transform-na \
1117 | --program-transform-n | --program-transform- \
1118 | --program-transform | --program-transfor \
1119 | --program-transfo | --program-transf \
1120 | --program-trans | --program-tran \
1121 | --progr-tra | --program-tr | --program-t)
1122 ac_prev=program_transform_name ;;
1123 -program-transform-name=* | --program-transform-name=* \
1124 | --program-transform-nam=* | --program-transform-na=* \
1125 | --program-transform-n=* | --program-transform-=* \
1126 | --program-transform=* | --program-transfor=* \
1127 | --program-transfo=* | --program-transf=* \
1128 | --program-trans=* | --program-tran=* \
1129 | --progr-tra=* | --program-tr=* | --program-t=*)
1130 program_transform_name=$ac_optarg ;;
1131
1132 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1133 ac_prev=pdfdir ;;
1134 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1135 pdfdir=$ac_optarg ;;
1136
1137 -psdir | --psdir | --psdi | --psd | --ps)
1138 ac_prev=psdir ;;
1139 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1140 psdir=$ac_optarg ;;
1141
1142 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1143 | -silent | --silent | --silen | --sile | --sil)
1144 silent=yes ;;
1145
1146 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1147 ac_prev=sbindir ;;
1148 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1149 | --sbi=* | --sb=*)
1150 sbindir=$ac_optarg ;;
1151
1152 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1153 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1154 | --sharedst | --shareds | --shared | --share | --shar \
1155 | --sha | --sh)
1156 ac_prev=sharedstatedir ;;
1157 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1158 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1159 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1160 | --sha=* | --sh=*)
1161 sharedstatedir=$ac_optarg ;;
1162
1163 -site | --site | --sit)
1164 ac_prev=site ;;
1165 -site=* | --site=* | --sit=*)
1166 site=$ac_optarg ;;
1167
1168 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1169 ac_prev=srcdir ;;
1170 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1171 srcdir=$ac_optarg ;;
1172
1173 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1174 | --syscon | --sysco | --sysc | --sys | --sy)
1175 ac_prev=sysconfdir ;;
1176 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1177 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1178 sysconfdir=$ac_optarg ;;
1179
1180 -target | --target | --targe | --targ | --tar | --ta | --t)
1181 ac_prev=target_alias ;;
1182 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1183 target_alias=$ac_optarg ;;
1184
1185 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1186 verbose=yes ;;
1187
1188 -version | --version | --versio | --versi | --vers | -V)
1189 ac_init_version=: ;;
1190
1191 -with-* | --with-*)
1192 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1193 # Reject names that are not valid shell variable names.
1194 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1195 as_fn_error $? "invalid package name: $ac_useropt"
1196 ac_useropt_orig=$ac_useropt
1197 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1198 case $ac_user_opts in
1199 *"
1200 "with_$ac_useropt"
1201 "*) ;;
1202 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1203 ac_unrecognized_sep=', ';;
1204 esac
1205 eval with_$ac_useropt=\$ac_optarg ;;
1206
1207 -without-* | --without-*)
1208 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1209 # Reject names that are not valid shell variable names.
1210 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1211 as_fn_error $? "invalid package name: $ac_useropt"
1212 ac_useropt_orig=$ac_useropt
1213 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1214 case $ac_user_opts in
1215 *"
1216 "with_$ac_useropt"
1217 "*) ;;
1218 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1219 ac_unrecognized_sep=', ';;
1220 esac
1221 eval with_$ac_useropt=no ;;
1222
1223 --x)
1224 # Obsolete; use --with-x.
1225 with_x=yes ;;
1226
1227 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1228 | --x-incl | --x-inc | --x-in | --x-i)
1229 ac_prev=x_includes ;;
1230 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1231 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1232 x_includes=$ac_optarg ;;
1233
1234 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1235 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1236 ac_prev=x_libraries ;;
1237 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1238 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1239 x_libraries=$ac_optarg ;;
1240
1241 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1242 Try \`$0 --help' for more information"
1243 ;;
1244
1245 *=*)
1246 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1247 # Reject names that are not valid shell variable names.
1248 case $ac_envvar in #(
1249 '' | [0-9]* | *[!_$as_cr_alnum]* )
1250 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1251 esac
1252 eval $ac_envvar=\$ac_optarg
1253 export $ac_envvar ;;
1254
1255 *)
1256 # FIXME: should be removed in autoconf 3.0.
1257 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1258 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1259 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1260 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1261 ;;
1262
1263 esac
1264 done
1265
1266 if test -n "$ac_prev"; then
1267 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1268 as_fn_error $? "missing argument to $ac_option"
1269 fi
1270
1271 if test -n "$ac_unrecognized_opts"; then
1272 case $enable_option_checking in
1273 no) ;;
1274 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1275 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1276 esac
1277 fi
1278
1279 # Check all directory arguments for consistency.
1280 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1281 datadir sysconfdir sharedstatedir localstatedir includedir \
1282 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1283 libdir localedir mandir
1284 do
1285 eval ac_val=\$$ac_var
1286 # Remove trailing slashes.
1287 case $ac_val in
1288 */ )
1289 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1290 eval $ac_var=\$ac_val;;
1291 esac
1292 # Be sure to have absolute directory names.
1293 case $ac_val in
1294 [\\/$]* | ?:[\\/]* ) continue;;
1295 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1296 esac
1297 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1298 done
1299
1300 # There might be people who depend on the old broken behavior: `$host'
1301 # used to hold the argument of --host etc.
1302 # FIXME: To remove some day.
1303 build=$build_alias
1304 host=$host_alias
1305 target=$target_alias
1306
1307 # FIXME: To remove some day.
1308 if test "x$host_alias" != x; then
1309 if test "x$build_alias" = x; then
1310 cross_compiling=maybe
1311 elif test "x$build_alias" != "x$host_alias"; then
1312 cross_compiling=yes
1313 fi
1314 fi
1315
1316 ac_tool_prefix=
1317 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1318
1319 test "$silent" = yes && exec 6>/dev/null
1320
1321
1322 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1323 ac_ls_di=`ls -di .` &&
1324 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1325 as_fn_error $? "working directory cannot be determined"
1326 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1327 as_fn_error $? "pwd does not report name of working directory"
1328
1329
1330 # Find the source files, if location was not specified.
1331 if test -z "$srcdir"; then
1332 ac_srcdir_defaulted=yes
1333 # Try the directory containing this script, then the parent directory.
1334 ac_confdir=`$as_dirname -- "$as_myself" ||
1335 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1336 X"$as_myself" : 'X\(//\)[^/]' \| \
1337 X"$as_myself" : 'X\(//\)$' \| \
1338 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1339 $as_echo X"$as_myself" |
1340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1341 s//\1/
1342 q
1343 }
1344 /^X\(\/\/\)[^/].*/{
1345 s//\1/
1346 q
1347 }
1348 /^X\(\/\/\)$/{
1349 s//\1/
1350 q
1351 }
1352 /^X\(\/\).*/{
1353 s//\1/
1354 q
1355 }
1356 s/.*/./; q'`
1357 srcdir=$ac_confdir
1358 if test ! -r "$srcdir/$ac_unique_file"; then
1359 srcdir=..
1360 fi
1361 else
1362 ac_srcdir_defaulted=no
1363 fi
1364 if test ! -r "$srcdir/$ac_unique_file"; then
1365 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1366 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1367 fi
1368 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1369 ac_abs_confdir=`(
1370 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1371 pwd)`
1372 # When building in place, set srcdir=.
1373 if test "$ac_abs_confdir" = "$ac_pwd"; then
1374 srcdir=.
1375 fi
1376 # Remove unnecessary trailing slashes from srcdir.
1377 # Double slashes in file names in object file debugging info
1378 # mess up M-x gdb in Emacs.
1379 case $srcdir in
1380 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1381 esac
1382 for ac_var in $ac_precious_vars; do
1383 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1384 eval ac_env_${ac_var}_value=\$${ac_var}
1385 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1387 done
1388
1389 #
1390 # Report the --help message.
1391 #
1392 if test "$ac_init_help" = "long"; then
1393 # Omit some internal or obsolete options to make the list less imposing.
1394 # This message is too long to be a string in the A/UX 3.1 sh.
1395 cat <<_ACEOF
1396 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1397
1398 Usage: $0 [OPTION]... [VAR=VALUE]...
1399
1400 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1401 VAR=VALUE. See below for descriptions of some of the useful variables.
1402
1403 Defaults for the options are specified in brackets.
1404
1405 Configuration:
1406 -h, --help display this help and exit
1407 --help=short display options specific to this package
1408 --help=recursive display the short help of all the included packages
1409 -V, --version display version information and exit
1410 -q, --quiet, --silent do not print \`checking ...' messages
1411 --cache-file=FILE cache test results in FILE [disabled]
1412 -C, --config-cache alias for \`--cache-file=config.cache'
1413 -n, --no-create do not create output files
1414 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1415
1416 Installation directories:
1417 --prefix=PREFIX install architecture-independent files in PREFIX
1418 [$ac_default_prefix]
1419 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1420 [PREFIX]
1421
1422 By default, \`make install' will install all the files in
1423 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1424 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1425 for instance \`--prefix=\$HOME'.
1426
1427 For better control, use the options below.
1428
1429 Fine tuning of the installation directories:
1430 --bindir=DIR user executables [EPREFIX/bin]
1431 --sbindir=DIR system admin executables [EPREFIX/sbin]
1432 --libexecdir=DIR program executables [EPREFIX/libexec]
1433 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1434 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1435 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1436 --libdir=DIR object code libraries [EPREFIX/lib]
1437 --includedir=DIR C header files [PREFIX/include]
1438 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1439 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1440 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1441 --infodir=DIR info documentation [DATAROOTDIR/info]
1442 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1443 --mandir=DIR man documentation [DATAROOTDIR/man]
1444 --docdir=DIR documentation root [DATAROOTDIR/doc/libphobos]
1445 --htmldir=DIR html documentation [DOCDIR]
1446 --dvidir=DIR dvi documentation [DOCDIR]
1447 --pdfdir=DIR pdf documentation [DOCDIR]
1448 --psdir=DIR ps documentation [DOCDIR]
1449 _ACEOF
1450
1451 cat <<\_ACEOF
1452
1453 Program names:
1454 --program-prefix=PREFIX prepend PREFIX to installed program names
1455 --program-suffix=SUFFIX append SUFFIX to installed program names
1456 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1457
1458 System types:
1459 --build=BUILD configure for building on BUILD [guessed]
1460 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1461 --target=TARGET configure for building compilers for TARGET [HOST]
1462 _ACEOF
1463 fi
1464
1465 if test -n "$ac_init_help"; then
1466 case $ac_init_help in
1467 short | recursive ) echo "Configuration of package-unused version-unused:";;
1468 esac
1469 cat <<\_ACEOF
1470
1471 Optional Features:
1472 --disable-option-checking ignore unrecognized --enable/--with options
1473 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1474 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1475 --enable-multilib build many library versions (default)
1476 --enable-silent-rules less verbose build output (undo: "make V=1")
1477 --disable-silent-rules verbose build output (undo: "make V=0")
1478 --enable-maintainer-mode
1479 enable make rules and dependencies not useful (and
1480 sometimes confusing) to the casual installer
1481 --enable-cet enable Intel CET in target libraries [default=auto]
1482 --enable-shared[=PKGS] build shared libraries [default=yes]
1483 --enable-static[=PKGS] build static libraries [default=yes]
1484 --enable-fast-install[=PKGS]
1485 optimize for fast installation [default=yes]
1486 --disable-libtool-lock avoid locking (might break parallel builds)
1487 --enable-werror turns on -Werror [default=no]
1488 --enable-version-specific-runtime-libs
1489 Specify that runtime libraries should be installed
1490 in a compiler-specific directory
1491 --enable-libphobos Enable libphobos
1492 --enable-libphobos-checking[=LIST]
1493 enable expensive run-time checks. With LIST, enable
1494 only specific categories of checks. Categories are:
1495 yes,no,all,none,release. Flags are: assert or other
1496 strings
1497
1498 Optional Packages:
1499 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1500 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1501 --with-pic try to use only PIC/non-PIC objects [default=use
1502 both]
1503 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1504 --with-gcc-major-version-only
1505 use only GCC major number in filesystem paths
1506 --without-libatomic Do not use libatomic in core.atomic (default: auto)
1507 --without-libbacktrace Do not use libbacktrace in core.runtime (default:
1508 auto)
1509 --with-target-system-zlib={yes,no,auto}
1510 use installed libz (default: no)
1511 --with-cross-host=HOST configuring with a cross compiler
1512 --with-toolexeclibdir=DIR
1513 install libraries built with a cross compiler within
1514 DIR
1515 --with-libphobos-druntime-only={yes,no,auto}
1516 build only the druntime library (default: auto)
1517
1518 Some influential environment variables:
1519 CC C compiler command
1520 CFLAGS C compiler flags
1521 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1522 nonstandard directory <lib dir>
1523 LIBS libraries to pass to the linker, e.g. -l<library>
1524 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1525 you have headers in a nonstandard directory <include dir>
1526 CPP C preprocessor
1527 CCAS assembler compiler command (defaults to CC)
1528 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1529 GDC D compiler command
1530 GDCFLAGS D compiler flags
1531
1532 Use these variables to override the choices made by `configure' or to help
1533 it to find libraries and programs with nonstandard names/locations.
1534
1535 Report bugs to the package provider.
1536 _ACEOF
1537 ac_status=$?
1538 fi
1539
1540 if test "$ac_init_help" = "recursive"; then
1541 # If there are subdirs, report their specific --help.
1542 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1543 test -d "$ac_dir" ||
1544 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1545 continue
1546 ac_builddir=.
1547
1548 case "$ac_dir" in
1549 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1550 *)
1551 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1552 # A ".." for each directory in $ac_dir_suffix.
1553 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1554 case $ac_top_builddir_sub in
1555 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1556 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1557 esac ;;
1558 esac
1559 ac_abs_top_builddir=$ac_pwd
1560 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1561 # for backward compatibility:
1562 ac_top_builddir=$ac_top_build_prefix
1563
1564 case $srcdir in
1565 .) # We are building in place.
1566 ac_srcdir=.
1567 ac_top_srcdir=$ac_top_builddir_sub
1568 ac_abs_top_srcdir=$ac_pwd ;;
1569 [\\/]* | ?:[\\/]* ) # Absolute name.
1570 ac_srcdir=$srcdir$ac_dir_suffix;
1571 ac_top_srcdir=$srcdir
1572 ac_abs_top_srcdir=$srcdir ;;
1573 *) # Relative name.
1574 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1575 ac_top_srcdir=$ac_top_build_prefix$srcdir
1576 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1577 esac
1578 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1579
1580 cd "$ac_dir" || { ac_status=$?; continue; }
1581 # Check for guested configure.
1582 if test -f "$ac_srcdir/configure.gnu"; then
1583 echo &&
1584 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1585 elif test -f "$ac_srcdir/configure"; then
1586 echo &&
1587 $SHELL "$ac_srcdir/configure" --help=recursive
1588 else
1589 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1590 fi || ac_status=$?
1591 cd "$ac_pwd" || { ac_status=$?; break; }
1592 done
1593 fi
1594
1595 test -n "$ac_init_help" && exit $ac_status
1596 if $ac_init_version; then
1597 cat <<\_ACEOF
1598 package-unused configure version-unused
1599 generated by GNU Autoconf 2.69
1600
1601 Copyright (C) 2012 Free Software Foundation, Inc.
1602 This configure script is free software; the Free Software Foundation
1603 gives unlimited permission to copy, distribute and modify it.
1604 _ACEOF
1605 exit
1606 fi
1607
1608 ## ------------------------ ##
1609 ## Autoconf initialization. ##
1610 ## ------------------------ ##
1611
1612 # ac_fn_c_try_compile LINENO
1613 # --------------------------
1614 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1615 ac_fn_c_try_compile ()
1616 {
1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618 rm -f conftest.$ac_objext
1619 if { { ac_try="$ac_compile"
1620 case "(($ac_try" in
1621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1622 *) ac_try_echo=$ac_try;;
1623 esac
1624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625 $as_echo "$ac_try_echo"; } >&5
1626 (eval "$ac_compile") 2>conftest.err
1627 ac_status=$?
1628 if test -s conftest.err; then
1629 grep -v '^ *+' conftest.err >conftest.er1
1630 cat conftest.er1 >&5
1631 mv -f conftest.er1 conftest.err
1632 fi
1633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634 test $ac_status = 0; } && {
1635 test -z "$ac_c_werror_flag" ||
1636 test ! -s conftest.err
1637 } && test -s conftest.$ac_objext; then :
1638 ac_retval=0
1639 else
1640 $as_echo "$as_me: failed program was:" >&5
1641 sed 's/^/| /' conftest.$ac_ext >&5
1642
1643 ac_retval=1
1644 fi
1645 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1646 as_fn_set_status $ac_retval
1647
1648 } # ac_fn_c_try_compile
1649
1650 # ac_fn_c_try_cpp LINENO
1651 # ----------------------
1652 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1653 ac_fn_c_try_cpp ()
1654 {
1655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656 if { { ac_try="$ac_cpp conftest.$ac_ext"
1657 case "(($ac_try" in
1658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659 *) ac_try_echo=$ac_try;;
1660 esac
1661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662 $as_echo "$ac_try_echo"; } >&5
1663 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1664 ac_status=$?
1665 if test -s conftest.err; then
1666 grep -v '^ *+' conftest.err >conftest.er1
1667 cat conftest.er1 >&5
1668 mv -f conftest.er1 conftest.err
1669 fi
1670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671 test $ac_status = 0; } > conftest.i && {
1672 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1673 test ! -s conftest.err
1674 }; then :
1675 ac_retval=0
1676 else
1677 $as_echo "$as_me: failed program was:" >&5
1678 sed 's/^/| /' conftest.$ac_ext >&5
1679
1680 ac_retval=1
1681 fi
1682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683 as_fn_set_status $ac_retval
1684
1685 } # ac_fn_c_try_cpp
1686
1687 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1688 # -------------------------------------------------------
1689 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1690 # the include files in INCLUDES and setting the cache variable VAR
1691 # accordingly.
1692 ac_fn_c_check_header_mongrel ()
1693 {
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 if eval \${$3+:} false; then :
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1697 $as_echo_n "checking for $2... " >&6; }
1698 if eval \${$3+:} false; then :
1699 $as_echo_n "(cached) " >&6
1700 fi
1701 eval ac_res=\$$3
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1703 $as_echo "$ac_res" >&6; }
1704 else
1705 # Is the header compilable?
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1707 $as_echo_n "checking $2 usability... " >&6; }
1708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1709 /* end confdefs.h. */
1710 $4
1711 #include <$2>
1712 _ACEOF
1713 if ac_fn_c_try_compile "$LINENO"; then :
1714 ac_header_compiler=yes
1715 else
1716 ac_header_compiler=no
1717 fi
1718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1720 $as_echo "$ac_header_compiler" >&6; }
1721
1722 # Is the header present?
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1724 $as_echo_n "checking $2 presence... " >&6; }
1725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1726 /* end confdefs.h. */
1727 #include <$2>
1728 _ACEOF
1729 if ac_fn_c_try_cpp "$LINENO"; then :
1730 ac_header_preproc=yes
1731 else
1732 ac_header_preproc=no
1733 fi
1734 rm -f conftest.err conftest.i conftest.$ac_ext
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1736 $as_echo "$ac_header_preproc" >&6; }
1737
1738 # So? What about this header?
1739 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1740 yes:no: )
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1742 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1744 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1745 ;;
1746 no:yes:* )
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1748 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1750 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1752 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1754 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1756 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1757 ;;
1758 esac
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1760 $as_echo_n "checking for $2... " >&6; }
1761 if eval \${$3+:} false; then :
1762 $as_echo_n "(cached) " >&6
1763 else
1764 eval "$3=\$ac_header_compiler"
1765 fi
1766 eval ac_res=\$$3
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1768 $as_echo "$ac_res" >&6; }
1769 fi
1770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1771
1772 } # ac_fn_c_check_header_mongrel
1773
1774 # ac_fn_c_try_run LINENO
1775 # ----------------------
1776 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1777 # that executables *can* be run.
1778 ac_fn_c_try_run ()
1779 {
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 if { { ac_try="$ac_link"
1782 case "(($ac_try" in
1783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784 *) ac_try_echo=$ac_try;;
1785 esac
1786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787 $as_echo "$ac_try_echo"; } >&5
1788 (eval "$ac_link") 2>&5
1789 ac_status=$?
1790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1792 { { case "(($ac_try" in
1793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1794 *) ac_try_echo=$ac_try;;
1795 esac
1796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797 $as_echo "$ac_try_echo"; } >&5
1798 (eval "$ac_try") 2>&5
1799 ac_status=$?
1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 test $ac_status = 0; }; }; then :
1802 ac_retval=0
1803 else
1804 $as_echo "$as_me: program exited with status $ac_status" >&5
1805 $as_echo "$as_me: failed program was:" >&5
1806 sed 's/^/| /' conftest.$ac_ext >&5
1807
1808 ac_retval=$ac_status
1809 fi
1810 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812 as_fn_set_status $ac_retval
1813
1814 } # ac_fn_c_try_run
1815
1816 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1817 # -------------------------------------------------------
1818 # Tests whether HEADER exists and can be compiled using the include files in
1819 # INCLUDES, setting the cache variable VAR accordingly.
1820 ac_fn_c_check_header_compile ()
1821 {
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1824 $as_echo_n "checking for $2... " >&6; }
1825 if eval \${$3+:} false; then :
1826 $as_echo_n "(cached) " >&6
1827 else
1828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829 /* end confdefs.h. */
1830 $4
1831 #include <$2>
1832 _ACEOF
1833 if ac_fn_c_try_compile "$LINENO"; then :
1834 eval "$3=yes"
1835 else
1836 eval "$3=no"
1837 fi
1838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1839 fi
1840 eval ac_res=\$$3
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1842 $as_echo "$ac_res" >&6; }
1843 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1844
1845 } # ac_fn_c_check_header_compile
1846
1847 # ac_fn_d_try_compile LINENO
1848 # --------------------------
1849 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1850 ac_fn_d_try_compile ()
1851 {
1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853 rm -f conftest.$ac_objext
1854 if { { ac_try="$ac_compile"
1855 case "(($ac_try" in
1856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1857 *) ac_try_echo=$ac_try;;
1858 esac
1859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860 $as_echo "$ac_try_echo"; } >&5
1861 (eval "$ac_compile") 2>conftest.err
1862 ac_status=$?
1863 if test -s conftest.err; then
1864 grep -v '^ *+' conftest.err >conftest.er1
1865 cat conftest.er1 >&5
1866 mv -f conftest.er1 conftest.err
1867 fi
1868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1869 test $ac_status = 0; } && {
1870 test -z "$ac_d_werror_flag" ||
1871 test ! -s conftest.err
1872 } && test -s conftest.$ac_objext; then :
1873 ac_retval=0
1874 else
1875 $as_echo "$as_me: failed program was:" >&5
1876 sed 's/^/| /' conftest.$ac_ext >&5
1877
1878 ac_retval=1
1879 fi
1880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881 as_fn_set_status $ac_retval
1882
1883 } # ac_fn_d_try_compile
1884
1885 # ac_fn_c_try_link LINENO
1886 # -----------------------
1887 # Try to link conftest.$ac_ext, and return whether this succeeded.
1888 ac_fn_c_try_link ()
1889 {
1890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1891 rm -f conftest.$ac_objext conftest$ac_exeext
1892 if { { ac_try="$ac_link"
1893 case "(($ac_try" in
1894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1895 *) ac_try_echo=$ac_try;;
1896 esac
1897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1898 $as_echo "$ac_try_echo"; } >&5
1899 (eval "$ac_link") 2>conftest.err
1900 ac_status=$?
1901 if test -s conftest.err; then
1902 grep -v '^ *+' conftest.err >conftest.er1
1903 cat conftest.er1 >&5
1904 mv -f conftest.er1 conftest.err
1905 fi
1906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1907 test $ac_status = 0; } && {
1908 test -z "$ac_c_werror_flag" ||
1909 test ! -s conftest.err
1910 } && test -s conftest$ac_exeext && {
1911 test "$cross_compiling" = yes ||
1912 test -x conftest$ac_exeext
1913 }; then :
1914 ac_retval=0
1915 else
1916 $as_echo "$as_me: failed program was:" >&5
1917 sed 's/^/| /' conftest.$ac_ext >&5
1918
1919 ac_retval=1
1920 fi
1921 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1922 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1923 # interfere with the next link command; also delete a directory that is
1924 # left behind by Apple's compiler. We do this before executing the actions.
1925 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927 as_fn_set_status $ac_retval
1928
1929 } # ac_fn_c_try_link
1930
1931 # ac_fn_c_check_func LINENO FUNC VAR
1932 # ----------------------------------
1933 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1934 ac_fn_c_check_func ()
1935 {
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1938 $as_echo_n "checking for $2... " >&6; }
1939 if eval \${$3+:} false; then :
1940 $as_echo_n "(cached) " >&6
1941 else
1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943 /* end confdefs.h. */
1944 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1946 #define $2 innocuous_$2
1947
1948 /* System header to define __stub macros and hopefully few prototypes,
1949 which can conflict with char $2 (); below.
1950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1951 <limits.h> exists even on freestanding compilers. */
1952
1953 #ifdef __STDC__
1954 # include <limits.h>
1955 #else
1956 # include <assert.h>
1957 #endif
1958
1959 #undef $2
1960
1961 /* Override any GCC internal prototype to avoid an error.
1962 Use char because int might match the return type of a GCC
1963 builtin and then its argument prototype would still apply. */
1964 #ifdef __cplusplus
1965 extern "C"
1966 #endif
1967 char $2 ();
1968 /* The GNU C library defines this for functions which it implements
1969 to always fail with ENOSYS. Some functions are actually named
1970 something starting with __ and the normal name is an alias. */
1971 #if defined __stub_$2 || defined __stub___$2
1972 choke me
1973 #endif
1974
1975 int
1976 main ()
1977 {
1978 return $2 ();
1979 ;
1980 return 0;
1981 }
1982 _ACEOF
1983 if ac_fn_c_try_link "$LINENO"; then :
1984 eval "$3=yes"
1985 else
1986 eval "$3=no"
1987 fi
1988 rm -f core conftest.err conftest.$ac_objext \
1989 conftest$ac_exeext conftest.$ac_ext
1990 fi
1991 eval ac_res=\$$3
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1993 $as_echo "$ac_res" >&6; }
1994 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1995
1996 } # ac_fn_c_check_func
1997
1998 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1999 # ----------------------------------------------------
2000 # Tries to find if the field MEMBER exists in type AGGR, after including
2001 # INCLUDES, setting cache variable VAR accordingly.
2002 ac_fn_c_check_member ()
2003 {
2004 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2006 $as_echo_n "checking for $2.$3... " >&6; }
2007 if eval \${$4+:} false; then :
2008 $as_echo_n "(cached) " >&6
2009 else
2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011 /* end confdefs.h. */
2012 $5
2013 int
2014 main ()
2015 {
2016 static $2 ac_aggr;
2017 if (ac_aggr.$3)
2018 return 0;
2019 ;
2020 return 0;
2021 }
2022 _ACEOF
2023 if ac_fn_c_try_compile "$LINENO"; then :
2024 eval "$4=yes"
2025 else
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h. */
2028 $5
2029 int
2030 main ()
2031 {
2032 static $2 ac_aggr;
2033 if (sizeof ac_aggr.$3)
2034 return 0;
2035 ;
2036 return 0;
2037 }
2038 _ACEOF
2039 if ac_fn_c_try_compile "$LINENO"; then :
2040 eval "$4=yes"
2041 else
2042 eval "$4=no"
2043 fi
2044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2045 fi
2046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2047 fi
2048 eval ac_res=\$$4
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2050 $as_echo "$ac_res" >&6; }
2051 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2052
2053 } # ac_fn_c_check_member
2054
2055 # ac_fn_d_try_link LINENO
2056 # -----------------------
2057 # Try to link conftest.$ac_ext, and return whether this succeeded.
2058 ac_fn_d_try_link ()
2059 {
2060 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061 rm -f conftest.$ac_objext conftest$ac_exeext
2062 if { { ac_try="$ac_link"
2063 case "(($ac_try" in
2064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2065 *) ac_try_echo=$ac_try;;
2066 esac
2067 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2068 $as_echo "$ac_try_echo"; } >&5
2069 (eval "$ac_link") 2>conftest.err
2070 ac_status=$?
2071 if test -s conftest.err; then
2072 grep -v '^ *+' conftest.err >conftest.er1
2073 cat conftest.er1 >&5
2074 mv -f conftest.er1 conftest.err
2075 fi
2076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2077 test $ac_status = 0; } && {
2078 test -z "$ac_d_werror_flag" ||
2079 test ! -s conftest.err
2080 } && test -s conftest$ac_exeext && {
2081 test "$cross_compiling" = yes ||
2082 test -x conftest$ac_exeext
2083 }; then :
2084 ac_retval=0
2085 else
2086 $as_echo "$as_me: failed program was:" >&5
2087 sed 's/^/| /' conftest.$ac_ext >&5
2088
2089 ac_retval=1
2090 fi
2091 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2092 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2093 # interfere with the next link command; also delete a directory that is
2094 # left behind by Apple's compiler. We do this before executing the actions.
2095 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2096 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2097 as_fn_set_status $ac_retval
2098
2099 } # ac_fn_d_try_link
2100 cat >config.log <<_ACEOF
2101 This file contains any messages produced by compilers while
2102 running configure, to aid debugging if configure makes a mistake.
2103
2104 It was created by package-unused $as_me version-unused, which was
2105 generated by GNU Autoconf 2.69. Invocation command line was
2106
2107 $ $0 $@
2108
2109 _ACEOF
2110 exec 5>>config.log
2111 {
2112 cat <<_ASUNAME
2113 ## --------- ##
2114 ## Platform. ##
2115 ## --------- ##
2116
2117 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2118 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2119 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2120 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2121 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2122
2123 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2124 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2125
2126 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2127 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2128 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2129 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2130 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2131 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2132 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2133
2134 _ASUNAME
2135
2136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137 for as_dir in $PATH
2138 do
2139 IFS=$as_save_IFS
2140 test -z "$as_dir" && as_dir=.
2141 $as_echo "PATH: $as_dir"
2142 done
2143 IFS=$as_save_IFS
2144
2145 } >&5
2146
2147 cat >&5 <<_ACEOF
2148
2149
2150 ## ----------- ##
2151 ## Core tests. ##
2152 ## ----------- ##
2153
2154 _ACEOF
2155
2156
2157 # Keep a trace of the command line.
2158 # Strip out --no-create and --no-recursion so they do not pile up.
2159 # Strip out --silent because we don't want to record it for future runs.
2160 # Also quote any args containing shell meta-characters.
2161 # Make two passes to allow for proper duplicate-argument suppression.
2162 ac_configure_args=
2163 ac_configure_args0=
2164 ac_configure_args1=
2165 ac_must_keep_next=false
2166 for ac_pass in 1 2
2167 do
2168 for ac_arg
2169 do
2170 case $ac_arg in
2171 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2172 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2173 | -silent | --silent | --silen | --sile | --sil)
2174 continue ;;
2175 *\'*)
2176 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2177 esac
2178 case $ac_pass in
2179 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2180 2)
2181 as_fn_append ac_configure_args1 " '$ac_arg'"
2182 if test $ac_must_keep_next = true; then
2183 ac_must_keep_next=false # Got value, back to normal.
2184 else
2185 case $ac_arg in
2186 *=* | --config-cache | -C | -disable-* | --disable-* \
2187 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2188 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2189 | -with-* | --with-* | -without-* | --without-* | --x)
2190 case "$ac_configure_args0 " in
2191 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2192 esac
2193 ;;
2194 -* ) ac_must_keep_next=true ;;
2195 esac
2196 fi
2197 as_fn_append ac_configure_args " '$ac_arg'"
2198 ;;
2199 esac
2200 done
2201 done
2202 { ac_configure_args0=; unset ac_configure_args0;}
2203 { ac_configure_args1=; unset ac_configure_args1;}
2204
2205 # When interrupted or exit'd, cleanup temporary files, and complete
2206 # config.log. We remove comments because anyway the quotes in there
2207 # would cause problems or look ugly.
2208 # WARNING: Use '\'' to represent an apostrophe within the trap.
2209 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2210 trap 'exit_status=$?
2211 # Save into config.log some information that might help in debugging.
2212 {
2213 echo
2214
2215 $as_echo "## ---------------- ##
2216 ## Cache variables. ##
2217 ## ---------------- ##"
2218 echo
2219 # The following way of writing the cache mishandles newlines in values,
2220 (
2221 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2222 eval ac_val=\$$ac_var
2223 case $ac_val in #(
2224 *${as_nl}*)
2225 case $ac_var in #(
2226 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2227 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2228 esac
2229 case $ac_var in #(
2230 _ | IFS | as_nl) ;; #(
2231 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2232 *) { eval $ac_var=; unset $ac_var;} ;;
2233 esac ;;
2234 esac
2235 done
2236 (set) 2>&1 |
2237 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2238 *${as_nl}ac_space=\ *)
2239 sed -n \
2240 "s/'\''/'\''\\\\'\'''\''/g;
2241 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2242 ;; #(
2243 *)
2244 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2245 ;;
2246 esac |
2247 sort
2248 )
2249 echo
2250
2251 $as_echo "## ----------------- ##
2252 ## Output variables. ##
2253 ## ----------------- ##"
2254 echo
2255 for ac_var in $ac_subst_vars
2256 do
2257 eval ac_val=\$$ac_var
2258 case $ac_val in
2259 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2260 esac
2261 $as_echo "$ac_var='\''$ac_val'\''"
2262 done | sort
2263 echo
2264
2265 if test -n "$ac_subst_files"; then
2266 $as_echo "## ------------------- ##
2267 ## File substitutions. ##
2268 ## ------------------- ##"
2269 echo
2270 for ac_var in $ac_subst_files
2271 do
2272 eval ac_val=\$$ac_var
2273 case $ac_val in
2274 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2275 esac
2276 $as_echo "$ac_var='\''$ac_val'\''"
2277 done | sort
2278 echo
2279 fi
2280
2281 if test -s confdefs.h; then
2282 $as_echo "## ----------- ##
2283 ## confdefs.h. ##
2284 ## ----------- ##"
2285 echo
2286 cat confdefs.h
2287 echo
2288 fi
2289 test "$ac_signal" != 0 &&
2290 $as_echo "$as_me: caught signal $ac_signal"
2291 $as_echo "$as_me: exit $exit_status"
2292 } >&5
2293 rm -f core *.core core.conftest.* &&
2294 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2295 exit $exit_status
2296 ' 0
2297 for ac_signal in 1 2 13 15; do
2298 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2299 done
2300 ac_signal=0
2301
2302 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2303 rm -f -r conftest* confdefs.h
2304
2305 $as_echo "/* confdefs.h */" > confdefs.h
2306
2307 # Predefined preprocessor variables.
2308
2309 cat >>confdefs.h <<_ACEOF
2310 #define PACKAGE_NAME "$PACKAGE_NAME"
2311 _ACEOF
2312
2313 cat >>confdefs.h <<_ACEOF
2314 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2315 _ACEOF
2316
2317 cat >>confdefs.h <<_ACEOF
2318 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2319 _ACEOF
2320
2321 cat >>confdefs.h <<_ACEOF
2322 #define PACKAGE_STRING "$PACKAGE_STRING"
2323 _ACEOF
2324
2325 cat >>confdefs.h <<_ACEOF
2326 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2327 _ACEOF
2328
2329 cat >>confdefs.h <<_ACEOF
2330 #define PACKAGE_URL "$PACKAGE_URL"
2331 _ACEOF
2332
2333
2334 # Let the site file select an alternate cache file if it wants to.
2335 # Prefer an explicitly selected file to automatically selected ones.
2336 ac_site_file1=NONE
2337 ac_site_file2=NONE
2338 if test -n "$CONFIG_SITE"; then
2339 # We do not want a PATH search for config.site.
2340 case $CONFIG_SITE in #((
2341 -*) ac_site_file1=./$CONFIG_SITE;;
2342 */*) ac_site_file1=$CONFIG_SITE;;
2343 *) ac_site_file1=./$CONFIG_SITE;;
2344 esac
2345 elif test "x$prefix" != xNONE; then
2346 ac_site_file1=$prefix/share/config.site
2347 ac_site_file2=$prefix/etc/config.site
2348 else
2349 ac_site_file1=$ac_default_prefix/share/config.site
2350 ac_site_file2=$ac_default_prefix/etc/config.site
2351 fi
2352 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2353 do
2354 test "x$ac_site_file" = xNONE && continue
2355 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2357 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2358 sed 's/^/| /' "$ac_site_file" >&5
2359 . "$ac_site_file" \
2360 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2361 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2362 as_fn_error $? "failed to load site script $ac_site_file
2363 See \`config.log' for more details" "$LINENO" 5; }
2364 fi
2365 done
2366
2367 if test -r "$cache_file"; then
2368 # Some versions of bash will fail to source /dev/null (special files
2369 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2370 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2372 $as_echo "$as_me: loading cache $cache_file" >&6;}
2373 case $cache_file in
2374 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2375 *) . "./$cache_file";;
2376 esac
2377 fi
2378 else
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2380 $as_echo "$as_me: creating cache $cache_file" >&6;}
2381 >$cache_file
2382 fi
2383
2384 # Check that the precious variables saved in the cache have kept the same
2385 # value.
2386 ac_cache_corrupted=false
2387 for ac_var in $ac_precious_vars; do
2388 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2389 eval ac_new_set=\$ac_env_${ac_var}_set
2390 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2391 eval ac_new_val=\$ac_env_${ac_var}_value
2392 case $ac_old_set,$ac_new_set in
2393 set,)
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2395 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2396 ac_cache_corrupted=: ;;
2397 ,set)
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2399 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2400 ac_cache_corrupted=: ;;
2401 ,);;
2402 *)
2403 if test "x$ac_old_val" != "x$ac_new_val"; then
2404 # differences in whitespace do not lead to failure.
2405 ac_old_val_w=`echo x $ac_old_val`
2406 ac_new_val_w=`echo x $ac_new_val`
2407 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2409 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2410 ac_cache_corrupted=:
2411 else
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2413 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2414 eval $ac_var=\$ac_old_val
2415 fi
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2417 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2419 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2420 fi;;
2421 esac
2422 # Pass precious variables to config.status.
2423 if test "$ac_new_set" = set; then
2424 case $ac_new_val in
2425 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2426 *) ac_arg=$ac_var=$ac_new_val ;;
2427 esac
2428 case " $ac_configure_args " in
2429 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2430 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2431 esac
2432 fi
2433 done
2434 if $ac_cache_corrupted; then
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2436 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2438 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2439 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2440 fi
2441 ## -------------------- ##
2442 ## Main body of script. ##
2443 ## -------------------- ##
2444
2445 ac_ext=c
2446 ac_cpp='$CPP $CPPFLAGS'
2447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2450
2451
2452
2453
2454
2455
2456 ac_config_headers="$ac_config_headers config.h"
2457
2458
2459 # Default to --enable-multilib
2460 # Check whether --enable-multilib was given.
2461 if test "${enable_multilib+set}" = set; then :
2462 enableval=$enable_multilib; case "$enableval" in
2463 yes) multilib=yes ;;
2464 no) multilib=no ;;
2465 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2466 esac
2467 else
2468 multilib=yes
2469 fi
2470
2471
2472 # We may get other options which we leave undocumented:
2473 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2474 # See config-ml.in if you want the gory details.
2475
2476 if test "$srcdir" = "."; then
2477 if test "$with_target_subdir" != "."; then
2478 multi_basedir="$srcdir/$with_multisrctop../.."
2479 else
2480 multi_basedir="$srcdir/$with_multisrctop.."
2481 fi
2482 else
2483 multi_basedir="$srcdir/.."
2484 fi
2485
2486
2487 # Even if the default multilib is not a cross compilation,
2488 # it may be that some of the other multilibs are.
2489 if test $cross_compiling = no && test $multilib = yes \
2490 && test "x${with_multisubdir}" != x ; then
2491 cross_compiling=maybe
2492 fi
2493
2494 ac_config_commands="$ac_config_commands default-1"
2495
2496 ac_aux_dir=
2497 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2498 if test -f "$ac_dir/install-sh"; then
2499 ac_aux_dir=$ac_dir
2500 ac_install_sh="$ac_aux_dir/install-sh -c"
2501 break
2502 elif test -f "$ac_dir/install.sh"; then
2503 ac_aux_dir=$ac_dir
2504 ac_install_sh="$ac_aux_dir/install.sh -c"
2505 break
2506 elif test -f "$ac_dir/shtool"; then
2507 ac_aux_dir=$ac_dir
2508 ac_install_sh="$ac_aux_dir/shtool install -c"
2509 break
2510 fi
2511 done
2512 if test -z "$ac_aux_dir"; then
2513 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2514 fi
2515
2516 # These three variables are undocumented and unsupported,
2517 # and are intended to be withdrawn in a future Autoconf release.
2518 # They can cause serious problems if a builder's source tree is in a directory
2519 # whose full name contains unusual characters.
2520 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2521 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2522 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2523
2524
2525 # Make sure we can run config.sub.
2526 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2527 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2528
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2530 $as_echo_n "checking build system type... " >&6; }
2531 if ${ac_cv_build+:} false; then :
2532 $as_echo_n "(cached) " >&6
2533 else
2534 ac_build_alias=$build_alias
2535 test "x$ac_build_alias" = x &&
2536 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2537 test "x$ac_build_alias" = x &&
2538 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2539 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2540 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2541
2542 fi
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2544 $as_echo "$ac_cv_build" >&6; }
2545 case $ac_cv_build in
2546 *-*-*) ;;
2547 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2548 esac
2549 build=$ac_cv_build
2550 ac_save_IFS=$IFS; IFS='-'
2551 set x $ac_cv_build
2552 shift
2553 build_cpu=$1
2554 build_vendor=$2
2555 shift; shift
2556 # Remember, the first character of IFS is used to create $*,
2557 # except with old shells:
2558 build_os=$*
2559 IFS=$ac_save_IFS
2560 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2561
2562
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2564 $as_echo_n "checking host system type... " >&6; }
2565 if ${ac_cv_host+:} false; then :
2566 $as_echo_n "(cached) " >&6
2567 else
2568 if test "x$host_alias" = x; then
2569 ac_cv_host=$ac_cv_build
2570 else
2571 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2572 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2573 fi
2574
2575 fi
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2577 $as_echo "$ac_cv_host" >&6; }
2578 case $ac_cv_host in
2579 *-*-*) ;;
2580 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2581 esac
2582 host=$ac_cv_host
2583 ac_save_IFS=$IFS; IFS='-'
2584 set x $ac_cv_host
2585 shift
2586 host_cpu=$1
2587 host_vendor=$2
2588 shift; shift
2589 # Remember, the first character of IFS is used to create $*,
2590 # except with old shells:
2591 host_os=$*
2592 IFS=$ac_save_IFS
2593 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2594
2595
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2597 $as_echo_n "checking target system type... " >&6; }
2598 if ${ac_cv_target+:} false; then :
2599 $as_echo_n "(cached) " >&6
2600 else
2601 if test "x$target_alias" = x; then
2602 ac_cv_target=$ac_cv_host
2603 else
2604 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2605 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2606 fi
2607
2608 fi
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2610 $as_echo "$ac_cv_target" >&6; }
2611 case $ac_cv_target in
2612 *-*-*) ;;
2613 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2614 esac
2615 target=$ac_cv_target
2616 ac_save_IFS=$IFS; IFS='-'
2617 set x $ac_cv_target
2618 shift
2619 target_cpu=$1
2620 target_vendor=$2
2621 shift; shift
2622 # Remember, the first character of IFS is used to create $*,
2623 # except with old shells:
2624 target_os=$*
2625 IFS=$ac_save_IFS
2626 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2627
2628
2629 # The aliases save the names the user supplied, while $host etc.
2630 # will get canonicalized.
2631 test -n "$target_alias" &&
2632 test "$program_prefix$program_suffix$program_transform_name" = \
2633 NONENONEs,x,x, &&
2634 program_prefix=${target_alias}-
2635
2636 # Expand $ac_aux_dir to an absolute path.
2637 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2638
2639 ac_ext=c
2640 ac_cpp='$CPP $CPPFLAGS'
2641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2644 if test -n "$ac_tool_prefix"; then
2645 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2646 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2648 $as_echo_n "checking for $ac_word... " >&6; }
2649 if ${ac_cv_prog_CC+:} false; then :
2650 $as_echo_n "(cached) " >&6
2651 else
2652 if test -n "$CC"; then
2653 ac_cv_prog_CC="$CC" # Let the user override the test.
2654 else
2655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656 for as_dir in $PATH
2657 do
2658 IFS=$as_save_IFS
2659 test -z "$as_dir" && as_dir=.
2660 for ac_exec_ext in '' $ac_executable_extensions; do
2661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2662 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2664 break 2
2665 fi
2666 done
2667 done
2668 IFS=$as_save_IFS
2669
2670 fi
2671 fi
2672 CC=$ac_cv_prog_CC
2673 if test -n "$CC"; then
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2675 $as_echo "$CC" >&6; }
2676 else
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2678 $as_echo "no" >&6; }
2679 fi
2680
2681
2682 fi
2683 if test -z "$ac_cv_prog_CC"; then
2684 ac_ct_CC=$CC
2685 # Extract the first word of "gcc", so it can be a program name with args.
2686 set dummy gcc; ac_word=$2
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2688 $as_echo_n "checking for $ac_word... " >&6; }
2689 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2690 $as_echo_n "(cached) " >&6
2691 else
2692 if test -n "$ac_ct_CC"; then
2693 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2694 else
2695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696 for as_dir in $PATH
2697 do
2698 IFS=$as_save_IFS
2699 test -z "$as_dir" && as_dir=.
2700 for ac_exec_ext in '' $ac_executable_extensions; do
2701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2702 ac_cv_prog_ac_ct_CC="gcc"
2703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2704 break 2
2705 fi
2706 done
2707 done
2708 IFS=$as_save_IFS
2709
2710 fi
2711 fi
2712 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2713 if test -n "$ac_ct_CC"; then
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2715 $as_echo "$ac_ct_CC" >&6; }
2716 else
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2718 $as_echo "no" >&6; }
2719 fi
2720
2721 if test "x$ac_ct_CC" = x; then
2722 CC=""
2723 else
2724 case $cross_compiling:$ac_tool_warned in
2725 yes:)
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2727 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2728 ac_tool_warned=yes ;;
2729 esac
2730 CC=$ac_ct_CC
2731 fi
2732 else
2733 CC="$ac_cv_prog_CC"
2734 fi
2735
2736 if test -z "$CC"; then
2737 if test -n "$ac_tool_prefix"; then
2738 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2739 set dummy ${ac_tool_prefix}cc; ac_word=$2
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2741 $as_echo_n "checking for $ac_word... " >&6; }
2742 if ${ac_cv_prog_CC+:} false; then :
2743 $as_echo_n "(cached) " >&6
2744 else
2745 if test -n "$CC"; then
2746 ac_cv_prog_CC="$CC" # Let the user override the test.
2747 else
2748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749 for as_dir in $PATH
2750 do
2751 IFS=$as_save_IFS
2752 test -z "$as_dir" && as_dir=.
2753 for ac_exec_ext in '' $ac_executable_extensions; do
2754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2755 ac_cv_prog_CC="${ac_tool_prefix}cc"
2756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2757 break 2
2758 fi
2759 done
2760 done
2761 IFS=$as_save_IFS
2762
2763 fi
2764 fi
2765 CC=$ac_cv_prog_CC
2766 if test -n "$CC"; then
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2768 $as_echo "$CC" >&6; }
2769 else
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2771 $as_echo "no" >&6; }
2772 fi
2773
2774
2775 fi
2776 fi
2777 if test -z "$CC"; then
2778 # Extract the first word of "cc", so it can be a program name with args.
2779 set dummy cc; ac_word=$2
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2781 $as_echo_n "checking for $ac_word... " >&6; }
2782 if ${ac_cv_prog_CC+:} false; then :
2783 $as_echo_n "(cached) " >&6
2784 else
2785 if test -n "$CC"; then
2786 ac_cv_prog_CC="$CC" # Let the user override the test.
2787 else
2788 ac_prog_rejected=no
2789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790 for as_dir in $PATH
2791 do
2792 IFS=$as_save_IFS
2793 test -z "$as_dir" && as_dir=.
2794 for ac_exec_ext in '' $ac_executable_extensions; do
2795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2796 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2797 ac_prog_rejected=yes
2798 continue
2799 fi
2800 ac_cv_prog_CC="cc"
2801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2802 break 2
2803 fi
2804 done
2805 done
2806 IFS=$as_save_IFS
2807
2808 if test $ac_prog_rejected = yes; then
2809 # We found a bogon in the path, so make sure we never use it.
2810 set dummy $ac_cv_prog_CC
2811 shift
2812 if test $# != 0; then
2813 # We chose a different compiler from the bogus one.
2814 # However, it has the same basename, so the bogon will be chosen
2815 # first if we set CC to just the basename; use the full file name.
2816 shift
2817 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2818 fi
2819 fi
2820 fi
2821 fi
2822 CC=$ac_cv_prog_CC
2823 if test -n "$CC"; then
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2825 $as_echo "$CC" >&6; }
2826 else
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2828 $as_echo "no" >&6; }
2829 fi
2830
2831
2832 fi
2833 if test -z "$CC"; then
2834 if test -n "$ac_tool_prefix"; then
2835 for ac_prog in cl.exe
2836 do
2837 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2838 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2840 $as_echo_n "checking for $ac_word... " >&6; }
2841 if ${ac_cv_prog_CC+:} false; then :
2842 $as_echo_n "(cached) " >&6
2843 else
2844 if test -n "$CC"; then
2845 ac_cv_prog_CC="$CC" # Let the user override the test.
2846 else
2847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848 for as_dir in $PATH
2849 do
2850 IFS=$as_save_IFS
2851 test -z "$as_dir" && as_dir=.
2852 for ac_exec_ext in '' $ac_executable_extensions; do
2853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2854 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2856 break 2
2857 fi
2858 done
2859 done
2860 IFS=$as_save_IFS
2861
2862 fi
2863 fi
2864 CC=$ac_cv_prog_CC
2865 if test -n "$CC"; then
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2867 $as_echo "$CC" >&6; }
2868 else
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2870 $as_echo "no" >&6; }
2871 fi
2872
2873
2874 test -n "$CC" && break
2875 done
2876 fi
2877 if test -z "$CC"; then
2878 ac_ct_CC=$CC
2879 for ac_prog in cl.exe
2880 do
2881 # Extract the first word of "$ac_prog", so it can be a program name with args.
2882 set dummy $ac_prog; ac_word=$2
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2884 $as_echo_n "checking for $ac_word... " >&6; }
2885 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2886 $as_echo_n "(cached) " >&6
2887 else
2888 if test -n "$ac_ct_CC"; then
2889 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2890 else
2891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2892 for as_dir in $PATH
2893 do
2894 IFS=$as_save_IFS
2895 test -z "$as_dir" && as_dir=.
2896 for ac_exec_ext in '' $ac_executable_extensions; do
2897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2898 ac_cv_prog_ac_ct_CC="$ac_prog"
2899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2900 break 2
2901 fi
2902 done
2903 done
2904 IFS=$as_save_IFS
2905
2906 fi
2907 fi
2908 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2909 if test -n "$ac_ct_CC"; then
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2911 $as_echo "$ac_ct_CC" >&6; }
2912 else
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2914 $as_echo "no" >&6; }
2915 fi
2916
2917
2918 test -n "$ac_ct_CC" && break
2919 done
2920
2921 if test "x$ac_ct_CC" = x; then
2922 CC=""
2923 else
2924 case $cross_compiling:$ac_tool_warned in
2925 yes:)
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2927 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2928 ac_tool_warned=yes ;;
2929 esac
2930 CC=$ac_ct_CC
2931 fi
2932 fi
2933
2934 fi
2935
2936
2937 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2938 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2939 as_fn_error $? "no acceptable C compiler found in \$PATH
2940 See \`config.log' for more details" "$LINENO" 5; }
2941
2942 # Provide some information about the compiler.
2943 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2944 set X $ac_compile
2945 ac_compiler=$2
2946 for ac_option in --version -v -V -qversion; do
2947 { { ac_try="$ac_compiler $ac_option >&5"
2948 case "(($ac_try" in
2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2951 esac
2952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2953 $as_echo "$ac_try_echo"; } >&5
2954 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2955 ac_status=$?
2956 if test -s conftest.err; then
2957 sed '10a\
2958 ... rest of stderr output deleted ...
2959 10q' conftest.err >conftest.er1
2960 cat conftest.er1 >&5
2961 fi
2962 rm -f conftest.er1 conftest.err
2963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2964 test $ac_status = 0; }
2965 done
2966
2967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2968 /* end confdefs.h. */
2969
2970 int
2971 main ()
2972 {
2973
2974 ;
2975 return 0;
2976 }
2977 _ACEOF
2978 ac_clean_files_save=$ac_clean_files
2979 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2980 # Try to create an executable without -o first, disregard a.out.
2981 # It will help us diagnose broken compilers, and finding out an intuition
2982 # of exeext.
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2984 $as_echo_n "checking whether the C compiler works... " >&6; }
2985 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2986
2987 # The possible output files:
2988 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2989
2990 ac_rmfiles=
2991 for ac_file in $ac_files
2992 do
2993 case $ac_file in
2994 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2995 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2996 esac
2997 done
2998 rm -f $ac_rmfiles
2999
3000 if { { ac_try="$ac_link_default"
3001 case "(($ac_try" in
3002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003 *) ac_try_echo=$ac_try;;
3004 esac
3005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3006 $as_echo "$ac_try_echo"; } >&5
3007 (eval "$ac_link_default") 2>&5
3008 ac_status=$?
3009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3010 test $ac_status = 0; }; then :
3011 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3012 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3013 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3014 # so that the user can short-circuit this test for compilers unknown to
3015 # Autoconf.
3016 for ac_file in $ac_files ''
3017 do
3018 test -f "$ac_file" || continue
3019 case $ac_file in
3020 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3021 ;;
3022 [ab].out )
3023 # We found the default executable, but exeext='' is most
3024 # certainly right.
3025 break;;
3026 *.* )
3027 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3028 then :; else
3029 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3030 fi
3031 # We set ac_cv_exeext here because the later test for it is not
3032 # safe: cross compilers may not add the suffix if given an `-o'
3033 # argument, so we may need to know it at that point already.
3034 # Even if this section looks crufty: it has the advantage of
3035 # actually working.
3036 break;;
3037 * )
3038 break;;
3039 esac
3040 done
3041 test "$ac_cv_exeext" = no && ac_cv_exeext=
3042
3043 else
3044 ac_file=''
3045 fi
3046 if test -z "$ac_file"; then :
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3048 $as_echo "no" >&6; }
3049 $as_echo "$as_me: failed program was:" >&5
3050 sed 's/^/| /' conftest.$ac_ext >&5
3051
3052 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3053 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3054 as_fn_error 77 "C compiler cannot create executables
3055 See \`config.log' for more details" "$LINENO" 5; }
3056 else
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3058 $as_echo "yes" >&6; }
3059 fi
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3061 $as_echo_n "checking for C compiler default output file name... " >&6; }
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3063 $as_echo "$ac_file" >&6; }
3064 ac_exeext=$ac_cv_exeext
3065
3066 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3067 ac_clean_files=$ac_clean_files_save
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3069 $as_echo_n "checking for suffix of executables... " >&6; }
3070 if { { ac_try="$ac_link"
3071 case "(($ac_try" in
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3074 esac
3075 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3076 $as_echo "$ac_try_echo"; } >&5
3077 (eval "$ac_link") 2>&5
3078 ac_status=$?
3079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3080 test $ac_status = 0; }; then :
3081 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3082 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3083 # work properly (i.e., refer to `conftest.exe'), while it won't with
3084 # `rm'.
3085 for ac_file in conftest.exe conftest conftest.*; do
3086 test -f "$ac_file" || continue
3087 case $ac_file in
3088 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3089 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3090 break;;
3091 * ) break;;
3092 esac
3093 done
3094 else
3095 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3097 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3098 See \`config.log' for more details" "$LINENO" 5; }
3099 fi
3100 rm -f conftest conftest$ac_cv_exeext
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3102 $as_echo "$ac_cv_exeext" >&6; }
3103
3104 rm -f conftest.$ac_ext
3105 EXEEXT=$ac_cv_exeext
3106 ac_exeext=$EXEEXT
3107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3108 /* end confdefs.h. */
3109 #include <stdio.h>
3110 int
3111 main ()
3112 {
3113 FILE *f = fopen ("conftest.out", "w");
3114 return ferror (f) || fclose (f) != 0;
3115
3116 ;
3117 return 0;
3118 }
3119 _ACEOF
3120 ac_clean_files="$ac_clean_files conftest.out"
3121 # Check that the compiler produces executables we can run. If not, either
3122 # the compiler is broken, or we cross compile.
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3124 $as_echo_n "checking whether we are cross compiling... " >&6; }
3125 if test "$cross_compiling" != yes; then
3126 { { ac_try="$ac_link"
3127 case "(($ac_try" in
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3130 esac
3131 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3132 $as_echo "$ac_try_echo"; } >&5
3133 (eval "$ac_link") 2>&5
3134 ac_status=$?
3135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3136 test $ac_status = 0; }
3137 if { ac_try='./conftest$ac_cv_exeext'
3138 { { case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3141 esac
3142 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3143 $as_echo "$ac_try_echo"; } >&5
3144 (eval "$ac_try") 2>&5
3145 ac_status=$?
3146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3147 test $ac_status = 0; }; }; then
3148 cross_compiling=no
3149 else
3150 if test "$cross_compiling" = maybe; then
3151 cross_compiling=yes
3152 else
3153 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3154 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3155 as_fn_error $? "cannot run C compiled programs.
3156 If you meant to cross compile, use \`--host'.
3157 See \`config.log' for more details" "$LINENO" 5; }
3158 fi
3159 fi
3160 fi
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3162 $as_echo "$cross_compiling" >&6; }
3163
3164 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3165 ac_clean_files=$ac_clean_files_save
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3167 $as_echo_n "checking for suffix of object files... " >&6; }
3168 if ${ac_cv_objext+:} false; then :
3169 $as_echo_n "(cached) " >&6
3170 else
3171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3172 /* end confdefs.h. */
3173
3174 int
3175 main ()
3176 {
3177
3178 ;
3179 return 0;
3180 }
3181 _ACEOF
3182 rm -f conftest.o conftest.obj
3183 if { { ac_try="$ac_compile"
3184 case "(($ac_try" in
3185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186 *) ac_try_echo=$ac_try;;
3187 esac
3188 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3189 $as_echo "$ac_try_echo"; } >&5
3190 (eval "$ac_compile") 2>&5
3191 ac_status=$?
3192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3193 test $ac_status = 0; }; then :
3194 for ac_file in conftest.o conftest.obj conftest.*; do
3195 test -f "$ac_file" || continue;
3196 case $ac_file in
3197 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3198 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3199 break;;
3200 esac
3201 done
3202 else
3203 $as_echo "$as_me: failed program was:" >&5
3204 sed 's/^/| /' conftest.$ac_ext >&5
3205
3206 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3207 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3208 as_fn_error $? "cannot compute suffix of object files: cannot compile
3209 See \`config.log' for more details" "$LINENO" 5; }
3210 fi
3211 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3212 fi
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3214 $as_echo "$ac_cv_objext" >&6; }
3215 OBJEXT=$ac_cv_objext
3216 ac_objext=$OBJEXT
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3218 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3219 if ${ac_cv_c_compiler_gnu+:} false; then :
3220 $as_echo_n "(cached) " >&6
3221 else
3222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3223 /* end confdefs.h. */
3224
3225 int
3226 main ()
3227 {
3228 #ifndef __GNUC__
3229 choke me
3230 #endif
3231
3232 ;
3233 return 0;
3234 }
3235 _ACEOF
3236 if ac_fn_c_try_compile "$LINENO"; then :
3237 ac_compiler_gnu=yes
3238 else
3239 ac_compiler_gnu=no
3240 fi
3241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3242 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3243
3244 fi
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3246 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3247 if test $ac_compiler_gnu = yes; then
3248 GCC=yes
3249 else
3250 GCC=
3251 fi
3252 ac_test_CFLAGS=${CFLAGS+set}
3253 ac_save_CFLAGS=$CFLAGS
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3255 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3256 if ${ac_cv_prog_cc_g+:} false; then :
3257 $as_echo_n "(cached) " >&6
3258 else
3259 ac_save_c_werror_flag=$ac_c_werror_flag
3260 ac_c_werror_flag=yes
3261 ac_cv_prog_cc_g=no
3262 CFLAGS="-g"
3263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3264 /* end confdefs.h. */
3265
3266 int
3267 main ()
3268 {
3269
3270 ;
3271 return 0;
3272 }
3273 _ACEOF
3274 if ac_fn_c_try_compile "$LINENO"; then :
3275 ac_cv_prog_cc_g=yes
3276 else
3277 CFLAGS=""
3278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3279 /* end confdefs.h. */
3280
3281 int
3282 main ()
3283 {
3284
3285 ;
3286 return 0;
3287 }
3288 _ACEOF
3289 if ac_fn_c_try_compile "$LINENO"; then :
3290
3291 else
3292 ac_c_werror_flag=$ac_save_c_werror_flag
3293 CFLAGS="-g"
3294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3295 /* end confdefs.h. */
3296
3297 int
3298 main ()
3299 {
3300
3301 ;
3302 return 0;
3303 }
3304 _ACEOF
3305 if ac_fn_c_try_compile "$LINENO"; then :
3306 ac_cv_prog_cc_g=yes
3307 fi
3308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3309 fi
3310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3311 fi
3312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3313 ac_c_werror_flag=$ac_save_c_werror_flag
3314 fi
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3316 $as_echo "$ac_cv_prog_cc_g" >&6; }
3317 if test "$ac_test_CFLAGS" = set; then
3318 CFLAGS=$ac_save_CFLAGS
3319 elif test $ac_cv_prog_cc_g = yes; then
3320 if test "$GCC" = yes; then
3321 CFLAGS="-g -O2"
3322 else
3323 CFLAGS="-g"
3324 fi
3325 else
3326 if test "$GCC" = yes; then
3327 CFLAGS="-O2"
3328 else
3329 CFLAGS=
3330 fi
3331 fi
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3333 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3334 if ${ac_cv_prog_cc_c89+:} false; then :
3335 $as_echo_n "(cached) " >&6
3336 else
3337 ac_cv_prog_cc_c89=no
3338 ac_save_CC=$CC
3339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3340 /* end confdefs.h. */
3341 #include <stdarg.h>
3342 #include <stdio.h>
3343 struct stat;
3344 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3345 struct buf { int x; };
3346 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3347 static char *e (p, i)
3348 char **p;
3349 int i;
3350 {
3351 return p[i];
3352 }
3353 static char *f (char * (*g) (char **, int), char **p, ...)
3354 {
3355 char *s;
3356 va_list v;
3357 va_start (v,p);
3358 s = g (p, va_arg (v,int));
3359 va_end (v);
3360 return s;
3361 }
3362
3363 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3364 function prototypes and stuff, but not '\xHH' hex character constants.
3365 These don't provoke an error unfortunately, instead are silently treated
3366 as 'x'. The following induces an error, until -std is added to get
3367 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3368 array size at least. It's necessary to write '\x00'==0 to get something
3369 that's true only with -std. */
3370 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3371
3372 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3373 inside strings and character constants. */
3374 #define FOO(x) 'x'
3375 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3376
3377 int test (int i, double x);
3378 struct s1 {int (*f) (int a);};
3379 struct s2 {int (*f) (double a);};
3380 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3381 int argc;
3382 char **argv;
3383 int
3384 main ()
3385 {
3386 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3387 ;
3388 return 0;
3389 }
3390 _ACEOF
3391 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3392 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3393 do
3394 CC="$ac_save_CC $ac_arg"
3395 if ac_fn_c_try_compile "$LINENO"; then :
3396 ac_cv_prog_cc_c89=$ac_arg
3397 fi
3398 rm -f core conftest.err conftest.$ac_objext
3399 test "x$ac_cv_prog_cc_c89" != "xno" && break
3400 done
3401 rm -f conftest.$ac_ext
3402 CC=$ac_save_CC
3403
3404 fi
3405 # AC_CACHE_VAL
3406 case "x$ac_cv_prog_cc_c89" in
3407 x)
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3409 $as_echo "none needed" >&6; } ;;
3410 xno)
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3412 $as_echo "unsupported" >&6; } ;;
3413 *)
3414 CC="$CC $ac_cv_prog_cc_c89"
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3416 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3417 esac
3418 if test "x$ac_cv_prog_cc_c89" != xno; then :
3419
3420 fi
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
3428 ac_ext=c
3429 ac_cpp='$CPP $CPPFLAGS'
3430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3434 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3435 if ${am_cv_prog_cc_c_o+:} false; then :
3436 $as_echo_n "(cached) " >&6
3437 else
3438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3439 /* end confdefs.h. */
3440
3441 int
3442 main ()
3443 {
3444
3445 ;
3446 return 0;
3447 }
3448 _ACEOF
3449 # Make sure it works both with $CC and with simple cc.
3450 # Following AC_PROG_CC_C_O, we do the test twice because some
3451 # compilers refuse to overwrite an existing .o file with -o,
3452 # though they will create one.
3453 am_cv_prog_cc_c_o=yes
3454 for am_i in 1 2; do
3455 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3456 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3457 ac_status=$?
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); } \
3460 && test -f conftest2.$ac_objext; then
3461 : OK
3462 else
3463 am_cv_prog_cc_c_o=no
3464 break
3465 fi
3466 done
3467 rm -f core conftest*
3468 unset am_i
3469 fi
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3471 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3472 if test "$am_cv_prog_cc_c_o" != yes; then
3473 # Losing compiler, so override with the script.
3474 # FIXME: It is wrong to rewrite CC.
3475 # But if we don't then we get into trouble of one sort or another.
3476 # A longer-term fix would be to have automake use am__CC in this case,
3477 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3478 CC="$am_aux_dir/compile $CC"
3479 fi
3480 ac_ext=c
3481 ac_cpp='$CPP $CPPFLAGS'
3482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3485
3486
3487
3488 ac_ext=c
3489 ac_cpp='$CPP $CPPFLAGS'
3490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3494 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3495 # On Suns, sometimes $CPP names a directory.
3496 if test -n "$CPP" && test -d "$CPP"; then
3497 CPP=
3498 fi
3499 if test -z "$CPP"; then
3500 if ${ac_cv_prog_CPP+:} false; then :
3501 $as_echo_n "(cached) " >&6
3502 else
3503 # Double quotes because CPP needs to be expanded
3504 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3505 do
3506 ac_preproc_ok=false
3507 for ac_c_preproc_warn_flag in '' yes
3508 do
3509 # Use a header file that comes with gcc, so configuring glibc
3510 # with a fresh cross-compiler works.
3511 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3512 # <limits.h> exists even on freestanding compilers.
3513 # On the NeXT, cc -E runs the code through the compiler's parser,
3514 # not just through cpp. "Syntax error" is here to catch this case.
3515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3516 /* end confdefs.h. */
3517 #ifdef __STDC__
3518 # include <limits.h>
3519 #else
3520 # include <assert.h>
3521 #endif
3522 Syntax error
3523 _ACEOF
3524 if ac_fn_c_try_cpp "$LINENO"; then :
3525
3526 else
3527 # Broken: fails on valid input.
3528 continue
3529 fi
3530 rm -f conftest.err conftest.i conftest.$ac_ext
3531
3532 # OK, works on sane cases. Now check whether nonexistent headers
3533 # can be detected and how.
3534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3535 /* end confdefs.h. */
3536 #include <ac_nonexistent.h>
3537 _ACEOF
3538 if ac_fn_c_try_cpp "$LINENO"; then :
3539 # Broken: success on invalid input.
3540 continue
3541 else
3542 # Passes both tests.
3543 ac_preproc_ok=:
3544 break
3545 fi
3546 rm -f conftest.err conftest.i conftest.$ac_ext
3547
3548 done
3549 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3550 rm -f conftest.i conftest.err conftest.$ac_ext
3551 if $ac_preproc_ok; then :
3552 break
3553 fi
3554
3555 done
3556 ac_cv_prog_CPP=$CPP
3557
3558 fi
3559 CPP=$ac_cv_prog_CPP
3560 else
3561 ac_cv_prog_CPP=$CPP
3562 fi
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3564 $as_echo "$CPP" >&6; }
3565 ac_preproc_ok=false
3566 for ac_c_preproc_warn_flag in '' yes
3567 do
3568 # Use a header file that comes with gcc, so configuring glibc
3569 # with a fresh cross-compiler works.
3570 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3571 # <limits.h> exists even on freestanding compilers.
3572 # On the NeXT, cc -E runs the code through the compiler's parser,
3573 # not just through cpp. "Syntax error" is here to catch this case.
3574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3575 /* end confdefs.h. */
3576 #ifdef __STDC__
3577 # include <limits.h>
3578 #else
3579 # include <assert.h>
3580 #endif
3581 Syntax error
3582 _ACEOF
3583 if ac_fn_c_try_cpp "$LINENO"; then :
3584
3585 else
3586 # Broken: fails on valid input.
3587 continue
3588 fi
3589 rm -f conftest.err conftest.i conftest.$ac_ext
3590
3591 # OK, works on sane cases. Now check whether nonexistent headers
3592 # can be detected and how.
3593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3594 /* end confdefs.h. */
3595 #include <ac_nonexistent.h>
3596 _ACEOF
3597 if ac_fn_c_try_cpp "$LINENO"; then :
3598 # Broken: success on invalid input.
3599 continue
3600 else
3601 # Passes both tests.
3602 ac_preproc_ok=:
3603 break
3604 fi
3605 rm -f conftest.err conftest.i conftest.$ac_ext
3606
3607 done
3608 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3609 rm -f conftest.i conftest.err conftest.$ac_ext
3610 if $ac_preproc_ok; then :
3611
3612 else
3613 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3614 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3615 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3616 See \`config.log' for more details" "$LINENO" 5; }
3617 fi
3618
3619 ac_ext=c
3620 ac_cpp='$CPP $CPPFLAGS'
3621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3624
3625
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3627 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3628 if ${ac_cv_path_GREP+:} false; then :
3629 $as_echo_n "(cached) " >&6
3630 else
3631 if test -z "$GREP"; then
3632 ac_path_GREP_found=false
3633 # Loop through the user's path and test for each of PROGNAME-LIST
3634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3635 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3636 do
3637 IFS=$as_save_IFS
3638 test -z "$as_dir" && as_dir=.
3639 for ac_prog in grep ggrep; do
3640 for ac_exec_ext in '' $ac_executable_extensions; do
3641 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3642 as_fn_executable_p "$ac_path_GREP" || continue
3643 # Check for GNU ac_path_GREP and select it if it is found.
3644 # Check for GNU $ac_path_GREP
3645 case `"$ac_path_GREP" --version 2>&1` in
3646 *GNU*)
3647 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3648 *)
3649 ac_count=0
3650 $as_echo_n 0123456789 >"conftest.in"
3651 while :
3652 do
3653 cat "conftest.in" "conftest.in" >"conftest.tmp"
3654 mv "conftest.tmp" "conftest.in"
3655 cp "conftest.in" "conftest.nl"
3656 $as_echo 'GREP' >> "conftest.nl"
3657 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3658 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3659 as_fn_arith $ac_count + 1 && ac_count=$as_val
3660 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3661 # Best one so far, save it but keep looking for a better one
3662 ac_cv_path_GREP="$ac_path_GREP"
3663 ac_path_GREP_max=$ac_count
3664 fi
3665 # 10*(2^10) chars as input seems more than enough
3666 test $ac_count -gt 10 && break
3667 done
3668 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3669 esac
3670
3671 $ac_path_GREP_found && break 3
3672 done
3673 done
3674 done
3675 IFS=$as_save_IFS
3676 if test -z "$ac_cv_path_GREP"; then
3677 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3678 fi
3679 else
3680 ac_cv_path_GREP=$GREP
3681 fi
3682
3683 fi
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3685 $as_echo "$ac_cv_path_GREP" >&6; }
3686 GREP="$ac_cv_path_GREP"
3687
3688
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3690 $as_echo_n "checking for egrep... " >&6; }
3691 if ${ac_cv_path_EGREP+:} false; then :
3692 $as_echo_n "(cached) " >&6
3693 else
3694 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3695 then ac_cv_path_EGREP="$GREP -E"
3696 else
3697 if test -z "$EGREP"; then
3698 ac_path_EGREP_found=false
3699 # Loop through the user's path and test for each of PROGNAME-LIST
3700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3702 do
3703 IFS=$as_save_IFS
3704 test -z "$as_dir" && as_dir=.
3705 for ac_prog in egrep; do
3706 for ac_exec_ext in '' $ac_executable_extensions; do
3707 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3708 as_fn_executable_p "$ac_path_EGREP" || continue
3709 # Check for GNU ac_path_EGREP and select it if it is found.
3710 # Check for GNU $ac_path_EGREP
3711 case `"$ac_path_EGREP" --version 2>&1` in
3712 *GNU*)
3713 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3714 *)
3715 ac_count=0
3716 $as_echo_n 0123456789 >"conftest.in"
3717 while :
3718 do
3719 cat "conftest.in" "conftest.in" >"conftest.tmp"
3720 mv "conftest.tmp" "conftest.in"
3721 cp "conftest.in" "conftest.nl"
3722 $as_echo 'EGREP' >> "conftest.nl"
3723 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3724 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3725 as_fn_arith $ac_count + 1 && ac_count=$as_val
3726 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3727 # Best one so far, save it but keep looking for a better one
3728 ac_cv_path_EGREP="$ac_path_EGREP"
3729 ac_path_EGREP_max=$ac_count
3730 fi
3731 # 10*(2^10) chars as input seems more than enough
3732 test $ac_count -gt 10 && break
3733 done
3734 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3735 esac
3736
3737 $ac_path_EGREP_found && break 3
3738 done
3739 done
3740 done
3741 IFS=$as_save_IFS
3742 if test -z "$ac_cv_path_EGREP"; then
3743 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3744 fi
3745 else
3746 ac_cv_path_EGREP=$EGREP
3747 fi
3748
3749 fi
3750 fi
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3752 $as_echo "$ac_cv_path_EGREP" >&6; }
3753 EGREP="$ac_cv_path_EGREP"
3754
3755
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3757 $as_echo_n "checking for ANSI C header files... " >&6; }
3758 if ${ac_cv_header_stdc+:} false; then :
3759 $as_echo_n "(cached) " >&6
3760 else
3761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762 /* end confdefs.h. */
3763 #include <stdlib.h>
3764 #include <stdarg.h>
3765 #include <string.h>
3766 #include <float.h>
3767
3768 int
3769 main ()
3770 {
3771
3772 ;
3773 return 0;
3774 }
3775 _ACEOF
3776 if ac_fn_c_try_compile "$LINENO"; then :
3777 ac_cv_header_stdc=yes
3778 else
3779 ac_cv_header_stdc=no
3780 fi
3781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3782
3783 if test $ac_cv_header_stdc = yes; then
3784 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3786 /* end confdefs.h. */
3787 #include <string.h>
3788
3789 _ACEOF
3790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3791 $EGREP "memchr" >/dev/null 2>&1; then :
3792
3793 else
3794 ac_cv_header_stdc=no
3795 fi
3796 rm -f conftest*
3797
3798 fi
3799
3800 if test $ac_cv_header_stdc = yes; then
3801 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3803 /* end confdefs.h. */
3804 #include <stdlib.h>
3805
3806 _ACEOF
3807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3808 $EGREP "free" >/dev/null 2>&1; then :
3809
3810 else
3811 ac_cv_header_stdc=no
3812 fi
3813 rm -f conftest*
3814
3815 fi
3816
3817 if test $ac_cv_header_stdc = yes; then
3818 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3819 if test "$cross_compiling" = yes; then :
3820 :
3821 else
3822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3823 /* end confdefs.h. */
3824 #include <ctype.h>
3825 #include <stdlib.h>
3826 #if ((' ' & 0x0FF) == 0x020)
3827 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3828 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3829 #else
3830 # define ISLOWER(c) \
3831 (('a' <= (c) && (c) <= 'i') \
3832 || ('j' <= (c) && (c) <= 'r') \
3833 || ('s' <= (c) && (c) <= 'z'))
3834 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3835 #endif
3836
3837 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3838 int
3839 main ()
3840 {
3841 int i;
3842 for (i = 0; i < 256; i++)
3843 if (XOR (islower (i), ISLOWER (i))
3844 || toupper (i) != TOUPPER (i))
3845 return 2;
3846 return 0;
3847 }
3848 _ACEOF
3849 if ac_fn_c_try_run "$LINENO"; then :
3850
3851 else
3852 ac_cv_header_stdc=no
3853 fi
3854 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3855 conftest.$ac_objext conftest.beam conftest.$ac_ext
3856 fi
3857
3858 fi
3859 fi
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3861 $as_echo "$ac_cv_header_stdc" >&6; }
3862 if test $ac_cv_header_stdc = yes; then
3863
3864 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3865
3866 fi
3867
3868 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3869 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3870 inttypes.h stdint.h unistd.h
3871 do :
3872 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3873 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3874 "
3875 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3876 cat >>confdefs.h <<_ACEOF
3877 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3878 _ACEOF
3879
3880 fi
3881
3882 done
3883
3884
3885
3886 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3887 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3888 MINIX=yes
3889 else
3890 MINIX=
3891 fi
3892
3893
3894 if test "$MINIX" = yes; then
3895
3896 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3897
3898
3899 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3900
3901
3902 $as_echo "#define _MINIX 1" >>confdefs.h
3903
3904 fi
3905
3906
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3908 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3909 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3910 $as_echo_n "(cached) " >&6
3911 else
3912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3913 /* end confdefs.h. */
3914
3915 # define __EXTENSIONS__ 1
3916 $ac_includes_default
3917 int
3918 main ()
3919 {
3920
3921 ;
3922 return 0;
3923 }
3924 _ACEOF
3925 if ac_fn_c_try_compile "$LINENO"; then :
3926 ac_cv_safe_to_define___extensions__=yes
3927 else
3928 ac_cv_safe_to_define___extensions__=no
3929 fi
3930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3931 fi
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3933 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3934 test $ac_cv_safe_to_define___extensions__ = yes &&
3935 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3936
3937 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3938
3939 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3940
3941 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3942
3943 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3944
3945
3946
3947 target_alias=${target_alias-$target}
3948
3949
3950 # 1.11.1: Require that version of automake.
3951 # foreign: Don't require README, INSTALL, NEWS, etc.
3952 # no-define: Don't define PACKAGE and VERSION.
3953 # no-dependencies: Don't generate automatic dependencies.
3954 # (because it breaks when using bootstrap-lean, since some of the
3955 # headers are gone at "make install" time).
3956 # subdir-objects: Build objects in sub-directories.
3957 # -Wall: Issue all automake warnings.
3958 # -Wno-portability: Don't warn about constructs supported by GNU make.
3959 # (because GCC requires GNU make anyhow).
3960 # -Wno-override: Overrides used in testsuite.
3961 am__api_version='1.15'
3962
3963 # Find a good install program. We prefer a C program (faster),
3964 # so one script is as good as another. But avoid the broken or
3965 # incompatible versions:
3966 # SysV /etc/install, /usr/sbin/install
3967 # SunOS /usr/etc/install
3968 # IRIX /sbin/install
3969 # AIX /bin/install
3970 # AmigaOS /C/install, which installs bootblocks on floppy discs
3971 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3972 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3973 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3974 # OS/2's system install, which has a completely different semantic
3975 # ./install, which can be erroneously created by make from ./install.sh.
3976 # Reject install programs that cannot install multiple files.
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3978 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3979 if test -z "$INSTALL"; then
3980 if ${ac_cv_path_install+:} false; then :
3981 $as_echo_n "(cached) " >&6
3982 else
3983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3984 for as_dir in $PATH
3985 do
3986 IFS=$as_save_IFS
3987 test -z "$as_dir" && as_dir=.
3988 # Account for people who put trailing slashes in PATH elements.
3989 case $as_dir/ in #((
3990 ./ | .// | /[cC]/* | \
3991 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3992 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3993 /usr/ucb/* ) ;;
3994 *)
3995 # OSF1 and SCO ODT 3.0 have their own names for install.
3996 # Don't use installbsd from OSF since it installs stuff as root
3997 # by default.
3998 for ac_prog in ginstall scoinst install; do
3999 for ac_exec_ext in '' $ac_executable_extensions; do
4000 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4001 if test $ac_prog = install &&
4002 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4003 # AIX install. It has an incompatible calling convention.
4004 :
4005 elif test $ac_prog = install &&
4006 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4007 # program-specific install script used by HP pwplus--don't use.
4008 :
4009 else
4010 rm -rf conftest.one conftest.two conftest.dir
4011 echo one > conftest.one
4012 echo two > conftest.two
4013 mkdir conftest.dir
4014 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4015 test -s conftest.one && test -s conftest.two &&
4016 test -s conftest.dir/conftest.one &&
4017 test -s conftest.dir/conftest.two
4018 then
4019 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4020 break 3
4021 fi
4022 fi
4023 fi
4024 done
4025 done
4026 ;;
4027 esac
4028
4029 done
4030 IFS=$as_save_IFS
4031
4032 rm -rf conftest.one conftest.two conftest.dir
4033
4034 fi
4035 if test "${ac_cv_path_install+set}" = set; then
4036 INSTALL=$ac_cv_path_install
4037 else
4038 # As a last resort, use the slow shell script. Don't cache a
4039 # value for INSTALL within a source directory, because that will
4040 # break other packages using the cache if that directory is
4041 # removed, or if the value is a relative name.
4042 INSTALL=$ac_install_sh
4043 fi
4044 fi
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4046 $as_echo "$INSTALL" >&6; }
4047
4048 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4049 # It thinks the first close brace ends the variable substitution.
4050 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4051
4052 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4053
4054 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4055
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4057 $as_echo_n "checking whether build environment is sane... " >&6; }
4058 # Reject unsafe characters in $srcdir or the absolute working directory
4059 # name. Accept space and tab only in the latter.
4060 am_lf='
4061 '
4062 case `pwd` in
4063 *[\\\"\#\$\&\'\`$am_lf]*)
4064 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4065 esac
4066 case $srcdir in
4067 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4068 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4069 esac
4070
4071 # Do 'set' in a subshell so we don't clobber the current shell's
4072 # arguments. Must try -L first in case configure is actually a
4073 # symlink; some systems play weird games with the mod time of symlinks
4074 # (eg FreeBSD returns the mod time of the symlink's containing
4075 # directory).
4076 if (
4077 am_has_slept=no
4078 for am_try in 1 2; do
4079 echo "timestamp, slept: $am_has_slept" > conftest.file
4080 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4081 if test "$*" = "X"; then
4082 # -L didn't work.
4083 set X `ls -t "$srcdir/configure" conftest.file`
4084 fi
4085 if test "$*" != "X $srcdir/configure conftest.file" \
4086 && test "$*" != "X conftest.file $srcdir/configure"; then
4087
4088 # If neither matched, then we have a broken ls. This can happen
4089 # if, for instance, CONFIG_SHELL is bash and it inherits a
4090 # broken ls alias from the environment. This has actually
4091 # happened. Such a system could not be considered "sane".
4092 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4093 alias in your environment" "$LINENO" 5
4094 fi
4095 if test "$2" = conftest.file || test $am_try -eq 2; then
4096 break
4097 fi
4098 # Just in case.
4099 sleep 1
4100 am_has_slept=yes
4101 done
4102 test "$2" = conftest.file
4103 )
4104 then
4105 # Ok.
4106 :
4107 else
4108 as_fn_error $? "newly created file is older than distributed files!
4109 Check your system clock" "$LINENO" 5
4110 fi
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4112 $as_echo "yes" >&6; }
4113 # If we didn't sleep, we still need to ensure time stamps of config.status and
4114 # generated files are strictly newer.
4115 am_sleep_pid=
4116 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4117 ( sleep 1 ) &
4118 am_sleep_pid=$!
4119 fi
4120
4121 rm -f conftest.file
4122
4123 test "$program_prefix" != NONE &&
4124 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4125 # Use a double $ so make ignores it.
4126 test "$program_suffix" != NONE &&
4127 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4128 # Double any \ or $.
4129 # By default was `s,x,x', remove it if useless.
4130 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4131 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4132
4133 if test x"${MISSING+set}" != xset; then
4134 case $am_aux_dir in
4135 *\ * | *\ *)
4136 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4137 *)
4138 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4139 esac
4140 fi
4141 # Use eval to expand $SHELL
4142 if eval "$MISSING --is-lightweight"; then
4143 am_missing_run="$MISSING "
4144 else
4145 am_missing_run=
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4147 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4148 fi
4149
4150 if test x"${install_sh+set}" != xset; then
4151 case $am_aux_dir in
4152 *\ * | *\ *)
4153 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4154 *)
4155 install_sh="\${SHELL} $am_aux_dir/install-sh"
4156 esac
4157 fi
4158
4159 # Installed binaries are usually stripped using 'strip' when the user
4160 # run "make install-strip". However 'strip' might not be the right
4161 # tool to use in cross-compilation environments, therefore Automake
4162 # will honor the 'STRIP' environment variable to overrule this program.
4163 if test "$cross_compiling" != no; then
4164 if test -n "$ac_tool_prefix"; then
4165 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4166 set dummy ${ac_tool_prefix}strip; ac_word=$2
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4168 $as_echo_n "checking for $ac_word... " >&6; }
4169 if ${ac_cv_prog_STRIP+:} false; then :
4170 $as_echo_n "(cached) " >&6
4171 else
4172 if test -n "$STRIP"; then
4173 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4174 else
4175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176 for as_dir in $PATH
4177 do
4178 IFS=$as_save_IFS
4179 test -z "$as_dir" && as_dir=.
4180 for ac_exec_ext in '' $ac_executable_extensions; do
4181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4182 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4184 break 2
4185 fi
4186 done
4187 done
4188 IFS=$as_save_IFS
4189
4190 fi
4191 fi
4192 STRIP=$ac_cv_prog_STRIP
4193 if test -n "$STRIP"; then
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4195 $as_echo "$STRIP" >&6; }
4196 else
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4198 $as_echo "no" >&6; }
4199 fi
4200
4201
4202 fi
4203 if test -z "$ac_cv_prog_STRIP"; then
4204 ac_ct_STRIP=$STRIP
4205 # Extract the first word of "strip", so it can be a program name with args.
4206 set dummy strip; ac_word=$2
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4208 $as_echo_n "checking for $ac_word... " >&6; }
4209 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4210 $as_echo_n "(cached) " >&6
4211 else
4212 if test -n "$ac_ct_STRIP"; then
4213 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4214 else
4215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216 for as_dir in $PATH
4217 do
4218 IFS=$as_save_IFS
4219 test -z "$as_dir" && as_dir=.
4220 for ac_exec_ext in '' $ac_executable_extensions; do
4221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4222 ac_cv_prog_ac_ct_STRIP="strip"
4223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4224 break 2
4225 fi
4226 done
4227 done
4228 IFS=$as_save_IFS
4229
4230 fi
4231 fi
4232 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4233 if test -n "$ac_ct_STRIP"; then
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4235 $as_echo "$ac_ct_STRIP" >&6; }
4236 else
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4238 $as_echo "no" >&6; }
4239 fi
4240
4241 if test "x$ac_ct_STRIP" = x; then
4242 STRIP=":"
4243 else
4244 case $cross_compiling:$ac_tool_warned in
4245 yes:)
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4247 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4248 ac_tool_warned=yes ;;
4249 esac
4250 STRIP=$ac_ct_STRIP
4251 fi
4252 else
4253 STRIP="$ac_cv_prog_STRIP"
4254 fi
4255
4256 fi
4257 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4258
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4260 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4261 if test -z "$MKDIR_P"; then
4262 if ${ac_cv_path_mkdir+:} false; then :
4263 $as_echo_n "(cached) " >&6
4264 else
4265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4267 do
4268 IFS=$as_save_IFS
4269 test -z "$as_dir" && as_dir=.
4270 for ac_prog in mkdir gmkdir; do
4271 for ac_exec_ext in '' $ac_executable_extensions; do
4272 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4273 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4274 'mkdir (GNU coreutils) '* | \
4275 'mkdir (coreutils) '* | \
4276 'mkdir (fileutils) '4.1*)
4277 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4278 break 3;;
4279 esac
4280 done
4281 done
4282 done
4283 IFS=$as_save_IFS
4284
4285 fi
4286
4287 test -d ./--version && rmdir ./--version
4288 if test "${ac_cv_path_mkdir+set}" = set; then
4289 MKDIR_P="$ac_cv_path_mkdir -p"
4290 else
4291 # As a last resort, use the slow shell script. Don't cache a
4292 # value for MKDIR_P within a source directory, because that will
4293 # break other packages using the cache if that directory is
4294 # removed, or if the value is a relative name.
4295 MKDIR_P="$ac_install_sh -d"
4296 fi
4297 fi
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4299 $as_echo "$MKDIR_P" >&6; }
4300
4301 for ac_prog in gawk mawk nawk awk
4302 do
4303 # Extract the first word of "$ac_prog", so it can be a program name with args.
4304 set dummy $ac_prog; ac_word=$2
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4306 $as_echo_n "checking for $ac_word... " >&6; }
4307 if ${ac_cv_prog_AWK+:} false; then :
4308 $as_echo_n "(cached) " >&6
4309 else
4310 if test -n "$AWK"; then
4311 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4312 else
4313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314 for as_dir in $PATH
4315 do
4316 IFS=$as_save_IFS
4317 test -z "$as_dir" && as_dir=.
4318 for ac_exec_ext in '' $ac_executable_extensions; do
4319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4320 ac_cv_prog_AWK="$ac_prog"
4321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4322 break 2
4323 fi
4324 done
4325 done
4326 IFS=$as_save_IFS
4327
4328 fi
4329 fi
4330 AWK=$ac_cv_prog_AWK
4331 if test -n "$AWK"; then
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4333 $as_echo "$AWK" >&6; }
4334 else
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4336 $as_echo "no" >&6; }
4337 fi
4338
4339
4340 test -n "$AWK" && break
4341 done
4342
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4344 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4345 set x ${MAKE-make}
4346 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4347 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4348 $as_echo_n "(cached) " >&6
4349 else
4350 cat >conftest.make <<\_ACEOF
4351 SHELL = /bin/sh
4352 all:
4353 @echo '@@@%%%=$(MAKE)=@@@%%%'
4354 _ACEOF
4355 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4356 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4357 *@@@%%%=?*=@@@%%%*)
4358 eval ac_cv_prog_make_${ac_make}_set=yes;;
4359 *)
4360 eval ac_cv_prog_make_${ac_make}_set=no;;
4361 esac
4362 rm -f conftest.make
4363 fi
4364 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4366 $as_echo "yes" >&6; }
4367 SET_MAKE=
4368 else
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4370 $as_echo "no" >&6; }
4371 SET_MAKE="MAKE=${MAKE-make}"
4372 fi
4373
4374 rm -rf .tst 2>/dev/null
4375 mkdir .tst 2>/dev/null
4376 if test -d .tst; then
4377 am__leading_dot=.
4378 else
4379 am__leading_dot=_
4380 fi
4381 rmdir .tst 2>/dev/null
4382
4383 # Check whether --enable-silent-rules was given.
4384 if test "${enable_silent_rules+set}" = set; then :
4385 enableval=$enable_silent_rules;
4386 fi
4387
4388 case $enable_silent_rules in # (((
4389 yes) AM_DEFAULT_VERBOSITY=0;;
4390 no) AM_DEFAULT_VERBOSITY=1;;
4391 *) AM_DEFAULT_VERBOSITY=1;;
4392 esac
4393 am_make=${MAKE-make}
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4395 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4396 if ${am_cv_make_support_nested_variables+:} false; then :
4397 $as_echo_n "(cached) " >&6
4398 else
4399 if $as_echo 'TRUE=$(BAR$(V))
4400 BAR0=false
4401 BAR1=true
4402 V=1
4403 am__doit:
4404 @$(TRUE)
4405 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4406 am_cv_make_support_nested_variables=yes
4407 else
4408 am_cv_make_support_nested_variables=no
4409 fi
4410 fi
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4412 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4413 if test $am_cv_make_support_nested_variables = yes; then
4414 AM_V='$(V)'
4415 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4416 else
4417 AM_V=$AM_DEFAULT_VERBOSITY
4418 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4419 fi
4420 AM_BACKSLASH='\'
4421
4422 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4423 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4424 # is not polluted with repeated "-I."
4425 am__isrc=' -I$(srcdir)'
4426 # test to see if srcdir already configured
4427 if test -f $srcdir/config.status; then
4428 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4429 fi
4430 fi
4431
4432 # test whether we have cygpath
4433 if test -z "$CYGPATH_W"; then
4434 if (cygpath --version) >/dev/null 2>/dev/null; then
4435 CYGPATH_W='cygpath -w'
4436 else
4437 CYGPATH_W=echo
4438 fi
4439 fi
4440
4441
4442 # Define the identity of the package.
4443 PACKAGE='libphobos'
4444 VERSION='version-unused'
4445
4446
4447 # Some tools Automake needs.
4448
4449 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4450
4451
4452 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4453
4454
4455 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4456
4457
4458 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4459
4460
4461 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4462
4463 # For better backward compatibility. To be removed once Automake 1.9.x
4464 # dies out for good. For more background, see:
4465 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4466 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4467 mkdir_p='$(MKDIR_P)'
4468
4469 # We need awk for the "check" target (and possibly the TAP driver). The
4470 # system "awk" is bad on some platforms.
4471 # Always define AMTAR for backward compatibility. Yes, it's still used
4472 # in the wild :-( We should find a proper way to deprecate it ...
4473 AMTAR='$${TAR-tar}'
4474
4475
4476 # We'll loop over all known methods to create a tar archive until one works.
4477 _am_tools='gnutar pax cpio none'
4478
4479 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4480
4481
4482
4483
4484
4485
4486 # POSIX will say in a future version that running "rm -f" with no argument
4487 # is OK; and we want to be able to make that assumption in our Makefile
4488 # recipes. So use an aggressive probe to check that the usage we want is
4489 # actually supported "in the wild" to an acceptable degree.
4490 # See automake bug#10828.
4491 # To make any issue more visible, cause the running configure to be aborted
4492 # by default if the 'rm' program in use doesn't match our expectations; the
4493 # user can still override this though.
4494 if rm -f && rm -fr && rm -rf; then : OK; else
4495 cat >&2 <<'END'
4496 Oops!
4497
4498 Your 'rm' program seems unable to run without file operands specified
4499 on the command line, even when the '-f' option is present. This is contrary
4500 to the behaviour of most rm programs out there, and not conforming with
4501 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4502
4503 Please tell bug-automake@gnu.org about your system, including the value
4504 of your $PATH and any error possibly output before this message. This
4505 can help us improve future automake versions.
4506
4507 END
4508 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4509 echo 'Configuration will proceed anyway, since you have set the' >&2
4510 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4511 echo >&2
4512 else
4513 cat >&2 <<'END'
4514 Aborting the configuration process, to ensure you take notice of the issue.
4515
4516 You can download and install GNU coreutils to get an 'rm' implementation
4517 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4518
4519 If you want to complete the configuration process using your problematic
4520 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4521 to "yes", and re-run configure.
4522
4523 END
4524 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4525 fi
4526 fi
4527
4528
4529
4530
4531 # By default we simply use the C compiler to build assembly code.
4532
4533 test "${CCAS+set}" = set || CCAS=$CC
4534 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4535
4536
4537
4538 ac_ext=c
4539 ac_cpp='$CPP $CPPFLAGS'
4540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4543 if test -n "$ac_tool_prefix"; then
4544 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4545 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4547 $as_echo_n "checking for $ac_word... " >&6; }
4548 if ${ac_cv_prog_CC+:} false; then :
4549 $as_echo_n "(cached) " >&6
4550 else
4551 if test -n "$CC"; then
4552 ac_cv_prog_CC="$CC" # Let the user override the test.
4553 else
4554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555 for as_dir in $PATH
4556 do
4557 IFS=$as_save_IFS
4558 test -z "$as_dir" && as_dir=.
4559 for ac_exec_ext in '' $ac_executable_extensions; do
4560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4561 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4563 break 2
4564 fi
4565 done
4566 done
4567 IFS=$as_save_IFS
4568
4569 fi
4570 fi
4571 CC=$ac_cv_prog_CC
4572 if test -n "$CC"; then
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4574 $as_echo "$CC" >&6; }
4575 else
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4577 $as_echo "no" >&6; }
4578 fi
4579
4580
4581 fi
4582 if test -z "$ac_cv_prog_CC"; then
4583 ac_ct_CC=$CC
4584 # Extract the first word of "gcc", so it can be a program name with args.
4585 set dummy gcc; ac_word=$2
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4587 $as_echo_n "checking for $ac_word... " >&6; }
4588 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4589 $as_echo_n "(cached) " >&6
4590 else
4591 if test -n "$ac_ct_CC"; then
4592 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4593 else
4594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4595 for as_dir in $PATH
4596 do
4597 IFS=$as_save_IFS
4598 test -z "$as_dir" && as_dir=.
4599 for ac_exec_ext in '' $ac_executable_extensions; do
4600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4601 ac_cv_prog_ac_ct_CC="gcc"
4602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4603 break 2
4604 fi
4605 done
4606 done
4607 IFS=$as_save_IFS
4608
4609 fi
4610 fi
4611 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4612 if test -n "$ac_ct_CC"; then
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4614 $as_echo "$ac_ct_CC" >&6; }
4615 else
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4617 $as_echo "no" >&6; }
4618 fi
4619
4620 if test "x$ac_ct_CC" = x; then
4621 CC=""
4622 else
4623 case $cross_compiling:$ac_tool_warned in
4624 yes:)
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4627 ac_tool_warned=yes ;;
4628 esac
4629 CC=$ac_ct_CC
4630 fi
4631 else
4632 CC="$ac_cv_prog_CC"
4633 fi
4634
4635 if test -z "$CC"; then
4636 if test -n "$ac_tool_prefix"; then
4637 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4638 set dummy ${ac_tool_prefix}cc; ac_word=$2
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4640 $as_echo_n "checking for $ac_word... " >&6; }
4641 if ${ac_cv_prog_CC+:} false; then :
4642 $as_echo_n "(cached) " >&6
4643 else
4644 if test -n "$CC"; then
4645 ac_cv_prog_CC="$CC" # Let the user override the test.
4646 else
4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648 for as_dir in $PATH
4649 do
4650 IFS=$as_save_IFS
4651 test -z "$as_dir" && as_dir=.
4652 for ac_exec_ext in '' $ac_executable_extensions; do
4653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4654 ac_cv_prog_CC="${ac_tool_prefix}cc"
4655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4656 break 2
4657 fi
4658 done
4659 done
4660 IFS=$as_save_IFS
4661
4662 fi
4663 fi
4664 CC=$ac_cv_prog_CC
4665 if test -n "$CC"; then
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4667 $as_echo "$CC" >&6; }
4668 else
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4670 $as_echo "no" >&6; }
4671 fi
4672
4673
4674 fi
4675 fi
4676 if test -z "$CC"; then
4677 # Extract the first word of "cc", so it can be a program name with args.
4678 set dummy cc; ac_word=$2
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4680 $as_echo_n "checking for $ac_word... " >&6; }
4681 if ${ac_cv_prog_CC+:} false; then :
4682 $as_echo_n "(cached) " >&6
4683 else
4684 if test -n "$CC"; then
4685 ac_cv_prog_CC="$CC" # Let the user override the test.
4686 else
4687 ac_prog_rejected=no
4688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4689 for as_dir in $PATH
4690 do
4691 IFS=$as_save_IFS
4692 test -z "$as_dir" && as_dir=.
4693 for ac_exec_ext in '' $ac_executable_extensions; do
4694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4695 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4696 ac_prog_rejected=yes
4697 continue
4698 fi
4699 ac_cv_prog_CC="cc"
4700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4701 break 2
4702 fi
4703 done
4704 done
4705 IFS=$as_save_IFS
4706
4707 if test $ac_prog_rejected = yes; then
4708 # We found a bogon in the path, so make sure we never use it.
4709 set dummy $ac_cv_prog_CC
4710 shift
4711 if test $# != 0; then
4712 # We chose a different compiler from the bogus one.
4713 # However, it has the same basename, so the bogon will be chosen
4714 # first if we set CC to just the basename; use the full file name.
4715 shift
4716 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4717 fi
4718 fi
4719 fi
4720 fi
4721 CC=$ac_cv_prog_CC
4722 if test -n "$CC"; then
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4724 $as_echo "$CC" >&6; }
4725 else
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4727 $as_echo "no" >&6; }
4728 fi
4729
4730
4731 fi
4732 if test -z "$CC"; then
4733 if test -n "$ac_tool_prefix"; then
4734 for ac_prog in cl.exe
4735 do
4736 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4737 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4739 $as_echo_n "checking for $ac_word... " >&6; }
4740 if ${ac_cv_prog_CC+:} false; then :
4741 $as_echo_n "(cached) " >&6
4742 else
4743 if test -n "$CC"; then
4744 ac_cv_prog_CC="$CC" # Let the user override the test.
4745 else
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 for as_dir in $PATH
4748 do
4749 IFS=$as_save_IFS
4750 test -z "$as_dir" && as_dir=.
4751 for ac_exec_ext in '' $ac_executable_extensions; do
4752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4753 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4755 break 2
4756 fi
4757 done
4758 done
4759 IFS=$as_save_IFS
4760
4761 fi
4762 fi
4763 CC=$ac_cv_prog_CC
4764 if test -n "$CC"; then
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4766 $as_echo "$CC" >&6; }
4767 else
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4769 $as_echo "no" >&6; }
4770 fi
4771
4772
4773 test -n "$CC" && break
4774 done
4775 fi
4776 if test -z "$CC"; then
4777 ac_ct_CC=$CC
4778 for ac_prog in cl.exe
4779 do
4780 # Extract the first word of "$ac_prog", so it can be a program name with args.
4781 set dummy $ac_prog; ac_word=$2
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4783 $as_echo_n "checking for $ac_word... " >&6; }
4784 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4785 $as_echo_n "(cached) " >&6
4786 else
4787 if test -n "$ac_ct_CC"; then
4788 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4789 else
4790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791 for as_dir in $PATH
4792 do
4793 IFS=$as_save_IFS
4794 test -z "$as_dir" && as_dir=.
4795 for ac_exec_ext in '' $ac_executable_extensions; do
4796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4797 ac_cv_prog_ac_ct_CC="$ac_prog"
4798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4799 break 2
4800 fi
4801 done
4802 done
4803 IFS=$as_save_IFS
4804
4805 fi
4806 fi
4807 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4808 if test -n "$ac_ct_CC"; then
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4810 $as_echo "$ac_ct_CC" >&6; }
4811 else
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4813 $as_echo "no" >&6; }
4814 fi
4815
4816
4817 test -n "$ac_ct_CC" && break
4818 done
4819
4820 if test "x$ac_ct_CC" = x; then
4821 CC=""
4822 else
4823 case $cross_compiling:$ac_tool_warned in
4824 yes:)
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4826 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4827 ac_tool_warned=yes ;;
4828 esac
4829 CC=$ac_ct_CC
4830 fi
4831 fi
4832
4833 fi
4834
4835
4836 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4837 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4838 as_fn_error $? "no acceptable C compiler found in \$PATH
4839 See \`config.log' for more details" "$LINENO" 5; }
4840
4841 # Provide some information about the compiler.
4842 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4843 set X $ac_compile
4844 ac_compiler=$2
4845 for ac_option in --version -v -V -qversion; do
4846 { { ac_try="$ac_compiler $ac_option >&5"
4847 case "(($ac_try" in
4848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4849 *) ac_try_echo=$ac_try;;
4850 esac
4851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4852 $as_echo "$ac_try_echo"; } >&5
4853 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4854 ac_status=$?
4855 if test -s conftest.err; then
4856 sed '10a\
4857 ... rest of stderr output deleted ...
4858 10q' conftest.err >conftest.er1
4859 cat conftest.er1 >&5
4860 fi
4861 rm -f conftest.er1 conftest.err
4862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4863 test $ac_status = 0; }
4864 done
4865
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4867 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4868 if ${ac_cv_c_compiler_gnu+:} false; then :
4869 $as_echo_n "(cached) " >&6
4870 else
4871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4872 /* end confdefs.h. */
4873
4874 int
4875 main ()
4876 {
4877 #ifndef __GNUC__
4878 choke me
4879 #endif
4880
4881 ;
4882 return 0;
4883 }
4884 _ACEOF
4885 if ac_fn_c_try_compile "$LINENO"; then :
4886 ac_compiler_gnu=yes
4887 else
4888 ac_compiler_gnu=no
4889 fi
4890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4891 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4892
4893 fi
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4895 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4896 if test $ac_compiler_gnu = yes; then
4897 GCC=yes
4898 else
4899 GCC=
4900 fi
4901 ac_test_CFLAGS=${CFLAGS+set}
4902 ac_save_CFLAGS=$CFLAGS
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4904 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4905 if ${ac_cv_prog_cc_g+:} false; then :
4906 $as_echo_n "(cached) " >&6
4907 else
4908 ac_save_c_werror_flag=$ac_c_werror_flag
4909 ac_c_werror_flag=yes
4910 ac_cv_prog_cc_g=no
4911 CFLAGS="-g"
4912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4913 /* end confdefs.h. */
4914
4915 int
4916 main ()
4917 {
4918
4919 ;
4920 return 0;
4921 }
4922 _ACEOF
4923 if ac_fn_c_try_compile "$LINENO"; then :
4924 ac_cv_prog_cc_g=yes
4925 else
4926 CFLAGS=""
4927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4928 /* end confdefs.h. */
4929
4930 int
4931 main ()
4932 {
4933
4934 ;
4935 return 0;
4936 }
4937 _ACEOF
4938 if ac_fn_c_try_compile "$LINENO"; then :
4939
4940 else
4941 ac_c_werror_flag=$ac_save_c_werror_flag
4942 CFLAGS="-g"
4943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4944 /* end confdefs.h. */
4945
4946 int
4947 main ()
4948 {
4949
4950 ;
4951 return 0;
4952 }
4953 _ACEOF
4954 if ac_fn_c_try_compile "$LINENO"; then :
4955 ac_cv_prog_cc_g=yes
4956 fi
4957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4958 fi
4959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4960 fi
4961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4962 ac_c_werror_flag=$ac_save_c_werror_flag
4963 fi
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4965 $as_echo "$ac_cv_prog_cc_g" >&6; }
4966 if test "$ac_test_CFLAGS" = set; then
4967 CFLAGS=$ac_save_CFLAGS
4968 elif test $ac_cv_prog_cc_g = yes; then
4969 if test "$GCC" = yes; then
4970 CFLAGS="-g -O2"
4971 else
4972 CFLAGS="-g"
4973 fi
4974 else
4975 if test "$GCC" = yes; then
4976 CFLAGS="-O2"
4977 else
4978 CFLAGS=
4979 fi
4980 fi
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4982 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4983 if ${ac_cv_prog_cc_c89+:} false; then :
4984 $as_echo_n "(cached) " >&6
4985 else
4986 ac_cv_prog_cc_c89=no
4987 ac_save_CC=$CC
4988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4989 /* end confdefs.h. */
4990 #include <stdarg.h>
4991 #include <stdio.h>
4992 struct stat;
4993 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4994 struct buf { int x; };
4995 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4996 static char *e (p, i)
4997 char **p;
4998 int i;
4999 {
5000 return p[i];
5001 }
5002 static char *f (char * (*g) (char **, int), char **p, ...)
5003 {
5004 char *s;
5005 va_list v;
5006 va_start (v,p);
5007 s = g (p, va_arg (v,int));
5008 va_end (v);
5009 return s;
5010 }
5011
5012 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5013 function prototypes and stuff, but not '\xHH' hex character constants.
5014 These don't provoke an error unfortunately, instead are silently treated
5015 as 'x'. The following induces an error, until -std is added to get
5016 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5017 array size at least. It's necessary to write '\x00'==0 to get something
5018 that's true only with -std. */
5019 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5020
5021 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5022 inside strings and character constants. */
5023 #define FOO(x) 'x'
5024 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5025
5026 int test (int i, double x);
5027 struct s1 {int (*f) (int a);};
5028 struct s2 {int (*f) (double a);};
5029 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5030 int argc;
5031 char **argv;
5032 int
5033 main ()
5034 {
5035 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5036 ;
5037 return 0;
5038 }
5039 _ACEOF
5040 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5041 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5042 do
5043 CC="$ac_save_CC $ac_arg"
5044 if ac_fn_c_try_compile "$LINENO"; then :
5045 ac_cv_prog_cc_c89=$ac_arg
5046 fi
5047 rm -f core conftest.err conftest.$ac_objext
5048 test "x$ac_cv_prog_cc_c89" != "xno" && break
5049 done
5050 rm -f conftest.$ac_ext
5051 CC=$ac_save_CC
5052
5053 fi
5054 # AC_CACHE_VAL
5055 case "x$ac_cv_prog_cc_c89" in
5056 x)
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5058 $as_echo "none needed" >&6; } ;;
5059 xno)
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5061 $as_echo "unsupported" >&6; } ;;
5062 *)
5063 CC="$CC $ac_cv_prog_cc_c89"
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5065 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5066 esac
5067 if test "x$ac_cv_prog_cc_c89" != xno; then :
5068
5069 fi
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
5077 ac_ext=c
5078 ac_cpp='$CPP $CPPFLAGS'
5079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5083 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5084 if ${am_cv_prog_cc_c_o+:} false; then :
5085 $as_echo_n "(cached) " >&6
5086 else
5087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5088 /* end confdefs.h. */
5089
5090 int
5091 main ()
5092 {
5093
5094 ;
5095 return 0;
5096 }
5097 _ACEOF
5098 # Make sure it works both with $CC and with simple cc.
5099 # Following AC_PROG_CC_C_O, we do the test twice because some
5100 # compilers refuse to overwrite an existing .o file with -o,
5101 # though they will create one.
5102 am_cv_prog_cc_c_o=yes
5103 for am_i in 1 2; do
5104 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5105 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5106 ac_status=$?
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); } \
5109 && test -f conftest2.$ac_objext; then
5110 : OK
5111 else
5112 am_cv_prog_cc_c_o=no
5113 break
5114 fi
5115 done
5116 rm -f core conftest*
5117 unset am_i
5118 fi
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5120 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5121 if test "$am_cv_prog_cc_c_o" != yes; then
5122 # Losing compiler, so override with the script.
5123 # FIXME: It is wrong to rewrite CC.
5124 # But if we don't then we get into trouble of one sort or another.
5125 # A longer-term fix would be to have automake use am__CC in this case,
5126 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5127 CC="$am_aux_dir/compile $CC"
5128 fi
5129 ac_ext=c
5130 ac_cpp='$CPP $CPPFLAGS'
5131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5134
5135
5136 ac_ext=d
5137 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5138 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5139 ac_compiler_gnu=yes
5140 if test -n "$ac_tool_prefix"; then
5141 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5142 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5144 $as_echo_n "checking for $ac_word... " >&6; }
5145 if ${ac_cv_prog_GDC+:} false; then :
5146 $as_echo_n "(cached) " >&6
5147 else
5148 if test -n "$GDC"; then
5149 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5150 else
5151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152 for as_dir in $PATH
5153 do
5154 IFS=$as_save_IFS
5155 test -z "$as_dir" && as_dir=.
5156 for ac_exec_ext in '' $ac_executable_extensions; do
5157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5158 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5160 break 2
5161 fi
5162 done
5163 done
5164 IFS=$as_save_IFS
5165
5166 fi
5167 fi
5168 GDC=$ac_cv_prog_GDC
5169 if test -n "$GDC"; then
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5171 $as_echo "$GDC" >&6; }
5172 else
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5174 $as_echo "no" >&6; }
5175 fi
5176
5177
5178 fi
5179 if test -z "$ac_cv_prog_GDC"; then
5180 ac_ct_GDC=$GDC
5181 # Extract the first word of "gdc", so it can be a program name with args.
5182 set dummy gdc; ac_word=$2
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5184 $as_echo_n "checking for $ac_word... " >&6; }
5185 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5186 $as_echo_n "(cached) " >&6
5187 else
5188 if test -n "$ac_ct_GDC"; then
5189 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5190 else
5191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5192 for as_dir in $PATH
5193 do
5194 IFS=$as_save_IFS
5195 test -z "$as_dir" && as_dir=.
5196 for ac_exec_ext in '' $ac_executable_extensions; do
5197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5198 ac_cv_prog_ac_ct_GDC="gdc"
5199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5200 break 2
5201 fi
5202 done
5203 done
5204 IFS=$as_save_IFS
5205
5206 fi
5207 fi
5208 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5209 if test -n "$ac_ct_GDC"; then
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5211 $as_echo "$ac_ct_GDC" >&6; }
5212 else
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5214 $as_echo "no" >&6; }
5215 fi
5216
5217 if test "x$ac_ct_GDC" = x; then
5218 GDC=""
5219 else
5220 case $cross_compiling:$ac_tool_warned in
5221 yes:)
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5224 ac_tool_warned=yes ;;
5225 esac
5226 GDC=$ac_ct_GDC
5227 fi
5228 else
5229 GDC="$ac_cv_prog_GDC"
5230 fi
5231
5232 if test -z "$GDC"; then
5233 if test -n "$ac_tool_prefix"; then
5234 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5235 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5237 $as_echo_n "checking for $ac_word... " >&6; }
5238 if ${ac_cv_prog_GDC+:} false; then :
5239 $as_echo_n "(cached) " >&6
5240 else
5241 if test -n "$GDC"; then
5242 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5243 else
5244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5245 for as_dir in $PATH
5246 do
5247 IFS=$as_save_IFS
5248 test -z "$as_dir" && as_dir=.
5249 for ac_exec_ext in '' $ac_executable_extensions; do
5250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5251 ac_cv_prog_GDC="$ac_tool_prefix}gdc"
5252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5253 break 2
5254 fi
5255 done
5256 done
5257 IFS=$as_save_IFS
5258
5259 fi
5260 fi
5261 GDC=$ac_cv_prog_GDC
5262 if test -n "$GDC"; then
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5264 $as_echo "$GDC" >&6; }
5265 else
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5267 $as_echo "no" >&6; }
5268 fi
5269
5270
5271 fi
5272 fi
5273 if test -z "$GDC"; then
5274 # Extract the first word of "gdc", so it can be a program name with args.
5275 set dummy gdc; ac_word=$2
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5277 $as_echo_n "checking for $ac_word... " >&6; }
5278 if ${ac_cv_prog_GDC+:} false; then :
5279 $as_echo_n "(cached) " >&6
5280 else
5281 if test -n "$GDC"; then
5282 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5283 else
5284 ac_prog_rejected=no
5285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5286 for as_dir in $PATH
5287 do
5288 IFS=$as_save_IFS
5289 test -z "$as_dir" && as_dir=.
5290 for ac_exec_ext in '' $ac_executable_extensions; do
5291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5292 if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
5293 ac_prog_rejected=yes
5294 continue
5295 fi
5296 ac_cv_prog_GDC="gdc"
5297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5298 break 2
5299 fi
5300 done
5301 done
5302 IFS=$as_save_IFS
5303
5304 if test $ac_prog_rejected = yes; then
5305 # We found a bogon in the path, so make sure we never use it.
5306 set dummy $ac_cv_prog_GDC
5307 shift
5308 if test $# != 0; then
5309 # We chose a different compiler from the bogus one.
5310 # However, it has the same basename, so the bogon will be chosen
5311 # first if we set GDC to just the basename; use the full file name.
5312 shift
5313 ac_cv_prog_GDC="$as_dir/$ac_word${1+' '}$@"
5314 fi
5315 fi
5316 fi
5317 fi
5318 GDC=$ac_cv_prog_GDC
5319 if test -n "$GDC"; then
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5321 $as_echo "$GDC" >&6; }
5322 else
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5324 $as_echo "no" >&6; }
5325 fi
5326
5327
5328 fi
5329
5330
5331 # Provide some information about the compiler.
5332 $as_echo "$as_me:${as_lineno-$LINENO}: checking for D compiler version" >&5
5333 set X $ac_compile
5334 ac_compiler=$2
5335 { { ac_try="$ac_compiler --version >&5"
5336 case "(($ac_try" in
5337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5338 *) ac_try_echo=$ac_try;;
5339 esac
5340 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5341 $as_echo "$ac_try_echo"; } >&5
5342 (eval "$ac_compiler --version >&5") 2>conftest.err
5343 ac_status=$?
5344 if test -s conftest.err; then
5345 sed '10a\
5346 ... rest of stderr output deleted ...
5347 10q' conftest.err >conftest.er1
5348 cat conftest.er1 >&5
5349 fi
5350 rm -f conftest.er1 conftest.err
5351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5352 test $ac_status = 0; }
5353 ac_ext=c
5354 ac_cpp='$CPP $CPPFLAGS'
5355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5358
5359
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for absolute libphobos source path" >&5
5361 $as_echo_n "checking for absolute libphobos source path... " >&6; }
5362 if ${phobos_cv_abs_srcdir+:} false; then :
5363 $as_echo_n "(cached) " >&6
5364 else
5365 phobos_cv_abs_srcdir=`cd $srcdir && pwd`
5366 fi
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $phobos_cv_abs_srcdir" >&5
5368 $as_echo "$phobos_cv_abs_srcdir" >&6; }
5369 if test -d "$phobos_cv_abs_srcdir"; then :
5370
5371 else
5372 as_fn_error $? "can't find absolute libphobos source path" "$LINENO" 5
5373 fi
5374
5375
5376
5377
5378 gdc_save_DFLAGS=$GDCFLAGS
5379 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
5380
5381 ac_ext=d
5382 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5383 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5384 ac_compiler_gnu=yes
5385
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If $GDC can compile D sources" >&5
5387 $as_echo_n "checking If $GDC can compile D sources... " >&6; }
5388 cat > conftest.$ac_ext <<_ACEOF
5389 module mod;
5390
5391
5392 extern(C) int main() {
5393 return 0;
5394 }
5395 _ACEOF
5396 if ac_fn_d_try_compile "$LINENO"; then :
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5398 $as_echo "yes" >&6; }
5399 else
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5401 $as_echo "no" >&6; }
5402 as_fn_error $? "can't compile D sources!" "$LINENO" 5
5403 fi
5404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5405 ac_ext=c
5406 ac_cpp='$CPP $CPPFLAGS'
5407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5410
5411
5412 GDCFLAGS=$gdc_save_DFLAGS
5413
5414
5415
5416
5417
5418
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5420 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5421 # Check whether --enable-maintainer-mode was given.
5422 if test "${enable_maintainer_mode+set}" = set; then :
5423 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5424 else
5425 USE_MAINTAINER_MODE=no
5426 fi
5427
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5429 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5430 if test $USE_MAINTAINER_MODE = yes; then
5431 MAINTAINER_MODE_TRUE=
5432 MAINTAINER_MODE_FALSE='#'
5433 else
5434 MAINTAINER_MODE_TRUE='#'
5435 MAINTAINER_MODE_FALSE=
5436 fi
5437
5438 MAINT=$MAINTAINER_MODE_TRUE
5439
5440
5441 if test -n "$ac_tool_prefix"; then
5442 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5443 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5445 $as_echo_n "checking for $ac_word... " >&6; }
5446 if ${ac_cv_prog_RANLIB+:} false; then :
5447 $as_echo_n "(cached) " >&6
5448 else
5449 if test -n "$RANLIB"; then
5450 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5451 else
5452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5453 for as_dir in $PATH
5454 do
5455 IFS=$as_save_IFS
5456 test -z "$as_dir" && as_dir=.
5457 for ac_exec_ext in '' $ac_executable_extensions; do
5458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5459 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5461 break 2
5462 fi
5463 done
5464 done
5465 IFS=$as_save_IFS
5466
5467 fi
5468 fi
5469 RANLIB=$ac_cv_prog_RANLIB
5470 if test -n "$RANLIB"; then
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5472 $as_echo "$RANLIB" >&6; }
5473 else
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5475 $as_echo "no" >&6; }
5476 fi
5477
5478
5479 fi
5480 if test -z "$ac_cv_prog_RANLIB"; then
5481 ac_ct_RANLIB=$RANLIB
5482 # Extract the first word of "ranlib", so it can be a program name with args.
5483 set dummy ranlib; ac_word=$2
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5485 $as_echo_n "checking for $ac_word... " >&6; }
5486 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5487 $as_echo_n "(cached) " >&6
5488 else
5489 if test -n "$ac_ct_RANLIB"; then
5490 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5491 else
5492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5493 for as_dir in $PATH
5494 do
5495 IFS=$as_save_IFS
5496 test -z "$as_dir" && as_dir=.
5497 for ac_exec_ext in '' $ac_executable_extensions; do
5498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5499 ac_cv_prog_ac_ct_RANLIB="ranlib"
5500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5501 break 2
5502 fi
5503 done
5504 done
5505 IFS=$as_save_IFS
5506
5507 fi
5508 fi
5509 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5510 if test -n "$ac_ct_RANLIB"; then
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5512 $as_echo "$ac_ct_RANLIB" >&6; }
5513 else
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5515 $as_echo "no" >&6; }
5516 fi
5517
5518 if test "x$ac_ct_RANLIB" = x; then
5519 RANLIB=":"
5520 else
5521 case $cross_compiling:$ac_tool_warned in
5522 yes:)
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5524 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5525 ac_tool_warned=yes ;;
5526 esac
5527 RANLIB=$ac_ct_RANLIB
5528 fi
5529 else
5530 RANLIB="$ac_cv_prog_RANLIB"
5531 fi
5532
5533
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5535 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5536 set x ${MAKE-make}
5537 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5538 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5539 $as_echo_n "(cached) " >&6
5540 else
5541 cat >conftest.make <<\_ACEOF
5542 SHELL = /bin/sh
5543 all:
5544 @echo '@@@%%%=$(MAKE)=@@@%%%'
5545 _ACEOF
5546 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5547 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5548 *@@@%%%=?*=@@@%%%*)
5549 eval ac_cv_prog_make_${ac_make}_set=yes;;
5550 *)
5551 eval ac_cv_prog_make_${ac_make}_set=no;;
5552 esac
5553 rm -f conftest.make
5554 fi
5555 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5557 $as_echo "yes" >&6; }
5558 SET_MAKE=
5559 else
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5561 $as_echo "no" >&6; }
5562 SET_MAKE="MAKE=${MAKE-make}"
5563 fi
5564
5565
5566 # Add CET specific flags if CET is enabled
5567 # Check whether --enable-cet was given.
5568 if test "${enable_cet+set}" = set; then :
5569 enableval=$enable_cet;
5570 case "$enableval" in
5571 yes|no|auto) ;;
5572 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
5573 esac
5574
5575 else
5576 enable_cet=auto
5577 fi
5578
5579
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
5581 $as_echo_n "checking for CET support... " >&6; }
5582
5583 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
5584 case "$host" in
5585 i[34567]86-*-linux* | x86_64-*-linux*)
5586 case "$enable_cet" in
5587 auto)
5588 # Check if target supports multi-byte NOPs
5589 # and if assembler supports CET insn.
5590 cet_save_CFLAGS="$CFLAGS"
5591 CFLAGS="$CFLAGS -fcf-protection"
5592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5593 /* end confdefs.h. */
5594
5595 int
5596 main ()
5597 {
5598
5599 #if !defined(__SSE2__)
5600 #error target does not support multi-byte NOPs
5601 #else
5602 asm ("setssbsy");
5603 #endif
5604
5605 ;
5606 return 0;
5607 }
5608 _ACEOF
5609 if ac_fn_c_try_compile "$LINENO"; then :
5610 enable_cet=yes
5611 else
5612 enable_cet=no
5613 fi
5614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5615 CFLAGS="$cet_save_CFLAGS"
5616 ;;
5617 yes)
5618 # Check if assembler supports CET.
5619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5620 /* end confdefs.h. */
5621
5622 int
5623 main ()
5624 {
5625 asm ("setssbsy");
5626 ;
5627 return 0;
5628 }
5629 _ACEOF
5630 if ac_fn_c_try_compile "$LINENO"; then :
5631
5632 else
5633 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
5634 fi
5635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5636 ;;
5637 esac
5638 ;;
5639 *)
5640 enable_cet=no
5641 ;;
5642 esac
5643 if test x$enable_cet = xyes; then
5644 CET_FLAGS="-fcf-protection -mshstk"
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5646 $as_echo "yes" >&6; }
5647 else
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5649 $as_echo "no" >&6; }
5650 fi
5651
5652
5653
5654 # This should be inherited in the recursive make, but ensure it is defined.
5655 test "$AR" || AR=ar
5656
5657
5658 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
5659
5660
5661
5662 # Enable libtool
5663 case `pwd` in
5664 *\ * | *\ *)
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5666 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5667 esac
5668
5669
5670
5671 macro_version='2.2.7a'
5672 macro_revision='1.3134'
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686 ltmain="$ac_aux_dir/ltmain.sh"
5687
5688 # Backslashify metacharacters that are still active within
5689 # double-quoted strings.
5690 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5691
5692 # Same as above, but do not quote variable references.
5693 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5694
5695 # Sed substitution to delay expansion of an escaped shell variable in a
5696 # double_quote_subst'ed string.
5697 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5698
5699 # Sed substitution to delay expansion of an escaped single quote.
5700 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5701
5702 # Sed substitution to avoid accidental globbing in evaled expressions
5703 no_glob_subst='s/\*/\\\*/g'
5704
5705 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5706 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5707 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5708
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5710 $as_echo_n "checking how to print strings... " >&6; }
5711 # Test print first, because it will be a builtin if present.
5712 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5713 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5714 ECHO='print -r --'
5715 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5716 ECHO='printf %s\n'
5717 else
5718 # Use this function as a fallback that always works.
5719 func_fallback_echo ()
5720 {
5721 eval 'cat <<_LTECHO_EOF
5722 $1
5723 _LTECHO_EOF'
5724 }
5725 ECHO='func_fallback_echo'
5726 fi
5727
5728 # func_echo_all arg...
5729 # Invoke $ECHO with all args, space-separated.
5730 func_echo_all ()
5731 {
5732 $ECHO ""
5733 }
5734
5735 case "$ECHO" in
5736 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5737 $as_echo "printf" >&6; } ;;
5738 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5739 $as_echo "print -r" >&6; } ;;
5740 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5741 $as_echo "cat" >&6; } ;;
5742 esac
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5758 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5759 if ${ac_cv_path_SED+:} false; then :
5760 $as_echo_n "(cached) " >&6
5761 else
5762 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5763 for ac_i in 1 2 3 4 5 6 7; do
5764 ac_script="$ac_script$as_nl$ac_script"
5765 done
5766 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5767 { ac_script=; unset ac_script;}
5768 if test -z "$SED"; then
5769 ac_path_SED_found=false
5770 # Loop through the user's path and test for each of PROGNAME-LIST
5771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5772 for as_dir in $PATH
5773 do
5774 IFS=$as_save_IFS
5775 test -z "$as_dir" && as_dir=.
5776 for ac_prog in sed gsed; do
5777 for ac_exec_ext in '' $ac_executable_extensions; do
5778 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5779 as_fn_executable_p "$ac_path_SED" || continue
5780 # Check for GNU ac_path_SED and select it if it is found.
5781 # Check for GNU $ac_path_SED
5782 case `"$ac_path_SED" --version 2>&1` in
5783 *GNU*)
5784 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5785 *)
5786 ac_count=0
5787 $as_echo_n 0123456789 >"conftest.in"
5788 while :
5789 do
5790 cat "conftest.in" "conftest.in" >"conftest.tmp"
5791 mv "conftest.tmp" "conftest.in"
5792 cp "conftest.in" "conftest.nl"
5793 $as_echo '' >> "conftest.nl"
5794 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5795 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5796 as_fn_arith $ac_count + 1 && ac_count=$as_val
5797 if test $ac_count -gt ${ac_path_SED_max-0}; then
5798 # Best one so far, save it but keep looking for a better one
5799 ac_cv_path_SED="$ac_path_SED"
5800 ac_path_SED_max=$ac_count
5801 fi
5802 # 10*(2^10) chars as input seems more than enough
5803 test $ac_count -gt 10 && break
5804 done
5805 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5806 esac
5807
5808 $ac_path_SED_found && break 3
5809 done
5810 done
5811 done
5812 IFS=$as_save_IFS
5813 if test -z "$ac_cv_path_SED"; then
5814 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5815 fi
5816 else
5817 ac_cv_path_SED=$SED
5818 fi
5819
5820 fi
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5822 $as_echo "$ac_cv_path_SED" >&6; }
5823 SED="$ac_cv_path_SED"
5824 rm -f conftest.sed
5825
5826 test -z "$SED" && SED=sed
5827 Xsed="$SED -e 1s/^X//"
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5840 $as_echo_n "checking for fgrep... " >&6; }
5841 if ${ac_cv_path_FGREP+:} false; then :
5842 $as_echo_n "(cached) " >&6
5843 else
5844 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5845 then ac_cv_path_FGREP="$GREP -F"
5846 else
5847 if test -z "$FGREP"; then
5848 ac_path_FGREP_found=false
5849 # Loop through the user's path and test for each of PROGNAME-LIST
5850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5851 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5852 do
5853 IFS=$as_save_IFS
5854 test -z "$as_dir" && as_dir=.
5855 for ac_prog in fgrep; do
5856 for ac_exec_ext in '' $ac_executable_extensions; do
5857 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5858 as_fn_executable_p "$ac_path_FGREP" || continue
5859 # Check for GNU ac_path_FGREP and select it if it is found.
5860 # Check for GNU $ac_path_FGREP
5861 case `"$ac_path_FGREP" --version 2>&1` in
5862 *GNU*)
5863 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5864 *)
5865 ac_count=0
5866 $as_echo_n 0123456789 >"conftest.in"
5867 while :
5868 do
5869 cat "conftest.in" "conftest.in" >"conftest.tmp"
5870 mv "conftest.tmp" "conftest.in"
5871 cp "conftest.in" "conftest.nl"
5872 $as_echo 'FGREP' >> "conftest.nl"
5873 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5874 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5875 as_fn_arith $ac_count + 1 && ac_count=$as_val
5876 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5877 # Best one so far, save it but keep looking for a better one
5878 ac_cv_path_FGREP="$ac_path_FGREP"
5879 ac_path_FGREP_max=$ac_count
5880 fi
5881 # 10*(2^10) chars as input seems more than enough
5882 test $ac_count -gt 10 && break
5883 done
5884 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5885 esac
5886
5887 $ac_path_FGREP_found && break 3
5888 done
5889 done
5890 done
5891 IFS=$as_save_IFS
5892 if test -z "$ac_cv_path_FGREP"; then
5893 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5894 fi
5895 else
5896 ac_cv_path_FGREP=$FGREP
5897 fi
5898
5899 fi
5900 fi
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5902 $as_echo "$ac_cv_path_FGREP" >&6; }
5903 FGREP="$ac_cv_path_FGREP"
5904
5905
5906 test -z "$GREP" && GREP=grep
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926 # Check whether --with-gnu-ld was given.
5927 if test "${with_gnu_ld+set}" = set; then :
5928 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5929 else
5930 with_gnu_ld=no
5931 fi
5932
5933 ac_prog=ld
5934 if test "$GCC" = yes; then
5935 # Check if gcc -print-prog-name=ld gives a path.
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5937 $as_echo_n "checking for ld used by $CC... " >&6; }
5938 case $host in
5939 *-*-mingw*)
5940 # gcc leaves a trailing carriage return which upsets mingw
5941 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5942 *)
5943 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5944 esac
5945 case $ac_prog in
5946 # Accept absolute paths.
5947 [\\/]* | ?:[\\/]*)
5948 re_direlt='/[^/][^/]*/\.\./'
5949 # Canonicalize the pathname of ld
5950 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5951 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5952 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5953 done
5954 test -z "$LD" && LD="$ac_prog"
5955 ;;
5956 "")
5957 # If it fails, then pretend we aren't using GCC.
5958 ac_prog=ld
5959 ;;
5960 *)
5961 # If it is relative, then search for the first ld in PATH.
5962 with_gnu_ld=unknown
5963 ;;
5964 esac
5965 elif test "$with_gnu_ld" = yes; then
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5967 $as_echo_n "checking for GNU ld... " >&6; }
5968 else
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5970 $as_echo_n "checking for non-GNU ld... " >&6; }
5971 fi
5972 if ${lt_cv_path_LD+:} false; then :
5973 $as_echo_n "(cached) " >&6
5974 else
5975 if test -z "$LD"; then
5976 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5977 for ac_dir in $PATH; do
5978 IFS="$lt_save_ifs"
5979 test -z "$ac_dir" && ac_dir=.
5980 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5981 lt_cv_path_LD="$ac_dir/$ac_prog"
5982 # Check to see if the program is GNU ld. I'd rather use --version,
5983 # but apparently some variants of GNU ld only accept -v.
5984 # Break only if it was the GNU/non-GNU ld that we prefer.
5985 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5986 *GNU* | *'with BFD'*)
5987 test "$with_gnu_ld" != no && break
5988 ;;
5989 *)
5990 test "$with_gnu_ld" != yes && break
5991 ;;
5992 esac
5993 fi
5994 done
5995 IFS="$lt_save_ifs"
5996 else
5997 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5998 fi
5999 fi
6000
6001 LD="$lt_cv_path_LD"
6002 if test -n "$LD"; then
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6004 $as_echo "$LD" >&6; }
6005 else
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6007 $as_echo "no" >&6; }
6008 fi
6009 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6011 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6012 if ${lt_cv_prog_gnu_ld+:} false; then :
6013 $as_echo_n "(cached) " >&6
6014 else
6015 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6016 case `$LD -v 2>&1 </dev/null` in
6017 *GNU* | *'with BFD'*)
6018 lt_cv_prog_gnu_ld=yes
6019 ;;
6020 *)
6021 lt_cv_prog_gnu_ld=no
6022 ;;
6023 esac
6024 fi
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6026 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6027 with_gnu_ld=$lt_cv_prog_gnu_ld
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6038 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6039 if ${lt_cv_path_NM+:} false; then :
6040 $as_echo_n "(cached) " >&6
6041 else
6042 if test -n "$NM"; then
6043 # Let the user override the test.
6044 lt_cv_path_NM="$NM"
6045 else
6046 lt_nm_to_check="${ac_tool_prefix}nm"
6047 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6048 lt_nm_to_check="$lt_nm_to_check nm"
6049 fi
6050 for lt_tmp_nm in $lt_nm_to_check; do
6051 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6052 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6053 IFS="$lt_save_ifs"
6054 test -z "$ac_dir" && ac_dir=.
6055 tmp_nm="$ac_dir/$lt_tmp_nm"
6056 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6057 # Check to see if the nm accepts a BSD-compat flag.
6058 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6059 # nm: unknown option "B" ignored
6060 # Tru64's nm complains that /dev/null is an invalid object file
6061 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6062 */dev/null* | *'Invalid file or object type'*)
6063 lt_cv_path_NM="$tmp_nm -B"
6064 break
6065 ;;
6066 *)
6067 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6068 */dev/null*)
6069 lt_cv_path_NM="$tmp_nm -p"
6070 break
6071 ;;
6072 *)
6073 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6074 continue # so that we can try to find one that supports BSD flags
6075 ;;
6076 esac
6077 ;;
6078 esac
6079 fi
6080 done
6081 IFS="$lt_save_ifs"
6082 done
6083 : ${lt_cv_path_NM=no}
6084 fi
6085 fi
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6087 $as_echo "$lt_cv_path_NM" >&6; }
6088 if test "$lt_cv_path_NM" != "no"; then
6089 NM="$lt_cv_path_NM"
6090 else
6091 # Didn't find any BSD compatible name lister, look for dumpbin.
6092 if test -n "$DUMPBIN"; then :
6093 # Let the user override the test.
6094 else
6095 if test -n "$ac_tool_prefix"; then
6096 for ac_prog in dumpbin "link -dump"
6097 do
6098 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6099 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6101 $as_echo_n "checking for $ac_word... " >&6; }
6102 if ${ac_cv_prog_DUMPBIN+:} false; then :
6103 $as_echo_n "(cached) " >&6
6104 else
6105 if test -n "$DUMPBIN"; then
6106 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6107 else
6108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6109 for as_dir in $PATH
6110 do
6111 IFS=$as_save_IFS
6112 test -z "$as_dir" && as_dir=.
6113 for ac_exec_ext in '' $ac_executable_extensions; do
6114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6115 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6117 break 2
6118 fi
6119 done
6120 done
6121 IFS=$as_save_IFS
6122
6123 fi
6124 fi
6125 DUMPBIN=$ac_cv_prog_DUMPBIN
6126 if test -n "$DUMPBIN"; then
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6128 $as_echo "$DUMPBIN" >&6; }
6129 else
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6131 $as_echo "no" >&6; }
6132 fi
6133
6134
6135 test -n "$DUMPBIN" && break
6136 done
6137 fi
6138 if test -z "$DUMPBIN"; then
6139 ac_ct_DUMPBIN=$DUMPBIN
6140 for ac_prog in dumpbin "link -dump"
6141 do
6142 # Extract the first word of "$ac_prog", so it can be a program name with args.
6143 set dummy $ac_prog; ac_word=$2
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6145 $as_echo_n "checking for $ac_word... " >&6; }
6146 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6147 $as_echo_n "(cached) " >&6
6148 else
6149 if test -n "$ac_ct_DUMPBIN"; then
6150 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6151 else
6152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153 for as_dir in $PATH
6154 do
6155 IFS=$as_save_IFS
6156 test -z "$as_dir" && as_dir=.
6157 for ac_exec_ext in '' $ac_executable_extensions; do
6158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6159 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6161 break 2
6162 fi
6163 done
6164 done
6165 IFS=$as_save_IFS
6166
6167 fi
6168 fi
6169 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6170 if test -n "$ac_ct_DUMPBIN"; then
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6172 $as_echo "$ac_ct_DUMPBIN" >&6; }
6173 else
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6175 $as_echo "no" >&6; }
6176 fi
6177
6178
6179 test -n "$ac_ct_DUMPBIN" && break
6180 done
6181
6182 if test "x$ac_ct_DUMPBIN" = x; then
6183 DUMPBIN=":"
6184 else
6185 case $cross_compiling:$ac_tool_warned in
6186 yes:)
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6188 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6189 ac_tool_warned=yes ;;
6190 esac
6191 DUMPBIN=$ac_ct_DUMPBIN
6192 fi
6193 fi
6194
6195 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6196 *COFF*)
6197 DUMPBIN="$DUMPBIN -symbols"
6198 ;;
6199 *)
6200 DUMPBIN=:
6201 ;;
6202 esac
6203 fi
6204
6205 if test "$DUMPBIN" != ":"; then
6206 NM="$DUMPBIN"
6207 fi
6208 fi
6209 test -z "$NM" && NM=nm
6210
6211
6212
6213
6214
6215
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6217 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6218 if ${lt_cv_nm_interface+:} false; then :
6219 $as_echo_n "(cached) " >&6
6220 else
6221 lt_cv_nm_interface="BSD nm"
6222 echo "int some_variable = 0;" > conftest.$ac_ext
6223 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6224 (eval "$ac_compile" 2>conftest.err)
6225 cat conftest.err >&5
6226 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6227 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6228 cat conftest.err >&5
6229 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6230 cat conftest.out >&5
6231 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6232 lt_cv_nm_interface="MS dumpbin"
6233 fi
6234 rm -f conftest*
6235 fi
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6237 $as_echo "$lt_cv_nm_interface" >&6; }
6238
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6240 $as_echo_n "checking whether ln -s works... " >&6; }
6241 LN_S=$as_ln_s
6242 if test "$LN_S" = "ln -s"; then
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6244 $as_echo "yes" >&6; }
6245 else
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6247 $as_echo "no, using $LN_S" >&6; }
6248 fi
6249
6250 # find the maximum length of command line arguments
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6252 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6253 if ${lt_cv_sys_max_cmd_len+:} false; then :
6254 $as_echo_n "(cached) " >&6
6255 else
6256 i=0
6257 teststring="ABCD"
6258
6259 case $build_os in
6260 msdosdjgpp*)
6261 # On DJGPP, this test can blow up pretty badly due to problems in libc
6262 # (any single argument exceeding 2000 bytes causes a buffer overrun
6263 # during glob expansion). Even if it were fixed, the result of this
6264 # check would be larger than it should be.
6265 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6266 ;;
6267
6268 gnu*)
6269 # Under GNU Hurd, this test is not required because there is
6270 # no limit to the length of command line arguments.
6271 # Libtool will interpret -1 as no limit whatsoever
6272 lt_cv_sys_max_cmd_len=-1;
6273 ;;
6274
6275 cygwin* | mingw* | cegcc*)
6276 # On Win9x/ME, this test blows up -- it succeeds, but takes
6277 # about 5 minutes as the teststring grows exponentially.
6278 # Worse, since 9x/ME are not pre-emptively multitasking,
6279 # you end up with a "frozen" computer, even though with patience
6280 # the test eventually succeeds (with a max line length of 256k).
6281 # Instead, let's just punt: use the minimum linelength reported by
6282 # all of the supported platforms: 8192 (on NT/2K/XP).
6283 lt_cv_sys_max_cmd_len=8192;
6284 ;;
6285
6286 mint*)
6287 # On MiNT this can take a long time and run out of memory.
6288 lt_cv_sys_max_cmd_len=8192;
6289 ;;
6290
6291 amigaos*)
6292 # On AmigaOS with pdksh, this test takes hours, literally.
6293 # So we just punt and use a minimum line length of 8192.
6294 lt_cv_sys_max_cmd_len=8192;
6295 ;;
6296
6297 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6298 # This has been around since 386BSD, at least. Likely further.
6299 if test -x /sbin/sysctl; then
6300 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6301 elif test -x /usr/sbin/sysctl; then
6302 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6303 else
6304 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6305 fi
6306 # And add a safety zone
6307 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6308 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6309 ;;
6310
6311 interix*)
6312 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6313 lt_cv_sys_max_cmd_len=196608
6314 ;;
6315
6316 osf*)
6317 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6318 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6319 # nice to cause kernel panics so lets avoid the loop below.
6320 # First set a reasonable default.
6321 lt_cv_sys_max_cmd_len=16384
6322 #
6323 if test -x /sbin/sysconfig; then
6324 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6325 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6326 esac
6327 fi
6328 ;;
6329 sco3.2v5*)
6330 lt_cv_sys_max_cmd_len=102400
6331 ;;
6332 sysv5* | sco5v6* | sysv4.2uw2*)
6333 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6334 if test -n "$kargmax"; then
6335 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6336 else
6337 lt_cv_sys_max_cmd_len=32768
6338 fi
6339 ;;
6340 *)
6341 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6342 if test -n "$lt_cv_sys_max_cmd_len"; then
6343 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6344 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6345 else
6346 # Make teststring a little bigger before we do anything with it.
6347 # a 1K string should be a reasonable start.
6348 for i in 1 2 3 4 5 6 7 8 ; do
6349 teststring=$teststring$teststring
6350 done
6351 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6352 # If test is not a shell built-in, we'll probably end up computing a
6353 # maximum length that is only half of the actual maximum length, but
6354 # we can't tell.
6355 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6356 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6357 test $i != 17 # 1/2 MB should be enough
6358 do
6359 i=`expr $i + 1`
6360 teststring=$teststring$teststring
6361 done
6362 # Only check the string length outside the loop.
6363 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6364 teststring=
6365 # Add a significant safety factor because C++ compilers can tack on
6366 # massive amounts of additional arguments before passing them to the
6367 # linker. It appears as though 1/2 is a usable value.
6368 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6369 fi
6370 ;;
6371 esac
6372
6373 fi
6374
6375 if test -n $lt_cv_sys_max_cmd_len ; then
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6377 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6378 else
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6380 $as_echo "none" >&6; }
6381 fi
6382 max_cmd_len=$lt_cv_sys_max_cmd_len
6383
6384
6385
6386
6387
6388
6389 : ${CP="cp -f"}
6390 : ${MV="mv -f"}
6391 : ${RM="rm -f"}
6392
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6394 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6395 # Try some XSI features
6396 xsi_shell=no
6397 ( _lt_dummy="a/b/c"
6398 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6399 = c,a/b,, \
6400 && eval 'test $(( 1 + 1 )) -eq 2 \
6401 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6402 && xsi_shell=yes
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6404 $as_echo "$xsi_shell" >&6; }
6405
6406
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6408 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6409 lt_shell_append=no
6410 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6411 >/dev/null 2>&1 \
6412 && lt_shell_append=yes
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6414 $as_echo "$lt_shell_append" >&6; }
6415
6416
6417 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6418 lt_unset=unset
6419 else
6420 lt_unset=false
6421 fi
6422
6423
6424
6425
6426
6427 # test EBCDIC or ASCII
6428 case `echo X|tr X '\101'` in
6429 A) # ASCII based system
6430 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6431 lt_SP2NL='tr \040 \012'
6432 lt_NL2SP='tr \015\012 \040\040'
6433 ;;
6434 *) # EBCDIC based system
6435 lt_SP2NL='tr \100 \n'
6436 lt_NL2SP='tr \r\n \100\100'
6437 ;;
6438 esac
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6449 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6450 if ${lt_cv_ld_reload_flag+:} false; then :
6451 $as_echo_n "(cached) " >&6
6452 else
6453 lt_cv_ld_reload_flag='-r'
6454 fi
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6456 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6457 reload_flag=$lt_cv_ld_reload_flag
6458 case $reload_flag in
6459 "" | " "*) ;;
6460 *) reload_flag=" $reload_flag" ;;
6461 esac
6462 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6463 case $host_os in
6464 darwin*)
6465 if test "$GCC" = yes; then
6466 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6467 else
6468 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6469 fi
6470 ;;
6471 esac
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481 if test -n "$ac_tool_prefix"; then
6482 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6483 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6485 $as_echo_n "checking for $ac_word... " >&6; }
6486 if ${ac_cv_prog_OBJDUMP+:} false; then :
6487 $as_echo_n "(cached) " >&6
6488 else
6489 if test -n "$OBJDUMP"; then
6490 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6491 else
6492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6493 for as_dir in $PATH
6494 do
6495 IFS=$as_save_IFS
6496 test -z "$as_dir" && as_dir=.
6497 for ac_exec_ext in '' $ac_executable_extensions; do
6498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6499 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6501 break 2
6502 fi
6503 done
6504 done
6505 IFS=$as_save_IFS
6506
6507 fi
6508 fi
6509 OBJDUMP=$ac_cv_prog_OBJDUMP
6510 if test -n "$OBJDUMP"; then
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6512 $as_echo "$OBJDUMP" >&6; }
6513 else
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6515 $as_echo "no" >&6; }
6516 fi
6517
6518
6519 fi
6520 if test -z "$ac_cv_prog_OBJDUMP"; then
6521 ac_ct_OBJDUMP=$OBJDUMP
6522 # Extract the first word of "objdump", so it can be a program name with args.
6523 set dummy objdump; ac_word=$2
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6525 $as_echo_n "checking for $ac_word... " >&6; }
6526 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6527 $as_echo_n "(cached) " >&6
6528 else
6529 if test -n "$ac_ct_OBJDUMP"; then
6530 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6531 else
6532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6533 for as_dir in $PATH
6534 do
6535 IFS=$as_save_IFS
6536 test -z "$as_dir" && as_dir=.
6537 for ac_exec_ext in '' $ac_executable_extensions; do
6538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6539 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6541 break 2
6542 fi
6543 done
6544 done
6545 IFS=$as_save_IFS
6546
6547 fi
6548 fi
6549 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6550 if test -n "$ac_ct_OBJDUMP"; then
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6552 $as_echo "$ac_ct_OBJDUMP" >&6; }
6553 else
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6555 $as_echo "no" >&6; }
6556 fi
6557
6558 if test "x$ac_ct_OBJDUMP" = x; then
6559 OBJDUMP="false"
6560 else
6561 case $cross_compiling:$ac_tool_warned in
6562 yes:)
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6564 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6565 ac_tool_warned=yes ;;
6566 esac
6567 OBJDUMP=$ac_ct_OBJDUMP
6568 fi
6569 else
6570 OBJDUMP="$ac_cv_prog_OBJDUMP"
6571 fi
6572
6573 test -z "$OBJDUMP" && OBJDUMP=objdump
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6584 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6585 if ${lt_cv_deplibs_check_method+:} false; then :
6586 $as_echo_n "(cached) " >&6
6587 else
6588 lt_cv_file_magic_cmd='$MAGIC_CMD'
6589 lt_cv_file_magic_test_file=
6590 lt_cv_deplibs_check_method='unknown'
6591 # Need to set the preceding variable on all platforms that support
6592 # interlibrary dependencies.
6593 # 'none' -- dependencies not supported.
6594 # `unknown' -- same as none, but documents that we really don't know.
6595 # 'pass_all' -- all dependencies passed with no checks.
6596 # 'test_compile' -- check by making test program.
6597 # 'file_magic [[regex]]' -- check by looking for files in library path
6598 # which responds to the $file_magic_cmd with a given extended regex.
6599 # If you have `file' or equivalent on your system and you're not sure
6600 # whether `pass_all' will *always* work, you probably want this one.
6601
6602 case $host_os in
6603 aix[4-9]*)
6604 lt_cv_deplibs_check_method=pass_all
6605 ;;
6606
6607 beos*)
6608 lt_cv_deplibs_check_method=pass_all
6609 ;;
6610
6611 bsdi[45]*)
6612 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6613 lt_cv_file_magic_cmd='/usr/bin/file -L'
6614 lt_cv_file_magic_test_file=/shlib/libc.so
6615 ;;
6616
6617 cygwin*)
6618 # func_win32_libid is a shell function defined in ltmain.sh
6619 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6620 lt_cv_file_magic_cmd='func_win32_libid'
6621 ;;
6622
6623 mingw* | pw32*)
6624 # Base MSYS/MinGW do not provide the 'file' command needed by
6625 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6626 # unless we find 'file', for example because we are cross-compiling.
6627 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6628 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6629 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6630 lt_cv_file_magic_cmd='func_win32_libid'
6631 else
6632 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6633 lt_cv_file_magic_cmd='$OBJDUMP -f'
6634 fi
6635 ;;
6636
6637 cegcc*)
6638 # use the weaker test based on 'objdump'. See mingw*.
6639 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6640 lt_cv_file_magic_cmd='$OBJDUMP -f'
6641 ;;
6642
6643 darwin* | rhapsody*)
6644 lt_cv_deplibs_check_method=pass_all
6645 ;;
6646
6647 freebsd* | dragonfly*)
6648 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6649 case $host_cpu in
6650 i*86 )
6651 # Not sure whether the presence of OpenBSD here was a mistake.
6652 # Let's accept both of them until this is cleared up.
6653 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6654 lt_cv_file_magic_cmd=/usr/bin/file
6655 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6656 ;;
6657 esac
6658 else
6659 lt_cv_deplibs_check_method=pass_all
6660 fi
6661 ;;
6662
6663 gnu*)
6664 lt_cv_deplibs_check_method=pass_all
6665 ;;
6666
6667 haiku*)
6668 lt_cv_deplibs_check_method=pass_all
6669 ;;
6670
6671 hpux10.20* | hpux11*)
6672 lt_cv_file_magic_cmd=/usr/bin/file
6673 case $host_cpu in
6674 ia64*)
6675 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6676 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6677 ;;
6678 hppa*64*)
6679 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]'
6680 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6681 ;;
6682 *)
6683 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6684 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6685 ;;
6686 esac
6687 ;;
6688
6689 interix[3-9]*)
6690 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6691 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6692 ;;
6693
6694 irix5* | irix6* | nonstopux*)
6695 case $LD in
6696 *-32|*"-32 ") libmagic=32-bit;;
6697 *-n32|*"-n32 ") libmagic=N32;;
6698 *-64|*"-64 ") libmagic=64-bit;;
6699 *) libmagic=never-match;;
6700 esac
6701 lt_cv_deplibs_check_method=pass_all
6702 ;;
6703
6704 # This must be Linux ELF.
6705 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6706 lt_cv_deplibs_check_method=pass_all
6707 ;;
6708
6709 netbsd*)
6710 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6711 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6712 else
6713 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6714 fi
6715 ;;
6716
6717 newos6*)
6718 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6719 lt_cv_file_magic_cmd=/usr/bin/file
6720 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6721 ;;
6722
6723 *nto* | *qnx*)
6724 lt_cv_deplibs_check_method=pass_all
6725 ;;
6726
6727 openbsd*)
6728 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6729 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6730 else
6731 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6732 fi
6733 ;;
6734
6735 osf3* | osf4* | osf5*)
6736 lt_cv_deplibs_check_method=pass_all
6737 ;;
6738
6739 rdos*)
6740 lt_cv_deplibs_check_method=pass_all
6741 ;;
6742
6743 solaris*)
6744 lt_cv_deplibs_check_method=pass_all
6745 ;;
6746
6747 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6748 lt_cv_deplibs_check_method=pass_all
6749 ;;
6750
6751 sysv4 | sysv4.3*)
6752 case $host_vendor in
6753 motorola)
6754 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]'
6755 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6756 ;;
6757 ncr)
6758 lt_cv_deplibs_check_method=pass_all
6759 ;;
6760 sequent)
6761 lt_cv_file_magic_cmd='/bin/file'
6762 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6763 ;;
6764 sni)
6765 lt_cv_file_magic_cmd='/bin/file'
6766 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6767 lt_cv_file_magic_test_file=/lib/libc.so
6768 ;;
6769 siemens)
6770 lt_cv_deplibs_check_method=pass_all
6771 ;;
6772 pc)
6773 lt_cv_deplibs_check_method=pass_all
6774 ;;
6775 esac
6776 ;;
6777
6778 tpf*)
6779 lt_cv_deplibs_check_method=pass_all
6780 ;;
6781 esac
6782
6783 fi
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6785 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6786 file_magic_cmd=$lt_cv_file_magic_cmd
6787 deplibs_check_method=$lt_cv_deplibs_check_method
6788 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801 if test -n "$ac_tool_prefix"; then
6802 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6803 set dummy ${ac_tool_prefix}ar; ac_word=$2
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6805 $as_echo_n "checking for $ac_word... " >&6; }
6806 if ${ac_cv_prog_AR+:} false; then :
6807 $as_echo_n "(cached) " >&6
6808 else
6809 if test -n "$AR"; then
6810 ac_cv_prog_AR="$AR" # Let the user override the test.
6811 else
6812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6813 for as_dir in $PATH
6814 do
6815 IFS=$as_save_IFS
6816 test -z "$as_dir" && as_dir=.
6817 for ac_exec_ext in '' $ac_executable_extensions; do
6818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6819 ac_cv_prog_AR="${ac_tool_prefix}ar"
6820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6821 break 2
6822 fi
6823 done
6824 done
6825 IFS=$as_save_IFS
6826
6827 fi
6828 fi
6829 AR=$ac_cv_prog_AR
6830 if test -n "$AR"; then
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6832 $as_echo "$AR" >&6; }
6833 else
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6835 $as_echo "no" >&6; }
6836 fi
6837
6838
6839 fi
6840 if test -z "$ac_cv_prog_AR"; then
6841 ac_ct_AR=$AR
6842 # Extract the first word of "ar", so it can be a program name with args.
6843 set dummy ar; ac_word=$2
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6845 $as_echo_n "checking for $ac_word... " >&6; }
6846 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6847 $as_echo_n "(cached) " >&6
6848 else
6849 if test -n "$ac_ct_AR"; then
6850 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6851 else
6852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6853 for as_dir in $PATH
6854 do
6855 IFS=$as_save_IFS
6856 test -z "$as_dir" && as_dir=.
6857 for ac_exec_ext in '' $ac_executable_extensions; do
6858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6859 ac_cv_prog_ac_ct_AR="ar"
6860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6861 break 2
6862 fi
6863 done
6864 done
6865 IFS=$as_save_IFS
6866
6867 fi
6868 fi
6869 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6870 if test -n "$ac_ct_AR"; then
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6872 $as_echo "$ac_ct_AR" >&6; }
6873 else
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6875 $as_echo "no" >&6; }
6876 fi
6877
6878 if test "x$ac_ct_AR" = x; then
6879 AR="false"
6880 else
6881 case $cross_compiling:$ac_tool_warned in
6882 yes:)
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6884 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6885 ac_tool_warned=yes ;;
6886 esac
6887 AR=$ac_ct_AR
6888 fi
6889 else
6890 AR="$ac_cv_prog_AR"
6891 fi
6892
6893 test -z "$AR" && AR=ar
6894 test -z "$AR_FLAGS" && AR_FLAGS=cru
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906 if test -n "$ac_tool_prefix"; then
6907 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6908 set dummy ${ac_tool_prefix}strip; ac_word=$2
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6910 $as_echo_n "checking for $ac_word... " >&6; }
6911 if ${ac_cv_prog_STRIP+:} false; then :
6912 $as_echo_n "(cached) " >&6
6913 else
6914 if test -n "$STRIP"; then
6915 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6916 else
6917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6918 for as_dir in $PATH
6919 do
6920 IFS=$as_save_IFS
6921 test -z "$as_dir" && as_dir=.
6922 for ac_exec_ext in '' $ac_executable_extensions; do
6923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6924 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6926 break 2
6927 fi
6928 done
6929 done
6930 IFS=$as_save_IFS
6931
6932 fi
6933 fi
6934 STRIP=$ac_cv_prog_STRIP
6935 if test -n "$STRIP"; then
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6937 $as_echo "$STRIP" >&6; }
6938 else
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6940 $as_echo "no" >&6; }
6941 fi
6942
6943
6944 fi
6945 if test -z "$ac_cv_prog_STRIP"; then
6946 ac_ct_STRIP=$STRIP
6947 # Extract the first word of "strip", so it can be a program name with args.
6948 set dummy strip; ac_word=$2
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6950 $as_echo_n "checking for $ac_word... " >&6; }
6951 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6952 $as_echo_n "(cached) " >&6
6953 else
6954 if test -n "$ac_ct_STRIP"; then
6955 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6956 else
6957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6958 for as_dir in $PATH
6959 do
6960 IFS=$as_save_IFS
6961 test -z "$as_dir" && as_dir=.
6962 for ac_exec_ext in '' $ac_executable_extensions; do
6963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6964 ac_cv_prog_ac_ct_STRIP="strip"
6965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6966 break 2
6967 fi
6968 done
6969 done
6970 IFS=$as_save_IFS
6971
6972 fi
6973 fi
6974 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6975 if test -n "$ac_ct_STRIP"; then
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6977 $as_echo "$ac_ct_STRIP" >&6; }
6978 else
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6980 $as_echo "no" >&6; }
6981 fi
6982
6983 if test "x$ac_ct_STRIP" = x; then
6984 STRIP=":"
6985 else
6986 case $cross_compiling:$ac_tool_warned in
6987 yes:)
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6989 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6990 ac_tool_warned=yes ;;
6991 esac
6992 STRIP=$ac_ct_STRIP
6993 fi
6994 else
6995 STRIP="$ac_cv_prog_STRIP"
6996 fi
6997
6998 test -z "$STRIP" && STRIP=:
6999
7000
7001
7002
7003
7004
7005 if test -n "$ac_tool_prefix"; then
7006 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7007 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7009 $as_echo_n "checking for $ac_word... " >&6; }
7010 if ${ac_cv_prog_RANLIB+:} false; then :
7011 $as_echo_n "(cached) " >&6
7012 else
7013 if test -n "$RANLIB"; then
7014 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7015 else
7016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7017 for as_dir in $PATH
7018 do
7019 IFS=$as_save_IFS
7020 test -z "$as_dir" && as_dir=.
7021 for ac_exec_ext in '' $ac_executable_extensions; do
7022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7023 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7025 break 2
7026 fi
7027 done
7028 done
7029 IFS=$as_save_IFS
7030
7031 fi
7032 fi
7033 RANLIB=$ac_cv_prog_RANLIB
7034 if test -n "$RANLIB"; then
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7036 $as_echo "$RANLIB" >&6; }
7037 else
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7039 $as_echo "no" >&6; }
7040 fi
7041
7042
7043 fi
7044 if test -z "$ac_cv_prog_RANLIB"; then
7045 ac_ct_RANLIB=$RANLIB
7046 # Extract the first word of "ranlib", so it can be a program name with args.
7047 set dummy ranlib; ac_word=$2
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7049 $as_echo_n "checking for $ac_word... " >&6; }
7050 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7051 $as_echo_n "(cached) " >&6
7052 else
7053 if test -n "$ac_ct_RANLIB"; then
7054 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7055 else
7056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7057 for as_dir in $PATH
7058 do
7059 IFS=$as_save_IFS
7060 test -z "$as_dir" && as_dir=.
7061 for ac_exec_ext in '' $ac_executable_extensions; do
7062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7063 ac_cv_prog_ac_ct_RANLIB="ranlib"
7064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7065 break 2
7066 fi
7067 done
7068 done
7069 IFS=$as_save_IFS
7070
7071 fi
7072 fi
7073 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7074 if test -n "$ac_ct_RANLIB"; then
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7076 $as_echo "$ac_ct_RANLIB" >&6; }
7077 else
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7079 $as_echo "no" >&6; }
7080 fi
7081
7082 if test "x$ac_ct_RANLIB" = x; then
7083 RANLIB=":"
7084 else
7085 case $cross_compiling:$ac_tool_warned in
7086 yes:)
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7089 ac_tool_warned=yes ;;
7090 esac
7091 RANLIB=$ac_ct_RANLIB
7092 fi
7093 else
7094 RANLIB="$ac_cv_prog_RANLIB"
7095 fi
7096
7097 test -z "$RANLIB" && RANLIB=:
7098
7099
7100
7101
7102
7103
7104 # Determine commands to create old-style static archives.
7105 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7106 old_postinstall_cmds='chmod 644 $oldlib'
7107 old_postuninstall_cmds=
7108
7109 if test -n "$RANLIB"; then
7110 case $host_os in
7111 openbsd*)
7112 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7113 ;;
7114 *)
7115 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7116 ;;
7117 esac
7118 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7119 fi
7120
7121 case $host_os in
7122 darwin*)
7123 lock_old_archive_extraction=yes ;;
7124 *)
7125 lock_old_archive_extraction=no ;;
7126 esac
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166 # If no C compiler was specified, use CC.
7167 LTCC=${LTCC-"$CC"}
7168
7169 # If no C compiler flags were specified, use CFLAGS.
7170 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7171
7172 # Allow CC to be a program name with arguments.
7173 compiler=$CC
7174
7175
7176 # Check for command to grab the raw symbol name followed by C symbol from nm.
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7178 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7179 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7180 $as_echo_n "(cached) " >&6
7181 else
7182
7183 # These are sane defaults that work on at least a few old systems.
7184 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7185
7186 # Character class describing NM global symbol codes.
7187 symcode='[BCDEGRST]'
7188
7189 # Regexp to match symbols that can be accessed directly from C.
7190 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7191
7192 # Define system-specific variables.
7193 case $host_os in
7194 aix*)
7195 symcode='[BCDT]'
7196 ;;
7197 cygwin* | mingw* | pw32* | cegcc*)
7198 symcode='[ABCDGISTW]'
7199 ;;
7200 hpux*)
7201 if test "$host_cpu" = ia64; then
7202 symcode='[ABCDEGRST]'
7203 fi
7204 ;;
7205 irix* | nonstopux*)
7206 symcode='[BCDEGRST]'
7207 ;;
7208 osf*)
7209 symcode='[BCDEGQRST]'
7210 ;;
7211 solaris*)
7212 symcode='[BDRT]'
7213 ;;
7214 sco3.2v5*)
7215 symcode='[DT]'
7216 ;;
7217 sysv4.2uw2*)
7218 symcode='[DT]'
7219 ;;
7220 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7221 symcode='[ABDT]'
7222 ;;
7223 sysv4)
7224 symcode='[DFNSTU]'
7225 ;;
7226 esac
7227
7228 # If we're using GNU nm, then use its standard symbol codes.
7229 case `$NM -V 2>&1` in
7230 *GNU* | *'with BFD'*)
7231 symcode='[ABCDGIRSTW]' ;;
7232 esac
7233
7234 # Transform an extracted symbol line into a proper C declaration.
7235 # Some systems (esp. on ia64) link data and code symbols differently,
7236 # so use this general approach.
7237 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7238
7239 # Transform an extracted symbol line into symbol name and symbol address
7240 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7241 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'"
7242
7243 # Handle CRLF in mingw tool chain
7244 opt_cr=
7245 case $build_os in
7246 mingw*)
7247 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7248 ;;
7249 esac
7250
7251 # Try without a prefix underscore, then with it.
7252 for ac_symprfx in "" "_"; do
7253
7254 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7255 symxfrm="\\1 $ac_symprfx\\2 \\2"
7256
7257 # Write the raw and C identifiers.
7258 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7259 # Fake it for dumpbin and say T for any non-static function
7260 # and D for any global variable.
7261 # Also find C++ and __fastcall symbols from MSVC++,
7262 # which start with @ or ?.
7263 lt_cv_sys_global_symbol_pipe="$AWK '"\
7264 " {last_section=section; section=\$ 3};"\
7265 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7266 " \$ 0!~/External *\|/{next};"\
7267 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7268 " {if(hide[section]) next};"\
7269 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7270 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7271 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7272 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7273 " ' prfx=^$ac_symprfx"
7274 else
7275 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7276 fi
7277
7278 # Check to see that the pipe works correctly.
7279 pipe_works=no
7280
7281 rm -f conftest*
7282 cat > conftest.$ac_ext <<_LT_EOF
7283 #ifdef __cplusplus
7284 extern "C" {
7285 #endif
7286 char nm_test_var;
7287 void nm_test_func(void);
7288 void nm_test_func(void){}
7289 #ifdef __cplusplus
7290 }
7291 #endif
7292 int main(){nm_test_var='a';nm_test_func();return(0);}
7293 _LT_EOF
7294
7295 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7296 (eval $ac_compile) 2>&5
7297 ac_status=$?
7298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7299 test $ac_status = 0; }; then
7300 # Now try to grab the symbols.
7301 nlist=conftest.nm
7302 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7303 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7304 ac_status=$?
7305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7306 test $ac_status = 0; } && test -s "$nlist"; then
7307 # Try sorting and uniquifying the output.
7308 if sort "$nlist" | uniq > "$nlist"T; then
7309 mv -f "$nlist"T "$nlist"
7310 else
7311 rm -f "$nlist"T
7312 fi
7313
7314 # Make sure that we snagged all the symbols we need.
7315 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7316 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7317 cat <<_LT_EOF > conftest.$ac_ext
7318 #ifdef __cplusplus
7319 extern "C" {
7320 #endif
7321
7322 _LT_EOF
7323 # Now generate the symbol file.
7324 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7325
7326 cat <<_LT_EOF >> conftest.$ac_ext
7327
7328 /* The mapping between symbol names and symbols. */
7329 const struct {
7330 const char *name;
7331 void *address;
7332 }
7333 lt__PROGRAM__LTX_preloaded_symbols[] =
7334 {
7335 { "@PROGRAM@", (void *) 0 },
7336 _LT_EOF
7337 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7338 cat <<\_LT_EOF >> conftest.$ac_ext
7339 {0, (void *) 0}
7340 };
7341
7342 /* This works around a problem in FreeBSD linker */
7343 #ifdef FREEBSD_WORKAROUND
7344 static const void *lt_preloaded_setup() {
7345 return lt__PROGRAM__LTX_preloaded_symbols;
7346 }
7347 #endif
7348
7349 #ifdef __cplusplus
7350 }
7351 #endif
7352 _LT_EOF
7353 # Now try linking the two files.
7354 mv conftest.$ac_objext conftstm.$ac_objext
7355 lt_save_LIBS="$LIBS"
7356 lt_save_CFLAGS="$CFLAGS"
7357 LIBS="conftstm.$ac_objext"
7358 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7359 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7360 (eval $ac_link) 2>&5
7361 ac_status=$?
7362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7363 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7364 pipe_works=yes
7365 fi
7366 LIBS="$lt_save_LIBS"
7367 CFLAGS="$lt_save_CFLAGS"
7368 else
7369 echo "cannot find nm_test_func in $nlist" >&5
7370 fi
7371 else
7372 echo "cannot find nm_test_var in $nlist" >&5
7373 fi
7374 else
7375 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7376 fi
7377 else
7378 echo "$progname: failed program was:" >&5
7379 cat conftest.$ac_ext >&5
7380 fi
7381 rm -rf conftest* conftst*
7382
7383 # Do not use the global_symbol_pipe unless it works.
7384 if test "$pipe_works" = yes; then
7385 break
7386 else
7387 lt_cv_sys_global_symbol_pipe=
7388 fi
7389 done
7390
7391 fi
7392
7393 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7394 lt_cv_sys_global_symbol_to_cdecl=
7395 fi
7396 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7398 $as_echo "failed" >&6; }
7399 else
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7401 $as_echo "ok" >&6; }
7402 fi
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425 # Check whether --enable-libtool-lock was given.
7426 if test "${enable_libtool_lock+set}" = set; then :
7427 enableval=$enable_libtool_lock;
7428 fi
7429
7430 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7431
7432 # Some flags need to be propagated to the compiler or linker for good
7433 # libtool support.
7434 case $host in
7435 ia64-*-hpux*)
7436 # Find out which ABI we are using.
7437 echo 'int i;' > conftest.$ac_ext
7438 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7439 (eval $ac_compile) 2>&5
7440 ac_status=$?
7441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7442 test $ac_status = 0; }; then
7443 case `/usr/bin/file conftest.$ac_objext` in
7444 *ELF-32*)
7445 HPUX_IA64_MODE="32"
7446 ;;
7447 *ELF-64*)
7448 HPUX_IA64_MODE="64"
7449 ;;
7450 esac
7451 fi
7452 rm -rf conftest*
7453 ;;
7454 *-*-irix6*)
7455 # Find out which ABI we are using.
7456 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7457 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7458 (eval $ac_compile) 2>&5
7459 ac_status=$?
7460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7461 test $ac_status = 0; }; then
7462 if test "$lt_cv_prog_gnu_ld" = yes; then
7463 case `/usr/bin/file conftest.$ac_objext` in
7464 *32-bit*)
7465 LD="${LD-ld} -melf32bsmip"
7466 ;;
7467 *N32*)
7468 LD="${LD-ld} -melf32bmipn32"
7469 ;;
7470 *64-bit*)
7471 LD="${LD-ld} -melf64bmip"
7472 ;;
7473 esac
7474 else
7475 case `/usr/bin/file conftest.$ac_objext` in
7476 *32-bit*)
7477 LD="${LD-ld} -32"
7478 ;;
7479 *N32*)
7480 LD="${LD-ld} -n32"
7481 ;;
7482 *64-bit*)
7483 LD="${LD-ld} -64"
7484 ;;
7485 esac
7486 fi
7487 fi
7488 rm -rf conftest*
7489 ;;
7490
7491 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7492 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7493 # Find out which ABI we are using.
7494 echo 'int i;' > conftest.$ac_ext
7495 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7496 (eval $ac_compile) 2>&5
7497 ac_status=$?
7498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7499 test $ac_status = 0; }; then
7500 case `/usr/bin/file conftest.o` in
7501 *32-bit*)
7502 case $host in
7503 x86_64-*kfreebsd*-gnu)
7504 LD="${LD-ld} -m elf_i386_fbsd"
7505 ;;
7506 x86_64-*linux*)
7507 case `/usr/bin/file conftest.o` in
7508 *x86-64*)
7509 LD="${LD-ld} -m elf32_x86_64"
7510 ;;
7511 *)
7512 LD="${LD-ld} -m elf_i386"
7513 ;;
7514 esac
7515 ;;
7516 powerpc64le-*linux*)
7517 LD="${LD-ld} -m elf32lppclinux"
7518 ;;
7519 powerpc64-*linux*)
7520 LD="${LD-ld} -m elf32ppclinux"
7521 ;;
7522 s390x-*linux*)
7523 LD="${LD-ld} -m elf_s390"
7524 ;;
7525 sparc64-*linux*)
7526 LD="${LD-ld} -m elf32_sparc"
7527 ;;
7528 esac
7529 ;;
7530 *64-bit*)
7531 case $host in
7532 x86_64-*kfreebsd*-gnu)
7533 LD="${LD-ld} -m elf_x86_64_fbsd"
7534 ;;
7535 x86_64-*linux*)
7536 LD="${LD-ld} -m elf_x86_64"
7537 ;;
7538 powerpcle-*linux*)
7539 LD="${LD-ld} -m elf64lppc"
7540 ;;
7541 powerpc-*linux*)
7542 LD="${LD-ld} -m elf64ppc"
7543 ;;
7544 s390*-*linux*|s390*-*tpf*)
7545 LD="${LD-ld} -m elf64_s390"
7546 ;;
7547 sparc*-*linux*)
7548 LD="${LD-ld} -m elf64_sparc"
7549 ;;
7550 esac
7551 ;;
7552 esac
7553 fi
7554 rm -rf conftest*
7555 ;;
7556
7557 *-*-sco3.2v5*)
7558 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7559 SAVE_CFLAGS="$CFLAGS"
7560 CFLAGS="$CFLAGS -belf"
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7562 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7563 if ${lt_cv_cc_needs_belf+:} false; then :
7564 $as_echo_n "(cached) " >&6
7565 else
7566 ac_ext=c
7567 ac_cpp='$CPP $CPPFLAGS'
7568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7571
7572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7573 /* end confdefs.h. */
7574
7575 int
7576 main ()
7577 {
7578
7579 ;
7580 return 0;
7581 }
7582 _ACEOF
7583 if ac_fn_c_try_link "$LINENO"; then :
7584 lt_cv_cc_needs_belf=yes
7585 else
7586 lt_cv_cc_needs_belf=no
7587 fi
7588 rm -f core conftest.err conftest.$ac_objext \
7589 conftest$ac_exeext conftest.$ac_ext
7590 ac_ext=c
7591 ac_cpp='$CPP $CPPFLAGS'
7592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7595
7596 fi
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7598 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7599 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7600 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7601 CFLAGS="$SAVE_CFLAGS"
7602 fi
7603 ;;
7604 sparc*-*solaris*)
7605 # Find out which ABI we are using.
7606 echo 'int i;' > conftest.$ac_ext
7607 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7608 (eval $ac_compile) 2>&5
7609 ac_status=$?
7610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7611 test $ac_status = 0; }; then
7612 case `/usr/bin/file conftest.o` in
7613 *64-bit*)
7614 case $lt_cv_prog_gnu_ld in
7615 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7616 *)
7617 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7618 LD="${LD-ld} -64"
7619 fi
7620 ;;
7621 esac
7622 ;;
7623 esac
7624 fi
7625 rm -rf conftest*
7626 ;;
7627 esac
7628
7629 need_locks="$enable_libtool_lock"
7630
7631
7632 case $host_os in
7633 rhapsody* | darwin*)
7634 if test -n "$ac_tool_prefix"; then
7635 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7636 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7638 $as_echo_n "checking for $ac_word... " >&6; }
7639 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7640 $as_echo_n "(cached) " >&6
7641 else
7642 if test -n "$DSYMUTIL"; then
7643 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7644 else
7645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7646 for as_dir in $PATH
7647 do
7648 IFS=$as_save_IFS
7649 test -z "$as_dir" && as_dir=.
7650 for ac_exec_ext in '' $ac_executable_extensions; do
7651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7652 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7654 break 2
7655 fi
7656 done
7657 done
7658 IFS=$as_save_IFS
7659
7660 fi
7661 fi
7662 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7663 if test -n "$DSYMUTIL"; then
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7665 $as_echo "$DSYMUTIL" >&6; }
7666 else
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7668 $as_echo "no" >&6; }
7669 fi
7670
7671
7672 fi
7673 if test -z "$ac_cv_prog_DSYMUTIL"; then
7674 ac_ct_DSYMUTIL=$DSYMUTIL
7675 # Extract the first word of "dsymutil", so it can be a program name with args.
7676 set dummy dsymutil; ac_word=$2
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7678 $as_echo_n "checking for $ac_word... " >&6; }
7679 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7680 $as_echo_n "(cached) " >&6
7681 else
7682 if test -n "$ac_ct_DSYMUTIL"; then
7683 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7684 else
7685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7686 for as_dir in $PATH
7687 do
7688 IFS=$as_save_IFS
7689 test -z "$as_dir" && as_dir=.
7690 for ac_exec_ext in '' $ac_executable_extensions; do
7691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7692 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7694 break 2
7695 fi
7696 done
7697 done
7698 IFS=$as_save_IFS
7699
7700 fi
7701 fi
7702 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7703 if test -n "$ac_ct_DSYMUTIL"; then
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7705 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7706 else
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7708 $as_echo "no" >&6; }
7709 fi
7710
7711 if test "x$ac_ct_DSYMUTIL" = x; then
7712 DSYMUTIL=":"
7713 else
7714 case $cross_compiling:$ac_tool_warned in
7715 yes:)
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7717 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7718 ac_tool_warned=yes ;;
7719 esac
7720 DSYMUTIL=$ac_ct_DSYMUTIL
7721 fi
7722 else
7723 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7724 fi
7725
7726 if test -n "$ac_tool_prefix"; then
7727 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7728 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7730 $as_echo_n "checking for $ac_word... " >&6; }
7731 if ${ac_cv_prog_NMEDIT+:} false; then :
7732 $as_echo_n "(cached) " >&6
7733 else
7734 if test -n "$NMEDIT"; then
7735 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7736 else
7737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7738 for as_dir in $PATH
7739 do
7740 IFS=$as_save_IFS
7741 test -z "$as_dir" && as_dir=.
7742 for ac_exec_ext in '' $ac_executable_extensions; do
7743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7744 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7746 break 2
7747 fi
7748 done
7749 done
7750 IFS=$as_save_IFS
7751
7752 fi
7753 fi
7754 NMEDIT=$ac_cv_prog_NMEDIT
7755 if test -n "$NMEDIT"; then
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7757 $as_echo "$NMEDIT" >&6; }
7758 else
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7760 $as_echo "no" >&6; }
7761 fi
7762
7763
7764 fi
7765 if test -z "$ac_cv_prog_NMEDIT"; then
7766 ac_ct_NMEDIT=$NMEDIT
7767 # Extract the first word of "nmedit", so it can be a program name with args.
7768 set dummy nmedit; ac_word=$2
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7770 $as_echo_n "checking for $ac_word... " >&6; }
7771 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7772 $as_echo_n "(cached) " >&6
7773 else
7774 if test -n "$ac_ct_NMEDIT"; then
7775 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7776 else
7777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7778 for as_dir in $PATH
7779 do
7780 IFS=$as_save_IFS
7781 test -z "$as_dir" && as_dir=.
7782 for ac_exec_ext in '' $ac_executable_extensions; do
7783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7784 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7786 break 2
7787 fi
7788 done
7789 done
7790 IFS=$as_save_IFS
7791
7792 fi
7793 fi
7794 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7795 if test -n "$ac_ct_NMEDIT"; then
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7797 $as_echo "$ac_ct_NMEDIT" >&6; }
7798 else
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7800 $as_echo "no" >&6; }
7801 fi
7802
7803 if test "x$ac_ct_NMEDIT" = x; then
7804 NMEDIT=":"
7805 else
7806 case $cross_compiling:$ac_tool_warned in
7807 yes:)
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7809 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7810 ac_tool_warned=yes ;;
7811 esac
7812 NMEDIT=$ac_ct_NMEDIT
7813 fi
7814 else
7815 NMEDIT="$ac_cv_prog_NMEDIT"
7816 fi
7817
7818 if test -n "$ac_tool_prefix"; then
7819 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7820 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7822 $as_echo_n "checking for $ac_word... " >&6; }
7823 if ${ac_cv_prog_LIPO+:} false; then :
7824 $as_echo_n "(cached) " >&6
7825 else
7826 if test -n "$LIPO"; then
7827 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7828 else
7829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7830 for as_dir in $PATH
7831 do
7832 IFS=$as_save_IFS
7833 test -z "$as_dir" && as_dir=.
7834 for ac_exec_ext in '' $ac_executable_extensions; do
7835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7836 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7838 break 2
7839 fi
7840 done
7841 done
7842 IFS=$as_save_IFS
7843
7844 fi
7845 fi
7846 LIPO=$ac_cv_prog_LIPO
7847 if test -n "$LIPO"; then
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7849 $as_echo "$LIPO" >&6; }
7850 else
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7852 $as_echo "no" >&6; }
7853 fi
7854
7855
7856 fi
7857 if test -z "$ac_cv_prog_LIPO"; then
7858 ac_ct_LIPO=$LIPO
7859 # Extract the first word of "lipo", so it can be a program name with args.
7860 set dummy lipo; ac_word=$2
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7862 $as_echo_n "checking for $ac_word... " >&6; }
7863 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7864 $as_echo_n "(cached) " >&6
7865 else
7866 if test -n "$ac_ct_LIPO"; then
7867 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7868 else
7869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7870 for as_dir in $PATH
7871 do
7872 IFS=$as_save_IFS
7873 test -z "$as_dir" && as_dir=.
7874 for ac_exec_ext in '' $ac_executable_extensions; do
7875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7876 ac_cv_prog_ac_ct_LIPO="lipo"
7877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7878 break 2
7879 fi
7880 done
7881 done
7882 IFS=$as_save_IFS
7883
7884 fi
7885 fi
7886 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7887 if test -n "$ac_ct_LIPO"; then
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7889 $as_echo "$ac_ct_LIPO" >&6; }
7890 else
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7892 $as_echo "no" >&6; }
7893 fi
7894
7895 if test "x$ac_ct_LIPO" = x; then
7896 LIPO=":"
7897 else
7898 case $cross_compiling:$ac_tool_warned in
7899 yes:)
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7902 ac_tool_warned=yes ;;
7903 esac
7904 LIPO=$ac_ct_LIPO
7905 fi
7906 else
7907 LIPO="$ac_cv_prog_LIPO"
7908 fi
7909
7910 if test -n "$ac_tool_prefix"; then
7911 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7912 set dummy ${ac_tool_prefix}otool; ac_word=$2
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7914 $as_echo_n "checking for $ac_word... " >&6; }
7915 if ${ac_cv_prog_OTOOL+:} false; then :
7916 $as_echo_n "(cached) " >&6
7917 else
7918 if test -n "$OTOOL"; then
7919 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7920 else
7921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7922 for as_dir in $PATH
7923 do
7924 IFS=$as_save_IFS
7925 test -z "$as_dir" && as_dir=.
7926 for ac_exec_ext in '' $ac_executable_extensions; do
7927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7928 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7930 break 2
7931 fi
7932 done
7933 done
7934 IFS=$as_save_IFS
7935
7936 fi
7937 fi
7938 OTOOL=$ac_cv_prog_OTOOL
7939 if test -n "$OTOOL"; then
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7941 $as_echo "$OTOOL" >&6; }
7942 else
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7944 $as_echo "no" >&6; }
7945 fi
7946
7947
7948 fi
7949 if test -z "$ac_cv_prog_OTOOL"; then
7950 ac_ct_OTOOL=$OTOOL
7951 # Extract the first word of "otool", so it can be a program name with args.
7952 set dummy otool; ac_word=$2
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7954 $as_echo_n "checking for $ac_word... " >&6; }
7955 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7956 $as_echo_n "(cached) " >&6
7957 else
7958 if test -n "$ac_ct_OTOOL"; then
7959 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7960 else
7961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7962 for as_dir in $PATH
7963 do
7964 IFS=$as_save_IFS
7965 test -z "$as_dir" && as_dir=.
7966 for ac_exec_ext in '' $ac_executable_extensions; do
7967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7968 ac_cv_prog_ac_ct_OTOOL="otool"
7969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7970 break 2
7971 fi
7972 done
7973 done
7974 IFS=$as_save_IFS
7975
7976 fi
7977 fi
7978 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7979 if test -n "$ac_ct_OTOOL"; then
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7981 $as_echo "$ac_ct_OTOOL" >&6; }
7982 else
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7984 $as_echo "no" >&6; }
7985 fi
7986
7987 if test "x$ac_ct_OTOOL" = x; then
7988 OTOOL=":"
7989 else
7990 case $cross_compiling:$ac_tool_warned in
7991 yes:)
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7993 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7994 ac_tool_warned=yes ;;
7995 esac
7996 OTOOL=$ac_ct_OTOOL
7997 fi
7998 else
7999 OTOOL="$ac_cv_prog_OTOOL"
8000 fi
8001
8002 if test -n "$ac_tool_prefix"; then
8003 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8004 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8006 $as_echo_n "checking for $ac_word... " >&6; }
8007 if ${ac_cv_prog_OTOOL64+:} false; then :
8008 $as_echo_n "(cached) " >&6
8009 else
8010 if test -n "$OTOOL64"; then
8011 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8012 else
8013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8014 for as_dir in $PATH
8015 do
8016 IFS=$as_save_IFS
8017 test -z "$as_dir" && as_dir=.
8018 for ac_exec_ext in '' $ac_executable_extensions; do
8019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8020 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8022 break 2
8023 fi
8024 done
8025 done
8026 IFS=$as_save_IFS
8027
8028 fi
8029 fi
8030 OTOOL64=$ac_cv_prog_OTOOL64
8031 if test -n "$OTOOL64"; then
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8033 $as_echo "$OTOOL64" >&6; }
8034 else
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8036 $as_echo "no" >&6; }
8037 fi
8038
8039
8040 fi
8041 if test -z "$ac_cv_prog_OTOOL64"; then
8042 ac_ct_OTOOL64=$OTOOL64
8043 # Extract the first word of "otool64", so it can be a program name with args.
8044 set dummy otool64; ac_word=$2
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8046 $as_echo_n "checking for $ac_word... " >&6; }
8047 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8048 $as_echo_n "(cached) " >&6
8049 else
8050 if test -n "$ac_ct_OTOOL64"; then
8051 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8052 else
8053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8054 for as_dir in $PATH
8055 do
8056 IFS=$as_save_IFS
8057 test -z "$as_dir" && as_dir=.
8058 for ac_exec_ext in '' $ac_executable_extensions; do
8059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8060 ac_cv_prog_ac_ct_OTOOL64="otool64"
8061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8062 break 2
8063 fi
8064 done
8065 done
8066 IFS=$as_save_IFS
8067
8068 fi
8069 fi
8070 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8071 if test -n "$ac_ct_OTOOL64"; then
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8073 $as_echo "$ac_ct_OTOOL64" >&6; }
8074 else
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8076 $as_echo "no" >&6; }
8077 fi
8078
8079 if test "x$ac_ct_OTOOL64" = x; then
8080 OTOOL64=":"
8081 else
8082 case $cross_compiling:$ac_tool_warned in
8083 yes:)
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8085 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8086 ac_tool_warned=yes ;;
8087 esac
8088 OTOOL64=$ac_ct_OTOOL64
8089 fi
8090 else
8091 OTOOL64="$ac_cv_prog_OTOOL64"
8092 fi
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8121 $as_echo_n "checking for -single_module linker flag... " >&6; }
8122 if ${lt_cv_apple_cc_single_mod+:} false; then :
8123 $as_echo_n "(cached) " >&6
8124 else
8125 lt_cv_apple_cc_single_mod=no
8126 if test -z "${LT_MULTI_MODULE}"; then
8127 # By default we will add the -single_module flag. You can override
8128 # by either setting the environment variable LT_MULTI_MODULE
8129 # non-empty at configure time, or by adding -multi_module to the
8130 # link flags.
8131 rm -rf libconftest.dylib*
8132 echo "int foo(void){return 1;}" > conftest.c
8133 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8134 -dynamiclib -Wl,-single_module conftest.c" >&5
8135 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8136 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8137 _lt_result=$?
8138 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8139 lt_cv_apple_cc_single_mod=yes
8140 else
8141 cat conftest.err >&5
8142 fi
8143 rm -rf libconftest.dylib*
8144 rm -f conftest.*
8145 fi
8146 fi
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8148 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8150 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8151 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8152 $as_echo_n "(cached) " >&6
8153 else
8154 lt_cv_ld_exported_symbols_list=no
8155 save_LDFLAGS=$LDFLAGS
8156 echo "_main" > conftest.sym
8157 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8159 /* end confdefs.h. */
8160
8161 int
8162 main ()
8163 {
8164
8165 ;
8166 return 0;
8167 }
8168 _ACEOF
8169 if ac_fn_c_try_link "$LINENO"; then :
8170 lt_cv_ld_exported_symbols_list=yes
8171 else
8172 lt_cv_ld_exported_symbols_list=no
8173 fi
8174 rm -f core conftest.err conftest.$ac_objext \
8175 conftest$ac_exeext conftest.$ac_ext
8176 LDFLAGS="$save_LDFLAGS"
8177
8178 fi
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8180 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8182 $as_echo_n "checking for -force_load linker flag... " >&6; }
8183 if ${lt_cv_ld_force_load+:} false; then :
8184 $as_echo_n "(cached) " >&6
8185 else
8186 lt_cv_ld_force_load=no
8187 cat > conftest.c << _LT_EOF
8188 int forced_loaded() { return 2;}
8189 _LT_EOF
8190 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8191 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8192 echo "$AR cru libconftest.a conftest.o" >&5
8193 $AR cru libconftest.a conftest.o 2>&5
8194 cat > conftest.c << _LT_EOF
8195 int main() { return 0;}
8196 _LT_EOF
8197 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8198 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8199 _lt_result=$?
8200 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8201 lt_cv_ld_force_load=yes
8202 else
8203 cat conftest.err >&5
8204 fi
8205 rm -f conftest.err libconftest.a conftest conftest.c
8206 rm -rf conftest.dSYM
8207
8208 fi
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8210 $as_echo "$lt_cv_ld_force_load" >&6; }
8211 case $host_os in
8212 rhapsody* | darwin1.[012])
8213 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8214 darwin1.*)
8215 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8216 darwin*) # darwin 5.x on
8217 # if running on 10.5 or later, the deployment target defaults
8218 # to the OS version, if on x86, and 10.4, the deployment
8219 # target defaults to 10.4. Don't you love it?
8220 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8221 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8222 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8223 10.[012][,.]*)
8224 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8225 10.*)
8226 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8227 esac
8228 ;;
8229 esac
8230 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8231 _lt_dar_single_mod='$single_module'
8232 fi
8233 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8234 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8235 else
8236 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8237 fi
8238 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8239 _lt_dsymutil='~$DSYMUTIL $lib || :'
8240 else
8241 _lt_dsymutil=
8242 fi
8243 ;;
8244 esac
8245
8246 for ac_header in dlfcn.h
8247 do :
8248 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8249 "
8250 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8251 cat >>confdefs.h <<_ACEOF
8252 #define HAVE_DLFCN_H 1
8253 _ACEOF
8254
8255 fi
8256
8257 done
8258
8259
8260
8261
8262
8263 # Set options
8264 enable_dlopen=yes
8265
8266
8267
8268
8269 enable_win32_dll=no
8270
8271
8272 # Check whether --enable-shared was given.
8273 if test "${enable_shared+set}" = set; then :
8274 enableval=$enable_shared; p=${PACKAGE-default}
8275 case $enableval in
8276 yes) enable_shared=yes ;;
8277 no) enable_shared=no ;;
8278 *)
8279 enable_shared=no
8280 # Look at the argument we got. We use all the common list separators.
8281 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8282 for pkg in $enableval; do
8283 IFS="$lt_save_ifs"
8284 if test "X$pkg" = "X$p"; then
8285 enable_shared=yes
8286 fi
8287 done
8288 IFS="$lt_save_ifs"
8289 ;;
8290 esac
8291 else
8292 enable_shared=yes
8293 fi
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303 # Check whether --enable-static was given.
8304 if test "${enable_static+set}" = set; then :
8305 enableval=$enable_static; p=${PACKAGE-default}
8306 case $enableval in
8307 yes) enable_static=yes ;;
8308 no) enable_static=no ;;
8309 *)
8310 enable_static=no
8311 # Look at the argument we got. We use all the common list separators.
8312 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8313 for pkg in $enableval; do
8314 IFS="$lt_save_ifs"
8315 if test "X$pkg" = "X$p"; then
8316 enable_static=yes
8317 fi
8318 done
8319 IFS="$lt_save_ifs"
8320 ;;
8321 esac
8322 else
8323 enable_static=yes
8324 fi
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335 # Check whether --with-pic was given.
8336 if test "${with_pic+set}" = set; then :
8337 withval=$with_pic; pic_mode="$withval"
8338 else
8339 pic_mode=default
8340 fi
8341
8342
8343 test -z "$pic_mode" && pic_mode=default
8344
8345
8346
8347
8348
8349
8350
8351 # Check whether --enable-fast-install was given.
8352 if test "${enable_fast_install+set}" = set; then :
8353 enableval=$enable_fast_install; p=${PACKAGE-default}
8354 case $enableval in
8355 yes) enable_fast_install=yes ;;
8356 no) enable_fast_install=no ;;
8357 *)
8358 enable_fast_install=no
8359 # Look at the argument we got. We use all the common list separators.
8360 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8361 for pkg in $enableval; do
8362 IFS="$lt_save_ifs"
8363 if test "X$pkg" = "X$p"; then
8364 enable_fast_install=yes
8365 fi
8366 done
8367 IFS="$lt_save_ifs"
8368 ;;
8369 esac
8370 else
8371 enable_fast_install=yes
8372 fi
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384 # This can be used to rebuild libtool when needed
8385 LIBTOOL_DEPS="$ltmain"
8386
8387 # Always use our own libtool.
8388 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415 test -z "$LN_S" && LN_S="ln -s"
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430 if test -n "${ZSH_VERSION+set}" ; then
8431 setopt NO_GLOB_SUBST
8432 fi
8433
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8435 $as_echo_n "checking for objdir... " >&6; }
8436 if ${lt_cv_objdir+:} false; then :
8437 $as_echo_n "(cached) " >&6
8438 else
8439 rm -f .libs 2>/dev/null
8440 mkdir .libs 2>/dev/null
8441 if test -d .libs; then
8442 lt_cv_objdir=.libs
8443 else
8444 # MS-DOS does not allow filenames that begin with a dot.
8445 lt_cv_objdir=_libs
8446 fi
8447 rmdir .libs 2>/dev/null
8448 fi
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8450 $as_echo "$lt_cv_objdir" >&6; }
8451 objdir=$lt_cv_objdir
8452
8453
8454
8455
8456
8457 cat >>confdefs.h <<_ACEOF
8458 #define LT_OBJDIR "$lt_cv_objdir/"
8459 _ACEOF
8460
8461
8462
8463
8464 case $host_os in
8465 aix3*)
8466 # AIX sometimes has problems with the GCC collect2 program. For some
8467 # reason, if we set the COLLECT_NAMES environment variable, the problems
8468 # vanish in a puff of smoke.
8469 if test "X${COLLECT_NAMES+set}" != Xset; then
8470 COLLECT_NAMES=
8471 export COLLECT_NAMES
8472 fi
8473 ;;
8474 esac
8475
8476 # Global variables:
8477 ofile=libtool
8478 can_build_shared=yes
8479
8480 # All known linkers require a `.a' archive for static linking (except MSVC,
8481 # which needs '.lib').
8482 libext=a
8483
8484 with_gnu_ld="$lt_cv_prog_gnu_ld"
8485
8486 old_CC="$CC"
8487 old_CFLAGS="$CFLAGS"
8488
8489 # Set sane defaults for various variables
8490 test -z "$CC" && CC=cc
8491 test -z "$LTCC" && LTCC=$CC
8492 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8493 test -z "$LD" && LD=ld
8494 test -z "$ac_objext" && ac_objext=o
8495
8496 for cc_temp in $compiler""; do
8497 case $cc_temp in
8498 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8499 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8500 \-*) ;;
8501 *) break;;
8502 esac
8503 done
8504 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8505
8506
8507 # Only perform the check for file, if the check method requires it
8508 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8509 case $deplibs_check_method in
8510 file_magic*)
8511 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8513 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8514 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8515 $as_echo_n "(cached) " >&6
8516 else
8517 case $MAGIC_CMD in
8518 [\\/*] | ?:[\\/]*)
8519 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8520 ;;
8521 *)
8522 lt_save_MAGIC_CMD="$MAGIC_CMD"
8523 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8524 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8525 for ac_dir in $ac_dummy; do
8526 IFS="$lt_save_ifs"
8527 test -z "$ac_dir" && ac_dir=.
8528 if test -f $ac_dir/${ac_tool_prefix}file; then
8529 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8530 if test -n "$file_magic_test_file"; then
8531 case $deplibs_check_method in
8532 "file_magic "*)
8533 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8534 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8535 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8536 $EGREP "$file_magic_regex" > /dev/null; then
8537 :
8538 else
8539 cat <<_LT_EOF 1>&2
8540
8541 *** Warning: the command libtool uses to detect shared libraries,
8542 *** $file_magic_cmd, produces output that libtool cannot recognize.
8543 *** The result is that libtool may fail to recognize shared libraries
8544 *** as such. This will affect the creation of libtool libraries that
8545 *** depend on shared libraries, but programs linked with such libtool
8546 *** libraries will work regardless of this problem. Nevertheless, you
8547 *** may want to report the problem to your system manager and/or to
8548 *** bug-libtool@gnu.org
8549
8550 _LT_EOF
8551 fi ;;
8552 esac
8553 fi
8554 break
8555 fi
8556 done
8557 IFS="$lt_save_ifs"
8558 MAGIC_CMD="$lt_save_MAGIC_CMD"
8559 ;;
8560 esac
8561 fi
8562
8563 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8564 if test -n "$MAGIC_CMD"; then
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8566 $as_echo "$MAGIC_CMD" >&6; }
8567 else
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8569 $as_echo "no" >&6; }
8570 fi
8571
8572
8573
8574
8575
8576 if test -z "$lt_cv_path_MAGIC_CMD"; then
8577 if test -n "$ac_tool_prefix"; then
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8579 $as_echo_n "checking for file... " >&6; }
8580 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8581 $as_echo_n "(cached) " >&6
8582 else
8583 case $MAGIC_CMD in
8584 [\\/*] | ?:[\\/]*)
8585 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8586 ;;
8587 *)
8588 lt_save_MAGIC_CMD="$MAGIC_CMD"
8589 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8590 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8591 for ac_dir in $ac_dummy; do
8592 IFS="$lt_save_ifs"
8593 test -z "$ac_dir" && ac_dir=.
8594 if test -f $ac_dir/file; then
8595 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8596 if test -n "$file_magic_test_file"; then
8597 case $deplibs_check_method in
8598 "file_magic "*)
8599 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8600 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8601 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8602 $EGREP "$file_magic_regex" > /dev/null; then
8603 :
8604 else
8605 cat <<_LT_EOF 1>&2
8606
8607 *** Warning: the command libtool uses to detect shared libraries,
8608 *** $file_magic_cmd, produces output that libtool cannot recognize.
8609 *** The result is that libtool may fail to recognize shared libraries
8610 *** as such. This will affect the creation of libtool libraries that
8611 *** depend on shared libraries, but programs linked with such libtool
8612 *** libraries will work regardless of this problem. Nevertheless, you
8613 *** may want to report the problem to your system manager and/or to
8614 *** bug-libtool@gnu.org
8615
8616 _LT_EOF
8617 fi ;;
8618 esac
8619 fi
8620 break
8621 fi
8622 done
8623 IFS="$lt_save_ifs"
8624 MAGIC_CMD="$lt_save_MAGIC_CMD"
8625 ;;
8626 esac
8627 fi
8628
8629 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8630 if test -n "$MAGIC_CMD"; then
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8632 $as_echo "$MAGIC_CMD" >&6; }
8633 else
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8635 $as_echo "no" >&6; }
8636 fi
8637
8638
8639 else
8640 MAGIC_CMD=:
8641 fi
8642 fi
8643
8644 fi
8645 ;;
8646 esac
8647
8648 # Use C for the default configuration in the libtool script
8649
8650 lt_save_CC="$CC"
8651 ac_ext=c
8652 ac_cpp='$CPP $CPPFLAGS'
8653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8656
8657
8658 # Source file extension for C test sources.
8659 ac_ext=c
8660
8661 # Object file extension for compiled C test sources.
8662 objext=o
8663 objext=$objext
8664
8665 # Code to be used in simple compile tests
8666 lt_simple_compile_test_code="int some_variable = 0;"
8667
8668 # Code to be used in simple link tests
8669 lt_simple_link_test_code='int main(){return(0);}'
8670
8671
8672
8673
8674
8675
8676
8677 # If no C compiler was specified, use CC.
8678 LTCC=${LTCC-"$CC"}
8679
8680 # If no C compiler flags were specified, use CFLAGS.
8681 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8682
8683 # Allow CC to be a program name with arguments.
8684 compiler=$CC
8685
8686 # Save the default compiler, since it gets overwritten when the other
8687 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8688 compiler_DEFAULT=$CC
8689
8690 # save warnings/boilerplate of simple test code
8691 ac_outfile=conftest.$ac_objext
8692 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8693 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8694 _lt_compiler_boilerplate=`cat conftest.err`
8695 $RM conftest*
8696
8697 ac_outfile=conftest.$ac_objext
8698 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8699 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8700 _lt_linker_boilerplate=`cat conftest.err`
8701 $RM -r conftest*
8702
8703
8704 ## CAVEAT EMPTOR:
8705 ## There is no encapsulation within the following macros, do not change
8706 ## the running order or otherwise move them around unless you know exactly
8707 ## what you are doing...
8708 if test -n "$compiler"; then
8709
8710 lt_prog_compiler_no_builtin_flag=
8711
8712 if test "$GCC" = yes; then
8713 case $cc_basename in
8714 nvcc*)
8715 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8716 *)
8717 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8718 esac
8719
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8721 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8722 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8723 $as_echo_n "(cached) " >&6
8724 else
8725 lt_cv_prog_compiler_rtti_exceptions=no
8726 ac_outfile=conftest.$ac_objext
8727 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8728 lt_compiler_flag="-fno-rtti -fno-exceptions"
8729 # Insert the option either (1) after the last *FLAGS variable, or
8730 # (2) before a word containing "conftest.", or (3) at the end.
8731 # Note that $ac_compile itself does not contain backslashes and begins
8732 # with a dollar sign (not a hyphen), so the echo should work correctly.
8733 # The option is referenced via a variable to avoid confusing sed.
8734 lt_compile=`echo "$ac_compile" | $SED \
8735 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8736 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8737 -e 's:$: $lt_compiler_flag:'`
8738 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8739 (eval "$lt_compile" 2>conftest.err)
8740 ac_status=$?
8741 cat conftest.err >&5
8742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743 if (exit $ac_status) && test -s "$ac_outfile"; then
8744 # The compiler can only warn and ignore the option if not recognized
8745 # So say no if there are warnings other than the usual output.
8746 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8747 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8748 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8749 lt_cv_prog_compiler_rtti_exceptions=yes
8750 fi
8751 fi
8752 $RM conftest*
8753
8754 fi
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8756 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8757
8758 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8759 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8760 else
8761 :
8762 fi
8763
8764 fi
8765
8766
8767
8768
8769
8770
8771 lt_prog_compiler_wl=
8772 lt_prog_compiler_pic=
8773 lt_prog_compiler_static=
8774
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8776 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8777
8778 if test "$GCC" = yes; then
8779 lt_prog_compiler_wl='-Wl,'
8780 lt_prog_compiler_static='-static'
8781
8782 case $host_os in
8783 aix*)
8784 # All AIX code is PIC.
8785 if test "$host_cpu" = ia64; then
8786 # AIX 5 now supports IA64 processor
8787 lt_prog_compiler_static='-Bstatic'
8788 fi
8789 lt_prog_compiler_pic='-fPIC'
8790 ;;
8791
8792 amigaos*)
8793 case $host_cpu in
8794 powerpc)
8795 # see comment about AmigaOS4 .so support
8796 lt_prog_compiler_pic='-fPIC'
8797 ;;
8798 m68k)
8799 # FIXME: we need at least 68020 code to build shared libraries, but
8800 # adding the `-m68020' flag to GCC prevents building anything better,
8801 # like `-m68040'.
8802 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8803 ;;
8804 esac
8805 ;;
8806
8807 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8808 # PIC is the default for these OSes.
8809 ;;
8810
8811 mingw* | cygwin* | pw32* | os2* | cegcc*)
8812 # This hack is so that the source file can tell whether it is being
8813 # built for inclusion in a dll (and should export symbols for example).
8814 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8815 # (--disable-auto-import) libraries
8816 lt_prog_compiler_pic='-DDLL_EXPORT'
8817 ;;
8818
8819 darwin* | rhapsody*)
8820 # PIC is the default on this platform
8821 # Common symbols not allowed in MH_DYLIB files
8822 lt_prog_compiler_pic='-fno-common'
8823 ;;
8824
8825 haiku*)
8826 # PIC is the default for Haiku.
8827 # The "-static" flag exists, but is broken.
8828 lt_prog_compiler_static=
8829 ;;
8830
8831 hpux*)
8832 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8833 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8834 # sets the default TLS model and affects inlining.
8835 case $host_cpu in
8836 hppa*64*)
8837 # +Z the default
8838 ;;
8839 *)
8840 lt_prog_compiler_pic='-fPIC'
8841 ;;
8842 esac
8843 ;;
8844
8845 interix[3-9]*)
8846 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8847 # Instead, we relocate shared libraries at runtime.
8848 ;;
8849
8850 msdosdjgpp*)
8851 # Just because we use GCC doesn't mean we suddenly get shared libraries
8852 # on systems that don't support them.
8853 lt_prog_compiler_can_build_shared=no
8854 enable_shared=no
8855 ;;
8856
8857 *nto* | *qnx*)
8858 # QNX uses GNU C++, but need to define -shared option too, otherwise
8859 # it will coredump.
8860 lt_prog_compiler_pic='-fPIC -shared'
8861 ;;
8862
8863 sysv4*MP*)
8864 if test -d /usr/nec; then
8865 lt_prog_compiler_pic=-Kconform_pic
8866 fi
8867 ;;
8868
8869 *)
8870 lt_prog_compiler_pic='-fPIC'
8871 ;;
8872 esac
8873
8874 case $cc_basename in
8875 nvcc*) # Cuda Compiler Driver 2.2
8876 lt_prog_compiler_wl='-Xlinker '
8877 lt_prog_compiler_pic='-Xcompiler -fPIC'
8878 ;;
8879 esac
8880 else
8881 # PORTME Check for flag to pass linker flags through the system compiler.
8882 case $host_os in
8883 aix*)
8884 lt_prog_compiler_wl='-Wl,'
8885 if test "$host_cpu" = ia64; then
8886 # AIX 5 now supports IA64 processor
8887 lt_prog_compiler_static='-Bstatic'
8888 else
8889 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8890 fi
8891 ;;
8892
8893 mingw* | cygwin* | pw32* | os2* | cegcc*)
8894 # This hack is so that the source file can tell whether it is being
8895 # built for inclusion in a dll (and should export symbols for example).
8896 lt_prog_compiler_pic='-DDLL_EXPORT'
8897 ;;
8898
8899 hpux9* | hpux10* | hpux11*)
8900 lt_prog_compiler_wl='-Wl,'
8901 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8902 # not for PA HP-UX.
8903 case $host_cpu in
8904 hppa*64*|ia64*)
8905 # +Z the default
8906 ;;
8907 *)
8908 lt_prog_compiler_pic='+Z'
8909 ;;
8910 esac
8911 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8912 lt_prog_compiler_static='${wl}-a ${wl}archive'
8913 ;;
8914
8915 irix5* | irix6* | nonstopux*)
8916 lt_prog_compiler_wl='-Wl,'
8917 # PIC (with -KPIC) is the default.
8918 lt_prog_compiler_static='-non_shared'
8919 ;;
8920
8921 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8922 case $cc_basename in
8923 # old Intel for x86_64 which still supported -KPIC.
8924 ecc*)
8925 lt_prog_compiler_wl='-Wl,'
8926 lt_prog_compiler_pic='-KPIC'
8927 lt_prog_compiler_static='-static'
8928 ;;
8929 # icc used to be incompatible with GCC.
8930 # ICC 10 doesn't accept -KPIC any more.
8931 icc* | ifort*)
8932 lt_prog_compiler_wl='-Wl,'
8933 lt_prog_compiler_pic='-fPIC'
8934 lt_prog_compiler_static='-static'
8935 ;;
8936 # Lahey Fortran 8.1.
8937 lf95*)
8938 lt_prog_compiler_wl='-Wl,'
8939 lt_prog_compiler_pic='--shared'
8940 lt_prog_compiler_static='--static'
8941 ;;
8942 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8943 # Portland Group compilers (*not* the Pentium gcc compiler,
8944 # which looks to be a dead project)
8945 lt_prog_compiler_wl='-Wl,'
8946 lt_prog_compiler_pic='-fpic'
8947 lt_prog_compiler_static='-Bstatic'
8948 ;;
8949 ccc*)
8950 lt_prog_compiler_wl='-Wl,'
8951 # All Alpha code is PIC.
8952 lt_prog_compiler_static='-non_shared'
8953 ;;
8954 xl* | bgxl* | bgf* | mpixl*)
8955 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8956 lt_prog_compiler_wl='-Wl,'
8957 lt_prog_compiler_pic='-qpic'
8958 lt_prog_compiler_static='-qstaticlink'
8959 ;;
8960 *)
8961 case `$CC -V 2>&1 | sed 5q` in
8962 *Sun\ F* | *Sun*Fortran*)
8963 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8964 lt_prog_compiler_pic='-KPIC'
8965 lt_prog_compiler_static='-Bstatic'
8966 lt_prog_compiler_wl=''
8967 ;;
8968 *Sun\ C*)
8969 # Sun C 5.9
8970 lt_prog_compiler_pic='-KPIC'
8971 lt_prog_compiler_static='-Bstatic'
8972 lt_prog_compiler_wl='-Wl,'
8973 ;;
8974 esac
8975 ;;
8976 esac
8977 ;;
8978
8979 newsos6)
8980 lt_prog_compiler_pic='-KPIC'
8981 lt_prog_compiler_static='-Bstatic'
8982 ;;
8983
8984 *nto* | *qnx*)
8985 # QNX uses GNU C++, but need to define -shared option too, otherwise
8986 # it will coredump.
8987 lt_prog_compiler_pic='-fPIC -shared'
8988 ;;
8989
8990 osf3* | osf4* | osf5*)
8991 lt_prog_compiler_wl='-Wl,'
8992 # All OSF/1 code is PIC.
8993 lt_prog_compiler_static='-non_shared'
8994 ;;
8995
8996 rdos*)
8997 lt_prog_compiler_static='-non_shared'
8998 ;;
8999
9000 solaris*)
9001 lt_prog_compiler_pic='-KPIC'
9002 lt_prog_compiler_static='-Bstatic'
9003 case $cc_basename in
9004 f77* | f90* | f95*)
9005 lt_prog_compiler_wl='-Qoption ld ';;
9006 *)
9007 lt_prog_compiler_wl='-Wl,';;
9008 esac
9009 ;;
9010
9011 sunos4*)
9012 lt_prog_compiler_wl='-Qoption ld '
9013 lt_prog_compiler_pic='-PIC'
9014 lt_prog_compiler_static='-Bstatic'
9015 ;;
9016
9017 sysv4 | sysv4.2uw2* | sysv4.3*)
9018 lt_prog_compiler_wl='-Wl,'
9019 lt_prog_compiler_pic='-KPIC'
9020 lt_prog_compiler_static='-Bstatic'
9021 ;;
9022
9023 sysv4*MP*)
9024 if test -d /usr/nec ;then
9025 lt_prog_compiler_pic='-Kconform_pic'
9026 lt_prog_compiler_static='-Bstatic'
9027 fi
9028 ;;
9029
9030 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9031 lt_prog_compiler_wl='-Wl,'
9032 lt_prog_compiler_pic='-KPIC'
9033 lt_prog_compiler_static='-Bstatic'
9034 ;;
9035
9036 unicos*)
9037 lt_prog_compiler_wl='-Wl,'
9038 lt_prog_compiler_can_build_shared=no
9039 ;;
9040
9041 uts4*)
9042 lt_prog_compiler_pic='-pic'
9043 lt_prog_compiler_static='-Bstatic'
9044 ;;
9045
9046 *)
9047 lt_prog_compiler_can_build_shared=no
9048 ;;
9049 esac
9050 fi
9051
9052 case $host_os in
9053 # For platforms which do not support PIC, -DPIC is meaningless:
9054 *djgpp*)
9055 lt_prog_compiler_pic=
9056 ;;
9057 *)
9058 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9059 ;;
9060 esac
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9062 $as_echo "$lt_prog_compiler_pic" >&6; }
9063
9064
9065
9066
9067
9068
9069 #
9070 # Check to make sure the PIC flag actually works.
9071 #
9072 if test -n "$lt_prog_compiler_pic"; then
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9074 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9075 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9076 $as_echo_n "(cached) " >&6
9077 else
9078 lt_cv_prog_compiler_pic_works=no
9079 ac_outfile=conftest.$ac_objext
9080 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9081 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9082 # Insert the option either (1) after the last *FLAGS variable, or
9083 # (2) before a word containing "conftest.", or (3) at the end.
9084 # Note that $ac_compile itself does not contain backslashes and begins
9085 # with a dollar sign (not a hyphen), so the echo should work correctly.
9086 # The option is referenced via a variable to avoid confusing sed.
9087 lt_compile=`echo "$ac_compile" | $SED \
9088 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9089 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9090 -e 's:$: $lt_compiler_flag:'`
9091 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9092 (eval "$lt_compile" 2>conftest.err)
9093 ac_status=$?
9094 cat conftest.err >&5
9095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096 if (exit $ac_status) && test -s "$ac_outfile"; then
9097 # The compiler can only warn and ignore the option if not recognized
9098 # So say no if there are warnings other than the usual output.
9099 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9100 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9101 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9102 lt_cv_prog_compiler_pic_works=yes
9103 fi
9104 fi
9105 $RM conftest*
9106
9107 fi
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9109 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9110
9111 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9112 case $lt_prog_compiler_pic in
9113 "" | " "*) ;;
9114 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9115 esac
9116 else
9117 lt_prog_compiler_pic=
9118 lt_prog_compiler_can_build_shared=no
9119 fi
9120
9121 fi
9122
9123
9124
9125
9126
9127
9128 #
9129 # Check to make sure the static flag actually works.
9130 #
9131 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9133 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9134 if ${lt_cv_prog_compiler_static_works+:} false; then :
9135 $as_echo_n "(cached) " >&6
9136 else
9137 lt_cv_prog_compiler_static_works=no
9138 save_LDFLAGS="$LDFLAGS"
9139 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9140 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9141 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9142 # The linker can only warn and ignore the option if not recognized
9143 # So say no if there are warnings
9144 if test -s conftest.err; then
9145 # Append any errors to the config.log.
9146 cat conftest.err 1>&5
9147 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9148 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9149 if diff conftest.exp conftest.er2 >/dev/null; then
9150 lt_cv_prog_compiler_static_works=yes
9151 fi
9152 else
9153 lt_cv_prog_compiler_static_works=yes
9154 fi
9155 fi
9156 $RM -r conftest*
9157 LDFLAGS="$save_LDFLAGS"
9158
9159 fi
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9161 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9162
9163 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9164 :
9165 else
9166 lt_prog_compiler_static=
9167 fi
9168
9169
9170
9171
9172
9173
9174
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9176 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9177 if ${lt_cv_prog_compiler_c_o+:} false; then :
9178 $as_echo_n "(cached) " >&6
9179 else
9180 lt_cv_prog_compiler_c_o=no
9181 $RM -r conftest 2>/dev/null
9182 mkdir conftest
9183 cd conftest
9184 mkdir out
9185 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9186
9187 lt_compiler_flag="-o out/conftest2.$ac_objext"
9188 # Insert the option either (1) after the last *FLAGS variable, or
9189 # (2) before a word containing "conftest.", or (3) at the end.
9190 # Note that $ac_compile itself does not contain backslashes and begins
9191 # with a dollar sign (not a hyphen), so the echo should work correctly.
9192 lt_compile=`echo "$ac_compile" | $SED \
9193 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9194 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9195 -e 's:$: $lt_compiler_flag:'`
9196 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9197 (eval "$lt_compile" 2>out/conftest.err)
9198 ac_status=$?
9199 cat out/conftest.err >&5
9200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9202 then
9203 # The compiler can only warn and ignore the option if not recognized
9204 # So say no if there are warnings
9205 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9206 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9207 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9208 lt_cv_prog_compiler_c_o=yes
9209 fi
9210 fi
9211 chmod u+w . 2>&5
9212 $RM conftest*
9213 # SGI C++ compiler will create directory out/ii_files/ for
9214 # template instantiation
9215 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9216 $RM out/* && rmdir out
9217 cd ..
9218 $RM -r conftest
9219 $RM conftest*
9220
9221 fi
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9223 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9224
9225
9226
9227
9228
9229
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9231 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9232 if ${lt_cv_prog_compiler_c_o+:} false; then :
9233 $as_echo_n "(cached) " >&6
9234 else
9235 lt_cv_prog_compiler_c_o=no
9236 $RM -r conftest 2>/dev/null
9237 mkdir conftest
9238 cd conftest
9239 mkdir out
9240 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9241
9242 lt_compiler_flag="-o out/conftest2.$ac_objext"
9243 # Insert the option either (1) after the last *FLAGS variable, or
9244 # (2) before a word containing "conftest.", or (3) at the end.
9245 # Note that $ac_compile itself does not contain backslashes and begins
9246 # with a dollar sign (not a hyphen), so the echo should work correctly.
9247 lt_compile=`echo "$ac_compile" | $SED \
9248 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9249 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9250 -e 's:$: $lt_compiler_flag:'`
9251 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9252 (eval "$lt_compile" 2>out/conftest.err)
9253 ac_status=$?
9254 cat out/conftest.err >&5
9255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9257 then
9258 # The compiler can only warn and ignore the option if not recognized
9259 # So say no if there are warnings
9260 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9261 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9262 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9263 lt_cv_prog_compiler_c_o=yes
9264 fi
9265 fi
9266 chmod u+w . 2>&5
9267 $RM conftest*
9268 # SGI C++ compiler will create directory out/ii_files/ for
9269 # template instantiation
9270 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9271 $RM out/* && rmdir out
9272 cd ..
9273 $RM -r conftest
9274 $RM conftest*
9275
9276 fi
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9278 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9279
9280
9281
9282
9283 hard_links="nottested"
9284 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9285 # do not overwrite the value of need_locks provided by the user
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9287 $as_echo_n "checking if we can lock with hard links... " >&6; }
9288 hard_links=yes
9289 $RM conftest*
9290 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9291 touch conftest.a
9292 ln conftest.a conftest.b 2>&5 || hard_links=no
9293 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9295 $as_echo "$hard_links" >&6; }
9296 if test "$hard_links" = no; then
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9298 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9299 need_locks=warn
9300 fi
9301 else
9302 need_locks=no
9303 fi
9304
9305
9306
9307
9308
9309
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9311 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9312
9313 runpath_var=
9314 allow_undefined_flag=
9315 always_export_symbols=no
9316 archive_cmds=
9317 archive_expsym_cmds=
9318 compiler_needs_object=no
9319 enable_shared_with_static_runtimes=no
9320 export_dynamic_flag_spec=
9321 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9322 hardcode_automatic=no
9323 hardcode_direct=no
9324 hardcode_direct_absolute=no
9325 hardcode_libdir_flag_spec=
9326 hardcode_libdir_flag_spec_ld=
9327 hardcode_libdir_separator=
9328 hardcode_minus_L=no
9329 hardcode_shlibpath_var=unsupported
9330 inherit_rpath=no
9331 link_all_deplibs=unknown
9332 module_cmds=
9333 module_expsym_cmds=
9334 old_archive_from_new_cmds=
9335 old_archive_from_expsyms_cmds=
9336 thread_safe_flag_spec=
9337 whole_archive_flag_spec=
9338 # include_expsyms should be a list of space-separated symbols to be *always*
9339 # included in the symbol list
9340 include_expsyms=
9341 # exclude_expsyms can be an extended regexp of symbols to exclude
9342 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9343 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9344 # as well as any symbol that contains `d'.
9345 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9346 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9347 # platforms (ab)use it in PIC code, but their linkers get confused if
9348 # the symbol is explicitly referenced. Since portable code cannot
9349 # rely on this symbol name, it's probably fine to never include it in
9350 # preloaded symbol tables.
9351 # Exclude shared library initialization/finalization symbols.
9352 extract_expsyms_cmds=
9353
9354 case $host_os in
9355 cygwin* | mingw* | pw32* | cegcc*)
9356 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9357 # When not using gcc, we currently assume that we are using
9358 # Microsoft Visual C++.
9359 if test "$GCC" != yes; then
9360 with_gnu_ld=no
9361 fi
9362 ;;
9363 interix*)
9364 # we just hope/assume this is gcc and not c89 (= MSVC++)
9365 with_gnu_ld=yes
9366 ;;
9367 openbsd*)
9368 with_gnu_ld=no
9369 ;;
9370 esac
9371
9372 ld_shlibs=yes
9373
9374 # On some targets, GNU ld is compatible enough with the native linker
9375 # that we're better off using the native interface for both.
9376 lt_use_gnu_ld_interface=no
9377 if test "$with_gnu_ld" = yes; then
9378 case $host_os in
9379 aix*)
9380 # The AIX port of GNU ld has always aspired to compatibility
9381 # with the native linker. However, as the warning in the GNU ld
9382 # block says, versions before 2.19.5* couldn't really create working
9383 # shared libraries, regardless of the interface used.
9384 case `$LD -v 2>&1` in
9385 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9386 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9387 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9388 *)
9389 lt_use_gnu_ld_interface=yes
9390 ;;
9391 esac
9392 ;;
9393 *)
9394 lt_use_gnu_ld_interface=yes
9395 ;;
9396 esac
9397 fi
9398
9399 if test "$lt_use_gnu_ld_interface" = yes; then
9400 # If archive_cmds runs LD, not CC, wlarc should be empty
9401 wlarc='${wl}'
9402
9403 # Set some defaults for GNU ld with shared library support. These
9404 # are reset later if shared libraries are not supported. Putting them
9405 # here allows them to be overridden if necessary.
9406 runpath_var=LD_RUN_PATH
9407 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9408 export_dynamic_flag_spec='${wl}--export-dynamic'
9409 # ancient GNU ld didn't support --whole-archive et. al.
9410 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9411 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9412 else
9413 whole_archive_flag_spec=
9414 fi
9415 supports_anon_versioning=no
9416 case `$LD -v 2>&1` in
9417 *GNU\ gold*) supports_anon_versioning=yes ;;
9418 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9419 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9420 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9421 *\ 2.11.*) ;; # other 2.11 versions
9422 *) supports_anon_versioning=yes ;;
9423 esac
9424
9425 # See if GNU ld supports shared libraries.
9426 case $host_os in
9427 aix[3-9]*)
9428 # On AIX/PPC, the GNU linker is very broken
9429 if test "$host_cpu" != ia64; then
9430 ld_shlibs=no
9431 cat <<_LT_EOF 1>&2
9432
9433 *** Warning: the GNU linker, at least up to release 2.19, is reported
9434 *** to be unable to reliably create shared libraries on AIX.
9435 *** Therefore, libtool is disabling shared libraries support. If you
9436 *** really care for shared libraries, you may want to install binutils
9437 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9438 *** You will then need to restart the configuration process.
9439
9440 _LT_EOF
9441 fi
9442 ;;
9443
9444 amigaos*)
9445 case $host_cpu in
9446 powerpc)
9447 # see comment about AmigaOS4 .so support
9448 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9449 archive_expsym_cmds=''
9450 ;;
9451 m68k)
9452 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)'
9453 hardcode_libdir_flag_spec='-L$libdir'
9454 hardcode_minus_L=yes
9455 ;;
9456 esac
9457 ;;
9458
9459 beos*)
9460 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9461 allow_undefined_flag=unsupported
9462 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9463 # support --undefined. This deserves some investigation. FIXME
9464 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9465 else
9466 ld_shlibs=no
9467 fi
9468 ;;
9469
9470 cygwin* | mingw* | pw32* | cegcc*)
9471 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9472 # as there is no search path for DLLs.
9473 hardcode_libdir_flag_spec='-L$libdir'
9474 export_dynamic_flag_spec='${wl}--export-all-symbols'
9475 allow_undefined_flag=unsupported
9476 always_export_symbols=no
9477 enable_shared_with_static_runtimes=yes
9478 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9479
9480 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9481 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9482 # If the export-symbols file already is a .def file (1st line
9483 # is EXPORTS), use it as is; otherwise, prepend...
9484 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9485 cp $export_symbols $output_objdir/$soname.def;
9486 else
9487 echo EXPORTS > $output_objdir/$soname.def;
9488 cat $export_symbols >> $output_objdir/$soname.def;
9489 fi~
9490 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9491 else
9492 ld_shlibs=no
9493 fi
9494 ;;
9495
9496 haiku*)
9497 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9498 link_all_deplibs=yes
9499 ;;
9500
9501 interix[3-9]*)
9502 hardcode_direct=no
9503 hardcode_shlibpath_var=no
9504 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9505 export_dynamic_flag_spec='${wl}-E'
9506 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9507 # Instead, shared libraries are loaded at an image base (0x10000000 by
9508 # default) and relocated if they conflict, which is a slow very memory
9509 # consuming and fragmenting process. To avoid this, we pick a random,
9510 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9511 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9512 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9513 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'
9514 ;;
9515
9516 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9517 tmp_diet=no
9518 if test "$host_os" = linux-dietlibc; then
9519 case $cc_basename in
9520 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9521 esac
9522 fi
9523 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9524 && test "$tmp_diet" = no
9525 then
9526 tmp_addflag=' $pic_flag'
9527 tmp_sharedflag='-shared'
9528 case $cc_basename,$host_cpu in
9529 pgcc*) # Portland Group C compiler
9530 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'
9531 tmp_addflag=' $pic_flag'
9532 ;;
9533 pgf77* | pgf90* | pgf95* | pgfortran*)
9534 # Portland Group f77 and f90 compilers
9535 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'
9536 tmp_addflag=' $pic_flag -Mnomain' ;;
9537 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9538 tmp_addflag=' -i_dynamic' ;;
9539 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9540 tmp_addflag=' -i_dynamic -nofor_main' ;;
9541 ifc* | ifort*) # Intel Fortran compiler
9542 tmp_addflag=' -nofor_main' ;;
9543 lf95*) # Lahey Fortran 8.1
9544 whole_archive_flag_spec=
9545 tmp_sharedflag='--shared' ;;
9546 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9547 tmp_sharedflag='-qmkshrobj'
9548 tmp_addflag= ;;
9549 nvcc*) # Cuda Compiler Driver 2.2
9550 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'
9551 compiler_needs_object=yes
9552 ;;
9553 esac
9554 case `$CC -V 2>&1 | sed 5q` in
9555 *Sun\ C*) # Sun C 5.9
9556 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'
9557 compiler_needs_object=yes
9558 tmp_sharedflag='-G' ;;
9559 *Sun\ F*) # Sun Fortran 8.3
9560 tmp_sharedflag='-G' ;;
9561 esac
9562 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9563
9564 if test "x$supports_anon_versioning" = xyes; then
9565 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9566 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9567 echo "local: *; };" >> $output_objdir/$libname.ver~
9568 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9569 fi
9570
9571 case $cc_basename in
9572 xlf* | bgf* | bgxlf* | mpixlf*)
9573 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9574 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9575 hardcode_libdir_flag_spec=
9576 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9577 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9578 if test "x$supports_anon_versioning" = xyes; then
9579 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9580 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9581 echo "local: *; };" >> $output_objdir/$libname.ver~
9582 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9583 fi
9584 ;;
9585 esac
9586 else
9587 ld_shlibs=no
9588 fi
9589 ;;
9590
9591 netbsd*)
9592 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9593 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9594 wlarc=
9595 else
9596 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9597 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9598 fi
9599 ;;
9600
9601 solaris*)
9602 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9603 ld_shlibs=no
9604 cat <<_LT_EOF 1>&2
9605
9606 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9607 *** create shared libraries on Solaris systems. Therefore, libtool
9608 *** is disabling shared libraries support. We urge you to upgrade GNU
9609 *** binutils to release 2.9.1 or newer. Another option is to modify
9610 *** your PATH or compiler configuration so that the native linker is
9611 *** used, and then restart.
9612
9613 _LT_EOF
9614 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9615 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9616 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9617 else
9618 ld_shlibs=no
9619 fi
9620 ;;
9621
9622 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9623 case `$LD -v 2>&1` in
9624 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9625 ld_shlibs=no
9626 cat <<_LT_EOF 1>&2
9627
9628 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9629 *** reliably create shared libraries on SCO systems. Therefore, libtool
9630 *** is disabling shared libraries support. We urge you to upgrade GNU
9631 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9632 *** your PATH or compiler configuration so that the native linker is
9633 *** used, and then restart.
9634
9635 _LT_EOF
9636 ;;
9637 *)
9638 # For security reasons, it is highly recommended that you always
9639 # use absolute paths for naming shared libraries, and exclude the
9640 # DT_RUNPATH tag from executables and libraries. But doing so
9641 # requires that you compile everything twice, which is a pain.
9642 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9643 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9644 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9645 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9646 else
9647 ld_shlibs=no
9648 fi
9649 ;;
9650 esac
9651 ;;
9652
9653 sunos4*)
9654 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9655 wlarc=
9656 hardcode_direct=yes
9657 hardcode_shlibpath_var=no
9658 ;;
9659
9660 *)
9661 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9662 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9663 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9664 else
9665 ld_shlibs=no
9666 fi
9667 ;;
9668 esac
9669
9670 if test "$ld_shlibs" = no; then
9671 runpath_var=
9672 hardcode_libdir_flag_spec=
9673 export_dynamic_flag_spec=
9674 whole_archive_flag_spec=
9675 fi
9676 else
9677 # PORTME fill in a description of your system's linker (not GNU ld)
9678 case $host_os in
9679 aix3*)
9680 allow_undefined_flag=unsupported
9681 always_export_symbols=yes
9682 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'
9683 # Note: this linker hardcodes the directories in LIBPATH if there
9684 # are no directories specified by -L.
9685 hardcode_minus_L=yes
9686 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9687 # Neither direct hardcoding nor static linking is supported with a
9688 # broken collect2.
9689 hardcode_direct=unsupported
9690 fi
9691 ;;
9692
9693 aix[4-9]*)
9694 if test "$host_cpu" = ia64; then
9695 # On IA64, the linker does run time linking by default, so we don't
9696 # have to do anything special.
9697 aix_use_runtimelinking=no
9698 exp_sym_flag='-Bexport'
9699 no_entry_flag=""
9700 else
9701 # If we're using GNU nm, then we don't want the "-C" option.
9702 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9703 # Also, AIX nm treats weak defined symbols like other global
9704 # defined symbols, whereas GNU nm marks them as "W".
9705 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9706 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'
9707 else
9708 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'
9709 fi
9710 aix_use_runtimelinking=no
9711
9712 # Test if we are trying to use run time linking or normal
9713 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9714 # need to do runtime linking.
9715 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9716 for ld_flag in $LDFLAGS; do
9717 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9718 aix_use_runtimelinking=yes
9719 break
9720 fi
9721 done
9722 ;;
9723 esac
9724
9725 exp_sym_flag='-bexport'
9726 no_entry_flag='-bnoentry'
9727 fi
9728
9729 # When large executables or shared objects are built, AIX ld can
9730 # have problems creating the table of contents. If linking a library
9731 # or program results in "error TOC overflow" add -mminimal-toc to
9732 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9733 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9734
9735 archive_cmds=''
9736 hardcode_direct=yes
9737 hardcode_direct_absolute=yes
9738 hardcode_libdir_separator=':'
9739 link_all_deplibs=yes
9740 file_list_spec='${wl}-f,'
9741
9742 if test "$GCC" = yes; then
9743 case $host_os in aix4.[012]|aix4.[012].*)
9744 # We only want to do this on AIX 4.2 and lower, the check
9745 # below for broken collect2 doesn't work under 4.3+
9746 collect2name=`${CC} -print-prog-name=collect2`
9747 if test -f "$collect2name" &&
9748 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9749 then
9750 # We have reworked collect2
9751 :
9752 else
9753 # We have old collect2
9754 hardcode_direct=unsupported
9755 # It fails to find uninstalled libraries when the uninstalled
9756 # path is not listed in the libpath. Setting hardcode_minus_L
9757 # to unsupported forces relinking
9758 hardcode_minus_L=yes
9759 hardcode_libdir_flag_spec='-L$libdir'
9760 hardcode_libdir_separator=
9761 fi
9762 ;;
9763 esac
9764 shared_flag='-shared'
9765 if test "$aix_use_runtimelinking" = yes; then
9766 shared_flag="$shared_flag "'${wl}-G'
9767 fi
9768 else
9769 # not using gcc
9770 if test "$host_cpu" = ia64; then
9771 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9772 # chokes on -Wl,-G. The following line is correct:
9773 shared_flag='-G'
9774 else
9775 if test "$aix_use_runtimelinking" = yes; then
9776 shared_flag='${wl}-G'
9777 else
9778 shared_flag='${wl}-bM:SRE'
9779 fi
9780 fi
9781 fi
9782
9783 export_dynamic_flag_spec='${wl}-bexpall'
9784 # It seems that -bexpall does not export symbols beginning with
9785 # underscore (_), so it is better to generate a list of symbols to export.
9786 always_export_symbols=yes
9787 if test "$aix_use_runtimelinking" = yes; then
9788 # Warning - without using the other runtime loading flags (-brtl),
9789 # -berok will link without error, but may produce a broken library.
9790 allow_undefined_flag='-berok'
9791 # Determine the default libpath from the value encoded in an
9792 # empty executable.
9793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9794 /* end confdefs.h. */
9795
9796 int
9797 main ()
9798 {
9799
9800 ;
9801 return 0;
9802 }
9803 _ACEOF
9804 if ac_fn_c_try_link "$LINENO"; then :
9805
9806 lt_aix_libpath_sed='
9807 /Import File Strings/,/^$/ {
9808 /^0/ {
9809 s/^0 *\(.*\)$/\1/
9810 p
9811 }
9812 }'
9813 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9814 # Check for a 64-bit object if we didn't find anything.
9815 if test -z "$aix_libpath"; then
9816 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9817 fi
9818 fi
9819 rm -f core conftest.err conftest.$ac_objext \
9820 conftest$ac_exeext conftest.$ac_ext
9821 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9822
9823 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9824 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"
9825 else
9826 if test "$host_cpu" = ia64; then
9827 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9828 allow_undefined_flag="-z nodefs"
9829 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"
9830 else
9831 # Determine the default libpath from the value encoded in an
9832 # empty executable.
9833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9834 /* end confdefs.h. */
9835
9836 int
9837 main ()
9838 {
9839
9840 ;
9841 return 0;
9842 }
9843 _ACEOF
9844 if ac_fn_c_try_link "$LINENO"; then :
9845
9846 lt_aix_libpath_sed='
9847 /Import File Strings/,/^$/ {
9848 /^0/ {
9849 s/^0 *\(.*\)$/\1/
9850 p
9851 }
9852 }'
9853 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9854 # Check for a 64-bit object if we didn't find anything.
9855 if test -z "$aix_libpath"; then
9856 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9857 fi
9858 fi
9859 rm -f core conftest.err conftest.$ac_objext \
9860 conftest$ac_exeext conftest.$ac_ext
9861 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9862
9863 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9864 # Warning - without using the other run time loading flags,
9865 # -berok will link without error, but may produce a broken library.
9866 no_undefined_flag=' ${wl}-bernotok'
9867 allow_undefined_flag=' ${wl}-berok'
9868 if test "$with_gnu_ld" = yes; then
9869 # We only use this code for GNU lds that support --whole-archive.
9870 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9871 else
9872 # Exported symbols can be pulled into shared objects from archives
9873 whole_archive_flag_spec='$convenience'
9874 fi
9875 archive_cmds_need_lc=yes
9876 # This is similar to how AIX traditionally builds its shared libraries.
9877 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'
9878 fi
9879 fi
9880 ;;
9881
9882 amigaos*)
9883 case $host_cpu in
9884 powerpc)
9885 # see comment about AmigaOS4 .so support
9886 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9887 archive_expsym_cmds=''
9888 ;;
9889 m68k)
9890 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)'
9891 hardcode_libdir_flag_spec='-L$libdir'
9892 hardcode_minus_L=yes
9893 ;;
9894 esac
9895 ;;
9896
9897 bsdi[45]*)
9898 export_dynamic_flag_spec=-rdynamic
9899 ;;
9900
9901 cygwin* | mingw* | pw32* | cegcc*)
9902 # When not using gcc, we currently assume that we are using
9903 # Microsoft Visual C++.
9904 # hardcode_libdir_flag_spec is actually meaningless, as there is
9905 # no search path for DLLs.
9906 hardcode_libdir_flag_spec=' '
9907 allow_undefined_flag=unsupported
9908 # Tell ltmain to make .lib files, not .a files.
9909 libext=lib
9910 # Tell ltmain to make .dll files, not .so files.
9911 shrext_cmds=".dll"
9912 # FIXME: Setting linknames here is a bad hack.
9913 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9914 # The linker will automatically build a .lib file if we build a DLL.
9915 old_archive_from_new_cmds='true'
9916 # FIXME: Should let the user specify the lib program.
9917 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9918 fix_srcfile_path='`cygpath -w "$srcfile"`'
9919 enable_shared_with_static_runtimes=yes
9920 ;;
9921
9922 darwin* | rhapsody*)
9923
9924
9925 archive_cmds_need_lc=no
9926 hardcode_direct=no
9927 hardcode_automatic=yes
9928 hardcode_shlibpath_var=unsupported
9929 if test "$lt_cv_ld_force_load" = "yes"; then
9930 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\"`'
9931 else
9932 whole_archive_flag_spec=''
9933 fi
9934 link_all_deplibs=yes
9935 allow_undefined_flag="$_lt_dar_allow_undefined"
9936 case $cc_basename in
9937 ifort*) _lt_dar_can_shared=yes ;;
9938 *) _lt_dar_can_shared=$GCC ;;
9939 esac
9940 if test "$_lt_dar_can_shared" = "yes"; then
9941 output_verbose_link_cmd=func_echo_all
9942 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9943 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9944 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}"
9945 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}"
9946
9947 else
9948 ld_shlibs=no
9949 fi
9950
9951 ;;
9952
9953 dgux*)
9954 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9955 hardcode_libdir_flag_spec='-L$libdir'
9956 hardcode_shlibpath_var=no
9957 ;;
9958
9959 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9960 # support. Future versions do this automatically, but an explicit c++rt0.o
9961 # does not break anything, and helps significantly (at the cost of a little
9962 # extra space).
9963 freebsd2.2*)
9964 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9965 hardcode_libdir_flag_spec='-R$libdir'
9966 hardcode_direct=yes
9967 hardcode_shlibpath_var=no
9968 ;;
9969
9970 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9971 freebsd2.*)
9972 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9973 hardcode_direct=yes
9974 hardcode_minus_L=yes
9975 hardcode_shlibpath_var=no
9976 ;;
9977
9978 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9979 freebsd* | dragonfly*)
9980 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9981 hardcode_libdir_flag_spec='-R$libdir'
9982 hardcode_direct=yes
9983 hardcode_shlibpath_var=no
9984 ;;
9985
9986 hpux9*)
9987 if test "$GCC" = yes; then
9988 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'
9989 else
9990 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'
9991 fi
9992 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9993 hardcode_libdir_separator=:
9994 hardcode_direct=yes
9995
9996 # hardcode_minus_L: Not really in the search PATH,
9997 # but as the default location of the library.
9998 hardcode_minus_L=yes
9999 export_dynamic_flag_spec='${wl}-E'
10000 ;;
10001
10002 hpux10*)
10003 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10004 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10005 else
10006 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10007 fi
10008 if test "$with_gnu_ld" = no; then
10009 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10010 hardcode_libdir_flag_spec_ld='+b $libdir'
10011 hardcode_libdir_separator=:
10012 hardcode_direct=yes
10013 hardcode_direct_absolute=yes
10014 export_dynamic_flag_spec='${wl}-E'
10015 # hardcode_minus_L: Not really in the search PATH,
10016 # but as the default location of the library.
10017 hardcode_minus_L=yes
10018 fi
10019 ;;
10020
10021 hpux11*)
10022 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10023 case $host_cpu in
10024 hppa*64*)
10025 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10026 ;;
10027 ia64*)
10028 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10029 ;;
10030 *)
10031 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10032 ;;
10033 esac
10034 else
10035 case $host_cpu in
10036 hppa*64*)
10037 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10038 ;;
10039 ia64*)
10040 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10041 ;;
10042 *)
10043
10044 # Older versions of the 11.00 compiler do not understand -b yet
10045 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10047 $as_echo_n "checking if $CC understands -b... " >&6; }
10048 if ${lt_cv_prog_compiler__b+:} false; then :
10049 $as_echo_n "(cached) " >&6
10050 else
10051 lt_cv_prog_compiler__b=no
10052 save_LDFLAGS="$LDFLAGS"
10053 LDFLAGS="$LDFLAGS -b"
10054 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10055 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10056 # The linker can only warn and ignore the option if not recognized
10057 # So say no if there are warnings
10058 if test -s conftest.err; then
10059 # Append any errors to the config.log.
10060 cat conftest.err 1>&5
10061 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10062 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10063 if diff conftest.exp conftest.er2 >/dev/null; then
10064 lt_cv_prog_compiler__b=yes
10065 fi
10066 else
10067 lt_cv_prog_compiler__b=yes
10068 fi
10069 fi
10070 $RM -r conftest*
10071 LDFLAGS="$save_LDFLAGS"
10072
10073 fi
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10075 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10076
10077 if test x"$lt_cv_prog_compiler__b" = xyes; then
10078 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10079 else
10080 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10081 fi
10082
10083 ;;
10084 esac
10085 fi
10086 if test "$with_gnu_ld" = no; then
10087 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10088 hardcode_libdir_separator=:
10089
10090 case $host_cpu in
10091 hppa*64*|ia64*)
10092 hardcode_direct=no
10093 hardcode_shlibpath_var=no
10094 ;;
10095 *)
10096 hardcode_direct=yes
10097 hardcode_direct_absolute=yes
10098 export_dynamic_flag_spec='${wl}-E'
10099
10100 # hardcode_minus_L: Not really in the search PATH,
10101 # but as the default location of the library.
10102 hardcode_minus_L=yes
10103 ;;
10104 esac
10105 fi
10106 ;;
10107
10108 irix5* | irix6* | nonstopux*)
10109 if test "$GCC" = yes; then
10110 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'
10111 # Try to use the -exported_symbol ld option, if it does not
10112 # work, assume that -exports_file does not work either and
10113 # implicitly export all symbols.
10114 save_LDFLAGS="$LDFLAGS"
10115 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10117 /* end confdefs.h. */
10118 int foo(void) {}
10119 _ACEOF
10120 if ac_fn_c_try_link "$LINENO"; then :
10121 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'
10122
10123 fi
10124 rm -f core conftest.err conftest.$ac_objext \
10125 conftest$ac_exeext conftest.$ac_ext
10126 LDFLAGS="$save_LDFLAGS"
10127 else
10128 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'
10129 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'
10130 fi
10131 archive_cmds_need_lc='no'
10132 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10133 hardcode_libdir_separator=:
10134 inherit_rpath=yes
10135 link_all_deplibs=yes
10136 ;;
10137
10138 netbsd*)
10139 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10140 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10141 else
10142 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10143 fi
10144 hardcode_libdir_flag_spec='-R$libdir'
10145 hardcode_direct=yes
10146 hardcode_shlibpath_var=no
10147 ;;
10148
10149 newsos6)
10150 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10151 hardcode_direct=yes
10152 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10153 hardcode_libdir_separator=:
10154 hardcode_shlibpath_var=no
10155 ;;
10156
10157 *nto* | *qnx*)
10158 ;;
10159
10160 openbsd*)
10161 if test -f /usr/libexec/ld.so; then
10162 hardcode_direct=yes
10163 hardcode_shlibpath_var=no
10164 hardcode_direct_absolute=yes
10165 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10166 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10167 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10168 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10169 export_dynamic_flag_spec='${wl}-E'
10170 else
10171 case $host_os in
10172 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10173 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10174 hardcode_libdir_flag_spec='-R$libdir'
10175 ;;
10176 *)
10177 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10178 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10179 ;;
10180 esac
10181 fi
10182 else
10183 ld_shlibs=no
10184 fi
10185 ;;
10186
10187 os2*)
10188 hardcode_libdir_flag_spec='-L$libdir'
10189 hardcode_minus_L=yes
10190 allow_undefined_flag=unsupported
10191 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'
10192 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10193 ;;
10194
10195 osf3*)
10196 if test "$GCC" = yes; then
10197 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10198 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'
10199 else
10200 allow_undefined_flag=' -expect_unresolved \*'
10201 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'
10202 fi
10203 archive_cmds_need_lc='no'
10204 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10205 hardcode_libdir_separator=:
10206 ;;
10207
10208 osf4* | osf5*) # as osf3* with the addition of -msym flag
10209 if test "$GCC" = yes; then
10210 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10211 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'
10212 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10213 else
10214 allow_undefined_flag=' -expect_unresolved \*'
10215 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'
10216 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~
10217 $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'
10218
10219 # Both c and cxx compiler support -rpath directly
10220 hardcode_libdir_flag_spec='-rpath $libdir'
10221 fi
10222 archive_cmds_need_lc='no'
10223 hardcode_libdir_separator=:
10224 ;;
10225
10226 solaris*)
10227 no_undefined_flag=' -z defs'
10228 if test "$GCC" = yes; then
10229 wlarc='${wl}'
10230 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10231 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10232 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10233 else
10234 case `$CC -V 2>&1` in
10235 *"Compilers 5.0"*)
10236 wlarc=''
10237 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10238 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10239 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10240 ;;
10241 *)
10242 wlarc='${wl}'
10243 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10244 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10245 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10246 ;;
10247 esac
10248 fi
10249 hardcode_libdir_flag_spec='-R$libdir'
10250 hardcode_shlibpath_var=no
10251 case $host_os in
10252 solaris2.[0-5] | solaris2.[0-5].*) ;;
10253 *)
10254 # The compiler driver will combine and reorder linker options,
10255 # but understands `-z linker_flag'. GCC discards it without `$wl',
10256 # but is careful enough not to reorder.
10257 # Supported since Solaris 2.6 (maybe 2.5.1?)
10258 if test "$GCC" = yes; then
10259 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10260 else
10261 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10262 fi
10263 ;;
10264 esac
10265 link_all_deplibs=yes
10266 ;;
10267
10268 sunos4*)
10269 if test "x$host_vendor" = xsequent; then
10270 # Use $CC to link under sequent, because it throws in some extra .o
10271 # files that make .init and .fini sections work.
10272 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10273 else
10274 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10275 fi
10276 hardcode_libdir_flag_spec='-L$libdir'
10277 hardcode_direct=yes
10278 hardcode_minus_L=yes
10279 hardcode_shlibpath_var=no
10280 ;;
10281
10282 sysv4)
10283 case $host_vendor in
10284 sni)
10285 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10286 hardcode_direct=yes # is this really true???
10287 ;;
10288 siemens)
10289 ## LD is ld it makes a PLAMLIB
10290 ## CC just makes a GrossModule.
10291 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10292 reload_cmds='$CC -r -o $output$reload_objs'
10293 hardcode_direct=no
10294 ;;
10295 motorola)
10296 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10297 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10298 ;;
10299 esac
10300 runpath_var='LD_RUN_PATH'
10301 hardcode_shlibpath_var=no
10302 ;;
10303
10304 sysv4.3*)
10305 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10306 hardcode_shlibpath_var=no
10307 export_dynamic_flag_spec='-Bexport'
10308 ;;
10309
10310 sysv4*MP*)
10311 if test -d /usr/nec; then
10312 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10313 hardcode_shlibpath_var=no
10314 runpath_var=LD_RUN_PATH
10315 hardcode_runpath_var=yes
10316 ld_shlibs=yes
10317 fi
10318 ;;
10319
10320 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10321 no_undefined_flag='${wl}-z,text'
10322 archive_cmds_need_lc=no
10323 hardcode_shlibpath_var=no
10324 runpath_var='LD_RUN_PATH'
10325
10326 if test "$GCC" = yes; then
10327 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10328 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10329 else
10330 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10331 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10332 fi
10333 ;;
10334
10335 sysv5* | sco3.2v5* | sco5v6*)
10336 # Note: We can NOT use -z defs as we might desire, because we do not
10337 # link with -lc, and that would cause any symbols used from libc to
10338 # always be unresolved, which means just about no library would
10339 # ever link correctly. If we're not using GNU ld we use -z text
10340 # though, which does catch some bad symbols but isn't as heavy-handed
10341 # as -z defs.
10342 no_undefined_flag='${wl}-z,text'
10343 allow_undefined_flag='${wl}-z,nodefs'
10344 archive_cmds_need_lc=no
10345 hardcode_shlibpath_var=no
10346 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10347 hardcode_libdir_separator=':'
10348 link_all_deplibs=yes
10349 export_dynamic_flag_spec='${wl}-Bexport'
10350 runpath_var='LD_RUN_PATH'
10351
10352 if test "$GCC" = yes; then
10353 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10354 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10355 else
10356 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10357 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10358 fi
10359 ;;
10360
10361 uts4*)
10362 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10363 hardcode_libdir_flag_spec='-L$libdir'
10364 hardcode_shlibpath_var=no
10365 ;;
10366
10367 *)
10368 ld_shlibs=no
10369 ;;
10370 esac
10371
10372 if test x$host_vendor = xsni; then
10373 case $host in
10374 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10375 export_dynamic_flag_spec='${wl}-Blargedynsym'
10376 ;;
10377 esac
10378 fi
10379 fi
10380
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10382 $as_echo "$ld_shlibs" >&6; }
10383 test "$ld_shlibs" = no && can_build_shared=no
10384
10385 with_gnu_ld=$with_gnu_ld
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401 #
10402 # Do we need to explicitly link libc?
10403 #
10404 case "x$archive_cmds_need_lc" in
10405 x|xyes)
10406 # Assume -lc should be added
10407 archive_cmds_need_lc=yes
10408
10409 if test "$enable_shared" = yes && test "$GCC" = yes; then
10410 case $archive_cmds in
10411 *'~'*)
10412 # FIXME: we may have to deal with multi-command sequences.
10413 ;;
10414 '$CC '*)
10415 # Test whether the compiler implicitly links with -lc since on some
10416 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10417 # to ld, don't add -lc before -lgcc.
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10419 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10420 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10421 $as_echo_n "(cached) " >&6
10422 else
10423 $RM conftest*
10424 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10425
10426 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10427 (eval $ac_compile) 2>&5
10428 ac_status=$?
10429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10430 test $ac_status = 0; } 2>conftest.err; then
10431 soname=conftest
10432 lib=conftest
10433 libobjs=conftest.$ac_objext
10434 deplibs=
10435 wl=$lt_prog_compiler_wl
10436 pic_flag=$lt_prog_compiler_pic
10437 compiler_flags=-v
10438 linker_flags=-v
10439 verstring=
10440 output_objdir=.
10441 libname=conftest
10442 lt_save_allow_undefined_flag=$allow_undefined_flag
10443 allow_undefined_flag=
10444 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10445 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10446 ac_status=$?
10447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10448 test $ac_status = 0; }
10449 then
10450 lt_cv_archive_cmds_need_lc=no
10451 else
10452 lt_cv_archive_cmds_need_lc=yes
10453 fi
10454 allow_undefined_flag=$lt_save_allow_undefined_flag
10455 else
10456 cat conftest.err 1>&5
10457 fi
10458 $RM conftest*
10459
10460 fi
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10462 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10463 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10464 ;;
10465 esac
10466 fi
10467 ;;
10468 esac
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10627 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10628
10629 if test "$GCC" = yes; then
10630 case $host_os in
10631 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10632 *) lt_awk_arg="/^libraries:/" ;;
10633 esac
10634 case $host_os in
10635 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10636 *) lt_sed_strip_eq="s,=/,/,g" ;;
10637 esac
10638 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10639 case $lt_search_path_spec in
10640 *\;*)
10641 # if the path contains ";" then we assume it to be the separator
10642 # otherwise default to the standard path separator (i.e. ":") - it is
10643 # assumed that no part of a normal pathname contains ";" but that should
10644 # okay in the real world where ";" in dirpaths is itself problematic.
10645 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10646 ;;
10647 *)
10648 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10649 ;;
10650 esac
10651 # Ok, now we have the path, separated by spaces, we can step through it
10652 # and add multilib dir if necessary.
10653 lt_tmp_lt_search_path_spec=
10654 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10655 for lt_sys_path in $lt_search_path_spec; do
10656 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10657 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10658 else
10659 test -d "$lt_sys_path" && \
10660 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10661 fi
10662 done
10663 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10664 BEGIN {RS=" "; FS="/|\n";} {
10665 lt_foo="";
10666 lt_count=0;
10667 for (lt_i = NF; lt_i > 0; lt_i--) {
10668 if ($lt_i != "" && $lt_i != ".") {
10669 if ($lt_i == "..") {
10670 lt_count++;
10671 } else {
10672 if (lt_count == 0) {
10673 lt_foo="/" $lt_i lt_foo;
10674 } else {
10675 lt_count--;
10676 }
10677 }
10678 }
10679 }
10680 if (lt_foo != "") { lt_freq[lt_foo]++; }
10681 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10682 }'`
10683 # AWK program above erroneously prepends '/' to C:/dos/paths
10684 # for these hosts.
10685 case $host_os in
10686 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10687 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10688 esac
10689 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10690 else
10691 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10692 fi
10693 library_names_spec=
10694 libname_spec='lib$name'
10695 soname_spec=
10696 shrext_cmds=".so"
10697 postinstall_cmds=
10698 postuninstall_cmds=
10699 finish_cmds=
10700 finish_eval=
10701 shlibpath_var=
10702 shlibpath_overrides_runpath=unknown
10703 version_type=none
10704 dynamic_linker="$host_os ld.so"
10705 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10706 need_lib_prefix=unknown
10707 hardcode_into_libs=no
10708
10709 # when you set need_version to no, make sure it does not cause -set_version
10710 # flags to be left without arguments
10711 need_version=unknown
10712
10713 case $host_os in
10714 aix3*)
10715 version_type=linux
10716 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10717 shlibpath_var=LIBPATH
10718
10719 # AIX 3 has no versioning support, so we append a major version to the name.
10720 soname_spec='${libname}${release}${shared_ext}$major'
10721 ;;
10722
10723 aix[4-9]*)
10724 version_type=linux
10725 need_lib_prefix=no
10726 need_version=no
10727 hardcode_into_libs=yes
10728 if test "$host_cpu" = ia64; then
10729 # AIX 5 supports IA64
10730 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10731 shlibpath_var=LD_LIBRARY_PATH
10732 else
10733 # With GCC up to 2.95.x, collect2 would create an import file
10734 # for dependence libraries. The import file would start with
10735 # the line `#! .'. This would cause the generated library to
10736 # depend on `.', always an invalid library. This was fixed in
10737 # development snapshots of GCC prior to 3.0.
10738 case $host_os in
10739 aix4 | aix4.[01] | aix4.[01].*)
10740 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10741 echo ' yes '
10742 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10743 :
10744 else
10745 can_build_shared=no
10746 fi
10747 ;;
10748 esac
10749 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10750 # soname into executable. Probably we can add versioning support to
10751 # collect2, so additional links can be useful in future.
10752 if test "$aix_use_runtimelinking" = yes; then
10753 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10754 # instead of lib<name>.a to let people know that these are not
10755 # typical AIX shared libraries.
10756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10757 else
10758 # We preserve .a as extension for shared libraries through AIX4.2
10759 # and later when we are not doing run time linking.
10760 library_names_spec='${libname}${release}.a $libname.a'
10761 soname_spec='${libname}${release}${shared_ext}$major'
10762 fi
10763 shlibpath_var=LIBPATH
10764 fi
10765 ;;
10766
10767 amigaos*)
10768 case $host_cpu in
10769 powerpc)
10770 # Since July 2007 AmigaOS4 officially supports .so libraries.
10771 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10773 ;;
10774 m68k)
10775 library_names_spec='$libname.ixlibrary $libname.a'
10776 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10777 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'
10778 ;;
10779 esac
10780 ;;
10781
10782 beos*)
10783 library_names_spec='${libname}${shared_ext}'
10784 dynamic_linker="$host_os ld.so"
10785 shlibpath_var=LIBRARY_PATH
10786 ;;
10787
10788 bsdi[45]*)
10789 version_type=linux
10790 need_version=no
10791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10792 soname_spec='${libname}${release}${shared_ext}$major'
10793 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10794 shlibpath_var=LD_LIBRARY_PATH
10795 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10796 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10797 # the default ld.so.conf also contains /usr/contrib/lib and
10798 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10799 # libtool to hard-code these into programs
10800 ;;
10801
10802 cygwin* | mingw* | pw32* | cegcc*)
10803 version_type=windows
10804 shrext_cmds=".dll"
10805 need_version=no
10806 need_lib_prefix=no
10807
10808 case $GCC,$host_os in
10809 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10810 library_names_spec='$libname.dll.a'
10811 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10812 postinstall_cmds='base_file=`basename \${file}`~
10813 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10814 dldir=$destdir/`dirname \$dlpath`~
10815 test -d \$dldir || mkdir -p \$dldir~
10816 $install_prog $dir/$dlname \$dldir/$dlname~
10817 chmod a+x \$dldir/$dlname~
10818 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10819 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10820 fi'
10821 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10822 dlpath=$dir/\$dldll~
10823 $RM \$dlpath'
10824 shlibpath_overrides_runpath=yes
10825
10826 case $host_os in
10827 cygwin*)
10828 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10829 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10830
10831 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10832 ;;
10833 mingw* | cegcc*)
10834 # MinGW DLLs use traditional 'lib' prefix
10835 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10836 ;;
10837 pw32*)
10838 # pw32 DLLs use 'pw' prefix rather than 'lib'
10839 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10840 ;;
10841 esac
10842 ;;
10843
10844 *)
10845 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10846 ;;
10847 esac
10848 dynamic_linker='Win32 ld.exe'
10849 # FIXME: first we should search . and the directory the executable is in
10850 shlibpath_var=PATH
10851 ;;
10852
10853 darwin* | rhapsody*)
10854 dynamic_linker="$host_os dyld"
10855 version_type=darwin
10856 need_lib_prefix=no
10857 need_version=no
10858 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10859 soname_spec='${libname}${release}${major}$shared_ext'
10860 shlibpath_overrides_runpath=yes
10861 shlibpath_var=DYLD_LIBRARY_PATH
10862 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10863
10864 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10865 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10866 ;;
10867
10868 dgux*)
10869 version_type=linux
10870 need_lib_prefix=no
10871 need_version=no
10872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10873 soname_spec='${libname}${release}${shared_ext}$major'
10874 shlibpath_var=LD_LIBRARY_PATH
10875 ;;
10876
10877 freebsd* | dragonfly*)
10878 # DragonFly does not have aout. When/if they implement a new
10879 # versioning mechanism, adjust this.
10880 if test -x /usr/bin/objformat; then
10881 objformat=`/usr/bin/objformat`
10882 else
10883 case $host_os in
10884 freebsd[23].*) objformat=aout ;;
10885 *) objformat=elf ;;
10886 esac
10887 fi
10888 version_type=freebsd-$objformat
10889 case $version_type in
10890 freebsd-elf*)
10891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10892 need_version=no
10893 need_lib_prefix=no
10894 ;;
10895 freebsd-*)
10896 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10897 need_version=yes
10898 ;;
10899 esac
10900 shlibpath_var=LD_LIBRARY_PATH
10901 case $host_os in
10902 freebsd2.*)
10903 shlibpath_overrides_runpath=yes
10904 ;;
10905 freebsd3.[01]* | freebsdelf3.[01]*)
10906 shlibpath_overrides_runpath=yes
10907 hardcode_into_libs=yes
10908 ;;
10909 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10910 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10911 shlibpath_overrides_runpath=no
10912 hardcode_into_libs=yes
10913 ;;
10914 *) # from 4.6 on, and DragonFly
10915 shlibpath_overrides_runpath=yes
10916 hardcode_into_libs=yes
10917 ;;
10918 esac
10919 ;;
10920
10921 gnu*)
10922 version_type=linux
10923 need_lib_prefix=no
10924 need_version=no
10925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10926 soname_spec='${libname}${release}${shared_ext}$major'
10927 shlibpath_var=LD_LIBRARY_PATH
10928 hardcode_into_libs=yes
10929 ;;
10930
10931 haiku*)
10932 version_type=linux
10933 need_lib_prefix=no
10934 need_version=no
10935 dynamic_linker="$host_os runtime_loader"
10936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10937 soname_spec='${libname}${release}${shared_ext}$major'
10938 shlibpath_var=LIBRARY_PATH
10939 shlibpath_overrides_runpath=yes
10940 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10941 hardcode_into_libs=yes
10942 ;;
10943
10944 hpux9* | hpux10* | hpux11*)
10945 # Give a soname corresponding to the major version so that dld.sl refuses to
10946 # link against other versions.
10947 version_type=sunos
10948 need_lib_prefix=no
10949 need_version=no
10950 case $host_cpu in
10951 ia64*)
10952 shrext_cmds='.so'
10953 hardcode_into_libs=yes
10954 dynamic_linker="$host_os dld.so"
10955 shlibpath_var=LD_LIBRARY_PATH
10956 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10958 soname_spec='${libname}${release}${shared_ext}$major'
10959 if test "X$HPUX_IA64_MODE" = X32; then
10960 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10961 else
10962 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10963 fi
10964 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10965 ;;
10966 hppa*64*)
10967 shrext_cmds='.sl'
10968 hardcode_into_libs=yes
10969 dynamic_linker="$host_os dld.sl"
10970 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10971 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10973 soname_spec='${libname}${release}${shared_ext}$major'
10974 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10975 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10976 ;;
10977 *)
10978 shrext_cmds='.sl'
10979 dynamic_linker="$host_os dld.sl"
10980 shlibpath_var=SHLIB_PATH
10981 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10983 soname_spec='${libname}${release}${shared_ext}$major'
10984 ;;
10985 esac
10986 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10987 postinstall_cmds='chmod 555 $lib'
10988 # or fails outright, so override atomically:
10989 install_override_mode=555
10990 ;;
10991
10992 interix[3-9]*)
10993 version_type=linux
10994 need_lib_prefix=no
10995 need_version=no
10996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10997 soname_spec='${libname}${release}${shared_ext}$major'
10998 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10999 shlibpath_var=LD_LIBRARY_PATH
11000 shlibpath_overrides_runpath=no
11001 hardcode_into_libs=yes
11002 ;;
11003
11004 irix5* | irix6* | nonstopux*)
11005 case $host_os in
11006 nonstopux*) version_type=nonstopux ;;
11007 *)
11008 if test "$lt_cv_prog_gnu_ld" = yes; then
11009 version_type=linux
11010 else
11011 version_type=irix
11012 fi ;;
11013 esac
11014 need_lib_prefix=no
11015 need_version=no
11016 soname_spec='${libname}${release}${shared_ext}$major'
11017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11018 case $host_os in
11019 irix5* | nonstopux*)
11020 libsuff= shlibsuff=
11021 ;;
11022 *)
11023 case $LD in # libtool.m4 will add one of these switches to LD
11024 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11025 libsuff= shlibsuff= libmagic=32-bit;;
11026 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11027 libsuff=32 shlibsuff=N32 libmagic=N32;;
11028 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11029 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11030 *) libsuff= shlibsuff= libmagic=never-match;;
11031 esac
11032 ;;
11033 esac
11034 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11035 shlibpath_overrides_runpath=no
11036 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11037 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11038 hardcode_into_libs=yes
11039 ;;
11040
11041 # No shared lib support for Linux oldld, aout, or coff.
11042 linux*oldld* | linux*aout* | linux*coff*)
11043 dynamic_linker=no
11044 ;;
11045
11046 # This must be Linux ELF.
11047
11048 # uclinux* changes (here and below) have been submitted to the libtool
11049 # project, but have not yet been accepted: they are GCC-local changes
11050 # for the time being. (See
11051 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
11052 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
11053 version_type=linux
11054 need_lib_prefix=no
11055 need_version=no
11056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11057 soname_spec='${libname}${release}${shared_ext}$major'
11058 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11059 shlibpath_var=LD_LIBRARY_PATH
11060 shlibpath_overrides_runpath=no
11061
11062 # Some binutils ld are patched to set DT_RUNPATH
11063 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11064 $as_echo_n "(cached) " >&6
11065 else
11066 lt_cv_shlibpath_overrides_runpath=no
11067 save_LDFLAGS=$LDFLAGS
11068 save_libdir=$libdir
11069 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11070 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11072 /* end confdefs.h. */
11073
11074 int
11075 main ()
11076 {
11077
11078 ;
11079 return 0;
11080 }
11081 _ACEOF
11082 if ac_fn_c_try_link "$LINENO"; then :
11083 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11084 lt_cv_shlibpath_overrides_runpath=yes
11085 fi
11086 fi
11087 rm -f core conftest.err conftest.$ac_objext \
11088 conftest$ac_exeext conftest.$ac_ext
11089 LDFLAGS=$save_LDFLAGS
11090 libdir=$save_libdir
11091
11092 fi
11093
11094 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11095
11096 # This implies no fast_install, which is unacceptable.
11097 # Some rework will be needed to allow for fast_install
11098 # before this can be enabled.
11099 hardcode_into_libs=yes
11100
11101 # Append ld.so.conf contents to the search path
11102 if test -f /etc/ld.so.conf; then
11103 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' ' '`
11104 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11105 fi
11106
11107 # We used to test for /lib/ld.so.1 and disable shared libraries on
11108 # powerpc, because MkLinux only supported shared libraries with the
11109 # GNU dynamic linker. Since this was broken with cross compilers,
11110 # most powerpc-linux boxes support dynamic linking these days and
11111 # people can always --disable-shared, the test was removed, and we
11112 # assume the GNU/Linux dynamic linker is in use.
11113 dynamic_linker='GNU/Linux ld.so'
11114 ;;
11115
11116 netbsd*)
11117 version_type=sunos
11118 need_lib_prefix=no
11119 need_version=no
11120 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11122 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11123 dynamic_linker='NetBSD (a.out) ld.so'
11124 else
11125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11126 soname_spec='${libname}${release}${shared_ext}$major'
11127 dynamic_linker='NetBSD ld.elf_so'
11128 fi
11129 shlibpath_var=LD_LIBRARY_PATH
11130 shlibpath_overrides_runpath=yes
11131 hardcode_into_libs=yes
11132 ;;
11133
11134 newsos6)
11135 version_type=linux
11136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11137 shlibpath_var=LD_LIBRARY_PATH
11138 shlibpath_overrides_runpath=yes
11139 ;;
11140
11141 *nto* | *qnx*)
11142 version_type=qnx
11143 need_lib_prefix=no
11144 need_version=no
11145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11146 soname_spec='${libname}${release}${shared_ext}$major'
11147 shlibpath_var=LD_LIBRARY_PATH
11148 shlibpath_overrides_runpath=no
11149 hardcode_into_libs=yes
11150 dynamic_linker='ldqnx.so'
11151 ;;
11152
11153 openbsd*)
11154 version_type=sunos
11155 sys_lib_dlsearch_path_spec="/usr/lib"
11156 need_lib_prefix=no
11157 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11158 case $host_os in
11159 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11160 *) need_version=no ;;
11161 esac
11162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11163 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11164 shlibpath_var=LD_LIBRARY_PATH
11165 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11166 case $host_os in
11167 openbsd2.[89] | openbsd2.[89].*)
11168 shlibpath_overrides_runpath=no
11169 ;;
11170 *)
11171 shlibpath_overrides_runpath=yes
11172 ;;
11173 esac
11174 else
11175 shlibpath_overrides_runpath=yes
11176 fi
11177 ;;
11178
11179 os2*)
11180 libname_spec='$name'
11181 shrext_cmds=".dll"
11182 need_lib_prefix=no
11183 library_names_spec='$libname${shared_ext} $libname.a'
11184 dynamic_linker='OS/2 ld.exe'
11185 shlibpath_var=LIBPATH
11186 ;;
11187
11188 osf3* | osf4* | osf5*)
11189 version_type=osf
11190 need_lib_prefix=no
11191 need_version=no
11192 soname_spec='${libname}${release}${shared_ext}$major'
11193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11194 shlibpath_var=LD_LIBRARY_PATH
11195 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11196 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11197 ;;
11198
11199 rdos*)
11200 dynamic_linker=no
11201 ;;
11202
11203 solaris*)
11204 version_type=linux
11205 need_lib_prefix=no
11206 need_version=no
11207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11208 soname_spec='${libname}${release}${shared_ext}$major'
11209 shlibpath_var=LD_LIBRARY_PATH
11210 shlibpath_overrides_runpath=yes
11211 hardcode_into_libs=yes
11212 # ldd complains unless libraries are executable
11213 postinstall_cmds='chmod +x $lib'
11214 ;;
11215
11216 sunos4*)
11217 version_type=sunos
11218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11219 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11220 shlibpath_var=LD_LIBRARY_PATH
11221 shlibpath_overrides_runpath=yes
11222 if test "$with_gnu_ld" = yes; then
11223 need_lib_prefix=no
11224 fi
11225 need_version=yes
11226 ;;
11227
11228 sysv4 | sysv4.3*)
11229 version_type=linux
11230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11231 soname_spec='${libname}${release}${shared_ext}$major'
11232 shlibpath_var=LD_LIBRARY_PATH
11233 case $host_vendor in
11234 sni)
11235 shlibpath_overrides_runpath=no
11236 need_lib_prefix=no
11237 runpath_var=LD_RUN_PATH
11238 ;;
11239 siemens)
11240 need_lib_prefix=no
11241 ;;
11242 motorola)
11243 need_lib_prefix=no
11244 need_version=no
11245 shlibpath_overrides_runpath=no
11246 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11247 ;;
11248 esac
11249 ;;
11250
11251 sysv4*MP*)
11252 if test -d /usr/nec ;then
11253 version_type=linux
11254 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11255 soname_spec='$libname${shared_ext}.$major'
11256 shlibpath_var=LD_LIBRARY_PATH
11257 fi
11258 ;;
11259
11260 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11261 version_type=freebsd-elf
11262 need_lib_prefix=no
11263 need_version=no
11264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11265 soname_spec='${libname}${release}${shared_ext}$major'
11266 shlibpath_var=LD_LIBRARY_PATH
11267 shlibpath_overrides_runpath=yes
11268 hardcode_into_libs=yes
11269 if test "$with_gnu_ld" = yes; then
11270 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11271 else
11272 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11273 case $host_os in
11274 sco3.2v5*)
11275 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11276 ;;
11277 esac
11278 fi
11279 sys_lib_dlsearch_path_spec='/usr/lib'
11280 ;;
11281
11282 tpf*)
11283 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11284 version_type=linux
11285 need_lib_prefix=no
11286 need_version=no
11287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11288 shlibpath_var=LD_LIBRARY_PATH
11289 shlibpath_overrides_runpath=no
11290 hardcode_into_libs=yes
11291 ;;
11292
11293 uts4*)
11294 version_type=linux
11295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11296 soname_spec='${libname}${release}${shared_ext}$major'
11297 shlibpath_var=LD_LIBRARY_PATH
11298 ;;
11299
11300 *)
11301 dynamic_linker=no
11302 ;;
11303 esac
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11305 $as_echo "$dynamic_linker" >&6; }
11306 test "$dynamic_linker" = no && can_build_shared=no
11307
11308 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11309 if test "$GCC" = yes; then
11310 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11311 fi
11312
11313 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11314 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11315 fi
11316 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11317 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11318 fi
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11412 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11413 hardcode_action=
11414 if test -n "$hardcode_libdir_flag_spec" ||
11415 test -n "$runpath_var" ||
11416 test "X$hardcode_automatic" = "Xyes" ; then
11417
11418 # We can hardcode non-existent directories.
11419 if test "$hardcode_direct" != no &&
11420 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11421 # have to relink, otherwise we might link with an installed library
11422 # when we should be linking with a yet-to-be-installed one
11423 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11424 test "$hardcode_minus_L" != no; then
11425 # Linking always hardcodes the temporary library directory.
11426 hardcode_action=relink
11427 else
11428 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11429 hardcode_action=immediate
11430 fi
11431 else
11432 # We cannot hardcode anything, or else we can only hardcode existing
11433 # directories.
11434 hardcode_action=unsupported
11435 fi
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11437 $as_echo "$hardcode_action" >&6; }
11438
11439 if test "$hardcode_action" = relink ||
11440 test "$inherit_rpath" = yes; then
11441 # Fast installation is not supported
11442 enable_fast_install=no
11443 elif test "$shlibpath_overrides_runpath" = yes ||
11444 test "$enable_shared" = no; then
11445 # Fast installation is not necessary
11446 enable_fast_install=needless
11447 fi
11448
11449
11450
11451
11452
11453
11454 if test "x$enable_dlopen" != xyes; then
11455 enable_dlopen=unknown
11456 enable_dlopen_self=unknown
11457 enable_dlopen_self_static=unknown
11458 else
11459 lt_cv_dlopen=no
11460 lt_cv_dlopen_libs=
11461
11462 case $host_os in
11463 beos*)
11464 lt_cv_dlopen="load_add_on"
11465 lt_cv_dlopen_libs=
11466 lt_cv_dlopen_self=yes
11467 ;;
11468
11469 mingw* | pw32* | cegcc*)
11470 lt_cv_dlopen="LoadLibrary"
11471 lt_cv_dlopen_libs=
11472 ;;
11473
11474 cygwin*)
11475 lt_cv_dlopen="dlopen"
11476 lt_cv_dlopen_libs=
11477 ;;
11478
11479 darwin*)
11480 # if libdl is installed we need to link against it
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11482 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11483 if ${ac_cv_lib_dl_dlopen+:} false; then :
11484 $as_echo_n "(cached) " >&6
11485 else
11486 ac_check_lib_save_LIBS=$LIBS
11487 LIBS="-ldl $LIBS"
11488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11489 /* end confdefs.h. */
11490
11491 /* Override any GCC internal prototype to avoid an error.
11492 Use char because int might match the return type of a GCC
11493 builtin and then its argument prototype would still apply. */
11494 #ifdef __cplusplus
11495 extern "C"
11496 #endif
11497 char dlopen ();
11498 int
11499 main ()
11500 {
11501 return dlopen ();
11502 ;
11503 return 0;
11504 }
11505 _ACEOF
11506 if ac_fn_c_try_link "$LINENO"; then :
11507 ac_cv_lib_dl_dlopen=yes
11508 else
11509 ac_cv_lib_dl_dlopen=no
11510 fi
11511 rm -f core conftest.err conftest.$ac_objext \
11512 conftest$ac_exeext conftest.$ac_ext
11513 LIBS=$ac_check_lib_save_LIBS
11514 fi
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11516 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11517 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11518 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11519 else
11520
11521 lt_cv_dlopen="dyld"
11522 lt_cv_dlopen_libs=
11523 lt_cv_dlopen_self=yes
11524
11525 fi
11526
11527 ;;
11528
11529 *)
11530 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11531 if test "x$ac_cv_func_shl_load" = xyes; then :
11532 lt_cv_dlopen="shl_load"
11533 else
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11535 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11536 if ${ac_cv_lib_dld_shl_load+:} false; then :
11537 $as_echo_n "(cached) " >&6
11538 else
11539 ac_check_lib_save_LIBS=$LIBS
11540 LIBS="-ldld $LIBS"
11541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11542 /* end confdefs.h. */
11543
11544 /* Override any GCC internal prototype to avoid an error.
11545 Use char because int might match the return type of a GCC
11546 builtin and then its argument prototype would still apply. */
11547 #ifdef __cplusplus
11548 extern "C"
11549 #endif
11550 char shl_load ();
11551 int
11552 main ()
11553 {
11554 return shl_load ();
11555 ;
11556 return 0;
11557 }
11558 _ACEOF
11559 if ac_fn_c_try_link "$LINENO"; then :
11560 ac_cv_lib_dld_shl_load=yes
11561 else
11562 ac_cv_lib_dld_shl_load=no
11563 fi
11564 rm -f core conftest.err conftest.$ac_objext \
11565 conftest$ac_exeext conftest.$ac_ext
11566 LIBS=$ac_check_lib_save_LIBS
11567 fi
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11569 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11570 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11571 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11572 else
11573 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11574 if test "x$ac_cv_func_dlopen" = xyes; then :
11575 lt_cv_dlopen="dlopen"
11576 else
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11578 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11579 if ${ac_cv_lib_dl_dlopen+:} false; then :
11580 $as_echo_n "(cached) " >&6
11581 else
11582 ac_check_lib_save_LIBS=$LIBS
11583 LIBS="-ldl $LIBS"
11584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11585 /* end confdefs.h. */
11586
11587 /* Override any GCC internal prototype to avoid an error.
11588 Use char because int might match the return type of a GCC
11589 builtin and then its argument prototype would still apply. */
11590 #ifdef __cplusplus
11591 extern "C"
11592 #endif
11593 char dlopen ();
11594 int
11595 main ()
11596 {
11597 return dlopen ();
11598 ;
11599 return 0;
11600 }
11601 _ACEOF
11602 if ac_fn_c_try_link "$LINENO"; then :
11603 ac_cv_lib_dl_dlopen=yes
11604 else
11605 ac_cv_lib_dl_dlopen=no
11606 fi
11607 rm -f core conftest.err conftest.$ac_objext \
11608 conftest$ac_exeext conftest.$ac_ext
11609 LIBS=$ac_check_lib_save_LIBS
11610 fi
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11612 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11613 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11614 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11615 else
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11617 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11618 if ${ac_cv_lib_svld_dlopen+:} false; then :
11619 $as_echo_n "(cached) " >&6
11620 else
11621 ac_check_lib_save_LIBS=$LIBS
11622 LIBS="-lsvld $LIBS"
11623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11624 /* end confdefs.h. */
11625
11626 /* Override any GCC internal prototype to avoid an error.
11627 Use char because int might match the return type of a GCC
11628 builtin and then its argument prototype would still apply. */
11629 #ifdef __cplusplus
11630 extern "C"
11631 #endif
11632 char dlopen ();
11633 int
11634 main ()
11635 {
11636 return dlopen ();
11637 ;
11638 return 0;
11639 }
11640 _ACEOF
11641 if ac_fn_c_try_link "$LINENO"; then :
11642 ac_cv_lib_svld_dlopen=yes
11643 else
11644 ac_cv_lib_svld_dlopen=no
11645 fi
11646 rm -f core conftest.err conftest.$ac_objext \
11647 conftest$ac_exeext conftest.$ac_ext
11648 LIBS=$ac_check_lib_save_LIBS
11649 fi
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11651 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11652 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11653 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11654 else
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11656 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11657 if ${ac_cv_lib_dld_dld_link+:} false; then :
11658 $as_echo_n "(cached) " >&6
11659 else
11660 ac_check_lib_save_LIBS=$LIBS
11661 LIBS="-ldld $LIBS"
11662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11663 /* end confdefs.h. */
11664
11665 /* Override any GCC internal prototype to avoid an error.
11666 Use char because int might match the return type of a GCC
11667 builtin and then its argument prototype would still apply. */
11668 #ifdef __cplusplus
11669 extern "C"
11670 #endif
11671 char dld_link ();
11672 int
11673 main ()
11674 {
11675 return dld_link ();
11676 ;
11677 return 0;
11678 }
11679 _ACEOF
11680 if ac_fn_c_try_link "$LINENO"; then :
11681 ac_cv_lib_dld_dld_link=yes
11682 else
11683 ac_cv_lib_dld_dld_link=no
11684 fi
11685 rm -f core conftest.err conftest.$ac_objext \
11686 conftest$ac_exeext conftest.$ac_ext
11687 LIBS=$ac_check_lib_save_LIBS
11688 fi
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11690 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11691 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11692 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11693 fi
11694
11695
11696 fi
11697
11698
11699 fi
11700
11701
11702 fi
11703
11704
11705 fi
11706
11707
11708 fi
11709
11710 ;;
11711 esac
11712
11713 if test "x$lt_cv_dlopen" != xno; then
11714 enable_dlopen=yes
11715 else
11716 enable_dlopen=no
11717 fi
11718
11719 case $lt_cv_dlopen in
11720 dlopen)
11721 save_CPPFLAGS="$CPPFLAGS"
11722 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11723
11724 save_LDFLAGS="$LDFLAGS"
11725 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11726
11727 save_LIBS="$LIBS"
11728 LIBS="$lt_cv_dlopen_libs $LIBS"
11729
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11731 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11732 if ${lt_cv_dlopen_self+:} false; then :
11733 $as_echo_n "(cached) " >&6
11734 else
11735 if test "$cross_compiling" = yes; then :
11736 lt_cv_dlopen_self=cross
11737 else
11738 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11739 lt_status=$lt_dlunknown
11740 cat > conftest.$ac_ext <<_LT_EOF
11741 #line 11741 "configure"
11742 #include "confdefs.h"
11743
11744 #if HAVE_DLFCN_H
11745 #include <dlfcn.h>
11746 #endif
11747
11748 #include <stdio.h>
11749
11750 #ifdef RTLD_GLOBAL
11751 # define LT_DLGLOBAL RTLD_GLOBAL
11752 #else
11753 # ifdef DL_GLOBAL
11754 # define LT_DLGLOBAL DL_GLOBAL
11755 # else
11756 # define LT_DLGLOBAL 0
11757 # endif
11758 #endif
11759
11760 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11761 find out it does not work in some platform. */
11762 #ifndef LT_DLLAZY_OR_NOW
11763 # ifdef RTLD_LAZY
11764 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11765 # else
11766 # ifdef DL_LAZY
11767 # define LT_DLLAZY_OR_NOW DL_LAZY
11768 # else
11769 # ifdef RTLD_NOW
11770 # define LT_DLLAZY_OR_NOW RTLD_NOW
11771 # else
11772 # ifdef DL_NOW
11773 # define LT_DLLAZY_OR_NOW DL_NOW
11774 # else
11775 # define LT_DLLAZY_OR_NOW 0
11776 # endif
11777 # endif
11778 # endif
11779 # endif
11780 #endif
11781
11782 /* When -fvisbility=hidden is used, assume the code has been annotated
11783 correspondingly for the symbols needed. */
11784 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11785 void fnord () __attribute__((visibility("default")));
11786 #endif
11787
11788 void fnord () { int i=42; }
11789 int main ()
11790 {
11791 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11792 int status = $lt_dlunknown;
11793
11794 if (self)
11795 {
11796 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11797 else
11798 {
11799 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11800 else puts (dlerror ());
11801 }
11802 /* dlclose (self); */
11803 }
11804 else
11805 puts (dlerror ());
11806
11807 return status;
11808 }
11809 _LT_EOF
11810 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11811 (eval $ac_link) 2>&5
11812 ac_status=$?
11813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11814 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11815 (./conftest; exit; ) >&5 2>/dev/null
11816 lt_status=$?
11817 case x$lt_status in
11818 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11819 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11820 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11821 esac
11822 else :
11823 # compilation failed
11824 lt_cv_dlopen_self=no
11825 fi
11826 fi
11827 rm -fr conftest*
11828
11829
11830 fi
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11832 $as_echo "$lt_cv_dlopen_self" >&6; }
11833
11834 if test "x$lt_cv_dlopen_self" = xyes; then
11835 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11837 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11838 if ${lt_cv_dlopen_self_static+:} false; then :
11839 $as_echo_n "(cached) " >&6
11840 else
11841 if test "$cross_compiling" = yes; then :
11842 lt_cv_dlopen_self_static=cross
11843 else
11844 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11845 lt_status=$lt_dlunknown
11846 cat > conftest.$ac_ext <<_LT_EOF
11847 #line 11847 "configure"
11848 #include "confdefs.h"
11849
11850 #if HAVE_DLFCN_H
11851 #include <dlfcn.h>
11852 #endif
11853
11854 #include <stdio.h>
11855
11856 #ifdef RTLD_GLOBAL
11857 # define LT_DLGLOBAL RTLD_GLOBAL
11858 #else
11859 # ifdef DL_GLOBAL
11860 # define LT_DLGLOBAL DL_GLOBAL
11861 # else
11862 # define LT_DLGLOBAL 0
11863 # endif
11864 #endif
11865
11866 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11867 find out it does not work in some platform. */
11868 #ifndef LT_DLLAZY_OR_NOW
11869 # ifdef RTLD_LAZY
11870 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11871 # else
11872 # ifdef DL_LAZY
11873 # define LT_DLLAZY_OR_NOW DL_LAZY
11874 # else
11875 # ifdef RTLD_NOW
11876 # define LT_DLLAZY_OR_NOW RTLD_NOW
11877 # else
11878 # ifdef DL_NOW
11879 # define LT_DLLAZY_OR_NOW DL_NOW
11880 # else
11881 # define LT_DLLAZY_OR_NOW 0
11882 # endif
11883 # endif
11884 # endif
11885 # endif
11886 #endif
11887
11888 /* When -fvisbility=hidden is used, assume the code has been annotated
11889 correspondingly for the symbols needed. */
11890 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11891 void fnord () __attribute__((visibility("default")));
11892 #endif
11893
11894 void fnord () { int i=42; }
11895 int main ()
11896 {
11897 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11898 int status = $lt_dlunknown;
11899
11900 if (self)
11901 {
11902 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11903 else
11904 {
11905 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11906 else puts (dlerror ());
11907 }
11908 /* dlclose (self); */
11909 }
11910 else
11911 puts (dlerror ());
11912
11913 return status;
11914 }
11915 _LT_EOF
11916 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11917 (eval $ac_link) 2>&5
11918 ac_status=$?
11919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11920 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11921 (./conftest; exit; ) >&5 2>/dev/null
11922 lt_status=$?
11923 case x$lt_status in
11924 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11925 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11926 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11927 esac
11928 else :
11929 # compilation failed
11930 lt_cv_dlopen_self_static=no
11931 fi
11932 fi
11933 rm -fr conftest*
11934
11935
11936 fi
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11938 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11939 fi
11940
11941 CPPFLAGS="$save_CPPFLAGS"
11942 LDFLAGS="$save_LDFLAGS"
11943 LIBS="$save_LIBS"
11944 ;;
11945 esac
11946
11947 case $lt_cv_dlopen_self in
11948 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11949 *) enable_dlopen_self=unknown ;;
11950 esac
11951
11952 case $lt_cv_dlopen_self_static in
11953 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11954 *) enable_dlopen_self_static=unknown ;;
11955 esac
11956 fi
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974 striplib=
11975 old_striplib=
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11977 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11978 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11979 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11980 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11982 $as_echo "yes" >&6; }
11983 else
11984 # FIXME - insert some real tests, host_os isn't really good enough
11985 case $host_os in
11986 darwin*)
11987 if test -n "$STRIP" ; then
11988 striplib="$STRIP -x"
11989 old_striplib="$STRIP -S"
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11991 $as_echo "yes" >&6; }
11992 else
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11994 $as_echo "no" >&6; }
11995 fi
11996 ;;
11997 *)
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11999 $as_echo "no" >&6; }
12000 ;;
12001 esac
12002 fi
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015 # Report which library types will actually be built
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12017 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12019 $as_echo "$can_build_shared" >&6; }
12020
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12022 $as_echo_n "checking whether to build shared libraries... " >&6; }
12023 test "$can_build_shared" = "no" && enable_shared=no
12024
12025 # On AIX, shared libraries and static libraries use the same namespace, and
12026 # are all built from PIC.
12027 case $host_os in
12028 aix3*)
12029 test "$enable_shared" = yes && enable_static=no
12030 if test -n "$RANLIB"; then
12031 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12032 postinstall_cmds='$RANLIB $lib'
12033 fi
12034 ;;
12035
12036 aix[4-9]*)
12037 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12038 test "$enable_shared" = yes && enable_static=no
12039 fi
12040 ;;
12041 esac
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12043 $as_echo "$enable_shared" >&6; }
12044
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12046 $as_echo_n "checking whether to build static libraries... " >&6; }
12047 # Make sure either enable_shared or enable_static is yes.
12048 test "$enable_shared" = yes || enable_static=yes
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12050 $as_echo "$enable_static" >&6; }
12051
12052
12053
12054
12055 fi
12056 ac_ext=c
12057 ac_cpp='$CPP $CPPFLAGS'
12058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12061
12062 CC="$lt_save_CC"
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076 ac_config_commands="$ac_config_commands libtool"
12077
12078
12079
12080
12081 # Only expand once:
12082
12083
12084
12085
12086
12087 gdc_save_DFLAGS=$GDCFLAGS
12088 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
12089
12090
12091 # Source file extension for D test sources.
12092 ac_ext=d
12093
12094 # Object file extension for compiled D test sources.
12095 objext=o
12096 objext_D=$objext
12097
12098 # Code to be used in simple compile tests
12099 lt_simple_compile_test_code="\
12100 module object;
12101 shared int some_variable = 0;
12102 "
12103
12104 # Code to be used in simple link tests
12105 lt_simple_link_test_code="\
12106 module object;
12107 extern(C) int main() { return 0; }
12108 "
12109
12110 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12111
12112
12113
12114
12115
12116
12117 # If no C compiler was specified, use CC.
12118 LTCC=${LTCC-"$CC"}
12119
12120 # If no C compiler flags were specified, use CFLAGS.
12121 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12122
12123 # Allow CC to be a program name with arguments.
12124 compiler=$CC
12125
12126
12127 # save warnings/boilerplate of simple test code
12128 ac_outfile=conftest.$ac_objext
12129 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12130 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12131 _lt_compiler_boilerplate=`cat conftest.err`
12132 $RM conftest*
12133
12134 ac_outfile=conftest.$ac_objext
12135 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12136 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12137 _lt_linker_boilerplate=`cat conftest.err`
12138 $RM -r conftest*
12139
12140
12141 # Allow CC to be a program name with arguments.
12142 lt_save_CC=$CC
12143 lt_save_CFLAGS=$CFLAGS
12144 lt_save_GCC=$GCC
12145 GCC=yes
12146 CC=${GDC-"gdc"}
12147 CFLAGS=$GDCFLAGS
12148 compiler=$CC
12149 compiler_D=$CC
12150 LD_D=$CC
12151 for cc_temp in $compiler""; do
12152 case $cc_temp in
12153 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12154 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12155 \-*) ;;
12156 *) break;;
12157 esac
12158 done
12159 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12160
12161
12162 # GDC did not exist at the time GCC didn't implicitly link libc in.
12163 archive_cmds_need_lc_D=no
12164
12165 old_archive_cmds_D=$old_archive_cmds
12166 reload_flag_D=$reload_flag
12167 reload_cmds_D=$reload_cmds
12168
12169 ## CAVEAT EMPTOR:
12170 ## There is no encapsulation within the following macros, do not change
12171 ## the running order or otherwise move them around unless you know exactly
12172 ## what you are doing...
12173 if test -n "$compiler"; then
12174
12175 lt_prog_compiler_no_builtin_flag_D=
12176
12177 if test "$GCC" = yes; then
12178 case $cc_basename in
12179 nvcc*)
12180 lt_prog_compiler_no_builtin_flag_D=' -Xcompiler -fno-builtin' ;;
12181 *)
12182 lt_prog_compiler_no_builtin_flag_D=' -fno-builtin' ;;
12183 esac
12184
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12186 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12187 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
12188 $as_echo_n "(cached) " >&6
12189 else
12190 lt_cv_prog_compiler_rtti_exceptions=no
12191 ac_outfile=conftest.$ac_objext
12192 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12193 lt_compiler_flag="-fno-rtti -fno-exceptions"
12194 # Insert the option either (1) after the last *FLAGS variable, or
12195 # (2) before a word containing "conftest.", or (3) at the end.
12196 # Note that $ac_compile itself does not contain backslashes and begins
12197 # with a dollar sign (not a hyphen), so the echo should work correctly.
12198 # The option is referenced via a variable to avoid confusing sed.
12199 lt_compile=`echo "$ac_compile" | $SED \
12200 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12201 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12202 -e 's:$: $lt_compiler_flag:'`
12203 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12204 (eval "$lt_compile" 2>conftest.err)
12205 ac_status=$?
12206 cat conftest.err >&5
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 if (exit $ac_status) && test -s "$ac_outfile"; then
12209 # The compiler can only warn and ignore the option if not recognized
12210 # So say no if there are warnings other than the usual output.
12211 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12212 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12213 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12214 lt_cv_prog_compiler_rtti_exceptions=yes
12215 fi
12216 fi
12217 $RM conftest*
12218
12219 fi
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12221 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12222
12223 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12224 lt_prog_compiler_no_builtin_flag_D="$lt_prog_compiler_no_builtin_flag_D -fno-rtti -fno-exceptions"
12225 else
12226 :
12227 fi
12228
12229 fi
12230
12231
12232
12233 lt_prog_compiler_wl_D=
12234 lt_prog_compiler_pic_D=
12235 lt_prog_compiler_static_D=
12236
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12238 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12239
12240 if test "$GCC" = yes; then
12241 lt_prog_compiler_wl_D='-Wl,'
12242 lt_prog_compiler_static_D='-static'
12243
12244 case $host_os in
12245 aix*)
12246 # All AIX code is PIC.
12247 if test "$host_cpu" = ia64; then
12248 # AIX 5 now supports IA64 processor
12249 lt_prog_compiler_static_D='-Bstatic'
12250 fi
12251 lt_prog_compiler_pic_D='-fPIC'
12252 ;;
12253
12254 amigaos*)
12255 case $host_cpu in
12256 powerpc)
12257 # see comment about AmigaOS4 .so support
12258 lt_prog_compiler_pic_D='-fPIC'
12259 ;;
12260 m68k)
12261 # FIXME: we need at least 68020 code to build shared libraries, but
12262 # adding the `-m68020' flag to GCC prevents building anything better,
12263 # like `-m68040'.
12264 lt_prog_compiler_pic_D='-m68020 -resident32 -malways-restore-a4'
12265 ;;
12266 esac
12267 ;;
12268
12269 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12270 # PIC is the default for these OSes.
12271 ;;
12272
12273 mingw* | cygwin* | pw32* | os2* | cegcc*)
12274 # This hack is so that the source file can tell whether it is being
12275 # built for inclusion in a dll (and should export symbols for example).
12276 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12277 # (--disable-auto-import) libraries
12278 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12279 ;;
12280
12281 darwin* | rhapsody*)
12282 # PIC is the default on this platform
12283 # Common symbols not allowed in MH_DYLIB files
12284 lt_prog_compiler_pic_D='-fno-common'
12285 ;;
12286
12287 haiku*)
12288 # PIC is the default for Haiku.
12289 # The "-static" flag exists, but is broken.
12290 lt_prog_compiler_static_D=
12291 ;;
12292
12293 hpux*)
12294 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12295 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12296 # sets the default TLS model and affects inlining.
12297 case $host_cpu in
12298 hppa*64*)
12299 # +Z the default
12300 ;;
12301 *)
12302 lt_prog_compiler_pic_D='-fPIC'
12303 ;;
12304 esac
12305 ;;
12306
12307 interix[3-9]*)
12308 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12309 # Instead, we relocate shared libraries at runtime.
12310 ;;
12311
12312 msdosdjgpp*)
12313 # Just because we use GCC doesn't mean we suddenly get shared libraries
12314 # on systems that don't support them.
12315 lt_prog_compiler_can_build_shared_D=no
12316 enable_shared=no
12317 ;;
12318
12319 *nto* | *qnx*)
12320 # QNX uses GNU C++, but need to define -shared option too, otherwise
12321 # it will coredump.
12322 lt_prog_compiler_pic_D='-fPIC -shared'
12323 ;;
12324
12325 sysv4*MP*)
12326 if test -d /usr/nec; then
12327 lt_prog_compiler_pic_D=-Kconform_pic
12328 fi
12329 ;;
12330
12331 *)
12332 lt_prog_compiler_pic_D='-fPIC'
12333 ;;
12334 esac
12335
12336 case $cc_basename in
12337 nvcc*) # Cuda Compiler Driver 2.2
12338 lt_prog_compiler_wl_D='-Xlinker '
12339 lt_prog_compiler_pic_D='-Xcompiler -fPIC'
12340 ;;
12341 esac
12342 else
12343 # PORTME Check for flag to pass linker flags through the system compiler.
12344 case $host_os in
12345 aix*)
12346 lt_prog_compiler_wl_D='-Wl,'
12347 if test "$host_cpu" = ia64; then
12348 # AIX 5 now supports IA64 processor
12349 lt_prog_compiler_static_D='-Bstatic'
12350 else
12351 lt_prog_compiler_static_D='-bnso -bI:/lib/syscalls.exp'
12352 fi
12353 ;;
12354
12355 mingw* | cygwin* | pw32* | os2* | cegcc*)
12356 # This hack is so that the source file can tell whether it is being
12357 # built for inclusion in a dll (and should export symbols for example).
12358 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12359 ;;
12360
12361 hpux9* | hpux10* | hpux11*)
12362 lt_prog_compiler_wl_D='-Wl,'
12363 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12364 # not for PA HP-UX.
12365 case $host_cpu in
12366 hppa*64*|ia64*)
12367 # +Z the default
12368 ;;
12369 *)
12370 lt_prog_compiler_pic_D='+Z'
12371 ;;
12372 esac
12373 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12374 lt_prog_compiler_static_D='${wl}-a ${wl}archive'
12375 ;;
12376
12377 irix5* | irix6* | nonstopux*)
12378 lt_prog_compiler_wl_D='-Wl,'
12379 # PIC (with -KPIC) is the default.
12380 lt_prog_compiler_static_D='-non_shared'
12381 ;;
12382
12383 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12384 case $cc_basename in
12385 # old Intel for x86_64 which still supported -KPIC.
12386 ecc*)
12387 lt_prog_compiler_wl_D='-Wl,'
12388 lt_prog_compiler_pic_D='-KPIC'
12389 lt_prog_compiler_static_D='-static'
12390 ;;
12391 # icc used to be incompatible with GCC.
12392 # ICC 10 doesn't accept -KPIC any more.
12393 icc* | ifort*)
12394 lt_prog_compiler_wl_D='-Wl,'
12395 lt_prog_compiler_pic_D='-fPIC'
12396 lt_prog_compiler_static_D='-static'
12397 ;;
12398 # Lahey Fortran 8.1.
12399 lf95*)
12400 lt_prog_compiler_wl_D='-Wl,'
12401 lt_prog_compiler_pic_D='--shared'
12402 lt_prog_compiler_static_D='--static'
12403 ;;
12404 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12405 # Portland Group compilers (*not* the Pentium gcc compiler,
12406 # which looks to be a dead project)
12407 lt_prog_compiler_wl_D='-Wl,'
12408 lt_prog_compiler_pic_D='-fpic'
12409 lt_prog_compiler_static_D='-Bstatic'
12410 ;;
12411 ccc*)
12412 lt_prog_compiler_wl_D='-Wl,'
12413 # All Alpha code is PIC.
12414 lt_prog_compiler_static_D='-non_shared'
12415 ;;
12416 xl* | bgxl* | bgf* | mpixl*)
12417 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12418 lt_prog_compiler_wl_D='-Wl,'
12419 lt_prog_compiler_pic_D='-qpic'
12420 lt_prog_compiler_static_D='-qstaticlink'
12421 ;;
12422 *)
12423 case `$CC -V 2>&1 | sed 5q` in
12424 *Sun\ F* | *Sun*Fortran*)
12425 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12426 lt_prog_compiler_pic_D='-KPIC'
12427 lt_prog_compiler_static_D='-Bstatic'
12428 lt_prog_compiler_wl_D=''
12429 ;;
12430 *Sun\ C*)
12431 # Sun C 5.9
12432 lt_prog_compiler_pic_D='-KPIC'
12433 lt_prog_compiler_static_D='-Bstatic'
12434 lt_prog_compiler_wl_D='-Wl,'
12435 ;;
12436 esac
12437 ;;
12438 esac
12439 ;;
12440
12441 newsos6)
12442 lt_prog_compiler_pic_D='-KPIC'
12443 lt_prog_compiler_static_D='-Bstatic'
12444 ;;
12445
12446 *nto* | *qnx*)
12447 # QNX uses GNU C++, but need to define -shared option too, otherwise
12448 # it will coredump.
12449 lt_prog_compiler_pic_D='-fPIC -shared'
12450 ;;
12451
12452 osf3* | osf4* | osf5*)
12453 lt_prog_compiler_wl_D='-Wl,'
12454 # All OSF/1 code is PIC.
12455 lt_prog_compiler_static_D='-non_shared'
12456 ;;
12457
12458 rdos*)
12459 lt_prog_compiler_static_D='-non_shared'
12460 ;;
12461
12462 solaris*)
12463 lt_prog_compiler_pic_D='-KPIC'
12464 lt_prog_compiler_static_D='-Bstatic'
12465 case $cc_basename in
12466 f77* | f90* | f95*)
12467 lt_prog_compiler_wl_D='-Qoption ld ';;
12468 *)
12469 lt_prog_compiler_wl_D='-Wl,';;
12470 esac
12471 ;;
12472
12473 sunos4*)
12474 lt_prog_compiler_wl_D='-Qoption ld '
12475 lt_prog_compiler_pic_D='-PIC'
12476 lt_prog_compiler_static_D='-Bstatic'
12477 ;;
12478
12479 sysv4 | sysv4.2uw2* | sysv4.3*)
12480 lt_prog_compiler_wl_D='-Wl,'
12481 lt_prog_compiler_pic_D='-KPIC'
12482 lt_prog_compiler_static_D='-Bstatic'
12483 ;;
12484
12485 sysv4*MP*)
12486 if test -d /usr/nec ;then
12487 lt_prog_compiler_pic_D='-Kconform_pic'
12488 lt_prog_compiler_static_D='-Bstatic'
12489 fi
12490 ;;
12491
12492 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12493 lt_prog_compiler_wl_D='-Wl,'
12494 lt_prog_compiler_pic_D='-KPIC'
12495 lt_prog_compiler_static_D='-Bstatic'
12496 ;;
12497
12498 unicos*)
12499 lt_prog_compiler_wl_D='-Wl,'
12500 lt_prog_compiler_can_build_shared_D=no
12501 ;;
12502
12503 uts4*)
12504 lt_prog_compiler_pic_D='-pic'
12505 lt_prog_compiler_static_D='-Bstatic'
12506 ;;
12507
12508 *)
12509 lt_prog_compiler_can_build_shared_D=no
12510 ;;
12511 esac
12512 fi
12513
12514 case $host_os in
12515 # For platforms which do not support PIC, -DPIC is meaningless:
12516 *djgpp*)
12517 lt_prog_compiler_pic_D=
12518 ;;
12519 *)
12520 lt_prog_compiler_pic_D="$lt_prog_compiler_pic_D"
12521 ;;
12522 esac
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_D" >&5
12524 $as_echo "$lt_prog_compiler_pic_D" >&6; }
12525
12526
12527
12528 #
12529 # Check to make sure the PIC flag actually works.
12530 #
12531 if test -n "$lt_prog_compiler_pic_D"; then
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_D works" >&5
12533 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_D works... " >&6; }
12534 if ${lt_cv_prog_compiler_pic_works_D+:} false; then :
12535 $as_echo_n "(cached) " >&6
12536 else
12537 lt_cv_prog_compiler_pic_works_D=no
12538 ac_outfile=conftest.$ac_objext
12539 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12540 lt_compiler_flag="$lt_prog_compiler_pic_D"
12541 # Insert the option either (1) after the last *FLAGS variable, or
12542 # (2) before a word containing "conftest.", or (3) at the end.
12543 # Note that $ac_compile itself does not contain backslashes and begins
12544 # with a dollar sign (not a hyphen), so the echo should work correctly.
12545 # The option is referenced via a variable to avoid confusing sed.
12546 lt_compile=`echo "$ac_compile" | $SED \
12547 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12548 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12549 -e 's:$: $lt_compiler_flag:'`
12550 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12551 (eval "$lt_compile" 2>conftest.err)
12552 ac_status=$?
12553 cat conftest.err >&5
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 if (exit $ac_status) && test -s "$ac_outfile"; then
12556 # The compiler can only warn and ignore the option if not recognized
12557 # So say no if there are warnings other than the usual output.
12558 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12559 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12560 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12561 lt_cv_prog_compiler_pic_works_D=yes
12562 fi
12563 fi
12564 $RM conftest*
12565
12566 fi
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_D" >&5
12568 $as_echo "$lt_cv_prog_compiler_pic_works_D" >&6; }
12569
12570 if test x"$lt_cv_prog_compiler_pic_works_D" = xyes; then
12571 case $lt_prog_compiler_pic_D in
12572 "" | " "*) ;;
12573 *) lt_prog_compiler_pic_D=" $lt_prog_compiler_pic_D" ;;
12574 esac
12575 else
12576 lt_prog_compiler_pic_D=
12577 lt_prog_compiler_can_build_shared_D=no
12578 fi
12579
12580 fi
12581
12582
12583
12584 #
12585 # Check to make sure the static flag actually works.
12586 #
12587 wl=$lt_prog_compiler_wl_D eval lt_tmp_static_flag=\"$lt_prog_compiler_static_D\"
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12589 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12590 if ${lt_cv_prog_compiler_static_works_D+:} false; then :
12591 $as_echo_n "(cached) " >&6
12592 else
12593 lt_cv_prog_compiler_static_works_D=no
12594 save_LDFLAGS="$LDFLAGS"
12595 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12596 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12597 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12598 # The linker can only warn and ignore the option if not recognized
12599 # So say no if there are warnings
12600 if test -s conftest.err; then
12601 # Append any errors to the config.log.
12602 cat conftest.err 1>&5
12603 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12604 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12605 if diff conftest.exp conftest.er2 >/dev/null; then
12606 lt_cv_prog_compiler_static_works_D=yes
12607 fi
12608 else
12609 lt_cv_prog_compiler_static_works_D=yes
12610 fi
12611 fi
12612 $RM -r conftest*
12613 LDFLAGS="$save_LDFLAGS"
12614
12615 fi
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_D" >&5
12617 $as_echo "$lt_cv_prog_compiler_static_works_D" >&6; }
12618
12619 if test x"$lt_cv_prog_compiler_static_works_D" = xyes; then
12620 :
12621 else
12622 lt_prog_compiler_static_D=
12623 fi
12624
12625
12626
12627
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12629 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12630 if ${lt_cv_prog_compiler_c_o_D+:} false; then :
12631 $as_echo_n "(cached) " >&6
12632 else
12633 lt_cv_prog_compiler_c_o_D=no
12634 $RM -r conftest 2>/dev/null
12635 mkdir conftest
12636 cd conftest
12637 mkdir out
12638 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12639
12640 lt_compiler_flag="-o out/conftest2.$ac_objext"
12641 # Insert the option either (1) after the last *FLAGS variable, or
12642 # (2) before a word containing "conftest.", or (3) at the end.
12643 # Note that $ac_compile itself does not contain backslashes and begins
12644 # with a dollar sign (not a hyphen), so the echo should work correctly.
12645 lt_compile=`echo "$ac_compile" | $SED \
12646 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12647 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12648 -e 's:$: $lt_compiler_flag:'`
12649 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12650 (eval "$lt_compile" 2>out/conftest.err)
12651 ac_status=$?
12652 cat out/conftest.err >&5
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12655 then
12656 # The compiler can only warn and ignore the option if not recognized
12657 # So say no if there are warnings
12658 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12659 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12660 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12661 lt_cv_prog_compiler_c_o_D=yes
12662 fi
12663 fi
12664 chmod u+w . 2>&5
12665 $RM conftest*
12666 # SGI C++ compiler will create directory out/ii_files/ for
12667 # template instantiation
12668 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12669 $RM out/* && rmdir out
12670 cd ..
12671 $RM -r conftest
12672 $RM conftest*
12673
12674 fi
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12676 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12677
12678
12679
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12681 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12682 if ${lt_cv_prog_compiler_c_o_D+:} false; then :
12683 $as_echo_n "(cached) " >&6
12684 else
12685 lt_cv_prog_compiler_c_o_D=no
12686 $RM -r conftest 2>/dev/null
12687 mkdir conftest
12688 cd conftest
12689 mkdir out
12690 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12691
12692 lt_compiler_flag="-o out/conftest2.$ac_objext"
12693 # Insert the option either (1) after the last *FLAGS variable, or
12694 # (2) before a word containing "conftest.", or (3) at the end.
12695 # Note that $ac_compile itself does not contain backslashes and begins
12696 # with a dollar sign (not a hyphen), so the echo should work correctly.
12697 lt_compile=`echo "$ac_compile" | $SED \
12698 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12699 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12700 -e 's:$: $lt_compiler_flag:'`
12701 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12702 (eval "$lt_compile" 2>out/conftest.err)
12703 ac_status=$?
12704 cat out/conftest.err >&5
12705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12707 then
12708 # The compiler can only warn and ignore the option if not recognized
12709 # So say no if there are warnings
12710 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12711 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12712 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12713 lt_cv_prog_compiler_c_o_D=yes
12714 fi
12715 fi
12716 chmod u+w . 2>&5
12717 $RM conftest*
12718 # SGI C++ compiler will create directory out/ii_files/ for
12719 # template instantiation
12720 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12721 $RM out/* && rmdir out
12722 cd ..
12723 $RM -r conftest
12724 $RM conftest*
12725
12726 fi
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12728 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12729
12730
12731
12732
12733 hard_links="nottested"
12734 if test "$lt_cv_prog_compiler_c_o_D" = no && test "$need_locks" != no; then
12735 # do not overwrite the value of need_locks provided by the user
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12737 $as_echo_n "checking if we can lock with hard links... " >&6; }
12738 hard_links=yes
12739 $RM conftest*
12740 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12741 touch conftest.a
12742 ln conftest.a conftest.b 2>&5 || hard_links=no
12743 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12745 $as_echo "$hard_links" >&6; }
12746 if test "$hard_links" = no; then
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12748 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12749 need_locks=warn
12750 fi
12751 else
12752 need_locks=no
12753 fi
12754
12755
12756
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12758 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12759
12760 runpath_var=
12761 allow_undefined_flag_D=
12762 always_export_symbols_D=no
12763 archive_cmds_D=
12764 archive_expsym_cmds_D=
12765 compiler_needs_object_D=no
12766 enable_shared_with_static_runtimes_D=no
12767 export_dynamic_flag_spec_D=
12768 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12769 hardcode_automatic_D=no
12770 hardcode_direct_D=no
12771 hardcode_direct_absolute_D=no
12772 hardcode_libdir_flag_spec_D=
12773 hardcode_libdir_flag_spec_ld_D=
12774 hardcode_libdir_separator_D=
12775 hardcode_minus_L_D=no
12776 hardcode_shlibpath_var_D=unsupported
12777 inherit_rpath_D=no
12778 link_all_deplibs_D=unknown
12779 module_cmds_D=
12780 module_expsym_cmds_D=
12781 old_archive_from_new_cmds_D=
12782 old_archive_from_expsyms_cmds_D=
12783 thread_safe_flag_spec_D=
12784 whole_archive_flag_spec_D=
12785 # include_expsyms should be a list of space-separated symbols to be *always*
12786 # included in the symbol list
12787 include_expsyms_D=
12788 # exclude_expsyms can be an extended regexp of symbols to exclude
12789 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12790 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12791 # as well as any symbol that contains `d'.
12792 exclude_expsyms_D='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12793 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12794 # platforms (ab)use it in PIC code, but their linkers get confused if
12795 # the symbol is explicitly referenced. Since portable code cannot
12796 # rely on this symbol name, it's probably fine to never include it in
12797 # preloaded symbol tables.
12798 # Exclude shared library initialization/finalization symbols.
12799 extract_expsyms_cmds=
12800
12801 case $host_os in
12802 cygwin* | mingw* | pw32* | cegcc*)
12803 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12804 # When not using gcc, we currently assume that we are using
12805 # Microsoft Visual C++.
12806 if test "$GCC" != yes; then
12807 with_gnu_ld=no
12808 fi
12809 ;;
12810 interix*)
12811 # we just hope/assume this is gcc and not c89 (= MSVC++)
12812 with_gnu_ld=yes
12813 ;;
12814 openbsd*)
12815 with_gnu_ld=no
12816 ;;
12817 esac
12818
12819 ld_shlibs_D=yes
12820
12821 # On some targets, GNU ld is compatible enough with the native linker
12822 # that we're better off using the native interface for both.
12823 lt_use_gnu_ld_interface=no
12824 if test "$with_gnu_ld" = yes; then
12825 case $host_os in
12826 aix*)
12827 # The AIX port of GNU ld has always aspired to compatibility
12828 # with the native linker. However, as the warning in the GNU ld
12829 # block says, versions before 2.19.5* couldn't really create working
12830 # shared libraries, regardless of the interface used.
12831 case `$LD -v 2>&1` in
12832 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12833 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12834 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12835 *)
12836 lt_use_gnu_ld_interface=yes
12837 ;;
12838 esac
12839 ;;
12840 *)
12841 lt_use_gnu_ld_interface=yes
12842 ;;
12843 esac
12844 fi
12845
12846 if test "$lt_use_gnu_ld_interface" = yes; then
12847 # If archive_cmds runs LD, not CC, wlarc should be empty
12848 wlarc='${wl}'
12849
12850 # Set some defaults for GNU ld with shared library support. These
12851 # are reset later if shared libraries are not supported. Putting them
12852 # here allows them to be overridden if necessary.
12853 runpath_var=LD_RUN_PATH
12854 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12855 export_dynamic_flag_spec_D='${wl}--export-dynamic'
12856 # ancient GNU ld didn't support --whole-archive et. al.
12857 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12858 whole_archive_flag_spec_D="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12859 else
12860 whole_archive_flag_spec_D=
12861 fi
12862 supports_anon_versioning=no
12863 case `$LD -v 2>&1` in
12864 *GNU\ gold*) supports_anon_versioning=yes ;;
12865 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12866 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12867 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12868 *\ 2.11.*) ;; # other 2.11 versions
12869 *) supports_anon_versioning=yes ;;
12870 esac
12871
12872 # See if GNU ld supports shared libraries.
12873 case $host_os in
12874 aix[3-9]*)
12875 # On AIX/PPC, the GNU linker is very broken
12876 if test "$host_cpu" != ia64; then
12877 ld_shlibs_D=no
12878 cat <<_LT_EOF 1>&2
12879
12880 *** Warning: the GNU linker, at least up to release 2.19, is reported
12881 *** to be unable to reliably create shared libraries on AIX.
12882 *** Therefore, libtool is disabling shared libraries support. If you
12883 *** really care for shared libraries, you may want to install binutils
12884 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12885 *** You will then need to restart the configuration process.
12886
12887 _LT_EOF
12888 fi
12889 ;;
12890
12891 amigaos*)
12892 case $host_cpu in
12893 powerpc)
12894 # see comment about AmigaOS4 .so support
12895 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12896 archive_expsym_cmds_D=''
12897 ;;
12898 m68k)
12899 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)'
12900 hardcode_libdir_flag_spec_D='-L$libdir'
12901 hardcode_minus_L_D=yes
12902 ;;
12903 esac
12904 ;;
12905
12906 beos*)
12907 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12908 allow_undefined_flag_D=unsupported
12909 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12910 # support --undefined. This deserves some investigation. FIXME
12911 archive_cmds_D='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12912 else
12913 ld_shlibs_D=no
12914 fi
12915 ;;
12916
12917 cygwin* | mingw* | pw32* | cegcc*)
12918 # _LT_TAGVAR(hardcode_libdir_flag_spec, D) is actually meaningless,
12919 # as there is no search path for DLLs.
12920 hardcode_libdir_flag_spec_D='-L$libdir'
12921 export_dynamic_flag_spec_D='${wl}--export-all-symbols'
12922 allow_undefined_flag_D=unsupported
12923 always_export_symbols_D=no
12924 enable_shared_with_static_runtimes_D=yes
12925 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12926
12927 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12928 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12929 # If the export-symbols file already is a .def file (1st line
12930 # is EXPORTS), use it as is; otherwise, prepend...
12931 archive_expsym_cmds_D='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12932 cp $export_symbols $output_objdir/$soname.def;
12933 else
12934 echo EXPORTS > $output_objdir/$soname.def;
12935 cat $export_symbols >> $output_objdir/$soname.def;
12936 fi~
12937 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12938 else
12939 ld_shlibs_D=no
12940 fi
12941 ;;
12942
12943 haiku*)
12944 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12945 link_all_deplibs_D=yes
12946 ;;
12947
12948 interix[3-9]*)
12949 hardcode_direct_D=no
12950 hardcode_shlibpath_var_D=no
12951 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
12952 export_dynamic_flag_spec_D='${wl}-E'
12953 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12954 # Instead, shared libraries are loaded at an image base (0x10000000 by
12955 # default) and relocated if they conflict, which is a slow very memory
12956 # consuming and fragmenting process. To avoid this, we pick a random,
12957 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12958 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12959 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'
12960 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'
12961 ;;
12962
12963 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
12964 tmp_diet=no
12965 if test "$host_os" = linux-dietlibc; then
12966 case $cc_basename in
12967 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12968 esac
12969 fi
12970 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12971 && test "$tmp_diet" = no
12972 then
12973 tmp_addflag=' $pic_flag'
12974 tmp_sharedflag='-shared'
12975 case $cc_basename,$host_cpu in
12976 pgcc*) # Portland Group C compiler
12977 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'
12978 tmp_addflag=' $pic_flag'
12979 ;;
12980 pgf77* | pgf90* | pgf95* | pgfortran*)
12981 # Portland Group f77 and f90 compilers
12982 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'
12983 tmp_addflag=' $pic_flag -Mnomain' ;;
12984 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12985 tmp_addflag=' -i_dynamic' ;;
12986 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12987 tmp_addflag=' -i_dynamic -nofor_main' ;;
12988 ifc* | ifort*) # Intel Fortran compiler
12989 tmp_addflag=' -nofor_main' ;;
12990 lf95*) # Lahey Fortran 8.1
12991 whole_archive_flag_spec_D=
12992 tmp_sharedflag='--shared' ;;
12993 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12994 tmp_sharedflag='-qmkshrobj'
12995 tmp_addflag= ;;
12996 nvcc*) # Cuda Compiler Driver 2.2
12997 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'
12998 compiler_needs_object_D=yes
12999 ;;
13000 esac
13001 case `$CC -V 2>&1 | sed 5q` in
13002 *Sun\ C*) # Sun C 5.9
13003 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'
13004 compiler_needs_object_D=yes
13005 tmp_sharedflag='-G' ;;
13006 *Sun\ F*) # Sun Fortran 8.3
13007 tmp_sharedflag='-G' ;;
13008 esac
13009 archive_cmds_D='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13010
13011 if test "x$supports_anon_versioning" = xyes; then
13012 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
13013 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13014 echo "local: *; };" >> $output_objdir/$libname.ver~
13015 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13016 fi
13017
13018 case $cc_basename in
13019 xlf* | bgf* | bgxlf* | mpixlf*)
13020 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13021 whole_archive_flag_spec_D='--whole-archive$convenience --no-whole-archive'
13022 hardcode_libdir_flag_spec_D=
13023 hardcode_libdir_flag_spec_ld_D='-rpath $libdir'
13024 archive_cmds_D='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13025 if test "x$supports_anon_versioning" = xyes; then
13026 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
13027 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13028 echo "local: *; };" >> $output_objdir/$libname.ver~
13029 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13030 fi
13031 ;;
13032 esac
13033 else
13034 ld_shlibs_D=no
13035 fi
13036 ;;
13037
13038 netbsd*)
13039 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13040 archive_cmds_D='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13041 wlarc=
13042 else
13043 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13044 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13045 fi
13046 ;;
13047
13048 solaris*)
13049 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13050 ld_shlibs_D=no
13051 cat <<_LT_EOF 1>&2
13052
13053 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13054 *** create shared libraries on Solaris systems. Therefore, libtool
13055 *** is disabling shared libraries support. We urge you to upgrade GNU
13056 *** binutils to release 2.9.1 or newer. Another option is to modify
13057 *** your PATH or compiler configuration so that the native linker is
13058 *** used, and then restart.
13059
13060 _LT_EOF
13061 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13062 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13063 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13064 else
13065 ld_shlibs_D=no
13066 fi
13067 ;;
13068
13069 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13070 case `$LD -v 2>&1` in
13071 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13072 ld_shlibs_D=no
13073 cat <<_LT_EOF 1>&2
13074
13075 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13076 *** reliably create shared libraries on SCO systems. Therefore, libtool
13077 *** is disabling shared libraries support. We urge you to upgrade GNU
13078 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13079 *** your PATH or compiler configuration so that the native linker is
13080 *** used, and then restart.
13081
13082 _LT_EOF
13083 ;;
13084 *)
13085 # For security reasons, it is highly recommended that you always
13086 # use absolute paths for naming shared libraries, and exclude the
13087 # DT_RUNPATH tag from executables and libraries. But doing so
13088 # requires that you compile everything twice, which is a pain.
13089 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13090 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13091 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13092 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13093 else
13094 ld_shlibs_D=no
13095 fi
13096 ;;
13097 esac
13098 ;;
13099
13100 sunos4*)
13101 archive_cmds_D='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13102 wlarc=
13103 hardcode_direct_D=yes
13104 hardcode_shlibpath_var_D=no
13105 ;;
13106
13107 *)
13108 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13109 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13110 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13111 else
13112 ld_shlibs_D=no
13113 fi
13114 ;;
13115 esac
13116
13117 if test "$ld_shlibs_D" = no; then
13118 runpath_var=
13119 hardcode_libdir_flag_spec_D=
13120 export_dynamic_flag_spec_D=
13121 whole_archive_flag_spec_D=
13122 fi
13123 else
13124 # PORTME fill in a description of your system's linker (not GNU ld)
13125 case $host_os in
13126 aix3*)
13127 allow_undefined_flag_D=unsupported
13128 always_export_symbols_D=yes
13129 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'
13130 # Note: this linker hardcodes the directories in LIBPATH if there
13131 # are no directories specified by -L.
13132 hardcode_minus_L_D=yes
13133 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13134 # Neither direct hardcoding nor static linking is supported with a
13135 # broken collect2.
13136 hardcode_direct_D=unsupported
13137 fi
13138 ;;
13139
13140 aix[4-9]*)
13141 if test "$host_cpu" = ia64; then
13142 # On IA64, the linker does run time linking by default, so we don't
13143 # have to do anything special.
13144 aix_use_runtimelinking=no
13145 exp_sym_flag='-Bexport'
13146 no_entry_flag=""
13147 else
13148 # If we're using GNU nm, then we don't want the "-C" option.
13149 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13150 # Also, AIX nm treats weak defined symbols like other global
13151 # defined symbols, whereas GNU nm marks them as "W".
13152 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13153 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'
13154 else
13155 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'
13156 fi
13157 aix_use_runtimelinking=no
13158
13159 # Test if we are trying to use run time linking or normal
13160 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13161 # need to do runtime linking.
13162 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13163 for ld_flag in $LDFLAGS; do
13164 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13165 aix_use_runtimelinking=yes
13166 break
13167 fi
13168 done
13169 ;;
13170 esac
13171
13172 exp_sym_flag='-bexport'
13173 no_entry_flag='-bnoentry'
13174 fi
13175
13176 # When large executables or shared objects are built, AIX ld can
13177 # have problems creating the table of contents. If linking a library
13178 # or program results in "error TOC overflow" add -mminimal-toc to
13179 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13180 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13181
13182 archive_cmds_D=''
13183 hardcode_direct_D=yes
13184 hardcode_direct_absolute_D=yes
13185 hardcode_libdir_separator_D=':'
13186 link_all_deplibs_D=yes
13187 file_list_spec_D='${wl}-f,'
13188
13189 if test "$GCC" = yes; then
13190 case $host_os in aix4.[012]|aix4.[012].*)
13191 # We only want to do this on AIX 4.2 and lower, the check
13192 # below for broken collect2 doesn't work under 4.3+
13193 collect2name=`${CC} -print-prog-name=collect2`
13194 if test -f "$collect2name" &&
13195 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13196 then
13197 # We have reworked collect2
13198 :
13199 else
13200 # We have old collect2
13201 hardcode_direct_D=unsupported
13202 # It fails to find uninstalled libraries when the uninstalled
13203 # path is not listed in the libpath. Setting hardcode_minus_L
13204 # to unsupported forces relinking
13205 hardcode_minus_L_D=yes
13206 hardcode_libdir_flag_spec_D='-L$libdir'
13207 hardcode_libdir_separator_D=
13208 fi
13209 ;;
13210 esac
13211 shared_flag='-shared'
13212 if test "$aix_use_runtimelinking" = yes; then
13213 shared_flag="$shared_flag "'${wl}-G'
13214 fi
13215 else
13216 # not using gcc
13217 if test "$host_cpu" = ia64; then
13218 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13219 # chokes on -Wl,-G. The following line is correct:
13220 shared_flag='-G'
13221 else
13222 if test "$aix_use_runtimelinking" = yes; then
13223 shared_flag='${wl}-G'
13224 else
13225 shared_flag='${wl}-bM:SRE'
13226 fi
13227 fi
13228 fi
13229
13230 export_dynamic_flag_spec_D='${wl}-bexpall'
13231 # It seems that -bexpall does not export symbols beginning with
13232 # underscore (_), so it is better to generate a list of symbols to export.
13233 always_export_symbols_D=yes
13234 if test "$aix_use_runtimelinking" = yes; then
13235 # Warning - without using the other runtime loading flags (-brtl),
13236 # -berok will link without error, but may produce a broken library.
13237 allow_undefined_flag_D='-berok'
13238 # Determine the default libpath from the value encoded in an
13239 # empty executable.
13240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13241 /* end confdefs.h. */
13242
13243 int
13244 main ()
13245 {
13246
13247 ;
13248 return 0;
13249 }
13250 _ACEOF
13251 if ac_fn_c_try_link "$LINENO"; then :
13252
13253 lt_aix_libpath_sed='
13254 /Import File Strings/,/^$/ {
13255 /^0/ {
13256 s/^0 *\(.*\)$/\1/
13257 p
13258 }
13259 }'
13260 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13261 # Check for a 64-bit object if we didn't find anything.
13262 if test -z "$aix_libpath"; then
13263 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13264 fi
13265 fi
13266 rm -f core conftest.err conftest.$ac_objext \
13267 conftest$ac_exeext conftest.$ac_ext
13268 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13269
13270 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13271 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"
13272 else
13273 if test "$host_cpu" = ia64; then
13274 hardcode_libdir_flag_spec_D='${wl}-R $libdir:/usr/lib:/lib'
13275 allow_undefined_flag_D="-z nodefs"
13276 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"
13277 else
13278 # Determine the default libpath from the value encoded in an
13279 # empty executable.
13280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13281 /* end confdefs.h. */
13282
13283 int
13284 main ()
13285 {
13286
13287 ;
13288 return 0;
13289 }
13290 _ACEOF
13291 if ac_fn_c_try_link "$LINENO"; then :
13292
13293 lt_aix_libpath_sed='
13294 /Import File Strings/,/^$/ {
13295 /^0/ {
13296 s/^0 *\(.*\)$/\1/
13297 p
13298 }
13299 }'
13300 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13301 # Check for a 64-bit object if we didn't find anything.
13302 if test -z "$aix_libpath"; then
13303 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13304 fi
13305 fi
13306 rm -f core conftest.err conftest.$ac_objext \
13307 conftest$ac_exeext conftest.$ac_ext
13308 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13309
13310 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13311 # Warning - without using the other run time loading flags,
13312 # -berok will link without error, but may produce a broken library.
13313 no_undefined_flag_D=' ${wl}-bernotok'
13314 allow_undefined_flag_D=' ${wl}-berok'
13315 if test "$with_gnu_ld" = yes; then
13316 # We only use this code for GNU lds that support --whole-archive.
13317 whole_archive_flag_spec_D='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13318 else
13319 # Exported symbols can be pulled into shared objects from archives
13320 whole_archive_flag_spec_D='$convenience'
13321 fi
13322 archive_cmds_need_lc_D=yes
13323 # This is similar to how AIX traditionally builds its shared libraries.
13324 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'
13325 fi
13326 fi
13327 ;;
13328
13329 amigaos*)
13330 case $host_cpu in
13331 powerpc)
13332 # see comment about AmigaOS4 .so support
13333 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13334 archive_expsym_cmds_D=''
13335 ;;
13336 m68k)
13337 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)'
13338 hardcode_libdir_flag_spec_D='-L$libdir'
13339 hardcode_minus_L_D=yes
13340 ;;
13341 esac
13342 ;;
13343
13344 bsdi[45]*)
13345 export_dynamic_flag_spec_D=-rdynamic
13346 ;;
13347
13348 cygwin* | mingw* | pw32* | cegcc*)
13349 # When not using gcc, we currently assume that we are using
13350 # Microsoft Visual C++.
13351 # hardcode_libdir_flag_spec is actually meaningless, as there is
13352 # no search path for DLLs.
13353 hardcode_libdir_flag_spec_D=' '
13354 allow_undefined_flag_D=unsupported
13355 # Tell ltmain to make .lib files, not .a files.
13356 libext=lib
13357 # Tell ltmain to make .dll files, not .so files.
13358 shrext_cmds=".dll"
13359 # FIXME: Setting linknames here is a bad hack.
13360 archive_cmds_D='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13361 # The linker will automatically build a .lib file if we build a DLL.
13362 old_archive_from_new_cmds_D='true'
13363 # FIXME: Should let the user specify the lib program.
13364 old_archive_cmds_D='lib -OUT:$oldlib$oldobjs$old_deplibs'
13365 fix_srcfile_path_D='`cygpath -w "$srcfile"`'
13366 enable_shared_with_static_runtimes_D=yes
13367 ;;
13368
13369 darwin* | rhapsody*)
13370
13371
13372 archive_cmds_need_lc_D=no
13373 hardcode_direct_D=no
13374 hardcode_automatic_D=yes
13375 hardcode_shlibpath_var_D=unsupported
13376 if test "$lt_cv_ld_force_load" = "yes"; then
13377 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\"`'
13378 else
13379 whole_archive_flag_spec_D=''
13380 fi
13381 link_all_deplibs_D=yes
13382 allow_undefined_flag_D="$_lt_dar_allow_undefined"
13383 case $cc_basename in
13384 ifort*) _lt_dar_can_shared=yes ;;
13385 *) _lt_dar_can_shared=$GCC ;;
13386 esac
13387 if test "$_lt_dar_can_shared" = "yes"; then
13388 output_verbose_link_cmd=func_echo_all
13389 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}"
13390 module_cmds_D="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13391 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}"
13392 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}"
13393
13394 else
13395 ld_shlibs_D=no
13396 fi
13397
13398 ;;
13399
13400 dgux*)
13401 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13402 hardcode_libdir_flag_spec_D='-L$libdir'
13403 hardcode_shlibpath_var_D=no
13404 ;;
13405
13406 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13407 # support. Future versions do this automatically, but an explicit c++rt0.o
13408 # does not break anything, and helps significantly (at the cost of a little
13409 # extra space).
13410 freebsd2.2*)
13411 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13412 hardcode_libdir_flag_spec_D='-R$libdir'
13413 hardcode_direct_D=yes
13414 hardcode_shlibpath_var_D=no
13415 ;;
13416
13417 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13418 freebsd2.*)
13419 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13420 hardcode_direct_D=yes
13421 hardcode_minus_L_D=yes
13422 hardcode_shlibpath_var_D=no
13423 ;;
13424
13425 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13426 freebsd* | dragonfly*)
13427 archive_cmds_D='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13428 hardcode_libdir_flag_spec_D='-R$libdir'
13429 hardcode_direct_D=yes
13430 hardcode_shlibpath_var_D=no
13431 ;;
13432
13433 hpux9*)
13434 if test "$GCC" = yes; then
13435 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'
13436 else
13437 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'
13438 fi
13439 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13440 hardcode_libdir_separator_D=:
13441 hardcode_direct_D=yes
13442
13443 # hardcode_minus_L: Not really in the search PATH,
13444 # but as the default location of the library.
13445 hardcode_minus_L_D=yes
13446 export_dynamic_flag_spec_D='${wl}-E'
13447 ;;
13448
13449 hpux10*)
13450 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13451 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13452 else
13453 archive_cmds_D='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13454 fi
13455 if test "$with_gnu_ld" = no; then
13456 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13457 hardcode_libdir_flag_spec_ld_D='+b $libdir'
13458 hardcode_libdir_separator_D=:
13459 hardcode_direct_D=yes
13460 hardcode_direct_absolute_D=yes
13461 export_dynamic_flag_spec_D='${wl}-E'
13462 # hardcode_minus_L: Not really in the search PATH,
13463 # but as the default location of the library.
13464 hardcode_minus_L_D=yes
13465 fi
13466 ;;
13467
13468 hpux11*)
13469 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13470 case $host_cpu in
13471 hppa*64*)
13472 archive_cmds_D='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13473 ;;
13474 ia64*)
13475 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13476 ;;
13477 *)
13478 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13479 ;;
13480 esac
13481 else
13482 case $host_cpu in
13483 hppa*64*)
13484 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13485 ;;
13486 ia64*)
13487 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13488 ;;
13489 *)
13490 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13491 ;;
13492 esac
13493 fi
13494 if test "$with_gnu_ld" = no; then
13495 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13496 hardcode_libdir_separator_D=:
13497
13498 case $host_cpu in
13499 hppa*64*|ia64*)
13500 hardcode_direct_D=no
13501 hardcode_shlibpath_var_D=no
13502 ;;
13503 *)
13504 hardcode_direct_D=yes
13505 hardcode_direct_absolute_D=yes
13506 export_dynamic_flag_spec_D='${wl}-E'
13507
13508 # hardcode_minus_L: Not really in the search PATH,
13509 # but as the default location of the library.
13510 hardcode_minus_L_D=yes
13511 ;;
13512 esac
13513 fi
13514 ;;
13515
13516 irix5* | irix6* | nonstopux*)
13517 if test "$GCC" = yes; then
13518 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'
13519 # Try to use the -exported_symbol ld option, if it does not
13520 # work, assume that -exports_file does not work either and
13521 # implicitly export all symbols.
13522 save_LDFLAGS="$LDFLAGS"
13523 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13525 /* end confdefs.h. */
13526 int foo(void) {}
13527 _ACEOF
13528 if ac_fn_c_try_link "$LINENO"; then :
13529 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'
13530
13531 fi
13532 rm -f core conftest.err conftest.$ac_objext \
13533 conftest$ac_exeext conftest.$ac_ext
13534 LDFLAGS="$save_LDFLAGS"
13535 else
13536 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'
13537 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'
13538 fi
13539 archive_cmds_need_lc_D='no'
13540 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13541 hardcode_libdir_separator_D=:
13542 inherit_rpath_D=yes
13543 link_all_deplibs_D=yes
13544 ;;
13545
13546 netbsd*)
13547 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13548 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13549 else
13550 archive_cmds_D='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13551 fi
13552 hardcode_libdir_flag_spec_D='-R$libdir'
13553 hardcode_direct_D=yes
13554 hardcode_shlibpath_var_D=no
13555 ;;
13556
13557 newsos6)
13558 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13559 hardcode_direct_D=yes
13560 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13561 hardcode_libdir_separator_D=:
13562 hardcode_shlibpath_var_D=no
13563 ;;
13564
13565 *nto* | *qnx*)
13566 ;;
13567
13568 openbsd*)
13569 if test -f /usr/libexec/ld.so; then
13570 hardcode_direct_D=yes
13571 hardcode_shlibpath_var_D=no
13572 hardcode_direct_absolute_D=yes
13573 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13574 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13575 archive_expsym_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13576 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13577 export_dynamic_flag_spec_D='${wl}-E'
13578 else
13579 case $host_os in
13580 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13581 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13582 hardcode_libdir_flag_spec_D='-R$libdir'
13583 ;;
13584 *)
13585 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13586 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13587 ;;
13588 esac
13589 fi
13590 else
13591 ld_shlibs_D=no
13592 fi
13593 ;;
13594
13595 os2*)
13596 hardcode_libdir_flag_spec_D='-L$libdir'
13597 hardcode_minus_L_D=yes
13598 allow_undefined_flag_D=unsupported
13599 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'
13600 old_archive_from_new_cmds_D='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13601 ;;
13602
13603 osf3*)
13604 if test "$GCC" = yes; then
13605 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13606 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'
13607 else
13608 allow_undefined_flag_D=' -expect_unresolved \*'
13609 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'
13610 fi
13611 archive_cmds_need_lc_D='no'
13612 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13613 hardcode_libdir_separator_D=:
13614 ;;
13615
13616 osf4* | osf5*) # as osf3* with the addition of -msym flag
13617 if test "$GCC" = yes; then
13618 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13619 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'
13620 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13621 else
13622 allow_undefined_flag_D=' -expect_unresolved \*'
13623 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'
13624 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~
13625 $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'
13626
13627 # Both c and cxx compiler support -rpath directly
13628 hardcode_libdir_flag_spec_D='-rpath $libdir'
13629 fi
13630 archive_cmds_need_lc_D='no'
13631 hardcode_libdir_separator_D=:
13632 ;;
13633
13634 solaris*)
13635 no_undefined_flag_D=' -z defs'
13636 if test "$GCC" = yes; then
13637 wlarc='${wl}'
13638 archive_cmds_D='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13639 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13640 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13641 else
13642 case `$CC -V 2>&1` in
13643 *"Compilers 5.0"*)
13644 wlarc=''
13645 archive_cmds_D='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13646 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13647 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13648 ;;
13649 *)
13650 wlarc='${wl}'
13651 archive_cmds_D='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13652 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13653 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13654 ;;
13655 esac
13656 fi
13657 hardcode_libdir_flag_spec_D='-R$libdir'
13658 hardcode_shlibpath_var_D=no
13659 case $host_os in
13660 solaris2.[0-5] | solaris2.[0-5].*) ;;
13661 *)
13662 # The compiler driver will combine and reorder linker options,
13663 # but understands `-z linker_flag'. GCC discards it without `$wl',
13664 # but is careful enough not to reorder.
13665 # Supported since Solaris 2.6 (maybe 2.5.1?)
13666 if test "$GCC" = yes; then
13667 whole_archive_flag_spec_D='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13668 else
13669 whole_archive_flag_spec_D='-z allextract$convenience -z defaultextract'
13670 fi
13671 ;;
13672 esac
13673 link_all_deplibs_D=yes
13674 ;;
13675
13676 sunos4*)
13677 if test "x$host_vendor" = xsequent; then
13678 # Use $CC to link under sequent, because it throws in some extra .o
13679 # files that make .init and .fini sections work.
13680 archive_cmds_D='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13681 else
13682 archive_cmds_D='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13683 fi
13684 hardcode_libdir_flag_spec_D='-L$libdir'
13685 hardcode_direct_D=yes
13686 hardcode_minus_L_D=yes
13687 hardcode_shlibpath_var_D=no
13688 ;;
13689
13690 sysv4)
13691 case $host_vendor in
13692 sni)
13693 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13694 hardcode_direct_D=yes # is this really true???
13695 ;;
13696 siemens)
13697 ## LD is ld it makes a PLAMLIB
13698 ## CC just makes a GrossModule.
13699 archive_cmds_D='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13700 reload_cmds_D='$CC -r -o $output$reload_objs'
13701 hardcode_direct_D=no
13702 ;;
13703 motorola)
13704 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13705 hardcode_direct_D=no #Motorola manual says yes, but my tests say they lie
13706 ;;
13707 esac
13708 runpath_var='LD_RUN_PATH'
13709 hardcode_shlibpath_var_D=no
13710 ;;
13711
13712 sysv4.3*)
13713 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13714 hardcode_shlibpath_var_D=no
13715 export_dynamic_flag_spec_D='-Bexport'
13716 ;;
13717
13718 sysv4*MP*)
13719 if test -d /usr/nec; then
13720 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13721 hardcode_shlibpath_var_D=no
13722 runpath_var=LD_RUN_PATH
13723 hardcode_runpath_var=yes
13724 ld_shlibs_D=yes
13725 fi
13726 ;;
13727
13728 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13729 no_undefined_flag_D='${wl}-z,text'
13730 archive_cmds_need_lc_D=no
13731 hardcode_shlibpath_var_D=no
13732 runpath_var='LD_RUN_PATH'
13733
13734 if test "$GCC" = yes; then
13735 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13736 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13737 else
13738 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13739 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13740 fi
13741 ;;
13742
13743 sysv5* | sco3.2v5* | sco5v6*)
13744 # Note: We can NOT use -z defs as we might desire, because we do not
13745 # link with -lc, and that would cause any symbols used from libc to
13746 # always be unresolved, which means just about no library would
13747 # ever link correctly. If we're not using GNU ld we use -z text
13748 # though, which does catch some bad symbols but isn't as heavy-handed
13749 # as -z defs.
13750 no_undefined_flag_D='${wl}-z,text'
13751 allow_undefined_flag_D='${wl}-z,nodefs'
13752 archive_cmds_need_lc_D=no
13753 hardcode_shlibpath_var_D=no
13754 hardcode_libdir_flag_spec_D='${wl}-R,$libdir'
13755 hardcode_libdir_separator_D=':'
13756 link_all_deplibs_D=yes
13757 export_dynamic_flag_spec_D='${wl}-Bexport'
13758 runpath_var='LD_RUN_PATH'
13759
13760 if test "$GCC" = yes; then
13761 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13762 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13763 else
13764 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13765 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13766 fi
13767 ;;
13768
13769 uts4*)
13770 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13771 hardcode_libdir_flag_spec_D='-L$libdir'
13772 hardcode_shlibpath_var_D=no
13773 ;;
13774
13775 *)
13776 ld_shlibs_D=no
13777 ;;
13778 esac
13779
13780 if test x$host_vendor = xsni; then
13781 case $host in
13782 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13783 export_dynamic_flag_spec_D='${wl}-Blargedynsym'
13784 ;;
13785 esac
13786 fi
13787 fi
13788
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_D" >&5
13790 $as_echo "$ld_shlibs_D" >&6; }
13791 test "$ld_shlibs_D" = no && can_build_shared=no
13792
13793 with_gnu_ld_D=$with_gnu_ld
13794
13795
13796
13797
13798
13799
13800 #
13801 # Do we need to explicitly link libc?
13802 #
13803 case "x$archive_cmds_need_lc_D" in
13804 x|xyes)
13805 # Assume -lc should be added
13806 archive_cmds_need_lc_D=yes
13807
13808 if test "$enable_shared" = yes && test "$GCC" = yes; then
13809 case $archive_cmds_D in
13810 *'~'*)
13811 # FIXME: we may have to deal with multi-command sequences.
13812 ;;
13813 '$CC '*)
13814 # Test whether the compiler implicitly links with -lc since on some
13815 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13816 # to ld, don't add -lc before -lgcc.
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13818 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13819 if ${lt_cv_archive_cmds_need_lc_D+:} false; then :
13820 $as_echo_n "(cached) " >&6
13821 else
13822 $RM conftest*
13823 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13824
13825 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13826 (eval $ac_compile) 2>&5
13827 ac_status=$?
13828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13829 test $ac_status = 0; } 2>conftest.err; then
13830 soname=conftest
13831 lib=conftest
13832 libobjs=conftest.$ac_objext
13833 deplibs=
13834 wl=$lt_prog_compiler_wl_D
13835 pic_flag=$lt_prog_compiler_pic_D
13836 compiler_flags=-v
13837 linker_flags=-v
13838 verstring=
13839 output_objdir=.
13840 libname=conftest
13841 lt_save_allow_undefined_flag=$allow_undefined_flag_D
13842 allow_undefined_flag_D=
13843 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13844 (eval $archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13845 ac_status=$?
13846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13847 test $ac_status = 0; }
13848 then
13849 lt_cv_archive_cmds_need_lc_D=no
13850 else
13851 lt_cv_archive_cmds_need_lc_D=yes
13852 fi
13853 allow_undefined_flag_D=$lt_save_allow_undefined_flag
13854 else
13855 cat conftest.err 1>&5
13856 fi
13857 $RM conftest*
13858
13859 fi
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_D" >&5
13861 $as_echo "$lt_cv_archive_cmds_need_lc_D" >&6; }
13862 archive_cmds_need_lc_D=$lt_cv_archive_cmds_need_lc_D
13863 ;;
13864 esac
13865 fi
13866 ;;
13867 esac
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13933 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13934 hardcode_action_D=
13935 if test -n "$hardcode_libdir_flag_spec_D" ||
13936 test -n "$runpath_var_D" ||
13937 test "X$hardcode_automatic_D" = "Xyes" ; then
13938
13939 # We can hardcode non-existent directories.
13940 if test "$hardcode_direct_D" != no &&
13941 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13942 # have to relink, otherwise we might link with an installed library
13943 # when we should be linking with a yet-to-be-installed one
13944 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, D)" != no &&
13945 test "$hardcode_minus_L_D" != no; then
13946 # Linking always hardcodes the temporary library directory.
13947 hardcode_action_D=relink
13948 else
13949 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13950 hardcode_action_D=immediate
13951 fi
13952 else
13953 # We cannot hardcode anything, or else we can only hardcode existing
13954 # directories.
13955 hardcode_action_D=unsupported
13956 fi
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_D" >&5
13958 $as_echo "$hardcode_action_D" >&6; }
13959
13960 if test "$hardcode_action_D" = relink ||
13961 test "$inherit_rpath_D" = yes; then
13962 # Fast installation is not supported
13963 enable_fast_install=no
13964 elif test "$shlibpath_overrides_runpath" = yes ||
13965 test "$enable_shared" = no; then
13966 # Fast installation is not necessary
13967 enable_fast_install=needless
13968 fi
13969
13970
13971
13972
13973
13974
13975
13976 fi
13977
13978 ac_ext=c
13979 ac_cpp='$CPP $CPPFLAGS'
13980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13983
13984
13985 GCC=$lt_save_GCC
13986 CC=$lt_save_CC
13987 CFLAGS=$lt_save_CFLAGS
13988
13989 GDCFLAGS=$gdc_save_DFLAGS
13990
13991
13992 # libtool variables for Phobos shared and position-independent compiles.
13993 #
13994 # Use phobos_compiler_shared_flag to designate the compile-time flags for
13995 # creating shared objects. Default: -fversion=Shared.
13996 #
13997 # Use phobos_compiler_pic_flag to designate the compile-time flags for
13998 # creating position-independent objects. This varies with the target
13999 # hardware and operating system, but is often: -fPIC.
14000 #
14001 # The distinction between pic and shared compilation flags is not present in
14002 # libtool, and so we make it here. How it is handled is that in shared
14003 # compilations the `lt_prog_compiler_pic_D' variable is used to instead
14004 # ensure that conditional compilation of shared runtime code is compiled in.
14005 # The original PIC flags are then used in the compilation of every object.
14006 #
14007 # Why are objects destined for libgphobos.a compiled with -fPIC?
14008 # Because -fPIC is not harmful to use for objects destined for static
14009 # libraries. In addition, using -fPIC will allow the use of static
14010 # libgphobos.a in the creation of other D shared libraries.
14011 if test "$enable_shared" = yes; then
14012 phobos_compiler_pic_flag="$lt_prog_compiler_pic_D"
14013 phobos_compiler_shared_flag="-fversion=Shared"
14014 else
14015 phobos_compiler_pic_flag=
14016 phobos_compiler_shared_flag=
14017 fi
14018
14019
14020
14021 # Override the libtool's pic_flag and pic_mode.
14022 # Do this step after AM_PROG_LIBTOOL, but before AC_OUTPUT.
14023 # NB: this impacts --with-pic and --without-pic.
14024 lt_prog_compiler_pic_D="$phobos_compiler_shared_flag"
14025 pic_mode='default'
14026
14027 # Determine what GCC version number to use in filesystem paths.
14028
14029 get_gcc_base_ver="cat"
14030
14031 # Check whether --with-gcc-major-version-only was given.
14032 if test "${with_gcc_major_version_only+set}" = set; then :
14033 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
14034 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
14035 fi
14036
14037 fi
14038
14039
14040
14041
14042 # libphobos/libdruntime specific options and feature detection
14043
14044 # These need to be absolute paths, yet at the same time need to
14045 # canonicalize only relative paths, because then amd will not unmount
14046 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
14047 libphobos_builddir=`${PWDCMD-pwd}`
14048 case $srcdir in
14049 \\/$* | ?:\\/*) libphobos_srcdir=${srcdir} ;;
14050 *) libphobos_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
14051 esac
14052
14053
14054
14055
14056 if test ${multilib} = yes; then
14057 multilib_arg="--enable-multilib"
14058 else
14059 multilib_arg=
14060 fi
14061
14062
14063 # Check whether --enable-werror was given.
14064 if test "${enable_werror+set}" = set; then :
14065 enableval=$enable_werror;
14066 fi
14067
14068 WERROR_FLAG=""
14069 if test "x$enable_werror" = "xyes"; then
14070 WERROR_FLAG="-Werror"
14071 fi
14072
14073
14074 druntime_target_cpu_parsed=""
14075 case "$target_cpu" in
14076 aarch64*)
14077 druntime_target_cpu_parsed="aarch64"
14078 ;;
14079 arm*) druntime_target_cpu_parsed="arm"
14080 ;;
14081 mips*) druntime_target_cpu_parsed="mips"
14082 ;;
14083 powerpc*)
14084 druntime_target_cpu_parsed="powerpc"
14085 ;;
14086 i[34567]86|x86_64)
14087 druntime_target_cpu_parsed="x86"
14088 ;;
14089 s390x)
14090 druntime_target_cpu_parsed="s390x"
14091 ;;
14092 s390)
14093 druntime_target_cpu_parsed="s390"
14094 ;;
14095 esac
14096 if test "$druntime_target_cpu_parsed" = "aarch64"; then
14097 DRUNTIME_CPU_AARCH64_TRUE=
14098 DRUNTIME_CPU_AARCH64_FALSE='#'
14099 else
14100 DRUNTIME_CPU_AARCH64_TRUE='#'
14101 DRUNTIME_CPU_AARCH64_FALSE=
14102 fi
14103
14104 if test "$druntime_target_cpu_parsed" = "arm"; then
14105 DRUNTIME_CPU_ARM_TRUE=
14106 DRUNTIME_CPU_ARM_FALSE='#'
14107 else
14108 DRUNTIME_CPU_ARM_TRUE='#'
14109 DRUNTIME_CPU_ARM_FALSE=
14110 fi
14111
14112 if test "$druntime_target_cpu_parsed" = "mips"; then
14113 DRUNTIME_CPU_MIPS_TRUE=
14114 DRUNTIME_CPU_MIPS_FALSE='#'
14115 else
14116 DRUNTIME_CPU_MIPS_TRUE='#'
14117 DRUNTIME_CPU_MIPS_FALSE=
14118 fi
14119
14120 if test "$druntime_target_cpu_parsed" = "powerpc"; then
14121 DRUNTIME_CPU_POWERPC_TRUE=
14122 DRUNTIME_CPU_POWERPC_FALSE='#'
14123 else
14124 DRUNTIME_CPU_POWERPC_TRUE='#'
14125 DRUNTIME_CPU_POWERPC_FALSE=
14126 fi
14127
14128 if test "$druntime_target_cpu_parsed" = "x86"; then
14129 DRUNTIME_CPU_X86_TRUE=
14130 DRUNTIME_CPU_X86_FALSE='#'
14131 else
14132 DRUNTIME_CPU_X86_TRUE='#'
14133 DRUNTIME_CPU_X86_FALSE=
14134 fi
14135
14136 if test "$druntime_target_cpu_parsed" = "s390x"; then
14137 DRUNTIME_CPU_SYSTEMZ_TRUE=
14138 DRUNTIME_CPU_SYSTEMZ_FALSE='#'
14139 else
14140 DRUNTIME_CPU_SYSTEMZ_TRUE='#'
14141 DRUNTIME_CPU_SYSTEMZ_FALSE=
14142 fi
14143
14144 if test "$druntime_target_cpu_parsed" = "s390"; then
14145 DRUNTIME_CPU_S390_TRUE=
14146 DRUNTIME_CPU_S390_FALSE='#'
14147 else
14148 DRUNTIME_CPU_S390_TRUE='#'
14149 DRUNTIME_CPU_S390_FALSE=
14150 fi
14151
14152
14153
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target OS" >&5
14155 $as_echo_n "checking for target OS... " >&6; }
14156 if ${druntime_cv_target_os+:} false; then :
14157 $as_echo_n "(cached) " >&6
14158 else
14159 druntime_cv_target_os=`echo $target_os | sed 's/^\([A-Za-z_]+\)/\1/'`
14160 fi
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_target_os" >&5
14162 $as_echo "$druntime_cv_target_os" >&6; }
14163 if test -z "$druntime_cv_target_os"; then :
14164 as_fn_error $? "can't detect target OS" "$LINENO" 5
14165 fi
14166
14167
14168
14169
14170 druntime_target_os_parsed=""
14171 case "$druntime_cv_target_os" in
14172 aix*) druntime_target_os_parsed="aix"
14173 ;;
14174 *android*)
14175 druntime_target_os_parsed="android"
14176 ;;
14177 darwin*) druntime_target_os_parsed="darwin"
14178 ;;
14179 dragonfly*)
14180 druntime_target_os_parsed="dragonflybsd"
14181 ;;
14182 freebsd*|k*bsd*-gnu)
14183 druntime_target_os_parsed="freebsd"
14184 ;;
14185 openbsd*)
14186 druntime_target_os_parsed="openbsd"
14187 ;;
14188 netbsd*)
14189 druntime_target_os_parsed="netbsd"
14190 ;;
14191 linux*) druntime_target_os_parsed="linux"
14192 ;;
14193 mingw*) druntime_target_os_parsed="mingw"
14194 ;;
14195 *solaris*) druntime_target_os_parsed="solaris"
14196 esac
14197 if test "$druntime_target_os_parsed" = "aix"; then
14198 DRUNTIME_OS_AIX_TRUE=
14199 DRUNTIME_OS_AIX_FALSE='#'
14200 else
14201 DRUNTIME_OS_AIX_TRUE='#'
14202 DRUNTIME_OS_AIX_FALSE=
14203 fi
14204
14205 if test "$druntime_target_os_parsed" = "android"; then
14206 DRUNTIME_OS_ANDROID_TRUE=
14207 DRUNTIME_OS_ANDROID_FALSE='#'
14208 else
14209 DRUNTIME_OS_ANDROID_TRUE='#'
14210 DRUNTIME_OS_ANDROID_FALSE=
14211 fi
14212
14213 if test "$druntime_target_os_parsed" = "darwin"; then
14214 DRUNTIME_OS_DARWIN_TRUE=
14215 DRUNTIME_OS_DARWIN_FALSE='#'
14216 else
14217 DRUNTIME_OS_DARWIN_TRUE='#'
14218 DRUNTIME_OS_DARWIN_FALSE=
14219 fi
14220
14221 if test "$druntime_target_os_parsed" = "dragonflybsd"; then
14222 DRUNTIME_OS_DRAGONFLYBSD_TRUE=
14223 DRUNTIME_OS_DRAGONFLYBSD_FALSE='#'
14224 else
14225 DRUNTIME_OS_DRAGONFLYBSD_TRUE='#'
14226 DRUNTIME_OS_DRAGONFLYBSD_FALSE=
14227 fi
14228
14229 if test "$druntime_target_os_parsed" = "freebsd"; then
14230 DRUNTIME_OS_FREEBSD_TRUE=
14231 DRUNTIME_OS_FREEBSD_FALSE='#'
14232 else
14233 DRUNTIME_OS_FREEBSD_TRUE='#'
14234 DRUNTIME_OS_FREEBSD_FALSE=
14235 fi
14236
14237 if test "$druntime_target_os_parsed" = "netbsd"; then
14238 DRUNTIME_OS_NETBSD_TRUE=
14239 DRUNTIME_OS_NETBSD_FALSE='#'
14240 else
14241 DRUNTIME_OS_NETBSD_TRUE='#'
14242 DRUNTIME_OS_NETBSD_FALSE=
14243 fi
14244
14245 if test "$druntime_target_os_parsed" = "openbsd"; then
14246 DRUNTIME_OS_OPENBSD_TRUE=
14247 DRUNTIME_OS_OPENBSD_FALSE='#'
14248 else
14249 DRUNTIME_OS_OPENBSD_TRUE='#'
14250 DRUNTIME_OS_OPENBSD_FALSE=
14251 fi
14252
14253 if test "$druntime_target_os_parsed" = "linux"; then
14254 DRUNTIME_OS_LINUX_TRUE=
14255 DRUNTIME_OS_LINUX_FALSE='#'
14256 else
14257 DRUNTIME_OS_LINUX_TRUE='#'
14258 DRUNTIME_OS_LINUX_FALSE=
14259 fi
14260
14261 if test "$druntime_target_os_parsed" = "mingw"; then
14262 DRUNTIME_OS_MINGW_TRUE=
14263 DRUNTIME_OS_MINGW_FALSE='#'
14264 else
14265 DRUNTIME_OS_MINGW_TRUE='#'
14266 DRUNTIME_OS_MINGW_FALSE=
14267 fi
14268
14269 if test "$druntime_target_os_parsed" = "solaris"; then
14270 DRUNTIME_OS_SOLARIS_TRUE=
14271 DRUNTIME_OS_SOLARIS_FALSE='#'
14272 else
14273 DRUNTIME_OS_SOLARIS_TRUE='#'
14274 DRUNTIME_OS_SOLARIS_FALSE=
14275 fi
14276
14277
14278 druntime_target_posix="no"
14279 case "$druntime_cv_target_os" in
14280 aix*|*bsd*|cygwin*|darwin*|gnu*|linux*|skyos*|*solaris*|sysv*)
14281 druntime_target_posix="yes"
14282 ;;
14283 esac
14284 if test "$druntime_target_posix" = "yes"; then
14285 DRUNTIME_OS_POSIX_TRUE=
14286 DRUNTIME_OS_POSIX_FALSE='#'
14287 else
14288 DRUNTIME_OS_POSIX_TRUE='#'
14289 DRUNTIME_OS_POSIX_FALSE=
14290 fi
14291
14292
14293
14294
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GDC" >&5
14296 $as_echo_n "checking for thread model used by GDC... " >&6; }
14297 d_thread_model=`$GDC -v 2>&1 | sed -n 's/^Thread model: //p'`
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d_thread_model" >&5
14299 $as_echo "$d_thread_model" >&6; }
14300
14301 # Map from thread model to thread interface.
14302
14303 case $d_thread_model in
14304 aix) DCFG_THREAD_MODEL="Posix" ;;
14305 lynx) DCFG_THREAD_MODEL="Posix" ;;
14306 posix) DCFG_THREAD_MODEL="Posix" ;;
14307 single) DCFG_THREAD_MODEL="Single" ;;
14308 win32) DCFG_THREAD_MODEL="Win32" ;;
14309 # TODO: These targets need porting.
14310 dce|mipssde|rtems|tpf|vxworks)
14311 DCFG_THREAD_MODEL="Single" ;;
14312 *) as_fn_error "Thread implementation '$d_thread_model' not recognised" "$LINENO" 5 ;;
14313 esac
14314
14315
14316
14317
14318 ac_ext=c
14319 ac_cpp='$CPP $CPPFLAGS'
14320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14323
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM unwinder" >&5
14325 $as_echo_n "checking for ARM unwinder... " >&6; }
14326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14327 /* end confdefs.h. */
14328 #include <unwind.h>
14329 int
14330 main ()
14331 {
14332
14333 #if __ARM_EABI_UNWINDER__
14334 #error Yes, it is.
14335 #endif
14336
14337 ;
14338 return 0;
14339 }
14340 _ACEOF
14341 if ac_fn_c_try_compile "$LINENO"; then :
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14343 $as_echo "no" >&6; }
14344 DCFG_ARM_EABI_UNWINDER=false
14345 else
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14347 $as_echo "yes" >&6; }
14348 DCFG_ARM_EABI_UNWINDER=true
14349 fi
14350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14351
14352 if test "$DCFG_ARM_EABI_UNWINDER" = "true"; then
14353 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE=
14354 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE='#'
14355 else
14356 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE='#'
14357 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE=
14358 fi
14359
14360 ac_ext=c
14361 ac_cpp='$CPP $CPPFLAGS'
14362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14365
14366
14367
14368 ac_ext=c
14369 ac_cpp='$CPP $CPPFLAGS'
14370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14373
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minfo section bracketing" >&5
14375 $as_echo_n "checking for minfo section bracketing... " >&6; }
14376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14377 /* end confdefs.h. */
14378
14379 void* module_info_ptr __attribute__((section ("minfo")));
14380 extern void* __start_minfo __attribute__((visibility ("hidden")));
14381 extern void* __stop_minfo __attribute__((visibility ("hidden")));
14382
14383 int main()
14384 {
14385 // Never run, just to prevent compiler from optimizing access
14386 return &__start_minfo == &__stop_minfo;
14387 }
14388
14389 _ACEOF
14390 if ac_fn_c_try_link "$LINENO"; then :
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14392 $as_echo "yes" >&6; }
14393 DCFG_MINFO_BRACKETING=true
14394 else
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14396 $as_echo "no" >&6; }
14397 DCFG_MINFO_BRACKETING=false
14398 fi
14399 rm -f core conftest.err conftest.$ac_objext \
14400 conftest$ac_exeext conftest.$ac_ext
14401
14402 if test "$DCFG_MINFO_BRACKETING" = "true"; then
14403 DRUNTIME_OS_MINFO_BRACKETING_TRUE=
14404 DRUNTIME_OS_MINFO_BRACKETING_FALSE='#'
14405 else
14406 DRUNTIME_OS_MINFO_BRACKETING_TRUE='#'
14407 DRUNTIME_OS_MINFO_BRACKETING_FALSE=
14408 fi
14409
14410 ac_ext=c
14411 ac_cpp='$CPP $CPPFLAGS'
14412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14415
14416
14417
14418 ac_ext=c
14419 ac_cpp='$CPP $CPPFLAGS'
14420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14423
14424 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>
14425 "
14426 if test "x$ac_cv_member_struct_dl_phdr_info_dlpi_tls_modid" = xyes; then :
14427 DCFG_DLPI_TLS_MODID=true
14428 else
14429 DCFG_DLPI_TLS_MODID=false
14430 fi
14431
14432
14433 ac_ext=c
14434 ac_cpp='$CPP $CPPFLAGS'
14435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14438
14439
14440
14441 case $target in
14442 i?86-*-solaris2.* | x86_64-*-solaris2.*)
14443 # 64-bit Solaris/x86 ld breaks calls to __tls_get_addr with non-TLS
14444 # relocs. Work around by disabling TLS transitions. Not necessary
14445 # on 32-bit x86, but cannot be distinguished reliably in specs.
14446 druntime_ld_prog=`$CC -print-prog-name=ld`
14447 druntime_ld_gld=no
14448 druntime_ld_relax_transtls=no
14449 if test -n "$druntime_ld_prog" \
14450 && $druntime_ld_prog -v 2>&1 | grep GNU > /dev/null 2>&1; then
14451 druntime_ld_gld=yes
14452 else
14453 echo 'int main (void) { return 0; }' > conftest.c
14454 save_LDFLAGS="$LDFLAGS"
14455 LDFLAGS="$LDFLAGS -Wl,-z,relax=transtls"
14456 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c > /dev/null 2>&1; then
14457 druntime_ld_relax_transtls=yes
14458 fi
14459 LDFLAGS="$save_LDFLAGS"
14460 rm -f conftest.c conftest
14461 fi
14462 if test "$druntime_ld_relax_transtls" = "yes"; then
14463 OS_LINK_SPEC='-z relax=transtls'
14464 fi
14465 ;;
14466 esac
14467
14468
14469
14470 ac_ext=c
14471 ac_cpp='$CPP $CPPFLAGS'
14472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14475
14476 DCFG_HAVE_QSORT_R=false
14477 ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r"
14478 if test "x$ac_cv_func_qsort_r" = xyes; then :
14479 DCFG_HAVE_QSORT_R=true
14480 fi
14481
14482
14483 ac_ext=c
14484 ac_cpp='$CPP $CPPFLAGS'
14485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14488
14489
14490
14491
14492
14493 gdc_save_DFLAGS=$GDCFLAGS
14494 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime -nophoboslib $GDCFLAGS"
14495
14496 ac_ext=d
14497 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
14498 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14499 ac_compiler_gnu=yes
14500
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing malloc" >&5
14502 $as_echo_n "checking for library containing malloc... " >&6; }
14503 if ${ac_cv_search_malloc+:} false; then :
14504 $as_echo_n "(cached) " >&6
14505 else
14506 ac_func_search_save_LIBS=$LIBS
14507 cat > conftest.$ac_ext <<_ACEOF
14508 module mod;
14509 extern(C) int malloc();
14510
14511 extern(C) int main() {
14512 malloc(); return 0;
14513 }
14514 _ACEOF
14515 for ac_lib in '' c; do
14516 if test -z "$ac_lib"; then
14517 ac_res="none required"
14518 else
14519 ac_res=-l$ac_lib
14520 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14521 fi
14522 if ac_fn_d_try_link "$LINENO"; then :
14523 ac_cv_search_malloc=$ac_res
14524 fi
14525 rm -f core conftest.err conftest.$ac_objext \
14526 conftest$ac_exeext
14527 if ${ac_cv_search_malloc+:} false; then :
14528 break
14529 fi
14530 done
14531 if ${ac_cv_search_malloc+:} false; then :
14532
14533 else
14534 ac_cv_search_malloc=no
14535 fi
14536 rm conftest.$ac_ext
14537 LIBS=$ac_func_search_save_LIBS
14538 fi
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc" >&5
14540 $as_echo "$ac_cv_search_malloc" >&6; }
14541 ac_res=$ac_cv_search_malloc
14542 if test "$ac_res" != no; then :
14543 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14544
14545 fi
14546
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
14548 $as_echo_n "checking for library containing pthread_create... " >&6; }
14549 if ${ac_cv_search_pthread_create+:} false; then :
14550 $as_echo_n "(cached) " >&6
14551 else
14552 ac_func_search_save_LIBS=$LIBS
14553 cat > conftest.$ac_ext <<_ACEOF
14554 module mod;
14555 extern(C) int pthread_create();
14556
14557 extern(C) int main() {
14558 pthread_create(); return 0;
14559 }
14560 _ACEOF
14561 for ac_lib in '' pthread; do
14562 if test -z "$ac_lib"; then
14563 ac_res="none required"
14564 else
14565 ac_res=-l$ac_lib
14566 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14567 fi
14568 if ac_fn_d_try_link "$LINENO"; then :
14569 ac_cv_search_pthread_create=$ac_res
14570 fi
14571 rm -f core conftest.err conftest.$ac_objext \
14572 conftest$ac_exeext
14573 if ${ac_cv_search_pthread_create+:} false; then :
14574 break
14575 fi
14576 done
14577 if ${ac_cv_search_pthread_create+:} false; then :
14578
14579 else
14580 ac_cv_search_pthread_create=no
14581 fi
14582 rm conftest.$ac_ext
14583 LIBS=$ac_func_search_save_LIBS
14584 fi
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
14586 $as_echo "$ac_cv_search_pthread_create" >&6; }
14587 ac_res=$ac_cv_search_pthread_create
14588 if test "$ac_res" != no; then :
14589 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14590
14591 fi
14592
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cosf" >&5
14594 $as_echo_n "checking for library containing cosf... " >&6; }
14595 if ${ac_cv_search_cosf+:} false; then :
14596 $as_echo_n "(cached) " >&6
14597 else
14598 ac_func_search_save_LIBS=$LIBS
14599 cat > conftest.$ac_ext <<_ACEOF
14600 module mod;
14601 extern(C) int cosf();
14602
14603 extern(C) int main() {
14604 cosf(); return 0;
14605 }
14606 _ACEOF
14607 for ac_lib in '' m; do
14608 if test -z "$ac_lib"; then
14609 ac_res="none required"
14610 else
14611 ac_res=-l$ac_lib
14612 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14613 fi
14614 if ac_fn_d_try_link "$LINENO"; then :
14615 ac_cv_search_cosf=$ac_res
14616 fi
14617 rm -f core conftest.err conftest.$ac_objext \
14618 conftest$ac_exeext
14619 if ${ac_cv_search_cosf+:} false; then :
14620 break
14621 fi
14622 done
14623 if ${ac_cv_search_cosf+:} false; then :
14624
14625 else
14626 ac_cv_search_cosf=no
14627 fi
14628 rm conftest.$ac_ext
14629 LIBS=$ac_func_search_save_LIBS
14630 fi
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cosf" >&5
14632 $as_echo "$ac_cv_search_cosf" >&6; }
14633 ac_res=$ac_cv_search_cosf
14634 if test "$ac_res" != no; then :
14635 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14636
14637 fi
14638
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14640 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14641 if ${ac_cv_search_clock_gettime+:} false; then :
14642 $as_echo_n "(cached) " >&6
14643 else
14644 ac_func_search_save_LIBS=$LIBS
14645 cat > conftest.$ac_ext <<_ACEOF
14646 module mod;
14647 extern(C) int clock_gettime();
14648
14649 extern(C) int main() {
14650 clock_gettime(); return 0;
14651 }
14652 _ACEOF
14653 for ac_lib in '' rt; do
14654 if test -z "$ac_lib"; then
14655 ac_res="none required"
14656 else
14657 ac_res=-l$ac_lib
14658 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14659 fi
14660 if ac_fn_d_try_link "$LINENO"; then :
14661 ac_cv_search_clock_gettime=$ac_res
14662 fi
14663 rm -f core conftest.err conftest.$ac_objext \
14664 conftest$ac_exeext
14665 if ${ac_cv_search_clock_gettime+:} false; then :
14666 break
14667 fi
14668 done
14669 if ${ac_cv_search_clock_gettime+:} false; then :
14670
14671 else
14672 ac_cv_search_clock_gettime=no
14673 fi
14674 rm conftest.$ac_ext
14675 LIBS=$ac_func_search_save_LIBS
14676 fi
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14678 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14679 ac_res=$ac_cv_search_clock_gettime
14680 if test "$ac_res" != no; then :
14681 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14682
14683 fi
14684
14685
14686 # This checks to see if the host supports the compiler-generated builtins
14687 # for atomic operations for various integral sizes. Note, this is intended
14688 # to be an all-or-nothing switch, so all the atomic operations that are
14689 # used should be checked.
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for byte" >&5
14691 $as_echo_n "checking for atomic builtins for byte... " >&6; }
14692 if ${druntime_cv_atomic_byte+:} false; then :
14693 $as_echo_n "(cached) " >&6
14694 else
14695
14696 cat > conftest.$ac_ext <<_ACEOF
14697 module mod;
14698 import gcc.builtins;
14699
14700 extern(C) int main() {
14701
14702 shared(byte) c1;
14703 byte c2, c3;
14704 __atomic_compare_exchange_1(&c1, &c2, c3, false, 5, 5);
14705 __atomic_load_1(&c1, 5);
14706 __atomic_store_1(&c1, c2, 5);
14707 return 0;
14708
14709 }
14710 _ACEOF
14711 if ac_fn_d_try_link "$LINENO"; then :
14712 druntime_cv_atomic_byte=yes
14713 else
14714 druntime_cv_atomic_byte=no
14715 fi
14716 rm -f core conftest.err conftest.$ac_objext \
14717 conftest$ac_exeext conftest.$ac_ext
14718
14719 fi
14720
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_byte" >&5
14722 $as_echo "$druntime_cv_atomic_byte" >&6; }
14723
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5
14725 $as_echo_n "checking for atomic builtins for short... " >&6; }
14726 if ${druntime_cv_atomic_short+:} false; then :
14727 $as_echo_n "(cached) " >&6
14728 else
14729
14730 cat > conftest.$ac_ext <<_ACEOF
14731 module mod;
14732 import gcc.builtins;
14733
14734 extern(C) int main() {
14735
14736 shared(short) c1;
14737 short c2, c3;
14738 __atomic_compare_exchange_2(&c1, &c2, c3, false, 5, 5);
14739 __atomic_load_2(&c1, 5);
14740 __atomic_store_2(&c1, c2, 5);
14741 return 0;
14742
14743 }
14744 _ACEOF
14745 if ac_fn_d_try_link "$LINENO"; then :
14746 druntime_cv_atomic_short=yes
14747 else
14748 druntime_cv_atomic_short=no
14749 fi
14750 rm -f core conftest.err conftest.$ac_objext \
14751 conftest$ac_exeext conftest.$ac_ext
14752
14753 fi
14754
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_short" >&5
14756 $as_echo "$druntime_cv_atomic_short" >&6; }
14757
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5
14759 $as_echo_n "checking for atomic builtins for int... " >&6; }
14760 if ${druntime_cv_atomic_int+:} false; then :
14761 $as_echo_n "(cached) " >&6
14762 else
14763
14764 cat > conftest.$ac_ext <<_ACEOF
14765 module mod;
14766 import gcc.builtins;
14767
14768 extern(C) int main() {
14769
14770 shared(int) c1;
14771 int c2, c3;
14772 __atomic_compare_exchange_4(&c1, &c2, c3, false, 5, 5);
14773 __atomic_load_4(&c1, 5);
14774 __atomic_store_4(&c1, c2, 5);
14775 return 0;
14776
14777 }
14778 _ACEOF
14779 if ac_fn_d_try_link "$LINENO"; then :
14780 druntime_cv_atomic_int=yes
14781 else
14782 druntime_cv_atomic_int=no
14783 fi
14784 rm -f core conftest.err conftest.$ac_objext \
14785 conftest$ac_exeext conftest.$ac_ext
14786
14787 fi
14788
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_int" >&5
14790 $as_echo "$druntime_cv_atomic_int" >&6; }
14791
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long" >&5
14793 $as_echo_n "checking for atomic builtins for long... " >&6; }
14794 if ${druntime_cv_atomic_long+:} false; then :
14795 $as_echo_n "(cached) " >&6
14796 else
14797
14798 cat > conftest.$ac_ext <<_ACEOF
14799 module mod;
14800 import gcc.builtins;
14801
14802 extern(C) int main() {
14803
14804 shared(long) c1;
14805 long c2, c3;
14806 __atomic_compare_exchange_8(&c1, &c2, c3, false, 5, 5);
14807 __atomic_load_8(&c1, 5);
14808 __atomic_store_8(&c1, c2, 5);
14809 return 0;
14810
14811 }
14812 _ACEOF
14813 if ac_fn_d_try_link "$LINENO"; then :
14814 druntime_cv_atomic_long=yes
14815 else
14816 druntime_cv_atomic_long=no
14817 fi
14818 rm -f core conftest.err conftest.$ac_objext \
14819 conftest$ac_exeext conftest.$ac_ext
14820
14821 fi
14822
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_long" >&5
14824 $as_echo "$druntime_cv_atomic_long" >&6; }
14825
14826 # Have atomic builtin support if all but the long test above passes.
14827 DCFG_HAVE_ATOMIC_BUILTINS=false
14828 if test "$druntime_cv_atomic_byte" = yes \
14829 && test "$druntime_cv_atomic_short" = yes \
14830 && test "$druntime_cv_atomic_int" = yes; then \
14831 DCFG_HAVE_ATOMIC_BUILTINS=true
14832 fi
14833
14834 # Have 64-bit atomic support if the long test above passes.
14835 DCFG_HAVE_64BIT_ATOMICS=false
14836 if test "$druntime_cv_atomic_long" = yes; then
14837 DCFG_HAVE_64BIT_ATOMICS=true
14838 fi
14839
14840
14841
14842
14843 ac_ext=c
14844 ac_cpp='$CPP $CPPFLAGS'
14845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14848
14849
14850 GDCFLAGS=$gdc_save_DFLAGS
14851
14852
14853
14854
14855 # Check whether --with-libatomic was given.
14856 if test "${with_libatomic+set}" = set; then :
14857 withval=$with_libatomic;
14858 fi
14859
14860
14861 DCFG_HAVE_LIBATOMIC=false
14862 LIBATOMIC=
14863 if test "x$with_libatomic" != "xno"; then :
14864
14865 DCFG_HAVE_LIBATOMIC=true
14866 LIBATOMIC=../../libatomic/libatomic_convenience.la
14867
14868 else
14869
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic" >&5
14871 $as_echo_n "checking for libatomic... " >&6; }
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14873 $as_echo "disabled" >&6; }
14874
14875 fi
14876
14877
14878
14879
14880
14881 ac_ext=c
14882 ac_cpp='$CPP $CPPFLAGS'
14883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14886
14887 BACKTRACE_SUPPORTED=false
14888 BACKTRACE_USES_MALLOC=false
14889 BACKTRACE_SUPPORTS_THREADS=false
14890 LIBBACKTRACE=""
14891
14892
14893 # Check whether --with-libbacktrace was given.
14894 if test "${with_libbacktrace+set}" = set; then :
14895 withval=$with_libbacktrace;
14896 fi
14897
14898
14899 if test "x$with_libbacktrace" != "xno"; then :
14900
14901 LIBBACKTRACE=../../libbacktrace/libbacktrace.la
14902
14903 gdc_save_CPPFLAGS=$CPPFLAGS
14904 CPPFLAGS="$CPPFLAGS -I../libbacktrace "
14905
14906 ac_fn_c_check_header_mongrel "$LINENO" "backtrace-supported.h" "ac_cv_header_backtrace_supported_h" "$ac_includes_default"
14907 if test "x$ac_cv_header_backtrace_supported_h" = xyes; then :
14908 have_libbacktrace_h=true
14909 else
14910 have_libbacktrace_h=false
14911 fi
14912
14913
14914
14915 if $have_libbacktrace_h; then
14916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTED" >&5
14917 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTED... " >&6; }
14918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14919 /* end confdefs.h. */
14920
14921 #include <backtrace-supported.h>
14922 #if BACKTRACE_SUPPORTED
14923 FOUND_LIBBACKTRACE_RESULT_GDC
14924 #endif
14925
14926 _ACEOF
14927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14928 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14929 BACKTRACE_SUPPORTED=true
14930 else
14931 BACKTRACE_SUPPORTED=false
14932 fi
14933 rm -f conftest*
14934
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTED" >&5
14936 $as_echo "$BACKTRACE_SUPPORTED" >&6; }
14937
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_USES_MALLOC" >&5
14939 $as_echo_n "checking libbacktrace: BACKTRACE_USES_MALLOC... " >&6; }
14940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14941 /* end confdefs.h. */
14942
14943 #include <backtrace-supported.h>
14944 #if BACKTRACE_USES_MALLOC
14945 FOUND_LIBBACKTRACE_RESULT_GDC
14946 #endif
14947
14948 _ACEOF
14949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14950 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14951 BACKTRACE_USES_MALLOC=true
14952 else
14953 BACKTRACE_USES_MALLOC=false
14954 fi
14955 rm -f conftest*
14956
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_USES_MALLOC" >&5
14958 $as_echo "$BACKTRACE_USES_MALLOC" >&6; }
14959
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTS_THREADS" >&5
14961 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTS_THREADS... " >&6; }
14962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14963 /* end confdefs.h. */
14964
14965 #include <backtrace-supported.h>
14966 #if BACKTRACE_SUPPORTS_THREADS
14967 FOUND_LIBBACKTRACE_RESULT_GDC
14968 #endif
14969
14970 _ACEOF
14971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14972 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14973 BACKTRACE_SUPPORTS_THREADS=true
14974 else
14975 BACKTRACE_SUPPORTS_THREADS=false
14976 fi
14977 rm -f conftest*
14978
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTS_THREADS" >&5
14980 $as_echo "$BACKTRACE_SUPPORTS_THREADS" >&6; }
14981 fi
14982 CPPFLAGS=$gdc_save_CPPFLAGS
14983
14984 else
14985
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbacktrace" >&5
14987 $as_echo_n "checking for libbacktrace... " >&6; }
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14989 $as_echo "disabled" >&6; }
14990
14991 fi
14992
14993
14994
14995
14996
14997 ac_ext=c
14998 ac_cpp='$CPP $CPPFLAGS'
14999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15002
15003
15004
15005 # Libtool has already checked this, so re-use the inferred dlopen lib.
15006 if test "x$enable_dlopen" = "xyes" && test -n "$lt_cv_dlopen_libs"; then :
15007
15008 LIBS="$LIBS $lt_cv_dlopen_libs"
15009
15010 fi
15011
15012
15013 druntime_check_both=no
15014 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
15015 if test "x$ac_cv_func_connect" = xyes; then :
15016
15017 else
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
15019 $as_echo_n "checking for connect in -lsocket... " >&6; }
15020 if ${ac_cv_lib_socket_connect+:} false; then :
15021 $as_echo_n "(cached) " >&6
15022 else
15023 ac_check_lib_save_LIBS=$LIBS
15024 LIBS="-lsocket $LIBS"
15025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15026 /* end confdefs.h. */
15027
15028 /* Override any GCC internal prototype to avoid an error.
15029 Use char because int might match the return type of a GCC
15030 builtin and then its argument prototype would still apply. */
15031 #ifdef __cplusplus
15032 extern "C"
15033 #endif
15034 char connect ();
15035 int
15036 main ()
15037 {
15038 return connect ();
15039 ;
15040 return 0;
15041 }
15042 _ACEOF
15043 if ac_fn_c_try_link "$LINENO"; then :
15044 ac_cv_lib_socket_connect=yes
15045 else
15046 ac_cv_lib_socket_connect=no
15047 fi
15048 rm -f core conftest.err conftest.$ac_objext \
15049 conftest$ac_exeext conftest.$ac_ext
15050 LIBS=$ac_check_lib_save_LIBS
15051 fi
15052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
15053 $as_echo "$ac_cv_lib_socket_connect" >&6; }
15054 if test "x$ac_cv_lib_socket_connect" = xyes; then :
15055 LIBS="$LIBS -lsocket"
15056 else
15057 druntime_check_both=yes
15058 fi
15059
15060 fi
15061
15062 if test "$druntime_check_both" = "yes"; then
15063 druntime_old_libs=$LIBS
15064 LIBS="$LIBS -lsocket -lnsl"
15065 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
15066 if test "x$ac_cv_func_accept" = xyes; then :
15067
15068 else
15069 LIBS=$druntime_old_libs
15070 fi
15071
15072 fi
15073 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
15074 if test "x$ac_cv_func_gethostbyname" = xyes; then :
15075
15076 else
15077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
15078 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
15079 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
15080 $as_echo_n "(cached) " >&6
15081 else
15082 ac_check_lib_save_LIBS=$LIBS
15083 LIBS="-lnsl $LIBS"
15084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15085 /* end confdefs.h. */
15086
15087 /* Override any GCC internal prototype to avoid an error.
15088 Use char because int might match the return type of a GCC
15089 builtin and then its argument prototype would still apply. */
15090 #ifdef __cplusplus
15091 extern "C"
15092 #endif
15093 char gethostbyname ();
15094 int
15095 main ()
15096 {
15097 return gethostbyname ();
15098 ;
15099 return 0;
15100 }
15101 _ACEOF
15102 if ac_fn_c_try_link "$LINENO"; then :
15103 ac_cv_lib_nsl_gethostbyname=yes
15104 else
15105 ac_cv_lib_nsl_gethostbyname=no
15106 fi
15107 rm -f core conftest.err conftest.$ac_objext \
15108 conftest$ac_exeext conftest.$ac_ext
15109 LIBS=$ac_check_lib_save_LIBS
15110 fi
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
15112 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
15113 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
15114 LIBS="$LIBS -lnsl"
15115 fi
15116
15117 fi
15118
15119
15120
15121 # Keep this in sync with core/thread.d, set druntime_fiber_asm_external to
15122 # "yes" for targets that have 'version = AsmExternal'.
15123 druntime_fiber_asm_external=no
15124 case "$target_cpu" in
15125 aarch64* | \
15126 arm* | \
15127 i[34567]86|x86_64 | \
15128 powerpc)
15129 druntime_fiber_asm_external=yes
15130 ;;
15131 esac
15132 if test "$druntime_fiber_asm_external" = no; then
15133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing swapcontext" >&5
15134 $as_echo_n "checking for library containing swapcontext... " >&6; }
15135 if ${ac_cv_search_swapcontext+:} false; then :
15136 $as_echo_n "(cached) " >&6
15137 else
15138 ac_func_search_save_LIBS=$LIBS
15139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15140 /* end confdefs.h. */
15141
15142 /* Override any GCC internal prototype to avoid an error.
15143 Use char because int might match the return type of a GCC
15144 builtin and then its argument prototype would still apply. */
15145 #ifdef __cplusplus
15146 extern "C"
15147 #endif
15148 char swapcontext ();
15149 int
15150 main ()
15151 {
15152 return swapcontext ();
15153 ;
15154 return 0;
15155 }
15156 _ACEOF
15157 for ac_lib in '' c ucontext; do
15158 if test -z "$ac_lib"; then
15159 ac_res="none required"
15160 else
15161 ac_res=-l$ac_lib
15162 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15163 fi
15164 if ac_fn_c_try_link "$LINENO"; then :
15165 ac_cv_search_swapcontext=$ac_res
15166 fi
15167 rm -f core conftest.err conftest.$ac_objext \
15168 conftest$ac_exeext
15169 if ${ac_cv_search_swapcontext+:} false; then :
15170 break
15171 fi
15172 done
15173 if ${ac_cv_search_swapcontext+:} false; then :
15174
15175 else
15176 ac_cv_search_swapcontext=no
15177 fi
15178 rm conftest.$ac_ext
15179 LIBS=$ac_func_search_save_LIBS
15180 fi
15181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_swapcontext" >&5
15182 $as_echo "$ac_cv_search_swapcontext" >&6; }
15183 ac_res=$ac_cv_search_swapcontext
15184 if test "$ac_res" != no; then :
15185 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15186
15187 else
15188 as_fn_error $? "swapcontext required but not found" "$LINENO" 5
15189 fi
15190
15191 fi
15192
15193
15194 ac_ext=c
15195 ac_cpp='$CPP $CPPFLAGS'
15196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15199
15200 LIBZ=""
15201
15202
15203 # Check whether --with-target-system-zlib was given.
15204 if test "${with_target_system_zlib+set}" = set; then :
15205 withval=$with_target_system_zlib;
15206 else
15207 with_target_system_zlib=no
15208 fi
15209
15210
15211 case "$with_target_system_zlib" in
15212 yes|no|auto) ;;
15213 *) as_fn_error $? "Invalid argument for --with-target-system-zlib" "$LINENO" 5 ;;
15214 esac
15215
15216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system zlib" >&5
15217 $as_echo_n "checking for system zlib... " >&6; }
15218 save_LIBS=$LIBS
15219 LIBS="$LIBS -lz"
15220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15221 /* end confdefs.h. */
15222 #include <zlib.h>
15223 int
15224 main ()
15225 {
15226 gzopen("none", "rb")
15227 ;
15228 return 0;
15229 }
15230 _ACEOF
15231 if ac_fn_c_try_link "$LINENO"; then :
15232
15233 if test "$cross_compiling" = yes; then :
15234 system_zlib_found=no
15235
15236 else
15237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15238 /* end confdefs.h. */
15239
15240 #include <zlib.h>
15241 int main() {
15242 gzFile file = gzopen("none", "rb");
15243 return 0;
15244 }
15245
15246 _ACEOF
15247 if ac_fn_c_try_run "$LINENO"; then :
15248 system_zlib_found=yes
15249 else
15250 system_zlib_found=no
15251 fi
15252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15253 conftest.$ac_objext conftest.beam conftest.$ac_ext
15254 fi
15255
15256
15257 else
15258 system_zlib_found=no
15259 fi
15260 rm -f core conftest.err conftest.$ac_objext \
15261 conftest$ac_exeext conftest.$ac_ext
15262 LIBS=$save_LIBS
15263
15264 if test x$system_zlib_found = xyes && test x$with_target_system_zlib != xno; then
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15266 $as_echo "found" >&6; }
15267 LIBS="$LIBS -lz"
15268 elif test x$system_zlib_found = xno && test x$with_target_system_zlib = xyes; then
15269 as_fn_error $? "system zlib required but not found" "$LINENO" 5
15270 else
15271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15272 $as_echo "just compiled" >&6; }
15273 LIBZ=../../zlib/libz_convenience.la
15274 fi
15275
15276
15277 ac_ext=c
15278 ac_cpp='$CPP $CPPFLAGS'
15279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15282
15283
15284
15285
15286
15287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking D GCC version" >&5
15288 $as_echo_n "checking D GCC version... " >&6; }
15289 gcc_version=`eval $get_gcc_base_ver $srcdir/../gcc/BASE-VER`
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_version" >&5
15291 $as_echo "$gcc_version" >&6; }
15292
15293
15294
15295 # Check whether --with-cross-host was given.
15296 if test "${with_cross_host+set}" = set; then :
15297 withval=$with_cross_host;
15298 fi
15299
15300
15301 libphobos_toolexecdir=no
15302 libphobos_toolexeclibdir=no
15303
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
15305 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
15306 # Check whether --enable-version-specific-runtime-libs was given.
15307 if test "${enable_version_specific_runtime_libs+set}" = set; then :
15308 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
15309 yes) version_specific_libs=yes ;;
15310 no) version_specific_libs=no ;;
15311 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
15312 esac
15313 else
15314 version_specific_libs=no
15315 fi
15316
15317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
15318 $as_echo "$version_specific_libs" >&6; }
15319
15320
15321 # Check whether --with-toolexeclibdir was given.
15322 if test "${with_toolexeclibdir+set}" = set; then :
15323 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
15324 /)
15325 ;;
15326 */)
15327 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
15328 ;;
15329 esac
15330 else
15331 with_toolexeclibdir=no
15332 fi
15333
15334
15335
15336 # Version-specific runtime libs processing.
15337 if test $version_specific_libs = yes; then
15338 libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15339 libphobos_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
15340 else
15341 # Calculate libphobos_toolexecdir, libphobos_toolexeclibdir
15342 # Install a library built with a cross compiler in tooldir, not libdir.
15343 if test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
15344 libphobos_toolexecdir='${exec_prefix}/${host_alias}'
15345 case ${with_toolexeclibdir} in
15346 no)
15347 libphobos_toolexeclibdir='${toolexecdir}/lib'
15348 ;;
15349 *)
15350 libphobos_toolexeclibdir=${with_toolexeclibdir}
15351 ;;
15352 esac
15353 else
15354 libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15355 libphobos_toolexeclibdir='${libdir}'
15356 fi
15357 multi_os_directory=`$GDC -print-multi-os-directory`
15358 case $multi_os_directory in
15359 .) ;; # Avoid trailing /.
15360 *) libphobos_toolexeclibdir=${libphobos_toolexeclibdir}/${multi_os_directory} ;;
15361 esac
15362 fi
15363
15364
15365
15366 # Default case for install directory for D sources files.
15367 gdc_include_dir='$(libdir)/gcc/${target_alias}/${gcc_version}/include/d'
15368
15369
15370
15371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-libphobos" >&5
15372 $as_echo_n "checking for --enable-libphobos... " >&6; }
15373 # Check whether --enable-libphobos was given.
15374 if test "${enable_libphobos+set}" = set; then :
15375 enableval=$enable_libphobos;
15376 fi
15377
15378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libphobos" >&5
15379 $as_echo "$enable_libphobos" >&6; }
15380
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libphobos-druntime-only" >&5
15382 $as_echo_n "checking for --with-libphobos-druntime-only... " >&6; }
15383
15384 # Check whether --with-libphobos-druntime-only was given.
15385 if test "${with_libphobos_druntime_only+set}" = set; then :
15386 withval=$with_libphobos_druntime_only;
15387 else
15388 with_libphobos_druntime_only=auto
15389 fi
15390
15391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_libphobos_druntime_only" >&5
15392 $as_echo "$with_libphobos_druntime_only" >&6; }
15393
15394 case "$with_libphobos_druntime_only" in
15395 yes|no|auto) ;;
15396 *) as_fn_error $? "Invalid argument for --with-libphobos-druntime-only" "$LINENO" 5 ;;
15397 esac
15398
15399 # See if supported.
15400 unset LIBPHOBOS_SUPPORTED
15401 unset LIBDRUNTIME_ONLY
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for host support for libphobos" >&5
15403 $as_echo_n "checking for host support for libphobos... " >&6; }
15404 . ${srcdir}/configure.tgt
15405 case ${host} in
15406 x86_64-*-solaris2.* | i?86-*-solaris2.*)
15407 # libphobos doesn't compile with the Solaris/x86 assembler due to a
15408 # relatively low linelength limit.
15409 as_prog=`$CC -print-prog-name=as`
15410 if test -n "$as_prog" && $as_prog -v /dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
15411 druntime_cv_use_gas=yes;
15412 else
15413 druntime_cv_use_gas=no;
15414 fi
15415 rm -f a.out
15416 if test x$druntime_cv_use_gas = xno; then
15417 LIBPHOBOS_SUPPORTED=no
15418 fi
15419 # 64-bit D execution fails with Solaris ld without -z relax=transtls support.
15420 if test "$druntime_ld_gld" = "no" && test "$druntime_ld_relax_transtls" = "no"; then
15421 LIBPHOBOS_SUPPORTED=no
15422 fi
15423 ;;
15424 esac
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPHOBOS_SUPPORTED" >&5
15426 $as_echo "$LIBPHOBOS_SUPPORTED" >&6; }
15427
15428 # Decide if it's usable.
15429 case $LIBPHOBOS_SUPPORTED:$enable_libphobos in
15430 *:no) use_libphobos=no ;;
15431 *:yes) use_libphobos=yes ;;
15432 yes:*) use_libphobos=yes ;;
15433 *:*) use_libphobos=no ;;
15434 esac
15435 if test x$use_libphobos = xyes; then
15436 ENABLE_LIBPHOBOS_TRUE=
15437 ENABLE_LIBPHOBOS_FALSE='#'
15438 else
15439 ENABLE_LIBPHOBOS_TRUE='#'
15440 ENABLE_LIBPHOBOS_FALSE=
15441 fi
15442
15443
15444 # Decide if only libdruntime should be built.
15445 case $LIBDRUNTIME_ONLY:$with_libphobos_druntime_only in
15446 *:no) only_libdruntime=no ;;
15447 *:yes) only_libdruntime=yes ;;
15448 yes:*) only_libdruntime=yes ;;
15449 *:*) only_libdruntime=no ;;
15450 esac
15451 if test x$only_libdruntime = xyes; then
15452 ENABLE_LIBDRUNTIME_ONLY_TRUE=
15453 ENABLE_LIBDRUNTIME_ONLY_FALSE='#'
15454 else
15455 ENABLE_LIBDRUNTIME_ONLY_TRUE='#'
15456 ENABLE_LIBDRUNTIME_ONLY_FALSE=
15457 fi
15458
15459
15460 # Enable expensive internal checks
15461 # Check whether --enable-libphobos-checking was given.
15462 if test "${enable_libphobos_checking+set}" = set; then :
15463 enableval=$enable_libphobos_checking; ac_checking_flags="${enableval}"
15464 else
15465 ac_checking_flags=release
15466 fi
15467
15468 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
15469 for check in release $ac_checking_flags
15470 do
15471 case $check in
15472 # These set all the flags to specific states
15473 yes|all) RELEASE_FLAG="-fno-release" ; ASSERT_FLAG= ;;
15474 no|none|release) RELEASE_FLAG="-frelease" ; ASSERT_FLAG= ;;
15475 # These enable particular checks
15476 assert) ASSERT_FLAG="-fassert" ;;
15477 # Accept
15478 *) ;;
15479 esac
15480 done
15481 IFS="$ac_save_IFS"
15482 CHECKING_DFLAGS="$RELEASE_FLAG $ASSERT_FLAG"
15483
15484
15485 # Add drtbegin.o/drtend.o to startfile/endfile specs in libgphobos.spec
15486 if test "$DCFG_MINFO_BRACKETING" = "false"; then
15487 DRTSTUFF_SPEC=$srcdir/src/drtstuff.spec
15488 else
15489 DRTSTUFF_SPEC=/dev/null
15490 fi
15491
15492
15493 # Add dependencies for libgphobos.spec file
15494 SPEC_PHOBOS_DEPS="$LIBS"
15495
15496
15497 # Libdruntime / phobos soname version
15498 libtool_VERSION=1:0:0
15499
15500
15501 # Set default flags (after DRUNTIME_WERROR!)
15502 if test -z "$GDCFLAGS"; then
15503 GDCFLAGS="-g -O2"
15504 fi
15505
15506
15507 WARN_DFLAGS="-Wall $WERROR_FLAG"
15508
15509
15510 # Sanity check for the cross-compilation case:
15511 ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
15512 if test "x$ac_cv_header_stdio_h" = xyes; then :
15513 :
15514 else
15515 as_fn_error $? "cannot find stdio.h." "$LINENO" 5
15516 fi
15517
15518
15519
15520 ac_config_files="$ac_config_files Makefile"
15521
15522
15523 ac_config_files="$ac_config_files libdruntime/gcc/config.d libdruntime/gcc/libbacktrace.d"
15524
15525 ac_config_files="$ac_config_files src/libgphobos.spec"
15526
15527 ac_config_files="$ac_config_files testsuite/testsuite_flags"
15528
15529
15530 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
15531 # that multilib installs will end up installed in the correct place.
15532 # The testsuite needs it for multilib-aware ABI baseline files.
15533 # To work around this not being passed down from config-ml.in ->
15534 # srcdir/Makefile.am -> srcdir/{src,libdruntime,...}/Makefile.am, manually
15535 # append it here. Only modify Makefiles that have just been created.
15536 #
15537 # Also, get rid of this simulated-VPATH thing that automake does.
15538 ac_config_files="$ac_config_files libdruntime/Makefile src/Makefile testsuite/Makefile"
15539
15540
15541 cat >confcache <<\_ACEOF
15542 # This file is a shell script that caches the results of configure
15543 # tests run on this system so they can be shared between configure
15544 # scripts and configure runs, see configure's option --config-cache.
15545 # It is not useful on other systems. If it contains results you don't
15546 # want to keep, you may remove or edit it.
15547 #
15548 # config.status only pays attention to the cache file if you give it
15549 # the --recheck option to rerun configure.
15550 #
15551 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15552 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15553 # following values.
15554
15555 _ACEOF
15556
15557 # The following way of writing the cache mishandles newlines in values,
15558 # but we know of no workaround that is simple, portable, and efficient.
15559 # So, we kill variables containing newlines.
15560 # Ultrix sh set writes to stderr and can't be redirected directly,
15561 # and sets the high bit in the cache file unless we assign to the vars.
15562 (
15563 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15564 eval ac_val=\$$ac_var
15565 case $ac_val in #(
15566 *${as_nl}*)
15567 case $ac_var in #(
15568 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15569 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15570 esac
15571 case $ac_var in #(
15572 _ | IFS | as_nl) ;; #(
15573 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15574 *) { eval $ac_var=; unset $ac_var;} ;;
15575 esac ;;
15576 esac
15577 done
15578
15579 (set) 2>&1 |
15580 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15581 *${as_nl}ac_space=\ *)
15582 # `set' does not quote correctly, so add quotes: double-quote
15583 # substitution turns \\\\ into \\, and sed turns \\ into \.
15584 sed -n \
15585 "s/'/'\\\\''/g;
15586 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15587 ;; #(
15588 *)
15589 # `set' quotes correctly as required by POSIX, so do not add quotes.
15590 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15591 ;;
15592 esac |
15593 sort
15594 ) |
15595 sed '
15596 /^ac_cv_env_/b end
15597 t clear
15598 :clear
15599 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15600 t end
15601 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15602 :end' >>confcache
15603 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15604 if test -w "$cache_file"; then
15605 if test "x$cache_file" != "x/dev/null"; then
15606 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15607 $as_echo "$as_me: updating cache $cache_file" >&6;}
15608 if test ! -f "$cache_file" || test -h "$cache_file"; then
15609 cat confcache >"$cache_file"
15610 else
15611 case $cache_file in #(
15612 */* | ?:*)
15613 mv -f confcache "$cache_file"$$ &&
15614 mv -f "$cache_file"$$ "$cache_file" ;; #(
15615 *)
15616 mv -f confcache "$cache_file" ;;
15617 esac
15618 fi
15619 fi
15620 else
15621 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15622 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15623 fi
15624 fi
15625 rm -f confcache
15626
15627 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15628 # Let make expand exec_prefix.
15629 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15630
15631 DEFS=-DHAVE_CONFIG_H
15632
15633 ac_libobjs=
15634 ac_ltlibobjs=
15635 U=
15636 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15637 # 1. Remove the extension, and $U if already installed.
15638 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15639 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15640 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15641 # will be set to the directory where LIBOBJS objects are built.
15642 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15643 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15644 done
15645 LIBOBJS=$ac_libobjs
15646
15647 LTLIBOBJS=$ac_ltlibobjs
15648
15649
15650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15651 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15652 if test -n "$am_sleep_pid"; then
15653 # Hide warnings about reused PIDs.
15654 wait $am_sleep_pid 2>/dev/null
15655 fi
15656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15657 $as_echo "done" >&6; }
15658 if test -n "$EXEEXT"; then
15659 am__EXEEXT_TRUE=
15660 am__EXEEXT_FALSE='#'
15661 else
15662 am__EXEEXT_TRUE='#'
15663 am__EXEEXT_FALSE=
15664 fi
15665
15666 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15667 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15668 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15669 fi
15670 if test -z "${DRUNTIME_CPU_AARCH64_TRUE}" && test -z "${DRUNTIME_CPU_AARCH64_FALSE}"; then
15671 as_fn_error $? "conditional \"DRUNTIME_CPU_AARCH64\" was never defined.
15672 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15673 fi
15674 if test -z "${DRUNTIME_CPU_ARM_TRUE}" && test -z "${DRUNTIME_CPU_ARM_FALSE}"; then
15675 as_fn_error $? "conditional \"DRUNTIME_CPU_ARM\" was never defined.
15676 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15677 fi
15678 if test -z "${DRUNTIME_CPU_MIPS_TRUE}" && test -z "${DRUNTIME_CPU_MIPS_FALSE}"; then
15679 as_fn_error $? "conditional \"DRUNTIME_CPU_MIPS\" was never defined.
15680 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15681 fi
15682 if test -z "${DRUNTIME_CPU_POWERPC_TRUE}" && test -z "${DRUNTIME_CPU_POWERPC_FALSE}"; then
15683 as_fn_error $? "conditional \"DRUNTIME_CPU_POWERPC\" was never defined.
15684 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15685 fi
15686 if test -z "${DRUNTIME_CPU_X86_TRUE}" && test -z "${DRUNTIME_CPU_X86_FALSE}"; then
15687 as_fn_error $? "conditional \"DRUNTIME_CPU_X86\" was never defined.
15688 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15689 fi
15690 if test -z "${DRUNTIME_CPU_SYSTEMZ_TRUE}" && test -z "${DRUNTIME_CPU_SYSTEMZ_FALSE}"; then
15691 as_fn_error $? "conditional \"DRUNTIME_CPU_SYSTEMZ\" was never defined.
15692 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15693 fi
15694 if test -z "${DRUNTIME_CPU_S390_TRUE}" && test -z "${DRUNTIME_CPU_S390_FALSE}"; then
15695 as_fn_error $? "conditional \"DRUNTIME_CPU_S390\" was never defined.
15696 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15697 fi
15698 if test -z "${DRUNTIME_OS_AIX_TRUE}" && test -z "${DRUNTIME_OS_AIX_FALSE}"; then
15699 as_fn_error $? "conditional \"DRUNTIME_OS_AIX\" was never defined.
15700 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15701 fi
15702 if test -z "${DRUNTIME_OS_ANDROID_TRUE}" && test -z "${DRUNTIME_OS_ANDROID_FALSE}"; then
15703 as_fn_error $? "conditional \"DRUNTIME_OS_ANDROID\" was never defined.
15704 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15705 fi
15706 if test -z "${DRUNTIME_OS_DARWIN_TRUE}" && test -z "${DRUNTIME_OS_DARWIN_FALSE}"; then
15707 as_fn_error $? "conditional \"DRUNTIME_OS_DARWIN\" was never defined.
15708 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15709 fi
15710 if test -z "${DRUNTIME_OS_DRAGONFLYBSD_TRUE}" && test -z "${DRUNTIME_OS_DRAGONFLYBSD_FALSE}"; then
15711 as_fn_error $? "conditional \"DRUNTIME_OS_DRAGONFLYBSD\" was never defined.
15712 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15713 fi
15714 if test -z "${DRUNTIME_OS_FREEBSD_TRUE}" && test -z "${DRUNTIME_OS_FREEBSD_FALSE}"; then
15715 as_fn_error $? "conditional \"DRUNTIME_OS_FREEBSD\" was never defined.
15716 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15717 fi
15718 if test -z "${DRUNTIME_OS_NETBSD_TRUE}" && test -z "${DRUNTIME_OS_NETBSD_FALSE}"; then
15719 as_fn_error $? "conditional \"DRUNTIME_OS_NETBSD\" was never defined.
15720 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15721 fi
15722 if test -z "${DRUNTIME_OS_OPENBSD_TRUE}" && test -z "${DRUNTIME_OS_OPENBSD_FALSE}"; then
15723 as_fn_error $? "conditional \"DRUNTIME_OS_OPENBSD\" was never defined.
15724 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15725 fi
15726 if test -z "${DRUNTIME_OS_LINUX_TRUE}" && test -z "${DRUNTIME_OS_LINUX_FALSE}"; then
15727 as_fn_error $? "conditional \"DRUNTIME_OS_LINUX\" was never defined.
15728 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15729 fi
15730 if test -z "${DRUNTIME_OS_MINGW_TRUE}" && test -z "${DRUNTIME_OS_MINGW_FALSE}"; then
15731 as_fn_error $? "conditional \"DRUNTIME_OS_MINGW\" was never defined.
15732 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15733 fi
15734 if test -z "${DRUNTIME_OS_SOLARIS_TRUE}" && test -z "${DRUNTIME_OS_SOLARIS_FALSE}"; then
15735 as_fn_error $? "conditional \"DRUNTIME_OS_SOLARIS\" was never defined.
15736 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15737 fi
15738 if test -z "${DRUNTIME_OS_POSIX_TRUE}" && test -z "${DRUNTIME_OS_POSIX_FALSE}"; then
15739 as_fn_error $? "conditional \"DRUNTIME_OS_POSIX\" was never defined.
15740 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15741 fi
15742 if test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE}" && test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE}"; then
15743 as_fn_error $? "conditional \"DRUNTIME_OS_ARM_EABI_UNWINDER\" was never defined.
15744 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15745 fi
15746 if test -z "${DRUNTIME_OS_MINFO_BRACKETING_TRUE}" && test -z "${DRUNTIME_OS_MINFO_BRACKETING_FALSE}"; then
15747 as_fn_error $? "conditional \"DRUNTIME_OS_MINFO_BRACKETING\" was never defined.
15748 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15749 fi
15750 if test -z "${ENABLE_LIBPHOBOS_TRUE}" && test -z "${ENABLE_LIBPHOBOS_FALSE}"; then
15751 as_fn_error $? "conditional \"ENABLE_LIBPHOBOS\" was never defined.
15752 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15753 fi
15754 if test -z "${ENABLE_LIBDRUNTIME_ONLY_TRUE}" && test -z "${ENABLE_LIBDRUNTIME_ONLY_FALSE}"; then
15755 as_fn_error $? "conditional \"ENABLE_LIBDRUNTIME_ONLY\" was never defined.
15756 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15757 fi
15758
15759 : "${CONFIG_STATUS=./config.status}"
15760 ac_write_fail=0
15761 ac_clean_files_save=$ac_clean_files
15762 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15763 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15764 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15765 as_write_fail=0
15766 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15767 #! $SHELL
15768 # Generated by $as_me.
15769 # Run this file to recreate the current configuration.
15770 # Compiler output produced by configure, useful for debugging
15771 # configure, is in config.log if it exists.
15772
15773 debug=false
15774 ac_cs_recheck=false
15775 ac_cs_silent=false
15776
15777 SHELL=\${CONFIG_SHELL-$SHELL}
15778 export SHELL
15779 _ASEOF
15780 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15781 ## -------------------- ##
15782 ## M4sh Initialization. ##
15783 ## -------------------- ##
15784
15785 # Be more Bourne compatible
15786 DUALCASE=1; export DUALCASE # for MKS sh
15787 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15788 emulate sh
15789 NULLCMD=:
15790 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15791 # is contrary to our usage. Disable this feature.
15792 alias -g '${1+"$@"}'='"$@"'
15793 setopt NO_GLOB_SUBST
15794 else
15795 case `(set -o) 2>/dev/null` in #(
15796 *posix*) :
15797 set -o posix ;; #(
15798 *) :
15799 ;;
15800 esac
15801 fi
15802
15803
15804 as_nl='
15805 '
15806 export as_nl
15807 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15808 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15809 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15810 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15811 # Prefer a ksh shell builtin over an external printf program on Solaris,
15812 # but without wasting forks for bash or zsh.
15813 if test -z "$BASH_VERSION$ZSH_VERSION" \
15814 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15815 as_echo='print -r --'
15816 as_echo_n='print -rn --'
15817 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15818 as_echo='printf %s\n'
15819 as_echo_n='printf %s'
15820 else
15821 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15822 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15823 as_echo_n='/usr/ucb/echo -n'
15824 else
15825 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15826 as_echo_n_body='eval
15827 arg=$1;
15828 case $arg in #(
15829 *"$as_nl"*)
15830 expr "X$arg" : "X\\(.*\\)$as_nl";
15831 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15832 esac;
15833 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15834 '
15835 export as_echo_n_body
15836 as_echo_n='sh -c $as_echo_n_body as_echo'
15837 fi
15838 export as_echo_body
15839 as_echo='sh -c $as_echo_body as_echo'
15840 fi
15841
15842 # The user is always right.
15843 if test "${PATH_SEPARATOR+set}" != set; then
15844 PATH_SEPARATOR=:
15845 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15846 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15847 PATH_SEPARATOR=';'
15848 }
15849 fi
15850
15851
15852 # IFS
15853 # We need space, tab and new line, in precisely that order. Quoting is
15854 # there to prevent editors from complaining about space-tab.
15855 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15856 # splitting by setting IFS to empty value.)
15857 IFS=" "" $as_nl"
15858
15859 # Find who we are. Look in the path if we contain no directory separator.
15860 as_myself=
15861 case $0 in #((
15862 *[\\/]* ) as_myself=$0 ;;
15863 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15864 for as_dir in $PATH
15865 do
15866 IFS=$as_save_IFS
15867 test -z "$as_dir" && as_dir=.
15868 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15869 done
15870 IFS=$as_save_IFS
15871
15872 ;;
15873 esac
15874 # We did not find ourselves, most probably we were run as `sh COMMAND'
15875 # in which case we are not to be found in the path.
15876 if test "x$as_myself" = x; then
15877 as_myself=$0
15878 fi
15879 if test ! -f "$as_myself"; then
15880 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15881 exit 1
15882 fi
15883
15884 # Unset variables that we do not need and which cause bugs (e.g. in
15885 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15886 # suppresses any "Segmentation fault" message there. '((' could
15887 # trigger a bug in pdksh 5.2.14.
15888 for as_var in BASH_ENV ENV MAIL MAILPATH
15889 do eval test x\${$as_var+set} = xset \
15890 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15891 done
15892 PS1='$ '
15893 PS2='> '
15894 PS4='+ '
15895
15896 # NLS nuisances.
15897 LC_ALL=C
15898 export LC_ALL
15899 LANGUAGE=C
15900 export LANGUAGE
15901
15902 # CDPATH.
15903 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15904
15905
15906 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15907 # ----------------------------------------
15908 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15909 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15910 # script with STATUS, using 1 if that was 0.
15911 as_fn_error ()
15912 {
15913 as_status=$1; test $as_status -eq 0 && as_status=1
15914 if test "$4"; then
15915 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15916 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15917 fi
15918 $as_echo "$as_me: error: $2" >&2
15919 as_fn_exit $as_status
15920 } # as_fn_error
15921
15922
15923 # as_fn_set_status STATUS
15924 # -----------------------
15925 # Set $? to STATUS, without forking.
15926 as_fn_set_status ()
15927 {
15928 return $1
15929 } # as_fn_set_status
15930
15931 # as_fn_exit STATUS
15932 # -----------------
15933 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15934 as_fn_exit ()
15935 {
15936 set +e
15937 as_fn_set_status $1
15938 exit $1
15939 } # as_fn_exit
15940
15941 # as_fn_unset VAR
15942 # ---------------
15943 # Portably unset VAR.
15944 as_fn_unset ()
15945 {
15946 { eval $1=; unset $1;}
15947 }
15948 as_unset=as_fn_unset
15949 # as_fn_append VAR VALUE
15950 # ----------------------
15951 # Append the text in VALUE to the end of the definition contained in VAR. Take
15952 # advantage of any shell optimizations that allow amortized linear growth over
15953 # repeated appends, instead of the typical quadratic growth present in naive
15954 # implementations.
15955 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15956 eval 'as_fn_append ()
15957 {
15958 eval $1+=\$2
15959 }'
15960 else
15961 as_fn_append ()
15962 {
15963 eval $1=\$$1\$2
15964 }
15965 fi # as_fn_append
15966
15967 # as_fn_arith ARG...
15968 # ------------------
15969 # Perform arithmetic evaluation on the ARGs, and store the result in the
15970 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15971 # must be portable across $(()) and expr.
15972 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15973 eval 'as_fn_arith ()
15974 {
15975 as_val=$(( $* ))
15976 }'
15977 else
15978 as_fn_arith ()
15979 {
15980 as_val=`expr "$@" || test $? -eq 1`
15981 }
15982 fi # as_fn_arith
15983
15984
15985 if expr a : '\(a\)' >/dev/null 2>&1 &&
15986 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15987 as_expr=expr
15988 else
15989 as_expr=false
15990 fi
15991
15992 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15993 as_basename=basename
15994 else
15995 as_basename=false
15996 fi
15997
15998 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15999 as_dirname=dirname
16000 else
16001 as_dirname=false
16002 fi
16003
16004 as_me=`$as_basename -- "$0" ||
16005 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16006 X"$0" : 'X\(//\)$' \| \
16007 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16008 $as_echo X/"$0" |
16009 sed '/^.*\/\([^/][^/]*\)\/*$/{
16010 s//\1/
16011 q
16012 }
16013 /^X\/\(\/\/\)$/{
16014 s//\1/
16015 q
16016 }
16017 /^X\/\(\/\).*/{
16018 s//\1/
16019 q
16020 }
16021 s/.*/./; q'`
16022
16023 # Avoid depending upon Character Ranges.
16024 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16025 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16026 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16027 as_cr_digits='0123456789'
16028 as_cr_alnum=$as_cr_Letters$as_cr_digits
16029
16030 ECHO_C= ECHO_N= ECHO_T=
16031 case `echo -n x` in #(((((
16032 -n*)
16033 case `echo 'xy\c'` in
16034 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16035 xy) ECHO_C='\c';;
16036 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16037 ECHO_T=' ';;
16038 esac;;
16039 *)
16040 ECHO_N='-n';;
16041 esac
16042
16043 rm -f conf$$ conf$$.exe conf$$.file
16044 if test -d conf$$.dir; then
16045 rm -f conf$$.dir/conf$$.file
16046 else
16047 rm -f conf$$.dir
16048 mkdir conf$$.dir 2>/dev/null
16049 fi
16050 if (echo >conf$$.file) 2>/dev/null; then
16051 if ln -s conf$$.file conf$$ 2>/dev/null; then
16052 as_ln_s='ln -s'
16053 # ... but there are two gotchas:
16054 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16055 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16056 # In both cases, we have to default to `cp -pR'.
16057 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16058 as_ln_s='cp -pR'
16059 elif ln conf$$.file conf$$ 2>/dev/null; then
16060 as_ln_s=ln
16061 else
16062 as_ln_s='cp -pR'
16063 fi
16064 else
16065 as_ln_s='cp -pR'
16066 fi
16067 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16068 rmdir conf$$.dir 2>/dev/null
16069
16070
16071 # as_fn_mkdir_p
16072 # -------------
16073 # Create "$as_dir" as a directory, including parents if necessary.
16074 as_fn_mkdir_p ()
16075 {
16076
16077 case $as_dir in #(
16078 -*) as_dir=./$as_dir;;
16079 esac
16080 test -d "$as_dir" || eval $as_mkdir_p || {
16081 as_dirs=
16082 while :; do
16083 case $as_dir in #(
16084 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16085 *) as_qdir=$as_dir;;
16086 esac
16087 as_dirs="'$as_qdir' $as_dirs"
16088 as_dir=`$as_dirname -- "$as_dir" ||
16089 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16090 X"$as_dir" : 'X\(//\)[^/]' \| \
16091 X"$as_dir" : 'X\(//\)$' \| \
16092 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16093 $as_echo X"$as_dir" |
16094 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16095 s//\1/
16096 q
16097 }
16098 /^X\(\/\/\)[^/].*/{
16099 s//\1/
16100 q
16101 }
16102 /^X\(\/\/\)$/{
16103 s//\1/
16104 q
16105 }
16106 /^X\(\/\).*/{
16107 s//\1/
16108 q
16109 }
16110 s/.*/./; q'`
16111 test -d "$as_dir" && break
16112 done
16113 test -z "$as_dirs" || eval "mkdir $as_dirs"
16114 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16115
16116
16117 } # as_fn_mkdir_p
16118 if mkdir -p . 2>/dev/null; then
16119 as_mkdir_p='mkdir -p "$as_dir"'
16120 else
16121 test -d ./-p && rmdir ./-p
16122 as_mkdir_p=false
16123 fi
16124
16125
16126 # as_fn_executable_p FILE
16127 # -----------------------
16128 # Test if FILE is an executable regular file.
16129 as_fn_executable_p ()
16130 {
16131 test -f "$1" && test -x "$1"
16132 } # as_fn_executable_p
16133 as_test_x='test -x'
16134 as_executable_p=as_fn_executable_p
16135
16136 # Sed expression to map a string onto a valid CPP name.
16137 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16138
16139 # Sed expression to map a string onto a valid variable name.
16140 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16141
16142
16143 exec 6>&1
16144 ## ----------------------------------- ##
16145 ## Main body of $CONFIG_STATUS script. ##
16146 ## ----------------------------------- ##
16147 _ASEOF
16148 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16149
16150 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16151 # Save the log message, to keep $0 and so on meaningful, and to
16152 # report actual input values of CONFIG_FILES etc. instead of their
16153 # values after options handling.
16154 ac_log="
16155 This file was extended by package-unused $as_me version-unused, which was
16156 generated by GNU Autoconf 2.69. Invocation command line was
16157
16158 CONFIG_FILES = $CONFIG_FILES
16159 CONFIG_HEADERS = $CONFIG_HEADERS
16160 CONFIG_LINKS = $CONFIG_LINKS
16161 CONFIG_COMMANDS = $CONFIG_COMMANDS
16162 $ $0 $@
16163
16164 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16165 "
16166
16167 _ACEOF
16168
16169 case $ac_config_files in *"
16170 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16171 esac
16172
16173 case $ac_config_headers in *"
16174 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16175 esac
16176
16177
16178 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16179 # Files that config.status was made for.
16180 config_files="$ac_config_files"
16181 config_headers="$ac_config_headers"
16182 config_commands="$ac_config_commands"
16183
16184 _ACEOF
16185
16186 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16187 ac_cs_usage="\
16188 \`$as_me' instantiates files and other configuration actions
16189 from templates according to the current configuration. Unless the files
16190 and actions are specified as TAGs, all are instantiated by default.
16191
16192 Usage: $0 [OPTION]... [TAG]...
16193
16194 -h, --help print this help, then exit
16195 -V, --version print version number and configuration settings, then exit
16196 --config print configuration, then exit
16197 -q, --quiet, --silent
16198 do not print progress messages
16199 -d, --debug don't remove temporary files
16200 --recheck update $as_me by reconfiguring in the same conditions
16201 --file=FILE[:TEMPLATE]
16202 instantiate the configuration file FILE
16203 --header=FILE[:TEMPLATE]
16204 instantiate the configuration header FILE
16205
16206 Configuration files:
16207 $config_files
16208
16209 Configuration headers:
16210 $config_headers
16211
16212 Configuration commands:
16213 $config_commands
16214
16215 Report bugs to the package provider."
16216
16217 _ACEOF
16218 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16219 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16220 ac_cs_version="\\
16221 package-unused config.status version-unused
16222 configured by $0, generated by GNU Autoconf 2.69,
16223 with options \\"\$ac_cs_config\\"
16224
16225 Copyright (C) 2012 Free Software Foundation, Inc.
16226 This config.status script is free software; the Free Software Foundation
16227 gives unlimited permission to copy, distribute and modify it."
16228
16229 ac_pwd='$ac_pwd'
16230 srcdir='$srcdir'
16231 INSTALL='$INSTALL'
16232 MKDIR_P='$MKDIR_P'
16233 AWK='$AWK'
16234 test -n "\$AWK" || AWK=awk
16235 _ACEOF
16236
16237 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16238 # The default lists apply if the user does not specify any file.
16239 ac_need_defaults=:
16240 while test $# != 0
16241 do
16242 case $1 in
16243 --*=?*)
16244 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16245 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16246 ac_shift=:
16247 ;;
16248 --*=)
16249 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16250 ac_optarg=
16251 ac_shift=:
16252 ;;
16253 *)
16254 ac_option=$1
16255 ac_optarg=$2
16256 ac_shift=shift
16257 ;;
16258 esac
16259
16260 case $ac_option in
16261 # Handling of the options.
16262 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16263 ac_cs_recheck=: ;;
16264 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16265 $as_echo "$ac_cs_version"; exit ;;
16266 --config | --confi | --conf | --con | --co | --c )
16267 $as_echo "$ac_cs_config"; exit ;;
16268 --debug | --debu | --deb | --de | --d | -d )
16269 debug=: ;;
16270 --file | --fil | --fi | --f )
16271 $ac_shift
16272 case $ac_optarg in
16273 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16274 '') as_fn_error $? "missing file argument" ;;
16275 esac
16276 as_fn_append CONFIG_FILES " '$ac_optarg'"
16277 ac_need_defaults=false;;
16278 --header | --heade | --head | --hea )
16279 $ac_shift
16280 case $ac_optarg in
16281 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16282 esac
16283 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16284 ac_need_defaults=false;;
16285 --he | --h)
16286 # Conflict between --help and --header
16287 as_fn_error $? "ambiguous option: \`$1'
16288 Try \`$0 --help' for more information.";;
16289 --help | --hel | -h )
16290 $as_echo "$ac_cs_usage"; exit ;;
16291 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16292 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16293 ac_cs_silent=: ;;
16294
16295 # This is an error.
16296 -*) as_fn_error $? "unrecognized option: \`$1'
16297 Try \`$0 --help' for more information." ;;
16298
16299 *) as_fn_append ac_config_targets " $1"
16300 ac_need_defaults=false ;;
16301
16302 esac
16303 shift
16304 done
16305
16306 ac_configure_extra_args=
16307
16308 if $ac_cs_silent; then
16309 exec 6>/dev/null
16310 ac_configure_extra_args="$ac_configure_extra_args --silent"
16311 fi
16312
16313 _ACEOF
16314 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16315 if \$ac_cs_recheck; then
16316 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16317 shift
16318 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16319 CONFIG_SHELL='$SHELL'
16320 export CONFIG_SHELL
16321 exec "\$@"
16322 fi
16323
16324 _ACEOF
16325 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16326 exec 5>>config.log
16327 {
16328 echo
16329 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16330 ## Running $as_me. ##
16331 _ASBOX
16332 $as_echo "$ac_log"
16333 } >&5
16334
16335 _ACEOF
16336 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16337 #
16338 # INIT-COMMANDS
16339 #
16340
16341 srcdir="$srcdir"
16342 host="$host"
16343 target="$target"
16344 with_multisubdir="$with_multisubdir"
16345 with_multisrctop="$with_multisrctop"
16346 with_target_subdir="$with_target_subdir"
16347 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16348 multi_basedir="$multi_basedir"
16349 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16350 CC="$CC"
16351 CXX="$CXX"
16352 GFORTRAN="$GFORTRAN"
16353 GDC="$GDC"
16354
16355
16356 # The HP-UX ksh and POSIX shell print the target directory to stdout
16357 # if CDPATH is set.
16358 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16359
16360 sed_quote_subst='$sed_quote_subst'
16361 double_quote_subst='$double_quote_subst'
16362 delay_variable_subst='$delay_variable_subst'
16363 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16364 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16365 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16366 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16367 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16368 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16369 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16370 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16371 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16372 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16373 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16374 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16375 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16376 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16377 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16378 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16379 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16380 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16381 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16382 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16383 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16384 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16385 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16386 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16387 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16388 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16389 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16390 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16391 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16392 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16393 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16394 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16395 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16396 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16397 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16398 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16399 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16400 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16401 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16402 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16403 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16404 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16405 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16406 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16407 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16408 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16409 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16410 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16411 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"`'
16412 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16413 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16414 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16415 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16416 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16417 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16418 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16419 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16420 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16421 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16422 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16423 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16424 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16425 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16426 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16427 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16428 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16429 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16430 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16431 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16432 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16433 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16434 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16435 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16436 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16437 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16438 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16439 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16440 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16441 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16442 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16443 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16444 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16445 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16446 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16447 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16448 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16449 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16450 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16451 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16452 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16453 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16454 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16455 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16456 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16457 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16458 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16459 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16460 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16461 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16462 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16463 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16464 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16465 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16466 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16467 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16468 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16469 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16470 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16471 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16472 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16473 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16474 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16475 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16476 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16477 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16478 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16479 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16480 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16481 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16482 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16483 LD_D='`$ECHO "$LD_D" | $SED "$delay_single_quote_subst"`'
16484 reload_flag_D='`$ECHO "$reload_flag_D" | $SED "$delay_single_quote_subst"`'
16485 reload_cmds_D='`$ECHO "$reload_cmds_D" | $SED "$delay_single_quote_subst"`'
16486 old_archive_cmds_D='`$ECHO "$old_archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16487 compiler_D='`$ECHO "$compiler_D" | $SED "$delay_single_quote_subst"`'
16488 GCC_D='`$ECHO "$GCC_D" | $SED "$delay_single_quote_subst"`'
16489 lt_prog_compiler_no_builtin_flag_D='`$ECHO "$lt_prog_compiler_no_builtin_flag_D" | $SED "$delay_single_quote_subst"`'
16490 lt_prog_compiler_wl_D='`$ECHO "$lt_prog_compiler_wl_D" | $SED "$delay_single_quote_subst"`'
16491 lt_prog_compiler_pic_D='`$ECHO "$lt_prog_compiler_pic_D" | $SED "$delay_single_quote_subst"`'
16492 lt_prog_compiler_static_D='`$ECHO "$lt_prog_compiler_static_D" | $SED "$delay_single_quote_subst"`'
16493 lt_cv_prog_compiler_c_o_D='`$ECHO "$lt_cv_prog_compiler_c_o_D" | $SED "$delay_single_quote_subst"`'
16494 archive_cmds_need_lc_D='`$ECHO "$archive_cmds_need_lc_D" | $SED "$delay_single_quote_subst"`'
16495 enable_shared_with_static_runtimes_D='`$ECHO "$enable_shared_with_static_runtimes_D" | $SED "$delay_single_quote_subst"`'
16496 export_dynamic_flag_spec_D='`$ECHO "$export_dynamic_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16497 whole_archive_flag_spec_D='`$ECHO "$whole_archive_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16498 compiler_needs_object_D='`$ECHO "$compiler_needs_object_D" | $SED "$delay_single_quote_subst"`'
16499 old_archive_from_new_cmds_D='`$ECHO "$old_archive_from_new_cmds_D" | $SED "$delay_single_quote_subst"`'
16500 old_archive_from_expsyms_cmds_D='`$ECHO "$old_archive_from_expsyms_cmds_D" | $SED "$delay_single_quote_subst"`'
16501 archive_cmds_D='`$ECHO "$archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16502 archive_expsym_cmds_D='`$ECHO "$archive_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16503 module_cmds_D='`$ECHO "$module_cmds_D" | $SED "$delay_single_quote_subst"`'
16504 module_expsym_cmds_D='`$ECHO "$module_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16505 with_gnu_ld_D='`$ECHO "$with_gnu_ld_D" | $SED "$delay_single_quote_subst"`'
16506 allow_undefined_flag_D='`$ECHO "$allow_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16507 no_undefined_flag_D='`$ECHO "$no_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16508 hardcode_libdir_flag_spec_D='`$ECHO "$hardcode_libdir_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16509 hardcode_libdir_flag_spec_ld_D='`$ECHO "$hardcode_libdir_flag_spec_ld_D" | $SED "$delay_single_quote_subst"`'
16510 hardcode_libdir_separator_D='`$ECHO "$hardcode_libdir_separator_D" | $SED "$delay_single_quote_subst"`'
16511 hardcode_direct_D='`$ECHO "$hardcode_direct_D" | $SED "$delay_single_quote_subst"`'
16512 hardcode_direct_absolute_D='`$ECHO "$hardcode_direct_absolute_D" | $SED "$delay_single_quote_subst"`'
16513 hardcode_minus_L_D='`$ECHO "$hardcode_minus_L_D" | $SED "$delay_single_quote_subst"`'
16514 hardcode_shlibpath_var_D='`$ECHO "$hardcode_shlibpath_var_D" | $SED "$delay_single_quote_subst"`'
16515 hardcode_automatic_D='`$ECHO "$hardcode_automatic_D" | $SED "$delay_single_quote_subst"`'
16516 inherit_rpath_D='`$ECHO "$inherit_rpath_D" | $SED "$delay_single_quote_subst"`'
16517 link_all_deplibs_D='`$ECHO "$link_all_deplibs_D" | $SED "$delay_single_quote_subst"`'
16518 fix_srcfile_path_D='`$ECHO "$fix_srcfile_path_D" | $SED "$delay_single_quote_subst"`'
16519 always_export_symbols_D='`$ECHO "$always_export_symbols_D" | $SED "$delay_single_quote_subst"`'
16520 export_symbols_cmds_D='`$ECHO "$export_symbols_cmds_D" | $SED "$delay_single_quote_subst"`'
16521 exclude_expsyms_D='`$ECHO "$exclude_expsyms_D" | $SED "$delay_single_quote_subst"`'
16522 include_expsyms_D='`$ECHO "$include_expsyms_D" | $SED "$delay_single_quote_subst"`'
16523 prelink_cmds_D='`$ECHO "$prelink_cmds_D" | $SED "$delay_single_quote_subst"`'
16524 file_list_spec_D='`$ECHO "$file_list_spec_D" | $SED "$delay_single_quote_subst"`'
16525 hardcode_action_D='`$ECHO "$hardcode_action_D" | $SED "$delay_single_quote_subst"`'
16526
16527 LTCC='$LTCC'
16528 LTCFLAGS='$LTCFLAGS'
16529 compiler='$compiler_DEFAULT'
16530
16531 # A function that is used when there is no print builtin or printf.
16532 func_fallback_echo ()
16533 {
16534 eval 'cat <<_LTECHO_EOF
16535 \$1
16536 _LTECHO_EOF'
16537 }
16538
16539 # Quote evaled strings.
16540 for var in SHELL \
16541 ECHO \
16542 SED \
16543 GREP \
16544 EGREP \
16545 FGREP \
16546 LD \
16547 NM \
16548 LN_S \
16549 lt_SP2NL \
16550 lt_NL2SP \
16551 reload_flag \
16552 OBJDUMP \
16553 deplibs_check_method \
16554 file_magic_cmd \
16555 AR \
16556 AR_FLAGS \
16557 STRIP \
16558 RANLIB \
16559 CC \
16560 CFLAGS \
16561 compiler \
16562 lt_cv_sys_global_symbol_pipe \
16563 lt_cv_sys_global_symbol_to_cdecl \
16564 lt_cv_sys_global_symbol_to_c_name_address \
16565 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16566 lt_prog_compiler_no_builtin_flag \
16567 lt_prog_compiler_wl \
16568 lt_prog_compiler_pic \
16569 lt_prog_compiler_static \
16570 lt_cv_prog_compiler_c_o \
16571 need_locks \
16572 DSYMUTIL \
16573 NMEDIT \
16574 LIPO \
16575 OTOOL \
16576 OTOOL64 \
16577 shrext_cmds \
16578 export_dynamic_flag_spec \
16579 whole_archive_flag_spec \
16580 compiler_needs_object \
16581 with_gnu_ld \
16582 allow_undefined_flag \
16583 no_undefined_flag \
16584 hardcode_libdir_flag_spec \
16585 hardcode_libdir_flag_spec_ld \
16586 hardcode_libdir_separator \
16587 fix_srcfile_path \
16588 exclude_expsyms \
16589 include_expsyms \
16590 file_list_spec \
16591 variables_saved_for_relink \
16592 libname_spec \
16593 library_names_spec \
16594 soname_spec \
16595 install_override_mode \
16596 finish_eval \
16597 old_striplib \
16598 striplib \
16599 LD_D \
16600 reload_flag_D \
16601 compiler_D \
16602 lt_prog_compiler_no_builtin_flag_D \
16603 lt_prog_compiler_wl_D \
16604 lt_prog_compiler_pic_D \
16605 lt_prog_compiler_static_D \
16606 lt_cv_prog_compiler_c_o_D \
16607 export_dynamic_flag_spec_D \
16608 whole_archive_flag_spec_D \
16609 compiler_needs_object_D \
16610 with_gnu_ld_D \
16611 allow_undefined_flag_D \
16612 no_undefined_flag_D \
16613 hardcode_libdir_flag_spec_D \
16614 hardcode_libdir_flag_spec_ld_D \
16615 hardcode_libdir_separator_D \
16616 fix_srcfile_path_D \
16617 exclude_expsyms_D \
16618 include_expsyms_D \
16619 file_list_spec_D; do
16620 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16621 *[\\\\\\\`\\"\\\$]*)
16622 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16623 ;;
16624 *)
16625 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16626 ;;
16627 esac
16628 done
16629
16630 # Double-quote double-evaled strings.
16631 for var in reload_cmds \
16632 old_postinstall_cmds \
16633 old_postuninstall_cmds \
16634 old_archive_cmds \
16635 extract_expsyms_cmds \
16636 old_archive_from_new_cmds \
16637 old_archive_from_expsyms_cmds \
16638 archive_cmds \
16639 archive_expsym_cmds \
16640 module_cmds \
16641 module_expsym_cmds \
16642 export_symbols_cmds \
16643 prelink_cmds \
16644 postinstall_cmds \
16645 postuninstall_cmds \
16646 finish_cmds \
16647 sys_lib_search_path_spec \
16648 sys_lib_dlsearch_path_spec \
16649 reload_cmds_D \
16650 old_archive_cmds_D \
16651 old_archive_from_new_cmds_D \
16652 old_archive_from_expsyms_cmds_D \
16653 archive_cmds_D \
16654 archive_expsym_cmds_D \
16655 module_cmds_D \
16656 module_expsym_cmds_D \
16657 export_symbols_cmds_D \
16658 prelink_cmds_D; do
16659 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16660 *[\\\\\\\`\\"\\\$]*)
16661 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16662 ;;
16663 *)
16664 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16665 ;;
16666 esac
16667 done
16668
16669 ac_aux_dir='$ac_aux_dir'
16670 xsi_shell='$xsi_shell'
16671 lt_shell_append='$lt_shell_append'
16672
16673 # See if we are running on zsh, and set the options which allow our
16674 # commands through without removal of \ escapes INIT.
16675 if test -n "\${ZSH_VERSION+set}" ; then
16676 setopt NO_GLOB_SUBST
16677 fi
16678
16679
16680 PACKAGE='$PACKAGE'
16681 VERSION='$VERSION'
16682 TIMESTAMP='$TIMESTAMP'
16683 RM='$RM'
16684 ofile='$ofile'
16685
16686
16687
16688
16689
16690
16691 _ACEOF
16692
16693 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16694
16695 # Handling of arguments.
16696 for ac_config_target in $ac_config_targets
16697 do
16698 case $ac_config_target in
16699 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16700 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16701 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16702 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16703 "libdruntime/gcc/config.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/config.d" ;;
16704 "libdruntime/gcc/libbacktrace.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/libbacktrace.d" ;;
16705 "src/libgphobos.spec") CONFIG_FILES="$CONFIG_FILES src/libgphobos.spec" ;;
16706 "testsuite/testsuite_flags") CONFIG_FILES="$CONFIG_FILES testsuite/testsuite_flags" ;;
16707 "libdruntime/Makefile") CONFIG_FILES="$CONFIG_FILES libdruntime/Makefile" ;;
16708 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16709 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16710
16711 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16712 esac
16713 done
16714
16715
16716 # If the user did not use the arguments to specify the items to instantiate,
16717 # then the envvar interface is used. Set only those that are not.
16718 # We use the long form for the default assignment because of an extremely
16719 # bizarre bug on SunOS 4.1.3.
16720 if $ac_need_defaults; then
16721 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16722 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16723 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16724 fi
16725
16726 # Have a temporary directory for convenience. Make it in the build tree
16727 # simply because there is no reason against having it here, and in addition,
16728 # creating and moving files from /tmp can sometimes cause problems.
16729 # Hook for its removal unless debugging.
16730 # Note that there is a small window in which the directory will not be cleaned:
16731 # after its creation but before its name has been assigned to `$tmp'.
16732 $debug ||
16733 {
16734 tmp= ac_tmp=
16735 trap 'exit_status=$?
16736 : "${ac_tmp:=$tmp}"
16737 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16738 ' 0
16739 trap 'as_fn_exit 1' 1 2 13 15
16740 }
16741 # Create a (secure) tmp directory for tmp files.
16742
16743 {
16744 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16745 test -d "$tmp"
16746 } ||
16747 {
16748 tmp=./conf$$-$RANDOM
16749 (umask 077 && mkdir "$tmp")
16750 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16751 ac_tmp=$tmp
16752
16753 # Set up the scripts for CONFIG_FILES section.
16754 # No need to generate them if there are no CONFIG_FILES.
16755 # This happens for instance with `./config.status config.h'.
16756 if test -n "$CONFIG_FILES"; then
16757
16758 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16759 ac_cs_awk_getline=:
16760 ac_cs_awk_pipe_init=
16761 ac_cs_awk_read_file='
16762 while ((getline aline < (F[key])) > 0)
16763 print(aline)
16764 close(F[key])'
16765 ac_cs_awk_pipe_fini=
16766 else
16767 ac_cs_awk_getline=false
16768 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16769 ac_cs_awk_read_file='
16770 print "|#_!!_#|"
16771 print "cat " F[key] " &&"
16772 '$ac_cs_awk_pipe_init
16773 # The final `:' finishes the AND list.
16774 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16775 fi
16776 ac_cr=`echo X | tr X '\015'`
16777 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16778 # But we know of no other shell where ac_cr would be empty at this
16779 # point, so we can use a bashism as a fallback.
16780 if test "x$ac_cr" = x; then
16781 eval ac_cr=\$\'\\r\'
16782 fi
16783 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16784 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16785 ac_cs_awk_cr='\\r'
16786 else
16787 ac_cs_awk_cr=$ac_cr
16788 fi
16789
16790 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16791 _ACEOF
16792
16793 # Create commands to substitute file output variables.
16794 {
16795 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16796 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16797 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16798 echo "_ACAWK" &&
16799 echo "_ACEOF"
16800 } >conf$$files.sh &&
16801 . ./conf$$files.sh ||
16802 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16803 rm -f conf$$files.sh
16804
16805 {
16806 echo "cat >conf$$subs.awk <<_ACEOF" &&
16807 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16808 echo "_ACEOF"
16809 } >conf$$subs.sh ||
16810 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16811 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16812 ac_delim='%!_!# '
16813 for ac_last_try in false false false false false :; do
16814 . ./conf$$subs.sh ||
16815 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16816
16817 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16818 if test $ac_delim_n = $ac_delim_num; then
16819 break
16820 elif $ac_last_try; then
16821 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16822 else
16823 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16824 fi
16825 done
16826 rm -f conf$$subs.sh
16827
16828 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16829 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16830 _ACEOF
16831 sed -n '
16832 h
16833 s/^/S["/; s/!.*/"]=/
16834 p
16835 g
16836 s/^[^!]*!//
16837 :repl
16838 t repl
16839 s/'"$ac_delim"'$//
16840 t delim
16841 :nl
16842 h
16843 s/\(.\{148\}\)..*/\1/
16844 t more1
16845 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16846 p
16847 n
16848 b repl
16849 :more1
16850 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16851 p
16852 g
16853 s/.\{148\}//
16854 t nl
16855 :delim
16856 h
16857 s/\(.\{148\}\)..*/\1/
16858 t more2
16859 s/["\\]/\\&/g; s/^/"/; s/$/"/
16860 p
16861 b
16862 :more2
16863 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16864 p
16865 g
16866 s/.\{148\}//
16867 t delim
16868 ' <conf$$subs.awk | sed '
16869 /^[^""]/{
16870 N
16871 s/\n//
16872 }
16873 ' >>$CONFIG_STATUS || ac_write_fail=1
16874 rm -f conf$$subs.awk
16875 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16876 _ACAWK
16877 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16878 for (key in S) S_is_set[key] = 1
16879 FS = "\a"
16880 \$ac_cs_awk_pipe_init
16881 }
16882 {
16883 line = $ 0
16884 nfields = split(line, field, "@")
16885 substed = 0
16886 len = length(field[1])
16887 for (i = 2; i < nfields; i++) {
16888 key = field[i]
16889 keylen = length(key)
16890 if (S_is_set[key]) {
16891 value = S[key]
16892 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16893 len += length(value) + length(field[++i])
16894 substed = 1
16895 } else
16896 len += 1 + keylen
16897 }
16898 if (nfields == 3 && !substed) {
16899 key = field[2]
16900 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16901 \$ac_cs_awk_read_file
16902 next
16903 }
16904 }
16905 print line
16906 }
16907 \$ac_cs_awk_pipe_fini
16908 _ACAWK
16909 _ACEOF
16910 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16911 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16912 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16913 else
16914 cat
16915 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16916 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16917 _ACEOF
16918
16919 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16920 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16921 # trailing colons and then remove the whole line if VPATH becomes empty
16922 # (actually we leave an empty line to preserve line numbers).
16923 if test "x$srcdir" = x.; then
16924 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16925 h
16926 s///
16927 s/^/:/
16928 s/[ ]*$/:/
16929 s/:\$(srcdir):/:/g
16930 s/:\${srcdir}:/:/g
16931 s/:@srcdir@:/:/g
16932 s/^:*//
16933 s/:*$//
16934 x
16935 s/\(=[ ]*\).*/\1/
16936 G
16937 s/\n//
16938 s/^[^=]*=[ ]*$//
16939 }'
16940 fi
16941
16942 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16943 fi # test -n "$CONFIG_FILES"
16944
16945 # Set up the scripts for CONFIG_HEADERS section.
16946 # No need to generate them if there are no CONFIG_HEADERS.
16947 # This happens for instance with `./config.status Makefile'.
16948 if test -n "$CONFIG_HEADERS"; then
16949 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16950 BEGIN {
16951 _ACEOF
16952
16953 # Transform confdefs.h into an awk script `defines.awk', embedded as
16954 # here-document in config.status, that substitutes the proper values into
16955 # config.h.in to produce config.h.
16956
16957 # Create a delimiter string that does not exist in confdefs.h, to ease
16958 # handling of long lines.
16959 ac_delim='%!_!# '
16960 for ac_last_try in false false :; do
16961 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16962 if test -z "$ac_tt"; then
16963 break
16964 elif $ac_last_try; then
16965 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16966 else
16967 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16968 fi
16969 done
16970
16971 # For the awk script, D is an array of macro values keyed by name,
16972 # likewise P contains macro parameters if any. Preserve backslash
16973 # newline sequences.
16974
16975 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16976 sed -n '
16977 s/.\{148\}/&'"$ac_delim"'/g
16978 t rset
16979 :rset
16980 s/^[ ]*#[ ]*define[ ][ ]*/ /
16981 t def
16982 d
16983 :def
16984 s/\\$//
16985 t bsnl
16986 s/["\\]/\\&/g
16987 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16988 D["\1"]=" \3"/p
16989 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16990 d
16991 :bsnl
16992 s/["\\]/\\&/g
16993 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16994 D["\1"]=" \3\\\\\\n"\\/p
16995 t cont
16996 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16997 t cont
16998 d
16999 :cont
17000 n
17001 s/.\{148\}/&'"$ac_delim"'/g
17002 t clear
17003 :clear
17004 s/\\$//
17005 t bsnlc
17006 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17007 d
17008 :bsnlc
17009 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17010 b cont
17011 ' <confdefs.h | sed '
17012 s/'"$ac_delim"'/"\\\
17013 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17014
17015 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17016 for (key in D) D_is_set[key] = 1
17017 FS = "\a"
17018 }
17019 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17020 line = \$ 0
17021 split(line, arg, " ")
17022 if (arg[1] == "#") {
17023 defundef = arg[2]
17024 mac1 = arg[3]
17025 } else {
17026 defundef = substr(arg[1], 2)
17027 mac1 = arg[2]
17028 }
17029 split(mac1, mac2, "(") #)
17030 macro = mac2[1]
17031 prefix = substr(line, 1, index(line, defundef) - 1)
17032 if (D_is_set[macro]) {
17033 # Preserve the white space surrounding the "#".
17034 print prefix "define", macro P[macro] D[macro]
17035 next
17036 } else {
17037 # Replace #undef with comments. This is necessary, for example,
17038 # in the case of _POSIX_SOURCE, which is predefined and required
17039 # on some systems where configure will not decide to define it.
17040 if (defundef == "undef") {
17041 print "/*", prefix defundef, macro, "*/"
17042 next
17043 }
17044 }
17045 }
17046 { print }
17047 _ACAWK
17048 _ACEOF
17049 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17050 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17051 fi # test -n "$CONFIG_HEADERS"
17052
17053
17054 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17055 shift
17056 for ac_tag
17057 do
17058 case $ac_tag in
17059 :[FHLC]) ac_mode=$ac_tag; continue;;
17060 esac
17061 case $ac_mode$ac_tag in
17062 :[FHL]*:*);;
17063 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17064 :[FH]-) ac_tag=-:-;;
17065 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17066 esac
17067 ac_save_IFS=$IFS
17068 IFS=:
17069 set x $ac_tag
17070 IFS=$ac_save_IFS
17071 shift
17072 ac_file=$1
17073 shift
17074
17075 case $ac_mode in
17076 :L) ac_source=$1;;
17077 :[FH])
17078 ac_file_inputs=
17079 for ac_f
17080 do
17081 case $ac_f in
17082 -) ac_f="$ac_tmp/stdin";;
17083 *) # Look for the file first in the build tree, then in the source tree
17084 # (if the path is not absolute). The absolute path cannot be DOS-style,
17085 # because $ac_f cannot contain `:'.
17086 test -f "$ac_f" ||
17087 case $ac_f in
17088 [\\/$]*) false;;
17089 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17090 esac ||
17091 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17092 esac
17093 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17094 as_fn_append ac_file_inputs " '$ac_f'"
17095 done
17096
17097 # Let's still pretend it is `configure' which instantiates (i.e., don't
17098 # use $as_me), people would be surprised to read:
17099 # /* config.h. Generated by config.status. */
17100 configure_input='Generated from '`
17101 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17102 `' by configure.'
17103 if test x"$ac_file" != x-; then
17104 configure_input="$ac_file. $configure_input"
17105 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17106 $as_echo "$as_me: creating $ac_file" >&6;}
17107 fi
17108 # Neutralize special characters interpreted by sed in replacement strings.
17109 case $configure_input in #(
17110 *\&* | *\|* | *\\* )
17111 ac_sed_conf_input=`$as_echo "$configure_input" |
17112 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17113 *) ac_sed_conf_input=$configure_input;;
17114 esac
17115
17116 case $ac_tag in
17117 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17118 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17119 esac
17120 ;;
17121 esac
17122
17123 ac_dir=`$as_dirname -- "$ac_file" ||
17124 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17125 X"$ac_file" : 'X\(//\)[^/]' \| \
17126 X"$ac_file" : 'X\(//\)$' \| \
17127 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17128 $as_echo X"$ac_file" |
17129 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17130 s//\1/
17131 q
17132 }
17133 /^X\(\/\/\)[^/].*/{
17134 s//\1/
17135 q
17136 }
17137 /^X\(\/\/\)$/{
17138 s//\1/
17139 q
17140 }
17141 /^X\(\/\).*/{
17142 s//\1/
17143 q
17144 }
17145 s/.*/./; q'`
17146 as_dir="$ac_dir"; as_fn_mkdir_p
17147 ac_builddir=.
17148
17149 case "$ac_dir" in
17150 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17151 *)
17152 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17153 # A ".." for each directory in $ac_dir_suffix.
17154 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17155 case $ac_top_builddir_sub in
17156 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17157 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17158 esac ;;
17159 esac
17160 ac_abs_top_builddir=$ac_pwd
17161 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17162 # for backward compatibility:
17163 ac_top_builddir=$ac_top_build_prefix
17164
17165 case $srcdir in
17166 .) # We are building in place.
17167 ac_srcdir=.
17168 ac_top_srcdir=$ac_top_builddir_sub
17169 ac_abs_top_srcdir=$ac_pwd ;;
17170 [\\/]* | ?:[\\/]* ) # Absolute name.
17171 ac_srcdir=$srcdir$ac_dir_suffix;
17172 ac_top_srcdir=$srcdir
17173 ac_abs_top_srcdir=$srcdir ;;
17174 *) # Relative name.
17175 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17176 ac_top_srcdir=$ac_top_build_prefix$srcdir
17177 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17178 esac
17179 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17180
17181
17182 case $ac_mode in
17183 :F)
17184 #
17185 # CONFIG_FILE
17186 #
17187
17188 case $INSTALL in
17189 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17190 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17191 esac
17192 ac_MKDIR_P=$MKDIR_P
17193 case $MKDIR_P in
17194 [\\/$]* | ?:[\\/]* ) ;;
17195 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17196 esac
17197 _ACEOF
17198
17199 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17200 # If the template does not know about datarootdir, expand it.
17201 # FIXME: This hack should be removed a few years after 2.60.
17202 ac_datarootdir_hack=; ac_datarootdir_seen=
17203 ac_sed_dataroot='
17204 /datarootdir/ {
17205 p
17206 q
17207 }
17208 /@datadir@/p
17209 /@docdir@/p
17210 /@infodir@/p
17211 /@localedir@/p
17212 /@mandir@/p'
17213 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17214 *datarootdir*) ac_datarootdir_seen=yes;;
17215 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17217 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17218 _ACEOF
17219 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17220 ac_datarootdir_hack='
17221 s&@datadir@&$datadir&g
17222 s&@docdir@&$docdir&g
17223 s&@infodir@&$infodir&g
17224 s&@localedir@&$localedir&g
17225 s&@mandir@&$mandir&g
17226 s&\\\${datarootdir}&$datarootdir&g' ;;
17227 esac
17228 _ACEOF
17229
17230 # Neutralize VPATH when `$srcdir' = `.'.
17231 # Shell code in configure.ac might set extrasub.
17232 # FIXME: do we really want to maintain this feature?
17233 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17234 ac_sed_extra="$ac_vpsub
17235 $extrasub
17236 _ACEOF
17237 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17238 :t
17239 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17240 s|@configure_input@|$ac_sed_conf_input|;t t
17241 s&@top_builddir@&$ac_top_builddir_sub&;t t
17242 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17243 s&@srcdir@&$ac_srcdir&;t t
17244 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17245 s&@top_srcdir@&$ac_top_srcdir&;t t
17246 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17247 s&@builddir@&$ac_builddir&;t t
17248 s&@abs_builddir@&$ac_abs_builddir&;t t
17249 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17250 s&@INSTALL@&$ac_INSTALL&;t t
17251 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17252 $ac_datarootdir_hack
17253 "
17254 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17255 if $ac_cs_awk_getline; then
17256 $AWK -f "$ac_tmp/subs.awk"
17257 else
17258 $AWK -f "$ac_tmp/subs.awk" | $SHELL
17259 fi \
17260 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17261
17262 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17263 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17264 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17265 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17267 which seems to be undefined. Please make sure it is defined" >&5
17268 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17269 which seems to be undefined. Please make sure it is defined" >&2;}
17270
17271 rm -f "$ac_tmp/stdin"
17272 case $ac_file in
17273 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17274 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17275 esac \
17276 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17277 ;;
17278 :H)
17279 #
17280 # CONFIG_HEADER
17281 #
17282 if test x"$ac_file" != x-; then
17283 {
17284 $as_echo "/* $configure_input */" \
17285 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17286 } >"$ac_tmp/config.h" \
17287 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17288 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17289 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17290 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17291 else
17292 rm -f "$ac_file"
17293 mv "$ac_tmp/config.h" "$ac_file" \
17294 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17295 fi
17296 else
17297 $as_echo "/* $configure_input */" \
17298 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17299 || as_fn_error $? "could not create -" "$LINENO" 5
17300 fi
17301 # Compute "$ac_file"'s index in $config_headers.
17302 _am_arg="$ac_file"
17303 _am_stamp_count=1
17304 for _am_header in $config_headers :; do
17305 case $_am_header in
17306 $_am_arg | $_am_arg:* )
17307 break ;;
17308 * )
17309 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17310 esac
17311 done
17312 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17313 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17314 X"$_am_arg" : 'X\(//\)[^/]' \| \
17315 X"$_am_arg" : 'X\(//\)$' \| \
17316 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17317 $as_echo X"$_am_arg" |
17318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17319 s//\1/
17320 q
17321 }
17322 /^X\(\/\/\)[^/].*/{
17323 s//\1/
17324 q
17325 }
17326 /^X\(\/\/\)$/{
17327 s//\1/
17328 q
17329 }
17330 /^X\(\/\).*/{
17331 s//\1/
17332 q
17333 }
17334 s/.*/./; q'`/stamp-h$_am_stamp_count
17335 ;;
17336
17337 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17338 $as_echo "$as_me: executing $ac_file commands" >&6;}
17339 ;;
17340 esac
17341
17342
17343 case $ac_file$ac_mode in
17344 "default-1":C)
17345 # Only add multilib support code if we just rebuilt the top-level
17346 # Makefile.
17347 case " $CONFIG_FILES " in
17348 *" Makefile "*)
17349 ac_file=Makefile . ${multi_basedir}/config-ml.in
17350 ;;
17351 esac ;;
17352 "libtool":C)
17353
17354 # See if we are running on zsh, and set the options which allow our
17355 # commands through without removal of \ escapes.
17356 if test -n "${ZSH_VERSION+set}" ; then
17357 setopt NO_GLOB_SUBST
17358 fi
17359
17360 cfgfile="${ofile}T"
17361 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17362 $RM "$cfgfile"
17363
17364 cat <<_LT_EOF >> "$cfgfile"
17365 #! $SHELL
17366
17367 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17368 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17369 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17370 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17371 #
17372 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17373 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17374 # Written by Gordon Matzigkeit, 1996
17375 #
17376 # This file is part of GNU Libtool.
17377 #
17378 # GNU Libtool is free software; you can redistribute it and/or
17379 # modify it under the terms of the GNU General Public License as
17380 # published by the Free Software Foundation; either version 2 of
17381 # the License, or (at your option) any later version.
17382 #
17383 # As a special exception to the GNU General Public License,
17384 # if you distribute this file as part of a program or library that
17385 # is built using GNU Libtool, you may include this file under the
17386 # same distribution terms that you use for the rest of that program.
17387 #
17388 # GNU Libtool is distributed in the hope that it will be useful,
17389 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17390 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17391 # GNU General Public License for more details.
17392 #
17393 # You should have received a copy of the GNU General Public License
17394 # along with GNU Libtool; see the file COPYING. If not, a copy
17395 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17396 # obtained by writing to the Free Software Foundation, Inc.,
17397 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17398
17399
17400 # The names of the tagged configurations supported by this script.
17401 available_tags="D "
17402
17403 # ### BEGIN LIBTOOL CONFIG
17404
17405 # Which release of libtool.m4 was used?
17406 macro_version=$macro_version
17407 macro_revision=$macro_revision
17408
17409 # Whether or not to build shared libraries.
17410 build_libtool_libs=$enable_shared
17411
17412 # Whether or not to build static libraries.
17413 build_old_libs=$enable_static
17414
17415 # What type of objects to build.
17416 pic_mode=$pic_mode
17417
17418 # Whether or not to optimize for fast installation.
17419 fast_install=$enable_fast_install
17420
17421 # Shell to use when invoking shell scripts.
17422 SHELL=$lt_SHELL
17423
17424 # An echo program that protects backslashes.
17425 ECHO=$lt_ECHO
17426
17427 # The host system.
17428 host_alias=$host_alias
17429 host=$host
17430 host_os=$host_os
17431
17432 # The build system.
17433 build_alias=$build_alias
17434 build=$build
17435 build_os=$build_os
17436
17437 # A sed program that does not truncate output.
17438 SED=$lt_SED
17439
17440 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17441 Xsed="\$SED -e 1s/^X//"
17442
17443 # A grep program that handles long lines.
17444 GREP=$lt_GREP
17445
17446 # An ERE matcher.
17447 EGREP=$lt_EGREP
17448
17449 # A literal string matcher.
17450 FGREP=$lt_FGREP
17451
17452 # A BSD- or MS-compatible name lister.
17453 NM=$lt_NM
17454
17455 # Whether we need soft or hard links.
17456 LN_S=$lt_LN_S
17457
17458 # What is the maximum length of a command?
17459 max_cmd_len=$max_cmd_len
17460
17461 # Object file suffix (normally "o").
17462 objext=$ac_objext
17463
17464 # Executable file suffix (normally "").
17465 exeext=$exeext
17466
17467 # whether the shell understands "unset".
17468 lt_unset=$lt_unset
17469
17470 # turn spaces into newlines.
17471 SP2NL=$lt_lt_SP2NL
17472
17473 # turn newlines into spaces.
17474 NL2SP=$lt_lt_NL2SP
17475
17476 # An object symbol dumper.
17477 OBJDUMP=$lt_OBJDUMP
17478
17479 # Method to check whether dependent libraries are shared objects.
17480 deplibs_check_method=$lt_deplibs_check_method
17481
17482 # Command to use when deplibs_check_method == "file_magic".
17483 file_magic_cmd=$lt_file_magic_cmd
17484
17485 # The archiver.
17486 AR=$lt_AR
17487 AR_FLAGS=$lt_AR_FLAGS
17488
17489 # A symbol stripping program.
17490 STRIP=$lt_STRIP
17491
17492 # Commands used to install an old-style archive.
17493 RANLIB=$lt_RANLIB
17494 old_postinstall_cmds=$lt_old_postinstall_cmds
17495 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17496
17497 # Whether to use a lock for old archive extraction.
17498 lock_old_archive_extraction=$lock_old_archive_extraction
17499
17500 # A C compiler.
17501 LTCC=$lt_CC
17502
17503 # LTCC compiler flags.
17504 LTCFLAGS=$lt_CFLAGS
17505
17506 # Take the output of nm and produce a listing of raw symbols and C names.
17507 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17508
17509 # Transform the output of nm in a proper C declaration.
17510 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17511
17512 # Transform the output of nm in a C name address pair.
17513 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17514
17515 # Transform the output of nm in a C name address pair when lib prefix is needed.
17516 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17517
17518 # The name of the directory that contains temporary libtool files.
17519 objdir=$objdir
17520
17521 # Used to examine libraries when file_magic_cmd begins with "file".
17522 MAGIC_CMD=$MAGIC_CMD
17523
17524 # Must we lock files when doing compilation?
17525 need_locks=$lt_need_locks
17526
17527 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17528 DSYMUTIL=$lt_DSYMUTIL
17529
17530 # Tool to change global to local symbols on Mac OS X.
17531 NMEDIT=$lt_NMEDIT
17532
17533 # Tool to manipulate fat objects and archives on Mac OS X.
17534 LIPO=$lt_LIPO
17535
17536 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17537 OTOOL=$lt_OTOOL
17538
17539 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17540 OTOOL64=$lt_OTOOL64
17541
17542 # Old archive suffix (normally "a").
17543 libext=$libext
17544
17545 # Shared library suffix (normally ".so").
17546 shrext_cmds=$lt_shrext_cmds
17547
17548 # The commands to extract the exported symbol list from a shared archive.
17549 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17550
17551 # Variables whose values should be saved in libtool wrapper scripts and
17552 # restored at link time.
17553 variables_saved_for_relink=$lt_variables_saved_for_relink
17554
17555 # Do we need the "lib" prefix for modules?
17556 need_lib_prefix=$need_lib_prefix
17557
17558 # Do we need a version for libraries?
17559 need_version=$need_version
17560
17561 # Library versioning type.
17562 version_type=$version_type
17563
17564 # Shared library runtime path variable.
17565 runpath_var=$runpath_var
17566
17567 # Shared library path variable.
17568 shlibpath_var=$shlibpath_var
17569
17570 # Is shlibpath searched before the hard-coded library search path?
17571 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17572
17573 # Format of library name prefix.
17574 libname_spec=$lt_libname_spec
17575
17576 # List of archive names. First name is the real one, the rest are links.
17577 # The last name is the one that the linker finds with -lNAME
17578 library_names_spec=$lt_library_names_spec
17579
17580 # The coded name of the library, if different from the real name.
17581 soname_spec=$lt_soname_spec
17582
17583 # Permission mode override for installation of shared libraries.
17584 install_override_mode=$lt_install_override_mode
17585
17586 # Command to use after installation of a shared archive.
17587 postinstall_cmds=$lt_postinstall_cmds
17588
17589 # Command to use after uninstallation of a shared archive.
17590 postuninstall_cmds=$lt_postuninstall_cmds
17591
17592 # Commands used to finish a libtool library installation in a directory.
17593 finish_cmds=$lt_finish_cmds
17594
17595 # As "finish_cmds", except a single script fragment to be evaled but
17596 # not shown.
17597 finish_eval=$lt_finish_eval
17598
17599 # Whether we should hardcode library paths into libraries.
17600 hardcode_into_libs=$hardcode_into_libs
17601
17602 # Compile-time system search path for libraries.
17603 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17604
17605 # Run-time system search path for libraries.
17606 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17607
17608 # Whether dlopen is supported.
17609 dlopen_support=$enable_dlopen
17610
17611 # Whether dlopen of programs is supported.
17612 dlopen_self=$enable_dlopen_self
17613
17614 # Whether dlopen of statically linked programs is supported.
17615 dlopen_self_static=$enable_dlopen_self_static
17616
17617 # Commands to strip libraries.
17618 old_striplib=$lt_old_striplib
17619 striplib=$lt_striplib
17620
17621
17622 # The linker used to build libraries.
17623 LD=$lt_LD
17624
17625 # How to create reloadable object files.
17626 reload_flag=$lt_reload_flag
17627 reload_cmds=$lt_reload_cmds
17628
17629 # Commands used to build an old-style archive.
17630 old_archive_cmds=$lt_old_archive_cmds
17631
17632 # A language specific compiler.
17633 CC=$lt_compiler
17634
17635 # Is the compiler the GNU compiler?
17636 with_gcc=$GCC
17637
17638 # Compiler flag to turn off builtin functions.
17639 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17640
17641 # How to pass a linker flag through the compiler.
17642 wl=$lt_lt_prog_compiler_wl
17643
17644 # Additional compiler flags for building library objects.
17645 pic_flag=$lt_lt_prog_compiler_pic
17646
17647 # Compiler flag to prevent dynamic linking.
17648 link_static_flag=$lt_lt_prog_compiler_static
17649
17650 # Does compiler simultaneously support -c and -o options?
17651 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17652
17653 # Whether or not to add -lc for building shared libraries.
17654 build_libtool_need_lc=$archive_cmds_need_lc
17655
17656 # Whether or not to disallow shared libs when runtime libs are static.
17657 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17658
17659 # Compiler flag to allow reflexive dlopens.
17660 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17661
17662 # Compiler flag to generate shared objects directly from archives.
17663 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17664
17665 # Whether the compiler copes with passing no objects directly.
17666 compiler_needs_object=$lt_compiler_needs_object
17667
17668 # Create an old-style archive from a shared archive.
17669 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17670
17671 # Create a temporary old-style archive to link instead of a shared archive.
17672 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17673
17674 # Commands used to build a shared archive.
17675 archive_cmds=$lt_archive_cmds
17676 archive_expsym_cmds=$lt_archive_expsym_cmds
17677
17678 # Commands used to build a loadable module if different from building
17679 # a shared archive.
17680 module_cmds=$lt_module_cmds
17681 module_expsym_cmds=$lt_module_expsym_cmds
17682
17683 # Whether we are building with GNU ld or not.
17684 with_gnu_ld=$lt_with_gnu_ld
17685
17686 # Flag that allows shared libraries with undefined symbols to be built.
17687 allow_undefined_flag=$lt_allow_undefined_flag
17688
17689 # Flag that enforces no undefined symbols.
17690 no_undefined_flag=$lt_no_undefined_flag
17691
17692 # Flag to hardcode \$libdir into a binary during linking.
17693 # This must work even if \$libdir does not exist
17694 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17695
17696 # If ld is used when linking, flag to hardcode \$libdir into a binary
17697 # during linking. This must work even if \$libdir does not exist.
17698 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17699
17700 # Whether we need a single "-rpath" flag with a separated argument.
17701 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17702
17703 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17704 # DIR into the resulting binary.
17705 hardcode_direct=$hardcode_direct
17706
17707 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17708 # DIR into the resulting binary and the resulting library dependency is
17709 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17710 # library is relocated.
17711 hardcode_direct_absolute=$hardcode_direct_absolute
17712
17713 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17714 # into the resulting binary.
17715 hardcode_minus_L=$hardcode_minus_L
17716
17717 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17718 # into the resulting binary.
17719 hardcode_shlibpath_var=$hardcode_shlibpath_var
17720
17721 # Set to "yes" if building a shared library automatically hardcodes DIR
17722 # into the library and all subsequent libraries and executables linked
17723 # against it.
17724 hardcode_automatic=$hardcode_automatic
17725
17726 # Set to yes if linker adds runtime paths of dependent libraries
17727 # to runtime path list.
17728 inherit_rpath=$inherit_rpath
17729
17730 # Whether libtool must link a program against all its dependency libraries.
17731 link_all_deplibs=$link_all_deplibs
17732
17733 # Fix the shell variable \$srcfile for the compiler.
17734 fix_srcfile_path=$lt_fix_srcfile_path
17735
17736 # Set to "yes" if exported symbols are required.
17737 always_export_symbols=$always_export_symbols
17738
17739 # The commands to list exported symbols.
17740 export_symbols_cmds=$lt_export_symbols_cmds
17741
17742 # Symbols that should not be listed in the preloaded symbols.
17743 exclude_expsyms=$lt_exclude_expsyms
17744
17745 # Symbols that must always be exported.
17746 include_expsyms=$lt_include_expsyms
17747
17748 # Commands necessary for linking programs (against libraries) with templates.
17749 prelink_cmds=$lt_prelink_cmds
17750
17751 # Specify filename containing input files.
17752 file_list_spec=$lt_file_list_spec
17753
17754 # How to hardcode a shared library path into an executable.
17755 hardcode_action=$hardcode_action
17756
17757 # ### END LIBTOOL CONFIG
17758
17759 _LT_EOF
17760
17761 case $host_os in
17762 aix3*)
17763 cat <<\_LT_EOF >> "$cfgfile"
17764 # AIX sometimes has problems with the GCC collect2 program. For some
17765 # reason, if we set the COLLECT_NAMES environment variable, the problems
17766 # vanish in a puff of smoke.
17767 if test "X${COLLECT_NAMES+set}" != Xset; then
17768 COLLECT_NAMES=
17769 export COLLECT_NAMES
17770 fi
17771 _LT_EOF
17772 ;;
17773 esac
17774
17775
17776 ltmain="$ac_aux_dir/ltmain.sh"
17777
17778
17779 # We use sed instead of cat because bash on DJGPP gets confused if
17780 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17781 # text mode, it properly converts lines to CR/LF. This bash problem
17782 # is reportedly fixed, but why not run on old versions too?
17783 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17784 || (rm -f "$cfgfile"; exit 1)
17785
17786 case $xsi_shell in
17787 yes)
17788 cat << \_LT_EOF >> "$cfgfile"
17789
17790 # func_dirname file append nondir_replacement
17791 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17792 # otherwise set result to NONDIR_REPLACEMENT.
17793 func_dirname ()
17794 {
17795 case ${1} in
17796 */*) func_dirname_result="${1%/*}${2}" ;;
17797 * ) func_dirname_result="${3}" ;;
17798 esac
17799 }
17800
17801 # func_basename file
17802 func_basename ()
17803 {
17804 func_basename_result="${1##*/}"
17805 }
17806
17807 # func_dirname_and_basename file append nondir_replacement
17808 # perform func_basename and func_dirname in a single function
17809 # call:
17810 # dirname: Compute the dirname of FILE. If nonempty,
17811 # add APPEND to the result, otherwise set result
17812 # to NONDIR_REPLACEMENT.
17813 # value returned in "$func_dirname_result"
17814 # basename: Compute filename of FILE.
17815 # value retuned in "$func_basename_result"
17816 # Implementation must be kept synchronized with func_dirname
17817 # and func_basename. For efficiency, we do not delegate to
17818 # those functions but instead duplicate the functionality here.
17819 func_dirname_and_basename ()
17820 {
17821 case ${1} in
17822 */*) func_dirname_result="${1%/*}${2}" ;;
17823 * ) func_dirname_result="${3}" ;;
17824 esac
17825 func_basename_result="${1##*/}"
17826 }
17827
17828 # func_stripname prefix suffix name
17829 # strip PREFIX and SUFFIX off of NAME.
17830 # PREFIX and SUFFIX must not contain globbing or regex special
17831 # characters, hashes, percent signs, but SUFFIX may contain a leading
17832 # dot (in which case that matches only a dot).
17833 func_stripname ()
17834 {
17835 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17836 # positional parameters, so assign one to ordinary parameter first.
17837 func_stripname_result=${3}
17838 func_stripname_result=${func_stripname_result#"${1}"}
17839 func_stripname_result=${func_stripname_result%"${2}"}
17840 }
17841
17842 # func_opt_split
17843 func_opt_split ()
17844 {
17845 func_opt_split_opt=${1%%=*}
17846 func_opt_split_arg=${1#*=}
17847 }
17848
17849 # func_lo2o object
17850 func_lo2o ()
17851 {
17852 case ${1} in
17853 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17854 *) func_lo2o_result=${1} ;;
17855 esac
17856 }
17857
17858 # func_xform libobj-or-source
17859 func_xform ()
17860 {
17861 func_xform_result=${1%.*}.lo
17862 }
17863
17864 # func_arith arithmetic-term...
17865 func_arith ()
17866 {
17867 func_arith_result=$(( $* ))
17868 }
17869
17870 # func_len string
17871 # STRING may not start with a hyphen.
17872 func_len ()
17873 {
17874 func_len_result=${#1}
17875 }
17876
17877 _LT_EOF
17878 ;;
17879 *) # Bourne compatible functions.
17880 cat << \_LT_EOF >> "$cfgfile"
17881
17882 # func_dirname file append nondir_replacement
17883 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17884 # otherwise set result to NONDIR_REPLACEMENT.
17885 func_dirname ()
17886 {
17887 # Extract subdirectory from the argument.
17888 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17889 if test "X$func_dirname_result" = "X${1}"; then
17890 func_dirname_result="${3}"
17891 else
17892 func_dirname_result="$func_dirname_result${2}"
17893 fi
17894 }
17895
17896 # func_basename file
17897 func_basename ()
17898 {
17899 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17900 }
17901
17902
17903 # func_stripname prefix suffix name
17904 # strip PREFIX and SUFFIX off of NAME.
17905 # PREFIX and SUFFIX must not contain globbing or regex special
17906 # characters, hashes, percent signs, but SUFFIX may contain a leading
17907 # dot (in which case that matches only a dot).
17908 # func_strip_suffix prefix name
17909 func_stripname ()
17910 {
17911 case ${2} in
17912 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17913 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17914 esac
17915 }
17916
17917 # sed scripts:
17918 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17919 my_sed_long_arg='1s/^-[^=]*=//'
17920
17921 # func_opt_split
17922 func_opt_split ()
17923 {
17924 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17925 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17926 }
17927
17928 # func_lo2o object
17929 func_lo2o ()
17930 {
17931 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17932 }
17933
17934 # func_xform libobj-or-source
17935 func_xform ()
17936 {
17937 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17938 }
17939
17940 # func_arith arithmetic-term...
17941 func_arith ()
17942 {
17943 func_arith_result=`expr "$@"`
17944 }
17945
17946 # func_len string
17947 # STRING may not start with a hyphen.
17948 func_len ()
17949 {
17950 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17951 }
17952
17953 _LT_EOF
17954 esac
17955
17956 case $lt_shell_append in
17957 yes)
17958 cat << \_LT_EOF >> "$cfgfile"
17959
17960 # func_append var value
17961 # Append VALUE to the end of shell variable VAR.
17962 func_append ()
17963 {
17964 eval "$1+=\$2"
17965 }
17966 _LT_EOF
17967 ;;
17968 *)
17969 cat << \_LT_EOF >> "$cfgfile"
17970
17971 # func_append var value
17972 # Append VALUE to the end of shell variable VAR.
17973 func_append ()
17974 {
17975 eval "$1=\$$1\$2"
17976 }
17977
17978 _LT_EOF
17979 ;;
17980 esac
17981
17982
17983 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17984 || (rm -f "$cfgfile"; exit 1)
17985
17986 mv -f "$cfgfile" "$ofile" ||
17987 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17988 chmod +x "$ofile"
17989
17990
17991 cat <<_LT_EOF >> "$ofile"
17992
17993 # ### BEGIN LIBTOOL TAG CONFIG: D
17994
17995 # The linker used to build libraries.
17996 LD=$lt_LD_D
17997
17998 # How to create reloadable object files.
17999 reload_flag=$lt_reload_flag_D
18000 reload_cmds=$lt_reload_cmds_D
18001
18002 # Commands used to build an old-style archive.
18003 old_archive_cmds=$lt_old_archive_cmds_D
18004
18005 # A language specific compiler.
18006 CC=$lt_compiler_D
18007
18008 # Is the compiler the GNU compiler?
18009 with_gcc=$GCC_D
18010
18011 # Compiler flag to turn off builtin functions.
18012 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_D
18013
18014 # How to pass a linker flag through the compiler.
18015 wl=$lt_lt_prog_compiler_wl_D
18016
18017 # Additional compiler flags for building library objects.
18018 pic_flag=$lt_lt_prog_compiler_pic_D
18019
18020 # Compiler flag to prevent dynamic linking.
18021 link_static_flag=$lt_lt_prog_compiler_static_D
18022
18023 # Does compiler simultaneously support -c and -o options?
18024 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_D
18025
18026 # Whether or not to add -lc for building shared libraries.
18027 build_libtool_need_lc=$archive_cmds_need_lc_D
18028
18029 # Whether or not to disallow shared libs when runtime libs are static.
18030 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_D
18031
18032 # Compiler flag to allow reflexive dlopens.
18033 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_D
18034
18035 # Compiler flag to generate shared objects directly from archives.
18036 whole_archive_flag_spec=$lt_whole_archive_flag_spec_D
18037
18038 # Whether the compiler copes with passing no objects directly.
18039 compiler_needs_object=$lt_compiler_needs_object_D
18040
18041 # Create an old-style archive from a shared archive.
18042 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_D
18043
18044 # Create a temporary old-style archive to link instead of a shared archive.
18045 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_D
18046
18047 # Commands used to build a shared archive.
18048 archive_cmds=$lt_archive_cmds_D
18049 archive_expsym_cmds=$lt_archive_expsym_cmds_D
18050
18051 # Commands used to build a loadable module if different from building
18052 # a shared archive.
18053 module_cmds=$lt_module_cmds_D
18054 module_expsym_cmds=$lt_module_expsym_cmds_D
18055
18056 # Whether we are building with GNU ld or not.
18057 with_gnu_ld=$lt_with_gnu_ld_D
18058
18059 # Flag that allows shared libraries with undefined symbols to be built.
18060 allow_undefined_flag=$lt_allow_undefined_flag_D
18061
18062 # Flag that enforces no undefined symbols.
18063 no_undefined_flag=$lt_no_undefined_flag_D
18064
18065 # Flag to hardcode \$libdir into a binary during linking.
18066 # This must work even if \$libdir does not exist
18067 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_D
18068
18069 # If ld is used when linking, flag to hardcode \$libdir into a binary
18070 # during linking. This must work even if \$libdir does not exist.
18071 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_D
18072
18073 # Whether we need a single "-rpath" flag with a separated argument.
18074 hardcode_libdir_separator=$lt_hardcode_libdir_separator_D
18075
18076 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18077 # DIR into the resulting binary.
18078 hardcode_direct=$hardcode_direct_D
18079
18080 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18081 # DIR into the resulting binary and the resulting library dependency is
18082 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18083 # library is relocated.
18084 hardcode_direct_absolute=$hardcode_direct_absolute_D
18085
18086 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18087 # into the resulting binary.
18088 hardcode_minus_L=$hardcode_minus_L_D
18089
18090 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18091 # into the resulting binary.
18092 hardcode_shlibpath_var=$hardcode_shlibpath_var_D
18093
18094 # Set to "yes" if building a shared library automatically hardcodes DIR
18095 # into the library and all subsequent libraries and executables linked
18096 # against it.
18097 hardcode_automatic=$hardcode_automatic_D
18098
18099 # Set to yes if linker adds runtime paths of dependent libraries
18100 # to runtime path list.
18101 inherit_rpath=$inherit_rpath_D
18102
18103 # Whether libtool must link a program against all its dependency libraries.
18104 link_all_deplibs=$link_all_deplibs_D
18105
18106 # Fix the shell variable \$srcfile for the compiler.
18107 fix_srcfile_path=$lt_fix_srcfile_path_D
18108
18109 # Set to "yes" if exported symbols are required.
18110 always_export_symbols=$always_export_symbols_D
18111
18112 # The commands to list exported symbols.
18113 export_symbols_cmds=$lt_export_symbols_cmds_D
18114
18115 # Symbols that should not be listed in the preloaded symbols.
18116 exclude_expsyms=$lt_exclude_expsyms_D
18117
18118 # Symbols that must always be exported.
18119 include_expsyms=$lt_include_expsyms_D
18120
18121 # Commands necessary for linking programs (against libraries) with templates.
18122 prelink_cmds=$lt_prelink_cmds_D
18123
18124 # Specify filename containing input files.
18125 file_list_spec=$lt_file_list_spec_D
18126
18127 # How to hardcode a shared library path into an executable.
18128 hardcode_action=$hardcode_action_D
18129
18130 # ### END LIBTOOL TAG CONFIG: D
18131 _LT_EOF
18132
18133 ;;
18134 "testsuite/testsuite_flags":F) chmod +x testsuite/testsuite_flags ;;
18135 "libdruntime/Makefile":F) cat > vpsed$$ << \_EOF
18136 s!`test -f '$<' || echo '$(srcdir)/'`!!
18137 _EOF
18138 sed -f vpsed$$ $ac_file > tmp$$
18139 mv tmp$$ $ac_file
18140 rm vpsed$$
18141 echo 'MULTISUBDIR =' >> $ac_file
18142 ml_norecursion=yes
18143 . ${multi_basedir}/config-ml.in
18144 { ml_norecursion=; unset ml_norecursion;}
18145 ;;
18146 "src/Makefile":F) cat > vpsed$$ << \_EOF
18147 s!`test -f '$<' || echo '$(srcdir)/'`!!
18148 _EOF
18149 sed -f vpsed$$ $ac_file > tmp$$
18150 mv tmp$$ $ac_file
18151 rm vpsed$$
18152 echo 'MULTISUBDIR =' >> $ac_file
18153 ml_norecursion=yes
18154 . ${multi_basedir}/config-ml.in
18155 { ml_norecursion=; unset ml_norecursion;}
18156 ;;
18157 "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
18158 s!`test -f '$<' || echo '$(srcdir)/'`!!
18159 _EOF
18160 sed -f vpsed$$ $ac_file > tmp$$
18161 mv tmp$$ $ac_file
18162 rm vpsed$$
18163 echo 'MULTISUBDIR =' >> $ac_file
18164 ml_norecursion=yes
18165 . ${multi_basedir}/config-ml.in
18166 { ml_norecursion=; unset ml_norecursion;}
18167 ;;
18168
18169 esac
18170 done # for ac_tag
18171
18172
18173 as_fn_exit 0
18174 _ACEOF
18175 ac_clean_files=$ac_clean_files_save
18176
18177 test $ac_write_fail = 0 ||
18178 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18179
18180
18181 # configure is writing to config.log, and then calls config.status.
18182 # config.status does its own redirection, appending to config.log.
18183 # Unfortunately, on DOS this fails, as config.log is still kept open
18184 # by configure, so config.status won't be able to write to it; its
18185 # output is simply discarded. So we exec the FD to /dev/null,
18186 # effectively closing config.log, so it can be properly (re)opened and
18187 # appended to by config.status. When coming back to configure, we
18188 # need to make the FD available again.
18189 if test "$no_create" != yes; then
18190 ac_cs_success=:
18191 ac_config_status_args=
18192 test "$silent" = yes &&
18193 ac_config_status_args="$ac_config_status_args --quiet"
18194 exec 5>/dev/null
18195 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18196 exec 5>>config.log
18197 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18198 # would make configure fail if this is the last instruction.
18199 $ac_cs_success || as_fn_exit 1
18200 fi
18201 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18203 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18204 fi
18205