]> git.ipfire.org Git - thirdparty/gcc.git/blob - libphobos/configure
Update GCC to autoconf 2.69, automake 1.15.1 (PR bootstrap/82856).
[thirdparty/gcc.git] / libphobos / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for package-unused version-unused.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
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 PHOBOS_SOVERSION
638 DRUNTIME_SOVERSION
639 SPEC_PHOBOS_DEPS
640 gdc_include_dir
641 toolexeclibdir
642 toolexecdir
643 gcc_version
644 DRUNTIME_ZLIB_SYSTEM_FALSE
645 DRUNTIME_ZLIB_SYSTEM_TRUE
646 BACKTRACE_SUPPORTS_THREADS
647 BACKTRACE_USES_MALLOC
648 BACKTRACE_SUPPORTED
649 LIBBACKTRACE
650 LIBATOMIC
651 DCFG_HAVE_LIBATOMIC
652 DCFG_HAVE_64BIT_ATOMICS
653 DCFG_HAVE_ATOMIC_BUILTINS
654 DCFG_MINFO_BRACKETING
655 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
656 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
657 DCFG_ARM_EABI_UNWINDER
658 DCFG_THREAD_MODEL
659 DRUNTIME_OS_SOLARIS_FALSE
660 DRUNTIME_OS_SOLARIS_TRUE
661 DRUNTIME_OS_MINGW_FALSE
662 DRUNTIME_OS_MINGW_TRUE
663 DRUNTIME_OS_LINUX_FALSE
664 DRUNTIME_OS_LINUX_TRUE
665 DRUNTIME_OS_OPENBSD_FALSE
666 DRUNTIME_OS_OPENBSD_TRUE
667 DRUNTIME_OS_NETBSD_FALSE
668 DRUNTIME_OS_NETBSD_TRUE
669 DRUNTIME_OS_FREEBSD_FALSE
670 DRUNTIME_OS_FREEBSD_TRUE
671 DRUNTIME_OS_DRAGONFLYBSD_FALSE
672 DRUNTIME_OS_DRAGONFLYBSD_TRUE
673 DRUNTIME_OS_DARWIN_FALSE
674 DRUNTIME_OS_DARWIN_TRUE
675 DRUNTIME_OS_ANDROID_FALSE
676 DRUNTIME_OS_ANDROID_TRUE
677 DRUNTIME_OS_AIX_FALSE
678 DRUNTIME_OS_AIX_TRUE
679 DRUNTIME_OS_UNIX_FALSE
680 DRUNTIME_OS_UNIX_TRUE
681 DRUNTIME_GC_ENABLE_FALSE
682 DRUNTIME_GC_ENABLE_TRUE
683 libphobos_srcdir
684 libphobos_builddir
685 get_gcc_base_ver
686 phobos_compiler_shared_flag
687 phobos_compiler_pic_flag
688 ENABLE_STATIC_FALSE
689 ENABLE_STATIC_TRUE
690 ENABLE_SHARED_FALSE
691 ENABLE_SHARED_TRUE
692 CPP
693 OTOOL64
694 OTOOL
695 LIPO
696 NMEDIT
697 DSYMUTIL
698 OBJDUMP
699 LN_S
700 NM
701 ac_ct_DUMPBIN
702 DUMPBIN
703 LD
704 FGREP
705 EGREP
706 GREP
707 SED
708 LIBTOOL
709 CFLAGS_FOR_BUILD
710 CC_FOR_BUILD
711 AR
712 RANLIB
713 MAINT
714 MAINTAINER_MODE_FALSE
715 MAINTAINER_MODE_TRUE
716 GDCFLAGS
717 GDC
718 CCASFLAGS
719 CCAS
720 OBJEXT
721 EXEEXT
722 ac_ct_CC
723 CPPFLAGS
724 LDFLAGS
725 CFLAGS
726 CC
727 AM_BACKSLASH
728 AM_DEFAULT_VERBOSITY
729 AM_DEFAULT_V
730 AM_V
731 am__untar
732 am__tar
733 AMTAR
734 am__leading_dot
735 SET_MAKE
736 AWK
737 mkdir_p
738 MKDIR_P
739 INSTALL_STRIP_PROGRAM
740 STRIP
741 install_sh
742 MAKEINFO
743 AUTOHEADER
744 AUTOMAKE
745 AUTOCONF
746 ACLOCAL
747 VERSION
748 PACKAGE
749 CYGPATH_W
750 am__isrc
751 INSTALL_DATA
752 INSTALL_SCRIPT
753 INSTALL_PROGRAM
754 target_os
755 target_vendor
756 target_cpu
757 target
758 host_os
759 host_vendor
760 host_cpu
761 host
762 build_os
763 build_vendor
764 build_cpu
765 build
766 multi_basedir
767 target_alias
768 host_alias
769 build_alias
770 LIBS
771 ECHO_T
772 ECHO_N
773 ECHO_C
774 DEFS
775 mandir
776 localedir
777 libdir
778 psdir
779 pdfdir
780 dvidir
781 htmldir
782 infodir
783 docdir
784 oldincludedir
785 includedir
786 localstatedir
787 sharedstatedir
788 sysconfdir
789 datadir
790 datarootdir
791 libexecdir
792 sbindir
793 bindir
794 program_transform_name
795 prefix
796 exec_prefix
797 PACKAGE_URL
798 PACKAGE_BUGREPORT
799 PACKAGE_STRING
800 PACKAGE_VERSION
801 PACKAGE_TARNAME
802 PACKAGE_NAME
803 PATH_SEPARATOR
804 SHELL'
805 ac_subst_files=''
806 ac_user_opts='
807 enable_option_checking
808 enable_multilib
809 enable_silent_rules
810 enable_maintainer_mode
811 enable_shared
812 enable_static
813 with_pic
814 enable_fast_install
815 with_gnu_ld
816 enable_libtool_lock
817 with_gcc_major_version_only
818 enable_werror
819 enable_druntime_gc
820 enable_unix
821 enable_thread_lib
822 with_libatomic
823 with_libbacktrace
824 with_target_system_zlib
825 with_cross_host
826 '
827 ac_precious_vars='build_alias
828 host_alias
829 target_alias
830 CPP
831 CPPFLAGS'
832
833
834 # Initialize some variables set by options.
835 ac_init_help=
836 ac_init_version=false
837 ac_unrecognized_opts=
838 ac_unrecognized_sep=
839 # The variables have the same names as the options, with
840 # dashes changed to underlines.
841 cache_file=/dev/null
842 exec_prefix=NONE
843 no_create=
844 no_recursion=
845 prefix=NONE
846 program_prefix=NONE
847 program_suffix=NONE
848 program_transform_name=s,x,x,
849 silent=
850 site=
851 srcdir=
852 verbose=
853 x_includes=NONE
854 x_libraries=NONE
855
856 # Installation directory options.
857 # These are left unexpanded so users can "make install exec_prefix=/foo"
858 # and all the variables that are supposed to be based on exec_prefix
859 # by default will actually change.
860 # Use braces instead of parens because sh, perl, etc. also accept them.
861 # (The list follows the same order as the GNU Coding Standards.)
862 bindir='${exec_prefix}/bin'
863 sbindir='${exec_prefix}/sbin'
864 libexecdir='${exec_prefix}/libexec'
865 datarootdir='${prefix}/share'
866 datadir='${datarootdir}'
867 sysconfdir='${prefix}/etc'
868 sharedstatedir='${prefix}/com'
869 localstatedir='${prefix}/var'
870 includedir='${prefix}/include'
871 oldincludedir='/usr/include'
872 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
873 infodir='${datarootdir}/info'
874 htmldir='${docdir}'
875 dvidir='${docdir}'
876 pdfdir='${docdir}'
877 psdir='${docdir}'
878 libdir='${exec_prefix}/lib'
879 localedir='${datarootdir}/locale'
880 mandir='${datarootdir}/man'
881
882 ac_prev=
883 ac_dashdash=
884 for ac_option
885 do
886 # If the previous option needs an argument, assign it.
887 if test -n "$ac_prev"; then
888 eval $ac_prev=\$ac_option
889 ac_prev=
890 continue
891 fi
892
893 case $ac_option in
894 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
895 *=) ac_optarg= ;;
896 *) ac_optarg=yes ;;
897 esac
898
899 # Accept the important Cygnus configure options, so we can diagnose typos.
900
901 case $ac_dashdash$ac_option in
902 --)
903 ac_dashdash=yes ;;
904
905 -bindir | --bindir | --bindi | --bind | --bin | --bi)
906 ac_prev=bindir ;;
907 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
908 bindir=$ac_optarg ;;
909
910 -build | --build | --buil | --bui | --bu)
911 ac_prev=build_alias ;;
912 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
913 build_alias=$ac_optarg ;;
914
915 -cache-file | --cache-file | --cache-fil | --cache-fi \
916 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
917 ac_prev=cache_file ;;
918 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
919 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
920 cache_file=$ac_optarg ;;
921
922 --config-cache | -C)
923 cache_file=config.cache ;;
924
925 -datadir | --datadir | --datadi | --datad)
926 ac_prev=datadir ;;
927 -datadir=* | --datadir=* | --datadi=* | --datad=*)
928 datadir=$ac_optarg ;;
929
930 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
931 | --dataroo | --dataro | --datar)
932 ac_prev=datarootdir ;;
933 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
934 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
935 datarootdir=$ac_optarg ;;
936
937 -disable-* | --disable-*)
938 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
939 # Reject names that are not valid shell variable names.
940 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
941 as_fn_error $? "invalid feature name: $ac_useropt"
942 ac_useropt_orig=$ac_useropt
943 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
944 case $ac_user_opts in
945 *"
946 "enable_$ac_useropt"
947 "*) ;;
948 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
949 ac_unrecognized_sep=', ';;
950 esac
951 eval enable_$ac_useropt=no ;;
952
953 -docdir | --docdir | --docdi | --doc | --do)
954 ac_prev=docdir ;;
955 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
956 docdir=$ac_optarg ;;
957
958 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
959 ac_prev=dvidir ;;
960 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
961 dvidir=$ac_optarg ;;
962
963 -enable-* | --enable-*)
964 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
965 # Reject names that are not valid shell variable names.
966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
967 as_fn_error $? "invalid feature name: $ac_useropt"
968 ac_useropt_orig=$ac_useropt
969 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970 case $ac_user_opts in
971 *"
972 "enable_$ac_useropt"
973 "*) ;;
974 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
975 ac_unrecognized_sep=', ';;
976 esac
977 eval enable_$ac_useropt=\$ac_optarg ;;
978
979 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
980 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
981 | --exec | --exe | --ex)
982 ac_prev=exec_prefix ;;
983 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
984 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
985 | --exec=* | --exe=* | --ex=*)
986 exec_prefix=$ac_optarg ;;
987
988 -gas | --gas | --ga | --g)
989 # Obsolete; use --with-gas.
990 with_gas=yes ;;
991
992 -help | --help | --hel | --he | -h)
993 ac_init_help=long ;;
994 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
995 ac_init_help=recursive ;;
996 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
997 ac_init_help=short ;;
998
999 -host | --host | --hos | --ho)
1000 ac_prev=host_alias ;;
1001 -host=* | --host=* | --hos=* | --ho=*)
1002 host_alias=$ac_optarg ;;
1003
1004 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1005 ac_prev=htmldir ;;
1006 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1007 | --ht=*)
1008 htmldir=$ac_optarg ;;
1009
1010 -includedir | --includedir | --includedi | --included | --include \
1011 | --includ | --inclu | --incl | --inc)
1012 ac_prev=includedir ;;
1013 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1014 | --includ=* | --inclu=* | --incl=* | --inc=*)
1015 includedir=$ac_optarg ;;
1016
1017 -infodir | --infodir | --infodi | --infod | --info | --inf)
1018 ac_prev=infodir ;;
1019 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1020 infodir=$ac_optarg ;;
1021
1022 -libdir | --libdir | --libdi | --libd)
1023 ac_prev=libdir ;;
1024 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1025 libdir=$ac_optarg ;;
1026
1027 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1028 | --libexe | --libex | --libe)
1029 ac_prev=libexecdir ;;
1030 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1031 | --libexe=* | --libex=* | --libe=*)
1032 libexecdir=$ac_optarg ;;
1033
1034 -localedir | --localedir | --localedi | --localed | --locale)
1035 ac_prev=localedir ;;
1036 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1037 localedir=$ac_optarg ;;
1038
1039 -localstatedir | --localstatedir | --localstatedi | --localstated \
1040 | --localstate | --localstat | --localsta | --localst | --locals)
1041 ac_prev=localstatedir ;;
1042 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1043 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1044 localstatedir=$ac_optarg ;;
1045
1046 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1047 ac_prev=mandir ;;
1048 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1049 mandir=$ac_optarg ;;
1050
1051 -nfp | --nfp | --nf)
1052 # Obsolete; use --without-fp.
1053 with_fp=no ;;
1054
1055 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1056 | --no-cr | --no-c | -n)
1057 no_create=yes ;;
1058
1059 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1060 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1061 no_recursion=yes ;;
1062
1063 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1064 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1065 | --oldin | --oldi | --old | --ol | --o)
1066 ac_prev=oldincludedir ;;
1067 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1068 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1069 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1070 oldincludedir=$ac_optarg ;;
1071
1072 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1073 ac_prev=prefix ;;
1074 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1075 prefix=$ac_optarg ;;
1076
1077 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1078 | --program-pre | --program-pr | --program-p)
1079 ac_prev=program_prefix ;;
1080 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1081 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1082 program_prefix=$ac_optarg ;;
1083
1084 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1085 | --program-suf | --program-su | --program-s)
1086 ac_prev=program_suffix ;;
1087 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1088 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1089 program_suffix=$ac_optarg ;;
1090
1091 -program-transform-name | --program-transform-name \
1092 | --program-transform-nam | --program-transform-na \
1093 | --program-transform-n | --program-transform- \
1094 | --program-transform | --program-transfor \
1095 | --program-transfo | --program-transf \
1096 | --program-trans | --program-tran \
1097 | --progr-tra | --program-tr | --program-t)
1098 ac_prev=program_transform_name ;;
1099 -program-transform-name=* | --program-transform-name=* \
1100 | --program-transform-nam=* | --program-transform-na=* \
1101 | --program-transform-n=* | --program-transform-=* \
1102 | --program-transform=* | --program-transfor=* \
1103 | --program-transfo=* | --program-transf=* \
1104 | --program-trans=* | --program-tran=* \
1105 | --progr-tra=* | --program-tr=* | --program-t=*)
1106 program_transform_name=$ac_optarg ;;
1107
1108 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1109 ac_prev=pdfdir ;;
1110 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1111 pdfdir=$ac_optarg ;;
1112
1113 -psdir | --psdir | --psdi | --psd | --ps)
1114 ac_prev=psdir ;;
1115 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1116 psdir=$ac_optarg ;;
1117
1118 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1119 | -silent | --silent | --silen | --sile | --sil)
1120 silent=yes ;;
1121
1122 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1123 ac_prev=sbindir ;;
1124 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1125 | --sbi=* | --sb=*)
1126 sbindir=$ac_optarg ;;
1127
1128 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1129 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1130 | --sharedst | --shareds | --shared | --share | --shar \
1131 | --sha | --sh)
1132 ac_prev=sharedstatedir ;;
1133 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1134 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1135 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1136 | --sha=* | --sh=*)
1137 sharedstatedir=$ac_optarg ;;
1138
1139 -site | --site | --sit)
1140 ac_prev=site ;;
1141 -site=* | --site=* | --sit=*)
1142 site=$ac_optarg ;;
1143
1144 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1145 ac_prev=srcdir ;;
1146 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1147 srcdir=$ac_optarg ;;
1148
1149 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1150 | --syscon | --sysco | --sysc | --sys | --sy)
1151 ac_prev=sysconfdir ;;
1152 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1153 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1154 sysconfdir=$ac_optarg ;;
1155
1156 -target | --target | --targe | --targ | --tar | --ta | --t)
1157 ac_prev=target_alias ;;
1158 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1159 target_alias=$ac_optarg ;;
1160
1161 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1162 verbose=yes ;;
1163
1164 -version | --version | --versio | --versi | --vers | -V)
1165 ac_init_version=: ;;
1166
1167 -with-* | --with-*)
1168 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171 as_fn_error $? "invalid package name: $ac_useropt"
1172 ac_useropt_orig=$ac_useropt
1173 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174 case $ac_user_opts in
1175 *"
1176 "with_$ac_useropt"
1177 "*) ;;
1178 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1179 ac_unrecognized_sep=', ';;
1180 esac
1181 eval with_$ac_useropt=\$ac_optarg ;;
1182
1183 -without-* | --without-*)
1184 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1185 # Reject names that are not valid shell variable names.
1186 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1187 as_fn_error $? "invalid package name: $ac_useropt"
1188 ac_useropt_orig=$ac_useropt
1189 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1190 case $ac_user_opts in
1191 *"
1192 "with_$ac_useropt"
1193 "*) ;;
1194 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1195 ac_unrecognized_sep=', ';;
1196 esac
1197 eval with_$ac_useropt=no ;;
1198
1199 --x)
1200 # Obsolete; use --with-x.
1201 with_x=yes ;;
1202
1203 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1204 | --x-incl | --x-inc | --x-in | --x-i)
1205 ac_prev=x_includes ;;
1206 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1207 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1208 x_includes=$ac_optarg ;;
1209
1210 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1211 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1212 ac_prev=x_libraries ;;
1213 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1214 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1215 x_libraries=$ac_optarg ;;
1216
1217 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1218 Try \`$0 --help' for more information"
1219 ;;
1220
1221 *=*)
1222 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1223 # Reject names that are not valid shell variable names.
1224 case $ac_envvar in #(
1225 '' | [0-9]* | *[!_$as_cr_alnum]* )
1226 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1227 esac
1228 eval $ac_envvar=\$ac_optarg
1229 export $ac_envvar ;;
1230
1231 *)
1232 # FIXME: should be removed in autoconf 3.0.
1233 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1234 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1235 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1236 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1237 ;;
1238
1239 esac
1240 done
1241
1242 if test -n "$ac_prev"; then
1243 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1244 as_fn_error $? "missing argument to $ac_option"
1245 fi
1246
1247 if test -n "$ac_unrecognized_opts"; then
1248 case $enable_option_checking in
1249 no) ;;
1250 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1251 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1252 esac
1253 fi
1254
1255 # Check all directory arguments for consistency.
1256 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1257 datadir sysconfdir sharedstatedir localstatedir includedir \
1258 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1259 libdir localedir mandir
1260 do
1261 eval ac_val=\$$ac_var
1262 # Remove trailing slashes.
1263 case $ac_val in
1264 */ )
1265 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1266 eval $ac_var=\$ac_val;;
1267 esac
1268 # Be sure to have absolute directory names.
1269 case $ac_val in
1270 [\\/$]* | ?:[\\/]* ) continue;;
1271 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1272 esac
1273 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1274 done
1275
1276 # There might be people who depend on the old broken behavior: `$host'
1277 # used to hold the argument of --host etc.
1278 # FIXME: To remove some day.
1279 build=$build_alias
1280 host=$host_alias
1281 target=$target_alias
1282
1283 # FIXME: To remove some day.
1284 if test "x$host_alias" != x; then
1285 if test "x$build_alias" = x; then
1286 cross_compiling=maybe
1287 elif test "x$build_alias" != "x$host_alias"; then
1288 cross_compiling=yes
1289 fi
1290 fi
1291
1292 ac_tool_prefix=
1293 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1294
1295 test "$silent" = yes && exec 6>/dev/null
1296
1297
1298 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1299 ac_ls_di=`ls -di .` &&
1300 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1301 as_fn_error $? "working directory cannot be determined"
1302 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1303 as_fn_error $? "pwd does not report name of working directory"
1304
1305
1306 # Find the source files, if location was not specified.
1307 if test -z "$srcdir"; then
1308 ac_srcdir_defaulted=yes
1309 # Try the directory containing this script, then the parent directory.
1310 ac_confdir=`$as_dirname -- "$as_myself" ||
1311 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1312 X"$as_myself" : 'X\(//\)[^/]' \| \
1313 X"$as_myself" : 'X\(//\)$' \| \
1314 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1315 $as_echo X"$as_myself" |
1316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1317 s//\1/
1318 q
1319 }
1320 /^X\(\/\/\)[^/].*/{
1321 s//\1/
1322 q
1323 }
1324 /^X\(\/\/\)$/{
1325 s//\1/
1326 q
1327 }
1328 /^X\(\/\).*/{
1329 s//\1/
1330 q
1331 }
1332 s/.*/./; q'`
1333 srcdir=$ac_confdir
1334 if test ! -r "$srcdir/$ac_unique_file"; then
1335 srcdir=..
1336 fi
1337 else
1338 ac_srcdir_defaulted=no
1339 fi
1340 if test ! -r "$srcdir/$ac_unique_file"; then
1341 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1342 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1343 fi
1344 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1345 ac_abs_confdir=`(
1346 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1347 pwd)`
1348 # When building in place, set srcdir=.
1349 if test "$ac_abs_confdir" = "$ac_pwd"; then
1350 srcdir=.
1351 fi
1352 # Remove unnecessary trailing slashes from srcdir.
1353 # Double slashes in file names in object file debugging info
1354 # mess up M-x gdb in Emacs.
1355 case $srcdir in
1356 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1357 esac
1358 for ac_var in $ac_precious_vars; do
1359 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1360 eval ac_env_${ac_var}_value=\$${ac_var}
1361 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1362 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1363 done
1364
1365 #
1366 # Report the --help message.
1367 #
1368 if test "$ac_init_help" = "long"; then
1369 # Omit some internal or obsolete options to make the list less imposing.
1370 # This message is too long to be a string in the A/UX 3.1 sh.
1371 cat <<_ACEOF
1372 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1373
1374 Usage: $0 [OPTION]... [VAR=VALUE]...
1375
1376 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1377 VAR=VALUE. See below for descriptions of some of the useful variables.
1378
1379 Defaults for the options are specified in brackets.
1380
1381 Configuration:
1382 -h, --help display this help and exit
1383 --help=short display options specific to this package
1384 --help=recursive display the short help of all the included packages
1385 -V, --version display version information and exit
1386 -q, --quiet, --silent do not print \`checking ...' messages
1387 --cache-file=FILE cache test results in FILE [disabled]
1388 -C, --config-cache alias for \`--cache-file=config.cache'
1389 -n, --no-create do not create output files
1390 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1391
1392 Installation directories:
1393 --prefix=PREFIX install architecture-independent files in PREFIX
1394 [$ac_default_prefix]
1395 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1396 [PREFIX]
1397
1398 By default, \`make install' will install all the files in
1399 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1400 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1401 for instance \`--prefix=\$HOME'.
1402
1403 For better control, use the options below.
1404
1405 Fine tuning of the installation directories:
1406 --bindir=DIR user executables [EPREFIX/bin]
1407 --sbindir=DIR system admin executables [EPREFIX/sbin]
1408 --libexecdir=DIR program executables [EPREFIX/libexec]
1409 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1410 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1411 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1412 --libdir=DIR object code libraries [EPREFIX/lib]
1413 --includedir=DIR C header files [PREFIX/include]
1414 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1415 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1416 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1417 --infodir=DIR info documentation [DATAROOTDIR/info]
1418 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1419 --mandir=DIR man documentation [DATAROOTDIR/man]
1420 --docdir=DIR documentation root [DATAROOTDIR/doc/libphobos]
1421 --htmldir=DIR html documentation [DOCDIR]
1422 --dvidir=DIR dvi documentation [DOCDIR]
1423 --pdfdir=DIR pdf documentation [DOCDIR]
1424 --psdir=DIR ps documentation [DOCDIR]
1425 _ACEOF
1426
1427 cat <<\_ACEOF
1428
1429 Program names:
1430 --program-prefix=PREFIX prepend PREFIX to installed program names
1431 --program-suffix=SUFFIX append SUFFIX to installed program names
1432 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1433
1434 System types:
1435 --build=BUILD configure for building on BUILD [guessed]
1436 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1437 --target=TARGET configure for building compilers for TARGET [HOST]
1438 _ACEOF
1439 fi
1440
1441 if test -n "$ac_init_help"; then
1442 case $ac_init_help in
1443 short | recursive ) echo "Configuration of package-unused version-unused:";;
1444 esac
1445 cat <<\_ACEOF
1446
1447 Optional Features:
1448 --disable-option-checking ignore unrecognized --enable/--with options
1449 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1450 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1451 --enable-multilib build many library versions (default)
1452 --enable-silent-rules less verbose build output (undo: "make V=1")
1453 --disable-silent-rules verbose build output (undo: "make V=0")
1454 --enable-maintainer-mode
1455 enable make rules and dependencies not useful (and
1456 sometimes confusing) to the casual installer
1457 --enable-shared[=PKGS] build shared libraries [default=yes]
1458 --enable-static[=PKGS] build static libraries [default=yes]
1459 --enable-fast-install[=PKGS]
1460 optimize for fast installation [default=yes]
1461 --disable-libtool-lock avoid locking (might break parallel builds)
1462 --enable-werror turns on -Werror [default=no]
1463 --enable-druntime-gc enable D runtime garbage collector (default: yes)
1464 --enable-unix enables Unix runtime (default: yes, for Unix
1465 targets)
1466 --enable-thread-lib=<arg>
1467 specify linker option for the system thread library
1468 (default: autodetect)
1469
1470 Optional Packages:
1471 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1472 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1473 --with-pic try to use only PIC/non-PIC objects [default=use
1474 both]
1475 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1476 --with-gcc-major-version-only
1477 use only GCC major number in filesystem paths
1478 --without-libatomic Do not use libatomic in core.atomic (default: auto)
1479 --without-libbacktrace Do not use libbacktrace in core.runtime (default:
1480 auto)
1481 --with-target-system-zlib
1482 use installed libz (default: no)
1483 --with-cross-host=HOST configuring with a cross compiler
1484
1485 Some influential environment variables:
1486 CC C compiler command
1487 CFLAGS C compiler flags
1488 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1489 nonstandard directory <lib dir>
1490 LIBS libraries to pass to the linker, e.g. -l<library>
1491 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1492 you have headers in a nonstandard directory <include dir>
1493 CCAS assembler compiler command (defaults to CC)
1494 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1495 GDC D compiler command
1496 GDCFLAGS D compiler flags
1497 CPP C preprocessor
1498
1499 Use these variables to override the choices made by `configure' or to help
1500 it to find libraries and programs with nonstandard names/locations.
1501
1502 Report bugs to the package provider.
1503 _ACEOF
1504 ac_status=$?
1505 fi
1506
1507 if test "$ac_init_help" = "recursive"; then
1508 # If there are subdirs, report their specific --help.
1509 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1510 test -d "$ac_dir" ||
1511 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1512 continue
1513 ac_builddir=.
1514
1515 case "$ac_dir" in
1516 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517 *)
1518 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1519 # A ".." for each directory in $ac_dir_suffix.
1520 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1521 case $ac_top_builddir_sub in
1522 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1523 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1524 esac ;;
1525 esac
1526 ac_abs_top_builddir=$ac_pwd
1527 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1528 # for backward compatibility:
1529 ac_top_builddir=$ac_top_build_prefix
1530
1531 case $srcdir in
1532 .) # We are building in place.
1533 ac_srcdir=.
1534 ac_top_srcdir=$ac_top_builddir_sub
1535 ac_abs_top_srcdir=$ac_pwd ;;
1536 [\\/]* | ?:[\\/]* ) # Absolute name.
1537 ac_srcdir=$srcdir$ac_dir_suffix;
1538 ac_top_srcdir=$srcdir
1539 ac_abs_top_srcdir=$srcdir ;;
1540 *) # Relative name.
1541 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1542 ac_top_srcdir=$ac_top_build_prefix$srcdir
1543 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1544 esac
1545 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1546
1547 cd "$ac_dir" || { ac_status=$?; continue; }
1548 # Check for guested configure.
1549 if test -f "$ac_srcdir/configure.gnu"; then
1550 echo &&
1551 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1552 elif test -f "$ac_srcdir/configure"; then
1553 echo &&
1554 $SHELL "$ac_srcdir/configure" --help=recursive
1555 else
1556 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1557 fi || ac_status=$?
1558 cd "$ac_pwd" || { ac_status=$?; break; }
1559 done
1560 fi
1561
1562 test -n "$ac_init_help" && exit $ac_status
1563 if $ac_init_version; then
1564 cat <<\_ACEOF
1565 package-unused configure version-unused
1566 generated by GNU Autoconf 2.69
1567
1568 Copyright (C) 2012 Free Software Foundation, Inc.
1569 This configure script is free software; the Free Software Foundation
1570 gives unlimited permission to copy, distribute and modify it.
1571 _ACEOF
1572 exit
1573 fi
1574
1575 ## ------------------------ ##
1576 ## Autoconf initialization. ##
1577 ## ------------------------ ##
1578
1579 # ac_fn_c_try_compile LINENO
1580 # --------------------------
1581 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1582 ac_fn_c_try_compile ()
1583 {
1584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585 rm -f conftest.$ac_objext
1586 if { { ac_try="$ac_compile"
1587 case "(($ac_try" in
1588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1589 *) ac_try_echo=$ac_try;;
1590 esac
1591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1592 $as_echo "$ac_try_echo"; } >&5
1593 (eval "$ac_compile") 2>conftest.err
1594 ac_status=$?
1595 if test -s conftest.err; then
1596 grep -v '^ *+' conftest.err >conftest.er1
1597 cat conftest.er1 >&5
1598 mv -f conftest.er1 conftest.err
1599 fi
1600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1601 test $ac_status = 0; } && {
1602 test -z "$ac_c_werror_flag" ||
1603 test ! -s conftest.err
1604 } && test -s conftest.$ac_objext; then :
1605 ac_retval=0
1606 else
1607 $as_echo "$as_me: failed program was:" >&5
1608 sed 's/^/| /' conftest.$ac_ext >&5
1609
1610 ac_retval=1
1611 fi
1612 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1613 as_fn_set_status $ac_retval
1614
1615 } # ac_fn_c_try_compile
1616
1617 # ac_fn_d_try_compile LINENO
1618 # --------------------------
1619 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1620 ac_fn_d_try_compile ()
1621 {
1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623 rm -f conftest.$ac_objext
1624 if { { ac_try="$ac_compile"
1625 case "(($ac_try" in
1626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1627 *) ac_try_echo=$ac_try;;
1628 esac
1629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1630 $as_echo "$ac_try_echo"; } >&5
1631 (eval "$ac_compile") 2>conftest.err
1632 ac_status=$?
1633 if test -s conftest.err; then
1634 grep -v '^ *+' conftest.err >conftest.er1
1635 cat conftest.er1 >&5
1636 mv -f conftest.er1 conftest.err
1637 fi
1638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1639 test $ac_status = 0; } && {
1640 test -z "$ac_d_werror_flag" ||
1641 test ! -s conftest.err
1642 } && test -s conftest.$ac_objext; then :
1643 ac_retval=0
1644 else
1645 $as_echo "$as_me: failed program was:" >&5
1646 sed 's/^/| /' conftest.$ac_ext >&5
1647
1648 ac_retval=1
1649 fi
1650 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651 as_fn_set_status $ac_retval
1652
1653 } # ac_fn_d_try_compile
1654
1655 # ac_fn_c_try_link LINENO
1656 # -----------------------
1657 # Try to link conftest.$ac_ext, and return whether this succeeded.
1658 ac_fn_c_try_link ()
1659 {
1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661 rm -f conftest.$ac_objext conftest$ac_exeext
1662 if { { ac_try="$ac_link"
1663 case "(($ac_try" in
1664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665 *) ac_try_echo=$ac_try;;
1666 esac
1667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668 $as_echo "$ac_try_echo"; } >&5
1669 (eval "$ac_link") 2>conftest.err
1670 ac_status=$?
1671 if test -s conftest.err; then
1672 grep -v '^ *+' conftest.err >conftest.er1
1673 cat conftest.er1 >&5
1674 mv -f conftest.er1 conftest.err
1675 fi
1676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677 test $ac_status = 0; } && {
1678 test -z "$ac_c_werror_flag" ||
1679 test ! -s conftest.err
1680 } && test -s conftest$ac_exeext && {
1681 test "$cross_compiling" = yes ||
1682 test -x conftest$ac_exeext
1683 }; then :
1684 ac_retval=0
1685 else
1686 $as_echo "$as_me: failed program was:" >&5
1687 sed 's/^/| /' conftest.$ac_ext >&5
1688
1689 ac_retval=1
1690 fi
1691 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1692 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1693 # interfere with the next link command; also delete a directory that is
1694 # left behind by Apple's compiler. We do this before executing the actions.
1695 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697 as_fn_set_status $ac_retval
1698
1699 } # ac_fn_c_try_link
1700
1701 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1702 # -------------------------------------------------------
1703 # Tests whether HEADER exists and can be compiled using the include files in
1704 # INCLUDES, setting the cache variable VAR accordingly.
1705 ac_fn_c_check_header_compile ()
1706 {
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1709 $as_echo_n "checking for $2... " >&6; }
1710 if eval \${$3+:} false; then :
1711 $as_echo_n "(cached) " >&6
1712 else
1713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1714 /* end confdefs.h. */
1715 $4
1716 #include <$2>
1717 _ACEOF
1718 if ac_fn_c_try_compile "$LINENO"; then :
1719 eval "$3=yes"
1720 else
1721 eval "$3=no"
1722 fi
1723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1724 fi
1725 eval ac_res=\$$3
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1727 $as_echo "$ac_res" >&6; }
1728 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729
1730 } # ac_fn_c_check_header_compile
1731
1732 # ac_fn_c_try_cpp LINENO
1733 # ----------------------
1734 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1735 ac_fn_c_try_cpp ()
1736 {
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 if { { ac_try="$ac_cpp conftest.$ac_ext"
1739 case "(($ac_try" in
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1742 esac
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 $as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1746 ac_status=$?
1747 if test -s conftest.err; then
1748 grep -v '^ *+' conftest.err >conftest.er1
1749 cat conftest.er1 >&5
1750 mv -f conftest.er1 conftest.err
1751 fi
1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753 test $ac_status = 0; } > conftest.i && {
1754 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1755 test ! -s conftest.err
1756 }; then :
1757 ac_retval=0
1758 else
1759 $as_echo "$as_me: failed program was:" >&5
1760 sed 's/^/| /' conftest.$ac_ext >&5
1761
1762 ac_retval=1
1763 fi
1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765 as_fn_set_status $ac_retval
1766
1767 } # ac_fn_c_try_cpp
1768
1769 # ac_fn_c_try_run LINENO
1770 # ----------------------
1771 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1772 # that executables *can* be run.
1773 ac_fn_c_try_run ()
1774 {
1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776 if { { ac_try="$ac_link"
1777 case "(($ac_try" in
1778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1779 *) ac_try_echo=$ac_try;;
1780 esac
1781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782 $as_echo "$ac_try_echo"; } >&5
1783 (eval "$ac_link") 2>&5
1784 ac_status=$?
1785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1787 { { case "(($ac_try" in
1788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1789 *) ac_try_echo=$ac_try;;
1790 esac
1791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792 $as_echo "$ac_try_echo"; } >&5
1793 (eval "$ac_try") 2>&5
1794 ac_status=$?
1795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796 test $ac_status = 0; }; }; then :
1797 ac_retval=0
1798 else
1799 $as_echo "$as_me: program exited with status $ac_status" >&5
1800 $as_echo "$as_me: failed program was:" >&5
1801 sed 's/^/| /' conftest.$ac_ext >&5
1802
1803 ac_retval=$ac_status
1804 fi
1805 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1806 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1807 as_fn_set_status $ac_retval
1808
1809 } # ac_fn_c_try_run
1810
1811 # ac_fn_c_check_func LINENO FUNC VAR
1812 # ----------------------------------
1813 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1814 ac_fn_c_check_func ()
1815 {
1816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1818 $as_echo_n "checking for $2... " >&6; }
1819 if eval \${$3+:} false; then :
1820 $as_echo_n "(cached) " >&6
1821 else
1822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1823 /* end confdefs.h. */
1824 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1826 #define $2 innocuous_$2
1827
1828 /* System header to define __stub macros and hopefully few prototypes,
1829 which can conflict with char $2 (); below.
1830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1831 <limits.h> exists even on freestanding compilers. */
1832
1833 #ifdef __STDC__
1834 # include <limits.h>
1835 #else
1836 # include <assert.h>
1837 #endif
1838
1839 #undef $2
1840
1841 /* Override any GCC internal prototype to avoid an error.
1842 Use char because int might match the return type of a GCC
1843 builtin and then its argument prototype would still apply. */
1844 #ifdef __cplusplus
1845 extern "C"
1846 #endif
1847 char $2 ();
1848 /* The GNU C library defines this for functions which it implements
1849 to always fail with ENOSYS. Some functions are actually named
1850 something starting with __ and the normal name is an alias. */
1851 #if defined __stub_$2 || defined __stub___$2
1852 choke me
1853 #endif
1854
1855 int
1856 main ()
1857 {
1858 return $2 ();
1859 ;
1860 return 0;
1861 }
1862 _ACEOF
1863 if ac_fn_c_try_link "$LINENO"; then :
1864 eval "$3=yes"
1865 else
1866 eval "$3=no"
1867 fi
1868 rm -f core conftest.err conftest.$ac_objext \
1869 conftest$ac_exeext conftest.$ac_ext
1870 fi
1871 eval ac_res=\$$3
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1873 $as_echo "$ac_res" >&6; }
1874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875
1876 } # ac_fn_c_check_func
1877
1878 # ac_fn_d_try_link LINENO
1879 # -----------------------
1880 # Try to link conftest.$ac_ext, and return whether this succeeded.
1881 ac_fn_d_try_link ()
1882 {
1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884 rm -f conftest.$ac_objext conftest$ac_exeext
1885 if { { ac_try="$ac_link"
1886 case "(($ac_try" in
1887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1888 *) ac_try_echo=$ac_try;;
1889 esac
1890 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1891 $as_echo "$ac_try_echo"; } >&5
1892 (eval "$ac_link") 2>conftest.err
1893 ac_status=$?
1894 if test -s conftest.err; then
1895 grep -v '^ *+' conftest.err >conftest.er1
1896 cat conftest.er1 >&5
1897 mv -f conftest.er1 conftest.err
1898 fi
1899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1900 test $ac_status = 0; } && {
1901 test -z "$ac_d_werror_flag" ||
1902 test ! -s conftest.err
1903 } && test -s conftest$ac_exeext && {
1904 test "$cross_compiling" = yes ||
1905 test -x conftest$ac_exeext
1906 }; then :
1907 ac_retval=0
1908 else
1909 $as_echo "$as_me: failed program was:" >&5
1910 sed 's/^/| /' conftest.$ac_ext >&5
1911
1912 ac_retval=1
1913 fi
1914 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1915 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1916 # interfere with the next link command; also delete a directory that is
1917 # left behind by Apple's compiler. We do this before executing the actions.
1918 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1919 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1920 as_fn_set_status $ac_retval
1921
1922 } # ac_fn_d_try_link
1923
1924 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1925 # -------------------------------------------------------
1926 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1927 # the include files in INCLUDES and setting the cache variable VAR
1928 # accordingly.
1929 ac_fn_c_check_header_mongrel ()
1930 {
1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932 if eval \${$3+:} false; then :
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1934 $as_echo_n "checking for $2... " >&6; }
1935 if eval \${$3+:} false; then :
1936 $as_echo_n "(cached) " >&6
1937 fi
1938 eval ac_res=\$$3
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1940 $as_echo "$ac_res" >&6; }
1941 else
1942 # Is the header compilable?
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1944 $as_echo_n "checking $2 usability... " >&6; }
1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h. */
1947 $4
1948 #include <$2>
1949 _ACEOF
1950 if ac_fn_c_try_compile "$LINENO"; then :
1951 ac_header_compiler=yes
1952 else
1953 ac_header_compiler=no
1954 fi
1955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1957 $as_echo "$ac_header_compiler" >&6; }
1958
1959 # Is the header present?
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1961 $as_echo_n "checking $2 presence... " >&6; }
1962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963 /* end confdefs.h. */
1964 #include <$2>
1965 _ACEOF
1966 if ac_fn_c_try_cpp "$LINENO"; then :
1967 ac_header_preproc=yes
1968 else
1969 ac_header_preproc=no
1970 fi
1971 rm -f conftest.err conftest.i conftest.$ac_ext
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1973 $as_echo "$ac_header_preproc" >&6; }
1974
1975 # So? What about this header?
1976 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1977 yes:no: )
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1979 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1981 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1982 ;;
1983 no:yes:* )
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1985 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1987 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1989 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1991 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1993 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1994 ;;
1995 esac
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1997 $as_echo_n "checking for $2... " >&6; }
1998 if eval \${$3+:} false; then :
1999 $as_echo_n "(cached) " >&6
2000 else
2001 eval "$3=\$ac_header_compiler"
2002 fi
2003 eval ac_res=\$$3
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2005 $as_echo "$ac_res" >&6; }
2006 fi
2007 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2008
2009 } # ac_fn_c_check_header_mongrel
2010 cat >config.log <<_ACEOF
2011 This file contains any messages produced by compilers while
2012 running configure, to aid debugging if configure makes a mistake.
2013
2014 It was created by package-unused $as_me version-unused, which was
2015 generated by GNU Autoconf 2.69. Invocation command line was
2016
2017 $ $0 $@
2018
2019 _ACEOF
2020 exec 5>>config.log
2021 {
2022 cat <<_ASUNAME
2023 ## --------- ##
2024 ## Platform. ##
2025 ## --------- ##
2026
2027 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2028 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2029 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2030 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2031 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2032
2033 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2034 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2035
2036 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2037 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2038 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2039 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2040 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2041 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2042 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2043
2044 _ASUNAME
2045
2046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2047 for as_dir in $PATH
2048 do
2049 IFS=$as_save_IFS
2050 test -z "$as_dir" && as_dir=.
2051 $as_echo "PATH: $as_dir"
2052 done
2053 IFS=$as_save_IFS
2054
2055 } >&5
2056
2057 cat >&5 <<_ACEOF
2058
2059
2060 ## ----------- ##
2061 ## Core tests. ##
2062 ## ----------- ##
2063
2064 _ACEOF
2065
2066
2067 # Keep a trace of the command line.
2068 # Strip out --no-create and --no-recursion so they do not pile up.
2069 # Strip out --silent because we don't want to record it for future runs.
2070 # Also quote any args containing shell meta-characters.
2071 # Make two passes to allow for proper duplicate-argument suppression.
2072 ac_configure_args=
2073 ac_configure_args0=
2074 ac_configure_args1=
2075 ac_must_keep_next=false
2076 for ac_pass in 1 2
2077 do
2078 for ac_arg
2079 do
2080 case $ac_arg in
2081 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2082 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2083 | -silent | --silent | --silen | --sile | --sil)
2084 continue ;;
2085 *\'*)
2086 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2087 esac
2088 case $ac_pass in
2089 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2090 2)
2091 as_fn_append ac_configure_args1 " '$ac_arg'"
2092 if test $ac_must_keep_next = true; then
2093 ac_must_keep_next=false # Got value, back to normal.
2094 else
2095 case $ac_arg in
2096 *=* | --config-cache | -C | -disable-* | --disable-* \
2097 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2098 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2099 | -with-* | --with-* | -without-* | --without-* | --x)
2100 case "$ac_configure_args0 " in
2101 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2102 esac
2103 ;;
2104 -* ) ac_must_keep_next=true ;;
2105 esac
2106 fi
2107 as_fn_append ac_configure_args " '$ac_arg'"
2108 ;;
2109 esac
2110 done
2111 done
2112 { ac_configure_args0=; unset ac_configure_args0;}
2113 { ac_configure_args1=; unset ac_configure_args1;}
2114
2115 # When interrupted or exit'd, cleanup temporary files, and complete
2116 # config.log. We remove comments because anyway the quotes in there
2117 # would cause problems or look ugly.
2118 # WARNING: Use '\'' to represent an apostrophe within the trap.
2119 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2120 trap 'exit_status=$?
2121 # Save into config.log some information that might help in debugging.
2122 {
2123 echo
2124
2125 $as_echo "## ---------------- ##
2126 ## Cache variables. ##
2127 ## ---------------- ##"
2128 echo
2129 # The following way of writing the cache mishandles newlines in values,
2130 (
2131 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2132 eval ac_val=\$$ac_var
2133 case $ac_val in #(
2134 *${as_nl}*)
2135 case $ac_var in #(
2136 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2137 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2138 esac
2139 case $ac_var in #(
2140 _ | IFS | as_nl) ;; #(
2141 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2142 *) { eval $ac_var=; unset $ac_var;} ;;
2143 esac ;;
2144 esac
2145 done
2146 (set) 2>&1 |
2147 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2148 *${as_nl}ac_space=\ *)
2149 sed -n \
2150 "s/'\''/'\''\\\\'\'''\''/g;
2151 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2152 ;; #(
2153 *)
2154 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2155 ;;
2156 esac |
2157 sort
2158 )
2159 echo
2160
2161 $as_echo "## ----------------- ##
2162 ## Output variables. ##
2163 ## ----------------- ##"
2164 echo
2165 for ac_var in $ac_subst_vars
2166 do
2167 eval ac_val=\$$ac_var
2168 case $ac_val in
2169 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2170 esac
2171 $as_echo "$ac_var='\''$ac_val'\''"
2172 done | sort
2173 echo
2174
2175 if test -n "$ac_subst_files"; then
2176 $as_echo "## ------------------- ##
2177 ## File substitutions. ##
2178 ## ------------------- ##"
2179 echo
2180 for ac_var in $ac_subst_files
2181 do
2182 eval ac_val=\$$ac_var
2183 case $ac_val in
2184 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2185 esac
2186 $as_echo "$ac_var='\''$ac_val'\''"
2187 done | sort
2188 echo
2189 fi
2190
2191 if test -s confdefs.h; then
2192 $as_echo "## ----------- ##
2193 ## confdefs.h. ##
2194 ## ----------- ##"
2195 echo
2196 cat confdefs.h
2197 echo
2198 fi
2199 test "$ac_signal" != 0 &&
2200 $as_echo "$as_me: caught signal $ac_signal"
2201 $as_echo "$as_me: exit $exit_status"
2202 } >&5
2203 rm -f core *.core core.conftest.* &&
2204 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2205 exit $exit_status
2206 ' 0
2207 for ac_signal in 1 2 13 15; do
2208 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2209 done
2210 ac_signal=0
2211
2212 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2213 rm -f -r conftest* confdefs.h
2214
2215 $as_echo "/* confdefs.h */" > confdefs.h
2216
2217 # Predefined preprocessor variables.
2218
2219 cat >>confdefs.h <<_ACEOF
2220 #define PACKAGE_NAME "$PACKAGE_NAME"
2221 _ACEOF
2222
2223 cat >>confdefs.h <<_ACEOF
2224 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2225 _ACEOF
2226
2227 cat >>confdefs.h <<_ACEOF
2228 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2229 _ACEOF
2230
2231 cat >>confdefs.h <<_ACEOF
2232 #define PACKAGE_STRING "$PACKAGE_STRING"
2233 _ACEOF
2234
2235 cat >>confdefs.h <<_ACEOF
2236 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2237 _ACEOF
2238
2239 cat >>confdefs.h <<_ACEOF
2240 #define PACKAGE_URL "$PACKAGE_URL"
2241 _ACEOF
2242
2243
2244 # Let the site file select an alternate cache file if it wants to.
2245 # Prefer an explicitly selected file to automatically selected ones.
2246 ac_site_file1=NONE
2247 ac_site_file2=NONE
2248 if test -n "$CONFIG_SITE"; then
2249 # We do not want a PATH search for config.site.
2250 case $CONFIG_SITE in #((
2251 -*) ac_site_file1=./$CONFIG_SITE;;
2252 */*) ac_site_file1=$CONFIG_SITE;;
2253 *) ac_site_file1=./$CONFIG_SITE;;
2254 esac
2255 elif test "x$prefix" != xNONE; then
2256 ac_site_file1=$prefix/share/config.site
2257 ac_site_file2=$prefix/etc/config.site
2258 else
2259 ac_site_file1=$ac_default_prefix/share/config.site
2260 ac_site_file2=$ac_default_prefix/etc/config.site
2261 fi
2262 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2263 do
2264 test "x$ac_site_file" = xNONE && continue
2265 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2267 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2268 sed 's/^/| /' "$ac_site_file" >&5
2269 . "$ac_site_file" \
2270 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2271 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2272 as_fn_error $? "failed to load site script $ac_site_file
2273 See \`config.log' for more details" "$LINENO" 5; }
2274 fi
2275 done
2276
2277 if test -r "$cache_file"; then
2278 # Some versions of bash will fail to source /dev/null (special files
2279 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2280 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2282 $as_echo "$as_me: loading cache $cache_file" >&6;}
2283 case $cache_file in
2284 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2285 *) . "./$cache_file";;
2286 esac
2287 fi
2288 else
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2290 $as_echo "$as_me: creating cache $cache_file" >&6;}
2291 >$cache_file
2292 fi
2293
2294 # Check that the precious variables saved in the cache have kept the same
2295 # value.
2296 ac_cache_corrupted=false
2297 for ac_var in $ac_precious_vars; do
2298 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2299 eval ac_new_set=\$ac_env_${ac_var}_set
2300 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2301 eval ac_new_val=\$ac_env_${ac_var}_value
2302 case $ac_old_set,$ac_new_set in
2303 set,)
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2305 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2306 ac_cache_corrupted=: ;;
2307 ,set)
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2309 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2310 ac_cache_corrupted=: ;;
2311 ,);;
2312 *)
2313 if test "x$ac_old_val" != "x$ac_new_val"; then
2314 # differences in whitespace do not lead to failure.
2315 ac_old_val_w=`echo x $ac_old_val`
2316 ac_new_val_w=`echo x $ac_new_val`
2317 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2319 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2320 ac_cache_corrupted=:
2321 else
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2323 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2324 eval $ac_var=\$ac_old_val
2325 fi
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2327 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2329 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2330 fi;;
2331 esac
2332 # Pass precious variables to config.status.
2333 if test "$ac_new_set" = set; then
2334 case $ac_new_val in
2335 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2336 *) ac_arg=$ac_var=$ac_new_val ;;
2337 esac
2338 case " $ac_configure_args " in
2339 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2340 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2341 esac
2342 fi
2343 done
2344 if $ac_cache_corrupted; then
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2346 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2348 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2349 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2350 fi
2351 ## -------------------- ##
2352 ## Main body of script. ##
2353 ## -------------------- ##
2354
2355 ac_ext=c
2356 ac_cpp='$CPP $CPPFLAGS'
2357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2360
2361
2362
2363
2364
2365
2366 ac_config_headers="$ac_config_headers config.h"
2367
2368
2369 # Default to --enable-multilib
2370 # Check whether --enable-multilib was given.
2371 if test "${enable_multilib+set}" = set; then :
2372 enableval=$enable_multilib; case "$enableval" in
2373 yes) multilib=yes ;;
2374 no) multilib=no ;;
2375 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2376 esac
2377 else
2378 multilib=yes
2379 fi
2380
2381
2382 # We may get other options which we leave undocumented:
2383 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2384 # See config-ml.in if you want the gory details.
2385
2386 if test "$srcdir" = "."; then
2387 if test "$with_target_subdir" != "."; then
2388 multi_basedir="$srcdir/$with_multisrctop../.."
2389 else
2390 multi_basedir="$srcdir/$with_multisrctop.."
2391 fi
2392 else
2393 multi_basedir="$srcdir/.."
2394 fi
2395
2396
2397 # Even if the default multilib is not a cross compilation,
2398 # it may be that some of the other multilibs are.
2399 if test $cross_compiling = no && test $multilib = yes \
2400 && test "x${with_multisubdir}" != x ; then
2401 cross_compiling=maybe
2402 fi
2403
2404 ac_config_commands="$ac_config_commands default-1"
2405
2406 ac_aux_dir=
2407 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2408 if test -f "$ac_dir/install-sh"; then
2409 ac_aux_dir=$ac_dir
2410 ac_install_sh="$ac_aux_dir/install-sh -c"
2411 break
2412 elif test -f "$ac_dir/install.sh"; then
2413 ac_aux_dir=$ac_dir
2414 ac_install_sh="$ac_aux_dir/install.sh -c"
2415 break
2416 elif test -f "$ac_dir/shtool"; then
2417 ac_aux_dir=$ac_dir
2418 ac_install_sh="$ac_aux_dir/shtool install -c"
2419 break
2420 fi
2421 done
2422 if test -z "$ac_aux_dir"; then
2423 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2424 fi
2425
2426 # These three variables are undocumented and unsupported,
2427 # and are intended to be withdrawn in a future Autoconf release.
2428 # They can cause serious problems if a builder's source tree is in a directory
2429 # whose full name contains unusual characters.
2430 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2431 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2432 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2433
2434
2435 # Make sure we can run config.sub.
2436 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2437 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2438
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2440 $as_echo_n "checking build system type... " >&6; }
2441 if ${ac_cv_build+:} false; then :
2442 $as_echo_n "(cached) " >&6
2443 else
2444 ac_build_alias=$build_alias
2445 test "x$ac_build_alias" = x &&
2446 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2447 test "x$ac_build_alias" = x &&
2448 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2449 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2450 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2451
2452 fi
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2454 $as_echo "$ac_cv_build" >&6; }
2455 case $ac_cv_build in
2456 *-*-*) ;;
2457 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2458 esac
2459 build=$ac_cv_build
2460 ac_save_IFS=$IFS; IFS='-'
2461 set x $ac_cv_build
2462 shift
2463 build_cpu=$1
2464 build_vendor=$2
2465 shift; shift
2466 # Remember, the first character of IFS is used to create $*,
2467 # except with old shells:
2468 build_os=$*
2469 IFS=$ac_save_IFS
2470 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2471
2472
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2474 $as_echo_n "checking host system type... " >&6; }
2475 if ${ac_cv_host+:} false; then :
2476 $as_echo_n "(cached) " >&6
2477 else
2478 if test "x$host_alias" = x; then
2479 ac_cv_host=$ac_cv_build
2480 else
2481 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2482 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2483 fi
2484
2485 fi
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2487 $as_echo "$ac_cv_host" >&6; }
2488 case $ac_cv_host in
2489 *-*-*) ;;
2490 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2491 esac
2492 host=$ac_cv_host
2493 ac_save_IFS=$IFS; IFS='-'
2494 set x $ac_cv_host
2495 shift
2496 host_cpu=$1
2497 host_vendor=$2
2498 shift; shift
2499 # Remember, the first character of IFS is used to create $*,
2500 # except with old shells:
2501 host_os=$*
2502 IFS=$ac_save_IFS
2503 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2504
2505
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2507 $as_echo_n "checking target system type... " >&6; }
2508 if ${ac_cv_target+:} false; then :
2509 $as_echo_n "(cached) " >&6
2510 else
2511 if test "x$target_alias" = x; then
2512 ac_cv_target=$ac_cv_host
2513 else
2514 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2515 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2516 fi
2517
2518 fi
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2520 $as_echo "$ac_cv_target" >&6; }
2521 case $ac_cv_target in
2522 *-*-*) ;;
2523 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2524 esac
2525 target=$ac_cv_target
2526 ac_save_IFS=$IFS; IFS='-'
2527 set x $ac_cv_target
2528 shift
2529 target_cpu=$1
2530 target_vendor=$2
2531 shift; shift
2532 # Remember, the first character of IFS is used to create $*,
2533 # except with old shells:
2534 target_os=$*
2535 IFS=$ac_save_IFS
2536 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2537
2538
2539 # The aliases save the names the user supplied, while $host etc.
2540 # will get canonicalized.
2541 test -n "$target_alias" &&
2542 test "$program_prefix$program_suffix$program_transform_name" = \
2543 NONENONEs,x,x, &&
2544 program_prefix=${target_alias}-
2545
2546
2547 target_alias=${target_alias-$target}
2548
2549
2550 # 1.11.1: Require that version of automake.
2551 # foreign: Don't require README, INSTALL, NEWS, etc.
2552 # no-define: Don't define PACKAGE and VERSION.
2553 # no-dependencies: Don't generate automatic dependencies.
2554 # (because it breaks when using bootstrap-lean, since some of the
2555 # headers are gone at "make install" time).
2556 # -Wall: Issue all automake warnings.
2557 # -Wno-portability: Don't warn about constructs supported by GNU make.
2558 # (because GCC requires GNU make anyhow).
2559 # -Wno-override: Overrides used in testsuite.
2560 am__api_version='1.15'
2561
2562 # Find a good install program. We prefer a C program (faster),
2563 # so one script is as good as another. But avoid the broken or
2564 # incompatible versions:
2565 # SysV /etc/install, /usr/sbin/install
2566 # SunOS /usr/etc/install
2567 # IRIX /sbin/install
2568 # AIX /bin/install
2569 # AmigaOS /C/install, which installs bootblocks on floppy discs
2570 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2571 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2572 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2573 # OS/2's system install, which has a completely different semantic
2574 # ./install, which can be erroneously created by make from ./install.sh.
2575 # Reject install programs that cannot install multiple files.
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2577 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2578 if test -z "$INSTALL"; then
2579 if ${ac_cv_path_install+:} false; then :
2580 $as_echo_n "(cached) " >&6
2581 else
2582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583 for as_dir in $PATH
2584 do
2585 IFS=$as_save_IFS
2586 test -z "$as_dir" && as_dir=.
2587 # Account for people who put trailing slashes in PATH elements.
2588 case $as_dir/ in #((
2589 ./ | .// | /[cC]/* | \
2590 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2591 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2592 /usr/ucb/* ) ;;
2593 *)
2594 # OSF1 and SCO ODT 3.0 have their own names for install.
2595 # Don't use installbsd from OSF since it installs stuff as root
2596 # by default.
2597 for ac_prog in ginstall scoinst install; do
2598 for ac_exec_ext in '' $ac_executable_extensions; do
2599 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2600 if test $ac_prog = install &&
2601 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2602 # AIX install. It has an incompatible calling convention.
2603 :
2604 elif test $ac_prog = install &&
2605 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2606 # program-specific install script used by HP pwplus--don't use.
2607 :
2608 else
2609 rm -rf conftest.one conftest.two conftest.dir
2610 echo one > conftest.one
2611 echo two > conftest.two
2612 mkdir conftest.dir
2613 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2614 test -s conftest.one && test -s conftest.two &&
2615 test -s conftest.dir/conftest.one &&
2616 test -s conftest.dir/conftest.two
2617 then
2618 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2619 break 3
2620 fi
2621 fi
2622 fi
2623 done
2624 done
2625 ;;
2626 esac
2627
2628 done
2629 IFS=$as_save_IFS
2630
2631 rm -rf conftest.one conftest.two conftest.dir
2632
2633 fi
2634 if test "${ac_cv_path_install+set}" = set; then
2635 INSTALL=$ac_cv_path_install
2636 else
2637 # As a last resort, use the slow shell script. Don't cache a
2638 # value for INSTALL within a source directory, because that will
2639 # break other packages using the cache if that directory is
2640 # removed, or if the value is a relative name.
2641 INSTALL=$ac_install_sh
2642 fi
2643 fi
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2645 $as_echo "$INSTALL" >&6; }
2646
2647 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2648 # It thinks the first close brace ends the variable substitution.
2649 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2650
2651 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2652
2653 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2654
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2656 $as_echo_n "checking whether build environment is sane... " >&6; }
2657 # Reject unsafe characters in $srcdir or the absolute working directory
2658 # name. Accept space and tab only in the latter.
2659 am_lf='
2660 '
2661 case `pwd` in
2662 *[\\\"\#\$\&\'\`$am_lf]*)
2663 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2664 esac
2665 case $srcdir in
2666 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2667 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2668 esac
2669
2670 # Do 'set' in a subshell so we don't clobber the current shell's
2671 # arguments. Must try -L first in case configure is actually a
2672 # symlink; some systems play weird games with the mod time of symlinks
2673 # (eg FreeBSD returns the mod time of the symlink's containing
2674 # directory).
2675 if (
2676 am_has_slept=no
2677 for am_try in 1 2; do
2678 echo "timestamp, slept: $am_has_slept" > conftest.file
2679 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2680 if test "$*" = "X"; then
2681 # -L didn't work.
2682 set X `ls -t "$srcdir/configure" conftest.file`
2683 fi
2684 if test "$*" != "X $srcdir/configure conftest.file" \
2685 && test "$*" != "X conftest.file $srcdir/configure"; then
2686
2687 # If neither matched, then we have a broken ls. This can happen
2688 # if, for instance, CONFIG_SHELL is bash and it inherits a
2689 # broken ls alias from the environment. This has actually
2690 # happened. Such a system could not be considered "sane".
2691 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2692 alias in your environment" "$LINENO" 5
2693 fi
2694 if test "$2" = conftest.file || test $am_try -eq 2; then
2695 break
2696 fi
2697 # Just in case.
2698 sleep 1
2699 am_has_slept=yes
2700 done
2701 test "$2" = conftest.file
2702 )
2703 then
2704 # Ok.
2705 :
2706 else
2707 as_fn_error $? "newly created file is older than distributed files!
2708 Check your system clock" "$LINENO" 5
2709 fi
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2711 $as_echo "yes" >&6; }
2712 # If we didn't sleep, we still need to ensure time stamps of config.status and
2713 # generated files are strictly newer.
2714 am_sleep_pid=
2715 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2716 ( sleep 1 ) &
2717 am_sleep_pid=$!
2718 fi
2719
2720 rm -f conftest.file
2721
2722 test "$program_prefix" != NONE &&
2723 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2724 # Use a double $ so make ignores it.
2725 test "$program_suffix" != NONE &&
2726 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2727 # Double any \ or $.
2728 # By default was `s,x,x', remove it if useless.
2729 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2730 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2731
2732 # Expand $ac_aux_dir to an absolute path.
2733 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2734
2735 if test x"${MISSING+set}" != xset; then
2736 case $am_aux_dir in
2737 *\ * | *\ *)
2738 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2739 *)
2740 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2741 esac
2742 fi
2743 # Use eval to expand $SHELL
2744 if eval "$MISSING --is-lightweight"; then
2745 am_missing_run="$MISSING "
2746 else
2747 am_missing_run=
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2749 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2750 fi
2751
2752 if test x"${install_sh+set}" != xset; then
2753 case $am_aux_dir in
2754 *\ * | *\ *)
2755 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2756 *)
2757 install_sh="\${SHELL} $am_aux_dir/install-sh"
2758 esac
2759 fi
2760
2761 # Installed binaries are usually stripped using 'strip' when the user
2762 # run "make install-strip". However 'strip' might not be the right
2763 # tool to use in cross-compilation environments, therefore Automake
2764 # will honor the 'STRIP' environment variable to overrule this program.
2765 if test "$cross_compiling" != no; then
2766 if test -n "$ac_tool_prefix"; then
2767 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2768 set dummy ${ac_tool_prefix}strip; ac_word=$2
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2770 $as_echo_n "checking for $ac_word... " >&6; }
2771 if ${ac_cv_prog_STRIP+:} false; then :
2772 $as_echo_n "(cached) " >&6
2773 else
2774 if test -n "$STRIP"; then
2775 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2776 else
2777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778 for as_dir in $PATH
2779 do
2780 IFS=$as_save_IFS
2781 test -z "$as_dir" && as_dir=.
2782 for ac_exec_ext in '' $ac_executable_extensions; do
2783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2784 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2786 break 2
2787 fi
2788 done
2789 done
2790 IFS=$as_save_IFS
2791
2792 fi
2793 fi
2794 STRIP=$ac_cv_prog_STRIP
2795 if test -n "$STRIP"; then
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2797 $as_echo "$STRIP" >&6; }
2798 else
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2800 $as_echo "no" >&6; }
2801 fi
2802
2803
2804 fi
2805 if test -z "$ac_cv_prog_STRIP"; then
2806 ac_ct_STRIP=$STRIP
2807 # Extract the first word of "strip", so it can be a program name with args.
2808 set dummy strip; ac_word=$2
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2810 $as_echo_n "checking for $ac_word... " >&6; }
2811 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2812 $as_echo_n "(cached) " >&6
2813 else
2814 if test -n "$ac_ct_STRIP"; then
2815 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2816 else
2817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818 for as_dir in $PATH
2819 do
2820 IFS=$as_save_IFS
2821 test -z "$as_dir" && as_dir=.
2822 for ac_exec_ext in '' $ac_executable_extensions; do
2823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2824 ac_cv_prog_ac_ct_STRIP="strip"
2825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2826 break 2
2827 fi
2828 done
2829 done
2830 IFS=$as_save_IFS
2831
2832 fi
2833 fi
2834 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2835 if test -n "$ac_ct_STRIP"; then
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2837 $as_echo "$ac_ct_STRIP" >&6; }
2838 else
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2840 $as_echo "no" >&6; }
2841 fi
2842
2843 if test "x$ac_ct_STRIP" = x; then
2844 STRIP=":"
2845 else
2846 case $cross_compiling:$ac_tool_warned in
2847 yes:)
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2849 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2850 ac_tool_warned=yes ;;
2851 esac
2852 STRIP=$ac_ct_STRIP
2853 fi
2854 else
2855 STRIP="$ac_cv_prog_STRIP"
2856 fi
2857
2858 fi
2859 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2860
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2862 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2863 if test -z "$MKDIR_P"; then
2864 if ${ac_cv_path_mkdir+:} false; then :
2865 $as_echo_n "(cached) " >&6
2866 else
2867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2868 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2869 do
2870 IFS=$as_save_IFS
2871 test -z "$as_dir" && as_dir=.
2872 for ac_prog in mkdir gmkdir; do
2873 for ac_exec_ext in '' $ac_executable_extensions; do
2874 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2875 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2876 'mkdir (GNU coreutils) '* | \
2877 'mkdir (coreutils) '* | \
2878 'mkdir (fileutils) '4.1*)
2879 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2880 break 3;;
2881 esac
2882 done
2883 done
2884 done
2885 IFS=$as_save_IFS
2886
2887 fi
2888
2889 test -d ./--version && rmdir ./--version
2890 if test "${ac_cv_path_mkdir+set}" = set; then
2891 MKDIR_P="$ac_cv_path_mkdir -p"
2892 else
2893 # As a last resort, use the slow shell script. Don't cache a
2894 # value for MKDIR_P within a source directory, because that will
2895 # break other packages using the cache if that directory is
2896 # removed, or if the value is a relative name.
2897 MKDIR_P="$ac_install_sh -d"
2898 fi
2899 fi
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2901 $as_echo "$MKDIR_P" >&6; }
2902
2903 for ac_prog in gawk mawk nawk awk
2904 do
2905 # Extract the first word of "$ac_prog", so it can be a program name with args.
2906 set dummy $ac_prog; ac_word=$2
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2908 $as_echo_n "checking for $ac_word... " >&6; }
2909 if ${ac_cv_prog_AWK+:} false; then :
2910 $as_echo_n "(cached) " >&6
2911 else
2912 if test -n "$AWK"; then
2913 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2914 else
2915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2916 for as_dir in $PATH
2917 do
2918 IFS=$as_save_IFS
2919 test -z "$as_dir" && as_dir=.
2920 for ac_exec_ext in '' $ac_executable_extensions; do
2921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2922 ac_cv_prog_AWK="$ac_prog"
2923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2924 break 2
2925 fi
2926 done
2927 done
2928 IFS=$as_save_IFS
2929
2930 fi
2931 fi
2932 AWK=$ac_cv_prog_AWK
2933 if test -n "$AWK"; then
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2935 $as_echo "$AWK" >&6; }
2936 else
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2938 $as_echo "no" >&6; }
2939 fi
2940
2941
2942 test -n "$AWK" && break
2943 done
2944
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2946 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2947 set x ${MAKE-make}
2948 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2949 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2950 $as_echo_n "(cached) " >&6
2951 else
2952 cat >conftest.make <<\_ACEOF
2953 SHELL = /bin/sh
2954 all:
2955 @echo '@@@%%%=$(MAKE)=@@@%%%'
2956 _ACEOF
2957 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2958 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2959 *@@@%%%=?*=@@@%%%*)
2960 eval ac_cv_prog_make_${ac_make}_set=yes;;
2961 *)
2962 eval ac_cv_prog_make_${ac_make}_set=no;;
2963 esac
2964 rm -f conftest.make
2965 fi
2966 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2968 $as_echo "yes" >&6; }
2969 SET_MAKE=
2970 else
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2972 $as_echo "no" >&6; }
2973 SET_MAKE="MAKE=${MAKE-make}"
2974 fi
2975
2976 rm -rf .tst 2>/dev/null
2977 mkdir .tst 2>/dev/null
2978 if test -d .tst; then
2979 am__leading_dot=.
2980 else
2981 am__leading_dot=_
2982 fi
2983 rmdir .tst 2>/dev/null
2984
2985 # Check whether --enable-silent-rules was given.
2986 if test "${enable_silent_rules+set}" = set; then :
2987 enableval=$enable_silent_rules;
2988 fi
2989
2990 case $enable_silent_rules in # (((
2991 yes) AM_DEFAULT_VERBOSITY=0;;
2992 no) AM_DEFAULT_VERBOSITY=1;;
2993 *) AM_DEFAULT_VERBOSITY=1;;
2994 esac
2995 am_make=${MAKE-make}
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2997 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2998 if ${am_cv_make_support_nested_variables+:} false; then :
2999 $as_echo_n "(cached) " >&6
3000 else
3001 if $as_echo 'TRUE=$(BAR$(V))
3002 BAR0=false
3003 BAR1=true
3004 V=1
3005 am__doit:
3006 @$(TRUE)
3007 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3008 am_cv_make_support_nested_variables=yes
3009 else
3010 am_cv_make_support_nested_variables=no
3011 fi
3012 fi
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3014 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3015 if test $am_cv_make_support_nested_variables = yes; then
3016 AM_V='$(V)'
3017 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3018 else
3019 AM_V=$AM_DEFAULT_VERBOSITY
3020 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3021 fi
3022 AM_BACKSLASH='\'
3023
3024 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3025 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3026 # is not polluted with repeated "-I."
3027 am__isrc=' -I$(srcdir)'
3028 # test to see if srcdir already configured
3029 if test -f $srcdir/config.status; then
3030 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3031 fi
3032 fi
3033
3034 # test whether we have cygpath
3035 if test -z "$CYGPATH_W"; then
3036 if (cygpath --version) >/dev/null 2>/dev/null; then
3037 CYGPATH_W='cygpath -w'
3038 else
3039 CYGPATH_W=echo
3040 fi
3041 fi
3042
3043
3044 # Define the identity of the package.
3045 PACKAGE='libphobos'
3046 VERSION='version-unused'
3047
3048
3049 # Some tools Automake needs.
3050
3051 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3052
3053
3054 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3055
3056
3057 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3058
3059
3060 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3061
3062
3063 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3064
3065 # For better backward compatibility. To be removed once Automake 1.9.x
3066 # dies out for good. For more background, see:
3067 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3068 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3069 mkdir_p='$(MKDIR_P)'
3070
3071 # We need awk for the "check" target (and possibly the TAP driver). The
3072 # system "awk" is bad on some platforms.
3073 # Always define AMTAR for backward compatibility. Yes, it's still used
3074 # in the wild :-( We should find a proper way to deprecate it ...
3075 AMTAR='$${TAR-tar}'
3076
3077
3078 # We'll loop over all known methods to create a tar archive until one works.
3079 _am_tools='gnutar pax cpio none'
3080
3081 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3082
3083
3084
3085
3086
3087
3088 # POSIX will say in a future version that running "rm -f" with no argument
3089 # is OK; and we want to be able to make that assumption in our Makefile
3090 # recipes. So use an aggressive probe to check that the usage we want is
3091 # actually supported "in the wild" to an acceptable degree.
3092 # See automake bug#10828.
3093 # To make any issue more visible, cause the running configure to be aborted
3094 # by default if the 'rm' program in use doesn't match our expectations; the
3095 # user can still override this though.
3096 if rm -f && rm -fr && rm -rf; then : OK; else
3097 cat >&2 <<'END'
3098 Oops!
3099
3100 Your 'rm' program seems unable to run without file operands specified
3101 on the command line, even when the '-f' option is present. This is contrary
3102 to the behaviour of most rm programs out there, and not conforming with
3103 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3104
3105 Please tell bug-automake@gnu.org about your system, including the value
3106 of your $PATH and any error possibly output before this message. This
3107 can help us improve future automake versions.
3108
3109 END
3110 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3111 echo 'Configuration will proceed anyway, since you have set the' >&2
3112 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3113 echo >&2
3114 else
3115 cat >&2 <<'END'
3116 Aborting the configuration process, to ensure you take notice of the issue.
3117
3118 You can download and install GNU coreutils to get an 'rm' implementation
3119 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3120
3121 If you want to complete the configuration process using your problematic
3122 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3123 to "yes", and re-run configure.
3124
3125 END
3126 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3127 fi
3128 fi
3129
3130
3131
3132
3133 ac_ext=c
3134 ac_cpp='$CPP $CPPFLAGS'
3135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3138 if test -n "$ac_tool_prefix"; then
3139 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3140 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3142 $as_echo_n "checking for $ac_word... " >&6; }
3143 if ${ac_cv_prog_CC+:} false; then :
3144 $as_echo_n "(cached) " >&6
3145 else
3146 if test -n "$CC"; then
3147 ac_cv_prog_CC="$CC" # Let the user override the test.
3148 else
3149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150 for as_dir in $PATH
3151 do
3152 IFS=$as_save_IFS
3153 test -z "$as_dir" && as_dir=.
3154 for ac_exec_ext in '' $ac_executable_extensions; do
3155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3156 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3158 break 2
3159 fi
3160 done
3161 done
3162 IFS=$as_save_IFS
3163
3164 fi
3165 fi
3166 CC=$ac_cv_prog_CC
3167 if test -n "$CC"; then
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3169 $as_echo "$CC" >&6; }
3170 else
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3172 $as_echo "no" >&6; }
3173 fi
3174
3175
3176 fi
3177 if test -z "$ac_cv_prog_CC"; then
3178 ac_ct_CC=$CC
3179 # Extract the first word of "gcc", so it can be a program name with args.
3180 set dummy gcc; ac_word=$2
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3182 $as_echo_n "checking for $ac_word... " >&6; }
3183 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3184 $as_echo_n "(cached) " >&6
3185 else
3186 if test -n "$ac_ct_CC"; then
3187 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3188 else
3189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3190 for as_dir in $PATH
3191 do
3192 IFS=$as_save_IFS
3193 test -z "$as_dir" && as_dir=.
3194 for ac_exec_ext in '' $ac_executable_extensions; do
3195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3196 ac_cv_prog_ac_ct_CC="gcc"
3197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3198 break 2
3199 fi
3200 done
3201 done
3202 IFS=$as_save_IFS
3203
3204 fi
3205 fi
3206 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3207 if test -n "$ac_ct_CC"; then
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3209 $as_echo "$ac_ct_CC" >&6; }
3210 else
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3212 $as_echo "no" >&6; }
3213 fi
3214
3215 if test "x$ac_ct_CC" = x; then
3216 CC=""
3217 else
3218 case $cross_compiling:$ac_tool_warned in
3219 yes:)
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3221 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3222 ac_tool_warned=yes ;;
3223 esac
3224 CC=$ac_ct_CC
3225 fi
3226 else
3227 CC="$ac_cv_prog_CC"
3228 fi
3229
3230 if test -z "$CC"; then
3231 if test -n "$ac_tool_prefix"; then
3232 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3233 set dummy ${ac_tool_prefix}cc; ac_word=$2
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3235 $as_echo_n "checking for $ac_word... " >&6; }
3236 if ${ac_cv_prog_CC+:} false; then :
3237 $as_echo_n "(cached) " >&6
3238 else
3239 if test -n "$CC"; then
3240 ac_cv_prog_CC="$CC" # Let the user override the test.
3241 else
3242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3243 for as_dir in $PATH
3244 do
3245 IFS=$as_save_IFS
3246 test -z "$as_dir" && as_dir=.
3247 for ac_exec_ext in '' $ac_executable_extensions; do
3248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3249 ac_cv_prog_CC="${ac_tool_prefix}cc"
3250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3251 break 2
3252 fi
3253 done
3254 done
3255 IFS=$as_save_IFS
3256
3257 fi
3258 fi
3259 CC=$ac_cv_prog_CC
3260 if test -n "$CC"; then
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3262 $as_echo "$CC" >&6; }
3263 else
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3265 $as_echo "no" >&6; }
3266 fi
3267
3268
3269 fi
3270 fi
3271 if test -z "$CC"; then
3272 # Extract the first word of "cc", so it can be a program name with args.
3273 set dummy cc; ac_word=$2
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3275 $as_echo_n "checking for $ac_word... " >&6; }
3276 if ${ac_cv_prog_CC+:} false; then :
3277 $as_echo_n "(cached) " >&6
3278 else
3279 if test -n "$CC"; then
3280 ac_cv_prog_CC="$CC" # Let the user override the test.
3281 else
3282 ac_prog_rejected=no
3283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284 for as_dir in $PATH
3285 do
3286 IFS=$as_save_IFS
3287 test -z "$as_dir" && as_dir=.
3288 for ac_exec_ext in '' $ac_executable_extensions; do
3289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3290 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3291 ac_prog_rejected=yes
3292 continue
3293 fi
3294 ac_cv_prog_CC="cc"
3295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3296 break 2
3297 fi
3298 done
3299 done
3300 IFS=$as_save_IFS
3301
3302 if test $ac_prog_rejected = yes; then
3303 # We found a bogon in the path, so make sure we never use it.
3304 set dummy $ac_cv_prog_CC
3305 shift
3306 if test $# != 0; then
3307 # We chose a different compiler from the bogus one.
3308 # However, it has the same basename, so the bogon will be chosen
3309 # first if we set CC to just the basename; use the full file name.
3310 shift
3311 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3312 fi
3313 fi
3314 fi
3315 fi
3316 CC=$ac_cv_prog_CC
3317 if test -n "$CC"; then
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3319 $as_echo "$CC" >&6; }
3320 else
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3322 $as_echo "no" >&6; }
3323 fi
3324
3325
3326 fi
3327 if test -z "$CC"; then
3328 if test -n "$ac_tool_prefix"; then
3329 for ac_prog in cl.exe
3330 do
3331 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3332 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3334 $as_echo_n "checking for $ac_word... " >&6; }
3335 if ${ac_cv_prog_CC+:} false; then :
3336 $as_echo_n "(cached) " >&6
3337 else
3338 if test -n "$CC"; then
3339 ac_cv_prog_CC="$CC" # Let the user override the test.
3340 else
3341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3342 for as_dir in $PATH
3343 do
3344 IFS=$as_save_IFS
3345 test -z "$as_dir" && as_dir=.
3346 for ac_exec_ext in '' $ac_executable_extensions; do
3347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3348 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3350 break 2
3351 fi
3352 done
3353 done
3354 IFS=$as_save_IFS
3355
3356 fi
3357 fi
3358 CC=$ac_cv_prog_CC
3359 if test -n "$CC"; then
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3361 $as_echo "$CC" >&6; }
3362 else
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3364 $as_echo "no" >&6; }
3365 fi
3366
3367
3368 test -n "$CC" && break
3369 done
3370 fi
3371 if test -z "$CC"; then
3372 ac_ct_CC=$CC
3373 for ac_prog in cl.exe
3374 do
3375 # Extract the first word of "$ac_prog", so it can be a program name with args.
3376 set dummy $ac_prog; ac_word=$2
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3378 $as_echo_n "checking for $ac_word... " >&6; }
3379 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3380 $as_echo_n "(cached) " >&6
3381 else
3382 if test -n "$ac_ct_CC"; then
3383 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3384 else
3385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3386 for as_dir in $PATH
3387 do
3388 IFS=$as_save_IFS
3389 test -z "$as_dir" && as_dir=.
3390 for ac_exec_ext in '' $ac_executable_extensions; do
3391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3392 ac_cv_prog_ac_ct_CC="$ac_prog"
3393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3394 break 2
3395 fi
3396 done
3397 done
3398 IFS=$as_save_IFS
3399
3400 fi
3401 fi
3402 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3403 if test -n "$ac_ct_CC"; then
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3405 $as_echo "$ac_ct_CC" >&6; }
3406 else
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3408 $as_echo "no" >&6; }
3409 fi
3410
3411
3412 test -n "$ac_ct_CC" && break
3413 done
3414
3415 if test "x$ac_ct_CC" = x; then
3416 CC=""
3417 else
3418 case $cross_compiling:$ac_tool_warned in
3419 yes:)
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3421 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3422 ac_tool_warned=yes ;;
3423 esac
3424 CC=$ac_ct_CC
3425 fi
3426 fi
3427
3428 fi
3429
3430
3431 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3433 as_fn_error $? "no acceptable C compiler found in \$PATH
3434 See \`config.log' for more details" "$LINENO" 5; }
3435
3436 # Provide some information about the compiler.
3437 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3438 set X $ac_compile
3439 ac_compiler=$2
3440 for ac_option in --version -v -V -qversion; do
3441 { { ac_try="$ac_compiler $ac_option >&5"
3442 case "(($ac_try" in
3443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3444 *) ac_try_echo=$ac_try;;
3445 esac
3446 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3447 $as_echo "$ac_try_echo"; } >&5
3448 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3449 ac_status=$?
3450 if test -s conftest.err; then
3451 sed '10a\
3452 ... rest of stderr output deleted ...
3453 10q' conftest.err >conftest.er1
3454 cat conftest.er1 >&5
3455 fi
3456 rm -f conftest.er1 conftest.err
3457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3458 test $ac_status = 0; }
3459 done
3460
3461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3462 /* end confdefs.h. */
3463
3464 int
3465 main ()
3466 {
3467
3468 ;
3469 return 0;
3470 }
3471 _ACEOF
3472 ac_clean_files_save=$ac_clean_files
3473 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3474 # Try to create an executable without -o first, disregard a.out.
3475 # It will help us diagnose broken compilers, and finding out an intuition
3476 # of exeext.
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3478 $as_echo_n "checking whether the C compiler works... " >&6; }
3479 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3480
3481 # The possible output files:
3482 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3483
3484 ac_rmfiles=
3485 for ac_file in $ac_files
3486 do
3487 case $ac_file in
3488 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3489 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3490 esac
3491 done
3492 rm -f $ac_rmfiles
3493
3494 if { { ac_try="$ac_link_default"
3495 case "(($ac_try" in
3496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3497 *) ac_try_echo=$ac_try;;
3498 esac
3499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3500 $as_echo "$ac_try_echo"; } >&5
3501 (eval "$ac_link_default") 2>&5
3502 ac_status=$?
3503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3504 test $ac_status = 0; }; then :
3505 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3506 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3507 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3508 # so that the user can short-circuit this test for compilers unknown to
3509 # Autoconf.
3510 for ac_file in $ac_files ''
3511 do
3512 test -f "$ac_file" || continue
3513 case $ac_file in
3514 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3515 ;;
3516 [ab].out )
3517 # We found the default executable, but exeext='' is most
3518 # certainly right.
3519 break;;
3520 *.* )
3521 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3522 then :; else
3523 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3524 fi
3525 # We set ac_cv_exeext here because the later test for it is not
3526 # safe: cross compilers may not add the suffix if given an `-o'
3527 # argument, so we may need to know it at that point already.
3528 # Even if this section looks crufty: it has the advantage of
3529 # actually working.
3530 break;;
3531 * )
3532 break;;
3533 esac
3534 done
3535 test "$ac_cv_exeext" = no && ac_cv_exeext=
3536
3537 else
3538 ac_file=''
3539 fi
3540 if test -z "$ac_file"; then :
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3542 $as_echo "no" >&6; }
3543 $as_echo "$as_me: failed program was:" >&5
3544 sed 's/^/| /' conftest.$ac_ext >&5
3545
3546 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3547 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3548 as_fn_error 77 "C compiler cannot create executables
3549 See \`config.log' for more details" "$LINENO" 5; }
3550 else
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3552 $as_echo "yes" >&6; }
3553 fi
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3555 $as_echo_n "checking for C compiler default output file name... " >&6; }
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3557 $as_echo "$ac_file" >&6; }
3558 ac_exeext=$ac_cv_exeext
3559
3560 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3561 ac_clean_files=$ac_clean_files_save
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3563 $as_echo_n "checking for suffix of executables... " >&6; }
3564 if { { ac_try="$ac_link"
3565 case "(($ac_try" in
3566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3567 *) ac_try_echo=$ac_try;;
3568 esac
3569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3570 $as_echo "$ac_try_echo"; } >&5
3571 (eval "$ac_link") 2>&5
3572 ac_status=$?
3573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3574 test $ac_status = 0; }; then :
3575 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3576 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3577 # work properly (i.e., refer to `conftest.exe'), while it won't with
3578 # `rm'.
3579 for ac_file in conftest.exe conftest conftest.*; do
3580 test -f "$ac_file" || continue
3581 case $ac_file in
3582 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3583 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3584 break;;
3585 * ) break;;
3586 esac
3587 done
3588 else
3589 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3590 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3591 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3592 See \`config.log' for more details" "$LINENO" 5; }
3593 fi
3594 rm -f conftest conftest$ac_cv_exeext
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3596 $as_echo "$ac_cv_exeext" >&6; }
3597
3598 rm -f conftest.$ac_ext
3599 EXEEXT=$ac_cv_exeext
3600 ac_exeext=$EXEEXT
3601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3602 /* end confdefs.h. */
3603 #include <stdio.h>
3604 int
3605 main ()
3606 {
3607 FILE *f = fopen ("conftest.out", "w");
3608 return ferror (f) || fclose (f) != 0;
3609
3610 ;
3611 return 0;
3612 }
3613 _ACEOF
3614 ac_clean_files="$ac_clean_files conftest.out"
3615 # Check that the compiler produces executables we can run. If not, either
3616 # the compiler is broken, or we cross compile.
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3618 $as_echo_n "checking whether we are cross compiling... " >&6; }
3619 if test "$cross_compiling" != yes; then
3620 { { ac_try="$ac_link"
3621 case "(($ac_try" in
3622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3623 *) ac_try_echo=$ac_try;;
3624 esac
3625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3626 $as_echo "$ac_try_echo"; } >&5
3627 (eval "$ac_link") 2>&5
3628 ac_status=$?
3629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3630 test $ac_status = 0; }
3631 if { ac_try='./conftest$ac_cv_exeext'
3632 { { case "(($ac_try" in
3633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3634 *) ac_try_echo=$ac_try;;
3635 esac
3636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3637 $as_echo "$ac_try_echo"; } >&5
3638 (eval "$ac_try") 2>&5
3639 ac_status=$?
3640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3641 test $ac_status = 0; }; }; then
3642 cross_compiling=no
3643 else
3644 if test "$cross_compiling" = maybe; then
3645 cross_compiling=yes
3646 else
3647 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3648 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3649 as_fn_error $? "cannot run C compiled programs.
3650 If you meant to cross compile, use \`--host'.
3651 See \`config.log' for more details" "$LINENO" 5; }
3652 fi
3653 fi
3654 fi
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3656 $as_echo "$cross_compiling" >&6; }
3657
3658 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3659 ac_clean_files=$ac_clean_files_save
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3661 $as_echo_n "checking for suffix of object files... " >&6; }
3662 if ${ac_cv_objext+:} false; then :
3663 $as_echo_n "(cached) " >&6
3664 else
3665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3666 /* end confdefs.h. */
3667
3668 int
3669 main ()
3670 {
3671
3672 ;
3673 return 0;
3674 }
3675 _ACEOF
3676 rm -f conftest.o conftest.obj
3677 if { { ac_try="$ac_compile"
3678 case "(($ac_try" in
3679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3680 *) ac_try_echo=$ac_try;;
3681 esac
3682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3683 $as_echo "$ac_try_echo"; } >&5
3684 (eval "$ac_compile") 2>&5
3685 ac_status=$?
3686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3687 test $ac_status = 0; }; then :
3688 for ac_file in conftest.o conftest.obj conftest.*; do
3689 test -f "$ac_file" || continue;
3690 case $ac_file in
3691 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3692 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3693 break;;
3694 esac
3695 done
3696 else
3697 $as_echo "$as_me: failed program was:" >&5
3698 sed 's/^/| /' conftest.$ac_ext >&5
3699
3700 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3701 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3702 as_fn_error $? "cannot compute suffix of object files: cannot compile
3703 See \`config.log' for more details" "$LINENO" 5; }
3704 fi
3705 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3706 fi
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3708 $as_echo "$ac_cv_objext" >&6; }
3709 OBJEXT=$ac_cv_objext
3710 ac_objext=$OBJEXT
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3712 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3713 if ${ac_cv_c_compiler_gnu+:} false; then :
3714 $as_echo_n "(cached) " >&6
3715 else
3716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3717 /* end confdefs.h. */
3718
3719 int
3720 main ()
3721 {
3722 #ifndef __GNUC__
3723 choke me
3724 #endif
3725
3726 ;
3727 return 0;
3728 }
3729 _ACEOF
3730 if ac_fn_c_try_compile "$LINENO"; then :
3731 ac_compiler_gnu=yes
3732 else
3733 ac_compiler_gnu=no
3734 fi
3735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3736 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3737
3738 fi
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3740 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3741 if test $ac_compiler_gnu = yes; then
3742 GCC=yes
3743 else
3744 GCC=
3745 fi
3746 ac_test_CFLAGS=${CFLAGS+set}
3747 ac_save_CFLAGS=$CFLAGS
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3749 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3750 if ${ac_cv_prog_cc_g+:} false; then :
3751 $as_echo_n "(cached) " >&6
3752 else
3753 ac_save_c_werror_flag=$ac_c_werror_flag
3754 ac_c_werror_flag=yes
3755 ac_cv_prog_cc_g=no
3756 CFLAGS="-g"
3757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3758 /* end confdefs.h. */
3759
3760 int
3761 main ()
3762 {
3763
3764 ;
3765 return 0;
3766 }
3767 _ACEOF
3768 if ac_fn_c_try_compile "$LINENO"; then :
3769 ac_cv_prog_cc_g=yes
3770 else
3771 CFLAGS=""
3772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3773 /* end confdefs.h. */
3774
3775 int
3776 main ()
3777 {
3778
3779 ;
3780 return 0;
3781 }
3782 _ACEOF
3783 if ac_fn_c_try_compile "$LINENO"; then :
3784
3785 else
3786 ac_c_werror_flag=$ac_save_c_werror_flag
3787 CFLAGS="-g"
3788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3789 /* end confdefs.h. */
3790
3791 int
3792 main ()
3793 {
3794
3795 ;
3796 return 0;
3797 }
3798 _ACEOF
3799 if ac_fn_c_try_compile "$LINENO"; then :
3800 ac_cv_prog_cc_g=yes
3801 fi
3802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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 ac_c_werror_flag=$ac_save_c_werror_flag
3808 fi
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3810 $as_echo "$ac_cv_prog_cc_g" >&6; }
3811 if test "$ac_test_CFLAGS" = set; then
3812 CFLAGS=$ac_save_CFLAGS
3813 elif test $ac_cv_prog_cc_g = yes; then
3814 if test "$GCC" = yes; then
3815 CFLAGS="-g -O2"
3816 else
3817 CFLAGS="-g"
3818 fi
3819 else
3820 if test "$GCC" = yes; then
3821 CFLAGS="-O2"
3822 else
3823 CFLAGS=
3824 fi
3825 fi
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3827 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3828 if ${ac_cv_prog_cc_c89+:} false; then :
3829 $as_echo_n "(cached) " >&6
3830 else
3831 ac_cv_prog_cc_c89=no
3832 ac_save_CC=$CC
3833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3834 /* end confdefs.h. */
3835 #include <stdarg.h>
3836 #include <stdio.h>
3837 struct stat;
3838 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3839 struct buf { int x; };
3840 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3841 static char *e (p, i)
3842 char **p;
3843 int i;
3844 {
3845 return p[i];
3846 }
3847 static char *f (char * (*g) (char **, int), char **p, ...)
3848 {
3849 char *s;
3850 va_list v;
3851 va_start (v,p);
3852 s = g (p, va_arg (v,int));
3853 va_end (v);
3854 return s;
3855 }
3856
3857 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3858 function prototypes and stuff, but not '\xHH' hex character constants.
3859 These don't provoke an error unfortunately, instead are silently treated
3860 as 'x'. The following induces an error, until -std is added to get
3861 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3862 array size at least. It's necessary to write '\x00'==0 to get something
3863 that's true only with -std. */
3864 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3865
3866 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3867 inside strings and character constants. */
3868 #define FOO(x) 'x'
3869 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3870
3871 int test (int i, double x);
3872 struct s1 {int (*f) (int a);};
3873 struct s2 {int (*f) (double a);};
3874 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3875 int argc;
3876 char **argv;
3877 int
3878 main ()
3879 {
3880 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3881 ;
3882 return 0;
3883 }
3884 _ACEOF
3885 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3886 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3887 do
3888 CC="$ac_save_CC $ac_arg"
3889 if ac_fn_c_try_compile "$LINENO"; then :
3890 ac_cv_prog_cc_c89=$ac_arg
3891 fi
3892 rm -f core conftest.err conftest.$ac_objext
3893 test "x$ac_cv_prog_cc_c89" != "xno" && break
3894 done
3895 rm -f conftest.$ac_ext
3896 CC=$ac_save_CC
3897
3898 fi
3899 # AC_CACHE_VAL
3900 case "x$ac_cv_prog_cc_c89" in
3901 x)
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3903 $as_echo "none needed" >&6; } ;;
3904 xno)
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3906 $as_echo "unsupported" >&6; } ;;
3907 *)
3908 CC="$CC $ac_cv_prog_cc_c89"
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3910 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3911 esac
3912 if test "x$ac_cv_prog_cc_c89" != xno; then :
3913
3914 fi
3915
3916 ac_ext=c
3917 ac_cpp='$CPP $CPPFLAGS'
3918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3921
3922 ac_ext=c
3923 ac_cpp='$CPP $CPPFLAGS'
3924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3928 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3929 if ${am_cv_prog_cc_c_o+:} false; then :
3930 $as_echo_n "(cached) " >&6
3931 else
3932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3933 /* end confdefs.h. */
3934
3935 int
3936 main ()
3937 {
3938
3939 ;
3940 return 0;
3941 }
3942 _ACEOF
3943 # Make sure it works both with $CC and with simple cc.
3944 # Following AC_PROG_CC_C_O, we do the test twice because some
3945 # compilers refuse to overwrite an existing .o file with -o,
3946 # though they will create one.
3947 am_cv_prog_cc_c_o=yes
3948 for am_i in 1 2; do
3949 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3950 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3951 ac_status=$?
3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); } \
3954 && test -f conftest2.$ac_objext; then
3955 : OK
3956 else
3957 am_cv_prog_cc_c_o=no
3958 break
3959 fi
3960 done
3961 rm -f core conftest*
3962 unset am_i
3963 fi
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3965 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3966 if test "$am_cv_prog_cc_c_o" != yes; then
3967 # Losing compiler, so override with the script.
3968 # FIXME: It is wrong to rewrite CC.
3969 # But if we don't then we get into trouble of one sort or another.
3970 # A longer-term fix would be to have automake use am__CC in this case,
3971 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3972 CC="$am_aux_dir/compile $CC"
3973 fi
3974 ac_ext=c
3975 ac_cpp='$CPP $CPPFLAGS'
3976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3979
3980
3981 # By default we simply use the C compiler to build assembly code.
3982
3983 test "${CCAS+set}" = set || CCAS=$CC
3984 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3985
3986
3987
3988 ac_ext=c
3989 ac_cpp='$CPP $CPPFLAGS'
3990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3993 if test -n "$ac_tool_prefix"; then
3994 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3995 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3997 $as_echo_n "checking for $ac_word... " >&6; }
3998 if ${ac_cv_prog_CC+:} false; then :
3999 $as_echo_n "(cached) " >&6
4000 else
4001 if test -n "$CC"; then
4002 ac_cv_prog_CC="$CC" # Let the user override the test.
4003 else
4004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4005 for as_dir in $PATH
4006 do
4007 IFS=$as_save_IFS
4008 test -z "$as_dir" && as_dir=.
4009 for ac_exec_ext in '' $ac_executable_extensions; do
4010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4011 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4013 break 2
4014 fi
4015 done
4016 done
4017 IFS=$as_save_IFS
4018
4019 fi
4020 fi
4021 CC=$ac_cv_prog_CC
4022 if test -n "$CC"; then
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4024 $as_echo "$CC" >&6; }
4025 else
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4027 $as_echo "no" >&6; }
4028 fi
4029
4030
4031 fi
4032 if test -z "$ac_cv_prog_CC"; then
4033 ac_ct_CC=$CC
4034 # Extract the first word of "gcc", so it can be a program name with args.
4035 set dummy gcc; ac_word=$2
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4037 $as_echo_n "checking for $ac_word... " >&6; }
4038 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4039 $as_echo_n "(cached) " >&6
4040 else
4041 if test -n "$ac_ct_CC"; then
4042 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4043 else
4044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4045 for as_dir in $PATH
4046 do
4047 IFS=$as_save_IFS
4048 test -z "$as_dir" && as_dir=.
4049 for ac_exec_ext in '' $ac_executable_extensions; do
4050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4051 ac_cv_prog_ac_ct_CC="gcc"
4052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4053 break 2
4054 fi
4055 done
4056 done
4057 IFS=$as_save_IFS
4058
4059 fi
4060 fi
4061 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4062 if test -n "$ac_ct_CC"; then
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4064 $as_echo "$ac_ct_CC" >&6; }
4065 else
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4067 $as_echo "no" >&6; }
4068 fi
4069
4070 if test "x$ac_ct_CC" = x; then
4071 CC=""
4072 else
4073 case $cross_compiling:$ac_tool_warned in
4074 yes:)
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4076 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4077 ac_tool_warned=yes ;;
4078 esac
4079 CC=$ac_ct_CC
4080 fi
4081 else
4082 CC="$ac_cv_prog_CC"
4083 fi
4084
4085 if test -z "$CC"; then
4086 if test -n "$ac_tool_prefix"; then
4087 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4088 set dummy ${ac_tool_prefix}cc; ac_word=$2
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4090 $as_echo_n "checking for $ac_word... " >&6; }
4091 if ${ac_cv_prog_CC+:} false; then :
4092 $as_echo_n "(cached) " >&6
4093 else
4094 if test -n "$CC"; then
4095 ac_cv_prog_CC="$CC" # Let the user override the test.
4096 else
4097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4098 for as_dir in $PATH
4099 do
4100 IFS=$as_save_IFS
4101 test -z "$as_dir" && as_dir=.
4102 for ac_exec_ext in '' $ac_executable_extensions; do
4103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4104 ac_cv_prog_CC="${ac_tool_prefix}cc"
4105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4106 break 2
4107 fi
4108 done
4109 done
4110 IFS=$as_save_IFS
4111
4112 fi
4113 fi
4114 CC=$ac_cv_prog_CC
4115 if test -n "$CC"; then
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4117 $as_echo "$CC" >&6; }
4118 else
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4120 $as_echo "no" >&6; }
4121 fi
4122
4123
4124 fi
4125 fi
4126 if test -z "$CC"; then
4127 # Extract the first word of "cc", so it can be a program name with args.
4128 set dummy cc; ac_word=$2
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4130 $as_echo_n "checking for $ac_word... " >&6; }
4131 if ${ac_cv_prog_CC+:} false; then :
4132 $as_echo_n "(cached) " >&6
4133 else
4134 if test -n "$CC"; then
4135 ac_cv_prog_CC="$CC" # Let the user override the test.
4136 else
4137 ac_prog_rejected=no
4138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139 for as_dir in $PATH
4140 do
4141 IFS=$as_save_IFS
4142 test -z "$as_dir" && as_dir=.
4143 for ac_exec_ext in '' $ac_executable_extensions; do
4144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4145 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4146 ac_prog_rejected=yes
4147 continue
4148 fi
4149 ac_cv_prog_CC="cc"
4150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4151 break 2
4152 fi
4153 done
4154 done
4155 IFS=$as_save_IFS
4156
4157 if test $ac_prog_rejected = yes; then
4158 # We found a bogon in the path, so make sure we never use it.
4159 set dummy $ac_cv_prog_CC
4160 shift
4161 if test $# != 0; then
4162 # We chose a different compiler from the bogus one.
4163 # However, it has the same basename, so the bogon will be chosen
4164 # first if we set CC to just the basename; use the full file name.
4165 shift
4166 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4167 fi
4168 fi
4169 fi
4170 fi
4171 CC=$ac_cv_prog_CC
4172 if test -n "$CC"; then
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4174 $as_echo "$CC" >&6; }
4175 else
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4177 $as_echo "no" >&6; }
4178 fi
4179
4180
4181 fi
4182 if test -z "$CC"; then
4183 if test -n "$ac_tool_prefix"; then
4184 for ac_prog in cl.exe
4185 do
4186 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4187 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4189 $as_echo_n "checking for $ac_word... " >&6; }
4190 if ${ac_cv_prog_CC+:} false; then :
4191 $as_echo_n "(cached) " >&6
4192 else
4193 if test -n "$CC"; then
4194 ac_cv_prog_CC="$CC" # Let the user override the test.
4195 else
4196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197 for as_dir in $PATH
4198 do
4199 IFS=$as_save_IFS
4200 test -z "$as_dir" && as_dir=.
4201 for ac_exec_ext in '' $ac_executable_extensions; do
4202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4203 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4205 break 2
4206 fi
4207 done
4208 done
4209 IFS=$as_save_IFS
4210
4211 fi
4212 fi
4213 CC=$ac_cv_prog_CC
4214 if test -n "$CC"; then
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4216 $as_echo "$CC" >&6; }
4217 else
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4219 $as_echo "no" >&6; }
4220 fi
4221
4222
4223 test -n "$CC" && break
4224 done
4225 fi
4226 if test -z "$CC"; then
4227 ac_ct_CC=$CC
4228 for ac_prog in cl.exe
4229 do
4230 # Extract the first word of "$ac_prog", so it can be a program name with args.
4231 set dummy $ac_prog; ac_word=$2
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4233 $as_echo_n "checking for $ac_word... " >&6; }
4234 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4235 $as_echo_n "(cached) " >&6
4236 else
4237 if test -n "$ac_ct_CC"; then
4238 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4239 else
4240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4241 for as_dir in $PATH
4242 do
4243 IFS=$as_save_IFS
4244 test -z "$as_dir" && as_dir=.
4245 for ac_exec_ext in '' $ac_executable_extensions; do
4246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4247 ac_cv_prog_ac_ct_CC="$ac_prog"
4248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4249 break 2
4250 fi
4251 done
4252 done
4253 IFS=$as_save_IFS
4254
4255 fi
4256 fi
4257 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4258 if test -n "$ac_ct_CC"; then
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4260 $as_echo "$ac_ct_CC" >&6; }
4261 else
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4263 $as_echo "no" >&6; }
4264 fi
4265
4266
4267 test -n "$ac_ct_CC" && break
4268 done
4269
4270 if test "x$ac_ct_CC" = x; then
4271 CC=""
4272 else
4273 case $cross_compiling:$ac_tool_warned in
4274 yes:)
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4276 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4277 ac_tool_warned=yes ;;
4278 esac
4279 CC=$ac_ct_CC
4280 fi
4281 fi
4282
4283 fi
4284
4285
4286 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4287 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4288 as_fn_error $? "no acceptable C compiler found in \$PATH
4289 See \`config.log' for more details" "$LINENO" 5; }
4290
4291 # Provide some information about the compiler.
4292 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4293 set X $ac_compile
4294 ac_compiler=$2
4295 for ac_option in --version -v -V -qversion; do
4296 { { ac_try="$ac_compiler $ac_option >&5"
4297 case "(($ac_try" in
4298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4299 *) ac_try_echo=$ac_try;;
4300 esac
4301 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4302 $as_echo "$ac_try_echo"; } >&5
4303 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4304 ac_status=$?
4305 if test -s conftest.err; then
4306 sed '10a\
4307 ... rest of stderr output deleted ...
4308 10q' conftest.err >conftest.er1
4309 cat conftest.er1 >&5
4310 fi
4311 rm -f conftest.er1 conftest.err
4312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4313 test $ac_status = 0; }
4314 done
4315
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4317 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4318 if ${ac_cv_c_compiler_gnu+:} false; then :
4319 $as_echo_n "(cached) " >&6
4320 else
4321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4322 /* end confdefs.h. */
4323
4324 int
4325 main ()
4326 {
4327 #ifndef __GNUC__
4328 choke me
4329 #endif
4330
4331 ;
4332 return 0;
4333 }
4334 _ACEOF
4335 if ac_fn_c_try_compile "$LINENO"; then :
4336 ac_compiler_gnu=yes
4337 else
4338 ac_compiler_gnu=no
4339 fi
4340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4341 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4342
4343 fi
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4345 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4346 if test $ac_compiler_gnu = yes; then
4347 GCC=yes
4348 else
4349 GCC=
4350 fi
4351 ac_test_CFLAGS=${CFLAGS+set}
4352 ac_save_CFLAGS=$CFLAGS
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4354 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4355 if ${ac_cv_prog_cc_g+:} false; then :
4356 $as_echo_n "(cached) " >&6
4357 else
4358 ac_save_c_werror_flag=$ac_c_werror_flag
4359 ac_c_werror_flag=yes
4360 ac_cv_prog_cc_g=no
4361 CFLAGS="-g"
4362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4363 /* end confdefs.h. */
4364
4365 int
4366 main ()
4367 {
4368
4369 ;
4370 return 0;
4371 }
4372 _ACEOF
4373 if ac_fn_c_try_compile "$LINENO"; then :
4374 ac_cv_prog_cc_g=yes
4375 else
4376 CFLAGS=""
4377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4378 /* end confdefs.h. */
4379
4380 int
4381 main ()
4382 {
4383
4384 ;
4385 return 0;
4386 }
4387 _ACEOF
4388 if ac_fn_c_try_compile "$LINENO"; then :
4389
4390 else
4391 ac_c_werror_flag=$ac_save_c_werror_flag
4392 CFLAGS="-g"
4393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4394 /* end confdefs.h. */
4395
4396 int
4397 main ()
4398 {
4399
4400 ;
4401 return 0;
4402 }
4403 _ACEOF
4404 if ac_fn_c_try_compile "$LINENO"; then :
4405 ac_cv_prog_cc_g=yes
4406 fi
4407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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 ac_c_werror_flag=$ac_save_c_werror_flag
4413 fi
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4415 $as_echo "$ac_cv_prog_cc_g" >&6; }
4416 if test "$ac_test_CFLAGS" = set; then
4417 CFLAGS=$ac_save_CFLAGS
4418 elif test $ac_cv_prog_cc_g = yes; then
4419 if test "$GCC" = yes; then
4420 CFLAGS="-g -O2"
4421 else
4422 CFLAGS="-g"
4423 fi
4424 else
4425 if test "$GCC" = yes; then
4426 CFLAGS="-O2"
4427 else
4428 CFLAGS=
4429 fi
4430 fi
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4432 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4433 if ${ac_cv_prog_cc_c89+:} false; then :
4434 $as_echo_n "(cached) " >&6
4435 else
4436 ac_cv_prog_cc_c89=no
4437 ac_save_CC=$CC
4438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4439 /* end confdefs.h. */
4440 #include <stdarg.h>
4441 #include <stdio.h>
4442 struct stat;
4443 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4444 struct buf { int x; };
4445 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4446 static char *e (p, i)
4447 char **p;
4448 int i;
4449 {
4450 return p[i];
4451 }
4452 static char *f (char * (*g) (char **, int), char **p, ...)
4453 {
4454 char *s;
4455 va_list v;
4456 va_start (v,p);
4457 s = g (p, va_arg (v,int));
4458 va_end (v);
4459 return s;
4460 }
4461
4462 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4463 function prototypes and stuff, but not '\xHH' hex character constants.
4464 These don't provoke an error unfortunately, instead are silently treated
4465 as 'x'. The following induces an error, until -std is added to get
4466 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4467 array size at least. It's necessary to write '\x00'==0 to get something
4468 that's true only with -std. */
4469 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4470
4471 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4472 inside strings and character constants. */
4473 #define FOO(x) 'x'
4474 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4475
4476 int test (int i, double x);
4477 struct s1 {int (*f) (int a);};
4478 struct s2 {int (*f) (double a);};
4479 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4480 int argc;
4481 char **argv;
4482 int
4483 main ()
4484 {
4485 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4486 ;
4487 return 0;
4488 }
4489 _ACEOF
4490 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4491 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4492 do
4493 CC="$ac_save_CC $ac_arg"
4494 if ac_fn_c_try_compile "$LINENO"; then :
4495 ac_cv_prog_cc_c89=$ac_arg
4496 fi
4497 rm -f core conftest.err conftest.$ac_objext
4498 test "x$ac_cv_prog_cc_c89" != "xno" && break
4499 done
4500 rm -f conftest.$ac_ext
4501 CC=$ac_save_CC
4502
4503 fi
4504 # AC_CACHE_VAL
4505 case "x$ac_cv_prog_cc_c89" in
4506 x)
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4508 $as_echo "none needed" >&6; } ;;
4509 xno)
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4511 $as_echo "unsupported" >&6; } ;;
4512 *)
4513 CC="$CC $ac_cv_prog_cc_c89"
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4515 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4516 esac
4517 if test "x$ac_cv_prog_cc_c89" != xno; then :
4518
4519 fi
4520
4521 ac_ext=c
4522 ac_cpp='$CPP $CPPFLAGS'
4523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4526
4527 ac_ext=c
4528 ac_cpp='$CPP $CPPFLAGS'
4529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4533 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4534 if ${am_cv_prog_cc_c_o+:} false; then :
4535 $as_echo_n "(cached) " >&6
4536 else
4537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4538 /* end confdefs.h. */
4539
4540 int
4541 main ()
4542 {
4543
4544 ;
4545 return 0;
4546 }
4547 _ACEOF
4548 # Make sure it works both with $CC and with simple cc.
4549 # Following AC_PROG_CC_C_O, we do the test twice because some
4550 # compilers refuse to overwrite an existing .o file with -o,
4551 # though they will create one.
4552 am_cv_prog_cc_c_o=yes
4553 for am_i in 1 2; do
4554 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4555 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4556 ac_status=$?
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); } \
4559 && test -f conftest2.$ac_objext; then
4560 : OK
4561 else
4562 am_cv_prog_cc_c_o=no
4563 break
4564 fi
4565 done
4566 rm -f core conftest*
4567 unset am_i
4568 fi
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4570 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4571 if test "$am_cv_prog_cc_c_o" != yes; then
4572 # Losing compiler, so override with the script.
4573 # FIXME: It is wrong to rewrite CC.
4574 # But if we don't then we get into trouble of one sort or another.
4575 # A longer-term fix would be to have automake use am__CC in this case,
4576 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4577 CC="$am_aux_dir/compile $CC"
4578 fi
4579 ac_ext=c
4580 ac_cpp='$CPP $CPPFLAGS'
4581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4584
4585
4586 ac_ext=d
4587 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
4588 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4589 ac_compiler_gnu=yes
4590 if test -n "$ac_tool_prefix"; then
4591 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
4592 set dummy ${ac_tool_prefix}gdc; ac_word=$2
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4594 $as_echo_n "checking for $ac_word... " >&6; }
4595 if ${ac_cv_prog_GDC+:} false; then :
4596 $as_echo_n "(cached) " >&6
4597 else
4598 if test -n "$GDC"; then
4599 ac_cv_prog_GDC="$GDC" # Let the user override the test.
4600 else
4601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4602 for as_dir in $PATH
4603 do
4604 IFS=$as_save_IFS
4605 test -z "$as_dir" && as_dir=.
4606 for ac_exec_ext in '' $ac_executable_extensions; do
4607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4608 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
4609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4610 break 2
4611 fi
4612 done
4613 done
4614 IFS=$as_save_IFS
4615
4616 fi
4617 fi
4618 GDC=$ac_cv_prog_GDC
4619 if test -n "$GDC"; then
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
4621 $as_echo "$GDC" >&6; }
4622 else
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4624 $as_echo "no" >&6; }
4625 fi
4626
4627
4628 fi
4629 if test -z "$ac_cv_prog_GDC"; then
4630 ac_ct_GDC=$GDC
4631 # Extract the first word of "gdc", so it can be a program name with args.
4632 set dummy gdc; ac_word=$2
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4634 $as_echo_n "checking for $ac_word... " >&6; }
4635 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
4636 $as_echo_n "(cached) " >&6
4637 else
4638 if test -n "$ac_ct_GDC"; then
4639 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
4640 else
4641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642 for as_dir in $PATH
4643 do
4644 IFS=$as_save_IFS
4645 test -z "$as_dir" && as_dir=.
4646 for ac_exec_ext in '' $ac_executable_extensions; do
4647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4648 ac_cv_prog_ac_ct_GDC="gdc"
4649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4650 break 2
4651 fi
4652 done
4653 done
4654 IFS=$as_save_IFS
4655
4656 fi
4657 fi
4658 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
4659 if test -n "$ac_ct_GDC"; then
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
4661 $as_echo "$ac_ct_GDC" >&6; }
4662 else
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4664 $as_echo "no" >&6; }
4665 fi
4666
4667 if test "x$ac_ct_GDC" = x; then
4668 GDC=""
4669 else
4670 case $cross_compiling:$ac_tool_warned in
4671 yes:)
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4673 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4674 ac_tool_warned=yes ;;
4675 esac
4676 GDC=$ac_ct_GDC
4677 fi
4678 else
4679 GDC="$ac_cv_prog_GDC"
4680 fi
4681
4682 if test -z "$GDC"; then
4683 if test -n "$ac_tool_prefix"; then
4684 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
4685 set dummy ${ac_tool_prefix}gdc; ac_word=$2
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4687 $as_echo_n "checking for $ac_word... " >&6; }
4688 if ${ac_cv_prog_GDC+:} false; then :
4689 $as_echo_n "(cached) " >&6
4690 else
4691 if test -n "$GDC"; then
4692 ac_cv_prog_GDC="$GDC" # Let the user override the test.
4693 else
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695 for as_dir in $PATH
4696 do
4697 IFS=$as_save_IFS
4698 test -z "$as_dir" && as_dir=.
4699 for ac_exec_ext in '' $ac_executable_extensions; do
4700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4701 ac_cv_prog_GDC="$ac_tool_prefix}gdc"
4702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4703 break 2
4704 fi
4705 done
4706 done
4707 IFS=$as_save_IFS
4708
4709 fi
4710 fi
4711 GDC=$ac_cv_prog_GDC
4712 if test -n "$GDC"; then
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
4714 $as_echo "$GDC" >&6; }
4715 else
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4717 $as_echo "no" >&6; }
4718 fi
4719
4720
4721 fi
4722 fi
4723 if test -z "$GDC"; then
4724 # Extract the first word of "gdc", so it can be a program name with args.
4725 set dummy gdc; ac_word=$2
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4727 $as_echo_n "checking for $ac_word... " >&6; }
4728 if ${ac_cv_prog_GDC+:} false; then :
4729 $as_echo_n "(cached) " >&6
4730 else
4731 if test -n "$GDC"; then
4732 ac_cv_prog_GDC="$GDC" # Let the user override the test.
4733 else
4734 ac_prog_rejected=no
4735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736 for as_dir in $PATH
4737 do
4738 IFS=$as_save_IFS
4739 test -z "$as_dir" && as_dir=.
4740 for ac_exec_ext in '' $ac_executable_extensions; do
4741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4742 if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
4743 ac_prog_rejected=yes
4744 continue
4745 fi
4746 ac_cv_prog_GDC="gdc"
4747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4748 break 2
4749 fi
4750 done
4751 done
4752 IFS=$as_save_IFS
4753
4754 if test $ac_prog_rejected = yes; then
4755 # We found a bogon in the path, so make sure we never use it.
4756 set dummy $ac_cv_prog_GDC
4757 shift
4758 if test $# != 0; then
4759 # We chose a different compiler from the bogus one.
4760 # However, it has the same basename, so the bogon will be chosen
4761 # first if we set GDC to just the basename; use the full file name.
4762 shift
4763 ac_cv_prog_GDC="$as_dir/$ac_word${1+' '}$@"
4764 fi
4765 fi
4766 fi
4767 fi
4768 GDC=$ac_cv_prog_GDC
4769 if test -n "$GDC"; then
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
4771 $as_echo "$GDC" >&6; }
4772 else
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4774 $as_echo "no" >&6; }
4775 fi
4776
4777
4778 fi
4779
4780
4781 # Provide some information about the compiler.
4782 $as_echo "$as_me:${as_lineno-$LINENO}: checking for D compiler version" >&5
4783 set X $ac_compile
4784 ac_compiler=$2
4785 { { ac_try="$ac_compiler --version >&5"
4786 case "(($ac_try" in
4787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4788 *) ac_try_echo=$ac_try;;
4789 esac
4790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4791 $as_echo "$ac_try_echo"; } >&5
4792 (eval "$ac_compiler --version >&5") 2>conftest.err
4793 ac_status=$?
4794 if test -s conftest.err; then
4795 sed '10a\
4796 ... rest of stderr output deleted ...
4797 10q' conftest.err >conftest.er1
4798 cat conftest.er1 >&5
4799 fi
4800 rm -f conftest.er1 conftest.err
4801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4802 test $ac_status = 0; }
4803 ac_ext=c
4804 ac_cpp='$CPP $CPPFLAGS'
4805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4808
4809
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for absolute libphobos source path" >&5
4811 $as_echo_n "checking for absolute libphobos source path... " >&6; }
4812 if ${phobos_cv_abs_srcdir+:} false; then :
4813 $as_echo_n "(cached) " >&6
4814 else
4815 phobos_cv_abs_srcdir=`cd $srcdir && pwd`
4816 fi
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $phobos_cv_abs_srcdir" >&5
4818 $as_echo "$phobos_cv_abs_srcdir" >&6; }
4819 if test -d "$phobos_cv_abs_srcdir"; then :
4820
4821 else
4822 as_fn_error $? "can't find absolute libphobos source path" "$LINENO" 5
4823 fi
4824
4825
4826
4827
4828 gdc_save_DFLAGS=$GDCFLAGS
4829 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
4830
4831 ac_ext=d
4832 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
4833 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4834 ac_compiler_gnu=yes
4835
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If $GDC can compile D sources" >&5
4837 $as_echo_n "checking If $GDC can compile D sources... " >&6; }
4838 cat > conftest.$ac_ext <<_ACEOF
4839 module mod;
4840
4841
4842 extern(C) int main() {
4843 return 0;
4844 }
4845 _ACEOF
4846 if ac_fn_d_try_compile "$LINENO"; then :
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4848 $as_echo "yes" >&6; }
4849 else
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4851 $as_echo "no" >&6; }
4852 as_fn_error $? "can't compile D sources!" "$LINENO" 5
4853 fi
4854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4855 ac_ext=c
4856 ac_cpp='$CPP $CPPFLAGS'
4857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4860
4861
4862 GDCFLAGS=$gdc_save_DFLAGS
4863
4864
4865
4866
4867
4868
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4870 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4871 # Check whether --enable-maintainer-mode was given.
4872 if test "${enable_maintainer_mode+set}" = set; then :
4873 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4874 else
4875 USE_MAINTAINER_MODE=no
4876 fi
4877
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4879 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4880 if test $USE_MAINTAINER_MODE = yes; then
4881 MAINTAINER_MODE_TRUE=
4882 MAINTAINER_MODE_FALSE='#'
4883 else
4884 MAINTAINER_MODE_TRUE='#'
4885 MAINTAINER_MODE_FALSE=
4886 fi
4887
4888 MAINT=$MAINTAINER_MODE_TRUE
4889
4890
4891 if test -n "$ac_tool_prefix"; then
4892 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4893 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4895 $as_echo_n "checking for $ac_word... " >&6; }
4896 if ${ac_cv_prog_RANLIB+:} false; then :
4897 $as_echo_n "(cached) " >&6
4898 else
4899 if test -n "$RANLIB"; then
4900 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4901 else
4902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903 for as_dir in $PATH
4904 do
4905 IFS=$as_save_IFS
4906 test -z "$as_dir" && as_dir=.
4907 for ac_exec_ext in '' $ac_executable_extensions; do
4908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4909 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4911 break 2
4912 fi
4913 done
4914 done
4915 IFS=$as_save_IFS
4916
4917 fi
4918 fi
4919 RANLIB=$ac_cv_prog_RANLIB
4920 if test -n "$RANLIB"; then
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4922 $as_echo "$RANLIB" >&6; }
4923 else
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4925 $as_echo "no" >&6; }
4926 fi
4927
4928
4929 fi
4930 if test -z "$ac_cv_prog_RANLIB"; then
4931 ac_ct_RANLIB=$RANLIB
4932 # Extract the first word of "ranlib", so it can be a program name with args.
4933 set dummy ranlib; ac_word=$2
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4935 $as_echo_n "checking for $ac_word... " >&6; }
4936 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4937 $as_echo_n "(cached) " >&6
4938 else
4939 if test -n "$ac_ct_RANLIB"; then
4940 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4941 else
4942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4943 for as_dir in $PATH
4944 do
4945 IFS=$as_save_IFS
4946 test -z "$as_dir" && as_dir=.
4947 for ac_exec_ext in '' $ac_executable_extensions; do
4948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4949 ac_cv_prog_ac_ct_RANLIB="ranlib"
4950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4951 break 2
4952 fi
4953 done
4954 done
4955 IFS=$as_save_IFS
4956
4957 fi
4958 fi
4959 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4960 if test -n "$ac_ct_RANLIB"; then
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4962 $as_echo "$ac_ct_RANLIB" >&6; }
4963 else
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4965 $as_echo "no" >&6; }
4966 fi
4967
4968 if test "x$ac_ct_RANLIB" = x; then
4969 RANLIB=":"
4970 else
4971 case $cross_compiling:$ac_tool_warned in
4972 yes:)
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4975 ac_tool_warned=yes ;;
4976 esac
4977 RANLIB=$ac_ct_RANLIB
4978 fi
4979 else
4980 RANLIB="$ac_cv_prog_RANLIB"
4981 fi
4982
4983
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4985 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4986 set x ${MAKE-make}
4987 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4988 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4989 $as_echo_n "(cached) " >&6
4990 else
4991 cat >conftest.make <<\_ACEOF
4992 SHELL = /bin/sh
4993 all:
4994 @echo '@@@%%%=$(MAKE)=@@@%%%'
4995 _ACEOF
4996 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4997 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4998 *@@@%%%=?*=@@@%%%*)
4999 eval ac_cv_prog_make_${ac_make}_set=yes;;
5000 *)
5001 eval ac_cv_prog_make_${ac_make}_set=no;;
5002 esac
5003 rm -f conftest.make
5004 fi
5005 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5007 $as_echo "yes" >&6; }
5008 SET_MAKE=
5009 else
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5011 $as_echo "no" >&6; }
5012 SET_MAKE="MAKE=${MAKE-make}"
5013 fi
5014
5015
5016 # This should be inherited in the recursive make, but ensure it is defined.
5017 test "$AR" || AR=ar
5018
5019
5020 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
5021
5022
5023
5024 # Enable libtool
5025 case `pwd` in
5026 *\ * | *\ *)
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5028 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5029 esac
5030
5031
5032
5033 macro_version='2.2.7a'
5034 macro_revision='1.3134'
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048 ltmain="$ac_aux_dir/ltmain.sh"
5049
5050 # Backslashify metacharacters that are still active within
5051 # double-quoted strings.
5052 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5053
5054 # Same as above, but do not quote variable references.
5055 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5056
5057 # Sed substitution to delay expansion of an escaped shell variable in a
5058 # double_quote_subst'ed string.
5059 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5060
5061 # Sed substitution to delay expansion of an escaped single quote.
5062 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5063
5064 # Sed substitution to avoid accidental globbing in evaled expressions
5065 no_glob_subst='s/\*/\\\*/g'
5066
5067 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5068 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5069 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5070
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5072 $as_echo_n "checking how to print strings... " >&6; }
5073 # Test print first, because it will be a builtin if present.
5074 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5075 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5076 ECHO='print -r --'
5077 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5078 ECHO='printf %s\n'
5079 else
5080 # Use this function as a fallback that always works.
5081 func_fallback_echo ()
5082 {
5083 eval 'cat <<_LTECHO_EOF
5084 $1
5085 _LTECHO_EOF'
5086 }
5087 ECHO='func_fallback_echo'
5088 fi
5089
5090 # func_echo_all arg...
5091 # Invoke $ECHO with all args, space-separated.
5092 func_echo_all ()
5093 {
5094 $ECHO ""
5095 }
5096
5097 case "$ECHO" in
5098 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5099 $as_echo "printf" >&6; } ;;
5100 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5101 $as_echo "print -r" >&6; } ;;
5102 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5103 $as_echo "cat" >&6; } ;;
5104 esac
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5120 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5121 if ${ac_cv_path_SED+:} false; then :
5122 $as_echo_n "(cached) " >&6
5123 else
5124 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5125 for ac_i in 1 2 3 4 5 6 7; do
5126 ac_script="$ac_script$as_nl$ac_script"
5127 done
5128 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5129 { ac_script=; unset ac_script;}
5130 if test -z "$SED"; then
5131 ac_path_SED_found=false
5132 # Loop through the user's path and test for each of PROGNAME-LIST
5133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5134 for as_dir in $PATH
5135 do
5136 IFS=$as_save_IFS
5137 test -z "$as_dir" && as_dir=.
5138 for ac_prog in sed gsed; do
5139 for ac_exec_ext in '' $ac_executable_extensions; do
5140 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5141 as_fn_executable_p "$ac_path_SED" || continue
5142 # Check for GNU ac_path_SED and select it if it is found.
5143 # Check for GNU $ac_path_SED
5144 case `"$ac_path_SED" --version 2>&1` in
5145 *GNU*)
5146 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5147 *)
5148 ac_count=0
5149 $as_echo_n 0123456789 >"conftest.in"
5150 while :
5151 do
5152 cat "conftest.in" "conftest.in" >"conftest.tmp"
5153 mv "conftest.tmp" "conftest.in"
5154 cp "conftest.in" "conftest.nl"
5155 $as_echo '' >> "conftest.nl"
5156 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5157 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5158 as_fn_arith $ac_count + 1 && ac_count=$as_val
5159 if test $ac_count -gt ${ac_path_SED_max-0}; then
5160 # Best one so far, save it but keep looking for a better one
5161 ac_cv_path_SED="$ac_path_SED"
5162 ac_path_SED_max=$ac_count
5163 fi
5164 # 10*(2^10) chars as input seems more than enough
5165 test $ac_count -gt 10 && break
5166 done
5167 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5168 esac
5169
5170 $ac_path_SED_found && break 3
5171 done
5172 done
5173 done
5174 IFS=$as_save_IFS
5175 if test -z "$ac_cv_path_SED"; then
5176 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5177 fi
5178 else
5179 ac_cv_path_SED=$SED
5180 fi
5181
5182 fi
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5184 $as_echo "$ac_cv_path_SED" >&6; }
5185 SED="$ac_cv_path_SED"
5186 rm -f conftest.sed
5187
5188 test -z "$SED" && SED=sed
5189 Xsed="$SED -e 1s/^X//"
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5202 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5203 if ${ac_cv_path_GREP+:} false; then :
5204 $as_echo_n "(cached) " >&6
5205 else
5206 if test -z "$GREP"; then
5207 ac_path_GREP_found=false
5208 # Loop through the user's path and test for each of PROGNAME-LIST
5209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5211 do
5212 IFS=$as_save_IFS
5213 test -z "$as_dir" && as_dir=.
5214 for ac_prog in grep ggrep; do
5215 for ac_exec_ext in '' $ac_executable_extensions; do
5216 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5217 as_fn_executable_p "$ac_path_GREP" || continue
5218 # Check for GNU ac_path_GREP and select it if it is found.
5219 # Check for GNU $ac_path_GREP
5220 case `"$ac_path_GREP" --version 2>&1` in
5221 *GNU*)
5222 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5223 *)
5224 ac_count=0
5225 $as_echo_n 0123456789 >"conftest.in"
5226 while :
5227 do
5228 cat "conftest.in" "conftest.in" >"conftest.tmp"
5229 mv "conftest.tmp" "conftest.in"
5230 cp "conftest.in" "conftest.nl"
5231 $as_echo 'GREP' >> "conftest.nl"
5232 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5233 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5234 as_fn_arith $ac_count + 1 && ac_count=$as_val
5235 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5236 # Best one so far, save it but keep looking for a better one
5237 ac_cv_path_GREP="$ac_path_GREP"
5238 ac_path_GREP_max=$ac_count
5239 fi
5240 # 10*(2^10) chars as input seems more than enough
5241 test $ac_count -gt 10 && break
5242 done
5243 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5244 esac
5245
5246 $ac_path_GREP_found && break 3
5247 done
5248 done
5249 done
5250 IFS=$as_save_IFS
5251 if test -z "$ac_cv_path_GREP"; then
5252 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5253 fi
5254 else
5255 ac_cv_path_GREP=$GREP
5256 fi
5257
5258 fi
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5260 $as_echo "$ac_cv_path_GREP" >&6; }
5261 GREP="$ac_cv_path_GREP"
5262
5263
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5265 $as_echo_n "checking for egrep... " >&6; }
5266 if ${ac_cv_path_EGREP+:} false; then :
5267 $as_echo_n "(cached) " >&6
5268 else
5269 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5270 then ac_cv_path_EGREP="$GREP -E"
5271 else
5272 if test -z "$EGREP"; then
5273 ac_path_EGREP_found=false
5274 # Loop through the user's path and test for each of PROGNAME-LIST
5275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5276 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5277 do
5278 IFS=$as_save_IFS
5279 test -z "$as_dir" && as_dir=.
5280 for ac_prog in egrep; do
5281 for ac_exec_ext in '' $ac_executable_extensions; do
5282 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5283 as_fn_executable_p "$ac_path_EGREP" || continue
5284 # Check for GNU ac_path_EGREP and select it if it is found.
5285 # Check for GNU $ac_path_EGREP
5286 case `"$ac_path_EGREP" --version 2>&1` in
5287 *GNU*)
5288 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5289 *)
5290 ac_count=0
5291 $as_echo_n 0123456789 >"conftest.in"
5292 while :
5293 do
5294 cat "conftest.in" "conftest.in" >"conftest.tmp"
5295 mv "conftest.tmp" "conftest.in"
5296 cp "conftest.in" "conftest.nl"
5297 $as_echo 'EGREP' >> "conftest.nl"
5298 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5299 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5300 as_fn_arith $ac_count + 1 && ac_count=$as_val
5301 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5302 # Best one so far, save it but keep looking for a better one
5303 ac_cv_path_EGREP="$ac_path_EGREP"
5304 ac_path_EGREP_max=$ac_count
5305 fi
5306 # 10*(2^10) chars as input seems more than enough
5307 test $ac_count -gt 10 && break
5308 done
5309 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5310 esac
5311
5312 $ac_path_EGREP_found && break 3
5313 done
5314 done
5315 done
5316 IFS=$as_save_IFS
5317 if test -z "$ac_cv_path_EGREP"; then
5318 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5319 fi
5320 else
5321 ac_cv_path_EGREP=$EGREP
5322 fi
5323
5324 fi
5325 fi
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5327 $as_echo "$ac_cv_path_EGREP" >&6; }
5328 EGREP="$ac_cv_path_EGREP"
5329
5330
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5332 $as_echo_n "checking for fgrep... " >&6; }
5333 if ${ac_cv_path_FGREP+:} false; then :
5334 $as_echo_n "(cached) " >&6
5335 else
5336 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5337 then ac_cv_path_FGREP="$GREP -F"
5338 else
5339 if test -z "$FGREP"; then
5340 ac_path_FGREP_found=false
5341 # Loop through the user's path and test for each of PROGNAME-LIST
5342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5343 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5344 do
5345 IFS=$as_save_IFS
5346 test -z "$as_dir" && as_dir=.
5347 for ac_prog in fgrep; do
5348 for ac_exec_ext in '' $ac_executable_extensions; do
5349 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5350 as_fn_executable_p "$ac_path_FGREP" || continue
5351 # Check for GNU ac_path_FGREP and select it if it is found.
5352 # Check for GNU $ac_path_FGREP
5353 case `"$ac_path_FGREP" --version 2>&1` in
5354 *GNU*)
5355 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5356 *)
5357 ac_count=0
5358 $as_echo_n 0123456789 >"conftest.in"
5359 while :
5360 do
5361 cat "conftest.in" "conftest.in" >"conftest.tmp"
5362 mv "conftest.tmp" "conftest.in"
5363 cp "conftest.in" "conftest.nl"
5364 $as_echo 'FGREP' >> "conftest.nl"
5365 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5366 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5367 as_fn_arith $ac_count + 1 && ac_count=$as_val
5368 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5369 # Best one so far, save it but keep looking for a better one
5370 ac_cv_path_FGREP="$ac_path_FGREP"
5371 ac_path_FGREP_max=$ac_count
5372 fi
5373 # 10*(2^10) chars as input seems more than enough
5374 test $ac_count -gt 10 && break
5375 done
5376 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5377 esac
5378
5379 $ac_path_FGREP_found && break 3
5380 done
5381 done
5382 done
5383 IFS=$as_save_IFS
5384 if test -z "$ac_cv_path_FGREP"; then
5385 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5386 fi
5387 else
5388 ac_cv_path_FGREP=$FGREP
5389 fi
5390
5391 fi
5392 fi
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5394 $as_echo "$ac_cv_path_FGREP" >&6; }
5395 FGREP="$ac_cv_path_FGREP"
5396
5397
5398 test -z "$GREP" && GREP=grep
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418 # Check whether --with-gnu-ld was given.
5419 if test "${with_gnu_ld+set}" = set; then :
5420 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5421 else
5422 with_gnu_ld=no
5423 fi
5424
5425 ac_prog=ld
5426 if test "$GCC" = yes; then
5427 # Check if gcc -print-prog-name=ld gives a path.
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5429 $as_echo_n "checking for ld used by $CC... " >&6; }
5430 case $host in
5431 *-*-mingw*)
5432 # gcc leaves a trailing carriage return which upsets mingw
5433 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5434 *)
5435 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5436 esac
5437 case $ac_prog in
5438 # Accept absolute paths.
5439 [\\/]* | ?:[\\/]*)
5440 re_direlt='/[^/][^/]*/\.\./'
5441 # Canonicalize the pathname of ld
5442 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5443 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5444 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5445 done
5446 test -z "$LD" && LD="$ac_prog"
5447 ;;
5448 "")
5449 # If it fails, then pretend we aren't using GCC.
5450 ac_prog=ld
5451 ;;
5452 *)
5453 # If it is relative, then search for the first ld in PATH.
5454 with_gnu_ld=unknown
5455 ;;
5456 esac
5457 elif test "$with_gnu_ld" = yes; then
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5459 $as_echo_n "checking for GNU ld... " >&6; }
5460 else
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5462 $as_echo_n "checking for non-GNU ld... " >&6; }
5463 fi
5464 if ${lt_cv_path_LD+:} false; then :
5465 $as_echo_n "(cached) " >&6
5466 else
5467 if test -z "$LD"; then
5468 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5469 for ac_dir in $PATH; do
5470 IFS="$lt_save_ifs"
5471 test -z "$ac_dir" && ac_dir=.
5472 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5473 lt_cv_path_LD="$ac_dir/$ac_prog"
5474 # Check to see if the program is GNU ld. I'd rather use --version,
5475 # but apparently some variants of GNU ld only accept -v.
5476 # Break only if it was the GNU/non-GNU ld that we prefer.
5477 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5478 *GNU* | *'with BFD'*)
5479 test "$with_gnu_ld" != no && break
5480 ;;
5481 *)
5482 test "$with_gnu_ld" != yes && break
5483 ;;
5484 esac
5485 fi
5486 done
5487 IFS="$lt_save_ifs"
5488 else
5489 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5490 fi
5491 fi
5492
5493 LD="$lt_cv_path_LD"
5494 if test -n "$LD"; then
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5496 $as_echo "$LD" >&6; }
5497 else
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5499 $as_echo "no" >&6; }
5500 fi
5501 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5503 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5504 if ${lt_cv_prog_gnu_ld+:} false; then :
5505 $as_echo_n "(cached) " >&6
5506 else
5507 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5508 case `$LD -v 2>&1 </dev/null` in
5509 *GNU* | *'with BFD'*)
5510 lt_cv_prog_gnu_ld=yes
5511 ;;
5512 *)
5513 lt_cv_prog_gnu_ld=no
5514 ;;
5515 esac
5516 fi
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5518 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5519 with_gnu_ld=$lt_cv_prog_gnu_ld
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5530 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5531 if ${lt_cv_path_NM+:} false; then :
5532 $as_echo_n "(cached) " >&6
5533 else
5534 if test -n "$NM"; then
5535 # Let the user override the test.
5536 lt_cv_path_NM="$NM"
5537 else
5538 lt_nm_to_check="${ac_tool_prefix}nm"
5539 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5540 lt_nm_to_check="$lt_nm_to_check nm"
5541 fi
5542 for lt_tmp_nm in $lt_nm_to_check; do
5543 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5544 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5545 IFS="$lt_save_ifs"
5546 test -z "$ac_dir" && ac_dir=.
5547 tmp_nm="$ac_dir/$lt_tmp_nm"
5548 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5549 # Check to see if the nm accepts a BSD-compat flag.
5550 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5551 # nm: unknown option "B" ignored
5552 # Tru64's nm complains that /dev/null is an invalid object file
5553 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5554 */dev/null* | *'Invalid file or object type'*)
5555 lt_cv_path_NM="$tmp_nm -B"
5556 break
5557 ;;
5558 *)
5559 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5560 */dev/null*)
5561 lt_cv_path_NM="$tmp_nm -p"
5562 break
5563 ;;
5564 *)
5565 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5566 continue # so that we can try to find one that supports BSD flags
5567 ;;
5568 esac
5569 ;;
5570 esac
5571 fi
5572 done
5573 IFS="$lt_save_ifs"
5574 done
5575 : ${lt_cv_path_NM=no}
5576 fi
5577 fi
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5579 $as_echo "$lt_cv_path_NM" >&6; }
5580 if test "$lt_cv_path_NM" != "no"; then
5581 NM="$lt_cv_path_NM"
5582 else
5583 # Didn't find any BSD compatible name lister, look for dumpbin.
5584 if test -n "$DUMPBIN"; then :
5585 # Let the user override the test.
5586 else
5587 if test -n "$ac_tool_prefix"; then
5588 for ac_prog in dumpbin "link -dump"
5589 do
5590 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5591 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5593 $as_echo_n "checking for $ac_word... " >&6; }
5594 if ${ac_cv_prog_DUMPBIN+:} false; then :
5595 $as_echo_n "(cached) " >&6
5596 else
5597 if test -n "$DUMPBIN"; then
5598 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5599 else
5600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5601 for as_dir in $PATH
5602 do
5603 IFS=$as_save_IFS
5604 test -z "$as_dir" && as_dir=.
5605 for ac_exec_ext in '' $ac_executable_extensions; do
5606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5607 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5609 break 2
5610 fi
5611 done
5612 done
5613 IFS=$as_save_IFS
5614
5615 fi
5616 fi
5617 DUMPBIN=$ac_cv_prog_DUMPBIN
5618 if test -n "$DUMPBIN"; then
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5620 $as_echo "$DUMPBIN" >&6; }
5621 else
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5623 $as_echo "no" >&6; }
5624 fi
5625
5626
5627 test -n "$DUMPBIN" && break
5628 done
5629 fi
5630 if test -z "$DUMPBIN"; then
5631 ac_ct_DUMPBIN=$DUMPBIN
5632 for ac_prog in dumpbin "link -dump"
5633 do
5634 # Extract the first word of "$ac_prog", so it can be a program name with args.
5635 set dummy $ac_prog; ac_word=$2
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5637 $as_echo_n "checking for $ac_word... " >&6; }
5638 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5639 $as_echo_n "(cached) " >&6
5640 else
5641 if test -n "$ac_ct_DUMPBIN"; then
5642 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5643 else
5644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5645 for as_dir in $PATH
5646 do
5647 IFS=$as_save_IFS
5648 test -z "$as_dir" && as_dir=.
5649 for ac_exec_ext in '' $ac_executable_extensions; do
5650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5651 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5653 break 2
5654 fi
5655 done
5656 done
5657 IFS=$as_save_IFS
5658
5659 fi
5660 fi
5661 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5662 if test -n "$ac_ct_DUMPBIN"; then
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5664 $as_echo "$ac_ct_DUMPBIN" >&6; }
5665 else
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5667 $as_echo "no" >&6; }
5668 fi
5669
5670
5671 test -n "$ac_ct_DUMPBIN" && break
5672 done
5673
5674 if test "x$ac_ct_DUMPBIN" = x; then
5675 DUMPBIN=":"
5676 else
5677 case $cross_compiling:$ac_tool_warned in
5678 yes:)
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5680 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5681 ac_tool_warned=yes ;;
5682 esac
5683 DUMPBIN=$ac_ct_DUMPBIN
5684 fi
5685 fi
5686
5687 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5688 *COFF*)
5689 DUMPBIN="$DUMPBIN -symbols"
5690 ;;
5691 *)
5692 DUMPBIN=:
5693 ;;
5694 esac
5695 fi
5696
5697 if test "$DUMPBIN" != ":"; then
5698 NM="$DUMPBIN"
5699 fi
5700 fi
5701 test -z "$NM" && NM=nm
5702
5703
5704
5705
5706
5707
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5709 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5710 if ${lt_cv_nm_interface+:} false; then :
5711 $as_echo_n "(cached) " >&6
5712 else
5713 lt_cv_nm_interface="BSD nm"
5714 echo "int some_variable = 0;" > conftest.$ac_ext
5715 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5716 (eval "$ac_compile" 2>conftest.err)
5717 cat conftest.err >&5
5718 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5719 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5720 cat conftest.err >&5
5721 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5722 cat conftest.out >&5
5723 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5724 lt_cv_nm_interface="MS dumpbin"
5725 fi
5726 rm -f conftest*
5727 fi
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5729 $as_echo "$lt_cv_nm_interface" >&6; }
5730
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5732 $as_echo_n "checking whether ln -s works... " >&6; }
5733 LN_S=$as_ln_s
5734 if test "$LN_S" = "ln -s"; then
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5736 $as_echo "yes" >&6; }
5737 else
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5739 $as_echo "no, using $LN_S" >&6; }
5740 fi
5741
5742 # find the maximum length of command line arguments
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5744 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5745 if ${lt_cv_sys_max_cmd_len+:} false; then :
5746 $as_echo_n "(cached) " >&6
5747 else
5748 i=0
5749 teststring="ABCD"
5750
5751 case $build_os in
5752 msdosdjgpp*)
5753 # On DJGPP, this test can blow up pretty badly due to problems in libc
5754 # (any single argument exceeding 2000 bytes causes a buffer overrun
5755 # during glob expansion). Even if it were fixed, the result of this
5756 # check would be larger than it should be.
5757 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5758 ;;
5759
5760 gnu*)
5761 # Under GNU Hurd, this test is not required because there is
5762 # no limit to the length of command line arguments.
5763 # Libtool will interpret -1 as no limit whatsoever
5764 lt_cv_sys_max_cmd_len=-1;
5765 ;;
5766
5767 cygwin* | mingw* | cegcc*)
5768 # On Win9x/ME, this test blows up -- it succeeds, but takes
5769 # about 5 minutes as the teststring grows exponentially.
5770 # Worse, since 9x/ME are not pre-emptively multitasking,
5771 # you end up with a "frozen" computer, even though with patience
5772 # the test eventually succeeds (with a max line length of 256k).
5773 # Instead, let's just punt: use the minimum linelength reported by
5774 # all of the supported platforms: 8192 (on NT/2K/XP).
5775 lt_cv_sys_max_cmd_len=8192;
5776 ;;
5777
5778 mint*)
5779 # On MiNT this can take a long time and run out of memory.
5780 lt_cv_sys_max_cmd_len=8192;
5781 ;;
5782
5783 amigaos*)
5784 # On AmigaOS with pdksh, this test takes hours, literally.
5785 # So we just punt and use a minimum line length of 8192.
5786 lt_cv_sys_max_cmd_len=8192;
5787 ;;
5788
5789 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5790 # This has been around since 386BSD, at least. Likely further.
5791 if test -x /sbin/sysctl; then
5792 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5793 elif test -x /usr/sbin/sysctl; then
5794 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5795 else
5796 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5797 fi
5798 # And add a safety zone
5799 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5800 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5801 ;;
5802
5803 interix*)
5804 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5805 lt_cv_sys_max_cmd_len=196608
5806 ;;
5807
5808 osf*)
5809 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5810 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5811 # nice to cause kernel panics so lets avoid the loop below.
5812 # First set a reasonable default.
5813 lt_cv_sys_max_cmd_len=16384
5814 #
5815 if test -x /sbin/sysconfig; then
5816 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5817 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5818 esac
5819 fi
5820 ;;
5821 sco3.2v5*)
5822 lt_cv_sys_max_cmd_len=102400
5823 ;;
5824 sysv5* | sco5v6* | sysv4.2uw2*)
5825 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5826 if test -n "$kargmax"; then
5827 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5828 else
5829 lt_cv_sys_max_cmd_len=32768
5830 fi
5831 ;;
5832 *)
5833 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5834 if test -n "$lt_cv_sys_max_cmd_len"; then
5835 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5836 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5837 else
5838 # Make teststring a little bigger before we do anything with it.
5839 # a 1K string should be a reasonable start.
5840 for i in 1 2 3 4 5 6 7 8 ; do
5841 teststring=$teststring$teststring
5842 done
5843 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5844 # If test is not a shell built-in, we'll probably end up computing a
5845 # maximum length that is only half of the actual maximum length, but
5846 # we can't tell.
5847 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5848 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5849 test $i != 17 # 1/2 MB should be enough
5850 do
5851 i=`expr $i + 1`
5852 teststring=$teststring$teststring
5853 done
5854 # Only check the string length outside the loop.
5855 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5856 teststring=
5857 # Add a significant safety factor because C++ compilers can tack on
5858 # massive amounts of additional arguments before passing them to the
5859 # linker. It appears as though 1/2 is a usable value.
5860 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5861 fi
5862 ;;
5863 esac
5864
5865 fi
5866
5867 if test -n $lt_cv_sys_max_cmd_len ; then
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5869 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5870 else
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5872 $as_echo "none" >&6; }
5873 fi
5874 max_cmd_len=$lt_cv_sys_max_cmd_len
5875
5876
5877
5878
5879
5880
5881 : ${CP="cp -f"}
5882 : ${MV="mv -f"}
5883 : ${RM="rm -f"}
5884
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5886 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5887 # Try some XSI features
5888 xsi_shell=no
5889 ( _lt_dummy="a/b/c"
5890 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5891 = c,a/b,, \
5892 && eval 'test $(( 1 + 1 )) -eq 2 \
5893 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5894 && xsi_shell=yes
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5896 $as_echo "$xsi_shell" >&6; }
5897
5898
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5900 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5901 lt_shell_append=no
5902 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5903 >/dev/null 2>&1 \
5904 && lt_shell_append=yes
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5906 $as_echo "$lt_shell_append" >&6; }
5907
5908
5909 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5910 lt_unset=unset
5911 else
5912 lt_unset=false
5913 fi
5914
5915
5916
5917
5918
5919 # test EBCDIC or ASCII
5920 case `echo X|tr X '\101'` in
5921 A) # ASCII based system
5922 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5923 lt_SP2NL='tr \040 \012'
5924 lt_NL2SP='tr \015\012 \040\040'
5925 ;;
5926 *) # EBCDIC based system
5927 lt_SP2NL='tr \100 \n'
5928 lt_NL2SP='tr \r\n \100\100'
5929 ;;
5930 esac
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5941 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5942 if ${lt_cv_ld_reload_flag+:} false; then :
5943 $as_echo_n "(cached) " >&6
5944 else
5945 lt_cv_ld_reload_flag='-r'
5946 fi
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5948 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5949 reload_flag=$lt_cv_ld_reload_flag
5950 case $reload_flag in
5951 "" | " "*) ;;
5952 *) reload_flag=" $reload_flag" ;;
5953 esac
5954 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5955 case $host_os in
5956 darwin*)
5957 if test "$GCC" = yes; then
5958 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5959 else
5960 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5961 fi
5962 ;;
5963 esac
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973 if test -n "$ac_tool_prefix"; then
5974 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5975 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5977 $as_echo_n "checking for $ac_word... " >&6; }
5978 if ${ac_cv_prog_OBJDUMP+:} false; then :
5979 $as_echo_n "(cached) " >&6
5980 else
5981 if test -n "$OBJDUMP"; then
5982 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5983 else
5984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5985 for as_dir in $PATH
5986 do
5987 IFS=$as_save_IFS
5988 test -z "$as_dir" && as_dir=.
5989 for ac_exec_ext in '' $ac_executable_extensions; do
5990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5991 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5993 break 2
5994 fi
5995 done
5996 done
5997 IFS=$as_save_IFS
5998
5999 fi
6000 fi
6001 OBJDUMP=$ac_cv_prog_OBJDUMP
6002 if test -n "$OBJDUMP"; then
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6004 $as_echo "$OBJDUMP" >&6; }
6005 else
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6007 $as_echo "no" >&6; }
6008 fi
6009
6010
6011 fi
6012 if test -z "$ac_cv_prog_OBJDUMP"; then
6013 ac_ct_OBJDUMP=$OBJDUMP
6014 # Extract the first word of "objdump", so it can be a program name with args.
6015 set dummy objdump; ac_word=$2
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6017 $as_echo_n "checking for $ac_word... " >&6; }
6018 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6019 $as_echo_n "(cached) " >&6
6020 else
6021 if test -n "$ac_ct_OBJDUMP"; then
6022 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6023 else
6024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6025 for as_dir in $PATH
6026 do
6027 IFS=$as_save_IFS
6028 test -z "$as_dir" && as_dir=.
6029 for ac_exec_ext in '' $ac_executable_extensions; do
6030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6031 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6033 break 2
6034 fi
6035 done
6036 done
6037 IFS=$as_save_IFS
6038
6039 fi
6040 fi
6041 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6042 if test -n "$ac_ct_OBJDUMP"; then
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6044 $as_echo "$ac_ct_OBJDUMP" >&6; }
6045 else
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6047 $as_echo "no" >&6; }
6048 fi
6049
6050 if test "x$ac_ct_OBJDUMP" = x; then
6051 OBJDUMP="false"
6052 else
6053 case $cross_compiling:$ac_tool_warned in
6054 yes:)
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6056 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6057 ac_tool_warned=yes ;;
6058 esac
6059 OBJDUMP=$ac_ct_OBJDUMP
6060 fi
6061 else
6062 OBJDUMP="$ac_cv_prog_OBJDUMP"
6063 fi
6064
6065 test -z "$OBJDUMP" && OBJDUMP=objdump
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6076 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6077 if ${lt_cv_deplibs_check_method+:} false; then :
6078 $as_echo_n "(cached) " >&6
6079 else
6080 lt_cv_file_magic_cmd='$MAGIC_CMD'
6081 lt_cv_file_magic_test_file=
6082 lt_cv_deplibs_check_method='unknown'
6083 # Need to set the preceding variable on all platforms that support
6084 # interlibrary dependencies.
6085 # 'none' -- dependencies not supported.
6086 # `unknown' -- same as none, but documents that we really don't know.
6087 # 'pass_all' -- all dependencies passed with no checks.
6088 # 'test_compile' -- check by making test program.
6089 # 'file_magic [[regex]]' -- check by looking for files in library path
6090 # which responds to the $file_magic_cmd with a given extended regex.
6091 # If you have `file' or equivalent on your system and you're not sure
6092 # whether `pass_all' will *always* work, you probably want this one.
6093
6094 case $host_os in
6095 aix[4-9]*)
6096 lt_cv_deplibs_check_method=pass_all
6097 ;;
6098
6099 beos*)
6100 lt_cv_deplibs_check_method=pass_all
6101 ;;
6102
6103 bsdi[45]*)
6104 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6105 lt_cv_file_magic_cmd='/usr/bin/file -L'
6106 lt_cv_file_magic_test_file=/shlib/libc.so
6107 ;;
6108
6109 cygwin*)
6110 # func_win32_libid is a shell function defined in ltmain.sh
6111 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6112 lt_cv_file_magic_cmd='func_win32_libid'
6113 ;;
6114
6115 mingw* | pw32*)
6116 # Base MSYS/MinGW do not provide the 'file' command needed by
6117 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6118 # unless we find 'file', for example because we are cross-compiling.
6119 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6120 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6121 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6122 lt_cv_file_magic_cmd='func_win32_libid'
6123 else
6124 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6125 lt_cv_file_magic_cmd='$OBJDUMP -f'
6126 fi
6127 ;;
6128
6129 cegcc*)
6130 # use the weaker test based on 'objdump'. See mingw*.
6131 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6132 lt_cv_file_magic_cmd='$OBJDUMP -f'
6133 ;;
6134
6135 darwin* | rhapsody*)
6136 lt_cv_deplibs_check_method=pass_all
6137 ;;
6138
6139 freebsd* | dragonfly*)
6140 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6141 case $host_cpu in
6142 i*86 )
6143 # Not sure whether the presence of OpenBSD here was a mistake.
6144 # Let's accept both of them until this is cleared up.
6145 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6146 lt_cv_file_magic_cmd=/usr/bin/file
6147 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6148 ;;
6149 esac
6150 else
6151 lt_cv_deplibs_check_method=pass_all
6152 fi
6153 ;;
6154
6155 gnu*)
6156 lt_cv_deplibs_check_method=pass_all
6157 ;;
6158
6159 haiku*)
6160 lt_cv_deplibs_check_method=pass_all
6161 ;;
6162
6163 hpux10.20* | hpux11*)
6164 lt_cv_file_magic_cmd=/usr/bin/file
6165 case $host_cpu in
6166 ia64*)
6167 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6168 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6169 ;;
6170 hppa*64*)
6171 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]'
6172 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6173 ;;
6174 *)
6175 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6176 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6177 ;;
6178 esac
6179 ;;
6180
6181 interix[3-9]*)
6182 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6183 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6184 ;;
6185
6186 irix5* | irix6* | nonstopux*)
6187 case $LD in
6188 *-32|*"-32 ") libmagic=32-bit;;
6189 *-n32|*"-n32 ") libmagic=N32;;
6190 *-64|*"-64 ") libmagic=64-bit;;
6191 *) libmagic=never-match;;
6192 esac
6193 lt_cv_deplibs_check_method=pass_all
6194 ;;
6195
6196 # This must be Linux ELF.
6197 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6198 lt_cv_deplibs_check_method=pass_all
6199 ;;
6200
6201 netbsd*)
6202 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6203 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6204 else
6205 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6206 fi
6207 ;;
6208
6209 newos6*)
6210 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6211 lt_cv_file_magic_cmd=/usr/bin/file
6212 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6213 ;;
6214
6215 *nto* | *qnx*)
6216 lt_cv_deplibs_check_method=pass_all
6217 ;;
6218
6219 openbsd*)
6220 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6221 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6222 else
6223 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6224 fi
6225 ;;
6226
6227 osf3* | osf4* | osf5*)
6228 lt_cv_deplibs_check_method=pass_all
6229 ;;
6230
6231 rdos*)
6232 lt_cv_deplibs_check_method=pass_all
6233 ;;
6234
6235 solaris*)
6236 lt_cv_deplibs_check_method=pass_all
6237 ;;
6238
6239 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6240 lt_cv_deplibs_check_method=pass_all
6241 ;;
6242
6243 sysv4 | sysv4.3*)
6244 case $host_vendor in
6245 motorola)
6246 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]'
6247 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6248 ;;
6249 ncr)
6250 lt_cv_deplibs_check_method=pass_all
6251 ;;
6252 sequent)
6253 lt_cv_file_magic_cmd='/bin/file'
6254 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6255 ;;
6256 sni)
6257 lt_cv_file_magic_cmd='/bin/file'
6258 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6259 lt_cv_file_magic_test_file=/lib/libc.so
6260 ;;
6261 siemens)
6262 lt_cv_deplibs_check_method=pass_all
6263 ;;
6264 pc)
6265 lt_cv_deplibs_check_method=pass_all
6266 ;;
6267 esac
6268 ;;
6269
6270 tpf*)
6271 lt_cv_deplibs_check_method=pass_all
6272 ;;
6273 esac
6274
6275 fi
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6277 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6278 file_magic_cmd=$lt_cv_file_magic_cmd
6279 deplibs_check_method=$lt_cv_deplibs_check_method
6280 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293 if test -n "$ac_tool_prefix"; then
6294 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6295 set dummy ${ac_tool_prefix}ar; ac_word=$2
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6297 $as_echo_n "checking for $ac_word... " >&6; }
6298 if ${ac_cv_prog_AR+:} false; then :
6299 $as_echo_n "(cached) " >&6
6300 else
6301 if test -n "$AR"; then
6302 ac_cv_prog_AR="$AR" # Let the user override the test.
6303 else
6304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6305 for as_dir in $PATH
6306 do
6307 IFS=$as_save_IFS
6308 test -z "$as_dir" && as_dir=.
6309 for ac_exec_ext in '' $ac_executable_extensions; do
6310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6311 ac_cv_prog_AR="${ac_tool_prefix}ar"
6312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6313 break 2
6314 fi
6315 done
6316 done
6317 IFS=$as_save_IFS
6318
6319 fi
6320 fi
6321 AR=$ac_cv_prog_AR
6322 if test -n "$AR"; then
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6324 $as_echo "$AR" >&6; }
6325 else
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6327 $as_echo "no" >&6; }
6328 fi
6329
6330
6331 fi
6332 if test -z "$ac_cv_prog_AR"; then
6333 ac_ct_AR=$AR
6334 # Extract the first word of "ar", so it can be a program name with args.
6335 set dummy ar; ac_word=$2
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6337 $as_echo_n "checking for $ac_word... " >&6; }
6338 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6339 $as_echo_n "(cached) " >&6
6340 else
6341 if test -n "$ac_ct_AR"; then
6342 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6343 else
6344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6345 for as_dir in $PATH
6346 do
6347 IFS=$as_save_IFS
6348 test -z "$as_dir" && as_dir=.
6349 for ac_exec_ext in '' $ac_executable_extensions; do
6350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6351 ac_cv_prog_ac_ct_AR="ar"
6352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6353 break 2
6354 fi
6355 done
6356 done
6357 IFS=$as_save_IFS
6358
6359 fi
6360 fi
6361 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6362 if test -n "$ac_ct_AR"; then
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6364 $as_echo "$ac_ct_AR" >&6; }
6365 else
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6367 $as_echo "no" >&6; }
6368 fi
6369
6370 if test "x$ac_ct_AR" = x; then
6371 AR="false"
6372 else
6373 case $cross_compiling:$ac_tool_warned in
6374 yes:)
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6377 ac_tool_warned=yes ;;
6378 esac
6379 AR=$ac_ct_AR
6380 fi
6381 else
6382 AR="$ac_cv_prog_AR"
6383 fi
6384
6385 test -z "$AR" && AR=ar
6386 test -z "$AR_FLAGS" && AR_FLAGS=cru
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398 if test -n "$ac_tool_prefix"; then
6399 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6400 set dummy ${ac_tool_prefix}strip; ac_word=$2
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6402 $as_echo_n "checking for $ac_word... " >&6; }
6403 if ${ac_cv_prog_STRIP+:} false; then :
6404 $as_echo_n "(cached) " >&6
6405 else
6406 if test -n "$STRIP"; then
6407 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6408 else
6409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6410 for as_dir in $PATH
6411 do
6412 IFS=$as_save_IFS
6413 test -z "$as_dir" && as_dir=.
6414 for ac_exec_ext in '' $ac_executable_extensions; do
6415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6416 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6418 break 2
6419 fi
6420 done
6421 done
6422 IFS=$as_save_IFS
6423
6424 fi
6425 fi
6426 STRIP=$ac_cv_prog_STRIP
6427 if test -n "$STRIP"; then
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6429 $as_echo "$STRIP" >&6; }
6430 else
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6432 $as_echo "no" >&6; }
6433 fi
6434
6435
6436 fi
6437 if test -z "$ac_cv_prog_STRIP"; then
6438 ac_ct_STRIP=$STRIP
6439 # Extract the first word of "strip", so it can be a program name with args.
6440 set dummy strip; ac_word=$2
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6442 $as_echo_n "checking for $ac_word... " >&6; }
6443 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6444 $as_echo_n "(cached) " >&6
6445 else
6446 if test -n "$ac_ct_STRIP"; then
6447 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6448 else
6449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6450 for as_dir in $PATH
6451 do
6452 IFS=$as_save_IFS
6453 test -z "$as_dir" && as_dir=.
6454 for ac_exec_ext in '' $ac_executable_extensions; do
6455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6456 ac_cv_prog_ac_ct_STRIP="strip"
6457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6458 break 2
6459 fi
6460 done
6461 done
6462 IFS=$as_save_IFS
6463
6464 fi
6465 fi
6466 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6467 if test -n "$ac_ct_STRIP"; then
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6469 $as_echo "$ac_ct_STRIP" >&6; }
6470 else
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6472 $as_echo "no" >&6; }
6473 fi
6474
6475 if test "x$ac_ct_STRIP" = x; then
6476 STRIP=":"
6477 else
6478 case $cross_compiling:$ac_tool_warned in
6479 yes:)
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6481 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6482 ac_tool_warned=yes ;;
6483 esac
6484 STRIP=$ac_ct_STRIP
6485 fi
6486 else
6487 STRIP="$ac_cv_prog_STRIP"
6488 fi
6489
6490 test -z "$STRIP" && STRIP=:
6491
6492
6493
6494
6495
6496
6497 if test -n "$ac_tool_prefix"; then
6498 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6499 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6501 $as_echo_n "checking for $ac_word... " >&6; }
6502 if ${ac_cv_prog_RANLIB+:} false; then :
6503 $as_echo_n "(cached) " >&6
6504 else
6505 if test -n "$RANLIB"; then
6506 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6507 else
6508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6509 for as_dir in $PATH
6510 do
6511 IFS=$as_save_IFS
6512 test -z "$as_dir" && as_dir=.
6513 for ac_exec_ext in '' $ac_executable_extensions; do
6514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6515 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6517 break 2
6518 fi
6519 done
6520 done
6521 IFS=$as_save_IFS
6522
6523 fi
6524 fi
6525 RANLIB=$ac_cv_prog_RANLIB
6526 if test -n "$RANLIB"; then
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6528 $as_echo "$RANLIB" >&6; }
6529 else
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6531 $as_echo "no" >&6; }
6532 fi
6533
6534
6535 fi
6536 if test -z "$ac_cv_prog_RANLIB"; then
6537 ac_ct_RANLIB=$RANLIB
6538 # Extract the first word of "ranlib", so it can be a program name with args.
6539 set dummy ranlib; ac_word=$2
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6541 $as_echo_n "checking for $ac_word... " >&6; }
6542 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6543 $as_echo_n "(cached) " >&6
6544 else
6545 if test -n "$ac_ct_RANLIB"; then
6546 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6547 else
6548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6549 for as_dir in $PATH
6550 do
6551 IFS=$as_save_IFS
6552 test -z "$as_dir" && as_dir=.
6553 for ac_exec_ext in '' $ac_executable_extensions; do
6554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6555 ac_cv_prog_ac_ct_RANLIB="ranlib"
6556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6557 break 2
6558 fi
6559 done
6560 done
6561 IFS=$as_save_IFS
6562
6563 fi
6564 fi
6565 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6566 if test -n "$ac_ct_RANLIB"; then
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6568 $as_echo "$ac_ct_RANLIB" >&6; }
6569 else
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6571 $as_echo "no" >&6; }
6572 fi
6573
6574 if test "x$ac_ct_RANLIB" = x; then
6575 RANLIB=":"
6576 else
6577 case $cross_compiling:$ac_tool_warned in
6578 yes:)
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6581 ac_tool_warned=yes ;;
6582 esac
6583 RANLIB=$ac_ct_RANLIB
6584 fi
6585 else
6586 RANLIB="$ac_cv_prog_RANLIB"
6587 fi
6588
6589 test -z "$RANLIB" && RANLIB=:
6590
6591
6592
6593
6594
6595
6596 # Determine commands to create old-style static archives.
6597 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6598 old_postinstall_cmds='chmod 644 $oldlib'
6599 old_postuninstall_cmds=
6600
6601 if test -n "$RANLIB"; then
6602 case $host_os in
6603 openbsd*)
6604 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6605 ;;
6606 *)
6607 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6608 ;;
6609 esac
6610 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6611 fi
6612
6613 case $host_os in
6614 darwin*)
6615 lock_old_archive_extraction=yes ;;
6616 *)
6617 lock_old_archive_extraction=no ;;
6618 esac
6619
6620
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 # If no C compiler was specified, use CC.
6659 LTCC=${LTCC-"$CC"}
6660
6661 # If no C compiler flags were specified, use CFLAGS.
6662 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6663
6664 # Allow CC to be a program name with arguments.
6665 compiler=$CC
6666
6667
6668 # Check for command to grab the raw symbol name followed by C symbol from nm.
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6670 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6671 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6672 $as_echo_n "(cached) " >&6
6673 else
6674
6675 # These are sane defaults that work on at least a few old systems.
6676 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6677
6678 # Character class describing NM global symbol codes.
6679 symcode='[BCDEGRST]'
6680
6681 # Regexp to match symbols that can be accessed directly from C.
6682 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6683
6684 # Define system-specific variables.
6685 case $host_os in
6686 aix*)
6687 symcode='[BCDT]'
6688 ;;
6689 cygwin* | mingw* | pw32* | cegcc*)
6690 symcode='[ABCDGISTW]'
6691 ;;
6692 hpux*)
6693 if test "$host_cpu" = ia64; then
6694 symcode='[ABCDEGRST]'
6695 fi
6696 ;;
6697 irix* | nonstopux*)
6698 symcode='[BCDEGRST]'
6699 ;;
6700 osf*)
6701 symcode='[BCDEGQRST]'
6702 ;;
6703 solaris*)
6704 symcode='[BDRT]'
6705 ;;
6706 sco3.2v5*)
6707 symcode='[DT]'
6708 ;;
6709 sysv4.2uw2*)
6710 symcode='[DT]'
6711 ;;
6712 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6713 symcode='[ABDT]'
6714 ;;
6715 sysv4)
6716 symcode='[DFNSTU]'
6717 ;;
6718 esac
6719
6720 # If we're using GNU nm, then use its standard symbol codes.
6721 case `$NM -V 2>&1` in
6722 *GNU* | *'with BFD'*)
6723 symcode='[ABCDGIRSTW]' ;;
6724 esac
6725
6726 # Transform an extracted symbol line into a proper C declaration.
6727 # Some systems (esp. on ia64) link data and code symbols differently,
6728 # so use this general approach.
6729 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6730
6731 # Transform an extracted symbol line into symbol name and symbol address
6732 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6733 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'"
6734
6735 # Handle CRLF in mingw tool chain
6736 opt_cr=
6737 case $build_os in
6738 mingw*)
6739 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6740 ;;
6741 esac
6742
6743 # Try without a prefix underscore, then with it.
6744 for ac_symprfx in "" "_"; do
6745
6746 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6747 symxfrm="\\1 $ac_symprfx\\2 \\2"
6748
6749 # Write the raw and C identifiers.
6750 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6751 # Fake it for dumpbin and say T for any non-static function
6752 # and D for any global variable.
6753 # Also find C++ and __fastcall symbols from MSVC++,
6754 # which start with @ or ?.
6755 lt_cv_sys_global_symbol_pipe="$AWK '"\
6756 " {last_section=section; section=\$ 3};"\
6757 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6758 " \$ 0!~/External *\|/{next};"\
6759 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6760 " {if(hide[section]) next};"\
6761 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6762 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6763 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6764 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6765 " ' prfx=^$ac_symprfx"
6766 else
6767 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6768 fi
6769
6770 # Check to see that the pipe works correctly.
6771 pipe_works=no
6772
6773 rm -f conftest*
6774 cat > conftest.$ac_ext <<_LT_EOF
6775 #ifdef __cplusplus
6776 extern "C" {
6777 #endif
6778 char nm_test_var;
6779 void nm_test_func(void);
6780 void nm_test_func(void){}
6781 #ifdef __cplusplus
6782 }
6783 #endif
6784 int main(){nm_test_var='a';nm_test_func();return(0);}
6785 _LT_EOF
6786
6787 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6788 (eval $ac_compile) 2>&5
6789 ac_status=$?
6790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6791 test $ac_status = 0; }; then
6792 # Now try to grab the symbols.
6793 nlist=conftest.nm
6794 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6795 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6796 ac_status=$?
6797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6798 test $ac_status = 0; } && test -s "$nlist"; then
6799 # Try sorting and uniquifying the output.
6800 if sort "$nlist" | uniq > "$nlist"T; then
6801 mv -f "$nlist"T "$nlist"
6802 else
6803 rm -f "$nlist"T
6804 fi
6805
6806 # Make sure that we snagged all the symbols we need.
6807 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6808 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6809 cat <<_LT_EOF > conftest.$ac_ext
6810 #ifdef __cplusplus
6811 extern "C" {
6812 #endif
6813
6814 _LT_EOF
6815 # Now generate the symbol file.
6816 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6817
6818 cat <<_LT_EOF >> conftest.$ac_ext
6819
6820 /* The mapping between symbol names and symbols. */
6821 const struct {
6822 const char *name;
6823 void *address;
6824 }
6825 lt__PROGRAM__LTX_preloaded_symbols[] =
6826 {
6827 { "@PROGRAM@", (void *) 0 },
6828 _LT_EOF
6829 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6830 cat <<\_LT_EOF >> conftest.$ac_ext
6831 {0, (void *) 0}
6832 };
6833
6834 /* This works around a problem in FreeBSD linker */
6835 #ifdef FREEBSD_WORKAROUND
6836 static const void *lt_preloaded_setup() {
6837 return lt__PROGRAM__LTX_preloaded_symbols;
6838 }
6839 #endif
6840
6841 #ifdef __cplusplus
6842 }
6843 #endif
6844 _LT_EOF
6845 # Now try linking the two files.
6846 mv conftest.$ac_objext conftstm.$ac_objext
6847 lt_save_LIBS="$LIBS"
6848 lt_save_CFLAGS="$CFLAGS"
6849 LIBS="conftstm.$ac_objext"
6850 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6851 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6852 (eval $ac_link) 2>&5
6853 ac_status=$?
6854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6855 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6856 pipe_works=yes
6857 fi
6858 LIBS="$lt_save_LIBS"
6859 CFLAGS="$lt_save_CFLAGS"
6860 else
6861 echo "cannot find nm_test_func in $nlist" >&5
6862 fi
6863 else
6864 echo "cannot find nm_test_var in $nlist" >&5
6865 fi
6866 else
6867 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6868 fi
6869 else
6870 echo "$progname: failed program was:" >&5
6871 cat conftest.$ac_ext >&5
6872 fi
6873 rm -rf conftest* conftst*
6874
6875 # Do not use the global_symbol_pipe unless it works.
6876 if test "$pipe_works" = yes; then
6877 break
6878 else
6879 lt_cv_sys_global_symbol_pipe=
6880 fi
6881 done
6882
6883 fi
6884
6885 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6886 lt_cv_sys_global_symbol_to_cdecl=
6887 fi
6888 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6890 $as_echo "failed" >&6; }
6891 else
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6893 $as_echo "ok" >&6; }
6894 fi
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918 # Check whether --enable-libtool-lock was given.
6919 if test "${enable_libtool_lock+set}" = set; then :
6920 enableval=$enable_libtool_lock;
6921 fi
6922
6923 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6924
6925 # Some flags need to be propagated to the compiler or linker for good
6926 # libtool support.
6927 case $host in
6928 ia64-*-hpux*)
6929 # Find out which ABI we are using.
6930 echo 'int i;' > conftest.$ac_ext
6931 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6932 (eval $ac_compile) 2>&5
6933 ac_status=$?
6934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6935 test $ac_status = 0; }; then
6936 case `/usr/bin/file conftest.$ac_objext` in
6937 *ELF-32*)
6938 HPUX_IA64_MODE="32"
6939 ;;
6940 *ELF-64*)
6941 HPUX_IA64_MODE="64"
6942 ;;
6943 esac
6944 fi
6945 rm -rf conftest*
6946 ;;
6947 *-*-irix6*)
6948 # Find out which ABI we are using.
6949 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6950 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6951 (eval $ac_compile) 2>&5
6952 ac_status=$?
6953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6954 test $ac_status = 0; }; then
6955 if test "$lt_cv_prog_gnu_ld" = yes; then
6956 case `/usr/bin/file conftest.$ac_objext` in
6957 *32-bit*)
6958 LD="${LD-ld} -melf32bsmip"
6959 ;;
6960 *N32*)
6961 LD="${LD-ld} -melf32bmipn32"
6962 ;;
6963 *64-bit*)
6964 LD="${LD-ld} -melf64bmip"
6965 ;;
6966 esac
6967 else
6968 case `/usr/bin/file conftest.$ac_objext` in
6969 *32-bit*)
6970 LD="${LD-ld} -32"
6971 ;;
6972 *N32*)
6973 LD="${LD-ld} -n32"
6974 ;;
6975 *64-bit*)
6976 LD="${LD-ld} -64"
6977 ;;
6978 esac
6979 fi
6980 fi
6981 rm -rf conftest*
6982 ;;
6983
6984 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6985 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6986 # Find out which ABI we are using.
6987 echo 'int i;' > conftest.$ac_ext
6988 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6989 (eval $ac_compile) 2>&5
6990 ac_status=$?
6991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6992 test $ac_status = 0; }; then
6993 case `/usr/bin/file conftest.o` in
6994 *32-bit*)
6995 case $host in
6996 x86_64-*kfreebsd*-gnu)
6997 LD="${LD-ld} -m elf_i386_fbsd"
6998 ;;
6999 x86_64-*linux*)
7000 case `/usr/bin/file conftest.o` in
7001 *x86-64*)
7002 LD="${LD-ld} -m elf32_x86_64"
7003 ;;
7004 *)
7005 LD="${LD-ld} -m elf_i386"
7006 ;;
7007 esac
7008 ;;
7009 powerpc64le-*linux*)
7010 LD="${LD-ld} -m elf32lppclinux"
7011 ;;
7012 powerpc64-*linux*)
7013 LD="${LD-ld} -m elf32ppclinux"
7014 ;;
7015 s390x-*linux*)
7016 LD="${LD-ld} -m elf_s390"
7017 ;;
7018 sparc64-*linux*)
7019 LD="${LD-ld} -m elf32_sparc"
7020 ;;
7021 esac
7022 ;;
7023 *64-bit*)
7024 case $host in
7025 x86_64-*kfreebsd*-gnu)
7026 LD="${LD-ld} -m elf_x86_64_fbsd"
7027 ;;
7028 x86_64-*linux*)
7029 LD="${LD-ld} -m elf_x86_64"
7030 ;;
7031 powerpcle-*linux*)
7032 LD="${LD-ld} -m elf64lppc"
7033 ;;
7034 powerpc-*linux*)
7035 LD="${LD-ld} -m elf64ppc"
7036 ;;
7037 s390*-*linux*|s390*-*tpf*)
7038 LD="${LD-ld} -m elf64_s390"
7039 ;;
7040 sparc*-*linux*)
7041 LD="${LD-ld} -m elf64_sparc"
7042 ;;
7043 esac
7044 ;;
7045 esac
7046 fi
7047 rm -rf conftest*
7048 ;;
7049
7050 *-*-sco3.2v5*)
7051 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7052 SAVE_CFLAGS="$CFLAGS"
7053 CFLAGS="$CFLAGS -belf"
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7055 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7056 if ${lt_cv_cc_needs_belf+:} false; then :
7057 $as_echo_n "(cached) " >&6
7058 else
7059 ac_ext=c
7060 ac_cpp='$CPP $CPPFLAGS'
7061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7064
7065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7066 /* end confdefs.h. */
7067
7068 int
7069 main ()
7070 {
7071
7072 ;
7073 return 0;
7074 }
7075 _ACEOF
7076 if ac_fn_c_try_link "$LINENO"; then :
7077 lt_cv_cc_needs_belf=yes
7078 else
7079 lt_cv_cc_needs_belf=no
7080 fi
7081 rm -f core conftest.err conftest.$ac_objext \
7082 conftest$ac_exeext conftest.$ac_ext
7083 ac_ext=c
7084 ac_cpp='$CPP $CPPFLAGS'
7085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7088
7089 fi
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7091 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7092 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7093 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7094 CFLAGS="$SAVE_CFLAGS"
7095 fi
7096 ;;
7097 sparc*-*solaris*)
7098 # Find out which ABI we are using.
7099 echo 'int i;' > conftest.$ac_ext
7100 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7101 (eval $ac_compile) 2>&5
7102 ac_status=$?
7103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7104 test $ac_status = 0; }; then
7105 case `/usr/bin/file conftest.o` in
7106 *64-bit*)
7107 case $lt_cv_prog_gnu_ld in
7108 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7109 *)
7110 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7111 LD="${LD-ld} -64"
7112 fi
7113 ;;
7114 esac
7115 ;;
7116 esac
7117 fi
7118 rm -rf conftest*
7119 ;;
7120 esac
7121
7122 need_locks="$enable_libtool_lock"
7123
7124
7125 case $host_os in
7126 rhapsody* | darwin*)
7127 if test -n "$ac_tool_prefix"; then
7128 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7129 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7131 $as_echo_n "checking for $ac_word... " >&6; }
7132 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7133 $as_echo_n "(cached) " >&6
7134 else
7135 if test -n "$DSYMUTIL"; then
7136 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7137 else
7138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139 for as_dir in $PATH
7140 do
7141 IFS=$as_save_IFS
7142 test -z "$as_dir" && as_dir=.
7143 for ac_exec_ext in '' $ac_executable_extensions; do
7144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7145 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7147 break 2
7148 fi
7149 done
7150 done
7151 IFS=$as_save_IFS
7152
7153 fi
7154 fi
7155 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7156 if test -n "$DSYMUTIL"; then
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7158 $as_echo "$DSYMUTIL" >&6; }
7159 else
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7161 $as_echo "no" >&6; }
7162 fi
7163
7164
7165 fi
7166 if test -z "$ac_cv_prog_DSYMUTIL"; then
7167 ac_ct_DSYMUTIL=$DSYMUTIL
7168 # Extract the first word of "dsymutil", so it can be a program name with args.
7169 set dummy dsymutil; ac_word=$2
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7171 $as_echo_n "checking for $ac_word... " >&6; }
7172 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7173 $as_echo_n "(cached) " >&6
7174 else
7175 if test -n "$ac_ct_DSYMUTIL"; then
7176 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7177 else
7178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7179 for as_dir in $PATH
7180 do
7181 IFS=$as_save_IFS
7182 test -z "$as_dir" && as_dir=.
7183 for ac_exec_ext in '' $ac_executable_extensions; do
7184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7185 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7187 break 2
7188 fi
7189 done
7190 done
7191 IFS=$as_save_IFS
7192
7193 fi
7194 fi
7195 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7196 if test -n "$ac_ct_DSYMUTIL"; then
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7198 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7199 else
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7201 $as_echo "no" >&6; }
7202 fi
7203
7204 if test "x$ac_ct_DSYMUTIL" = x; then
7205 DSYMUTIL=":"
7206 else
7207 case $cross_compiling:$ac_tool_warned in
7208 yes:)
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7210 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7211 ac_tool_warned=yes ;;
7212 esac
7213 DSYMUTIL=$ac_ct_DSYMUTIL
7214 fi
7215 else
7216 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7217 fi
7218
7219 if test -n "$ac_tool_prefix"; then
7220 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7221 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7223 $as_echo_n "checking for $ac_word... " >&6; }
7224 if ${ac_cv_prog_NMEDIT+:} false; then :
7225 $as_echo_n "(cached) " >&6
7226 else
7227 if test -n "$NMEDIT"; then
7228 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7229 else
7230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7231 for as_dir in $PATH
7232 do
7233 IFS=$as_save_IFS
7234 test -z "$as_dir" && as_dir=.
7235 for ac_exec_ext in '' $ac_executable_extensions; do
7236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7237 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7239 break 2
7240 fi
7241 done
7242 done
7243 IFS=$as_save_IFS
7244
7245 fi
7246 fi
7247 NMEDIT=$ac_cv_prog_NMEDIT
7248 if test -n "$NMEDIT"; then
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7250 $as_echo "$NMEDIT" >&6; }
7251 else
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7253 $as_echo "no" >&6; }
7254 fi
7255
7256
7257 fi
7258 if test -z "$ac_cv_prog_NMEDIT"; then
7259 ac_ct_NMEDIT=$NMEDIT
7260 # Extract the first word of "nmedit", so it can be a program name with args.
7261 set dummy nmedit; ac_word=$2
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7263 $as_echo_n "checking for $ac_word... " >&6; }
7264 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7265 $as_echo_n "(cached) " >&6
7266 else
7267 if test -n "$ac_ct_NMEDIT"; then
7268 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7269 else
7270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7271 for as_dir in $PATH
7272 do
7273 IFS=$as_save_IFS
7274 test -z "$as_dir" && as_dir=.
7275 for ac_exec_ext in '' $ac_executable_extensions; do
7276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7277 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7279 break 2
7280 fi
7281 done
7282 done
7283 IFS=$as_save_IFS
7284
7285 fi
7286 fi
7287 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7288 if test -n "$ac_ct_NMEDIT"; then
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7290 $as_echo "$ac_ct_NMEDIT" >&6; }
7291 else
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7293 $as_echo "no" >&6; }
7294 fi
7295
7296 if test "x$ac_ct_NMEDIT" = x; then
7297 NMEDIT=":"
7298 else
7299 case $cross_compiling:$ac_tool_warned in
7300 yes:)
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7302 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7303 ac_tool_warned=yes ;;
7304 esac
7305 NMEDIT=$ac_ct_NMEDIT
7306 fi
7307 else
7308 NMEDIT="$ac_cv_prog_NMEDIT"
7309 fi
7310
7311 if test -n "$ac_tool_prefix"; then
7312 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7313 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7315 $as_echo_n "checking for $ac_word... " >&6; }
7316 if ${ac_cv_prog_LIPO+:} false; then :
7317 $as_echo_n "(cached) " >&6
7318 else
7319 if test -n "$LIPO"; then
7320 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7321 else
7322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7323 for as_dir in $PATH
7324 do
7325 IFS=$as_save_IFS
7326 test -z "$as_dir" && as_dir=.
7327 for ac_exec_ext in '' $ac_executable_extensions; do
7328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7329 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7331 break 2
7332 fi
7333 done
7334 done
7335 IFS=$as_save_IFS
7336
7337 fi
7338 fi
7339 LIPO=$ac_cv_prog_LIPO
7340 if test -n "$LIPO"; then
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7342 $as_echo "$LIPO" >&6; }
7343 else
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7345 $as_echo "no" >&6; }
7346 fi
7347
7348
7349 fi
7350 if test -z "$ac_cv_prog_LIPO"; then
7351 ac_ct_LIPO=$LIPO
7352 # Extract the first word of "lipo", so it can be a program name with args.
7353 set dummy lipo; ac_word=$2
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7355 $as_echo_n "checking for $ac_word... " >&6; }
7356 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7357 $as_echo_n "(cached) " >&6
7358 else
7359 if test -n "$ac_ct_LIPO"; then
7360 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7361 else
7362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363 for as_dir in $PATH
7364 do
7365 IFS=$as_save_IFS
7366 test -z "$as_dir" && as_dir=.
7367 for ac_exec_ext in '' $ac_executable_extensions; do
7368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7369 ac_cv_prog_ac_ct_LIPO="lipo"
7370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7371 break 2
7372 fi
7373 done
7374 done
7375 IFS=$as_save_IFS
7376
7377 fi
7378 fi
7379 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7380 if test -n "$ac_ct_LIPO"; then
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7382 $as_echo "$ac_ct_LIPO" >&6; }
7383 else
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7385 $as_echo "no" >&6; }
7386 fi
7387
7388 if test "x$ac_ct_LIPO" = x; then
7389 LIPO=":"
7390 else
7391 case $cross_compiling:$ac_tool_warned in
7392 yes:)
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7394 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7395 ac_tool_warned=yes ;;
7396 esac
7397 LIPO=$ac_ct_LIPO
7398 fi
7399 else
7400 LIPO="$ac_cv_prog_LIPO"
7401 fi
7402
7403 if test -n "$ac_tool_prefix"; then
7404 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7405 set dummy ${ac_tool_prefix}otool; ac_word=$2
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7407 $as_echo_n "checking for $ac_word... " >&6; }
7408 if ${ac_cv_prog_OTOOL+:} false; then :
7409 $as_echo_n "(cached) " >&6
7410 else
7411 if test -n "$OTOOL"; then
7412 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7413 else
7414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415 for as_dir in $PATH
7416 do
7417 IFS=$as_save_IFS
7418 test -z "$as_dir" && as_dir=.
7419 for ac_exec_ext in '' $ac_executable_extensions; do
7420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7421 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7423 break 2
7424 fi
7425 done
7426 done
7427 IFS=$as_save_IFS
7428
7429 fi
7430 fi
7431 OTOOL=$ac_cv_prog_OTOOL
7432 if test -n "$OTOOL"; then
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7434 $as_echo "$OTOOL" >&6; }
7435 else
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7437 $as_echo "no" >&6; }
7438 fi
7439
7440
7441 fi
7442 if test -z "$ac_cv_prog_OTOOL"; then
7443 ac_ct_OTOOL=$OTOOL
7444 # Extract the first word of "otool", so it can be a program name with args.
7445 set dummy otool; ac_word=$2
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7447 $as_echo_n "checking for $ac_word... " >&6; }
7448 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7449 $as_echo_n "(cached) " >&6
7450 else
7451 if test -n "$ac_ct_OTOOL"; then
7452 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7453 else
7454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7455 for as_dir in $PATH
7456 do
7457 IFS=$as_save_IFS
7458 test -z "$as_dir" && as_dir=.
7459 for ac_exec_ext in '' $ac_executable_extensions; do
7460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7461 ac_cv_prog_ac_ct_OTOOL="otool"
7462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7463 break 2
7464 fi
7465 done
7466 done
7467 IFS=$as_save_IFS
7468
7469 fi
7470 fi
7471 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7472 if test -n "$ac_ct_OTOOL"; then
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7474 $as_echo "$ac_ct_OTOOL" >&6; }
7475 else
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7477 $as_echo "no" >&6; }
7478 fi
7479
7480 if test "x$ac_ct_OTOOL" = x; then
7481 OTOOL=":"
7482 else
7483 case $cross_compiling:$ac_tool_warned in
7484 yes:)
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7486 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7487 ac_tool_warned=yes ;;
7488 esac
7489 OTOOL=$ac_ct_OTOOL
7490 fi
7491 else
7492 OTOOL="$ac_cv_prog_OTOOL"
7493 fi
7494
7495 if test -n "$ac_tool_prefix"; then
7496 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7497 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7499 $as_echo_n "checking for $ac_word... " >&6; }
7500 if ${ac_cv_prog_OTOOL64+:} false; then :
7501 $as_echo_n "(cached) " >&6
7502 else
7503 if test -n "$OTOOL64"; then
7504 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7505 else
7506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7507 for as_dir in $PATH
7508 do
7509 IFS=$as_save_IFS
7510 test -z "$as_dir" && as_dir=.
7511 for ac_exec_ext in '' $ac_executable_extensions; do
7512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7513 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7515 break 2
7516 fi
7517 done
7518 done
7519 IFS=$as_save_IFS
7520
7521 fi
7522 fi
7523 OTOOL64=$ac_cv_prog_OTOOL64
7524 if test -n "$OTOOL64"; then
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7526 $as_echo "$OTOOL64" >&6; }
7527 else
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7529 $as_echo "no" >&6; }
7530 fi
7531
7532
7533 fi
7534 if test -z "$ac_cv_prog_OTOOL64"; then
7535 ac_ct_OTOOL64=$OTOOL64
7536 # Extract the first word of "otool64", so it can be a program name with args.
7537 set dummy otool64; ac_word=$2
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7539 $as_echo_n "checking for $ac_word... " >&6; }
7540 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7541 $as_echo_n "(cached) " >&6
7542 else
7543 if test -n "$ac_ct_OTOOL64"; then
7544 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7545 else
7546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7547 for as_dir in $PATH
7548 do
7549 IFS=$as_save_IFS
7550 test -z "$as_dir" && as_dir=.
7551 for ac_exec_ext in '' $ac_executable_extensions; do
7552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7553 ac_cv_prog_ac_ct_OTOOL64="otool64"
7554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7555 break 2
7556 fi
7557 done
7558 done
7559 IFS=$as_save_IFS
7560
7561 fi
7562 fi
7563 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7564 if test -n "$ac_ct_OTOOL64"; then
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7566 $as_echo "$ac_ct_OTOOL64" >&6; }
7567 else
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7569 $as_echo "no" >&6; }
7570 fi
7571
7572 if test "x$ac_ct_OTOOL64" = x; then
7573 OTOOL64=":"
7574 else
7575 case $cross_compiling:$ac_tool_warned in
7576 yes:)
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7578 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7579 ac_tool_warned=yes ;;
7580 esac
7581 OTOOL64=$ac_ct_OTOOL64
7582 fi
7583 else
7584 OTOOL64="$ac_cv_prog_OTOOL64"
7585 fi
7586
7587
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7614 $as_echo_n "checking for -single_module linker flag... " >&6; }
7615 if ${lt_cv_apple_cc_single_mod+:} false; then :
7616 $as_echo_n "(cached) " >&6
7617 else
7618 lt_cv_apple_cc_single_mod=no
7619 if test -z "${LT_MULTI_MODULE}"; then
7620 # By default we will add the -single_module flag. You can override
7621 # by either setting the environment variable LT_MULTI_MODULE
7622 # non-empty at configure time, or by adding -multi_module to the
7623 # link flags.
7624 rm -rf libconftest.dylib*
7625 echo "int foo(void){return 1;}" > conftest.c
7626 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7627 -dynamiclib -Wl,-single_module conftest.c" >&5
7628 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7629 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7630 _lt_result=$?
7631 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7632 lt_cv_apple_cc_single_mod=yes
7633 else
7634 cat conftest.err >&5
7635 fi
7636 rm -rf libconftest.dylib*
7637 rm -f conftest.*
7638 fi
7639 fi
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7641 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7643 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7644 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7645 $as_echo_n "(cached) " >&6
7646 else
7647 lt_cv_ld_exported_symbols_list=no
7648 save_LDFLAGS=$LDFLAGS
7649 echo "_main" > conftest.sym
7650 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7652 /* end confdefs.h. */
7653
7654 int
7655 main ()
7656 {
7657
7658 ;
7659 return 0;
7660 }
7661 _ACEOF
7662 if ac_fn_c_try_link "$LINENO"; then :
7663 lt_cv_ld_exported_symbols_list=yes
7664 else
7665 lt_cv_ld_exported_symbols_list=no
7666 fi
7667 rm -f core conftest.err conftest.$ac_objext \
7668 conftest$ac_exeext conftest.$ac_ext
7669 LDFLAGS="$save_LDFLAGS"
7670
7671 fi
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7673 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7675 $as_echo_n "checking for -force_load linker flag... " >&6; }
7676 if ${lt_cv_ld_force_load+:} false; then :
7677 $as_echo_n "(cached) " >&6
7678 else
7679 lt_cv_ld_force_load=no
7680 cat > conftest.c << _LT_EOF
7681 int forced_loaded() { return 2;}
7682 _LT_EOF
7683 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7684 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7685 echo "$AR cru libconftest.a conftest.o" >&5
7686 $AR cru libconftest.a conftest.o 2>&5
7687 cat > conftest.c << _LT_EOF
7688 int main() { return 0;}
7689 _LT_EOF
7690 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7691 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7692 _lt_result=$?
7693 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7694 lt_cv_ld_force_load=yes
7695 else
7696 cat conftest.err >&5
7697 fi
7698 rm -f conftest.err libconftest.a conftest conftest.c
7699 rm -rf conftest.dSYM
7700
7701 fi
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7703 $as_echo "$lt_cv_ld_force_load" >&6; }
7704 case $host_os in
7705 rhapsody* | darwin1.[012])
7706 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7707 darwin1.*)
7708 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7709 darwin*) # darwin 5.x on
7710 # if running on 10.5 or later, the deployment target defaults
7711 # to the OS version, if on x86, and 10.4, the deployment
7712 # target defaults to 10.4. Don't you love it?
7713 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7714 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7715 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7716 10.[012][,.]*)
7717 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7718 10.*)
7719 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7720 esac
7721 ;;
7722 esac
7723 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7724 _lt_dar_single_mod='$single_module'
7725 fi
7726 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7727 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7728 else
7729 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7730 fi
7731 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7732 _lt_dsymutil='~$DSYMUTIL $lib || :'
7733 else
7734 _lt_dsymutil=
7735 fi
7736 ;;
7737 esac
7738
7739 ac_ext=c
7740 ac_cpp='$CPP $CPPFLAGS'
7741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7745 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7746 # On Suns, sometimes $CPP names a directory.
7747 if test -n "$CPP" && test -d "$CPP"; then
7748 CPP=
7749 fi
7750 if test -z "$CPP"; then
7751 if ${ac_cv_prog_CPP+:} false; then :
7752 $as_echo_n "(cached) " >&6
7753 else
7754 # Double quotes because CPP needs to be expanded
7755 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7756 do
7757 ac_preproc_ok=false
7758 for ac_c_preproc_warn_flag in '' yes
7759 do
7760 # Use a header file that comes with gcc, so configuring glibc
7761 # with a fresh cross-compiler works.
7762 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7763 # <limits.h> exists even on freestanding compilers.
7764 # On the NeXT, cc -E runs the code through the compiler's parser,
7765 # not just through cpp. "Syntax error" is here to catch this case.
7766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7767 /* end confdefs.h. */
7768 #ifdef __STDC__
7769 # include <limits.h>
7770 #else
7771 # include <assert.h>
7772 #endif
7773 Syntax error
7774 _ACEOF
7775 if ac_fn_c_try_cpp "$LINENO"; then :
7776
7777 else
7778 # Broken: fails on valid input.
7779 continue
7780 fi
7781 rm -f conftest.err conftest.i conftest.$ac_ext
7782
7783 # OK, works on sane cases. Now check whether nonexistent headers
7784 # can be detected and how.
7785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7786 /* end confdefs.h. */
7787 #include <ac_nonexistent.h>
7788 _ACEOF
7789 if ac_fn_c_try_cpp "$LINENO"; then :
7790 # Broken: success on invalid input.
7791 continue
7792 else
7793 # Passes both tests.
7794 ac_preproc_ok=:
7795 break
7796 fi
7797 rm -f conftest.err conftest.i conftest.$ac_ext
7798
7799 done
7800 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7801 rm -f conftest.i conftest.err conftest.$ac_ext
7802 if $ac_preproc_ok; then :
7803 break
7804 fi
7805
7806 done
7807 ac_cv_prog_CPP=$CPP
7808
7809 fi
7810 CPP=$ac_cv_prog_CPP
7811 else
7812 ac_cv_prog_CPP=$CPP
7813 fi
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7815 $as_echo "$CPP" >&6; }
7816 ac_preproc_ok=false
7817 for ac_c_preproc_warn_flag in '' yes
7818 do
7819 # Use a header file that comes with gcc, so configuring glibc
7820 # with a fresh cross-compiler works.
7821 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7822 # <limits.h> exists even on freestanding compilers.
7823 # On the NeXT, cc -E runs the code through the compiler's parser,
7824 # not just through cpp. "Syntax error" is here to catch this case.
7825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7826 /* end confdefs.h. */
7827 #ifdef __STDC__
7828 # include <limits.h>
7829 #else
7830 # include <assert.h>
7831 #endif
7832 Syntax error
7833 _ACEOF
7834 if ac_fn_c_try_cpp "$LINENO"; then :
7835
7836 else
7837 # Broken: fails on valid input.
7838 continue
7839 fi
7840 rm -f conftest.err conftest.i conftest.$ac_ext
7841
7842 # OK, works on sane cases. Now check whether nonexistent headers
7843 # can be detected and how.
7844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7845 /* end confdefs.h. */
7846 #include <ac_nonexistent.h>
7847 _ACEOF
7848 if ac_fn_c_try_cpp "$LINENO"; then :
7849 # Broken: success on invalid input.
7850 continue
7851 else
7852 # Passes both tests.
7853 ac_preproc_ok=:
7854 break
7855 fi
7856 rm -f conftest.err conftest.i conftest.$ac_ext
7857
7858 done
7859 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7860 rm -f conftest.i conftest.err conftest.$ac_ext
7861 if $ac_preproc_ok; then :
7862
7863 else
7864 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7865 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7866 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7867 See \`config.log' for more details" "$LINENO" 5; }
7868 fi
7869
7870 ac_ext=c
7871 ac_cpp='$CPP $CPPFLAGS'
7872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7875
7876
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7878 $as_echo_n "checking for ANSI C header files... " >&6; }
7879 if ${ac_cv_header_stdc+:} false; then :
7880 $as_echo_n "(cached) " >&6
7881 else
7882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7883 /* end confdefs.h. */
7884 #include <stdlib.h>
7885 #include <stdarg.h>
7886 #include <string.h>
7887 #include <float.h>
7888
7889 int
7890 main ()
7891 {
7892
7893 ;
7894 return 0;
7895 }
7896 _ACEOF
7897 if ac_fn_c_try_compile "$LINENO"; then :
7898 ac_cv_header_stdc=yes
7899 else
7900 ac_cv_header_stdc=no
7901 fi
7902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7903
7904 if test $ac_cv_header_stdc = yes; then
7905 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7907 /* end confdefs.h. */
7908 #include <string.h>
7909
7910 _ACEOF
7911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7912 $EGREP "memchr" >/dev/null 2>&1; then :
7913
7914 else
7915 ac_cv_header_stdc=no
7916 fi
7917 rm -f conftest*
7918
7919 fi
7920
7921 if test $ac_cv_header_stdc = yes; then
7922 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7924 /* end confdefs.h. */
7925 #include <stdlib.h>
7926
7927 _ACEOF
7928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7929 $EGREP "free" >/dev/null 2>&1; then :
7930
7931 else
7932 ac_cv_header_stdc=no
7933 fi
7934 rm -f conftest*
7935
7936 fi
7937
7938 if test $ac_cv_header_stdc = yes; then
7939 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7940 if test "$cross_compiling" = yes; then :
7941 :
7942 else
7943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7944 /* end confdefs.h. */
7945 #include <ctype.h>
7946 #include <stdlib.h>
7947 #if ((' ' & 0x0FF) == 0x020)
7948 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7949 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7950 #else
7951 # define ISLOWER(c) \
7952 (('a' <= (c) && (c) <= 'i') \
7953 || ('j' <= (c) && (c) <= 'r') \
7954 || ('s' <= (c) && (c) <= 'z'))
7955 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7956 #endif
7957
7958 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7959 int
7960 main ()
7961 {
7962 int i;
7963 for (i = 0; i < 256; i++)
7964 if (XOR (islower (i), ISLOWER (i))
7965 || toupper (i) != TOUPPER (i))
7966 return 2;
7967 return 0;
7968 }
7969 _ACEOF
7970 if ac_fn_c_try_run "$LINENO"; then :
7971
7972 else
7973 ac_cv_header_stdc=no
7974 fi
7975 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7976 conftest.$ac_objext conftest.beam conftest.$ac_ext
7977 fi
7978
7979 fi
7980 fi
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7982 $as_echo "$ac_cv_header_stdc" >&6; }
7983 if test $ac_cv_header_stdc = yes; then
7984
7985 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7986
7987 fi
7988
7989 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7990 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7991 inttypes.h stdint.h unistd.h
7992 do :
7993 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7994 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7995 "
7996 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7997 cat >>confdefs.h <<_ACEOF
7998 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7999 _ACEOF
8000
8001 fi
8002
8003 done
8004
8005
8006 for ac_header in dlfcn.h
8007 do :
8008 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8009 "
8010 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8011 cat >>confdefs.h <<_ACEOF
8012 #define HAVE_DLFCN_H 1
8013 _ACEOF
8014
8015 fi
8016
8017 done
8018
8019
8020
8021
8022
8023 # Set options
8024 enable_dlopen=yes
8025
8026
8027
8028
8029 enable_win32_dll=no
8030
8031
8032 # Check whether --enable-shared was given.
8033 if test "${enable_shared+set}" = set; then :
8034 enableval=$enable_shared; p=${PACKAGE-default}
8035 case $enableval in
8036 yes) enable_shared=yes ;;
8037 no) enable_shared=no ;;
8038 *)
8039 enable_shared=no
8040 # Look at the argument we got. We use all the common list separators.
8041 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8042 for pkg in $enableval; do
8043 IFS="$lt_save_ifs"
8044 if test "X$pkg" = "X$p"; then
8045 enable_shared=yes
8046 fi
8047 done
8048 IFS="$lt_save_ifs"
8049 ;;
8050 esac
8051 else
8052 enable_shared=yes
8053 fi
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063 # Check whether --enable-static was given.
8064 if test "${enable_static+set}" = set; then :
8065 enableval=$enable_static; p=${PACKAGE-default}
8066 case $enableval in
8067 yes) enable_static=yes ;;
8068 no) enable_static=no ;;
8069 *)
8070 enable_static=no
8071 # Look at the argument we got. We use all the common list separators.
8072 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8073 for pkg in $enableval; do
8074 IFS="$lt_save_ifs"
8075 if test "X$pkg" = "X$p"; then
8076 enable_static=yes
8077 fi
8078 done
8079 IFS="$lt_save_ifs"
8080 ;;
8081 esac
8082 else
8083 enable_static=yes
8084 fi
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095 # Check whether --with-pic was given.
8096 if test "${with_pic+set}" = set; then :
8097 withval=$with_pic; pic_mode="$withval"
8098 else
8099 pic_mode=default
8100 fi
8101
8102
8103 test -z "$pic_mode" && pic_mode=default
8104
8105
8106
8107
8108
8109
8110
8111 # Check whether --enable-fast-install was given.
8112 if test "${enable_fast_install+set}" = set; then :
8113 enableval=$enable_fast_install; p=${PACKAGE-default}
8114 case $enableval in
8115 yes) enable_fast_install=yes ;;
8116 no) enable_fast_install=no ;;
8117 *)
8118 enable_fast_install=no
8119 # Look at the argument we got. We use all the common list separators.
8120 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8121 for pkg in $enableval; do
8122 IFS="$lt_save_ifs"
8123 if test "X$pkg" = "X$p"; then
8124 enable_fast_install=yes
8125 fi
8126 done
8127 IFS="$lt_save_ifs"
8128 ;;
8129 esac
8130 else
8131 enable_fast_install=yes
8132 fi
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144 # This can be used to rebuild libtool when needed
8145 LIBTOOL_DEPS="$ltmain"
8146
8147 # Always use our own libtool.
8148 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8149
8150
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 test -z "$LN_S" && LN_S="ln -s"
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190 if test -n "${ZSH_VERSION+set}" ; then
8191 setopt NO_GLOB_SUBST
8192 fi
8193
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8195 $as_echo_n "checking for objdir... " >&6; }
8196 if ${lt_cv_objdir+:} false; then :
8197 $as_echo_n "(cached) " >&6
8198 else
8199 rm -f .libs 2>/dev/null
8200 mkdir .libs 2>/dev/null
8201 if test -d .libs; then
8202 lt_cv_objdir=.libs
8203 else
8204 # MS-DOS does not allow filenames that begin with a dot.
8205 lt_cv_objdir=_libs
8206 fi
8207 rmdir .libs 2>/dev/null
8208 fi
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8210 $as_echo "$lt_cv_objdir" >&6; }
8211 objdir=$lt_cv_objdir
8212
8213
8214
8215
8216
8217 cat >>confdefs.h <<_ACEOF
8218 #define LT_OBJDIR "$lt_cv_objdir/"
8219 _ACEOF
8220
8221
8222
8223
8224 case $host_os in
8225 aix3*)
8226 # AIX sometimes has problems with the GCC collect2 program. For some
8227 # reason, if we set the COLLECT_NAMES environment variable, the problems
8228 # vanish in a puff of smoke.
8229 if test "X${COLLECT_NAMES+set}" != Xset; then
8230 COLLECT_NAMES=
8231 export COLLECT_NAMES
8232 fi
8233 ;;
8234 esac
8235
8236 # Global variables:
8237 ofile=libtool
8238 can_build_shared=yes
8239
8240 # All known linkers require a `.a' archive for static linking (except MSVC,
8241 # which needs '.lib').
8242 libext=a
8243
8244 with_gnu_ld="$lt_cv_prog_gnu_ld"
8245
8246 old_CC="$CC"
8247 old_CFLAGS="$CFLAGS"
8248
8249 # Set sane defaults for various variables
8250 test -z "$CC" && CC=cc
8251 test -z "$LTCC" && LTCC=$CC
8252 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8253 test -z "$LD" && LD=ld
8254 test -z "$ac_objext" && ac_objext=o
8255
8256 for cc_temp in $compiler""; do
8257 case $cc_temp in
8258 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8259 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8260 \-*) ;;
8261 *) break;;
8262 esac
8263 done
8264 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8265
8266
8267 # Only perform the check for file, if the check method requires it
8268 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8269 case $deplibs_check_method in
8270 file_magic*)
8271 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8273 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8274 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8275 $as_echo_n "(cached) " >&6
8276 else
8277 case $MAGIC_CMD in
8278 [\\/*] | ?:[\\/]*)
8279 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8280 ;;
8281 *)
8282 lt_save_MAGIC_CMD="$MAGIC_CMD"
8283 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8284 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8285 for ac_dir in $ac_dummy; do
8286 IFS="$lt_save_ifs"
8287 test -z "$ac_dir" && ac_dir=.
8288 if test -f $ac_dir/${ac_tool_prefix}file; then
8289 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8290 if test -n "$file_magic_test_file"; then
8291 case $deplibs_check_method in
8292 "file_magic "*)
8293 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8294 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8295 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8296 $EGREP "$file_magic_regex" > /dev/null; then
8297 :
8298 else
8299 cat <<_LT_EOF 1>&2
8300
8301 *** Warning: the command libtool uses to detect shared libraries,
8302 *** $file_magic_cmd, produces output that libtool cannot recognize.
8303 *** The result is that libtool may fail to recognize shared libraries
8304 *** as such. This will affect the creation of libtool libraries that
8305 *** depend on shared libraries, but programs linked with such libtool
8306 *** libraries will work regardless of this problem. Nevertheless, you
8307 *** may want to report the problem to your system manager and/or to
8308 *** bug-libtool@gnu.org
8309
8310 _LT_EOF
8311 fi ;;
8312 esac
8313 fi
8314 break
8315 fi
8316 done
8317 IFS="$lt_save_ifs"
8318 MAGIC_CMD="$lt_save_MAGIC_CMD"
8319 ;;
8320 esac
8321 fi
8322
8323 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8324 if test -n "$MAGIC_CMD"; then
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8326 $as_echo "$MAGIC_CMD" >&6; }
8327 else
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8329 $as_echo "no" >&6; }
8330 fi
8331
8332
8333
8334
8335
8336 if test -z "$lt_cv_path_MAGIC_CMD"; then
8337 if test -n "$ac_tool_prefix"; then
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8339 $as_echo_n "checking for file... " >&6; }
8340 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8341 $as_echo_n "(cached) " >&6
8342 else
8343 case $MAGIC_CMD in
8344 [\\/*] | ?:[\\/]*)
8345 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8346 ;;
8347 *)
8348 lt_save_MAGIC_CMD="$MAGIC_CMD"
8349 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8350 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8351 for ac_dir in $ac_dummy; do
8352 IFS="$lt_save_ifs"
8353 test -z "$ac_dir" && ac_dir=.
8354 if test -f $ac_dir/file; then
8355 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8356 if test -n "$file_magic_test_file"; then
8357 case $deplibs_check_method in
8358 "file_magic "*)
8359 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8360 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8361 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8362 $EGREP "$file_magic_regex" > /dev/null; then
8363 :
8364 else
8365 cat <<_LT_EOF 1>&2
8366
8367 *** Warning: the command libtool uses to detect shared libraries,
8368 *** $file_magic_cmd, produces output that libtool cannot recognize.
8369 *** The result is that libtool may fail to recognize shared libraries
8370 *** as such. This will affect the creation of libtool libraries that
8371 *** depend on shared libraries, but programs linked with such libtool
8372 *** libraries will work regardless of this problem. Nevertheless, you
8373 *** may want to report the problem to your system manager and/or to
8374 *** bug-libtool@gnu.org
8375
8376 _LT_EOF
8377 fi ;;
8378 esac
8379 fi
8380 break
8381 fi
8382 done
8383 IFS="$lt_save_ifs"
8384 MAGIC_CMD="$lt_save_MAGIC_CMD"
8385 ;;
8386 esac
8387 fi
8388
8389 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8390 if test -n "$MAGIC_CMD"; then
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8392 $as_echo "$MAGIC_CMD" >&6; }
8393 else
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8395 $as_echo "no" >&6; }
8396 fi
8397
8398
8399 else
8400 MAGIC_CMD=:
8401 fi
8402 fi
8403
8404 fi
8405 ;;
8406 esac
8407
8408 # Use C for the default configuration in the libtool script
8409
8410 lt_save_CC="$CC"
8411 ac_ext=c
8412 ac_cpp='$CPP $CPPFLAGS'
8413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8416
8417
8418 # Source file extension for C test sources.
8419 ac_ext=c
8420
8421 # Object file extension for compiled C test sources.
8422 objext=o
8423 objext=$objext
8424
8425 # Code to be used in simple compile tests
8426 lt_simple_compile_test_code="int some_variable = 0;"
8427
8428 # Code to be used in simple link tests
8429 lt_simple_link_test_code='int main(){return(0);}'
8430
8431
8432
8433
8434
8435
8436
8437 # If no C compiler was specified, use CC.
8438 LTCC=${LTCC-"$CC"}
8439
8440 # If no C compiler flags were specified, use CFLAGS.
8441 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8442
8443 # Allow CC to be a program name with arguments.
8444 compiler=$CC
8445
8446 # Save the default compiler, since it gets overwritten when the other
8447 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8448 compiler_DEFAULT=$CC
8449
8450 # save warnings/boilerplate of simple test code
8451 ac_outfile=conftest.$ac_objext
8452 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8453 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8454 _lt_compiler_boilerplate=`cat conftest.err`
8455 $RM conftest*
8456
8457 ac_outfile=conftest.$ac_objext
8458 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8459 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8460 _lt_linker_boilerplate=`cat conftest.err`
8461 $RM -r conftest*
8462
8463
8464 ## CAVEAT EMPTOR:
8465 ## There is no encapsulation within the following macros, do not change
8466 ## the running order or otherwise move them around unless you know exactly
8467 ## what you are doing...
8468 if test -n "$compiler"; then
8469
8470 lt_prog_compiler_no_builtin_flag=
8471
8472 if test "$GCC" = yes; then
8473 case $cc_basename in
8474 nvcc*)
8475 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8476 *)
8477 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8478 esac
8479
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8481 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8482 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8483 $as_echo_n "(cached) " >&6
8484 else
8485 lt_cv_prog_compiler_rtti_exceptions=no
8486 ac_outfile=conftest.$ac_objext
8487 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8488 lt_compiler_flag="-fno-rtti -fno-exceptions"
8489 # Insert the option either (1) after the last *FLAGS variable, or
8490 # (2) before a word containing "conftest.", or (3) at the end.
8491 # Note that $ac_compile itself does not contain backslashes and begins
8492 # with a dollar sign (not a hyphen), so the echo should work correctly.
8493 # The option is referenced via a variable to avoid confusing sed.
8494 lt_compile=`echo "$ac_compile" | $SED \
8495 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8496 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8497 -e 's:$: $lt_compiler_flag:'`
8498 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8499 (eval "$lt_compile" 2>conftest.err)
8500 ac_status=$?
8501 cat conftest.err >&5
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 if (exit $ac_status) && test -s "$ac_outfile"; then
8504 # The compiler can only warn and ignore the option if not recognized
8505 # So say no if there are warnings other than the usual output.
8506 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8507 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8508 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8509 lt_cv_prog_compiler_rtti_exceptions=yes
8510 fi
8511 fi
8512 $RM conftest*
8513
8514 fi
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8516 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8517
8518 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8519 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8520 else
8521 :
8522 fi
8523
8524 fi
8525
8526
8527
8528
8529
8530
8531 lt_prog_compiler_wl=
8532 lt_prog_compiler_pic=
8533 lt_prog_compiler_static=
8534
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8536 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8537
8538 if test "$GCC" = yes; then
8539 lt_prog_compiler_wl='-Wl,'
8540 lt_prog_compiler_static='-static'
8541
8542 case $host_os in
8543 aix*)
8544 # All AIX code is PIC.
8545 if test "$host_cpu" = ia64; then
8546 # AIX 5 now supports IA64 processor
8547 lt_prog_compiler_static='-Bstatic'
8548 fi
8549 lt_prog_compiler_pic='-fPIC'
8550 ;;
8551
8552 amigaos*)
8553 case $host_cpu in
8554 powerpc)
8555 # see comment about AmigaOS4 .so support
8556 lt_prog_compiler_pic='-fPIC'
8557 ;;
8558 m68k)
8559 # FIXME: we need at least 68020 code to build shared libraries, but
8560 # adding the `-m68020' flag to GCC prevents building anything better,
8561 # like `-m68040'.
8562 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8563 ;;
8564 esac
8565 ;;
8566
8567 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8568 # PIC is the default for these OSes.
8569 ;;
8570
8571 mingw* | cygwin* | pw32* | os2* | cegcc*)
8572 # This hack is so that the source file can tell whether it is being
8573 # built for inclusion in a dll (and should export symbols for example).
8574 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8575 # (--disable-auto-import) libraries
8576 lt_prog_compiler_pic='-DDLL_EXPORT'
8577 ;;
8578
8579 darwin* | rhapsody*)
8580 # PIC is the default on this platform
8581 # Common symbols not allowed in MH_DYLIB files
8582 lt_prog_compiler_pic='-fno-common'
8583 ;;
8584
8585 haiku*)
8586 # PIC is the default for Haiku.
8587 # The "-static" flag exists, but is broken.
8588 lt_prog_compiler_static=
8589 ;;
8590
8591 hpux*)
8592 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8593 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8594 # sets the default TLS model and affects inlining.
8595 case $host_cpu in
8596 hppa*64*)
8597 # +Z the default
8598 ;;
8599 *)
8600 lt_prog_compiler_pic='-fPIC'
8601 ;;
8602 esac
8603 ;;
8604
8605 interix[3-9]*)
8606 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8607 # Instead, we relocate shared libraries at runtime.
8608 ;;
8609
8610 msdosdjgpp*)
8611 # Just because we use GCC doesn't mean we suddenly get shared libraries
8612 # on systems that don't support them.
8613 lt_prog_compiler_can_build_shared=no
8614 enable_shared=no
8615 ;;
8616
8617 *nto* | *qnx*)
8618 # QNX uses GNU C++, but need to define -shared option too, otherwise
8619 # it will coredump.
8620 lt_prog_compiler_pic='-fPIC -shared'
8621 ;;
8622
8623 sysv4*MP*)
8624 if test -d /usr/nec; then
8625 lt_prog_compiler_pic=-Kconform_pic
8626 fi
8627 ;;
8628
8629 *)
8630 lt_prog_compiler_pic='-fPIC'
8631 ;;
8632 esac
8633
8634 case $cc_basename in
8635 nvcc*) # Cuda Compiler Driver 2.2
8636 lt_prog_compiler_wl='-Xlinker '
8637 lt_prog_compiler_pic='-Xcompiler -fPIC'
8638 ;;
8639 esac
8640 else
8641 # PORTME Check for flag to pass linker flags through the system compiler.
8642 case $host_os in
8643 aix*)
8644 lt_prog_compiler_wl='-Wl,'
8645 if test "$host_cpu" = ia64; then
8646 # AIX 5 now supports IA64 processor
8647 lt_prog_compiler_static='-Bstatic'
8648 else
8649 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8650 fi
8651 ;;
8652
8653 mingw* | cygwin* | pw32* | os2* | cegcc*)
8654 # This hack is so that the source file can tell whether it is being
8655 # built for inclusion in a dll (and should export symbols for example).
8656 lt_prog_compiler_pic='-DDLL_EXPORT'
8657 ;;
8658
8659 hpux9* | hpux10* | hpux11*)
8660 lt_prog_compiler_wl='-Wl,'
8661 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8662 # not for PA HP-UX.
8663 case $host_cpu in
8664 hppa*64*|ia64*)
8665 # +Z the default
8666 ;;
8667 *)
8668 lt_prog_compiler_pic='+Z'
8669 ;;
8670 esac
8671 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8672 lt_prog_compiler_static='${wl}-a ${wl}archive'
8673 ;;
8674
8675 irix5* | irix6* | nonstopux*)
8676 lt_prog_compiler_wl='-Wl,'
8677 # PIC (with -KPIC) is the default.
8678 lt_prog_compiler_static='-non_shared'
8679 ;;
8680
8681 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8682 case $cc_basename in
8683 # old Intel for x86_64 which still supported -KPIC.
8684 ecc*)
8685 lt_prog_compiler_wl='-Wl,'
8686 lt_prog_compiler_pic='-KPIC'
8687 lt_prog_compiler_static='-static'
8688 ;;
8689 # icc used to be incompatible with GCC.
8690 # ICC 10 doesn't accept -KPIC any more.
8691 icc* | ifort*)
8692 lt_prog_compiler_wl='-Wl,'
8693 lt_prog_compiler_pic='-fPIC'
8694 lt_prog_compiler_static='-static'
8695 ;;
8696 # Lahey Fortran 8.1.
8697 lf95*)
8698 lt_prog_compiler_wl='-Wl,'
8699 lt_prog_compiler_pic='--shared'
8700 lt_prog_compiler_static='--static'
8701 ;;
8702 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8703 # Portland Group compilers (*not* the Pentium gcc compiler,
8704 # which looks to be a dead project)
8705 lt_prog_compiler_wl='-Wl,'
8706 lt_prog_compiler_pic='-fpic'
8707 lt_prog_compiler_static='-Bstatic'
8708 ;;
8709 ccc*)
8710 lt_prog_compiler_wl='-Wl,'
8711 # All Alpha code is PIC.
8712 lt_prog_compiler_static='-non_shared'
8713 ;;
8714 xl* | bgxl* | bgf* | mpixl*)
8715 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8716 lt_prog_compiler_wl='-Wl,'
8717 lt_prog_compiler_pic='-qpic'
8718 lt_prog_compiler_static='-qstaticlink'
8719 ;;
8720 *)
8721 case `$CC -V 2>&1 | sed 5q` in
8722 *Sun\ F* | *Sun*Fortran*)
8723 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8724 lt_prog_compiler_pic='-KPIC'
8725 lt_prog_compiler_static='-Bstatic'
8726 lt_prog_compiler_wl=''
8727 ;;
8728 *Sun\ C*)
8729 # Sun C 5.9
8730 lt_prog_compiler_pic='-KPIC'
8731 lt_prog_compiler_static='-Bstatic'
8732 lt_prog_compiler_wl='-Wl,'
8733 ;;
8734 esac
8735 ;;
8736 esac
8737 ;;
8738
8739 newsos6)
8740 lt_prog_compiler_pic='-KPIC'
8741 lt_prog_compiler_static='-Bstatic'
8742 ;;
8743
8744 *nto* | *qnx*)
8745 # QNX uses GNU C++, but need to define -shared option too, otherwise
8746 # it will coredump.
8747 lt_prog_compiler_pic='-fPIC -shared'
8748 ;;
8749
8750 osf3* | osf4* | osf5*)
8751 lt_prog_compiler_wl='-Wl,'
8752 # All OSF/1 code is PIC.
8753 lt_prog_compiler_static='-non_shared'
8754 ;;
8755
8756 rdos*)
8757 lt_prog_compiler_static='-non_shared'
8758 ;;
8759
8760 solaris*)
8761 lt_prog_compiler_pic='-KPIC'
8762 lt_prog_compiler_static='-Bstatic'
8763 case $cc_basename in
8764 f77* | f90* | f95*)
8765 lt_prog_compiler_wl='-Qoption ld ';;
8766 *)
8767 lt_prog_compiler_wl='-Wl,';;
8768 esac
8769 ;;
8770
8771 sunos4*)
8772 lt_prog_compiler_wl='-Qoption ld '
8773 lt_prog_compiler_pic='-PIC'
8774 lt_prog_compiler_static='-Bstatic'
8775 ;;
8776
8777 sysv4 | sysv4.2uw2* | sysv4.3*)
8778 lt_prog_compiler_wl='-Wl,'
8779 lt_prog_compiler_pic='-KPIC'
8780 lt_prog_compiler_static='-Bstatic'
8781 ;;
8782
8783 sysv4*MP*)
8784 if test -d /usr/nec ;then
8785 lt_prog_compiler_pic='-Kconform_pic'
8786 lt_prog_compiler_static='-Bstatic'
8787 fi
8788 ;;
8789
8790 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8791 lt_prog_compiler_wl='-Wl,'
8792 lt_prog_compiler_pic='-KPIC'
8793 lt_prog_compiler_static='-Bstatic'
8794 ;;
8795
8796 unicos*)
8797 lt_prog_compiler_wl='-Wl,'
8798 lt_prog_compiler_can_build_shared=no
8799 ;;
8800
8801 uts4*)
8802 lt_prog_compiler_pic='-pic'
8803 lt_prog_compiler_static='-Bstatic'
8804 ;;
8805
8806 *)
8807 lt_prog_compiler_can_build_shared=no
8808 ;;
8809 esac
8810 fi
8811
8812 case $host_os in
8813 # For platforms which do not support PIC, -DPIC is meaningless:
8814 *djgpp*)
8815 lt_prog_compiler_pic=
8816 ;;
8817 *)
8818 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8819 ;;
8820 esac
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8822 $as_echo "$lt_prog_compiler_pic" >&6; }
8823
8824
8825
8826
8827
8828
8829 #
8830 # Check to make sure the PIC flag actually works.
8831 #
8832 if test -n "$lt_prog_compiler_pic"; then
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8834 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8835 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8836 $as_echo_n "(cached) " >&6
8837 else
8838 lt_cv_prog_compiler_pic_works=no
8839 ac_outfile=conftest.$ac_objext
8840 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8841 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8842 # Insert the option either (1) after the last *FLAGS variable, or
8843 # (2) before a word containing "conftest.", or (3) at the end.
8844 # Note that $ac_compile itself does not contain backslashes and begins
8845 # with a dollar sign (not a hyphen), so the echo should work correctly.
8846 # The option is referenced via a variable to avoid confusing sed.
8847 lt_compile=`echo "$ac_compile" | $SED \
8848 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8849 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8850 -e 's:$: $lt_compiler_flag:'`
8851 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8852 (eval "$lt_compile" 2>conftest.err)
8853 ac_status=$?
8854 cat conftest.err >&5
8855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856 if (exit $ac_status) && test -s "$ac_outfile"; then
8857 # The compiler can only warn and ignore the option if not recognized
8858 # So say no if there are warnings other than the usual output.
8859 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8860 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8861 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8862 lt_cv_prog_compiler_pic_works=yes
8863 fi
8864 fi
8865 $RM conftest*
8866
8867 fi
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8869 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8870
8871 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8872 case $lt_prog_compiler_pic in
8873 "" | " "*) ;;
8874 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8875 esac
8876 else
8877 lt_prog_compiler_pic=
8878 lt_prog_compiler_can_build_shared=no
8879 fi
8880
8881 fi
8882
8883
8884
8885
8886
8887
8888 #
8889 # Check to make sure the static flag actually works.
8890 #
8891 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8893 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8894 if ${lt_cv_prog_compiler_static_works+:} false; then :
8895 $as_echo_n "(cached) " >&6
8896 else
8897 lt_cv_prog_compiler_static_works=no
8898 save_LDFLAGS="$LDFLAGS"
8899 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8900 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8901 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8902 # The linker can only warn and ignore the option if not recognized
8903 # So say no if there are warnings
8904 if test -s conftest.err; then
8905 # Append any errors to the config.log.
8906 cat conftest.err 1>&5
8907 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8908 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8909 if diff conftest.exp conftest.er2 >/dev/null; then
8910 lt_cv_prog_compiler_static_works=yes
8911 fi
8912 else
8913 lt_cv_prog_compiler_static_works=yes
8914 fi
8915 fi
8916 $RM -r conftest*
8917 LDFLAGS="$save_LDFLAGS"
8918
8919 fi
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8921 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8922
8923 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8924 :
8925 else
8926 lt_prog_compiler_static=
8927 fi
8928
8929
8930
8931
8932
8933
8934
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8936 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8937 if ${lt_cv_prog_compiler_c_o+:} false; then :
8938 $as_echo_n "(cached) " >&6
8939 else
8940 lt_cv_prog_compiler_c_o=no
8941 $RM -r conftest 2>/dev/null
8942 mkdir conftest
8943 cd conftest
8944 mkdir out
8945 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8946
8947 lt_compiler_flag="-o out/conftest2.$ac_objext"
8948 # Insert the option either (1) after the last *FLAGS variable, or
8949 # (2) before a word containing "conftest.", or (3) at the end.
8950 # Note that $ac_compile itself does not contain backslashes and begins
8951 # with a dollar sign (not a hyphen), so the echo should work correctly.
8952 lt_compile=`echo "$ac_compile" | $SED \
8953 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8954 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8955 -e 's:$: $lt_compiler_flag:'`
8956 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8957 (eval "$lt_compile" 2>out/conftest.err)
8958 ac_status=$?
8959 cat out/conftest.err >&5
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8962 then
8963 # The compiler can only warn and ignore the option if not recognized
8964 # So say no if there are warnings
8965 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8966 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8967 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8968 lt_cv_prog_compiler_c_o=yes
8969 fi
8970 fi
8971 chmod u+w . 2>&5
8972 $RM conftest*
8973 # SGI C++ compiler will create directory out/ii_files/ for
8974 # template instantiation
8975 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8976 $RM out/* && rmdir out
8977 cd ..
8978 $RM -r conftest
8979 $RM conftest*
8980
8981 fi
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8983 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8984
8985
8986
8987
8988
8989
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8991 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8992 if ${lt_cv_prog_compiler_c_o+:} false; then :
8993 $as_echo_n "(cached) " >&6
8994 else
8995 lt_cv_prog_compiler_c_o=no
8996 $RM -r conftest 2>/dev/null
8997 mkdir conftest
8998 cd conftest
8999 mkdir out
9000 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9001
9002 lt_compiler_flag="-o out/conftest2.$ac_objext"
9003 # Insert the option either (1) after the last *FLAGS variable, or
9004 # (2) before a word containing "conftest.", or (3) at the end.
9005 # Note that $ac_compile itself does not contain backslashes and begins
9006 # with a dollar sign (not a hyphen), so the echo should work correctly.
9007 lt_compile=`echo "$ac_compile" | $SED \
9008 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9009 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9010 -e 's:$: $lt_compiler_flag:'`
9011 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9012 (eval "$lt_compile" 2>out/conftest.err)
9013 ac_status=$?
9014 cat out/conftest.err >&5
9015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9017 then
9018 # The compiler can only warn and ignore the option if not recognized
9019 # So say no if there are warnings
9020 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9021 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9022 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9023 lt_cv_prog_compiler_c_o=yes
9024 fi
9025 fi
9026 chmod u+w . 2>&5
9027 $RM conftest*
9028 # SGI C++ compiler will create directory out/ii_files/ for
9029 # template instantiation
9030 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9031 $RM out/* && rmdir out
9032 cd ..
9033 $RM -r conftest
9034 $RM conftest*
9035
9036 fi
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9038 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9039
9040
9041
9042
9043 hard_links="nottested"
9044 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9045 # do not overwrite the value of need_locks provided by the user
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9047 $as_echo_n "checking if we can lock with hard links... " >&6; }
9048 hard_links=yes
9049 $RM conftest*
9050 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9051 touch conftest.a
9052 ln conftest.a conftest.b 2>&5 || hard_links=no
9053 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9055 $as_echo "$hard_links" >&6; }
9056 if test "$hard_links" = no; then
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9058 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9059 need_locks=warn
9060 fi
9061 else
9062 need_locks=no
9063 fi
9064
9065
9066
9067
9068
9069
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9071 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9072
9073 runpath_var=
9074 allow_undefined_flag=
9075 always_export_symbols=no
9076 archive_cmds=
9077 archive_expsym_cmds=
9078 compiler_needs_object=no
9079 enable_shared_with_static_runtimes=no
9080 export_dynamic_flag_spec=
9081 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9082 hardcode_automatic=no
9083 hardcode_direct=no
9084 hardcode_direct_absolute=no
9085 hardcode_libdir_flag_spec=
9086 hardcode_libdir_flag_spec_ld=
9087 hardcode_libdir_separator=
9088 hardcode_minus_L=no
9089 hardcode_shlibpath_var=unsupported
9090 inherit_rpath=no
9091 link_all_deplibs=unknown
9092 module_cmds=
9093 module_expsym_cmds=
9094 old_archive_from_new_cmds=
9095 old_archive_from_expsyms_cmds=
9096 thread_safe_flag_spec=
9097 whole_archive_flag_spec=
9098 # include_expsyms should be a list of space-separated symbols to be *always*
9099 # included in the symbol list
9100 include_expsyms=
9101 # exclude_expsyms can be an extended regexp of symbols to exclude
9102 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9103 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9104 # as well as any symbol that contains `d'.
9105 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9106 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9107 # platforms (ab)use it in PIC code, but their linkers get confused if
9108 # the symbol is explicitly referenced. Since portable code cannot
9109 # rely on this symbol name, it's probably fine to never include it in
9110 # preloaded symbol tables.
9111 # Exclude shared library initialization/finalization symbols.
9112 extract_expsyms_cmds=
9113
9114 case $host_os in
9115 cygwin* | mingw* | pw32* | cegcc*)
9116 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9117 # When not using gcc, we currently assume that we are using
9118 # Microsoft Visual C++.
9119 if test "$GCC" != yes; then
9120 with_gnu_ld=no
9121 fi
9122 ;;
9123 interix*)
9124 # we just hope/assume this is gcc and not c89 (= MSVC++)
9125 with_gnu_ld=yes
9126 ;;
9127 openbsd*)
9128 with_gnu_ld=no
9129 ;;
9130 esac
9131
9132 ld_shlibs=yes
9133
9134 # On some targets, GNU ld is compatible enough with the native linker
9135 # that we're better off using the native interface for both.
9136 lt_use_gnu_ld_interface=no
9137 if test "$with_gnu_ld" = yes; then
9138 case $host_os in
9139 aix*)
9140 # The AIX port of GNU ld has always aspired to compatibility
9141 # with the native linker. However, as the warning in the GNU ld
9142 # block says, versions before 2.19.5* couldn't really create working
9143 # shared libraries, regardless of the interface used.
9144 case `$LD -v 2>&1` in
9145 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9146 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9147 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9148 *)
9149 lt_use_gnu_ld_interface=yes
9150 ;;
9151 esac
9152 ;;
9153 *)
9154 lt_use_gnu_ld_interface=yes
9155 ;;
9156 esac
9157 fi
9158
9159 if test "$lt_use_gnu_ld_interface" = yes; then
9160 # If archive_cmds runs LD, not CC, wlarc should be empty
9161 wlarc='${wl}'
9162
9163 # Set some defaults for GNU ld with shared library support. These
9164 # are reset later if shared libraries are not supported. Putting them
9165 # here allows them to be overridden if necessary.
9166 runpath_var=LD_RUN_PATH
9167 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9168 export_dynamic_flag_spec='${wl}--export-dynamic'
9169 # ancient GNU ld didn't support --whole-archive et. al.
9170 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9171 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9172 else
9173 whole_archive_flag_spec=
9174 fi
9175 supports_anon_versioning=no
9176 case `$LD -v 2>&1` in
9177 *GNU\ gold*) supports_anon_versioning=yes ;;
9178 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9179 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9180 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9181 *\ 2.11.*) ;; # other 2.11 versions
9182 *) supports_anon_versioning=yes ;;
9183 esac
9184
9185 # See if GNU ld supports shared libraries.
9186 case $host_os in
9187 aix[3-9]*)
9188 # On AIX/PPC, the GNU linker is very broken
9189 if test "$host_cpu" != ia64; then
9190 ld_shlibs=no
9191 cat <<_LT_EOF 1>&2
9192
9193 *** Warning: the GNU linker, at least up to release 2.19, is reported
9194 *** to be unable to reliably create shared libraries on AIX.
9195 *** Therefore, libtool is disabling shared libraries support. If you
9196 *** really care for shared libraries, you may want to install binutils
9197 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9198 *** You will then need to restart the configuration process.
9199
9200 _LT_EOF
9201 fi
9202 ;;
9203
9204 amigaos*)
9205 case $host_cpu in
9206 powerpc)
9207 # see comment about AmigaOS4 .so support
9208 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9209 archive_expsym_cmds=''
9210 ;;
9211 m68k)
9212 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)'
9213 hardcode_libdir_flag_spec='-L$libdir'
9214 hardcode_minus_L=yes
9215 ;;
9216 esac
9217 ;;
9218
9219 beos*)
9220 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9221 allow_undefined_flag=unsupported
9222 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9223 # support --undefined. This deserves some investigation. FIXME
9224 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9225 else
9226 ld_shlibs=no
9227 fi
9228 ;;
9229
9230 cygwin* | mingw* | pw32* | cegcc*)
9231 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9232 # as there is no search path for DLLs.
9233 hardcode_libdir_flag_spec='-L$libdir'
9234 export_dynamic_flag_spec='${wl}--export-all-symbols'
9235 allow_undefined_flag=unsupported
9236 always_export_symbols=no
9237 enable_shared_with_static_runtimes=yes
9238 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9239
9240 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9241 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9242 # If the export-symbols file already is a .def file (1st line
9243 # is EXPORTS), use it as is; otherwise, prepend...
9244 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9245 cp $export_symbols $output_objdir/$soname.def;
9246 else
9247 echo EXPORTS > $output_objdir/$soname.def;
9248 cat $export_symbols >> $output_objdir/$soname.def;
9249 fi~
9250 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9251 else
9252 ld_shlibs=no
9253 fi
9254 ;;
9255
9256 haiku*)
9257 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9258 link_all_deplibs=yes
9259 ;;
9260
9261 interix[3-9]*)
9262 hardcode_direct=no
9263 hardcode_shlibpath_var=no
9264 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9265 export_dynamic_flag_spec='${wl}-E'
9266 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9267 # Instead, shared libraries are loaded at an image base (0x10000000 by
9268 # default) and relocated if they conflict, which is a slow very memory
9269 # consuming and fragmenting process. To avoid this, we pick a random,
9270 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9271 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9272 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9273 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'
9274 ;;
9275
9276 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9277 tmp_diet=no
9278 if test "$host_os" = linux-dietlibc; then
9279 case $cc_basename in
9280 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9281 esac
9282 fi
9283 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9284 && test "$tmp_diet" = no
9285 then
9286 tmp_addflag=' $pic_flag'
9287 tmp_sharedflag='-shared'
9288 case $cc_basename,$host_cpu in
9289 pgcc*) # Portland Group C compiler
9290 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'
9291 tmp_addflag=' $pic_flag'
9292 ;;
9293 pgf77* | pgf90* | pgf95* | pgfortran*)
9294 # Portland Group f77 and f90 compilers
9295 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'
9296 tmp_addflag=' $pic_flag -Mnomain' ;;
9297 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9298 tmp_addflag=' -i_dynamic' ;;
9299 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9300 tmp_addflag=' -i_dynamic -nofor_main' ;;
9301 ifc* | ifort*) # Intel Fortran compiler
9302 tmp_addflag=' -nofor_main' ;;
9303 lf95*) # Lahey Fortran 8.1
9304 whole_archive_flag_spec=
9305 tmp_sharedflag='--shared' ;;
9306 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9307 tmp_sharedflag='-qmkshrobj'
9308 tmp_addflag= ;;
9309 nvcc*) # Cuda Compiler Driver 2.2
9310 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'
9311 compiler_needs_object=yes
9312 ;;
9313 esac
9314 case `$CC -V 2>&1 | sed 5q` in
9315 *Sun\ C*) # Sun C 5.9
9316 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'
9317 compiler_needs_object=yes
9318 tmp_sharedflag='-G' ;;
9319 *Sun\ F*) # Sun Fortran 8.3
9320 tmp_sharedflag='-G' ;;
9321 esac
9322 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9323
9324 if test "x$supports_anon_versioning" = xyes; then
9325 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9326 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9327 echo "local: *; };" >> $output_objdir/$libname.ver~
9328 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9329 fi
9330
9331 case $cc_basename in
9332 xlf* | bgf* | bgxlf* | mpixlf*)
9333 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9334 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9335 hardcode_libdir_flag_spec=
9336 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9337 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9338 if test "x$supports_anon_versioning" = xyes; then
9339 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9340 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9341 echo "local: *; };" >> $output_objdir/$libname.ver~
9342 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9343 fi
9344 ;;
9345 esac
9346 else
9347 ld_shlibs=no
9348 fi
9349 ;;
9350
9351 netbsd*)
9352 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9353 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9354 wlarc=
9355 else
9356 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9357 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9358 fi
9359 ;;
9360
9361 solaris*)
9362 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9363 ld_shlibs=no
9364 cat <<_LT_EOF 1>&2
9365
9366 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9367 *** create shared libraries on Solaris systems. Therefore, libtool
9368 *** is disabling shared libraries support. We urge you to upgrade GNU
9369 *** binutils to release 2.9.1 or newer. Another option is to modify
9370 *** your PATH or compiler configuration so that the native linker is
9371 *** used, and then restart.
9372
9373 _LT_EOF
9374 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9375 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9376 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9377 else
9378 ld_shlibs=no
9379 fi
9380 ;;
9381
9382 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9383 case `$LD -v 2>&1` in
9384 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9385 ld_shlibs=no
9386 cat <<_LT_EOF 1>&2
9387
9388 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9389 *** reliably create shared libraries on SCO systems. Therefore, libtool
9390 *** is disabling shared libraries support. We urge you to upgrade GNU
9391 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9392 *** your PATH or compiler configuration so that the native linker is
9393 *** used, and then restart.
9394
9395 _LT_EOF
9396 ;;
9397 *)
9398 # For security reasons, it is highly recommended that you always
9399 # use absolute paths for naming shared libraries, and exclude the
9400 # DT_RUNPATH tag from executables and libraries. But doing so
9401 # requires that you compile everything twice, which is a pain.
9402 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9403 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9404 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9405 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9406 else
9407 ld_shlibs=no
9408 fi
9409 ;;
9410 esac
9411 ;;
9412
9413 sunos4*)
9414 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9415 wlarc=
9416 hardcode_direct=yes
9417 hardcode_shlibpath_var=no
9418 ;;
9419
9420 *)
9421 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9422 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9423 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9424 else
9425 ld_shlibs=no
9426 fi
9427 ;;
9428 esac
9429
9430 if test "$ld_shlibs" = no; then
9431 runpath_var=
9432 hardcode_libdir_flag_spec=
9433 export_dynamic_flag_spec=
9434 whole_archive_flag_spec=
9435 fi
9436 else
9437 # PORTME fill in a description of your system's linker (not GNU ld)
9438 case $host_os in
9439 aix3*)
9440 allow_undefined_flag=unsupported
9441 always_export_symbols=yes
9442 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'
9443 # Note: this linker hardcodes the directories in LIBPATH if there
9444 # are no directories specified by -L.
9445 hardcode_minus_L=yes
9446 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9447 # Neither direct hardcoding nor static linking is supported with a
9448 # broken collect2.
9449 hardcode_direct=unsupported
9450 fi
9451 ;;
9452
9453 aix[4-9]*)
9454 if test "$host_cpu" = ia64; then
9455 # On IA64, the linker does run time linking by default, so we don't
9456 # have to do anything special.
9457 aix_use_runtimelinking=no
9458 exp_sym_flag='-Bexport'
9459 no_entry_flag=""
9460 else
9461 # If we're using GNU nm, then we don't want the "-C" option.
9462 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9463 # Also, AIX nm treats weak defined symbols like other global
9464 # defined symbols, whereas GNU nm marks them as "W".
9465 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9466 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'
9467 else
9468 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'
9469 fi
9470 aix_use_runtimelinking=no
9471
9472 # Test if we are trying to use run time linking or normal
9473 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9474 # need to do runtime linking.
9475 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9476 for ld_flag in $LDFLAGS; do
9477 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9478 aix_use_runtimelinking=yes
9479 break
9480 fi
9481 done
9482 ;;
9483 esac
9484
9485 exp_sym_flag='-bexport'
9486 no_entry_flag='-bnoentry'
9487 fi
9488
9489 # When large executables or shared objects are built, AIX ld can
9490 # have problems creating the table of contents. If linking a library
9491 # or program results in "error TOC overflow" add -mminimal-toc to
9492 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9493 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9494
9495 archive_cmds=''
9496 hardcode_direct=yes
9497 hardcode_direct_absolute=yes
9498 hardcode_libdir_separator=':'
9499 link_all_deplibs=yes
9500 file_list_spec='${wl}-f,'
9501
9502 if test "$GCC" = yes; then
9503 case $host_os in aix4.[012]|aix4.[012].*)
9504 # We only want to do this on AIX 4.2 and lower, the check
9505 # below for broken collect2 doesn't work under 4.3+
9506 collect2name=`${CC} -print-prog-name=collect2`
9507 if test -f "$collect2name" &&
9508 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9509 then
9510 # We have reworked collect2
9511 :
9512 else
9513 # We have old collect2
9514 hardcode_direct=unsupported
9515 # It fails to find uninstalled libraries when the uninstalled
9516 # path is not listed in the libpath. Setting hardcode_minus_L
9517 # to unsupported forces relinking
9518 hardcode_minus_L=yes
9519 hardcode_libdir_flag_spec='-L$libdir'
9520 hardcode_libdir_separator=
9521 fi
9522 ;;
9523 esac
9524 shared_flag='-shared'
9525 if test "$aix_use_runtimelinking" = yes; then
9526 shared_flag="$shared_flag "'${wl}-G'
9527 fi
9528 else
9529 # not using gcc
9530 if test "$host_cpu" = ia64; then
9531 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9532 # chokes on -Wl,-G. The following line is correct:
9533 shared_flag='-G'
9534 else
9535 if test "$aix_use_runtimelinking" = yes; then
9536 shared_flag='${wl}-G'
9537 else
9538 shared_flag='${wl}-bM:SRE'
9539 fi
9540 fi
9541 fi
9542
9543 export_dynamic_flag_spec='${wl}-bexpall'
9544 # It seems that -bexpall does not export symbols beginning with
9545 # underscore (_), so it is better to generate a list of symbols to export.
9546 always_export_symbols=yes
9547 if test "$aix_use_runtimelinking" = yes; then
9548 # Warning - without using the other runtime loading flags (-brtl),
9549 # -berok will link without error, but may produce a broken library.
9550 allow_undefined_flag='-berok'
9551 # Determine the default libpath from the value encoded in an
9552 # empty executable.
9553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9554 /* end confdefs.h. */
9555
9556 int
9557 main ()
9558 {
9559
9560 ;
9561 return 0;
9562 }
9563 _ACEOF
9564 if ac_fn_c_try_link "$LINENO"; then :
9565
9566 lt_aix_libpath_sed='
9567 /Import File Strings/,/^$/ {
9568 /^0/ {
9569 s/^0 *\(.*\)$/\1/
9570 p
9571 }
9572 }'
9573 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9574 # Check for a 64-bit object if we didn't find anything.
9575 if test -z "$aix_libpath"; then
9576 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9577 fi
9578 fi
9579 rm -f core conftest.err conftest.$ac_objext \
9580 conftest$ac_exeext conftest.$ac_ext
9581 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9582
9583 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9584 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"
9585 else
9586 if test "$host_cpu" = ia64; then
9587 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9588 allow_undefined_flag="-z nodefs"
9589 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"
9590 else
9591 # Determine the default libpath from the value encoded in an
9592 # empty executable.
9593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9594 /* end confdefs.h. */
9595
9596 int
9597 main ()
9598 {
9599
9600 ;
9601 return 0;
9602 }
9603 _ACEOF
9604 if ac_fn_c_try_link "$LINENO"; then :
9605
9606 lt_aix_libpath_sed='
9607 /Import File Strings/,/^$/ {
9608 /^0/ {
9609 s/^0 *\(.*\)$/\1/
9610 p
9611 }
9612 }'
9613 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9614 # Check for a 64-bit object if we didn't find anything.
9615 if test -z "$aix_libpath"; then
9616 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9617 fi
9618 fi
9619 rm -f core conftest.err conftest.$ac_objext \
9620 conftest$ac_exeext conftest.$ac_ext
9621 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9622
9623 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9624 # Warning - without using the other run time loading flags,
9625 # -berok will link without error, but may produce a broken library.
9626 no_undefined_flag=' ${wl}-bernotok'
9627 allow_undefined_flag=' ${wl}-berok'
9628 if test "$with_gnu_ld" = yes; then
9629 # We only use this code for GNU lds that support --whole-archive.
9630 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9631 else
9632 # Exported symbols can be pulled into shared objects from archives
9633 whole_archive_flag_spec='$convenience'
9634 fi
9635 archive_cmds_need_lc=yes
9636 # This is similar to how AIX traditionally builds its shared libraries.
9637 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'
9638 fi
9639 fi
9640 ;;
9641
9642 amigaos*)
9643 case $host_cpu in
9644 powerpc)
9645 # see comment about AmigaOS4 .so support
9646 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9647 archive_expsym_cmds=''
9648 ;;
9649 m68k)
9650 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)'
9651 hardcode_libdir_flag_spec='-L$libdir'
9652 hardcode_minus_L=yes
9653 ;;
9654 esac
9655 ;;
9656
9657 bsdi[45]*)
9658 export_dynamic_flag_spec=-rdynamic
9659 ;;
9660
9661 cygwin* | mingw* | pw32* | cegcc*)
9662 # When not using gcc, we currently assume that we are using
9663 # Microsoft Visual C++.
9664 # hardcode_libdir_flag_spec is actually meaningless, as there is
9665 # no search path for DLLs.
9666 hardcode_libdir_flag_spec=' '
9667 allow_undefined_flag=unsupported
9668 # Tell ltmain to make .lib files, not .a files.
9669 libext=lib
9670 # Tell ltmain to make .dll files, not .so files.
9671 shrext_cmds=".dll"
9672 # FIXME: Setting linknames here is a bad hack.
9673 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9674 # The linker will automatically build a .lib file if we build a DLL.
9675 old_archive_from_new_cmds='true'
9676 # FIXME: Should let the user specify the lib program.
9677 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9678 fix_srcfile_path='`cygpath -w "$srcfile"`'
9679 enable_shared_with_static_runtimes=yes
9680 ;;
9681
9682 darwin* | rhapsody*)
9683
9684
9685 archive_cmds_need_lc=no
9686 hardcode_direct=no
9687 hardcode_automatic=yes
9688 hardcode_shlibpath_var=unsupported
9689 if test "$lt_cv_ld_force_load" = "yes"; then
9690 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\"`'
9691 else
9692 whole_archive_flag_spec=''
9693 fi
9694 link_all_deplibs=yes
9695 allow_undefined_flag="$_lt_dar_allow_undefined"
9696 case $cc_basename in
9697 ifort*) _lt_dar_can_shared=yes ;;
9698 *) _lt_dar_can_shared=$GCC ;;
9699 esac
9700 if test "$_lt_dar_can_shared" = "yes"; then
9701 output_verbose_link_cmd=func_echo_all
9702 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9703 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9704 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}"
9705 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}"
9706
9707 else
9708 ld_shlibs=no
9709 fi
9710
9711 ;;
9712
9713 dgux*)
9714 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9715 hardcode_libdir_flag_spec='-L$libdir'
9716 hardcode_shlibpath_var=no
9717 ;;
9718
9719 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9720 # support. Future versions do this automatically, but an explicit c++rt0.o
9721 # does not break anything, and helps significantly (at the cost of a little
9722 # extra space).
9723 freebsd2.2*)
9724 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9725 hardcode_libdir_flag_spec='-R$libdir'
9726 hardcode_direct=yes
9727 hardcode_shlibpath_var=no
9728 ;;
9729
9730 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9731 freebsd2.*)
9732 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9733 hardcode_direct=yes
9734 hardcode_minus_L=yes
9735 hardcode_shlibpath_var=no
9736 ;;
9737
9738 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9739 freebsd* | dragonfly*)
9740 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9741 hardcode_libdir_flag_spec='-R$libdir'
9742 hardcode_direct=yes
9743 hardcode_shlibpath_var=no
9744 ;;
9745
9746 hpux9*)
9747 if test "$GCC" = yes; then
9748 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'
9749 else
9750 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'
9751 fi
9752 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9753 hardcode_libdir_separator=:
9754 hardcode_direct=yes
9755
9756 # hardcode_minus_L: Not really in the search PATH,
9757 # but as the default location of the library.
9758 hardcode_minus_L=yes
9759 export_dynamic_flag_spec='${wl}-E'
9760 ;;
9761
9762 hpux10*)
9763 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9764 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9765 else
9766 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9767 fi
9768 if test "$with_gnu_ld" = no; then
9769 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9770 hardcode_libdir_flag_spec_ld='+b $libdir'
9771 hardcode_libdir_separator=:
9772 hardcode_direct=yes
9773 hardcode_direct_absolute=yes
9774 export_dynamic_flag_spec='${wl}-E'
9775 # hardcode_minus_L: Not really in the search PATH,
9776 # but as the default location of the library.
9777 hardcode_minus_L=yes
9778 fi
9779 ;;
9780
9781 hpux11*)
9782 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9783 case $host_cpu in
9784 hppa*64*)
9785 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9786 ;;
9787 ia64*)
9788 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9789 ;;
9790 *)
9791 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9792 ;;
9793 esac
9794 else
9795 case $host_cpu in
9796 hppa*64*)
9797 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9798 ;;
9799 ia64*)
9800 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9801 ;;
9802 *)
9803
9804 # Older versions of the 11.00 compiler do not understand -b yet
9805 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9807 $as_echo_n "checking if $CC understands -b... " >&6; }
9808 if ${lt_cv_prog_compiler__b+:} false; then :
9809 $as_echo_n "(cached) " >&6
9810 else
9811 lt_cv_prog_compiler__b=no
9812 save_LDFLAGS="$LDFLAGS"
9813 LDFLAGS="$LDFLAGS -b"
9814 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9815 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9816 # The linker can only warn and ignore the option if not recognized
9817 # So say no if there are warnings
9818 if test -s conftest.err; then
9819 # Append any errors to the config.log.
9820 cat conftest.err 1>&5
9821 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9822 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9823 if diff conftest.exp conftest.er2 >/dev/null; then
9824 lt_cv_prog_compiler__b=yes
9825 fi
9826 else
9827 lt_cv_prog_compiler__b=yes
9828 fi
9829 fi
9830 $RM -r conftest*
9831 LDFLAGS="$save_LDFLAGS"
9832
9833 fi
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9835 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9836
9837 if test x"$lt_cv_prog_compiler__b" = xyes; then
9838 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9839 else
9840 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9841 fi
9842
9843 ;;
9844 esac
9845 fi
9846 if test "$with_gnu_ld" = no; then
9847 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9848 hardcode_libdir_separator=:
9849
9850 case $host_cpu in
9851 hppa*64*|ia64*)
9852 hardcode_direct=no
9853 hardcode_shlibpath_var=no
9854 ;;
9855 *)
9856 hardcode_direct=yes
9857 hardcode_direct_absolute=yes
9858 export_dynamic_flag_spec='${wl}-E'
9859
9860 # hardcode_minus_L: Not really in the search PATH,
9861 # but as the default location of the library.
9862 hardcode_minus_L=yes
9863 ;;
9864 esac
9865 fi
9866 ;;
9867
9868 irix5* | irix6* | nonstopux*)
9869 if test "$GCC" = yes; then
9870 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'
9871 # Try to use the -exported_symbol ld option, if it does not
9872 # work, assume that -exports_file does not work either and
9873 # implicitly export all symbols.
9874 save_LDFLAGS="$LDFLAGS"
9875 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9877 /* end confdefs.h. */
9878 int foo(void) {}
9879 _ACEOF
9880 if ac_fn_c_try_link "$LINENO"; then :
9881 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'
9882
9883 fi
9884 rm -f core conftest.err conftest.$ac_objext \
9885 conftest$ac_exeext conftest.$ac_ext
9886 LDFLAGS="$save_LDFLAGS"
9887 else
9888 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'
9889 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'
9890 fi
9891 archive_cmds_need_lc='no'
9892 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9893 hardcode_libdir_separator=:
9894 inherit_rpath=yes
9895 link_all_deplibs=yes
9896 ;;
9897
9898 netbsd*)
9899 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9900 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9901 else
9902 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9903 fi
9904 hardcode_libdir_flag_spec='-R$libdir'
9905 hardcode_direct=yes
9906 hardcode_shlibpath_var=no
9907 ;;
9908
9909 newsos6)
9910 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9911 hardcode_direct=yes
9912 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9913 hardcode_libdir_separator=:
9914 hardcode_shlibpath_var=no
9915 ;;
9916
9917 *nto* | *qnx*)
9918 ;;
9919
9920 openbsd*)
9921 if test -f /usr/libexec/ld.so; then
9922 hardcode_direct=yes
9923 hardcode_shlibpath_var=no
9924 hardcode_direct_absolute=yes
9925 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9926 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9927 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9928 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9929 export_dynamic_flag_spec='${wl}-E'
9930 else
9931 case $host_os in
9932 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9933 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9934 hardcode_libdir_flag_spec='-R$libdir'
9935 ;;
9936 *)
9937 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9938 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9939 ;;
9940 esac
9941 fi
9942 else
9943 ld_shlibs=no
9944 fi
9945 ;;
9946
9947 os2*)
9948 hardcode_libdir_flag_spec='-L$libdir'
9949 hardcode_minus_L=yes
9950 allow_undefined_flag=unsupported
9951 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'
9952 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9953 ;;
9954
9955 osf3*)
9956 if test "$GCC" = yes; then
9957 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9958 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'
9959 else
9960 allow_undefined_flag=' -expect_unresolved \*'
9961 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'
9962 fi
9963 archive_cmds_need_lc='no'
9964 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9965 hardcode_libdir_separator=:
9966 ;;
9967
9968 osf4* | osf5*) # as osf3* with the addition of -msym flag
9969 if test "$GCC" = yes; then
9970 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9971 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'
9972 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9973 else
9974 allow_undefined_flag=' -expect_unresolved \*'
9975 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'
9976 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~
9977 $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'
9978
9979 # Both c and cxx compiler support -rpath directly
9980 hardcode_libdir_flag_spec='-rpath $libdir'
9981 fi
9982 archive_cmds_need_lc='no'
9983 hardcode_libdir_separator=:
9984 ;;
9985
9986 solaris*)
9987 no_undefined_flag=' -z defs'
9988 if test "$GCC" = yes; then
9989 wlarc='${wl}'
9990 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9991 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9992 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9993 else
9994 case `$CC -V 2>&1` in
9995 *"Compilers 5.0"*)
9996 wlarc=''
9997 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9998 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9999 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10000 ;;
10001 *)
10002 wlarc='${wl}'
10003 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10004 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10005 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10006 ;;
10007 esac
10008 fi
10009 hardcode_libdir_flag_spec='-R$libdir'
10010 hardcode_shlibpath_var=no
10011 case $host_os in
10012 solaris2.[0-5] | solaris2.[0-5].*) ;;
10013 *)
10014 # The compiler driver will combine and reorder linker options,
10015 # but understands `-z linker_flag'. GCC discards it without `$wl',
10016 # but is careful enough not to reorder.
10017 # Supported since Solaris 2.6 (maybe 2.5.1?)
10018 if test "$GCC" = yes; then
10019 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10020 else
10021 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10022 fi
10023 ;;
10024 esac
10025 link_all_deplibs=yes
10026 ;;
10027
10028 sunos4*)
10029 if test "x$host_vendor" = xsequent; then
10030 # Use $CC to link under sequent, because it throws in some extra .o
10031 # files that make .init and .fini sections work.
10032 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10033 else
10034 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10035 fi
10036 hardcode_libdir_flag_spec='-L$libdir'
10037 hardcode_direct=yes
10038 hardcode_minus_L=yes
10039 hardcode_shlibpath_var=no
10040 ;;
10041
10042 sysv4)
10043 case $host_vendor in
10044 sni)
10045 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10046 hardcode_direct=yes # is this really true???
10047 ;;
10048 siemens)
10049 ## LD is ld it makes a PLAMLIB
10050 ## CC just makes a GrossModule.
10051 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10052 reload_cmds='$CC -r -o $output$reload_objs'
10053 hardcode_direct=no
10054 ;;
10055 motorola)
10056 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10057 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10058 ;;
10059 esac
10060 runpath_var='LD_RUN_PATH'
10061 hardcode_shlibpath_var=no
10062 ;;
10063
10064 sysv4.3*)
10065 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10066 hardcode_shlibpath_var=no
10067 export_dynamic_flag_spec='-Bexport'
10068 ;;
10069
10070 sysv4*MP*)
10071 if test -d /usr/nec; then
10072 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10073 hardcode_shlibpath_var=no
10074 runpath_var=LD_RUN_PATH
10075 hardcode_runpath_var=yes
10076 ld_shlibs=yes
10077 fi
10078 ;;
10079
10080 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10081 no_undefined_flag='${wl}-z,text'
10082 archive_cmds_need_lc=no
10083 hardcode_shlibpath_var=no
10084 runpath_var='LD_RUN_PATH'
10085
10086 if test "$GCC" = yes; then
10087 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10088 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10089 else
10090 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10091 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10092 fi
10093 ;;
10094
10095 sysv5* | sco3.2v5* | sco5v6*)
10096 # Note: We can NOT use -z defs as we might desire, because we do not
10097 # link with -lc, and that would cause any symbols used from libc to
10098 # always be unresolved, which means just about no library would
10099 # ever link correctly. If we're not using GNU ld we use -z text
10100 # though, which does catch some bad symbols but isn't as heavy-handed
10101 # as -z defs.
10102 no_undefined_flag='${wl}-z,text'
10103 allow_undefined_flag='${wl}-z,nodefs'
10104 archive_cmds_need_lc=no
10105 hardcode_shlibpath_var=no
10106 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10107 hardcode_libdir_separator=':'
10108 link_all_deplibs=yes
10109 export_dynamic_flag_spec='${wl}-Bexport'
10110 runpath_var='LD_RUN_PATH'
10111
10112 if test "$GCC" = yes; then
10113 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10114 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10115 else
10116 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10117 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10118 fi
10119 ;;
10120
10121 uts4*)
10122 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10123 hardcode_libdir_flag_spec='-L$libdir'
10124 hardcode_shlibpath_var=no
10125 ;;
10126
10127 *)
10128 ld_shlibs=no
10129 ;;
10130 esac
10131
10132 if test x$host_vendor = xsni; then
10133 case $host in
10134 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10135 export_dynamic_flag_spec='${wl}-Blargedynsym'
10136 ;;
10137 esac
10138 fi
10139 fi
10140
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10142 $as_echo "$ld_shlibs" >&6; }
10143 test "$ld_shlibs" = no && can_build_shared=no
10144
10145 with_gnu_ld=$with_gnu_ld
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161 #
10162 # Do we need to explicitly link libc?
10163 #
10164 case "x$archive_cmds_need_lc" in
10165 x|xyes)
10166 # Assume -lc should be added
10167 archive_cmds_need_lc=yes
10168
10169 if test "$enable_shared" = yes && test "$GCC" = yes; then
10170 case $archive_cmds in
10171 *'~'*)
10172 # FIXME: we may have to deal with multi-command sequences.
10173 ;;
10174 '$CC '*)
10175 # Test whether the compiler implicitly links with -lc since on some
10176 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10177 # to ld, don't add -lc before -lgcc.
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10179 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10180 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10181 $as_echo_n "(cached) " >&6
10182 else
10183 $RM conftest*
10184 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10185
10186 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10187 (eval $ac_compile) 2>&5
10188 ac_status=$?
10189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10190 test $ac_status = 0; } 2>conftest.err; then
10191 soname=conftest
10192 lib=conftest
10193 libobjs=conftest.$ac_objext
10194 deplibs=
10195 wl=$lt_prog_compiler_wl
10196 pic_flag=$lt_prog_compiler_pic
10197 compiler_flags=-v
10198 linker_flags=-v
10199 verstring=
10200 output_objdir=.
10201 libname=conftest
10202 lt_save_allow_undefined_flag=$allow_undefined_flag
10203 allow_undefined_flag=
10204 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10205 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10206 ac_status=$?
10207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10208 test $ac_status = 0; }
10209 then
10210 lt_cv_archive_cmds_need_lc=no
10211 else
10212 lt_cv_archive_cmds_need_lc=yes
10213 fi
10214 allow_undefined_flag=$lt_save_allow_undefined_flag
10215 else
10216 cat conftest.err 1>&5
10217 fi
10218 $RM conftest*
10219
10220 fi
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10222 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10223 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10224 ;;
10225 esac
10226 fi
10227 ;;
10228 esac
10229
10230
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10387 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10388
10389 if test "$GCC" = yes; then
10390 case $host_os in
10391 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10392 *) lt_awk_arg="/^libraries:/" ;;
10393 esac
10394 case $host_os in
10395 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10396 *) lt_sed_strip_eq="s,=/,/,g" ;;
10397 esac
10398 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10399 case $lt_search_path_spec in
10400 *\;*)
10401 # if the path contains ";" then we assume it to be the separator
10402 # otherwise default to the standard path separator (i.e. ":") - it is
10403 # assumed that no part of a normal pathname contains ";" but that should
10404 # okay in the real world where ";" in dirpaths is itself problematic.
10405 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10406 ;;
10407 *)
10408 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10409 ;;
10410 esac
10411 # Ok, now we have the path, separated by spaces, we can step through it
10412 # and add multilib dir if necessary.
10413 lt_tmp_lt_search_path_spec=
10414 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10415 for lt_sys_path in $lt_search_path_spec; do
10416 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10417 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10418 else
10419 test -d "$lt_sys_path" && \
10420 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10421 fi
10422 done
10423 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10424 BEGIN {RS=" "; FS="/|\n";} {
10425 lt_foo="";
10426 lt_count=0;
10427 for (lt_i = NF; lt_i > 0; lt_i--) {
10428 if ($lt_i != "" && $lt_i != ".") {
10429 if ($lt_i == "..") {
10430 lt_count++;
10431 } else {
10432 if (lt_count == 0) {
10433 lt_foo="/" $lt_i lt_foo;
10434 } else {
10435 lt_count--;
10436 }
10437 }
10438 }
10439 }
10440 if (lt_foo != "") { lt_freq[lt_foo]++; }
10441 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10442 }'`
10443 # AWK program above erroneously prepends '/' to C:/dos/paths
10444 # for these hosts.
10445 case $host_os in
10446 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10447 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10448 esac
10449 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10450 else
10451 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10452 fi
10453 library_names_spec=
10454 libname_spec='lib$name'
10455 soname_spec=
10456 shrext_cmds=".so"
10457 postinstall_cmds=
10458 postuninstall_cmds=
10459 finish_cmds=
10460 finish_eval=
10461 shlibpath_var=
10462 shlibpath_overrides_runpath=unknown
10463 version_type=none
10464 dynamic_linker="$host_os ld.so"
10465 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10466 need_lib_prefix=unknown
10467 hardcode_into_libs=no
10468
10469 # when you set need_version to no, make sure it does not cause -set_version
10470 # flags to be left without arguments
10471 need_version=unknown
10472
10473 case $host_os in
10474 aix3*)
10475 version_type=linux
10476 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10477 shlibpath_var=LIBPATH
10478
10479 # AIX 3 has no versioning support, so we append a major version to the name.
10480 soname_spec='${libname}${release}${shared_ext}$major'
10481 ;;
10482
10483 aix[4-9]*)
10484 version_type=linux
10485 need_lib_prefix=no
10486 need_version=no
10487 hardcode_into_libs=yes
10488 if test "$host_cpu" = ia64; then
10489 # AIX 5 supports IA64
10490 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10491 shlibpath_var=LD_LIBRARY_PATH
10492 else
10493 # With GCC up to 2.95.x, collect2 would create an import file
10494 # for dependence libraries. The import file would start with
10495 # the line `#! .'. This would cause the generated library to
10496 # depend on `.', always an invalid library. This was fixed in
10497 # development snapshots of GCC prior to 3.0.
10498 case $host_os in
10499 aix4 | aix4.[01] | aix4.[01].*)
10500 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10501 echo ' yes '
10502 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10503 :
10504 else
10505 can_build_shared=no
10506 fi
10507 ;;
10508 esac
10509 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10510 # soname into executable. Probably we can add versioning support to
10511 # collect2, so additional links can be useful in future.
10512 if test "$aix_use_runtimelinking" = yes; then
10513 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10514 # instead of lib<name>.a to let people know that these are not
10515 # typical AIX shared libraries.
10516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10517 else
10518 # We preserve .a as extension for shared libraries through AIX4.2
10519 # and later when we are not doing run time linking.
10520 library_names_spec='${libname}${release}.a $libname.a'
10521 soname_spec='${libname}${release}${shared_ext}$major'
10522 fi
10523 shlibpath_var=LIBPATH
10524 fi
10525 ;;
10526
10527 amigaos*)
10528 case $host_cpu in
10529 powerpc)
10530 # Since July 2007 AmigaOS4 officially supports .so libraries.
10531 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10533 ;;
10534 m68k)
10535 library_names_spec='$libname.ixlibrary $libname.a'
10536 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10537 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'
10538 ;;
10539 esac
10540 ;;
10541
10542 beos*)
10543 library_names_spec='${libname}${shared_ext}'
10544 dynamic_linker="$host_os ld.so"
10545 shlibpath_var=LIBRARY_PATH
10546 ;;
10547
10548 bsdi[45]*)
10549 version_type=linux
10550 need_version=no
10551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10552 soname_spec='${libname}${release}${shared_ext}$major'
10553 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10554 shlibpath_var=LD_LIBRARY_PATH
10555 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10556 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10557 # the default ld.so.conf also contains /usr/contrib/lib and
10558 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10559 # libtool to hard-code these into programs
10560 ;;
10561
10562 cygwin* | mingw* | pw32* | cegcc*)
10563 version_type=windows
10564 shrext_cmds=".dll"
10565 need_version=no
10566 need_lib_prefix=no
10567
10568 case $GCC,$host_os in
10569 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10570 library_names_spec='$libname.dll.a'
10571 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10572 postinstall_cmds='base_file=`basename \${file}`~
10573 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10574 dldir=$destdir/`dirname \$dlpath`~
10575 test -d \$dldir || mkdir -p \$dldir~
10576 $install_prog $dir/$dlname \$dldir/$dlname~
10577 chmod a+x \$dldir/$dlname~
10578 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10579 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10580 fi'
10581 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10582 dlpath=$dir/\$dldll~
10583 $RM \$dlpath'
10584 shlibpath_overrides_runpath=yes
10585
10586 case $host_os in
10587 cygwin*)
10588 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10589 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10590
10591 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10592 ;;
10593 mingw* | cegcc*)
10594 # MinGW DLLs use traditional 'lib' prefix
10595 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10596 ;;
10597 pw32*)
10598 # pw32 DLLs use 'pw' prefix rather than 'lib'
10599 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10600 ;;
10601 esac
10602 ;;
10603
10604 *)
10605 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10606 ;;
10607 esac
10608 dynamic_linker='Win32 ld.exe'
10609 # FIXME: first we should search . and the directory the executable is in
10610 shlibpath_var=PATH
10611 ;;
10612
10613 darwin* | rhapsody*)
10614 dynamic_linker="$host_os dyld"
10615 version_type=darwin
10616 need_lib_prefix=no
10617 need_version=no
10618 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10619 soname_spec='${libname}${release}${major}$shared_ext'
10620 shlibpath_overrides_runpath=yes
10621 shlibpath_var=DYLD_LIBRARY_PATH
10622 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10623
10624 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10625 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10626 ;;
10627
10628 dgux*)
10629 version_type=linux
10630 need_lib_prefix=no
10631 need_version=no
10632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10633 soname_spec='${libname}${release}${shared_ext}$major'
10634 shlibpath_var=LD_LIBRARY_PATH
10635 ;;
10636
10637 freebsd* | dragonfly*)
10638 # DragonFly does not have aout. When/if they implement a new
10639 # versioning mechanism, adjust this.
10640 if test -x /usr/bin/objformat; then
10641 objformat=`/usr/bin/objformat`
10642 else
10643 case $host_os in
10644 freebsd[23].*) objformat=aout ;;
10645 *) objformat=elf ;;
10646 esac
10647 fi
10648 version_type=freebsd-$objformat
10649 case $version_type in
10650 freebsd-elf*)
10651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10652 need_version=no
10653 need_lib_prefix=no
10654 ;;
10655 freebsd-*)
10656 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10657 need_version=yes
10658 ;;
10659 esac
10660 shlibpath_var=LD_LIBRARY_PATH
10661 case $host_os in
10662 freebsd2.*)
10663 shlibpath_overrides_runpath=yes
10664 ;;
10665 freebsd3.[01]* | freebsdelf3.[01]*)
10666 shlibpath_overrides_runpath=yes
10667 hardcode_into_libs=yes
10668 ;;
10669 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10670 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10671 shlibpath_overrides_runpath=no
10672 hardcode_into_libs=yes
10673 ;;
10674 *) # from 4.6 on, and DragonFly
10675 shlibpath_overrides_runpath=yes
10676 hardcode_into_libs=yes
10677 ;;
10678 esac
10679 ;;
10680
10681 gnu*)
10682 version_type=linux
10683 need_lib_prefix=no
10684 need_version=no
10685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10686 soname_spec='${libname}${release}${shared_ext}$major'
10687 shlibpath_var=LD_LIBRARY_PATH
10688 hardcode_into_libs=yes
10689 ;;
10690
10691 haiku*)
10692 version_type=linux
10693 need_lib_prefix=no
10694 need_version=no
10695 dynamic_linker="$host_os runtime_loader"
10696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10697 soname_spec='${libname}${release}${shared_ext}$major'
10698 shlibpath_var=LIBRARY_PATH
10699 shlibpath_overrides_runpath=yes
10700 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10701 hardcode_into_libs=yes
10702 ;;
10703
10704 hpux9* | hpux10* | hpux11*)
10705 # Give a soname corresponding to the major version so that dld.sl refuses to
10706 # link against other versions.
10707 version_type=sunos
10708 need_lib_prefix=no
10709 need_version=no
10710 case $host_cpu in
10711 ia64*)
10712 shrext_cmds='.so'
10713 hardcode_into_libs=yes
10714 dynamic_linker="$host_os dld.so"
10715 shlibpath_var=LD_LIBRARY_PATH
10716 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10718 soname_spec='${libname}${release}${shared_ext}$major'
10719 if test "X$HPUX_IA64_MODE" = X32; then
10720 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10721 else
10722 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10723 fi
10724 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10725 ;;
10726 hppa*64*)
10727 shrext_cmds='.sl'
10728 hardcode_into_libs=yes
10729 dynamic_linker="$host_os dld.sl"
10730 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10731 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10733 soname_spec='${libname}${release}${shared_ext}$major'
10734 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10735 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10736 ;;
10737 *)
10738 shrext_cmds='.sl'
10739 dynamic_linker="$host_os dld.sl"
10740 shlibpath_var=SHLIB_PATH
10741 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10743 soname_spec='${libname}${release}${shared_ext}$major'
10744 ;;
10745 esac
10746 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10747 postinstall_cmds='chmod 555 $lib'
10748 # or fails outright, so override atomically:
10749 install_override_mode=555
10750 ;;
10751
10752 interix[3-9]*)
10753 version_type=linux
10754 need_lib_prefix=no
10755 need_version=no
10756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10757 soname_spec='${libname}${release}${shared_ext}$major'
10758 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10759 shlibpath_var=LD_LIBRARY_PATH
10760 shlibpath_overrides_runpath=no
10761 hardcode_into_libs=yes
10762 ;;
10763
10764 irix5* | irix6* | nonstopux*)
10765 case $host_os in
10766 nonstopux*) version_type=nonstopux ;;
10767 *)
10768 if test "$lt_cv_prog_gnu_ld" = yes; then
10769 version_type=linux
10770 else
10771 version_type=irix
10772 fi ;;
10773 esac
10774 need_lib_prefix=no
10775 need_version=no
10776 soname_spec='${libname}${release}${shared_ext}$major'
10777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10778 case $host_os in
10779 irix5* | nonstopux*)
10780 libsuff= shlibsuff=
10781 ;;
10782 *)
10783 case $LD in # libtool.m4 will add one of these switches to LD
10784 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10785 libsuff= shlibsuff= libmagic=32-bit;;
10786 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10787 libsuff=32 shlibsuff=N32 libmagic=N32;;
10788 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10789 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10790 *) libsuff= shlibsuff= libmagic=never-match;;
10791 esac
10792 ;;
10793 esac
10794 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10795 shlibpath_overrides_runpath=no
10796 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10797 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10798 hardcode_into_libs=yes
10799 ;;
10800
10801 # No shared lib support for Linux oldld, aout, or coff.
10802 linux*oldld* | linux*aout* | linux*coff*)
10803 dynamic_linker=no
10804 ;;
10805
10806 # This must be Linux ELF.
10807 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10808 version_type=linux
10809 need_lib_prefix=no
10810 need_version=no
10811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10812 soname_spec='${libname}${release}${shared_ext}$major'
10813 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10814 shlibpath_var=LD_LIBRARY_PATH
10815 shlibpath_overrides_runpath=no
10816
10817 # Some binutils ld are patched to set DT_RUNPATH
10818 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10819 $as_echo_n "(cached) " >&6
10820 else
10821 lt_cv_shlibpath_overrides_runpath=no
10822 save_LDFLAGS=$LDFLAGS
10823 save_libdir=$libdir
10824 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10825 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10827 /* end confdefs.h. */
10828
10829 int
10830 main ()
10831 {
10832
10833 ;
10834 return 0;
10835 }
10836 _ACEOF
10837 if ac_fn_c_try_link "$LINENO"; then :
10838 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10839 lt_cv_shlibpath_overrides_runpath=yes
10840 fi
10841 fi
10842 rm -f core conftest.err conftest.$ac_objext \
10843 conftest$ac_exeext conftest.$ac_ext
10844 LDFLAGS=$save_LDFLAGS
10845 libdir=$save_libdir
10846
10847 fi
10848
10849 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10850
10851 # This implies no fast_install, which is unacceptable.
10852 # Some rework will be needed to allow for fast_install
10853 # before this can be enabled.
10854 hardcode_into_libs=yes
10855
10856 # Append ld.so.conf contents to the search path
10857 if test -f /etc/ld.so.conf; then
10858 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' ' '`
10859 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10860 fi
10861
10862 # We used to test for /lib/ld.so.1 and disable shared libraries on
10863 # powerpc, because MkLinux only supported shared libraries with the
10864 # GNU dynamic linker. Since this was broken with cross compilers,
10865 # most powerpc-linux boxes support dynamic linking these days and
10866 # people can always --disable-shared, the test was removed, and we
10867 # assume the GNU/Linux dynamic linker is in use.
10868 dynamic_linker='GNU/Linux ld.so'
10869 ;;
10870
10871 netbsd*)
10872 version_type=sunos
10873 need_lib_prefix=no
10874 need_version=no
10875 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10877 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10878 dynamic_linker='NetBSD (a.out) ld.so'
10879 else
10880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10881 soname_spec='${libname}${release}${shared_ext}$major'
10882 dynamic_linker='NetBSD ld.elf_so'
10883 fi
10884 shlibpath_var=LD_LIBRARY_PATH
10885 shlibpath_overrides_runpath=yes
10886 hardcode_into_libs=yes
10887 ;;
10888
10889 newsos6)
10890 version_type=linux
10891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10892 shlibpath_var=LD_LIBRARY_PATH
10893 shlibpath_overrides_runpath=yes
10894 ;;
10895
10896 *nto* | *qnx*)
10897 version_type=qnx
10898 need_lib_prefix=no
10899 need_version=no
10900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10901 soname_spec='${libname}${release}${shared_ext}$major'
10902 shlibpath_var=LD_LIBRARY_PATH
10903 shlibpath_overrides_runpath=no
10904 hardcode_into_libs=yes
10905 dynamic_linker='ldqnx.so'
10906 ;;
10907
10908 openbsd*)
10909 version_type=sunos
10910 sys_lib_dlsearch_path_spec="/usr/lib"
10911 need_lib_prefix=no
10912 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10913 case $host_os in
10914 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10915 *) need_version=no ;;
10916 esac
10917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10918 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10919 shlibpath_var=LD_LIBRARY_PATH
10920 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10921 case $host_os in
10922 openbsd2.[89] | openbsd2.[89].*)
10923 shlibpath_overrides_runpath=no
10924 ;;
10925 *)
10926 shlibpath_overrides_runpath=yes
10927 ;;
10928 esac
10929 else
10930 shlibpath_overrides_runpath=yes
10931 fi
10932 ;;
10933
10934 os2*)
10935 libname_spec='$name'
10936 shrext_cmds=".dll"
10937 need_lib_prefix=no
10938 library_names_spec='$libname${shared_ext} $libname.a'
10939 dynamic_linker='OS/2 ld.exe'
10940 shlibpath_var=LIBPATH
10941 ;;
10942
10943 osf3* | osf4* | osf5*)
10944 version_type=osf
10945 need_lib_prefix=no
10946 need_version=no
10947 soname_spec='${libname}${release}${shared_ext}$major'
10948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10949 shlibpath_var=LD_LIBRARY_PATH
10950 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10951 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10952 ;;
10953
10954 rdos*)
10955 dynamic_linker=no
10956 ;;
10957
10958 solaris*)
10959 version_type=linux
10960 need_lib_prefix=no
10961 need_version=no
10962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10963 soname_spec='${libname}${release}${shared_ext}$major'
10964 shlibpath_var=LD_LIBRARY_PATH
10965 shlibpath_overrides_runpath=yes
10966 hardcode_into_libs=yes
10967 # ldd complains unless libraries are executable
10968 postinstall_cmds='chmod +x $lib'
10969 ;;
10970
10971 sunos4*)
10972 version_type=sunos
10973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10974 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10975 shlibpath_var=LD_LIBRARY_PATH
10976 shlibpath_overrides_runpath=yes
10977 if test "$with_gnu_ld" = yes; then
10978 need_lib_prefix=no
10979 fi
10980 need_version=yes
10981 ;;
10982
10983 sysv4 | sysv4.3*)
10984 version_type=linux
10985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10986 soname_spec='${libname}${release}${shared_ext}$major'
10987 shlibpath_var=LD_LIBRARY_PATH
10988 case $host_vendor in
10989 sni)
10990 shlibpath_overrides_runpath=no
10991 need_lib_prefix=no
10992 runpath_var=LD_RUN_PATH
10993 ;;
10994 siemens)
10995 need_lib_prefix=no
10996 ;;
10997 motorola)
10998 need_lib_prefix=no
10999 need_version=no
11000 shlibpath_overrides_runpath=no
11001 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11002 ;;
11003 esac
11004 ;;
11005
11006 sysv4*MP*)
11007 if test -d /usr/nec ;then
11008 version_type=linux
11009 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11010 soname_spec='$libname${shared_ext}.$major'
11011 shlibpath_var=LD_LIBRARY_PATH
11012 fi
11013 ;;
11014
11015 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11016 version_type=freebsd-elf
11017 need_lib_prefix=no
11018 need_version=no
11019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11020 soname_spec='${libname}${release}${shared_ext}$major'
11021 shlibpath_var=LD_LIBRARY_PATH
11022 shlibpath_overrides_runpath=yes
11023 hardcode_into_libs=yes
11024 if test "$with_gnu_ld" = yes; then
11025 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11026 else
11027 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11028 case $host_os in
11029 sco3.2v5*)
11030 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11031 ;;
11032 esac
11033 fi
11034 sys_lib_dlsearch_path_spec='/usr/lib'
11035 ;;
11036
11037 tpf*)
11038 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11039 version_type=linux
11040 need_lib_prefix=no
11041 need_version=no
11042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11043 shlibpath_var=LD_LIBRARY_PATH
11044 shlibpath_overrides_runpath=no
11045 hardcode_into_libs=yes
11046 ;;
11047
11048 uts4*)
11049 version_type=linux
11050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11051 soname_spec='${libname}${release}${shared_ext}$major'
11052 shlibpath_var=LD_LIBRARY_PATH
11053 ;;
11054
11055 *)
11056 dynamic_linker=no
11057 ;;
11058 esac
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11060 $as_echo "$dynamic_linker" >&6; }
11061 test "$dynamic_linker" = no && can_build_shared=no
11062
11063 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11064 if test "$GCC" = yes; then
11065 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11066 fi
11067
11068 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11069 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11070 fi
11071 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11072 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11073 fi
11074
11075
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11167 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11168 hardcode_action=
11169 if test -n "$hardcode_libdir_flag_spec" ||
11170 test -n "$runpath_var" ||
11171 test "X$hardcode_automatic" = "Xyes" ; then
11172
11173 # We can hardcode non-existent directories.
11174 if test "$hardcode_direct" != no &&
11175 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11176 # have to relink, otherwise we might link with an installed library
11177 # when we should be linking with a yet-to-be-installed one
11178 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11179 test "$hardcode_minus_L" != no; then
11180 # Linking always hardcodes the temporary library directory.
11181 hardcode_action=relink
11182 else
11183 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11184 hardcode_action=immediate
11185 fi
11186 else
11187 # We cannot hardcode anything, or else we can only hardcode existing
11188 # directories.
11189 hardcode_action=unsupported
11190 fi
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11192 $as_echo "$hardcode_action" >&6; }
11193
11194 if test "$hardcode_action" = relink ||
11195 test "$inherit_rpath" = yes; then
11196 # Fast installation is not supported
11197 enable_fast_install=no
11198 elif test "$shlibpath_overrides_runpath" = yes ||
11199 test "$enable_shared" = no; then
11200 # Fast installation is not necessary
11201 enable_fast_install=needless
11202 fi
11203
11204
11205
11206
11207
11208
11209 if test "x$enable_dlopen" != xyes; then
11210 enable_dlopen=unknown
11211 enable_dlopen_self=unknown
11212 enable_dlopen_self_static=unknown
11213 else
11214 lt_cv_dlopen=no
11215 lt_cv_dlopen_libs=
11216
11217 case $host_os in
11218 beos*)
11219 lt_cv_dlopen="load_add_on"
11220 lt_cv_dlopen_libs=
11221 lt_cv_dlopen_self=yes
11222 ;;
11223
11224 mingw* | pw32* | cegcc*)
11225 lt_cv_dlopen="LoadLibrary"
11226 lt_cv_dlopen_libs=
11227 ;;
11228
11229 cygwin*)
11230 lt_cv_dlopen="dlopen"
11231 lt_cv_dlopen_libs=
11232 ;;
11233
11234 darwin*)
11235 # if libdl is installed we need to link against it
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11237 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11238 if ${ac_cv_lib_dl_dlopen+:} false; then :
11239 $as_echo_n "(cached) " >&6
11240 else
11241 ac_check_lib_save_LIBS=$LIBS
11242 LIBS="-ldl $LIBS"
11243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11244 /* end confdefs.h. */
11245
11246 /* Override any GCC internal prototype to avoid an error.
11247 Use char because int might match the return type of a GCC
11248 builtin and then its argument prototype would still apply. */
11249 #ifdef __cplusplus
11250 extern "C"
11251 #endif
11252 char dlopen ();
11253 int
11254 main ()
11255 {
11256 return dlopen ();
11257 ;
11258 return 0;
11259 }
11260 _ACEOF
11261 if ac_fn_c_try_link "$LINENO"; then :
11262 ac_cv_lib_dl_dlopen=yes
11263 else
11264 ac_cv_lib_dl_dlopen=no
11265 fi
11266 rm -f core conftest.err conftest.$ac_objext \
11267 conftest$ac_exeext conftest.$ac_ext
11268 LIBS=$ac_check_lib_save_LIBS
11269 fi
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11271 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11272 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11273 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11274 else
11275
11276 lt_cv_dlopen="dyld"
11277 lt_cv_dlopen_libs=
11278 lt_cv_dlopen_self=yes
11279
11280 fi
11281
11282 ;;
11283
11284 *)
11285 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11286 if test "x$ac_cv_func_shl_load" = xyes; then :
11287 lt_cv_dlopen="shl_load"
11288 else
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11290 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11291 if ${ac_cv_lib_dld_shl_load+:} false; then :
11292 $as_echo_n "(cached) " >&6
11293 else
11294 ac_check_lib_save_LIBS=$LIBS
11295 LIBS="-ldld $LIBS"
11296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11297 /* end confdefs.h. */
11298
11299 /* Override any GCC internal prototype to avoid an error.
11300 Use char because int might match the return type of a GCC
11301 builtin and then its argument prototype would still apply. */
11302 #ifdef __cplusplus
11303 extern "C"
11304 #endif
11305 char shl_load ();
11306 int
11307 main ()
11308 {
11309 return shl_load ();
11310 ;
11311 return 0;
11312 }
11313 _ACEOF
11314 if ac_fn_c_try_link "$LINENO"; then :
11315 ac_cv_lib_dld_shl_load=yes
11316 else
11317 ac_cv_lib_dld_shl_load=no
11318 fi
11319 rm -f core conftest.err conftest.$ac_objext \
11320 conftest$ac_exeext conftest.$ac_ext
11321 LIBS=$ac_check_lib_save_LIBS
11322 fi
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11324 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11325 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11326 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11327 else
11328 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11329 if test "x$ac_cv_func_dlopen" = xyes; then :
11330 lt_cv_dlopen="dlopen"
11331 else
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11333 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11334 if ${ac_cv_lib_dl_dlopen+:} false; then :
11335 $as_echo_n "(cached) " >&6
11336 else
11337 ac_check_lib_save_LIBS=$LIBS
11338 LIBS="-ldl $LIBS"
11339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11340 /* end confdefs.h. */
11341
11342 /* Override any GCC internal prototype to avoid an error.
11343 Use char because int might match the return type of a GCC
11344 builtin and then its argument prototype would still apply. */
11345 #ifdef __cplusplus
11346 extern "C"
11347 #endif
11348 char dlopen ();
11349 int
11350 main ()
11351 {
11352 return dlopen ();
11353 ;
11354 return 0;
11355 }
11356 _ACEOF
11357 if ac_fn_c_try_link "$LINENO"; then :
11358 ac_cv_lib_dl_dlopen=yes
11359 else
11360 ac_cv_lib_dl_dlopen=no
11361 fi
11362 rm -f core conftest.err conftest.$ac_objext \
11363 conftest$ac_exeext conftest.$ac_ext
11364 LIBS=$ac_check_lib_save_LIBS
11365 fi
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11367 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11368 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11369 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11370 else
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11372 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11373 if ${ac_cv_lib_svld_dlopen+:} false; then :
11374 $as_echo_n "(cached) " >&6
11375 else
11376 ac_check_lib_save_LIBS=$LIBS
11377 LIBS="-lsvld $LIBS"
11378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11379 /* end confdefs.h. */
11380
11381 /* Override any GCC internal prototype to avoid an error.
11382 Use char because int might match the return type of a GCC
11383 builtin and then its argument prototype would still apply. */
11384 #ifdef __cplusplus
11385 extern "C"
11386 #endif
11387 char dlopen ();
11388 int
11389 main ()
11390 {
11391 return dlopen ();
11392 ;
11393 return 0;
11394 }
11395 _ACEOF
11396 if ac_fn_c_try_link "$LINENO"; then :
11397 ac_cv_lib_svld_dlopen=yes
11398 else
11399 ac_cv_lib_svld_dlopen=no
11400 fi
11401 rm -f core conftest.err conftest.$ac_objext \
11402 conftest$ac_exeext conftest.$ac_ext
11403 LIBS=$ac_check_lib_save_LIBS
11404 fi
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11406 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11407 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11408 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11409 else
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11411 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11412 if ${ac_cv_lib_dld_dld_link+:} false; then :
11413 $as_echo_n "(cached) " >&6
11414 else
11415 ac_check_lib_save_LIBS=$LIBS
11416 LIBS="-ldld $LIBS"
11417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11418 /* end confdefs.h. */
11419
11420 /* Override any GCC internal prototype to avoid an error.
11421 Use char because int might match the return type of a GCC
11422 builtin and then its argument prototype would still apply. */
11423 #ifdef __cplusplus
11424 extern "C"
11425 #endif
11426 char dld_link ();
11427 int
11428 main ()
11429 {
11430 return dld_link ();
11431 ;
11432 return 0;
11433 }
11434 _ACEOF
11435 if ac_fn_c_try_link "$LINENO"; then :
11436 ac_cv_lib_dld_dld_link=yes
11437 else
11438 ac_cv_lib_dld_dld_link=no
11439 fi
11440 rm -f core conftest.err conftest.$ac_objext \
11441 conftest$ac_exeext conftest.$ac_ext
11442 LIBS=$ac_check_lib_save_LIBS
11443 fi
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11445 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11446 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11447 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11448 fi
11449
11450
11451 fi
11452
11453
11454 fi
11455
11456
11457 fi
11458
11459
11460 fi
11461
11462
11463 fi
11464
11465 ;;
11466 esac
11467
11468 if test "x$lt_cv_dlopen" != xno; then
11469 enable_dlopen=yes
11470 else
11471 enable_dlopen=no
11472 fi
11473
11474 case $lt_cv_dlopen in
11475 dlopen)
11476 save_CPPFLAGS="$CPPFLAGS"
11477 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11478
11479 save_LDFLAGS="$LDFLAGS"
11480 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11481
11482 save_LIBS="$LIBS"
11483 LIBS="$lt_cv_dlopen_libs $LIBS"
11484
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11486 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11487 if ${lt_cv_dlopen_self+:} false; then :
11488 $as_echo_n "(cached) " >&6
11489 else
11490 if test "$cross_compiling" = yes; then :
11491 lt_cv_dlopen_self=cross
11492 else
11493 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11494 lt_status=$lt_dlunknown
11495 cat > conftest.$ac_ext <<_LT_EOF
11496 #line 11496 "configure"
11497 #include "confdefs.h"
11498
11499 #if HAVE_DLFCN_H
11500 #include <dlfcn.h>
11501 #endif
11502
11503 #include <stdio.h>
11504
11505 #ifdef RTLD_GLOBAL
11506 # define LT_DLGLOBAL RTLD_GLOBAL
11507 #else
11508 # ifdef DL_GLOBAL
11509 # define LT_DLGLOBAL DL_GLOBAL
11510 # else
11511 # define LT_DLGLOBAL 0
11512 # endif
11513 #endif
11514
11515 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11516 find out it does not work in some platform. */
11517 #ifndef LT_DLLAZY_OR_NOW
11518 # ifdef RTLD_LAZY
11519 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11520 # else
11521 # ifdef DL_LAZY
11522 # define LT_DLLAZY_OR_NOW DL_LAZY
11523 # else
11524 # ifdef RTLD_NOW
11525 # define LT_DLLAZY_OR_NOW RTLD_NOW
11526 # else
11527 # ifdef DL_NOW
11528 # define LT_DLLAZY_OR_NOW DL_NOW
11529 # else
11530 # define LT_DLLAZY_OR_NOW 0
11531 # endif
11532 # endif
11533 # endif
11534 # endif
11535 #endif
11536
11537 /* When -fvisbility=hidden is used, assume the code has been annotated
11538 correspondingly for the symbols needed. */
11539 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11540 void fnord () __attribute__((visibility("default")));
11541 #endif
11542
11543 void fnord () { int i=42; }
11544 int main ()
11545 {
11546 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11547 int status = $lt_dlunknown;
11548
11549 if (self)
11550 {
11551 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11552 else
11553 {
11554 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11555 else puts (dlerror ());
11556 }
11557 /* dlclose (self); */
11558 }
11559 else
11560 puts (dlerror ());
11561
11562 return status;
11563 }
11564 _LT_EOF
11565 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11566 (eval $ac_link) 2>&5
11567 ac_status=$?
11568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11569 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11570 (./conftest; exit; ) >&5 2>/dev/null
11571 lt_status=$?
11572 case x$lt_status in
11573 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11574 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11575 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11576 esac
11577 else :
11578 # compilation failed
11579 lt_cv_dlopen_self=no
11580 fi
11581 fi
11582 rm -fr conftest*
11583
11584
11585 fi
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11587 $as_echo "$lt_cv_dlopen_self" >&6; }
11588
11589 if test "x$lt_cv_dlopen_self" = xyes; then
11590 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11592 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11593 if ${lt_cv_dlopen_self_static+:} false; then :
11594 $as_echo_n "(cached) " >&6
11595 else
11596 if test "$cross_compiling" = yes; then :
11597 lt_cv_dlopen_self_static=cross
11598 else
11599 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11600 lt_status=$lt_dlunknown
11601 cat > conftest.$ac_ext <<_LT_EOF
11602 #line 11602 "configure"
11603 #include "confdefs.h"
11604
11605 #if HAVE_DLFCN_H
11606 #include <dlfcn.h>
11607 #endif
11608
11609 #include <stdio.h>
11610
11611 #ifdef RTLD_GLOBAL
11612 # define LT_DLGLOBAL RTLD_GLOBAL
11613 #else
11614 # ifdef DL_GLOBAL
11615 # define LT_DLGLOBAL DL_GLOBAL
11616 # else
11617 # define LT_DLGLOBAL 0
11618 # endif
11619 #endif
11620
11621 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11622 find out it does not work in some platform. */
11623 #ifndef LT_DLLAZY_OR_NOW
11624 # ifdef RTLD_LAZY
11625 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11626 # else
11627 # ifdef DL_LAZY
11628 # define LT_DLLAZY_OR_NOW DL_LAZY
11629 # else
11630 # ifdef RTLD_NOW
11631 # define LT_DLLAZY_OR_NOW RTLD_NOW
11632 # else
11633 # ifdef DL_NOW
11634 # define LT_DLLAZY_OR_NOW DL_NOW
11635 # else
11636 # define LT_DLLAZY_OR_NOW 0
11637 # endif
11638 # endif
11639 # endif
11640 # endif
11641 #endif
11642
11643 /* When -fvisbility=hidden is used, assume the code has been annotated
11644 correspondingly for the symbols needed. */
11645 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11646 void fnord () __attribute__((visibility("default")));
11647 #endif
11648
11649 void fnord () { int i=42; }
11650 int main ()
11651 {
11652 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11653 int status = $lt_dlunknown;
11654
11655 if (self)
11656 {
11657 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11658 else
11659 {
11660 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11661 else puts (dlerror ());
11662 }
11663 /* dlclose (self); */
11664 }
11665 else
11666 puts (dlerror ());
11667
11668 return status;
11669 }
11670 _LT_EOF
11671 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11672 (eval $ac_link) 2>&5
11673 ac_status=$?
11674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11675 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11676 (./conftest; exit; ) >&5 2>/dev/null
11677 lt_status=$?
11678 case x$lt_status in
11679 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11680 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11681 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11682 esac
11683 else :
11684 # compilation failed
11685 lt_cv_dlopen_self_static=no
11686 fi
11687 fi
11688 rm -fr conftest*
11689
11690
11691 fi
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11693 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11694 fi
11695
11696 CPPFLAGS="$save_CPPFLAGS"
11697 LDFLAGS="$save_LDFLAGS"
11698 LIBS="$save_LIBS"
11699 ;;
11700 esac
11701
11702 case $lt_cv_dlopen_self in
11703 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11704 *) enable_dlopen_self=unknown ;;
11705 esac
11706
11707 case $lt_cv_dlopen_self_static in
11708 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11709 *) enable_dlopen_self_static=unknown ;;
11710 esac
11711 fi
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729 striplib=
11730 old_striplib=
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11732 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11733 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11734 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11735 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11737 $as_echo "yes" >&6; }
11738 else
11739 # FIXME - insert some real tests, host_os isn't really good enough
11740 case $host_os in
11741 darwin*)
11742 if test -n "$STRIP" ; then
11743 striplib="$STRIP -x"
11744 old_striplib="$STRIP -S"
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11746 $as_echo "yes" >&6; }
11747 else
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11749 $as_echo "no" >&6; }
11750 fi
11751 ;;
11752 *)
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11754 $as_echo "no" >&6; }
11755 ;;
11756 esac
11757 fi
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770 # Report which library types will actually be built
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11772 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11774 $as_echo "$can_build_shared" >&6; }
11775
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11777 $as_echo_n "checking whether to build shared libraries... " >&6; }
11778 test "$can_build_shared" = "no" && enable_shared=no
11779
11780 # On AIX, shared libraries and static libraries use the same namespace, and
11781 # are all built from PIC.
11782 case $host_os in
11783 aix3*)
11784 test "$enable_shared" = yes && enable_static=no
11785 if test -n "$RANLIB"; then
11786 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11787 postinstall_cmds='$RANLIB $lib'
11788 fi
11789 ;;
11790
11791 aix[4-9]*)
11792 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11793 test "$enable_shared" = yes && enable_static=no
11794 fi
11795 ;;
11796 esac
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11798 $as_echo "$enable_shared" >&6; }
11799
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11801 $as_echo_n "checking whether to build static libraries... " >&6; }
11802 # Make sure either enable_shared or enable_static is yes.
11803 test "$enable_shared" = yes || enable_static=yes
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11805 $as_echo "$enable_static" >&6; }
11806
11807
11808
11809
11810 fi
11811 ac_ext=c
11812 ac_cpp='$CPP $CPPFLAGS'
11813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11816
11817 CC="$lt_save_CC"
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831 ac_config_commands="$ac_config_commands libtool"
11832
11833
11834
11835
11836 # Only expand once:
11837
11838
11839
11840
11841
11842 gdc_save_DFLAGS=$GDCFLAGS
11843 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
11844
11845
11846 # Source file extension for D test sources.
11847 ac_ext=d
11848
11849 # Object file extension for compiled D test sources.
11850 objext=o
11851 objext_D=$objext
11852
11853 # Code to be used in simple compile tests
11854 lt_simple_compile_test_code="module mod; extern(C) int main() { return 0; }"
11855
11856 # Code to be used in simple link tests
11857 lt_simple_link_test_code='module mod; extern(C) int main() { return 0; }'
11858
11859 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11860
11861
11862
11863
11864
11865
11866 # If no C compiler was specified, use CC.
11867 LTCC=${LTCC-"$CC"}
11868
11869 # If no C compiler flags were specified, use CFLAGS.
11870 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11871
11872 # Allow CC to be a program name with arguments.
11873 compiler=$CC
11874
11875
11876 # save warnings/boilerplate of simple test code
11877 ac_outfile=conftest.$ac_objext
11878 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11879 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11880 _lt_compiler_boilerplate=`cat conftest.err`
11881 $RM conftest*
11882
11883 ac_outfile=conftest.$ac_objext
11884 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11885 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11886 _lt_linker_boilerplate=`cat conftest.err`
11887 $RM -r conftest*
11888
11889
11890 # Allow CC to be a program name with arguments.
11891 lt_save_CC=$CC
11892 lt_save_CFLAGS=$CFLAGS
11893 lt_save_DFLAGS=$GDCFLAGS
11894 lt_save_GCC=$GCC
11895 GCC=yes
11896 CC=${GDC-"gdc"}
11897 # Need to specify location for object.d
11898 GDCFLAGS="-nophoboslib $GDCFLAGS"
11899 CFLAGS=$GDCFLAGS
11900 compiler=$CC
11901 compiler_D=$CC
11902 LD_D=$CC
11903 for cc_temp in $compiler""; do
11904 case $cc_temp in
11905 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11906 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11907 \-*) ;;
11908 *) break;;
11909 esac
11910 done
11911 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11912
11913
11914 # GDC did not exist at the time GCC didn't implicitly link libc in.
11915 archive_cmds_need_lc_D=no
11916
11917 old_archive_cmds_D=$old_archive_cmds
11918 reload_flag_D=$reload_flag
11919 reload_cmds_D=$reload_cmds
11920
11921 ## CAVEAT EMPTOR:
11922 ## There is no encapsulation within the following macros, do not change
11923 ## the running order or otherwise move them around unless you know exactly
11924 ## what you are doing...
11925 if test -n "$compiler"; then
11926
11927 lt_prog_compiler_no_builtin_flag_D=
11928
11929 if test "$GCC" = yes; then
11930 case $cc_basename in
11931 nvcc*)
11932 lt_prog_compiler_no_builtin_flag_D=' -Xcompiler -fno-builtin' ;;
11933 *)
11934 lt_prog_compiler_no_builtin_flag_D=' -fno-builtin' ;;
11935 esac
11936
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11938 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11939 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11940 $as_echo_n "(cached) " >&6
11941 else
11942 lt_cv_prog_compiler_rtti_exceptions=no
11943 ac_outfile=conftest.$ac_objext
11944 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11945 lt_compiler_flag="-fno-rtti -fno-exceptions"
11946 # Insert the option either (1) after the last *FLAGS variable, or
11947 # (2) before a word containing "conftest.", or (3) at the end.
11948 # Note that $ac_compile itself does not contain backslashes and begins
11949 # with a dollar sign (not a hyphen), so the echo should work correctly.
11950 # The option is referenced via a variable to avoid confusing sed.
11951 lt_compile=`echo "$ac_compile" | $SED \
11952 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11953 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11954 -e 's:$: $lt_compiler_flag:'`
11955 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11956 (eval "$lt_compile" 2>conftest.err)
11957 ac_status=$?
11958 cat conftest.err >&5
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 if (exit $ac_status) && test -s "$ac_outfile"; then
11961 # The compiler can only warn and ignore the option if not recognized
11962 # So say no if there are warnings other than the usual output.
11963 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11964 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11965 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11966 lt_cv_prog_compiler_rtti_exceptions=yes
11967 fi
11968 fi
11969 $RM conftest*
11970
11971 fi
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11973 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11974
11975 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11976 lt_prog_compiler_no_builtin_flag_D="$lt_prog_compiler_no_builtin_flag_D -fno-rtti -fno-exceptions"
11977 else
11978 :
11979 fi
11980
11981 fi
11982
11983
11984
11985 lt_prog_compiler_wl_D=
11986 lt_prog_compiler_pic_D=
11987 lt_prog_compiler_static_D=
11988
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11990 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11991
11992 if test "$GCC" = yes; then
11993 lt_prog_compiler_wl_D='-Wl,'
11994 lt_prog_compiler_static_D='-static'
11995
11996 case $host_os in
11997 aix*)
11998 # All AIX code is PIC.
11999 if test "$host_cpu" = ia64; then
12000 # AIX 5 now supports IA64 processor
12001 lt_prog_compiler_static_D='-Bstatic'
12002 fi
12003 lt_prog_compiler_pic_D='-fPIC'
12004 ;;
12005
12006 amigaos*)
12007 case $host_cpu in
12008 powerpc)
12009 # see comment about AmigaOS4 .so support
12010 lt_prog_compiler_pic_D='-fPIC'
12011 ;;
12012 m68k)
12013 # FIXME: we need at least 68020 code to build shared libraries, but
12014 # adding the `-m68020' flag to GCC prevents building anything better,
12015 # like `-m68040'.
12016 lt_prog_compiler_pic_D='-m68020 -resident32 -malways-restore-a4'
12017 ;;
12018 esac
12019 ;;
12020
12021 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12022 # PIC is the default for these OSes.
12023 ;;
12024
12025 mingw* | cygwin* | pw32* | os2* | cegcc*)
12026 # This hack is so that the source file can tell whether it is being
12027 # built for inclusion in a dll (and should export symbols for example).
12028 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12029 # (--disable-auto-import) libraries
12030 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12031 ;;
12032
12033 darwin* | rhapsody*)
12034 # PIC is the default on this platform
12035 # Common symbols not allowed in MH_DYLIB files
12036 lt_prog_compiler_pic_D='-fno-common'
12037 ;;
12038
12039 haiku*)
12040 # PIC is the default for Haiku.
12041 # The "-static" flag exists, but is broken.
12042 lt_prog_compiler_static_D=
12043 ;;
12044
12045 hpux*)
12046 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12047 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12048 # sets the default TLS model and affects inlining.
12049 case $host_cpu in
12050 hppa*64*)
12051 # +Z the default
12052 ;;
12053 *)
12054 lt_prog_compiler_pic_D='-fPIC'
12055 ;;
12056 esac
12057 ;;
12058
12059 interix[3-9]*)
12060 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12061 # Instead, we relocate shared libraries at runtime.
12062 ;;
12063
12064 msdosdjgpp*)
12065 # Just because we use GCC doesn't mean we suddenly get shared libraries
12066 # on systems that don't support them.
12067 lt_prog_compiler_can_build_shared_D=no
12068 enable_shared=no
12069 ;;
12070
12071 *nto* | *qnx*)
12072 # QNX uses GNU C++, but need to define -shared option too, otherwise
12073 # it will coredump.
12074 lt_prog_compiler_pic_D='-fPIC -shared'
12075 ;;
12076
12077 sysv4*MP*)
12078 if test -d /usr/nec; then
12079 lt_prog_compiler_pic_D=-Kconform_pic
12080 fi
12081 ;;
12082
12083 *)
12084 lt_prog_compiler_pic_D='-fPIC'
12085 ;;
12086 esac
12087
12088 case $cc_basename in
12089 nvcc*) # Cuda Compiler Driver 2.2
12090 lt_prog_compiler_wl_D='-Xlinker '
12091 lt_prog_compiler_pic_D='-Xcompiler -fPIC'
12092 ;;
12093 esac
12094 else
12095 # PORTME Check for flag to pass linker flags through the system compiler.
12096 case $host_os in
12097 aix*)
12098 lt_prog_compiler_wl_D='-Wl,'
12099 if test "$host_cpu" = ia64; then
12100 # AIX 5 now supports IA64 processor
12101 lt_prog_compiler_static_D='-Bstatic'
12102 else
12103 lt_prog_compiler_static_D='-bnso -bI:/lib/syscalls.exp'
12104 fi
12105 ;;
12106
12107 mingw* | cygwin* | pw32* | os2* | cegcc*)
12108 # This hack is so that the source file can tell whether it is being
12109 # built for inclusion in a dll (and should export symbols for example).
12110 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12111 ;;
12112
12113 hpux9* | hpux10* | hpux11*)
12114 lt_prog_compiler_wl_D='-Wl,'
12115 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12116 # not for PA HP-UX.
12117 case $host_cpu in
12118 hppa*64*|ia64*)
12119 # +Z the default
12120 ;;
12121 *)
12122 lt_prog_compiler_pic_D='+Z'
12123 ;;
12124 esac
12125 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12126 lt_prog_compiler_static_D='${wl}-a ${wl}archive'
12127 ;;
12128
12129 irix5* | irix6* | nonstopux*)
12130 lt_prog_compiler_wl_D='-Wl,'
12131 # PIC (with -KPIC) is the default.
12132 lt_prog_compiler_static_D='-non_shared'
12133 ;;
12134
12135 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12136 case $cc_basename in
12137 # old Intel for x86_64 which still supported -KPIC.
12138 ecc*)
12139 lt_prog_compiler_wl_D='-Wl,'
12140 lt_prog_compiler_pic_D='-KPIC'
12141 lt_prog_compiler_static_D='-static'
12142 ;;
12143 # icc used to be incompatible with GCC.
12144 # ICC 10 doesn't accept -KPIC any more.
12145 icc* | ifort*)
12146 lt_prog_compiler_wl_D='-Wl,'
12147 lt_prog_compiler_pic_D='-fPIC'
12148 lt_prog_compiler_static_D='-static'
12149 ;;
12150 # Lahey Fortran 8.1.
12151 lf95*)
12152 lt_prog_compiler_wl_D='-Wl,'
12153 lt_prog_compiler_pic_D='--shared'
12154 lt_prog_compiler_static_D='--static'
12155 ;;
12156 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12157 # Portland Group compilers (*not* the Pentium gcc compiler,
12158 # which looks to be a dead project)
12159 lt_prog_compiler_wl_D='-Wl,'
12160 lt_prog_compiler_pic_D='-fpic'
12161 lt_prog_compiler_static_D='-Bstatic'
12162 ;;
12163 ccc*)
12164 lt_prog_compiler_wl_D='-Wl,'
12165 # All Alpha code is PIC.
12166 lt_prog_compiler_static_D='-non_shared'
12167 ;;
12168 xl* | bgxl* | bgf* | mpixl*)
12169 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12170 lt_prog_compiler_wl_D='-Wl,'
12171 lt_prog_compiler_pic_D='-qpic'
12172 lt_prog_compiler_static_D='-qstaticlink'
12173 ;;
12174 *)
12175 case `$CC -V 2>&1 | sed 5q` in
12176 *Sun\ F* | *Sun*Fortran*)
12177 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12178 lt_prog_compiler_pic_D='-KPIC'
12179 lt_prog_compiler_static_D='-Bstatic'
12180 lt_prog_compiler_wl_D=''
12181 ;;
12182 *Sun\ C*)
12183 # Sun C 5.9
12184 lt_prog_compiler_pic_D='-KPIC'
12185 lt_prog_compiler_static_D='-Bstatic'
12186 lt_prog_compiler_wl_D='-Wl,'
12187 ;;
12188 esac
12189 ;;
12190 esac
12191 ;;
12192
12193 newsos6)
12194 lt_prog_compiler_pic_D='-KPIC'
12195 lt_prog_compiler_static_D='-Bstatic'
12196 ;;
12197
12198 *nto* | *qnx*)
12199 # QNX uses GNU C++, but need to define -shared option too, otherwise
12200 # it will coredump.
12201 lt_prog_compiler_pic_D='-fPIC -shared'
12202 ;;
12203
12204 osf3* | osf4* | osf5*)
12205 lt_prog_compiler_wl_D='-Wl,'
12206 # All OSF/1 code is PIC.
12207 lt_prog_compiler_static_D='-non_shared'
12208 ;;
12209
12210 rdos*)
12211 lt_prog_compiler_static_D='-non_shared'
12212 ;;
12213
12214 solaris*)
12215 lt_prog_compiler_pic_D='-KPIC'
12216 lt_prog_compiler_static_D='-Bstatic'
12217 case $cc_basename in
12218 f77* | f90* | f95*)
12219 lt_prog_compiler_wl_D='-Qoption ld ';;
12220 *)
12221 lt_prog_compiler_wl_D='-Wl,';;
12222 esac
12223 ;;
12224
12225 sunos4*)
12226 lt_prog_compiler_wl_D='-Qoption ld '
12227 lt_prog_compiler_pic_D='-PIC'
12228 lt_prog_compiler_static_D='-Bstatic'
12229 ;;
12230
12231 sysv4 | sysv4.2uw2* | sysv4.3*)
12232 lt_prog_compiler_wl_D='-Wl,'
12233 lt_prog_compiler_pic_D='-KPIC'
12234 lt_prog_compiler_static_D='-Bstatic'
12235 ;;
12236
12237 sysv4*MP*)
12238 if test -d /usr/nec ;then
12239 lt_prog_compiler_pic_D='-Kconform_pic'
12240 lt_prog_compiler_static_D='-Bstatic'
12241 fi
12242 ;;
12243
12244 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12245 lt_prog_compiler_wl_D='-Wl,'
12246 lt_prog_compiler_pic_D='-KPIC'
12247 lt_prog_compiler_static_D='-Bstatic'
12248 ;;
12249
12250 unicos*)
12251 lt_prog_compiler_wl_D='-Wl,'
12252 lt_prog_compiler_can_build_shared_D=no
12253 ;;
12254
12255 uts4*)
12256 lt_prog_compiler_pic_D='-pic'
12257 lt_prog_compiler_static_D='-Bstatic'
12258 ;;
12259
12260 *)
12261 lt_prog_compiler_can_build_shared_D=no
12262 ;;
12263 esac
12264 fi
12265
12266 case $host_os in
12267 # For platforms which do not support PIC, -DPIC is meaningless:
12268 *djgpp*)
12269 lt_prog_compiler_pic_D=
12270 ;;
12271 *)
12272 lt_prog_compiler_pic_D="$lt_prog_compiler_pic_D"
12273 ;;
12274 esac
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_D" >&5
12276 $as_echo "$lt_prog_compiler_pic_D" >&6; }
12277
12278
12279
12280 #
12281 # Check to make sure the PIC flag actually works.
12282 #
12283 if test -n "$lt_prog_compiler_pic_D"; then
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_D works" >&5
12285 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_D works... " >&6; }
12286 if ${lt_cv_prog_compiler_pic_works_D+:} false; then :
12287 $as_echo_n "(cached) " >&6
12288 else
12289 lt_cv_prog_compiler_pic_works_D=no
12290 ac_outfile=conftest.$ac_objext
12291 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12292 lt_compiler_flag="$lt_prog_compiler_pic_D"
12293 # Insert the option either (1) after the last *FLAGS variable, or
12294 # (2) before a word containing "conftest.", or (3) at the end.
12295 # Note that $ac_compile itself does not contain backslashes and begins
12296 # with a dollar sign (not a hyphen), so the echo should work correctly.
12297 # The option is referenced via a variable to avoid confusing sed.
12298 lt_compile=`echo "$ac_compile" | $SED \
12299 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12300 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12301 -e 's:$: $lt_compiler_flag:'`
12302 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12303 (eval "$lt_compile" 2>conftest.err)
12304 ac_status=$?
12305 cat conftest.err >&5
12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307 if (exit $ac_status) && test -s "$ac_outfile"; then
12308 # The compiler can only warn and ignore the option if not recognized
12309 # So say no if there are warnings other than the usual output.
12310 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12311 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12312 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12313 lt_cv_prog_compiler_pic_works_D=yes
12314 fi
12315 fi
12316 $RM conftest*
12317
12318 fi
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_D" >&5
12320 $as_echo "$lt_cv_prog_compiler_pic_works_D" >&6; }
12321
12322 if test x"$lt_cv_prog_compiler_pic_works_D" = xyes; then
12323 case $lt_prog_compiler_pic_D in
12324 "" | " "*) ;;
12325 *) lt_prog_compiler_pic_D=" $lt_prog_compiler_pic_D" ;;
12326 esac
12327 else
12328 lt_prog_compiler_pic_D=
12329 lt_prog_compiler_can_build_shared_D=no
12330 fi
12331
12332 fi
12333
12334
12335
12336 #
12337 # Check to make sure the static flag actually works.
12338 #
12339 wl=$lt_prog_compiler_wl_D eval lt_tmp_static_flag=\"$lt_prog_compiler_static_D\"
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12341 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12342 if ${lt_cv_prog_compiler_static_works_D+:} false; then :
12343 $as_echo_n "(cached) " >&6
12344 else
12345 lt_cv_prog_compiler_static_works_D=no
12346 save_LDFLAGS="$LDFLAGS"
12347 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12348 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12349 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12350 # The linker can only warn and ignore the option if not recognized
12351 # So say no if there are warnings
12352 if test -s conftest.err; then
12353 # Append any errors to the config.log.
12354 cat conftest.err 1>&5
12355 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12356 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12357 if diff conftest.exp conftest.er2 >/dev/null; then
12358 lt_cv_prog_compiler_static_works_D=yes
12359 fi
12360 else
12361 lt_cv_prog_compiler_static_works_D=yes
12362 fi
12363 fi
12364 $RM -r conftest*
12365 LDFLAGS="$save_LDFLAGS"
12366
12367 fi
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_D" >&5
12369 $as_echo "$lt_cv_prog_compiler_static_works_D" >&6; }
12370
12371 if test x"$lt_cv_prog_compiler_static_works_D" = xyes; then
12372 :
12373 else
12374 lt_prog_compiler_static_D=
12375 fi
12376
12377
12378
12379
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12381 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12382 if ${lt_cv_prog_compiler_c_o_D+:} false; then :
12383 $as_echo_n "(cached) " >&6
12384 else
12385 lt_cv_prog_compiler_c_o_D=no
12386 $RM -r conftest 2>/dev/null
12387 mkdir conftest
12388 cd conftest
12389 mkdir out
12390 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12391
12392 lt_compiler_flag="-o out/conftest2.$ac_objext"
12393 # Insert the option either (1) after the last *FLAGS variable, or
12394 # (2) before a word containing "conftest.", or (3) at the end.
12395 # Note that $ac_compile itself does not contain backslashes and begins
12396 # with a dollar sign (not a hyphen), so the echo should work correctly.
12397 lt_compile=`echo "$ac_compile" | $SED \
12398 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12399 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12400 -e 's:$: $lt_compiler_flag:'`
12401 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12402 (eval "$lt_compile" 2>out/conftest.err)
12403 ac_status=$?
12404 cat out/conftest.err >&5
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12407 then
12408 # The compiler can only warn and ignore the option if not recognized
12409 # So say no if there are warnings
12410 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12411 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12412 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12413 lt_cv_prog_compiler_c_o_D=yes
12414 fi
12415 fi
12416 chmod u+w . 2>&5
12417 $RM conftest*
12418 # SGI C++ compiler will create directory out/ii_files/ for
12419 # template instantiation
12420 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12421 $RM out/* && rmdir out
12422 cd ..
12423 $RM -r conftest
12424 $RM conftest*
12425
12426 fi
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12428 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12429
12430
12431
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12433 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12434 if ${lt_cv_prog_compiler_c_o_D+:} false; then :
12435 $as_echo_n "(cached) " >&6
12436 else
12437 lt_cv_prog_compiler_c_o_D=no
12438 $RM -r conftest 2>/dev/null
12439 mkdir conftest
12440 cd conftest
12441 mkdir out
12442 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12443
12444 lt_compiler_flag="-o out/conftest2.$ac_objext"
12445 # Insert the option either (1) after the last *FLAGS variable, or
12446 # (2) before a word containing "conftest.", or (3) at the end.
12447 # Note that $ac_compile itself does not contain backslashes and begins
12448 # with a dollar sign (not a hyphen), so the echo should work correctly.
12449 lt_compile=`echo "$ac_compile" | $SED \
12450 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12451 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12452 -e 's:$: $lt_compiler_flag:'`
12453 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12454 (eval "$lt_compile" 2>out/conftest.err)
12455 ac_status=$?
12456 cat out/conftest.err >&5
12457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12459 then
12460 # The compiler can only warn and ignore the option if not recognized
12461 # So say no if there are warnings
12462 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12463 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12464 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12465 lt_cv_prog_compiler_c_o_D=yes
12466 fi
12467 fi
12468 chmod u+w . 2>&5
12469 $RM conftest*
12470 # SGI C++ compiler will create directory out/ii_files/ for
12471 # template instantiation
12472 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12473 $RM out/* && rmdir out
12474 cd ..
12475 $RM -r conftest
12476 $RM conftest*
12477
12478 fi
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12480 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12481
12482
12483
12484
12485 hard_links="nottested"
12486 if test "$lt_cv_prog_compiler_c_o_D" = no && test "$need_locks" != no; then
12487 # do not overwrite the value of need_locks provided by the user
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12489 $as_echo_n "checking if we can lock with hard links... " >&6; }
12490 hard_links=yes
12491 $RM conftest*
12492 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12493 touch conftest.a
12494 ln conftest.a conftest.b 2>&5 || hard_links=no
12495 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12497 $as_echo "$hard_links" >&6; }
12498 if test "$hard_links" = no; then
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12500 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12501 need_locks=warn
12502 fi
12503 else
12504 need_locks=no
12505 fi
12506
12507
12508
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12510 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12511
12512 runpath_var=
12513 allow_undefined_flag_D=
12514 always_export_symbols_D=no
12515 archive_cmds_D=
12516 archive_expsym_cmds_D=
12517 compiler_needs_object_D=no
12518 enable_shared_with_static_runtimes_D=no
12519 export_dynamic_flag_spec_D=
12520 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12521 hardcode_automatic_D=no
12522 hardcode_direct_D=no
12523 hardcode_direct_absolute_D=no
12524 hardcode_libdir_flag_spec_D=
12525 hardcode_libdir_flag_spec_ld_D=
12526 hardcode_libdir_separator_D=
12527 hardcode_minus_L_D=no
12528 hardcode_shlibpath_var_D=unsupported
12529 inherit_rpath_D=no
12530 link_all_deplibs_D=unknown
12531 module_cmds_D=
12532 module_expsym_cmds_D=
12533 old_archive_from_new_cmds_D=
12534 old_archive_from_expsyms_cmds_D=
12535 thread_safe_flag_spec_D=
12536 whole_archive_flag_spec_D=
12537 # include_expsyms should be a list of space-separated symbols to be *always*
12538 # included in the symbol list
12539 include_expsyms_D=
12540 # exclude_expsyms can be an extended regexp of symbols to exclude
12541 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12542 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12543 # as well as any symbol that contains `d'.
12544 exclude_expsyms_D='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12545 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12546 # platforms (ab)use it in PIC code, but their linkers get confused if
12547 # the symbol is explicitly referenced. Since portable code cannot
12548 # rely on this symbol name, it's probably fine to never include it in
12549 # preloaded symbol tables.
12550 # Exclude shared library initialization/finalization symbols.
12551 extract_expsyms_cmds=
12552
12553 case $host_os in
12554 cygwin* | mingw* | pw32* | cegcc*)
12555 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12556 # When not using gcc, we currently assume that we are using
12557 # Microsoft Visual C++.
12558 if test "$GCC" != yes; then
12559 with_gnu_ld=no
12560 fi
12561 ;;
12562 interix*)
12563 # we just hope/assume this is gcc and not c89 (= MSVC++)
12564 with_gnu_ld=yes
12565 ;;
12566 openbsd*)
12567 with_gnu_ld=no
12568 ;;
12569 esac
12570
12571 ld_shlibs_D=yes
12572
12573 # On some targets, GNU ld is compatible enough with the native linker
12574 # that we're better off using the native interface for both.
12575 lt_use_gnu_ld_interface=no
12576 if test "$with_gnu_ld" = yes; then
12577 case $host_os in
12578 aix*)
12579 # The AIX port of GNU ld has always aspired to compatibility
12580 # with the native linker. However, as the warning in the GNU ld
12581 # block says, versions before 2.19.5* couldn't really create working
12582 # shared libraries, regardless of the interface used.
12583 case `$LD -v 2>&1` in
12584 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12585 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12586 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12587 *)
12588 lt_use_gnu_ld_interface=yes
12589 ;;
12590 esac
12591 ;;
12592 *)
12593 lt_use_gnu_ld_interface=yes
12594 ;;
12595 esac
12596 fi
12597
12598 if test "$lt_use_gnu_ld_interface" = yes; then
12599 # If archive_cmds runs LD, not CC, wlarc should be empty
12600 wlarc='${wl}'
12601
12602 # Set some defaults for GNU ld with shared library support. These
12603 # are reset later if shared libraries are not supported. Putting them
12604 # here allows them to be overridden if necessary.
12605 runpath_var=LD_RUN_PATH
12606 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12607 export_dynamic_flag_spec_D='${wl}--export-dynamic'
12608 # ancient GNU ld didn't support --whole-archive et. al.
12609 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12610 whole_archive_flag_spec_D="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12611 else
12612 whole_archive_flag_spec_D=
12613 fi
12614 supports_anon_versioning=no
12615 case `$LD -v 2>&1` in
12616 *GNU\ gold*) supports_anon_versioning=yes ;;
12617 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12618 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12619 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12620 *\ 2.11.*) ;; # other 2.11 versions
12621 *) supports_anon_versioning=yes ;;
12622 esac
12623
12624 # See if GNU ld supports shared libraries.
12625 case $host_os in
12626 aix[3-9]*)
12627 # On AIX/PPC, the GNU linker is very broken
12628 if test "$host_cpu" != ia64; then
12629 ld_shlibs_D=no
12630 cat <<_LT_EOF 1>&2
12631
12632 *** Warning: the GNU linker, at least up to release 2.19, is reported
12633 *** to be unable to reliably create shared libraries on AIX.
12634 *** Therefore, libtool is disabling shared libraries support. If you
12635 *** really care for shared libraries, you may want to install binutils
12636 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12637 *** You will then need to restart the configuration process.
12638
12639 _LT_EOF
12640 fi
12641 ;;
12642
12643 amigaos*)
12644 case $host_cpu in
12645 powerpc)
12646 # see comment about AmigaOS4 .so support
12647 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12648 archive_expsym_cmds_D=''
12649 ;;
12650 m68k)
12651 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)'
12652 hardcode_libdir_flag_spec_D='-L$libdir'
12653 hardcode_minus_L_D=yes
12654 ;;
12655 esac
12656 ;;
12657
12658 beos*)
12659 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12660 allow_undefined_flag_D=unsupported
12661 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12662 # support --undefined. This deserves some investigation. FIXME
12663 archive_cmds_D='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12664 else
12665 ld_shlibs_D=no
12666 fi
12667 ;;
12668
12669 cygwin* | mingw* | pw32* | cegcc*)
12670 # _LT_TAGVAR(hardcode_libdir_flag_spec, D) is actually meaningless,
12671 # as there is no search path for DLLs.
12672 hardcode_libdir_flag_spec_D='-L$libdir'
12673 export_dynamic_flag_spec_D='${wl}--export-all-symbols'
12674 allow_undefined_flag_D=unsupported
12675 always_export_symbols_D=no
12676 enable_shared_with_static_runtimes_D=yes
12677 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12678
12679 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12680 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12681 # If the export-symbols file already is a .def file (1st line
12682 # is EXPORTS), use it as is; otherwise, prepend...
12683 archive_expsym_cmds_D='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12684 cp $export_symbols $output_objdir/$soname.def;
12685 else
12686 echo EXPORTS > $output_objdir/$soname.def;
12687 cat $export_symbols >> $output_objdir/$soname.def;
12688 fi~
12689 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12690 else
12691 ld_shlibs_D=no
12692 fi
12693 ;;
12694
12695 haiku*)
12696 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12697 link_all_deplibs_D=yes
12698 ;;
12699
12700 interix[3-9]*)
12701 hardcode_direct_D=no
12702 hardcode_shlibpath_var_D=no
12703 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
12704 export_dynamic_flag_spec_D='${wl}-E'
12705 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12706 # Instead, shared libraries are loaded at an image base (0x10000000 by
12707 # default) and relocated if they conflict, which is a slow very memory
12708 # consuming and fragmenting process. To avoid this, we pick a random,
12709 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12710 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12711 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'
12712 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'
12713 ;;
12714
12715 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12716 tmp_diet=no
12717 if test "$host_os" = linux-dietlibc; then
12718 case $cc_basename in
12719 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12720 esac
12721 fi
12722 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12723 && test "$tmp_diet" = no
12724 then
12725 tmp_addflag=' $pic_flag'
12726 tmp_sharedflag='-shared'
12727 case $cc_basename,$host_cpu in
12728 pgcc*) # Portland Group C compiler
12729 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'
12730 tmp_addflag=' $pic_flag'
12731 ;;
12732 pgf77* | pgf90* | pgf95* | pgfortran*)
12733 # Portland Group f77 and f90 compilers
12734 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'
12735 tmp_addflag=' $pic_flag -Mnomain' ;;
12736 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12737 tmp_addflag=' -i_dynamic' ;;
12738 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12739 tmp_addflag=' -i_dynamic -nofor_main' ;;
12740 ifc* | ifort*) # Intel Fortran compiler
12741 tmp_addflag=' -nofor_main' ;;
12742 lf95*) # Lahey Fortran 8.1
12743 whole_archive_flag_spec_D=
12744 tmp_sharedflag='--shared' ;;
12745 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12746 tmp_sharedflag='-qmkshrobj'
12747 tmp_addflag= ;;
12748 nvcc*) # Cuda Compiler Driver 2.2
12749 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'
12750 compiler_needs_object_D=yes
12751 ;;
12752 esac
12753 case `$CC -V 2>&1 | sed 5q` in
12754 *Sun\ C*) # Sun C 5.9
12755 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'
12756 compiler_needs_object_D=yes
12757 tmp_sharedflag='-G' ;;
12758 *Sun\ F*) # Sun Fortran 8.3
12759 tmp_sharedflag='-G' ;;
12760 esac
12761 archive_cmds_D='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12762
12763 if test "x$supports_anon_versioning" = xyes; then
12764 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
12765 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12766 echo "local: *; };" >> $output_objdir/$libname.ver~
12767 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12768 fi
12769
12770 case $cc_basename in
12771 xlf* | bgf* | bgxlf* | mpixlf*)
12772 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12773 whole_archive_flag_spec_D='--whole-archive$convenience --no-whole-archive'
12774 hardcode_libdir_flag_spec_D=
12775 hardcode_libdir_flag_spec_ld_D='-rpath $libdir'
12776 archive_cmds_D='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12777 if test "x$supports_anon_versioning" = xyes; then
12778 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
12779 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12780 echo "local: *; };" >> $output_objdir/$libname.ver~
12781 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12782 fi
12783 ;;
12784 esac
12785 else
12786 ld_shlibs_D=no
12787 fi
12788 ;;
12789
12790 netbsd*)
12791 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12792 archive_cmds_D='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12793 wlarc=
12794 else
12795 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12796 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12797 fi
12798 ;;
12799
12800 solaris*)
12801 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12802 ld_shlibs_D=no
12803 cat <<_LT_EOF 1>&2
12804
12805 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12806 *** create shared libraries on Solaris systems. Therefore, libtool
12807 *** is disabling shared libraries support. We urge you to upgrade GNU
12808 *** binutils to release 2.9.1 or newer. Another option is to modify
12809 *** your PATH or compiler configuration so that the native linker is
12810 *** used, and then restart.
12811
12812 _LT_EOF
12813 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12814 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12815 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12816 else
12817 ld_shlibs_D=no
12818 fi
12819 ;;
12820
12821 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12822 case `$LD -v 2>&1` in
12823 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12824 ld_shlibs_D=no
12825 cat <<_LT_EOF 1>&2
12826
12827 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12828 *** reliably create shared libraries on SCO systems. Therefore, libtool
12829 *** is disabling shared libraries support. We urge you to upgrade GNU
12830 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12831 *** your PATH or compiler configuration so that the native linker is
12832 *** used, and then restart.
12833
12834 _LT_EOF
12835 ;;
12836 *)
12837 # For security reasons, it is highly recommended that you always
12838 # use absolute paths for naming shared libraries, and exclude the
12839 # DT_RUNPATH tag from executables and libraries. But doing so
12840 # requires that you compile everything twice, which is a pain.
12841 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12842 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12843 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12844 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12845 else
12846 ld_shlibs_D=no
12847 fi
12848 ;;
12849 esac
12850 ;;
12851
12852 sunos4*)
12853 archive_cmds_D='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12854 wlarc=
12855 hardcode_direct_D=yes
12856 hardcode_shlibpath_var_D=no
12857 ;;
12858
12859 *)
12860 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12861 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12862 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12863 else
12864 ld_shlibs_D=no
12865 fi
12866 ;;
12867 esac
12868
12869 if test "$ld_shlibs_D" = no; then
12870 runpath_var=
12871 hardcode_libdir_flag_spec_D=
12872 export_dynamic_flag_spec_D=
12873 whole_archive_flag_spec_D=
12874 fi
12875 else
12876 # PORTME fill in a description of your system's linker (not GNU ld)
12877 case $host_os in
12878 aix3*)
12879 allow_undefined_flag_D=unsupported
12880 always_export_symbols_D=yes
12881 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'
12882 # Note: this linker hardcodes the directories in LIBPATH if there
12883 # are no directories specified by -L.
12884 hardcode_minus_L_D=yes
12885 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12886 # Neither direct hardcoding nor static linking is supported with a
12887 # broken collect2.
12888 hardcode_direct_D=unsupported
12889 fi
12890 ;;
12891
12892 aix[4-9]*)
12893 if test "$host_cpu" = ia64; then
12894 # On IA64, the linker does run time linking by default, so we don't
12895 # have to do anything special.
12896 aix_use_runtimelinking=no
12897 exp_sym_flag='-Bexport'
12898 no_entry_flag=""
12899 else
12900 # If we're using GNU nm, then we don't want the "-C" option.
12901 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12902 # Also, AIX nm treats weak defined symbols like other global
12903 # defined symbols, whereas GNU nm marks them as "W".
12904 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12905 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'
12906 else
12907 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'
12908 fi
12909 aix_use_runtimelinking=no
12910
12911 # Test if we are trying to use run time linking or normal
12912 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12913 # need to do runtime linking.
12914 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12915 for ld_flag in $LDFLAGS; do
12916 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12917 aix_use_runtimelinking=yes
12918 break
12919 fi
12920 done
12921 ;;
12922 esac
12923
12924 exp_sym_flag='-bexport'
12925 no_entry_flag='-bnoentry'
12926 fi
12927
12928 # When large executables or shared objects are built, AIX ld can
12929 # have problems creating the table of contents. If linking a library
12930 # or program results in "error TOC overflow" add -mminimal-toc to
12931 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12932 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12933
12934 archive_cmds_D=''
12935 hardcode_direct_D=yes
12936 hardcode_direct_absolute_D=yes
12937 hardcode_libdir_separator_D=':'
12938 link_all_deplibs_D=yes
12939 file_list_spec_D='${wl}-f,'
12940
12941 if test "$GCC" = yes; then
12942 case $host_os in aix4.[012]|aix4.[012].*)
12943 # We only want to do this on AIX 4.2 and lower, the check
12944 # below for broken collect2 doesn't work under 4.3+
12945 collect2name=`${CC} -print-prog-name=collect2`
12946 if test -f "$collect2name" &&
12947 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12948 then
12949 # We have reworked collect2
12950 :
12951 else
12952 # We have old collect2
12953 hardcode_direct_D=unsupported
12954 # It fails to find uninstalled libraries when the uninstalled
12955 # path is not listed in the libpath. Setting hardcode_minus_L
12956 # to unsupported forces relinking
12957 hardcode_minus_L_D=yes
12958 hardcode_libdir_flag_spec_D='-L$libdir'
12959 hardcode_libdir_separator_D=
12960 fi
12961 ;;
12962 esac
12963 shared_flag='-shared'
12964 if test "$aix_use_runtimelinking" = yes; then
12965 shared_flag="$shared_flag "'${wl}-G'
12966 fi
12967 else
12968 # not using gcc
12969 if test "$host_cpu" = ia64; then
12970 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12971 # chokes on -Wl,-G. The following line is correct:
12972 shared_flag='-G'
12973 else
12974 if test "$aix_use_runtimelinking" = yes; then
12975 shared_flag='${wl}-G'
12976 else
12977 shared_flag='${wl}-bM:SRE'
12978 fi
12979 fi
12980 fi
12981
12982 export_dynamic_flag_spec_D='${wl}-bexpall'
12983 # It seems that -bexpall does not export symbols beginning with
12984 # underscore (_), so it is better to generate a list of symbols to export.
12985 always_export_symbols_D=yes
12986 if test "$aix_use_runtimelinking" = yes; then
12987 # Warning - without using the other runtime loading flags (-brtl),
12988 # -berok will link without error, but may produce a broken library.
12989 allow_undefined_flag_D='-berok'
12990 # Determine the default libpath from the value encoded in an
12991 # empty executable.
12992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12993 /* end confdefs.h. */
12994
12995 int
12996 main ()
12997 {
12998
12999 ;
13000 return 0;
13001 }
13002 _ACEOF
13003 if ac_fn_c_try_link "$LINENO"; then :
13004
13005 lt_aix_libpath_sed='
13006 /Import File Strings/,/^$/ {
13007 /^0/ {
13008 s/^0 *\(.*\)$/\1/
13009 p
13010 }
13011 }'
13012 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13013 # Check for a 64-bit object if we didn't find anything.
13014 if test -z "$aix_libpath"; then
13015 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13016 fi
13017 fi
13018 rm -f core conftest.err conftest.$ac_objext \
13019 conftest$ac_exeext conftest.$ac_ext
13020 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13021
13022 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13023 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"
13024 else
13025 if test "$host_cpu" = ia64; then
13026 hardcode_libdir_flag_spec_D='${wl}-R $libdir:/usr/lib:/lib'
13027 allow_undefined_flag_D="-z nodefs"
13028 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"
13029 else
13030 # Determine the default libpath from the value encoded in an
13031 # empty executable.
13032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13033 /* end confdefs.h. */
13034
13035 int
13036 main ()
13037 {
13038
13039 ;
13040 return 0;
13041 }
13042 _ACEOF
13043 if ac_fn_c_try_link "$LINENO"; then :
13044
13045 lt_aix_libpath_sed='
13046 /Import File Strings/,/^$/ {
13047 /^0/ {
13048 s/^0 *\(.*\)$/\1/
13049 p
13050 }
13051 }'
13052 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13053 # Check for a 64-bit object if we didn't find anything.
13054 if test -z "$aix_libpath"; then
13055 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13056 fi
13057 fi
13058 rm -f core conftest.err conftest.$ac_objext \
13059 conftest$ac_exeext conftest.$ac_ext
13060 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13061
13062 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13063 # Warning - without using the other run time loading flags,
13064 # -berok will link without error, but may produce a broken library.
13065 no_undefined_flag_D=' ${wl}-bernotok'
13066 allow_undefined_flag_D=' ${wl}-berok'
13067 if test "$with_gnu_ld" = yes; then
13068 # We only use this code for GNU lds that support --whole-archive.
13069 whole_archive_flag_spec_D='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13070 else
13071 # Exported symbols can be pulled into shared objects from archives
13072 whole_archive_flag_spec_D='$convenience'
13073 fi
13074 archive_cmds_need_lc_D=yes
13075 # This is similar to how AIX traditionally builds its shared libraries.
13076 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'
13077 fi
13078 fi
13079 ;;
13080
13081 amigaos*)
13082 case $host_cpu in
13083 powerpc)
13084 # see comment about AmigaOS4 .so support
13085 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13086 archive_expsym_cmds_D=''
13087 ;;
13088 m68k)
13089 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)'
13090 hardcode_libdir_flag_spec_D='-L$libdir'
13091 hardcode_minus_L_D=yes
13092 ;;
13093 esac
13094 ;;
13095
13096 bsdi[45]*)
13097 export_dynamic_flag_spec_D=-rdynamic
13098 ;;
13099
13100 cygwin* | mingw* | pw32* | cegcc*)
13101 # When not using gcc, we currently assume that we are using
13102 # Microsoft Visual C++.
13103 # hardcode_libdir_flag_spec is actually meaningless, as there is
13104 # no search path for DLLs.
13105 hardcode_libdir_flag_spec_D=' '
13106 allow_undefined_flag_D=unsupported
13107 # Tell ltmain to make .lib files, not .a files.
13108 libext=lib
13109 # Tell ltmain to make .dll files, not .so files.
13110 shrext_cmds=".dll"
13111 # FIXME: Setting linknames here is a bad hack.
13112 archive_cmds_D='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13113 # The linker will automatically build a .lib file if we build a DLL.
13114 old_archive_from_new_cmds_D='true'
13115 # FIXME: Should let the user specify the lib program.
13116 old_archive_cmds_D='lib -OUT:$oldlib$oldobjs$old_deplibs'
13117 fix_srcfile_path_D='`cygpath -w "$srcfile"`'
13118 enable_shared_with_static_runtimes_D=yes
13119 ;;
13120
13121 darwin* | rhapsody*)
13122
13123
13124 archive_cmds_need_lc_D=no
13125 hardcode_direct_D=no
13126 hardcode_automatic_D=yes
13127 hardcode_shlibpath_var_D=unsupported
13128 if test "$lt_cv_ld_force_load" = "yes"; then
13129 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\"`'
13130 else
13131 whole_archive_flag_spec_D=''
13132 fi
13133 link_all_deplibs_D=yes
13134 allow_undefined_flag_D="$_lt_dar_allow_undefined"
13135 case $cc_basename in
13136 ifort*) _lt_dar_can_shared=yes ;;
13137 *) _lt_dar_can_shared=$GCC ;;
13138 esac
13139 if test "$_lt_dar_can_shared" = "yes"; then
13140 output_verbose_link_cmd=func_echo_all
13141 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}"
13142 module_cmds_D="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13143 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}"
13144 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}"
13145
13146 else
13147 ld_shlibs_D=no
13148 fi
13149
13150 ;;
13151
13152 dgux*)
13153 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13154 hardcode_libdir_flag_spec_D='-L$libdir'
13155 hardcode_shlibpath_var_D=no
13156 ;;
13157
13158 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13159 # support. Future versions do this automatically, but an explicit c++rt0.o
13160 # does not break anything, and helps significantly (at the cost of a little
13161 # extra space).
13162 freebsd2.2*)
13163 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13164 hardcode_libdir_flag_spec_D='-R$libdir'
13165 hardcode_direct_D=yes
13166 hardcode_shlibpath_var_D=no
13167 ;;
13168
13169 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13170 freebsd2.*)
13171 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13172 hardcode_direct_D=yes
13173 hardcode_minus_L_D=yes
13174 hardcode_shlibpath_var_D=no
13175 ;;
13176
13177 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13178 freebsd* | dragonfly*)
13179 archive_cmds_D='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13180 hardcode_libdir_flag_spec_D='-R$libdir'
13181 hardcode_direct_D=yes
13182 hardcode_shlibpath_var_D=no
13183 ;;
13184
13185 hpux9*)
13186 if test "$GCC" = yes; then
13187 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'
13188 else
13189 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'
13190 fi
13191 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13192 hardcode_libdir_separator_D=:
13193 hardcode_direct_D=yes
13194
13195 # hardcode_minus_L: Not really in the search PATH,
13196 # but as the default location of the library.
13197 hardcode_minus_L_D=yes
13198 export_dynamic_flag_spec_D='${wl}-E'
13199 ;;
13200
13201 hpux10*)
13202 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13203 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13204 else
13205 archive_cmds_D='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13206 fi
13207 if test "$with_gnu_ld" = no; then
13208 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13209 hardcode_libdir_flag_spec_ld_D='+b $libdir'
13210 hardcode_libdir_separator_D=:
13211 hardcode_direct_D=yes
13212 hardcode_direct_absolute_D=yes
13213 export_dynamic_flag_spec_D='${wl}-E'
13214 # hardcode_minus_L: Not really in the search PATH,
13215 # but as the default location of the library.
13216 hardcode_minus_L_D=yes
13217 fi
13218 ;;
13219
13220 hpux11*)
13221 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13222 case $host_cpu in
13223 hppa*64*)
13224 archive_cmds_D='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13225 ;;
13226 ia64*)
13227 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13228 ;;
13229 *)
13230 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13231 ;;
13232 esac
13233 else
13234 case $host_cpu in
13235 hppa*64*)
13236 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13237 ;;
13238 ia64*)
13239 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13240 ;;
13241 *)
13242 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13243 ;;
13244 esac
13245 fi
13246 if test "$with_gnu_ld" = no; then
13247 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13248 hardcode_libdir_separator_D=:
13249
13250 case $host_cpu in
13251 hppa*64*|ia64*)
13252 hardcode_direct_D=no
13253 hardcode_shlibpath_var_D=no
13254 ;;
13255 *)
13256 hardcode_direct_D=yes
13257 hardcode_direct_absolute_D=yes
13258 export_dynamic_flag_spec_D='${wl}-E'
13259
13260 # hardcode_minus_L: Not really in the search PATH,
13261 # but as the default location of the library.
13262 hardcode_minus_L_D=yes
13263 ;;
13264 esac
13265 fi
13266 ;;
13267
13268 irix5* | irix6* | nonstopux*)
13269 if test "$GCC" = yes; then
13270 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'
13271 # Try to use the -exported_symbol ld option, if it does not
13272 # work, assume that -exports_file does not work either and
13273 # implicitly export all symbols.
13274 save_LDFLAGS="$LDFLAGS"
13275 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13277 /* end confdefs.h. */
13278 int foo(void) {}
13279 _ACEOF
13280 if ac_fn_c_try_link "$LINENO"; then :
13281 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'
13282
13283 fi
13284 rm -f core conftest.err conftest.$ac_objext \
13285 conftest$ac_exeext conftest.$ac_ext
13286 LDFLAGS="$save_LDFLAGS"
13287 else
13288 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'
13289 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'
13290 fi
13291 archive_cmds_need_lc_D='no'
13292 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13293 hardcode_libdir_separator_D=:
13294 inherit_rpath_D=yes
13295 link_all_deplibs_D=yes
13296 ;;
13297
13298 netbsd*)
13299 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13300 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13301 else
13302 archive_cmds_D='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13303 fi
13304 hardcode_libdir_flag_spec_D='-R$libdir'
13305 hardcode_direct_D=yes
13306 hardcode_shlibpath_var_D=no
13307 ;;
13308
13309 newsos6)
13310 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13311 hardcode_direct_D=yes
13312 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13313 hardcode_libdir_separator_D=:
13314 hardcode_shlibpath_var_D=no
13315 ;;
13316
13317 *nto* | *qnx*)
13318 ;;
13319
13320 openbsd*)
13321 if test -f /usr/libexec/ld.so; then
13322 hardcode_direct_D=yes
13323 hardcode_shlibpath_var_D=no
13324 hardcode_direct_absolute_D=yes
13325 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13326 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13327 archive_expsym_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13328 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13329 export_dynamic_flag_spec_D='${wl}-E'
13330 else
13331 case $host_os in
13332 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13333 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13334 hardcode_libdir_flag_spec_D='-R$libdir'
13335 ;;
13336 *)
13337 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13338 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13339 ;;
13340 esac
13341 fi
13342 else
13343 ld_shlibs_D=no
13344 fi
13345 ;;
13346
13347 os2*)
13348 hardcode_libdir_flag_spec_D='-L$libdir'
13349 hardcode_minus_L_D=yes
13350 allow_undefined_flag_D=unsupported
13351 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'
13352 old_archive_from_new_cmds_D='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13353 ;;
13354
13355 osf3*)
13356 if test "$GCC" = yes; then
13357 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13358 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'
13359 else
13360 allow_undefined_flag_D=' -expect_unresolved \*'
13361 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'
13362 fi
13363 archive_cmds_need_lc_D='no'
13364 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13365 hardcode_libdir_separator_D=:
13366 ;;
13367
13368 osf4* | osf5*) # as osf3* with the addition of -msym flag
13369 if test "$GCC" = yes; then
13370 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13371 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'
13372 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13373 else
13374 allow_undefined_flag_D=' -expect_unresolved \*'
13375 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'
13376 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~
13377 $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'
13378
13379 # Both c and cxx compiler support -rpath directly
13380 hardcode_libdir_flag_spec_D='-rpath $libdir'
13381 fi
13382 archive_cmds_need_lc_D='no'
13383 hardcode_libdir_separator_D=:
13384 ;;
13385
13386 solaris*)
13387 no_undefined_flag_D=' -z defs'
13388 if test "$GCC" = yes; then
13389 wlarc='${wl}'
13390 archive_cmds_D='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13391 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13392 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13393 else
13394 case `$CC -V 2>&1` in
13395 *"Compilers 5.0"*)
13396 wlarc=''
13397 archive_cmds_D='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13398 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13399 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13400 ;;
13401 *)
13402 wlarc='${wl}'
13403 archive_cmds_D='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13404 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13405 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13406 ;;
13407 esac
13408 fi
13409 hardcode_libdir_flag_spec_D='-R$libdir'
13410 hardcode_shlibpath_var_D=no
13411 case $host_os in
13412 solaris2.[0-5] | solaris2.[0-5].*) ;;
13413 *)
13414 # The compiler driver will combine and reorder linker options,
13415 # but understands `-z linker_flag'. GCC discards it without `$wl',
13416 # but is careful enough not to reorder.
13417 # Supported since Solaris 2.6 (maybe 2.5.1?)
13418 if test "$GCC" = yes; then
13419 whole_archive_flag_spec_D='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13420 else
13421 whole_archive_flag_spec_D='-z allextract$convenience -z defaultextract'
13422 fi
13423 ;;
13424 esac
13425 link_all_deplibs_D=yes
13426 ;;
13427
13428 sunos4*)
13429 if test "x$host_vendor" = xsequent; then
13430 # Use $CC to link under sequent, because it throws in some extra .o
13431 # files that make .init and .fini sections work.
13432 archive_cmds_D='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13433 else
13434 archive_cmds_D='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13435 fi
13436 hardcode_libdir_flag_spec_D='-L$libdir'
13437 hardcode_direct_D=yes
13438 hardcode_minus_L_D=yes
13439 hardcode_shlibpath_var_D=no
13440 ;;
13441
13442 sysv4)
13443 case $host_vendor in
13444 sni)
13445 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13446 hardcode_direct_D=yes # is this really true???
13447 ;;
13448 siemens)
13449 ## LD is ld it makes a PLAMLIB
13450 ## CC just makes a GrossModule.
13451 archive_cmds_D='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13452 reload_cmds_D='$CC -r -o $output$reload_objs'
13453 hardcode_direct_D=no
13454 ;;
13455 motorola)
13456 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13457 hardcode_direct_D=no #Motorola manual says yes, but my tests say they lie
13458 ;;
13459 esac
13460 runpath_var='LD_RUN_PATH'
13461 hardcode_shlibpath_var_D=no
13462 ;;
13463
13464 sysv4.3*)
13465 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13466 hardcode_shlibpath_var_D=no
13467 export_dynamic_flag_spec_D='-Bexport'
13468 ;;
13469
13470 sysv4*MP*)
13471 if test -d /usr/nec; then
13472 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13473 hardcode_shlibpath_var_D=no
13474 runpath_var=LD_RUN_PATH
13475 hardcode_runpath_var=yes
13476 ld_shlibs_D=yes
13477 fi
13478 ;;
13479
13480 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13481 no_undefined_flag_D='${wl}-z,text'
13482 archive_cmds_need_lc_D=no
13483 hardcode_shlibpath_var_D=no
13484 runpath_var='LD_RUN_PATH'
13485
13486 if test "$GCC" = yes; then
13487 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13488 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13489 else
13490 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13491 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13492 fi
13493 ;;
13494
13495 sysv5* | sco3.2v5* | sco5v6*)
13496 # Note: We can NOT use -z defs as we might desire, because we do not
13497 # link with -lc, and that would cause any symbols used from libc to
13498 # always be unresolved, which means just about no library would
13499 # ever link correctly. If we're not using GNU ld we use -z text
13500 # though, which does catch some bad symbols but isn't as heavy-handed
13501 # as -z defs.
13502 no_undefined_flag_D='${wl}-z,text'
13503 allow_undefined_flag_D='${wl}-z,nodefs'
13504 archive_cmds_need_lc_D=no
13505 hardcode_shlibpath_var_D=no
13506 hardcode_libdir_flag_spec_D='${wl}-R,$libdir'
13507 hardcode_libdir_separator_D=':'
13508 link_all_deplibs_D=yes
13509 export_dynamic_flag_spec_D='${wl}-Bexport'
13510 runpath_var='LD_RUN_PATH'
13511
13512 if test "$GCC" = yes; then
13513 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13514 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13515 else
13516 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13517 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13518 fi
13519 ;;
13520
13521 uts4*)
13522 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13523 hardcode_libdir_flag_spec_D='-L$libdir'
13524 hardcode_shlibpath_var_D=no
13525 ;;
13526
13527 *)
13528 ld_shlibs_D=no
13529 ;;
13530 esac
13531
13532 if test x$host_vendor = xsni; then
13533 case $host in
13534 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13535 export_dynamic_flag_spec_D='${wl}-Blargedynsym'
13536 ;;
13537 esac
13538 fi
13539 fi
13540
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_D" >&5
13542 $as_echo "$ld_shlibs_D" >&6; }
13543 test "$ld_shlibs_D" = no && can_build_shared=no
13544
13545 with_gnu_ld_D=$with_gnu_ld
13546
13547
13548
13549
13550
13551
13552 #
13553 # Do we need to explicitly link libc?
13554 #
13555 case "x$archive_cmds_need_lc_D" in
13556 x|xyes)
13557 # Assume -lc should be added
13558 archive_cmds_need_lc_D=yes
13559
13560 if test "$enable_shared" = yes && test "$GCC" = yes; then
13561 case $archive_cmds_D in
13562 *'~'*)
13563 # FIXME: we may have to deal with multi-command sequences.
13564 ;;
13565 '$CC '*)
13566 # Test whether the compiler implicitly links with -lc since on some
13567 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13568 # to ld, don't add -lc before -lgcc.
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13570 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13571 if ${lt_cv_archive_cmds_need_lc_D+:} false; then :
13572 $as_echo_n "(cached) " >&6
13573 else
13574 $RM conftest*
13575 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13576
13577 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13578 (eval $ac_compile) 2>&5
13579 ac_status=$?
13580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13581 test $ac_status = 0; } 2>conftest.err; then
13582 soname=conftest
13583 lib=conftest
13584 libobjs=conftest.$ac_objext
13585 deplibs=
13586 wl=$lt_prog_compiler_wl_D
13587 pic_flag=$lt_prog_compiler_pic_D
13588 compiler_flags=-v
13589 linker_flags=-v
13590 verstring=
13591 output_objdir=.
13592 libname=conftest
13593 lt_save_allow_undefined_flag=$allow_undefined_flag_D
13594 allow_undefined_flag_D=
13595 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13596 (eval $archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13597 ac_status=$?
13598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13599 test $ac_status = 0; }
13600 then
13601 lt_cv_archive_cmds_need_lc_D=no
13602 else
13603 lt_cv_archive_cmds_need_lc_D=yes
13604 fi
13605 allow_undefined_flag_D=$lt_save_allow_undefined_flag
13606 else
13607 cat conftest.err 1>&5
13608 fi
13609 $RM conftest*
13610
13611 fi
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_D" >&5
13613 $as_echo "$lt_cv_archive_cmds_need_lc_D" >&6; }
13614 archive_cmds_need_lc_D=$lt_cv_archive_cmds_need_lc_D
13615 ;;
13616 esac
13617 fi
13618 ;;
13619 esac
13620
13621
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13685 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13686 hardcode_action_D=
13687 if test -n "$hardcode_libdir_flag_spec_D" ||
13688 test -n "$runpath_var_D" ||
13689 test "X$hardcode_automatic_D" = "Xyes" ; then
13690
13691 # We can hardcode non-existent directories.
13692 if test "$hardcode_direct_D" != no &&
13693 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13694 # have to relink, otherwise we might link with an installed library
13695 # when we should be linking with a yet-to-be-installed one
13696 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, D)" != no &&
13697 test "$hardcode_minus_L_D" != no; then
13698 # Linking always hardcodes the temporary library directory.
13699 hardcode_action_D=relink
13700 else
13701 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13702 hardcode_action_D=immediate
13703 fi
13704 else
13705 # We cannot hardcode anything, or else we can only hardcode existing
13706 # directories.
13707 hardcode_action_D=unsupported
13708 fi
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_D" >&5
13710 $as_echo "$hardcode_action_D" >&6; }
13711
13712 if test "$hardcode_action_D" = relink ||
13713 test "$inherit_rpath_D" = yes; then
13714 # Fast installation is not supported
13715 enable_fast_install=no
13716 elif test "$shlibpath_overrides_runpath" = yes ||
13717 test "$enable_shared" = no; then
13718 # Fast installation is not necessary
13719 enable_fast_install=needless
13720 fi
13721
13722
13723
13724
13725
13726
13727
13728 fi
13729
13730 ac_ext=c
13731 ac_cpp='$CPP $CPPFLAGS'
13732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13735
13736
13737 GCC=$lt_save_GCC
13738 CC=$lt_save_CC
13739 CFLAGS=$lt_save_CFLAGS
13740 GDCFLAGS=$lt_save_DFLAGS
13741
13742 GDCFLAGS=$gdc_save_DFLAGS
13743
13744 if test "$enable_shared" = "yes"; then
13745 ENABLE_SHARED_TRUE=
13746 ENABLE_SHARED_FALSE='#'
13747 else
13748 ENABLE_SHARED_TRUE='#'
13749 ENABLE_SHARED_FALSE=
13750 fi
13751
13752 if test "$enable_static" = "yes"; then
13753 ENABLE_STATIC_TRUE=
13754 ENABLE_STATIC_FALSE='#'
13755 else
13756 ENABLE_STATIC_TRUE='#'
13757 ENABLE_STATIC_FALSE=
13758 fi
13759
13760
13761 # libtool variables for Phobos shared and position-independent compiles.
13762 #
13763 # Use phobos_compiler_shared_flag to designate the compile-time flags for
13764 # creating shared objects. Default: -fversion=Shared.
13765 #
13766 # Use phobos_compiler_pic_flag to designate the compile-time flags for
13767 # creating position-independent objects. This varies with the target
13768 # hardware and operating system, but is often: -fPIC.
13769 #
13770 # The distinction between pic and shared compilation flags is not present in
13771 # libtool, and so we make it here. How it is handled is that in shared
13772 # compilations the `lt_prog_compiler_pic_D' variable is used to instead
13773 # ensure that conditional compilation of shared runtime code is compiled in.
13774 # The original PIC flags are then used in the compilation of every object.
13775 #
13776 # Why are objects destined for libgphobos.a compiled with -fPIC?
13777 # Because -fPIC is not harmful to use for objects destined for static
13778 # libraries. In addition, using -fPIC will allow the use of static
13779 # libgphobos.a in the creation of other D shared libraries.
13780 if test "$enable_shared" = yes; then
13781 phobos_compiler_pic_flag="$lt_prog_compiler_pic_D"
13782 phobos_compiler_shared_flag="-fversion=Shared"
13783 else
13784 phobos_compiler_pic_flag=
13785 phobos_compiler_shared_flag=
13786 fi
13787
13788
13789
13790 # Override the libtool's pic_flag and pic_mode.
13791 # Do this step after AM_PROG_LIBTOOL, but before AC_OUTPUT.
13792 # NB: this impacts --with-pic and --without-pic.
13793 lt_prog_compiler_pic_D="$phobos_compiler_shared_flag"
13794 pic_mode='default'
13795
13796 # Determine what GCC version number to use in filesystem paths.
13797
13798 get_gcc_base_ver="cat"
13799
13800 # Check whether --with-gcc-major-version-only was given.
13801 if test "${with_gcc_major_version_only+set}" = set; then :
13802 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13803 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
13804 fi
13805
13806 fi
13807
13808
13809
13810
13811 # libphobos/libdruntime specific options and feature detection
13812
13813 # These need to be absolute paths, yet at the same time need to
13814 # canonicalize only relative paths, because then amd will not unmount
13815 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
13816 libphobos_builddir=`${PWDCMD-pwd}`
13817 case $srcdir in
13818 \\/$* | ?:\\/*) libphobos_srcdir=${srcdir} ;;
13819 *) libphobos_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
13820 esac
13821
13822
13823
13824
13825 if test ${multilib} = yes; then
13826 multilib_arg="--enable-multilib"
13827 else
13828 multilib_arg=
13829 fi
13830
13831
13832 # Check whether --enable-werror was given.
13833 if test "${enable_werror+set}" = set; then :
13834 enableval=$enable_werror;
13835 fi
13836
13837 WERROR_FLAG=""
13838 if test "x$enable_werror" = "xyes"; then
13839 WERROR_FLAG="-Werror"
13840 fi
13841
13842
13843 # Check whether --enable-druntime-gc was given.
13844 if test "${enable_druntime_gc+set}" = set; then :
13845 enableval=$enable_druntime_gc; enable_druntime_gc=no
13846 else
13847 enable_druntime_gc=yes
13848 fi
13849
13850
13851 if test "$enable_druntime_gc" = "yes"; then
13852 DRUNTIME_GC_ENABLE_TRUE=
13853 DRUNTIME_GC_ENABLE_FALSE='#'
13854 else
13855 DRUNTIME_GC_ENABLE_TRUE='#'
13856 DRUNTIME_GC_ENABLE_FALSE=
13857 fi
13858
13859
13860
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target OS" >&5
13862 $as_echo_n "checking for target OS... " >&6; }
13863 if ${druntime_cv_target_os+:} false; then :
13864 $as_echo_n "(cached) " >&6
13865 else
13866 druntime_cv_target_os=`echo $target_os | sed 's/^\([A-Za-z_]+\)/\1/'`
13867 fi
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_target_os" >&5
13869 $as_echo "$druntime_cv_target_os" >&6; }
13870 if test -z "$druntime_cv_target_os"; then :
13871 as_fn_error $? "can't detect target OS" "$LINENO" 5
13872 fi
13873
13874
13875
13876 # Check whether --enable-unix was given.
13877 if test "${enable_unix+set}" = set; then :
13878 enableval=$enable_unix; :
13879 else
13880 enable_unix=auto
13881 fi
13882
13883
13884 case "$druntime_cv_target_os" in
13885 aix*|*bsd*|cygwin*|darwin*|gnu*|linux*|skyos*|*solaris*|sysv*) d_have_unix=1 ;;
13886 esac
13887 if test -n "$d_have_unix" && test "$enable_unix" = auto ; then
13888 enable_unix=yes
13889 fi
13890 if test "$enable_unix" = "yes"; then
13891 DRUNTIME_OS_UNIX_TRUE=
13892 DRUNTIME_OS_UNIX_FALSE='#'
13893 else
13894 DRUNTIME_OS_UNIX_TRUE='#'
13895 DRUNTIME_OS_UNIX_FALSE=
13896 fi
13897
13898
13899
13900
13901
13902 druntime_target_os_parsed=""
13903 case "$druntime_cv_target_os" in
13904 aix*) druntime_target_os_parsed="aix"
13905 ;;
13906 *android*)
13907 druntime_target_os_parsed="android"
13908 ;;
13909 darwin*) druntime_target_os_parsed="darwin"
13910 ;;
13911 dragonfly*)
13912 druntime_target_os_parsed="dragonflybsd"
13913 ;;
13914 freebsd*|k*bsd*-gnu)
13915 druntime_target_os_parsed="freebsd"
13916 ;;
13917 openbsd*)
13918 druntime_target_os_parsed="openbsd"
13919 ;;
13920 netbsd*)
13921 druntime_target_os_parsed="netbsd"
13922 ;;
13923 linux*) druntime_target_os_parsed="linux"
13924 ;;
13925 mingw*) druntime_target_os_parsed="mingw"
13926 ;;
13927 *solaris*) druntime_target_os_parsed="solaris"
13928 esac
13929 if test "$druntime_target_os_parsed" = "aix"; then
13930 DRUNTIME_OS_AIX_TRUE=
13931 DRUNTIME_OS_AIX_FALSE='#'
13932 else
13933 DRUNTIME_OS_AIX_TRUE='#'
13934 DRUNTIME_OS_AIX_FALSE=
13935 fi
13936
13937 if test "$druntime_target_os_parsed" = "android"; then
13938 DRUNTIME_OS_ANDROID_TRUE=
13939 DRUNTIME_OS_ANDROID_FALSE='#'
13940 else
13941 DRUNTIME_OS_ANDROID_TRUE='#'
13942 DRUNTIME_OS_ANDROID_FALSE=
13943 fi
13944
13945 if test "$druntime_target_os_parsed" = "darwin"; then
13946 DRUNTIME_OS_DARWIN_TRUE=
13947 DRUNTIME_OS_DARWIN_FALSE='#'
13948 else
13949 DRUNTIME_OS_DARWIN_TRUE='#'
13950 DRUNTIME_OS_DARWIN_FALSE=
13951 fi
13952
13953 if test "$druntime_target_os_parsed" = "dragonflybsd"; then
13954 DRUNTIME_OS_DRAGONFLYBSD_TRUE=
13955 DRUNTIME_OS_DRAGONFLYBSD_FALSE='#'
13956 else
13957 DRUNTIME_OS_DRAGONFLYBSD_TRUE='#'
13958 DRUNTIME_OS_DRAGONFLYBSD_FALSE=
13959 fi
13960
13961 if test "$druntime_target_os_parsed" = "freebsd"; then
13962 DRUNTIME_OS_FREEBSD_TRUE=
13963 DRUNTIME_OS_FREEBSD_FALSE='#'
13964 else
13965 DRUNTIME_OS_FREEBSD_TRUE='#'
13966 DRUNTIME_OS_FREEBSD_FALSE=
13967 fi
13968
13969 if test "$druntime_target_os_parsed" = "netbsd"; then
13970 DRUNTIME_OS_NETBSD_TRUE=
13971 DRUNTIME_OS_NETBSD_FALSE='#'
13972 else
13973 DRUNTIME_OS_NETBSD_TRUE='#'
13974 DRUNTIME_OS_NETBSD_FALSE=
13975 fi
13976
13977 if test "$druntime_target_os_parsed" = "openbsd"; then
13978 DRUNTIME_OS_OPENBSD_TRUE=
13979 DRUNTIME_OS_OPENBSD_FALSE='#'
13980 else
13981 DRUNTIME_OS_OPENBSD_TRUE='#'
13982 DRUNTIME_OS_OPENBSD_FALSE=
13983 fi
13984
13985 if test "$druntime_target_os_parsed" = "linux"; then
13986 DRUNTIME_OS_LINUX_TRUE=
13987 DRUNTIME_OS_LINUX_FALSE='#'
13988 else
13989 DRUNTIME_OS_LINUX_TRUE='#'
13990 DRUNTIME_OS_LINUX_FALSE=
13991 fi
13992
13993 if test "$druntime_target_os_parsed" = "mingw"; then
13994 DRUNTIME_OS_MINGW_TRUE=
13995 DRUNTIME_OS_MINGW_FALSE='#'
13996 else
13997 DRUNTIME_OS_MINGW_TRUE='#'
13998 DRUNTIME_OS_MINGW_FALSE=
13999 fi
14000
14001 if test "$druntime_target_os_parsed" = "solaris"; then
14002 DRUNTIME_OS_SOLARIS_TRUE=
14003 DRUNTIME_OS_SOLARIS_FALSE='#'
14004 else
14005 DRUNTIME_OS_SOLARIS_TRUE='#'
14006 DRUNTIME_OS_SOLARIS_FALSE=
14007 fi
14008
14009
14010
14011
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GDC" >&5
14013 $as_echo_n "checking for thread model used by GDC... " >&6; }
14014 d_thread_model=`$GDC -v 2>&1 | sed -n 's/^Thread model: //p'`
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d_thread_model" >&5
14016 $as_echo "$d_thread_model" >&6; }
14017
14018 # Map from thread model to thread interface.
14019
14020 case $d_thread_model in
14021 aix) DCFG_THREAD_MODEL="Posix" ;;
14022 lynx) DCFG_THREAD_MODEL="Posix" ;;
14023 posix) DCFG_THREAD_MODEL="Posix" ;;
14024 single) DCFG_THREAD_MODEL="Single" ;;
14025 win32) DCFG_THREAD_MODEL="Win32" ;;
14026 # TODO: These targets need porting.
14027 dce|mipssde|rtems|tpf|vxworks)
14028 DCFG_THREAD_MODEL="Single" ;;
14029 *) as_fn_error "Thread implementation '$d_thread_model' not recognised" "$LINENO" 5 ;;
14030 esac
14031
14032
14033
14034
14035 ac_ext=c
14036 ac_cpp='$CPP $CPPFLAGS'
14037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14040
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM unwinder" >&5
14042 $as_echo_n "checking for ARM unwinder... " >&6; }
14043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14044 /* end confdefs.h. */
14045 #include <unwind.h>
14046 int
14047 main ()
14048 {
14049
14050 #if __ARM_EABI_UNWINDER__
14051 #error Yes, it is.
14052 #endif
14053
14054 ;
14055 return 0;
14056 }
14057 _ACEOF
14058 if ac_fn_c_try_compile "$LINENO"; then :
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14060 $as_echo "no" >&6; }
14061 DCFG_ARM_EABI_UNWINDER=false
14062 else
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14064 $as_echo "yes" >&6; }
14065 DCFG_ARM_EABI_UNWINDER=true
14066 fi
14067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14068
14069 if test "$DCFG_ARM_EABI_UNWINDER" = "true"; then
14070 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE=
14071 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE='#'
14072 else
14073 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE='#'
14074 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE=
14075 fi
14076
14077 ac_ext=c
14078 ac_cpp='$CPP $CPPFLAGS'
14079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14082
14083
14084
14085 ac_ext=c
14086 ac_cpp='$CPP $CPPFLAGS'
14087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14090
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minfo section bracketing" >&5
14092 $as_echo_n "checking for minfo section bracketing... " >&6; }
14093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14094 /* end confdefs.h. */
14095
14096 void* module_info_ptr __attribute__((section ("minfo")));
14097 extern void* __start_minfo __attribute__((visibility ("hidden")));
14098 extern void* __stop_minfo __attribute__((visibility ("hidden")));
14099
14100 int main()
14101 {
14102 // Never run, just to prevent compiler from optimizing access
14103 return &__start_minfo == &__stop_minfo;
14104 }
14105
14106 _ACEOF
14107 if ac_fn_c_try_link "$LINENO"; then :
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14109 $as_echo "yes" >&6; }
14110 DCFG_MINFO_BRACKETING=true
14111 else
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14113 $as_echo "no" >&6; }
14114 DCFG_MINFO_BRACKETING=false
14115 fi
14116 rm -f core conftest.err conftest.$ac_objext \
14117 conftest$ac_exeext conftest.$ac_ext
14118
14119 ac_ext=c
14120 ac_cpp='$CPP $CPPFLAGS'
14121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14124
14125
14126
14127
14128
14129 gdc_save_DFLAGS=$GDCFLAGS
14130 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime -nophoboslib $GDCFLAGS"
14131
14132 ac_ext=d
14133 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
14134 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14135 ac_compiler_gnu=yes
14136
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing malloc" >&5
14138 $as_echo_n "checking for library containing malloc... " >&6; }
14139 if ${ac_cv_search_malloc+:} false; then :
14140 $as_echo_n "(cached) " >&6
14141 else
14142 ac_func_search_save_LIBS=$LIBS
14143 cat > conftest.$ac_ext <<_ACEOF
14144 module mod;
14145 extern(C) int malloc();
14146
14147 extern(C) int main() {
14148 malloc(); return 0;
14149 }
14150 _ACEOF
14151 for ac_lib in '' c; do
14152 if test -z "$ac_lib"; then
14153 ac_res="none required"
14154 else
14155 ac_res=-l$ac_lib
14156 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14157 fi
14158 if ac_fn_d_try_link "$LINENO"; then :
14159 ac_cv_search_malloc=$ac_res
14160 fi
14161 rm -f core conftest.err conftest.$ac_objext \
14162 conftest$ac_exeext
14163 if ${ac_cv_search_malloc+:} false; then :
14164 break
14165 fi
14166 done
14167 if ${ac_cv_search_malloc+:} false; then :
14168
14169 else
14170 ac_cv_search_malloc=no
14171 fi
14172 rm conftest.$ac_ext
14173 LIBS=$ac_func_search_save_LIBS
14174 fi
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc" >&5
14176 $as_echo "$ac_cv_search_malloc" >&6; }
14177 ac_res=$ac_cv_search_malloc
14178 if test "$ac_res" != no; then :
14179 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14180
14181 fi
14182
14183
14184 enable_thread_lib=yes
14185 # Check whether --enable-thread-lib was given.
14186 if test "${enable_thread_lib+set}" = set; then :
14187 enableval=$enable_thread_lib;
14188 fi
14189
14190
14191 if test "x$enable_thread_lib" = "xyes"; then :
14192
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
14194 $as_echo_n "checking for library containing pthread_create... " >&6; }
14195 if ${ac_cv_search_pthread_create+:} false; then :
14196 $as_echo_n "(cached) " >&6
14197 else
14198 ac_func_search_save_LIBS=$LIBS
14199 cat > conftest.$ac_ext <<_ACEOF
14200 module mod;
14201 extern(C) int pthread_create();
14202
14203 extern(C) int main() {
14204 pthread_create(); return 0;
14205 }
14206 _ACEOF
14207 for ac_lib in '' pthread; do
14208 if test -z "$ac_lib"; then
14209 ac_res="none required"
14210 else
14211 ac_res=-l$ac_lib
14212 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14213 fi
14214 if ac_fn_d_try_link "$LINENO"; then :
14215 ac_cv_search_pthread_create=$ac_res
14216 fi
14217 rm -f core conftest.err conftest.$ac_objext \
14218 conftest$ac_exeext
14219 if ${ac_cv_search_pthread_create+:} false; then :
14220 break
14221 fi
14222 done
14223 if ${ac_cv_search_pthread_create+:} false; then :
14224
14225 else
14226 ac_cv_search_pthread_create=no
14227 fi
14228 rm conftest.$ac_ext
14229 LIBS=$ac_func_search_save_LIBS
14230 fi
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
14232 $as_echo "$ac_cv_search_pthread_create" >&6; }
14233 ac_res=$ac_cv_search_pthread_create
14234 if test "$ac_res" != no; then :
14235 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14236
14237 fi
14238
14239
14240 else
14241
14242 if test "x$enable_thread_lib" = "xno"; then :
14243
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread library" >&5
14245 $as_echo_n "checking for thread library... " >&6; }
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14247 $as_echo "disabled" >&6; }
14248
14249 else
14250
14251 as_ac_Lib=`$as_echo "ac_cv_lib_$enable_thread_lib''_pthread_create" | $as_tr_sh`
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -l$enable_thread_lib" >&5
14253 $as_echo_n "checking for pthread_create in -l$enable_thread_lib... " >&6; }
14254 if eval \${$as_ac_Lib+:} false; then :
14255 $as_echo_n "(cached) " >&6
14256 else
14257 ac_check_lib_save_LIBS=$LIBS
14258 LIBS="-l$enable_thread_lib $LIBS"
14259 cat > conftest.$ac_ext <<_ACEOF
14260 module mod;
14261 extern(C) int pthread_create();
14262
14263 extern(C) int main() {
14264 pthread_create(); return 0;
14265 }
14266 _ACEOF
14267 if ac_fn_d_try_link "$LINENO"; then :
14268 eval "$as_ac_Lib=yes"
14269 else
14270 eval "$as_ac_Lib=no"
14271 fi
14272 rm -f core conftest.err conftest.$ac_objext \
14273 conftest$ac_exeext conftest.$ac_ext
14274 LIBS=$ac_check_lib_save_LIBS
14275 fi
14276 eval ac_res=\$$as_ac_Lib
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14278 $as_echo "$ac_res" >&6; }
14279 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
14280 cat >>confdefs.h <<_ACEOF
14281 #define `$as_echo "HAVE_LIB$enable_thread_lib" | $as_tr_cpp` 1
14282 _ACEOF
14283
14284 LIBS="-l$enable_thread_lib $LIBS"
14285
14286 else
14287
14288 as_fn_error $? "Thread library not found" "$LINENO" 5
14289
14290 fi
14291
14292
14293 fi
14294
14295 fi
14296
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cosf" >&5
14298 $as_echo_n "checking for library containing cosf... " >&6; }
14299 if ${ac_cv_search_cosf+:} false; then :
14300 $as_echo_n "(cached) " >&6
14301 else
14302 ac_func_search_save_LIBS=$LIBS
14303 cat > conftest.$ac_ext <<_ACEOF
14304 module mod;
14305 extern(C) int cosf();
14306
14307 extern(C) int main() {
14308 cosf(); return 0;
14309 }
14310 _ACEOF
14311 for ac_lib in '' m; do
14312 if test -z "$ac_lib"; then
14313 ac_res="none required"
14314 else
14315 ac_res=-l$ac_lib
14316 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14317 fi
14318 if ac_fn_d_try_link "$LINENO"; then :
14319 ac_cv_search_cosf=$ac_res
14320 fi
14321 rm -f core conftest.err conftest.$ac_objext \
14322 conftest$ac_exeext
14323 if ${ac_cv_search_cosf+:} false; then :
14324 break
14325 fi
14326 done
14327 if ${ac_cv_search_cosf+:} false; then :
14328
14329 else
14330 ac_cv_search_cosf=no
14331 fi
14332 rm conftest.$ac_ext
14333 LIBS=$ac_func_search_save_LIBS
14334 fi
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cosf" >&5
14336 $as_echo "$ac_cv_search_cosf" >&6; }
14337 ac_res=$ac_cv_search_cosf
14338 if test "$ac_res" != no; then :
14339 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14340
14341 fi
14342
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14344 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14345 if ${ac_cv_search_clock_gettime+:} false; then :
14346 $as_echo_n "(cached) " >&6
14347 else
14348 ac_func_search_save_LIBS=$LIBS
14349 cat > conftest.$ac_ext <<_ACEOF
14350 module mod;
14351 extern(C) int clock_gettime();
14352
14353 extern(C) int main() {
14354 clock_gettime(); return 0;
14355 }
14356 _ACEOF
14357 for ac_lib in '' rt; do
14358 if test -z "$ac_lib"; then
14359 ac_res="none required"
14360 else
14361 ac_res=-l$ac_lib
14362 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14363 fi
14364 if ac_fn_d_try_link "$LINENO"; then :
14365 ac_cv_search_clock_gettime=$ac_res
14366 fi
14367 rm -f core conftest.err conftest.$ac_objext \
14368 conftest$ac_exeext
14369 if ${ac_cv_search_clock_gettime+:} false; then :
14370 break
14371 fi
14372 done
14373 if ${ac_cv_search_clock_gettime+:} false; then :
14374
14375 else
14376 ac_cv_search_clock_gettime=no
14377 fi
14378 rm conftest.$ac_ext
14379 LIBS=$ac_func_search_save_LIBS
14380 fi
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14382 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14383 ac_res=$ac_cv_search_clock_gettime
14384 if test "$ac_res" != no; then :
14385 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14386
14387 fi
14388
14389
14390 # This checks to see if the host supports the compiler-generated builtins
14391 # for atomic operations for various integral sizes. Note, this is intended
14392 # to be an all-or-nothing switch, so all the atomic operations that are
14393 # used should be checked.
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for byte" >&5
14395 $as_echo_n "checking for atomic builtins for byte... " >&6; }
14396 if ${druntime_cv_atomic_byte+:} false; then :
14397 $as_echo_n "(cached) " >&6
14398 else
14399
14400 cat > conftest.$ac_ext <<_ACEOF
14401 module mod;
14402 import gcc.builtins;
14403
14404 extern(C) int main() {
14405
14406 shared(byte) c1;
14407 byte c2, c3;
14408 __atomic_compare_exchange_1(&c1, &c2, c3, false, 5, 5);
14409 __atomic_load_1(&c1, 5);
14410 __atomic_store_1(&c1, c2, 5);
14411 return 0;
14412
14413 }
14414 _ACEOF
14415 if ac_fn_d_try_link "$LINENO"; then :
14416 druntime_cv_atomic_byte=yes
14417 else
14418 druntime_cv_atomic_byte=no
14419 fi
14420 rm -f core conftest.err conftest.$ac_objext \
14421 conftest$ac_exeext conftest.$ac_ext
14422
14423 fi
14424
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_byte" >&5
14426 $as_echo "$druntime_cv_atomic_byte" >&6; }
14427
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5
14429 $as_echo_n "checking for atomic builtins for short... " >&6; }
14430 if ${druntime_cv_atomic_short+:} false; then :
14431 $as_echo_n "(cached) " >&6
14432 else
14433
14434 cat > conftest.$ac_ext <<_ACEOF
14435 module mod;
14436 import gcc.builtins;
14437
14438 extern(C) int main() {
14439
14440 shared(short) c1;
14441 short c2, c3;
14442 __atomic_compare_exchange_2(&c1, &c2, c3, false, 5, 5);
14443 __atomic_load_2(&c1, 5);
14444 __atomic_store_2(&c1, c2, 5);
14445 return 0;
14446
14447 }
14448 _ACEOF
14449 if ac_fn_d_try_link "$LINENO"; then :
14450 druntime_cv_atomic_short=yes
14451 else
14452 druntime_cv_atomic_short=no
14453 fi
14454 rm -f core conftest.err conftest.$ac_objext \
14455 conftest$ac_exeext conftest.$ac_ext
14456
14457 fi
14458
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_short" >&5
14460 $as_echo "$druntime_cv_atomic_short" >&6; }
14461
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5
14463 $as_echo_n "checking for atomic builtins for int... " >&6; }
14464 if ${druntime_cv_atomic_int+:} false; then :
14465 $as_echo_n "(cached) " >&6
14466 else
14467
14468 cat > conftest.$ac_ext <<_ACEOF
14469 module mod;
14470 import gcc.builtins;
14471
14472 extern(C) int main() {
14473
14474 shared(int) c1;
14475 int c2, c3;
14476 __atomic_compare_exchange_4(&c1, &c2, c3, false, 5, 5);
14477 __atomic_load_4(&c1, 5);
14478 __atomic_store_4(&c1, c2, 5);
14479 return 0;
14480
14481 }
14482 _ACEOF
14483 if ac_fn_d_try_link "$LINENO"; then :
14484 druntime_cv_atomic_int=yes
14485 else
14486 druntime_cv_atomic_int=no
14487 fi
14488 rm -f core conftest.err conftest.$ac_objext \
14489 conftest$ac_exeext conftest.$ac_ext
14490
14491 fi
14492
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_int" >&5
14494 $as_echo "$druntime_cv_atomic_int" >&6; }
14495
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long" >&5
14497 $as_echo_n "checking for atomic builtins for long... " >&6; }
14498 if ${druntime_cv_atomic_long+:} false; then :
14499 $as_echo_n "(cached) " >&6
14500 else
14501
14502 cat > conftest.$ac_ext <<_ACEOF
14503 module mod;
14504 import gcc.builtins;
14505
14506 extern(C) int main() {
14507
14508 shared(long) c1;
14509 long c2, c3;
14510 __atomic_compare_exchange_8(&c1, &c2, c3, false, 5, 5);
14511 __atomic_load_8(&c1, 5);
14512 __atomic_store_8(&c1, c2, 5);
14513 return 0;
14514
14515 }
14516 _ACEOF
14517 if ac_fn_d_try_link "$LINENO"; then :
14518 druntime_cv_atomic_long=yes
14519 else
14520 druntime_cv_atomic_long=no
14521 fi
14522 rm -f core conftest.err conftest.$ac_objext \
14523 conftest$ac_exeext conftest.$ac_ext
14524
14525 fi
14526
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_long" >&5
14528 $as_echo "$druntime_cv_atomic_long" >&6; }
14529
14530 # Have atomic builtin support if all but the long test above passes.
14531 DCFG_HAVE_ATOMIC_BUILTINS=false
14532 if test "$druntime_cv_atomic_byte" = yes \
14533 && test "$druntime_cv_atomic_short" = yes \
14534 && test "$druntime_cv_atomic_int" = yes; then \
14535 DCFG_HAVE_ATOMIC_BUILTINS=true
14536 fi
14537
14538 # Have 64-bit atomic support if the long test above passes.
14539 DCFG_HAVE_64BIT_ATOMICS=false
14540 if test "$druntime_cv_atomic_long" = yes; then
14541 DCFG_HAVE_64BIT_ATOMICS=true
14542 fi
14543
14544
14545
14546
14547 ac_ext=c
14548 ac_cpp='$CPP $CPPFLAGS'
14549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14552
14553
14554 GDCFLAGS=$gdc_save_DFLAGS
14555
14556
14557
14558
14559 # Check whether --with-libatomic was given.
14560 if test "${with_libatomic+set}" = set; then :
14561 withval=$with_libatomic;
14562 fi
14563
14564
14565 DCFG_HAVE_LIBATOMIC=false
14566 LIBATOMIC=
14567 if test "x$with_libatomic" != "xno"; then :
14568
14569 DCFG_HAVE_LIBATOMIC=true
14570 LIBATOMIC=../../libatomic/libatomic_convenience.la
14571
14572 else
14573
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic" >&5
14575 $as_echo_n "checking for libatomic... " >&6; }
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14577 $as_echo "disabled" >&6; }
14578
14579 fi
14580
14581
14582
14583
14584
14585 ac_ext=c
14586 ac_cpp='$CPP $CPPFLAGS'
14587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14590
14591 BACKTRACE_SUPPORTED=false
14592 BACKTRACE_USES_MALLOC=false
14593 BACKTRACE_SUPPORTS_THREADS=false
14594 LIBBACKTRACE=""
14595
14596
14597 # Check whether --with-libbacktrace was given.
14598 if test "${with_libbacktrace+set}" = set; then :
14599 withval=$with_libbacktrace;
14600 fi
14601
14602
14603 if test "x$with_libbacktrace" != "xno"; then :
14604
14605 LIBBACKTRACE=../../libbacktrace/libbacktrace.la
14606
14607 gdc_save_CPPFLAGS=$CPPFLAGS
14608 CPPFLAGS+=" -I../libbacktrace "
14609
14610 ac_fn_c_check_header_mongrel "$LINENO" "backtrace-supported.h" "ac_cv_header_backtrace_supported_h" "$ac_includes_default"
14611 if test "x$ac_cv_header_backtrace_supported_h" = xyes; then :
14612 have_libbacktrace_h=true
14613 else
14614 have_libbacktrace_h=false
14615 fi
14616
14617
14618
14619 if $have_libbacktrace_h; then
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTED" >&5
14621 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTED... " >&6; }
14622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14623 /* end confdefs.h. */
14624
14625 #include <backtrace-supported.h>
14626 #if BACKTRACE_SUPPORTED
14627 FOUND_LIBBACKTRACE_RESULT_GDC
14628 #endif
14629
14630 _ACEOF
14631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14632 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14633 BACKTRACE_SUPPORTED=true
14634 else
14635 BACKTRACE_SUPPORTED=false
14636 fi
14637 rm -f conftest*
14638
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTED" >&5
14640 $as_echo "$BACKTRACE_SUPPORTED" >&6; }
14641
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_USES_MALLOC" >&5
14643 $as_echo_n "checking libbacktrace: BACKTRACE_USES_MALLOC... " >&6; }
14644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14645 /* end confdefs.h. */
14646
14647 #include <backtrace-supported.h>
14648 #if BACKTRACE_USES_MALLOC
14649 FOUND_LIBBACKTRACE_RESULT_GDC
14650 #endif
14651
14652 _ACEOF
14653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14654 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14655 BACKTRACE_USES_MALLOC=true
14656 else
14657 BACKTRACE_USES_MALLOC=false
14658 fi
14659 rm -f conftest*
14660
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_USES_MALLOC" >&5
14662 $as_echo "$BACKTRACE_USES_MALLOC" >&6; }
14663
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTS_THREADS" >&5
14665 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTS_THREADS... " >&6; }
14666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14667 /* end confdefs.h. */
14668
14669 #include <backtrace-supported.h>
14670 #if BACKTRACE_SUPPORTS_THREADS
14671 FOUND_LIBBACKTRACE_RESULT_GDC
14672 #endif
14673
14674 _ACEOF
14675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14676 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14677 BACKTRACE_SUPPORTS_THREADS=true
14678 else
14679 BACKTRACE_SUPPORTS_THREADS=false
14680 fi
14681 rm -f conftest*
14682
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTS_THREADS" >&5
14684 $as_echo "$BACKTRACE_SUPPORTS_THREADS" >&6; }
14685 fi
14686 CPPFLAGS=$gdc_save_CPPFLAGS
14687
14688 else
14689
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbacktrace" >&5
14691 $as_echo_n "checking for libbacktrace... " >&6; }
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14693 $as_echo "disabled" >&6; }
14694
14695 fi
14696
14697
14698
14699
14700
14701 ac_ext=c
14702 ac_cpp='$CPP $CPPFLAGS'
14703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14706
14707
14708
14709 # Libtool has already checked this, so re-use the inferred dlopen lib.
14710 if test "x$enable_dlopen" = "xyes" && test -n "$lt_cv_dlopen_libs"; then :
14711
14712 LIBS="$LIBS $lt_cv_dlopen_libs"
14713
14714 fi
14715
14716
14717
14718 # Check whether --with-target-system-zlib was given.
14719 if test "${with_target_system_zlib+set}" = set; then :
14720 withval=$with_target_system_zlib;
14721 fi
14722
14723
14724 system_zlib=false
14725 if test "x$with_target_system_zlib" = "xyes"; then :
14726
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
14728 $as_echo_n "checking for deflate in -lz... " >&6; }
14729 if ${ac_cv_lib_z_deflate+:} false; then :
14730 $as_echo_n "(cached) " >&6
14731 else
14732 ac_check_lib_save_LIBS=$LIBS
14733 LIBS="-lz $LIBS"
14734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14735 /* end confdefs.h. */
14736
14737 /* Override any GCC internal prototype to avoid an error.
14738 Use char because int might match the return type of a GCC
14739 builtin and then its argument prototype would still apply. */
14740 #ifdef __cplusplus
14741 extern "C"
14742 #endif
14743 char deflate ();
14744 int
14745 main ()
14746 {
14747 return deflate ();
14748 ;
14749 return 0;
14750 }
14751 _ACEOF
14752 if ac_fn_c_try_link "$LINENO"; then :
14753 ac_cv_lib_z_deflate=yes
14754 else
14755 ac_cv_lib_z_deflate=no
14756 fi
14757 rm -f core conftest.err conftest.$ac_objext \
14758 conftest$ac_exeext conftest.$ac_ext
14759 LIBS=$ac_check_lib_save_LIBS
14760 fi
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
14762 $as_echo "$ac_cv_lib_z_deflate" >&6; }
14763 if test "x$ac_cv_lib_z_deflate" = xyes; then :
14764
14765 system_zlib=yes
14766
14767 else
14768
14769 as_fn_error $? "System zlib not found" "$LINENO" 5
14770
14771 fi
14772
14773
14774 else
14775
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
14777 $as_echo_n "checking for zlib... " >&6; }
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14779 $as_echo "just compiled" >&6; }
14780
14781 fi
14782
14783 if test "$with_target_system_zlib" = yes; then
14784 DRUNTIME_ZLIB_SYSTEM_TRUE=
14785 DRUNTIME_ZLIB_SYSTEM_FALSE='#'
14786 else
14787 DRUNTIME_ZLIB_SYSTEM_TRUE='#'
14788 DRUNTIME_ZLIB_SYSTEM_FALSE=
14789 fi
14790
14791
14792
14793
14794
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking D GCC version" >&5
14796 $as_echo_n "checking D GCC version... " >&6; }
14797 gcc_version=`eval $get_gcc_base_ver $srcdir/../gcc/BASE-VER`
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_version" >&5
14799 $as_echo "$gcc_version" >&6; }
14800
14801
14802
14803 # Check whether --with-cross-host was given.
14804 if test "${with_cross_host+set}" = set; then :
14805 withval=$with_cross_host;
14806 fi
14807
14808
14809 toolexecdir=no
14810 toolexeclibdir=no
14811
14812 version_specific_libs=no
14813
14814 # Version-specific runtime libs processing.
14815 if test $version_specific_libs = yes; then
14816 toolexecdir='${libdir}/gcc/${host_alias}'
14817 toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
14818 else
14819 # Calculate toolexecdir, toolexeclibdir
14820 # Install a library built with a cross compiler in tooldir, not libdir.
14821 if test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
14822 toolexecdir='${exec_prefix}/${host_alias}'
14823 toolexeclibdir='${toolexecdir}/lib'
14824 else
14825 toolexecdir='${libdir}/gcc/${host_alias}'
14826 toolexeclibdir='${libdir}'
14827 fi
14828 multi_os_directory=`$GDC -print-multi-os-directory`
14829 case $multi_os_directory in
14830 .) ;; # Avoid trailing /.
14831 *) toolexeclibdir=${toolexeclibdir}/${multi_os_directory} ;;
14832 esac
14833 fi
14834
14835
14836
14837 # Default case for install directory for D sources files.
14838 gdc_include_dir='$(libdir)/gcc/${target_alias}/${gcc_version}/include/d'
14839
14840
14841
14842 # Add dependencies for libgphobos.spec file
14843 SPEC_PHOBOS_DEPS="$LIBS"
14844
14845
14846 # Libdruntime / phobos soname version
14847 DRUNTIME_SOVERSION="76:2:0"
14848 PHOBOS_SOVERSION="76:2:0"
14849
14850
14851
14852 # Set default flags (after DRUNTIME_WERROR!)
14853 if test -z "$GDCFLAGS"; then
14854 GDCFLAGS="-Wall $WERROR_FLAG -g -frelease -O2"
14855 fi
14856
14857
14858 if test -z "$GDCFLAGSX"; then
14859 GDCFLAGSX="-Wall $WERROR_FLAG -g -fno-release -funittest"
14860 fi
14861
14862
14863 # Sanity check for the cross-compilation case:
14864 ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
14865 if test "x$ac_cv_header_stdio_h" = xyes; then :
14866 :
14867 else
14868 as_fn_error $? "cannot find stdio.h." "$LINENO" 5
14869 fi
14870
14871
14872
14873 ac_config_files="$ac_config_files Makefile src/Makefile libdruntime/Makefile testsuite/Makefile"
14874
14875
14876 ac_config_files="$ac_config_files libdruntime/gcc/config.d libdruntime/gcc/libbacktrace.d"
14877
14878 ac_config_files="$ac_config_files src/libgphobos.spec"
14879
14880 ac_config_files="$ac_config_files testsuite/testsuite_flags"
14881
14882
14883 # We need multilib support, but only if configuring for the target.
14884 ac_config_commands="$ac_config_commands default"
14885
14886
14887 cat >confcache <<\_ACEOF
14888 # This file is a shell script that caches the results of configure
14889 # tests run on this system so they can be shared between configure
14890 # scripts and configure runs, see configure's option --config-cache.
14891 # It is not useful on other systems. If it contains results you don't
14892 # want to keep, you may remove or edit it.
14893 #
14894 # config.status only pays attention to the cache file if you give it
14895 # the --recheck option to rerun configure.
14896 #
14897 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14898 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14899 # following values.
14900
14901 _ACEOF
14902
14903 # The following way of writing the cache mishandles newlines in values,
14904 # but we know of no workaround that is simple, portable, and efficient.
14905 # So, we kill variables containing newlines.
14906 # Ultrix sh set writes to stderr and can't be redirected directly,
14907 # and sets the high bit in the cache file unless we assign to the vars.
14908 (
14909 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14910 eval ac_val=\$$ac_var
14911 case $ac_val in #(
14912 *${as_nl}*)
14913 case $ac_var in #(
14914 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14915 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14916 esac
14917 case $ac_var in #(
14918 _ | IFS | as_nl) ;; #(
14919 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14920 *) { eval $ac_var=; unset $ac_var;} ;;
14921 esac ;;
14922 esac
14923 done
14924
14925 (set) 2>&1 |
14926 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14927 *${as_nl}ac_space=\ *)
14928 # `set' does not quote correctly, so add quotes: double-quote
14929 # substitution turns \\\\ into \\, and sed turns \\ into \.
14930 sed -n \
14931 "s/'/'\\\\''/g;
14932 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14933 ;; #(
14934 *)
14935 # `set' quotes correctly as required by POSIX, so do not add quotes.
14936 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14937 ;;
14938 esac |
14939 sort
14940 ) |
14941 sed '
14942 /^ac_cv_env_/b end
14943 t clear
14944 :clear
14945 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14946 t end
14947 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14948 :end' >>confcache
14949 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14950 if test -w "$cache_file"; then
14951 if test "x$cache_file" != "x/dev/null"; then
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14953 $as_echo "$as_me: updating cache $cache_file" >&6;}
14954 if test ! -f "$cache_file" || test -h "$cache_file"; then
14955 cat confcache >"$cache_file"
14956 else
14957 case $cache_file in #(
14958 */* | ?:*)
14959 mv -f confcache "$cache_file"$$ &&
14960 mv -f "$cache_file"$$ "$cache_file" ;; #(
14961 *)
14962 mv -f confcache "$cache_file" ;;
14963 esac
14964 fi
14965 fi
14966 else
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14968 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14969 fi
14970 fi
14971 rm -f confcache
14972
14973 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14974 # Let make expand exec_prefix.
14975 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14976
14977 DEFS=-DHAVE_CONFIG_H
14978
14979 ac_libobjs=
14980 ac_ltlibobjs=
14981 U=
14982 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14983 # 1. Remove the extension, and $U if already installed.
14984 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14985 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14986 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14987 # will be set to the directory where LIBOBJS objects are built.
14988 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14989 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14990 done
14991 LIBOBJS=$ac_libobjs
14992
14993 LTLIBOBJS=$ac_ltlibobjs
14994
14995
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14997 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14998 if test -n "$am_sleep_pid"; then
14999 # Hide warnings about reused PIDs.
15000 wait $am_sleep_pid 2>/dev/null
15001 fi
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15003 $as_echo "done" >&6; }
15004 if test -n "$EXEEXT"; then
15005 am__EXEEXT_TRUE=
15006 am__EXEEXT_FALSE='#'
15007 else
15008 am__EXEEXT_TRUE='#'
15009 am__EXEEXT_FALSE=
15010 fi
15011
15012 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15013 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15014 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15015 fi
15016 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
15017 as_fn_error $? "conditional \"ENABLE_SHARED\" was never defined.
15018 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15019 fi
15020 if test -z "${ENABLE_STATIC_TRUE}" && test -z "${ENABLE_STATIC_FALSE}"; then
15021 as_fn_error $? "conditional \"ENABLE_STATIC\" was never defined.
15022 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15023 fi
15024 if test -z "${DRUNTIME_GC_ENABLE_TRUE}" && test -z "${DRUNTIME_GC_ENABLE_FALSE}"; then
15025 as_fn_error $? "conditional \"DRUNTIME_GC_ENABLE\" was never defined.
15026 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15027 fi
15028 if test -z "${DRUNTIME_OS_UNIX_TRUE}" && test -z "${DRUNTIME_OS_UNIX_FALSE}"; then
15029 as_fn_error $? "conditional \"DRUNTIME_OS_UNIX\" was never defined.
15030 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15031 fi
15032 if test -z "${DRUNTIME_OS_AIX_TRUE}" && test -z "${DRUNTIME_OS_AIX_FALSE}"; then
15033 as_fn_error $? "conditional \"DRUNTIME_OS_AIX\" was never defined.
15034 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15035 fi
15036 if test -z "${DRUNTIME_OS_ANDROID_TRUE}" && test -z "${DRUNTIME_OS_ANDROID_FALSE}"; then
15037 as_fn_error $? "conditional \"DRUNTIME_OS_ANDROID\" was never defined.
15038 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15039 fi
15040 if test -z "${DRUNTIME_OS_DARWIN_TRUE}" && test -z "${DRUNTIME_OS_DARWIN_FALSE}"; then
15041 as_fn_error $? "conditional \"DRUNTIME_OS_DARWIN\" was never defined.
15042 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15043 fi
15044 if test -z "${DRUNTIME_OS_DRAGONFLYBSD_TRUE}" && test -z "${DRUNTIME_OS_DRAGONFLYBSD_FALSE}"; then
15045 as_fn_error $? "conditional \"DRUNTIME_OS_DRAGONFLYBSD\" was never defined.
15046 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15047 fi
15048 if test -z "${DRUNTIME_OS_FREEBSD_TRUE}" && test -z "${DRUNTIME_OS_FREEBSD_FALSE}"; then
15049 as_fn_error $? "conditional \"DRUNTIME_OS_FREEBSD\" was never defined.
15050 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15051 fi
15052 if test -z "${DRUNTIME_OS_NETBSD_TRUE}" && test -z "${DRUNTIME_OS_NETBSD_FALSE}"; then
15053 as_fn_error $? "conditional \"DRUNTIME_OS_NETBSD\" was never defined.
15054 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15055 fi
15056 if test -z "${DRUNTIME_OS_OPENBSD_TRUE}" && test -z "${DRUNTIME_OS_OPENBSD_FALSE}"; then
15057 as_fn_error $? "conditional \"DRUNTIME_OS_OPENBSD\" was never defined.
15058 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15059 fi
15060 if test -z "${DRUNTIME_OS_LINUX_TRUE}" && test -z "${DRUNTIME_OS_LINUX_FALSE}"; then
15061 as_fn_error $? "conditional \"DRUNTIME_OS_LINUX\" was never defined.
15062 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15063 fi
15064 if test -z "${DRUNTIME_OS_MINGW_TRUE}" && test -z "${DRUNTIME_OS_MINGW_FALSE}"; then
15065 as_fn_error $? "conditional \"DRUNTIME_OS_MINGW\" was never defined.
15066 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15067 fi
15068 if test -z "${DRUNTIME_OS_SOLARIS_TRUE}" && test -z "${DRUNTIME_OS_SOLARIS_FALSE}"; then
15069 as_fn_error $? "conditional \"DRUNTIME_OS_SOLARIS\" was never defined.
15070 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15071 fi
15072 if test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE}" && test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE}"; then
15073 as_fn_error $? "conditional \"DRUNTIME_OS_ARM_EABI_UNWINDER\" was never defined.
15074 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15075 fi
15076 if test -z "${DRUNTIME_ZLIB_SYSTEM_TRUE}" && test -z "${DRUNTIME_ZLIB_SYSTEM_FALSE}"; then
15077 as_fn_error $? "conditional \"DRUNTIME_ZLIB_SYSTEM\" was never defined.
15078 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15079 fi
15080
15081 : "${CONFIG_STATUS=./config.status}"
15082 ac_write_fail=0
15083 ac_clean_files_save=$ac_clean_files
15084 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15086 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15087 as_write_fail=0
15088 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15089 #! $SHELL
15090 # Generated by $as_me.
15091 # Run this file to recreate the current configuration.
15092 # Compiler output produced by configure, useful for debugging
15093 # configure, is in config.log if it exists.
15094
15095 debug=false
15096 ac_cs_recheck=false
15097 ac_cs_silent=false
15098
15099 SHELL=\${CONFIG_SHELL-$SHELL}
15100 export SHELL
15101 _ASEOF
15102 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15103 ## -------------------- ##
15104 ## M4sh Initialization. ##
15105 ## -------------------- ##
15106
15107 # Be more Bourne compatible
15108 DUALCASE=1; export DUALCASE # for MKS sh
15109 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15110 emulate sh
15111 NULLCMD=:
15112 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15113 # is contrary to our usage. Disable this feature.
15114 alias -g '${1+"$@"}'='"$@"'
15115 setopt NO_GLOB_SUBST
15116 else
15117 case `(set -o) 2>/dev/null` in #(
15118 *posix*) :
15119 set -o posix ;; #(
15120 *) :
15121 ;;
15122 esac
15123 fi
15124
15125
15126 as_nl='
15127 '
15128 export as_nl
15129 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15130 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15131 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15132 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15133 # Prefer a ksh shell builtin over an external printf program on Solaris,
15134 # but without wasting forks for bash or zsh.
15135 if test -z "$BASH_VERSION$ZSH_VERSION" \
15136 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15137 as_echo='print -r --'
15138 as_echo_n='print -rn --'
15139 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15140 as_echo='printf %s\n'
15141 as_echo_n='printf %s'
15142 else
15143 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15144 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15145 as_echo_n='/usr/ucb/echo -n'
15146 else
15147 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15148 as_echo_n_body='eval
15149 arg=$1;
15150 case $arg in #(
15151 *"$as_nl"*)
15152 expr "X$arg" : "X\\(.*\\)$as_nl";
15153 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15154 esac;
15155 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15156 '
15157 export as_echo_n_body
15158 as_echo_n='sh -c $as_echo_n_body as_echo'
15159 fi
15160 export as_echo_body
15161 as_echo='sh -c $as_echo_body as_echo'
15162 fi
15163
15164 # The user is always right.
15165 if test "${PATH_SEPARATOR+set}" != set; then
15166 PATH_SEPARATOR=:
15167 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15168 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15169 PATH_SEPARATOR=';'
15170 }
15171 fi
15172
15173
15174 # IFS
15175 # We need space, tab and new line, in precisely that order. Quoting is
15176 # there to prevent editors from complaining about space-tab.
15177 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15178 # splitting by setting IFS to empty value.)
15179 IFS=" "" $as_nl"
15180
15181 # Find who we are. Look in the path if we contain no directory separator.
15182 as_myself=
15183 case $0 in #((
15184 *[\\/]* ) as_myself=$0 ;;
15185 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15186 for as_dir in $PATH
15187 do
15188 IFS=$as_save_IFS
15189 test -z "$as_dir" && as_dir=.
15190 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15191 done
15192 IFS=$as_save_IFS
15193
15194 ;;
15195 esac
15196 # We did not find ourselves, most probably we were run as `sh COMMAND'
15197 # in which case we are not to be found in the path.
15198 if test "x$as_myself" = x; then
15199 as_myself=$0
15200 fi
15201 if test ! -f "$as_myself"; then
15202 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15203 exit 1
15204 fi
15205
15206 # Unset variables that we do not need and which cause bugs (e.g. in
15207 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15208 # suppresses any "Segmentation fault" message there. '((' could
15209 # trigger a bug in pdksh 5.2.14.
15210 for as_var in BASH_ENV ENV MAIL MAILPATH
15211 do eval test x\${$as_var+set} = xset \
15212 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15213 done
15214 PS1='$ '
15215 PS2='> '
15216 PS4='+ '
15217
15218 # NLS nuisances.
15219 LC_ALL=C
15220 export LC_ALL
15221 LANGUAGE=C
15222 export LANGUAGE
15223
15224 # CDPATH.
15225 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15226
15227
15228 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15229 # ----------------------------------------
15230 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15231 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15232 # script with STATUS, using 1 if that was 0.
15233 as_fn_error ()
15234 {
15235 as_status=$1; test $as_status -eq 0 && as_status=1
15236 if test "$4"; then
15237 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15238 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15239 fi
15240 $as_echo "$as_me: error: $2" >&2
15241 as_fn_exit $as_status
15242 } # as_fn_error
15243
15244
15245 # as_fn_set_status STATUS
15246 # -----------------------
15247 # Set $? to STATUS, without forking.
15248 as_fn_set_status ()
15249 {
15250 return $1
15251 } # as_fn_set_status
15252
15253 # as_fn_exit STATUS
15254 # -----------------
15255 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15256 as_fn_exit ()
15257 {
15258 set +e
15259 as_fn_set_status $1
15260 exit $1
15261 } # as_fn_exit
15262
15263 # as_fn_unset VAR
15264 # ---------------
15265 # Portably unset VAR.
15266 as_fn_unset ()
15267 {
15268 { eval $1=; unset $1;}
15269 }
15270 as_unset=as_fn_unset
15271 # as_fn_append VAR VALUE
15272 # ----------------------
15273 # Append the text in VALUE to the end of the definition contained in VAR. Take
15274 # advantage of any shell optimizations that allow amortized linear growth over
15275 # repeated appends, instead of the typical quadratic growth present in naive
15276 # implementations.
15277 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15278 eval 'as_fn_append ()
15279 {
15280 eval $1+=\$2
15281 }'
15282 else
15283 as_fn_append ()
15284 {
15285 eval $1=\$$1\$2
15286 }
15287 fi # as_fn_append
15288
15289 # as_fn_arith ARG...
15290 # ------------------
15291 # Perform arithmetic evaluation on the ARGs, and store the result in the
15292 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15293 # must be portable across $(()) and expr.
15294 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15295 eval 'as_fn_arith ()
15296 {
15297 as_val=$(( $* ))
15298 }'
15299 else
15300 as_fn_arith ()
15301 {
15302 as_val=`expr "$@" || test $? -eq 1`
15303 }
15304 fi # as_fn_arith
15305
15306
15307 if expr a : '\(a\)' >/dev/null 2>&1 &&
15308 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15309 as_expr=expr
15310 else
15311 as_expr=false
15312 fi
15313
15314 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15315 as_basename=basename
15316 else
15317 as_basename=false
15318 fi
15319
15320 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15321 as_dirname=dirname
15322 else
15323 as_dirname=false
15324 fi
15325
15326 as_me=`$as_basename -- "$0" ||
15327 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15328 X"$0" : 'X\(//\)$' \| \
15329 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15330 $as_echo X/"$0" |
15331 sed '/^.*\/\([^/][^/]*\)\/*$/{
15332 s//\1/
15333 q
15334 }
15335 /^X\/\(\/\/\)$/{
15336 s//\1/
15337 q
15338 }
15339 /^X\/\(\/\).*/{
15340 s//\1/
15341 q
15342 }
15343 s/.*/./; q'`
15344
15345 # Avoid depending upon Character Ranges.
15346 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15347 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15348 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15349 as_cr_digits='0123456789'
15350 as_cr_alnum=$as_cr_Letters$as_cr_digits
15351
15352 ECHO_C= ECHO_N= ECHO_T=
15353 case `echo -n x` in #(((((
15354 -n*)
15355 case `echo 'xy\c'` in
15356 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15357 xy) ECHO_C='\c';;
15358 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15359 ECHO_T=' ';;
15360 esac;;
15361 *)
15362 ECHO_N='-n';;
15363 esac
15364
15365 rm -f conf$$ conf$$.exe conf$$.file
15366 if test -d conf$$.dir; then
15367 rm -f conf$$.dir/conf$$.file
15368 else
15369 rm -f conf$$.dir
15370 mkdir conf$$.dir 2>/dev/null
15371 fi
15372 if (echo >conf$$.file) 2>/dev/null; then
15373 if ln -s conf$$.file conf$$ 2>/dev/null; then
15374 as_ln_s='ln -s'
15375 # ... but there are two gotchas:
15376 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15377 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15378 # In both cases, we have to default to `cp -pR'.
15379 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15380 as_ln_s='cp -pR'
15381 elif ln conf$$.file conf$$ 2>/dev/null; then
15382 as_ln_s=ln
15383 else
15384 as_ln_s='cp -pR'
15385 fi
15386 else
15387 as_ln_s='cp -pR'
15388 fi
15389 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15390 rmdir conf$$.dir 2>/dev/null
15391
15392
15393 # as_fn_mkdir_p
15394 # -------------
15395 # Create "$as_dir" as a directory, including parents if necessary.
15396 as_fn_mkdir_p ()
15397 {
15398
15399 case $as_dir in #(
15400 -*) as_dir=./$as_dir;;
15401 esac
15402 test -d "$as_dir" || eval $as_mkdir_p || {
15403 as_dirs=
15404 while :; do
15405 case $as_dir in #(
15406 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15407 *) as_qdir=$as_dir;;
15408 esac
15409 as_dirs="'$as_qdir' $as_dirs"
15410 as_dir=`$as_dirname -- "$as_dir" ||
15411 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15412 X"$as_dir" : 'X\(//\)[^/]' \| \
15413 X"$as_dir" : 'X\(//\)$' \| \
15414 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15415 $as_echo X"$as_dir" |
15416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15417 s//\1/
15418 q
15419 }
15420 /^X\(\/\/\)[^/].*/{
15421 s//\1/
15422 q
15423 }
15424 /^X\(\/\/\)$/{
15425 s//\1/
15426 q
15427 }
15428 /^X\(\/\).*/{
15429 s//\1/
15430 q
15431 }
15432 s/.*/./; q'`
15433 test -d "$as_dir" && break
15434 done
15435 test -z "$as_dirs" || eval "mkdir $as_dirs"
15436 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15437
15438
15439 } # as_fn_mkdir_p
15440 if mkdir -p . 2>/dev/null; then
15441 as_mkdir_p='mkdir -p "$as_dir"'
15442 else
15443 test -d ./-p && rmdir ./-p
15444 as_mkdir_p=false
15445 fi
15446
15447
15448 # as_fn_executable_p FILE
15449 # -----------------------
15450 # Test if FILE is an executable regular file.
15451 as_fn_executable_p ()
15452 {
15453 test -f "$1" && test -x "$1"
15454 } # as_fn_executable_p
15455 as_test_x='test -x'
15456 as_executable_p=as_fn_executable_p
15457
15458 # Sed expression to map a string onto a valid CPP name.
15459 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15460
15461 # Sed expression to map a string onto a valid variable name.
15462 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15463
15464
15465 exec 6>&1
15466 ## ----------------------------------- ##
15467 ## Main body of $CONFIG_STATUS script. ##
15468 ## ----------------------------------- ##
15469 _ASEOF
15470 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15471
15472 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15473 # Save the log message, to keep $0 and so on meaningful, and to
15474 # report actual input values of CONFIG_FILES etc. instead of their
15475 # values after options handling.
15476 ac_log="
15477 This file was extended by package-unused $as_me version-unused, which was
15478 generated by GNU Autoconf 2.69. Invocation command line was
15479
15480 CONFIG_FILES = $CONFIG_FILES
15481 CONFIG_HEADERS = $CONFIG_HEADERS
15482 CONFIG_LINKS = $CONFIG_LINKS
15483 CONFIG_COMMANDS = $CONFIG_COMMANDS
15484 $ $0 $@
15485
15486 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15487 "
15488
15489 _ACEOF
15490
15491 case $ac_config_files in *"
15492 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15493 esac
15494
15495 case $ac_config_headers in *"
15496 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15497 esac
15498
15499
15500 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15501 # Files that config.status was made for.
15502 config_files="$ac_config_files"
15503 config_headers="$ac_config_headers"
15504 config_commands="$ac_config_commands"
15505
15506 _ACEOF
15507
15508 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15509 ac_cs_usage="\
15510 \`$as_me' instantiates files and other configuration actions
15511 from templates according to the current configuration. Unless the files
15512 and actions are specified as TAGs, all are instantiated by default.
15513
15514 Usage: $0 [OPTION]... [TAG]...
15515
15516 -h, --help print this help, then exit
15517 -V, --version print version number and configuration settings, then exit
15518 --config print configuration, then exit
15519 -q, --quiet, --silent
15520 do not print progress messages
15521 -d, --debug don't remove temporary files
15522 --recheck update $as_me by reconfiguring in the same conditions
15523 --file=FILE[:TEMPLATE]
15524 instantiate the configuration file FILE
15525 --header=FILE[:TEMPLATE]
15526 instantiate the configuration header FILE
15527
15528 Configuration files:
15529 $config_files
15530
15531 Configuration headers:
15532 $config_headers
15533
15534 Configuration commands:
15535 $config_commands
15536
15537 Report bugs to the package provider."
15538
15539 _ACEOF
15540 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15541 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15542 ac_cs_version="\\
15543 package-unused config.status version-unused
15544 configured by $0, generated by GNU Autoconf 2.69,
15545 with options \\"\$ac_cs_config\\"
15546
15547 Copyright (C) 2012 Free Software Foundation, Inc.
15548 This config.status script is free software; the Free Software Foundation
15549 gives unlimited permission to copy, distribute and modify it."
15550
15551 ac_pwd='$ac_pwd'
15552 srcdir='$srcdir'
15553 INSTALL='$INSTALL'
15554 MKDIR_P='$MKDIR_P'
15555 AWK='$AWK'
15556 test -n "\$AWK" || AWK=awk
15557 _ACEOF
15558
15559 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15560 # The default lists apply if the user does not specify any file.
15561 ac_need_defaults=:
15562 while test $# != 0
15563 do
15564 case $1 in
15565 --*=?*)
15566 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15567 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15568 ac_shift=:
15569 ;;
15570 --*=)
15571 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15572 ac_optarg=
15573 ac_shift=:
15574 ;;
15575 *)
15576 ac_option=$1
15577 ac_optarg=$2
15578 ac_shift=shift
15579 ;;
15580 esac
15581
15582 case $ac_option in
15583 # Handling of the options.
15584 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15585 ac_cs_recheck=: ;;
15586 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15587 $as_echo "$ac_cs_version"; exit ;;
15588 --config | --confi | --conf | --con | --co | --c )
15589 $as_echo "$ac_cs_config"; exit ;;
15590 --debug | --debu | --deb | --de | --d | -d )
15591 debug=: ;;
15592 --file | --fil | --fi | --f )
15593 $ac_shift
15594 case $ac_optarg in
15595 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15596 '') as_fn_error $? "missing file argument" ;;
15597 esac
15598 as_fn_append CONFIG_FILES " '$ac_optarg'"
15599 ac_need_defaults=false;;
15600 --header | --heade | --head | --hea )
15601 $ac_shift
15602 case $ac_optarg in
15603 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15604 esac
15605 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15606 ac_need_defaults=false;;
15607 --he | --h)
15608 # Conflict between --help and --header
15609 as_fn_error $? "ambiguous option: \`$1'
15610 Try \`$0 --help' for more information.";;
15611 --help | --hel | -h )
15612 $as_echo "$ac_cs_usage"; exit ;;
15613 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15614 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15615 ac_cs_silent=: ;;
15616
15617 # This is an error.
15618 -*) as_fn_error $? "unrecognized option: \`$1'
15619 Try \`$0 --help' for more information." ;;
15620
15621 *) as_fn_append ac_config_targets " $1"
15622 ac_need_defaults=false ;;
15623
15624 esac
15625 shift
15626 done
15627
15628 ac_configure_extra_args=
15629
15630 if $ac_cs_silent; then
15631 exec 6>/dev/null
15632 ac_configure_extra_args="$ac_configure_extra_args --silent"
15633 fi
15634
15635 _ACEOF
15636 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15637 if \$ac_cs_recheck; then
15638 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15639 shift
15640 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15641 CONFIG_SHELL='$SHELL'
15642 export CONFIG_SHELL
15643 exec "\$@"
15644 fi
15645
15646 _ACEOF
15647 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15648 exec 5>>config.log
15649 {
15650 echo
15651 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15652 ## Running $as_me. ##
15653 _ASBOX
15654 $as_echo "$ac_log"
15655 } >&5
15656
15657 _ACEOF
15658 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15659 #
15660 # INIT-COMMANDS
15661 #
15662
15663 srcdir="$srcdir"
15664 host="$host"
15665 target="$target"
15666 with_multisubdir="$with_multisubdir"
15667 with_multisrctop="$with_multisrctop"
15668 with_target_subdir="$with_target_subdir"
15669 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15670 multi_basedir="$multi_basedir"
15671 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15672 CC="$CC"
15673 CXX="$CXX"
15674 GFORTRAN="$GFORTRAN"
15675 GDC="$GDC"
15676
15677
15678 # The HP-UX ksh and POSIX shell print the target directory to stdout
15679 # if CDPATH is set.
15680 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15681
15682 sed_quote_subst='$sed_quote_subst'
15683 double_quote_subst='$double_quote_subst'
15684 delay_variable_subst='$delay_variable_subst'
15685 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15686 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15687 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15688 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15689 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15690 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15691 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15692 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15693 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15694 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15695 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15696 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15697 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15698 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15699 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15700 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15701 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15702 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15703 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15704 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15705 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15706 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15707 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15708 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15709 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15710 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15711 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15712 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15713 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15714 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15715 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15716 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15717 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15718 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15719 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15720 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15721 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15722 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15723 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15724 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15725 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15726 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15727 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15728 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15729 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15730 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15731 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15732 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15733 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"`'
15734 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15735 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15736 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15737 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15738 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15739 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15740 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15741 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15742 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15743 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15744 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15745 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15746 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15747 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15748 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15749 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15750 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15751 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15752 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15753 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15754 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15755 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15756 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15757 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15758 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15759 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15760 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15761 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15762 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15763 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15764 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15765 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15766 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15767 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15768 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15769 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15770 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15771 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15772 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15773 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15774 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15775 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15776 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15777 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15778 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15779 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15780 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15781 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15782 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15783 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15784 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15785 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15786 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15787 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15788 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15789 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15790 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15791 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15792 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15793 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15794 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15795 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15796 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15797 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15798 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15799 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15800 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15801 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15802 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15803 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15804 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15805 LD_D='`$ECHO "$LD_D" | $SED "$delay_single_quote_subst"`'
15806 reload_flag_D='`$ECHO "$reload_flag_D" | $SED "$delay_single_quote_subst"`'
15807 reload_cmds_D='`$ECHO "$reload_cmds_D" | $SED "$delay_single_quote_subst"`'
15808 old_archive_cmds_D='`$ECHO "$old_archive_cmds_D" | $SED "$delay_single_quote_subst"`'
15809 compiler_D='`$ECHO "$compiler_D" | $SED "$delay_single_quote_subst"`'
15810 GCC_D='`$ECHO "$GCC_D" | $SED "$delay_single_quote_subst"`'
15811 lt_prog_compiler_no_builtin_flag_D='`$ECHO "$lt_prog_compiler_no_builtin_flag_D" | $SED "$delay_single_quote_subst"`'
15812 lt_prog_compiler_wl_D='`$ECHO "$lt_prog_compiler_wl_D" | $SED "$delay_single_quote_subst"`'
15813 lt_prog_compiler_pic_D='`$ECHO "$lt_prog_compiler_pic_D" | $SED "$delay_single_quote_subst"`'
15814 lt_prog_compiler_static_D='`$ECHO "$lt_prog_compiler_static_D" | $SED "$delay_single_quote_subst"`'
15815 lt_cv_prog_compiler_c_o_D='`$ECHO "$lt_cv_prog_compiler_c_o_D" | $SED "$delay_single_quote_subst"`'
15816 archive_cmds_need_lc_D='`$ECHO "$archive_cmds_need_lc_D" | $SED "$delay_single_quote_subst"`'
15817 enable_shared_with_static_runtimes_D='`$ECHO "$enable_shared_with_static_runtimes_D" | $SED "$delay_single_quote_subst"`'
15818 export_dynamic_flag_spec_D='`$ECHO "$export_dynamic_flag_spec_D" | $SED "$delay_single_quote_subst"`'
15819 whole_archive_flag_spec_D='`$ECHO "$whole_archive_flag_spec_D" | $SED "$delay_single_quote_subst"`'
15820 compiler_needs_object_D='`$ECHO "$compiler_needs_object_D" | $SED "$delay_single_quote_subst"`'
15821 old_archive_from_new_cmds_D='`$ECHO "$old_archive_from_new_cmds_D" | $SED "$delay_single_quote_subst"`'
15822 old_archive_from_expsyms_cmds_D='`$ECHO "$old_archive_from_expsyms_cmds_D" | $SED "$delay_single_quote_subst"`'
15823 archive_cmds_D='`$ECHO "$archive_cmds_D" | $SED "$delay_single_quote_subst"`'
15824 archive_expsym_cmds_D='`$ECHO "$archive_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
15825 module_cmds_D='`$ECHO "$module_cmds_D" | $SED "$delay_single_quote_subst"`'
15826 module_expsym_cmds_D='`$ECHO "$module_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
15827 with_gnu_ld_D='`$ECHO "$with_gnu_ld_D" | $SED "$delay_single_quote_subst"`'
15828 allow_undefined_flag_D='`$ECHO "$allow_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
15829 no_undefined_flag_D='`$ECHO "$no_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
15830 hardcode_libdir_flag_spec_D='`$ECHO "$hardcode_libdir_flag_spec_D" | $SED "$delay_single_quote_subst"`'
15831 hardcode_libdir_flag_spec_ld_D='`$ECHO "$hardcode_libdir_flag_spec_ld_D" | $SED "$delay_single_quote_subst"`'
15832 hardcode_libdir_separator_D='`$ECHO "$hardcode_libdir_separator_D" | $SED "$delay_single_quote_subst"`'
15833 hardcode_direct_D='`$ECHO "$hardcode_direct_D" | $SED "$delay_single_quote_subst"`'
15834 hardcode_direct_absolute_D='`$ECHO "$hardcode_direct_absolute_D" | $SED "$delay_single_quote_subst"`'
15835 hardcode_minus_L_D='`$ECHO "$hardcode_minus_L_D" | $SED "$delay_single_quote_subst"`'
15836 hardcode_shlibpath_var_D='`$ECHO "$hardcode_shlibpath_var_D" | $SED "$delay_single_quote_subst"`'
15837 hardcode_automatic_D='`$ECHO "$hardcode_automatic_D" | $SED "$delay_single_quote_subst"`'
15838 inherit_rpath_D='`$ECHO "$inherit_rpath_D" | $SED "$delay_single_quote_subst"`'
15839 link_all_deplibs_D='`$ECHO "$link_all_deplibs_D" | $SED "$delay_single_quote_subst"`'
15840 fix_srcfile_path_D='`$ECHO "$fix_srcfile_path_D" | $SED "$delay_single_quote_subst"`'
15841 always_export_symbols_D='`$ECHO "$always_export_symbols_D" | $SED "$delay_single_quote_subst"`'
15842 export_symbols_cmds_D='`$ECHO "$export_symbols_cmds_D" | $SED "$delay_single_quote_subst"`'
15843 exclude_expsyms_D='`$ECHO "$exclude_expsyms_D" | $SED "$delay_single_quote_subst"`'
15844 include_expsyms_D='`$ECHO "$include_expsyms_D" | $SED "$delay_single_quote_subst"`'
15845 prelink_cmds_D='`$ECHO "$prelink_cmds_D" | $SED "$delay_single_quote_subst"`'
15846 file_list_spec_D='`$ECHO "$file_list_spec_D" | $SED "$delay_single_quote_subst"`'
15847 hardcode_action_D='`$ECHO "$hardcode_action_D" | $SED "$delay_single_quote_subst"`'
15848
15849 LTCC='$LTCC'
15850 LTCFLAGS='$LTCFLAGS'
15851 compiler='$compiler_DEFAULT'
15852
15853 # A function that is used when there is no print builtin or printf.
15854 func_fallback_echo ()
15855 {
15856 eval 'cat <<_LTECHO_EOF
15857 \$1
15858 _LTECHO_EOF'
15859 }
15860
15861 # Quote evaled strings.
15862 for var in SHELL \
15863 ECHO \
15864 SED \
15865 GREP \
15866 EGREP \
15867 FGREP \
15868 LD \
15869 NM \
15870 LN_S \
15871 lt_SP2NL \
15872 lt_NL2SP \
15873 reload_flag \
15874 OBJDUMP \
15875 deplibs_check_method \
15876 file_magic_cmd \
15877 AR \
15878 AR_FLAGS \
15879 STRIP \
15880 RANLIB \
15881 CC \
15882 CFLAGS \
15883 compiler \
15884 lt_cv_sys_global_symbol_pipe \
15885 lt_cv_sys_global_symbol_to_cdecl \
15886 lt_cv_sys_global_symbol_to_c_name_address \
15887 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15888 lt_prog_compiler_no_builtin_flag \
15889 lt_prog_compiler_wl \
15890 lt_prog_compiler_pic \
15891 lt_prog_compiler_static \
15892 lt_cv_prog_compiler_c_o \
15893 need_locks \
15894 DSYMUTIL \
15895 NMEDIT \
15896 LIPO \
15897 OTOOL \
15898 OTOOL64 \
15899 shrext_cmds \
15900 export_dynamic_flag_spec \
15901 whole_archive_flag_spec \
15902 compiler_needs_object \
15903 with_gnu_ld \
15904 allow_undefined_flag \
15905 no_undefined_flag \
15906 hardcode_libdir_flag_spec \
15907 hardcode_libdir_flag_spec_ld \
15908 hardcode_libdir_separator \
15909 fix_srcfile_path \
15910 exclude_expsyms \
15911 include_expsyms \
15912 file_list_spec \
15913 variables_saved_for_relink \
15914 libname_spec \
15915 library_names_spec \
15916 soname_spec \
15917 install_override_mode \
15918 finish_eval \
15919 old_striplib \
15920 striplib \
15921 LD_D \
15922 reload_flag_D \
15923 compiler_D \
15924 lt_prog_compiler_no_builtin_flag_D \
15925 lt_prog_compiler_wl_D \
15926 lt_prog_compiler_pic_D \
15927 lt_prog_compiler_static_D \
15928 lt_cv_prog_compiler_c_o_D \
15929 export_dynamic_flag_spec_D \
15930 whole_archive_flag_spec_D \
15931 compiler_needs_object_D \
15932 with_gnu_ld_D \
15933 allow_undefined_flag_D \
15934 no_undefined_flag_D \
15935 hardcode_libdir_flag_spec_D \
15936 hardcode_libdir_flag_spec_ld_D \
15937 hardcode_libdir_separator_D \
15938 fix_srcfile_path_D \
15939 exclude_expsyms_D \
15940 include_expsyms_D \
15941 file_list_spec_D; do
15942 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15943 *[\\\\\\\`\\"\\\$]*)
15944 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15945 ;;
15946 *)
15947 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15948 ;;
15949 esac
15950 done
15951
15952 # Double-quote double-evaled strings.
15953 for var in reload_cmds \
15954 old_postinstall_cmds \
15955 old_postuninstall_cmds \
15956 old_archive_cmds \
15957 extract_expsyms_cmds \
15958 old_archive_from_new_cmds \
15959 old_archive_from_expsyms_cmds \
15960 archive_cmds \
15961 archive_expsym_cmds \
15962 module_cmds \
15963 module_expsym_cmds \
15964 export_symbols_cmds \
15965 prelink_cmds \
15966 postinstall_cmds \
15967 postuninstall_cmds \
15968 finish_cmds \
15969 sys_lib_search_path_spec \
15970 sys_lib_dlsearch_path_spec \
15971 reload_cmds_D \
15972 old_archive_cmds_D \
15973 old_archive_from_new_cmds_D \
15974 old_archive_from_expsyms_cmds_D \
15975 archive_cmds_D \
15976 archive_expsym_cmds_D \
15977 module_cmds_D \
15978 module_expsym_cmds_D \
15979 export_symbols_cmds_D \
15980 prelink_cmds_D; do
15981 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15982 *[\\\\\\\`\\"\\\$]*)
15983 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15984 ;;
15985 *)
15986 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15987 ;;
15988 esac
15989 done
15990
15991 ac_aux_dir='$ac_aux_dir'
15992 xsi_shell='$xsi_shell'
15993 lt_shell_append='$lt_shell_append'
15994
15995 # See if we are running on zsh, and set the options which allow our
15996 # commands through without removal of \ escapes INIT.
15997 if test -n "\${ZSH_VERSION+set}" ; then
15998 setopt NO_GLOB_SUBST
15999 fi
16000
16001
16002 PACKAGE='$PACKAGE'
16003 VERSION='$VERSION'
16004 TIMESTAMP='$TIMESTAMP'
16005 RM='$RM'
16006 ofile='$ofile'
16007
16008
16009
16010
16011
16012
16013 # Variables needed in config.status (file generation) which aren't already
16014 # passed by autoconf.
16015 SUBDIRS="$SUBDIRS"
16016
16017
16018 _ACEOF
16019
16020 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16021
16022 # Handling of arguments.
16023 for ac_config_target in $ac_config_targets
16024 do
16025 case $ac_config_target in
16026 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16027 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16028 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16029 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16030 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16031 "libdruntime/Makefile") CONFIG_FILES="$CONFIG_FILES libdruntime/Makefile" ;;
16032 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16033 "libdruntime/gcc/config.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/config.d" ;;
16034 "libdruntime/gcc/libbacktrace.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/libbacktrace.d" ;;
16035 "src/libgphobos.spec") CONFIG_FILES="$CONFIG_FILES src/libgphobos.spec" ;;
16036 "testsuite/testsuite_flags") CONFIG_FILES="$CONFIG_FILES testsuite/testsuite_flags" ;;
16037 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16038
16039 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16040 esac
16041 done
16042
16043
16044 # If the user did not use the arguments to specify the items to instantiate,
16045 # then the envvar interface is used. Set only those that are not.
16046 # We use the long form for the default assignment because of an extremely
16047 # bizarre bug on SunOS 4.1.3.
16048 if $ac_need_defaults; then
16049 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16050 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16051 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16052 fi
16053
16054 # Have a temporary directory for convenience. Make it in the build tree
16055 # simply because there is no reason against having it here, and in addition,
16056 # creating and moving files from /tmp can sometimes cause problems.
16057 # Hook for its removal unless debugging.
16058 # Note that there is a small window in which the directory will not be cleaned:
16059 # after its creation but before its name has been assigned to `$tmp'.
16060 $debug ||
16061 {
16062 tmp= ac_tmp=
16063 trap 'exit_status=$?
16064 : "${ac_tmp:=$tmp}"
16065 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16066 ' 0
16067 trap 'as_fn_exit 1' 1 2 13 15
16068 }
16069 # Create a (secure) tmp directory for tmp files.
16070
16071 {
16072 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16073 test -d "$tmp"
16074 } ||
16075 {
16076 tmp=./conf$$-$RANDOM
16077 (umask 077 && mkdir "$tmp")
16078 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16079 ac_tmp=$tmp
16080
16081 # Set up the scripts for CONFIG_FILES section.
16082 # No need to generate them if there are no CONFIG_FILES.
16083 # This happens for instance with `./config.status config.h'.
16084 if test -n "$CONFIG_FILES"; then
16085
16086
16087 ac_cr=`echo X | tr X '\015'`
16088 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16089 # But we know of no other shell where ac_cr would be empty at this
16090 # point, so we can use a bashism as a fallback.
16091 if test "x$ac_cr" = x; then
16092 eval ac_cr=\$\'\\r\'
16093 fi
16094 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16095 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16096 ac_cs_awk_cr='\\r'
16097 else
16098 ac_cs_awk_cr=$ac_cr
16099 fi
16100
16101 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16102 _ACEOF
16103
16104
16105 {
16106 echo "cat >conf$$subs.awk <<_ACEOF" &&
16107 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16108 echo "_ACEOF"
16109 } >conf$$subs.sh ||
16110 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16111 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16112 ac_delim='%!_!# '
16113 for ac_last_try in false false false false false :; do
16114 . ./conf$$subs.sh ||
16115 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16116
16117 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16118 if test $ac_delim_n = $ac_delim_num; then
16119 break
16120 elif $ac_last_try; then
16121 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16122 else
16123 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16124 fi
16125 done
16126 rm -f conf$$subs.sh
16127
16128 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16129 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16130 _ACEOF
16131 sed -n '
16132 h
16133 s/^/S["/; s/!.*/"]=/
16134 p
16135 g
16136 s/^[^!]*!//
16137 :repl
16138 t repl
16139 s/'"$ac_delim"'$//
16140 t delim
16141 :nl
16142 h
16143 s/\(.\{148\}\)..*/\1/
16144 t more1
16145 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16146 p
16147 n
16148 b repl
16149 :more1
16150 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16151 p
16152 g
16153 s/.\{148\}//
16154 t nl
16155 :delim
16156 h
16157 s/\(.\{148\}\)..*/\1/
16158 t more2
16159 s/["\\]/\\&/g; s/^/"/; s/$/"/
16160 p
16161 b
16162 :more2
16163 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16164 p
16165 g
16166 s/.\{148\}//
16167 t delim
16168 ' <conf$$subs.awk | sed '
16169 /^[^""]/{
16170 N
16171 s/\n//
16172 }
16173 ' >>$CONFIG_STATUS || ac_write_fail=1
16174 rm -f conf$$subs.awk
16175 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16176 _ACAWK
16177 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16178 for (key in S) S_is_set[key] = 1
16179 FS = "\a"
16180
16181 }
16182 {
16183 line = $ 0
16184 nfields = split(line, field, "@")
16185 substed = 0
16186 len = length(field[1])
16187 for (i = 2; i < nfields; i++) {
16188 key = field[i]
16189 keylen = length(key)
16190 if (S_is_set[key]) {
16191 value = S[key]
16192 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16193 len += length(value) + length(field[++i])
16194 substed = 1
16195 } else
16196 len += 1 + keylen
16197 }
16198
16199 print line
16200 }
16201
16202 _ACAWK
16203 _ACEOF
16204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16205 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16206 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16207 else
16208 cat
16209 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16210 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16211 _ACEOF
16212
16213 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16214 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16215 # trailing colons and then remove the whole line if VPATH becomes empty
16216 # (actually we leave an empty line to preserve line numbers).
16217 if test "x$srcdir" = x.; then
16218 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16219 h
16220 s///
16221 s/^/:/
16222 s/[ ]*$/:/
16223 s/:\$(srcdir):/:/g
16224 s/:\${srcdir}:/:/g
16225 s/:@srcdir@:/:/g
16226 s/^:*//
16227 s/:*$//
16228 x
16229 s/\(=[ ]*\).*/\1/
16230 G
16231 s/\n//
16232 s/^[^=]*=[ ]*$//
16233 }'
16234 fi
16235
16236 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16237 fi # test -n "$CONFIG_FILES"
16238
16239 # Set up the scripts for CONFIG_HEADERS section.
16240 # No need to generate them if there are no CONFIG_HEADERS.
16241 # This happens for instance with `./config.status Makefile'.
16242 if test -n "$CONFIG_HEADERS"; then
16243 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16244 BEGIN {
16245 _ACEOF
16246
16247 # Transform confdefs.h into an awk script `defines.awk', embedded as
16248 # here-document in config.status, that substitutes the proper values into
16249 # config.h.in to produce config.h.
16250
16251 # Create a delimiter string that does not exist in confdefs.h, to ease
16252 # handling of long lines.
16253 ac_delim='%!_!# '
16254 for ac_last_try in false false :; do
16255 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16256 if test -z "$ac_tt"; then
16257 break
16258 elif $ac_last_try; then
16259 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16260 else
16261 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16262 fi
16263 done
16264
16265 # For the awk script, D is an array of macro values keyed by name,
16266 # likewise P contains macro parameters if any. Preserve backslash
16267 # newline sequences.
16268
16269 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16270 sed -n '
16271 s/.\{148\}/&'"$ac_delim"'/g
16272 t rset
16273 :rset
16274 s/^[ ]*#[ ]*define[ ][ ]*/ /
16275 t def
16276 d
16277 :def
16278 s/\\$//
16279 t bsnl
16280 s/["\\]/\\&/g
16281 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16282 D["\1"]=" \3"/p
16283 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16284 d
16285 :bsnl
16286 s/["\\]/\\&/g
16287 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16288 D["\1"]=" \3\\\\\\n"\\/p
16289 t cont
16290 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16291 t cont
16292 d
16293 :cont
16294 n
16295 s/.\{148\}/&'"$ac_delim"'/g
16296 t clear
16297 :clear
16298 s/\\$//
16299 t bsnlc
16300 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16301 d
16302 :bsnlc
16303 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16304 b cont
16305 ' <confdefs.h | sed '
16306 s/'"$ac_delim"'/"\\\
16307 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16308
16309 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16310 for (key in D) D_is_set[key] = 1
16311 FS = "\a"
16312 }
16313 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16314 line = \$ 0
16315 split(line, arg, " ")
16316 if (arg[1] == "#") {
16317 defundef = arg[2]
16318 mac1 = arg[3]
16319 } else {
16320 defundef = substr(arg[1], 2)
16321 mac1 = arg[2]
16322 }
16323 split(mac1, mac2, "(") #)
16324 macro = mac2[1]
16325 prefix = substr(line, 1, index(line, defundef) - 1)
16326 if (D_is_set[macro]) {
16327 # Preserve the white space surrounding the "#".
16328 print prefix "define", macro P[macro] D[macro]
16329 next
16330 } else {
16331 # Replace #undef with comments. This is necessary, for example,
16332 # in the case of _POSIX_SOURCE, which is predefined and required
16333 # on some systems where configure will not decide to define it.
16334 if (defundef == "undef") {
16335 print "/*", prefix defundef, macro, "*/"
16336 next
16337 }
16338 }
16339 }
16340 { print }
16341 _ACAWK
16342 _ACEOF
16343 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16344 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16345 fi # test -n "$CONFIG_HEADERS"
16346
16347
16348 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16349 shift
16350 for ac_tag
16351 do
16352 case $ac_tag in
16353 :[FHLC]) ac_mode=$ac_tag; continue;;
16354 esac
16355 case $ac_mode$ac_tag in
16356 :[FHL]*:*);;
16357 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16358 :[FH]-) ac_tag=-:-;;
16359 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16360 esac
16361 ac_save_IFS=$IFS
16362 IFS=:
16363 set x $ac_tag
16364 IFS=$ac_save_IFS
16365 shift
16366 ac_file=$1
16367 shift
16368
16369 case $ac_mode in
16370 :L) ac_source=$1;;
16371 :[FH])
16372 ac_file_inputs=
16373 for ac_f
16374 do
16375 case $ac_f in
16376 -) ac_f="$ac_tmp/stdin";;
16377 *) # Look for the file first in the build tree, then in the source tree
16378 # (if the path is not absolute). The absolute path cannot be DOS-style,
16379 # because $ac_f cannot contain `:'.
16380 test -f "$ac_f" ||
16381 case $ac_f in
16382 [\\/$]*) false;;
16383 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16384 esac ||
16385 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16386 esac
16387 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16388 as_fn_append ac_file_inputs " '$ac_f'"
16389 done
16390
16391 # Let's still pretend it is `configure' which instantiates (i.e., don't
16392 # use $as_me), people would be surprised to read:
16393 # /* config.h. Generated by config.status. */
16394 configure_input='Generated from '`
16395 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16396 `' by configure.'
16397 if test x"$ac_file" != x-; then
16398 configure_input="$ac_file. $configure_input"
16399 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16400 $as_echo "$as_me: creating $ac_file" >&6;}
16401 fi
16402 # Neutralize special characters interpreted by sed in replacement strings.
16403 case $configure_input in #(
16404 *\&* | *\|* | *\\* )
16405 ac_sed_conf_input=`$as_echo "$configure_input" |
16406 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16407 *) ac_sed_conf_input=$configure_input;;
16408 esac
16409
16410 case $ac_tag in
16411 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16412 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16413 esac
16414 ;;
16415 esac
16416
16417 ac_dir=`$as_dirname -- "$ac_file" ||
16418 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16419 X"$ac_file" : 'X\(//\)[^/]' \| \
16420 X"$ac_file" : 'X\(//\)$' \| \
16421 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16422 $as_echo X"$ac_file" |
16423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16424 s//\1/
16425 q
16426 }
16427 /^X\(\/\/\)[^/].*/{
16428 s//\1/
16429 q
16430 }
16431 /^X\(\/\/\)$/{
16432 s//\1/
16433 q
16434 }
16435 /^X\(\/\).*/{
16436 s//\1/
16437 q
16438 }
16439 s/.*/./; q'`
16440 as_dir="$ac_dir"; as_fn_mkdir_p
16441 ac_builddir=.
16442
16443 case "$ac_dir" in
16444 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16445 *)
16446 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16447 # A ".." for each directory in $ac_dir_suffix.
16448 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16449 case $ac_top_builddir_sub in
16450 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16451 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16452 esac ;;
16453 esac
16454 ac_abs_top_builddir=$ac_pwd
16455 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16456 # for backward compatibility:
16457 ac_top_builddir=$ac_top_build_prefix
16458
16459 case $srcdir in
16460 .) # We are building in place.
16461 ac_srcdir=.
16462 ac_top_srcdir=$ac_top_builddir_sub
16463 ac_abs_top_srcdir=$ac_pwd ;;
16464 [\\/]* | ?:[\\/]* ) # Absolute name.
16465 ac_srcdir=$srcdir$ac_dir_suffix;
16466 ac_top_srcdir=$srcdir
16467 ac_abs_top_srcdir=$srcdir ;;
16468 *) # Relative name.
16469 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16470 ac_top_srcdir=$ac_top_build_prefix$srcdir
16471 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16472 esac
16473 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16474
16475
16476 case $ac_mode in
16477 :F)
16478 #
16479 # CONFIG_FILE
16480 #
16481
16482 case $INSTALL in
16483 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16484 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16485 esac
16486 ac_MKDIR_P=$MKDIR_P
16487 case $MKDIR_P in
16488 [\\/$]* | ?:[\\/]* ) ;;
16489 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16490 esac
16491 _ACEOF
16492
16493 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16494 # If the template does not know about datarootdir, expand it.
16495 # FIXME: This hack should be removed a few years after 2.60.
16496 ac_datarootdir_hack=; ac_datarootdir_seen=
16497 ac_sed_dataroot='
16498 /datarootdir/ {
16499 p
16500 q
16501 }
16502 /@datadir@/p
16503 /@docdir@/p
16504 /@infodir@/p
16505 /@localedir@/p
16506 /@mandir@/p'
16507 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16508 *datarootdir*) ac_datarootdir_seen=yes;;
16509 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16511 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16512 _ACEOF
16513 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16514 ac_datarootdir_hack='
16515 s&@datadir@&$datadir&g
16516 s&@docdir@&$docdir&g
16517 s&@infodir@&$infodir&g
16518 s&@localedir@&$localedir&g
16519 s&@mandir@&$mandir&g
16520 s&\\\${datarootdir}&$datarootdir&g' ;;
16521 esac
16522 _ACEOF
16523
16524 # Neutralize VPATH when `$srcdir' = `.'.
16525 # Shell code in configure.ac might set extrasub.
16526 # FIXME: do we really want to maintain this feature?
16527 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16528 ac_sed_extra="$ac_vpsub
16529 $extrasub
16530 _ACEOF
16531 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16532 :t
16533 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16534 s|@configure_input@|$ac_sed_conf_input|;t t
16535 s&@top_builddir@&$ac_top_builddir_sub&;t t
16536 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16537 s&@srcdir@&$ac_srcdir&;t t
16538 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16539 s&@top_srcdir@&$ac_top_srcdir&;t t
16540 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16541 s&@builddir@&$ac_builddir&;t t
16542 s&@abs_builddir@&$ac_abs_builddir&;t t
16543 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16544 s&@INSTALL@&$ac_INSTALL&;t t
16545 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16546 $ac_datarootdir_hack
16547 "
16548 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16549 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16550
16551 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16552 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16553 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16554 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16556 which seems to be undefined. Please make sure it is defined" >&5
16557 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16558 which seems to be undefined. Please make sure it is defined" >&2;}
16559
16560 rm -f "$ac_tmp/stdin"
16561 case $ac_file in
16562 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16563 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16564 esac \
16565 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16566 ;;
16567 :H)
16568 #
16569 # CONFIG_HEADER
16570 #
16571 if test x"$ac_file" != x-; then
16572 {
16573 $as_echo "/* $configure_input */" \
16574 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16575 } >"$ac_tmp/config.h" \
16576 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16577 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16578 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16579 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16580 else
16581 rm -f "$ac_file"
16582 mv "$ac_tmp/config.h" "$ac_file" \
16583 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16584 fi
16585 else
16586 $as_echo "/* $configure_input */" \
16587 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16588 || as_fn_error $? "could not create -" "$LINENO" 5
16589 fi
16590 # Compute "$ac_file"'s index in $config_headers.
16591 _am_arg="$ac_file"
16592 _am_stamp_count=1
16593 for _am_header in $config_headers :; do
16594 case $_am_header in
16595 $_am_arg | $_am_arg:* )
16596 break ;;
16597 * )
16598 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16599 esac
16600 done
16601 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16602 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16603 X"$_am_arg" : 'X\(//\)[^/]' \| \
16604 X"$_am_arg" : 'X\(//\)$' \| \
16605 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16606 $as_echo X"$_am_arg" |
16607 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16608 s//\1/
16609 q
16610 }
16611 /^X\(\/\/\)[^/].*/{
16612 s//\1/
16613 q
16614 }
16615 /^X\(\/\/\)$/{
16616 s//\1/
16617 q
16618 }
16619 /^X\(\/\).*/{
16620 s//\1/
16621 q
16622 }
16623 s/.*/./; q'`/stamp-h$_am_stamp_count
16624 ;;
16625
16626 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16627 $as_echo "$as_me: executing $ac_file commands" >&6;}
16628 ;;
16629 esac
16630
16631
16632 case $ac_file$ac_mode in
16633 "default-1":C)
16634 # Only add multilib support code if we just rebuilt the top-level
16635 # Makefile.
16636 case " $CONFIG_FILES " in
16637 *" Makefile "*)
16638 ac_file=Makefile . ${multi_basedir}/config-ml.in
16639 ;;
16640 esac ;;
16641 "libtool":C)
16642
16643 # See if we are running on zsh, and set the options which allow our
16644 # commands through without removal of \ escapes.
16645 if test -n "${ZSH_VERSION+set}" ; then
16646 setopt NO_GLOB_SUBST
16647 fi
16648
16649 cfgfile="${ofile}T"
16650 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16651 $RM "$cfgfile"
16652
16653 cat <<_LT_EOF >> "$cfgfile"
16654 #! $SHELL
16655
16656 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16657 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16658 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16659 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16660 #
16661 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16662 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16663 # Written by Gordon Matzigkeit, 1996
16664 #
16665 # This file is part of GNU Libtool.
16666 #
16667 # GNU Libtool is free software; you can redistribute it and/or
16668 # modify it under the terms of the GNU General Public License as
16669 # published by the Free Software Foundation; either version 2 of
16670 # the License, or (at your option) any later version.
16671 #
16672 # As a special exception to the GNU General Public License,
16673 # if you distribute this file as part of a program or library that
16674 # is built using GNU Libtool, you may include this file under the
16675 # same distribution terms that you use for the rest of that program.
16676 #
16677 # GNU Libtool is distributed in the hope that it will be useful,
16678 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16679 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16680 # GNU General Public License for more details.
16681 #
16682 # You should have received a copy of the GNU General Public License
16683 # along with GNU Libtool; see the file COPYING. If not, a copy
16684 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16685 # obtained by writing to the Free Software Foundation, Inc.,
16686 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16687
16688
16689 # The names of the tagged configurations supported by this script.
16690 available_tags="D "
16691
16692 # ### BEGIN LIBTOOL CONFIG
16693
16694 # Which release of libtool.m4 was used?
16695 macro_version=$macro_version
16696 macro_revision=$macro_revision
16697
16698 # Whether or not to build shared libraries.
16699 build_libtool_libs=$enable_shared
16700
16701 # Whether or not to build static libraries.
16702 build_old_libs=$enable_static
16703
16704 # What type of objects to build.
16705 pic_mode=$pic_mode
16706
16707 # Whether or not to optimize for fast installation.
16708 fast_install=$enable_fast_install
16709
16710 # Shell to use when invoking shell scripts.
16711 SHELL=$lt_SHELL
16712
16713 # An echo program that protects backslashes.
16714 ECHO=$lt_ECHO
16715
16716 # The host system.
16717 host_alias=$host_alias
16718 host=$host
16719 host_os=$host_os
16720
16721 # The build system.
16722 build_alias=$build_alias
16723 build=$build
16724 build_os=$build_os
16725
16726 # A sed program that does not truncate output.
16727 SED=$lt_SED
16728
16729 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16730 Xsed="\$SED -e 1s/^X//"
16731
16732 # A grep program that handles long lines.
16733 GREP=$lt_GREP
16734
16735 # An ERE matcher.
16736 EGREP=$lt_EGREP
16737
16738 # A literal string matcher.
16739 FGREP=$lt_FGREP
16740
16741 # A BSD- or MS-compatible name lister.
16742 NM=$lt_NM
16743
16744 # Whether we need soft or hard links.
16745 LN_S=$lt_LN_S
16746
16747 # What is the maximum length of a command?
16748 max_cmd_len=$max_cmd_len
16749
16750 # Object file suffix (normally "o").
16751 objext=$ac_objext
16752
16753 # Executable file suffix (normally "").
16754 exeext=$exeext
16755
16756 # whether the shell understands "unset".
16757 lt_unset=$lt_unset
16758
16759 # turn spaces into newlines.
16760 SP2NL=$lt_lt_SP2NL
16761
16762 # turn newlines into spaces.
16763 NL2SP=$lt_lt_NL2SP
16764
16765 # An object symbol dumper.
16766 OBJDUMP=$lt_OBJDUMP
16767
16768 # Method to check whether dependent libraries are shared objects.
16769 deplibs_check_method=$lt_deplibs_check_method
16770
16771 # Command to use when deplibs_check_method == "file_magic".
16772 file_magic_cmd=$lt_file_magic_cmd
16773
16774 # The archiver.
16775 AR=$lt_AR
16776 AR_FLAGS=$lt_AR_FLAGS
16777
16778 # A symbol stripping program.
16779 STRIP=$lt_STRIP
16780
16781 # Commands used to install an old-style archive.
16782 RANLIB=$lt_RANLIB
16783 old_postinstall_cmds=$lt_old_postinstall_cmds
16784 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16785
16786 # Whether to use a lock for old archive extraction.
16787 lock_old_archive_extraction=$lock_old_archive_extraction
16788
16789 # A C compiler.
16790 LTCC=$lt_CC
16791
16792 # LTCC compiler flags.
16793 LTCFLAGS=$lt_CFLAGS
16794
16795 # Take the output of nm and produce a listing of raw symbols and C names.
16796 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16797
16798 # Transform the output of nm in a proper C declaration.
16799 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16800
16801 # Transform the output of nm in a C name address pair.
16802 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16803
16804 # Transform the output of nm in a C name address pair when lib prefix is needed.
16805 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16806
16807 # The name of the directory that contains temporary libtool files.
16808 objdir=$objdir
16809
16810 # Used to examine libraries when file_magic_cmd begins with "file".
16811 MAGIC_CMD=$MAGIC_CMD
16812
16813 # Must we lock files when doing compilation?
16814 need_locks=$lt_need_locks
16815
16816 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16817 DSYMUTIL=$lt_DSYMUTIL
16818
16819 # Tool to change global to local symbols on Mac OS X.
16820 NMEDIT=$lt_NMEDIT
16821
16822 # Tool to manipulate fat objects and archives on Mac OS X.
16823 LIPO=$lt_LIPO
16824
16825 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16826 OTOOL=$lt_OTOOL
16827
16828 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16829 OTOOL64=$lt_OTOOL64
16830
16831 # Old archive suffix (normally "a").
16832 libext=$libext
16833
16834 # Shared library suffix (normally ".so").
16835 shrext_cmds=$lt_shrext_cmds
16836
16837 # The commands to extract the exported symbol list from a shared archive.
16838 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16839
16840 # Variables whose values should be saved in libtool wrapper scripts and
16841 # restored at link time.
16842 variables_saved_for_relink=$lt_variables_saved_for_relink
16843
16844 # Do we need the "lib" prefix for modules?
16845 need_lib_prefix=$need_lib_prefix
16846
16847 # Do we need a version for libraries?
16848 need_version=$need_version
16849
16850 # Library versioning type.
16851 version_type=$version_type
16852
16853 # Shared library runtime path variable.
16854 runpath_var=$runpath_var
16855
16856 # Shared library path variable.
16857 shlibpath_var=$shlibpath_var
16858
16859 # Is shlibpath searched before the hard-coded library search path?
16860 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16861
16862 # Format of library name prefix.
16863 libname_spec=$lt_libname_spec
16864
16865 # List of archive names. First name is the real one, the rest are links.
16866 # The last name is the one that the linker finds with -lNAME
16867 library_names_spec=$lt_library_names_spec
16868
16869 # The coded name of the library, if different from the real name.
16870 soname_spec=$lt_soname_spec
16871
16872 # Permission mode override for installation of shared libraries.
16873 install_override_mode=$lt_install_override_mode
16874
16875 # Command to use after installation of a shared archive.
16876 postinstall_cmds=$lt_postinstall_cmds
16877
16878 # Command to use after uninstallation of a shared archive.
16879 postuninstall_cmds=$lt_postuninstall_cmds
16880
16881 # Commands used to finish a libtool library installation in a directory.
16882 finish_cmds=$lt_finish_cmds
16883
16884 # As "finish_cmds", except a single script fragment to be evaled but
16885 # not shown.
16886 finish_eval=$lt_finish_eval
16887
16888 # Whether we should hardcode library paths into libraries.
16889 hardcode_into_libs=$hardcode_into_libs
16890
16891 # Compile-time system search path for libraries.
16892 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16893
16894 # Run-time system search path for libraries.
16895 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16896
16897 # Whether dlopen is supported.
16898 dlopen_support=$enable_dlopen
16899
16900 # Whether dlopen of programs is supported.
16901 dlopen_self=$enable_dlopen_self
16902
16903 # Whether dlopen of statically linked programs is supported.
16904 dlopen_self_static=$enable_dlopen_self_static
16905
16906 # Commands to strip libraries.
16907 old_striplib=$lt_old_striplib
16908 striplib=$lt_striplib
16909
16910
16911 # The linker used to build libraries.
16912 LD=$lt_LD
16913
16914 # How to create reloadable object files.
16915 reload_flag=$lt_reload_flag
16916 reload_cmds=$lt_reload_cmds
16917
16918 # Commands used to build an old-style archive.
16919 old_archive_cmds=$lt_old_archive_cmds
16920
16921 # A language specific compiler.
16922 CC=$lt_compiler
16923
16924 # Is the compiler the GNU compiler?
16925 with_gcc=$GCC
16926
16927 # Compiler flag to turn off builtin functions.
16928 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16929
16930 # How to pass a linker flag through the compiler.
16931 wl=$lt_lt_prog_compiler_wl
16932
16933 # Additional compiler flags for building library objects.
16934 pic_flag=$lt_lt_prog_compiler_pic
16935
16936 # Compiler flag to prevent dynamic linking.
16937 link_static_flag=$lt_lt_prog_compiler_static
16938
16939 # Does compiler simultaneously support -c and -o options?
16940 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16941
16942 # Whether or not to add -lc for building shared libraries.
16943 build_libtool_need_lc=$archive_cmds_need_lc
16944
16945 # Whether or not to disallow shared libs when runtime libs are static.
16946 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16947
16948 # Compiler flag to allow reflexive dlopens.
16949 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16950
16951 # Compiler flag to generate shared objects directly from archives.
16952 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16953
16954 # Whether the compiler copes with passing no objects directly.
16955 compiler_needs_object=$lt_compiler_needs_object
16956
16957 # Create an old-style archive from a shared archive.
16958 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16959
16960 # Create a temporary old-style archive to link instead of a shared archive.
16961 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16962
16963 # Commands used to build a shared archive.
16964 archive_cmds=$lt_archive_cmds
16965 archive_expsym_cmds=$lt_archive_expsym_cmds
16966
16967 # Commands used to build a loadable module if different from building
16968 # a shared archive.
16969 module_cmds=$lt_module_cmds
16970 module_expsym_cmds=$lt_module_expsym_cmds
16971
16972 # Whether we are building with GNU ld or not.
16973 with_gnu_ld=$lt_with_gnu_ld
16974
16975 # Flag that allows shared libraries with undefined symbols to be built.
16976 allow_undefined_flag=$lt_allow_undefined_flag
16977
16978 # Flag that enforces no undefined symbols.
16979 no_undefined_flag=$lt_no_undefined_flag
16980
16981 # Flag to hardcode \$libdir into a binary during linking.
16982 # This must work even if \$libdir does not exist
16983 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16984
16985 # If ld is used when linking, flag to hardcode \$libdir into a binary
16986 # during linking. This must work even if \$libdir does not exist.
16987 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16988
16989 # Whether we need a single "-rpath" flag with a separated argument.
16990 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16991
16992 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16993 # DIR into the resulting binary.
16994 hardcode_direct=$hardcode_direct
16995
16996 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16997 # DIR into the resulting binary and the resulting library dependency is
16998 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16999 # library is relocated.
17000 hardcode_direct_absolute=$hardcode_direct_absolute
17001
17002 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17003 # into the resulting binary.
17004 hardcode_minus_L=$hardcode_minus_L
17005
17006 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17007 # into the resulting binary.
17008 hardcode_shlibpath_var=$hardcode_shlibpath_var
17009
17010 # Set to "yes" if building a shared library automatically hardcodes DIR
17011 # into the library and all subsequent libraries and executables linked
17012 # against it.
17013 hardcode_automatic=$hardcode_automatic
17014
17015 # Set to yes if linker adds runtime paths of dependent libraries
17016 # to runtime path list.
17017 inherit_rpath=$inherit_rpath
17018
17019 # Whether libtool must link a program against all its dependency libraries.
17020 link_all_deplibs=$link_all_deplibs
17021
17022 # Fix the shell variable \$srcfile for the compiler.
17023 fix_srcfile_path=$lt_fix_srcfile_path
17024
17025 # Set to "yes" if exported symbols are required.
17026 always_export_symbols=$always_export_symbols
17027
17028 # The commands to list exported symbols.
17029 export_symbols_cmds=$lt_export_symbols_cmds
17030
17031 # Symbols that should not be listed in the preloaded symbols.
17032 exclude_expsyms=$lt_exclude_expsyms
17033
17034 # Symbols that must always be exported.
17035 include_expsyms=$lt_include_expsyms
17036
17037 # Commands necessary for linking programs (against libraries) with templates.
17038 prelink_cmds=$lt_prelink_cmds
17039
17040 # Specify filename containing input files.
17041 file_list_spec=$lt_file_list_spec
17042
17043 # How to hardcode a shared library path into an executable.
17044 hardcode_action=$hardcode_action
17045
17046 # ### END LIBTOOL CONFIG
17047
17048 _LT_EOF
17049
17050 case $host_os in
17051 aix3*)
17052 cat <<\_LT_EOF >> "$cfgfile"
17053 # AIX sometimes has problems with the GCC collect2 program. For some
17054 # reason, if we set the COLLECT_NAMES environment variable, the problems
17055 # vanish in a puff of smoke.
17056 if test "X${COLLECT_NAMES+set}" != Xset; then
17057 COLLECT_NAMES=
17058 export COLLECT_NAMES
17059 fi
17060 _LT_EOF
17061 ;;
17062 esac
17063
17064
17065 ltmain="$ac_aux_dir/ltmain.sh"
17066
17067
17068 # We use sed instead of cat because bash on DJGPP gets confused if
17069 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17070 # text mode, it properly converts lines to CR/LF. This bash problem
17071 # is reportedly fixed, but why not run on old versions too?
17072 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17073 || (rm -f "$cfgfile"; exit 1)
17074
17075 case $xsi_shell in
17076 yes)
17077 cat << \_LT_EOF >> "$cfgfile"
17078
17079 # func_dirname file append nondir_replacement
17080 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17081 # otherwise set result to NONDIR_REPLACEMENT.
17082 func_dirname ()
17083 {
17084 case ${1} in
17085 */*) func_dirname_result="${1%/*}${2}" ;;
17086 * ) func_dirname_result="${3}" ;;
17087 esac
17088 }
17089
17090 # func_basename file
17091 func_basename ()
17092 {
17093 func_basename_result="${1##*/}"
17094 }
17095
17096 # func_dirname_and_basename file append nondir_replacement
17097 # perform func_basename and func_dirname in a single function
17098 # call:
17099 # dirname: Compute the dirname of FILE. If nonempty,
17100 # add APPEND to the result, otherwise set result
17101 # to NONDIR_REPLACEMENT.
17102 # value returned in "$func_dirname_result"
17103 # basename: Compute filename of FILE.
17104 # value retuned in "$func_basename_result"
17105 # Implementation must be kept synchronized with func_dirname
17106 # and func_basename. For efficiency, we do not delegate to
17107 # those functions but instead duplicate the functionality here.
17108 func_dirname_and_basename ()
17109 {
17110 case ${1} in
17111 */*) func_dirname_result="${1%/*}${2}" ;;
17112 * ) func_dirname_result="${3}" ;;
17113 esac
17114 func_basename_result="${1##*/}"
17115 }
17116
17117 # func_stripname prefix suffix name
17118 # strip PREFIX and SUFFIX off of NAME.
17119 # PREFIX and SUFFIX must not contain globbing or regex special
17120 # characters, hashes, percent signs, but SUFFIX may contain a leading
17121 # dot (in which case that matches only a dot).
17122 func_stripname ()
17123 {
17124 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17125 # positional parameters, so assign one to ordinary parameter first.
17126 func_stripname_result=${3}
17127 func_stripname_result=${func_stripname_result#"${1}"}
17128 func_stripname_result=${func_stripname_result%"${2}"}
17129 }
17130
17131 # func_opt_split
17132 func_opt_split ()
17133 {
17134 func_opt_split_opt=${1%%=*}
17135 func_opt_split_arg=${1#*=}
17136 }
17137
17138 # func_lo2o object
17139 func_lo2o ()
17140 {
17141 case ${1} in
17142 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17143 *) func_lo2o_result=${1} ;;
17144 esac
17145 }
17146
17147 # func_xform libobj-or-source
17148 func_xform ()
17149 {
17150 func_xform_result=${1%.*}.lo
17151 }
17152
17153 # func_arith arithmetic-term...
17154 func_arith ()
17155 {
17156 func_arith_result=$(( $* ))
17157 }
17158
17159 # func_len string
17160 # STRING may not start with a hyphen.
17161 func_len ()
17162 {
17163 func_len_result=${#1}
17164 }
17165
17166 _LT_EOF
17167 ;;
17168 *) # Bourne compatible functions.
17169 cat << \_LT_EOF >> "$cfgfile"
17170
17171 # func_dirname file append nondir_replacement
17172 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17173 # otherwise set result to NONDIR_REPLACEMENT.
17174 func_dirname ()
17175 {
17176 # Extract subdirectory from the argument.
17177 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17178 if test "X$func_dirname_result" = "X${1}"; then
17179 func_dirname_result="${3}"
17180 else
17181 func_dirname_result="$func_dirname_result${2}"
17182 fi
17183 }
17184
17185 # func_basename file
17186 func_basename ()
17187 {
17188 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17189 }
17190
17191
17192 # func_stripname prefix suffix name
17193 # strip PREFIX and SUFFIX off of NAME.
17194 # PREFIX and SUFFIX must not contain globbing or regex special
17195 # characters, hashes, percent signs, but SUFFIX may contain a leading
17196 # dot (in which case that matches only a dot).
17197 # func_strip_suffix prefix name
17198 func_stripname ()
17199 {
17200 case ${2} in
17201 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17202 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17203 esac
17204 }
17205
17206 # sed scripts:
17207 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17208 my_sed_long_arg='1s/^-[^=]*=//'
17209
17210 # func_opt_split
17211 func_opt_split ()
17212 {
17213 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17214 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17215 }
17216
17217 # func_lo2o object
17218 func_lo2o ()
17219 {
17220 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17221 }
17222
17223 # func_xform libobj-or-source
17224 func_xform ()
17225 {
17226 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17227 }
17228
17229 # func_arith arithmetic-term...
17230 func_arith ()
17231 {
17232 func_arith_result=`expr "$@"`
17233 }
17234
17235 # func_len string
17236 # STRING may not start with a hyphen.
17237 func_len ()
17238 {
17239 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17240 }
17241
17242 _LT_EOF
17243 esac
17244
17245 case $lt_shell_append in
17246 yes)
17247 cat << \_LT_EOF >> "$cfgfile"
17248
17249 # func_append var value
17250 # Append VALUE to the end of shell variable VAR.
17251 func_append ()
17252 {
17253 eval "$1+=\$2"
17254 }
17255 _LT_EOF
17256 ;;
17257 *)
17258 cat << \_LT_EOF >> "$cfgfile"
17259
17260 # func_append var value
17261 # Append VALUE to the end of shell variable VAR.
17262 func_append ()
17263 {
17264 eval "$1=\$$1\$2"
17265 }
17266
17267 _LT_EOF
17268 ;;
17269 esac
17270
17271
17272 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17273 || (rm -f "$cfgfile"; exit 1)
17274
17275 mv -f "$cfgfile" "$ofile" ||
17276 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17277 chmod +x "$ofile"
17278
17279
17280 cat <<_LT_EOF >> "$ofile"
17281
17282 # ### BEGIN LIBTOOL TAG CONFIG: D
17283
17284 # The linker used to build libraries.
17285 LD=$lt_LD_D
17286
17287 # How to create reloadable object files.
17288 reload_flag=$lt_reload_flag_D
17289 reload_cmds=$lt_reload_cmds_D
17290
17291 # Commands used to build an old-style archive.
17292 old_archive_cmds=$lt_old_archive_cmds_D
17293
17294 # A language specific compiler.
17295 CC=$lt_compiler_D
17296
17297 # Is the compiler the GNU compiler?
17298 with_gcc=$GCC_D
17299
17300 # Compiler flag to turn off builtin functions.
17301 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_D
17302
17303 # How to pass a linker flag through the compiler.
17304 wl=$lt_lt_prog_compiler_wl_D
17305
17306 # Additional compiler flags for building library objects.
17307 pic_flag=$lt_lt_prog_compiler_pic_D
17308
17309 # Compiler flag to prevent dynamic linking.
17310 link_static_flag=$lt_lt_prog_compiler_static_D
17311
17312 # Does compiler simultaneously support -c and -o options?
17313 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_D
17314
17315 # Whether or not to add -lc for building shared libraries.
17316 build_libtool_need_lc=$archive_cmds_need_lc_D
17317
17318 # Whether or not to disallow shared libs when runtime libs are static.
17319 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_D
17320
17321 # Compiler flag to allow reflexive dlopens.
17322 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_D
17323
17324 # Compiler flag to generate shared objects directly from archives.
17325 whole_archive_flag_spec=$lt_whole_archive_flag_spec_D
17326
17327 # Whether the compiler copes with passing no objects directly.
17328 compiler_needs_object=$lt_compiler_needs_object_D
17329
17330 # Create an old-style archive from a shared archive.
17331 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_D
17332
17333 # Create a temporary old-style archive to link instead of a shared archive.
17334 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_D
17335
17336 # Commands used to build a shared archive.
17337 archive_cmds=$lt_archive_cmds_D
17338 archive_expsym_cmds=$lt_archive_expsym_cmds_D
17339
17340 # Commands used to build a loadable module if different from building
17341 # a shared archive.
17342 module_cmds=$lt_module_cmds_D
17343 module_expsym_cmds=$lt_module_expsym_cmds_D
17344
17345 # Whether we are building with GNU ld or not.
17346 with_gnu_ld=$lt_with_gnu_ld_D
17347
17348 # Flag that allows shared libraries with undefined symbols to be built.
17349 allow_undefined_flag=$lt_allow_undefined_flag_D
17350
17351 # Flag that enforces no undefined symbols.
17352 no_undefined_flag=$lt_no_undefined_flag_D
17353
17354 # Flag to hardcode \$libdir into a binary during linking.
17355 # This must work even if \$libdir does not exist
17356 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_D
17357
17358 # If ld is used when linking, flag to hardcode \$libdir into a binary
17359 # during linking. This must work even if \$libdir does not exist.
17360 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_D
17361
17362 # Whether we need a single "-rpath" flag with a separated argument.
17363 hardcode_libdir_separator=$lt_hardcode_libdir_separator_D
17364
17365 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17366 # DIR into the resulting binary.
17367 hardcode_direct=$hardcode_direct_D
17368
17369 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17370 # DIR into the resulting binary and the resulting library dependency is
17371 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17372 # library is relocated.
17373 hardcode_direct_absolute=$hardcode_direct_absolute_D
17374
17375 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17376 # into the resulting binary.
17377 hardcode_minus_L=$hardcode_minus_L_D
17378
17379 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17380 # into the resulting binary.
17381 hardcode_shlibpath_var=$hardcode_shlibpath_var_D
17382
17383 # Set to "yes" if building a shared library automatically hardcodes DIR
17384 # into the library and all subsequent libraries and executables linked
17385 # against it.
17386 hardcode_automatic=$hardcode_automatic_D
17387
17388 # Set to yes if linker adds runtime paths of dependent libraries
17389 # to runtime path list.
17390 inherit_rpath=$inherit_rpath_D
17391
17392 # Whether libtool must link a program against all its dependency libraries.
17393 link_all_deplibs=$link_all_deplibs_D
17394
17395 # Fix the shell variable \$srcfile for the compiler.
17396 fix_srcfile_path=$lt_fix_srcfile_path_D
17397
17398 # Set to "yes" if exported symbols are required.
17399 always_export_symbols=$always_export_symbols_D
17400
17401 # The commands to list exported symbols.
17402 export_symbols_cmds=$lt_export_symbols_cmds_D
17403
17404 # Symbols that should not be listed in the preloaded symbols.
17405 exclude_expsyms=$lt_exclude_expsyms_D
17406
17407 # Symbols that must always be exported.
17408 include_expsyms=$lt_include_expsyms_D
17409
17410 # Commands necessary for linking programs (against libraries) with templates.
17411 prelink_cmds=$lt_prelink_cmds_D
17412
17413 # Specify filename containing input files.
17414 file_list_spec=$lt_file_list_spec_D
17415
17416 # How to hardcode a shared library path into an executable.
17417 hardcode_action=$hardcode_action_D
17418
17419 # ### END LIBTOOL TAG CONFIG: D
17420 _LT_EOF
17421
17422 ;;
17423 "testsuite/testsuite_flags":F) chmod +x testsuite/testsuite_flags ;;
17424 "default":C) if test -n "$CONFIG_FILES"; then
17425 if test -n "${with_target_subdir}"; then
17426 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
17427 # that multilib installs will end up installed in the correct place.
17428 # The testsuite needs it for multilib-aware ABI baseline files.
17429 # To work around this not being passed down from config-ml.in ->
17430 # srcdir/Makefile.am -> srcdir/{src,libdruntime,...}/Makefile.am, manually
17431 # append it here. Only modify Makefiles that have just been created.
17432 #
17433 # Also, get rid of this simulated-VPATH thing that automake does.
17434 cat > vpsed << \_EOF
17435 s!`test -f '$<' || echo '$(srcdir)/'`!!
17436 _EOF
17437 for i in $SUBDIRS; do
17438 case $CONFIG_FILES in
17439 *${i}/Makefile*)
17440 #echo "Adding MULTISUBDIR to $i/Makefile"
17441 sed -f vpsed $i/Makefile > tmp
17442 grep '^MULTISUBDIR =' Makefile >> tmp
17443 mv tmp $i/Makefile
17444 ;;
17445 esac
17446 done
17447 rm vpsed
17448 fi
17449 fi
17450 ;;
17451
17452 esac
17453 done # for ac_tag
17454
17455
17456 as_fn_exit 0
17457 _ACEOF
17458 ac_clean_files=$ac_clean_files_save
17459
17460 test $ac_write_fail = 0 ||
17461 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17462
17463
17464 # configure is writing to config.log, and then calls config.status.
17465 # config.status does its own redirection, appending to config.log.
17466 # Unfortunately, on DOS this fails, as config.log is still kept open
17467 # by configure, so config.status won't be able to write to it; its
17468 # output is simply discarded. So we exec the FD to /dev/null,
17469 # effectively closing config.log, so it can be properly (re)opened and
17470 # appended to by config.status. When coming back to configure, we
17471 # need to make the FD available again.
17472 if test "$no_create" != yes; then
17473 ac_cs_success=:
17474 ac_config_status_args=
17475 test "$silent" = yes &&
17476 ac_config_status_args="$ac_config_status_args --quiet"
17477 exec 5>/dev/null
17478 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17479 exec 5>>config.log
17480 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17481 # would make configure fail if this is the last instruction.
17482 $ac_cs_success || as_fn_exit 1
17483 fi
17484 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17486 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17487 fi
17488