libphobos: Add subdir-objects to configure script.
[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
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='package-unused'
589 PACKAGE_TARNAME='libphobos'
590 PACKAGE_VERSION='version-unused'
591 PACKAGE_STRING='package-unused version-unused'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="libdruntime/gcc/attribute.d"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 GDCFLAGSX
637 libtool_VERSION
638 SPEC_PHOBOS_DEPS
639 gdc_include_dir
640 libphobos_toolexeclibdir
641 libphobos_toolexecdir
642 gcc_version
643 LIBZ
644 BACKTRACE_SUPPORTS_THREADS
645 BACKTRACE_USES_MALLOC
646 BACKTRACE_SUPPORTED
647 LIBBACKTRACE
648 LIBATOMIC
649 DCFG_HAVE_LIBATOMIC
650 DCFG_HAVE_64BIT_ATOMICS
651 DCFG_HAVE_ATOMIC_BUILTINS
652 DCFG_HAVE_QSORT_R
653 DRUNTIME_OS_MINFO_BRACKETING_FALSE
654 DRUNTIME_OS_MINFO_BRACKETING_TRUE
655 DCFG_MINFO_BRACKETING
656 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
657 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
658 DCFG_ARM_EABI_UNWINDER
659 DCFG_THREAD_MODEL
660 DRUNTIME_OS_SOLARIS_FALSE
661 DRUNTIME_OS_SOLARIS_TRUE
662 DRUNTIME_OS_MINGW_FALSE
663 DRUNTIME_OS_MINGW_TRUE
664 DRUNTIME_OS_LINUX_FALSE
665 DRUNTIME_OS_LINUX_TRUE
666 DRUNTIME_OS_OPENBSD_FALSE
667 DRUNTIME_OS_OPENBSD_TRUE
668 DRUNTIME_OS_NETBSD_FALSE
669 DRUNTIME_OS_NETBSD_TRUE
670 DRUNTIME_OS_FREEBSD_FALSE
671 DRUNTIME_OS_FREEBSD_TRUE
672 DRUNTIME_OS_DRAGONFLYBSD_FALSE
673 DRUNTIME_OS_DRAGONFLYBSD_TRUE
674 DRUNTIME_OS_DARWIN_FALSE
675 DRUNTIME_OS_DARWIN_TRUE
676 DRUNTIME_OS_ANDROID_FALSE
677 DRUNTIME_OS_ANDROID_TRUE
678 DRUNTIME_OS_AIX_FALSE
679 DRUNTIME_OS_AIX_TRUE
680 DRUNTIME_OS_UNIX_FALSE
681 DRUNTIME_OS_UNIX_TRUE
682 DRUNTIME_GC_ENABLE_FALSE
683 DRUNTIME_GC_ENABLE_TRUE
684 libphobos_srcdir
685 libphobos_builddir
686 get_gcc_base_ver
687 phobos_compiler_shared_flag
688 phobos_compiler_pic_flag
689 CPP
690 OTOOL64
691 OTOOL
692 LIPO
693 NMEDIT
694 DSYMUTIL
695 OBJDUMP
696 LN_S
697 NM
698 ac_ct_DUMPBIN
699 DUMPBIN
700 LD
701 FGREP
702 EGREP
703 GREP
704 SED
705 LIBTOOL
706 CFLAGS_FOR_BUILD
707 CC_FOR_BUILD
708 AR
709 RANLIB
710 MAINT
711 MAINTAINER_MODE_FALSE
712 MAINTAINER_MODE_TRUE
713 GDCFLAGS
714 GDC
715 CCASFLAGS
716 CCAS
717 OBJEXT
718 EXEEXT
719 ac_ct_CC
720 CPPFLAGS
721 LDFLAGS
722 CFLAGS
723 CC
724 AM_BACKSLASH
725 AM_DEFAULT_VERBOSITY
726 AM_DEFAULT_V
727 AM_V
728 am__untar
729 am__tar
730 AMTAR
731 am__leading_dot
732 SET_MAKE
733 AWK
734 mkdir_p
735 MKDIR_P
736 INSTALL_STRIP_PROGRAM
737 STRIP
738 install_sh
739 MAKEINFO
740 AUTOHEADER
741 AUTOMAKE
742 AUTOCONF
743 ACLOCAL
744 VERSION
745 PACKAGE
746 CYGPATH_W
747 am__isrc
748 INSTALL_DATA
749 INSTALL_SCRIPT
750 INSTALL_PROGRAM
751 target_os
752 target_vendor
753 target_cpu
754 target
755 host_os
756 host_vendor
757 host_cpu
758 host
759 build_os
760 build_vendor
761 build_cpu
762 build
763 multi_basedir
764 target_alias
765 host_alias
766 build_alias
767 LIBS
768 ECHO_T
769 ECHO_N
770 ECHO_C
771 DEFS
772 mandir
773 localedir
774 libdir
775 psdir
776 pdfdir
777 dvidir
778 htmldir
779 infodir
780 docdir
781 oldincludedir
782 includedir
783 localstatedir
784 sharedstatedir
785 sysconfdir
786 datadir
787 datarootdir
788 libexecdir
789 sbindir
790 bindir
791 program_transform_name
792 prefix
793 exec_prefix
794 PACKAGE_URL
795 PACKAGE_BUGREPORT
796 PACKAGE_STRING
797 PACKAGE_VERSION
798 PACKAGE_TARNAME
799 PACKAGE_NAME
800 PATH_SEPARATOR
801 SHELL'
802 ac_subst_files='DRTSTUFF_SPEC'
803 ac_user_opts='
804 enable_option_checking
805 enable_multilib
806 enable_silent_rules
807 enable_maintainer_mode
808 enable_shared
809 enable_static
810 with_pic
811 enable_fast_install
812 with_gnu_ld
813 enable_libtool_lock
814 with_gcc_major_version_only
815 enable_werror
816 enable_druntime_gc
817 enable_unix
818 enable_thread_lib
819 with_libatomic
820 with_libbacktrace
821 with_target_system_zlib
822 with_cross_host
823 enable_version_specific_runtime_libs
824 '
825 ac_precious_vars='build_alias
826 host_alias
827 target_alias
828 CPP
829 CPPFLAGS'
830
831
832 # Initialize some variables set by options.
833 ac_init_help=
834 ac_init_version=false
835 ac_unrecognized_opts=
836 ac_unrecognized_sep=
837 # The variables have the same names as the options, with
838 # dashes changed to underlines.
839 cache_file=/dev/null
840 exec_prefix=NONE
841 no_create=
842 no_recursion=
843 prefix=NONE
844 program_prefix=NONE
845 program_suffix=NONE
846 program_transform_name=s,x,x,
847 silent=
848 site=
849 srcdir=
850 verbose=
851 x_includes=NONE
852 x_libraries=NONE
853
854 # Installation directory options.
855 # These are left unexpanded so users can "make install exec_prefix=/foo"
856 # and all the variables that are supposed to be based on exec_prefix
857 # by default will actually change.
858 # Use braces instead of parens because sh, perl, etc. also accept them.
859 # (The list follows the same order as the GNU Coding Standards.)
860 bindir='${exec_prefix}/bin'
861 sbindir='${exec_prefix}/sbin'
862 libexecdir='${exec_prefix}/libexec'
863 datarootdir='${prefix}/share'
864 datadir='${datarootdir}'
865 sysconfdir='${prefix}/etc'
866 sharedstatedir='${prefix}/com'
867 localstatedir='${prefix}/var'
868 includedir='${prefix}/include'
869 oldincludedir='/usr/include'
870 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
871 infodir='${datarootdir}/info'
872 htmldir='${docdir}'
873 dvidir='${docdir}'
874 pdfdir='${docdir}'
875 psdir='${docdir}'
876 libdir='${exec_prefix}/lib'
877 localedir='${datarootdir}/locale'
878 mandir='${datarootdir}/man'
879
880 ac_prev=
881 ac_dashdash=
882 for ac_option
883 do
884 # If the previous option needs an argument, assign it.
885 if test -n "$ac_prev"; then
886 eval $ac_prev=\$ac_option
887 ac_prev=
888 continue
889 fi
890
891 case $ac_option in
892 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
893 *=) ac_optarg= ;;
894 *) ac_optarg=yes ;;
895 esac
896
897 # Accept the important Cygnus configure options, so we can diagnose typos.
898
899 case $ac_dashdash$ac_option in
900 --)
901 ac_dashdash=yes ;;
902
903 -bindir | --bindir | --bindi | --bind | --bin | --bi)
904 ac_prev=bindir ;;
905 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
906 bindir=$ac_optarg ;;
907
908 -build | --build | --buil | --bui | --bu)
909 ac_prev=build_alias ;;
910 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
911 build_alias=$ac_optarg ;;
912
913 -cache-file | --cache-file | --cache-fil | --cache-fi \
914 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
915 ac_prev=cache_file ;;
916 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
917 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
918 cache_file=$ac_optarg ;;
919
920 --config-cache | -C)
921 cache_file=config.cache ;;
922
923 -datadir | --datadir | --datadi | --datad)
924 ac_prev=datadir ;;
925 -datadir=* | --datadir=* | --datadi=* | --datad=*)
926 datadir=$ac_optarg ;;
927
928 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
929 | --dataroo | --dataro | --datar)
930 ac_prev=datarootdir ;;
931 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
932 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
933 datarootdir=$ac_optarg ;;
934
935 -disable-* | --disable-*)
936 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
937 # Reject names that are not valid shell variable names.
938 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
939 as_fn_error $? "invalid feature name: $ac_useropt"
940 ac_useropt_orig=$ac_useropt
941 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
942 case $ac_user_opts in
943 *"
944 "enable_$ac_useropt"
945 "*) ;;
946 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
947 ac_unrecognized_sep=', ';;
948 esac
949 eval enable_$ac_useropt=no ;;
950
951 -docdir | --docdir | --docdi | --doc | --do)
952 ac_prev=docdir ;;
953 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
954 docdir=$ac_optarg ;;
955
956 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
957 ac_prev=dvidir ;;
958 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
959 dvidir=$ac_optarg ;;
960
961 -enable-* | --enable-*)
962 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
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--enable-$ac_useropt_orig"
973 ac_unrecognized_sep=', ';;
974 esac
975 eval enable_$ac_useropt=\$ac_optarg ;;
976
977 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
978 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
979 | --exec | --exe | --ex)
980 ac_prev=exec_prefix ;;
981 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
982 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
983 | --exec=* | --exe=* | --ex=*)
984 exec_prefix=$ac_optarg ;;
985
986 -gas | --gas | --ga | --g)
987 # Obsolete; use --with-gas.
988 with_gas=yes ;;
989
990 -help | --help | --hel | --he | -h)
991 ac_init_help=long ;;
992 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
993 ac_init_help=recursive ;;
994 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
995 ac_init_help=short ;;
996
997 -host | --host | --hos | --ho)
998 ac_prev=host_alias ;;
999 -host=* | --host=* | --hos=* | --ho=*)
1000 host_alias=$ac_optarg ;;
1001
1002 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1003 ac_prev=htmldir ;;
1004 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1005 | --ht=*)
1006 htmldir=$ac_optarg ;;
1007
1008 -includedir | --includedir | --includedi | --included | --include \
1009 | --includ | --inclu | --incl | --inc)
1010 ac_prev=includedir ;;
1011 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1012 | --includ=* | --inclu=* | --incl=* | --inc=*)
1013 includedir=$ac_optarg ;;
1014
1015 -infodir | --infodir | --infodi | --infod | --info | --inf)
1016 ac_prev=infodir ;;
1017 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1018 infodir=$ac_optarg ;;
1019
1020 -libdir | --libdir | --libdi | --libd)
1021 ac_prev=libdir ;;
1022 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1023 libdir=$ac_optarg ;;
1024
1025 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1026 | --libexe | --libex | --libe)
1027 ac_prev=libexecdir ;;
1028 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1029 | --libexe=* | --libex=* | --libe=*)
1030 libexecdir=$ac_optarg ;;
1031
1032 -localedir | --localedir | --localedi | --localed | --locale)
1033 ac_prev=localedir ;;
1034 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1035 localedir=$ac_optarg ;;
1036
1037 -localstatedir | --localstatedir | --localstatedi | --localstated \
1038 | --localstate | --localstat | --localsta | --localst | --locals)
1039 ac_prev=localstatedir ;;
1040 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1041 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1042 localstatedir=$ac_optarg ;;
1043
1044 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1045 ac_prev=mandir ;;
1046 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1047 mandir=$ac_optarg ;;
1048
1049 -nfp | --nfp | --nf)
1050 # Obsolete; use --without-fp.
1051 with_fp=no ;;
1052
1053 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1054 | --no-cr | --no-c | -n)
1055 no_create=yes ;;
1056
1057 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1058 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1059 no_recursion=yes ;;
1060
1061 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1062 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1063 | --oldin | --oldi | --old | --ol | --o)
1064 ac_prev=oldincludedir ;;
1065 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1066 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1067 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1068 oldincludedir=$ac_optarg ;;
1069
1070 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1071 ac_prev=prefix ;;
1072 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1073 prefix=$ac_optarg ;;
1074
1075 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1076 | --program-pre | --program-pr | --program-p)
1077 ac_prev=program_prefix ;;
1078 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1079 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1080 program_prefix=$ac_optarg ;;
1081
1082 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1083 | --program-suf | --program-su | --program-s)
1084 ac_prev=program_suffix ;;
1085 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1086 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1087 program_suffix=$ac_optarg ;;
1088
1089 -program-transform-name | --program-transform-name \
1090 | --program-transform-nam | --program-transform-na \
1091 | --program-transform-n | --program-transform- \
1092 | --program-transform | --program-transfor \
1093 | --program-transfo | --program-transf \
1094 | --program-trans | --program-tran \
1095 | --progr-tra | --program-tr | --program-t)
1096 ac_prev=program_transform_name ;;
1097 -program-transform-name=* | --program-transform-name=* \
1098 | --program-transform-nam=* | --program-transform-na=* \
1099 | --program-transform-n=* | --program-transform-=* \
1100 | --program-transform=* | --program-transfor=* \
1101 | --program-transfo=* | --program-transf=* \
1102 | --program-trans=* | --program-tran=* \
1103 | --progr-tra=* | --program-tr=* | --program-t=*)
1104 program_transform_name=$ac_optarg ;;
1105
1106 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1107 ac_prev=pdfdir ;;
1108 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1109 pdfdir=$ac_optarg ;;
1110
1111 -psdir | --psdir | --psdi | --psd | --ps)
1112 ac_prev=psdir ;;
1113 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1114 psdir=$ac_optarg ;;
1115
1116 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1117 | -silent | --silent | --silen | --sile | --sil)
1118 silent=yes ;;
1119
1120 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1121 ac_prev=sbindir ;;
1122 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1123 | --sbi=* | --sb=*)
1124 sbindir=$ac_optarg ;;
1125
1126 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1127 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1128 | --sharedst | --shareds | --shared | --share | --shar \
1129 | --sha | --sh)
1130 ac_prev=sharedstatedir ;;
1131 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1132 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1133 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1134 | --sha=* | --sh=*)
1135 sharedstatedir=$ac_optarg ;;
1136
1137 -site | --site | --sit)
1138 ac_prev=site ;;
1139 -site=* | --site=* | --sit=*)
1140 site=$ac_optarg ;;
1141
1142 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1143 ac_prev=srcdir ;;
1144 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1145 srcdir=$ac_optarg ;;
1146
1147 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1148 | --syscon | --sysco | --sysc | --sys | --sy)
1149 ac_prev=sysconfdir ;;
1150 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1151 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1152 sysconfdir=$ac_optarg ;;
1153
1154 -target | --target | --targe | --targ | --tar | --ta | --t)
1155 ac_prev=target_alias ;;
1156 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1157 target_alias=$ac_optarg ;;
1158
1159 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1160 verbose=yes ;;
1161
1162 -version | --version | --versio | --versi | --vers | -V)
1163 ac_init_version=: ;;
1164
1165 -with-* | --with-*)
1166 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1167 # Reject names that are not valid shell variable names.
1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169 as_fn_error $? "invalid package name: $ac_useropt"
1170 ac_useropt_orig=$ac_useropt
1171 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172 case $ac_user_opts in
1173 *"
1174 "with_$ac_useropt"
1175 "*) ;;
1176 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1177 ac_unrecognized_sep=', ';;
1178 esac
1179 eval with_$ac_useropt=\$ac_optarg ;;
1180
1181 -without-* | --without-*)
1182 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1183 # Reject names that are not valid shell variable names.
1184 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1185 as_fn_error $? "invalid package name: $ac_useropt"
1186 ac_useropt_orig=$ac_useropt
1187 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1188 case $ac_user_opts in
1189 *"
1190 "with_$ac_useropt"
1191 "*) ;;
1192 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1193 ac_unrecognized_sep=', ';;
1194 esac
1195 eval with_$ac_useropt=no ;;
1196
1197 --x)
1198 # Obsolete; use --with-x.
1199 with_x=yes ;;
1200
1201 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1202 | --x-incl | --x-inc | --x-in | --x-i)
1203 ac_prev=x_includes ;;
1204 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1205 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1206 x_includes=$ac_optarg ;;
1207
1208 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1209 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1210 ac_prev=x_libraries ;;
1211 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1212 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1213 x_libraries=$ac_optarg ;;
1214
1215 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1216 Try \`$0 --help' for more information"
1217 ;;
1218
1219 *=*)
1220 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1221 # Reject names that are not valid shell variable names.
1222 case $ac_envvar in #(
1223 '' | [0-9]* | *[!_$as_cr_alnum]* )
1224 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1225 esac
1226 eval $ac_envvar=\$ac_optarg
1227 export $ac_envvar ;;
1228
1229 *)
1230 # FIXME: should be removed in autoconf 3.0.
1231 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1232 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1233 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1234 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1235 ;;
1236
1237 esac
1238 done
1239
1240 if test -n "$ac_prev"; then
1241 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1242 as_fn_error $? "missing argument to $ac_option"
1243 fi
1244
1245 if test -n "$ac_unrecognized_opts"; then
1246 case $enable_option_checking in
1247 no) ;;
1248 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1249 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1250 esac
1251 fi
1252
1253 # Check all directory arguments for consistency.
1254 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1255 datadir sysconfdir sharedstatedir localstatedir includedir \
1256 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1257 libdir localedir mandir
1258 do
1259 eval ac_val=\$$ac_var
1260 # Remove trailing slashes.
1261 case $ac_val in
1262 */ )
1263 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1264 eval $ac_var=\$ac_val;;
1265 esac
1266 # Be sure to have absolute directory names.
1267 case $ac_val in
1268 [\\/$]* | ?:[\\/]* ) continue;;
1269 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1270 esac
1271 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1272 done
1273
1274 # There might be people who depend on the old broken behavior: `$host'
1275 # used to hold the argument of --host etc.
1276 # FIXME: To remove some day.
1277 build=$build_alias
1278 host=$host_alias
1279 target=$target_alias
1280
1281 # FIXME: To remove some day.
1282 if test "x$host_alias" != x; then
1283 if test "x$build_alias" = x; then
1284 cross_compiling=maybe
1285 elif test "x$build_alias" != "x$host_alias"; then
1286 cross_compiling=yes
1287 fi
1288 fi
1289
1290 ac_tool_prefix=
1291 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1292
1293 test "$silent" = yes && exec 6>/dev/null
1294
1295
1296 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1297 ac_ls_di=`ls -di .` &&
1298 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1299 as_fn_error $? "working directory cannot be determined"
1300 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1301 as_fn_error $? "pwd does not report name of working directory"
1302
1303
1304 # Find the source files, if location was not specified.
1305 if test -z "$srcdir"; then
1306 ac_srcdir_defaulted=yes
1307 # Try the directory containing this script, then the parent directory.
1308 ac_confdir=`$as_dirname -- "$as_myself" ||
1309 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1310 X"$as_myself" : 'X\(//\)[^/]' \| \
1311 X"$as_myself" : 'X\(//\)$' \| \
1312 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1313 $as_echo X"$as_myself" |
1314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1315 s//\1/
1316 q
1317 }
1318 /^X\(\/\/\)[^/].*/{
1319 s//\1/
1320 q
1321 }
1322 /^X\(\/\/\)$/{
1323 s//\1/
1324 q
1325 }
1326 /^X\(\/\).*/{
1327 s//\1/
1328 q
1329 }
1330 s/.*/./; q'`
1331 srcdir=$ac_confdir
1332 if test ! -r "$srcdir/$ac_unique_file"; then
1333 srcdir=..
1334 fi
1335 else
1336 ac_srcdir_defaulted=no
1337 fi
1338 if test ! -r "$srcdir/$ac_unique_file"; then
1339 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1340 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1341 fi
1342 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1343 ac_abs_confdir=`(
1344 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1345 pwd)`
1346 # When building in place, set srcdir=.
1347 if test "$ac_abs_confdir" = "$ac_pwd"; then
1348 srcdir=.
1349 fi
1350 # Remove unnecessary trailing slashes from srcdir.
1351 # Double slashes in file names in object file debugging info
1352 # mess up M-x gdb in Emacs.
1353 case $srcdir in
1354 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1355 esac
1356 for ac_var in $ac_precious_vars; do
1357 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1358 eval ac_env_${ac_var}_value=\$${ac_var}
1359 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1360 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1361 done
1362
1363 #
1364 # Report the --help message.
1365 #
1366 if test "$ac_init_help" = "long"; then
1367 # Omit some internal or obsolete options to make the list less imposing.
1368 # This message is too long to be a string in the A/UX 3.1 sh.
1369 cat <<_ACEOF
1370 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1371
1372 Usage: $0 [OPTION]... [VAR=VALUE]...
1373
1374 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1375 VAR=VALUE. See below for descriptions of some of the useful variables.
1376
1377 Defaults for the options are specified in brackets.
1378
1379 Configuration:
1380 -h, --help display this help and exit
1381 --help=short display options specific to this package
1382 --help=recursive display the short help of all the included packages
1383 -V, --version display version information and exit
1384 -q, --quiet, --silent do not print \`checking ...' messages
1385 --cache-file=FILE cache test results in FILE [disabled]
1386 -C, --config-cache alias for \`--cache-file=config.cache'
1387 -n, --no-create do not create output files
1388 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1389
1390 Installation directories:
1391 --prefix=PREFIX install architecture-independent files in PREFIX
1392 [$ac_default_prefix]
1393 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1394 [PREFIX]
1395
1396 By default, \`make install' will install all the files in
1397 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1398 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1399 for instance \`--prefix=\$HOME'.
1400
1401 For better control, use the options below.
1402
1403 Fine tuning of the installation directories:
1404 --bindir=DIR user executables [EPREFIX/bin]
1405 --sbindir=DIR system admin executables [EPREFIX/sbin]
1406 --libexecdir=DIR program executables [EPREFIX/libexec]
1407 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1408 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1409 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1410 --libdir=DIR object code libraries [EPREFIX/lib]
1411 --includedir=DIR C header files [PREFIX/include]
1412 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1413 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1414 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1415 --infodir=DIR info documentation [DATAROOTDIR/info]
1416 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1417 --mandir=DIR man documentation [DATAROOTDIR/man]
1418 --docdir=DIR documentation root [DATAROOTDIR/doc/libphobos]
1419 --htmldir=DIR html documentation [DOCDIR]
1420 --dvidir=DIR dvi documentation [DOCDIR]
1421 --pdfdir=DIR pdf documentation [DOCDIR]
1422 --psdir=DIR ps documentation [DOCDIR]
1423 _ACEOF
1424
1425 cat <<\_ACEOF
1426
1427 Program names:
1428 --program-prefix=PREFIX prepend PREFIX to installed program names
1429 --program-suffix=SUFFIX append SUFFIX to installed program names
1430 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1431
1432 System types:
1433 --build=BUILD configure for building on BUILD [guessed]
1434 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1435 --target=TARGET configure for building compilers for TARGET [HOST]
1436 _ACEOF
1437 fi
1438
1439 if test -n "$ac_init_help"; then
1440 case $ac_init_help in
1441 short | recursive ) echo "Configuration of package-unused version-unused:";;
1442 esac
1443 cat <<\_ACEOF
1444
1445 Optional Features:
1446 --disable-option-checking ignore unrecognized --enable/--with options
1447 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1448 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1449 --enable-multilib build many library versions (default)
1450 --enable-silent-rules less verbose build output (undo: "make V=1")
1451 --disable-silent-rules verbose build output (undo: "make V=0")
1452 --enable-maintainer-mode
1453 enable make rules and dependencies not useful (and
1454 sometimes confusing) to the casual installer
1455 --enable-shared[=PKGS] build shared libraries [default=yes]
1456 --enable-static[=PKGS] build static libraries [default=yes]
1457 --enable-fast-install[=PKGS]
1458 optimize for fast installation [default=yes]
1459 --disable-libtool-lock avoid locking (might break parallel builds)
1460 --enable-werror turns on -Werror [default=no]
1461 --enable-druntime-gc enable D runtime garbage collector (default: yes)
1462 --enable-unix enables Unix runtime (default: yes, for Unix
1463 targets)
1464 --enable-thread-lib=<arg>
1465 specify linker option for the system thread library
1466 (default: autodetect)
1467 --enable-version-specific-runtime-libs
1468 Specify that runtime libraries should be installed
1469 in a compiler-specific directory
1470
1471 Optional Packages:
1472 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1473 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1474 --with-pic try to use only PIC/non-PIC objects [default=use
1475 both]
1476 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1477 --with-gcc-major-version-only
1478 use only GCC major number in filesystem paths
1479 --without-libatomic Do not use libatomic in core.atomic (default: auto)
1480 --without-libbacktrace Do not use libbacktrace in core.runtime (default:
1481 auto)
1482 --with-target-system-zlib={yes,no,auto}
1483 use installed libz (default: no)
1484 --with-cross-host=HOST configuring with a cross compiler
1485
1486 Some influential environment variables:
1487 CC C compiler command
1488 CFLAGS C compiler flags
1489 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1490 nonstandard directory <lib dir>
1491 LIBS libraries to pass to the linker, e.g. -l<library>
1492 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1493 you have headers in a nonstandard directory <include dir>
1494 CCAS assembler compiler command (defaults to CC)
1495 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1496 GDC D compiler command
1497 GDCFLAGS D compiler flags
1498 CPP C preprocessor
1499
1500 Use these variables to override the choices made by `configure' or to help
1501 it to find libraries and programs with nonstandard names/locations.
1502
1503 Report bugs to the package provider.
1504 _ACEOF
1505 ac_status=$?
1506 fi
1507
1508 if test "$ac_init_help" = "recursive"; then
1509 # If there are subdirs, report their specific --help.
1510 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1511 test -d "$ac_dir" ||
1512 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1513 continue
1514 ac_builddir=.
1515
1516 case "$ac_dir" in
1517 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518 *)
1519 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1520 # A ".." for each directory in $ac_dir_suffix.
1521 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1522 case $ac_top_builddir_sub in
1523 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1524 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1525 esac ;;
1526 esac
1527 ac_abs_top_builddir=$ac_pwd
1528 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1529 # for backward compatibility:
1530 ac_top_builddir=$ac_top_build_prefix
1531
1532 case $srcdir in
1533 .) # We are building in place.
1534 ac_srcdir=.
1535 ac_top_srcdir=$ac_top_builddir_sub
1536 ac_abs_top_srcdir=$ac_pwd ;;
1537 [\\/]* | ?:[\\/]* ) # Absolute name.
1538 ac_srcdir=$srcdir$ac_dir_suffix;
1539 ac_top_srcdir=$srcdir
1540 ac_abs_top_srcdir=$srcdir ;;
1541 *) # Relative name.
1542 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1543 ac_top_srcdir=$ac_top_build_prefix$srcdir
1544 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1545 esac
1546 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1547
1548 cd "$ac_dir" || { ac_status=$?; continue; }
1549 # Check for guested configure.
1550 if test -f "$ac_srcdir/configure.gnu"; then
1551 echo &&
1552 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1553 elif test -f "$ac_srcdir/configure"; then
1554 echo &&
1555 $SHELL "$ac_srcdir/configure" --help=recursive
1556 else
1557 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1558 fi || ac_status=$?
1559 cd "$ac_pwd" || { ac_status=$?; break; }
1560 done
1561 fi
1562
1563 test -n "$ac_init_help" && exit $ac_status
1564 if $ac_init_version; then
1565 cat <<\_ACEOF
1566 package-unused configure version-unused
1567 generated by GNU Autoconf 2.69
1568
1569 Copyright (C) 2012 Free Software Foundation, Inc.
1570 This configure script is free software; the Free Software Foundation
1571 gives unlimited permission to copy, distribute and modify it.
1572 _ACEOF
1573 exit
1574 fi
1575
1576 ## ------------------------ ##
1577 ## Autoconf initialization. ##
1578 ## ------------------------ ##
1579
1580 # ac_fn_c_try_compile LINENO
1581 # --------------------------
1582 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1583 ac_fn_c_try_compile ()
1584 {
1585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1586 rm -f conftest.$ac_objext
1587 if { { ac_try="$ac_compile"
1588 case "(($ac_try" in
1589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1590 *) ac_try_echo=$ac_try;;
1591 esac
1592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1593 $as_echo "$ac_try_echo"; } >&5
1594 (eval "$ac_compile") 2>conftest.err
1595 ac_status=$?
1596 if test -s conftest.err; then
1597 grep -v '^ *+' conftest.err >conftest.er1
1598 cat conftest.er1 >&5
1599 mv -f conftest.er1 conftest.err
1600 fi
1601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1602 test $ac_status = 0; } && {
1603 test -z "$ac_c_werror_flag" ||
1604 test ! -s conftest.err
1605 } && test -s conftest.$ac_objext; then :
1606 ac_retval=0
1607 else
1608 $as_echo "$as_me: failed program was:" >&5
1609 sed 's/^/| /' conftest.$ac_ext >&5
1610
1611 ac_retval=1
1612 fi
1613 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1614 as_fn_set_status $ac_retval
1615
1616 } # ac_fn_c_try_compile
1617
1618 # ac_fn_d_try_compile LINENO
1619 # --------------------------
1620 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1621 ac_fn_d_try_compile ()
1622 {
1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624 rm -f conftest.$ac_objext
1625 if { { ac_try="$ac_compile"
1626 case "(($ac_try" in
1627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1628 *) ac_try_echo=$ac_try;;
1629 esac
1630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1631 $as_echo "$ac_try_echo"; } >&5
1632 (eval "$ac_compile") 2>conftest.err
1633 ac_status=$?
1634 if test -s conftest.err; then
1635 grep -v '^ *+' conftest.err >conftest.er1
1636 cat conftest.er1 >&5
1637 mv -f conftest.er1 conftest.err
1638 fi
1639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640 test $ac_status = 0; } && {
1641 test -z "$ac_d_werror_flag" ||
1642 test ! -s conftest.err
1643 } && test -s conftest.$ac_objext; then :
1644 ac_retval=0
1645 else
1646 $as_echo "$as_me: failed program was:" >&5
1647 sed 's/^/| /' conftest.$ac_ext >&5
1648
1649 ac_retval=1
1650 fi
1651 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1652 as_fn_set_status $ac_retval
1653
1654 } # ac_fn_d_try_compile
1655
1656 # ac_fn_c_try_link LINENO
1657 # -----------------------
1658 # Try to link conftest.$ac_ext, and return whether this succeeded.
1659 ac_fn_c_try_link ()
1660 {
1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662 rm -f conftest.$ac_objext conftest$ac_exeext
1663 if { { ac_try="$ac_link"
1664 case "(($ac_try" in
1665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666 *) ac_try_echo=$ac_try;;
1667 esac
1668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669 $as_echo "$ac_try_echo"; } >&5
1670 (eval "$ac_link") 2>conftest.err
1671 ac_status=$?
1672 if test -s conftest.err; then
1673 grep -v '^ *+' conftest.err >conftest.er1
1674 cat conftest.er1 >&5
1675 mv -f conftest.er1 conftest.err
1676 fi
1677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678 test $ac_status = 0; } && {
1679 test -z "$ac_c_werror_flag" ||
1680 test ! -s conftest.err
1681 } && test -s conftest$ac_exeext && {
1682 test "$cross_compiling" = yes ||
1683 test -x conftest$ac_exeext
1684 }; then :
1685 ac_retval=0
1686 else
1687 $as_echo "$as_me: failed program was:" >&5
1688 sed 's/^/| /' conftest.$ac_ext >&5
1689
1690 ac_retval=1
1691 fi
1692 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1693 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1694 # interfere with the next link command; also delete a directory that is
1695 # left behind by Apple's compiler. We do this before executing the actions.
1696 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1697 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1698 as_fn_set_status $ac_retval
1699
1700 } # ac_fn_c_try_link
1701
1702 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1703 # -------------------------------------------------------
1704 # Tests whether HEADER exists and can be compiled using the include files in
1705 # INCLUDES, setting the cache variable VAR accordingly.
1706 ac_fn_c_check_header_compile ()
1707 {
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1710 $as_echo_n "checking for $2... " >&6; }
1711 if eval \${$3+:} false; then :
1712 $as_echo_n "(cached) " >&6
1713 else
1714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1715 /* end confdefs.h. */
1716 $4
1717 #include <$2>
1718 _ACEOF
1719 if ac_fn_c_try_compile "$LINENO"; then :
1720 eval "$3=yes"
1721 else
1722 eval "$3=no"
1723 fi
1724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1725 fi
1726 eval ac_res=\$$3
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1728 $as_echo "$ac_res" >&6; }
1729 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1730
1731 } # ac_fn_c_check_header_compile
1732
1733 # ac_fn_c_try_cpp LINENO
1734 # ----------------------
1735 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1736 ac_fn_c_try_cpp ()
1737 {
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 if { { ac_try="$ac_cpp conftest.$ac_ext"
1740 case "(($ac_try" in
1741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742 *) ac_try_echo=$ac_try;;
1743 esac
1744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745 $as_echo "$ac_try_echo"; } >&5
1746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1747 ac_status=$?
1748 if test -s conftest.err; then
1749 grep -v '^ *+' conftest.err >conftest.er1
1750 cat conftest.er1 >&5
1751 mv -f conftest.er1 conftest.err
1752 fi
1753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754 test $ac_status = 0; } > conftest.i && {
1755 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1756 test ! -s conftest.err
1757 }; then :
1758 ac_retval=0
1759 else
1760 $as_echo "$as_me: failed program was:" >&5
1761 sed 's/^/| /' conftest.$ac_ext >&5
1762
1763 ac_retval=1
1764 fi
1765 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1766 as_fn_set_status $ac_retval
1767
1768 } # ac_fn_c_try_cpp
1769
1770 # ac_fn_c_try_run LINENO
1771 # ----------------------
1772 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1773 # that executables *can* be run.
1774 ac_fn_c_try_run ()
1775 {
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777 if { { ac_try="$ac_link"
1778 case "(($ac_try" in
1779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1780 *) ac_try_echo=$ac_try;;
1781 esac
1782 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1783 $as_echo "$ac_try_echo"; } >&5
1784 (eval "$ac_link") 2>&5
1785 ac_status=$?
1786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1787 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1788 { { case "(($ac_try" in
1789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1790 *) ac_try_echo=$ac_try;;
1791 esac
1792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1793 $as_echo "$ac_try_echo"; } >&5
1794 (eval "$ac_try") 2>&5
1795 ac_status=$?
1796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797 test $ac_status = 0; }; }; then :
1798 ac_retval=0
1799 else
1800 $as_echo "$as_me: program exited with status $ac_status" >&5
1801 $as_echo "$as_me: failed program was:" >&5
1802 sed 's/^/| /' conftest.$ac_ext >&5
1803
1804 ac_retval=$ac_status
1805 fi
1806 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1807 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808 as_fn_set_status $ac_retval
1809
1810 } # ac_fn_c_try_run
1811
1812 # ac_fn_c_check_func LINENO FUNC VAR
1813 # ----------------------------------
1814 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1815 ac_fn_c_check_func ()
1816 {
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1819 $as_echo_n "checking for $2... " >&6; }
1820 if eval \${$3+:} false; then :
1821 $as_echo_n "(cached) " >&6
1822 else
1823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824 /* end confdefs.h. */
1825 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1827 #define $2 innocuous_$2
1828
1829 /* System header to define __stub macros and hopefully few prototypes,
1830 which can conflict with char $2 (); below.
1831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1832 <limits.h> exists even on freestanding compilers. */
1833
1834 #ifdef __STDC__
1835 # include <limits.h>
1836 #else
1837 # include <assert.h>
1838 #endif
1839
1840 #undef $2
1841
1842 /* Override any GCC internal prototype to avoid an error.
1843 Use char because int might match the return type of a GCC
1844 builtin and then its argument prototype would still apply. */
1845 #ifdef __cplusplus
1846 extern "C"
1847 #endif
1848 char $2 ();
1849 /* The GNU C library defines this for functions which it implements
1850 to always fail with ENOSYS. Some functions are actually named
1851 something starting with __ and the normal name is an alias. */
1852 #if defined __stub_$2 || defined __stub___$2
1853 choke me
1854 #endif
1855
1856 int
1857 main ()
1858 {
1859 return $2 ();
1860 ;
1861 return 0;
1862 }
1863 _ACEOF
1864 if ac_fn_c_try_link "$LINENO"; then :
1865 eval "$3=yes"
1866 else
1867 eval "$3=no"
1868 fi
1869 rm -f core conftest.err conftest.$ac_objext \
1870 conftest$ac_exeext conftest.$ac_ext
1871 fi
1872 eval ac_res=\$$3
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1874 $as_echo "$ac_res" >&6; }
1875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876
1877 } # ac_fn_c_check_func
1878
1879 # ac_fn_d_try_link LINENO
1880 # -----------------------
1881 # Try to link conftest.$ac_ext, and return whether this succeeded.
1882 ac_fn_d_try_link ()
1883 {
1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885 rm -f conftest.$ac_objext conftest$ac_exeext
1886 if { { ac_try="$ac_link"
1887 case "(($ac_try" in
1888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889 *) ac_try_echo=$ac_try;;
1890 esac
1891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892 $as_echo "$ac_try_echo"; } >&5
1893 (eval "$ac_link") 2>conftest.err
1894 ac_status=$?
1895 if test -s conftest.err; then
1896 grep -v '^ *+' conftest.err >conftest.er1
1897 cat conftest.er1 >&5
1898 mv -f conftest.er1 conftest.err
1899 fi
1900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1901 test $ac_status = 0; } && {
1902 test -z "$ac_d_werror_flag" ||
1903 test ! -s conftest.err
1904 } && test -s conftest$ac_exeext && {
1905 test "$cross_compiling" = yes ||
1906 test -x conftest$ac_exeext
1907 }; then :
1908 ac_retval=0
1909 else
1910 $as_echo "$as_me: failed program was:" >&5
1911 sed 's/^/| /' conftest.$ac_ext >&5
1912
1913 ac_retval=1
1914 fi
1915 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1916 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1917 # interfere with the next link command; also delete a directory that is
1918 # left behind by Apple's compiler. We do this before executing the actions.
1919 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1920 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921 as_fn_set_status $ac_retval
1922
1923 } # ac_fn_d_try_link
1924
1925 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1926 # -------------------------------------------------------
1927 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1928 # the include files in INCLUDES and setting the cache variable VAR
1929 # accordingly.
1930 ac_fn_c_check_header_mongrel ()
1931 {
1932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933 if eval \${$3+:} false; then :
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1935 $as_echo_n "checking for $2... " >&6; }
1936 if eval \${$3+:} false; then :
1937 $as_echo_n "(cached) " >&6
1938 fi
1939 eval ac_res=\$$3
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1941 $as_echo "$ac_res" >&6; }
1942 else
1943 # Is the header compilable?
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1945 $as_echo_n "checking $2 usability... " >&6; }
1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947 /* end confdefs.h. */
1948 $4
1949 #include <$2>
1950 _ACEOF
1951 if ac_fn_c_try_compile "$LINENO"; then :
1952 ac_header_compiler=yes
1953 else
1954 ac_header_compiler=no
1955 fi
1956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1958 $as_echo "$ac_header_compiler" >&6; }
1959
1960 # Is the header present?
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1962 $as_echo_n "checking $2 presence... " >&6; }
1963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964 /* end confdefs.h. */
1965 #include <$2>
1966 _ACEOF
1967 if ac_fn_c_try_cpp "$LINENO"; then :
1968 ac_header_preproc=yes
1969 else
1970 ac_header_preproc=no
1971 fi
1972 rm -f conftest.err conftest.i conftest.$ac_ext
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1974 $as_echo "$ac_header_preproc" >&6; }
1975
1976 # So? What about this header?
1977 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1978 yes:no: )
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1980 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1982 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1983 ;;
1984 no:yes:* )
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1986 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1988 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1990 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1992 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1994 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1995 ;;
1996 esac
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1998 $as_echo_n "checking for $2... " >&6; }
1999 if eval \${$3+:} false; then :
2000 $as_echo_n "(cached) " >&6
2001 else
2002 eval "$3=\$ac_header_compiler"
2003 fi
2004 eval ac_res=\$$3
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2006 $as_echo "$ac_res" >&6; }
2007 fi
2008 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2009
2010 } # ac_fn_c_check_header_mongrel
2011 cat >config.log <<_ACEOF
2012 This file contains any messages produced by compilers while
2013 running configure, to aid debugging if configure makes a mistake.
2014
2015 It was created by package-unused $as_me version-unused, which was
2016 generated by GNU Autoconf 2.69. Invocation command line was
2017
2018 $ $0 $@
2019
2020 _ACEOF
2021 exec 5>>config.log
2022 {
2023 cat <<_ASUNAME
2024 ## --------- ##
2025 ## Platform. ##
2026 ## --------- ##
2027
2028 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2029 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2030 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2031 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2032 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2033
2034 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2035 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2036
2037 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2038 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2039 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2040 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2041 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2042 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2043 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2044
2045 _ASUNAME
2046
2047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2048 for as_dir in $PATH
2049 do
2050 IFS=$as_save_IFS
2051 test -z "$as_dir" && as_dir=.
2052 $as_echo "PATH: $as_dir"
2053 done
2054 IFS=$as_save_IFS
2055
2056 } >&5
2057
2058 cat >&5 <<_ACEOF
2059
2060
2061 ## ----------- ##
2062 ## Core tests. ##
2063 ## ----------- ##
2064
2065 _ACEOF
2066
2067
2068 # Keep a trace of the command line.
2069 # Strip out --no-create and --no-recursion so they do not pile up.
2070 # Strip out --silent because we don't want to record it for future runs.
2071 # Also quote any args containing shell meta-characters.
2072 # Make two passes to allow for proper duplicate-argument suppression.
2073 ac_configure_args=
2074 ac_configure_args0=
2075 ac_configure_args1=
2076 ac_must_keep_next=false
2077 for ac_pass in 1 2
2078 do
2079 for ac_arg
2080 do
2081 case $ac_arg in
2082 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2083 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2084 | -silent | --silent | --silen | --sile | --sil)
2085 continue ;;
2086 *\'*)
2087 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2088 esac
2089 case $ac_pass in
2090 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2091 2)
2092 as_fn_append ac_configure_args1 " '$ac_arg'"
2093 if test $ac_must_keep_next = true; then
2094 ac_must_keep_next=false # Got value, back to normal.
2095 else
2096 case $ac_arg in
2097 *=* | --config-cache | -C | -disable-* | --disable-* \
2098 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2099 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2100 | -with-* | --with-* | -without-* | --without-* | --x)
2101 case "$ac_configure_args0 " in
2102 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2103 esac
2104 ;;
2105 -* ) ac_must_keep_next=true ;;
2106 esac
2107 fi
2108 as_fn_append ac_configure_args " '$ac_arg'"
2109 ;;
2110 esac
2111 done
2112 done
2113 { ac_configure_args0=; unset ac_configure_args0;}
2114 { ac_configure_args1=; unset ac_configure_args1;}
2115
2116 # When interrupted or exit'd, cleanup temporary files, and complete
2117 # config.log. We remove comments because anyway the quotes in there
2118 # would cause problems or look ugly.
2119 # WARNING: Use '\'' to represent an apostrophe within the trap.
2120 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2121 trap 'exit_status=$?
2122 # Save into config.log some information that might help in debugging.
2123 {
2124 echo
2125
2126 $as_echo "## ---------------- ##
2127 ## Cache variables. ##
2128 ## ---------------- ##"
2129 echo
2130 # The following way of writing the cache mishandles newlines in values,
2131 (
2132 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2133 eval ac_val=\$$ac_var
2134 case $ac_val in #(
2135 *${as_nl}*)
2136 case $ac_var in #(
2137 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2138 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2139 esac
2140 case $ac_var in #(
2141 _ | IFS | as_nl) ;; #(
2142 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2143 *) { eval $ac_var=; unset $ac_var;} ;;
2144 esac ;;
2145 esac
2146 done
2147 (set) 2>&1 |
2148 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2149 *${as_nl}ac_space=\ *)
2150 sed -n \
2151 "s/'\''/'\''\\\\'\'''\''/g;
2152 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2153 ;; #(
2154 *)
2155 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2156 ;;
2157 esac |
2158 sort
2159 )
2160 echo
2161
2162 $as_echo "## ----------------- ##
2163 ## Output variables. ##
2164 ## ----------------- ##"
2165 echo
2166 for ac_var in $ac_subst_vars
2167 do
2168 eval ac_val=\$$ac_var
2169 case $ac_val in
2170 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2171 esac
2172 $as_echo "$ac_var='\''$ac_val'\''"
2173 done | sort
2174 echo
2175
2176 if test -n "$ac_subst_files"; then
2177 $as_echo "## ------------------- ##
2178 ## File substitutions. ##
2179 ## ------------------- ##"
2180 echo
2181 for ac_var in $ac_subst_files
2182 do
2183 eval ac_val=\$$ac_var
2184 case $ac_val in
2185 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2186 esac
2187 $as_echo "$ac_var='\''$ac_val'\''"
2188 done | sort
2189 echo
2190 fi
2191
2192 if test -s confdefs.h; then
2193 $as_echo "## ----------- ##
2194 ## confdefs.h. ##
2195 ## ----------- ##"
2196 echo
2197 cat confdefs.h
2198 echo
2199 fi
2200 test "$ac_signal" != 0 &&
2201 $as_echo "$as_me: caught signal $ac_signal"
2202 $as_echo "$as_me: exit $exit_status"
2203 } >&5
2204 rm -f core *.core core.conftest.* &&
2205 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2206 exit $exit_status
2207 ' 0
2208 for ac_signal in 1 2 13 15; do
2209 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2210 done
2211 ac_signal=0
2212
2213 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2214 rm -f -r conftest* confdefs.h
2215
2216 $as_echo "/* confdefs.h */" > confdefs.h
2217
2218 # Predefined preprocessor variables.
2219
2220 cat >>confdefs.h <<_ACEOF
2221 #define PACKAGE_NAME "$PACKAGE_NAME"
2222 _ACEOF
2223
2224 cat >>confdefs.h <<_ACEOF
2225 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2226 _ACEOF
2227
2228 cat >>confdefs.h <<_ACEOF
2229 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2230 _ACEOF
2231
2232 cat >>confdefs.h <<_ACEOF
2233 #define PACKAGE_STRING "$PACKAGE_STRING"
2234 _ACEOF
2235
2236 cat >>confdefs.h <<_ACEOF
2237 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2238 _ACEOF
2239
2240 cat >>confdefs.h <<_ACEOF
2241 #define PACKAGE_URL "$PACKAGE_URL"
2242 _ACEOF
2243
2244
2245 # Let the site file select an alternate cache file if it wants to.
2246 # Prefer an explicitly selected file to automatically selected ones.
2247 ac_site_file1=NONE
2248 ac_site_file2=NONE
2249 if test -n "$CONFIG_SITE"; then
2250 # We do not want a PATH search for config.site.
2251 case $CONFIG_SITE in #((
2252 -*) ac_site_file1=./$CONFIG_SITE;;
2253 */*) ac_site_file1=$CONFIG_SITE;;
2254 *) ac_site_file1=./$CONFIG_SITE;;
2255 esac
2256 elif test "x$prefix" != xNONE; then
2257 ac_site_file1=$prefix/share/config.site
2258 ac_site_file2=$prefix/etc/config.site
2259 else
2260 ac_site_file1=$ac_default_prefix/share/config.site
2261 ac_site_file2=$ac_default_prefix/etc/config.site
2262 fi
2263 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2264 do
2265 test "x$ac_site_file" = xNONE && continue
2266 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2268 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2269 sed 's/^/| /' "$ac_site_file" >&5
2270 . "$ac_site_file" \
2271 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2272 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2273 as_fn_error $? "failed to load site script $ac_site_file
2274 See \`config.log' for more details" "$LINENO" 5; }
2275 fi
2276 done
2277
2278 if test -r "$cache_file"; then
2279 # Some versions of bash will fail to source /dev/null (special files
2280 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2281 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2283 $as_echo "$as_me: loading cache $cache_file" >&6;}
2284 case $cache_file in
2285 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2286 *) . "./$cache_file";;
2287 esac
2288 fi
2289 else
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2291 $as_echo "$as_me: creating cache $cache_file" >&6;}
2292 >$cache_file
2293 fi
2294
2295 # Check that the precious variables saved in the cache have kept the same
2296 # value.
2297 ac_cache_corrupted=false
2298 for ac_var in $ac_precious_vars; do
2299 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2300 eval ac_new_set=\$ac_env_${ac_var}_set
2301 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2302 eval ac_new_val=\$ac_env_${ac_var}_value
2303 case $ac_old_set,$ac_new_set in
2304 set,)
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2306 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2307 ac_cache_corrupted=: ;;
2308 ,set)
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2310 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2311 ac_cache_corrupted=: ;;
2312 ,);;
2313 *)
2314 if test "x$ac_old_val" != "x$ac_new_val"; then
2315 # differences in whitespace do not lead to failure.
2316 ac_old_val_w=`echo x $ac_old_val`
2317 ac_new_val_w=`echo x $ac_new_val`
2318 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2320 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2321 ac_cache_corrupted=:
2322 else
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2324 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2325 eval $ac_var=\$ac_old_val
2326 fi
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2328 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2330 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2331 fi;;
2332 esac
2333 # Pass precious variables to config.status.
2334 if test "$ac_new_set" = set; then
2335 case $ac_new_val in
2336 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2337 *) ac_arg=$ac_var=$ac_new_val ;;
2338 esac
2339 case " $ac_configure_args " in
2340 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2341 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2342 esac
2343 fi
2344 done
2345 if $ac_cache_corrupted; then
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2347 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2349 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2350 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2351 fi
2352 ## -------------------- ##
2353 ## Main body of script. ##
2354 ## -------------------- ##
2355
2356 ac_ext=c
2357 ac_cpp='$CPP $CPPFLAGS'
2358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2361
2362
2363
2364
2365
2366
2367 ac_config_headers="$ac_config_headers config.h"
2368
2369
2370 # Default to --enable-multilib
2371 # Check whether --enable-multilib was given.
2372 if test "${enable_multilib+set}" = set; then :
2373 enableval=$enable_multilib; case "$enableval" in
2374 yes) multilib=yes ;;
2375 no) multilib=no ;;
2376 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2377 esac
2378 else
2379 multilib=yes
2380 fi
2381
2382
2383 # We may get other options which we leave undocumented:
2384 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2385 # See config-ml.in if you want the gory details.
2386
2387 if test "$srcdir" = "."; then
2388 if test "$with_target_subdir" != "."; then
2389 multi_basedir="$srcdir/$with_multisrctop../.."
2390 else
2391 multi_basedir="$srcdir/$with_multisrctop.."
2392 fi
2393 else
2394 multi_basedir="$srcdir/.."
2395 fi
2396
2397
2398 # Even if the default multilib is not a cross compilation,
2399 # it may be that some of the other multilibs are.
2400 if test $cross_compiling = no && test $multilib = yes \
2401 && test "x${with_multisubdir}" != x ; then
2402 cross_compiling=maybe
2403 fi
2404
2405 ac_config_commands="$ac_config_commands default-1"
2406
2407 ac_aux_dir=
2408 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2409 if test -f "$ac_dir/install-sh"; then
2410 ac_aux_dir=$ac_dir
2411 ac_install_sh="$ac_aux_dir/install-sh -c"
2412 break
2413 elif test -f "$ac_dir/install.sh"; then
2414 ac_aux_dir=$ac_dir
2415 ac_install_sh="$ac_aux_dir/install.sh -c"
2416 break
2417 elif test -f "$ac_dir/shtool"; then
2418 ac_aux_dir=$ac_dir
2419 ac_install_sh="$ac_aux_dir/shtool install -c"
2420 break
2421 fi
2422 done
2423 if test -z "$ac_aux_dir"; then
2424 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2425 fi
2426
2427 # These three variables are undocumented and unsupported,
2428 # and are intended to be withdrawn in a future Autoconf release.
2429 # They can cause serious problems if a builder's source tree is in a directory
2430 # whose full name contains unusual characters.
2431 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2432 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2433 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2434
2435
2436 # Make sure we can run config.sub.
2437 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2438 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2439
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2441 $as_echo_n "checking build system type... " >&6; }
2442 if ${ac_cv_build+:} false; then :
2443 $as_echo_n "(cached) " >&6
2444 else
2445 ac_build_alias=$build_alias
2446 test "x$ac_build_alias" = x &&
2447 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2448 test "x$ac_build_alias" = x &&
2449 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2450 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2451 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2452
2453 fi
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2455 $as_echo "$ac_cv_build" >&6; }
2456 case $ac_cv_build in
2457 *-*-*) ;;
2458 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2459 esac
2460 build=$ac_cv_build
2461 ac_save_IFS=$IFS; IFS='-'
2462 set x $ac_cv_build
2463 shift
2464 build_cpu=$1
2465 build_vendor=$2
2466 shift; shift
2467 # Remember, the first character of IFS is used to create $*,
2468 # except with old shells:
2469 build_os=$*
2470 IFS=$ac_save_IFS
2471 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2472
2473
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2475 $as_echo_n "checking host system type... " >&6; }
2476 if ${ac_cv_host+:} false; then :
2477 $as_echo_n "(cached) " >&6
2478 else
2479 if test "x$host_alias" = x; then
2480 ac_cv_host=$ac_cv_build
2481 else
2482 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2483 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2484 fi
2485
2486 fi
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2488 $as_echo "$ac_cv_host" >&6; }
2489 case $ac_cv_host in
2490 *-*-*) ;;
2491 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2492 esac
2493 host=$ac_cv_host
2494 ac_save_IFS=$IFS; IFS='-'
2495 set x $ac_cv_host
2496 shift
2497 host_cpu=$1
2498 host_vendor=$2
2499 shift; shift
2500 # Remember, the first character of IFS is used to create $*,
2501 # except with old shells:
2502 host_os=$*
2503 IFS=$ac_save_IFS
2504 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2505
2506
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2508 $as_echo_n "checking target system type... " >&6; }
2509 if ${ac_cv_target+:} false; then :
2510 $as_echo_n "(cached) " >&6
2511 else
2512 if test "x$target_alias" = x; then
2513 ac_cv_target=$ac_cv_host
2514 else
2515 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2516 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2517 fi
2518
2519 fi
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2521 $as_echo "$ac_cv_target" >&6; }
2522 case $ac_cv_target in
2523 *-*-*) ;;
2524 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2525 esac
2526 target=$ac_cv_target
2527 ac_save_IFS=$IFS; IFS='-'
2528 set x $ac_cv_target
2529 shift
2530 target_cpu=$1
2531 target_vendor=$2
2532 shift; shift
2533 # Remember, the first character of IFS is used to create $*,
2534 # except with old shells:
2535 target_os=$*
2536 IFS=$ac_save_IFS
2537 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2538
2539
2540 # The aliases save the names the user supplied, while $host etc.
2541 # will get canonicalized.
2542 test -n "$target_alias" &&
2543 test "$program_prefix$program_suffix$program_transform_name" = \
2544 NONENONEs,x,x, &&
2545 program_prefix=${target_alias}-
2546
2547
2548 target_alias=${target_alias-$target}
2549
2550
2551 # 1.11.1: Require that version of automake.
2552 # foreign: Don't require README, INSTALL, NEWS, etc.
2553 # no-define: Don't define PACKAGE and VERSION.
2554 # no-dependencies: Don't generate automatic dependencies.
2555 # (because it breaks when using bootstrap-lean, since some of the
2556 # headers are gone at "make install" time).
2557 # subdir-objects: Build objects in sub-directories.
2558 # -Wall: Issue all automake warnings.
2559 # -Wno-portability: Don't warn about constructs supported by GNU make.
2560 # (because GCC requires GNU make anyhow).
2561 # -Wno-override: Overrides used in testsuite.
2562 am__api_version='1.15'
2563
2564 # Find a good install program. We prefer a C program (faster),
2565 # so one script is as good as another. But avoid the broken or
2566 # incompatible versions:
2567 # SysV /etc/install, /usr/sbin/install
2568 # SunOS /usr/etc/install
2569 # IRIX /sbin/install
2570 # AIX /bin/install
2571 # AmigaOS /C/install, which installs bootblocks on floppy discs
2572 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2573 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2574 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2575 # OS/2's system install, which has a completely different semantic
2576 # ./install, which can be erroneously created by make from ./install.sh.
2577 # Reject install programs that cannot install multiple files.
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2579 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2580 if test -z "$INSTALL"; then
2581 if ${ac_cv_path_install+:} false; then :
2582 $as_echo_n "(cached) " >&6
2583 else
2584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585 for as_dir in $PATH
2586 do
2587 IFS=$as_save_IFS
2588 test -z "$as_dir" && as_dir=.
2589 # Account for people who put trailing slashes in PATH elements.
2590 case $as_dir/ in #((
2591 ./ | .// | /[cC]/* | \
2592 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2593 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2594 /usr/ucb/* ) ;;
2595 *)
2596 # OSF1 and SCO ODT 3.0 have their own names for install.
2597 # Don't use installbsd from OSF since it installs stuff as root
2598 # by default.
2599 for ac_prog in ginstall scoinst install; do
2600 for ac_exec_ext in '' $ac_executable_extensions; do
2601 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2602 if test $ac_prog = install &&
2603 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2604 # AIX install. It has an incompatible calling convention.
2605 :
2606 elif test $ac_prog = install &&
2607 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2608 # program-specific install script used by HP pwplus--don't use.
2609 :
2610 else
2611 rm -rf conftest.one conftest.two conftest.dir
2612 echo one > conftest.one
2613 echo two > conftest.two
2614 mkdir conftest.dir
2615 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2616 test -s conftest.one && test -s conftest.two &&
2617 test -s conftest.dir/conftest.one &&
2618 test -s conftest.dir/conftest.two
2619 then
2620 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2621 break 3
2622 fi
2623 fi
2624 fi
2625 done
2626 done
2627 ;;
2628 esac
2629
2630 done
2631 IFS=$as_save_IFS
2632
2633 rm -rf conftest.one conftest.two conftest.dir
2634
2635 fi
2636 if test "${ac_cv_path_install+set}" = set; then
2637 INSTALL=$ac_cv_path_install
2638 else
2639 # As a last resort, use the slow shell script. Don't cache a
2640 # value for INSTALL within a source directory, because that will
2641 # break other packages using the cache if that directory is
2642 # removed, or if the value is a relative name.
2643 INSTALL=$ac_install_sh
2644 fi
2645 fi
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2647 $as_echo "$INSTALL" >&6; }
2648
2649 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2650 # It thinks the first close brace ends the variable substitution.
2651 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2652
2653 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2654
2655 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2656
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2658 $as_echo_n "checking whether build environment is sane... " >&6; }
2659 # Reject unsafe characters in $srcdir or the absolute working directory
2660 # name. Accept space and tab only in the latter.
2661 am_lf='
2662 '
2663 case `pwd` in
2664 *[\\\"\#\$\&\'\`$am_lf]*)
2665 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2666 esac
2667 case $srcdir in
2668 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2669 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2670 esac
2671
2672 # Do 'set' in a subshell so we don't clobber the current shell's
2673 # arguments. Must try -L first in case configure is actually a
2674 # symlink; some systems play weird games with the mod time of symlinks
2675 # (eg FreeBSD returns the mod time of the symlink's containing
2676 # directory).
2677 if (
2678 am_has_slept=no
2679 for am_try in 1 2; do
2680 echo "timestamp, slept: $am_has_slept" > conftest.file
2681 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2682 if test "$*" = "X"; then
2683 # -L didn't work.
2684 set X `ls -t "$srcdir/configure" conftest.file`
2685 fi
2686 if test "$*" != "X $srcdir/configure conftest.file" \
2687 && test "$*" != "X conftest.file $srcdir/configure"; then
2688
2689 # If neither matched, then we have a broken ls. This can happen
2690 # if, for instance, CONFIG_SHELL is bash and it inherits a
2691 # broken ls alias from the environment. This has actually
2692 # happened. Such a system could not be considered "sane".
2693 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2694 alias in your environment" "$LINENO" 5
2695 fi
2696 if test "$2" = conftest.file || test $am_try -eq 2; then
2697 break
2698 fi
2699 # Just in case.
2700 sleep 1
2701 am_has_slept=yes
2702 done
2703 test "$2" = conftest.file
2704 )
2705 then
2706 # Ok.
2707 :
2708 else
2709 as_fn_error $? "newly created file is older than distributed files!
2710 Check your system clock" "$LINENO" 5
2711 fi
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2713 $as_echo "yes" >&6; }
2714 # If we didn't sleep, we still need to ensure time stamps of config.status and
2715 # generated files are strictly newer.
2716 am_sleep_pid=
2717 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2718 ( sleep 1 ) &
2719 am_sleep_pid=$!
2720 fi
2721
2722 rm -f conftest.file
2723
2724 test "$program_prefix" != NONE &&
2725 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2726 # Use a double $ so make ignores it.
2727 test "$program_suffix" != NONE &&
2728 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2729 # Double any \ or $.
2730 # By default was `s,x,x', remove it if useless.
2731 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2732 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2733
2734 # Expand $ac_aux_dir to an absolute path.
2735 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2736
2737 if test x"${MISSING+set}" != xset; then
2738 case $am_aux_dir in
2739 *\ * | *\ *)
2740 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2741 *)
2742 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2743 esac
2744 fi
2745 # Use eval to expand $SHELL
2746 if eval "$MISSING --is-lightweight"; then
2747 am_missing_run="$MISSING "
2748 else
2749 am_missing_run=
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2751 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2752 fi
2753
2754 if test x"${install_sh+set}" != xset; then
2755 case $am_aux_dir in
2756 *\ * | *\ *)
2757 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2758 *)
2759 install_sh="\${SHELL} $am_aux_dir/install-sh"
2760 esac
2761 fi
2762
2763 # Installed binaries are usually stripped using 'strip' when the user
2764 # run "make install-strip". However 'strip' might not be the right
2765 # tool to use in cross-compilation environments, therefore Automake
2766 # will honor the 'STRIP' environment variable to overrule this program.
2767 if test "$cross_compiling" != no; then
2768 if test -n "$ac_tool_prefix"; then
2769 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2770 set dummy ${ac_tool_prefix}strip; ac_word=$2
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2772 $as_echo_n "checking for $ac_word... " >&6; }
2773 if ${ac_cv_prog_STRIP+:} false; then :
2774 $as_echo_n "(cached) " >&6
2775 else
2776 if test -n "$STRIP"; then
2777 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2778 else
2779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2780 for as_dir in $PATH
2781 do
2782 IFS=$as_save_IFS
2783 test -z "$as_dir" && as_dir=.
2784 for ac_exec_ext in '' $ac_executable_extensions; do
2785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2786 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2788 break 2
2789 fi
2790 done
2791 done
2792 IFS=$as_save_IFS
2793
2794 fi
2795 fi
2796 STRIP=$ac_cv_prog_STRIP
2797 if test -n "$STRIP"; then
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2799 $as_echo "$STRIP" >&6; }
2800 else
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2802 $as_echo "no" >&6; }
2803 fi
2804
2805
2806 fi
2807 if test -z "$ac_cv_prog_STRIP"; then
2808 ac_ct_STRIP=$STRIP
2809 # Extract the first word of "strip", so it can be a program name with args.
2810 set dummy strip; ac_word=$2
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2812 $as_echo_n "checking for $ac_word... " >&6; }
2813 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2814 $as_echo_n "(cached) " >&6
2815 else
2816 if test -n "$ac_ct_STRIP"; then
2817 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2818 else
2819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820 for as_dir in $PATH
2821 do
2822 IFS=$as_save_IFS
2823 test -z "$as_dir" && as_dir=.
2824 for ac_exec_ext in '' $ac_executable_extensions; do
2825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2826 ac_cv_prog_ac_ct_STRIP="strip"
2827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2828 break 2
2829 fi
2830 done
2831 done
2832 IFS=$as_save_IFS
2833
2834 fi
2835 fi
2836 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2837 if test -n "$ac_ct_STRIP"; then
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2839 $as_echo "$ac_ct_STRIP" >&6; }
2840 else
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2842 $as_echo "no" >&6; }
2843 fi
2844
2845 if test "x$ac_ct_STRIP" = x; then
2846 STRIP=":"
2847 else
2848 case $cross_compiling:$ac_tool_warned in
2849 yes:)
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2851 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2852 ac_tool_warned=yes ;;
2853 esac
2854 STRIP=$ac_ct_STRIP
2855 fi
2856 else
2857 STRIP="$ac_cv_prog_STRIP"
2858 fi
2859
2860 fi
2861 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2862
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2864 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2865 if test -z "$MKDIR_P"; then
2866 if ${ac_cv_path_mkdir+:} false; then :
2867 $as_echo_n "(cached) " >&6
2868 else
2869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2871 do
2872 IFS=$as_save_IFS
2873 test -z "$as_dir" && as_dir=.
2874 for ac_prog in mkdir gmkdir; do
2875 for ac_exec_ext in '' $ac_executable_extensions; do
2876 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2877 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2878 'mkdir (GNU coreutils) '* | \
2879 'mkdir (coreutils) '* | \
2880 'mkdir (fileutils) '4.1*)
2881 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2882 break 3;;
2883 esac
2884 done
2885 done
2886 done
2887 IFS=$as_save_IFS
2888
2889 fi
2890
2891 test -d ./--version && rmdir ./--version
2892 if test "${ac_cv_path_mkdir+set}" = set; then
2893 MKDIR_P="$ac_cv_path_mkdir -p"
2894 else
2895 # As a last resort, use the slow shell script. Don't cache a
2896 # value for MKDIR_P within a source directory, because that will
2897 # break other packages using the cache if that directory is
2898 # removed, or if the value is a relative name.
2899 MKDIR_P="$ac_install_sh -d"
2900 fi
2901 fi
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2903 $as_echo "$MKDIR_P" >&6; }
2904
2905 for ac_prog in gawk mawk nawk awk
2906 do
2907 # Extract the first word of "$ac_prog", so it can be a program name with args.
2908 set dummy $ac_prog; ac_word=$2
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2910 $as_echo_n "checking for $ac_word... " >&6; }
2911 if ${ac_cv_prog_AWK+:} false; then :
2912 $as_echo_n "(cached) " >&6
2913 else
2914 if test -n "$AWK"; then
2915 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2916 else
2917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2918 for as_dir in $PATH
2919 do
2920 IFS=$as_save_IFS
2921 test -z "$as_dir" && as_dir=.
2922 for ac_exec_ext in '' $ac_executable_extensions; do
2923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2924 ac_cv_prog_AWK="$ac_prog"
2925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2926 break 2
2927 fi
2928 done
2929 done
2930 IFS=$as_save_IFS
2931
2932 fi
2933 fi
2934 AWK=$ac_cv_prog_AWK
2935 if test -n "$AWK"; then
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2937 $as_echo "$AWK" >&6; }
2938 else
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2940 $as_echo "no" >&6; }
2941 fi
2942
2943
2944 test -n "$AWK" && break
2945 done
2946
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2948 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2949 set x ${MAKE-make}
2950 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2951 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2952 $as_echo_n "(cached) " >&6
2953 else
2954 cat >conftest.make <<\_ACEOF
2955 SHELL = /bin/sh
2956 all:
2957 @echo '@@@%%%=$(MAKE)=@@@%%%'
2958 _ACEOF
2959 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2960 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2961 *@@@%%%=?*=@@@%%%*)
2962 eval ac_cv_prog_make_${ac_make}_set=yes;;
2963 *)
2964 eval ac_cv_prog_make_${ac_make}_set=no;;
2965 esac
2966 rm -f conftest.make
2967 fi
2968 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2970 $as_echo "yes" >&6; }
2971 SET_MAKE=
2972 else
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2974 $as_echo "no" >&6; }
2975 SET_MAKE="MAKE=${MAKE-make}"
2976 fi
2977
2978 rm -rf .tst 2>/dev/null
2979 mkdir .tst 2>/dev/null
2980 if test -d .tst; then
2981 am__leading_dot=.
2982 else
2983 am__leading_dot=_
2984 fi
2985 rmdir .tst 2>/dev/null
2986
2987 # Check whether --enable-silent-rules was given.
2988 if test "${enable_silent_rules+set}" = set; then :
2989 enableval=$enable_silent_rules;
2990 fi
2991
2992 case $enable_silent_rules in # (((
2993 yes) AM_DEFAULT_VERBOSITY=0;;
2994 no) AM_DEFAULT_VERBOSITY=1;;
2995 *) AM_DEFAULT_VERBOSITY=1;;
2996 esac
2997 am_make=${MAKE-make}
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2999 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3000 if ${am_cv_make_support_nested_variables+:} false; then :
3001 $as_echo_n "(cached) " >&6
3002 else
3003 if $as_echo 'TRUE=$(BAR$(V))
3004 BAR0=false
3005 BAR1=true
3006 V=1
3007 am__doit:
3008 @$(TRUE)
3009 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3010 am_cv_make_support_nested_variables=yes
3011 else
3012 am_cv_make_support_nested_variables=no
3013 fi
3014 fi
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3016 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3017 if test $am_cv_make_support_nested_variables = yes; then
3018 AM_V='$(V)'
3019 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3020 else
3021 AM_V=$AM_DEFAULT_VERBOSITY
3022 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3023 fi
3024 AM_BACKSLASH='\'
3025
3026 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3027 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3028 # is not polluted with repeated "-I."
3029 am__isrc=' -I$(srcdir)'
3030 # test to see if srcdir already configured
3031 if test -f $srcdir/config.status; then
3032 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3033 fi
3034 fi
3035
3036 # test whether we have cygpath
3037 if test -z "$CYGPATH_W"; then
3038 if (cygpath --version) >/dev/null 2>/dev/null; then
3039 CYGPATH_W='cygpath -w'
3040 else
3041 CYGPATH_W=echo
3042 fi
3043 fi
3044
3045
3046 # Define the identity of the package.
3047 PACKAGE='libphobos'
3048 VERSION='version-unused'
3049
3050
3051 # Some tools Automake needs.
3052
3053 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3054
3055
3056 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3057
3058
3059 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3060
3061
3062 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3063
3064
3065 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3066
3067 # For better backward compatibility. To be removed once Automake 1.9.x
3068 # dies out for good. For more background, see:
3069 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3070 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3071 mkdir_p='$(MKDIR_P)'
3072
3073 # We need awk for the "check" target (and possibly the TAP driver). The
3074 # system "awk" is bad on some platforms.
3075 # Always define AMTAR for backward compatibility. Yes, it's still used
3076 # in the wild :-( We should find a proper way to deprecate it ...
3077 AMTAR='$${TAR-tar}'
3078
3079
3080 # We'll loop over all known methods to create a tar archive until one works.
3081 _am_tools='gnutar pax cpio none'
3082
3083 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3084
3085
3086
3087
3088
3089
3090 # POSIX will say in a future version that running "rm -f" with no argument
3091 # is OK; and we want to be able to make that assumption in our Makefile
3092 # recipes. So use an aggressive probe to check that the usage we want is
3093 # actually supported "in the wild" to an acceptable degree.
3094 # See automake bug#10828.
3095 # To make any issue more visible, cause the running configure to be aborted
3096 # by default if the 'rm' program in use doesn't match our expectations; the
3097 # user can still override this though.
3098 if rm -f && rm -fr && rm -rf; then : OK; else
3099 cat >&2 <<'END'
3100 Oops!
3101
3102 Your 'rm' program seems unable to run without file operands specified
3103 on the command line, even when the '-f' option is present. This is contrary
3104 to the behaviour of most rm programs out there, and not conforming with
3105 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3106
3107 Please tell bug-automake@gnu.org about your system, including the value
3108 of your $PATH and any error possibly output before this message. This
3109 can help us improve future automake versions.
3110
3111 END
3112 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3113 echo 'Configuration will proceed anyway, since you have set the' >&2
3114 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3115 echo >&2
3116 else
3117 cat >&2 <<'END'
3118 Aborting the configuration process, to ensure you take notice of the issue.
3119
3120 You can download and install GNU coreutils to get an 'rm' implementation
3121 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3122
3123 If you want to complete the configuration process using your problematic
3124 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3125 to "yes", and re-run configure.
3126
3127 END
3128 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3129 fi
3130 fi
3131
3132
3133
3134
3135 ac_ext=c
3136 ac_cpp='$CPP $CPPFLAGS'
3137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3140 if test -n "$ac_tool_prefix"; then
3141 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3142 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3144 $as_echo_n "checking for $ac_word... " >&6; }
3145 if ${ac_cv_prog_CC+:} false; then :
3146 $as_echo_n "(cached) " >&6
3147 else
3148 if test -n "$CC"; then
3149 ac_cv_prog_CC="$CC" # Let the user override the test.
3150 else
3151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3152 for as_dir in $PATH
3153 do
3154 IFS=$as_save_IFS
3155 test -z "$as_dir" && as_dir=.
3156 for ac_exec_ext in '' $ac_executable_extensions; do
3157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3158 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3160 break 2
3161 fi
3162 done
3163 done
3164 IFS=$as_save_IFS
3165
3166 fi
3167 fi
3168 CC=$ac_cv_prog_CC
3169 if test -n "$CC"; then
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3171 $as_echo "$CC" >&6; }
3172 else
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3174 $as_echo "no" >&6; }
3175 fi
3176
3177
3178 fi
3179 if test -z "$ac_cv_prog_CC"; then
3180 ac_ct_CC=$CC
3181 # Extract the first word of "gcc", so it can be a program name with args.
3182 set dummy gcc; ac_word=$2
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3184 $as_echo_n "checking for $ac_word... " >&6; }
3185 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3186 $as_echo_n "(cached) " >&6
3187 else
3188 if test -n "$ac_ct_CC"; then
3189 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3190 else
3191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3192 for as_dir in $PATH
3193 do
3194 IFS=$as_save_IFS
3195 test -z "$as_dir" && as_dir=.
3196 for ac_exec_ext in '' $ac_executable_extensions; do
3197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3198 ac_cv_prog_ac_ct_CC="gcc"
3199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3200 break 2
3201 fi
3202 done
3203 done
3204 IFS=$as_save_IFS
3205
3206 fi
3207 fi
3208 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3209 if test -n "$ac_ct_CC"; then
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3211 $as_echo "$ac_ct_CC" >&6; }
3212 else
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3214 $as_echo "no" >&6; }
3215 fi
3216
3217 if test "x$ac_ct_CC" = x; then
3218 CC=""
3219 else
3220 case $cross_compiling:$ac_tool_warned in
3221 yes:)
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3224 ac_tool_warned=yes ;;
3225 esac
3226 CC=$ac_ct_CC
3227 fi
3228 else
3229 CC="$ac_cv_prog_CC"
3230 fi
3231
3232 if test -z "$CC"; then
3233 if test -n "$ac_tool_prefix"; then
3234 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3235 set dummy ${ac_tool_prefix}cc; ac_word=$2
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3237 $as_echo_n "checking for $ac_word... " >&6; }
3238 if ${ac_cv_prog_CC+:} false; then :
3239 $as_echo_n "(cached) " >&6
3240 else
3241 if test -n "$CC"; then
3242 ac_cv_prog_CC="$CC" # Let the user override the test.
3243 else
3244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3245 for as_dir in $PATH
3246 do
3247 IFS=$as_save_IFS
3248 test -z "$as_dir" && as_dir=.
3249 for ac_exec_ext in '' $ac_executable_extensions; do
3250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3251 ac_cv_prog_CC="${ac_tool_prefix}cc"
3252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3253 break 2
3254 fi
3255 done
3256 done
3257 IFS=$as_save_IFS
3258
3259 fi
3260 fi
3261 CC=$ac_cv_prog_CC
3262 if test -n "$CC"; then
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3264 $as_echo "$CC" >&6; }
3265 else
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3267 $as_echo "no" >&6; }
3268 fi
3269
3270
3271 fi
3272 fi
3273 if test -z "$CC"; then
3274 # Extract the first word of "cc", so it can be a program name with args.
3275 set dummy cc; ac_word=$2
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3277 $as_echo_n "checking for $ac_word... " >&6; }
3278 if ${ac_cv_prog_CC+:} false; then :
3279 $as_echo_n "(cached) " >&6
3280 else
3281 if test -n "$CC"; then
3282 ac_cv_prog_CC="$CC" # Let the user override the test.
3283 else
3284 ac_prog_rejected=no
3285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3286 for as_dir in $PATH
3287 do
3288 IFS=$as_save_IFS
3289 test -z "$as_dir" && as_dir=.
3290 for ac_exec_ext in '' $ac_executable_extensions; do
3291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3292 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3293 ac_prog_rejected=yes
3294 continue
3295 fi
3296 ac_cv_prog_CC="cc"
3297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3298 break 2
3299 fi
3300 done
3301 done
3302 IFS=$as_save_IFS
3303
3304 if test $ac_prog_rejected = yes; then
3305 # We found a bogon in the path, so make sure we never use it.
3306 set dummy $ac_cv_prog_CC
3307 shift
3308 if test $# != 0; then
3309 # We chose a different compiler from the bogus one.
3310 # However, it has the same basename, so the bogon will be chosen
3311 # first if we set CC to just the basename; use the full file name.
3312 shift
3313 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3314 fi
3315 fi
3316 fi
3317 fi
3318 CC=$ac_cv_prog_CC
3319 if test -n "$CC"; then
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3321 $as_echo "$CC" >&6; }
3322 else
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3324 $as_echo "no" >&6; }
3325 fi
3326
3327
3328 fi
3329 if test -z "$CC"; then
3330 if test -n "$ac_tool_prefix"; then
3331 for ac_prog in cl.exe
3332 do
3333 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3334 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3336 $as_echo_n "checking for $ac_word... " >&6; }
3337 if ${ac_cv_prog_CC+:} false; then :
3338 $as_echo_n "(cached) " >&6
3339 else
3340 if test -n "$CC"; then
3341 ac_cv_prog_CC="$CC" # Let the user override the test.
3342 else
3343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3344 for as_dir in $PATH
3345 do
3346 IFS=$as_save_IFS
3347 test -z "$as_dir" && as_dir=.
3348 for ac_exec_ext in '' $ac_executable_extensions; do
3349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3350 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3352 break 2
3353 fi
3354 done
3355 done
3356 IFS=$as_save_IFS
3357
3358 fi
3359 fi
3360 CC=$ac_cv_prog_CC
3361 if test -n "$CC"; then
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3363 $as_echo "$CC" >&6; }
3364 else
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3366 $as_echo "no" >&6; }
3367 fi
3368
3369
3370 test -n "$CC" && break
3371 done
3372 fi
3373 if test -z "$CC"; then
3374 ac_ct_CC=$CC
3375 for ac_prog in cl.exe
3376 do
3377 # Extract the first word of "$ac_prog", so it can be a program name with args.
3378 set dummy $ac_prog; ac_word=$2
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3380 $as_echo_n "checking for $ac_word... " >&6; }
3381 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3382 $as_echo_n "(cached) " >&6
3383 else
3384 if test -n "$ac_ct_CC"; then
3385 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3386 else
3387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3388 for as_dir in $PATH
3389 do
3390 IFS=$as_save_IFS
3391 test -z "$as_dir" && as_dir=.
3392 for ac_exec_ext in '' $ac_executable_extensions; do
3393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3394 ac_cv_prog_ac_ct_CC="$ac_prog"
3395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3396 break 2
3397 fi
3398 done
3399 done
3400 IFS=$as_save_IFS
3401
3402 fi
3403 fi
3404 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3405 if test -n "$ac_ct_CC"; then
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3407 $as_echo "$ac_ct_CC" >&6; }
3408 else
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3410 $as_echo "no" >&6; }
3411 fi
3412
3413
3414 test -n "$ac_ct_CC" && break
3415 done
3416
3417 if test "x$ac_ct_CC" = x; then
3418 CC=""
3419 else
3420 case $cross_compiling:$ac_tool_warned in
3421 yes:)
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3424 ac_tool_warned=yes ;;
3425 esac
3426 CC=$ac_ct_CC
3427 fi
3428 fi
3429
3430 fi
3431
3432
3433 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3435 as_fn_error $? "no acceptable C compiler found in \$PATH
3436 See \`config.log' for more details" "$LINENO" 5; }
3437
3438 # Provide some information about the compiler.
3439 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3440 set X $ac_compile
3441 ac_compiler=$2
3442 for ac_option in --version -v -V -qversion; do
3443 { { ac_try="$ac_compiler $ac_option >&5"
3444 case "(($ac_try" in
3445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3446 *) ac_try_echo=$ac_try;;
3447 esac
3448 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3449 $as_echo "$ac_try_echo"; } >&5
3450 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3451 ac_status=$?
3452 if test -s conftest.err; then
3453 sed '10a\
3454 ... rest of stderr output deleted ...
3455 10q' conftest.err >conftest.er1
3456 cat conftest.er1 >&5
3457 fi
3458 rm -f conftest.er1 conftest.err
3459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3460 test $ac_status = 0; }
3461 done
3462
3463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464 /* end confdefs.h. */
3465
3466 int
3467 main ()
3468 {
3469
3470 ;
3471 return 0;
3472 }
3473 _ACEOF
3474 ac_clean_files_save=$ac_clean_files
3475 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3476 # Try to create an executable without -o first, disregard a.out.
3477 # It will help us diagnose broken compilers, and finding out an intuition
3478 # of exeext.
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3480 $as_echo_n "checking whether the C compiler works... " >&6; }
3481 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3482
3483 # The possible output files:
3484 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3485
3486 ac_rmfiles=
3487 for ac_file in $ac_files
3488 do
3489 case $ac_file in
3490 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3491 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3492 esac
3493 done
3494 rm -f $ac_rmfiles
3495
3496 if { { ac_try="$ac_link_default"
3497 case "(($ac_try" in
3498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499 *) ac_try_echo=$ac_try;;
3500 esac
3501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3502 $as_echo "$ac_try_echo"; } >&5
3503 (eval "$ac_link_default") 2>&5
3504 ac_status=$?
3505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3506 test $ac_status = 0; }; then :
3507 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3508 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3509 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3510 # so that the user can short-circuit this test for compilers unknown to
3511 # Autoconf.
3512 for ac_file in $ac_files ''
3513 do
3514 test -f "$ac_file" || continue
3515 case $ac_file in
3516 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3517 ;;
3518 [ab].out )
3519 # We found the default executable, but exeext='' is most
3520 # certainly right.
3521 break;;
3522 *.* )
3523 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3524 then :; else
3525 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3526 fi
3527 # We set ac_cv_exeext here because the later test for it is not
3528 # safe: cross compilers may not add the suffix if given an `-o'
3529 # argument, so we may need to know it at that point already.
3530 # Even if this section looks crufty: it has the advantage of
3531 # actually working.
3532 break;;
3533 * )
3534 break;;
3535 esac
3536 done
3537 test "$ac_cv_exeext" = no && ac_cv_exeext=
3538
3539 else
3540 ac_file=''
3541 fi
3542 if test -z "$ac_file"; then :
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3544 $as_echo "no" >&6; }
3545 $as_echo "$as_me: failed program was:" >&5
3546 sed 's/^/| /' conftest.$ac_ext >&5
3547
3548 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3550 as_fn_error 77 "C compiler cannot create executables
3551 See \`config.log' for more details" "$LINENO" 5; }
3552 else
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3554 $as_echo "yes" >&6; }
3555 fi
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3557 $as_echo_n "checking for C compiler default output file name... " >&6; }
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3559 $as_echo "$ac_file" >&6; }
3560 ac_exeext=$ac_cv_exeext
3561
3562 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3563 ac_clean_files=$ac_clean_files_save
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3565 $as_echo_n "checking for suffix of executables... " >&6; }
3566 if { { ac_try="$ac_link"
3567 case "(($ac_try" in
3568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3569 *) ac_try_echo=$ac_try;;
3570 esac
3571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3572 $as_echo "$ac_try_echo"; } >&5
3573 (eval "$ac_link") 2>&5
3574 ac_status=$?
3575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3576 test $ac_status = 0; }; then :
3577 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3578 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3579 # work properly (i.e., refer to `conftest.exe'), while it won't with
3580 # `rm'.
3581 for ac_file in conftest.exe conftest conftest.*; do
3582 test -f "$ac_file" || continue
3583 case $ac_file in
3584 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3585 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3586 break;;
3587 * ) break;;
3588 esac
3589 done
3590 else
3591 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3593 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3594 See \`config.log' for more details" "$LINENO" 5; }
3595 fi
3596 rm -f conftest conftest$ac_cv_exeext
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3598 $as_echo "$ac_cv_exeext" >&6; }
3599
3600 rm -f conftest.$ac_ext
3601 EXEEXT=$ac_cv_exeext
3602 ac_exeext=$EXEEXT
3603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3604 /* end confdefs.h. */
3605 #include <stdio.h>
3606 int
3607 main ()
3608 {
3609 FILE *f = fopen ("conftest.out", "w");
3610 return ferror (f) || fclose (f) != 0;
3611
3612 ;
3613 return 0;
3614 }
3615 _ACEOF
3616 ac_clean_files="$ac_clean_files conftest.out"
3617 # Check that the compiler produces executables we can run. If not, either
3618 # the compiler is broken, or we cross compile.
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3620 $as_echo_n "checking whether we are cross compiling... " >&6; }
3621 if test "$cross_compiling" != yes; then
3622 { { ac_try="$ac_link"
3623 case "(($ac_try" in
3624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3625 *) ac_try_echo=$ac_try;;
3626 esac
3627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3628 $as_echo "$ac_try_echo"; } >&5
3629 (eval "$ac_link") 2>&5
3630 ac_status=$?
3631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3632 test $ac_status = 0; }
3633 if { ac_try='./conftest$ac_cv_exeext'
3634 { { case "(($ac_try" in
3635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3636 *) ac_try_echo=$ac_try;;
3637 esac
3638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3639 $as_echo "$ac_try_echo"; } >&5
3640 (eval "$ac_try") 2>&5
3641 ac_status=$?
3642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3643 test $ac_status = 0; }; }; then
3644 cross_compiling=no
3645 else
3646 if test "$cross_compiling" = maybe; then
3647 cross_compiling=yes
3648 else
3649 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3650 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3651 as_fn_error $? "cannot run C compiled programs.
3652 If you meant to cross compile, use \`--host'.
3653 See \`config.log' for more details" "$LINENO" 5; }
3654 fi
3655 fi
3656 fi
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3658 $as_echo "$cross_compiling" >&6; }
3659
3660 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3661 ac_clean_files=$ac_clean_files_save
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3663 $as_echo_n "checking for suffix of object files... " >&6; }
3664 if ${ac_cv_objext+:} false; then :
3665 $as_echo_n "(cached) " >&6
3666 else
3667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3668 /* end confdefs.h. */
3669
3670 int
3671 main ()
3672 {
3673
3674 ;
3675 return 0;
3676 }
3677 _ACEOF
3678 rm -f conftest.o conftest.obj
3679 if { { ac_try="$ac_compile"
3680 case "(($ac_try" in
3681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3682 *) ac_try_echo=$ac_try;;
3683 esac
3684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3685 $as_echo "$ac_try_echo"; } >&5
3686 (eval "$ac_compile") 2>&5
3687 ac_status=$?
3688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3689 test $ac_status = 0; }; then :
3690 for ac_file in conftest.o conftest.obj conftest.*; do
3691 test -f "$ac_file" || continue;
3692 case $ac_file in
3693 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3694 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3695 break;;
3696 esac
3697 done
3698 else
3699 $as_echo "$as_me: failed program was:" >&5
3700 sed 's/^/| /' conftest.$ac_ext >&5
3701
3702 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3704 as_fn_error $? "cannot compute suffix of object files: cannot compile
3705 See \`config.log' for more details" "$LINENO" 5; }
3706 fi
3707 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3708 fi
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3710 $as_echo "$ac_cv_objext" >&6; }
3711 OBJEXT=$ac_cv_objext
3712 ac_objext=$OBJEXT
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3714 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3715 if ${ac_cv_c_compiler_gnu+:} false; then :
3716 $as_echo_n "(cached) " >&6
3717 else
3718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3719 /* end confdefs.h. */
3720
3721 int
3722 main ()
3723 {
3724 #ifndef __GNUC__
3725 choke me
3726 #endif
3727
3728 ;
3729 return 0;
3730 }
3731 _ACEOF
3732 if ac_fn_c_try_compile "$LINENO"; then :
3733 ac_compiler_gnu=yes
3734 else
3735 ac_compiler_gnu=no
3736 fi
3737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3738 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3739
3740 fi
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3742 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3743 if test $ac_compiler_gnu = yes; then
3744 GCC=yes
3745 else
3746 GCC=
3747 fi
3748 ac_test_CFLAGS=${CFLAGS+set}
3749 ac_save_CFLAGS=$CFLAGS
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3751 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3752 if ${ac_cv_prog_cc_g+:} false; then :
3753 $as_echo_n "(cached) " >&6
3754 else
3755 ac_save_c_werror_flag=$ac_c_werror_flag
3756 ac_c_werror_flag=yes
3757 ac_cv_prog_cc_g=no
3758 CFLAGS="-g"
3759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760 /* end confdefs.h. */
3761
3762 int
3763 main ()
3764 {
3765
3766 ;
3767 return 0;
3768 }
3769 _ACEOF
3770 if ac_fn_c_try_compile "$LINENO"; then :
3771 ac_cv_prog_cc_g=yes
3772 else
3773 CFLAGS=""
3774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3775 /* end confdefs.h. */
3776
3777 int
3778 main ()
3779 {
3780
3781 ;
3782 return 0;
3783 }
3784 _ACEOF
3785 if ac_fn_c_try_compile "$LINENO"; then :
3786
3787 else
3788 ac_c_werror_flag=$ac_save_c_werror_flag
3789 CFLAGS="-g"
3790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3791 /* end confdefs.h. */
3792
3793 int
3794 main ()
3795 {
3796
3797 ;
3798 return 0;
3799 }
3800 _ACEOF
3801 if ac_fn_c_try_compile "$LINENO"; then :
3802 ac_cv_prog_cc_g=yes
3803 fi
3804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3805 fi
3806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3807 fi
3808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3809 ac_c_werror_flag=$ac_save_c_werror_flag
3810 fi
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3812 $as_echo "$ac_cv_prog_cc_g" >&6; }
3813 if test "$ac_test_CFLAGS" = set; then
3814 CFLAGS=$ac_save_CFLAGS
3815 elif test $ac_cv_prog_cc_g = yes; then
3816 if test "$GCC" = yes; then
3817 CFLAGS="-g -O2"
3818 else
3819 CFLAGS="-g"
3820 fi
3821 else
3822 if test "$GCC" = yes; then
3823 CFLAGS="-O2"
3824 else
3825 CFLAGS=
3826 fi
3827 fi
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3829 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3830 if ${ac_cv_prog_cc_c89+:} false; then :
3831 $as_echo_n "(cached) " >&6
3832 else
3833 ac_cv_prog_cc_c89=no
3834 ac_save_CC=$CC
3835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3836 /* end confdefs.h. */
3837 #include <stdarg.h>
3838 #include <stdio.h>
3839 struct stat;
3840 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3841 struct buf { int x; };
3842 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3843 static char *e (p, i)
3844 char **p;
3845 int i;
3846 {
3847 return p[i];
3848 }
3849 static char *f (char * (*g) (char **, int), char **p, ...)
3850 {
3851 char *s;
3852 va_list v;
3853 va_start (v,p);
3854 s = g (p, va_arg (v,int));
3855 va_end (v);
3856 return s;
3857 }
3858
3859 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3860 function prototypes and stuff, but not '\xHH' hex character constants.
3861 These don't provoke an error unfortunately, instead are silently treated
3862 as 'x'. The following induces an error, until -std is added to get
3863 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3864 array size at least. It's necessary to write '\x00'==0 to get something
3865 that's true only with -std. */
3866 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3867
3868 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3869 inside strings and character constants. */
3870 #define FOO(x) 'x'
3871 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3872
3873 int test (int i, double x);
3874 struct s1 {int (*f) (int a);};
3875 struct s2 {int (*f) (double a);};
3876 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3877 int argc;
3878 char **argv;
3879 int
3880 main ()
3881 {
3882 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3883 ;
3884 return 0;
3885 }
3886 _ACEOF
3887 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3888 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3889 do
3890 CC="$ac_save_CC $ac_arg"
3891 if ac_fn_c_try_compile "$LINENO"; then :
3892 ac_cv_prog_cc_c89=$ac_arg
3893 fi
3894 rm -f core conftest.err conftest.$ac_objext
3895 test "x$ac_cv_prog_cc_c89" != "xno" && break
3896 done
3897 rm -f conftest.$ac_ext
3898 CC=$ac_save_CC
3899
3900 fi
3901 # AC_CACHE_VAL
3902 case "x$ac_cv_prog_cc_c89" in
3903 x)
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3905 $as_echo "none needed" >&6; } ;;
3906 xno)
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3908 $as_echo "unsupported" >&6; } ;;
3909 *)
3910 CC="$CC $ac_cv_prog_cc_c89"
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3912 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3913 esac
3914 if test "x$ac_cv_prog_cc_c89" != xno; then :
3915
3916 fi
3917
3918 ac_ext=c
3919 ac_cpp='$CPP $CPPFLAGS'
3920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3923
3924 ac_ext=c
3925 ac_cpp='$CPP $CPPFLAGS'
3926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3930 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3931 if ${am_cv_prog_cc_c_o+:} false; then :
3932 $as_echo_n "(cached) " >&6
3933 else
3934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3935 /* end confdefs.h. */
3936
3937 int
3938 main ()
3939 {
3940
3941 ;
3942 return 0;
3943 }
3944 _ACEOF
3945 # Make sure it works both with $CC and with simple cc.
3946 # Following AC_PROG_CC_C_O, we do the test twice because some
3947 # compilers refuse to overwrite an existing .o file with -o,
3948 # though they will create one.
3949 am_cv_prog_cc_c_o=yes
3950 for am_i in 1 2; do
3951 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3952 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3953 ac_status=$?
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); } \
3956 && test -f conftest2.$ac_objext; then
3957 : OK
3958 else
3959 am_cv_prog_cc_c_o=no
3960 break
3961 fi
3962 done
3963 rm -f core conftest*
3964 unset am_i
3965 fi
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3967 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3968 if test "$am_cv_prog_cc_c_o" != yes; then
3969 # Losing compiler, so override with the script.
3970 # FIXME: It is wrong to rewrite CC.
3971 # But if we don't then we get into trouble of one sort or another.
3972 # A longer-term fix would be to have automake use am__CC in this case,
3973 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3974 CC="$am_aux_dir/compile $CC"
3975 fi
3976 ac_ext=c
3977 ac_cpp='$CPP $CPPFLAGS'
3978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3981
3982
3983 # By default we simply use the C compiler to build assembly code.
3984
3985 test "${CCAS+set}" = set || CCAS=$CC
3986 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3987
3988
3989
3990 ac_ext=c
3991 ac_cpp='$CPP $CPPFLAGS'
3992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3995 if test -n "$ac_tool_prefix"; then
3996 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3997 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3999 $as_echo_n "checking for $ac_word... " >&6; }
4000 if ${ac_cv_prog_CC+:} false; then :
4001 $as_echo_n "(cached) " >&6
4002 else
4003 if test -n "$CC"; then
4004 ac_cv_prog_CC="$CC" # Let the user override the test.
4005 else
4006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4007 for as_dir in $PATH
4008 do
4009 IFS=$as_save_IFS
4010 test -z "$as_dir" && as_dir=.
4011 for ac_exec_ext in '' $ac_executable_extensions; do
4012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4013 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4015 break 2
4016 fi
4017 done
4018 done
4019 IFS=$as_save_IFS
4020
4021 fi
4022 fi
4023 CC=$ac_cv_prog_CC
4024 if test -n "$CC"; then
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4026 $as_echo "$CC" >&6; }
4027 else
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4029 $as_echo "no" >&6; }
4030 fi
4031
4032
4033 fi
4034 if test -z "$ac_cv_prog_CC"; then
4035 ac_ct_CC=$CC
4036 # Extract the first word of "gcc", so it can be a program name with args.
4037 set dummy gcc; ac_word=$2
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4039 $as_echo_n "checking for $ac_word... " >&6; }
4040 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4041 $as_echo_n "(cached) " >&6
4042 else
4043 if test -n "$ac_ct_CC"; then
4044 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4045 else
4046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4047 for as_dir in $PATH
4048 do
4049 IFS=$as_save_IFS
4050 test -z "$as_dir" && as_dir=.
4051 for ac_exec_ext in '' $ac_executable_extensions; do
4052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4053 ac_cv_prog_ac_ct_CC="gcc"
4054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4055 break 2
4056 fi
4057 done
4058 done
4059 IFS=$as_save_IFS
4060
4061 fi
4062 fi
4063 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4064 if test -n "$ac_ct_CC"; then
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4066 $as_echo "$ac_ct_CC" >&6; }
4067 else
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4069 $as_echo "no" >&6; }
4070 fi
4071
4072 if test "x$ac_ct_CC" = x; then
4073 CC=""
4074 else
4075 case $cross_compiling:$ac_tool_warned in
4076 yes:)
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4079 ac_tool_warned=yes ;;
4080 esac
4081 CC=$ac_ct_CC
4082 fi
4083 else
4084 CC="$ac_cv_prog_CC"
4085 fi
4086
4087 if test -z "$CC"; then
4088 if test -n "$ac_tool_prefix"; then
4089 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4090 set dummy ${ac_tool_prefix}cc; ac_word=$2
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4092 $as_echo_n "checking for $ac_word... " >&6; }
4093 if ${ac_cv_prog_CC+:} false; then :
4094 $as_echo_n "(cached) " >&6
4095 else
4096 if test -n "$CC"; then
4097 ac_cv_prog_CC="$CC" # Let the user override the test.
4098 else
4099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4100 for as_dir in $PATH
4101 do
4102 IFS=$as_save_IFS
4103 test -z "$as_dir" && as_dir=.
4104 for ac_exec_ext in '' $ac_executable_extensions; do
4105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4106 ac_cv_prog_CC="${ac_tool_prefix}cc"
4107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4108 break 2
4109 fi
4110 done
4111 done
4112 IFS=$as_save_IFS
4113
4114 fi
4115 fi
4116 CC=$ac_cv_prog_CC
4117 if test -n "$CC"; then
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4119 $as_echo "$CC" >&6; }
4120 else
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4122 $as_echo "no" >&6; }
4123 fi
4124
4125
4126 fi
4127 fi
4128 if test -z "$CC"; then
4129 # Extract the first word of "cc", so it can be a program name with args.
4130 set dummy cc; ac_word=$2
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4132 $as_echo_n "checking for $ac_word... " >&6; }
4133 if ${ac_cv_prog_CC+:} false; then :
4134 $as_echo_n "(cached) " >&6
4135 else
4136 if test -n "$CC"; then
4137 ac_cv_prog_CC="$CC" # Let the user override the test.
4138 else
4139 ac_prog_rejected=no
4140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4141 for as_dir in $PATH
4142 do
4143 IFS=$as_save_IFS
4144 test -z "$as_dir" && as_dir=.
4145 for ac_exec_ext in '' $ac_executable_extensions; do
4146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4147 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4148 ac_prog_rejected=yes
4149 continue
4150 fi
4151 ac_cv_prog_CC="cc"
4152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4153 break 2
4154 fi
4155 done
4156 done
4157 IFS=$as_save_IFS
4158
4159 if test $ac_prog_rejected = yes; then
4160 # We found a bogon in the path, so make sure we never use it.
4161 set dummy $ac_cv_prog_CC
4162 shift
4163 if test $# != 0; then
4164 # We chose a different compiler from the bogus one.
4165 # However, it has the same basename, so the bogon will be chosen
4166 # first if we set CC to just the basename; use the full file name.
4167 shift
4168 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4169 fi
4170 fi
4171 fi
4172 fi
4173 CC=$ac_cv_prog_CC
4174 if test -n "$CC"; then
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4176 $as_echo "$CC" >&6; }
4177 else
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4179 $as_echo "no" >&6; }
4180 fi
4181
4182
4183 fi
4184 if test -z "$CC"; then
4185 if test -n "$ac_tool_prefix"; then
4186 for ac_prog in cl.exe
4187 do
4188 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4189 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4191 $as_echo_n "checking for $ac_word... " >&6; }
4192 if ${ac_cv_prog_CC+:} false; then :
4193 $as_echo_n "(cached) " >&6
4194 else
4195 if test -n "$CC"; then
4196 ac_cv_prog_CC="$CC" # Let the user override the test.
4197 else
4198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4199 for as_dir in $PATH
4200 do
4201 IFS=$as_save_IFS
4202 test -z "$as_dir" && as_dir=.
4203 for ac_exec_ext in '' $ac_executable_extensions; do
4204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4205 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4207 break 2
4208 fi
4209 done
4210 done
4211 IFS=$as_save_IFS
4212
4213 fi
4214 fi
4215 CC=$ac_cv_prog_CC
4216 if test -n "$CC"; then
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4218 $as_echo "$CC" >&6; }
4219 else
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4221 $as_echo "no" >&6; }
4222 fi
4223
4224
4225 test -n "$CC" && break
4226 done
4227 fi
4228 if test -z "$CC"; then
4229 ac_ct_CC=$CC
4230 for ac_prog in cl.exe
4231 do
4232 # Extract the first word of "$ac_prog", so it can be a program name with args.
4233 set dummy $ac_prog; ac_word=$2
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4235 $as_echo_n "checking for $ac_word... " >&6; }
4236 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4237 $as_echo_n "(cached) " >&6
4238 else
4239 if test -n "$ac_ct_CC"; then
4240 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4241 else
4242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243 for as_dir in $PATH
4244 do
4245 IFS=$as_save_IFS
4246 test -z "$as_dir" && as_dir=.
4247 for ac_exec_ext in '' $ac_executable_extensions; do
4248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4249 ac_cv_prog_ac_ct_CC="$ac_prog"
4250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4251 break 2
4252 fi
4253 done
4254 done
4255 IFS=$as_save_IFS
4256
4257 fi
4258 fi
4259 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4260 if test -n "$ac_ct_CC"; then
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4262 $as_echo "$ac_ct_CC" >&6; }
4263 else
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4265 $as_echo "no" >&6; }
4266 fi
4267
4268
4269 test -n "$ac_ct_CC" && break
4270 done
4271
4272 if test "x$ac_ct_CC" = x; then
4273 CC=""
4274 else
4275 case $cross_compiling:$ac_tool_warned in
4276 yes:)
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4278 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4279 ac_tool_warned=yes ;;
4280 esac
4281 CC=$ac_ct_CC
4282 fi
4283 fi
4284
4285 fi
4286
4287
4288 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4290 as_fn_error $? "no acceptable C compiler found in \$PATH
4291 See \`config.log' for more details" "$LINENO" 5; }
4292
4293 # Provide some information about the compiler.
4294 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4295 set X $ac_compile
4296 ac_compiler=$2
4297 for ac_option in --version -v -V -qversion; do
4298 { { ac_try="$ac_compiler $ac_option >&5"
4299 case "(($ac_try" in
4300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4301 *) ac_try_echo=$ac_try;;
4302 esac
4303 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4304 $as_echo "$ac_try_echo"; } >&5
4305 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4306 ac_status=$?
4307 if test -s conftest.err; then
4308 sed '10a\
4309 ... rest of stderr output deleted ...
4310 10q' conftest.err >conftest.er1
4311 cat conftest.er1 >&5
4312 fi
4313 rm -f conftest.er1 conftest.err
4314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4315 test $ac_status = 0; }
4316 done
4317
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4319 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4320 if ${ac_cv_c_compiler_gnu+:} false; then :
4321 $as_echo_n "(cached) " >&6
4322 else
4323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4324 /* end confdefs.h. */
4325
4326 int
4327 main ()
4328 {
4329 #ifndef __GNUC__
4330 choke me
4331 #endif
4332
4333 ;
4334 return 0;
4335 }
4336 _ACEOF
4337 if ac_fn_c_try_compile "$LINENO"; then :
4338 ac_compiler_gnu=yes
4339 else
4340 ac_compiler_gnu=no
4341 fi
4342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4343 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4344
4345 fi
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4347 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4348 if test $ac_compiler_gnu = yes; then
4349 GCC=yes
4350 else
4351 GCC=
4352 fi
4353 ac_test_CFLAGS=${CFLAGS+set}
4354 ac_save_CFLAGS=$CFLAGS
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4356 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4357 if ${ac_cv_prog_cc_g+:} false; then :
4358 $as_echo_n "(cached) " >&6
4359 else
4360 ac_save_c_werror_flag=$ac_c_werror_flag
4361 ac_c_werror_flag=yes
4362 ac_cv_prog_cc_g=no
4363 CFLAGS="-g"
4364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4365 /* end confdefs.h. */
4366
4367 int
4368 main ()
4369 {
4370
4371 ;
4372 return 0;
4373 }
4374 _ACEOF
4375 if ac_fn_c_try_compile "$LINENO"; then :
4376 ac_cv_prog_cc_g=yes
4377 else
4378 CFLAGS=""
4379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4380 /* end confdefs.h. */
4381
4382 int
4383 main ()
4384 {
4385
4386 ;
4387 return 0;
4388 }
4389 _ACEOF
4390 if ac_fn_c_try_compile "$LINENO"; then :
4391
4392 else
4393 ac_c_werror_flag=$ac_save_c_werror_flag
4394 CFLAGS="-g"
4395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4396 /* end confdefs.h. */
4397
4398 int
4399 main ()
4400 {
4401
4402 ;
4403 return 0;
4404 }
4405 _ACEOF
4406 if ac_fn_c_try_compile "$LINENO"; then :
4407 ac_cv_prog_cc_g=yes
4408 fi
4409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4410 fi
4411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4412 fi
4413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4414 ac_c_werror_flag=$ac_save_c_werror_flag
4415 fi
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4417 $as_echo "$ac_cv_prog_cc_g" >&6; }
4418 if test "$ac_test_CFLAGS" = set; then
4419 CFLAGS=$ac_save_CFLAGS
4420 elif test $ac_cv_prog_cc_g = yes; then
4421 if test "$GCC" = yes; then
4422 CFLAGS="-g -O2"
4423 else
4424 CFLAGS="-g"
4425 fi
4426 else
4427 if test "$GCC" = yes; then
4428 CFLAGS="-O2"
4429 else
4430 CFLAGS=
4431 fi
4432 fi
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4434 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4435 if ${ac_cv_prog_cc_c89+:} false; then :
4436 $as_echo_n "(cached) " >&6
4437 else
4438 ac_cv_prog_cc_c89=no
4439 ac_save_CC=$CC
4440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4441 /* end confdefs.h. */
4442 #include <stdarg.h>
4443 #include <stdio.h>
4444 struct stat;
4445 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4446 struct buf { int x; };
4447 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4448 static char *e (p, i)
4449 char **p;
4450 int i;
4451 {
4452 return p[i];
4453 }
4454 static char *f (char * (*g) (char **, int), char **p, ...)
4455 {
4456 char *s;
4457 va_list v;
4458 va_start (v,p);
4459 s = g (p, va_arg (v,int));
4460 va_end (v);
4461 return s;
4462 }
4463
4464 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4465 function prototypes and stuff, but not '\xHH' hex character constants.
4466 These don't provoke an error unfortunately, instead are silently treated
4467 as 'x'. The following induces an error, until -std is added to get
4468 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4469 array size at least. It's necessary to write '\x00'==0 to get something
4470 that's true only with -std. */
4471 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4472
4473 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4474 inside strings and character constants. */
4475 #define FOO(x) 'x'
4476 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4477
4478 int test (int i, double x);
4479 struct s1 {int (*f) (int a);};
4480 struct s2 {int (*f) (double a);};
4481 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4482 int argc;
4483 char **argv;
4484 int
4485 main ()
4486 {
4487 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4488 ;
4489 return 0;
4490 }
4491 _ACEOF
4492 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4493 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4494 do
4495 CC="$ac_save_CC $ac_arg"
4496 if ac_fn_c_try_compile "$LINENO"; then :
4497 ac_cv_prog_cc_c89=$ac_arg
4498 fi
4499 rm -f core conftest.err conftest.$ac_objext
4500 test "x$ac_cv_prog_cc_c89" != "xno" && break
4501 done
4502 rm -f conftest.$ac_ext
4503 CC=$ac_save_CC
4504
4505 fi
4506 # AC_CACHE_VAL
4507 case "x$ac_cv_prog_cc_c89" in
4508 x)
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4510 $as_echo "none needed" >&6; } ;;
4511 xno)
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4513 $as_echo "unsupported" >&6; } ;;
4514 *)
4515 CC="$CC $ac_cv_prog_cc_c89"
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4517 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4518 esac
4519 if test "x$ac_cv_prog_cc_c89" != xno; then :
4520
4521 fi
4522
4523 ac_ext=c
4524 ac_cpp='$CPP $CPPFLAGS'
4525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4528
4529 ac_ext=c
4530 ac_cpp='$CPP $CPPFLAGS'
4531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4535 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4536 if ${am_cv_prog_cc_c_o+:} false; then :
4537 $as_echo_n "(cached) " >&6
4538 else
4539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4540 /* end confdefs.h. */
4541
4542 int
4543 main ()
4544 {
4545
4546 ;
4547 return 0;
4548 }
4549 _ACEOF
4550 # Make sure it works both with $CC and with simple cc.
4551 # Following AC_PROG_CC_C_O, we do the test twice because some
4552 # compilers refuse to overwrite an existing .o file with -o,
4553 # though they will create one.
4554 am_cv_prog_cc_c_o=yes
4555 for am_i in 1 2; do
4556 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4557 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4558 ac_status=$?
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); } \
4561 && test -f conftest2.$ac_objext; then
4562 : OK
4563 else
4564 am_cv_prog_cc_c_o=no
4565 break
4566 fi
4567 done
4568 rm -f core conftest*
4569 unset am_i
4570 fi
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4572 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4573 if test "$am_cv_prog_cc_c_o" != yes; then
4574 # Losing compiler, so override with the script.
4575 # FIXME: It is wrong to rewrite CC.
4576 # But if we don't then we get into trouble of one sort or another.
4577 # A longer-term fix would be to have automake use am__CC in this case,
4578 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4579 CC="$am_aux_dir/compile $CC"
4580 fi
4581 ac_ext=c
4582 ac_cpp='$CPP $CPPFLAGS'
4583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4586
4587
4588 ac_ext=d
4589 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
4590 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4591 ac_compiler_gnu=yes
4592 if test -n "$ac_tool_prefix"; then
4593 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
4594 set dummy ${ac_tool_prefix}gdc; ac_word=$2
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4596 $as_echo_n "checking for $ac_word... " >&6; }
4597 if ${ac_cv_prog_GDC+:} false; then :
4598 $as_echo_n "(cached) " >&6
4599 else
4600 if test -n "$GDC"; then
4601 ac_cv_prog_GDC="$GDC" # Let the user override the test.
4602 else
4603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604 for as_dir in $PATH
4605 do
4606 IFS=$as_save_IFS
4607 test -z "$as_dir" && as_dir=.
4608 for ac_exec_ext in '' $ac_executable_extensions; do
4609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4610 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
4611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4612 break 2
4613 fi
4614 done
4615 done
4616 IFS=$as_save_IFS
4617
4618 fi
4619 fi
4620 GDC=$ac_cv_prog_GDC
4621 if test -n "$GDC"; then
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
4623 $as_echo "$GDC" >&6; }
4624 else
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4626 $as_echo "no" >&6; }
4627 fi
4628
4629
4630 fi
4631 if test -z "$ac_cv_prog_GDC"; then
4632 ac_ct_GDC=$GDC
4633 # Extract the first word of "gdc", so it can be a program name with args.
4634 set dummy gdc; ac_word=$2
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4636 $as_echo_n "checking for $ac_word... " >&6; }
4637 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
4638 $as_echo_n "(cached) " >&6
4639 else
4640 if test -n "$ac_ct_GDC"; then
4641 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
4642 else
4643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644 for as_dir in $PATH
4645 do
4646 IFS=$as_save_IFS
4647 test -z "$as_dir" && as_dir=.
4648 for ac_exec_ext in '' $ac_executable_extensions; do
4649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4650 ac_cv_prog_ac_ct_GDC="gdc"
4651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4652 break 2
4653 fi
4654 done
4655 done
4656 IFS=$as_save_IFS
4657
4658 fi
4659 fi
4660 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
4661 if test -n "$ac_ct_GDC"; then
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
4663 $as_echo "$ac_ct_GDC" >&6; }
4664 else
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4666 $as_echo "no" >&6; }
4667 fi
4668
4669 if test "x$ac_ct_GDC" = x; then
4670 GDC=""
4671 else
4672 case $cross_compiling:$ac_tool_warned in
4673 yes:)
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4675 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4676 ac_tool_warned=yes ;;
4677 esac
4678 GDC=$ac_ct_GDC
4679 fi
4680 else
4681 GDC="$ac_cv_prog_GDC"
4682 fi
4683
4684 if test -z "$GDC"; then
4685 if test -n "$ac_tool_prefix"; then
4686 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
4687 set dummy ${ac_tool_prefix}gdc; ac_word=$2
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4689 $as_echo_n "checking for $ac_word... " >&6; }
4690 if ${ac_cv_prog_GDC+:} false; then :
4691 $as_echo_n "(cached) " >&6
4692 else
4693 if test -n "$GDC"; then
4694 ac_cv_prog_GDC="$GDC" # Let the user override the test.
4695 else
4696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697 for as_dir in $PATH
4698 do
4699 IFS=$as_save_IFS
4700 test -z "$as_dir" && as_dir=.
4701 for ac_exec_ext in '' $ac_executable_extensions; do
4702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4703 ac_cv_prog_GDC="$ac_tool_prefix}gdc"
4704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4705 break 2
4706 fi
4707 done
4708 done
4709 IFS=$as_save_IFS
4710
4711 fi
4712 fi
4713 GDC=$ac_cv_prog_GDC
4714 if test -n "$GDC"; then
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
4716 $as_echo "$GDC" >&6; }
4717 else
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4719 $as_echo "no" >&6; }
4720 fi
4721
4722
4723 fi
4724 fi
4725 if test -z "$GDC"; then
4726 # Extract the first word of "gdc", so it can be a program name with args.
4727 set dummy gdc; ac_word=$2
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4729 $as_echo_n "checking for $ac_word... " >&6; }
4730 if ${ac_cv_prog_GDC+:} false; then :
4731 $as_echo_n "(cached) " >&6
4732 else
4733 if test -n "$GDC"; then
4734 ac_cv_prog_GDC="$GDC" # Let the user override the test.
4735 else
4736 ac_prog_rejected=no
4737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738 for as_dir in $PATH
4739 do
4740 IFS=$as_save_IFS
4741 test -z "$as_dir" && as_dir=.
4742 for ac_exec_ext in '' $ac_executable_extensions; do
4743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4744 if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
4745 ac_prog_rejected=yes
4746 continue
4747 fi
4748 ac_cv_prog_GDC="gdc"
4749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4750 break 2
4751 fi
4752 done
4753 done
4754 IFS=$as_save_IFS
4755
4756 if test $ac_prog_rejected = yes; then
4757 # We found a bogon in the path, so make sure we never use it.
4758 set dummy $ac_cv_prog_GDC
4759 shift
4760 if test $# != 0; then
4761 # We chose a different compiler from the bogus one.
4762 # However, it has the same basename, so the bogon will be chosen
4763 # first if we set GDC to just the basename; use the full file name.
4764 shift
4765 ac_cv_prog_GDC="$as_dir/$ac_word${1+' '}$@"
4766 fi
4767 fi
4768 fi
4769 fi
4770 GDC=$ac_cv_prog_GDC
4771 if test -n "$GDC"; then
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
4773 $as_echo "$GDC" >&6; }
4774 else
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4776 $as_echo "no" >&6; }
4777 fi
4778
4779
4780 fi
4781
4782
4783 # Provide some information about the compiler.
4784 $as_echo "$as_me:${as_lineno-$LINENO}: checking for D compiler version" >&5
4785 set X $ac_compile
4786 ac_compiler=$2
4787 { { ac_try="$ac_compiler --version >&5"
4788 case "(($ac_try" in
4789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4790 *) ac_try_echo=$ac_try;;
4791 esac
4792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4793 $as_echo "$ac_try_echo"; } >&5
4794 (eval "$ac_compiler --version >&5") 2>conftest.err
4795 ac_status=$?
4796 if test -s conftest.err; then
4797 sed '10a\
4798 ... rest of stderr output deleted ...
4799 10q' conftest.err >conftest.er1
4800 cat conftest.er1 >&5
4801 fi
4802 rm -f conftest.er1 conftest.err
4803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4804 test $ac_status = 0; }
4805 ac_ext=c
4806 ac_cpp='$CPP $CPPFLAGS'
4807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4810
4811
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for absolute libphobos source path" >&5
4813 $as_echo_n "checking for absolute libphobos source path... " >&6; }
4814 if ${phobos_cv_abs_srcdir+:} false; then :
4815 $as_echo_n "(cached) " >&6
4816 else
4817 phobos_cv_abs_srcdir=`cd $srcdir && pwd`
4818 fi
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $phobos_cv_abs_srcdir" >&5
4820 $as_echo "$phobos_cv_abs_srcdir" >&6; }
4821 if test -d "$phobos_cv_abs_srcdir"; then :
4822
4823 else
4824 as_fn_error $? "can't find absolute libphobos source path" "$LINENO" 5
4825 fi
4826
4827
4828
4829
4830 gdc_save_DFLAGS=$GDCFLAGS
4831 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
4832
4833 ac_ext=d
4834 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
4835 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4836 ac_compiler_gnu=yes
4837
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If $GDC can compile D sources" >&5
4839 $as_echo_n "checking If $GDC can compile D sources... " >&6; }
4840 cat > conftest.$ac_ext <<_ACEOF
4841 module mod;
4842
4843
4844 extern(C) int main() {
4845 return 0;
4846 }
4847 _ACEOF
4848 if ac_fn_d_try_compile "$LINENO"; then :
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4850 $as_echo "yes" >&6; }
4851 else
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4853 $as_echo "no" >&6; }
4854 as_fn_error $? "can't compile D sources!" "$LINENO" 5
4855 fi
4856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4857 ac_ext=c
4858 ac_cpp='$CPP $CPPFLAGS'
4859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4862
4863
4864 GDCFLAGS=$gdc_save_DFLAGS
4865
4866
4867
4868
4869
4870
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4872 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4873 # Check whether --enable-maintainer-mode was given.
4874 if test "${enable_maintainer_mode+set}" = set; then :
4875 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4876 else
4877 USE_MAINTAINER_MODE=no
4878 fi
4879
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4881 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4882 if test $USE_MAINTAINER_MODE = yes; then
4883 MAINTAINER_MODE_TRUE=
4884 MAINTAINER_MODE_FALSE='#'
4885 else
4886 MAINTAINER_MODE_TRUE='#'
4887 MAINTAINER_MODE_FALSE=
4888 fi
4889
4890 MAINT=$MAINTAINER_MODE_TRUE
4891
4892
4893 if test -n "$ac_tool_prefix"; then
4894 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4895 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4897 $as_echo_n "checking for $ac_word... " >&6; }
4898 if ${ac_cv_prog_RANLIB+:} false; then :
4899 $as_echo_n "(cached) " >&6
4900 else
4901 if test -n "$RANLIB"; then
4902 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4903 else
4904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4905 for as_dir in $PATH
4906 do
4907 IFS=$as_save_IFS
4908 test -z "$as_dir" && as_dir=.
4909 for ac_exec_ext in '' $ac_executable_extensions; do
4910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4911 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4913 break 2
4914 fi
4915 done
4916 done
4917 IFS=$as_save_IFS
4918
4919 fi
4920 fi
4921 RANLIB=$ac_cv_prog_RANLIB
4922 if test -n "$RANLIB"; then
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4924 $as_echo "$RANLIB" >&6; }
4925 else
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4927 $as_echo "no" >&6; }
4928 fi
4929
4930
4931 fi
4932 if test -z "$ac_cv_prog_RANLIB"; then
4933 ac_ct_RANLIB=$RANLIB
4934 # Extract the first word of "ranlib", so it can be a program name with args.
4935 set dummy ranlib; ac_word=$2
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4937 $as_echo_n "checking for $ac_word... " >&6; }
4938 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4939 $as_echo_n "(cached) " >&6
4940 else
4941 if test -n "$ac_ct_RANLIB"; then
4942 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4943 else
4944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4945 for as_dir in $PATH
4946 do
4947 IFS=$as_save_IFS
4948 test -z "$as_dir" && as_dir=.
4949 for ac_exec_ext in '' $ac_executable_extensions; do
4950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4951 ac_cv_prog_ac_ct_RANLIB="ranlib"
4952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4953 break 2
4954 fi
4955 done
4956 done
4957 IFS=$as_save_IFS
4958
4959 fi
4960 fi
4961 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4962 if test -n "$ac_ct_RANLIB"; then
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4964 $as_echo "$ac_ct_RANLIB" >&6; }
4965 else
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4967 $as_echo "no" >&6; }
4968 fi
4969
4970 if test "x$ac_ct_RANLIB" = x; then
4971 RANLIB=":"
4972 else
4973 case $cross_compiling:$ac_tool_warned in
4974 yes:)
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4976 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4977 ac_tool_warned=yes ;;
4978 esac
4979 RANLIB=$ac_ct_RANLIB
4980 fi
4981 else
4982 RANLIB="$ac_cv_prog_RANLIB"
4983 fi
4984
4985
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4987 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4988 set x ${MAKE-make}
4989 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4990 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4991 $as_echo_n "(cached) " >&6
4992 else
4993 cat >conftest.make <<\_ACEOF
4994 SHELL = /bin/sh
4995 all:
4996 @echo '@@@%%%=$(MAKE)=@@@%%%'
4997 _ACEOF
4998 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4999 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5000 *@@@%%%=?*=@@@%%%*)
5001 eval ac_cv_prog_make_${ac_make}_set=yes;;
5002 *)
5003 eval ac_cv_prog_make_${ac_make}_set=no;;
5004 esac
5005 rm -f conftest.make
5006 fi
5007 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5009 $as_echo "yes" >&6; }
5010 SET_MAKE=
5011 else
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5013 $as_echo "no" >&6; }
5014 SET_MAKE="MAKE=${MAKE-make}"
5015 fi
5016
5017
5018 # This should be inherited in the recursive make, but ensure it is defined.
5019 test "$AR" || AR=ar
5020
5021
5022 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
5023
5024
5025
5026 # Enable libtool
5027 case `pwd` in
5028 *\ * | *\ *)
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5030 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5031 esac
5032
5033
5034
5035 macro_version='2.2.7a'
5036 macro_revision='1.3134'
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050 ltmain="$ac_aux_dir/ltmain.sh"
5051
5052 # Backslashify metacharacters that are still active within
5053 # double-quoted strings.
5054 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5055
5056 # Same as above, but do not quote variable references.
5057 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5058
5059 # Sed substitution to delay expansion of an escaped shell variable in a
5060 # double_quote_subst'ed string.
5061 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5062
5063 # Sed substitution to delay expansion of an escaped single quote.
5064 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5065
5066 # Sed substitution to avoid accidental globbing in evaled expressions
5067 no_glob_subst='s/\*/\\\*/g'
5068
5069 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5070 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5071 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5072
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5074 $as_echo_n "checking how to print strings... " >&6; }
5075 # Test print first, because it will be a builtin if present.
5076 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5077 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5078 ECHO='print -r --'
5079 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5080 ECHO='printf %s\n'
5081 else
5082 # Use this function as a fallback that always works.
5083 func_fallback_echo ()
5084 {
5085 eval 'cat <<_LTECHO_EOF
5086 $1
5087 _LTECHO_EOF'
5088 }
5089 ECHO='func_fallback_echo'
5090 fi
5091
5092 # func_echo_all arg...
5093 # Invoke $ECHO with all args, space-separated.
5094 func_echo_all ()
5095 {
5096 $ECHO ""
5097 }
5098
5099 case "$ECHO" in
5100 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5101 $as_echo "printf" >&6; } ;;
5102 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5103 $as_echo "print -r" >&6; } ;;
5104 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5105 $as_echo "cat" >&6; } ;;
5106 esac
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5122 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5123 if ${ac_cv_path_SED+:} false; then :
5124 $as_echo_n "(cached) " >&6
5125 else
5126 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5127 for ac_i in 1 2 3 4 5 6 7; do
5128 ac_script="$ac_script$as_nl$ac_script"
5129 done
5130 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5131 { ac_script=; unset ac_script;}
5132 if test -z "$SED"; then
5133 ac_path_SED_found=false
5134 # Loop through the user's path and test for each of PROGNAME-LIST
5135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5136 for as_dir in $PATH
5137 do
5138 IFS=$as_save_IFS
5139 test -z "$as_dir" && as_dir=.
5140 for ac_prog in sed gsed; do
5141 for ac_exec_ext in '' $ac_executable_extensions; do
5142 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5143 as_fn_executable_p "$ac_path_SED" || continue
5144 # Check for GNU ac_path_SED and select it if it is found.
5145 # Check for GNU $ac_path_SED
5146 case `"$ac_path_SED" --version 2>&1` in
5147 *GNU*)
5148 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5149 *)
5150 ac_count=0
5151 $as_echo_n 0123456789 >"conftest.in"
5152 while :
5153 do
5154 cat "conftest.in" "conftest.in" >"conftest.tmp"
5155 mv "conftest.tmp" "conftest.in"
5156 cp "conftest.in" "conftest.nl"
5157 $as_echo '' >> "conftest.nl"
5158 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5159 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5160 as_fn_arith $ac_count + 1 && ac_count=$as_val
5161 if test $ac_count -gt ${ac_path_SED_max-0}; then
5162 # Best one so far, save it but keep looking for a better one
5163 ac_cv_path_SED="$ac_path_SED"
5164 ac_path_SED_max=$ac_count
5165 fi
5166 # 10*(2^10) chars as input seems more than enough
5167 test $ac_count -gt 10 && break
5168 done
5169 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5170 esac
5171
5172 $ac_path_SED_found && break 3
5173 done
5174 done
5175 done
5176 IFS=$as_save_IFS
5177 if test -z "$ac_cv_path_SED"; then
5178 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5179 fi
5180 else
5181 ac_cv_path_SED=$SED
5182 fi
5183
5184 fi
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5186 $as_echo "$ac_cv_path_SED" >&6; }
5187 SED="$ac_cv_path_SED"
5188 rm -f conftest.sed
5189
5190 test -z "$SED" && SED=sed
5191 Xsed="$SED -e 1s/^X//"
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5204 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5205 if ${ac_cv_path_GREP+:} false; then :
5206 $as_echo_n "(cached) " >&6
5207 else
5208 if test -z "$GREP"; then
5209 ac_path_GREP_found=false
5210 # Loop through the user's path and test for each of PROGNAME-LIST
5211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5212 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5213 do
5214 IFS=$as_save_IFS
5215 test -z "$as_dir" && as_dir=.
5216 for ac_prog in grep ggrep; do
5217 for ac_exec_ext in '' $ac_executable_extensions; do
5218 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5219 as_fn_executable_p "$ac_path_GREP" || continue
5220 # Check for GNU ac_path_GREP and select it if it is found.
5221 # Check for GNU $ac_path_GREP
5222 case `"$ac_path_GREP" --version 2>&1` in
5223 *GNU*)
5224 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5225 *)
5226 ac_count=0
5227 $as_echo_n 0123456789 >"conftest.in"
5228 while :
5229 do
5230 cat "conftest.in" "conftest.in" >"conftest.tmp"
5231 mv "conftest.tmp" "conftest.in"
5232 cp "conftest.in" "conftest.nl"
5233 $as_echo 'GREP' >> "conftest.nl"
5234 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5235 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5236 as_fn_arith $ac_count + 1 && ac_count=$as_val
5237 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5238 # Best one so far, save it but keep looking for a better one
5239 ac_cv_path_GREP="$ac_path_GREP"
5240 ac_path_GREP_max=$ac_count
5241 fi
5242 # 10*(2^10) chars as input seems more than enough
5243 test $ac_count -gt 10 && break
5244 done
5245 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5246 esac
5247
5248 $ac_path_GREP_found && break 3
5249 done
5250 done
5251 done
5252 IFS=$as_save_IFS
5253 if test -z "$ac_cv_path_GREP"; then
5254 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5255 fi
5256 else
5257 ac_cv_path_GREP=$GREP
5258 fi
5259
5260 fi
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5262 $as_echo "$ac_cv_path_GREP" >&6; }
5263 GREP="$ac_cv_path_GREP"
5264
5265
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5267 $as_echo_n "checking for egrep... " >&6; }
5268 if ${ac_cv_path_EGREP+:} false; then :
5269 $as_echo_n "(cached) " >&6
5270 else
5271 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5272 then ac_cv_path_EGREP="$GREP -E"
5273 else
5274 if test -z "$EGREP"; then
5275 ac_path_EGREP_found=false
5276 # Loop through the user's path and test for each of PROGNAME-LIST
5277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5279 do
5280 IFS=$as_save_IFS
5281 test -z "$as_dir" && as_dir=.
5282 for ac_prog in egrep; do
5283 for ac_exec_ext in '' $ac_executable_extensions; do
5284 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5285 as_fn_executable_p "$ac_path_EGREP" || continue
5286 # Check for GNU ac_path_EGREP and select it if it is found.
5287 # Check for GNU $ac_path_EGREP
5288 case `"$ac_path_EGREP" --version 2>&1` in
5289 *GNU*)
5290 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5291 *)
5292 ac_count=0
5293 $as_echo_n 0123456789 >"conftest.in"
5294 while :
5295 do
5296 cat "conftest.in" "conftest.in" >"conftest.tmp"
5297 mv "conftest.tmp" "conftest.in"
5298 cp "conftest.in" "conftest.nl"
5299 $as_echo 'EGREP' >> "conftest.nl"
5300 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5301 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5302 as_fn_arith $ac_count + 1 && ac_count=$as_val
5303 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5304 # Best one so far, save it but keep looking for a better one
5305 ac_cv_path_EGREP="$ac_path_EGREP"
5306 ac_path_EGREP_max=$ac_count
5307 fi
5308 # 10*(2^10) chars as input seems more than enough
5309 test $ac_count -gt 10 && break
5310 done
5311 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5312 esac
5313
5314 $ac_path_EGREP_found && break 3
5315 done
5316 done
5317 done
5318 IFS=$as_save_IFS
5319 if test -z "$ac_cv_path_EGREP"; then
5320 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5321 fi
5322 else
5323 ac_cv_path_EGREP=$EGREP
5324 fi
5325
5326 fi
5327 fi
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5329 $as_echo "$ac_cv_path_EGREP" >&6; }
5330 EGREP="$ac_cv_path_EGREP"
5331
5332
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5334 $as_echo_n "checking for fgrep... " >&6; }
5335 if ${ac_cv_path_FGREP+:} false; then :
5336 $as_echo_n "(cached) " >&6
5337 else
5338 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5339 then ac_cv_path_FGREP="$GREP -F"
5340 else
5341 if test -z "$FGREP"; then
5342 ac_path_FGREP_found=false
5343 # Loop through the user's path and test for each of PROGNAME-LIST
5344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5345 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5346 do
5347 IFS=$as_save_IFS
5348 test -z "$as_dir" && as_dir=.
5349 for ac_prog in fgrep; do
5350 for ac_exec_ext in '' $ac_executable_extensions; do
5351 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5352 as_fn_executable_p "$ac_path_FGREP" || continue
5353 # Check for GNU ac_path_FGREP and select it if it is found.
5354 # Check for GNU $ac_path_FGREP
5355 case `"$ac_path_FGREP" --version 2>&1` in
5356 *GNU*)
5357 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5358 *)
5359 ac_count=0
5360 $as_echo_n 0123456789 >"conftest.in"
5361 while :
5362 do
5363 cat "conftest.in" "conftest.in" >"conftest.tmp"
5364 mv "conftest.tmp" "conftest.in"
5365 cp "conftest.in" "conftest.nl"
5366 $as_echo 'FGREP' >> "conftest.nl"
5367 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5368 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5369 as_fn_arith $ac_count + 1 && ac_count=$as_val
5370 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5371 # Best one so far, save it but keep looking for a better one
5372 ac_cv_path_FGREP="$ac_path_FGREP"
5373 ac_path_FGREP_max=$ac_count
5374 fi
5375 # 10*(2^10) chars as input seems more than enough
5376 test $ac_count -gt 10 && break
5377 done
5378 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5379 esac
5380
5381 $ac_path_FGREP_found && break 3
5382 done
5383 done
5384 done
5385 IFS=$as_save_IFS
5386 if test -z "$ac_cv_path_FGREP"; then
5387 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5388 fi
5389 else
5390 ac_cv_path_FGREP=$FGREP
5391 fi
5392
5393 fi
5394 fi
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5396 $as_echo "$ac_cv_path_FGREP" >&6; }
5397 FGREP="$ac_cv_path_FGREP"
5398
5399
5400 test -z "$GREP" && GREP=grep
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420 # Check whether --with-gnu-ld was given.
5421 if test "${with_gnu_ld+set}" = set; then :
5422 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5423 else
5424 with_gnu_ld=no
5425 fi
5426
5427 ac_prog=ld
5428 if test "$GCC" = yes; then
5429 # Check if gcc -print-prog-name=ld gives a path.
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5431 $as_echo_n "checking for ld used by $CC... " >&6; }
5432 case $host in
5433 *-*-mingw*)
5434 # gcc leaves a trailing carriage return which upsets mingw
5435 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5436 *)
5437 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5438 esac
5439 case $ac_prog in
5440 # Accept absolute paths.
5441 [\\/]* | ?:[\\/]*)
5442 re_direlt='/[^/][^/]*/\.\./'
5443 # Canonicalize the pathname of ld
5444 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5445 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5446 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5447 done
5448 test -z "$LD" && LD="$ac_prog"
5449 ;;
5450 "")
5451 # If it fails, then pretend we aren't using GCC.
5452 ac_prog=ld
5453 ;;
5454 *)
5455 # If it is relative, then search for the first ld in PATH.
5456 with_gnu_ld=unknown
5457 ;;
5458 esac
5459 elif test "$with_gnu_ld" = yes; then
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5461 $as_echo_n "checking for GNU ld... " >&6; }
5462 else
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5464 $as_echo_n "checking for non-GNU ld... " >&6; }
5465 fi
5466 if ${lt_cv_path_LD+:} false; then :
5467 $as_echo_n "(cached) " >&6
5468 else
5469 if test -z "$LD"; then
5470 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5471 for ac_dir in $PATH; do
5472 IFS="$lt_save_ifs"
5473 test -z "$ac_dir" && ac_dir=.
5474 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5475 lt_cv_path_LD="$ac_dir/$ac_prog"
5476 # Check to see if the program is GNU ld. I'd rather use --version,
5477 # but apparently some variants of GNU ld only accept -v.
5478 # Break only if it was the GNU/non-GNU ld that we prefer.
5479 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5480 *GNU* | *'with BFD'*)
5481 test "$with_gnu_ld" != no && break
5482 ;;
5483 *)
5484 test "$with_gnu_ld" != yes && break
5485 ;;
5486 esac
5487 fi
5488 done
5489 IFS="$lt_save_ifs"
5490 else
5491 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5492 fi
5493 fi
5494
5495 LD="$lt_cv_path_LD"
5496 if test -n "$LD"; then
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5498 $as_echo "$LD" >&6; }
5499 else
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5501 $as_echo "no" >&6; }
5502 fi
5503 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5505 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5506 if ${lt_cv_prog_gnu_ld+:} false; then :
5507 $as_echo_n "(cached) " >&6
5508 else
5509 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5510 case `$LD -v 2>&1 </dev/null` in
5511 *GNU* | *'with BFD'*)
5512 lt_cv_prog_gnu_ld=yes
5513 ;;
5514 *)
5515 lt_cv_prog_gnu_ld=no
5516 ;;
5517 esac
5518 fi
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5520 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5521 with_gnu_ld=$lt_cv_prog_gnu_ld
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5532 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5533 if ${lt_cv_path_NM+:} false; then :
5534 $as_echo_n "(cached) " >&6
5535 else
5536 if test -n "$NM"; then
5537 # Let the user override the test.
5538 lt_cv_path_NM="$NM"
5539 else
5540 lt_nm_to_check="${ac_tool_prefix}nm"
5541 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5542 lt_nm_to_check="$lt_nm_to_check nm"
5543 fi
5544 for lt_tmp_nm in $lt_nm_to_check; do
5545 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5546 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5547 IFS="$lt_save_ifs"
5548 test -z "$ac_dir" && ac_dir=.
5549 tmp_nm="$ac_dir/$lt_tmp_nm"
5550 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5551 # Check to see if the nm accepts a BSD-compat flag.
5552 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5553 # nm: unknown option "B" ignored
5554 # Tru64's nm complains that /dev/null is an invalid object file
5555 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5556 */dev/null* | *'Invalid file or object type'*)
5557 lt_cv_path_NM="$tmp_nm -B"
5558 break
5559 ;;
5560 *)
5561 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5562 */dev/null*)
5563 lt_cv_path_NM="$tmp_nm -p"
5564 break
5565 ;;
5566 *)
5567 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5568 continue # so that we can try to find one that supports BSD flags
5569 ;;
5570 esac
5571 ;;
5572 esac
5573 fi
5574 done
5575 IFS="$lt_save_ifs"
5576 done
5577 : ${lt_cv_path_NM=no}
5578 fi
5579 fi
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5581 $as_echo "$lt_cv_path_NM" >&6; }
5582 if test "$lt_cv_path_NM" != "no"; then
5583 NM="$lt_cv_path_NM"
5584 else
5585 # Didn't find any BSD compatible name lister, look for dumpbin.
5586 if test -n "$DUMPBIN"; then :
5587 # Let the user override the test.
5588 else
5589 if test -n "$ac_tool_prefix"; then
5590 for ac_prog in dumpbin "link -dump"
5591 do
5592 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5593 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5595 $as_echo_n "checking for $ac_word... " >&6; }
5596 if ${ac_cv_prog_DUMPBIN+:} false; then :
5597 $as_echo_n "(cached) " >&6
5598 else
5599 if test -n "$DUMPBIN"; then
5600 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5601 else
5602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5603 for as_dir in $PATH
5604 do
5605 IFS=$as_save_IFS
5606 test -z "$as_dir" && as_dir=.
5607 for ac_exec_ext in '' $ac_executable_extensions; do
5608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5609 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5611 break 2
5612 fi
5613 done
5614 done
5615 IFS=$as_save_IFS
5616
5617 fi
5618 fi
5619 DUMPBIN=$ac_cv_prog_DUMPBIN
5620 if test -n "$DUMPBIN"; then
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5622 $as_echo "$DUMPBIN" >&6; }
5623 else
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5625 $as_echo "no" >&6; }
5626 fi
5627
5628
5629 test -n "$DUMPBIN" && break
5630 done
5631 fi
5632 if test -z "$DUMPBIN"; then
5633 ac_ct_DUMPBIN=$DUMPBIN
5634 for ac_prog in dumpbin "link -dump"
5635 do
5636 # Extract the first word of "$ac_prog", so it can be a program name with args.
5637 set dummy $ac_prog; ac_word=$2
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5639 $as_echo_n "checking for $ac_word... " >&6; }
5640 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5641 $as_echo_n "(cached) " >&6
5642 else
5643 if test -n "$ac_ct_DUMPBIN"; then
5644 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5645 else
5646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5647 for as_dir in $PATH
5648 do
5649 IFS=$as_save_IFS
5650 test -z "$as_dir" && as_dir=.
5651 for ac_exec_ext in '' $ac_executable_extensions; do
5652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5653 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5655 break 2
5656 fi
5657 done
5658 done
5659 IFS=$as_save_IFS
5660
5661 fi
5662 fi
5663 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5664 if test -n "$ac_ct_DUMPBIN"; then
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5666 $as_echo "$ac_ct_DUMPBIN" >&6; }
5667 else
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5669 $as_echo "no" >&6; }
5670 fi
5671
5672
5673 test -n "$ac_ct_DUMPBIN" && break
5674 done
5675
5676 if test "x$ac_ct_DUMPBIN" = x; then
5677 DUMPBIN=":"
5678 else
5679 case $cross_compiling:$ac_tool_warned in
5680 yes:)
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5682 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5683 ac_tool_warned=yes ;;
5684 esac
5685 DUMPBIN=$ac_ct_DUMPBIN
5686 fi
5687 fi
5688
5689 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5690 *COFF*)
5691 DUMPBIN="$DUMPBIN -symbols"
5692 ;;
5693 *)
5694 DUMPBIN=:
5695 ;;
5696 esac
5697 fi
5698
5699 if test "$DUMPBIN" != ":"; then
5700 NM="$DUMPBIN"
5701 fi
5702 fi
5703 test -z "$NM" && NM=nm
5704
5705
5706
5707
5708
5709
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5711 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5712 if ${lt_cv_nm_interface+:} false; then :
5713 $as_echo_n "(cached) " >&6
5714 else
5715 lt_cv_nm_interface="BSD nm"
5716 echo "int some_variable = 0;" > conftest.$ac_ext
5717 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5718 (eval "$ac_compile" 2>conftest.err)
5719 cat conftest.err >&5
5720 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5721 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5722 cat conftest.err >&5
5723 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5724 cat conftest.out >&5
5725 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5726 lt_cv_nm_interface="MS dumpbin"
5727 fi
5728 rm -f conftest*
5729 fi
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5731 $as_echo "$lt_cv_nm_interface" >&6; }
5732
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5734 $as_echo_n "checking whether ln -s works... " >&6; }
5735 LN_S=$as_ln_s
5736 if test "$LN_S" = "ln -s"; then
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5738 $as_echo "yes" >&6; }
5739 else
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5741 $as_echo "no, using $LN_S" >&6; }
5742 fi
5743
5744 # find the maximum length of command line arguments
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5746 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5747 if ${lt_cv_sys_max_cmd_len+:} false; then :
5748 $as_echo_n "(cached) " >&6
5749 else
5750 i=0
5751 teststring="ABCD"
5752
5753 case $build_os in
5754 msdosdjgpp*)
5755 # On DJGPP, this test can blow up pretty badly due to problems in libc
5756 # (any single argument exceeding 2000 bytes causes a buffer overrun
5757 # during glob expansion). Even if it were fixed, the result of this
5758 # check would be larger than it should be.
5759 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5760 ;;
5761
5762 gnu*)
5763 # Under GNU Hurd, this test is not required because there is
5764 # no limit to the length of command line arguments.
5765 # Libtool will interpret -1 as no limit whatsoever
5766 lt_cv_sys_max_cmd_len=-1;
5767 ;;
5768
5769 cygwin* | mingw* | cegcc*)
5770 # On Win9x/ME, this test blows up -- it succeeds, but takes
5771 # about 5 minutes as the teststring grows exponentially.
5772 # Worse, since 9x/ME are not pre-emptively multitasking,
5773 # you end up with a "frozen" computer, even though with patience
5774 # the test eventually succeeds (with a max line length of 256k).
5775 # Instead, let's just punt: use the minimum linelength reported by
5776 # all of the supported platforms: 8192 (on NT/2K/XP).
5777 lt_cv_sys_max_cmd_len=8192;
5778 ;;
5779
5780 mint*)
5781 # On MiNT this can take a long time and run out of memory.
5782 lt_cv_sys_max_cmd_len=8192;
5783 ;;
5784
5785 amigaos*)
5786 # On AmigaOS with pdksh, this test takes hours, literally.
5787 # So we just punt and use a minimum line length of 8192.
5788 lt_cv_sys_max_cmd_len=8192;
5789 ;;
5790
5791 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5792 # This has been around since 386BSD, at least. Likely further.
5793 if test -x /sbin/sysctl; then
5794 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5795 elif test -x /usr/sbin/sysctl; then
5796 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5797 else
5798 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5799 fi
5800 # And add a safety zone
5801 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5802 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5803 ;;
5804
5805 interix*)
5806 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5807 lt_cv_sys_max_cmd_len=196608
5808 ;;
5809
5810 osf*)
5811 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5812 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5813 # nice to cause kernel panics so lets avoid the loop below.
5814 # First set a reasonable default.
5815 lt_cv_sys_max_cmd_len=16384
5816 #
5817 if test -x /sbin/sysconfig; then
5818 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5819 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5820 esac
5821 fi
5822 ;;
5823 sco3.2v5*)
5824 lt_cv_sys_max_cmd_len=102400
5825 ;;
5826 sysv5* | sco5v6* | sysv4.2uw2*)
5827 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5828 if test -n "$kargmax"; then
5829 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5830 else
5831 lt_cv_sys_max_cmd_len=32768
5832 fi
5833 ;;
5834 *)
5835 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5836 if test -n "$lt_cv_sys_max_cmd_len"; then
5837 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5838 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5839 else
5840 # Make teststring a little bigger before we do anything with it.
5841 # a 1K string should be a reasonable start.
5842 for i in 1 2 3 4 5 6 7 8 ; do
5843 teststring=$teststring$teststring
5844 done
5845 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5846 # If test is not a shell built-in, we'll probably end up computing a
5847 # maximum length that is only half of the actual maximum length, but
5848 # we can't tell.
5849 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5850 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5851 test $i != 17 # 1/2 MB should be enough
5852 do
5853 i=`expr $i + 1`
5854 teststring=$teststring$teststring
5855 done
5856 # Only check the string length outside the loop.
5857 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5858 teststring=
5859 # Add a significant safety factor because C++ compilers can tack on
5860 # massive amounts of additional arguments before passing them to the
5861 # linker. It appears as though 1/2 is a usable value.
5862 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5863 fi
5864 ;;
5865 esac
5866
5867 fi
5868
5869 if test -n $lt_cv_sys_max_cmd_len ; then
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5871 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5872 else
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5874 $as_echo "none" >&6; }
5875 fi
5876 max_cmd_len=$lt_cv_sys_max_cmd_len
5877
5878
5879
5880
5881
5882
5883 : ${CP="cp -f"}
5884 : ${MV="mv -f"}
5885 : ${RM="rm -f"}
5886
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5888 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5889 # Try some XSI features
5890 xsi_shell=no
5891 ( _lt_dummy="a/b/c"
5892 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5893 = c,a/b,, \
5894 && eval 'test $(( 1 + 1 )) -eq 2 \
5895 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5896 && xsi_shell=yes
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5898 $as_echo "$xsi_shell" >&6; }
5899
5900
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5902 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5903 lt_shell_append=no
5904 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5905 >/dev/null 2>&1 \
5906 && lt_shell_append=yes
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5908 $as_echo "$lt_shell_append" >&6; }
5909
5910
5911 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5912 lt_unset=unset
5913 else
5914 lt_unset=false
5915 fi
5916
5917
5918
5919
5920
5921 # test EBCDIC or ASCII
5922 case `echo X|tr X '\101'` in
5923 A) # ASCII based system
5924 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5925 lt_SP2NL='tr \040 \012'
5926 lt_NL2SP='tr \015\012 \040\040'
5927 ;;
5928 *) # EBCDIC based system
5929 lt_SP2NL='tr \100 \n'
5930 lt_NL2SP='tr \r\n \100\100'
5931 ;;
5932 esac
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5943 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5944 if ${lt_cv_ld_reload_flag+:} false; then :
5945 $as_echo_n "(cached) " >&6
5946 else
5947 lt_cv_ld_reload_flag='-r'
5948 fi
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5950 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5951 reload_flag=$lt_cv_ld_reload_flag
5952 case $reload_flag in
5953 "" | " "*) ;;
5954 *) reload_flag=" $reload_flag" ;;
5955 esac
5956 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5957 case $host_os in
5958 darwin*)
5959 if test "$GCC" = yes; then
5960 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5961 else
5962 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5963 fi
5964 ;;
5965 esac
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975 if test -n "$ac_tool_prefix"; then
5976 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5977 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5979 $as_echo_n "checking for $ac_word... " >&6; }
5980 if ${ac_cv_prog_OBJDUMP+:} false; then :
5981 $as_echo_n "(cached) " >&6
5982 else
5983 if test -n "$OBJDUMP"; then
5984 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5985 else
5986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5987 for as_dir in $PATH
5988 do
5989 IFS=$as_save_IFS
5990 test -z "$as_dir" && as_dir=.
5991 for ac_exec_ext in '' $ac_executable_extensions; do
5992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5993 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5995 break 2
5996 fi
5997 done
5998 done
5999 IFS=$as_save_IFS
6000
6001 fi
6002 fi
6003 OBJDUMP=$ac_cv_prog_OBJDUMP
6004 if test -n "$OBJDUMP"; then
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6006 $as_echo "$OBJDUMP" >&6; }
6007 else
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6009 $as_echo "no" >&6; }
6010 fi
6011
6012
6013 fi
6014 if test -z "$ac_cv_prog_OBJDUMP"; then
6015 ac_ct_OBJDUMP=$OBJDUMP
6016 # Extract the first word of "objdump", so it can be a program name with args.
6017 set dummy objdump; ac_word=$2
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6019 $as_echo_n "checking for $ac_word... " >&6; }
6020 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6021 $as_echo_n "(cached) " >&6
6022 else
6023 if test -n "$ac_ct_OBJDUMP"; then
6024 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6025 else
6026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6027 for as_dir in $PATH
6028 do
6029 IFS=$as_save_IFS
6030 test -z "$as_dir" && as_dir=.
6031 for ac_exec_ext in '' $ac_executable_extensions; do
6032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6033 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6035 break 2
6036 fi
6037 done
6038 done
6039 IFS=$as_save_IFS
6040
6041 fi
6042 fi
6043 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6044 if test -n "$ac_ct_OBJDUMP"; then
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6046 $as_echo "$ac_ct_OBJDUMP" >&6; }
6047 else
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6049 $as_echo "no" >&6; }
6050 fi
6051
6052 if test "x$ac_ct_OBJDUMP" = x; then
6053 OBJDUMP="false"
6054 else
6055 case $cross_compiling:$ac_tool_warned in
6056 yes:)
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6058 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6059 ac_tool_warned=yes ;;
6060 esac
6061 OBJDUMP=$ac_ct_OBJDUMP
6062 fi
6063 else
6064 OBJDUMP="$ac_cv_prog_OBJDUMP"
6065 fi
6066
6067 test -z "$OBJDUMP" && OBJDUMP=objdump
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6078 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6079 if ${lt_cv_deplibs_check_method+:} false; then :
6080 $as_echo_n "(cached) " >&6
6081 else
6082 lt_cv_file_magic_cmd='$MAGIC_CMD'
6083 lt_cv_file_magic_test_file=
6084 lt_cv_deplibs_check_method='unknown'
6085 # Need to set the preceding variable on all platforms that support
6086 # interlibrary dependencies.
6087 # 'none' -- dependencies not supported.
6088 # `unknown' -- same as none, but documents that we really don't know.
6089 # 'pass_all' -- all dependencies passed with no checks.
6090 # 'test_compile' -- check by making test program.
6091 # 'file_magic [[regex]]' -- check by looking for files in library path
6092 # which responds to the $file_magic_cmd with a given extended regex.
6093 # If you have `file' or equivalent on your system and you're not sure
6094 # whether `pass_all' will *always* work, you probably want this one.
6095
6096 case $host_os in
6097 aix[4-9]*)
6098 lt_cv_deplibs_check_method=pass_all
6099 ;;
6100
6101 beos*)
6102 lt_cv_deplibs_check_method=pass_all
6103 ;;
6104
6105 bsdi[45]*)
6106 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6107 lt_cv_file_magic_cmd='/usr/bin/file -L'
6108 lt_cv_file_magic_test_file=/shlib/libc.so
6109 ;;
6110
6111 cygwin*)
6112 # func_win32_libid is a shell function defined in ltmain.sh
6113 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6114 lt_cv_file_magic_cmd='func_win32_libid'
6115 ;;
6116
6117 mingw* | pw32*)
6118 # Base MSYS/MinGW do not provide the 'file' command needed by
6119 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6120 # unless we find 'file', for example because we are cross-compiling.
6121 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6122 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6123 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6124 lt_cv_file_magic_cmd='func_win32_libid'
6125 else
6126 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6127 lt_cv_file_magic_cmd='$OBJDUMP -f'
6128 fi
6129 ;;
6130
6131 cegcc*)
6132 # use the weaker test based on 'objdump'. See mingw*.
6133 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6134 lt_cv_file_magic_cmd='$OBJDUMP -f'
6135 ;;
6136
6137 darwin* | rhapsody*)
6138 lt_cv_deplibs_check_method=pass_all
6139 ;;
6140
6141 freebsd* | dragonfly*)
6142 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6143 case $host_cpu in
6144 i*86 )
6145 # Not sure whether the presence of OpenBSD here was a mistake.
6146 # Let's accept both of them until this is cleared up.
6147 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6148 lt_cv_file_magic_cmd=/usr/bin/file
6149 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6150 ;;
6151 esac
6152 else
6153 lt_cv_deplibs_check_method=pass_all
6154 fi
6155 ;;
6156
6157 gnu*)
6158 lt_cv_deplibs_check_method=pass_all
6159 ;;
6160
6161 haiku*)
6162 lt_cv_deplibs_check_method=pass_all
6163 ;;
6164
6165 hpux10.20* | hpux11*)
6166 lt_cv_file_magic_cmd=/usr/bin/file
6167 case $host_cpu in
6168 ia64*)
6169 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6170 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6171 ;;
6172 hppa*64*)
6173 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]'
6174 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6175 ;;
6176 *)
6177 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6178 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6179 ;;
6180 esac
6181 ;;
6182
6183 interix[3-9]*)
6184 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6185 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6186 ;;
6187
6188 irix5* | irix6* | nonstopux*)
6189 case $LD in
6190 *-32|*"-32 ") libmagic=32-bit;;
6191 *-n32|*"-n32 ") libmagic=N32;;
6192 *-64|*"-64 ") libmagic=64-bit;;
6193 *) libmagic=never-match;;
6194 esac
6195 lt_cv_deplibs_check_method=pass_all
6196 ;;
6197
6198 # This must be Linux ELF.
6199 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6200 lt_cv_deplibs_check_method=pass_all
6201 ;;
6202
6203 netbsd*)
6204 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6205 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6206 else
6207 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6208 fi
6209 ;;
6210
6211 newos6*)
6212 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6213 lt_cv_file_magic_cmd=/usr/bin/file
6214 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6215 ;;
6216
6217 *nto* | *qnx*)
6218 lt_cv_deplibs_check_method=pass_all
6219 ;;
6220
6221 openbsd*)
6222 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6223 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6224 else
6225 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6226 fi
6227 ;;
6228
6229 osf3* | osf4* | osf5*)
6230 lt_cv_deplibs_check_method=pass_all
6231 ;;
6232
6233 rdos*)
6234 lt_cv_deplibs_check_method=pass_all
6235 ;;
6236
6237 solaris*)
6238 lt_cv_deplibs_check_method=pass_all
6239 ;;
6240
6241 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6242 lt_cv_deplibs_check_method=pass_all
6243 ;;
6244
6245 sysv4 | sysv4.3*)
6246 case $host_vendor in
6247 motorola)
6248 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]'
6249 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6250 ;;
6251 ncr)
6252 lt_cv_deplibs_check_method=pass_all
6253 ;;
6254 sequent)
6255 lt_cv_file_magic_cmd='/bin/file'
6256 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6257 ;;
6258 sni)
6259 lt_cv_file_magic_cmd='/bin/file'
6260 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6261 lt_cv_file_magic_test_file=/lib/libc.so
6262 ;;
6263 siemens)
6264 lt_cv_deplibs_check_method=pass_all
6265 ;;
6266 pc)
6267 lt_cv_deplibs_check_method=pass_all
6268 ;;
6269 esac
6270 ;;
6271
6272 tpf*)
6273 lt_cv_deplibs_check_method=pass_all
6274 ;;
6275 esac
6276
6277 fi
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6279 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6280 file_magic_cmd=$lt_cv_file_magic_cmd
6281 deplibs_check_method=$lt_cv_deplibs_check_method
6282 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295 if test -n "$ac_tool_prefix"; then
6296 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6297 set dummy ${ac_tool_prefix}ar; ac_word=$2
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6299 $as_echo_n "checking for $ac_word... " >&6; }
6300 if ${ac_cv_prog_AR+:} false; then :
6301 $as_echo_n "(cached) " >&6
6302 else
6303 if test -n "$AR"; then
6304 ac_cv_prog_AR="$AR" # Let the user override the test.
6305 else
6306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6307 for as_dir in $PATH
6308 do
6309 IFS=$as_save_IFS
6310 test -z "$as_dir" && as_dir=.
6311 for ac_exec_ext in '' $ac_executable_extensions; do
6312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6313 ac_cv_prog_AR="${ac_tool_prefix}ar"
6314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6315 break 2
6316 fi
6317 done
6318 done
6319 IFS=$as_save_IFS
6320
6321 fi
6322 fi
6323 AR=$ac_cv_prog_AR
6324 if test -n "$AR"; then
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6326 $as_echo "$AR" >&6; }
6327 else
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6329 $as_echo "no" >&6; }
6330 fi
6331
6332
6333 fi
6334 if test -z "$ac_cv_prog_AR"; then
6335 ac_ct_AR=$AR
6336 # Extract the first word of "ar", so it can be a program name with args.
6337 set dummy ar; ac_word=$2
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6339 $as_echo_n "checking for $ac_word... " >&6; }
6340 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6341 $as_echo_n "(cached) " >&6
6342 else
6343 if test -n "$ac_ct_AR"; then
6344 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6345 else
6346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6347 for as_dir in $PATH
6348 do
6349 IFS=$as_save_IFS
6350 test -z "$as_dir" && as_dir=.
6351 for ac_exec_ext in '' $ac_executable_extensions; do
6352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6353 ac_cv_prog_ac_ct_AR="ar"
6354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6355 break 2
6356 fi
6357 done
6358 done
6359 IFS=$as_save_IFS
6360
6361 fi
6362 fi
6363 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6364 if test -n "$ac_ct_AR"; then
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6366 $as_echo "$ac_ct_AR" >&6; }
6367 else
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6369 $as_echo "no" >&6; }
6370 fi
6371
6372 if test "x$ac_ct_AR" = x; then
6373 AR="false"
6374 else
6375 case $cross_compiling:$ac_tool_warned in
6376 yes:)
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6379 ac_tool_warned=yes ;;
6380 esac
6381 AR=$ac_ct_AR
6382 fi
6383 else
6384 AR="$ac_cv_prog_AR"
6385 fi
6386
6387 test -z "$AR" && AR=ar
6388 test -z "$AR_FLAGS" && AR_FLAGS=cru
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400 if test -n "$ac_tool_prefix"; then
6401 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6402 set dummy ${ac_tool_prefix}strip; ac_word=$2
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6404 $as_echo_n "checking for $ac_word... " >&6; }
6405 if ${ac_cv_prog_STRIP+:} false; then :
6406 $as_echo_n "(cached) " >&6
6407 else
6408 if test -n "$STRIP"; then
6409 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6410 else
6411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6412 for as_dir in $PATH
6413 do
6414 IFS=$as_save_IFS
6415 test -z "$as_dir" && as_dir=.
6416 for ac_exec_ext in '' $ac_executable_extensions; do
6417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6418 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6420 break 2
6421 fi
6422 done
6423 done
6424 IFS=$as_save_IFS
6425
6426 fi
6427 fi
6428 STRIP=$ac_cv_prog_STRIP
6429 if test -n "$STRIP"; then
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6431 $as_echo "$STRIP" >&6; }
6432 else
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6434 $as_echo "no" >&6; }
6435 fi
6436
6437
6438 fi
6439 if test -z "$ac_cv_prog_STRIP"; then
6440 ac_ct_STRIP=$STRIP
6441 # Extract the first word of "strip", so it can be a program name with args.
6442 set dummy strip; ac_word=$2
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6444 $as_echo_n "checking for $ac_word... " >&6; }
6445 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6446 $as_echo_n "(cached) " >&6
6447 else
6448 if test -n "$ac_ct_STRIP"; then
6449 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6450 else
6451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6452 for as_dir in $PATH
6453 do
6454 IFS=$as_save_IFS
6455 test -z "$as_dir" && as_dir=.
6456 for ac_exec_ext in '' $ac_executable_extensions; do
6457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6458 ac_cv_prog_ac_ct_STRIP="strip"
6459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6460 break 2
6461 fi
6462 done
6463 done
6464 IFS=$as_save_IFS
6465
6466 fi
6467 fi
6468 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6469 if test -n "$ac_ct_STRIP"; then
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6471 $as_echo "$ac_ct_STRIP" >&6; }
6472 else
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6474 $as_echo "no" >&6; }
6475 fi
6476
6477 if test "x$ac_ct_STRIP" = x; then
6478 STRIP=":"
6479 else
6480 case $cross_compiling:$ac_tool_warned in
6481 yes:)
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6484 ac_tool_warned=yes ;;
6485 esac
6486 STRIP=$ac_ct_STRIP
6487 fi
6488 else
6489 STRIP="$ac_cv_prog_STRIP"
6490 fi
6491
6492 test -z "$STRIP" && STRIP=:
6493
6494
6495
6496
6497
6498
6499 if test -n "$ac_tool_prefix"; then
6500 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6501 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6503 $as_echo_n "checking for $ac_word... " >&6; }
6504 if ${ac_cv_prog_RANLIB+:} false; then :
6505 $as_echo_n "(cached) " >&6
6506 else
6507 if test -n "$RANLIB"; then
6508 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6509 else
6510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6511 for as_dir in $PATH
6512 do
6513 IFS=$as_save_IFS
6514 test -z "$as_dir" && as_dir=.
6515 for ac_exec_ext in '' $ac_executable_extensions; do
6516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6517 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6519 break 2
6520 fi
6521 done
6522 done
6523 IFS=$as_save_IFS
6524
6525 fi
6526 fi
6527 RANLIB=$ac_cv_prog_RANLIB
6528 if test -n "$RANLIB"; then
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6530 $as_echo "$RANLIB" >&6; }
6531 else
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6533 $as_echo "no" >&6; }
6534 fi
6535
6536
6537 fi
6538 if test -z "$ac_cv_prog_RANLIB"; then
6539 ac_ct_RANLIB=$RANLIB
6540 # Extract the first word of "ranlib", so it can be a program name with args.
6541 set dummy ranlib; ac_word=$2
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6543 $as_echo_n "checking for $ac_word... " >&6; }
6544 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6545 $as_echo_n "(cached) " >&6
6546 else
6547 if test -n "$ac_ct_RANLIB"; then
6548 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6549 else
6550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6551 for as_dir in $PATH
6552 do
6553 IFS=$as_save_IFS
6554 test -z "$as_dir" && as_dir=.
6555 for ac_exec_ext in '' $ac_executable_extensions; do
6556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6557 ac_cv_prog_ac_ct_RANLIB="ranlib"
6558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6559 break 2
6560 fi
6561 done
6562 done
6563 IFS=$as_save_IFS
6564
6565 fi
6566 fi
6567 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6568 if test -n "$ac_ct_RANLIB"; then
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6570 $as_echo "$ac_ct_RANLIB" >&6; }
6571 else
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6573 $as_echo "no" >&6; }
6574 fi
6575
6576 if test "x$ac_ct_RANLIB" = x; then
6577 RANLIB=":"
6578 else
6579 case $cross_compiling:$ac_tool_warned in
6580 yes:)
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6582 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6583 ac_tool_warned=yes ;;
6584 esac
6585 RANLIB=$ac_ct_RANLIB
6586 fi
6587 else
6588 RANLIB="$ac_cv_prog_RANLIB"
6589 fi
6590
6591 test -z "$RANLIB" && RANLIB=:
6592
6593
6594
6595
6596
6597
6598 # Determine commands to create old-style static archives.
6599 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6600 old_postinstall_cmds='chmod 644 $oldlib'
6601 old_postuninstall_cmds=
6602
6603 if test -n "$RANLIB"; then
6604 case $host_os in
6605 openbsd*)
6606 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6607 ;;
6608 *)
6609 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6610 ;;
6611 esac
6612 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6613 fi
6614
6615 case $host_os in
6616 darwin*)
6617 lock_old_archive_extraction=yes ;;
6618 *)
6619 lock_old_archive_extraction=no ;;
6620 esac
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660 # If no C compiler was specified, use CC.
6661 LTCC=${LTCC-"$CC"}
6662
6663 # If no C compiler flags were specified, use CFLAGS.
6664 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6665
6666 # Allow CC to be a program name with arguments.
6667 compiler=$CC
6668
6669
6670 # Check for command to grab the raw symbol name followed by C symbol from nm.
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6672 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6673 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6674 $as_echo_n "(cached) " >&6
6675 else
6676
6677 # These are sane defaults that work on at least a few old systems.
6678 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6679
6680 # Character class describing NM global symbol codes.
6681 symcode='[BCDEGRST]'
6682
6683 # Regexp to match symbols that can be accessed directly from C.
6684 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6685
6686 # Define system-specific variables.
6687 case $host_os in
6688 aix*)
6689 symcode='[BCDT]'
6690 ;;
6691 cygwin* | mingw* | pw32* | cegcc*)
6692 symcode='[ABCDGISTW]'
6693 ;;
6694 hpux*)
6695 if test "$host_cpu" = ia64; then
6696 symcode='[ABCDEGRST]'
6697 fi
6698 ;;
6699 irix* | nonstopux*)
6700 symcode='[BCDEGRST]'
6701 ;;
6702 osf*)
6703 symcode='[BCDEGQRST]'
6704 ;;
6705 solaris*)
6706 symcode='[BDRT]'
6707 ;;
6708 sco3.2v5*)
6709 symcode='[DT]'
6710 ;;
6711 sysv4.2uw2*)
6712 symcode='[DT]'
6713 ;;
6714 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6715 symcode='[ABDT]'
6716 ;;
6717 sysv4)
6718 symcode='[DFNSTU]'
6719 ;;
6720 esac
6721
6722 # If we're using GNU nm, then use its standard symbol codes.
6723 case `$NM -V 2>&1` in
6724 *GNU* | *'with BFD'*)
6725 symcode='[ABCDGIRSTW]' ;;
6726 esac
6727
6728 # Transform an extracted symbol line into a proper C declaration.
6729 # Some systems (esp. on ia64) link data and code symbols differently,
6730 # so use this general approach.
6731 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6732
6733 # Transform an extracted symbol line into symbol name and symbol address
6734 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6735 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'"
6736
6737 # Handle CRLF in mingw tool chain
6738 opt_cr=
6739 case $build_os in
6740 mingw*)
6741 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6742 ;;
6743 esac
6744
6745 # Try without a prefix underscore, then with it.
6746 for ac_symprfx in "" "_"; do
6747
6748 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6749 symxfrm="\\1 $ac_symprfx\\2 \\2"
6750
6751 # Write the raw and C identifiers.
6752 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6753 # Fake it for dumpbin and say T for any non-static function
6754 # and D for any global variable.
6755 # Also find C++ and __fastcall symbols from MSVC++,
6756 # which start with @ or ?.
6757 lt_cv_sys_global_symbol_pipe="$AWK '"\
6758 " {last_section=section; section=\$ 3};"\
6759 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6760 " \$ 0!~/External *\|/{next};"\
6761 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6762 " {if(hide[section]) next};"\
6763 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6764 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6765 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6766 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6767 " ' prfx=^$ac_symprfx"
6768 else
6769 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6770 fi
6771
6772 # Check to see that the pipe works correctly.
6773 pipe_works=no
6774
6775 rm -f conftest*
6776 cat > conftest.$ac_ext <<_LT_EOF
6777 #ifdef __cplusplus
6778 extern "C" {
6779 #endif
6780 char nm_test_var;
6781 void nm_test_func(void);
6782 void nm_test_func(void){}
6783 #ifdef __cplusplus
6784 }
6785 #endif
6786 int main(){nm_test_var='a';nm_test_func();return(0);}
6787 _LT_EOF
6788
6789 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6790 (eval $ac_compile) 2>&5
6791 ac_status=$?
6792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6793 test $ac_status = 0; }; then
6794 # Now try to grab the symbols.
6795 nlist=conftest.nm
6796 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6797 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6798 ac_status=$?
6799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6800 test $ac_status = 0; } && test -s "$nlist"; then
6801 # Try sorting and uniquifying the output.
6802 if sort "$nlist" | uniq > "$nlist"T; then
6803 mv -f "$nlist"T "$nlist"
6804 else
6805 rm -f "$nlist"T
6806 fi
6807
6808 # Make sure that we snagged all the symbols we need.
6809 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6810 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6811 cat <<_LT_EOF > conftest.$ac_ext
6812 #ifdef __cplusplus
6813 extern "C" {
6814 #endif
6815
6816 _LT_EOF
6817 # Now generate the symbol file.
6818 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6819
6820 cat <<_LT_EOF >> conftest.$ac_ext
6821
6822 /* The mapping between symbol names and symbols. */
6823 const struct {
6824 const char *name;
6825 void *address;
6826 }
6827 lt__PROGRAM__LTX_preloaded_symbols[] =
6828 {
6829 { "@PROGRAM@", (void *) 0 },
6830 _LT_EOF
6831 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6832 cat <<\_LT_EOF >> conftest.$ac_ext
6833 {0, (void *) 0}
6834 };
6835
6836 /* This works around a problem in FreeBSD linker */
6837 #ifdef FREEBSD_WORKAROUND
6838 static const void *lt_preloaded_setup() {
6839 return lt__PROGRAM__LTX_preloaded_symbols;
6840 }
6841 #endif
6842
6843 #ifdef __cplusplus
6844 }
6845 #endif
6846 _LT_EOF
6847 # Now try linking the two files.
6848 mv conftest.$ac_objext conftstm.$ac_objext
6849 lt_save_LIBS="$LIBS"
6850 lt_save_CFLAGS="$CFLAGS"
6851 LIBS="conftstm.$ac_objext"
6852 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6853 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6854 (eval $ac_link) 2>&5
6855 ac_status=$?
6856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6857 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6858 pipe_works=yes
6859 fi
6860 LIBS="$lt_save_LIBS"
6861 CFLAGS="$lt_save_CFLAGS"
6862 else
6863 echo "cannot find nm_test_func in $nlist" >&5
6864 fi
6865 else
6866 echo "cannot find nm_test_var in $nlist" >&5
6867 fi
6868 else
6869 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6870 fi
6871 else
6872 echo "$progname: failed program was:" >&5
6873 cat conftest.$ac_ext >&5
6874 fi
6875 rm -rf conftest* conftst*
6876
6877 # Do not use the global_symbol_pipe unless it works.
6878 if test "$pipe_works" = yes; then
6879 break
6880 else
6881 lt_cv_sys_global_symbol_pipe=
6882 fi
6883 done
6884
6885 fi
6886
6887 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6888 lt_cv_sys_global_symbol_to_cdecl=
6889 fi
6890 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6892 $as_echo "failed" >&6; }
6893 else
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6895 $as_echo "ok" >&6; }
6896 fi
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920 # Check whether --enable-libtool-lock was given.
6921 if test "${enable_libtool_lock+set}" = set; then :
6922 enableval=$enable_libtool_lock;
6923 fi
6924
6925 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6926
6927 # Some flags need to be propagated to the compiler or linker for good
6928 # libtool support.
6929 case $host in
6930 ia64-*-hpux*)
6931 # Find out which ABI we are using.
6932 echo 'int i;' > conftest.$ac_ext
6933 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6934 (eval $ac_compile) 2>&5
6935 ac_status=$?
6936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6937 test $ac_status = 0; }; then
6938 case `/usr/bin/file conftest.$ac_objext` in
6939 *ELF-32*)
6940 HPUX_IA64_MODE="32"
6941 ;;
6942 *ELF-64*)
6943 HPUX_IA64_MODE="64"
6944 ;;
6945 esac
6946 fi
6947 rm -rf conftest*
6948 ;;
6949 *-*-irix6*)
6950 # Find out which ABI we are using.
6951 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6952 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6953 (eval $ac_compile) 2>&5
6954 ac_status=$?
6955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6956 test $ac_status = 0; }; then
6957 if test "$lt_cv_prog_gnu_ld" = yes; then
6958 case `/usr/bin/file conftest.$ac_objext` in
6959 *32-bit*)
6960 LD="${LD-ld} -melf32bsmip"
6961 ;;
6962 *N32*)
6963 LD="${LD-ld} -melf32bmipn32"
6964 ;;
6965 *64-bit*)
6966 LD="${LD-ld} -melf64bmip"
6967 ;;
6968 esac
6969 else
6970 case `/usr/bin/file conftest.$ac_objext` in
6971 *32-bit*)
6972 LD="${LD-ld} -32"
6973 ;;
6974 *N32*)
6975 LD="${LD-ld} -n32"
6976 ;;
6977 *64-bit*)
6978 LD="${LD-ld} -64"
6979 ;;
6980 esac
6981 fi
6982 fi
6983 rm -rf conftest*
6984 ;;
6985
6986 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6987 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6988 # Find out which ABI we are using.
6989 echo 'int i;' > conftest.$ac_ext
6990 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6991 (eval $ac_compile) 2>&5
6992 ac_status=$?
6993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6994 test $ac_status = 0; }; then
6995 case `/usr/bin/file conftest.o` in
6996 *32-bit*)
6997 case $host in
6998 x86_64-*kfreebsd*-gnu)
6999 LD="${LD-ld} -m elf_i386_fbsd"
7000 ;;
7001 x86_64-*linux*)
7002 case `/usr/bin/file conftest.o` in
7003 *x86-64*)
7004 LD="${LD-ld} -m elf32_x86_64"
7005 ;;
7006 *)
7007 LD="${LD-ld} -m elf_i386"
7008 ;;
7009 esac
7010 ;;
7011 powerpc64le-*linux*)
7012 LD="${LD-ld} -m elf32lppclinux"
7013 ;;
7014 powerpc64-*linux*)
7015 LD="${LD-ld} -m elf32ppclinux"
7016 ;;
7017 s390x-*linux*)
7018 LD="${LD-ld} -m elf_s390"
7019 ;;
7020 sparc64-*linux*)
7021 LD="${LD-ld} -m elf32_sparc"
7022 ;;
7023 esac
7024 ;;
7025 *64-bit*)
7026 case $host in
7027 x86_64-*kfreebsd*-gnu)
7028 LD="${LD-ld} -m elf_x86_64_fbsd"
7029 ;;
7030 x86_64-*linux*)
7031 LD="${LD-ld} -m elf_x86_64"
7032 ;;
7033 powerpcle-*linux*)
7034 LD="${LD-ld} -m elf64lppc"
7035 ;;
7036 powerpc-*linux*)
7037 LD="${LD-ld} -m elf64ppc"
7038 ;;
7039 s390*-*linux*|s390*-*tpf*)
7040 LD="${LD-ld} -m elf64_s390"
7041 ;;
7042 sparc*-*linux*)
7043 LD="${LD-ld} -m elf64_sparc"
7044 ;;
7045 esac
7046 ;;
7047 esac
7048 fi
7049 rm -rf conftest*
7050 ;;
7051
7052 *-*-sco3.2v5*)
7053 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7054 SAVE_CFLAGS="$CFLAGS"
7055 CFLAGS="$CFLAGS -belf"
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7057 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7058 if ${lt_cv_cc_needs_belf+:} false; then :
7059 $as_echo_n "(cached) " >&6
7060 else
7061 ac_ext=c
7062 ac_cpp='$CPP $CPPFLAGS'
7063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7066
7067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7068 /* end confdefs.h. */
7069
7070 int
7071 main ()
7072 {
7073
7074 ;
7075 return 0;
7076 }
7077 _ACEOF
7078 if ac_fn_c_try_link "$LINENO"; then :
7079 lt_cv_cc_needs_belf=yes
7080 else
7081 lt_cv_cc_needs_belf=no
7082 fi
7083 rm -f core conftest.err conftest.$ac_objext \
7084 conftest$ac_exeext conftest.$ac_ext
7085 ac_ext=c
7086 ac_cpp='$CPP $CPPFLAGS'
7087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7090
7091 fi
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7093 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7094 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7095 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7096 CFLAGS="$SAVE_CFLAGS"
7097 fi
7098 ;;
7099 sparc*-*solaris*)
7100 # Find out which ABI we are using.
7101 echo 'int i;' > conftest.$ac_ext
7102 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7103 (eval $ac_compile) 2>&5
7104 ac_status=$?
7105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7106 test $ac_status = 0; }; then
7107 case `/usr/bin/file conftest.o` in
7108 *64-bit*)
7109 case $lt_cv_prog_gnu_ld in
7110 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7111 *)
7112 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7113 LD="${LD-ld} -64"
7114 fi
7115 ;;
7116 esac
7117 ;;
7118 esac
7119 fi
7120 rm -rf conftest*
7121 ;;
7122 esac
7123
7124 need_locks="$enable_libtool_lock"
7125
7126
7127 case $host_os in
7128 rhapsody* | darwin*)
7129 if test -n "$ac_tool_prefix"; then
7130 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7131 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7133 $as_echo_n "checking for $ac_word... " >&6; }
7134 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7135 $as_echo_n "(cached) " >&6
7136 else
7137 if test -n "$DSYMUTIL"; then
7138 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7139 else
7140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7141 for as_dir in $PATH
7142 do
7143 IFS=$as_save_IFS
7144 test -z "$as_dir" && as_dir=.
7145 for ac_exec_ext in '' $ac_executable_extensions; do
7146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7147 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7149 break 2
7150 fi
7151 done
7152 done
7153 IFS=$as_save_IFS
7154
7155 fi
7156 fi
7157 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7158 if test -n "$DSYMUTIL"; then
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7160 $as_echo "$DSYMUTIL" >&6; }
7161 else
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7163 $as_echo "no" >&6; }
7164 fi
7165
7166
7167 fi
7168 if test -z "$ac_cv_prog_DSYMUTIL"; then
7169 ac_ct_DSYMUTIL=$DSYMUTIL
7170 # Extract the first word of "dsymutil", so it can be a program name with args.
7171 set dummy dsymutil; ac_word=$2
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7173 $as_echo_n "checking for $ac_word... " >&6; }
7174 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7175 $as_echo_n "(cached) " >&6
7176 else
7177 if test -n "$ac_ct_DSYMUTIL"; then
7178 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7179 else
7180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7181 for as_dir in $PATH
7182 do
7183 IFS=$as_save_IFS
7184 test -z "$as_dir" && as_dir=.
7185 for ac_exec_ext in '' $ac_executable_extensions; do
7186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7187 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7189 break 2
7190 fi
7191 done
7192 done
7193 IFS=$as_save_IFS
7194
7195 fi
7196 fi
7197 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7198 if test -n "$ac_ct_DSYMUTIL"; then
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7200 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7201 else
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7203 $as_echo "no" >&6; }
7204 fi
7205
7206 if test "x$ac_ct_DSYMUTIL" = x; then
7207 DSYMUTIL=":"
7208 else
7209 case $cross_compiling:$ac_tool_warned in
7210 yes:)
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7213 ac_tool_warned=yes ;;
7214 esac
7215 DSYMUTIL=$ac_ct_DSYMUTIL
7216 fi
7217 else
7218 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7219 fi
7220
7221 if test -n "$ac_tool_prefix"; then
7222 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7223 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7225 $as_echo_n "checking for $ac_word... " >&6; }
7226 if ${ac_cv_prog_NMEDIT+:} false; then :
7227 $as_echo_n "(cached) " >&6
7228 else
7229 if test -n "$NMEDIT"; then
7230 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7231 else
7232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233 for as_dir in $PATH
7234 do
7235 IFS=$as_save_IFS
7236 test -z "$as_dir" && as_dir=.
7237 for ac_exec_ext in '' $ac_executable_extensions; do
7238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7239 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7241 break 2
7242 fi
7243 done
7244 done
7245 IFS=$as_save_IFS
7246
7247 fi
7248 fi
7249 NMEDIT=$ac_cv_prog_NMEDIT
7250 if test -n "$NMEDIT"; then
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7252 $as_echo "$NMEDIT" >&6; }
7253 else
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7255 $as_echo "no" >&6; }
7256 fi
7257
7258
7259 fi
7260 if test -z "$ac_cv_prog_NMEDIT"; then
7261 ac_ct_NMEDIT=$NMEDIT
7262 # Extract the first word of "nmedit", so it can be a program name with args.
7263 set dummy nmedit; ac_word=$2
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7265 $as_echo_n "checking for $ac_word... " >&6; }
7266 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7267 $as_echo_n "(cached) " >&6
7268 else
7269 if test -n "$ac_ct_NMEDIT"; then
7270 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7271 else
7272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273 for as_dir in $PATH
7274 do
7275 IFS=$as_save_IFS
7276 test -z "$as_dir" && as_dir=.
7277 for ac_exec_ext in '' $ac_executable_extensions; do
7278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7279 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7281 break 2
7282 fi
7283 done
7284 done
7285 IFS=$as_save_IFS
7286
7287 fi
7288 fi
7289 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7290 if test -n "$ac_ct_NMEDIT"; then
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7292 $as_echo "$ac_ct_NMEDIT" >&6; }
7293 else
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7295 $as_echo "no" >&6; }
7296 fi
7297
7298 if test "x$ac_ct_NMEDIT" = x; then
7299 NMEDIT=":"
7300 else
7301 case $cross_compiling:$ac_tool_warned in
7302 yes:)
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7305 ac_tool_warned=yes ;;
7306 esac
7307 NMEDIT=$ac_ct_NMEDIT
7308 fi
7309 else
7310 NMEDIT="$ac_cv_prog_NMEDIT"
7311 fi
7312
7313 if test -n "$ac_tool_prefix"; then
7314 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7315 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7317 $as_echo_n "checking for $ac_word... " >&6; }
7318 if ${ac_cv_prog_LIPO+:} false; then :
7319 $as_echo_n "(cached) " >&6
7320 else
7321 if test -n "$LIPO"; then
7322 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7323 else
7324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7325 for as_dir in $PATH
7326 do
7327 IFS=$as_save_IFS
7328 test -z "$as_dir" && as_dir=.
7329 for ac_exec_ext in '' $ac_executable_extensions; do
7330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7331 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7333 break 2
7334 fi
7335 done
7336 done
7337 IFS=$as_save_IFS
7338
7339 fi
7340 fi
7341 LIPO=$ac_cv_prog_LIPO
7342 if test -n "$LIPO"; then
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7344 $as_echo "$LIPO" >&6; }
7345 else
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7347 $as_echo "no" >&6; }
7348 fi
7349
7350
7351 fi
7352 if test -z "$ac_cv_prog_LIPO"; then
7353 ac_ct_LIPO=$LIPO
7354 # Extract the first word of "lipo", so it can be a program name with args.
7355 set dummy lipo; ac_word=$2
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7357 $as_echo_n "checking for $ac_word... " >&6; }
7358 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7359 $as_echo_n "(cached) " >&6
7360 else
7361 if test -n "$ac_ct_LIPO"; then
7362 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7363 else
7364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365 for as_dir in $PATH
7366 do
7367 IFS=$as_save_IFS
7368 test -z "$as_dir" && as_dir=.
7369 for ac_exec_ext in '' $ac_executable_extensions; do
7370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7371 ac_cv_prog_ac_ct_LIPO="lipo"
7372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7373 break 2
7374 fi
7375 done
7376 done
7377 IFS=$as_save_IFS
7378
7379 fi
7380 fi
7381 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7382 if test -n "$ac_ct_LIPO"; then
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7384 $as_echo "$ac_ct_LIPO" >&6; }
7385 else
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7387 $as_echo "no" >&6; }
7388 fi
7389
7390 if test "x$ac_ct_LIPO" = x; then
7391 LIPO=":"
7392 else
7393 case $cross_compiling:$ac_tool_warned in
7394 yes:)
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7396 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7397 ac_tool_warned=yes ;;
7398 esac
7399 LIPO=$ac_ct_LIPO
7400 fi
7401 else
7402 LIPO="$ac_cv_prog_LIPO"
7403 fi
7404
7405 if test -n "$ac_tool_prefix"; then
7406 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7407 set dummy ${ac_tool_prefix}otool; ac_word=$2
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7409 $as_echo_n "checking for $ac_word... " >&6; }
7410 if ${ac_cv_prog_OTOOL+:} false; then :
7411 $as_echo_n "(cached) " >&6
7412 else
7413 if test -n "$OTOOL"; then
7414 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7415 else
7416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7417 for as_dir in $PATH
7418 do
7419 IFS=$as_save_IFS
7420 test -z "$as_dir" && as_dir=.
7421 for ac_exec_ext in '' $ac_executable_extensions; do
7422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7423 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7425 break 2
7426 fi
7427 done
7428 done
7429 IFS=$as_save_IFS
7430
7431 fi
7432 fi
7433 OTOOL=$ac_cv_prog_OTOOL
7434 if test -n "$OTOOL"; then
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7436 $as_echo "$OTOOL" >&6; }
7437 else
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7439 $as_echo "no" >&6; }
7440 fi
7441
7442
7443 fi
7444 if test -z "$ac_cv_prog_OTOOL"; then
7445 ac_ct_OTOOL=$OTOOL
7446 # Extract the first word of "otool", so it can be a program name with args.
7447 set dummy otool; ac_word=$2
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7449 $as_echo_n "checking for $ac_word... " >&6; }
7450 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7451 $as_echo_n "(cached) " >&6
7452 else
7453 if test -n "$ac_ct_OTOOL"; then
7454 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7455 else
7456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7457 for as_dir in $PATH
7458 do
7459 IFS=$as_save_IFS
7460 test -z "$as_dir" && as_dir=.
7461 for ac_exec_ext in '' $ac_executable_extensions; do
7462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7463 ac_cv_prog_ac_ct_OTOOL="otool"
7464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7465 break 2
7466 fi
7467 done
7468 done
7469 IFS=$as_save_IFS
7470
7471 fi
7472 fi
7473 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7474 if test -n "$ac_ct_OTOOL"; then
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7476 $as_echo "$ac_ct_OTOOL" >&6; }
7477 else
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7479 $as_echo "no" >&6; }
7480 fi
7481
7482 if test "x$ac_ct_OTOOL" = x; then
7483 OTOOL=":"
7484 else
7485 case $cross_compiling:$ac_tool_warned in
7486 yes:)
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7489 ac_tool_warned=yes ;;
7490 esac
7491 OTOOL=$ac_ct_OTOOL
7492 fi
7493 else
7494 OTOOL="$ac_cv_prog_OTOOL"
7495 fi
7496
7497 if test -n "$ac_tool_prefix"; then
7498 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7499 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7501 $as_echo_n "checking for $ac_word... " >&6; }
7502 if ${ac_cv_prog_OTOOL64+:} false; then :
7503 $as_echo_n "(cached) " >&6
7504 else
7505 if test -n "$OTOOL64"; then
7506 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7507 else
7508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7509 for as_dir in $PATH
7510 do
7511 IFS=$as_save_IFS
7512 test -z "$as_dir" && as_dir=.
7513 for ac_exec_ext in '' $ac_executable_extensions; do
7514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7515 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7517 break 2
7518 fi
7519 done
7520 done
7521 IFS=$as_save_IFS
7522
7523 fi
7524 fi
7525 OTOOL64=$ac_cv_prog_OTOOL64
7526 if test -n "$OTOOL64"; then
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7528 $as_echo "$OTOOL64" >&6; }
7529 else
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7531 $as_echo "no" >&6; }
7532 fi
7533
7534
7535 fi
7536 if test -z "$ac_cv_prog_OTOOL64"; then
7537 ac_ct_OTOOL64=$OTOOL64
7538 # Extract the first word of "otool64", so it can be a program name with args.
7539 set dummy otool64; ac_word=$2
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7541 $as_echo_n "checking for $ac_word... " >&6; }
7542 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7543 $as_echo_n "(cached) " >&6
7544 else
7545 if test -n "$ac_ct_OTOOL64"; then
7546 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7547 else
7548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7549 for as_dir in $PATH
7550 do
7551 IFS=$as_save_IFS
7552 test -z "$as_dir" && as_dir=.
7553 for ac_exec_ext in '' $ac_executable_extensions; do
7554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7555 ac_cv_prog_ac_ct_OTOOL64="otool64"
7556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7557 break 2
7558 fi
7559 done
7560 done
7561 IFS=$as_save_IFS
7562
7563 fi
7564 fi
7565 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7566 if test -n "$ac_ct_OTOOL64"; then
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7568 $as_echo "$ac_ct_OTOOL64" >&6; }
7569 else
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7571 $as_echo "no" >&6; }
7572 fi
7573
7574 if test "x$ac_ct_OTOOL64" = x; then
7575 OTOOL64=":"
7576 else
7577 case $cross_compiling:$ac_tool_warned in
7578 yes:)
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7581 ac_tool_warned=yes ;;
7582 esac
7583 OTOOL64=$ac_ct_OTOOL64
7584 fi
7585 else
7586 OTOOL64="$ac_cv_prog_OTOOL64"
7587 fi
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7616 $as_echo_n "checking for -single_module linker flag... " >&6; }
7617 if ${lt_cv_apple_cc_single_mod+:} false; then :
7618 $as_echo_n "(cached) " >&6
7619 else
7620 lt_cv_apple_cc_single_mod=no
7621 if test -z "${LT_MULTI_MODULE}"; then
7622 # By default we will add the -single_module flag. You can override
7623 # by either setting the environment variable LT_MULTI_MODULE
7624 # non-empty at configure time, or by adding -multi_module to the
7625 # link flags.
7626 rm -rf libconftest.dylib*
7627 echo "int foo(void){return 1;}" > conftest.c
7628 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7629 -dynamiclib -Wl,-single_module conftest.c" >&5
7630 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7631 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7632 _lt_result=$?
7633 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7634 lt_cv_apple_cc_single_mod=yes
7635 else
7636 cat conftest.err >&5
7637 fi
7638 rm -rf libconftest.dylib*
7639 rm -f conftest.*
7640 fi
7641 fi
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7643 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7645 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7646 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7647 $as_echo_n "(cached) " >&6
7648 else
7649 lt_cv_ld_exported_symbols_list=no
7650 save_LDFLAGS=$LDFLAGS
7651 echo "_main" > conftest.sym
7652 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7654 /* end confdefs.h. */
7655
7656 int
7657 main ()
7658 {
7659
7660 ;
7661 return 0;
7662 }
7663 _ACEOF
7664 if ac_fn_c_try_link "$LINENO"; then :
7665 lt_cv_ld_exported_symbols_list=yes
7666 else
7667 lt_cv_ld_exported_symbols_list=no
7668 fi
7669 rm -f core conftest.err conftest.$ac_objext \
7670 conftest$ac_exeext conftest.$ac_ext
7671 LDFLAGS="$save_LDFLAGS"
7672
7673 fi
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7675 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7677 $as_echo_n "checking for -force_load linker flag... " >&6; }
7678 if ${lt_cv_ld_force_load+:} false; then :
7679 $as_echo_n "(cached) " >&6
7680 else
7681 lt_cv_ld_force_load=no
7682 cat > conftest.c << _LT_EOF
7683 int forced_loaded() { return 2;}
7684 _LT_EOF
7685 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7686 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7687 echo "$AR cru libconftest.a conftest.o" >&5
7688 $AR cru libconftest.a conftest.o 2>&5
7689 cat > conftest.c << _LT_EOF
7690 int main() { return 0;}
7691 _LT_EOF
7692 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7693 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7694 _lt_result=$?
7695 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7696 lt_cv_ld_force_load=yes
7697 else
7698 cat conftest.err >&5
7699 fi
7700 rm -f conftest.err libconftest.a conftest conftest.c
7701 rm -rf conftest.dSYM
7702
7703 fi
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7705 $as_echo "$lt_cv_ld_force_load" >&6; }
7706 case $host_os in
7707 rhapsody* | darwin1.[012])
7708 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7709 darwin1.*)
7710 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7711 darwin*) # darwin 5.x on
7712 # if running on 10.5 or later, the deployment target defaults
7713 # to the OS version, if on x86, and 10.4, the deployment
7714 # target defaults to 10.4. Don't you love it?
7715 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7716 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7717 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7718 10.[012][,.]*)
7719 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7720 10.*)
7721 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7722 esac
7723 ;;
7724 esac
7725 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7726 _lt_dar_single_mod='$single_module'
7727 fi
7728 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7729 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7730 else
7731 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7732 fi
7733 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7734 _lt_dsymutil='~$DSYMUTIL $lib || :'
7735 else
7736 _lt_dsymutil=
7737 fi
7738 ;;
7739 esac
7740
7741 ac_ext=c
7742 ac_cpp='$CPP $CPPFLAGS'
7743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7747 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7748 # On Suns, sometimes $CPP names a directory.
7749 if test -n "$CPP" && test -d "$CPP"; then
7750 CPP=
7751 fi
7752 if test -z "$CPP"; then
7753 if ${ac_cv_prog_CPP+:} false; then :
7754 $as_echo_n "(cached) " >&6
7755 else
7756 # Double quotes because CPP needs to be expanded
7757 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7758 do
7759 ac_preproc_ok=false
7760 for ac_c_preproc_warn_flag in '' yes
7761 do
7762 # Use a header file that comes with gcc, so configuring glibc
7763 # with a fresh cross-compiler works.
7764 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7765 # <limits.h> exists even on freestanding compilers.
7766 # On the NeXT, cc -E runs the code through the compiler's parser,
7767 # not just through cpp. "Syntax error" is here to catch this case.
7768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7769 /* end confdefs.h. */
7770 #ifdef __STDC__
7771 # include <limits.h>
7772 #else
7773 # include <assert.h>
7774 #endif
7775 Syntax error
7776 _ACEOF
7777 if ac_fn_c_try_cpp "$LINENO"; then :
7778
7779 else
7780 # Broken: fails on valid input.
7781 continue
7782 fi
7783 rm -f conftest.err conftest.i conftest.$ac_ext
7784
7785 # OK, works on sane cases. Now check whether nonexistent headers
7786 # can be detected and how.
7787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7788 /* end confdefs.h. */
7789 #include <ac_nonexistent.h>
7790 _ACEOF
7791 if ac_fn_c_try_cpp "$LINENO"; then :
7792 # Broken: success on invalid input.
7793 continue
7794 else
7795 # Passes both tests.
7796 ac_preproc_ok=:
7797 break
7798 fi
7799 rm -f conftest.err conftest.i conftest.$ac_ext
7800
7801 done
7802 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7803 rm -f conftest.i conftest.err conftest.$ac_ext
7804 if $ac_preproc_ok; then :
7805 break
7806 fi
7807
7808 done
7809 ac_cv_prog_CPP=$CPP
7810
7811 fi
7812 CPP=$ac_cv_prog_CPP
7813 else
7814 ac_cv_prog_CPP=$CPP
7815 fi
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7817 $as_echo "$CPP" >&6; }
7818 ac_preproc_ok=false
7819 for ac_c_preproc_warn_flag in '' yes
7820 do
7821 # Use a header file that comes with gcc, so configuring glibc
7822 # with a fresh cross-compiler works.
7823 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7824 # <limits.h> exists even on freestanding compilers.
7825 # On the NeXT, cc -E runs the code through the compiler's parser,
7826 # not just through cpp. "Syntax error" is here to catch this case.
7827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7828 /* end confdefs.h. */
7829 #ifdef __STDC__
7830 # include <limits.h>
7831 #else
7832 # include <assert.h>
7833 #endif
7834 Syntax error
7835 _ACEOF
7836 if ac_fn_c_try_cpp "$LINENO"; then :
7837
7838 else
7839 # Broken: fails on valid input.
7840 continue
7841 fi
7842 rm -f conftest.err conftest.i conftest.$ac_ext
7843
7844 # OK, works on sane cases. Now check whether nonexistent headers
7845 # can be detected and how.
7846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7847 /* end confdefs.h. */
7848 #include <ac_nonexistent.h>
7849 _ACEOF
7850 if ac_fn_c_try_cpp "$LINENO"; then :
7851 # Broken: success on invalid input.
7852 continue
7853 else
7854 # Passes both tests.
7855 ac_preproc_ok=:
7856 break
7857 fi
7858 rm -f conftest.err conftest.i conftest.$ac_ext
7859
7860 done
7861 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7862 rm -f conftest.i conftest.err conftest.$ac_ext
7863 if $ac_preproc_ok; then :
7864
7865 else
7866 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7867 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7868 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7869 See \`config.log' for more details" "$LINENO" 5; }
7870 fi
7871
7872 ac_ext=c
7873 ac_cpp='$CPP $CPPFLAGS'
7874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7877
7878
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7880 $as_echo_n "checking for ANSI C header files... " >&6; }
7881 if ${ac_cv_header_stdc+:} false; then :
7882 $as_echo_n "(cached) " >&6
7883 else
7884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7885 /* end confdefs.h. */
7886 #include <stdlib.h>
7887 #include <stdarg.h>
7888 #include <string.h>
7889 #include <float.h>
7890
7891 int
7892 main ()
7893 {
7894
7895 ;
7896 return 0;
7897 }
7898 _ACEOF
7899 if ac_fn_c_try_compile "$LINENO"; then :
7900 ac_cv_header_stdc=yes
7901 else
7902 ac_cv_header_stdc=no
7903 fi
7904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7905
7906 if test $ac_cv_header_stdc = yes; then
7907 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7909 /* end confdefs.h. */
7910 #include <string.h>
7911
7912 _ACEOF
7913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7914 $EGREP "memchr" >/dev/null 2>&1; then :
7915
7916 else
7917 ac_cv_header_stdc=no
7918 fi
7919 rm -f conftest*
7920
7921 fi
7922
7923 if test $ac_cv_header_stdc = yes; then
7924 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7926 /* end confdefs.h. */
7927 #include <stdlib.h>
7928
7929 _ACEOF
7930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7931 $EGREP "free" >/dev/null 2>&1; then :
7932
7933 else
7934 ac_cv_header_stdc=no
7935 fi
7936 rm -f conftest*
7937
7938 fi
7939
7940 if test $ac_cv_header_stdc = yes; then
7941 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7942 if test "$cross_compiling" = yes; then :
7943 :
7944 else
7945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7946 /* end confdefs.h. */
7947 #include <ctype.h>
7948 #include <stdlib.h>
7949 #if ((' ' & 0x0FF) == 0x020)
7950 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7951 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7952 #else
7953 # define ISLOWER(c) \
7954 (('a' <= (c) && (c) <= 'i') \
7955 || ('j' <= (c) && (c) <= 'r') \
7956 || ('s' <= (c) && (c) <= 'z'))
7957 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7958 #endif
7959
7960 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7961 int
7962 main ()
7963 {
7964 int i;
7965 for (i = 0; i < 256; i++)
7966 if (XOR (islower (i), ISLOWER (i))
7967 || toupper (i) != TOUPPER (i))
7968 return 2;
7969 return 0;
7970 }
7971 _ACEOF
7972 if ac_fn_c_try_run "$LINENO"; then :
7973
7974 else
7975 ac_cv_header_stdc=no
7976 fi
7977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7978 conftest.$ac_objext conftest.beam conftest.$ac_ext
7979 fi
7980
7981 fi
7982 fi
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7984 $as_echo "$ac_cv_header_stdc" >&6; }
7985 if test $ac_cv_header_stdc = yes; then
7986
7987 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7988
7989 fi
7990
7991 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7992 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7993 inttypes.h stdint.h unistd.h
7994 do :
7995 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7996 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7997 "
7998 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7999 cat >>confdefs.h <<_ACEOF
8000 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8001 _ACEOF
8002
8003 fi
8004
8005 done
8006
8007
8008 for ac_header in dlfcn.h
8009 do :
8010 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8011 "
8012 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8013 cat >>confdefs.h <<_ACEOF
8014 #define HAVE_DLFCN_H 1
8015 _ACEOF
8016
8017 fi
8018
8019 done
8020
8021
8022
8023
8024
8025 # Set options
8026 enable_dlopen=yes
8027
8028
8029
8030
8031 enable_win32_dll=no
8032
8033
8034 # Check whether --enable-shared was given.
8035 if test "${enable_shared+set}" = set; then :
8036 enableval=$enable_shared; p=${PACKAGE-default}
8037 case $enableval in
8038 yes) enable_shared=yes ;;
8039 no) enable_shared=no ;;
8040 *)
8041 enable_shared=no
8042 # Look at the argument we got. We use all the common list separators.
8043 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8044 for pkg in $enableval; do
8045 IFS="$lt_save_ifs"
8046 if test "X$pkg" = "X$p"; then
8047 enable_shared=yes
8048 fi
8049 done
8050 IFS="$lt_save_ifs"
8051 ;;
8052 esac
8053 else
8054 enable_shared=yes
8055 fi
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065 # Check whether --enable-static was given.
8066 if test "${enable_static+set}" = set; then :
8067 enableval=$enable_static; p=${PACKAGE-default}
8068 case $enableval in
8069 yes) enable_static=yes ;;
8070 no) enable_static=no ;;
8071 *)
8072 enable_static=no
8073 # Look at the argument we got. We use all the common list separators.
8074 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8075 for pkg in $enableval; do
8076 IFS="$lt_save_ifs"
8077 if test "X$pkg" = "X$p"; then
8078 enable_static=yes
8079 fi
8080 done
8081 IFS="$lt_save_ifs"
8082 ;;
8083 esac
8084 else
8085 enable_static=yes
8086 fi
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097 # Check whether --with-pic was given.
8098 if test "${with_pic+set}" = set; then :
8099 withval=$with_pic; pic_mode="$withval"
8100 else
8101 pic_mode=default
8102 fi
8103
8104
8105 test -z "$pic_mode" && pic_mode=default
8106
8107
8108
8109
8110
8111
8112
8113 # Check whether --enable-fast-install was given.
8114 if test "${enable_fast_install+set}" = set; then :
8115 enableval=$enable_fast_install; p=${PACKAGE-default}
8116 case $enableval in
8117 yes) enable_fast_install=yes ;;
8118 no) enable_fast_install=no ;;
8119 *)
8120 enable_fast_install=no
8121 # Look at the argument we got. We use all the common list separators.
8122 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8123 for pkg in $enableval; do
8124 IFS="$lt_save_ifs"
8125 if test "X$pkg" = "X$p"; then
8126 enable_fast_install=yes
8127 fi
8128 done
8129 IFS="$lt_save_ifs"
8130 ;;
8131 esac
8132 else
8133 enable_fast_install=yes
8134 fi
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146 # This can be used to rebuild libtool when needed
8147 LIBTOOL_DEPS="$ltmain"
8148
8149 # Always use our own libtool.
8150 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177 test -z "$LN_S" && LN_S="ln -s"
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192 if test -n "${ZSH_VERSION+set}" ; then
8193 setopt NO_GLOB_SUBST
8194 fi
8195
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8197 $as_echo_n "checking for objdir... " >&6; }
8198 if ${lt_cv_objdir+:} false; then :
8199 $as_echo_n "(cached) " >&6
8200 else
8201 rm -f .libs 2>/dev/null
8202 mkdir .libs 2>/dev/null
8203 if test -d .libs; then
8204 lt_cv_objdir=.libs
8205 else
8206 # MS-DOS does not allow filenames that begin with a dot.
8207 lt_cv_objdir=_libs
8208 fi
8209 rmdir .libs 2>/dev/null
8210 fi
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8212 $as_echo "$lt_cv_objdir" >&6; }
8213 objdir=$lt_cv_objdir
8214
8215
8216
8217
8218
8219 cat >>confdefs.h <<_ACEOF
8220 #define LT_OBJDIR "$lt_cv_objdir/"
8221 _ACEOF
8222
8223
8224
8225
8226 case $host_os in
8227 aix3*)
8228 # AIX sometimes has problems with the GCC collect2 program. For some
8229 # reason, if we set the COLLECT_NAMES environment variable, the problems
8230 # vanish in a puff of smoke.
8231 if test "X${COLLECT_NAMES+set}" != Xset; then
8232 COLLECT_NAMES=
8233 export COLLECT_NAMES
8234 fi
8235 ;;
8236 esac
8237
8238 # Global variables:
8239 ofile=libtool
8240 can_build_shared=yes
8241
8242 # All known linkers require a `.a' archive for static linking (except MSVC,
8243 # which needs '.lib').
8244 libext=a
8245
8246 with_gnu_ld="$lt_cv_prog_gnu_ld"
8247
8248 old_CC="$CC"
8249 old_CFLAGS="$CFLAGS"
8250
8251 # Set sane defaults for various variables
8252 test -z "$CC" && CC=cc
8253 test -z "$LTCC" && LTCC=$CC
8254 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8255 test -z "$LD" && LD=ld
8256 test -z "$ac_objext" && ac_objext=o
8257
8258 for cc_temp in $compiler""; do
8259 case $cc_temp in
8260 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8261 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8262 \-*) ;;
8263 *) break;;
8264 esac
8265 done
8266 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8267
8268
8269 # Only perform the check for file, if the check method requires it
8270 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8271 case $deplibs_check_method in
8272 file_magic*)
8273 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8275 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8276 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8277 $as_echo_n "(cached) " >&6
8278 else
8279 case $MAGIC_CMD in
8280 [\\/*] | ?:[\\/]*)
8281 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8282 ;;
8283 *)
8284 lt_save_MAGIC_CMD="$MAGIC_CMD"
8285 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8286 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8287 for ac_dir in $ac_dummy; do
8288 IFS="$lt_save_ifs"
8289 test -z "$ac_dir" && ac_dir=.
8290 if test -f $ac_dir/${ac_tool_prefix}file; then
8291 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8292 if test -n "$file_magic_test_file"; then
8293 case $deplibs_check_method in
8294 "file_magic "*)
8295 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8296 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8297 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8298 $EGREP "$file_magic_regex" > /dev/null; then
8299 :
8300 else
8301 cat <<_LT_EOF 1>&2
8302
8303 *** Warning: the command libtool uses to detect shared libraries,
8304 *** $file_magic_cmd, produces output that libtool cannot recognize.
8305 *** The result is that libtool may fail to recognize shared libraries
8306 *** as such. This will affect the creation of libtool libraries that
8307 *** depend on shared libraries, but programs linked with such libtool
8308 *** libraries will work regardless of this problem. Nevertheless, you
8309 *** may want to report the problem to your system manager and/or to
8310 *** bug-libtool@gnu.org
8311
8312 _LT_EOF
8313 fi ;;
8314 esac
8315 fi
8316 break
8317 fi
8318 done
8319 IFS="$lt_save_ifs"
8320 MAGIC_CMD="$lt_save_MAGIC_CMD"
8321 ;;
8322 esac
8323 fi
8324
8325 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8326 if test -n "$MAGIC_CMD"; then
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8328 $as_echo "$MAGIC_CMD" >&6; }
8329 else
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8331 $as_echo "no" >&6; }
8332 fi
8333
8334
8335
8336
8337
8338 if test -z "$lt_cv_path_MAGIC_CMD"; then
8339 if test -n "$ac_tool_prefix"; then
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8341 $as_echo_n "checking for file... " >&6; }
8342 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8343 $as_echo_n "(cached) " >&6
8344 else
8345 case $MAGIC_CMD in
8346 [\\/*] | ?:[\\/]*)
8347 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8348 ;;
8349 *)
8350 lt_save_MAGIC_CMD="$MAGIC_CMD"
8351 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8352 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8353 for ac_dir in $ac_dummy; do
8354 IFS="$lt_save_ifs"
8355 test -z "$ac_dir" && ac_dir=.
8356 if test -f $ac_dir/file; then
8357 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8358 if test -n "$file_magic_test_file"; then
8359 case $deplibs_check_method in
8360 "file_magic "*)
8361 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8362 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8363 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8364 $EGREP "$file_magic_regex" > /dev/null; then
8365 :
8366 else
8367 cat <<_LT_EOF 1>&2
8368
8369 *** Warning: the command libtool uses to detect shared libraries,
8370 *** $file_magic_cmd, produces output that libtool cannot recognize.
8371 *** The result is that libtool may fail to recognize shared libraries
8372 *** as such. This will affect the creation of libtool libraries that
8373 *** depend on shared libraries, but programs linked with such libtool
8374 *** libraries will work regardless of this problem. Nevertheless, you
8375 *** may want to report the problem to your system manager and/or to
8376 *** bug-libtool@gnu.org
8377
8378 _LT_EOF
8379 fi ;;
8380 esac
8381 fi
8382 break
8383 fi
8384 done
8385 IFS="$lt_save_ifs"
8386 MAGIC_CMD="$lt_save_MAGIC_CMD"
8387 ;;
8388 esac
8389 fi
8390
8391 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8392 if test -n "$MAGIC_CMD"; then
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8394 $as_echo "$MAGIC_CMD" >&6; }
8395 else
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8397 $as_echo "no" >&6; }
8398 fi
8399
8400
8401 else
8402 MAGIC_CMD=:
8403 fi
8404 fi
8405
8406 fi
8407 ;;
8408 esac
8409
8410 # Use C for the default configuration in the libtool script
8411
8412 lt_save_CC="$CC"
8413 ac_ext=c
8414 ac_cpp='$CPP $CPPFLAGS'
8415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8418
8419
8420 # Source file extension for C test sources.
8421 ac_ext=c
8422
8423 # Object file extension for compiled C test sources.
8424 objext=o
8425 objext=$objext
8426
8427 # Code to be used in simple compile tests
8428 lt_simple_compile_test_code="int some_variable = 0;"
8429
8430 # Code to be used in simple link tests
8431 lt_simple_link_test_code='int main(){return(0);}'
8432
8433
8434
8435
8436
8437
8438
8439 # If no C compiler was specified, use CC.
8440 LTCC=${LTCC-"$CC"}
8441
8442 # If no C compiler flags were specified, use CFLAGS.
8443 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8444
8445 # Allow CC to be a program name with arguments.
8446 compiler=$CC
8447
8448 # Save the default compiler, since it gets overwritten when the other
8449 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8450 compiler_DEFAULT=$CC
8451
8452 # save warnings/boilerplate of simple test code
8453 ac_outfile=conftest.$ac_objext
8454 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8455 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8456 _lt_compiler_boilerplate=`cat conftest.err`
8457 $RM conftest*
8458
8459 ac_outfile=conftest.$ac_objext
8460 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8461 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8462 _lt_linker_boilerplate=`cat conftest.err`
8463 $RM -r conftest*
8464
8465
8466 ## CAVEAT EMPTOR:
8467 ## There is no encapsulation within the following macros, do not change
8468 ## the running order or otherwise move them around unless you know exactly
8469 ## what you are doing...
8470 if test -n "$compiler"; then
8471
8472 lt_prog_compiler_no_builtin_flag=
8473
8474 if test "$GCC" = yes; then
8475 case $cc_basename in
8476 nvcc*)
8477 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8478 *)
8479 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8480 esac
8481
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8483 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8484 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8485 $as_echo_n "(cached) " >&6
8486 else
8487 lt_cv_prog_compiler_rtti_exceptions=no
8488 ac_outfile=conftest.$ac_objext
8489 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8490 lt_compiler_flag="-fno-rtti -fno-exceptions"
8491 # Insert the option either (1) after the last *FLAGS variable, or
8492 # (2) before a word containing "conftest.", or (3) at the end.
8493 # Note that $ac_compile itself does not contain backslashes and begins
8494 # with a dollar sign (not a hyphen), so the echo should work correctly.
8495 # The option is referenced via a variable to avoid confusing sed.
8496 lt_compile=`echo "$ac_compile" | $SED \
8497 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8498 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8499 -e 's:$: $lt_compiler_flag:'`
8500 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8501 (eval "$lt_compile" 2>conftest.err)
8502 ac_status=$?
8503 cat conftest.err >&5
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 if (exit $ac_status) && test -s "$ac_outfile"; then
8506 # The compiler can only warn and ignore the option if not recognized
8507 # So say no if there are warnings other than the usual output.
8508 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8509 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8510 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8511 lt_cv_prog_compiler_rtti_exceptions=yes
8512 fi
8513 fi
8514 $RM conftest*
8515
8516 fi
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8518 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8519
8520 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8521 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8522 else
8523 :
8524 fi
8525
8526 fi
8527
8528
8529
8530
8531
8532
8533 lt_prog_compiler_wl=
8534 lt_prog_compiler_pic=
8535 lt_prog_compiler_static=
8536
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8538 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8539
8540 if test "$GCC" = yes; then
8541 lt_prog_compiler_wl='-Wl,'
8542 lt_prog_compiler_static='-static'
8543
8544 case $host_os in
8545 aix*)
8546 # All AIX code is PIC.
8547 if test "$host_cpu" = ia64; then
8548 # AIX 5 now supports IA64 processor
8549 lt_prog_compiler_static='-Bstatic'
8550 fi
8551 lt_prog_compiler_pic='-fPIC'
8552 ;;
8553
8554 amigaos*)
8555 case $host_cpu in
8556 powerpc)
8557 # see comment about AmigaOS4 .so support
8558 lt_prog_compiler_pic='-fPIC'
8559 ;;
8560 m68k)
8561 # FIXME: we need at least 68020 code to build shared libraries, but
8562 # adding the `-m68020' flag to GCC prevents building anything better,
8563 # like `-m68040'.
8564 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8565 ;;
8566 esac
8567 ;;
8568
8569 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8570 # PIC is the default for these OSes.
8571 ;;
8572
8573 mingw* | cygwin* | pw32* | os2* | cegcc*)
8574 # This hack is so that the source file can tell whether it is being
8575 # built for inclusion in a dll (and should export symbols for example).
8576 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8577 # (--disable-auto-import) libraries
8578 lt_prog_compiler_pic='-DDLL_EXPORT'
8579 ;;
8580
8581 darwin* | rhapsody*)
8582 # PIC is the default on this platform
8583 # Common symbols not allowed in MH_DYLIB files
8584 lt_prog_compiler_pic='-fno-common'
8585 ;;
8586
8587 haiku*)
8588 # PIC is the default for Haiku.
8589 # The "-static" flag exists, but is broken.
8590 lt_prog_compiler_static=
8591 ;;
8592
8593 hpux*)
8594 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8595 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8596 # sets the default TLS model and affects inlining.
8597 case $host_cpu in
8598 hppa*64*)
8599 # +Z the default
8600 ;;
8601 *)
8602 lt_prog_compiler_pic='-fPIC'
8603 ;;
8604 esac
8605 ;;
8606
8607 interix[3-9]*)
8608 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8609 # Instead, we relocate shared libraries at runtime.
8610 ;;
8611
8612 msdosdjgpp*)
8613 # Just because we use GCC doesn't mean we suddenly get shared libraries
8614 # on systems that don't support them.
8615 lt_prog_compiler_can_build_shared=no
8616 enable_shared=no
8617 ;;
8618
8619 *nto* | *qnx*)
8620 # QNX uses GNU C++, but need to define -shared option too, otherwise
8621 # it will coredump.
8622 lt_prog_compiler_pic='-fPIC -shared'
8623 ;;
8624
8625 sysv4*MP*)
8626 if test -d /usr/nec; then
8627 lt_prog_compiler_pic=-Kconform_pic
8628 fi
8629 ;;
8630
8631 *)
8632 lt_prog_compiler_pic='-fPIC'
8633 ;;
8634 esac
8635
8636 case $cc_basename in
8637 nvcc*) # Cuda Compiler Driver 2.2
8638 lt_prog_compiler_wl='-Xlinker '
8639 lt_prog_compiler_pic='-Xcompiler -fPIC'
8640 ;;
8641 esac
8642 else
8643 # PORTME Check for flag to pass linker flags through the system compiler.
8644 case $host_os in
8645 aix*)
8646 lt_prog_compiler_wl='-Wl,'
8647 if test "$host_cpu" = ia64; then
8648 # AIX 5 now supports IA64 processor
8649 lt_prog_compiler_static='-Bstatic'
8650 else
8651 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8652 fi
8653 ;;
8654
8655 mingw* | cygwin* | pw32* | os2* | cegcc*)
8656 # This hack is so that the source file can tell whether it is being
8657 # built for inclusion in a dll (and should export symbols for example).
8658 lt_prog_compiler_pic='-DDLL_EXPORT'
8659 ;;
8660
8661 hpux9* | hpux10* | hpux11*)
8662 lt_prog_compiler_wl='-Wl,'
8663 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8664 # not for PA HP-UX.
8665 case $host_cpu in
8666 hppa*64*|ia64*)
8667 # +Z the default
8668 ;;
8669 *)
8670 lt_prog_compiler_pic='+Z'
8671 ;;
8672 esac
8673 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8674 lt_prog_compiler_static='${wl}-a ${wl}archive'
8675 ;;
8676
8677 irix5* | irix6* | nonstopux*)
8678 lt_prog_compiler_wl='-Wl,'
8679 # PIC (with -KPIC) is the default.
8680 lt_prog_compiler_static='-non_shared'
8681 ;;
8682
8683 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8684 case $cc_basename in
8685 # old Intel for x86_64 which still supported -KPIC.
8686 ecc*)
8687 lt_prog_compiler_wl='-Wl,'
8688 lt_prog_compiler_pic='-KPIC'
8689 lt_prog_compiler_static='-static'
8690 ;;
8691 # icc used to be incompatible with GCC.
8692 # ICC 10 doesn't accept -KPIC any more.
8693 icc* | ifort*)
8694 lt_prog_compiler_wl='-Wl,'
8695 lt_prog_compiler_pic='-fPIC'
8696 lt_prog_compiler_static='-static'
8697 ;;
8698 # Lahey Fortran 8.1.
8699 lf95*)
8700 lt_prog_compiler_wl='-Wl,'
8701 lt_prog_compiler_pic='--shared'
8702 lt_prog_compiler_static='--static'
8703 ;;
8704 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8705 # Portland Group compilers (*not* the Pentium gcc compiler,
8706 # which looks to be a dead project)
8707 lt_prog_compiler_wl='-Wl,'
8708 lt_prog_compiler_pic='-fpic'
8709 lt_prog_compiler_static='-Bstatic'
8710 ;;
8711 ccc*)
8712 lt_prog_compiler_wl='-Wl,'
8713 # All Alpha code is PIC.
8714 lt_prog_compiler_static='-non_shared'
8715 ;;
8716 xl* | bgxl* | bgf* | mpixl*)
8717 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8718 lt_prog_compiler_wl='-Wl,'
8719 lt_prog_compiler_pic='-qpic'
8720 lt_prog_compiler_static='-qstaticlink'
8721 ;;
8722 *)
8723 case `$CC -V 2>&1 | sed 5q` in
8724 *Sun\ F* | *Sun*Fortran*)
8725 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8726 lt_prog_compiler_pic='-KPIC'
8727 lt_prog_compiler_static='-Bstatic'
8728 lt_prog_compiler_wl=''
8729 ;;
8730 *Sun\ C*)
8731 # Sun C 5.9
8732 lt_prog_compiler_pic='-KPIC'
8733 lt_prog_compiler_static='-Bstatic'
8734 lt_prog_compiler_wl='-Wl,'
8735 ;;
8736 esac
8737 ;;
8738 esac
8739 ;;
8740
8741 newsos6)
8742 lt_prog_compiler_pic='-KPIC'
8743 lt_prog_compiler_static='-Bstatic'
8744 ;;
8745
8746 *nto* | *qnx*)
8747 # QNX uses GNU C++, but need to define -shared option too, otherwise
8748 # it will coredump.
8749 lt_prog_compiler_pic='-fPIC -shared'
8750 ;;
8751
8752 osf3* | osf4* | osf5*)
8753 lt_prog_compiler_wl='-Wl,'
8754 # All OSF/1 code is PIC.
8755 lt_prog_compiler_static='-non_shared'
8756 ;;
8757
8758 rdos*)
8759 lt_prog_compiler_static='-non_shared'
8760 ;;
8761
8762 solaris*)
8763 lt_prog_compiler_pic='-KPIC'
8764 lt_prog_compiler_static='-Bstatic'
8765 case $cc_basename in
8766 f77* | f90* | f95*)
8767 lt_prog_compiler_wl='-Qoption ld ';;
8768 *)
8769 lt_prog_compiler_wl='-Wl,';;
8770 esac
8771 ;;
8772
8773 sunos4*)
8774 lt_prog_compiler_wl='-Qoption ld '
8775 lt_prog_compiler_pic='-PIC'
8776 lt_prog_compiler_static='-Bstatic'
8777 ;;
8778
8779 sysv4 | sysv4.2uw2* | sysv4.3*)
8780 lt_prog_compiler_wl='-Wl,'
8781 lt_prog_compiler_pic='-KPIC'
8782 lt_prog_compiler_static='-Bstatic'
8783 ;;
8784
8785 sysv4*MP*)
8786 if test -d /usr/nec ;then
8787 lt_prog_compiler_pic='-Kconform_pic'
8788 lt_prog_compiler_static='-Bstatic'
8789 fi
8790 ;;
8791
8792 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8793 lt_prog_compiler_wl='-Wl,'
8794 lt_prog_compiler_pic='-KPIC'
8795 lt_prog_compiler_static='-Bstatic'
8796 ;;
8797
8798 unicos*)
8799 lt_prog_compiler_wl='-Wl,'
8800 lt_prog_compiler_can_build_shared=no
8801 ;;
8802
8803 uts4*)
8804 lt_prog_compiler_pic='-pic'
8805 lt_prog_compiler_static='-Bstatic'
8806 ;;
8807
8808 *)
8809 lt_prog_compiler_can_build_shared=no
8810 ;;
8811 esac
8812 fi
8813
8814 case $host_os in
8815 # For platforms which do not support PIC, -DPIC is meaningless:
8816 *djgpp*)
8817 lt_prog_compiler_pic=
8818 ;;
8819 *)
8820 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8821 ;;
8822 esac
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8824 $as_echo "$lt_prog_compiler_pic" >&6; }
8825
8826
8827
8828
8829
8830
8831 #
8832 # Check to make sure the PIC flag actually works.
8833 #
8834 if test -n "$lt_prog_compiler_pic"; then
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8836 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8837 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8838 $as_echo_n "(cached) " >&6
8839 else
8840 lt_cv_prog_compiler_pic_works=no
8841 ac_outfile=conftest.$ac_objext
8842 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8843 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8844 # Insert the option either (1) after the last *FLAGS variable, or
8845 # (2) before a word containing "conftest.", or (3) at the end.
8846 # Note that $ac_compile itself does not contain backslashes and begins
8847 # with a dollar sign (not a hyphen), so the echo should work correctly.
8848 # The option is referenced via a variable to avoid confusing sed.
8849 lt_compile=`echo "$ac_compile" | $SED \
8850 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8851 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8852 -e 's:$: $lt_compiler_flag:'`
8853 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8854 (eval "$lt_compile" 2>conftest.err)
8855 ac_status=$?
8856 cat conftest.err >&5
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 if (exit $ac_status) && test -s "$ac_outfile"; then
8859 # The compiler can only warn and ignore the option if not recognized
8860 # So say no if there are warnings other than the usual output.
8861 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8862 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8863 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8864 lt_cv_prog_compiler_pic_works=yes
8865 fi
8866 fi
8867 $RM conftest*
8868
8869 fi
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8871 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8872
8873 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8874 case $lt_prog_compiler_pic in
8875 "" | " "*) ;;
8876 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8877 esac
8878 else
8879 lt_prog_compiler_pic=
8880 lt_prog_compiler_can_build_shared=no
8881 fi
8882
8883 fi
8884
8885
8886
8887
8888
8889
8890 #
8891 # Check to make sure the static flag actually works.
8892 #
8893 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8895 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8896 if ${lt_cv_prog_compiler_static_works+:} false; then :
8897 $as_echo_n "(cached) " >&6
8898 else
8899 lt_cv_prog_compiler_static_works=no
8900 save_LDFLAGS="$LDFLAGS"
8901 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8902 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8903 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8904 # The linker can only warn and ignore the option if not recognized
8905 # So say no if there are warnings
8906 if test -s conftest.err; then
8907 # Append any errors to the config.log.
8908 cat conftest.err 1>&5
8909 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8910 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8911 if diff conftest.exp conftest.er2 >/dev/null; then
8912 lt_cv_prog_compiler_static_works=yes
8913 fi
8914 else
8915 lt_cv_prog_compiler_static_works=yes
8916 fi
8917 fi
8918 $RM -r conftest*
8919 LDFLAGS="$save_LDFLAGS"
8920
8921 fi
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8923 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8924
8925 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8926 :
8927 else
8928 lt_prog_compiler_static=
8929 fi
8930
8931
8932
8933
8934
8935
8936
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8938 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8939 if ${lt_cv_prog_compiler_c_o+:} false; then :
8940 $as_echo_n "(cached) " >&6
8941 else
8942 lt_cv_prog_compiler_c_o=no
8943 $RM -r conftest 2>/dev/null
8944 mkdir conftest
8945 cd conftest
8946 mkdir out
8947 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8948
8949 lt_compiler_flag="-o out/conftest2.$ac_objext"
8950 # Insert the option either (1) after the last *FLAGS variable, or
8951 # (2) before a word containing "conftest.", or (3) at the end.
8952 # Note that $ac_compile itself does not contain backslashes and begins
8953 # with a dollar sign (not a hyphen), so the echo should work correctly.
8954 lt_compile=`echo "$ac_compile" | $SED \
8955 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8956 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8957 -e 's:$: $lt_compiler_flag:'`
8958 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8959 (eval "$lt_compile" 2>out/conftest.err)
8960 ac_status=$?
8961 cat out/conftest.err >&5
8962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8964 then
8965 # The compiler can only warn and ignore the option if not recognized
8966 # So say no if there are warnings
8967 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8968 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8969 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8970 lt_cv_prog_compiler_c_o=yes
8971 fi
8972 fi
8973 chmod u+w . 2>&5
8974 $RM conftest*
8975 # SGI C++ compiler will create directory out/ii_files/ for
8976 # template instantiation
8977 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8978 $RM out/* && rmdir out
8979 cd ..
8980 $RM -r conftest
8981 $RM conftest*
8982
8983 fi
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8985 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8986
8987
8988
8989
8990
8991
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8993 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8994 if ${lt_cv_prog_compiler_c_o+:} false; then :
8995 $as_echo_n "(cached) " >&6
8996 else
8997 lt_cv_prog_compiler_c_o=no
8998 $RM -r conftest 2>/dev/null
8999 mkdir conftest
9000 cd conftest
9001 mkdir out
9002 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9003
9004 lt_compiler_flag="-o out/conftest2.$ac_objext"
9005 # Insert the option either (1) after the last *FLAGS variable, or
9006 # (2) before a word containing "conftest.", or (3) at the end.
9007 # Note that $ac_compile itself does not contain backslashes and begins
9008 # with a dollar sign (not a hyphen), so the echo should work correctly.
9009 lt_compile=`echo "$ac_compile" | $SED \
9010 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9011 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9012 -e 's:$: $lt_compiler_flag:'`
9013 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9014 (eval "$lt_compile" 2>out/conftest.err)
9015 ac_status=$?
9016 cat out/conftest.err >&5
9017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9019 then
9020 # The compiler can only warn and ignore the option if not recognized
9021 # So say no if there are warnings
9022 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9023 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9024 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9025 lt_cv_prog_compiler_c_o=yes
9026 fi
9027 fi
9028 chmod u+w . 2>&5
9029 $RM conftest*
9030 # SGI C++ compiler will create directory out/ii_files/ for
9031 # template instantiation
9032 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9033 $RM out/* && rmdir out
9034 cd ..
9035 $RM -r conftest
9036 $RM conftest*
9037
9038 fi
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9040 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9041
9042
9043
9044
9045 hard_links="nottested"
9046 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9047 # do not overwrite the value of need_locks provided by the user
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9049 $as_echo_n "checking if we can lock with hard links... " >&6; }
9050 hard_links=yes
9051 $RM conftest*
9052 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9053 touch conftest.a
9054 ln conftest.a conftest.b 2>&5 || hard_links=no
9055 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9057 $as_echo "$hard_links" >&6; }
9058 if test "$hard_links" = no; then
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9060 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9061 need_locks=warn
9062 fi
9063 else
9064 need_locks=no
9065 fi
9066
9067
9068
9069
9070
9071
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9073 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9074
9075 runpath_var=
9076 allow_undefined_flag=
9077 always_export_symbols=no
9078 archive_cmds=
9079 archive_expsym_cmds=
9080 compiler_needs_object=no
9081 enable_shared_with_static_runtimes=no
9082 export_dynamic_flag_spec=
9083 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9084 hardcode_automatic=no
9085 hardcode_direct=no
9086 hardcode_direct_absolute=no
9087 hardcode_libdir_flag_spec=
9088 hardcode_libdir_flag_spec_ld=
9089 hardcode_libdir_separator=
9090 hardcode_minus_L=no
9091 hardcode_shlibpath_var=unsupported
9092 inherit_rpath=no
9093 link_all_deplibs=unknown
9094 module_cmds=
9095 module_expsym_cmds=
9096 old_archive_from_new_cmds=
9097 old_archive_from_expsyms_cmds=
9098 thread_safe_flag_spec=
9099 whole_archive_flag_spec=
9100 # include_expsyms should be a list of space-separated symbols to be *always*
9101 # included in the symbol list
9102 include_expsyms=
9103 # exclude_expsyms can be an extended regexp of symbols to exclude
9104 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9105 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9106 # as well as any symbol that contains `d'.
9107 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9108 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9109 # platforms (ab)use it in PIC code, but their linkers get confused if
9110 # the symbol is explicitly referenced. Since portable code cannot
9111 # rely on this symbol name, it's probably fine to never include it in
9112 # preloaded symbol tables.
9113 # Exclude shared library initialization/finalization symbols.
9114 extract_expsyms_cmds=
9115
9116 case $host_os in
9117 cygwin* | mingw* | pw32* | cegcc*)
9118 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9119 # When not using gcc, we currently assume that we are using
9120 # Microsoft Visual C++.
9121 if test "$GCC" != yes; then
9122 with_gnu_ld=no
9123 fi
9124 ;;
9125 interix*)
9126 # we just hope/assume this is gcc and not c89 (= MSVC++)
9127 with_gnu_ld=yes
9128 ;;
9129 openbsd*)
9130 with_gnu_ld=no
9131 ;;
9132 esac
9133
9134 ld_shlibs=yes
9135
9136 # On some targets, GNU ld is compatible enough with the native linker
9137 # that we're better off using the native interface for both.
9138 lt_use_gnu_ld_interface=no
9139 if test "$with_gnu_ld" = yes; then
9140 case $host_os in
9141 aix*)
9142 # The AIX port of GNU ld has always aspired to compatibility
9143 # with the native linker. However, as the warning in the GNU ld
9144 # block says, versions before 2.19.5* couldn't really create working
9145 # shared libraries, regardless of the interface used.
9146 case `$LD -v 2>&1` in
9147 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9148 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9149 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9150 *)
9151 lt_use_gnu_ld_interface=yes
9152 ;;
9153 esac
9154 ;;
9155 *)
9156 lt_use_gnu_ld_interface=yes
9157 ;;
9158 esac
9159 fi
9160
9161 if test "$lt_use_gnu_ld_interface" = yes; then
9162 # If archive_cmds runs LD, not CC, wlarc should be empty
9163 wlarc='${wl}'
9164
9165 # Set some defaults for GNU ld with shared library support. These
9166 # are reset later if shared libraries are not supported. Putting them
9167 # here allows them to be overridden if necessary.
9168 runpath_var=LD_RUN_PATH
9169 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9170 export_dynamic_flag_spec='${wl}--export-dynamic'
9171 # ancient GNU ld didn't support --whole-archive et. al.
9172 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9173 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9174 else
9175 whole_archive_flag_spec=
9176 fi
9177 supports_anon_versioning=no
9178 case `$LD -v 2>&1` in
9179 *GNU\ gold*) supports_anon_versioning=yes ;;
9180 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9181 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9182 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9183 *\ 2.11.*) ;; # other 2.11 versions
9184 *) supports_anon_versioning=yes ;;
9185 esac
9186
9187 # See if GNU ld supports shared libraries.
9188 case $host_os in
9189 aix[3-9]*)
9190 # On AIX/PPC, the GNU linker is very broken
9191 if test "$host_cpu" != ia64; then
9192 ld_shlibs=no
9193 cat <<_LT_EOF 1>&2
9194
9195 *** Warning: the GNU linker, at least up to release 2.19, is reported
9196 *** to be unable to reliably create shared libraries on AIX.
9197 *** Therefore, libtool is disabling shared libraries support. If you
9198 *** really care for shared libraries, you may want to install binutils
9199 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9200 *** You will then need to restart the configuration process.
9201
9202 _LT_EOF
9203 fi
9204 ;;
9205
9206 amigaos*)
9207 case $host_cpu in
9208 powerpc)
9209 # see comment about AmigaOS4 .so support
9210 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9211 archive_expsym_cmds=''
9212 ;;
9213 m68k)
9214 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)'
9215 hardcode_libdir_flag_spec='-L$libdir'
9216 hardcode_minus_L=yes
9217 ;;
9218 esac
9219 ;;
9220
9221 beos*)
9222 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9223 allow_undefined_flag=unsupported
9224 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9225 # support --undefined. This deserves some investigation. FIXME
9226 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9227 else
9228 ld_shlibs=no
9229 fi
9230 ;;
9231
9232 cygwin* | mingw* | pw32* | cegcc*)
9233 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9234 # as there is no search path for DLLs.
9235 hardcode_libdir_flag_spec='-L$libdir'
9236 export_dynamic_flag_spec='${wl}--export-all-symbols'
9237 allow_undefined_flag=unsupported
9238 always_export_symbols=no
9239 enable_shared_with_static_runtimes=yes
9240 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9241
9242 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9243 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9244 # If the export-symbols file already is a .def file (1st line
9245 # is EXPORTS), use it as is; otherwise, prepend...
9246 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9247 cp $export_symbols $output_objdir/$soname.def;
9248 else
9249 echo EXPORTS > $output_objdir/$soname.def;
9250 cat $export_symbols >> $output_objdir/$soname.def;
9251 fi~
9252 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9253 else
9254 ld_shlibs=no
9255 fi
9256 ;;
9257
9258 haiku*)
9259 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9260 link_all_deplibs=yes
9261 ;;
9262
9263 interix[3-9]*)
9264 hardcode_direct=no
9265 hardcode_shlibpath_var=no
9266 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9267 export_dynamic_flag_spec='${wl}-E'
9268 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9269 # Instead, shared libraries are loaded at an image base (0x10000000 by
9270 # default) and relocated if they conflict, which is a slow very memory
9271 # consuming and fragmenting process. To avoid this, we pick a random,
9272 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9273 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9274 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9275 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'
9276 ;;
9277
9278 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9279 tmp_diet=no
9280 if test "$host_os" = linux-dietlibc; then
9281 case $cc_basename in
9282 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9283 esac
9284 fi
9285 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9286 && test "$tmp_diet" = no
9287 then
9288 tmp_addflag=' $pic_flag'
9289 tmp_sharedflag='-shared'
9290 case $cc_basename,$host_cpu in
9291 pgcc*) # Portland Group C compiler
9292 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'
9293 tmp_addflag=' $pic_flag'
9294 ;;
9295 pgf77* | pgf90* | pgf95* | pgfortran*)
9296 # Portland Group f77 and f90 compilers
9297 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'
9298 tmp_addflag=' $pic_flag -Mnomain' ;;
9299 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9300 tmp_addflag=' -i_dynamic' ;;
9301 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9302 tmp_addflag=' -i_dynamic -nofor_main' ;;
9303 ifc* | ifort*) # Intel Fortran compiler
9304 tmp_addflag=' -nofor_main' ;;
9305 lf95*) # Lahey Fortran 8.1
9306 whole_archive_flag_spec=
9307 tmp_sharedflag='--shared' ;;
9308 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9309 tmp_sharedflag='-qmkshrobj'
9310 tmp_addflag= ;;
9311 nvcc*) # Cuda Compiler Driver 2.2
9312 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'
9313 compiler_needs_object=yes
9314 ;;
9315 esac
9316 case `$CC -V 2>&1 | sed 5q` in
9317 *Sun\ C*) # Sun C 5.9
9318 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'
9319 compiler_needs_object=yes
9320 tmp_sharedflag='-G' ;;
9321 *Sun\ F*) # Sun Fortran 8.3
9322 tmp_sharedflag='-G' ;;
9323 esac
9324 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9325
9326 if test "x$supports_anon_versioning" = xyes; then
9327 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9328 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9329 echo "local: *; };" >> $output_objdir/$libname.ver~
9330 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9331 fi
9332
9333 case $cc_basename in
9334 xlf* | bgf* | bgxlf* | mpixlf*)
9335 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9336 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9337 hardcode_libdir_flag_spec=
9338 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9339 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9340 if test "x$supports_anon_versioning" = xyes; then
9341 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9342 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9343 echo "local: *; };" >> $output_objdir/$libname.ver~
9344 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9345 fi
9346 ;;
9347 esac
9348 else
9349 ld_shlibs=no
9350 fi
9351 ;;
9352
9353 netbsd*)
9354 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9355 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9356 wlarc=
9357 else
9358 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9359 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9360 fi
9361 ;;
9362
9363 solaris*)
9364 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9365 ld_shlibs=no
9366 cat <<_LT_EOF 1>&2
9367
9368 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9369 *** create shared libraries on Solaris systems. Therefore, libtool
9370 *** is disabling shared libraries support. We urge you to upgrade GNU
9371 *** binutils to release 2.9.1 or newer. Another option is to modify
9372 *** your PATH or compiler configuration so that the native linker is
9373 *** used, and then restart.
9374
9375 _LT_EOF
9376 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9377 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9378 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9379 else
9380 ld_shlibs=no
9381 fi
9382 ;;
9383
9384 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9385 case `$LD -v 2>&1` in
9386 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9387 ld_shlibs=no
9388 cat <<_LT_EOF 1>&2
9389
9390 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9391 *** reliably create shared libraries on SCO systems. Therefore, libtool
9392 *** is disabling shared libraries support. We urge you to upgrade GNU
9393 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9394 *** your PATH or compiler configuration so that the native linker is
9395 *** used, and then restart.
9396
9397 _LT_EOF
9398 ;;
9399 *)
9400 # For security reasons, it is highly recommended that you always
9401 # use absolute paths for naming shared libraries, and exclude the
9402 # DT_RUNPATH tag from executables and libraries. But doing so
9403 # requires that you compile everything twice, which is a pain.
9404 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9405 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9406 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9407 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9408 else
9409 ld_shlibs=no
9410 fi
9411 ;;
9412 esac
9413 ;;
9414
9415 sunos4*)
9416 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9417 wlarc=
9418 hardcode_direct=yes
9419 hardcode_shlibpath_var=no
9420 ;;
9421
9422 *)
9423 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9424 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9425 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9426 else
9427 ld_shlibs=no
9428 fi
9429 ;;
9430 esac
9431
9432 if test "$ld_shlibs" = no; then
9433 runpath_var=
9434 hardcode_libdir_flag_spec=
9435 export_dynamic_flag_spec=
9436 whole_archive_flag_spec=
9437 fi
9438 else
9439 # PORTME fill in a description of your system's linker (not GNU ld)
9440 case $host_os in
9441 aix3*)
9442 allow_undefined_flag=unsupported
9443 always_export_symbols=yes
9444 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'
9445 # Note: this linker hardcodes the directories in LIBPATH if there
9446 # are no directories specified by -L.
9447 hardcode_minus_L=yes
9448 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9449 # Neither direct hardcoding nor static linking is supported with a
9450 # broken collect2.
9451 hardcode_direct=unsupported
9452 fi
9453 ;;
9454
9455 aix[4-9]*)
9456 if test "$host_cpu" = ia64; then
9457 # On IA64, the linker does run time linking by default, so we don't
9458 # have to do anything special.
9459 aix_use_runtimelinking=no
9460 exp_sym_flag='-Bexport'
9461 no_entry_flag=""
9462 else
9463 # If we're using GNU nm, then we don't want the "-C" option.
9464 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9465 # Also, AIX nm treats weak defined symbols like other global
9466 # defined symbols, whereas GNU nm marks them as "W".
9467 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9468 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'
9469 else
9470 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'
9471 fi
9472 aix_use_runtimelinking=no
9473
9474 # Test if we are trying to use run time linking or normal
9475 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9476 # need to do runtime linking.
9477 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9478 for ld_flag in $LDFLAGS; do
9479 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9480 aix_use_runtimelinking=yes
9481 break
9482 fi
9483 done
9484 ;;
9485 esac
9486
9487 exp_sym_flag='-bexport'
9488 no_entry_flag='-bnoentry'
9489 fi
9490
9491 # When large executables or shared objects are built, AIX ld can
9492 # have problems creating the table of contents. If linking a library
9493 # or program results in "error TOC overflow" add -mminimal-toc to
9494 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9495 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9496
9497 archive_cmds=''
9498 hardcode_direct=yes
9499 hardcode_direct_absolute=yes
9500 hardcode_libdir_separator=':'
9501 link_all_deplibs=yes
9502 file_list_spec='${wl}-f,'
9503
9504 if test "$GCC" = yes; then
9505 case $host_os in aix4.[012]|aix4.[012].*)
9506 # We only want to do this on AIX 4.2 and lower, the check
9507 # below for broken collect2 doesn't work under 4.3+
9508 collect2name=`${CC} -print-prog-name=collect2`
9509 if test -f "$collect2name" &&
9510 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9511 then
9512 # We have reworked collect2
9513 :
9514 else
9515 # We have old collect2
9516 hardcode_direct=unsupported
9517 # It fails to find uninstalled libraries when the uninstalled
9518 # path is not listed in the libpath. Setting hardcode_minus_L
9519 # to unsupported forces relinking
9520 hardcode_minus_L=yes
9521 hardcode_libdir_flag_spec='-L$libdir'
9522 hardcode_libdir_separator=
9523 fi
9524 ;;
9525 esac
9526 shared_flag='-shared'
9527 if test "$aix_use_runtimelinking" = yes; then
9528 shared_flag="$shared_flag "'${wl}-G'
9529 fi
9530 else
9531 # not using gcc
9532 if test "$host_cpu" = ia64; then
9533 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9534 # chokes on -Wl,-G. The following line is correct:
9535 shared_flag='-G'
9536 else
9537 if test "$aix_use_runtimelinking" = yes; then
9538 shared_flag='${wl}-G'
9539 else
9540 shared_flag='${wl}-bM:SRE'
9541 fi
9542 fi
9543 fi
9544
9545 export_dynamic_flag_spec='${wl}-bexpall'
9546 # It seems that -bexpall does not export symbols beginning with
9547 # underscore (_), so it is better to generate a list of symbols to export.
9548 always_export_symbols=yes
9549 if test "$aix_use_runtimelinking" = yes; then
9550 # Warning - without using the other runtime loading flags (-brtl),
9551 # -berok will link without error, but may produce a broken library.
9552 allow_undefined_flag='-berok'
9553 # Determine the default libpath from the value encoded in an
9554 # empty executable.
9555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9556 /* end confdefs.h. */
9557
9558 int
9559 main ()
9560 {
9561
9562 ;
9563 return 0;
9564 }
9565 _ACEOF
9566 if ac_fn_c_try_link "$LINENO"; then :
9567
9568 lt_aix_libpath_sed='
9569 /Import File Strings/,/^$/ {
9570 /^0/ {
9571 s/^0 *\(.*\)$/\1/
9572 p
9573 }
9574 }'
9575 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9576 # Check for a 64-bit object if we didn't find anything.
9577 if test -z "$aix_libpath"; then
9578 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9579 fi
9580 fi
9581 rm -f core conftest.err conftest.$ac_objext \
9582 conftest$ac_exeext conftest.$ac_ext
9583 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9584
9585 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9586 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"
9587 else
9588 if test "$host_cpu" = ia64; then
9589 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9590 allow_undefined_flag="-z nodefs"
9591 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"
9592 else
9593 # Determine the default libpath from the value encoded in an
9594 # empty executable.
9595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9596 /* end confdefs.h. */
9597
9598 int
9599 main ()
9600 {
9601
9602 ;
9603 return 0;
9604 }
9605 _ACEOF
9606 if ac_fn_c_try_link "$LINENO"; then :
9607
9608 lt_aix_libpath_sed='
9609 /Import File Strings/,/^$/ {
9610 /^0/ {
9611 s/^0 *\(.*\)$/\1/
9612 p
9613 }
9614 }'
9615 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9616 # Check for a 64-bit object if we didn't find anything.
9617 if test -z "$aix_libpath"; then
9618 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9619 fi
9620 fi
9621 rm -f core conftest.err conftest.$ac_objext \
9622 conftest$ac_exeext conftest.$ac_ext
9623 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9624
9625 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9626 # Warning - without using the other run time loading flags,
9627 # -berok will link without error, but may produce a broken library.
9628 no_undefined_flag=' ${wl}-bernotok'
9629 allow_undefined_flag=' ${wl}-berok'
9630 if test "$with_gnu_ld" = yes; then
9631 # We only use this code for GNU lds that support --whole-archive.
9632 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9633 else
9634 # Exported symbols can be pulled into shared objects from archives
9635 whole_archive_flag_spec='$convenience'
9636 fi
9637 archive_cmds_need_lc=yes
9638 # This is similar to how AIX traditionally builds its shared libraries.
9639 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'
9640 fi
9641 fi
9642 ;;
9643
9644 amigaos*)
9645 case $host_cpu in
9646 powerpc)
9647 # see comment about AmigaOS4 .so support
9648 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9649 archive_expsym_cmds=''
9650 ;;
9651 m68k)
9652 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)'
9653 hardcode_libdir_flag_spec='-L$libdir'
9654 hardcode_minus_L=yes
9655 ;;
9656 esac
9657 ;;
9658
9659 bsdi[45]*)
9660 export_dynamic_flag_spec=-rdynamic
9661 ;;
9662
9663 cygwin* | mingw* | pw32* | cegcc*)
9664 # When not using gcc, we currently assume that we are using
9665 # Microsoft Visual C++.
9666 # hardcode_libdir_flag_spec is actually meaningless, as there is
9667 # no search path for DLLs.
9668 hardcode_libdir_flag_spec=' '
9669 allow_undefined_flag=unsupported
9670 # Tell ltmain to make .lib files, not .a files.
9671 libext=lib
9672 # Tell ltmain to make .dll files, not .so files.
9673 shrext_cmds=".dll"
9674 # FIXME: Setting linknames here is a bad hack.
9675 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9676 # The linker will automatically build a .lib file if we build a DLL.
9677 old_archive_from_new_cmds='true'
9678 # FIXME: Should let the user specify the lib program.
9679 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9680 fix_srcfile_path='`cygpath -w "$srcfile"`'
9681 enable_shared_with_static_runtimes=yes
9682 ;;
9683
9684 darwin* | rhapsody*)
9685
9686
9687 archive_cmds_need_lc=no
9688 hardcode_direct=no
9689 hardcode_automatic=yes
9690 hardcode_shlibpath_var=unsupported
9691 if test "$lt_cv_ld_force_load" = "yes"; then
9692 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\"`'
9693 else
9694 whole_archive_flag_spec=''
9695 fi
9696 link_all_deplibs=yes
9697 allow_undefined_flag="$_lt_dar_allow_undefined"
9698 case $cc_basename in
9699 ifort*) _lt_dar_can_shared=yes ;;
9700 *) _lt_dar_can_shared=$GCC ;;
9701 esac
9702 if test "$_lt_dar_can_shared" = "yes"; then
9703 output_verbose_link_cmd=func_echo_all
9704 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9705 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9706 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}"
9707 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}"
9708
9709 else
9710 ld_shlibs=no
9711 fi
9712
9713 ;;
9714
9715 dgux*)
9716 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9717 hardcode_libdir_flag_spec='-L$libdir'
9718 hardcode_shlibpath_var=no
9719 ;;
9720
9721 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9722 # support. Future versions do this automatically, but an explicit c++rt0.o
9723 # does not break anything, and helps significantly (at the cost of a little
9724 # extra space).
9725 freebsd2.2*)
9726 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9727 hardcode_libdir_flag_spec='-R$libdir'
9728 hardcode_direct=yes
9729 hardcode_shlibpath_var=no
9730 ;;
9731
9732 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9733 freebsd2.*)
9734 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9735 hardcode_direct=yes
9736 hardcode_minus_L=yes
9737 hardcode_shlibpath_var=no
9738 ;;
9739
9740 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9741 freebsd* | dragonfly*)
9742 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9743 hardcode_libdir_flag_spec='-R$libdir'
9744 hardcode_direct=yes
9745 hardcode_shlibpath_var=no
9746 ;;
9747
9748 hpux9*)
9749 if test "$GCC" = yes; then
9750 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'
9751 else
9752 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'
9753 fi
9754 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9755 hardcode_libdir_separator=:
9756 hardcode_direct=yes
9757
9758 # hardcode_minus_L: Not really in the search PATH,
9759 # but as the default location of the library.
9760 hardcode_minus_L=yes
9761 export_dynamic_flag_spec='${wl}-E'
9762 ;;
9763
9764 hpux10*)
9765 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9766 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9767 else
9768 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9769 fi
9770 if test "$with_gnu_ld" = no; then
9771 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9772 hardcode_libdir_flag_spec_ld='+b $libdir'
9773 hardcode_libdir_separator=:
9774 hardcode_direct=yes
9775 hardcode_direct_absolute=yes
9776 export_dynamic_flag_spec='${wl}-E'
9777 # hardcode_minus_L: Not really in the search PATH,
9778 # but as the default location of the library.
9779 hardcode_minus_L=yes
9780 fi
9781 ;;
9782
9783 hpux11*)
9784 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9785 case $host_cpu in
9786 hppa*64*)
9787 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9788 ;;
9789 ia64*)
9790 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9791 ;;
9792 *)
9793 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9794 ;;
9795 esac
9796 else
9797 case $host_cpu in
9798 hppa*64*)
9799 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9800 ;;
9801 ia64*)
9802 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9803 ;;
9804 *)
9805
9806 # Older versions of the 11.00 compiler do not understand -b yet
9807 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9809 $as_echo_n "checking if $CC understands -b... " >&6; }
9810 if ${lt_cv_prog_compiler__b+:} false; then :
9811 $as_echo_n "(cached) " >&6
9812 else
9813 lt_cv_prog_compiler__b=no
9814 save_LDFLAGS="$LDFLAGS"
9815 LDFLAGS="$LDFLAGS -b"
9816 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9817 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9818 # The linker can only warn and ignore the option if not recognized
9819 # So say no if there are warnings
9820 if test -s conftest.err; then
9821 # Append any errors to the config.log.
9822 cat conftest.err 1>&5
9823 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9824 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9825 if diff conftest.exp conftest.er2 >/dev/null; then
9826 lt_cv_prog_compiler__b=yes
9827 fi
9828 else
9829 lt_cv_prog_compiler__b=yes
9830 fi
9831 fi
9832 $RM -r conftest*
9833 LDFLAGS="$save_LDFLAGS"
9834
9835 fi
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9837 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9838
9839 if test x"$lt_cv_prog_compiler__b" = xyes; then
9840 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9841 else
9842 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9843 fi
9844
9845 ;;
9846 esac
9847 fi
9848 if test "$with_gnu_ld" = no; then
9849 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9850 hardcode_libdir_separator=:
9851
9852 case $host_cpu in
9853 hppa*64*|ia64*)
9854 hardcode_direct=no
9855 hardcode_shlibpath_var=no
9856 ;;
9857 *)
9858 hardcode_direct=yes
9859 hardcode_direct_absolute=yes
9860 export_dynamic_flag_spec='${wl}-E'
9861
9862 # hardcode_minus_L: Not really in the search PATH,
9863 # but as the default location of the library.
9864 hardcode_minus_L=yes
9865 ;;
9866 esac
9867 fi
9868 ;;
9869
9870 irix5* | irix6* | nonstopux*)
9871 if test "$GCC" = yes; then
9872 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'
9873 # Try to use the -exported_symbol ld option, if it does not
9874 # work, assume that -exports_file does not work either and
9875 # implicitly export all symbols.
9876 save_LDFLAGS="$LDFLAGS"
9877 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9879 /* end confdefs.h. */
9880 int foo(void) {}
9881 _ACEOF
9882 if ac_fn_c_try_link "$LINENO"; then :
9883 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'
9884
9885 fi
9886 rm -f core conftest.err conftest.$ac_objext \
9887 conftest$ac_exeext conftest.$ac_ext
9888 LDFLAGS="$save_LDFLAGS"
9889 else
9890 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'
9891 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'
9892 fi
9893 archive_cmds_need_lc='no'
9894 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9895 hardcode_libdir_separator=:
9896 inherit_rpath=yes
9897 link_all_deplibs=yes
9898 ;;
9899
9900 netbsd*)
9901 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9902 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9903 else
9904 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9905 fi
9906 hardcode_libdir_flag_spec='-R$libdir'
9907 hardcode_direct=yes
9908 hardcode_shlibpath_var=no
9909 ;;
9910
9911 newsos6)
9912 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9913 hardcode_direct=yes
9914 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9915 hardcode_libdir_separator=:
9916 hardcode_shlibpath_var=no
9917 ;;
9918
9919 *nto* | *qnx*)
9920 ;;
9921
9922 openbsd*)
9923 if test -f /usr/libexec/ld.so; then
9924 hardcode_direct=yes
9925 hardcode_shlibpath_var=no
9926 hardcode_direct_absolute=yes
9927 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9928 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9929 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9930 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9931 export_dynamic_flag_spec='${wl}-E'
9932 else
9933 case $host_os in
9934 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9935 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9936 hardcode_libdir_flag_spec='-R$libdir'
9937 ;;
9938 *)
9939 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9940 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9941 ;;
9942 esac
9943 fi
9944 else
9945 ld_shlibs=no
9946 fi
9947 ;;
9948
9949 os2*)
9950 hardcode_libdir_flag_spec='-L$libdir'
9951 hardcode_minus_L=yes
9952 allow_undefined_flag=unsupported
9953 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'
9954 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9955 ;;
9956
9957 osf3*)
9958 if test "$GCC" = yes; then
9959 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9960 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'
9961 else
9962 allow_undefined_flag=' -expect_unresolved \*'
9963 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'
9964 fi
9965 archive_cmds_need_lc='no'
9966 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9967 hardcode_libdir_separator=:
9968 ;;
9969
9970 osf4* | osf5*) # as osf3* with the addition of -msym flag
9971 if test "$GCC" = yes; then
9972 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9973 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'
9974 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9975 else
9976 allow_undefined_flag=' -expect_unresolved \*'
9977 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'
9978 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~
9979 $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'
9980
9981 # Both c and cxx compiler support -rpath directly
9982 hardcode_libdir_flag_spec='-rpath $libdir'
9983 fi
9984 archive_cmds_need_lc='no'
9985 hardcode_libdir_separator=:
9986 ;;
9987
9988 solaris*)
9989 no_undefined_flag=' -z defs'
9990 if test "$GCC" = yes; then
9991 wlarc='${wl}'
9992 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9993 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9994 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9995 else
9996 case `$CC -V 2>&1` in
9997 *"Compilers 5.0"*)
9998 wlarc=''
9999 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10000 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10001 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10002 ;;
10003 *)
10004 wlarc='${wl}'
10005 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10006 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10007 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10008 ;;
10009 esac
10010 fi
10011 hardcode_libdir_flag_spec='-R$libdir'
10012 hardcode_shlibpath_var=no
10013 case $host_os in
10014 solaris2.[0-5] | solaris2.[0-5].*) ;;
10015 *)
10016 # The compiler driver will combine and reorder linker options,
10017 # but understands `-z linker_flag'. GCC discards it without `$wl',
10018 # but is careful enough not to reorder.
10019 # Supported since Solaris 2.6 (maybe 2.5.1?)
10020 if test "$GCC" = yes; then
10021 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10022 else
10023 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10024 fi
10025 ;;
10026 esac
10027 link_all_deplibs=yes
10028 ;;
10029
10030 sunos4*)
10031 if test "x$host_vendor" = xsequent; then
10032 # Use $CC to link under sequent, because it throws in some extra .o
10033 # files that make .init and .fini sections work.
10034 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10035 else
10036 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10037 fi
10038 hardcode_libdir_flag_spec='-L$libdir'
10039 hardcode_direct=yes
10040 hardcode_minus_L=yes
10041 hardcode_shlibpath_var=no
10042 ;;
10043
10044 sysv4)
10045 case $host_vendor in
10046 sni)
10047 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10048 hardcode_direct=yes # is this really true???
10049 ;;
10050 siemens)
10051 ## LD is ld it makes a PLAMLIB
10052 ## CC just makes a GrossModule.
10053 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10054 reload_cmds='$CC -r -o $output$reload_objs'
10055 hardcode_direct=no
10056 ;;
10057 motorola)
10058 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10059 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10060 ;;
10061 esac
10062 runpath_var='LD_RUN_PATH'
10063 hardcode_shlibpath_var=no
10064 ;;
10065
10066 sysv4.3*)
10067 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10068 hardcode_shlibpath_var=no
10069 export_dynamic_flag_spec='-Bexport'
10070 ;;
10071
10072 sysv4*MP*)
10073 if test -d /usr/nec; then
10074 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10075 hardcode_shlibpath_var=no
10076 runpath_var=LD_RUN_PATH
10077 hardcode_runpath_var=yes
10078 ld_shlibs=yes
10079 fi
10080 ;;
10081
10082 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10083 no_undefined_flag='${wl}-z,text'
10084 archive_cmds_need_lc=no
10085 hardcode_shlibpath_var=no
10086 runpath_var='LD_RUN_PATH'
10087
10088 if test "$GCC" = yes; then
10089 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10090 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10091 else
10092 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10093 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10094 fi
10095 ;;
10096
10097 sysv5* | sco3.2v5* | sco5v6*)
10098 # Note: We can NOT use -z defs as we might desire, because we do not
10099 # link with -lc, and that would cause any symbols used from libc to
10100 # always be unresolved, which means just about no library would
10101 # ever link correctly. If we're not using GNU ld we use -z text
10102 # though, which does catch some bad symbols but isn't as heavy-handed
10103 # as -z defs.
10104 no_undefined_flag='${wl}-z,text'
10105 allow_undefined_flag='${wl}-z,nodefs'
10106 archive_cmds_need_lc=no
10107 hardcode_shlibpath_var=no
10108 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10109 hardcode_libdir_separator=':'
10110 link_all_deplibs=yes
10111 export_dynamic_flag_spec='${wl}-Bexport'
10112 runpath_var='LD_RUN_PATH'
10113
10114 if test "$GCC" = yes; then
10115 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10116 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10117 else
10118 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10119 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10120 fi
10121 ;;
10122
10123 uts4*)
10124 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10125 hardcode_libdir_flag_spec='-L$libdir'
10126 hardcode_shlibpath_var=no
10127 ;;
10128
10129 *)
10130 ld_shlibs=no
10131 ;;
10132 esac
10133
10134 if test x$host_vendor = xsni; then
10135 case $host in
10136 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10137 export_dynamic_flag_spec='${wl}-Blargedynsym'
10138 ;;
10139 esac
10140 fi
10141 fi
10142
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10144 $as_echo "$ld_shlibs" >&6; }
10145 test "$ld_shlibs" = no && can_build_shared=no
10146
10147 with_gnu_ld=$with_gnu_ld
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163 #
10164 # Do we need to explicitly link libc?
10165 #
10166 case "x$archive_cmds_need_lc" in
10167 x|xyes)
10168 # Assume -lc should be added
10169 archive_cmds_need_lc=yes
10170
10171 if test "$enable_shared" = yes && test "$GCC" = yes; then
10172 case $archive_cmds in
10173 *'~'*)
10174 # FIXME: we may have to deal with multi-command sequences.
10175 ;;
10176 '$CC '*)
10177 # Test whether the compiler implicitly links with -lc since on some
10178 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10179 # to ld, don't add -lc before -lgcc.
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10181 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10182 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10183 $as_echo_n "(cached) " >&6
10184 else
10185 $RM conftest*
10186 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10187
10188 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10189 (eval $ac_compile) 2>&5
10190 ac_status=$?
10191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10192 test $ac_status = 0; } 2>conftest.err; then
10193 soname=conftest
10194 lib=conftest
10195 libobjs=conftest.$ac_objext
10196 deplibs=
10197 wl=$lt_prog_compiler_wl
10198 pic_flag=$lt_prog_compiler_pic
10199 compiler_flags=-v
10200 linker_flags=-v
10201 verstring=
10202 output_objdir=.
10203 libname=conftest
10204 lt_save_allow_undefined_flag=$allow_undefined_flag
10205 allow_undefined_flag=
10206 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10207 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10208 ac_status=$?
10209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10210 test $ac_status = 0; }
10211 then
10212 lt_cv_archive_cmds_need_lc=no
10213 else
10214 lt_cv_archive_cmds_need_lc=yes
10215 fi
10216 allow_undefined_flag=$lt_save_allow_undefined_flag
10217 else
10218 cat conftest.err 1>&5
10219 fi
10220 $RM conftest*
10221
10222 fi
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10224 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10225 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10226 ;;
10227 esac
10228 fi
10229 ;;
10230 esac
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10389 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10390
10391 if test "$GCC" = yes; then
10392 case $host_os in
10393 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10394 *) lt_awk_arg="/^libraries:/" ;;
10395 esac
10396 case $host_os in
10397 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10398 *) lt_sed_strip_eq="s,=/,/,g" ;;
10399 esac
10400 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10401 case $lt_search_path_spec in
10402 *\;*)
10403 # if the path contains ";" then we assume it to be the separator
10404 # otherwise default to the standard path separator (i.e. ":") - it is
10405 # assumed that no part of a normal pathname contains ";" but that should
10406 # okay in the real world where ";" in dirpaths is itself problematic.
10407 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10408 ;;
10409 *)
10410 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10411 ;;
10412 esac
10413 # Ok, now we have the path, separated by spaces, we can step through it
10414 # and add multilib dir if necessary.
10415 lt_tmp_lt_search_path_spec=
10416 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10417 for lt_sys_path in $lt_search_path_spec; do
10418 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10419 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10420 else
10421 test -d "$lt_sys_path" && \
10422 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10423 fi
10424 done
10425 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10426 BEGIN {RS=" "; FS="/|\n";} {
10427 lt_foo="";
10428 lt_count=0;
10429 for (lt_i = NF; lt_i > 0; lt_i--) {
10430 if ($lt_i != "" && $lt_i != ".") {
10431 if ($lt_i == "..") {
10432 lt_count++;
10433 } else {
10434 if (lt_count == 0) {
10435 lt_foo="/" $lt_i lt_foo;
10436 } else {
10437 lt_count--;
10438 }
10439 }
10440 }
10441 }
10442 if (lt_foo != "") { lt_freq[lt_foo]++; }
10443 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10444 }'`
10445 # AWK program above erroneously prepends '/' to C:/dos/paths
10446 # for these hosts.
10447 case $host_os in
10448 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10449 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10450 esac
10451 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10452 else
10453 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10454 fi
10455 library_names_spec=
10456 libname_spec='lib$name'
10457 soname_spec=
10458 shrext_cmds=".so"
10459 postinstall_cmds=
10460 postuninstall_cmds=
10461 finish_cmds=
10462 finish_eval=
10463 shlibpath_var=
10464 shlibpath_overrides_runpath=unknown
10465 version_type=none
10466 dynamic_linker="$host_os ld.so"
10467 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10468 need_lib_prefix=unknown
10469 hardcode_into_libs=no
10470
10471 # when you set need_version to no, make sure it does not cause -set_version
10472 # flags to be left without arguments
10473 need_version=unknown
10474
10475 case $host_os in
10476 aix3*)
10477 version_type=linux
10478 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10479 shlibpath_var=LIBPATH
10480
10481 # AIX 3 has no versioning support, so we append a major version to the name.
10482 soname_spec='${libname}${release}${shared_ext}$major'
10483 ;;
10484
10485 aix[4-9]*)
10486 version_type=linux
10487 need_lib_prefix=no
10488 need_version=no
10489 hardcode_into_libs=yes
10490 if test "$host_cpu" = ia64; then
10491 # AIX 5 supports IA64
10492 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10493 shlibpath_var=LD_LIBRARY_PATH
10494 else
10495 # With GCC up to 2.95.x, collect2 would create an import file
10496 # for dependence libraries. The import file would start with
10497 # the line `#! .'. This would cause the generated library to
10498 # depend on `.', always an invalid library. This was fixed in
10499 # development snapshots of GCC prior to 3.0.
10500 case $host_os in
10501 aix4 | aix4.[01] | aix4.[01].*)
10502 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10503 echo ' yes '
10504 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10505 :
10506 else
10507 can_build_shared=no
10508 fi
10509 ;;
10510 esac
10511 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10512 # soname into executable. Probably we can add versioning support to
10513 # collect2, so additional links can be useful in future.
10514 if test "$aix_use_runtimelinking" = yes; then
10515 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10516 # instead of lib<name>.a to let people know that these are not
10517 # typical AIX shared libraries.
10518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10519 else
10520 # We preserve .a as extension for shared libraries through AIX4.2
10521 # and later when we are not doing run time linking.
10522 library_names_spec='${libname}${release}.a $libname.a'
10523 soname_spec='${libname}${release}${shared_ext}$major'
10524 fi
10525 shlibpath_var=LIBPATH
10526 fi
10527 ;;
10528
10529 amigaos*)
10530 case $host_cpu in
10531 powerpc)
10532 # Since July 2007 AmigaOS4 officially supports .so libraries.
10533 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10535 ;;
10536 m68k)
10537 library_names_spec='$libname.ixlibrary $libname.a'
10538 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10539 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'
10540 ;;
10541 esac
10542 ;;
10543
10544 beos*)
10545 library_names_spec='${libname}${shared_ext}'
10546 dynamic_linker="$host_os ld.so"
10547 shlibpath_var=LIBRARY_PATH
10548 ;;
10549
10550 bsdi[45]*)
10551 version_type=linux
10552 need_version=no
10553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10554 soname_spec='${libname}${release}${shared_ext}$major'
10555 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10556 shlibpath_var=LD_LIBRARY_PATH
10557 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10558 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10559 # the default ld.so.conf also contains /usr/contrib/lib and
10560 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10561 # libtool to hard-code these into programs
10562 ;;
10563
10564 cygwin* | mingw* | pw32* | cegcc*)
10565 version_type=windows
10566 shrext_cmds=".dll"
10567 need_version=no
10568 need_lib_prefix=no
10569
10570 case $GCC,$host_os in
10571 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10572 library_names_spec='$libname.dll.a'
10573 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10574 postinstall_cmds='base_file=`basename \${file}`~
10575 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10576 dldir=$destdir/`dirname \$dlpath`~
10577 test -d \$dldir || mkdir -p \$dldir~
10578 $install_prog $dir/$dlname \$dldir/$dlname~
10579 chmod a+x \$dldir/$dlname~
10580 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10581 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10582 fi'
10583 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10584 dlpath=$dir/\$dldll~
10585 $RM \$dlpath'
10586 shlibpath_overrides_runpath=yes
10587
10588 case $host_os in
10589 cygwin*)
10590 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10591 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10592
10593 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10594 ;;
10595 mingw* | cegcc*)
10596 # MinGW DLLs use traditional 'lib' prefix
10597 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10598 ;;
10599 pw32*)
10600 # pw32 DLLs use 'pw' prefix rather than 'lib'
10601 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10602 ;;
10603 esac
10604 ;;
10605
10606 *)
10607 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10608 ;;
10609 esac
10610 dynamic_linker='Win32 ld.exe'
10611 # FIXME: first we should search . and the directory the executable is in
10612 shlibpath_var=PATH
10613 ;;
10614
10615 darwin* | rhapsody*)
10616 dynamic_linker="$host_os dyld"
10617 version_type=darwin
10618 need_lib_prefix=no
10619 need_version=no
10620 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10621 soname_spec='${libname}${release}${major}$shared_ext'
10622 shlibpath_overrides_runpath=yes
10623 shlibpath_var=DYLD_LIBRARY_PATH
10624 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10625
10626 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10627 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10628 ;;
10629
10630 dgux*)
10631 version_type=linux
10632 need_lib_prefix=no
10633 need_version=no
10634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10635 soname_spec='${libname}${release}${shared_ext}$major'
10636 shlibpath_var=LD_LIBRARY_PATH
10637 ;;
10638
10639 freebsd* | dragonfly*)
10640 # DragonFly does not have aout. When/if they implement a new
10641 # versioning mechanism, adjust this.
10642 if test -x /usr/bin/objformat; then
10643 objformat=`/usr/bin/objformat`
10644 else
10645 case $host_os in
10646 freebsd[23].*) objformat=aout ;;
10647 *) objformat=elf ;;
10648 esac
10649 fi
10650 version_type=freebsd-$objformat
10651 case $version_type in
10652 freebsd-elf*)
10653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10654 need_version=no
10655 need_lib_prefix=no
10656 ;;
10657 freebsd-*)
10658 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10659 need_version=yes
10660 ;;
10661 esac
10662 shlibpath_var=LD_LIBRARY_PATH
10663 case $host_os in
10664 freebsd2.*)
10665 shlibpath_overrides_runpath=yes
10666 ;;
10667 freebsd3.[01]* | freebsdelf3.[01]*)
10668 shlibpath_overrides_runpath=yes
10669 hardcode_into_libs=yes
10670 ;;
10671 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10672 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10673 shlibpath_overrides_runpath=no
10674 hardcode_into_libs=yes
10675 ;;
10676 *) # from 4.6 on, and DragonFly
10677 shlibpath_overrides_runpath=yes
10678 hardcode_into_libs=yes
10679 ;;
10680 esac
10681 ;;
10682
10683 gnu*)
10684 version_type=linux
10685 need_lib_prefix=no
10686 need_version=no
10687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10688 soname_spec='${libname}${release}${shared_ext}$major'
10689 shlibpath_var=LD_LIBRARY_PATH
10690 hardcode_into_libs=yes
10691 ;;
10692
10693 haiku*)
10694 version_type=linux
10695 need_lib_prefix=no
10696 need_version=no
10697 dynamic_linker="$host_os runtime_loader"
10698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10699 soname_spec='${libname}${release}${shared_ext}$major'
10700 shlibpath_var=LIBRARY_PATH
10701 shlibpath_overrides_runpath=yes
10702 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10703 hardcode_into_libs=yes
10704 ;;
10705
10706 hpux9* | hpux10* | hpux11*)
10707 # Give a soname corresponding to the major version so that dld.sl refuses to
10708 # link against other versions.
10709 version_type=sunos
10710 need_lib_prefix=no
10711 need_version=no
10712 case $host_cpu in
10713 ia64*)
10714 shrext_cmds='.so'
10715 hardcode_into_libs=yes
10716 dynamic_linker="$host_os dld.so"
10717 shlibpath_var=LD_LIBRARY_PATH
10718 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10720 soname_spec='${libname}${release}${shared_ext}$major'
10721 if test "X$HPUX_IA64_MODE" = X32; then
10722 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10723 else
10724 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10725 fi
10726 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10727 ;;
10728 hppa*64*)
10729 shrext_cmds='.sl'
10730 hardcode_into_libs=yes
10731 dynamic_linker="$host_os dld.sl"
10732 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10733 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10735 soname_spec='${libname}${release}${shared_ext}$major'
10736 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10737 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10738 ;;
10739 *)
10740 shrext_cmds='.sl'
10741 dynamic_linker="$host_os dld.sl"
10742 shlibpath_var=SHLIB_PATH
10743 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10745 soname_spec='${libname}${release}${shared_ext}$major'
10746 ;;
10747 esac
10748 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10749 postinstall_cmds='chmod 555 $lib'
10750 # or fails outright, so override atomically:
10751 install_override_mode=555
10752 ;;
10753
10754 interix[3-9]*)
10755 version_type=linux
10756 need_lib_prefix=no
10757 need_version=no
10758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10759 soname_spec='${libname}${release}${shared_ext}$major'
10760 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10761 shlibpath_var=LD_LIBRARY_PATH
10762 shlibpath_overrides_runpath=no
10763 hardcode_into_libs=yes
10764 ;;
10765
10766 irix5* | irix6* | nonstopux*)
10767 case $host_os in
10768 nonstopux*) version_type=nonstopux ;;
10769 *)
10770 if test "$lt_cv_prog_gnu_ld" = yes; then
10771 version_type=linux
10772 else
10773 version_type=irix
10774 fi ;;
10775 esac
10776 need_lib_prefix=no
10777 need_version=no
10778 soname_spec='${libname}${release}${shared_ext}$major'
10779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10780 case $host_os in
10781 irix5* | nonstopux*)
10782 libsuff= shlibsuff=
10783 ;;
10784 *)
10785 case $LD in # libtool.m4 will add one of these switches to LD
10786 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10787 libsuff= shlibsuff= libmagic=32-bit;;
10788 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10789 libsuff=32 shlibsuff=N32 libmagic=N32;;
10790 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10791 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10792 *) libsuff= shlibsuff= libmagic=never-match;;
10793 esac
10794 ;;
10795 esac
10796 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10797 shlibpath_overrides_runpath=no
10798 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10799 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10800 hardcode_into_libs=yes
10801 ;;
10802
10803 # No shared lib support for Linux oldld, aout, or coff.
10804 linux*oldld* | linux*aout* | linux*coff*)
10805 dynamic_linker=no
10806 ;;
10807
10808 # This must be Linux ELF.
10809 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10810 version_type=linux
10811 need_lib_prefix=no
10812 need_version=no
10813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10814 soname_spec='${libname}${release}${shared_ext}$major'
10815 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10816 shlibpath_var=LD_LIBRARY_PATH
10817 shlibpath_overrides_runpath=no
10818
10819 # Some binutils ld are patched to set DT_RUNPATH
10820 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10821 $as_echo_n "(cached) " >&6
10822 else
10823 lt_cv_shlibpath_overrides_runpath=no
10824 save_LDFLAGS=$LDFLAGS
10825 save_libdir=$libdir
10826 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10827 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10829 /* end confdefs.h. */
10830
10831 int
10832 main ()
10833 {
10834
10835 ;
10836 return 0;
10837 }
10838 _ACEOF
10839 if ac_fn_c_try_link "$LINENO"; then :
10840 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10841 lt_cv_shlibpath_overrides_runpath=yes
10842 fi
10843 fi
10844 rm -f core conftest.err conftest.$ac_objext \
10845 conftest$ac_exeext conftest.$ac_ext
10846 LDFLAGS=$save_LDFLAGS
10847 libdir=$save_libdir
10848
10849 fi
10850
10851 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10852
10853 # This implies no fast_install, which is unacceptable.
10854 # Some rework will be needed to allow for fast_install
10855 # before this can be enabled.
10856 hardcode_into_libs=yes
10857
10858 # Append ld.so.conf contents to the search path
10859 if test -f /etc/ld.so.conf; then
10860 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' ' '`
10861 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10862 fi
10863
10864 # We used to test for /lib/ld.so.1 and disable shared libraries on
10865 # powerpc, because MkLinux only supported shared libraries with the
10866 # GNU dynamic linker. Since this was broken with cross compilers,
10867 # most powerpc-linux boxes support dynamic linking these days and
10868 # people can always --disable-shared, the test was removed, and we
10869 # assume the GNU/Linux dynamic linker is in use.
10870 dynamic_linker='GNU/Linux ld.so'
10871 ;;
10872
10873 netbsd*)
10874 version_type=sunos
10875 need_lib_prefix=no
10876 need_version=no
10877 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10879 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10880 dynamic_linker='NetBSD (a.out) ld.so'
10881 else
10882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10883 soname_spec='${libname}${release}${shared_ext}$major'
10884 dynamic_linker='NetBSD ld.elf_so'
10885 fi
10886 shlibpath_var=LD_LIBRARY_PATH
10887 shlibpath_overrides_runpath=yes
10888 hardcode_into_libs=yes
10889 ;;
10890
10891 newsos6)
10892 version_type=linux
10893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10894 shlibpath_var=LD_LIBRARY_PATH
10895 shlibpath_overrides_runpath=yes
10896 ;;
10897
10898 *nto* | *qnx*)
10899 version_type=qnx
10900 need_lib_prefix=no
10901 need_version=no
10902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10903 soname_spec='${libname}${release}${shared_ext}$major'
10904 shlibpath_var=LD_LIBRARY_PATH
10905 shlibpath_overrides_runpath=no
10906 hardcode_into_libs=yes
10907 dynamic_linker='ldqnx.so'
10908 ;;
10909
10910 openbsd*)
10911 version_type=sunos
10912 sys_lib_dlsearch_path_spec="/usr/lib"
10913 need_lib_prefix=no
10914 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10915 case $host_os in
10916 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10917 *) need_version=no ;;
10918 esac
10919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10920 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10921 shlibpath_var=LD_LIBRARY_PATH
10922 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10923 case $host_os in
10924 openbsd2.[89] | openbsd2.[89].*)
10925 shlibpath_overrides_runpath=no
10926 ;;
10927 *)
10928 shlibpath_overrides_runpath=yes
10929 ;;
10930 esac
10931 else
10932 shlibpath_overrides_runpath=yes
10933 fi
10934 ;;
10935
10936 os2*)
10937 libname_spec='$name'
10938 shrext_cmds=".dll"
10939 need_lib_prefix=no
10940 library_names_spec='$libname${shared_ext} $libname.a'
10941 dynamic_linker='OS/2 ld.exe'
10942 shlibpath_var=LIBPATH
10943 ;;
10944
10945 osf3* | osf4* | osf5*)
10946 version_type=osf
10947 need_lib_prefix=no
10948 need_version=no
10949 soname_spec='${libname}${release}${shared_ext}$major'
10950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10951 shlibpath_var=LD_LIBRARY_PATH
10952 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10953 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10954 ;;
10955
10956 rdos*)
10957 dynamic_linker=no
10958 ;;
10959
10960 solaris*)
10961 version_type=linux
10962 need_lib_prefix=no
10963 need_version=no
10964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10965 soname_spec='${libname}${release}${shared_ext}$major'
10966 shlibpath_var=LD_LIBRARY_PATH
10967 shlibpath_overrides_runpath=yes
10968 hardcode_into_libs=yes
10969 # ldd complains unless libraries are executable
10970 postinstall_cmds='chmod +x $lib'
10971 ;;
10972
10973 sunos4*)
10974 version_type=sunos
10975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10976 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10977 shlibpath_var=LD_LIBRARY_PATH
10978 shlibpath_overrides_runpath=yes
10979 if test "$with_gnu_ld" = yes; then
10980 need_lib_prefix=no
10981 fi
10982 need_version=yes
10983 ;;
10984
10985 sysv4 | sysv4.3*)
10986 version_type=linux
10987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10988 soname_spec='${libname}${release}${shared_ext}$major'
10989 shlibpath_var=LD_LIBRARY_PATH
10990 case $host_vendor in
10991 sni)
10992 shlibpath_overrides_runpath=no
10993 need_lib_prefix=no
10994 runpath_var=LD_RUN_PATH
10995 ;;
10996 siemens)
10997 need_lib_prefix=no
10998 ;;
10999 motorola)
11000 need_lib_prefix=no
11001 need_version=no
11002 shlibpath_overrides_runpath=no
11003 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11004 ;;
11005 esac
11006 ;;
11007
11008 sysv4*MP*)
11009 if test -d /usr/nec ;then
11010 version_type=linux
11011 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11012 soname_spec='$libname${shared_ext}.$major'
11013 shlibpath_var=LD_LIBRARY_PATH
11014 fi
11015 ;;
11016
11017 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11018 version_type=freebsd-elf
11019 need_lib_prefix=no
11020 need_version=no
11021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11022 soname_spec='${libname}${release}${shared_ext}$major'
11023 shlibpath_var=LD_LIBRARY_PATH
11024 shlibpath_overrides_runpath=yes
11025 hardcode_into_libs=yes
11026 if test "$with_gnu_ld" = yes; then
11027 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11028 else
11029 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11030 case $host_os in
11031 sco3.2v5*)
11032 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11033 ;;
11034 esac
11035 fi
11036 sys_lib_dlsearch_path_spec='/usr/lib'
11037 ;;
11038
11039 tpf*)
11040 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11041 version_type=linux
11042 need_lib_prefix=no
11043 need_version=no
11044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11045 shlibpath_var=LD_LIBRARY_PATH
11046 shlibpath_overrides_runpath=no
11047 hardcode_into_libs=yes
11048 ;;
11049
11050 uts4*)
11051 version_type=linux
11052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11053 soname_spec='${libname}${release}${shared_ext}$major'
11054 shlibpath_var=LD_LIBRARY_PATH
11055 ;;
11056
11057 *)
11058 dynamic_linker=no
11059 ;;
11060 esac
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11062 $as_echo "$dynamic_linker" >&6; }
11063 test "$dynamic_linker" = no && can_build_shared=no
11064
11065 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11066 if test "$GCC" = yes; then
11067 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11068 fi
11069
11070 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11071 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11072 fi
11073 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11074 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11075 fi
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11169 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11170 hardcode_action=
11171 if test -n "$hardcode_libdir_flag_spec" ||
11172 test -n "$runpath_var" ||
11173 test "X$hardcode_automatic" = "Xyes" ; then
11174
11175 # We can hardcode non-existent directories.
11176 if test "$hardcode_direct" != no &&
11177 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11178 # have to relink, otherwise we might link with an installed library
11179 # when we should be linking with a yet-to-be-installed one
11180 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11181 test "$hardcode_minus_L" != no; then
11182 # Linking always hardcodes the temporary library directory.
11183 hardcode_action=relink
11184 else
11185 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11186 hardcode_action=immediate
11187 fi
11188 else
11189 # We cannot hardcode anything, or else we can only hardcode existing
11190 # directories.
11191 hardcode_action=unsupported
11192 fi
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11194 $as_echo "$hardcode_action" >&6; }
11195
11196 if test "$hardcode_action" = relink ||
11197 test "$inherit_rpath" = yes; then
11198 # Fast installation is not supported
11199 enable_fast_install=no
11200 elif test "$shlibpath_overrides_runpath" = yes ||
11201 test "$enable_shared" = no; then
11202 # Fast installation is not necessary
11203 enable_fast_install=needless
11204 fi
11205
11206
11207
11208
11209
11210
11211 if test "x$enable_dlopen" != xyes; then
11212 enable_dlopen=unknown
11213 enable_dlopen_self=unknown
11214 enable_dlopen_self_static=unknown
11215 else
11216 lt_cv_dlopen=no
11217 lt_cv_dlopen_libs=
11218
11219 case $host_os in
11220 beos*)
11221 lt_cv_dlopen="load_add_on"
11222 lt_cv_dlopen_libs=
11223 lt_cv_dlopen_self=yes
11224 ;;
11225
11226 mingw* | pw32* | cegcc*)
11227 lt_cv_dlopen="LoadLibrary"
11228 lt_cv_dlopen_libs=
11229 ;;
11230
11231 cygwin*)
11232 lt_cv_dlopen="dlopen"
11233 lt_cv_dlopen_libs=
11234 ;;
11235
11236 darwin*)
11237 # if libdl is installed we need to link against it
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11239 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11240 if ${ac_cv_lib_dl_dlopen+:} false; then :
11241 $as_echo_n "(cached) " >&6
11242 else
11243 ac_check_lib_save_LIBS=$LIBS
11244 LIBS="-ldl $LIBS"
11245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11246 /* end confdefs.h. */
11247
11248 /* Override any GCC internal prototype to avoid an error.
11249 Use char because int might match the return type of a GCC
11250 builtin and then its argument prototype would still apply. */
11251 #ifdef __cplusplus
11252 extern "C"
11253 #endif
11254 char dlopen ();
11255 int
11256 main ()
11257 {
11258 return dlopen ();
11259 ;
11260 return 0;
11261 }
11262 _ACEOF
11263 if ac_fn_c_try_link "$LINENO"; then :
11264 ac_cv_lib_dl_dlopen=yes
11265 else
11266 ac_cv_lib_dl_dlopen=no
11267 fi
11268 rm -f core conftest.err conftest.$ac_objext \
11269 conftest$ac_exeext conftest.$ac_ext
11270 LIBS=$ac_check_lib_save_LIBS
11271 fi
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11273 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11274 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11275 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11276 else
11277
11278 lt_cv_dlopen="dyld"
11279 lt_cv_dlopen_libs=
11280 lt_cv_dlopen_self=yes
11281
11282 fi
11283
11284 ;;
11285
11286 *)
11287 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11288 if test "x$ac_cv_func_shl_load" = xyes; then :
11289 lt_cv_dlopen="shl_load"
11290 else
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11292 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11293 if ${ac_cv_lib_dld_shl_load+:} false; then :
11294 $as_echo_n "(cached) " >&6
11295 else
11296 ac_check_lib_save_LIBS=$LIBS
11297 LIBS="-ldld $LIBS"
11298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11299 /* end confdefs.h. */
11300
11301 /* Override any GCC internal prototype to avoid an error.
11302 Use char because int might match the return type of a GCC
11303 builtin and then its argument prototype would still apply. */
11304 #ifdef __cplusplus
11305 extern "C"
11306 #endif
11307 char shl_load ();
11308 int
11309 main ()
11310 {
11311 return shl_load ();
11312 ;
11313 return 0;
11314 }
11315 _ACEOF
11316 if ac_fn_c_try_link "$LINENO"; then :
11317 ac_cv_lib_dld_shl_load=yes
11318 else
11319 ac_cv_lib_dld_shl_load=no
11320 fi
11321 rm -f core conftest.err conftest.$ac_objext \
11322 conftest$ac_exeext conftest.$ac_ext
11323 LIBS=$ac_check_lib_save_LIBS
11324 fi
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11326 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11327 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11328 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11329 else
11330 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11331 if test "x$ac_cv_func_dlopen" = xyes; then :
11332 lt_cv_dlopen="dlopen"
11333 else
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11335 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11336 if ${ac_cv_lib_dl_dlopen+:} false; then :
11337 $as_echo_n "(cached) " >&6
11338 else
11339 ac_check_lib_save_LIBS=$LIBS
11340 LIBS="-ldl $LIBS"
11341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11342 /* end confdefs.h. */
11343
11344 /* Override any GCC internal prototype to avoid an error.
11345 Use char because int might match the return type of a GCC
11346 builtin and then its argument prototype would still apply. */
11347 #ifdef __cplusplus
11348 extern "C"
11349 #endif
11350 char dlopen ();
11351 int
11352 main ()
11353 {
11354 return dlopen ();
11355 ;
11356 return 0;
11357 }
11358 _ACEOF
11359 if ac_fn_c_try_link "$LINENO"; then :
11360 ac_cv_lib_dl_dlopen=yes
11361 else
11362 ac_cv_lib_dl_dlopen=no
11363 fi
11364 rm -f core conftest.err conftest.$ac_objext \
11365 conftest$ac_exeext conftest.$ac_ext
11366 LIBS=$ac_check_lib_save_LIBS
11367 fi
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11369 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11370 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11371 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11372 else
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11374 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11375 if ${ac_cv_lib_svld_dlopen+:} false; then :
11376 $as_echo_n "(cached) " >&6
11377 else
11378 ac_check_lib_save_LIBS=$LIBS
11379 LIBS="-lsvld $LIBS"
11380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11381 /* end confdefs.h. */
11382
11383 /* Override any GCC internal prototype to avoid an error.
11384 Use char because int might match the return type of a GCC
11385 builtin and then its argument prototype would still apply. */
11386 #ifdef __cplusplus
11387 extern "C"
11388 #endif
11389 char dlopen ();
11390 int
11391 main ()
11392 {
11393 return dlopen ();
11394 ;
11395 return 0;
11396 }
11397 _ACEOF
11398 if ac_fn_c_try_link "$LINENO"; then :
11399 ac_cv_lib_svld_dlopen=yes
11400 else
11401 ac_cv_lib_svld_dlopen=no
11402 fi
11403 rm -f core conftest.err conftest.$ac_objext \
11404 conftest$ac_exeext conftest.$ac_ext
11405 LIBS=$ac_check_lib_save_LIBS
11406 fi
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11408 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11409 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11410 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11411 else
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11413 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11414 if ${ac_cv_lib_dld_dld_link+:} false; then :
11415 $as_echo_n "(cached) " >&6
11416 else
11417 ac_check_lib_save_LIBS=$LIBS
11418 LIBS="-ldld $LIBS"
11419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11420 /* end confdefs.h. */
11421
11422 /* Override any GCC internal prototype to avoid an error.
11423 Use char because int might match the return type of a GCC
11424 builtin and then its argument prototype would still apply. */
11425 #ifdef __cplusplus
11426 extern "C"
11427 #endif
11428 char dld_link ();
11429 int
11430 main ()
11431 {
11432 return dld_link ();
11433 ;
11434 return 0;
11435 }
11436 _ACEOF
11437 if ac_fn_c_try_link "$LINENO"; then :
11438 ac_cv_lib_dld_dld_link=yes
11439 else
11440 ac_cv_lib_dld_dld_link=no
11441 fi
11442 rm -f core conftest.err conftest.$ac_objext \
11443 conftest$ac_exeext conftest.$ac_ext
11444 LIBS=$ac_check_lib_save_LIBS
11445 fi
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11447 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11448 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11449 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11450 fi
11451
11452
11453 fi
11454
11455
11456 fi
11457
11458
11459 fi
11460
11461
11462 fi
11463
11464
11465 fi
11466
11467 ;;
11468 esac
11469
11470 if test "x$lt_cv_dlopen" != xno; then
11471 enable_dlopen=yes
11472 else
11473 enable_dlopen=no
11474 fi
11475
11476 case $lt_cv_dlopen in
11477 dlopen)
11478 save_CPPFLAGS="$CPPFLAGS"
11479 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11480
11481 save_LDFLAGS="$LDFLAGS"
11482 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11483
11484 save_LIBS="$LIBS"
11485 LIBS="$lt_cv_dlopen_libs $LIBS"
11486
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11488 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11489 if ${lt_cv_dlopen_self+:} false; then :
11490 $as_echo_n "(cached) " >&6
11491 else
11492 if test "$cross_compiling" = yes; then :
11493 lt_cv_dlopen_self=cross
11494 else
11495 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11496 lt_status=$lt_dlunknown
11497 cat > conftest.$ac_ext <<_LT_EOF
11498 #line 11498 "configure"
11499 #include "confdefs.h"
11500
11501 #if HAVE_DLFCN_H
11502 #include <dlfcn.h>
11503 #endif
11504
11505 #include <stdio.h>
11506
11507 #ifdef RTLD_GLOBAL
11508 # define LT_DLGLOBAL RTLD_GLOBAL
11509 #else
11510 # ifdef DL_GLOBAL
11511 # define LT_DLGLOBAL DL_GLOBAL
11512 # else
11513 # define LT_DLGLOBAL 0
11514 # endif
11515 #endif
11516
11517 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11518 find out it does not work in some platform. */
11519 #ifndef LT_DLLAZY_OR_NOW
11520 # ifdef RTLD_LAZY
11521 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11522 # else
11523 # ifdef DL_LAZY
11524 # define LT_DLLAZY_OR_NOW DL_LAZY
11525 # else
11526 # ifdef RTLD_NOW
11527 # define LT_DLLAZY_OR_NOW RTLD_NOW
11528 # else
11529 # ifdef DL_NOW
11530 # define LT_DLLAZY_OR_NOW DL_NOW
11531 # else
11532 # define LT_DLLAZY_OR_NOW 0
11533 # endif
11534 # endif
11535 # endif
11536 # endif
11537 #endif
11538
11539 /* When -fvisbility=hidden is used, assume the code has been annotated
11540 correspondingly for the symbols needed. */
11541 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11542 void fnord () __attribute__((visibility("default")));
11543 #endif
11544
11545 void fnord () { int i=42; }
11546 int main ()
11547 {
11548 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11549 int status = $lt_dlunknown;
11550
11551 if (self)
11552 {
11553 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11554 else
11555 {
11556 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11557 else puts (dlerror ());
11558 }
11559 /* dlclose (self); */
11560 }
11561 else
11562 puts (dlerror ());
11563
11564 return status;
11565 }
11566 _LT_EOF
11567 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11568 (eval $ac_link) 2>&5
11569 ac_status=$?
11570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11571 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11572 (./conftest; exit; ) >&5 2>/dev/null
11573 lt_status=$?
11574 case x$lt_status in
11575 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11576 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11577 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11578 esac
11579 else :
11580 # compilation failed
11581 lt_cv_dlopen_self=no
11582 fi
11583 fi
11584 rm -fr conftest*
11585
11586
11587 fi
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11589 $as_echo "$lt_cv_dlopen_self" >&6; }
11590
11591 if test "x$lt_cv_dlopen_self" = xyes; then
11592 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11594 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11595 if ${lt_cv_dlopen_self_static+:} false; then :
11596 $as_echo_n "(cached) " >&6
11597 else
11598 if test "$cross_compiling" = yes; then :
11599 lt_cv_dlopen_self_static=cross
11600 else
11601 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11602 lt_status=$lt_dlunknown
11603 cat > conftest.$ac_ext <<_LT_EOF
11604 #line 11604 "configure"
11605 #include "confdefs.h"
11606
11607 #if HAVE_DLFCN_H
11608 #include <dlfcn.h>
11609 #endif
11610
11611 #include <stdio.h>
11612
11613 #ifdef RTLD_GLOBAL
11614 # define LT_DLGLOBAL RTLD_GLOBAL
11615 #else
11616 # ifdef DL_GLOBAL
11617 # define LT_DLGLOBAL DL_GLOBAL
11618 # else
11619 # define LT_DLGLOBAL 0
11620 # endif
11621 #endif
11622
11623 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11624 find out it does not work in some platform. */
11625 #ifndef LT_DLLAZY_OR_NOW
11626 # ifdef RTLD_LAZY
11627 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11628 # else
11629 # ifdef DL_LAZY
11630 # define LT_DLLAZY_OR_NOW DL_LAZY
11631 # else
11632 # ifdef RTLD_NOW
11633 # define LT_DLLAZY_OR_NOW RTLD_NOW
11634 # else
11635 # ifdef DL_NOW
11636 # define LT_DLLAZY_OR_NOW DL_NOW
11637 # else
11638 # define LT_DLLAZY_OR_NOW 0
11639 # endif
11640 # endif
11641 # endif
11642 # endif
11643 #endif
11644
11645 /* When -fvisbility=hidden is used, assume the code has been annotated
11646 correspondingly for the symbols needed. */
11647 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11648 void fnord () __attribute__((visibility("default")));
11649 #endif
11650
11651 void fnord () { int i=42; }
11652 int main ()
11653 {
11654 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11655 int status = $lt_dlunknown;
11656
11657 if (self)
11658 {
11659 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11660 else
11661 {
11662 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11663 else puts (dlerror ());
11664 }
11665 /* dlclose (self); */
11666 }
11667 else
11668 puts (dlerror ());
11669
11670 return status;
11671 }
11672 _LT_EOF
11673 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11674 (eval $ac_link) 2>&5
11675 ac_status=$?
11676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11677 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11678 (./conftest; exit; ) >&5 2>/dev/null
11679 lt_status=$?
11680 case x$lt_status in
11681 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11682 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11683 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11684 esac
11685 else :
11686 # compilation failed
11687 lt_cv_dlopen_self_static=no
11688 fi
11689 fi
11690 rm -fr conftest*
11691
11692
11693 fi
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11695 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11696 fi
11697
11698 CPPFLAGS="$save_CPPFLAGS"
11699 LDFLAGS="$save_LDFLAGS"
11700 LIBS="$save_LIBS"
11701 ;;
11702 esac
11703
11704 case $lt_cv_dlopen_self in
11705 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11706 *) enable_dlopen_self=unknown ;;
11707 esac
11708
11709 case $lt_cv_dlopen_self_static in
11710 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11711 *) enable_dlopen_self_static=unknown ;;
11712 esac
11713 fi
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731 striplib=
11732 old_striplib=
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11734 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11735 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11736 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11737 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11739 $as_echo "yes" >&6; }
11740 else
11741 # FIXME - insert some real tests, host_os isn't really good enough
11742 case $host_os in
11743 darwin*)
11744 if test -n "$STRIP" ; then
11745 striplib="$STRIP -x"
11746 old_striplib="$STRIP -S"
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11748 $as_echo "yes" >&6; }
11749 else
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11751 $as_echo "no" >&6; }
11752 fi
11753 ;;
11754 *)
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11756 $as_echo "no" >&6; }
11757 ;;
11758 esac
11759 fi
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772 # Report which library types will actually be built
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11774 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11776 $as_echo "$can_build_shared" >&6; }
11777
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11779 $as_echo_n "checking whether to build shared libraries... " >&6; }
11780 test "$can_build_shared" = "no" && enable_shared=no
11781
11782 # On AIX, shared libraries and static libraries use the same namespace, and
11783 # are all built from PIC.
11784 case $host_os in
11785 aix3*)
11786 test "$enable_shared" = yes && enable_static=no
11787 if test -n "$RANLIB"; then
11788 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11789 postinstall_cmds='$RANLIB $lib'
11790 fi
11791 ;;
11792
11793 aix[4-9]*)
11794 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11795 test "$enable_shared" = yes && enable_static=no
11796 fi
11797 ;;
11798 esac
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11800 $as_echo "$enable_shared" >&6; }
11801
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11803 $as_echo_n "checking whether to build static libraries... " >&6; }
11804 # Make sure either enable_shared or enable_static is yes.
11805 test "$enable_shared" = yes || enable_static=yes
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11807 $as_echo "$enable_static" >&6; }
11808
11809
11810
11811
11812 fi
11813 ac_ext=c
11814 ac_cpp='$CPP $CPPFLAGS'
11815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11818
11819 CC="$lt_save_CC"
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833 ac_config_commands="$ac_config_commands libtool"
11834
11835
11836
11837
11838 # Only expand once:
11839
11840
11841
11842
11843
11844 gdc_save_DFLAGS=$GDCFLAGS
11845 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
11846
11847
11848 # Source file extension for D test sources.
11849 ac_ext=d
11850
11851 # Object file extension for compiled D test sources.
11852 objext=o
11853 objext_D=$objext
11854
11855 # Code to be used in simple compile tests
11856 lt_simple_compile_test_code="module mod; extern(C) int main() { return 0; }"
11857
11858 # Code to be used in simple link tests
11859 lt_simple_link_test_code='module mod; extern(C) int main() { return 0; }'
11860
11861 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11862
11863
11864
11865
11866
11867
11868 # If no C compiler was specified, use CC.
11869 LTCC=${LTCC-"$CC"}
11870
11871 # If no C compiler flags were specified, use CFLAGS.
11872 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11873
11874 # Allow CC to be a program name with arguments.
11875 compiler=$CC
11876
11877
11878 # save warnings/boilerplate of simple test code
11879 ac_outfile=conftest.$ac_objext
11880 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11881 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11882 _lt_compiler_boilerplate=`cat conftest.err`
11883 $RM conftest*
11884
11885 ac_outfile=conftest.$ac_objext
11886 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11887 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11888 _lt_linker_boilerplate=`cat conftest.err`
11889 $RM -r conftest*
11890
11891
11892 # Allow CC to be a program name with arguments.
11893 lt_save_CC=$CC
11894 lt_save_CFLAGS=$CFLAGS
11895 lt_save_DFLAGS=$GDCFLAGS
11896 lt_save_GCC=$GCC
11897 GCC=yes
11898 CC=${GDC-"gdc"}
11899 # Need to specify location for object.d
11900 GDCFLAGS="-nophoboslib $GDCFLAGS"
11901 CFLAGS=$GDCFLAGS
11902 compiler=$CC
11903 compiler_D=$CC
11904 LD_D=$CC
11905 for cc_temp in $compiler""; do
11906 case $cc_temp in
11907 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11908 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11909 \-*) ;;
11910 *) break;;
11911 esac
11912 done
11913 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11914
11915
11916 # GDC did not exist at the time GCC didn't implicitly link libc in.
11917 archive_cmds_need_lc_D=no
11918
11919 old_archive_cmds_D=$old_archive_cmds
11920 reload_flag_D=$reload_flag
11921 reload_cmds_D=$reload_cmds
11922
11923 ## CAVEAT EMPTOR:
11924 ## There is no encapsulation within the following macros, do not change
11925 ## the running order or otherwise move them around unless you know exactly
11926 ## what you are doing...
11927 if test -n "$compiler"; then
11928
11929 lt_prog_compiler_no_builtin_flag_D=
11930
11931 if test "$GCC" = yes; then
11932 case $cc_basename in
11933 nvcc*)
11934 lt_prog_compiler_no_builtin_flag_D=' -Xcompiler -fno-builtin' ;;
11935 *)
11936 lt_prog_compiler_no_builtin_flag_D=' -fno-builtin' ;;
11937 esac
11938
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11940 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11941 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11942 $as_echo_n "(cached) " >&6
11943 else
11944 lt_cv_prog_compiler_rtti_exceptions=no
11945 ac_outfile=conftest.$ac_objext
11946 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11947 lt_compiler_flag="-fno-rtti -fno-exceptions"
11948 # Insert the option either (1) after the last *FLAGS variable, or
11949 # (2) before a word containing "conftest.", or (3) at the end.
11950 # Note that $ac_compile itself does not contain backslashes and begins
11951 # with a dollar sign (not a hyphen), so the echo should work correctly.
11952 # The option is referenced via a variable to avoid confusing sed.
11953 lt_compile=`echo "$ac_compile" | $SED \
11954 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11955 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11956 -e 's:$: $lt_compiler_flag:'`
11957 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11958 (eval "$lt_compile" 2>conftest.err)
11959 ac_status=$?
11960 cat conftest.err >&5
11961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962 if (exit $ac_status) && test -s "$ac_outfile"; then
11963 # The compiler can only warn and ignore the option if not recognized
11964 # So say no if there are warnings other than the usual output.
11965 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11966 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11967 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11968 lt_cv_prog_compiler_rtti_exceptions=yes
11969 fi
11970 fi
11971 $RM conftest*
11972
11973 fi
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11975 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11976
11977 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11978 lt_prog_compiler_no_builtin_flag_D="$lt_prog_compiler_no_builtin_flag_D -fno-rtti -fno-exceptions"
11979 else
11980 :
11981 fi
11982
11983 fi
11984
11985
11986
11987 lt_prog_compiler_wl_D=
11988 lt_prog_compiler_pic_D=
11989 lt_prog_compiler_static_D=
11990
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11992 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11993
11994 if test "$GCC" = yes; then
11995 lt_prog_compiler_wl_D='-Wl,'
11996 lt_prog_compiler_static_D='-static'
11997
11998 case $host_os in
11999 aix*)
12000 # All AIX code is PIC.
12001 if test "$host_cpu" = ia64; then
12002 # AIX 5 now supports IA64 processor
12003 lt_prog_compiler_static_D='-Bstatic'
12004 fi
12005 lt_prog_compiler_pic_D='-fPIC'
12006 ;;
12007
12008 amigaos*)
12009 case $host_cpu in
12010 powerpc)
12011 # see comment about AmigaOS4 .so support
12012 lt_prog_compiler_pic_D='-fPIC'
12013 ;;
12014 m68k)
12015 # FIXME: we need at least 68020 code to build shared libraries, but
12016 # adding the `-m68020' flag to GCC prevents building anything better,
12017 # like `-m68040'.
12018 lt_prog_compiler_pic_D='-m68020 -resident32 -malways-restore-a4'
12019 ;;
12020 esac
12021 ;;
12022
12023 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12024 # PIC is the default for these OSes.
12025 ;;
12026
12027 mingw* | cygwin* | pw32* | os2* | cegcc*)
12028 # This hack is so that the source file can tell whether it is being
12029 # built for inclusion in a dll (and should export symbols for example).
12030 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12031 # (--disable-auto-import) libraries
12032 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12033 ;;
12034
12035 darwin* | rhapsody*)
12036 # PIC is the default on this platform
12037 # Common symbols not allowed in MH_DYLIB files
12038 lt_prog_compiler_pic_D='-fno-common'
12039 ;;
12040
12041 haiku*)
12042 # PIC is the default for Haiku.
12043 # The "-static" flag exists, but is broken.
12044 lt_prog_compiler_static_D=
12045 ;;
12046
12047 hpux*)
12048 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12049 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12050 # sets the default TLS model and affects inlining.
12051 case $host_cpu in
12052 hppa*64*)
12053 # +Z the default
12054 ;;
12055 *)
12056 lt_prog_compiler_pic_D='-fPIC'
12057 ;;
12058 esac
12059 ;;
12060
12061 interix[3-9]*)
12062 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12063 # Instead, we relocate shared libraries at runtime.
12064 ;;
12065
12066 msdosdjgpp*)
12067 # Just because we use GCC doesn't mean we suddenly get shared libraries
12068 # on systems that don't support them.
12069 lt_prog_compiler_can_build_shared_D=no
12070 enable_shared=no
12071 ;;
12072
12073 *nto* | *qnx*)
12074 # QNX uses GNU C++, but need to define -shared option too, otherwise
12075 # it will coredump.
12076 lt_prog_compiler_pic_D='-fPIC -shared'
12077 ;;
12078
12079 sysv4*MP*)
12080 if test -d /usr/nec; then
12081 lt_prog_compiler_pic_D=-Kconform_pic
12082 fi
12083 ;;
12084
12085 *)
12086 lt_prog_compiler_pic_D='-fPIC'
12087 ;;
12088 esac
12089
12090 case $cc_basename in
12091 nvcc*) # Cuda Compiler Driver 2.2
12092 lt_prog_compiler_wl_D='-Xlinker '
12093 lt_prog_compiler_pic_D='-Xcompiler -fPIC'
12094 ;;
12095 esac
12096 else
12097 # PORTME Check for flag to pass linker flags through the system compiler.
12098 case $host_os in
12099 aix*)
12100 lt_prog_compiler_wl_D='-Wl,'
12101 if test "$host_cpu" = ia64; then
12102 # AIX 5 now supports IA64 processor
12103 lt_prog_compiler_static_D='-Bstatic'
12104 else
12105 lt_prog_compiler_static_D='-bnso -bI:/lib/syscalls.exp'
12106 fi
12107 ;;
12108
12109 mingw* | cygwin* | pw32* | os2* | cegcc*)
12110 # This hack is so that the source file can tell whether it is being
12111 # built for inclusion in a dll (and should export symbols for example).
12112 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12113 ;;
12114
12115 hpux9* | hpux10* | hpux11*)
12116 lt_prog_compiler_wl_D='-Wl,'
12117 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12118 # not for PA HP-UX.
12119 case $host_cpu in
12120 hppa*64*|ia64*)
12121 # +Z the default
12122 ;;
12123 *)
12124 lt_prog_compiler_pic_D='+Z'
12125 ;;
12126 esac
12127 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12128 lt_prog_compiler_static_D='${wl}-a ${wl}archive'
12129 ;;
12130
12131 irix5* | irix6* | nonstopux*)
12132 lt_prog_compiler_wl_D='-Wl,'
12133 # PIC (with -KPIC) is the default.
12134 lt_prog_compiler_static_D='-non_shared'
12135 ;;
12136
12137 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12138 case $cc_basename in
12139 # old Intel for x86_64 which still supported -KPIC.
12140 ecc*)
12141 lt_prog_compiler_wl_D='-Wl,'
12142 lt_prog_compiler_pic_D='-KPIC'
12143 lt_prog_compiler_static_D='-static'
12144 ;;
12145 # icc used to be incompatible with GCC.
12146 # ICC 10 doesn't accept -KPIC any more.
12147 icc* | ifort*)
12148 lt_prog_compiler_wl_D='-Wl,'
12149 lt_prog_compiler_pic_D='-fPIC'
12150 lt_prog_compiler_static_D='-static'
12151 ;;
12152 # Lahey Fortran 8.1.
12153 lf95*)
12154 lt_prog_compiler_wl_D='-Wl,'
12155 lt_prog_compiler_pic_D='--shared'
12156 lt_prog_compiler_static_D='--static'
12157 ;;
12158 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12159 # Portland Group compilers (*not* the Pentium gcc compiler,
12160 # which looks to be a dead project)
12161 lt_prog_compiler_wl_D='-Wl,'
12162 lt_prog_compiler_pic_D='-fpic'
12163 lt_prog_compiler_static_D='-Bstatic'
12164 ;;
12165 ccc*)
12166 lt_prog_compiler_wl_D='-Wl,'
12167 # All Alpha code is PIC.
12168 lt_prog_compiler_static_D='-non_shared'
12169 ;;
12170 xl* | bgxl* | bgf* | mpixl*)
12171 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12172 lt_prog_compiler_wl_D='-Wl,'
12173 lt_prog_compiler_pic_D='-qpic'
12174 lt_prog_compiler_static_D='-qstaticlink'
12175 ;;
12176 *)
12177 case `$CC -V 2>&1 | sed 5q` in
12178 *Sun\ F* | *Sun*Fortran*)
12179 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12180 lt_prog_compiler_pic_D='-KPIC'
12181 lt_prog_compiler_static_D='-Bstatic'
12182 lt_prog_compiler_wl_D=''
12183 ;;
12184 *Sun\ C*)
12185 # Sun C 5.9
12186 lt_prog_compiler_pic_D='-KPIC'
12187 lt_prog_compiler_static_D='-Bstatic'
12188 lt_prog_compiler_wl_D='-Wl,'
12189 ;;
12190 esac
12191 ;;
12192 esac
12193 ;;
12194
12195 newsos6)
12196 lt_prog_compiler_pic_D='-KPIC'
12197 lt_prog_compiler_static_D='-Bstatic'
12198 ;;
12199
12200 *nto* | *qnx*)
12201 # QNX uses GNU C++, but need to define -shared option too, otherwise
12202 # it will coredump.
12203 lt_prog_compiler_pic_D='-fPIC -shared'
12204 ;;
12205
12206 osf3* | osf4* | osf5*)
12207 lt_prog_compiler_wl_D='-Wl,'
12208 # All OSF/1 code is PIC.
12209 lt_prog_compiler_static_D='-non_shared'
12210 ;;
12211
12212 rdos*)
12213 lt_prog_compiler_static_D='-non_shared'
12214 ;;
12215
12216 solaris*)
12217 lt_prog_compiler_pic_D='-KPIC'
12218 lt_prog_compiler_static_D='-Bstatic'
12219 case $cc_basename in
12220 f77* | f90* | f95*)
12221 lt_prog_compiler_wl_D='-Qoption ld ';;
12222 *)
12223 lt_prog_compiler_wl_D='-Wl,';;
12224 esac
12225 ;;
12226
12227 sunos4*)
12228 lt_prog_compiler_wl_D='-Qoption ld '
12229 lt_prog_compiler_pic_D='-PIC'
12230 lt_prog_compiler_static_D='-Bstatic'
12231 ;;
12232
12233 sysv4 | sysv4.2uw2* | sysv4.3*)
12234 lt_prog_compiler_wl_D='-Wl,'
12235 lt_prog_compiler_pic_D='-KPIC'
12236 lt_prog_compiler_static_D='-Bstatic'
12237 ;;
12238
12239 sysv4*MP*)
12240 if test -d /usr/nec ;then
12241 lt_prog_compiler_pic_D='-Kconform_pic'
12242 lt_prog_compiler_static_D='-Bstatic'
12243 fi
12244 ;;
12245
12246 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12247 lt_prog_compiler_wl_D='-Wl,'
12248 lt_prog_compiler_pic_D='-KPIC'
12249 lt_prog_compiler_static_D='-Bstatic'
12250 ;;
12251
12252 unicos*)
12253 lt_prog_compiler_wl_D='-Wl,'
12254 lt_prog_compiler_can_build_shared_D=no
12255 ;;
12256
12257 uts4*)
12258 lt_prog_compiler_pic_D='-pic'
12259 lt_prog_compiler_static_D='-Bstatic'
12260 ;;
12261
12262 *)
12263 lt_prog_compiler_can_build_shared_D=no
12264 ;;
12265 esac
12266 fi
12267
12268 case $host_os in
12269 # For platforms which do not support PIC, -DPIC is meaningless:
12270 *djgpp*)
12271 lt_prog_compiler_pic_D=
12272 ;;
12273 *)
12274 lt_prog_compiler_pic_D="$lt_prog_compiler_pic_D"
12275 ;;
12276 esac
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_D" >&5
12278 $as_echo "$lt_prog_compiler_pic_D" >&6; }
12279
12280
12281
12282 #
12283 # Check to make sure the PIC flag actually works.
12284 #
12285 if test -n "$lt_prog_compiler_pic_D"; then
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_D works" >&5
12287 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_D works... " >&6; }
12288 if ${lt_cv_prog_compiler_pic_works_D+:} false; then :
12289 $as_echo_n "(cached) " >&6
12290 else
12291 lt_cv_prog_compiler_pic_works_D=no
12292 ac_outfile=conftest.$ac_objext
12293 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12294 lt_compiler_flag="$lt_prog_compiler_pic_D"
12295 # Insert the option either (1) after the last *FLAGS variable, or
12296 # (2) before a word containing "conftest.", or (3) at the end.
12297 # Note that $ac_compile itself does not contain backslashes and begins
12298 # with a dollar sign (not a hyphen), so the echo should work correctly.
12299 # The option is referenced via a variable to avoid confusing sed.
12300 lt_compile=`echo "$ac_compile" | $SED \
12301 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12302 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12303 -e 's:$: $lt_compiler_flag:'`
12304 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12305 (eval "$lt_compile" 2>conftest.err)
12306 ac_status=$?
12307 cat conftest.err >&5
12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 if (exit $ac_status) && test -s "$ac_outfile"; then
12310 # The compiler can only warn and ignore the option if not recognized
12311 # So say no if there are warnings other than the usual output.
12312 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12313 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12314 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12315 lt_cv_prog_compiler_pic_works_D=yes
12316 fi
12317 fi
12318 $RM conftest*
12319
12320 fi
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_D" >&5
12322 $as_echo "$lt_cv_prog_compiler_pic_works_D" >&6; }
12323
12324 if test x"$lt_cv_prog_compiler_pic_works_D" = xyes; then
12325 case $lt_prog_compiler_pic_D in
12326 "" | " "*) ;;
12327 *) lt_prog_compiler_pic_D=" $lt_prog_compiler_pic_D" ;;
12328 esac
12329 else
12330 lt_prog_compiler_pic_D=
12331 lt_prog_compiler_can_build_shared_D=no
12332 fi
12333
12334 fi
12335
12336
12337
12338 #
12339 # Check to make sure the static flag actually works.
12340 #
12341 wl=$lt_prog_compiler_wl_D eval lt_tmp_static_flag=\"$lt_prog_compiler_static_D\"
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12343 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12344 if ${lt_cv_prog_compiler_static_works_D+:} false; then :
12345 $as_echo_n "(cached) " >&6
12346 else
12347 lt_cv_prog_compiler_static_works_D=no
12348 save_LDFLAGS="$LDFLAGS"
12349 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12350 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12351 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12352 # The linker can only warn and ignore the option if not recognized
12353 # So say no if there are warnings
12354 if test -s conftest.err; then
12355 # Append any errors to the config.log.
12356 cat conftest.err 1>&5
12357 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12358 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12359 if diff conftest.exp conftest.er2 >/dev/null; then
12360 lt_cv_prog_compiler_static_works_D=yes
12361 fi
12362 else
12363 lt_cv_prog_compiler_static_works_D=yes
12364 fi
12365 fi
12366 $RM -r conftest*
12367 LDFLAGS="$save_LDFLAGS"
12368
12369 fi
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_D" >&5
12371 $as_echo "$lt_cv_prog_compiler_static_works_D" >&6; }
12372
12373 if test x"$lt_cv_prog_compiler_static_works_D" = xyes; then
12374 :
12375 else
12376 lt_prog_compiler_static_D=
12377 fi
12378
12379
12380
12381
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12383 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12384 if ${lt_cv_prog_compiler_c_o_D+:} false; then :
12385 $as_echo_n "(cached) " >&6
12386 else
12387 lt_cv_prog_compiler_c_o_D=no
12388 $RM -r conftest 2>/dev/null
12389 mkdir conftest
12390 cd conftest
12391 mkdir out
12392 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12393
12394 lt_compiler_flag="-o out/conftest2.$ac_objext"
12395 # Insert the option either (1) after the last *FLAGS variable, or
12396 # (2) before a word containing "conftest.", or (3) at the end.
12397 # Note that $ac_compile itself does not contain backslashes and begins
12398 # with a dollar sign (not a hyphen), so the echo should work correctly.
12399 lt_compile=`echo "$ac_compile" | $SED \
12400 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12401 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12402 -e 's:$: $lt_compiler_flag:'`
12403 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12404 (eval "$lt_compile" 2>out/conftest.err)
12405 ac_status=$?
12406 cat out/conftest.err >&5
12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12409 then
12410 # The compiler can only warn and ignore the option if not recognized
12411 # So say no if there are warnings
12412 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12413 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12414 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12415 lt_cv_prog_compiler_c_o_D=yes
12416 fi
12417 fi
12418 chmod u+w . 2>&5
12419 $RM conftest*
12420 # SGI C++ compiler will create directory out/ii_files/ for
12421 # template instantiation
12422 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12423 $RM out/* && rmdir out
12424 cd ..
12425 $RM -r conftest
12426 $RM conftest*
12427
12428 fi
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12430 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12431
12432
12433
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12435 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12436 if ${lt_cv_prog_compiler_c_o_D+:} false; then :
12437 $as_echo_n "(cached) " >&6
12438 else
12439 lt_cv_prog_compiler_c_o_D=no
12440 $RM -r conftest 2>/dev/null
12441 mkdir conftest
12442 cd conftest
12443 mkdir out
12444 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12445
12446 lt_compiler_flag="-o out/conftest2.$ac_objext"
12447 # Insert the option either (1) after the last *FLAGS variable, or
12448 # (2) before a word containing "conftest.", or (3) at the end.
12449 # Note that $ac_compile itself does not contain backslashes and begins
12450 # with a dollar sign (not a hyphen), so the echo should work correctly.
12451 lt_compile=`echo "$ac_compile" | $SED \
12452 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12453 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12454 -e 's:$: $lt_compiler_flag:'`
12455 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12456 (eval "$lt_compile" 2>out/conftest.err)
12457 ac_status=$?
12458 cat out/conftest.err >&5
12459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12461 then
12462 # The compiler can only warn and ignore the option if not recognized
12463 # So say no if there are warnings
12464 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12465 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12466 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12467 lt_cv_prog_compiler_c_o_D=yes
12468 fi
12469 fi
12470 chmod u+w . 2>&5
12471 $RM conftest*
12472 # SGI C++ compiler will create directory out/ii_files/ for
12473 # template instantiation
12474 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12475 $RM out/* && rmdir out
12476 cd ..
12477 $RM -r conftest
12478 $RM conftest*
12479
12480 fi
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12482 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12483
12484
12485
12486
12487 hard_links="nottested"
12488 if test "$lt_cv_prog_compiler_c_o_D" = no && test "$need_locks" != no; then
12489 # do not overwrite the value of need_locks provided by the user
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12491 $as_echo_n "checking if we can lock with hard links... " >&6; }
12492 hard_links=yes
12493 $RM conftest*
12494 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12495 touch conftest.a
12496 ln conftest.a conftest.b 2>&5 || hard_links=no
12497 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12499 $as_echo "$hard_links" >&6; }
12500 if test "$hard_links" = no; then
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12502 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12503 need_locks=warn
12504 fi
12505 else
12506 need_locks=no
12507 fi
12508
12509
12510
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12512 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12513
12514 runpath_var=
12515 allow_undefined_flag_D=
12516 always_export_symbols_D=no
12517 archive_cmds_D=
12518 archive_expsym_cmds_D=
12519 compiler_needs_object_D=no
12520 enable_shared_with_static_runtimes_D=no
12521 export_dynamic_flag_spec_D=
12522 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12523 hardcode_automatic_D=no
12524 hardcode_direct_D=no
12525 hardcode_direct_absolute_D=no
12526 hardcode_libdir_flag_spec_D=
12527 hardcode_libdir_flag_spec_ld_D=
12528 hardcode_libdir_separator_D=
12529 hardcode_minus_L_D=no
12530 hardcode_shlibpath_var_D=unsupported
12531 inherit_rpath_D=no
12532 link_all_deplibs_D=unknown
12533 module_cmds_D=
12534 module_expsym_cmds_D=
12535 old_archive_from_new_cmds_D=
12536 old_archive_from_expsyms_cmds_D=
12537 thread_safe_flag_spec_D=
12538 whole_archive_flag_spec_D=
12539 # include_expsyms should be a list of space-separated symbols to be *always*
12540 # included in the symbol list
12541 include_expsyms_D=
12542 # exclude_expsyms can be an extended regexp of symbols to exclude
12543 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12544 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12545 # as well as any symbol that contains `d'.
12546 exclude_expsyms_D='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12547 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12548 # platforms (ab)use it in PIC code, but their linkers get confused if
12549 # the symbol is explicitly referenced. Since portable code cannot
12550 # rely on this symbol name, it's probably fine to never include it in
12551 # preloaded symbol tables.
12552 # Exclude shared library initialization/finalization symbols.
12553 extract_expsyms_cmds=
12554
12555 case $host_os in
12556 cygwin* | mingw* | pw32* | cegcc*)
12557 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12558 # When not using gcc, we currently assume that we are using
12559 # Microsoft Visual C++.
12560 if test "$GCC" != yes; then
12561 with_gnu_ld=no
12562 fi
12563 ;;
12564 interix*)
12565 # we just hope/assume this is gcc and not c89 (= MSVC++)
12566 with_gnu_ld=yes
12567 ;;
12568 openbsd*)
12569 with_gnu_ld=no
12570 ;;
12571 esac
12572
12573 ld_shlibs_D=yes
12574
12575 # On some targets, GNU ld is compatible enough with the native linker
12576 # that we're better off using the native interface for both.
12577 lt_use_gnu_ld_interface=no
12578 if test "$with_gnu_ld" = yes; then
12579 case $host_os in
12580 aix*)
12581 # The AIX port of GNU ld has always aspired to compatibility
12582 # with the native linker. However, as the warning in the GNU ld
12583 # block says, versions before 2.19.5* couldn't really create working
12584 # shared libraries, regardless of the interface used.
12585 case `$LD -v 2>&1` in
12586 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12587 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12588 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12589 *)
12590 lt_use_gnu_ld_interface=yes
12591 ;;
12592 esac
12593 ;;
12594 *)
12595 lt_use_gnu_ld_interface=yes
12596 ;;
12597 esac
12598 fi
12599
12600 if test "$lt_use_gnu_ld_interface" = yes; then
12601 # If archive_cmds runs LD, not CC, wlarc should be empty
12602 wlarc='${wl}'
12603
12604 # Set some defaults for GNU ld with shared library support. These
12605 # are reset later if shared libraries are not supported. Putting them
12606 # here allows them to be overridden if necessary.
12607 runpath_var=LD_RUN_PATH
12608 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12609 export_dynamic_flag_spec_D='${wl}--export-dynamic'
12610 # ancient GNU ld didn't support --whole-archive et. al.
12611 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12612 whole_archive_flag_spec_D="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12613 else
12614 whole_archive_flag_spec_D=
12615 fi
12616 supports_anon_versioning=no
12617 case `$LD -v 2>&1` in
12618 *GNU\ gold*) supports_anon_versioning=yes ;;
12619 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12620 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12621 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12622 *\ 2.11.*) ;; # other 2.11 versions
12623 *) supports_anon_versioning=yes ;;
12624 esac
12625
12626 # See if GNU ld supports shared libraries.
12627 case $host_os in
12628 aix[3-9]*)
12629 # On AIX/PPC, the GNU linker is very broken
12630 if test "$host_cpu" != ia64; then
12631 ld_shlibs_D=no
12632 cat <<_LT_EOF 1>&2
12633
12634 *** Warning: the GNU linker, at least up to release 2.19, is reported
12635 *** to be unable to reliably create shared libraries on AIX.
12636 *** Therefore, libtool is disabling shared libraries support. If you
12637 *** really care for shared libraries, you may want to install binutils
12638 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12639 *** You will then need to restart the configuration process.
12640
12641 _LT_EOF
12642 fi
12643 ;;
12644
12645 amigaos*)
12646 case $host_cpu in
12647 powerpc)
12648 # see comment about AmigaOS4 .so support
12649 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12650 archive_expsym_cmds_D=''
12651 ;;
12652 m68k)
12653 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)'
12654 hardcode_libdir_flag_spec_D='-L$libdir'
12655 hardcode_minus_L_D=yes
12656 ;;
12657 esac
12658 ;;
12659
12660 beos*)
12661 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12662 allow_undefined_flag_D=unsupported
12663 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12664 # support --undefined. This deserves some investigation. FIXME
12665 archive_cmds_D='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12666 else
12667 ld_shlibs_D=no
12668 fi
12669 ;;
12670
12671 cygwin* | mingw* | pw32* | cegcc*)
12672 # _LT_TAGVAR(hardcode_libdir_flag_spec, D) is actually meaningless,
12673 # as there is no search path for DLLs.
12674 hardcode_libdir_flag_spec_D='-L$libdir'
12675 export_dynamic_flag_spec_D='${wl}--export-all-symbols'
12676 allow_undefined_flag_D=unsupported
12677 always_export_symbols_D=no
12678 enable_shared_with_static_runtimes_D=yes
12679 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12680
12681 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12682 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12683 # If the export-symbols file already is a .def file (1st line
12684 # is EXPORTS), use it as is; otherwise, prepend...
12685 archive_expsym_cmds_D='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12686 cp $export_symbols $output_objdir/$soname.def;
12687 else
12688 echo EXPORTS > $output_objdir/$soname.def;
12689 cat $export_symbols >> $output_objdir/$soname.def;
12690 fi~
12691 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12692 else
12693 ld_shlibs_D=no
12694 fi
12695 ;;
12696
12697 haiku*)
12698 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12699 link_all_deplibs_D=yes
12700 ;;
12701
12702 interix[3-9]*)
12703 hardcode_direct_D=no
12704 hardcode_shlibpath_var_D=no
12705 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
12706 export_dynamic_flag_spec_D='${wl}-E'
12707 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12708 # Instead, shared libraries are loaded at an image base (0x10000000 by
12709 # default) and relocated if they conflict, which is a slow very memory
12710 # consuming and fragmenting process. To avoid this, we pick a random,
12711 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12712 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12713 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'
12714 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'
12715 ;;
12716
12717 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12718 tmp_diet=no
12719 if test "$host_os" = linux-dietlibc; then
12720 case $cc_basename in
12721 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12722 esac
12723 fi
12724 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12725 && test "$tmp_diet" = no
12726 then
12727 tmp_addflag=' $pic_flag'
12728 tmp_sharedflag='-shared'
12729 case $cc_basename,$host_cpu in
12730 pgcc*) # Portland Group C compiler
12731 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'
12732 tmp_addflag=' $pic_flag'
12733 ;;
12734 pgf77* | pgf90* | pgf95* | pgfortran*)
12735 # Portland Group f77 and f90 compilers
12736 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'
12737 tmp_addflag=' $pic_flag -Mnomain' ;;
12738 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12739 tmp_addflag=' -i_dynamic' ;;
12740 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12741 tmp_addflag=' -i_dynamic -nofor_main' ;;
12742 ifc* | ifort*) # Intel Fortran compiler
12743 tmp_addflag=' -nofor_main' ;;
12744 lf95*) # Lahey Fortran 8.1
12745 whole_archive_flag_spec_D=
12746 tmp_sharedflag='--shared' ;;
12747 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12748 tmp_sharedflag='-qmkshrobj'
12749 tmp_addflag= ;;
12750 nvcc*) # Cuda Compiler Driver 2.2
12751 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'
12752 compiler_needs_object_D=yes
12753 ;;
12754 esac
12755 case `$CC -V 2>&1 | sed 5q` in
12756 *Sun\ C*) # Sun C 5.9
12757 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'
12758 compiler_needs_object_D=yes
12759 tmp_sharedflag='-G' ;;
12760 *Sun\ F*) # Sun Fortran 8.3
12761 tmp_sharedflag='-G' ;;
12762 esac
12763 archive_cmds_D='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12764
12765 if test "x$supports_anon_versioning" = xyes; then
12766 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
12767 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12768 echo "local: *; };" >> $output_objdir/$libname.ver~
12769 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12770 fi
12771
12772 case $cc_basename in
12773 xlf* | bgf* | bgxlf* | mpixlf*)
12774 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12775 whole_archive_flag_spec_D='--whole-archive$convenience --no-whole-archive'
12776 hardcode_libdir_flag_spec_D=
12777 hardcode_libdir_flag_spec_ld_D='-rpath $libdir'
12778 archive_cmds_D='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12779 if test "x$supports_anon_versioning" = xyes; then
12780 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
12781 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12782 echo "local: *; };" >> $output_objdir/$libname.ver~
12783 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12784 fi
12785 ;;
12786 esac
12787 else
12788 ld_shlibs_D=no
12789 fi
12790 ;;
12791
12792 netbsd*)
12793 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12794 archive_cmds_D='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12795 wlarc=
12796 else
12797 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12798 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12799 fi
12800 ;;
12801
12802 solaris*)
12803 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12804 ld_shlibs_D=no
12805 cat <<_LT_EOF 1>&2
12806
12807 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12808 *** create shared libraries on Solaris systems. Therefore, libtool
12809 *** is disabling shared libraries support. We urge you to upgrade GNU
12810 *** binutils to release 2.9.1 or newer. Another option is to modify
12811 *** your PATH or compiler configuration so that the native linker is
12812 *** used, and then restart.
12813
12814 _LT_EOF
12815 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12816 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12817 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12818 else
12819 ld_shlibs_D=no
12820 fi
12821 ;;
12822
12823 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12824 case `$LD -v 2>&1` in
12825 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12826 ld_shlibs_D=no
12827 cat <<_LT_EOF 1>&2
12828
12829 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12830 *** reliably create shared libraries on SCO systems. Therefore, libtool
12831 *** is disabling shared libraries support. We urge you to upgrade GNU
12832 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12833 *** your PATH or compiler configuration so that the native linker is
12834 *** used, and then restart.
12835
12836 _LT_EOF
12837 ;;
12838 *)
12839 # For security reasons, it is highly recommended that you always
12840 # use absolute paths for naming shared libraries, and exclude the
12841 # DT_RUNPATH tag from executables and libraries. But doing so
12842 # requires that you compile everything twice, which is a pain.
12843 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12844 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12845 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12846 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12847 else
12848 ld_shlibs_D=no
12849 fi
12850 ;;
12851 esac
12852 ;;
12853
12854 sunos4*)
12855 archive_cmds_D='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12856 wlarc=
12857 hardcode_direct_D=yes
12858 hardcode_shlibpath_var_D=no
12859 ;;
12860
12861 *)
12862 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12863 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12864 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12865 else
12866 ld_shlibs_D=no
12867 fi
12868 ;;
12869 esac
12870
12871 if test "$ld_shlibs_D" = no; then
12872 runpath_var=
12873 hardcode_libdir_flag_spec_D=
12874 export_dynamic_flag_spec_D=
12875 whole_archive_flag_spec_D=
12876 fi
12877 else
12878 # PORTME fill in a description of your system's linker (not GNU ld)
12879 case $host_os in
12880 aix3*)
12881 allow_undefined_flag_D=unsupported
12882 always_export_symbols_D=yes
12883 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'
12884 # Note: this linker hardcodes the directories in LIBPATH if there
12885 # are no directories specified by -L.
12886 hardcode_minus_L_D=yes
12887 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12888 # Neither direct hardcoding nor static linking is supported with a
12889 # broken collect2.
12890 hardcode_direct_D=unsupported
12891 fi
12892 ;;
12893
12894 aix[4-9]*)
12895 if test "$host_cpu" = ia64; then
12896 # On IA64, the linker does run time linking by default, so we don't
12897 # have to do anything special.
12898 aix_use_runtimelinking=no
12899 exp_sym_flag='-Bexport'
12900 no_entry_flag=""
12901 else
12902 # If we're using GNU nm, then we don't want the "-C" option.
12903 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12904 # Also, AIX nm treats weak defined symbols like other global
12905 # defined symbols, whereas GNU nm marks them as "W".
12906 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12907 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'
12908 else
12909 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'
12910 fi
12911 aix_use_runtimelinking=no
12912
12913 # Test if we are trying to use run time linking or normal
12914 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12915 # need to do runtime linking.
12916 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12917 for ld_flag in $LDFLAGS; do
12918 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12919 aix_use_runtimelinking=yes
12920 break
12921 fi
12922 done
12923 ;;
12924 esac
12925
12926 exp_sym_flag='-bexport'
12927 no_entry_flag='-bnoentry'
12928 fi
12929
12930 # When large executables or shared objects are built, AIX ld can
12931 # have problems creating the table of contents. If linking a library
12932 # or program results in "error TOC overflow" add -mminimal-toc to
12933 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12934 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12935
12936 archive_cmds_D=''
12937 hardcode_direct_D=yes
12938 hardcode_direct_absolute_D=yes
12939 hardcode_libdir_separator_D=':'
12940 link_all_deplibs_D=yes
12941 file_list_spec_D='${wl}-f,'
12942
12943 if test "$GCC" = yes; then
12944 case $host_os in aix4.[012]|aix4.[012].*)
12945 # We only want to do this on AIX 4.2 and lower, the check
12946 # below for broken collect2 doesn't work under 4.3+
12947 collect2name=`${CC} -print-prog-name=collect2`
12948 if test -f "$collect2name" &&
12949 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12950 then
12951 # We have reworked collect2
12952 :
12953 else
12954 # We have old collect2
12955 hardcode_direct_D=unsupported
12956 # It fails to find uninstalled libraries when the uninstalled
12957 # path is not listed in the libpath. Setting hardcode_minus_L
12958 # to unsupported forces relinking
12959 hardcode_minus_L_D=yes
12960 hardcode_libdir_flag_spec_D='-L$libdir'
12961 hardcode_libdir_separator_D=
12962 fi
12963 ;;
12964 esac
12965 shared_flag='-shared'
12966 if test "$aix_use_runtimelinking" = yes; then
12967 shared_flag="$shared_flag "'${wl}-G'
12968 fi
12969 else
12970 # not using gcc
12971 if test "$host_cpu" = ia64; then
12972 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12973 # chokes on -Wl,-G. The following line is correct:
12974 shared_flag='-G'
12975 else
12976 if test "$aix_use_runtimelinking" = yes; then
12977 shared_flag='${wl}-G'
12978 else
12979 shared_flag='${wl}-bM:SRE'
12980 fi
12981 fi
12982 fi
12983
12984 export_dynamic_flag_spec_D='${wl}-bexpall'
12985 # It seems that -bexpall does not export symbols beginning with
12986 # underscore (_), so it is better to generate a list of symbols to export.
12987 always_export_symbols_D=yes
12988 if test "$aix_use_runtimelinking" = yes; then
12989 # Warning - without using the other runtime loading flags (-brtl),
12990 # -berok will link without error, but may produce a broken library.
12991 allow_undefined_flag_D='-berok'
12992 # Determine the default libpath from the value encoded in an
12993 # empty executable.
12994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12995 /* end confdefs.h. */
12996
12997 int
12998 main ()
12999 {
13000
13001 ;
13002 return 0;
13003 }
13004 _ACEOF
13005 if ac_fn_c_try_link "$LINENO"; then :
13006
13007 lt_aix_libpath_sed='
13008 /Import File Strings/,/^$/ {
13009 /^0/ {
13010 s/^0 *\(.*\)$/\1/
13011 p
13012 }
13013 }'
13014 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13015 # Check for a 64-bit object if we didn't find anything.
13016 if test -z "$aix_libpath"; then
13017 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13018 fi
13019 fi
13020 rm -f core conftest.err conftest.$ac_objext \
13021 conftest$ac_exeext conftest.$ac_ext
13022 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13023
13024 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13025 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"
13026 else
13027 if test "$host_cpu" = ia64; then
13028 hardcode_libdir_flag_spec_D='${wl}-R $libdir:/usr/lib:/lib'
13029 allow_undefined_flag_D="-z nodefs"
13030 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"
13031 else
13032 # Determine the default libpath from the value encoded in an
13033 # empty executable.
13034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13035 /* end confdefs.h. */
13036
13037 int
13038 main ()
13039 {
13040
13041 ;
13042 return 0;
13043 }
13044 _ACEOF
13045 if ac_fn_c_try_link "$LINENO"; then :
13046
13047 lt_aix_libpath_sed='
13048 /Import File Strings/,/^$/ {
13049 /^0/ {
13050 s/^0 *\(.*\)$/\1/
13051 p
13052 }
13053 }'
13054 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13055 # Check for a 64-bit object if we didn't find anything.
13056 if test -z "$aix_libpath"; then
13057 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13058 fi
13059 fi
13060 rm -f core conftest.err conftest.$ac_objext \
13061 conftest$ac_exeext conftest.$ac_ext
13062 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13063
13064 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13065 # Warning - without using the other run time loading flags,
13066 # -berok will link without error, but may produce a broken library.
13067 no_undefined_flag_D=' ${wl}-bernotok'
13068 allow_undefined_flag_D=' ${wl}-berok'
13069 if test "$with_gnu_ld" = yes; then
13070 # We only use this code for GNU lds that support --whole-archive.
13071 whole_archive_flag_spec_D='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13072 else
13073 # Exported symbols can be pulled into shared objects from archives
13074 whole_archive_flag_spec_D='$convenience'
13075 fi
13076 archive_cmds_need_lc_D=yes
13077 # This is similar to how AIX traditionally builds its shared libraries.
13078 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'
13079 fi
13080 fi
13081 ;;
13082
13083 amigaos*)
13084 case $host_cpu in
13085 powerpc)
13086 # see comment about AmigaOS4 .so support
13087 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13088 archive_expsym_cmds_D=''
13089 ;;
13090 m68k)
13091 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)'
13092 hardcode_libdir_flag_spec_D='-L$libdir'
13093 hardcode_minus_L_D=yes
13094 ;;
13095 esac
13096 ;;
13097
13098 bsdi[45]*)
13099 export_dynamic_flag_spec_D=-rdynamic
13100 ;;
13101
13102 cygwin* | mingw* | pw32* | cegcc*)
13103 # When not using gcc, we currently assume that we are using
13104 # Microsoft Visual C++.
13105 # hardcode_libdir_flag_spec is actually meaningless, as there is
13106 # no search path for DLLs.
13107 hardcode_libdir_flag_spec_D=' '
13108 allow_undefined_flag_D=unsupported
13109 # Tell ltmain to make .lib files, not .a files.
13110 libext=lib
13111 # Tell ltmain to make .dll files, not .so files.
13112 shrext_cmds=".dll"
13113 # FIXME: Setting linknames here is a bad hack.
13114 archive_cmds_D='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13115 # The linker will automatically build a .lib file if we build a DLL.
13116 old_archive_from_new_cmds_D='true'
13117 # FIXME: Should let the user specify the lib program.
13118 old_archive_cmds_D='lib -OUT:$oldlib$oldobjs$old_deplibs'
13119 fix_srcfile_path_D='`cygpath -w "$srcfile"`'
13120 enable_shared_with_static_runtimes_D=yes
13121 ;;
13122
13123 darwin* | rhapsody*)
13124
13125
13126 archive_cmds_need_lc_D=no
13127 hardcode_direct_D=no
13128 hardcode_automatic_D=yes
13129 hardcode_shlibpath_var_D=unsupported
13130 if test "$lt_cv_ld_force_load" = "yes"; then
13131 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\"`'
13132 else
13133 whole_archive_flag_spec_D=''
13134 fi
13135 link_all_deplibs_D=yes
13136 allow_undefined_flag_D="$_lt_dar_allow_undefined"
13137 case $cc_basename in
13138 ifort*) _lt_dar_can_shared=yes ;;
13139 *) _lt_dar_can_shared=$GCC ;;
13140 esac
13141 if test "$_lt_dar_can_shared" = "yes"; then
13142 output_verbose_link_cmd=func_echo_all
13143 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}"
13144 module_cmds_D="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13145 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}"
13146 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}"
13147
13148 else
13149 ld_shlibs_D=no
13150 fi
13151
13152 ;;
13153
13154 dgux*)
13155 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13156 hardcode_libdir_flag_spec_D='-L$libdir'
13157 hardcode_shlibpath_var_D=no
13158 ;;
13159
13160 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13161 # support. Future versions do this automatically, but an explicit c++rt0.o
13162 # does not break anything, and helps significantly (at the cost of a little
13163 # extra space).
13164 freebsd2.2*)
13165 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13166 hardcode_libdir_flag_spec_D='-R$libdir'
13167 hardcode_direct_D=yes
13168 hardcode_shlibpath_var_D=no
13169 ;;
13170
13171 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13172 freebsd2.*)
13173 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13174 hardcode_direct_D=yes
13175 hardcode_minus_L_D=yes
13176 hardcode_shlibpath_var_D=no
13177 ;;
13178
13179 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13180 freebsd* | dragonfly*)
13181 archive_cmds_D='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13182 hardcode_libdir_flag_spec_D='-R$libdir'
13183 hardcode_direct_D=yes
13184 hardcode_shlibpath_var_D=no
13185 ;;
13186
13187 hpux9*)
13188 if test "$GCC" = yes; then
13189 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'
13190 else
13191 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'
13192 fi
13193 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13194 hardcode_libdir_separator_D=:
13195 hardcode_direct_D=yes
13196
13197 # hardcode_minus_L: Not really in the search PATH,
13198 # but as the default location of the library.
13199 hardcode_minus_L_D=yes
13200 export_dynamic_flag_spec_D='${wl}-E'
13201 ;;
13202
13203 hpux10*)
13204 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13205 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13206 else
13207 archive_cmds_D='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13208 fi
13209 if test "$with_gnu_ld" = no; then
13210 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13211 hardcode_libdir_flag_spec_ld_D='+b $libdir'
13212 hardcode_libdir_separator_D=:
13213 hardcode_direct_D=yes
13214 hardcode_direct_absolute_D=yes
13215 export_dynamic_flag_spec_D='${wl}-E'
13216 # hardcode_minus_L: Not really in the search PATH,
13217 # but as the default location of the library.
13218 hardcode_minus_L_D=yes
13219 fi
13220 ;;
13221
13222 hpux11*)
13223 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13224 case $host_cpu in
13225 hppa*64*)
13226 archive_cmds_D='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13227 ;;
13228 ia64*)
13229 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13230 ;;
13231 *)
13232 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13233 ;;
13234 esac
13235 else
13236 case $host_cpu in
13237 hppa*64*)
13238 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13239 ;;
13240 ia64*)
13241 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13242 ;;
13243 *)
13244 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13245 ;;
13246 esac
13247 fi
13248 if test "$with_gnu_ld" = no; then
13249 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13250 hardcode_libdir_separator_D=:
13251
13252 case $host_cpu in
13253 hppa*64*|ia64*)
13254 hardcode_direct_D=no
13255 hardcode_shlibpath_var_D=no
13256 ;;
13257 *)
13258 hardcode_direct_D=yes
13259 hardcode_direct_absolute_D=yes
13260 export_dynamic_flag_spec_D='${wl}-E'
13261
13262 # hardcode_minus_L: Not really in the search PATH,
13263 # but as the default location of the library.
13264 hardcode_minus_L_D=yes
13265 ;;
13266 esac
13267 fi
13268 ;;
13269
13270 irix5* | irix6* | nonstopux*)
13271 if test "$GCC" = yes; then
13272 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'
13273 # Try to use the -exported_symbol ld option, if it does not
13274 # work, assume that -exports_file does not work either and
13275 # implicitly export all symbols.
13276 save_LDFLAGS="$LDFLAGS"
13277 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13279 /* end confdefs.h. */
13280 int foo(void) {}
13281 _ACEOF
13282 if ac_fn_c_try_link "$LINENO"; then :
13283 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'
13284
13285 fi
13286 rm -f core conftest.err conftest.$ac_objext \
13287 conftest$ac_exeext conftest.$ac_ext
13288 LDFLAGS="$save_LDFLAGS"
13289 else
13290 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'
13291 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'
13292 fi
13293 archive_cmds_need_lc_D='no'
13294 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13295 hardcode_libdir_separator_D=:
13296 inherit_rpath_D=yes
13297 link_all_deplibs_D=yes
13298 ;;
13299
13300 netbsd*)
13301 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13302 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13303 else
13304 archive_cmds_D='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13305 fi
13306 hardcode_libdir_flag_spec_D='-R$libdir'
13307 hardcode_direct_D=yes
13308 hardcode_shlibpath_var_D=no
13309 ;;
13310
13311 newsos6)
13312 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13313 hardcode_direct_D=yes
13314 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13315 hardcode_libdir_separator_D=:
13316 hardcode_shlibpath_var_D=no
13317 ;;
13318
13319 *nto* | *qnx*)
13320 ;;
13321
13322 openbsd*)
13323 if test -f /usr/libexec/ld.so; then
13324 hardcode_direct_D=yes
13325 hardcode_shlibpath_var_D=no
13326 hardcode_direct_absolute_D=yes
13327 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13328 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13329 archive_expsym_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13330 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13331 export_dynamic_flag_spec_D='${wl}-E'
13332 else
13333 case $host_os in
13334 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13335 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13336 hardcode_libdir_flag_spec_D='-R$libdir'
13337 ;;
13338 *)
13339 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13340 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13341 ;;
13342 esac
13343 fi
13344 else
13345 ld_shlibs_D=no
13346 fi
13347 ;;
13348
13349 os2*)
13350 hardcode_libdir_flag_spec_D='-L$libdir'
13351 hardcode_minus_L_D=yes
13352 allow_undefined_flag_D=unsupported
13353 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'
13354 old_archive_from_new_cmds_D='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13355 ;;
13356
13357 osf3*)
13358 if test "$GCC" = yes; then
13359 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13360 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'
13361 else
13362 allow_undefined_flag_D=' -expect_unresolved \*'
13363 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'
13364 fi
13365 archive_cmds_need_lc_D='no'
13366 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13367 hardcode_libdir_separator_D=:
13368 ;;
13369
13370 osf4* | osf5*) # as osf3* with the addition of -msym flag
13371 if test "$GCC" = yes; then
13372 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13373 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'
13374 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13375 else
13376 allow_undefined_flag_D=' -expect_unresolved \*'
13377 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'
13378 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~
13379 $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'
13380
13381 # Both c and cxx compiler support -rpath directly
13382 hardcode_libdir_flag_spec_D='-rpath $libdir'
13383 fi
13384 archive_cmds_need_lc_D='no'
13385 hardcode_libdir_separator_D=:
13386 ;;
13387
13388 solaris*)
13389 no_undefined_flag_D=' -z defs'
13390 if test "$GCC" = yes; then
13391 wlarc='${wl}'
13392 archive_cmds_D='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13393 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13394 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13395 else
13396 case `$CC -V 2>&1` in
13397 *"Compilers 5.0"*)
13398 wlarc=''
13399 archive_cmds_D='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13400 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13401 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13402 ;;
13403 *)
13404 wlarc='${wl}'
13405 archive_cmds_D='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13406 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13407 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13408 ;;
13409 esac
13410 fi
13411 hardcode_libdir_flag_spec_D='-R$libdir'
13412 hardcode_shlibpath_var_D=no
13413 case $host_os in
13414 solaris2.[0-5] | solaris2.[0-5].*) ;;
13415 *)
13416 # The compiler driver will combine and reorder linker options,
13417 # but understands `-z linker_flag'. GCC discards it without `$wl',
13418 # but is careful enough not to reorder.
13419 # Supported since Solaris 2.6 (maybe 2.5.1?)
13420 if test "$GCC" = yes; then
13421 whole_archive_flag_spec_D='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13422 else
13423 whole_archive_flag_spec_D='-z allextract$convenience -z defaultextract'
13424 fi
13425 ;;
13426 esac
13427 link_all_deplibs_D=yes
13428 ;;
13429
13430 sunos4*)
13431 if test "x$host_vendor" = xsequent; then
13432 # Use $CC to link under sequent, because it throws in some extra .o
13433 # files that make .init and .fini sections work.
13434 archive_cmds_D='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13435 else
13436 archive_cmds_D='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13437 fi
13438 hardcode_libdir_flag_spec_D='-L$libdir'
13439 hardcode_direct_D=yes
13440 hardcode_minus_L_D=yes
13441 hardcode_shlibpath_var_D=no
13442 ;;
13443
13444 sysv4)
13445 case $host_vendor in
13446 sni)
13447 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13448 hardcode_direct_D=yes # is this really true???
13449 ;;
13450 siemens)
13451 ## LD is ld it makes a PLAMLIB
13452 ## CC just makes a GrossModule.
13453 archive_cmds_D='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13454 reload_cmds_D='$CC -r -o $output$reload_objs'
13455 hardcode_direct_D=no
13456 ;;
13457 motorola)
13458 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13459 hardcode_direct_D=no #Motorola manual says yes, but my tests say they lie
13460 ;;
13461 esac
13462 runpath_var='LD_RUN_PATH'
13463 hardcode_shlibpath_var_D=no
13464 ;;
13465
13466 sysv4.3*)
13467 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13468 hardcode_shlibpath_var_D=no
13469 export_dynamic_flag_spec_D='-Bexport'
13470 ;;
13471
13472 sysv4*MP*)
13473 if test -d /usr/nec; then
13474 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13475 hardcode_shlibpath_var_D=no
13476 runpath_var=LD_RUN_PATH
13477 hardcode_runpath_var=yes
13478 ld_shlibs_D=yes
13479 fi
13480 ;;
13481
13482 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13483 no_undefined_flag_D='${wl}-z,text'
13484 archive_cmds_need_lc_D=no
13485 hardcode_shlibpath_var_D=no
13486 runpath_var='LD_RUN_PATH'
13487
13488 if test "$GCC" = yes; then
13489 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13490 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13491 else
13492 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13493 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13494 fi
13495 ;;
13496
13497 sysv5* | sco3.2v5* | sco5v6*)
13498 # Note: We can NOT use -z defs as we might desire, because we do not
13499 # link with -lc, and that would cause any symbols used from libc to
13500 # always be unresolved, which means just about no library would
13501 # ever link correctly. If we're not using GNU ld we use -z text
13502 # though, which does catch some bad symbols but isn't as heavy-handed
13503 # as -z defs.
13504 no_undefined_flag_D='${wl}-z,text'
13505 allow_undefined_flag_D='${wl}-z,nodefs'
13506 archive_cmds_need_lc_D=no
13507 hardcode_shlibpath_var_D=no
13508 hardcode_libdir_flag_spec_D='${wl}-R,$libdir'
13509 hardcode_libdir_separator_D=':'
13510 link_all_deplibs_D=yes
13511 export_dynamic_flag_spec_D='${wl}-Bexport'
13512 runpath_var='LD_RUN_PATH'
13513
13514 if test "$GCC" = yes; then
13515 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13516 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13517 else
13518 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13519 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13520 fi
13521 ;;
13522
13523 uts4*)
13524 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13525 hardcode_libdir_flag_spec_D='-L$libdir'
13526 hardcode_shlibpath_var_D=no
13527 ;;
13528
13529 *)
13530 ld_shlibs_D=no
13531 ;;
13532 esac
13533
13534 if test x$host_vendor = xsni; then
13535 case $host in
13536 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13537 export_dynamic_flag_spec_D='${wl}-Blargedynsym'
13538 ;;
13539 esac
13540 fi
13541 fi
13542
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_D" >&5
13544 $as_echo "$ld_shlibs_D" >&6; }
13545 test "$ld_shlibs_D" = no && can_build_shared=no
13546
13547 with_gnu_ld_D=$with_gnu_ld
13548
13549
13550
13551
13552
13553
13554 #
13555 # Do we need to explicitly link libc?
13556 #
13557 case "x$archive_cmds_need_lc_D" in
13558 x|xyes)
13559 # Assume -lc should be added
13560 archive_cmds_need_lc_D=yes
13561
13562 if test "$enable_shared" = yes && test "$GCC" = yes; then
13563 case $archive_cmds_D in
13564 *'~'*)
13565 # FIXME: we may have to deal with multi-command sequences.
13566 ;;
13567 '$CC '*)
13568 # Test whether the compiler implicitly links with -lc since on some
13569 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13570 # to ld, don't add -lc before -lgcc.
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13572 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13573 if ${lt_cv_archive_cmds_need_lc_D+:} false; then :
13574 $as_echo_n "(cached) " >&6
13575 else
13576 $RM conftest*
13577 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13578
13579 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13580 (eval $ac_compile) 2>&5
13581 ac_status=$?
13582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13583 test $ac_status = 0; } 2>conftest.err; then
13584 soname=conftest
13585 lib=conftest
13586 libobjs=conftest.$ac_objext
13587 deplibs=
13588 wl=$lt_prog_compiler_wl_D
13589 pic_flag=$lt_prog_compiler_pic_D
13590 compiler_flags=-v
13591 linker_flags=-v
13592 verstring=
13593 output_objdir=.
13594 libname=conftest
13595 lt_save_allow_undefined_flag=$allow_undefined_flag_D
13596 allow_undefined_flag_D=
13597 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13598 (eval $archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13599 ac_status=$?
13600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13601 test $ac_status = 0; }
13602 then
13603 lt_cv_archive_cmds_need_lc_D=no
13604 else
13605 lt_cv_archive_cmds_need_lc_D=yes
13606 fi
13607 allow_undefined_flag_D=$lt_save_allow_undefined_flag
13608 else
13609 cat conftest.err 1>&5
13610 fi
13611 $RM conftest*
13612
13613 fi
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_D" >&5
13615 $as_echo "$lt_cv_archive_cmds_need_lc_D" >&6; }
13616 archive_cmds_need_lc_D=$lt_cv_archive_cmds_need_lc_D
13617 ;;
13618 esac
13619 fi
13620 ;;
13621 esac
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13687 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13688 hardcode_action_D=
13689 if test -n "$hardcode_libdir_flag_spec_D" ||
13690 test -n "$runpath_var_D" ||
13691 test "X$hardcode_automatic_D" = "Xyes" ; then
13692
13693 # We can hardcode non-existent directories.
13694 if test "$hardcode_direct_D" != no &&
13695 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13696 # have to relink, otherwise we might link with an installed library
13697 # when we should be linking with a yet-to-be-installed one
13698 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, D)" != no &&
13699 test "$hardcode_minus_L_D" != no; then
13700 # Linking always hardcodes the temporary library directory.
13701 hardcode_action_D=relink
13702 else
13703 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13704 hardcode_action_D=immediate
13705 fi
13706 else
13707 # We cannot hardcode anything, or else we can only hardcode existing
13708 # directories.
13709 hardcode_action_D=unsupported
13710 fi
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_D" >&5
13712 $as_echo "$hardcode_action_D" >&6; }
13713
13714 if test "$hardcode_action_D" = relink ||
13715 test "$inherit_rpath_D" = yes; then
13716 # Fast installation is not supported
13717 enable_fast_install=no
13718 elif test "$shlibpath_overrides_runpath" = yes ||
13719 test "$enable_shared" = no; then
13720 # Fast installation is not necessary
13721 enable_fast_install=needless
13722 fi
13723
13724
13725
13726
13727
13728
13729
13730 fi
13731
13732 ac_ext=c
13733 ac_cpp='$CPP $CPPFLAGS'
13734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13737
13738
13739 GCC=$lt_save_GCC
13740 CC=$lt_save_CC
13741 CFLAGS=$lt_save_CFLAGS
13742 GDCFLAGS=$lt_save_DFLAGS
13743
13744 GDCFLAGS=$gdc_save_DFLAGS
13745
13746
13747 # libtool variables for Phobos shared and position-independent compiles.
13748 #
13749 # Use phobos_compiler_shared_flag to designate the compile-time flags for
13750 # creating shared objects. Default: -fversion=Shared.
13751 #
13752 # Use phobos_compiler_pic_flag to designate the compile-time flags for
13753 # creating position-independent objects. This varies with the target
13754 # hardware and operating system, but is often: -fPIC.
13755 #
13756 # The distinction between pic and shared compilation flags is not present in
13757 # libtool, and so we make it here. How it is handled is that in shared
13758 # compilations the `lt_prog_compiler_pic_D' variable is used to instead
13759 # ensure that conditional compilation of shared runtime code is compiled in.
13760 # The original PIC flags are then used in the compilation of every object.
13761 #
13762 # Why are objects destined for libgphobos.a compiled with -fPIC?
13763 # Because -fPIC is not harmful to use for objects destined for static
13764 # libraries. In addition, using -fPIC will allow the use of static
13765 # libgphobos.a in the creation of other D shared libraries.
13766 if test "$enable_shared" = yes; then
13767 phobos_compiler_pic_flag="$lt_prog_compiler_pic_D"
13768 phobos_compiler_shared_flag="-fversion=Shared"
13769 else
13770 phobos_compiler_pic_flag=
13771 phobos_compiler_shared_flag=
13772 fi
13773
13774
13775
13776 # Override the libtool's pic_flag and pic_mode.
13777 # Do this step after AM_PROG_LIBTOOL, but before AC_OUTPUT.
13778 # NB: this impacts --with-pic and --without-pic.
13779 lt_prog_compiler_pic_D="$phobos_compiler_shared_flag"
13780 pic_mode='default'
13781
13782 # Determine what GCC version number to use in filesystem paths.
13783
13784 get_gcc_base_ver="cat"
13785
13786 # Check whether --with-gcc-major-version-only was given.
13787 if test "${with_gcc_major_version_only+set}" = set; then :
13788 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13789 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
13790 fi
13791
13792 fi
13793
13794
13795
13796
13797 # libphobos/libdruntime specific options and feature detection
13798
13799 # These need to be absolute paths, yet at the same time need to
13800 # canonicalize only relative paths, because then amd will not unmount
13801 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
13802 libphobos_builddir=`${PWDCMD-pwd}`
13803 case $srcdir in
13804 \\/$* | ?:\\/*) libphobos_srcdir=${srcdir} ;;
13805 *) libphobos_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
13806 esac
13807
13808
13809
13810
13811 if test ${multilib} = yes; then
13812 multilib_arg="--enable-multilib"
13813 else
13814 multilib_arg=
13815 fi
13816
13817
13818 # Check whether --enable-werror was given.
13819 if test "${enable_werror+set}" = set; then :
13820 enableval=$enable_werror;
13821 fi
13822
13823 WERROR_FLAG=""
13824 if test "x$enable_werror" = "xyes"; then
13825 WERROR_FLAG="-Werror"
13826 fi
13827
13828
13829 # Check whether --enable-druntime-gc was given.
13830 if test "${enable_druntime_gc+set}" = set; then :
13831 enableval=$enable_druntime_gc; enable_druntime_gc=no
13832 else
13833 enable_druntime_gc=yes
13834 fi
13835
13836
13837 if test "$enable_druntime_gc" = "yes"; then
13838 DRUNTIME_GC_ENABLE_TRUE=
13839 DRUNTIME_GC_ENABLE_FALSE='#'
13840 else
13841 DRUNTIME_GC_ENABLE_TRUE='#'
13842 DRUNTIME_GC_ENABLE_FALSE=
13843 fi
13844
13845
13846
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target OS" >&5
13848 $as_echo_n "checking for target OS... " >&6; }
13849 if ${druntime_cv_target_os+:} false; then :
13850 $as_echo_n "(cached) " >&6
13851 else
13852 druntime_cv_target_os=`echo $target_os | sed 's/^\([A-Za-z_]+\)/\1/'`
13853 fi
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_target_os" >&5
13855 $as_echo "$druntime_cv_target_os" >&6; }
13856 if test -z "$druntime_cv_target_os"; then :
13857 as_fn_error $? "can't detect target OS" "$LINENO" 5
13858 fi
13859
13860
13861
13862 # Check whether --enable-unix was given.
13863 if test "${enable_unix+set}" = set; then :
13864 enableval=$enable_unix; :
13865 else
13866 enable_unix=auto
13867 fi
13868
13869
13870 case "$druntime_cv_target_os" in
13871 aix*|*bsd*|cygwin*|darwin*|gnu*|linux*|skyos*|*solaris*|sysv*) d_have_unix=1 ;;
13872 esac
13873 if test -n "$d_have_unix" && test "$enable_unix" = auto ; then
13874 enable_unix=yes
13875 fi
13876 if test "$enable_unix" = "yes"; then
13877 DRUNTIME_OS_UNIX_TRUE=
13878 DRUNTIME_OS_UNIX_FALSE='#'
13879 else
13880 DRUNTIME_OS_UNIX_TRUE='#'
13881 DRUNTIME_OS_UNIX_FALSE=
13882 fi
13883
13884
13885
13886
13887
13888 druntime_target_os_parsed=""
13889 case "$druntime_cv_target_os" in
13890 aix*) druntime_target_os_parsed="aix"
13891 ;;
13892 *android*)
13893 druntime_target_os_parsed="android"
13894 ;;
13895 darwin*) druntime_target_os_parsed="darwin"
13896 ;;
13897 dragonfly*)
13898 druntime_target_os_parsed="dragonflybsd"
13899 ;;
13900 freebsd*|k*bsd*-gnu)
13901 druntime_target_os_parsed="freebsd"
13902 ;;
13903 openbsd*)
13904 druntime_target_os_parsed="openbsd"
13905 ;;
13906 netbsd*)
13907 druntime_target_os_parsed="netbsd"
13908 ;;
13909 linux*) druntime_target_os_parsed="linux"
13910 ;;
13911 mingw*) druntime_target_os_parsed="mingw"
13912 ;;
13913 *solaris*) druntime_target_os_parsed="solaris"
13914 esac
13915 if test "$druntime_target_os_parsed" = "aix"; then
13916 DRUNTIME_OS_AIX_TRUE=
13917 DRUNTIME_OS_AIX_FALSE='#'
13918 else
13919 DRUNTIME_OS_AIX_TRUE='#'
13920 DRUNTIME_OS_AIX_FALSE=
13921 fi
13922
13923 if test "$druntime_target_os_parsed" = "android"; then
13924 DRUNTIME_OS_ANDROID_TRUE=
13925 DRUNTIME_OS_ANDROID_FALSE='#'
13926 else
13927 DRUNTIME_OS_ANDROID_TRUE='#'
13928 DRUNTIME_OS_ANDROID_FALSE=
13929 fi
13930
13931 if test "$druntime_target_os_parsed" = "darwin"; then
13932 DRUNTIME_OS_DARWIN_TRUE=
13933 DRUNTIME_OS_DARWIN_FALSE='#'
13934 else
13935 DRUNTIME_OS_DARWIN_TRUE='#'
13936 DRUNTIME_OS_DARWIN_FALSE=
13937 fi
13938
13939 if test "$druntime_target_os_parsed" = "dragonflybsd"; then
13940 DRUNTIME_OS_DRAGONFLYBSD_TRUE=
13941 DRUNTIME_OS_DRAGONFLYBSD_FALSE='#'
13942 else
13943 DRUNTIME_OS_DRAGONFLYBSD_TRUE='#'
13944 DRUNTIME_OS_DRAGONFLYBSD_FALSE=
13945 fi
13946
13947 if test "$druntime_target_os_parsed" = "freebsd"; then
13948 DRUNTIME_OS_FREEBSD_TRUE=
13949 DRUNTIME_OS_FREEBSD_FALSE='#'
13950 else
13951 DRUNTIME_OS_FREEBSD_TRUE='#'
13952 DRUNTIME_OS_FREEBSD_FALSE=
13953 fi
13954
13955 if test "$druntime_target_os_parsed" = "netbsd"; then
13956 DRUNTIME_OS_NETBSD_TRUE=
13957 DRUNTIME_OS_NETBSD_FALSE='#'
13958 else
13959 DRUNTIME_OS_NETBSD_TRUE='#'
13960 DRUNTIME_OS_NETBSD_FALSE=
13961 fi
13962
13963 if test "$druntime_target_os_parsed" = "openbsd"; then
13964 DRUNTIME_OS_OPENBSD_TRUE=
13965 DRUNTIME_OS_OPENBSD_FALSE='#'
13966 else
13967 DRUNTIME_OS_OPENBSD_TRUE='#'
13968 DRUNTIME_OS_OPENBSD_FALSE=
13969 fi
13970
13971 if test "$druntime_target_os_parsed" = "linux"; then
13972 DRUNTIME_OS_LINUX_TRUE=
13973 DRUNTIME_OS_LINUX_FALSE='#'
13974 else
13975 DRUNTIME_OS_LINUX_TRUE='#'
13976 DRUNTIME_OS_LINUX_FALSE=
13977 fi
13978
13979 if test "$druntime_target_os_parsed" = "mingw"; then
13980 DRUNTIME_OS_MINGW_TRUE=
13981 DRUNTIME_OS_MINGW_FALSE='#'
13982 else
13983 DRUNTIME_OS_MINGW_TRUE='#'
13984 DRUNTIME_OS_MINGW_FALSE=
13985 fi
13986
13987 if test "$druntime_target_os_parsed" = "solaris"; then
13988 DRUNTIME_OS_SOLARIS_TRUE=
13989 DRUNTIME_OS_SOLARIS_FALSE='#'
13990 else
13991 DRUNTIME_OS_SOLARIS_TRUE='#'
13992 DRUNTIME_OS_SOLARIS_FALSE=
13993 fi
13994
13995
13996
13997
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GDC" >&5
13999 $as_echo_n "checking for thread model used by GDC... " >&6; }
14000 d_thread_model=`$GDC -v 2>&1 | sed -n 's/^Thread model: //p'`
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d_thread_model" >&5
14002 $as_echo "$d_thread_model" >&6; }
14003
14004 # Map from thread model to thread interface.
14005
14006 case $d_thread_model in
14007 aix) DCFG_THREAD_MODEL="Posix" ;;
14008 lynx) DCFG_THREAD_MODEL="Posix" ;;
14009 posix) DCFG_THREAD_MODEL="Posix" ;;
14010 single) DCFG_THREAD_MODEL="Single" ;;
14011 win32) DCFG_THREAD_MODEL="Win32" ;;
14012 # TODO: These targets need porting.
14013 dce|mipssde|rtems|tpf|vxworks)
14014 DCFG_THREAD_MODEL="Single" ;;
14015 *) as_fn_error "Thread implementation '$d_thread_model' not recognised" "$LINENO" 5 ;;
14016 esac
14017
14018
14019
14020
14021 ac_ext=c
14022 ac_cpp='$CPP $CPPFLAGS'
14023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14026
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM unwinder" >&5
14028 $as_echo_n "checking for ARM unwinder... " >&6; }
14029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14030 /* end confdefs.h. */
14031 #include <unwind.h>
14032 int
14033 main ()
14034 {
14035
14036 #if __ARM_EABI_UNWINDER__
14037 #error Yes, it is.
14038 #endif
14039
14040 ;
14041 return 0;
14042 }
14043 _ACEOF
14044 if ac_fn_c_try_compile "$LINENO"; then :
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14046 $as_echo "no" >&6; }
14047 DCFG_ARM_EABI_UNWINDER=false
14048 else
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14050 $as_echo "yes" >&6; }
14051 DCFG_ARM_EABI_UNWINDER=true
14052 fi
14053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14054
14055 if test "$DCFG_ARM_EABI_UNWINDER" = "true"; then
14056 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE=
14057 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE='#'
14058 else
14059 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE='#'
14060 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE=
14061 fi
14062
14063 ac_ext=c
14064 ac_cpp='$CPP $CPPFLAGS'
14065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14068
14069
14070
14071 ac_ext=c
14072 ac_cpp='$CPP $CPPFLAGS'
14073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14076
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minfo section bracketing" >&5
14078 $as_echo_n "checking for minfo section bracketing... " >&6; }
14079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14080 /* end confdefs.h. */
14081
14082 void* module_info_ptr __attribute__((section ("minfo")));
14083 extern void* __start_minfo __attribute__((visibility ("hidden")));
14084 extern void* __stop_minfo __attribute__((visibility ("hidden")));
14085
14086 int main()
14087 {
14088 // Never run, just to prevent compiler from optimizing access
14089 return &__start_minfo == &__stop_minfo;
14090 }
14091
14092 _ACEOF
14093 if ac_fn_c_try_link "$LINENO"; then :
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14095 $as_echo "yes" >&6; }
14096 DCFG_MINFO_BRACKETING=true
14097 else
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14099 $as_echo "no" >&6; }
14100 DCFG_MINFO_BRACKETING=false
14101 fi
14102 rm -f core conftest.err conftest.$ac_objext \
14103 conftest$ac_exeext conftest.$ac_ext
14104
14105 if test "$DCFG_MINFO_BRACKETING" = "true"; then
14106 DRUNTIME_OS_MINFO_BRACKETING_TRUE=
14107 DRUNTIME_OS_MINFO_BRACKETING_FALSE='#'
14108 else
14109 DRUNTIME_OS_MINFO_BRACKETING_TRUE='#'
14110 DRUNTIME_OS_MINFO_BRACKETING_FALSE=
14111 fi
14112
14113 ac_ext=c
14114 ac_cpp='$CPP $CPPFLAGS'
14115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14118
14119
14120
14121 ac_ext=c
14122 ac_cpp='$CPP $CPPFLAGS'
14123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14126
14127 DCFG_HAVE_QSORT_R=false
14128 ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r"
14129 if test "x$ac_cv_func_qsort_r" = xyes; then :
14130 DCFG_HAVE_QSORT_R=true
14131 fi
14132
14133
14134 ac_ext=c
14135 ac_cpp='$CPP $CPPFLAGS'
14136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14139
14140
14141
14142
14143
14144 gdc_save_DFLAGS=$GDCFLAGS
14145 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime -nophoboslib $GDCFLAGS"
14146
14147 ac_ext=d
14148 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
14149 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14150 ac_compiler_gnu=yes
14151
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing malloc" >&5
14153 $as_echo_n "checking for library containing malloc... " >&6; }
14154 if ${ac_cv_search_malloc+:} false; then :
14155 $as_echo_n "(cached) " >&6
14156 else
14157 ac_func_search_save_LIBS=$LIBS
14158 cat > conftest.$ac_ext <<_ACEOF
14159 module mod;
14160 extern(C) int malloc();
14161
14162 extern(C) int main() {
14163 malloc(); return 0;
14164 }
14165 _ACEOF
14166 for ac_lib in '' c; do
14167 if test -z "$ac_lib"; then
14168 ac_res="none required"
14169 else
14170 ac_res=-l$ac_lib
14171 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14172 fi
14173 if ac_fn_d_try_link "$LINENO"; then :
14174 ac_cv_search_malloc=$ac_res
14175 fi
14176 rm -f core conftest.err conftest.$ac_objext \
14177 conftest$ac_exeext
14178 if ${ac_cv_search_malloc+:} false; then :
14179 break
14180 fi
14181 done
14182 if ${ac_cv_search_malloc+:} false; then :
14183
14184 else
14185 ac_cv_search_malloc=no
14186 fi
14187 rm conftest.$ac_ext
14188 LIBS=$ac_func_search_save_LIBS
14189 fi
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc" >&5
14191 $as_echo "$ac_cv_search_malloc" >&6; }
14192 ac_res=$ac_cv_search_malloc
14193 if test "$ac_res" != no; then :
14194 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14195
14196 fi
14197
14198
14199 enable_thread_lib=yes
14200 # Check whether --enable-thread-lib was given.
14201 if test "${enable_thread_lib+set}" = set; then :
14202 enableval=$enable_thread_lib;
14203 fi
14204
14205
14206 if test "x$enable_thread_lib" = "xyes"; then :
14207
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
14209 $as_echo_n "checking for library containing pthread_create... " >&6; }
14210 if ${ac_cv_search_pthread_create+:} false; then :
14211 $as_echo_n "(cached) " >&6
14212 else
14213 ac_func_search_save_LIBS=$LIBS
14214 cat > conftest.$ac_ext <<_ACEOF
14215 module mod;
14216 extern(C) int pthread_create();
14217
14218 extern(C) int main() {
14219 pthread_create(); return 0;
14220 }
14221 _ACEOF
14222 for ac_lib in '' pthread; do
14223 if test -z "$ac_lib"; then
14224 ac_res="none required"
14225 else
14226 ac_res=-l$ac_lib
14227 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14228 fi
14229 if ac_fn_d_try_link "$LINENO"; then :
14230 ac_cv_search_pthread_create=$ac_res
14231 fi
14232 rm -f core conftest.err conftest.$ac_objext \
14233 conftest$ac_exeext
14234 if ${ac_cv_search_pthread_create+:} false; then :
14235 break
14236 fi
14237 done
14238 if ${ac_cv_search_pthread_create+:} false; then :
14239
14240 else
14241 ac_cv_search_pthread_create=no
14242 fi
14243 rm conftest.$ac_ext
14244 LIBS=$ac_func_search_save_LIBS
14245 fi
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
14247 $as_echo "$ac_cv_search_pthread_create" >&6; }
14248 ac_res=$ac_cv_search_pthread_create
14249 if test "$ac_res" != no; then :
14250 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14251
14252 fi
14253
14254
14255 else
14256
14257 if test "x$enable_thread_lib" = "xno"; then :
14258
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread library" >&5
14260 $as_echo_n "checking for thread library... " >&6; }
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14262 $as_echo "disabled" >&6; }
14263
14264 else
14265
14266 as_ac_Lib=`$as_echo "ac_cv_lib_$enable_thread_lib''_pthread_create" | $as_tr_sh`
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -l$enable_thread_lib" >&5
14268 $as_echo_n "checking for pthread_create in -l$enable_thread_lib... " >&6; }
14269 if eval \${$as_ac_Lib+:} false; then :
14270 $as_echo_n "(cached) " >&6
14271 else
14272 ac_check_lib_save_LIBS=$LIBS
14273 LIBS="-l$enable_thread_lib $LIBS"
14274 cat > conftest.$ac_ext <<_ACEOF
14275 module mod;
14276 extern(C) int pthread_create();
14277
14278 extern(C) int main() {
14279 pthread_create(); return 0;
14280 }
14281 _ACEOF
14282 if ac_fn_d_try_link "$LINENO"; then :
14283 eval "$as_ac_Lib=yes"
14284 else
14285 eval "$as_ac_Lib=no"
14286 fi
14287 rm -f core conftest.err conftest.$ac_objext \
14288 conftest$ac_exeext conftest.$ac_ext
14289 LIBS=$ac_check_lib_save_LIBS
14290 fi
14291 eval ac_res=\$$as_ac_Lib
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14293 $as_echo "$ac_res" >&6; }
14294 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
14295 cat >>confdefs.h <<_ACEOF
14296 #define `$as_echo "HAVE_LIB$enable_thread_lib" | $as_tr_cpp` 1
14297 _ACEOF
14298
14299 LIBS="-l$enable_thread_lib $LIBS"
14300
14301 else
14302
14303 as_fn_error $? "Thread library not found" "$LINENO" 5
14304
14305 fi
14306
14307
14308 fi
14309
14310 fi
14311
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cosf" >&5
14313 $as_echo_n "checking for library containing cosf... " >&6; }
14314 if ${ac_cv_search_cosf+:} false; then :
14315 $as_echo_n "(cached) " >&6
14316 else
14317 ac_func_search_save_LIBS=$LIBS
14318 cat > conftest.$ac_ext <<_ACEOF
14319 module mod;
14320 extern(C) int cosf();
14321
14322 extern(C) int main() {
14323 cosf(); return 0;
14324 }
14325 _ACEOF
14326 for ac_lib in '' m; do
14327 if test -z "$ac_lib"; then
14328 ac_res="none required"
14329 else
14330 ac_res=-l$ac_lib
14331 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14332 fi
14333 if ac_fn_d_try_link "$LINENO"; then :
14334 ac_cv_search_cosf=$ac_res
14335 fi
14336 rm -f core conftest.err conftest.$ac_objext \
14337 conftest$ac_exeext
14338 if ${ac_cv_search_cosf+:} false; then :
14339 break
14340 fi
14341 done
14342 if ${ac_cv_search_cosf+:} false; then :
14343
14344 else
14345 ac_cv_search_cosf=no
14346 fi
14347 rm conftest.$ac_ext
14348 LIBS=$ac_func_search_save_LIBS
14349 fi
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cosf" >&5
14351 $as_echo "$ac_cv_search_cosf" >&6; }
14352 ac_res=$ac_cv_search_cosf
14353 if test "$ac_res" != no; then :
14354 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14355
14356 fi
14357
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14359 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14360 if ${ac_cv_search_clock_gettime+:} false; then :
14361 $as_echo_n "(cached) " >&6
14362 else
14363 ac_func_search_save_LIBS=$LIBS
14364 cat > conftest.$ac_ext <<_ACEOF
14365 module mod;
14366 extern(C) int clock_gettime();
14367
14368 extern(C) int main() {
14369 clock_gettime(); return 0;
14370 }
14371 _ACEOF
14372 for ac_lib in '' rt; do
14373 if test -z "$ac_lib"; then
14374 ac_res="none required"
14375 else
14376 ac_res=-l$ac_lib
14377 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14378 fi
14379 if ac_fn_d_try_link "$LINENO"; then :
14380 ac_cv_search_clock_gettime=$ac_res
14381 fi
14382 rm -f core conftest.err conftest.$ac_objext \
14383 conftest$ac_exeext
14384 if ${ac_cv_search_clock_gettime+:} false; then :
14385 break
14386 fi
14387 done
14388 if ${ac_cv_search_clock_gettime+:} false; then :
14389
14390 else
14391 ac_cv_search_clock_gettime=no
14392 fi
14393 rm conftest.$ac_ext
14394 LIBS=$ac_func_search_save_LIBS
14395 fi
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14397 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14398 ac_res=$ac_cv_search_clock_gettime
14399 if test "$ac_res" != no; then :
14400 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14401
14402 fi
14403
14404
14405 # This checks to see if the host supports the compiler-generated builtins
14406 # for atomic operations for various integral sizes. Note, this is intended
14407 # to be an all-or-nothing switch, so all the atomic operations that are
14408 # used should be checked.
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for byte" >&5
14410 $as_echo_n "checking for atomic builtins for byte... " >&6; }
14411 if ${druntime_cv_atomic_byte+:} false; then :
14412 $as_echo_n "(cached) " >&6
14413 else
14414
14415 cat > conftest.$ac_ext <<_ACEOF
14416 module mod;
14417 import gcc.builtins;
14418
14419 extern(C) int main() {
14420
14421 shared(byte) c1;
14422 byte c2, c3;
14423 __atomic_compare_exchange_1(&c1, &c2, c3, false, 5, 5);
14424 __atomic_load_1(&c1, 5);
14425 __atomic_store_1(&c1, c2, 5);
14426 return 0;
14427
14428 }
14429 _ACEOF
14430 if ac_fn_d_try_link "$LINENO"; then :
14431 druntime_cv_atomic_byte=yes
14432 else
14433 druntime_cv_atomic_byte=no
14434 fi
14435 rm -f core conftest.err conftest.$ac_objext \
14436 conftest$ac_exeext conftest.$ac_ext
14437
14438 fi
14439
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_byte" >&5
14441 $as_echo "$druntime_cv_atomic_byte" >&6; }
14442
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5
14444 $as_echo_n "checking for atomic builtins for short... " >&6; }
14445 if ${druntime_cv_atomic_short+:} false; then :
14446 $as_echo_n "(cached) " >&6
14447 else
14448
14449 cat > conftest.$ac_ext <<_ACEOF
14450 module mod;
14451 import gcc.builtins;
14452
14453 extern(C) int main() {
14454
14455 shared(short) c1;
14456 short c2, c3;
14457 __atomic_compare_exchange_2(&c1, &c2, c3, false, 5, 5);
14458 __atomic_load_2(&c1, 5);
14459 __atomic_store_2(&c1, c2, 5);
14460 return 0;
14461
14462 }
14463 _ACEOF
14464 if ac_fn_d_try_link "$LINENO"; then :
14465 druntime_cv_atomic_short=yes
14466 else
14467 druntime_cv_atomic_short=no
14468 fi
14469 rm -f core conftest.err conftest.$ac_objext \
14470 conftest$ac_exeext conftest.$ac_ext
14471
14472 fi
14473
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_short" >&5
14475 $as_echo "$druntime_cv_atomic_short" >&6; }
14476
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5
14478 $as_echo_n "checking for atomic builtins for int... " >&6; }
14479 if ${druntime_cv_atomic_int+:} false; then :
14480 $as_echo_n "(cached) " >&6
14481 else
14482
14483 cat > conftest.$ac_ext <<_ACEOF
14484 module mod;
14485 import gcc.builtins;
14486
14487 extern(C) int main() {
14488
14489 shared(int) c1;
14490 int c2, c3;
14491 __atomic_compare_exchange_4(&c1, &c2, c3, false, 5, 5);
14492 __atomic_load_4(&c1, 5);
14493 __atomic_store_4(&c1, c2, 5);
14494 return 0;
14495
14496 }
14497 _ACEOF
14498 if ac_fn_d_try_link "$LINENO"; then :
14499 druntime_cv_atomic_int=yes
14500 else
14501 druntime_cv_atomic_int=no
14502 fi
14503 rm -f core conftest.err conftest.$ac_objext \
14504 conftest$ac_exeext conftest.$ac_ext
14505
14506 fi
14507
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_int" >&5
14509 $as_echo "$druntime_cv_atomic_int" >&6; }
14510
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long" >&5
14512 $as_echo_n "checking for atomic builtins for long... " >&6; }
14513 if ${druntime_cv_atomic_long+:} false; then :
14514 $as_echo_n "(cached) " >&6
14515 else
14516
14517 cat > conftest.$ac_ext <<_ACEOF
14518 module mod;
14519 import gcc.builtins;
14520
14521 extern(C) int main() {
14522
14523 shared(long) c1;
14524 long c2, c3;
14525 __atomic_compare_exchange_8(&c1, &c2, c3, false, 5, 5);
14526 __atomic_load_8(&c1, 5);
14527 __atomic_store_8(&c1, c2, 5);
14528 return 0;
14529
14530 }
14531 _ACEOF
14532 if ac_fn_d_try_link "$LINENO"; then :
14533 druntime_cv_atomic_long=yes
14534 else
14535 druntime_cv_atomic_long=no
14536 fi
14537 rm -f core conftest.err conftest.$ac_objext \
14538 conftest$ac_exeext conftest.$ac_ext
14539
14540 fi
14541
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_long" >&5
14543 $as_echo "$druntime_cv_atomic_long" >&6; }
14544
14545 # Have atomic builtin support if all but the long test above passes.
14546 DCFG_HAVE_ATOMIC_BUILTINS=false
14547 if test "$druntime_cv_atomic_byte" = yes \
14548 && test "$druntime_cv_atomic_short" = yes \
14549 && test "$druntime_cv_atomic_int" = yes; then \
14550 DCFG_HAVE_ATOMIC_BUILTINS=true
14551 fi
14552
14553 # Have 64-bit atomic support if the long test above passes.
14554 DCFG_HAVE_64BIT_ATOMICS=false
14555 if test "$druntime_cv_atomic_long" = yes; then
14556 DCFG_HAVE_64BIT_ATOMICS=true
14557 fi
14558
14559
14560
14561
14562 ac_ext=c
14563 ac_cpp='$CPP $CPPFLAGS'
14564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14567
14568
14569 GDCFLAGS=$gdc_save_DFLAGS
14570
14571
14572
14573
14574 # Check whether --with-libatomic was given.
14575 if test "${with_libatomic+set}" = set; then :
14576 withval=$with_libatomic;
14577 fi
14578
14579
14580 DCFG_HAVE_LIBATOMIC=false
14581 LIBATOMIC=
14582 if test "x$with_libatomic" != "xno"; then :
14583
14584 DCFG_HAVE_LIBATOMIC=true
14585 LIBATOMIC=../../libatomic/libatomic_convenience.la
14586
14587 else
14588
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic" >&5
14590 $as_echo_n "checking for libatomic... " >&6; }
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14592 $as_echo "disabled" >&6; }
14593
14594 fi
14595
14596
14597
14598
14599
14600 ac_ext=c
14601 ac_cpp='$CPP $CPPFLAGS'
14602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14605
14606 BACKTRACE_SUPPORTED=false
14607 BACKTRACE_USES_MALLOC=false
14608 BACKTRACE_SUPPORTS_THREADS=false
14609 LIBBACKTRACE=""
14610
14611
14612 # Check whether --with-libbacktrace was given.
14613 if test "${with_libbacktrace+set}" = set; then :
14614 withval=$with_libbacktrace;
14615 fi
14616
14617
14618 if test "x$with_libbacktrace" != "xno"; then :
14619
14620 LIBBACKTRACE=../../libbacktrace/libbacktrace.la
14621
14622 gdc_save_CPPFLAGS=$CPPFLAGS
14623 CPPFLAGS+=" -I../libbacktrace "
14624
14625 ac_fn_c_check_header_mongrel "$LINENO" "backtrace-supported.h" "ac_cv_header_backtrace_supported_h" "$ac_includes_default"
14626 if test "x$ac_cv_header_backtrace_supported_h" = xyes; then :
14627 have_libbacktrace_h=true
14628 else
14629 have_libbacktrace_h=false
14630 fi
14631
14632
14633
14634 if $have_libbacktrace_h; then
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTED" >&5
14636 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTED... " >&6; }
14637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14638 /* end confdefs.h. */
14639
14640 #include <backtrace-supported.h>
14641 #if BACKTRACE_SUPPORTED
14642 FOUND_LIBBACKTRACE_RESULT_GDC
14643 #endif
14644
14645 _ACEOF
14646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14647 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14648 BACKTRACE_SUPPORTED=true
14649 else
14650 BACKTRACE_SUPPORTED=false
14651 fi
14652 rm -f conftest*
14653
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTED" >&5
14655 $as_echo "$BACKTRACE_SUPPORTED" >&6; }
14656
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_USES_MALLOC" >&5
14658 $as_echo_n "checking libbacktrace: BACKTRACE_USES_MALLOC... " >&6; }
14659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14660 /* end confdefs.h. */
14661
14662 #include <backtrace-supported.h>
14663 #if BACKTRACE_USES_MALLOC
14664 FOUND_LIBBACKTRACE_RESULT_GDC
14665 #endif
14666
14667 _ACEOF
14668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14669 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14670 BACKTRACE_USES_MALLOC=true
14671 else
14672 BACKTRACE_USES_MALLOC=false
14673 fi
14674 rm -f conftest*
14675
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_USES_MALLOC" >&5
14677 $as_echo "$BACKTRACE_USES_MALLOC" >&6; }
14678
14679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTS_THREADS" >&5
14680 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTS_THREADS... " >&6; }
14681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14682 /* end confdefs.h. */
14683
14684 #include <backtrace-supported.h>
14685 #if BACKTRACE_SUPPORTS_THREADS
14686 FOUND_LIBBACKTRACE_RESULT_GDC
14687 #endif
14688
14689 _ACEOF
14690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14691 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14692 BACKTRACE_SUPPORTS_THREADS=true
14693 else
14694 BACKTRACE_SUPPORTS_THREADS=false
14695 fi
14696 rm -f conftest*
14697
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTS_THREADS" >&5
14699 $as_echo "$BACKTRACE_SUPPORTS_THREADS" >&6; }
14700 fi
14701 CPPFLAGS=$gdc_save_CPPFLAGS
14702
14703 else
14704
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbacktrace" >&5
14706 $as_echo_n "checking for libbacktrace... " >&6; }
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14708 $as_echo "disabled" >&6; }
14709
14710 fi
14711
14712
14713
14714
14715
14716 ac_ext=c
14717 ac_cpp='$CPP $CPPFLAGS'
14718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14721
14722
14723
14724 # Libtool has already checked this, so re-use the inferred dlopen lib.
14725 if test "x$enable_dlopen" = "xyes" && test -n "$lt_cv_dlopen_libs"; then :
14726
14727 LIBS="$LIBS $lt_cv_dlopen_libs"
14728
14729 fi
14730
14731
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14733 $as_echo_n "checking for socket libraries... " >&6; }
14734 if ${druntime_cv_lib_sockets+:} false; then :
14735 $as_echo_n "(cached) " >&6
14736 else
14737 druntime_cv_lib_sockets=
14738 druntime_check_both=no
14739 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
14740 if test "x$ac_cv_func_connect" = xyes; then :
14741 druntime_check_socket=no
14742 else
14743 druntime_check_socket=yes
14744 fi
14745
14746 if test "$druntime_check_socket" = "yes"; then
14747 unset ac_cv_func_connect
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
14749 $as_echo_n "checking for main in -lsocket... " >&6; }
14750 if ${ac_cv_lib_socket_main+:} false; then :
14751 $as_echo_n "(cached) " >&6
14752 else
14753 ac_check_lib_save_LIBS=$LIBS
14754 LIBS="-lsocket $LIBS"
14755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14756 /* end confdefs.h. */
14757
14758
14759 int
14760 main ()
14761 {
14762 return main ();
14763 ;
14764 return 0;
14765 }
14766 _ACEOF
14767 if ac_fn_c_try_link "$LINENO"; then :
14768 ac_cv_lib_socket_main=yes
14769 else
14770 ac_cv_lib_socket_main=no
14771 fi
14772 rm -f core conftest.err conftest.$ac_objext \
14773 conftest$ac_exeext conftest.$ac_ext
14774 LIBS=$ac_check_lib_save_LIBS
14775 fi
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14777 $as_echo "$ac_cv_lib_socket_main" >&6; }
14778 if test "x$ac_cv_lib_socket_main" = xyes; then :
14779 druntime_cv_lib_sockets="-lsocket"
14780 else
14781 druntime_check_both=yes
14782 fi
14783
14784 fi
14785 if test "$druntime_check_both" = "yes"; then
14786 druntime_old_libs=$LIBS
14787 LIBS="$LIBS -lsocket -lnsl"
14788 unset ac_cv_func_accept
14789 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
14790 if test "x$ac_cv_func_accept" = xyes; then :
14791 druntime_check_nsl=no
14792 druntime_cv_lib_sockets="-lsocket -lnsl"
14793 fi
14794
14795 unset ac_cv_func_accept
14796 LIBS=$druntime_old_libs
14797 fi
14798 unset ac_cv_func_gethostbyname
14799 druntime_old_libs="$LIBS"
14800 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14801 if test "x$ac_cv_func_gethostbyname" = xyes; then :
14802
14803 else
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14805 $as_echo_n "checking for main in -lnsl... " >&6; }
14806 if ${ac_cv_lib_nsl_main+:} false; then :
14807 $as_echo_n "(cached) " >&6
14808 else
14809 ac_check_lib_save_LIBS=$LIBS
14810 LIBS="-lnsl $LIBS"
14811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14812 /* end confdefs.h. */
14813
14814
14815 int
14816 main ()
14817 {
14818 return main ();
14819 ;
14820 return 0;
14821 }
14822 _ACEOF
14823 if ac_fn_c_try_link "$LINENO"; then :
14824 ac_cv_lib_nsl_main=yes
14825 else
14826 ac_cv_lib_nsl_main=no
14827 fi
14828 rm -f core conftest.err conftest.$ac_objext \
14829 conftest$ac_exeext conftest.$ac_ext
14830 LIBS=$ac_check_lib_save_LIBS
14831 fi
14832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14833 $as_echo "$ac_cv_lib_nsl_main" >&6; }
14834 if test "x$ac_cv_lib_nsl_main" = xyes; then :
14835 druntime_cv_lib_sockets="$druntime_cv_lib_sockets -lnsl"
14836 fi
14837
14838 fi
14839
14840
14841 fi
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_lib_sockets" >&5
14843 $as_echo "$druntime_cv_lib_sockets" >&6; }
14844 LIBS="$LIBS $druntime_cv_lib_sockets"
14845
14846
14847 ac_ext=c
14848 ac_cpp='$CPP $CPPFLAGS'
14849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14852
14853 LIBZ=""
14854
14855
14856 # Check whether --with-target-system-zlib was given.
14857 if test "${with_target_system_zlib+set}" = set; then :
14858 withval=$with_target_system_zlib;
14859 else
14860 with_target_system_zlib=no
14861 fi
14862
14863
14864 case "$with_target_system_zlib" in
14865 yes|no|auto) ;;
14866 *) as_fn_error $? "Invalid argument for --with-target-system-zlib" "$LINENO" 5 ;;
14867 esac
14868
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system zlib" >&5
14870 $as_echo_n "checking for system zlib... " >&6; }
14871 save_LIBS=$LIBS
14872 LIBS="$LIBS -lz"
14873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14874 /* end confdefs.h. */
14875 #include <zlib.h>
14876 int
14877 main ()
14878 {
14879 gzopen("none", "rb")
14880 ;
14881 return 0;
14882 }
14883 _ACEOF
14884 if ac_fn_c_try_link "$LINENO"; then :
14885
14886 if test "$cross_compiling" = yes; then :
14887 system_zlib_found=no
14888
14889 else
14890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14891 /* end confdefs.h. */
14892
14893 #include <zlib.h>
14894 int main() {
14895 gzFile file = gzopen("none", "rb");
14896 return 0;
14897 }
14898
14899 _ACEOF
14900 if ac_fn_c_try_run "$LINENO"; then :
14901 system_zlib_found=yes
14902 else
14903 system_zlib_found=no
14904 fi
14905 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14906 conftest.$ac_objext conftest.beam conftest.$ac_ext
14907 fi
14908
14909
14910 else
14911 system_zlib_found=no
14912 fi
14913 rm -f core conftest.err conftest.$ac_objext \
14914 conftest$ac_exeext conftest.$ac_ext
14915 LIBS=$save_LIBS
14916
14917 if test x$system_zlib_found = xyes && test x$with_target_system_zlib != xno; then
14918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
14919 $as_echo "found" >&6; }
14920 LIBS="$LIBS -lz"
14921 elif test x$system_zlib_found = xno && test x$with_target_system_zlib = xyes; then
14922 as_fn_error $? "system zlib required but not found" "$LINENO" 5
14923 else
14924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14925 $as_echo "just compiled" >&6; }
14926 LIBZ=../../zlib/libz_convenience.la
14927 fi
14928
14929
14930 ac_ext=c
14931 ac_cpp='$CPP $CPPFLAGS'
14932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14935
14936
14937
14938
14939
14940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking D GCC version" >&5
14941 $as_echo_n "checking D GCC version... " >&6; }
14942 gcc_version=`eval $get_gcc_base_ver $srcdir/../gcc/BASE-VER`
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_version" >&5
14944 $as_echo "$gcc_version" >&6; }
14945
14946
14947
14948 # Check whether --with-cross-host was given.
14949 if test "${with_cross_host+set}" = set; then :
14950 withval=$with_cross_host;
14951 fi
14952
14953
14954 libphobos_toolexecdir=no
14955 libphobos_toolexeclibdir=no
14956
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
14958 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
14959 # Check whether --enable-version-specific-runtime-libs was given.
14960 if test "${enable_version_specific_runtime_libs+set}" = set; then :
14961 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
14962 yes) version_specific_libs=yes ;;
14963 no) version_specific_libs=no ;;
14964 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
14965 esac
14966 else
14967 version_specific_libs=no
14968 fi
14969
14970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
14971 $as_echo "$version_specific_libs" >&6; }
14972
14973 # Version-specific runtime libs processing.
14974 if test $version_specific_libs = yes; then
14975 libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
14976 libphobos_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
14977 else
14978 # Calculate libphobos_toolexecdir, libphobos_toolexeclibdir
14979 # Install a library built with a cross compiler in tooldir, not libdir.
14980 if test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
14981 libphobos_toolexecdir='${exec_prefix}/${host_alias}'
14982 libphobos_toolexeclibdir='${toolexecdir}/lib'
14983 else
14984 libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
14985 libphobos_toolexeclibdir='${libdir}'
14986 fi
14987 multi_os_directory=`$GDC -print-multi-os-directory`
14988 case $multi_os_directory in
14989 .) ;; # Avoid trailing /.
14990 *) libphobos_toolexeclibdir=${libphobos_toolexeclibdir}/${multi_os_directory} ;;
14991 esac
14992 fi
14993
14994
14995
14996 # Default case for install directory for D sources files.
14997 gdc_include_dir='$(libdir)/gcc/${target_alias}/${gcc_version}/include/d'
14998
14999
15000
15001 # Add drtbegin.o/drtend.o to startfile/endfile specs in libgphobos.spec
15002 if test "$DCFG_MINFO_BRACKETING" = "false"; then
15003 DRTSTUFF_SPEC=$srcdir/src/drtstuff.spec
15004 else
15005 DRTSTUFF_SPEC=/dev/null
15006 fi
15007
15008
15009 # Add dependencies for libgphobos.spec file
15010 SPEC_PHOBOS_DEPS="$LIBS"
15011
15012
15013 # Libdruntime / phobos soname version
15014 libtool_VERSION=76:3:0
15015
15016
15017 # Set default flags (after DRUNTIME_WERROR!)
15018 if test -z "$GDCFLAGS"; then
15019 GDCFLAGS="-Wall $WERROR_FLAG -g -frelease -O2"
15020 fi
15021
15022
15023 if test -z "$GDCFLAGSX"; then
15024 GDCFLAGSX="-Wall $WERROR_FLAG -g -fno-release -funittest"
15025 fi
15026
15027
15028 # Sanity check for the cross-compilation case:
15029 ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
15030 if test "x$ac_cv_header_stdio_h" = xyes; then :
15031 :
15032 else
15033 as_fn_error $? "cannot find stdio.h." "$LINENO" 5
15034 fi
15035
15036
15037
15038 ac_config_files="$ac_config_files Makefile"
15039
15040
15041 ac_config_files="$ac_config_files libdruntime/gcc/config.d libdruntime/gcc/libbacktrace.d"
15042
15043 ac_config_files="$ac_config_files src/libgphobos.spec"
15044
15045 ac_config_files="$ac_config_files testsuite/testsuite_flags"
15046
15047
15048 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
15049 # that multilib installs will end up installed in the correct place.
15050 # The testsuite needs it for multilib-aware ABI baseline files.
15051 # To work around this not being passed down from config-ml.in ->
15052 # srcdir/Makefile.am -> srcdir/{src,libdruntime,...}/Makefile.am, manually
15053 # append it here. Only modify Makefiles that have just been created.
15054 #
15055 # Also, get rid of this simulated-VPATH thing that automake does.
15056 ac_config_files="$ac_config_files libdruntime/Makefile src/Makefile testsuite/Makefile"
15057
15058
15059 cat >confcache <<\_ACEOF
15060 # This file is a shell script that caches the results of configure
15061 # tests run on this system so they can be shared between configure
15062 # scripts and configure runs, see configure's option --config-cache.
15063 # It is not useful on other systems. If it contains results you don't
15064 # want to keep, you may remove or edit it.
15065 #
15066 # config.status only pays attention to the cache file if you give it
15067 # the --recheck option to rerun configure.
15068 #
15069 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15070 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15071 # following values.
15072
15073 _ACEOF
15074
15075 # The following way of writing the cache mishandles newlines in values,
15076 # but we know of no workaround that is simple, portable, and efficient.
15077 # So, we kill variables containing newlines.
15078 # Ultrix sh set writes to stderr and can't be redirected directly,
15079 # and sets the high bit in the cache file unless we assign to the vars.
15080 (
15081 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15082 eval ac_val=\$$ac_var
15083 case $ac_val in #(
15084 *${as_nl}*)
15085 case $ac_var in #(
15086 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15087 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15088 esac
15089 case $ac_var in #(
15090 _ | IFS | as_nl) ;; #(
15091 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15092 *) { eval $ac_var=; unset $ac_var;} ;;
15093 esac ;;
15094 esac
15095 done
15096
15097 (set) 2>&1 |
15098 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15099 *${as_nl}ac_space=\ *)
15100 # `set' does not quote correctly, so add quotes: double-quote
15101 # substitution turns \\\\ into \\, and sed turns \\ into \.
15102 sed -n \
15103 "s/'/'\\\\''/g;
15104 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15105 ;; #(
15106 *)
15107 # `set' quotes correctly as required by POSIX, so do not add quotes.
15108 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15109 ;;
15110 esac |
15111 sort
15112 ) |
15113 sed '
15114 /^ac_cv_env_/b end
15115 t clear
15116 :clear
15117 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15118 t end
15119 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15120 :end' >>confcache
15121 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15122 if test -w "$cache_file"; then
15123 if test "x$cache_file" != "x/dev/null"; then
15124 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15125 $as_echo "$as_me: updating cache $cache_file" >&6;}
15126 if test ! -f "$cache_file" || test -h "$cache_file"; then
15127 cat confcache >"$cache_file"
15128 else
15129 case $cache_file in #(
15130 */* | ?:*)
15131 mv -f confcache "$cache_file"$$ &&
15132 mv -f "$cache_file"$$ "$cache_file" ;; #(
15133 *)
15134 mv -f confcache "$cache_file" ;;
15135 esac
15136 fi
15137 fi
15138 else
15139 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15140 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15141 fi
15142 fi
15143 rm -f confcache
15144
15145 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15146 # Let make expand exec_prefix.
15147 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15148
15149 DEFS=-DHAVE_CONFIG_H
15150
15151 ac_libobjs=
15152 ac_ltlibobjs=
15153 U=
15154 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15155 # 1. Remove the extension, and $U if already installed.
15156 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15157 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15158 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15159 # will be set to the directory where LIBOBJS objects are built.
15160 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15161 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15162 done
15163 LIBOBJS=$ac_libobjs
15164
15165 LTLIBOBJS=$ac_ltlibobjs
15166
15167
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15169 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15170 if test -n "$am_sleep_pid"; then
15171 # Hide warnings about reused PIDs.
15172 wait $am_sleep_pid 2>/dev/null
15173 fi
15174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15175 $as_echo "done" >&6; }
15176 if test -n "$EXEEXT"; then
15177 am__EXEEXT_TRUE=
15178 am__EXEEXT_FALSE='#'
15179 else
15180 am__EXEEXT_TRUE='#'
15181 am__EXEEXT_FALSE=
15182 fi
15183
15184 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15185 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15186 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15187 fi
15188 if test -z "${DRUNTIME_GC_ENABLE_TRUE}" && test -z "${DRUNTIME_GC_ENABLE_FALSE}"; then
15189 as_fn_error $? "conditional \"DRUNTIME_GC_ENABLE\" was never defined.
15190 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15191 fi
15192 if test -z "${DRUNTIME_OS_UNIX_TRUE}" && test -z "${DRUNTIME_OS_UNIX_FALSE}"; then
15193 as_fn_error $? "conditional \"DRUNTIME_OS_UNIX\" was never defined.
15194 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15195 fi
15196 if test -z "${DRUNTIME_OS_AIX_TRUE}" && test -z "${DRUNTIME_OS_AIX_FALSE}"; then
15197 as_fn_error $? "conditional \"DRUNTIME_OS_AIX\" was never defined.
15198 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15199 fi
15200 if test -z "${DRUNTIME_OS_ANDROID_TRUE}" && test -z "${DRUNTIME_OS_ANDROID_FALSE}"; then
15201 as_fn_error $? "conditional \"DRUNTIME_OS_ANDROID\" was never defined.
15202 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15203 fi
15204 if test -z "${DRUNTIME_OS_DARWIN_TRUE}" && test -z "${DRUNTIME_OS_DARWIN_FALSE}"; then
15205 as_fn_error $? "conditional \"DRUNTIME_OS_DARWIN\" was never defined.
15206 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15207 fi
15208 if test -z "${DRUNTIME_OS_DRAGONFLYBSD_TRUE}" && test -z "${DRUNTIME_OS_DRAGONFLYBSD_FALSE}"; then
15209 as_fn_error $? "conditional \"DRUNTIME_OS_DRAGONFLYBSD\" was never defined.
15210 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15211 fi
15212 if test -z "${DRUNTIME_OS_FREEBSD_TRUE}" && test -z "${DRUNTIME_OS_FREEBSD_FALSE}"; then
15213 as_fn_error $? "conditional \"DRUNTIME_OS_FREEBSD\" was never defined.
15214 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15215 fi
15216 if test -z "${DRUNTIME_OS_NETBSD_TRUE}" && test -z "${DRUNTIME_OS_NETBSD_FALSE}"; then
15217 as_fn_error $? "conditional \"DRUNTIME_OS_NETBSD\" was never defined.
15218 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15219 fi
15220 if test -z "${DRUNTIME_OS_OPENBSD_TRUE}" && test -z "${DRUNTIME_OS_OPENBSD_FALSE}"; then
15221 as_fn_error $? "conditional \"DRUNTIME_OS_OPENBSD\" was never defined.
15222 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15223 fi
15224 if test -z "${DRUNTIME_OS_LINUX_TRUE}" && test -z "${DRUNTIME_OS_LINUX_FALSE}"; then
15225 as_fn_error $? "conditional \"DRUNTIME_OS_LINUX\" was never defined.
15226 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15227 fi
15228 if test -z "${DRUNTIME_OS_MINGW_TRUE}" && test -z "${DRUNTIME_OS_MINGW_FALSE}"; then
15229 as_fn_error $? "conditional \"DRUNTIME_OS_MINGW\" was never defined.
15230 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15231 fi
15232 if test -z "${DRUNTIME_OS_SOLARIS_TRUE}" && test -z "${DRUNTIME_OS_SOLARIS_FALSE}"; then
15233 as_fn_error $? "conditional \"DRUNTIME_OS_SOLARIS\" was never defined.
15234 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15235 fi
15236 if test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE}" && test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE}"; then
15237 as_fn_error $? "conditional \"DRUNTIME_OS_ARM_EABI_UNWINDER\" was never defined.
15238 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15239 fi
15240 if test -z "${DRUNTIME_OS_MINFO_BRACKETING_TRUE}" && test -z "${DRUNTIME_OS_MINFO_BRACKETING_FALSE}"; then
15241 as_fn_error $? "conditional \"DRUNTIME_OS_MINFO_BRACKETING\" was never defined.
15242 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15243 fi
15244
15245 : "${CONFIG_STATUS=./config.status}"
15246 ac_write_fail=0
15247 ac_clean_files_save=$ac_clean_files
15248 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15250 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15251 as_write_fail=0
15252 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15253 #! $SHELL
15254 # Generated by $as_me.
15255 # Run this file to recreate the current configuration.
15256 # Compiler output produced by configure, useful for debugging
15257 # configure, is in config.log if it exists.
15258
15259 debug=false
15260 ac_cs_recheck=false
15261 ac_cs_silent=false
15262
15263 SHELL=\${CONFIG_SHELL-$SHELL}
15264 export SHELL
15265 _ASEOF
15266 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15267 ## -------------------- ##
15268 ## M4sh Initialization. ##
15269 ## -------------------- ##
15270
15271 # Be more Bourne compatible
15272 DUALCASE=1; export DUALCASE # for MKS sh
15273 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15274 emulate sh
15275 NULLCMD=:
15276 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15277 # is contrary to our usage. Disable this feature.
15278 alias -g '${1+"$@"}'='"$@"'
15279 setopt NO_GLOB_SUBST
15280 else
15281 case `(set -o) 2>/dev/null` in #(
15282 *posix*) :
15283 set -o posix ;; #(
15284 *) :
15285 ;;
15286 esac
15287 fi
15288
15289
15290 as_nl='
15291 '
15292 export as_nl
15293 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15294 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15295 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15296 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15297 # Prefer a ksh shell builtin over an external printf program on Solaris,
15298 # but without wasting forks for bash or zsh.
15299 if test -z "$BASH_VERSION$ZSH_VERSION" \
15300 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15301 as_echo='print -r --'
15302 as_echo_n='print -rn --'
15303 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15304 as_echo='printf %s\n'
15305 as_echo_n='printf %s'
15306 else
15307 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15308 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15309 as_echo_n='/usr/ucb/echo -n'
15310 else
15311 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15312 as_echo_n_body='eval
15313 arg=$1;
15314 case $arg in #(
15315 *"$as_nl"*)
15316 expr "X$arg" : "X\\(.*\\)$as_nl";
15317 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15318 esac;
15319 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15320 '
15321 export as_echo_n_body
15322 as_echo_n='sh -c $as_echo_n_body as_echo'
15323 fi
15324 export as_echo_body
15325 as_echo='sh -c $as_echo_body as_echo'
15326 fi
15327
15328 # The user is always right.
15329 if test "${PATH_SEPARATOR+set}" != set; then
15330 PATH_SEPARATOR=:
15331 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15332 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15333 PATH_SEPARATOR=';'
15334 }
15335 fi
15336
15337
15338 # IFS
15339 # We need space, tab and new line, in precisely that order. Quoting is
15340 # there to prevent editors from complaining about space-tab.
15341 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15342 # splitting by setting IFS to empty value.)
15343 IFS=" "" $as_nl"
15344
15345 # Find who we are. Look in the path if we contain no directory separator.
15346 as_myself=
15347 case $0 in #((
15348 *[\\/]* ) as_myself=$0 ;;
15349 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15350 for as_dir in $PATH
15351 do
15352 IFS=$as_save_IFS
15353 test -z "$as_dir" && as_dir=.
15354 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15355 done
15356 IFS=$as_save_IFS
15357
15358 ;;
15359 esac
15360 # We did not find ourselves, most probably we were run as `sh COMMAND'
15361 # in which case we are not to be found in the path.
15362 if test "x$as_myself" = x; then
15363 as_myself=$0
15364 fi
15365 if test ! -f "$as_myself"; then
15366 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15367 exit 1
15368 fi
15369
15370 # Unset variables that we do not need and which cause bugs (e.g. in
15371 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15372 # suppresses any "Segmentation fault" message there. '((' could
15373 # trigger a bug in pdksh 5.2.14.
15374 for as_var in BASH_ENV ENV MAIL MAILPATH
15375 do eval test x\${$as_var+set} = xset \
15376 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15377 done
15378 PS1='$ '
15379 PS2='> '
15380 PS4='+ '
15381
15382 # NLS nuisances.
15383 LC_ALL=C
15384 export LC_ALL
15385 LANGUAGE=C
15386 export LANGUAGE
15387
15388 # CDPATH.
15389 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15390
15391
15392 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15393 # ----------------------------------------
15394 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15395 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15396 # script with STATUS, using 1 if that was 0.
15397 as_fn_error ()
15398 {
15399 as_status=$1; test $as_status -eq 0 && as_status=1
15400 if test "$4"; then
15401 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15402 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15403 fi
15404 $as_echo "$as_me: error: $2" >&2
15405 as_fn_exit $as_status
15406 } # as_fn_error
15407
15408
15409 # as_fn_set_status STATUS
15410 # -----------------------
15411 # Set $? to STATUS, without forking.
15412 as_fn_set_status ()
15413 {
15414 return $1
15415 } # as_fn_set_status
15416
15417 # as_fn_exit STATUS
15418 # -----------------
15419 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15420 as_fn_exit ()
15421 {
15422 set +e
15423 as_fn_set_status $1
15424 exit $1
15425 } # as_fn_exit
15426
15427 # as_fn_unset VAR
15428 # ---------------
15429 # Portably unset VAR.
15430 as_fn_unset ()
15431 {
15432 { eval $1=; unset $1;}
15433 }
15434 as_unset=as_fn_unset
15435 # as_fn_append VAR VALUE
15436 # ----------------------
15437 # Append the text in VALUE to the end of the definition contained in VAR. Take
15438 # advantage of any shell optimizations that allow amortized linear growth over
15439 # repeated appends, instead of the typical quadratic growth present in naive
15440 # implementations.
15441 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15442 eval 'as_fn_append ()
15443 {
15444 eval $1+=\$2
15445 }'
15446 else
15447 as_fn_append ()
15448 {
15449 eval $1=\$$1\$2
15450 }
15451 fi # as_fn_append
15452
15453 # as_fn_arith ARG...
15454 # ------------------
15455 # Perform arithmetic evaluation on the ARGs, and store the result in the
15456 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15457 # must be portable across $(()) and expr.
15458 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15459 eval 'as_fn_arith ()
15460 {
15461 as_val=$(( $* ))
15462 }'
15463 else
15464 as_fn_arith ()
15465 {
15466 as_val=`expr "$@" || test $? -eq 1`
15467 }
15468 fi # as_fn_arith
15469
15470
15471 if expr a : '\(a\)' >/dev/null 2>&1 &&
15472 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15473 as_expr=expr
15474 else
15475 as_expr=false
15476 fi
15477
15478 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15479 as_basename=basename
15480 else
15481 as_basename=false
15482 fi
15483
15484 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15485 as_dirname=dirname
15486 else
15487 as_dirname=false
15488 fi
15489
15490 as_me=`$as_basename -- "$0" ||
15491 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15492 X"$0" : 'X\(//\)$' \| \
15493 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15494 $as_echo X/"$0" |
15495 sed '/^.*\/\([^/][^/]*\)\/*$/{
15496 s//\1/
15497 q
15498 }
15499 /^X\/\(\/\/\)$/{
15500 s//\1/
15501 q
15502 }
15503 /^X\/\(\/\).*/{
15504 s//\1/
15505 q
15506 }
15507 s/.*/./; q'`
15508
15509 # Avoid depending upon Character Ranges.
15510 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15511 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15512 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15513 as_cr_digits='0123456789'
15514 as_cr_alnum=$as_cr_Letters$as_cr_digits
15515
15516 ECHO_C= ECHO_N= ECHO_T=
15517 case `echo -n x` in #(((((
15518 -n*)
15519 case `echo 'xy\c'` in
15520 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15521 xy) ECHO_C='\c';;
15522 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15523 ECHO_T=' ';;
15524 esac;;
15525 *)
15526 ECHO_N='-n';;
15527 esac
15528
15529 rm -f conf$$ conf$$.exe conf$$.file
15530 if test -d conf$$.dir; then
15531 rm -f conf$$.dir/conf$$.file
15532 else
15533 rm -f conf$$.dir
15534 mkdir conf$$.dir 2>/dev/null
15535 fi
15536 if (echo >conf$$.file) 2>/dev/null; then
15537 if ln -s conf$$.file conf$$ 2>/dev/null; then
15538 as_ln_s='ln -s'
15539 # ... but there are two gotchas:
15540 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15541 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15542 # In both cases, we have to default to `cp -pR'.
15543 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15544 as_ln_s='cp -pR'
15545 elif ln conf$$.file conf$$ 2>/dev/null; then
15546 as_ln_s=ln
15547 else
15548 as_ln_s='cp -pR'
15549 fi
15550 else
15551 as_ln_s='cp -pR'
15552 fi
15553 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15554 rmdir conf$$.dir 2>/dev/null
15555
15556
15557 # as_fn_mkdir_p
15558 # -------------
15559 # Create "$as_dir" as a directory, including parents if necessary.
15560 as_fn_mkdir_p ()
15561 {
15562
15563 case $as_dir in #(
15564 -*) as_dir=./$as_dir;;
15565 esac
15566 test -d "$as_dir" || eval $as_mkdir_p || {
15567 as_dirs=
15568 while :; do
15569 case $as_dir in #(
15570 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15571 *) as_qdir=$as_dir;;
15572 esac
15573 as_dirs="'$as_qdir' $as_dirs"
15574 as_dir=`$as_dirname -- "$as_dir" ||
15575 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15576 X"$as_dir" : 'X\(//\)[^/]' \| \
15577 X"$as_dir" : 'X\(//\)$' \| \
15578 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15579 $as_echo X"$as_dir" |
15580 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15581 s//\1/
15582 q
15583 }
15584 /^X\(\/\/\)[^/].*/{
15585 s//\1/
15586 q
15587 }
15588 /^X\(\/\/\)$/{
15589 s//\1/
15590 q
15591 }
15592 /^X\(\/\).*/{
15593 s//\1/
15594 q
15595 }
15596 s/.*/./; q'`
15597 test -d "$as_dir" && break
15598 done
15599 test -z "$as_dirs" || eval "mkdir $as_dirs"
15600 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15601
15602
15603 } # as_fn_mkdir_p
15604 if mkdir -p . 2>/dev/null; then
15605 as_mkdir_p='mkdir -p "$as_dir"'
15606 else
15607 test -d ./-p && rmdir ./-p
15608 as_mkdir_p=false
15609 fi
15610
15611
15612 # as_fn_executable_p FILE
15613 # -----------------------
15614 # Test if FILE is an executable regular file.
15615 as_fn_executable_p ()
15616 {
15617 test -f "$1" && test -x "$1"
15618 } # as_fn_executable_p
15619 as_test_x='test -x'
15620 as_executable_p=as_fn_executable_p
15621
15622 # Sed expression to map a string onto a valid CPP name.
15623 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15624
15625 # Sed expression to map a string onto a valid variable name.
15626 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15627
15628
15629 exec 6>&1
15630 ## ----------------------------------- ##
15631 ## Main body of $CONFIG_STATUS script. ##
15632 ## ----------------------------------- ##
15633 _ASEOF
15634 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15635
15636 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15637 # Save the log message, to keep $0 and so on meaningful, and to
15638 # report actual input values of CONFIG_FILES etc. instead of their
15639 # values after options handling.
15640 ac_log="
15641 This file was extended by package-unused $as_me version-unused, which was
15642 generated by GNU Autoconf 2.69. Invocation command line was
15643
15644 CONFIG_FILES = $CONFIG_FILES
15645 CONFIG_HEADERS = $CONFIG_HEADERS
15646 CONFIG_LINKS = $CONFIG_LINKS
15647 CONFIG_COMMANDS = $CONFIG_COMMANDS
15648 $ $0 $@
15649
15650 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15651 "
15652
15653 _ACEOF
15654
15655 case $ac_config_files in *"
15656 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15657 esac
15658
15659 case $ac_config_headers in *"
15660 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15661 esac
15662
15663
15664 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15665 # Files that config.status was made for.
15666 config_files="$ac_config_files"
15667 config_headers="$ac_config_headers"
15668 config_commands="$ac_config_commands"
15669
15670 _ACEOF
15671
15672 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15673 ac_cs_usage="\
15674 \`$as_me' instantiates files and other configuration actions
15675 from templates according to the current configuration. Unless the files
15676 and actions are specified as TAGs, all are instantiated by default.
15677
15678 Usage: $0 [OPTION]... [TAG]...
15679
15680 -h, --help print this help, then exit
15681 -V, --version print version number and configuration settings, then exit
15682 --config print configuration, then exit
15683 -q, --quiet, --silent
15684 do not print progress messages
15685 -d, --debug don't remove temporary files
15686 --recheck update $as_me by reconfiguring in the same conditions
15687 --file=FILE[:TEMPLATE]
15688 instantiate the configuration file FILE
15689 --header=FILE[:TEMPLATE]
15690 instantiate the configuration header FILE
15691
15692 Configuration files:
15693 $config_files
15694
15695 Configuration headers:
15696 $config_headers
15697
15698 Configuration commands:
15699 $config_commands
15700
15701 Report bugs to the package provider."
15702
15703 _ACEOF
15704 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15705 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15706 ac_cs_version="\\
15707 package-unused config.status version-unused
15708 configured by $0, generated by GNU Autoconf 2.69,
15709 with options \\"\$ac_cs_config\\"
15710
15711 Copyright (C) 2012 Free Software Foundation, Inc.
15712 This config.status script is free software; the Free Software Foundation
15713 gives unlimited permission to copy, distribute and modify it."
15714
15715 ac_pwd='$ac_pwd'
15716 srcdir='$srcdir'
15717 INSTALL='$INSTALL'
15718 MKDIR_P='$MKDIR_P'
15719 AWK='$AWK'
15720 test -n "\$AWK" || AWK=awk
15721 _ACEOF
15722
15723 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15724 # The default lists apply if the user does not specify any file.
15725 ac_need_defaults=:
15726 while test $# != 0
15727 do
15728 case $1 in
15729 --*=?*)
15730 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15731 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15732 ac_shift=:
15733 ;;
15734 --*=)
15735 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15736 ac_optarg=
15737 ac_shift=:
15738 ;;
15739 *)
15740 ac_option=$1
15741 ac_optarg=$2
15742 ac_shift=shift
15743 ;;
15744 esac
15745
15746 case $ac_option in
15747 # Handling of the options.
15748 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15749 ac_cs_recheck=: ;;
15750 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15751 $as_echo "$ac_cs_version"; exit ;;
15752 --config | --confi | --conf | --con | --co | --c )
15753 $as_echo "$ac_cs_config"; exit ;;
15754 --debug | --debu | --deb | --de | --d | -d )
15755 debug=: ;;
15756 --file | --fil | --fi | --f )
15757 $ac_shift
15758 case $ac_optarg in
15759 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15760 '') as_fn_error $? "missing file argument" ;;
15761 esac
15762 as_fn_append CONFIG_FILES " '$ac_optarg'"
15763 ac_need_defaults=false;;
15764 --header | --heade | --head | --hea )
15765 $ac_shift
15766 case $ac_optarg in
15767 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15768 esac
15769 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15770 ac_need_defaults=false;;
15771 --he | --h)
15772 # Conflict between --help and --header
15773 as_fn_error $? "ambiguous option: \`$1'
15774 Try \`$0 --help' for more information.";;
15775 --help | --hel | -h )
15776 $as_echo "$ac_cs_usage"; exit ;;
15777 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15778 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15779 ac_cs_silent=: ;;
15780
15781 # This is an error.
15782 -*) as_fn_error $? "unrecognized option: \`$1'
15783 Try \`$0 --help' for more information." ;;
15784
15785 *) as_fn_append ac_config_targets " $1"
15786 ac_need_defaults=false ;;
15787
15788 esac
15789 shift
15790 done
15791
15792 ac_configure_extra_args=
15793
15794 if $ac_cs_silent; then
15795 exec 6>/dev/null
15796 ac_configure_extra_args="$ac_configure_extra_args --silent"
15797 fi
15798
15799 _ACEOF
15800 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15801 if \$ac_cs_recheck; then
15802 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15803 shift
15804 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15805 CONFIG_SHELL='$SHELL'
15806 export CONFIG_SHELL
15807 exec "\$@"
15808 fi
15809
15810 _ACEOF
15811 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15812 exec 5>>config.log
15813 {
15814 echo
15815 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15816 ## Running $as_me. ##
15817 _ASBOX
15818 $as_echo "$ac_log"
15819 } >&5
15820
15821 _ACEOF
15822 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15823 #
15824 # INIT-COMMANDS
15825 #
15826
15827 srcdir="$srcdir"
15828 host="$host"
15829 target="$target"
15830 with_multisubdir="$with_multisubdir"
15831 with_multisrctop="$with_multisrctop"
15832 with_target_subdir="$with_target_subdir"
15833 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15834 multi_basedir="$multi_basedir"
15835 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15836 CC="$CC"
15837 CXX="$CXX"
15838 GFORTRAN="$GFORTRAN"
15839 GDC="$GDC"
15840
15841
15842 # The HP-UX ksh and POSIX shell print the target directory to stdout
15843 # if CDPATH is set.
15844 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15845
15846 sed_quote_subst='$sed_quote_subst'
15847 double_quote_subst='$double_quote_subst'
15848 delay_variable_subst='$delay_variable_subst'
15849 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15850 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15851 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15852 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15853 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15854 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15855 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15856 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15857 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15858 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15859 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15860 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15861 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15862 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15863 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15864 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15865 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15866 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15867 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15868 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15869 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15870 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15871 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15872 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15873 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15874 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15875 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15876 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15877 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15878 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15879 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15880 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15881 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15882 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15883 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15884 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15885 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15886 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15887 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15888 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15889 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15890 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15891 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15892 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15893 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15894 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15895 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15896 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15897 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"`'
15898 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15899 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15900 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15901 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15902 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15903 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15904 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15905 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15906 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15907 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15908 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15909 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15910 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15911 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15912 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15913 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15914 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15915 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15916 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15917 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15918 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15919 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15920 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15921 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15922 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15923 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15924 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15925 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15926 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15927 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15928 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15929 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15930 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15931 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15932 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15933 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15934 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15935 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15936 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15937 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15938 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15939 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15940 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15941 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15942 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15943 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15944 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15945 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15946 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15947 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15948 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15949 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15950 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15951 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15952 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15953 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15954 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15955 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15956 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15957 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15958 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15959 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15960 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15961 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15962 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15963 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15964 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15965 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15966 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15967 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15968 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15969 LD_D='`$ECHO "$LD_D" | $SED "$delay_single_quote_subst"`'
15970 reload_flag_D='`$ECHO "$reload_flag_D" | $SED "$delay_single_quote_subst"`'
15971 reload_cmds_D='`$ECHO "$reload_cmds_D" | $SED "$delay_single_quote_subst"`'
15972 old_archive_cmds_D='`$ECHO "$old_archive_cmds_D" | $SED "$delay_single_quote_subst"`'
15973 compiler_D='`$ECHO "$compiler_D" | $SED "$delay_single_quote_subst"`'
15974 GCC_D='`$ECHO "$GCC_D" | $SED "$delay_single_quote_subst"`'
15975 lt_prog_compiler_no_builtin_flag_D='`$ECHO "$lt_prog_compiler_no_builtin_flag_D" | $SED "$delay_single_quote_subst"`'
15976 lt_prog_compiler_wl_D='`$ECHO "$lt_prog_compiler_wl_D" | $SED "$delay_single_quote_subst"`'
15977 lt_prog_compiler_pic_D='`$ECHO "$lt_prog_compiler_pic_D" | $SED "$delay_single_quote_subst"`'
15978 lt_prog_compiler_static_D='`$ECHO "$lt_prog_compiler_static_D" | $SED "$delay_single_quote_subst"`'
15979 lt_cv_prog_compiler_c_o_D='`$ECHO "$lt_cv_prog_compiler_c_o_D" | $SED "$delay_single_quote_subst"`'
15980 archive_cmds_need_lc_D='`$ECHO "$archive_cmds_need_lc_D" | $SED "$delay_single_quote_subst"`'
15981 enable_shared_with_static_runtimes_D='`$ECHO "$enable_shared_with_static_runtimes_D" | $SED "$delay_single_quote_subst"`'
15982 export_dynamic_flag_spec_D='`$ECHO "$export_dynamic_flag_spec_D" | $SED "$delay_single_quote_subst"`'
15983 whole_archive_flag_spec_D='`$ECHO "$whole_archive_flag_spec_D" | $SED "$delay_single_quote_subst"`'
15984 compiler_needs_object_D='`$ECHO "$compiler_needs_object_D" | $SED "$delay_single_quote_subst"`'
15985 old_archive_from_new_cmds_D='`$ECHO "$old_archive_from_new_cmds_D" | $SED "$delay_single_quote_subst"`'
15986 old_archive_from_expsyms_cmds_D='`$ECHO "$old_archive_from_expsyms_cmds_D" | $SED "$delay_single_quote_subst"`'
15987 archive_cmds_D='`$ECHO "$archive_cmds_D" | $SED "$delay_single_quote_subst"`'
15988 archive_expsym_cmds_D='`$ECHO "$archive_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
15989 module_cmds_D='`$ECHO "$module_cmds_D" | $SED "$delay_single_quote_subst"`'
15990 module_expsym_cmds_D='`$ECHO "$module_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
15991 with_gnu_ld_D='`$ECHO "$with_gnu_ld_D" | $SED "$delay_single_quote_subst"`'
15992 allow_undefined_flag_D='`$ECHO "$allow_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
15993 no_undefined_flag_D='`$ECHO "$no_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
15994 hardcode_libdir_flag_spec_D='`$ECHO "$hardcode_libdir_flag_spec_D" | $SED "$delay_single_quote_subst"`'
15995 hardcode_libdir_flag_spec_ld_D='`$ECHO "$hardcode_libdir_flag_spec_ld_D" | $SED "$delay_single_quote_subst"`'
15996 hardcode_libdir_separator_D='`$ECHO "$hardcode_libdir_separator_D" | $SED "$delay_single_quote_subst"`'
15997 hardcode_direct_D='`$ECHO "$hardcode_direct_D" | $SED "$delay_single_quote_subst"`'
15998 hardcode_direct_absolute_D='`$ECHO "$hardcode_direct_absolute_D" | $SED "$delay_single_quote_subst"`'
15999 hardcode_minus_L_D='`$ECHO "$hardcode_minus_L_D" | $SED "$delay_single_quote_subst"`'
16000 hardcode_shlibpath_var_D='`$ECHO "$hardcode_shlibpath_var_D" | $SED "$delay_single_quote_subst"`'
16001 hardcode_automatic_D='`$ECHO "$hardcode_automatic_D" | $SED "$delay_single_quote_subst"`'
16002 inherit_rpath_D='`$ECHO "$inherit_rpath_D" | $SED "$delay_single_quote_subst"`'
16003 link_all_deplibs_D='`$ECHO "$link_all_deplibs_D" | $SED "$delay_single_quote_subst"`'
16004 fix_srcfile_path_D='`$ECHO "$fix_srcfile_path_D" | $SED "$delay_single_quote_subst"`'
16005 always_export_symbols_D='`$ECHO "$always_export_symbols_D" | $SED "$delay_single_quote_subst"`'
16006 export_symbols_cmds_D='`$ECHO "$export_symbols_cmds_D" | $SED "$delay_single_quote_subst"`'
16007 exclude_expsyms_D='`$ECHO "$exclude_expsyms_D" | $SED "$delay_single_quote_subst"`'
16008 include_expsyms_D='`$ECHO "$include_expsyms_D" | $SED "$delay_single_quote_subst"`'
16009 prelink_cmds_D='`$ECHO "$prelink_cmds_D" | $SED "$delay_single_quote_subst"`'
16010 file_list_spec_D='`$ECHO "$file_list_spec_D" | $SED "$delay_single_quote_subst"`'
16011 hardcode_action_D='`$ECHO "$hardcode_action_D" | $SED "$delay_single_quote_subst"`'
16012
16013 LTCC='$LTCC'
16014 LTCFLAGS='$LTCFLAGS'
16015 compiler='$compiler_DEFAULT'
16016
16017 # A function that is used when there is no print builtin or printf.
16018 func_fallback_echo ()
16019 {
16020 eval 'cat <<_LTECHO_EOF
16021 \$1
16022 _LTECHO_EOF'
16023 }
16024
16025 # Quote evaled strings.
16026 for var in SHELL \
16027 ECHO \
16028 SED \
16029 GREP \
16030 EGREP \
16031 FGREP \
16032 LD \
16033 NM \
16034 LN_S \
16035 lt_SP2NL \
16036 lt_NL2SP \
16037 reload_flag \
16038 OBJDUMP \
16039 deplibs_check_method \
16040 file_magic_cmd \
16041 AR \
16042 AR_FLAGS \
16043 STRIP \
16044 RANLIB \
16045 CC \
16046 CFLAGS \
16047 compiler \
16048 lt_cv_sys_global_symbol_pipe \
16049 lt_cv_sys_global_symbol_to_cdecl \
16050 lt_cv_sys_global_symbol_to_c_name_address \
16051 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16052 lt_prog_compiler_no_builtin_flag \
16053 lt_prog_compiler_wl \
16054 lt_prog_compiler_pic \
16055 lt_prog_compiler_static \
16056 lt_cv_prog_compiler_c_o \
16057 need_locks \
16058 DSYMUTIL \
16059 NMEDIT \
16060 LIPO \
16061 OTOOL \
16062 OTOOL64 \
16063 shrext_cmds \
16064 export_dynamic_flag_spec \
16065 whole_archive_flag_spec \
16066 compiler_needs_object \
16067 with_gnu_ld \
16068 allow_undefined_flag \
16069 no_undefined_flag \
16070 hardcode_libdir_flag_spec \
16071 hardcode_libdir_flag_spec_ld \
16072 hardcode_libdir_separator \
16073 fix_srcfile_path \
16074 exclude_expsyms \
16075 include_expsyms \
16076 file_list_spec \
16077 variables_saved_for_relink \
16078 libname_spec \
16079 library_names_spec \
16080 soname_spec \
16081 install_override_mode \
16082 finish_eval \
16083 old_striplib \
16084 striplib \
16085 LD_D \
16086 reload_flag_D \
16087 compiler_D \
16088 lt_prog_compiler_no_builtin_flag_D \
16089 lt_prog_compiler_wl_D \
16090 lt_prog_compiler_pic_D \
16091 lt_prog_compiler_static_D \
16092 lt_cv_prog_compiler_c_o_D \
16093 export_dynamic_flag_spec_D \
16094 whole_archive_flag_spec_D \
16095 compiler_needs_object_D \
16096 with_gnu_ld_D \
16097 allow_undefined_flag_D \
16098 no_undefined_flag_D \
16099 hardcode_libdir_flag_spec_D \
16100 hardcode_libdir_flag_spec_ld_D \
16101 hardcode_libdir_separator_D \
16102 fix_srcfile_path_D \
16103 exclude_expsyms_D \
16104 include_expsyms_D \
16105 file_list_spec_D; do
16106 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16107 *[\\\\\\\`\\"\\\$]*)
16108 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16109 ;;
16110 *)
16111 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16112 ;;
16113 esac
16114 done
16115
16116 # Double-quote double-evaled strings.
16117 for var in reload_cmds \
16118 old_postinstall_cmds \
16119 old_postuninstall_cmds \
16120 old_archive_cmds \
16121 extract_expsyms_cmds \
16122 old_archive_from_new_cmds \
16123 old_archive_from_expsyms_cmds \
16124 archive_cmds \
16125 archive_expsym_cmds \
16126 module_cmds \
16127 module_expsym_cmds \
16128 export_symbols_cmds \
16129 prelink_cmds \
16130 postinstall_cmds \
16131 postuninstall_cmds \
16132 finish_cmds \
16133 sys_lib_search_path_spec \
16134 sys_lib_dlsearch_path_spec \
16135 reload_cmds_D \
16136 old_archive_cmds_D \
16137 old_archive_from_new_cmds_D \
16138 old_archive_from_expsyms_cmds_D \
16139 archive_cmds_D \
16140 archive_expsym_cmds_D \
16141 module_cmds_D \
16142 module_expsym_cmds_D \
16143 export_symbols_cmds_D \
16144 prelink_cmds_D; do
16145 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16146 *[\\\\\\\`\\"\\\$]*)
16147 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16148 ;;
16149 *)
16150 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16151 ;;
16152 esac
16153 done
16154
16155 ac_aux_dir='$ac_aux_dir'
16156 xsi_shell='$xsi_shell'
16157 lt_shell_append='$lt_shell_append'
16158
16159 # See if we are running on zsh, and set the options which allow our
16160 # commands through without removal of \ escapes INIT.
16161 if test -n "\${ZSH_VERSION+set}" ; then
16162 setopt NO_GLOB_SUBST
16163 fi
16164
16165
16166 PACKAGE='$PACKAGE'
16167 VERSION='$VERSION'
16168 TIMESTAMP='$TIMESTAMP'
16169 RM='$RM'
16170 ofile='$ofile'
16171
16172
16173
16174
16175
16176
16177 _ACEOF
16178
16179 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16180
16181 # Handling of arguments.
16182 for ac_config_target in $ac_config_targets
16183 do
16184 case $ac_config_target in
16185 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16186 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16187 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16188 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16189 "libdruntime/gcc/config.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/config.d" ;;
16190 "libdruntime/gcc/libbacktrace.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/libbacktrace.d" ;;
16191 "src/libgphobos.spec") CONFIG_FILES="$CONFIG_FILES src/libgphobos.spec" ;;
16192 "testsuite/testsuite_flags") CONFIG_FILES="$CONFIG_FILES testsuite/testsuite_flags" ;;
16193 "libdruntime/Makefile") CONFIG_FILES="$CONFIG_FILES libdruntime/Makefile" ;;
16194 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16195 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16196
16197 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16198 esac
16199 done
16200
16201
16202 # If the user did not use the arguments to specify the items to instantiate,
16203 # then the envvar interface is used. Set only those that are not.
16204 # We use the long form for the default assignment because of an extremely
16205 # bizarre bug on SunOS 4.1.3.
16206 if $ac_need_defaults; then
16207 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16208 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16209 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16210 fi
16211
16212 # Have a temporary directory for convenience. Make it in the build tree
16213 # simply because there is no reason against having it here, and in addition,
16214 # creating and moving files from /tmp can sometimes cause problems.
16215 # Hook for its removal unless debugging.
16216 # Note that there is a small window in which the directory will not be cleaned:
16217 # after its creation but before its name has been assigned to `$tmp'.
16218 $debug ||
16219 {
16220 tmp= ac_tmp=
16221 trap 'exit_status=$?
16222 : "${ac_tmp:=$tmp}"
16223 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16224 ' 0
16225 trap 'as_fn_exit 1' 1 2 13 15
16226 }
16227 # Create a (secure) tmp directory for tmp files.
16228
16229 {
16230 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16231 test -d "$tmp"
16232 } ||
16233 {
16234 tmp=./conf$$-$RANDOM
16235 (umask 077 && mkdir "$tmp")
16236 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16237 ac_tmp=$tmp
16238
16239 # Set up the scripts for CONFIG_FILES section.
16240 # No need to generate them if there are no CONFIG_FILES.
16241 # This happens for instance with `./config.status config.h'.
16242 if test -n "$CONFIG_FILES"; then
16243
16244 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16245 ac_cs_awk_getline=:
16246 ac_cs_awk_pipe_init=
16247 ac_cs_awk_read_file='
16248 while ((getline aline < (F[key])) > 0)
16249 print(aline)
16250 close(F[key])'
16251 ac_cs_awk_pipe_fini=
16252 else
16253 ac_cs_awk_getline=false
16254 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16255 ac_cs_awk_read_file='
16256 print "|#_!!_#|"
16257 print "cat " F[key] " &&"
16258 '$ac_cs_awk_pipe_init
16259 # The final `:' finishes the AND list.
16260 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16261 fi
16262 ac_cr=`echo X | tr X '\015'`
16263 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16264 # But we know of no other shell where ac_cr would be empty at this
16265 # point, so we can use a bashism as a fallback.
16266 if test "x$ac_cr" = x; then
16267 eval ac_cr=\$\'\\r\'
16268 fi
16269 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16270 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16271 ac_cs_awk_cr='\\r'
16272 else
16273 ac_cs_awk_cr=$ac_cr
16274 fi
16275
16276 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16277 _ACEOF
16278
16279 # Create commands to substitute file output variables.
16280 {
16281 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16282 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16283 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16284 echo "_ACAWK" &&
16285 echo "_ACEOF"
16286 } >conf$$files.sh &&
16287 . ./conf$$files.sh ||
16288 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16289 rm -f conf$$files.sh
16290
16291 {
16292 echo "cat >conf$$subs.awk <<_ACEOF" &&
16293 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16294 echo "_ACEOF"
16295 } >conf$$subs.sh ||
16296 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16297 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16298 ac_delim='%!_!# '
16299 for ac_last_try in false false false false false :; do
16300 . ./conf$$subs.sh ||
16301 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16302
16303 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16304 if test $ac_delim_n = $ac_delim_num; then
16305 break
16306 elif $ac_last_try; then
16307 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16308 else
16309 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16310 fi
16311 done
16312 rm -f conf$$subs.sh
16313
16314 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16315 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16316 _ACEOF
16317 sed -n '
16318 h
16319 s/^/S["/; s/!.*/"]=/
16320 p
16321 g
16322 s/^[^!]*!//
16323 :repl
16324 t repl
16325 s/'"$ac_delim"'$//
16326 t delim
16327 :nl
16328 h
16329 s/\(.\{148\}\)..*/\1/
16330 t more1
16331 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16332 p
16333 n
16334 b repl
16335 :more1
16336 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16337 p
16338 g
16339 s/.\{148\}//
16340 t nl
16341 :delim
16342 h
16343 s/\(.\{148\}\)..*/\1/
16344 t more2
16345 s/["\\]/\\&/g; s/^/"/; s/$/"/
16346 p
16347 b
16348 :more2
16349 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16350 p
16351 g
16352 s/.\{148\}//
16353 t delim
16354 ' <conf$$subs.awk | sed '
16355 /^[^""]/{
16356 N
16357 s/\n//
16358 }
16359 ' >>$CONFIG_STATUS || ac_write_fail=1
16360 rm -f conf$$subs.awk
16361 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16362 _ACAWK
16363 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16364 for (key in S) S_is_set[key] = 1
16365 FS = "\a"
16366 \$ac_cs_awk_pipe_init
16367 }
16368 {
16369 line = $ 0
16370 nfields = split(line, field, "@")
16371 substed = 0
16372 len = length(field[1])
16373 for (i = 2; i < nfields; i++) {
16374 key = field[i]
16375 keylen = length(key)
16376 if (S_is_set[key]) {
16377 value = S[key]
16378 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16379 len += length(value) + length(field[++i])
16380 substed = 1
16381 } else
16382 len += 1 + keylen
16383 }
16384 if (nfields == 3 && !substed) {
16385 key = field[2]
16386 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16387 \$ac_cs_awk_read_file
16388 next
16389 }
16390 }
16391 print line
16392 }
16393 \$ac_cs_awk_pipe_fini
16394 _ACAWK
16395 _ACEOF
16396 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16397 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16398 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16399 else
16400 cat
16401 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16402 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16403 _ACEOF
16404
16405 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16406 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16407 # trailing colons and then remove the whole line if VPATH becomes empty
16408 # (actually we leave an empty line to preserve line numbers).
16409 if test "x$srcdir" = x.; then
16410 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16411 h
16412 s///
16413 s/^/:/
16414 s/[ ]*$/:/
16415 s/:\$(srcdir):/:/g
16416 s/:\${srcdir}:/:/g
16417 s/:@srcdir@:/:/g
16418 s/^:*//
16419 s/:*$//
16420 x
16421 s/\(=[ ]*\).*/\1/
16422 G
16423 s/\n//
16424 s/^[^=]*=[ ]*$//
16425 }'
16426 fi
16427
16428 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16429 fi # test -n "$CONFIG_FILES"
16430
16431 # Set up the scripts for CONFIG_HEADERS section.
16432 # No need to generate them if there are no CONFIG_HEADERS.
16433 # This happens for instance with `./config.status Makefile'.
16434 if test -n "$CONFIG_HEADERS"; then
16435 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16436 BEGIN {
16437 _ACEOF
16438
16439 # Transform confdefs.h into an awk script `defines.awk', embedded as
16440 # here-document in config.status, that substitutes the proper values into
16441 # config.h.in to produce config.h.
16442
16443 # Create a delimiter string that does not exist in confdefs.h, to ease
16444 # handling of long lines.
16445 ac_delim='%!_!# '
16446 for ac_last_try in false false :; do
16447 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16448 if test -z "$ac_tt"; then
16449 break
16450 elif $ac_last_try; then
16451 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16452 else
16453 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16454 fi
16455 done
16456
16457 # For the awk script, D is an array of macro values keyed by name,
16458 # likewise P contains macro parameters if any. Preserve backslash
16459 # newline sequences.
16460
16461 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16462 sed -n '
16463 s/.\{148\}/&'"$ac_delim"'/g
16464 t rset
16465 :rset
16466 s/^[ ]*#[ ]*define[ ][ ]*/ /
16467 t def
16468 d
16469 :def
16470 s/\\$//
16471 t bsnl
16472 s/["\\]/\\&/g
16473 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16474 D["\1"]=" \3"/p
16475 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16476 d
16477 :bsnl
16478 s/["\\]/\\&/g
16479 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16480 D["\1"]=" \3\\\\\\n"\\/p
16481 t cont
16482 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16483 t cont
16484 d
16485 :cont
16486 n
16487 s/.\{148\}/&'"$ac_delim"'/g
16488 t clear
16489 :clear
16490 s/\\$//
16491 t bsnlc
16492 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16493 d
16494 :bsnlc
16495 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16496 b cont
16497 ' <confdefs.h | sed '
16498 s/'"$ac_delim"'/"\\\
16499 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16500
16501 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16502 for (key in D) D_is_set[key] = 1
16503 FS = "\a"
16504 }
16505 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16506 line = \$ 0
16507 split(line, arg, " ")
16508 if (arg[1] == "#") {
16509 defundef = arg[2]
16510 mac1 = arg[3]
16511 } else {
16512 defundef = substr(arg[1], 2)
16513 mac1 = arg[2]
16514 }
16515 split(mac1, mac2, "(") #)
16516 macro = mac2[1]
16517 prefix = substr(line, 1, index(line, defundef) - 1)
16518 if (D_is_set[macro]) {
16519 # Preserve the white space surrounding the "#".
16520 print prefix "define", macro P[macro] D[macro]
16521 next
16522 } else {
16523 # Replace #undef with comments. This is necessary, for example,
16524 # in the case of _POSIX_SOURCE, which is predefined and required
16525 # on some systems where configure will not decide to define it.
16526 if (defundef == "undef") {
16527 print "/*", prefix defundef, macro, "*/"
16528 next
16529 }
16530 }
16531 }
16532 { print }
16533 _ACAWK
16534 _ACEOF
16535 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16536 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16537 fi # test -n "$CONFIG_HEADERS"
16538
16539
16540 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16541 shift
16542 for ac_tag
16543 do
16544 case $ac_tag in
16545 :[FHLC]) ac_mode=$ac_tag; continue;;
16546 esac
16547 case $ac_mode$ac_tag in
16548 :[FHL]*:*);;
16549 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16550 :[FH]-) ac_tag=-:-;;
16551 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16552 esac
16553 ac_save_IFS=$IFS
16554 IFS=:
16555 set x $ac_tag
16556 IFS=$ac_save_IFS
16557 shift
16558 ac_file=$1
16559 shift
16560
16561 case $ac_mode in
16562 :L) ac_source=$1;;
16563 :[FH])
16564 ac_file_inputs=
16565 for ac_f
16566 do
16567 case $ac_f in
16568 -) ac_f="$ac_tmp/stdin";;
16569 *) # Look for the file first in the build tree, then in the source tree
16570 # (if the path is not absolute). The absolute path cannot be DOS-style,
16571 # because $ac_f cannot contain `:'.
16572 test -f "$ac_f" ||
16573 case $ac_f in
16574 [\\/$]*) false;;
16575 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16576 esac ||
16577 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16578 esac
16579 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16580 as_fn_append ac_file_inputs " '$ac_f'"
16581 done
16582
16583 # Let's still pretend it is `configure' which instantiates (i.e., don't
16584 # use $as_me), people would be surprised to read:
16585 # /* config.h. Generated by config.status. */
16586 configure_input='Generated from '`
16587 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16588 `' by configure.'
16589 if test x"$ac_file" != x-; then
16590 configure_input="$ac_file. $configure_input"
16591 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16592 $as_echo "$as_me: creating $ac_file" >&6;}
16593 fi
16594 # Neutralize special characters interpreted by sed in replacement strings.
16595 case $configure_input in #(
16596 *\&* | *\|* | *\\* )
16597 ac_sed_conf_input=`$as_echo "$configure_input" |
16598 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16599 *) ac_sed_conf_input=$configure_input;;
16600 esac
16601
16602 case $ac_tag in
16603 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16604 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16605 esac
16606 ;;
16607 esac
16608
16609 ac_dir=`$as_dirname -- "$ac_file" ||
16610 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16611 X"$ac_file" : 'X\(//\)[^/]' \| \
16612 X"$ac_file" : 'X\(//\)$' \| \
16613 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16614 $as_echo X"$ac_file" |
16615 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16616 s//\1/
16617 q
16618 }
16619 /^X\(\/\/\)[^/].*/{
16620 s//\1/
16621 q
16622 }
16623 /^X\(\/\/\)$/{
16624 s//\1/
16625 q
16626 }
16627 /^X\(\/\).*/{
16628 s//\1/
16629 q
16630 }
16631 s/.*/./; q'`
16632 as_dir="$ac_dir"; as_fn_mkdir_p
16633 ac_builddir=.
16634
16635 case "$ac_dir" in
16636 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16637 *)
16638 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16639 # A ".." for each directory in $ac_dir_suffix.
16640 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16641 case $ac_top_builddir_sub in
16642 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16643 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16644 esac ;;
16645 esac
16646 ac_abs_top_builddir=$ac_pwd
16647 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16648 # for backward compatibility:
16649 ac_top_builddir=$ac_top_build_prefix
16650
16651 case $srcdir in
16652 .) # We are building in place.
16653 ac_srcdir=.
16654 ac_top_srcdir=$ac_top_builddir_sub
16655 ac_abs_top_srcdir=$ac_pwd ;;
16656 [\\/]* | ?:[\\/]* ) # Absolute name.
16657 ac_srcdir=$srcdir$ac_dir_suffix;
16658 ac_top_srcdir=$srcdir
16659 ac_abs_top_srcdir=$srcdir ;;
16660 *) # Relative name.
16661 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16662 ac_top_srcdir=$ac_top_build_prefix$srcdir
16663 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16664 esac
16665 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16666
16667
16668 case $ac_mode in
16669 :F)
16670 #
16671 # CONFIG_FILE
16672 #
16673
16674 case $INSTALL in
16675 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16676 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16677 esac
16678 ac_MKDIR_P=$MKDIR_P
16679 case $MKDIR_P in
16680 [\\/$]* | ?:[\\/]* ) ;;
16681 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16682 esac
16683 _ACEOF
16684
16685 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16686 # If the template does not know about datarootdir, expand it.
16687 # FIXME: This hack should be removed a few years after 2.60.
16688 ac_datarootdir_hack=; ac_datarootdir_seen=
16689 ac_sed_dataroot='
16690 /datarootdir/ {
16691 p
16692 q
16693 }
16694 /@datadir@/p
16695 /@docdir@/p
16696 /@infodir@/p
16697 /@localedir@/p
16698 /@mandir@/p'
16699 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16700 *datarootdir*) ac_datarootdir_seen=yes;;
16701 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16703 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16704 _ACEOF
16705 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16706 ac_datarootdir_hack='
16707 s&@datadir@&$datadir&g
16708 s&@docdir@&$docdir&g
16709 s&@infodir@&$infodir&g
16710 s&@localedir@&$localedir&g
16711 s&@mandir@&$mandir&g
16712 s&\\\${datarootdir}&$datarootdir&g' ;;
16713 esac
16714 _ACEOF
16715
16716 # Neutralize VPATH when `$srcdir' = `.'.
16717 # Shell code in configure.ac might set extrasub.
16718 # FIXME: do we really want to maintain this feature?
16719 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16720 ac_sed_extra="$ac_vpsub
16721 $extrasub
16722 _ACEOF
16723 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16724 :t
16725 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16726 s|@configure_input@|$ac_sed_conf_input|;t t
16727 s&@top_builddir@&$ac_top_builddir_sub&;t t
16728 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16729 s&@srcdir@&$ac_srcdir&;t t
16730 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16731 s&@top_srcdir@&$ac_top_srcdir&;t t
16732 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16733 s&@builddir@&$ac_builddir&;t t
16734 s&@abs_builddir@&$ac_abs_builddir&;t t
16735 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16736 s&@INSTALL@&$ac_INSTALL&;t t
16737 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16738 $ac_datarootdir_hack
16739 "
16740 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16741 if $ac_cs_awk_getline; then
16742 $AWK -f "$ac_tmp/subs.awk"
16743 else
16744 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16745 fi \
16746 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16747
16748 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16749 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16750 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16751 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16753 which seems to be undefined. Please make sure it is defined" >&5
16754 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16755 which seems to be undefined. Please make sure it is defined" >&2;}
16756
16757 rm -f "$ac_tmp/stdin"
16758 case $ac_file in
16759 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16760 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16761 esac \
16762 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16763 ;;
16764 :H)
16765 #
16766 # CONFIG_HEADER
16767 #
16768 if test x"$ac_file" != x-; then
16769 {
16770 $as_echo "/* $configure_input */" \
16771 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16772 } >"$ac_tmp/config.h" \
16773 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16774 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16775 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16776 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16777 else
16778 rm -f "$ac_file"
16779 mv "$ac_tmp/config.h" "$ac_file" \
16780 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16781 fi
16782 else
16783 $as_echo "/* $configure_input */" \
16784 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16785 || as_fn_error $? "could not create -" "$LINENO" 5
16786 fi
16787 # Compute "$ac_file"'s index in $config_headers.
16788 _am_arg="$ac_file"
16789 _am_stamp_count=1
16790 for _am_header in $config_headers :; do
16791 case $_am_header in
16792 $_am_arg | $_am_arg:* )
16793 break ;;
16794 * )
16795 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16796 esac
16797 done
16798 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16799 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16800 X"$_am_arg" : 'X\(//\)[^/]' \| \
16801 X"$_am_arg" : 'X\(//\)$' \| \
16802 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16803 $as_echo X"$_am_arg" |
16804 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16805 s//\1/
16806 q
16807 }
16808 /^X\(\/\/\)[^/].*/{
16809 s//\1/
16810 q
16811 }
16812 /^X\(\/\/\)$/{
16813 s//\1/
16814 q
16815 }
16816 /^X\(\/\).*/{
16817 s//\1/
16818 q
16819 }
16820 s/.*/./; q'`/stamp-h$_am_stamp_count
16821 ;;
16822
16823 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16824 $as_echo "$as_me: executing $ac_file commands" >&6;}
16825 ;;
16826 esac
16827
16828
16829 case $ac_file$ac_mode in
16830 "default-1":C)
16831 # Only add multilib support code if we just rebuilt the top-level
16832 # Makefile.
16833 case " $CONFIG_FILES " in
16834 *" Makefile "*)
16835 ac_file=Makefile . ${multi_basedir}/config-ml.in
16836 ;;
16837 esac ;;
16838 "libtool":C)
16839
16840 # See if we are running on zsh, and set the options which allow our
16841 # commands through without removal of \ escapes.
16842 if test -n "${ZSH_VERSION+set}" ; then
16843 setopt NO_GLOB_SUBST
16844 fi
16845
16846 cfgfile="${ofile}T"
16847 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16848 $RM "$cfgfile"
16849
16850 cat <<_LT_EOF >> "$cfgfile"
16851 #! $SHELL
16852
16853 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16854 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16855 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16856 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16857 #
16858 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16859 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16860 # Written by Gordon Matzigkeit, 1996
16861 #
16862 # This file is part of GNU Libtool.
16863 #
16864 # GNU Libtool is free software; you can redistribute it and/or
16865 # modify it under the terms of the GNU General Public License as
16866 # published by the Free Software Foundation; either version 2 of
16867 # the License, or (at your option) any later version.
16868 #
16869 # As a special exception to the GNU General Public License,
16870 # if you distribute this file as part of a program or library that
16871 # is built using GNU Libtool, you may include this file under the
16872 # same distribution terms that you use for the rest of that program.
16873 #
16874 # GNU Libtool is distributed in the hope that it will be useful,
16875 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16876 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16877 # GNU General Public License for more details.
16878 #
16879 # You should have received a copy of the GNU General Public License
16880 # along with GNU Libtool; see the file COPYING. If not, a copy
16881 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16882 # obtained by writing to the Free Software Foundation, Inc.,
16883 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16884
16885
16886 # The names of the tagged configurations supported by this script.
16887 available_tags="D "
16888
16889 # ### BEGIN LIBTOOL CONFIG
16890
16891 # Which release of libtool.m4 was used?
16892 macro_version=$macro_version
16893 macro_revision=$macro_revision
16894
16895 # Whether or not to build shared libraries.
16896 build_libtool_libs=$enable_shared
16897
16898 # Whether or not to build static libraries.
16899 build_old_libs=$enable_static
16900
16901 # What type of objects to build.
16902 pic_mode=$pic_mode
16903
16904 # Whether or not to optimize for fast installation.
16905 fast_install=$enable_fast_install
16906
16907 # Shell to use when invoking shell scripts.
16908 SHELL=$lt_SHELL
16909
16910 # An echo program that protects backslashes.
16911 ECHO=$lt_ECHO
16912
16913 # The host system.
16914 host_alias=$host_alias
16915 host=$host
16916 host_os=$host_os
16917
16918 # The build system.
16919 build_alias=$build_alias
16920 build=$build
16921 build_os=$build_os
16922
16923 # A sed program that does not truncate output.
16924 SED=$lt_SED
16925
16926 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16927 Xsed="\$SED -e 1s/^X//"
16928
16929 # A grep program that handles long lines.
16930 GREP=$lt_GREP
16931
16932 # An ERE matcher.
16933 EGREP=$lt_EGREP
16934
16935 # A literal string matcher.
16936 FGREP=$lt_FGREP
16937
16938 # A BSD- or MS-compatible name lister.
16939 NM=$lt_NM
16940
16941 # Whether we need soft or hard links.
16942 LN_S=$lt_LN_S
16943
16944 # What is the maximum length of a command?
16945 max_cmd_len=$max_cmd_len
16946
16947 # Object file suffix (normally "o").
16948 objext=$ac_objext
16949
16950 # Executable file suffix (normally "").
16951 exeext=$exeext
16952
16953 # whether the shell understands "unset".
16954 lt_unset=$lt_unset
16955
16956 # turn spaces into newlines.
16957 SP2NL=$lt_lt_SP2NL
16958
16959 # turn newlines into spaces.
16960 NL2SP=$lt_lt_NL2SP
16961
16962 # An object symbol dumper.
16963 OBJDUMP=$lt_OBJDUMP
16964
16965 # Method to check whether dependent libraries are shared objects.
16966 deplibs_check_method=$lt_deplibs_check_method
16967
16968 # Command to use when deplibs_check_method == "file_magic".
16969 file_magic_cmd=$lt_file_magic_cmd
16970
16971 # The archiver.
16972 AR=$lt_AR
16973 AR_FLAGS=$lt_AR_FLAGS
16974
16975 # A symbol stripping program.
16976 STRIP=$lt_STRIP
16977
16978 # Commands used to install an old-style archive.
16979 RANLIB=$lt_RANLIB
16980 old_postinstall_cmds=$lt_old_postinstall_cmds
16981 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16982
16983 # Whether to use a lock for old archive extraction.
16984 lock_old_archive_extraction=$lock_old_archive_extraction
16985
16986 # A C compiler.
16987 LTCC=$lt_CC
16988
16989 # LTCC compiler flags.
16990 LTCFLAGS=$lt_CFLAGS
16991
16992 # Take the output of nm and produce a listing of raw symbols and C names.
16993 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16994
16995 # Transform the output of nm in a proper C declaration.
16996 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16997
16998 # Transform the output of nm in a C name address pair.
16999 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17000
17001 # Transform the output of nm in a C name address pair when lib prefix is needed.
17002 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17003
17004 # The name of the directory that contains temporary libtool files.
17005 objdir=$objdir
17006
17007 # Used to examine libraries when file_magic_cmd begins with "file".
17008 MAGIC_CMD=$MAGIC_CMD
17009
17010 # Must we lock files when doing compilation?
17011 need_locks=$lt_need_locks
17012
17013 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17014 DSYMUTIL=$lt_DSYMUTIL
17015
17016 # Tool to change global to local symbols on Mac OS X.
17017 NMEDIT=$lt_NMEDIT
17018
17019 # Tool to manipulate fat objects and archives on Mac OS X.
17020 LIPO=$lt_LIPO
17021
17022 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17023 OTOOL=$lt_OTOOL
17024
17025 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17026 OTOOL64=$lt_OTOOL64
17027
17028 # Old archive suffix (normally "a").
17029 libext=$libext
17030
17031 # Shared library suffix (normally ".so").
17032 shrext_cmds=$lt_shrext_cmds
17033
17034 # The commands to extract the exported symbol list from a shared archive.
17035 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17036
17037 # Variables whose values should be saved in libtool wrapper scripts and
17038 # restored at link time.
17039 variables_saved_for_relink=$lt_variables_saved_for_relink
17040
17041 # Do we need the "lib" prefix for modules?
17042 need_lib_prefix=$need_lib_prefix
17043
17044 # Do we need a version for libraries?
17045 need_version=$need_version
17046
17047 # Library versioning type.
17048 version_type=$version_type
17049
17050 # Shared library runtime path variable.
17051 runpath_var=$runpath_var
17052
17053 # Shared library path variable.
17054 shlibpath_var=$shlibpath_var
17055
17056 # Is shlibpath searched before the hard-coded library search path?
17057 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17058
17059 # Format of library name prefix.
17060 libname_spec=$lt_libname_spec
17061
17062 # List of archive names. First name is the real one, the rest are links.
17063 # The last name is the one that the linker finds with -lNAME
17064 library_names_spec=$lt_library_names_spec
17065
17066 # The coded name of the library, if different from the real name.
17067 soname_spec=$lt_soname_spec
17068
17069 # Permission mode override for installation of shared libraries.
17070 install_override_mode=$lt_install_override_mode
17071
17072 # Command to use after installation of a shared archive.
17073 postinstall_cmds=$lt_postinstall_cmds
17074
17075 # Command to use after uninstallation of a shared archive.
17076 postuninstall_cmds=$lt_postuninstall_cmds
17077
17078 # Commands used to finish a libtool library installation in a directory.
17079 finish_cmds=$lt_finish_cmds
17080
17081 # As "finish_cmds", except a single script fragment to be evaled but
17082 # not shown.
17083 finish_eval=$lt_finish_eval
17084
17085 # Whether we should hardcode library paths into libraries.
17086 hardcode_into_libs=$hardcode_into_libs
17087
17088 # Compile-time system search path for libraries.
17089 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17090
17091 # Run-time system search path for libraries.
17092 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17093
17094 # Whether dlopen is supported.
17095 dlopen_support=$enable_dlopen
17096
17097 # Whether dlopen of programs is supported.
17098 dlopen_self=$enable_dlopen_self
17099
17100 # Whether dlopen of statically linked programs is supported.
17101 dlopen_self_static=$enable_dlopen_self_static
17102
17103 # Commands to strip libraries.
17104 old_striplib=$lt_old_striplib
17105 striplib=$lt_striplib
17106
17107
17108 # The linker used to build libraries.
17109 LD=$lt_LD
17110
17111 # How to create reloadable object files.
17112 reload_flag=$lt_reload_flag
17113 reload_cmds=$lt_reload_cmds
17114
17115 # Commands used to build an old-style archive.
17116 old_archive_cmds=$lt_old_archive_cmds
17117
17118 # A language specific compiler.
17119 CC=$lt_compiler
17120
17121 # Is the compiler the GNU compiler?
17122 with_gcc=$GCC
17123
17124 # Compiler flag to turn off builtin functions.
17125 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17126
17127 # How to pass a linker flag through the compiler.
17128 wl=$lt_lt_prog_compiler_wl
17129
17130 # Additional compiler flags for building library objects.
17131 pic_flag=$lt_lt_prog_compiler_pic
17132
17133 # Compiler flag to prevent dynamic linking.
17134 link_static_flag=$lt_lt_prog_compiler_static
17135
17136 # Does compiler simultaneously support -c and -o options?
17137 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17138
17139 # Whether or not to add -lc for building shared libraries.
17140 build_libtool_need_lc=$archive_cmds_need_lc
17141
17142 # Whether or not to disallow shared libs when runtime libs are static.
17143 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17144
17145 # Compiler flag to allow reflexive dlopens.
17146 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17147
17148 # Compiler flag to generate shared objects directly from archives.
17149 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17150
17151 # Whether the compiler copes with passing no objects directly.
17152 compiler_needs_object=$lt_compiler_needs_object
17153
17154 # Create an old-style archive from a shared archive.
17155 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17156
17157 # Create a temporary old-style archive to link instead of a shared archive.
17158 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17159
17160 # Commands used to build a shared archive.
17161 archive_cmds=$lt_archive_cmds
17162 archive_expsym_cmds=$lt_archive_expsym_cmds
17163
17164 # Commands used to build a loadable module if different from building
17165 # a shared archive.
17166 module_cmds=$lt_module_cmds
17167 module_expsym_cmds=$lt_module_expsym_cmds
17168
17169 # Whether we are building with GNU ld or not.
17170 with_gnu_ld=$lt_with_gnu_ld
17171
17172 # Flag that allows shared libraries with undefined symbols to be built.
17173 allow_undefined_flag=$lt_allow_undefined_flag
17174
17175 # Flag that enforces no undefined symbols.
17176 no_undefined_flag=$lt_no_undefined_flag
17177
17178 # Flag to hardcode \$libdir into a binary during linking.
17179 # This must work even if \$libdir does not exist
17180 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17181
17182 # If ld is used when linking, flag to hardcode \$libdir into a binary
17183 # during linking. This must work even if \$libdir does not exist.
17184 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17185
17186 # Whether we need a single "-rpath" flag with a separated argument.
17187 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17188
17189 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17190 # DIR into the resulting binary.
17191 hardcode_direct=$hardcode_direct
17192
17193 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17194 # DIR into the resulting binary and the resulting library dependency is
17195 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17196 # library is relocated.
17197 hardcode_direct_absolute=$hardcode_direct_absolute
17198
17199 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17200 # into the resulting binary.
17201 hardcode_minus_L=$hardcode_minus_L
17202
17203 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17204 # into the resulting binary.
17205 hardcode_shlibpath_var=$hardcode_shlibpath_var
17206
17207 # Set to "yes" if building a shared library automatically hardcodes DIR
17208 # into the library and all subsequent libraries and executables linked
17209 # against it.
17210 hardcode_automatic=$hardcode_automatic
17211
17212 # Set to yes if linker adds runtime paths of dependent libraries
17213 # to runtime path list.
17214 inherit_rpath=$inherit_rpath
17215
17216 # Whether libtool must link a program against all its dependency libraries.
17217 link_all_deplibs=$link_all_deplibs
17218
17219 # Fix the shell variable \$srcfile for the compiler.
17220 fix_srcfile_path=$lt_fix_srcfile_path
17221
17222 # Set to "yes" if exported symbols are required.
17223 always_export_symbols=$always_export_symbols
17224
17225 # The commands to list exported symbols.
17226 export_symbols_cmds=$lt_export_symbols_cmds
17227
17228 # Symbols that should not be listed in the preloaded symbols.
17229 exclude_expsyms=$lt_exclude_expsyms
17230
17231 # Symbols that must always be exported.
17232 include_expsyms=$lt_include_expsyms
17233
17234 # Commands necessary for linking programs (against libraries) with templates.
17235 prelink_cmds=$lt_prelink_cmds
17236
17237 # Specify filename containing input files.
17238 file_list_spec=$lt_file_list_spec
17239
17240 # How to hardcode a shared library path into an executable.
17241 hardcode_action=$hardcode_action
17242
17243 # ### END LIBTOOL CONFIG
17244
17245 _LT_EOF
17246
17247 case $host_os in
17248 aix3*)
17249 cat <<\_LT_EOF >> "$cfgfile"
17250 # AIX sometimes has problems with the GCC collect2 program. For some
17251 # reason, if we set the COLLECT_NAMES environment variable, the problems
17252 # vanish in a puff of smoke.
17253 if test "X${COLLECT_NAMES+set}" != Xset; then
17254 COLLECT_NAMES=
17255 export COLLECT_NAMES
17256 fi
17257 _LT_EOF
17258 ;;
17259 esac
17260
17261
17262 ltmain="$ac_aux_dir/ltmain.sh"
17263
17264
17265 # We use sed instead of cat because bash on DJGPP gets confused if
17266 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17267 # text mode, it properly converts lines to CR/LF. This bash problem
17268 # is reportedly fixed, but why not run on old versions too?
17269 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17270 || (rm -f "$cfgfile"; exit 1)
17271
17272 case $xsi_shell in
17273 yes)
17274 cat << \_LT_EOF >> "$cfgfile"
17275
17276 # func_dirname file append nondir_replacement
17277 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17278 # otherwise set result to NONDIR_REPLACEMENT.
17279 func_dirname ()
17280 {
17281 case ${1} in
17282 */*) func_dirname_result="${1%/*}${2}" ;;
17283 * ) func_dirname_result="${3}" ;;
17284 esac
17285 }
17286
17287 # func_basename file
17288 func_basename ()
17289 {
17290 func_basename_result="${1##*/}"
17291 }
17292
17293 # func_dirname_and_basename file append nondir_replacement
17294 # perform func_basename and func_dirname in a single function
17295 # call:
17296 # dirname: Compute the dirname of FILE. If nonempty,
17297 # add APPEND to the result, otherwise set result
17298 # to NONDIR_REPLACEMENT.
17299 # value returned in "$func_dirname_result"
17300 # basename: Compute filename of FILE.
17301 # value retuned in "$func_basename_result"
17302 # Implementation must be kept synchronized with func_dirname
17303 # and func_basename. For efficiency, we do not delegate to
17304 # those functions but instead duplicate the functionality here.
17305 func_dirname_and_basename ()
17306 {
17307 case ${1} in
17308 */*) func_dirname_result="${1%/*}${2}" ;;
17309 * ) func_dirname_result="${3}" ;;
17310 esac
17311 func_basename_result="${1##*/}"
17312 }
17313
17314 # func_stripname prefix suffix name
17315 # strip PREFIX and SUFFIX off of NAME.
17316 # PREFIX and SUFFIX must not contain globbing or regex special
17317 # characters, hashes, percent signs, but SUFFIX may contain a leading
17318 # dot (in which case that matches only a dot).
17319 func_stripname ()
17320 {
17321 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17322 # positional parameters, so assign one to ordinary parameter first.
17323 func_stripname_result=${3}
17324 func_stripname_result=${func_stripname_result#"${1}"}
17325 func_stripname_result=${func_stripname_result%"${2}"}
17326 }
17327
17328 # func_opt_split
17329 func_opt_split ()
17330 {
17331 func_opt_split_opt=${1%%=*}
17332 func_opt_split_arg=${1#*=}
17333 }
17334
17335 # func_lo2o object
17336 func_lo2o ()
17337 {
17338 case ${1} in
17339 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17340 *) func_lo2o_result=${1} ;;
17341 esac
17342 }
17343
17344 # func_xform libobj-or-source
17345 func_xform ()
17346 {
17347 func_xform_result=${1%.*}.lo
17348 }
17349
17350 # func_arith arithmetic-term...
17351 func_arith ()
17352 {
17353 func_arith_result=$(( $* ))
17354 }
17355
17356 # func_len string
17357 # STRING may not start with a hyphen.
17358 func_len ()
17359 {
17360 func_len_result=${#1}
17361 }
17362
17363 _LT_EOF
17364 ;;
17365 *) # Bourne compatible functions.
17366 cat << \_LT_EOF >> "$cfgfile"
17367
17368 # func_dirname file append nondir_replacement
17369 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17370 # otherwise set result to NONDIR_REPLACEMENT.
17371 func_dirname ()
17372 {
17373 # Extract subdirectory from the argument.
17374 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17375 if test "X$func_dirname_result" = "X${1}"; then
17376 func_dirname_result="${3}"
17377 else
17378 func_dirname_result="$func_dirname_result${2}"
17379 fi
17380 }
17381
17382 # func_basename file
17383 func_basename ()
17384 {
17385 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17386 }
17387
17388
17389 # func_stripname prefix suffix name
17390 # strip PREFIX and SUFFIX off of NAME.
17391 # PREFIX and SUFFIX must not contain globbing or regex special
17392 # characters, hashes, percent signs, but SUFFIX may contain a leading
17393 # dot (in which case that matches only a dot).
17394 # func_strip_suffix prefix name
17395 func_stripname ()
17396 {
17397 case ${2} in
17398 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17399 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17400 esac
17401 }
17402
17403 # sed scripts:
17404 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17405 my_sed_long_arg='1s/^-[^=]*=//'
17406
17407 # func_opt_split
17408 func_opt_split ()
17409 {
17410 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17411 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17412 }
17413
17414 # func_lo2o object
17415 func_lo2o ()
17416 {
17417 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17418 }
17419
17420 # func_xform libobj-or-source
17421 func_xform ()
17422 {
17423 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17424 }
17425
17426 # func_arith arithmetic-term...
17427 func_arith ()
17428 {
17429 func_arith_result=`expr "$@"`
17430 }
17431
17432 # func_len string
17433 # STRING may not start with a hyphen.
17434 func_len ()
17435 {
17436 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17437 }
17438
17439 _LT_EOF
17440 esac
17441
17442 case $lt_shell_append in
17443 yes)
17444 cat << \_LT_EOF >> "$cfgfile"
17445
17446 # func_append var value
17447 # Append VALUE to the end of shell variable VAR.
17448 func_append ()
17449 {
17450 eval "$1+=\$2"
17451 }
17452 _LT_EOF
17453 ;;
17454 *)
17455 cat << \_LT_EOF >> "$cfgfile"
17456
17457 # func_append var value
17458 # Append VALUE to the end of shell variable VAR.
17459 func_append ()
17460 {
17461 eval "$1=\$$1\$2"
17462 }
17463
17464 _LT_EOF
17465 ;;
17466 esac
17467
17468
17469 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17470 || (rm -f "$cfgfile"; exit 1)
17471
17472 mv -f "$cfgfile" "$ofile" ||
17473 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17474 chmod +x "$ofile"
17475
17476
17477 cat <<_LT_EOF >> "$ofile"
17478
17479 # ### BEGIN LIBTOOL TAG CONFIG: D
17480
17481 # The linker used to build libraries.
17482 LD=$lt_LD_D
17483
17484 # How to create reloadable object files.
17485 reload_flag=$lt_reload_flag_D
17486 reload_cmds=$lt_reload_cmds_D
17487
17488 # Commands used to build an old-style archive.
17489 old_archive_cmds=$lt_old_archive_cmds_D
17490
17491 # A language specific compiler.
17492 CC=$lt_compiler_D
17493
17494 # Is the compiler the GNU compiler?
17495 with_gcc=$GCC_D
17496
17497 # Compiler flag to turn off builtin functions.
17498 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_D
17499
17500 # How to pass a linker flag through the compiler.
17501 wl=$lt_lt_prog_compiler_wl_D
17502
17503 # Additional compiler flags for building library objects.
17504 pic_flag=$lt_lt_prog_compiler_pic_D
17505
17506 # Compiler flag to prevent dynamic linking.
17507 link_static_flag=$lt_lt_prog_compiler_static_D
17508
17509 # Does compiler simultaneously support -c and -o options?
17510 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_D
17511
17512 # Whether or not to add -lc for building shared libraries.
17513 build_libtool_need_lc=$archive_cmds_need_lc_D
17514
17515 # Whether or not to disallow shared libs when runtime libs are static.
17516 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_D
17517
17518 # Compiler flag to allow reflexive dlopens.
17519 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_D
17520
17521 # Compiler flag to generate shared objects directly from archives.
17522 whole_archive_flag_spec=$lt_whole_archive_flag_spec_D
17523
17524 # Whether the compiler copes with passing no objects directly.
17525 compiler_needs_object=$lt_compiler_needs_object_D
17526
17527 # Create an old-style archive from a shared archive.
17528 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_D
17529
17530 # Create a temporary old-style archive to link instead of a shared archive.
17531 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_D
17532
17533 # Commands used to build a shared archive.
17534 archive_cmds=$lt_archive_cmds_D
17535 archive_expsym_cmds=$lt_archive_expsym_cmds_D
17536
17537 # Commands used to build a loadable module if different from building
17538 # a shared archive.
17539 module_cmds=$lt_module_cmds_D
17540 module_expsym_cmds=$lt_module_expsym_cmds_D
17541
17542 # Whether we are building with GNU ld or not.
17543 with_gnu_ld=$lt_with_gnu_ld_D
17544
17545 # Flag that allows shared libraries with undefined symbols to be built.
17546 allow_undefined_flag=$lt_allow_undefined_flag_D
17547
17548 # Flag that enforces no undefined symbols.
17549 no_undefined_flag=$lt_no_undefined_flag_D
17550
17551 # Flag to hardcode \$libdir into a binary during linking.
17552 # This must work even if \$libdir does not exist
17553 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_D
17554
17555 # If ld is used when linking, flag to hardcode \$libdir into a binary
17556 # during linking. This must work even if \$libdir does not exist.
17557 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_D
17558
17559 # Whether we need a single "-rpath" flag with a separated argument.
17560 hardcode_libdir_separator=$lt_hardcode_libdir_separator_D
17561
17562 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17563 # DIR into the resulting binary.
17564 hardcode_direct=$hardcode_direct_D
17565
17566 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17567 # DIR into the resulting binary and the resulting library dependency is
17568 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17569 # library is relocated.
17570 hardcode_direct_absolute=$hardcode_direct_absolute_D
17571
17572 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17573 # into the resulting binary.
17574 hardcode_minus_L=$hardcode_minus_L_D
17575
17576 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17577 # into the resulting binary.
17578 hardcode_shlibpath_var=$hardcode_shlibpath_var_D
17579
17580 # Set to "yes" if building a shared library automatically hardcodes DIR
17581 # into the library and all subsequent libraries and executables linked
17582 # against it.
17583 hardcode_automatic=$hardcode_automatic_D
17584
17585 # Set to yes if linker adds runtime paths of dependent libraries
17586 # to runtime path list.
17587 inherit_rpath=$inherit_rpath_D
17588
17589 # Whether libtool must link a program against all its dependency libraries.
17590 link_all_deplibs=$link_all_deplibs_D
17591
17592 # Fix the shell variable \$srcfile for the compiler.
17593 fix_srcfile_path=$lt_fix_srcfile_path_D
17594
17595 # Set to "yes" if exported symbols are required.
17596 always_export_symbols=$always_export_symbols_D
17597
17598 # The commands to list exported symbols.
17599 export_symbols_cmds=$lt_export_symbols_cmds_D
17600
17601 # Symbols that should not be listed in the preloaded symbols.
17602 exclude_expsyms=$lt_exclude_expsyms_D
17603
17604 # Symbols that must always be exported.
17605 include_expsyms=$lt_include_expsyms_D
17606
17607 # Commands necessary for linking programs (against libraries) with templates.
17608 prelink_cmds=$lt_prelink_cmds_D
17609
17610 # Specify filename containing input files.
17611 file_list_spec=$lt_file_list_spec_D
17612
17613 # How to hardcode a shared library path into an executable.
17614 hardcode_action=$hardcode_action_D
17615
17616 # ### END LIBTOOL TAG CONFIG: D
17617 _LT_EOF
17618
17619 ;;
17620 "testsuite/testsuite_flags":F) chmod +x testsuite/testsuite_flags ;;
17621 "libdruntime/Makefile":F) cat > vpsed$$ << \_EOF
17622 s!`test -f '$<' || echo '$(srcdir)/'`!!
17623 _EOF
17624 sed -f vpsed$$ $ac_file > tmp$$
17625 mv tmp$$ $ac_file
17626 rm vpsed$$
17627 echo 'MULTISUBDIR =' >> $ac_file
17628 ml_norecursion=yes
17629 . ${multi_basedir}/config-ml.in
17630 { ml_norecursion=; unset ml_norecursion;}
17631 ;;
17632 "src/Makefile":F) cat > vpsed$$ << \_EOF
17633 s!`test -f '$<' || echo '$(srcdir)/'`!!
17634 _EOF
17635 sed -f vpsed$$ $ac_file > tmp$$
17636 mv tmp$$ $ac_file
17637 rm vpsed$$
17638 echo 'MULTISUBDIR =' >> $ac_file
17639 ml_norecursion=yes
17640 . ${multi_basedir}/config-ml.in
17641 { ml_norecursion=; unset ml_norecursion;}
17642 ;;
17643 "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
17644 s!`test -f '$<' || echo '$(srcdir)/'`!!
17645 _EOF
17646 sed -f vpsed$$ $ac_file > tmp$$
17647 mv tmp$$ $ac_file
17648 rm vpsed$$
17649 echo 'MULTISUBDIR =' >> $ac_file
17650 ml_norecursion=yes
17651 . ${multi_basedir}/config-ml.in
17652 { ml_norecursion=; unset ml_norecursion;}
17653 ;;
17654
17655 esac
17656 done # for ac_tag
17657
17658
17659 as_fn_exit 0
17660 _ACEOF
17661 ac_clean_files=$ac_clean_files_save
17662
17663 test $ac_write_fail = 0 ||
17664 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17665
17666
17667 # configure is writing to config.log, and then calls config.status.
17668 # config.status does its own redirection, appending to config.log.
17669 # Unfortunately, on DOS this fails, as config.log is still kept open
17670 # by configure, so config.status won't be able to write to it; its
17671 # output is simply discarded. So we exec the FD to /dev/null,
17672 # effectively closing config.log, so it can be properly (re)opened and
17673 # appended to by config.status. When coming back to configure, we
17674 # need to make the FD available again.
17675 if test "$no_create" != yes; then
17676 ac_cs_success=:
17677 ac_config_status_args=
17678 test "$silent" = yes &&
17679 ac_config_status_args="$ac_config_status_args --quiet"
17680 exec 5>/dev/null
17681 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17682 exec 5>>config.log
17683 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17684 # would make configure fail if this is the last instruction.
17685 $ac_cs_success || as_fn_exit 1
17686 fi
17687 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17689 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17690 fi
17691