]> git.ipfire.org Git - thirdparty/gcc.git/blob - libphobos/configure
Work around Solaris ld bug linking __tls_get_addr on 64-bit x86
[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 libtool_VERSION
638 SPEC_PHOBOS_DEPS
639 gdc_include_dir
640 libphobos_toolexeclibdir
641 libphobos_toolexecdir
642 gcc_version
643 LIBZ
644 BACKTRACE_SUPPORTS_THREADS
645 BACKTRACE_USES_MALLOC
646 BACKTRACE_SUPPORTED
647 LIBBACKTRACE
648 LIBATOMIC
649 DCFG_HAVE_LIBATOMIC
650 DCFG_HAVE_64BIT_ATOMICS
651 DCFG_HAVE_ATOMIC_BUILTINS
652 DCFG_HAVE_QSORT_R
653 OS_LINK_SPEC
654 DRUNTIME_OS_MINFO_BRACKETING_FALSE
655 DRUNTIME_OS_MINFO_BRACKETING_TRUE
656 DCFG_MINFO_BRACKETING
657 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
658 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
659 DCFG_ARM_EABI_UNWINDER
660 DCFG_THREAD_MODEL
661 DRUNTIME_OS_SOLARIS_FALSE
662 DRUNTIME_OS_SOLARIS_TRUE
663 DRUNTIME_OS_MINGW_FALSE
664 DRUNTIME_OS_MINGW_TRUE
665 DRUNTIME_OS_LINUX_FALSE
666 DRUNTIME_OS_LINUX_TRUE
667 DRUNTIME_OS_OPENBSD_FALSE
668 DRUNTIME_OS_OPENBSD_TRUE
669 DRUNTIME_OS_NETBSD_FALSE
670 DRUNTIME_OS_NETBSD_TRUE
671 DRUNTIME_OS_FREEBSD_FALSE
672 DRUNTIME_OS_FREEBSD_TRUE
673 DRUNTIME_OS_DRAGONFLYBSD_FALSE
674 DRUNTIME_OS_DRAGONFLYBSD_TRUE
675 DRUNTIME_OS_DARWIN_FALSE
676 DRUNTIME_OS_DARWIN_TRUE
677 DRUNTIME_OS_ANDROID_FALSE
678 DRUNTIME_OS_ANDROID_TRUE
679 DRUNTIME_OS_AIX_FALSE
680 DRUNTIME_OS_AIX_TRUE
681 DRUNTIME_OS_UNIX_FALSE
682 DRUNTIME_OS_UNIX_TRUE
683 DRUNTIME_GC_ENABLE_FALSE
684 DRUNTIME_GC_ENABLE_TRUE
685 libphobos_srcdir
686 libphobos_builddir
687 get_gcc_base_ver
688 phobos_compiler_shared_flag
689 phobos_compiler_pic_flag
690 CPP
691 OTOOL64
692 OTOOL
693 LIPO
694 NMEDIT
695 DSYMUTIL
696 OBJDUMP
697 LN_S
698 NM
699 ac_ct_DUMPBIN
700 DUMPBIN
701 LD
702 FGREP
703 EGREP
704 GREP
705 SED
706 LIBTOOL
707 CFLAGS_FOR_BUILD
708 CC_FOR_BUILD
709 AR
710 RANLIB
711 MAINT
712 MAINTAINER_MODE_FALSE
713 MAINTAINER_MODE_TRUE
714 GDCFLAGS
715 GDC
716 CCASFLAGS
717 CCAS
718 OBJEXT
719 EXEEXT
720 ac_ct_CC
721 CPPFLAGS
722 LDFLAGS
723 CFLAGS
724 CC
725 AM_BACKSLASH
726 AM_DEFAULT_VERBOSITY
727 AM_DEFAULT_V
728 AM_V
729 am__untar
730 am__tar
731 AMTAR
732 am__leading_dot
733 SET_MAKE
734 AWK
735 mkdir_p
736 MKDIR_P
737 INSTALL_STRIP_PROGRAM
738 STRIP
739 install_sh
740 MAKEINFO
741 AUTOHEADER
742 AUTOMAKE
743 AUTOCONF
744 ACLOCAL
745 VERSION
746 PACKAGE
747 CYGPATH_W
748 am__isrc
749 INSTALL_DATA
750 INSTALL_SCRIPT
751 INSTALL_PROGRAM
752 target_os
753 target_vendor
754 target_cpu
755 target
756 host_os
757 host_vendor
758 host_cpu
759 host
760 build_os
761 build_vendor
762 build_cpu
763 build
764 multi_basedir
765 target_alias
766 host_alias
767 build_alias
768 LIBS
769 ECHO_T
770 ECHO_N
771 ECHO_C
772 DEFS
773 mandir
774 localedir
775 libdir
776 psdir
777 pdfdir
778 dvidir
779 htmldir
780 infodir
781 docdir
782 oldincludedir
783 includedir
784 localstatedir
785 sharedstatedir
786 sysconfdir
787 datadir
788 datarootdir
789 libexecdir
790 sbindir
791 bindir
792 program_transform_name
793 prefix
794 exec_prefix
795 PACKAGE_URL
796 PACKAGE_BUGREPORT
797 PACKAGE_STRING
798 PACKAGE_VERSION
799 PACKAGE_TARNAME
800 PACKAGE_NAME
801 PATH_SEPARATOR
802 SHELL'
803 ac_subst_files='DRTSTUFF_SPEC'
804 ac_user_opts='
805 enable_option_checking
806 enable_multilib
807 enable_silent_rules
808 enable_maintainer_mode
809 enable_shared
810 enable_static
811 with_pic
812 enable_fast_install
813 with_gnu_ld
814 enable_libtool_lock
815 with_gcc_major_version_only
816 enable_werror
817 enable_druntime_gc
818 enable_unix
819 enable_thread_lib
820 with_libatomic
821 with_libbacktrace
822 with_target_system_zlib
823 with_cross_host
824 enable_version_specific_runtime_libs
825 '
826 ac_precious_vars='build_alias
827 host_alias
828 target_alias
829 CPP
830 CPPFLAGS'
831
832
833 # Initialize some variables set by options.
834 ac_init_help=
835 ac_init_version=false
836 ac_unrecognized_opts=
837 ac_unrecognized_sep=
838 # The variables have the same names as the options, with
839 # dashes changed to underlines.
840 cache_file=/dev/null
841 exec_prefix=NONE
842 no_create=
843 no_recursion=
844 prefix=NONE
845 program_prefix=NONE
846 program_suffix=NONE
847 program_transform_name=s,x,x,
848 silent=
849 site=
850 srcdir=
851 verbose=
852 x_includes=NONE
853 x_libraries=NONE
854
855 # Installation directory options.
856 # These are left unexpanded so users can "make install exec_prefix=/foo"
857 # and all the variables that are supposed to be based on exec_prefix
858 # by default will actually change.
859 # Use braces instead of parens because sh, perl, etc. also accept them.
860 # (The list follows the same order as the GNU Coding Standards.)
861 bindir='${exec_prefix}/bin'
862 sbindir='${exec_prefix}/sbin'
863 libexecdir='${exec_prefix}/libexec'
864 datarootdir='${prefix}/share'
865 datadir='${datarootdir}'
866 sysconfdir='${prefix}/etc'
867 sharedstatedir='${prefix}/com'
868 localstatedir='${prefix}/var'
869 includedir='${prefix}/include'
870 oldincludedir='/usr/include'
871 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
872 infodir='${datarootdir}/info'
873 htmldir='${docdir}'
874 dvidir='${docdir}'
875 pdfdir='${docdir}'
876 psdir='${docdir}'
877 libdir='${exec_prefix}/lib'
878 localedir='${datarootdir}/locale'
879 mandir='${datarootdir}/man'
880
881 ac_prev=
882 ac_dashdash=
883 for ac_option
884 do
885 # If the previous option needs an argument, assign it.
886 if test -n "$ac_prev"; then
887 eval $ac_prev=\$ac_option
888 ac_prev=
889 continue
890 fi
891
892 case $ac_option in
893 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
894 *=) ac_optarg= ;;
895 *) ac_optarg=yes ;;
896 esac
897
898 # Accept the important Cygnus configure options, so we can diagnose typos.
899
900 case $ac_dashdash$ac_option in
901 --)
902 ac_dashdash=yes ;;
903
904 -bindir | --bindir | --bindi | --bind | --bin | --bi)
905 ac_prev=bindir ;;
906 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
907 bindir=$ac_optarg ;;
908
909 -build | --build | --buil | --bui | --bu)
910 ac_prev=build_alias ;;
911 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
912 build_alias=$ac_optarg ;;
913
914 -cache-file | --cache-file | --cache-fil | --cache-fi \
915 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
916 ac_prev=cache_file ;;
917 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
918 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
919 cache_file=$ac_optarg ;;
920
921 --config-cache | -C)
922 cache_file=config.cache ;;
923
924 -datadir | --datadir | --datadi | --datad)
925 ac_prev=datadir ;;
926 -datadir=* | --datadir=* | --datadi=* | --datad=*)
927 datadir=$ac_optarg ;;
928
929 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
930 | --dataroo | --dataro | --datar)
931 ac_prev=datarootdir ;;
932 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
933 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
934 datarootdir=$ac_optarg ;;
935
936 -disable-* | --disable-*)
937 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
938 # Reject names that are not valid shell variable names.
939 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
940 as_fn_error $? "invalid feature name: $ac_useropt"
941 ac_useropt_orig=$ac_useropt
942 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
943 case $ac_user_opts in
944 *"
945 "enable_$ac_useropt"
946 "*) ;;
947 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
948 ac_unrecognized_sep=', ';;
949 esac
950 eval enable_$ac_useropt=no ;;
951
952 -docdir | --docdir | --docdi | --doc | --do)
953 ac_prev=docdir ;;
954 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
955 docdir=$ac_optarg ;;
956
957 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
958 ac_prev=dvidir ;;
959 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
960 dvidir=$ac_optarg ;;
961
962 -enable-* | --enable-*)
963 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
964 # Reject names that are not valid shell variable names.
965 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
966 as_fn_error $? "invalid feature name: $ac_useropt"
967 ac_useropt_orig=$ac_useropt
968 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
969 case $ac_user_opts in
970 *"
971 "enable_$ac_useropt"
972 "*) ;;
973 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
974 ac_unrecognized_sep=', ';;
975 esac
976 eval enable_$ac_useropt=\$ac_optarg ;;
977
978 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
979 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
980 | --exec | --exe | --ex)
981 ac_prev=exec_prefix ;;
982 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
983 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
984 | --exec=* | --exe=* | --ex=*)
985 exec_prefix=$ac_optarg ;;
986
987 -gas | --gas | --ga | --g)
988 # Obsolete; use --with-gas.
989 with_gas=yes ;;
990
991 -help | --help | --hel | --he | -h)
992 ac_init_help=long ;;
993 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
994 ac_init_help=recursive ;;
995 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
996 ac_init_help=short ;;
997
998 -host | --host | --hos | --ho)
999 ac_prev=host_alias ;;
1000 -host=* | --host=* | --hos=* | --ho=*)
1001 host_alias=$ac_optarg ;;
1002
1003 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1004 ac_prev=htmldir ;;
1005 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1006 | --ht=*)
1007 htmldir=$ac_optarg ;;
1008
1009 -includedir | --includedir | --includedi | --included | --include \
1010 | --includ | --inclu | --incl | --inc)
1011 ac_prev=includedir ;;
1012 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1013 | --includ=* | --inclu=* | --incl=* | --inc=*)
1014 includedir=$ac_optarg ;;
1015
1016 -infodir | --infodir | --infodi | --infod | --info | --inf)
1017 ac_prev=infodir ;;
1018 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1019 infodir=$ac_optarg ;;
1020
1021 -libdir | --libdir | --libdi | --libd)
1022 ac_prev=libdir ;;
1023 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1024 libdir=$ac_optarg ;;
1025
1026 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1027 | --libexe | --libex | --libe)
1028 ac_prev=libexecdir ;;
1029 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1030 | --libexe=* | --libex=* | --libe=*)
1031 libexecdir=$ac_optarg ;;
1032
1033 -localedir | --localedir | --localedi | --localed | --locale)
1034 ac_prev=localedir ;;
1035 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1036 localedir=$ac_optarg ;;
1037
1038 -localstatedir | --localstatedir | --localstatedi | --localstated \
1039 | --localstate | --localstat | --localsta | --localst | --locals)
1040 ac_prev=localstatedir ;;
1041 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1042 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1043 localstatedir=$ac_optarg ;;
1044
1045 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1046 ac_prev=mandir ;;
1047 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1048 mandir=$ac_optarg ;;
1049
1050 -nfp | --nfp | --nf)
1051 # Obsolete; use --without-fp.
1052 with_fp=no ;;
1053
1054 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1055 | --no-cr | --no-c | -n)
1056 no_create=yes ;;
1057
1058 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1059 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1060 no_recursion=yes ;;
1061
1062 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1063 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1064 | --oldin | --oldi | --old | --ol | --o)
1065 ac_prev=oldincludedir ;;
1066 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1067 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1068 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1069 oldincludedir=$ac_optarg ;;
1070
1071 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1072 ac_prev=prefix ;;
1073 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1074 prefix=$ac_optarg ;;
1075
1076 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1077 | --program-pre | --program-pr | --program-p)
1078 ac_prev=program_prefix ;;
1079 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1080 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1081 program_prefix=$ac_optarg ;;
1082
1083 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1084 | --program-suf | --program-su | --program-s)
1085 ac_prev=program_suffix ;;
1086 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1087 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1088 program_suffix=$ac_optarg ;;
1089
1090 -program-transform-name | --program-transform-name \
1091 | --program-transform-nam | --program-transform-na \
1092 | --program-transform-n | --program-transform- \
1093 | --program-transform | --program-transfor \
1094 | --program-transfo | --program-transf \
1095 | --program-trans | --program-tran \
1096 | --progr-tra | --program-tr | --program-t)
1097 ac_prev=program_transform_name ;;
1098 -program-transform-name=* | --program-transform-name=* \
1099 | --program-transform-nam=* | --program-transform-na=* \
1100 | --program-transform-n=* | --program-transform-=* \
1101 | --program-transform=* | --program-transfor=* \
1102 | --program-transfo=* | --program-transf=* \
1103 | --program-trans=* | --program-tran=* \
1104 | --progr-tra=* | --program-tr=* | --program-t=*)
1105 program_transform_name=$ac_optarg ;;
1106
1107 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1108 ac_prev=pdfdir ;;
1109 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1110 pdfdir=$ac_optarg ;;
1111
1112 -psdir | --psdir | --psdi | --psd | --ps)
1113 ac_prev=psdir ;;
1114 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1115 psdir=$ac_optarg ;;
1116
1117 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1118 | -silent | --silent | --silen | --sile | --sil)
1119 silent=yes ;;
1120
1121 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1122 ac_prev=sbindir ;;
1123 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1124 | --sbi=* | --sb=*)
1125 sbindir=$ac_optarg ;;
1126
1127 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1128 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1129 | --sharedst | --shareds | --shared | --share | --shar \
1130 | --sha | --sh)
1131 ac_prev=sharedstatedir ;;
1132 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1133 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1134 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1135 | --sha=* | --sh=*)
1136 sharedstatedir=$ac_optarg ;;
1137
1138 -site | --site | --sit)
1139 ac_prev=site ;;
1140 -site=* | --site=* | --sit=*)
1141 site=$ac_optarg ;;
1142
1143 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1144 ac_prev=srcdir ;;
1145 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1146 srcdir=$ac_optarg ;;
1147
1148 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1149 | --syscon | --sysco | --sysc | --sys | --sy)
1150 ac_prev=sysconfdir ;;
1151 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1152 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1153 sysconfdir=$ac_optarg ;;
1154
1155 -target | --target | --targe | --targ | --tar | --ta | --t)
1156 ac_prev=target_alias ;;
1157 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1158 target_alias=$ac_optarg ;;
1159
1160 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1161 verbose=yes ;;
1162
1163 -version | --version | --versio | --versi | --vers | -V)
1164 ac_init_version=: ;;
1165
1166 -with-* | --with-*)
1167 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1168 # Reject names that are not valid shell variable names.
1169 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1170 as_fn_error $? "invalid package name: $ac_useropt"
1171 ac_useropt_orig=$ac_useropt
1172 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1173 case $ac_user_opts in
1174 *"
1175 "with_$ac_useropt"
1176 "*) ;;
1177 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1178 ac_unrecognized_sep=', ';;
1179 esac
1180 eval with_$ac_useropt=\$ac_optarg ;;
1181
1182 -without-* | --without-*)
1183 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1184 # Reject names that are not valid shell variable names.
1185 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186 as_fn_error $? "invalid package name: $ac_useropt"
1187 ac_useropt_orig=$ac_useropt
1188 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1189 case $ac_user_opts in
1190 *"
1191 "with_$ac_useropt"
1192 "*) ;;
1193 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1194 ac_unrecognized_sep=', ';;
1195 esac
1196 eval with_$ac_useropt=no ;;
1197
1198 --x)
1199 # Obsolete; use --with-x.
1200 with_x=yes ;;
1201
1202 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1203 | --x-incl | --x-inc | --x-in | --x-i)
1204 ac_prev=x_includes ;;
1205 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1206 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1207 x_includes=$ac_optarg ;;
1208
1209 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1210 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1211 ac_prev=x_libraries ;;
1212 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1213 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1214 x_libraries=$ac_optarg ;;
1215
1216 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1217 Try \`$0 --help' for more information"
1218 ;;
1219
1220 *=*)
1221 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1222 # Reject names that are not valid shell variable names.
1223 case $ac_envvar in #(
1224 '' | [0-9]* | *[!_$as_cr_alnum]* )
1225 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1226 esac
1227 eval $ac_envvar=\$ac_optarg
1228 export $ac_envvar ;;
1229
1230 *)
1231 # FIXME: should be removed in autoconf 3.0.
1232 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1233 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1234 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1235 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1236 ;;
1237
1238 esac
1239 done
1240
1241 if test -n "$ac_prev"; then
1242 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1243 as_fn_error $? "missing argument to $ac_option"
1244 fi
1245
1246 if test -n "$ac_unrecognized_opts"; then
1247 case $enable_option_checking in
1248 no) ;;
1249 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1250 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1251 esac
1252 fi
1253
1254 # Check all directory arguments for consistency.
1255 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1256 datadir sysconfdir sharedstatedir localstatedir includedir \
1257 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1258 libdir localedir mandir
1259 do
1260 eval ac_val=\$$ac_var
1261 # Remove trailing slashes.
1262 case $ac_val in
1263 */ )
1264 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1265 eval $ac_var=\$ac_val;;
1266 esac
1267 # Be sure to have absolute directory names.
1268 case $ac_val in
1269 [\\/$]* | ?:[\\/]* ) continue;;
1270 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1271 esac
1272 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1273 done
1274
1275 # There might be people who depend on the old broken behavior: `$host'
1276 # used to hold the argument of --host etc.
1277 # FIXME: To remove some day.
1278 build=$build_alias
1279 host=$host_alias
1280 target=$target_alias
1281
1282 # FIXME: To remove some day.
1283 if test "x$host_alias" != x; then
1284 if test "x$build_alias" = x; then
1285 cross_compiling=maybe
1286 elif test "x$build_alias" != "x$host_alias"; then
1287 cross_compiling=yes
1288 fi
1289 fi
1290
1291 ac_tool_prefix=
1292 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1293
1294 test "$silent" = yes && exec 6>/dev/null
1295
1296
1297 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1298 ac_ls_di=`ls -di .` &&
1299 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1300 as_fn_error $? "working directory cannot be determined"
1301 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1302 as_fn_error $? "pwd does not report name of working directory"
1303
1304
1305 # Find the source files, if location was not specified.
1306 if test -z "$srcdir"; then
1307 ac_srcdir_defaulted=yes
1308 # Try the directory containing this script, then the parent directory.
1309 ac_confdir=`$as_dirname -- "$as_myself" ||
1310 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1311 X"$as_myself" : 'X\(//\)[^/]' \| \
1312 X"$as_myself" : 'X\(//\)$' \| \
1313 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1314 $as_echo X"$as_myself" |
1315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1316 s//\1/
1317 q
1318 }
1319 /^X\(\/\/\)[^/].*/{
1320 s//\1/
1321 q
1322 }
1323 /^X\(\/\/\)$/{
1324 s//\1/
1325 q
1326 }
1327 /^X\(\/\).*/{
1328 s//\1/
1329 q
1330 }
1331 s/.*/./; q'`
1332 srcdir=$ac_confdir
1333 if test ! -r "$srcdir/$ac_unique_file"; then
1334 srcdir=..
1335 fi
1336 else
1337 ac_srcdir_defaulted=no
1338 fi
1339 if test ! -r "$srcdir/$ac_unique_file"; then
1340 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1341 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1342 fi
1343 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1344 ac_abs_confdir=`(
1345 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1346 pwd)`
1347 # When building in place, set srcdir=.
1348 if test "$ac_abs_confdir" = "$ac_pwd"; then
1349 srcdir=.
1350 fi
1351 # Remove unnecessary trailing slashes from srcdir.
1352 # Double slashes in file names in object file debugging info
1353 # mess up M-x gdb in Emacs.
1354 case $srcdir in
1355 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1356 esac
1357 for ac_var in $ac_precious_vars; do
1358 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1359 eval ac_env_${ac_var}_value=\$${ac_var}
1360 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1361 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1362 done
1363
1364 #
1365 # Report the --help message.
1366 #
1367 if test "$ac_init_help" = "long"; then
1368 # Omit some internal or obsolete options to make the list less imposing.
1369 # This message is too long to be a string in the A/UX 3.1 sh.
1370 cat <<_ACEOF
1371 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1372
1373 Usage: $0 [OPTION]... [VAR=VALUE]...
1374
1375 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1376 VAR=VALUE. See below for descriptions of some of the useful variables.
1377
1378 Defaults for the options are specified in brackets.
1379
1380 Configuration:
1381 -h, --help display this help and exit
1382 --help=short display options specific to this package
1383 --help=recursive display the short help of all the included packages
1384 -V, --version display version information and exit
1385 -q, --quiet, --silent do not print \`checking ...' messages
1386 --cache-file=FILE cache test results in FILE [disabled]
1387 -C, --config-cache alias for \`--cache-file=config.cache'
1388 -n, --no-create do not create output files
1389 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1390
1391 Installation directories:
1392 --prefix=PREFIX install architecture-independent files in PREFIX
1393 [$ac_default_prefix]
1394 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1395 [PREFIX]
1396
1397 By default, \`make install' will install all the files in
1398 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1399 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1400 for instance \`--prefix=\$HOME'.
1401
1402 For better control, use the options below.
1403
1404 Fine tuning of the installation directories:
1405 --bindir=DIR user executables [EPREFIX/bin]
1406 --sbindir=DIR system admin executables [EPREFIX/sbin]
1407 --libexecdir=DIR program executables [EPREFIX/libexec]
1408 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1409 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1410 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1411 --libdir=DIR object code libraries [EPREFIX/lib]
1412 --includedir=DIR C header files [PREFIX/include]
1413 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1414 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1415 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1416 --infodir=DIR info documentation [DATAROOTDIR/info]
1417 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1418 --mandir=DIR man documentation [DATAROOTDIR/man]
1419 --docdir=DIR documentation root [DATAROOTDIR/doc/libphobos]
1420 --htmldir=DIR html documentation [DOCDIR]
1421 --dvidir=DIR dvi documentation [DOCDIR]
1422 --pdfdir=DIR pdf documentation [DOCDIR]
1423 --psdir=DIR ps documentation [DOCDIR]
1424 _ACEOF
1425
1426 cat <<\_ACEOF
1427
1428 Program names:
1429 --program-prefix=PREFIX prepend PREFIX to installed program names
1430 --program-suffix=SUFFIX append SUFFIX to installed program names
1431 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1432
1433 System types:
1434 --build=BUILD configure for building on BUILD [guessed]
1435 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1436 --target=TARGET configure for building compilers for TARGET [HOST]
1437 _ACEOF
1438 fi
1439
1440 if test -n "$ac_init_help"; then
1441 case $ac_init_help in
1442 short | recursive ) echo "Configuration of package-unused version-unused:";;
1443 esac
1444 cat <<\_ACEOF
1445
1446 Optional Features:
1447 --disable-option-checking ignore unrecognized --enable/--with options
1448 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1449 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1450 --enable-multilib build many library versions (default)
1451 --enable-silent-rules less verbose build output (undo: "make V=1")
1452 --disable-silent-rules verbose build output (undo: "make V=0")
1453 --enable-maintainer-mode
1454 enable make rules and dependencies not useful (and
1455 sometimes confusing) to the casual installer
1456 --enable-shared[=PKGS] build shared libraries [default=yes]
1457 --enable-static[=PKGS] build static libraries [default=yes]
1458 --enable-fast-install[=PKGS]
1459 optimize for fast installation [default=yes]
1460 --disable-libtool-lock avoid locking (might break parallel builds)
1461 --enable-werror turns on -Werror [default=no]
1462 --enable-druntime-gc enable D runtime garbage collector (default: yes)
1463 --enable-unix enables Unix runtime (default: yes, for Unix
1464 targets)
1465 --enable-thread-lib=<arg>
1466 specify linker option for the system thread library
1467 (default: autodetect)
1468 --enable-version-specific-runtime-libs
1469 Specify that runtime libraries should be installed
1470 in a compiler-specific directory
1471
1472 Optional Packages:
1473 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1474 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1475 --with-pic try to use only PIC/non-PIC objects [default=use
1476 both]
1477 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1478 --with-gcc-major-version-only
1479 use only GCC major number in filesystem paths
1480 --without-libatomic Do not use libatomic in core.atomic (default: auto)
1481 --without-libbacktrace Do not use libbacktrace in core.runtime (default:
1482 auto)
1483 --with-target-system-zlib={yes,no,auto}
1484 use installed libz (default: no)
1485 --with-cross-host=HOST configuring with a cross compiler
1486
1487 Some influential environment variables:
1488 CC C compiler command
1489 CFLAGS C compiler flags
1490 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1491 nonstandard directory <lib dir>
1492 LIBS libraries to pass to the linker, e.g. -l<library>
1493 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1494 you have headers in a nonstandard directory <include dir>
1495 CCAS assembler compiler command (defaults to CC)
1496 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1497 GDC D compiler command
1498 GDCFLAGS D compiler flags
1499 CPP C preprocessor
1500
1501 Use these variables to override the choices made by `configure' or to help
1502 it to find libraries and programs with nonstandard names/locations.
1503
1504 Report bugs to the package provider.
1505 _ACEOF
1506 ac_status=$?
1507 fi
1508
1509 if test "$ac_init_help" = "recursive"; then
1510 # If there are subdirs, report their specific --help.
1511 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1512 test -d "$ac_dir" ||
1513 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1514 continue
1515 ac_builddir=.
1516
1517 case "$ac_dir" in
1518 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1519 *)
1520 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1521 # A ".." for each directory in $ac_dir_suffix.
1522 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1523 case $ac_top_builddir_sub in
1524 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1525 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1526 esac ;;
1527 esac
1528 ac_abs_top_builddir=$ac_pwd
1529 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1530 # for backward compatibility:
1531 ac_top_builddir=$ac_top_build_prefix
1532
1533 case $srcdir in
1534 .) # We are building in place.
1535 ac_srcdir=.
1536 ac_top_srcdir=$ac_top_builddir_sub
1537 ac_abs_top_srcdir=$ac_pwd ;;
1538 [\\/]* | ?:[\\/]* ) # Absolute name.
1539 ac_srcdir=$srcdir$ac_dir_suffix;
1540 ac_top_srcdir=$srcdir
1541 ac_abs_top_srcdir=$srcdir ;;
1542 *) # Relative name.
1543 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1544 ac_top_srcdir=$ac_top_build_prefix$srcdir
1545 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1546 esac
1547 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1548
1549 cd "$ac_dir" || { ac_status=$?; continue; }
1550 # Check for guested configure.
1551 if test -f "$ac_srcdir/configure.gnu"; then
1552 echo &&
1553 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1554 elif test -f "$ac_srcdir/configure"; then
1555 echo &&
1556 $SHELL "$ac_srcdir/configure" --help=recursive
1557 else
1558 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1559 fi || ac_status=$?
1560 cd "$ac_pwd" || { ac_status=$?; break; }
1561 done
1562 fi
1563
1564 test -n "$ac_init_help" && exit $ac_status
1565 if $ac_init_version; then
1566 cat <<\_ACEOF
1567 package-unused configure version-unused
1568 generated by GNU Autoconf 2.69
1569
1570 Copyright (C) 2012 Free Software Foundation, Inc.
1571 This configure script is free software; the Free Software Foundation
1572 gives unlimited permission to copy, distribute and modify it.
1573 _ACEOF
1574 exit
1575 fi
1576
1577 ## ------------------------ ##
1578 ## Autoconf initialization. ##
1579 ## ------------------------ ##
1580
1581 # ac_fn_c_try_compile LINENO
1582 # --------------------------
1583 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1584 ac_fn_c_try_compile ()
1585 {
1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587 rm -f conftest.$ac_objext
1588 if { { ac_try="$ac_compile"
1589 case "(($ac_try" in
1590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1591 *) ac_try_echo=$ac_try;;
1592 esac
1593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1594 $as_echo "$ac_try_echo"; } >&5
1595 (eval "$ac_compile") 2>conftest.err
1596 ac_status=$?
1597 if test -s conftest.err; then
1598 grep -v '^ *+' conftest.err >conftest.er1
1599 cat conftest.er1 >&5
1600 mv -f conftest.er1 conftest.err
1601 fi
1602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1603 test $ac_status = 0; } && {
1604 test -z "$ac_c_werror_flag" ||
1605 test ! -s conftest.err
1606 } && test -s conftest.$ac_objext; then :
1607 ac_retval=0
1608 else
1609 $as_echo "$as_me: failed program was:" >&5
1610 sed 's/^/| /' conftest.$ac_ext >&5
1611
1612 ac_retval=1
1613 fi
1614 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1615 as_fn_set_status $ac_retval
1616
1617 } # ac_fn_c_try_compile
1618
1619 # ac_fn_d_try_compile LINENO
1620 # --------------------------
1621 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1622 ac_fn_d_try_compile ()
1623 {
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 rm -f conftest.$ac_objext
1626 if { { ac_try="$ac_compile"
1627 case "(($ac_try" in
1628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1629 *) ac_try_echo=$ac_try;;
1630 esac
1631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1632 $as_echo "$ac_try_echo"; } >&5
1633 (eval "$ac_compile") 2>conftest.err
1634 ac_status=$?
1635 if test -s conftest.err; then
1636 grep -v '^ *+' conftest.err >conftest.er1
1637 cat conftest.er1 >&5
1638 mv -f conftest.er1 conftest.err
1639 fi
1640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1641 test $ac_status = 0; } && {
1642 test -z "$ac_d_werror_flag" ||
1643 test ! -s conftest.err
1644 } && test -s conftest.$ac_objext; then :
1645 ac_retval=0
1646 else
1647 $as_echo "$as_me: failed program was:" >&5
1648 sed 's/^/| /' conftest.$ac_ext >&5
1649
1650 ac_retval=1
1651 fi
1652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1653 as_fn_set_status $ac_retval
1654
1655 } # ac_fn_d_try_compile
1656
1657 # ac_fn_c_try_link LINENO
1658 # -----------------------
1659 # Try to link conftest.$ac_ext, and return whether this succeeded.
1660 ac_fn_c_try_link ()
1661 {
1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663 rm -f conftest.$ac_objext conftest$ac_exeext
1664 if { { ac_try="$ac_link"
1665 case "(($ac_try" in
1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667 *) ac_try_echo=$ac_try;;
1668 esac
1669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670 $as_echo "$ac_try_echo"; } >&5
1671 (eval "$ac_link") 2>conftest.err
1672 ac_status=$?
1673 if test -s conftest.err; then
1674 grep -v '^ *+' conftest.err >conftest.er1
1675 cat conftest.er1 >&5
1676 mv -f conftest.er1 conftest.err
1677 fi
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; } && {
1680 test -z "$ac_c_werror_flag" ||
1681 test ! -s conftest.err
1682 } && test -s conftest$ac_exeext && {
1683 test "$cross_compiling" = yes ||
1684 test -x conftest$ac_exeext
1685 }; then :
1686 ac_retval=0
1687 else
1688 $as_echo "$as_me: failed program was:" >&5
1689 sed 's/^/| /' conftest.$ac_ext >&5
1690
1691 ac_retval=1
1692 fi
1693 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1694 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1695 # interfere with the next link command; also delete a directory that is
1696 # left behind by Apple's compiler. We do this before executing the actions.
1697 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1699 as_fn_set_status $ac_retval
1700
1701 } # ac_fn_c_try_link
1702
1703 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1704 # -------------------------------------------------------
1705 # Tests whether HEADER exists and can be compiled using the include files in
1706 # INCLUDES, setting the cache variable VAR accordingly.
1707 ac_fn_c_check_header_compile ()
1708 {
1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1711 $as_echo_n "checking for $2... " >&6; }
1712 if eval \${$3+:} false; then :
1713 $as_echo_n "(cached) " >&6
1714 else
1715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1716 /* end confdefs.h. */
1717 $4
1718 #include <$2>
1719 _ACEOF
1720 if ac_fn_c_try_compile "$LINENO"; then :
1721 eval "$3=yes"
1722 else
1723 eval "$3=no"
1724 fi
1725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1726 fi
1727 eval ac_res=\$$3
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1729 $as_echo "$ac_res" >&6; }
1730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731
1732 } # ac_fn_c_check_header_compile
1733
1734 # ac_fn_c_try_cpp LINENO
1735 # ----------------------
1736 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1737 ac_fn_c_try_cpp ()
1738 {
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 if { { ac_try="$ac_cpp conftest.$ac_ext"
1741 case "(($ac_try" in
1742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1743 *) ac_try_echo=$ac_try;;
1744 esac
1745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746 $as_echo "$ac_try_echo"; } >&5
1747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1748 ac_status=$?
1749 if test -s conftest.err; then
1750 grep -v '^ *+' conftest.err >conftest.er1
1751 cat conftest.er1 >&5
1752 mv -f conftest.er1 conftest.err
1753 fi
1754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755 test $ac_status = 0; } > conftest.i && {
1756 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1757 test ! -s conftest.err
1758 }; then :
1759 ac_retval=0
1760 else
1761 $as_echo "$as_me: failed program was:" >&5
1762 sed 's/^/| /' conftest.$ac_ext >&5
1763
1764 ac_retval=1
1765 fi
1766 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1767 as_fn_set_status $ac_retval
1768
1769 } # ac_fn_c_try_cpp
1770
1771 # ac_fn_c_try_run LINENO
1772 # ----------------------
1773 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1774 # that executables *can* be run.
1775 ac_fn_c_try_run ()
1776 {
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 if { { ac_try="$ac_link"
1779 case "(($ac_try" in
1780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781 *) ac_try_echo=$ac_try;;
1782 esac
1783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784 $as_echo "$ac_try_echo"; } >&5
1785 (eval "$ac_link") 2>&5
1786 ac_status=$?
1787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1789 { { case "(($ac_try" in
1790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1791 *) ac_try_echo=$ac_try;;
1792 esac
1793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794 $as_echo "$ac_try_echo"; } >&5
1795 (eval "$ac_try") 2>&5
1796 ac_status=$?
1797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798 test $ac_status = 0; }; }; then :
1799 ac_retval=0
1800 else
1801 $as_echo "$as_me: program exited with status $ac_status" >&5
1802 $as_echo "$as_me: failed program was:" >&5
1803 sed 's/^/| /' conftest.$ac_ext >&5
1804
1805 ac_retval=$ac_status
1806 fi
1807 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1808 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809 as_fn_set_status $ac_retval
1810
1811 } # ac_fn_c_try_run
1812
1813 # ac_fn_c_check_func LINENO FUNC VAR
1814 # ----------------------------------
1815 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1816 ac_fn_c_check_func ()
1817 {
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820 $as_echo_n "checking for $2... " >&6; }
1821 if eval \${$3+:} false; then :
1822 $as_echo_n "(cached) " >&6
1823 else
1824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1825 /* end confdefs.h. */
1826 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1828 #define $2 innocuous_$2
1829
1830 /* System header to define __stub macros and hopefully few prototypes,
1831 which can conflict with char $2 (); below.
1832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1833 <limits.h> exists even on freestanding compilers. */
1834
1835 #ifdef __STDC__
1836 # include <limits.h>
1837 #else
1838 # include <assert.h>
1839 #endif
1840
1841 #undef $2
1842
1843 /* Override any GCC internal prototype to avoid an error.
1844 Use char because int might match the return type of a GCC
1845 builtin and then its argument prototype would still apply. */
1846 #ifdef __cplusplus
1847 extern "C"
1848 #endif
1849 char $2 ();
1850 /* The GNU C library defines this for functions which it implements
1851 to always fail with ENOSYS. Some functions are actually named
1852 something starting with __ and the normal name is an alias. */
1853 #if defined __stub_$2 || defined __stub___$2
1854 choke me
1855 #endif
1856
1857 int
1858 main ()
1859 {
1860 return $2 ();
1861 ;
1862 return 0;
1863 }
1864 _ACEOF
1865 if ac_fn_c_try_link "$LINENO"; then :
1866 eval "$3=yes"
1867 else
1868 eval "$3=no"
1869 fi
1870 rm -f core conftest.err conftest.$ac_objext \
1871 conftest$ac_exeext conftest.$ac_ext
1872 fi
1873 eval ac_res=\$$3
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875 $as_echo "$ac_res" >&6; }
1876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877
1878 } # ac_fn_c_check_func
1879
1880 # ac_fn_d_try_link LINENO
1881 # -----------------------
1882 # Try to link conftest.$ac_ext, and return whether this succeeded.
1883 ac_fn_d_try_link ()
1884 {
1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886 rm -f conftest.$ac_objext conftest$ac_exeext
1887 if { { ac_try="$ac_link"
1888 case "(($ac_try" in
1889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1890 *) ac_try_echo=$ac_try;;
1891 esac
1892 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1893 $as_echo "$ac_try_echo"; } >&5
1894 (eval "$ac_link") 2>conftest.err
1895 ac_status=$?
1896 if test -s conftest.err; then
1897 grep -v '^ *+' conftest.err >conftest.er1
1898 cat conftest.er1 >&5
1899 mv -f conftest.er1 conftest.err
1900 fi
1901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902 test $ac_status = 0; } && {
1903 test -z "$ac_d_werror_flag" ||
1904 test ! -s conftest.err
1905 } && test -s conftest$ac_exeext && {
1906 test "$cross_compiling" = yes ||
1907 test -x conftest$ac_exeext
1908 }; then :
1909 ac_retval=0
1910 else
1911 $as_echo "$as_me: failed program was:" >&5
1912 sed 's/^/| /' conftest.$ac_ext >&5
1913
1914 ac_retval=1
1915 fi
1916 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1917 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1918 # interfere with the next link command; also delete a directory that is
1919 # left behind by Apple's compiler. We do this before executing the actions.
1920 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1921 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1922 as_fn_set_status $ac_retval
1923
1924 } # ac_fn_d_try_link
1925
1926 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1927 # -------------------------------------------------------
1928 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1929 # the include files in INCLUDES and setting the cache variable VAR
1930 # accordingly.
1931 ac_fn_c_check_header_mongrel ()
1932 {
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 if eval \${$3+:} false; then :
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1936 $as_echo_n "checking for $2... " >&6; }
1937 if eval \${$3+:} false; then :
1938 $as_echo_n "(cached) " >&6
1939 fi
1940 eval ac_res=\$$3
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1942 $as_echo "$ac_res" >&6; }
1943 else
1944 # Is the header compilable?
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1946 $as_echo_n "checking $2 usability... " >&6; }
1947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1948 /* end confdefs.h. */
1949 $4
1950 #include <$2>
1951 _ACEOF
1952 if ac_fn_c_try_compile "$LINENO"; then :
1953 ac_header_compiler=yes
1954 else
1955 ac_header_compiler=no
1956 fi
1957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1959 $as_echo "$ac_header_compiler" >&6; }
1960
1961 # Is the header present?
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1963 $as_echo_n "checking $2 presence... " >&6; }
1964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965 /* end confdefs.h. */
1966 #include <$2>
1967 _ACEOF
1968 if ac_fn_c_try_cpp "$LINENO"; then :
1969 ac_header_preproc=yes
1970 else
1971 ac_header_preproc=no
1972 fi
1973 rm -f conftest.err conftest.i conftest.$ac_ext
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1975 $as_echo "$ac_header_preproc" >&6; }
1976
1977 # So? What about this header?
1978 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1979 yes:no: )
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1981 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1983 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1984 ;;
1985 no:yes:* )
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1987 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1989 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1991 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1993 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1995 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1996 ;;
1997 esac
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1999 $as_echo_n "checking for $2... " >&6; }
2000 if eval \${$3+:} false; then :
2001 $as_echo_n "(cached) " >&6
2002 else
2003 eval "$3=\$ac_header_compiler"
2004 fi
2005 eval ac_res=\$$3
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2007 $as_echo "$ac_res" >&6; }
2008 fi
2009 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2010
2011 } # ac_fn_c_check_header_mongrel
2012 cat >config.log <<_ACEOF
2013 This file contains any messages produced by compilers while
2014 running configure, to aid debugging if configure makes a mistake.
2015
2016 It was created by package-unused $as_me version-unused, which was
2017 generated by GNU Autoconf 2.69. Invocation command line was
2018
2019 $ $0 $@
2020
2021 _ACEOF
2022 exec 5>>config.log
2023 {
2024 cat <<_ASUNAME
2025 ## --------- ##
2026 ## Platform. ##
2027 ## --------- ##
2028
2029 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2030 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2031 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2032 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2033 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2034
2035 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2036 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2037
2038 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2039 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2040 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2041 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2042 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2043 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2044 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2045
2046 _ASUNAME
2047
2048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2049 for as_dir in $PATH
2050 do
2051 IFS=$as_save_IFS
2052 test -z "$as_dir" && as_dir=.
2053 $as_echo "PATH: $as_dir"
2054 done
2055 IFS=$as_save_IFS
2056
2057 } >&5
2058
2059 cat >&5 <<_ACEOF
2060
2061
2062 ## ----------- ##
2063 ## Core tests. ##
2064 ## ----------- ##
2065
2066 _ACEOF
2067
2068
2069 # Keep a trace of the command line.
2070 # Strip out --no-create and --no-recursion so they do not pile up.
2071 # Strip out --silent because we don't want to record it for future runs.
2072 # Also quote any args containing shell meta-characters.
2073 # Make two passes to allow for proper duplicate-argument suppression.
2074 ac_configure_args=
2075 ac_configure_args0=
2076 ac_configure_args1=
2077 ac_must_keep_next=false
2078 for ac_pass in 1 2
2079 do
2080 for ac_arg
2081 do
2082 case $ac_arg in
2083 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2085 | -silent | --silent | --silen | --sile | --sil)
2086 continue ;;
2087 *\'*)
2088 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2089 esac
2090 case $ac_pass in
2091 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2092 2)
2093 as_fn_append ac_configure_args1 " '$ac_arg'"
2094 if test $ac_must_keep_next = true; then
2095 ac_must_keep_next=false # Got value, back to normal.
2096 else
2097 case $ac_arg in
2098 *=* | --config-cache | -C | -disable-* | --disable-* \
2099 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2100 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2101 | -with-* | --with-* | -without-* | --without-* | --x)
2102 case "$ac_configure_args0 " in
2103 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2104 esac
2105 ;;
2106 -* ) ac_must_keep_next=true ;;
2107 esac
2108 fi
2109 as_fn_append ac_configure_args " '$ac_arg'"
2110 ;;
2111 esac
2112 done
2113 done
2114 { ac_configure_args0=; unset ac_configure_args0;}
2115 { ac_configure_args1=; unset ac_configure_args1;}
2116
2117 # When interrupted or exit'd, cleanup temporary files, and complete
2118 # config.log. We remove comments because anyway the quotes in there
2119 # would cause problems or look ugly.
2120 # WARNING: Use '\'' to represent an apostrophe within the trap.
2121 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2122 trap 'exit_status=$?
2123 # Save into config.log some information that might help in debugging.
2124 {
2125 echo
2126
2127 $as_echo "## ---------------- ##
2128 ## Cache variables. ##
2129 ## ---------------- ##"
2130 echo
2131 # The following way of writing the cache mishandles newlines in values,
2132 (
2133 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2134 eval ac_val=\$$ac_var
2135 case $ac_val in #(
2136 *${as_nl}*)
2137 case $ac_var in #(
2138 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2139 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2140 esac
2141 case $ac_var in #(
2142 _ | IFS | as_nl) ;; #(
2143 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2144 *) { eval $ac_var=; unset $ac_var;} ;;
2145 esac ;;
2146 esac
2147 done
2148 (set) 2>&1 |
2149 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2150 *${as_nl}ac_space=\ *)
2151 sed -n \
2152 "s/'\''/'\''\\\\'\'''\''/g;
2153 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2154 ;; #(
2155 *)
2156 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2157 ;;
2158 esac |
2159 sort
2160 )
2161 echo
2162
2163 $as_echo "## ----------------- ##
2164 ## Output variables. ##
2165 ## ----------------- ##"
2166 echo
2167 for ac_var in $ac_subst_vars
2168 do
2169 eval ac_val=\$$ac_var
2170 case $ac_val in
2171 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2172 esac
2173 $as_echo "$ac_var='\''$ac_val'\''"
2174 done | sort
2175 echo
2176
2177 if test -n "$ac_subst_files"; then
2178 $as_echo "## ------------------- ##
2179 ## File substitutions. ##
2180 ## ------------------- ##"
2181 echo
2182 for ac_var in $ac_subst_files
2183 do
2184 eval ac_val=\$$ac_var
2185 case $ac_val in
2186 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2187 esac
2188 $as_echo "$ac_var='\''$ac_val'\''"
2189 done | sort
2190 echo
2191 fi
2192
2193 if test -s confdefs.h; then
2194 $as_echo "## ----------- ##
2195 ## confdefs.h. ##
2196 ## ----------- ##"
2197 echo
2198 cat confdefs.h
2199 echo
2200 fi
2201 test "$ac_signal" != 0 &&
2202 $as_echo "$as_me: caught signal $ac_signal"
2203 $as_echo "$as_me: exit $exit_status"
2204 } >&5
2205 rm -f core *.core core.conftest.* &&
2206 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2207 exit $exit_status
2208 ' 0
2209 for ac_signal in 1 2 13 15; do
2210 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2211 done
2212 ac_signal=0
2213
2214 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2215 rm -f -r conftest* confdefs.h
2216
2217 $as_echo "/* confdefs.h */" > confdefs.h
2218
2219 # Predefined preprocessor variables.
2220
2221 cat >>confdefs.h <<_ACEOF
2222 #define PACKAGE_NAME "$PACKAGE_NAME"
2223 _ACEOF
2224
2225 cat >>confdefs.h <<_ACEOF
2226 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2227 _ACEOF
2228
2229 cat >>confdefs.h <<_ACEOF
2230 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2231 _ACEOF
2232
2233 cat >>confdefs.h <<_ACEOF
2234 #define PACKAGE_STRING "$PACKAGE_STRING"
2235 _ACEOF
2236
2237 cat >>confdefs.h <<_ACEOF
2238 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2239 _ACEOF
2240
2241 cat >>confdefs.h <<_ACEOF
2242 #define PACKAGE_URL "$PACKAGE_URL"
2243 _ACEOF
2244
2245
2246 # Let the site file select an alternate cache file if it wants to.
2247 # Prefer an explicitly selected file to automatically selected ones.
2248 ac_site_file1=NONE
2249 ac_site_file2=NONE
2250 if test -n "$CONFIG_SITE"; then
2251 # We do not want a PATH search for config.site.
2252 case $CONFIG_SITE in #((
2253 -*) ac_site_file1=./$CONFIG_SITE;;
2254 */*) ac_site_file1=$CONFIG_SITE;;
2255 *) ac_site_file1=./$CONFIG_SITE;;
2256 esac
2257 elif test "x$prefix" != xNONE; then
2258 ac_site_file1=$prefix/share/config.site
2259 ac_site_file2=$prefix/etc/config.site
2260 else
2261 ac_site_file1=$ac_default_prefix/share/config.site
2262 ac_site_file2=$ac_default_prefix/etc/config.site
2263 fi
2264 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2265 do
2266 test "x$ac_site_file" = xNONE && continue
2267 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2269 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2270 sed 's/^/| /' "$ac_site_file" >&5
2271 . "$ac_site_file" \
2272 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2273 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2274 as_fn_error $? "failed to load site script $ac_site_file
2275 See \`config.log' for more details" "$LINENO" 5; }
2276 fi
2277 done
2278
2279 if test -r "$cache_file"; then
2280 # Some versions of bash will fail to source /dev/null (special files
2281 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2282 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2284 $as_echo "$as_me: loading cache $cache_file" >&6;}
2285 case $cache_file in
2286 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2287 *) . "./$cache_file";;
2288 esac
2289 fi
2290 else
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2292 $as_echo "$as_me: creating cache $cache_file" >&6;}
2293 >$cache_file
2294 fi
2295
2296 # Check that the precious variables saved in the cache have kept the same
2297 # value.
2298 ac_cache_corrupted=false
2299 for ac_var in $ac_precious_vars; do
2300 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2301 eval ac_new_set=\$ac_env_${ac_var}_set
2302 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2303 eval ac_new_val=\$ac_env_${ac_var}_value
2304 case $ac_old_set,$ac_new_set in
2305 set,)
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2307 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2308 ac_cache_corrupted=: ;;
2309 ,set)
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2311 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2312 ac_cache_corrupted=: ;;
2313 ,);;
2314 *)
2315 if test "x$ac_old_val" != "x$ac_new_val"; then
2316 # differences in whitespace do not lead to failure.
2317 ac_old_val_w=`echo x $ac_old_val`
2318 ac_new_val_w=`echo x $ac_new_val`
2319 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2321 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2322 ac_cache_corrupted=:
2323 else
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2325 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2326 eval $ac_var=\$ac_old_val
2327 fi
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2329 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2331 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2332 fi;;
2333 esac
2334 # Pass precious variables to config.status.
2335 if test "$ac_new_set" = set; then
2336 case $ac_new_val in
2337 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2338 *) ac_arg=$ac_var=$ac_new_val ;;
2339 esac
2340 case " $ac_configure_args " in
2341 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2342 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2343 esac
2344 fi
2345 done
2346 if $ac_cache_corrupted; then
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2348 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2350 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2351 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2352 fi
2353 ## -------------------- ##
2354 ## Main body of script. ##
2355 ## -------------------- ##
2356
2357 ac_ext=c
2358 ac_cpp='$CPP $CPPFLAGS'
2359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2362
2363
2364
2365
2366
2367
2368 ac_config_headers="$ac_config_headers config.h"
2369
2370
2371 # Default to --enable-multilib
2372 # Check whether --enable-multilib was given.
2373 if test "${enable_multilib+set}" = set; then :
2374 enableval=$enable_multilib; case "$enableval" in
2375 yes) multilib=yes ;;
2376 no) multilib=no ;;
2377 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2378 esac
2379 else
2380 multilib=yes
2381 fi
2382
2383
2384 # We may get other options which we leave undocumented:
2385 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2386 # See config-ml.in if you want the gory details.
2387
2388 if test "$srcdir" = "."; then
2389 if test "$with_target_subdir" != "."; then
2390 multi_basedir="$srcdir/$with_multisrctop../.."
2391 else
2392 multi_basedir="$srcdir/$with_multisrctop.."
2393 fi
2394 else
2395 multi_basedir="$srcdir/.."
2396 fi
2397
2398
2399 # Even if the default multilib is not a cross compilation,
2400 # it may be that some of the other multilibs are.
2401 if test $cross_compiling = no && test $multilib = yes \
2402 && test "x${with_multisubdir}" != x ; then
2403 cross_compiling=maybe
2404 fi
2405
2406 ac_config_commands="$ac_config_commands default-1"
2407
2408 ac_aux_dir=
2409 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2410 if test -f "$ac_dir/install-sh"; then
2411 ac_aux_dir=$ac_dir
2412 ac_install_sh="$ac_aux_dir/install-sh -c"
2413 break
2414 elif test -f "$ac_dir/install.sh"; then
2415 ac_aux_dir=$ac_dir
2416 ac_install_sh="$ac_aux_dir/install.sh -c"
2417 break
2418 elif test -f "$ac_dir/shtool"; then
2419 ac_aux_dir=$ac_dir
2420 ac_install_sh="$ac_aux_dir/shtool install -c"
2421 break
2422 fi
2423 done
2424 if test -z "$ac_aux_dir"; then
2425 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2426 fi
2427
2428 # These three variables are undocumented and unsupported,
2429 # and are intended to be withdrawn in a future Autoconf release.
2430 # They can cause serious problems if a builder's source tree is in a directory
2431 # whose full name contains unusual characters.
2432 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2433 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2434 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2435
2436
2437 # Make sure we can run config.sub.
2438 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2439 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2440
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2442 $as_echo_n "checking build system type... " >&6; }
2443 if ${ac_cv_build+:} false; then :
2444 $as_echo_n "(cached) " >&6
2445 else
2446 ac_build_alias=$build_alias
2447 test "x$ac_build_alias" = x &&
2448 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2449 test "x$ac_build_alias" = x &&
2450 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2451 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2452 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2453
2454 fi
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2456 $as_echo "$ac_cv_build" >&6; }
2457 case $ac_cv_build in
2458 *-*-*) ;;
2459 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2460 esac
2461 build=$ac_cv_build
2462 ac_save_IFS=$IFS; IFS='-'
2463 set x $ac_cv_build
2464 shift
2465 build_cpu=$1
2466 build_vendor=$2
2467 shift; shift
2468 # Remember, the first character of IFS is used to create $*,
2469 # except with old shells:
2470 build_os=$*
2471 IFS=$ac_save_IFS
2472 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2473
2474
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2476 $as_echo_n "checking host system type... " >&6; }
2477 if ${ac_cv_host+:} false; then :
2478 $as_echo_n "(cached) " >&6
2479 else
2480 if test "x$host_alias" = x; then
2481 ac_cv_host=$ac_cv_build
2482 else
2483 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2484 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2485 fi
2486
2487 fi
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2489 $as_echo "$ac_cv_host" >&6; }
2490 case $ac_cv_host in
2491 *-*-*) ;;
2492 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2493 esac
2494 host=$ac_cv_host
2495 ac_save_IFS=$IFS; IFS='-'
2496 set x $ac_cv_host
2497 shift
2498 host_cpu=$1
2499 host_vendor=$2
2500 shift; shift
2501 # Remember, the first character of IFS is used to create $*,
2502 # except with old shells:
2503 host_os=$*
2504 IFS=$ac_save_IFS
2505 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2506
2507
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2509 $as_echo_n "checking target system type... " >&6; }
2510 if ${ac_cv_target+:} false; then :
2511 $as_echo_n "(cached) " >&6
2512 else
2513 if test "x$target_alias" = x; then
2514 ac_cv_target=$ac_cv_host
2515 else
2516 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2517 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2518 fi
2519
2520 fi
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2522 $as_echo "$ac_cv_target" >&6; }
2523 case $ac_cv_target in
2524 *-*-*) ;;
2525 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2526 esac
2527 target=$ac_cv_target
2528 ac_save_IFS=$IFS; IFS='-'
2529 set x $ac_cv_target
2530 shift
2531 target_cpu=$1
2532 target_vendor=$2
2533 shift; shift
2534 # Remember, the first character of IFS is used to create $*,
2535 # except with old shells:
2536 target_os=$*
2537 IFS=$ac_save_IFS
2538 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2539
2540
2541 # The aliases save the names the user supplied, while $host etc.
2542 # will get canonicalized.
2543 test -n "$target_alias" &&
2544 test "$program_prefix$program_suffix$program_transform_name" = \
2545 NONENONEs,x,x, &&
2546 program_prefix=${target_alias}-
2547
2548
2549 target_alias=${target_alias-$target}
2550
2551
2552 # 1.11.1: Require that version of automake.
2553 # foreign: Don't require README, INSTALL, NEWS, etc.
2554 # no-define: Don't define PACKAGE and VERSION.
2555 # no-dependencies: Don't generate automatic dependencies.
2556 # (because it breaks when using bootstrap-lean, since some of the
2557 # headers are gone at "make install" time).
2558 # subdir-objects: Build objects in sub-directories.
2559 # -Wall: Issue all automake warnings.
2560 # -Wno-portability: Don't warn about constructs supported by GNU make.
2561 # (because GCC requires GNU make anyhow).
2562 # -Wno-override: Overrides used in testsuite.
2563 am__api_version='1.15'
2564
2565 # Find a good install program. We prefer a C program (faster),
2566 # so one script is as good as another. But avoid the broken or
2567 # incompatible versions:
2568 # SysV /etc/install, /usr/sbin/install
2569 # SunOS /usr/etc/install
2570 # IRIX /sbin/install
2571 # AIX /bin/install
2572 # AmigaOS /C/install, which installs bootblocks on floppy discs
2573 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2574 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2575 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2576 # OS/2's system install, which has a completely different semantic
2577 # ./install, which can be erroneously created by make from ./install.sh.
2578 # Reject install programs that cannot install multiple files.
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2580 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2581 if test -z "$INSTALL"; then
2582 if ${ac_cv_path_install+:} false; then :
2583 $as_echo_n "(cached) " >&6
2584 else
2585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2586 for as_dir in $PATH
2587 do
2588 IFS=$as_save_IFS
2589 test -z "$as_dir" && as_dir=.
2590 # Account for people who put trailing slashes in PATH elements.
2591 case $as_dir/ in #((
2592 ./ | .// | /[cC]/* | \
2593 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2594 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2595 /usr/ucb/* ) ;;
2596 *)
2597 # OSF1 and SCO ODT 3.0 have their own names for install.
2598 # Don't use installbsd from OSF since it installs stuff as root
2599 # by default.
2600 for ac_prog in ginstall scoinst install; do
2601 for ac_exec_ext in '' $ac_executable_extensions; do
2602 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2603 if test $ac_prog = install &&
2604 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2605 # AIX install. It has an incompatible calling convention.
2606 :
2607 elif test $ac_prog = install &&
2608 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2609 # program-specific install script used by HP pwplus--don't use.
2610 :
2611 else
2612 rm -rf conftest.one conftest.two conftest.dir
2613 echo one > conftest.one
2614 echo two > conftest.two
2615 mkdir conftest.dir
2616 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2617 test -s conftest.one && test -s conftest.two &&
2618 test -s conftest.dir/conftest.one &&
2619 test -s conftest.dir/conftest.two
2620 then
2621 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2622 break 3
2623 fi
2624 fi
2625 fi
2626 done
2627 done
2628 ;;
2629 esac
2630
2631 done
2632 IFS=$as_save_IFS
2633
2634 rm -rf conftest.one conftest.two conftest.dir
2635
2636 fi
2637 if test "${ac_cv_path_install+set}" = set; then
2638 INSTALL=$ac_cv_path_install
2639 else
2640 # As a last resort, use the slow shell script. Don't cache a
2641 # value for INSTALL within a source directory, because that will
2642 # break other packages using the cache if that directory is
2643 # removed, or if the value is a relative name.
2644 INSTALL=$ac_install_sh
2645 fi
2646 fi
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2648 $as_echo "$INSTALL" >&6; }
2649
2650 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2651 # It thinks the first close brace ends the variable substitution.
2652 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2653
2654 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2655
2656 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2657
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2659 $as_echo_n "checking whether build environment is sane... " >&6; }
2660 # Reject unsafe characters in $srcdir or the absolute working directory
2661 # name. Accept space and tab only in the latter.
2662 am_lf='
2663 '
2664 case `pwd` in
2665 *[\\\"\#\$\&\'\`$am_lf]*)
2666 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2667 esac
2668 case $srcdir in
2669 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2670 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2671 esac
2672
2673 # Do 'set' in a subshell so we don't clobber the current shell's
2674 # arguments. Must try -L first in case configure is actually a
2675 # symlink; some systems play weird games with the mod time of symlinks
2676 # (eg FreeBSD returns the mod time of the symlink's containing
2677 # directory).
2678 if (
2679 am_has_slept=no
2680 for am_try in 1 2; do
2681 echo "timestamp, slept: $am_has_slept" > conftest.file
2682 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2683 if test "$*" = "X"; then
2684 # -L didn't work.
2685 set X `ls -t "$srcdir/configure" conftest.file`
2686 fi
2687 if test "$*" != "X $srcdir/configure conftest.file" \
2688 && test "$*" != "X conftest.file $srcdir/configure"; then
2689
2690 # If neither matched, then we have a broken ls. This can happen
2691 # if, for instance, CONFIG_SHELL is bash and it inherits a
2692 # broken ls alias from the environment. This has actually
2693 # happened. Such a system could not be considered "sane".
2694 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2695 alias in your environment" "$LINENO" 5
2696 fi
2697 if test "$2" = conftest.file || test $am_try -eq 2; then
2698 break
2699 fi
2700 # Just in case.
2701 sleep 1
2702 am_has_slept=yes
2703 done
2704 test "$2" = conftest.file
2705 )
2706 then
2707 # Ok.
2708 :
2709 else
2710 as_fn_error $? "newly created file is older than distributed files!
2711 Check your system clock" "$LINENO" 5
2712 fi
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2714 $as_echo "yes" >&6; }
2715 # If we didn't sleep, we still need to ensure time stamps of config.status and
2716 # generated files are strictly newer.
2717 am_sleep_pid=
2718 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2719 ( sleep 1 ) &
2720 am_sleep_pid=$!
2721 fi
2722
2723 rm -f conftest.file
2724
2725 test "$program_prefix" != NONE &&
2726 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2727 # Use a double $ so make ignores it.
2728 test "$program_suffix" != NONE &&
2729 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2730 # Double any \ or $.
2731 # By default was `s,x,x', remove it if useless.
2732 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2733 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2734
2735 # Expand $ac_aux_dir to an absolute path.
2736 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2737
2738 if test x"${MISSING+set}" != xset; then
2739 case $am_aux_dir in
2740 *\ * | *\ *)
2741 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2742 *)
2743 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2744 esac
2745 fi
2746 # Use eval to expand $SHELL
2747 if eval "$MISSING --is-lightweight"; then
2748 am_missing_run="$MISSING "
2749 else
2750 am_missing_run=
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2752 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2753 fi
2754
2755 if test x"${install_sh+set}" != xset; then
2756 case $am_aux_dir in
2757 *\ * | *\ *)
2758 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2759 *)
2760 install_sh="\${SHELL} $am_aux_dir/install-sh"
2761 esac
2762 fi
2763
2764 # Installed binaries are usually stripped using 'strip' when the user
2765 # run "make install-strip". However 'strip' might not be the right
2766 # tool to use in cross-compilation environments, therefore Automake
2767 # will honor the 'STRIP' environment variable to overrule this program.
2768 if test "$cross_compiling" != no; then
2769 if test -n "$ac_tool_prefix"; then
2770 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2771 set dummy ${ac_tool_prefix}strip; ac_word=$2
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2773 $as_echo_n "checking for $ac_word... " >&6; }
2774 if ${ac_cv_prog_STRIP+:} false; then :
2775 $as_echo_n "(cached) " >&6
2776 else
2777 if test -n "$STRIP"; then
2778 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2779 else
2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781 for as_dir in $PATH
2782 do
2783 IFS=$as_save_IFS
2784 test -z "$as_dir" && as_dir=.
2785 for ac_exec_ext in '' $ac_executable_extensions; do
2786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2787 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2789 break 2
2790 fi
2791 done
2792 done
2793 IFS=$as_save_IFS
2794
2795 fi
2796 fi
2797 STRIP=$ac_cv_prog_STRIP
2798 if test -n "$STRIP"; then
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2800 $as_echo "$STRIP" >&6; }
2801 else
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2803 $as_echo "no" >&6; }
2804 fi
2805
2806
2807 fi
2808 if test -z "$ac_cv_prog_STRIP"; then
2809 ac_ct_STRIP=$STRIP
2810 # Extract the first word of "strip", so it can be a program name with args.
2811 set dummy strip; ac_word=$2
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2813 $as_echo_n "checking for $ac_word... " >&6; }
2814 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2815 $as_echo_n "(cached) " >&6
2816 else
2817 if test -n "$ac_ct_STRIP"; then
2818 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2819 else
2820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2821 for as_dir in $PATH
2822 do
2823 IFS=$as_save_IFS
2824 test -z "$as_dir" && as_dir=.
2825 for ac_exec_ext in '' $ac_executable_extensions; do
2826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2827 ac_cv_prog_ac_ct_STRIP="strip"
2828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2829 break 2
2830 fi
2831 done
2832 done
2833 IFS=$as_save_IFS
2834
2835 fi
2836 fi
2837 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2838 if test -n "$ac_ct_STRIP"; then
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2840 $as_echo "$ac_ct_STRIP" >&6; }
2841 else
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2843 $as_echo "no" >&6; }
2844 fi
2845
2846 if test "x$ac_ct_STRIP" = x; then
2847 STRIP=":"
2848 else
2849 case $cross_compiling:$ac_tool_warned in
2850 yes:)
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2852 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2853 ac_tool_warned=yes ;;
2854 esac
2855 STRIP=$ac_ct_STRIP
2856 fi
2857 else
2858 STRIP="$ac_cv_prog_STRIP"
2859 fi
2860
2861 fi
2862 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2863
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2865 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2866 if test -z "$MKDIR_P"; then
2867 if ${ac_cv_path_mkdir+:} false; then :
2868 $as_echo_n "(cached) " >&6
2869 else
2870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2872 do
2873 IFS=$as_save_IFS
2874 test -z "$as_dir" && as_dir=.
2875 for ac_prog in mkdir gmkdir; do
2876 for ac_exec_ext in '' $ac_executable_extensions; do
2877 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2878 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2879 'mkdir (GNU coreutils) '* | \
2880 'mkdir (coreutils) '* | \
2881 'mkdir (fileutils) '4.1*)
2882 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2883 break 3;;
2884 esac
2885 done
2886 done
2887 done
2888 IFS=$as_save_IFS
2889
2890 fi
2891
2892 test -d ./--version && rmdir ./--version
2893 if test "${ac_cv_path_mkdir+set}" = set; then
2894 MKDIR_P="$ac_cv_path_mkdir -p"
2895 else
2896 # As a last resort, use the slow shell script. Don't cache a
2897 # value for MKDIR_P within a source directory, because that will
2898 # break other packages using the cache if that directory is
2899 # removed, or if the value is a relative name.
2900 MKDIR_P="$ac_install_sh -d"
2901 fi
2902 fi
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2904 $as_echo "$MKDIR_P" >&6; }
2905
2906 for ac_prog in gawk mawk nawk awk
2907 do
2908 # Extract the first word of "$ac_prog", so it can be a program name with args.
2909 set dummy $ac_prog; ac_word=$2
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2911 $as_echo_n "checking for $ac_word... " >&6; }
2912 if ${ac_cv_prog_AWK+:} false; then :
2913 $as_echo_n "(cached) " >&6
2914 else
2915 if test -n "$AWK"; then
2916 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2917 else
2918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919 for as_dir in $PATH
2920 do
2921 IFS=$as_save_IFS
2922 test -z "$as_dir" && as_dir=.
2923 for ac_exec_ext in '' $ac_executable_extensions; do
2924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2925 ac_cv_prog_AWK="$ac_prog"
2926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2927 break 2
2928 fi
2929 done
2930 done
2931 IFS=$as_save_IFS
2932
2933 fi
2934 fi
2935 AWK=$ac_cv_prog_AWK
2936 if test -n "$AWK"; then
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2938 $as_echo "$AWK" >&6; }
2939 else
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941 $as_echo "no" >&6; }
2942 fi
2943
2944
2945 test -n "$AWK" && break
2946 done
2947
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2949 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2950 set x ${MAKE-make}
2951 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2952 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2953 $as_echo_n "(cached) " >&6
2954 else
2955 cat >conftest.make <<\_ACEOF
2956 SHELL = /bin/sh
2957 all:
2958 @echo '@@@%%%=$(MAKE)=@@@%%%'
2959 _ACEOF
2960 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2961 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2962 *@@@%%%=?*=@@@%%%*)
2963 eval ac_cv_prog_make_${ac_make}_set=yes;;
2964 *)
2965 eval ac_cv_prog_make_${ac_make}_set=no;;
2966 esac
2967 rm -f conftest.make
2968 fi
2969 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2971 $as_echo "yes" >&6; }
2972 SET_MAKE=
2973 else
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2975 $as_echo "no" >&6; }
2976 SET_MAKE="MAKE=${MAKE-make}"
2977 fi
2978
2979 rm -rf .tst 2>/dev/null
2980 mkdir .tst 2>/dev/null
2981 if test -d .tst; then
2982 am__leading_dot=.
2983 else
2984 am__leading_dot=_
2985 fi
2986 rmdir .tst 2>/dev/null
2987
2988 # Check whether --enable-silent-rules was given.
2989 if test "${enable_silent_rules+set}" = set; then :
2990 enableval=$enable_silent_rules;
2991 fi
2992
2993 case $enable_silent_rules in # (((
2994 yes) AM_DEFAULT_VERBOSITY=0;;
2995 no) AM_DEFAULT_VERBOSITY=1;;
2996 *) AM_DEFAULT_VERBOSITY=1;;
2997 esac
2998 am_make=${MAKE-make}
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3000 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3001 if ${am_cv_make_support_nested_variables+:} false; then :
3002 $as_echo_n "(cached) " >&6
3003 else
3004 if $as_echo 'TRUE=$(BAR$(V))
3005 BAR0=false
3006 BAR1=true
3007 V=1
3008 am__doit:
3009 @$(TRUE)
3010 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3011 am_cv_make_support_nested_variables=yes
3012 else
3013 am_cv_make_support_nested_variables=no
3014 fi
3015 fi
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3017 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3018 if test $am_cv_make_support_nested_variables = yes; then
3019 AM_V='$(V)'
3020 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3021 else
3022 AM_V=$AM_DEFAULT_VERBOSITY
3023 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3024 fi
3025 AM_BACKSLASH='\'
3026
3027 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3028 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3029 # is not polluted with repeated "-I."
3030 am__isrc=' -I$(srcdir)'
3031 # test to see if srcdir already configured
3032 if test -f $srcdir/config.status; then
3033 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3034 fi
3035 fi
3036
3037 # test whether we have cygpath
3038 if test -z "$CYGPATH_W"; then
3039 if (cygpath --version) >/dev/null 2>/dev/null; then
3040 CYGPATH_W='cygpath -w'
3041 else
3042 CYGPATH_W=echo
3043 fi
3044 fi
3045
3046
3047 # Define the identity of the package.
3048 PACKAGE='libphobos'
3049 VERSION='version-unused'
3050
3051
3052 # Some tools Automake needs.
3053
3054 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3055
3056
3057 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3058
3059
3060 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3061
3062
3063 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3064
3065
3066 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3067
3068 # For better backward compatibility. To be removed once Automake 1.9.x
3069 # dies out for good. For more background, see:
3070 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3071 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3072 mkdir_p='$(MKDIR_P)'
3073
3074 # We need awk for the "check" target (and possibly the TAP driver). The
3075 # system "awk" is bad on some platforms.
3076 # Always define AMTAR for backward compatibility. Yes, it's still used
3077 # in the wild :-( We should find a proper way to deprecate it ...
3078 AMTAR='$${TAR-tar}'
3079
3080
3081 # We'll loop over all known methods to create a tar archive until one works.
3082 _am_tools='gnutar pax cpio none'
3083
3084 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3085
3086
3087
3088
3089
3090
3091 # POSIX will say in a future version that running "rm -f" with no argument
3092 # is OK; and we want to be able to make that assumption in our Makefile
3093 # recipes. So use an aggressive probe to check that the usage we want is
3094 # actually supported "in the wild" to an acceptable degree.
3095 # See automake bug#10828.
3096 # To make any issue more visible, cause the running configure to be aborted
3097 # by default if the 'rm' program in use doesn't match our expectations; the
3098 # user can still override this though.
3099 if rm -f && rm -fr && rm -rf; then : OK; else
3100 cat >&2 <<'END'
3101 Oops!
3102
3103 Your 'rm' program seems unable to run without file operands specified
3104 on the command line, even when the '-f' option is present. This is contrary
3105 to the behaviour of most rm programs out there, and not conforming with
3106 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3107
3108 Please tell bug-automake@gnu.org about your system, including the value
3109 of your $PATH and any error possibly output before this message. This
3110 can help us improve future automake versions.
3111
3112 END
3113 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3114 echo 'Configuration will proceed anyway, since you have set the' >&2
3115 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3116 echo >&2
3117 else
3118 cat >&2 <<'END'
3119 Aborting the configuration process, to ensure you take notice of the issue.
3120
3121 You can download and install GNU coreutils to get an 'rm' implementation
3122 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3123
3124 If you want to complete the configuration process using your problematic
3125 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3126 to "yes", and re-run configure.
3127
3128 END
3129 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3130 fi
3131 fi
3132
3133
3134
3135
3136 ac_ext=c
3137 ac_cpp='$CPP $CPPFLAGS'
3138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3141 if test -n "$ac_tool_prefix"; then
3142 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3143 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3145 $as_echo_n "checking for $ac_word... " >&6; }
3146 if ${ac_cv_prog_CC+:} false; then :
3147 $as_echo_n "(cached) " >&6
3148 else
3149 if test -n "$CC"; then
3150 ac_cv_prog_CC="$CC" # Let the user override the test.
3151 else
3152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3153 for as_dir in $PATH
3154 do
3155 IFS=$as_save_IFS
3156 test -z "$as_dir" && as_dir=.
3157 for ac_exec_ext in '' $ac_executable_extensions; do
3158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3159 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3161 break 2
3162 fi
3163 done
3164 done
3165 IFS=$as_save_IFS
3166
3167 fi
3168 fi
3169 CC=$ac_cv_prog_CC
3170 if test -n "$CC"; then
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3172 $as_echo "$CC" >&6; }
3173 else
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3175 $as_echo "no" >&6; }
3176 fi
3177
3178
3179 fi
3180 if test -z "$ac_cv_prog_CC"; then
3181 ac_ct_CC=$CC
3182 # Extract the first word of "gcc", so it can be a program name with args.
3183 set dummy gcc; ac_word=$2
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3185 $as_echo_n "checking for $ac_word... " >&6; }
3186 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3187 $as_echo_n "(cached) " >&6
3188 else
3189 if test -n "$ac_ct_CC"; then
3190 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3191 else
3192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193 for as_dir in $PATH
3194 do
3195 IFS=$as_save_IFS
3196 test -z "$as_dir" && as_dir=.
3197 for ac_exec_ext in '' $ac_executable_extensions; do
3198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3199 ac_cv_prog_ac_ct_CC="gcc"
3200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3201 break 2
3202 fi
3203 done
3204 done
3205 IFS=$as_save_IFS
3206
3207 fi
3208 fi
3209 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3210 if test -n "$ac_ct_CC"; then
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3212 $as_echo "$ac_ct_CC" >&6; }
3213 else
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3215 $as_echo "no" >&6; }
3216 fi
3217
3218 if test "x$ac_ct_CC" = x; then
3219 CC=""
3220 else
3221 case $cross_compiling:$ac_tool_warned in
3222 yes:)
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3224 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3225 ac_tool_warned=yes ;;
3226 esac
3227 CC=$ac_ct_CC
3228 fi
3229 else
3230 CC="$ac_cv_prog_CC"
3231 fi
3232
3233 if test -z "$CC"; then
3234 if test -n "$ac_tool_prefix"; then
3235 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3236 set dummy ${ac_tool_prefix}cc; ac_word=$2
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3238 $as_echo_n "checking for $ac_word... " >&6; }
3239 if ${ac_cv_prog_CC+:} false; then :
3240 $as_echo_n "(cached) " >&6
3241 else
3242 if test -n "$CC"; then
3243 ac_cv_prog_CC="$CC" # Let the user override the test.
3244 else
3245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3246 for as_dir in $PATH
3247 do
3248 IFS=$as_save_IFS
3249 test -z "$as_dir" && as_dir=.
3250 for ac_exec_ext in '' $ac_executable_extensions; do
3251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3252 ac_cv_prog_CC="${ac_tool_prefix}cc"
3253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3254 break 2
3255 fi
3256 done
3257 done
3258 IFS=$as_save_IFS
3259
3260 fi
3261 fi
3262 CC=$ac_cv_prog_CC
3263 if test -n "$CC"; then
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3265 $as_echo "$CC" >&6; }
3266 else
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3268 $as_echo "no" >&6; }
3269 fi
3270
3271
3272 fi
3273 fi
3274 if test -z "$CC"; then
3275 # Extract the first word of "cc", so it can be a program name with args.
3276 set dummy cc; ac_word=$2
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3278 $as_echo_n "checking for $ac_word... " >&6; }
3279 if ${ac_cv_prog_CC+:} false; then :
3280 $as_echo_n "(cached) " >&6
3281 else
3282 if test -n "$CC"; then
3283 ac_cv_prog_CC="$CC" # Let the user override the test.
3284 else
3285 ac_prog_rejected=no
3286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3287 for as_dir in $PATH
3288 do
3289 IFS=$as_save_IFS
3290 test -z "$as_dir" && as_dir=.
3291 for ac_exec_ext in '' $ac_executable_extensions; do
3292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3293 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3294 ac_prog_rejected=yes
3295 continue
3296 fi
3297 ac_cv_prog_CC="cc"
3298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3299 break 2
3300 fi
3301 done
3302 done
3303 IFS=$as_save_IFS
3304
3305 if test $ac_prog_rejected = yes; then
3306 # We found a bogon in the path, so make sure we never use it.
3307 set dummy $ac_cv_prog_CC
3308 shift
3309 if test $# != 0; then
3310 # We chose a different compiler from the bogus one.
3311 # However, it has the same basename, so the bogon will be chosen
3312 # first if we set CC to just the basename; use the full file name.
3313 shift
3314 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3315 fi
3316 fi
3317 fi
3318 fi
3319 CC=$ac_cv_prog_CC
3320 if test -n "$CC"; then
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3322 $as_echo "$CC" >&6; }
3323 else
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3325 $as_echo "no" >&6; }
3326 fi
3327
3328
3329 fi
3330 if test -z "$CC"; then
3331 if test -n "$ac_tool_prefix"; then
3332 for ac_prog in cl.exe
3333 do
3334 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3335 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3337 $as_echo_n "checking for $ac_word... " >&6; }
3338 if ${ac_cv_prog_CC+:} false; then :
3339 $as_echo_n "(cached) " >&6
3340 else
3341 if test -n "$CC"; then
3342 ac_cv_prog_CC="$CC" # Let the user override the test.
3343 else
3344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3345 for as_dir in $PATH
3346 do
3347 IFS=$as_save_IFS
3348 test -z "$as_dir" && as_dir=.
3349 for ac_exec_ext in '' $ac_executable_extensions; do
3350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3351 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3353 break 2
3354 fi
3355 done
3356 done
3357 IFS=$as_save_IFS
3358
3359 fi
3360 fi
3361 CC=$ac_cv_prog_CC
3362 if test -n "$CC"; then
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3364 $as_echo "$CC" >&6; }
3365 else
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3367 $as_echo "no" >&6; }
3368 fi
3369
3370
3371 test -n "$CC" && break
3372 done
3373 fi
3374 if test -z "$CC"; then
3375 ac_ct_CC=$CC
3376 for ac_prog in cl.exe
3377 do
3378 # Extract the first word of "$ac_prog", so it can be a program name with args.
3379 set dummy $ac_prog; ac_word=$2
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3381 $as_echo_n "checking for $ac_word... " >&6; }
3382 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3383 $as_echo_n "(cached) " >&6
3384 else
3385 if test -n "$ac_ct_CC"; then
3386 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3387 else
3388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3389 for as_dir in $PATH
3390 do
3391 IFS=$as_save_IFS
3392 test -z "$as_dir" && as_dir=.
3393 for ac_exec_ext in '' $ac_executable_extensions; do
3394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3395 ac_cv_prog_ac_ct_CC="$ac_prog"
3396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3397 break 2
3398 fi
3399 done
3400 done
3401 IFS=$as_save_IFS
3402
3403 fi
3404 fi
3405 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3406 if test -n "$ac_ct_CC"; then
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3408 $as_echo "$ac_ct_CC" >&6; }
3409 else
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3411 $as_echo "no" >&6; }
3412 fi
3413
3414
3415 test -n "$ac_ct_CC" && break
3416 done
3417
3418 if test "x$ac_ct_CC" = x; then
3419 CC=""
3420 else
3421 case $cross_compiling:$ac_tool_warned in
3422 yes:)
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3425 ac_tool_warned=yes ;;
3426 esac
3427 CC=$ac_ct_CC
3428 fi
3429 fi
3430
3431 fi
3432
3433
3434 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3435 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3436 as_fn_error $? "no acceptable C compiler found in \$PATH
3437 See \`config.log' for more details" "$LINENO" 5; }
3438
3439 # Provide some information about the compiler.
3440 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3441 set X $ac_compile
3442 ac_compiler=$2
3443 for ac_option in --version -v -V -qversion; do
3444 { { ac_try="$ac_compiler $ac_option >&5"
3445 case "(($ac_try" in
3446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447 *) ac_try_echo=$ac_try;;
3448 esac
3449 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3450 $as_echo "$ac_try_echo"; } >&5
3451 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3452 ac_status=$?
3453 if test -s conftest.err; then
3454 sed '10a\
3455 ... rest of stderr output deleted ...
3456 10q' conftest.err >conftest.er1
3457 cat conftest.er1 >&5
3458 fi
3459 rm -f conftest.er1 conftest.err
3460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3461 test $ac_status = 0; }
3462 done
3463
3464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3465 /* end confdefs.h. */
3466
3467 int
3468 main ()
3469 {
3470
3471 ;
3472 return 0;
3473 }
3474 _ACEOF
3475 ac_clean_files_save=$ac_clean_files
3476 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3477 # Try to create an executable without -o first, disregard a.out.
3478 # It will help us diagnose broken compilers, and finding out an intuition
3479 # of exeext.
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3481 $as_echo_n "checking whether the C compiler works... " >&6; }
3482 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3483
3484 # The possible output files:
3485 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3486
3487 ac_rmfiles=
3488 for ac_file in $ac_files
3489 do
3490 case $ac_file in
3491 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3492 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3493 esac
3494 done
3495 rm -f $ac_rmfiles
3496
3497 if { { ac_try="$ac_link_default"
3498 case "(($ac_try" in
3499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3500 *) ac_try_echo=$ac_try;;
3501 esac
3502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3503 $as_echo "$ac_try_echo"; } >&5
3504 (eval "$ac_link_default") 2>&5
3505 ac_status=$?
3506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3507 test $ac_status = 0; }; then :
3508 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3509 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3510 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3511 # so that the user can short-circuit this test for compilers unknown to
3512 # Autoconf.
3513 for ac_file in $ac_files ''
3514 do
3515 test -f "$ac_file" || continue
3516 case $ac_file in
3517 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3518 ;;
3519 [ab].out )
3520 # We found the default executable, but exeext='' is most
3521 # certainly right.
3522 break;;
3523 *.* )
3524 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3525 then :; else
3526 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3527 fi
3528 # We set ac_cv_exeext here because the later test for it is not
3529 # safe: cross compilers may not add the suffix if given an `-o'
3530 # argument, so we may need to know it at that point already.
3531 # Even if this section looks crufty: it has the advantage of
3532 # actually working.
3533 break;;
3534 * )
3535 break;;
3536 esac
3537 done
3538 test "$ac_cv_exeext" = no && ac_cv_exeext=
3539
3540 else
3541 ac_file=''
3542 fi
3543 if test -z "$ac_file"; then :
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3545 $as_echo "no" >&6; }
3546 $as_echo "$as_me: failed program was:" >&5
3547 sed 's/^/| /' conftest.$ac_ext >&5
3548
3549 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3550 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3551 as_fn_error 77 "C compiler cannot create executables
3552 See \`config.log' for more details" "$LINENO" 5; }
3553 else
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3555 $as_echo "yes" >&6; }
3556 fi
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3558 $as_echo_n "checking for C compiler default output file name... " >&6; }
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3560 $as_echo "$ac_file" >&6; }
3561 ac_exeext=$ac_cv_exeext
3562
3563 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3564 ac_clean_files=$ac_clean_files_save
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3566 $as_echo_n "checking for suffix of executables... " >&6; }
3567 if { { ac_try="$ac_link"
3568 case "(($ac_try" in
3569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3570 *) ac_try_echo=$ac_try;;
3571 esac
3572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3573 $as_echo "$ac_try_echo"; } >&5
3574 (eval "$ac_link") 2>&5
3575 ac_status=$?
3576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3577 test $ac_status = 0; }; then :
3578 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3579 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3580 # work properly (i.e., refer to `conftest.exe'), while it won't with
3581 # `rm'.
3582 for ac_file in conftest.exe conftest conftest.*; do
3583 test -f "$ac_file" || continue
3584 case $ac_file in
3585 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3586 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3587 break;;
3588 * ) break;;
3589 esac
3590 done
3591 else
3592 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3594 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3595 See \`config.log' for more details" "$LINENO" 5; }
3596 fi
3597 rm -f conftest conftest$ac_cv_exeext
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3599 $as_echo "$ac_cv_exeext" >&6; }
3600
3601 rm -f conftest.$ac_ext
3602 EXEEXT=$ac_cv_exeext
3603 ac_exeext=$EXEEXT
3604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605 /* end confdefs.h. */
3606 #include <stdio.h>
3607 int
3608 main ()
3609 {
3610 FILE *f = fopen ("conftest.out", "w");
3611 return ferror (f) || fclose (f) != 0;
3612
3613 ;
3614 return 0;
3615 }
3616 _ACEOF
3617 ac_clean_files="$ac_clean_files conftest.out"
3618 # Check that the compiler produces executables we can run. If not, either
3619 # the compiler is broken, or we cross compile.
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3621 $as_echo_n "checking whether we are cross compiling... " >&6; }
3622 if test "$cross_compiling" != yes; then
3623 { { ac_try="$ac_link"
3624 case "(($ac_try" in
3625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3626 *) ac_try_echo=$ac_try;;
3627 esac
3628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3629 $as_echo "$ac_try_echo"; } >&5
3630 (eval "$ac_link") 2>&5
3631 ac_status=$?
3632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3633 test $ac_status = 0; }
3634 if { ac_try='./conftest$ac_cv_exeext'
3635 { { case "(($ac_try" in
3636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3637 *) ac_try_echo=$ac_try;;
3638 esac
3639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3640 $as_echo "$ac_try_echo"; } >&5
3641 (eval "$ac_try") 2>&5
3642 ac_status=$?
3643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3644 test $ac_status = 0; }; }; then
3645 cross_compiling=no
3646 else
3647 if test "$cross_compiling" = maybe; then
3648 cross_compiling=yes
3649 else
3650 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3651 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3652 as_fn_error $? "cannot run C compiled programs.
3653 If you meant to cross compile, use \`--host'.
3654 See \`config.log' for more details" "$LINENO" 5; }
3655 fi
3656 fi
3657 fi
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3659 $as_echo "$cross_compiling" >&6; }
3660
3661 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3662 ac_clean_files=$ac_clean_files_save
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3664 $as_echo_n "checking for suffix of object files... " >&6; }
3665 if ${ac_cv_objext+:} false; then :
3666 $as_echo_n "(cached) " >&6
3667 else
3668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3669 /* end confdefs.h. */
3670
3671 int
3672 main ()
3673 {
3674
3675 ;
3676 return 0;
3677 }
3678 _ACEOF
3679 rm -f conftest.o conftest.obj
3680 if { { ac_try="$ac_compile"
3681 case "(($ac_try" in
3682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3683 *) ac_try_echo=$ac_try;;
3684 esac
3685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3686 $as_echo "$ac_try_echo"; } >&5
3687 (eval "$ac_compile") 2>&5
3688 ac_status=$?
3689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3690 test $ac_status = 0; }; then :
3691 for ac_file in conftest.o conftest.obj conftest.*; do
3692 test -f "$ac_file" || continue;
3693 case $ac_file in
3694 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3695 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3696 break;;
3697 esac
3698 done
3699 else
3700 $as_echo "$as_me: failed program was:" >&5
3701 sed 's/^/| /' conftest.$ac_ext >&5
3702
3703 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3704 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3705 as_fn_error $? "cannot compute suffix of object files: cannot compile
3706 See \`config.log' for more details" "$LINENO" 5; }
3707 fi
3708 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3709 fi
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3711 $as_echo "$ac_cv_objext" >&6; }
3712 OBJEXT=$ac_cv_objext
3713 ac_objext=$OBJEXT
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3715 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3716 if ${ac_cv_c_compiler_gnu+:} false; then :
3717 $as_echo_n "(cached) " >&6
3718 else
3719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3720 /* end confdefs.h. */
3721
3722 int
3723 main ()
3724 {
3725 #ifndef __GNUC__
3726 choke me
3727 #endif
3728
3729 ;
3730 return 0;
3731 }
3732 _ACEOF
3733 if ac_fn_c_try_compile "$LINENO"; then :
3734 ac_compiler_gnu=yes
3735 else
3736 ac_compiler_gnu=no
3737 fi
3738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3739 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3740
3741 fi
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3743 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3744 if test $ac_compiler_gnu = yes; then
3745 GCC=yes
3746 else
3747 GCC=
3748 fi
3749 ac_test_CFLAGS=${CFLAGS+set}
3750 ac_save_CFLAGS=$CFLAGS
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3752 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3753 if ${ac_cv_prog_cc_g+:} false; then :
3754 $as_echo_n "(cached) " >&6
3755 else
3756 ac_save_c_werror_flag=$ac_c_werror_flag
3757 ac_c_werror_flag=yes
3758 ac_cv_prog_cc_g=no
3759 CFLAGS="-g"
3760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3761 /* end confdefs.h. */
3762
3763 int
3764 main ()
3765 {
3766
3767 ;
3768 return 0;
3769 }
3770 _ACEOF
3771 if ac_fn_c_try_compile "$LINENO"; then :
3772 ac_cv_prog_cc_g=yes
3773 else
3774 CFLAGS=""
3775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3776 /* end confdefs.h. */
3777
3778 int
3779 main ()
3780 {
3781
3782 ;
3783 return 0;
3784 }
3785 _ACEOF
3786 if ac_fn_c_try_compile "$LINENO"; then :
3787
3788 else
3789 ac_c_werror_flag=$ac_save_c_werror_flag
3790 CFLAGS="-g"
3791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3792 /* end confdefs.h. */
3793
3794 int
3795 main ()
3796 {
3797
3798 ;
3799 return 0;
3800 }
3801 _ACEOF
3802 if ac_fn_c_try_compile "$LINENO"; then :
3803 ac_cv_prog_cc_g=yes
3804 fi
3805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3806 fi
3807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3808 fi
3809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3810 ac_c_werror_flag=$ac_save_c_werror_flag
3811 fi
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3813 $as_echo "$ac_cv_prog_cc_g" >&6; }
3814 if test "$ac_test_CFLAGS" = set; then
3815 CFLAGS=$ac_save_CFLAGS
3816 elif test $ac_cv_prog_cc_g = yes; then
3817 if test "$GCC" = yes; then
3818 CFLAGS="-g -O2"
3819 else
3820 CFLAGS="-g"
3821 fi
3822 else
3823 if test "$GCC" = yes; then
3824 CFLAGS="-O2"
3825 else
3826 CFLAGS=
3827 fi
3828 fi
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3830 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3831 if ${ac_cv_prog_cc_c89+:} false; then :
3832 $as_echo_n "(cached) " >&6
3833 else
3834 ac_cv_prog_cc_c89=no
3835 ac_save_CC=$CC
3836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3837 /* end confdefs.h. */
3838 #include <stdarg.h>
3839 #include <stdio.h>
3840 struct stat;
3841 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3842 struct buf { int x; };
3843 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3844 static char *e (p, i)
3845 char **p;
3846 int i;
3847 {
3848 return p[i];
3849 }
3850 static char *f (char * (*g) (char **, int), char **p, ...)
3851 {
3852 char *s;
3853 va_list v;
3854 va_start (v,p);
3855 s = g (p, va_arg (v,int));
3856 va_end (v);
3857 return s;
3858 }
3859
3860 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3861 function prototypes and stuff, but not '\xHH' hex character constants.
3862 These don't provoke an error unfortunately, instead are silently treated
3863 as 'x'. The following induces an error, until -std is added to get
3864 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3865 array size at least. It's necessary to write '\x00'==0 to get something
3866 that's true only with -std. */
3867 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3868
3869 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3870 inside strings and character constants. */
3871 #define FOO(x) 'x'
3872 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3873
3874 int test (int i, double x);
3875 struct s1 {int (*f) (int a);};
3876 struct s2 {int (*f) (double a);};
3877 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3878 int argc;
3879 char **argv;
3880 int
3881 main ()
3882 {
3883 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3884 ;
3885 return 0;
3886 }
3887 _ACEOF
3888 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3889 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3890 do
3891 CC="$ac_save_CC $ac_arg"
3892 if ac_fn_c_try_compile "$LINENO"; then :
3893 ac_cv_prog_cc_c89=$ac_arg
3894 fi
3895 rm -f core conftest.err conftest.$ac_objext
3896 test "x$ac_cv_prog_cc_c89" != "xno" && break
3897 done
3898 rm -f conftest.$ac_ext
3899 CC=$ac_save_CC
3900
3901 fi
3902 # AC_CACHE_VAL
3903 case "x$ac_cv_prog_cc_c89" in
3904 x)
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3906 $as_echo "none needed" >&6; } ;;
3907 xno)
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3909 $as_echo "unsupported" >&6; } ;;
3910 *)
3911 CC="$CC $ac_cv_prog_cc_c89"
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3913 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3914 esac
3915 if test "x$ac_cv_prog_cc_c89" != xno; then :
3916
3917 fi
3918
3919 ac_ext=c
3920 ac_cpp='$CPP $CPPFLAGS'
3921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3924
3925 ac_ext=c
3926 ac_cpp='$CPP $CPPFLAGS'
3927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3931 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3932 if ${am_cv_prog_cc_c_o+:} false; then :
3933 $as_echo_n "(cached) " >&6
3934 else
3935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3936 /* end confdefs.h. */
3937
3938 int
3939 main ()
3940 {
3941
3942 ;
3943 return 0;
3944 }
3945 _ACEOF
3946 # Make sure it works both with $CC and with simple cc.
3947 # Following AC_PROG_CC_C_O, we do the test twice because some
3948 # compilers refuse to overwrite an existing .o file with -o,
3949 # though they will create one.
3950 am_cv_prog_cc_c_o=yes
3951 for am_i in 1 2; do
3952 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3953 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3954 ac_status=$?
3955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956 (exit $ac_status); } \
3957 && test -f conftest2.$ac_objext; then
3958 : OK
3959 else
3960 am_cv_prog_cc_c_o=no
3961 break
3962 fi
3963 done
3964 rm -f core conftest*
3965 unset am_i
3966 fi
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3968 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3969 if test "$am_cv_prog_cc_c_o" != yes; then
3970 # Losing compiler, so override with the script.
3971 # FIXME: It is wrong to rewrite CC.
3972 # But if we don't then we get into trouble of one sort or another.
3973 # A longer-term fix would be to have automake use am__CC in this case,
3974 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3975 CC="$am_aux_dir/compile $CC"
3976 fi
3977 ac_ext=c
3978 ac_cpp='$CPP $CPPFLAGS'
3979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3982
3983
3984 # By default we simply use the C compiler to build assembly code.
3985
3986 test "${CCAS+set}" = set || CCAS=$CC
3987 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3988
3989
3990
3991 ac_ext=c
3992 ac_cpp='$CPP $CPPFLAGS'
3993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3996 if test -n "$ac_tool_prefix"; then
3997 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3998 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4000 $as_echo_n "checking for $ac_word... " >&6; }
4001 if ${ac_cv_prog_CC+:} false; then :
4002 $as_echo_n "(cached) " >&6
4003 else
4004 if test -n "$CC"; then
4005 ac_cv_prog_CC="$CC" # Let the user override the test.
4006 else
4007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4008 for as_dir in $PATH
4009 do
4010 IFS=$as_save_IFS
4011 test -z "$as_dir" && as_dir=.
4012 for ac_exec_ext in '' $ac_executable_extensions; do
4013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4014 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4016 break 2
4017 fi
4018 done
4019 done
4020 IFS=$as_save_IFS
4021
4022 fi
4023 fi
4024 CC=$ac_cv_prog_CC
4025 if test -n "$CC"; then
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4027 $as_echo "$CC" >&6; }
4028 else
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4030 $as_echo "no" >&6; }
4031 fi
4032
4033
4034 fi
4035 if test -z "$ac_cv_prog_CC"; then
4036 ac_ct_CC=$CC
4037 # Extract the first word of "gcc", so it can be a program name with args.
4038 set dummy gcc; ac_word=$2
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4040 $as_echo_n "checking for $ac_word... " >&6; }
4041 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4042 $as_echo_n "(cached) " >&6
4043 else
4044 if test -n "$ac_ct_CC"; then
4045 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4046 else
4047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4048 for as_dir in $PATH
4049 do
4050 IFS=$as_save_IFS
4051 test -z "$as_dir" && as_dir=.
4052 for ac_exec_ext in '' $ac_executable_extensions; do
4053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4054 ac_cv_prog_ac_ct_CC="gcc"
4055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4056 break 2
4057 fi
4058 done
4059 done
4060 IFS=$as_save_IFS
4061
4062 fi
4063 fi
4064 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4065 if test -n "$ac_ct_CC"; then
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4067 $as_echo "$ac_ct_CC" >&6; }
4068 else
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4070 $as_echo "no" >&6; }
4071 fi
4072
4073 if test "x$ac_ct_CC" = x; then
4074 CC=""
4075 else
4076 case $cross_compiling:$ac_tool_warned in
4077 yes:)
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4079 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4080 ac_tool_warned=yes ;;
4081 esac
4082 CC=$ac_ct_CC
4083 fi
4084 else
4085 CC="$ac_cv_prog_CC"
4086 fi
4087
4088 if test -z "$CC"; then
4089 if test -n "$ac_tool_prefix"; then
4090 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4091 set dummy ${ac_tool_prefix}cc; ac_word=$2
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4093 $as_echo_n "checking for $ac_word... " >&6; }
4094 if ${ac_cv_prog_CC+:} false; then :
4095 $as_echo_n "(cached) " >&6
4096 else
4097 if test -n "$CC"; then
4098 ac_cv_prog_CC="$CC" # Let the user override the test.
4099 else
4100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4101 for as_dir in $PATH
4102 do
4103 IFS=$as_save_IFS
4104 test -z "$as_dir" && as_dir=.
4105 for ac_exec_ext in '' $ac_executable_extensions; do
4106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4107 ac_cv_prog_CC="${ac_tool_prefix}cc"
4108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4109 break 2
4110 fi
4111 done
4112 done
4113 IFS=$as_save_IFS
4114
4115 fi
4116 fi
4117 CC=$ac_cv_prog_CC
4118 if test -n "$CC"; then
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4120 $as_echo "$CC" >&6; }
4121 else
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4123 $as_echo "no" >&6; }
4124 fi
4125
4126
4127 fi
4128 fi
4129 if test -z "$CC"; then
4130 # Extract the first word of "cc", so it can be a program name with args.
4131 set dummy cc; ac_word=$2
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4133 $as_echo_n "checking for $ac_word... " >&6; }
4134 if ${ac_cv_prog_CC+:} false; then :
4135 $as_echo_n "(cached) " >&6
4136 else
4137 if test -n "$CC"; then
4138 ac_cv_prog_CC="$CC" # Let the user override the test.
4139 else
4140 ac_prog_rejected=no
4141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4142 for as_dir in $PATH
4143 do
4144 IFS=$as_save_IFS
4145 test -z "$as_dir" && as_dir=.
4146 for ac_exec_ext in '' $ac_executable_extensions; do
4147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4148 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4149 ac_prog_rejected=yes
4150 continue
4151 fi
4152 ac_cv_prog_CC="cc"
4153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4154 break 2
4155 fi
4156 done
4157 done
4158 IFS=$as_save_IFS
4159
4160 if test $ac_prog_rejected = yes; then
4161 # We found a bogon in the path, so make sure we never use it.
4162 set dummy $ac_cv_prog_CC
4163 shift
4164 if test $# != 0; then
4165 # We chose a different compiler from the bogus one.
4166 # However, it has the same basename, so the bogon will be chosen
4167 # first if we set CC to just the basename; use the full file name.
4168 shift
4169 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4170 fi
4171 fi
4172 fi
4173 fi
4174 CC=$ac_cv_prog_CC
4175 if test -n "$CC"; then
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4177 $as_echo "$CC" >&6; }
4178 else
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4180 $as_echo "no" >&6; }
4181 fi
4182
4183
4184 fi
4185 if test -z "$CC"; then
4186 if test -n "$ac_tool_prefix"; then
4187 for ac_prog in cl.exe
4188 do
4189 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4190 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4192 $as_echo_n "checking for $ac_word... " >&6; }
4193 if ${ac_cv_prog_CC+:} false; then :
4194 $as_echo_n "(cached) " >&6
4195 else
4196 if test -n "$CC"; then
4197 ac_cv_prog_CC="$CC" # Let the user override the test.
4198 else
4199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4200 for as_dir in $PATH
4201 do
4202 IFS=$as_save_IFS
4203 test -z "$as_dir" && as_dir=.
4204 for ac_exec_ext in '' $ac_executable_extensions; do
4205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4206 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4208 break 2
4209 fi
4210 done
4211 done
4212 IFS=$as_save_IFS
4213
4214 fi
4215 fi
4216 CC=$ac_cv_prog_CC
4217 if test -n "$CC"; then
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4219 $as_echo "$CC" >&6; }
4220 else
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4222 $as_echo "no" >&6; }
4223 fi
4224
4225
4226 test -n "$CC" && break
4227 done
4228 fi
4229 if test -z "$CC"; then
4230 ac_ct_CC=$CC
4231 for ac_prog in cl.exe
4232 do
4233 # Extract the first word of "$ac_prog", so it can be a program name with args.
4234 set dummy $ac_prog; ac_word=$2
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4236 $as_echo_n "checking for $ac_word... " >&6; }
4237 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4238 $as_echo_n "(cached) " >&6
4239 else
4240 if test -n "$ac_ct_CC"; then
4241 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4242 else
4243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244 for as_dir in $PATH
4245 do
4246 IFS=$as_save_IFS
4247 test -z "$as_dir" && as_dir=.
4248 for ac_exec_ext in '' $ac_executable_extensions; do
4249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4250 ac_cv_prog_ac_ct_CC="$ac_prog"
4251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4252 break 2
4253 fi
4254 done
4255 done
4256 IFS=$as_save_IFS
4257
4258 fi
4259 fi
4260 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4261 if test -n "$ac_ct_CC"; then
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4263 $as_echo "$ac_ct_CC" >&6; }
4264 else
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4266 $as_echo "no" >&6; }
4267 fi
4268
4269
4270 test -n "$ac_ct_CC" && break
4271 done
4272
4273 if test "x$ac_ct_CC" = x; then
4274 CC=""
4275 else
4276 case $cross_compiling:$ac_tool_warned in
4277 yes:)
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4279 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4280 ac_tool_warned=yes ;;
4281 esac
4282 CC=$ac_ct_CC
4283 fi
4284 fi
4285
4286 fi
4287
4288
4289 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4290 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4291 as_fn_error $? "no acceptable C compiler found in \$PATH
4292 See \`config.log' for more details" "$LINENO" 5; }
4293
4294 # Provide some information about the compiler.
4295 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4296 set X $ac_compile
4297 ac_compiler=$2
4298 for ac_option in --version -v -V -qversion; do
4299 { { ac_try="$ac_compiler $ac_option >&5"
4300 case "(($ac_try" in
4301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4302 *) ac_try_echo=$ac_try;;
4303 esac
4304 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4305 $as_echo "$ac_try_echo"; } >&5
4306 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4307 ac_status=$?
4308 if test -s conftest.err; then
4309 sed '10a\
4310 ... rest of stderr output deleted ...
4311 10q' conftest.err >conftest.er1
4312 cat conftest.er1 >&5
4313 fi
4314 rm -f conftest.er1 conftest.err
4315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4316 test $ac_status = 0; }
4317 done
4318
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4320 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4321 if ${ac_cv_c_compiler_gnu+:} false; then :
4322 $as_echo_n "(cached) " >&6
4323 else
4324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4325 /* end confdefs.h. */
4326
4327 int
4328 main ()
4329 {
4330 #ifndef __GNUC__
4331 choke me
4332 #endif
4333
4334 ;
4335 return 0;
4336 }
4337 _ACEOF
4338 if ac_fn_c_try_compile "$LINENO"; then :
4339 ac_compiler_gnu=yes
4340 else
4341 ac_compiler_gnu=no
4342 fi
4343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4344 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4345
4346 fi
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4348 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4349 if test $ac_compiler_gnu = yes; then
4350 GCC=yes
4351 else
4352 GCC=
4353 fi
4354 ac_test_CFLAGS=${CFLAGS+set}
4355 ac_save_CFLAGS=$CFLAGS
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4357 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4358 if ${ac_cv_prog_cc_g+:} false; then :
4359 $as_echo_n "(cached) " >&6
4360 else
4361 ac_save_c_werror_flag=$ac_c_werror_flag
4362 ac_c_werror_flag=yes
4363 ac_cv_prog_cc_g=no
4364 CFLAGS="-g"
4365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4366 /* end confdefs.h. */
4367
4368 int
4369 main ()
4370 {
4371
4372 ;
4373 return 0;
4374 }
4375 _ACEOF
4376 if ac_fn_c_try_compile "$LINENO"; then :
4377 ac_cv_prog_cc_g=yes
4378 else
4379 CFLAGS=""
4380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4381 /* end confdefs.h. */
4382
4383 int
4384 main ()
4385 {
4386
4387 ;
4388 return 0;
4389 }
4390 _ACEOF
4391 if ac_fn_c_try_compile "$LINENO"; then :
4392
4393 else
4394 ac_c_werror_flag=$ac_save_c_werror_flag
4395 CFLAGS="-g"
4396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4397 /* end confdefs.h. */
4398
4399 int
4400 main ()
4401 {
4402
4403 ;
4404 return 0;
4405 }
4406 _ACEOF
4407 if ac_fn_c_try_compile "$LINENO"; then :
4408 ac_cv_prog_cc_g=yes
4409 fi
4410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4411 fi
4412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4413 fi
4414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4415 ac_c_werror_flag=$ac_save_c_werror_flag
4416 fi
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4418 $as_echo "$ac_cv_prog_cc_g" >&6; }
4419 if test "$ac_test_CFLAGS" = set; then
4420 CFLAGS=$ac_save_CFLAGS
4421 elif test $ac_cv_prog_cc_g = yes; then
4422 if test "$GCC" = yes; then
4423 CFLAGS="-g -O2"
4424 else
4425 CFLAGS="-g"
4426 fi
4427 else
4428 if test "$GCC" = yes; then
4429 CFLAGS="-O2"
4430 else
4431 CFLAGS=
4432 fi
4433 fi
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4435 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4436 if ${ac_cv_prog_cc_c89+:} false; then :
4437 $as_echo_n "(cached) " >&6
4438 else
4439 ac_cv_prog_cc_c89=no
4440 ac_save_CC=$CC
4441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4442 /* end confdefs.h. */
4443 #include <stdarg.h>
4444 #include <stdio.h>
4445 struct stat;
4446 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4447 struct buf { int x; };
4448 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4449 static char *e (p, i)
4450 char **p;
4451 int i;
4452 {
4453 return p[i];
4454 }
4455 static char *f (char * (*g) (char **, int), char **p, ...)
4456 {
4457 char *s;
4458 va_list v;
4459 va_start (v,p);
4460 s = g (p, va_arg (v,int));
4461 va_end (v);
4462 return s;
4463 }
4464
4465 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4466 function prototypes and stuff, but not '\xHH' hex character constants.
4467 These don't provoke an error unfortunately, instead are silently treated
4468 as 'x'. The following induces an error, until -std is added to get
4469 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4470 array size at least. It's necessary to write '\x00'==0 to get something
4471 that's true only with -std. */
4472 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4473
4474 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4475 inside strings and character constants. */
4476 #define FOO(x) 'x'
4477 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4478
4479 int test (int i, double x);
4480 struct s1 {int (*f) (int a);};
4481 struct s2 {int (*f) (double a);};
4482 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4483 int argc;
4484 char **argv;
4485 int
4486 main ()
4487 {
4488 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4489 ;
4490 return 0;
4491 }
4492 _ACEOF
4493 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4494 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4495 do
4496 CC="$ac_save_CC $ac_arg"
4497 if ac_fn_c_try_compile "$LINENO"; then :
4498 ac_cv_prog_cc_c89=$ac_arg
4499 fi
4500 rm -f core conftest.err conftest.$ac_objext
4501 test "x$ac_cv_prog_cc_c89" != "xno" && break
4502 done
4503 rm -f conftest.$ac_ext
4504 CC=$ac_save_CC
4505
4506 fi
4507 # AC_CACHE_VAL
4508 case "x$ac_cv_prog_cc_c89" in
4509 x)
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4511 $as_echo "none needed" >&6; } ;;
4512 xno)
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4514 $as_echo "unsupported" >&6; } ;;
4515 *)
4516 CC="$CC $ac_cv_prog_cc_c89"
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4518 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4519 esac
4520 if test "x$ac_cv_prog_cc_c89" != xno; then :
4521
4522 fi
4523
4524 ac_ext=c
4525 ac_cpp='$CPP $CPPFLAGS'
4526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4529
4530 ac_ext=c
4531 ac_cpp='$CPP $CPPFLAGS'
4532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4536 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4537 if ${am_cv_prog_cc_c_o+:} false; then :
4538 $as_echo_n "(cached) " >&6
4539 else
4540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4541 /* end confdefs.h. */
4542
4543 int
4544 main ()
4545 {
4546
4547 ;
4548 return 0;
4549 }
4550 _ACEOF
4551 # Make sure it works both with $CC and with simple cc.
4552 # Following AC_PROG_CC_C_O, we do the test twice because some
4553 # compilers refuse to overwrite an existing .o file with -o,
4554 # though they will create one.
4555 am_cv_prog_cc_c_o=yes
4556 for am_i in 1 2; do
4557 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4558 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4559 ac_status=$?
4560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561 (exit $ac_status); } \
4562 && test -f conftest2.$ac_objext; then
4563 : OK
4564 else
4565 am_cv_prog_cc_c_o=no
4566 break
4567 fi
4568 done
4569 rm -f core conftest*
4570 unset am_i
4571 fi
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4573 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4574 if test "$am_cv_prog_cc_c_o" != yes; then
4575 # Losing compiler, so override with the script.
4576 # FIXME: It is wrong to rewrite CC.
4577 # But if we don't then we get into trouble of one sort or another.
4578 # A longer-term fix would be to have automake use am__CC in this case,
4579 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4580 CC="$am_aux_dir/compile $CC"
4581 fi
4582 ac_ext=c
4583 ac_cpp='$CPP $CPPFLAGS'
4584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4587
4588
4589 ac_ext=d
4590 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
4591 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4592 ac_compiler_gnu=yes
4593 if test -n "$ac_tool_prefix"; then
4594 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
4595 set dummy ${ac_tool_prefix}gdc; ac_word=$2
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4597 $as_echo_n "checking for $ac_word... " >&6; }
4598 if ${ac_cv_prog_GDC+:} false; then :
4599 $as_echo_n "(cached) " >&6
4600 else
4601 if test -n "$GDC"; then
4602 ac_cv_prog_GDC="$GDC" # Let the user override the test.
4603 else
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 for as_dir in $PATH
4606 do
4607 IFS=$as_save_IFS
4608 test -z "$as_dir" && as_dir=.
4609 for ac_exec_ext in '' $ac_executable_extensions; do
4610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4611 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
4612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4613 break 2
4614 fi
4615 done
4616 done
4617 IFS=$as_save_IFS
4618
4619 fi
4620 fi
4621 GDC=$ac_cv_prog_GDC
4622 if test -n "$GDC"; then
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
4624 $as_echo "$GDC" >&6; }
4625 else
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4627 $as_echo "no" >&6; }
4628 fi
4629
4630
4631 fi
4632 if test -z "$ac_cv_prog_GDC"; then
4633 ac_ct_GDC=$GDC
4634 # Extract the first word of "gdc", so it can be a program name with args.
4635 set dummy gdc; ac_word=$2
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4637 $as_echo_n "checking for $ac_word... " >&6; }
4638 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
4639 $as_echo_n "(cached) " >&6
4640 else
4641 if test -n "$ac_ct_GDC"; then
4642 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
4643 else
4644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4645 for as_dir in $PATH
4646 do
4647 IFS=$as_save_IFS
4648 test -z "$as_dir" && as_dir=.
4649 for ac_exec_ext in '' $ac_executable_extensions; do
4650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4651 ac_cv_prog_ac_ct_GDC="gdc"
4652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4653 break 2
4654 fi
4655 done
4656 done
4657 IFS=$as_save_IFS
4658
4659 fi
4660 fi
4661 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
4662 if test -n "$ac_ct_GDC"; then
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
4664 $as_echo "$ac_ct_GDC" >&6; }
4665 else
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4667 $as_echo "no" >&6; }
4668 fi
4669
4670 if test "x$ac_ct_GDC" = x; then
4671 GDC=""
4672 else
4673 case $cross_compiling:$ac_tool_warned in
4674 yes:)
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4676 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4677 ac_tool_warned=yes ;;
4678 esac
4679 GDC=$ac_ct_GDC
4680 fi
4681 else
4682 GDC="$ac_cv_prog_GDC"
4683 fi
4684
4685 if test -z "$GDC"; then
4686 if test -n "$ac_tool_prefix"; then
4687 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
4688 set dummy ${ac_tool_prefix}gdc; ac_word=$2
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4690 $as_echo_n "checking for $ac_word... " >&6; }
4691 if ${ac_cv_prog_GDC+:} false; then :
4692 $as_echo_n "(cached) " >&6
4693 else
4694 if test -n "$GDC"; then
4695 ac_cv_prog_GDC="$GDC" # Let the user override the test.
4696 else
4697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 for as_dir in $PATH
4699 do
4700 IFS=$as_save_IFS
4701 test -z "$as_dir" && as_dir=.
4702 for ac_exec_ext in '' $ac_executable_extensions; do
4703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4704 ac_cv_prog_GDC="$ac_tool_prefix}gdc"
4705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4706 break 2
4707 fi
4708 done
4709 done
4710 IFS=$as_save_IFS
4711
4712 fi
4713 fi
4714 GDC=$ac_cv_prog_GDC
4715 if test -n "$GDC"; then
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
4717 $as_echo "$GDC" >&6; }
4718 else
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4720 $as_echo "no" >&6; }
4721 fi
4722
4723
4724 fi
4725 fi
4726 if test -z "$GDC"; then
4727 # Extract the first word of "gdc", so it can be a program name with args.
4728 set dummy gdc; ac_word=$2
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4730 $as_echo_n "checking for $ac_word... " >&6; }
4731 if ${ac_cv_prog_GDC+:} false; then :
4732 $as_echo_n "(cached) " >&6
4733 else
4734 if test -n "$GDC"; then
4735 ac_cv_prog_GDC="$GDC" # Let the user override the test.
4736 else
4737 ac_prog_rejected=no
4738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4739 for as_dir in $PATH
4740 do
4741 IFS=$as_save_IFS
4742 test -z "$as_dir" && as_dir=.
4743 for ac_exec_ext in '' $ac_executable_extensions; do
4744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4745 if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
4746 ac_prog_rejected=yes
4747 continue
4748 fi
4749 ac_cv_prog_GDC="gdc"
4750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4751 break 2
4752 fi
4753 done
4754 done
4755 IFS=$as_save_IFS
4756
4757 if test $ac_prog_rejected = yes; then
4758 # We found a bogon in the path, so make sure we never use it.
4759 set dummy $ac_cv_prog_GDC
4760 shift
4761 if test $# != 0; then
4762 # We chose a different compiler from the bogus one.
4763 # However, it has the same basename, so the bogon will be chosen
4764 # first if we set GDC to just the basename; use the full file name.
4765 shift
4766 ac_cv_prog_GDC="$as_dir/$ac_word${1+' '}$@"
4767 fi
4768 fi
4769 fi
4770 fi
4771 GDC=$ac_cv_prog_GDC
4772 if test -n "$GDC"; then
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
4774 $as_echo "$GDC" >&6; }
4775 else
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4777 $as_echo "no" >&6; }
4778 fi
4779
4780
4781 fi
4782
4783
4784 # Provide some information about the compiler.
4785 $as_echo "$as_me:${as_lineno-$LINENO}: checking for D compiler version" >&5
4786 set X $ac_compile
4787 ac_compiler=$2
4788 { { ac_try="$ac_compiler --version >&5"
4789 case "(($ac_try" in
4790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4791 *) ac_try_echo=$ac_try;;
4792 esac
4793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4794 $as_echo "$ac_try_echo"; } >&5
4795 (eval "$ac_compiler --version >&5") 2>conftest.err
4796 ac_status=$?
4797 if test -s conftest.err; then
4798 sed '10a\
4799 ... rest of stderr output deleted ...
4800 10q' conftest.err >conftest.er1
4801 cat conftest.er1 >&5
4802 fi
4803 rm -f conftest.er1 conftest.err
4804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4805 test $ac_status = 0; }
4806 ac_ext=c
4807 ac_cpp='$CPP $CPPFLAGS'
4808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4811
4812
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for absolute libphobos source path" >&5
4814 $as_echo_n "checking for absolute libphobos source path... " >&6; }
4815 if ${phobos_cv_abs_srcdir+:} false; then :
4816 $as_echo_n "(cached) " >&6
4817 else
4818 phobos_cv_abs_srcdir=`cd $srcdir && pwd`
4819 fi
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $phobos_cv_abs_srcdir" >&5
4821 $as_echo "$phobos_cv_abs_srcdir" >&6; }
4822 if test -d "$phobos_cv_abs_srcdir"; then :
4823
4824 else
4825 as_fn_error $? "can't find absolute libphobos source path" "$LINENO" 5
4826 fi
4827
4828
4829
4830
4831 gdc_save_DFLAGS=$GDCFLAGS
4832 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
4833
4834 ac_ext=d
4835 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
4836 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4837 ac_compiler_gnu=yes
4838
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If $GDC can compile D sources" >&5
4840 $as_echo_n "checking If $GDC can compile D sources... " >&6; }
4841 cat > conftest.$ac_ext <<_ACEOF
4842 module mod;
4843
4844
4845 extern(C) int main() {
4846 return 0;
4847 }
4848 _ACEOF
4849 if ac_fn_d_try_compile "$LINENO"; then :
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4851 $as_echo "yes" >&6; }
4852 else
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4854 $as_echo "no" >&6; }
4855 as_fn_error $? "can't compile D sources!" "$LINENO" 5
4856 fi
4857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4858 ac_ext=c
4859 ac_cpp='$CPP $CPPFLAGS'
4860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4863
4864
4865 GDCFLAGS=$gdc_save_DFLAGS
4866
4867
4868
4869
4870
4871
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4873 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4874 # Check whether --enable-maintainer-mode was given.
4875 if test "${enable_maintainer_mode+set}" = set; then :
4876 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4877 else
4878 USE_MAINTAINER_MODE=no
4879 fi
4880
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4882 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4883 if test $USE_MAINTAINER_MODE = yes; then
4884 MAINTAINER_MODE_TRUE=
4885 MAINTAINER_MODE_FALSE='#'
4886 else
4887 MAINTAINER_MODE_TRUE='#'
4888 MAINTAINER_MODE_FALSE=
4889 fi
4890
4891 MAINT=$MAINTAINER_MODE_TRUE
4892
4893
4894 if test -n "$ac_tool_prefix"; then
4895 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4896 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4898 $as_echo_n "checking for $ac_word... " >&6; }
4899 if ${ac_cv_prog_RANLIB+:} false; then :
4900 $as_echo_n "(cached) " >&6
4901 else
4902 if test -n "$RANLIB"; then
4903 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4904 else
4905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 for as_dir in $PATH
4907 do
4908 IFS=$as_save_IFS
4909 test -z "$as_dir" && as_dir=.
4910 for ac_exec_ext in '' $ac_executable_extensions; do
4911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4912 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4914 break 2
4915 fi
4916 done
4917 done
4918 IFS=$as_save_IFS
4919
4920 fi
4921 fi
4922 RANLIB=$ac_cv_prog_RANLIB
4923 if test -n "$RANLIB"; then
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4925 $as_echo "$RANLIB" >&6; }
4926 else
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4928 $as_echo "no" >&6; }
4929 fi
4930
4931
4932 fi
4933 if test -z "$ac_cv_prog_RANLIB"; then
4934 ac_ct_RANLIB=$RANLIB
4935 # Extract the first word of "ranlib", so it can be a program name with args.
4936 set dummy ranlib; ac_word=$2
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4938 $as_echo_n "checking for $ac_word... " >&6; }
4939 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4940 $as_echo_n "(cached) " >&6
4941 else
4942 if test -n "$ac_ct_RANLIB"; then
4943 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4944 else
4945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4946 for as_dir in $PATH
4947 do
4948 IFS=$as_save_IFS
4949 test -z "$as_dir" && as_dir=.
4950 for ac_exec_ext in '' $ac_executable_extensions; do
4951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4952 ac_cv_prog_ac_ct_RANLIB="ranlib"
4953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4954 break 2
4955 fi
4956 done
4957 done
4958 IFS=$as_save_IFS
4959
4960 fi
4961 fi
4962 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4963 if test -n "$ac_ct_RANLIB"; then
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4965 $as_echo "$ac_ct_RANLIB" >&6; }
4966 else
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4968 $as_echo "no" >&6; }
4969 fi
4970
4971 if test "x$ac_ct_RANLIB" = x; then
4972 RANLIB=":"
4973 else
4974 case $cross_compiling:$ac_tool_warned in
4975 yes:)
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4977 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4978 ac_tool_warned=yes ;;
4979 esac
4980 RANLIB=$ac_ct_RANLIB
4981 fi
4982 else
4983 RANLIB="$ac_cv_prog_RANLIB"
4984 fi
4985
4986
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4988 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4989 set x ${MAKE-make}
4990 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4991 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4992 $as_echo_n "(cached) " >&6
4993 else
4994 cat >conftest.make <<\_ACEOF
4995 SHELL = /bin/sh
4996 all:
4997 @echo '@@@%%%=$(MAKE)=@@@%%%'
4998 _ACEOF
4999 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5000 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5001 *@@@%%%=?*=@@@%%%*)
5002 eval ac_cv_prog_make_${ac_make}_set=yes;;
5003 *)
5004 eval ac_cv_prog_make_${ac_make}_set=no;;
5005 esac
5006 rm -f conftest.make
5007 fi
5008 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5010 $as_echo "yes" >&6; }
5011 SET_MAKE=
5012 else
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5014 $as_echo "no" >&6; }
5015 SET_MAKE="MAKE=${MAKE-make}"
5016 fi
5017
5018
5019 # This should be inherited in the recursive make, but ensure it is defined.
5020 test "$AR" || AR=ar
5021
5022
5023 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
5024
5025
5026
5027 # Enable libtool
5028 case `pwd` in
5029 *\ * | *\ *)
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5031 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5032 esac
5033
5034
5035
5036 macro_version='2.2.7a'
5037 macro_revision='1.3134'
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051 ltmain="$ac_aux_dir/ltmain.sh"
5052
5053 # Backslashify metacharacters that are still active within
5054 # double-quoted strings.
5055 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5056
5057 # Same as above, but do not quote variable references.
5058 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5059
5060 # Sed substitution to delay expansion of an escaped shell variable in a
5061 # double_quote_subst'ed string.
5062 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5063
5064 # Sed substitution to delay expansion of an escaped single quote.
5065 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5066
5067 # Sed substitution to avoid accidental globbing in evaled expressions
5068 no_glob_subst='s/\*/\\\*/g'
5069
5070 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5071 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5072 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5073
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5075 $as_echo_n "checking how to print strings... " >&6; }
5076 # Test print first, because it will be a builtin if present.
5077 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5078 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5079 ECHO='print -r --'
5080 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5081 ECHO='printf %s\n'
5082 else
5083 # Use this function as a fallback that always works.
5084 func_fallback_echo ()
5085 {
5086 eval 'cat <<_LTECHO_EOF
5087 $1
5088 _LTECHO_EOF'
5089 }
5090 ECHO='func_fallback_echo'
5091 fi
5092
5093 # func_echo_all arg...
5094 # Invoke $ECHO with all args, space-separated.
5095 func_echo_all ()
5096 {
5097 $ECHO ""
5098 }
5099
5100 case "$ECHO" in
5101 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5102 $as_echo "printf" >&6; } ;;
5103 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5104 $as_echo "print -r" >&6; } ;;
5105 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5106 $as_echo "cat" >&6; } ;;
5107 esac
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5123 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5124 if ${ac_cv_path_SED+:} false; then :
5125 $as_echo_n "(cached) " >&6
5126 else
5127 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5128 for ac_i in 1 2 3 4 5 6 7; do
5129 ac_script="$ac_script$as_nl$ac_script"
5130 done
5131 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5132 { ac_script=; unset ac_script;}
5133 if test -z "$SED"; then
5134 ac_path_SED_found=false
5135 # Loop through the user's path and test for each of PROGNAME-LIST
5136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137 for as_dir in $PATH
5138 do
5139 IFS=$as_save_IFS
5140 test -z "$as_dir" && as_dir=.
5141 for ac_prog in sed gsed; do
5142 for ac_exec_ext in '' $ac_executable_extensions; do
5143 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5144 as_fn_executable_p "$ac_path_SED" || continue
5145 # Check for GNU ac_path_SED and select it if it is found.
5146 # Check for GNU $ac_path_SED
5147 case `"$ac_path_SED" --version 2>&1` in
5148 *GNU*)
5149 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5150 *)
5151 ac_count=0
5152 $as_echo_n 0123456789 >"conftest.in"
5153 while :
5154 do
5155 cat "conftest.in" "conftest.in" >"conftest.tmp"
5156 mv "conftest.tmp" "conftest.in"
5157 cp "conftest.in" "conftest.nl"
5158 $as_echo '' >> "conftest.nl"
5159 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5160 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5161 as_fn_arith $ac_count + 1 && ac_count=$as_val
5162 if test $ac_count -gt ${ac_path_SED_max-0}; then
5163 # Best one so far, save it but keep looking for a better one
5164 ac_cv_path_SED="$ac_path_SED"
5165 ac_path_SED_max=$ac_count
5166 fi
5167 # 10*(2^10) chars as input seems more than enough
5168 test $ac_count -gt 10 && break
5169 done
5170 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5171 esac
5172
5173 $ac_path_SED_found && break 3
5174 done
5175 done
5176 done
5177 IFS=$as_save_IFS
5178 if test -z "$ac_cv_path_SED"; then
5179 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5180 fi
5181 else
5182 ac_cv_path_SED=$SED
5183 fi
5184
5185 fi
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5187 $as_echo "$ac_cv_path_SED" >&6; }
5188 SED="$ac_cv_path_SED"
5189 rm -f conftest.sed
5190
5191 test -z "$SED" && SED=sed
5192 Xsed="$SED -e 1s/^X//"
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5205 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5206 if ${ac_cv_path_GREP+:} false; then :
5207 $as_echo_n "(cached) " >&6
5208 else
5209 if test -z "$GREP"; then
5210 ac_path_GREP_found=false
5211 # Loop through the user's path and test for each of PROGNAME-LIST
5212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5213 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5214 do
5215 IFS=$as_save_IFS
5216 test -z "$as_dir" && as_dir=.
5217 for ac_prog in grep ggrep; do
5218 for ac_exec_ext in '' $ac_executable_extensions; do
5219 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5220 as_fn_executable_p "$ac_path_GREP" || continue
5221 # Check for GNU ac_path_GREP and select it if it is found.
5222 # Check for GNU $ac_path_GREP
5223 case `"$ac_path_GREP" --version 2>&1` in
5224 *GNU*)
5225 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5226 *)
5227 ac_count=0
5228 $as_echo_n 0123456789 >"conftest.in"
5229 while :
5230 do
5231 cat "conftest.in" "conftest.in" >"conftest.tmp"
5232 mv "conftest.tmp" "conftest.in"
5233 cp "conftest.in" "conftest.nl"
5234 $as_echo 'GREP' >> "conftest.nl"
5235 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5236 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5237 as_fn_arith $ac_count + 1 && ac_count=$as_val
5238 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5239 # Best one so far, save it but keep looking for a better one
5240 ac_cv_path_GREP="$ac_path_GREP"
5241 ac_path_GREP_max=$ac_count
5242 fi
5243 # 10*(2^10) chars as input seems more than enough
5244 test $ac_count -gt 10 && break
5245 done
5246 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5247 esac
5248
5249 $ac_path_GREP_found && break 3
5250 done
5251 done
5252 done
5253 IFS=$as_save_IFS
5254 if test -z "$ac_cv_path_GREP"; then
5255 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5256 fi
5257 else
5258 ac_cv_path_GREP=$GREP
5259 fi
5260
5261 fi
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5263 $as_echo "$ac_cv_path_GREP" >&6; }
5264 GREP="$ac_cv_path_GREP"
5265
5266
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5268 $as_echo_n "checking for egrep... " >&6; }
5269 if ${ac_cv_path_EGREP+:} false; then :
5270 $as_echo_n "(cached) " >&6
5271 else
5272 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5273 then ac_cv_path_EGREP="$GREP -E"
5274 else
5275 if test -z "$EGREP"; then
5276 ac_path_EGREP_found=false
5277 # Loop through the user's path and test for each of PROGNAME-LIST
5278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5279 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5280 do
5281 IFS=$as_save_IFS
5282 test -z "$as_dir" && as_dir=.
5283 for ac_prog in egrep; do
5284 for ac_exec_ext in '' $ac_executable_extensions; do
5285 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5286 as_fn_executable_p "$ac_path_EGREP" || continue
5287 # Check for GNU ac_path_EGREP and select it if it is found.
5288 # Check for GNU $ac_path_EGREP
5289 case `"$ac_path_EGREP" --version 2>&1` in
5290 *GNU*)
5291 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5292 *)
5293 ac_count=0
5294 $as_echo_n 0123456789 >"conftest.in"
5295 while :
5296 do
5297 cat "conftest.in" "conftest.in" >"conftest.tmp"
5298 mv "conftest.tmp" "conftest.in"
5299 cp "conftest.in" "conftest.nl"
5300 $as_echo 'EGREP' >> "conftest.nl"
5301 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5302 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5303 as_fn_arith $ac_count + 1 && ac_count=$as_val
5304 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5305 # Best one so far, save it but keep looking for a better one
5306 ac_cv_path_EGREP="$ac_path_EGREP"
5307 ac_path_EGREP_max=$ac_count
5308 fi
5309 # 10*(2^10) chars as input seems more than enough
5310 test $ac_count -gt 10 && break
5311 done
5312 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5313 esac
5314
5315 $ac_path_EGREP_found && break 3
5316 done
5317 done
5318 done
5319 IFS=$as_save_IFS
5320 if test -z "$ac_cv_path_EGREP"; then
5321 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5322 fi
5323 else
5324 ac_cv_path_EGREP=$EGREP
5325 fi
5326
5327 fi
5328 fi
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5330 $as_echo "$ac_cv_path_EGREP" >&6; }
5331 EGREP="$ac_cv_path_EGREP"
5332
5333
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5335 $as_echo_n "checking for fgrep... " >&6; }
5336 if ${ac_cv_path_FGREP+:} false; then :
5337 $as_echo_n "(cached) " >&6
5338 else
5339 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5340 then ac_cv_path_FGREP="$GREP -F"
5341 else
5342 if test -z "$FGREP"; then
5343 ac_path_FGREP_found=false
5344 # Loop through the user's path and test for each of PROGNAME-LIST
5345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5346 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5347 do
5348 IFS=$as_save_IFS
5349 test -z "$as_dir" && as_dir=.
5350 for ac_prog in fgrep; do
5351 for ac_exec_ext in '' $ac_executable_extensions; do
5352 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5353 as_fn_executable_p "$ac_path_FGREP" || continue
5354 # Check for GNU ac_path_FGREP and select it if it is found.
5355 # Check for GNU $ac_path_FGREP
5356 case `"$ac_path_FGREP" --version 2>&1` in
5357 *GNU*)
5358 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5359 *)
5360 ac_count=0
5361 $as_echo_n 0123456789 >"conftest.in"
5362 while :
5363 do
5364 cat "conftest.in" "conftest.in" >"conftest.tmp"
5365 mv "conftest.tmp" "conftest.in"
5366 cp "conftest.in" "conftest.nl"
5367 $as_echo 'FGREP' >> "conftest.nl"
5368 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5369 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5370 as_fn_arith $ac_count + 1 && ac_count=$as_val
5371 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5372 # Best one so far, save it but keep looking for a better one
5373 ac_cv_path_FGREP="$ac_path_FGREP"
5374 ac_path_FGREP_max=$ac_count
5375 fi
5376 # 10*(2^10) chars as input seems more than enough
5377 test $ac_count -gt 10 && break
5378 done
5379 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5380 esac
5381
5382 $ac_path_FGREP_found && break 3
5383 done
5384 done
5385 done
5386 IFS=$as_save_IFS
5387 if test -z "$ac_cv_path_FGREP"; then
5388 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5389 fi
5390 else
5391 ac_cv_path_FGREP=$FGREP
5392 fi
5393
5394 fi
5395 fi
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5397 $as_echo "$ac_cv_path_FGREP" >&6; }
5398 FGREP="$ac_cv_path_FGREP"
5399
5400
5401 test -z "$GREP" && GREP=grep
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421 # Check whether --with-gnu-ld was given.
5422 if test "${with_gnu_ld+set}" = set; then :
5423 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5424 else
5425 with_gnu_ld=no
5426 fi
5427
5428 ac_prog=ld
5429 if test "$GCC" = yes; then
5430 # Check if gcc -print-prog-name=ld gives a path.
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5432 $as_echo_n "checking for ld used by $CC... " >&6; }
5433 case $host in
5434 *-*-mingw*)
5435 # gcc leaves a trailing carriage return which upsets mingw
5436 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5437 *)
5438 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5439 esac
5440 case $ac_prog in
5441 # Accept absolute paths.
5442 [\\/]* | ?:[\\/]*)
5443 re_direlt='/[^/][^/]*/\.\./'
5444 # Canonicalize the pathname of ld
5445 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5446 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5447 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5448 done
5449 test -z "$LD" && LD="$ac_prog"
5450 ;;
5451 "")
5452 # If it fails, then pretend we aren't using GCC.
5453 ac_prog=ld
5454 ;;
5455 *)
5456 # If it is relative, then search for the first ld in PATH.
5457 with_gnu_ld=unknown
5458 ;;
5459 esac
5460 elif test "$with_gnu_ld" = yes; then
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5462 $as_echo_n "checking for GNU ld... " >&6; }
5463 else
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5465 $as_echo_n "checking for non-GNU ld... " >&6; }
5466 fi
5467 if ${lt_cv_path_LD+:} false; then :
5468 $as_echo_n "(cached) " >&6
5469 else
5470 if test -z "$LD"; then
5471 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5472 for ac_dir in $PATH; do
5473 IFS="$lt_save_ifs"
5474 test -z "$ac_dir" && ac_dir=.
5475 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5476 lt_cv_path_LD="$ac_dir/$ac_prog"
5477 # Check to see if the program is GNU ld. I'd rather use --version,
5478 # but apparently some variants of GNU ld only accept -v.
5479 # Break only if it was the GNU/non-GNU ld that we prefer.
5480 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5481 *GNU* | *'with BFD'*)
5482 test "$with_gnu_ld" != no && break
5483 ;;
5484 *)
5485 test "$with_gnu_ld" != yes && break
5486 ;;
5487 esac
5488 fi
5489 done
5490 IFS="$lt_save_ifs"
5491 else
5492 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5493 fi
5494 fi
5495
5496 LD="$lt_cv_path_LD"
5497 if test -n "$LD"; then
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5499 $as_echo "$LD" >&6; }
5500 else
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5502 $as_echo "no" >&6; }
5503 fi
5504 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5506 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5507 if ${lt_cv_prog_gnu_ld+:} false; then :
5508 $as_echo_n "(cached) " >&6
5509 else
5510 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5511 case `$LD -v 2>&1 </dev/null` in
5512 *GNU* | *'with BFD'*)
5513 lt_cv_prog_gnu_ld=yes
5514 ;;
5515 *)
5516 lt_cv_prog_gnu_ld=no
5517 ;;
5518 esac
5519 fi
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5521 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5522 with_gnu_ld=$lt_cv_prog_gnu_ld
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5533 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5534 if ${lt_cv_path_NM+:} false; then :
5535 $as_echo_n "(cached) " >&6
5536 else
5537 if test -n "$NM"; then
5538 # Let the user override the test.
5539 lt_cv_path_NM="$NM"
5540 else
5541 lt_nm_to_check="${ac_tool_prefix}nm"
5542 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5543 lt_nm_to_check="$lt_nm_to_check nm"
5544 fi
5545 for lt_tmp_nm in $lt_nm_to_check; do
5546 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5547 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5548 IFS="$lt_save_ifs"
5549 test -z "$ac_dir" && ac_dir=.
5550 tmp_nm="$ac_dir/$lt_tmp_nm"
5551 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5552 # Check to see if the nm accepts a BSD-compat flag.
5553 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5554 # nm: unknown option "B" ignored
5555 # Tru64's nm complains that /dev/null is an invalid object file
5556 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5557 */dev/null* | *'Invalid file or object type'*)
5558 lt_cv_path_NM="$tmp_nm -B"
5559 break
5560 ;;
5561 *)
5562 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5563 */dev/null*)
5564 lt_cv_path_NM="$tmp_nm -p"
5565 break
5566 ;;
5567 *)
5568 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5569 continue # so that we can try to find one that supports BSD flags
5570 ;;
5571 esac
5572 ;;
5573 esac
5574 fi
5575 done
5576 IFS="$lt_save_ifs"
5577 done
5578 : ${lt_cv_path_NM=no}
5579 fi
5580 fi
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5582 $as_echo "$lt_cv_path_NM" >&6; }
5583 if test "$lt_cv_path_NM" != "no"; then
5584 NM="$lt_cv_path_NM"
5585 else
5586 # Didn't find any BSD compatible name lister, look for dumpbin.
5587 if test -n "$DUMPBIN"; then :
5588 # Let the user override the test.
5589 else
5590 if test -n "$ac_tool_prefix"; then
5591 for ac_prog in dumpbin "link -dump"
5592 do
5593 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5594 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5596 $as_echo_n "checking for $ac_word... " >&6; }
5597 if ${ac_cv_prog_DUMPBIN+:} false; then :
5598 $as_echo_n "(cached) " >&6
5599 else
5600 if test -n "$DUMPBIN"; then
5601 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5602 else
5603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5604 for as_dir in $PATH
5605 do
5606 IFS=$as_save_IFS
5607 test -z "$as_dir" && as_dir=.
5608 for ac_exec_ext in '' $ac_executable_extensions; do
5609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5610 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5612 break 2
5613 fi
5614 done
5615 done
5616 IFS=$as_save_IFS
5617
5618 fi
5619 fi
5620 DUMPBIN=$ac_cv_prog_DUMPBIN
5621 if test -n "$DUMPBIN"; then
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5623 $as_echo "$DUMPBIN" >&6; }
5624 else
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5626 $as_echo "no" >&6; }
5627 fi
5628
5629
5630 test -n "$DUMPBIN" && break
5631 done
5632 fi
5633 if test -z "$DUMPBIN"; then
5634 ac_ct_DUMPBIN=$DUMPBIN
5635 for ac_prog in dumpbin "link -dump"
5636 do
5637 # Extract the first word of "$ac_prog", so it can be a program name with args.
5638 set dummy $ac_prog; ac_word=$2
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5640 $as_echo_n "checking for $ac_word... " >&6; }
5641 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5642 $as_echo_n "(cached) " >&6
5643 else
5644 if test -n "$ac_ct_DUMPBIN"; then
5645 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5646 else
5647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5648 for as_dir in $PATH
5649 do
5650 IFS=$as_save_IFS
5651 test -z "$as_dir" && as_dir=.
5652 for ac_exec_ext in '' $ac_executable_extensions; do
5653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5654 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5656 break 2
5657 fi
5658 done
5659 done
5660 IFS=$as_save_IFS
5661
5662 fi
5663 fi
5664 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5665 if test -n "$ac_ct_DUMPBIN"; then
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5667 $as_echo "$ac_ct_DUMPBIN" >&6; }
5668 else
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5670 $as_echo "no" >&6; }
5671 fi
5672
5673
5674 test -n "$ac_ct_DUMPBIN" && break
5675 done
5676
5677 if test "x$ac_ct_DUMPBIN" = x; then
5678 DUMPBIN=":"
5679 else
5680 case $cross_compiling:$ac_tool_warned in
5681 yes:)
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5683 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5684 ac_tool_warned=yes ;;
5685 esac
5686 DUMPBIN=$ac_ct_DUMPBIN
5687 fi
5688 fi
5689
5690 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5691 *COFF*)
5692 DUMPBIN="$DUMPBIN -symbols"
5693 ;;
5694 *)
5695 DUMPBIN=:
5696 ;;
5697 esac
5698 fi
5699
5700 if test "$DUMPBIN" != ":"; then
5701 NM="$DUMPBIN"
5702 fi
5703 fi
5704 test -z "$NM" && NM=nm
5705
5706
5707
5708
5709
5710
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5712 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5713 if ${lt_cv_nm_interface+:} false; then :
5714 $as_echo_n "(cached) " >&6
5715 else
5716 lt_cv_nm_interface="BSD nm"
5717 echo "int some_variable = 0;" > conftest.$ac_ext
5718 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5719 (eval "$ac_compile" 2>conftest.err)
5720 cat conftest.err >&5
5721 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5722 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5723 cat conftest.err >&5
5724 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5725 cat conftest.out >&5
5726 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5727 lt_cv_nm_interface="MS dumpbin"
5728 fi
5729 rm -f conftest*
5730 fi
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5732 $as_echo "$lt_cv_nm_interface" >&6; }
5733
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5735 $as_echo_n "checking whether ln -s works... " >&6; }
5736 LN_S=$as_ln_s
5737 if test "$LN_S" = "ln -s"; then
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5739 $as_echo "yes" >&6; }
5740 else
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5742 $as_echo "no, using $LN_S" >&6; }
5743 fi
5744
5745 # find the maximum length of command line arguments
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5747 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5748 if ${lt_cv_sys_max_cmd_len+:} false; then :
5749 $as_echo_n "(cached) " >&6
5750 else
5751 i=0
5752 teststring="ABCD"
5753
5754 case $build_os in
5755 msdosdjgpp*)
5756 # On DJGPP, this test can blow up pretty badly due to problems in libc
5757 # (any single argument exceeding 2000 bytes causes a buffer overrun
5758 # during glob expansion). Even if it were fixed, the result of this
5759 # check would be larger than it should be.
5760 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5761 ;;
5762
5763 gnu*)
5764 # Under GNU Hurd, this test is not required because there is
5765 # no limit to the length of command line arguments.
5766 # Libtool will interpret -1 as no limit whatsoever
5767 lt_cv_sys_max_cmd_len=-1;
5768 ;;
5769
5770 cygwin* | mingw* | cegcc*)
5771 # On Win9x/ME, this test blows up -- it succeeds, but takes
5772 # about 5 minutes as the teststring grows exponentially.
5773 # Worse, since 9x/ME are not pre-emptively multitasking,
5774 # you end up with a "frozen" computer, even though with patience
5775 # the test eventually succeeds (with a max line length of 256k).
5776 # Instead, let's just punt: use the minimum linelength reported by
5777 # all of the supported platforms: 8192 (on NT/2K/XP).
5778 lt_cv_sys_max_cmd_len=8192;
5779 ;;
5780
5781 mint*)
5782 # On MiNT this can take a long time and run out of memory.
5783 lt_cv_sys_max_cmd_len=8192;
5784 ;;
5785
5786 amigaos*)
5787 # On AmigaOS with pdksh, this test takes hours, literally.
5788 # So we just punt and use a minimum line length of 8192.
5789 lt_cv_sys_max_cmd_len=8192;
5790 ;;
5791
5792 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5793 # This has been around since 386BSD, at least. Likely further.
5794 if test -x /sbin/sysctl; then
5795 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5796 elif test -x /usr/sbin/sysctl; then
5797 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5798 else
5799 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5800 fi
5801 # And add a safety zone
5802 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5803 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5804 ;;
5805
5806 interix*)
5807 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5808 lt_cv_sys_max_cmd_len=196608
5809 ;;
5810
5811 osf*)
5812 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5813 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5814 # nice to cause kernel panics so lets avoid the loop below.
5815 # First set a reasonable default.
5816 lt_cv_sys_max_cmd_len=16384
5817 #
5818 if test -x /sbin/sysconfig; then
5819 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5820 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5821 esac
5822 fi
5823 ;;
5824 sco3.2v5*)
5825 lt_cv_sys_max_cmd_len=102400
5826 ;;
5827 sysv5* | sco5v6* | sysv4.2uw2*)
5828 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5829 if test -n "$kargmax"; then
5830 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5831 else
5832 lt_cv_sys_max_cmd_len=32768
5833 fi
5834 ;;
5835 *)
5836 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5837 if test -n "$lt_cv_sys_max_cmd_len"; then
5838 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5839 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5840 else
5841 # Make teststring a little bigger before we do anything with it.
5842 # a 1K string should be a reasonable start.
5843 for i in 1 2 3 4 5 6 7 8 ; do
5844 teststring=$teststring$teststring
5845 done
5846 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5847 # If test is not a shell built-in, we'll probably end up computing a
5848 # maximum length that is only half of the actual maximum length, but
5849 # we can't tell.
5850 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5851 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5852 test $i != 17 # 1/2 MB should be enough
5853 do
5854 i=`expr $i + 1`
5855 teststring=$teststring$teststring
5856 done
5857 # Only check the string length outside the loop.
5858 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5859 teststring=
5860 # Add a significant safety factor because C++ compilers can tack on
5861 # massive amounts of additional arguments before passing them to the
5862 # linker. It appears as though 1/2 is a usable value.
5863 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5864 fi
5865 ;;
5866 esac
5867
5868 fi
5869
5870 if test -n $lt_cv_sys_max_cmd_len ; then
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5872 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5873 else
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5875 $as_echo "none" >&6; }
5876 fi
5877 max_cmd_len=$lt_cv_sys_max_cmd_len
5878
5879
5880
5881
5882
5883
5884 : ${CP="cp -f"}
5885 : ${MV="mv -f"}
5886 : ${RM="rm -f"}
5887
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5889 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5890 # Try some XSI features
5891 xsi_shell=no
5892 ( _lt_dummy="a/b/c"
5893 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5894 = c,a/b,, \
5895 && eval 'test $(( 1 + 1 )) -eq 2 \
5896 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5897 && xsi_shell=yes
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5899 $as_echo "$xsi_shell" >&6; }
5900
5901
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5903 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5904 lt_shell_append=no
5905 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5906 >/dev/null 2>&1 \
5907 && lt_shell_append=yes
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5909 $as_echo "$lt_shell_append" >&6; }
5910
5911
5912 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5913 lt_unset=unset
5914 else
5915 lt_unset=false
5916 fi
5917
5918
5919
5920
5921
5922 # test EBCDIC or ASCII
5923 case `echo X|tr X '\101'` in
5924 A) # ASCII based system
5925 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5926 lt_SP2NL='tr \040 \012'
5927 lt_NL2SP='tr \015\012 \040\040'
5928 ;;
5929 *) # EBCDIC based system
5930 lt_SP2NL='tr \100 \n'
5931 lt_NL2SP='tr \r\n \100\100'
5932 ;;
5933 esac
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5944 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5945 if ${lt_cv_ld_reload_flag+:} false; then :
5946 $as_echo_n "(cached) " >&6
5947 else
5948 lt_cv_ld_reload_flag='-r'
5949 fi
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5951 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5952 reload_flag=$lt_cv_ld_reload_flag
5953 case $reload_flag in
5954 "" | " "*) ;;
5955 *) reload_flag=" $reload_flag" ;;
5956 esac
5957 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5958 case $host_os in
5959 darwin*)
5960 if test "$GCC" = yes; then
5961 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5962 else
5963 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5964 fi
5965 ;;
5966 esac
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976 if test -n "$ac_tool_prefix"; then
5977 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5978 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5980 $as_echo_n "checking for $ac_word... " >&6; }
5981 if ${ac_cv_prog_OBJDUMP+:} false; then :
5982 $as_echo_n "(cached) " >&6
5983 else
5984 if test -n "$OBJDUMP"; then
5985 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5986 else
5987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5988 for as_dir in $PATH
5989 do
5990 IFS=$as_save_IFS
5991 test -z "$as_dir" && as_dir=.
5992 for ac_exec_ext in '' $ac_executable_extensions; do
5993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5994 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5996 break 2
5997 fi
5998 done
5999 done
6000 IFS=$as_save_IFS
6001
6002 fi
6003 fi
6004 OBJDUMP=$ac_cv_prog_OBJDUMP
6005 if test -n "$OBJDUMP"; then
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6007 $as_echo "$OBJDUMP" >&6; }
6008 else
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6010 $as_echo "no" >&6; }
6011 fi
6012
6013
6014 fi
6015 if test -z "$ac_cv_prog_OBJDUMP"; then
6016 ac_ct_OBJDUMP=$OBJDUMP
6017 # Extract the first word of "objdump", so it can be a program name with args.
6018 set dummy objdump; ac_word=$2
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6020 $as_echo_n "checking for $ac_word... " >&6; }
6021 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6022 $as_echo_n "(cached) " >&6
6023 else
6024 if test -n "$ac_ct_OBJDUMP"; then
6025 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6026 else
6027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6028 for as_dir in $PATH
6029 do
6030 IFS=$as_save_IFS
6031 test -z "$as_dir" && as_dir=.
6032 for ac_exec_ext in '' $ac_executable_extensions; do
6033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6034 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6036 break 2
6037 fi
6038 done
6039 done
6040 IFS=$as_save_IFS
6041
6042 fi
6043 fi
6044 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6045 if test -n "$ac_ct_OBJDUMP"; then
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6047 $as_echo "$ac_ct_OBJDUMP" >&6; }
6048 else
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6050 $as_echo "no" >&6; }
6051 fi
6052
6053 if test "x$ac_ct_OBJDUMP" = x; then
6054 OBJDUMP="false"
6055 else
6056 case $cross_compiling:$ac_tool_warned in
6057 yes:)
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6059 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6060 ac_tool_warned=yes ;;
6061 esac
6062 OBJDUMP=$ac_ct_OBJDUMP
6063 fi
6064 else
6065 OBJDUMP="$ac_cv_prog_OBJDUMP"
6066 fi
6067
6068 test -z "$OBJDUMP" && OBJDUMP=objdump
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6079 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6080 if ${lt_cv_deplibs_check_method+:} false; then :
6081 $as_echo_n "(cached) " >&6
6082 else
6083 lt_cv_file_magic_cmd='$MAGIC_CMD'
6084 lt_cv_file_magic_test_file=
6085 lt_cv_deplibs_check_method='unknown'
6086 # Need to set the preceding variable on all platforms that support
6087 # interlibrary dependencies.
6088 # 'none' -- dependencies not supported.
6089 # `unknown' -- same as none, but documents that we really don't know.
6090 # 'pass_all' -- all dependencies passed with no checks.
6091 # 'test_compile' -- check by making test program.
6092 # 'file_magic [[regex]]' -- check by looking for files in library path
6093 # which responds to the $file_magic_cmd with a given extended regex.
6094 # If you have `file' or equivalent on your system and you're not sure
6095 # whether `pass_all' will *always* work, you probably want this one.
6096
6097 case $host_os in
6098 aix[4-9]*)
6099 lt_cv_deplibs_check_method=pass_all
6100 ;;
6101
6102 beos*)
6103 lt_cv_deplibs_check_method=pass_all
6104 ;;
6105
6106 bsdi[45]*)
6107 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6108 lt_cv_file_magic_cmd='/usr/bin/file -L'
6109 lt_cv_file_magic_test_file=/shlib/libc.so
6110 ;;
6111
6112 cygwin*)
6113 # func_win32_libid is a shell function defined in ltmain.sh
6114 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6115 lt_cv_file_magic_cmd='func_win32_libid'
6116 ;;
6117
6118 mingw* | pw32*)
6119 # Base MSYS/MinGW do not provide the 'file' command needed by
6120 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6121 # unless we find 'file', for example because we are cross-compiling.
6122 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6123 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6124 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6125 lt_cv_file_magic_cmd='func_win32_libid'
6126 else
6127 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6128 lt_cv_file_magic_cmd='$OBJDUMP -f'
6129 fi
6130 ;;
6131
6132 cegcc*)
6133 # use the weaker test based on 'objdump'. See mingw*.
6134 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6135 lt_cv_file_magic_cmd='$OBJDUMP -f'
6136 ;;
6137
6138 darwin* | rhapsody*)
6139 lt_cv_deplibs_check_method=pass_all
6140 ;;
6141
6142 freebsd* | dragonfly*)
6143 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6144 case $host_cpu in
6145 i*86 )
6146 # Not sure whether the presence of OpenBSD here was a mistake.
6147 # Let's accept both of them until this is cleared up.
6148 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6149 lt_cv_file_magic_cmd=/usr/bin/file
6150 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6151 ;;
6152 esac
6153 else
6154 lt_cv_deplibs_check_method=pass_all
6155 fi
6156 ;;
6157
6158 gnu*)
6159 lt_cv_deplibs_check_method=pass_all
6160 ;;
6161
6162 haiku*)
6163 lt_cv_deplibs_check_method=pass_all
6164 ;;
6165
6166 hpux10.20* | hpux11*)
6167 lt_cv_file_magic_cmd=/usr/bin/file
6168 case $host_cpu in
6169 ia64*)
6170 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6171 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6172 ;;
6173 hppa*64*)
6174 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]'
6175 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6176 ;;
6177 *)
6178 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6179 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6180 ;;
6181 esac
6182 ;;
6183
6184 interix[3-9]*)
6185 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6186 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6187 ;;
6188
6189 irix5* | irix6* | nonstopux*)
6190 case $LD in
6191 *-32|*"-32 ") libmagic=32-bit;;
6192 *-n32|*"-n32 ") libmagic=N32;;
6193 *-64|*"-64 ") libmagic=64-bit;;
6194 *) libmagic=never-match;;
6195 esac
6196 lt_cv_deplibs_check_method=pass_all
6197 ;;
6198
6199 # This must be Linux ELF.
6200 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6201 lt_cv_deplibs_check_method=pass_all
6202 ;;
6203
6204 netbsd*)
6205 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6206 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6207 else
6208 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6209 fi
6210 ;;
6211
6212 newos6*)
6213 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6214 lt_cv_file_magic_cmd=/usr/bin/file
6215 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6216 ;;
6217
6218 *nto* | *qnx*)
6219 lt_cv_deplibs_check_method=pass_all
6220 ;;
6221
6222 openbsd*)
6223 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6224 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6225 else
6226 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6227 fi
6228 ;;
6229
6230 osf3* | osf4* | osf5*)
6231 lt_cv_deplibs_check_method=pass_all
6232 ;;
6233
6234 rdos*)
6235 lt_cv_deplibs_check_method=pass_all
6236 ;;
6237
6238 solaris*)
6239 lt_cv_deplibs_check_method=pass_all
6240 ;;
6241
6242 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6243 lt_cv_deplibs_check_method=pass_all
6244 ;;
6245
6246 sysv4 | sysv4.3*)
6247 case $host_vendor in
6248 motorola)
6249 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]'
6250 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6251 ;;
6252 ncr)
6253 lt_cv_deplibs_check_method=pass_all
6254 ;;
6255 sequent)
6256 lt_cv_file_magic_cmd='/bin/file'
6257 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6258 ;;
6259 sni)
6260 lt_cv_file_magic_cmd='/bin/file'
6261 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6262 lt_cv_file_magic_test_file=/lib/libc.so
6263 ;;
6264 siemens)
6265 lt_cv_deplibs_check_method=pass_all
6266 ;;
6267 pc)
6268 lt_cv_deplibs_check_method=pass_all
6269 ;;
6270 esac
6271 ;;
6272
6273 tpf*)
6274 lt_cv_deplibs_check_method=pass_all
6275 ;;
6276 esac
6277
6278 fi
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6280 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6281 file_magic_cmd=$lt_cv_file_magic_cmd
6282 deplibs_check_method=$lt_cv_deplibs_check_method
6283 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296 if test -n "$ac_tool_prefix"; then
6297 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6298 set dummy ${ac_tool_prefix}ar; ac_word=$2
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6300 $as_echo_n "checking for $ac_word... " >&6; }
6301 if ${ac_cv_prog_AR+:} false; then :
6302 $as_echo_n "(cached) " >&6
6303 else
6304 if test -n "$AR"; then
6305 ac_cv_prog_AR="$AR" # Let the user override the test.
6306 else
6307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6308 for as_dir in $PATH
6309 do
6310 IFS=$as_save_IFS
6311 test -z "$as_dir" && as_dir=.
6312 for ac_exec_ext in '' $ac_executable_extensions; do
6313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6314 ac_cv_prog_AR="${ac_tool_prefix}ar"
6315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6316 break 2
6317 fi
6318 done
6319 done
6320 IFS=$as_save_IFS
6321
6322 fi
6323 fi
6324 AR=$ac_cv_prog_AR
6325 if test -n "$AR"; then
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6327 $as_echo "$AR" >&6; }
6328 else
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6330 $as_echo "no" >&6; }
6331 fi
6332
6333
6334 fi
6335 if test -z "$ac_cv_prog_AR"; then
6336 ac_ct_AR=$AR
6337 # Extract the first word of "ar", so it can be a program name with args.
6338 set dummy ar; ac_word=$2
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6340 $as_echo_n "checking for $ac_word... " >&6; }
6341 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6342 $as_echo_n "(cached) " >&6
6343 else
6344 if test -n "$ac_ct_AR"; then
6345 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6346 else
6347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6348 for as_dir in $PATH
6349 do
6350 IFS=$as_save_IFS
6351 test -z "$as_dir" && as_dir=.
6352 for ac_exec_ext in '' $ac_executable_extensions; do
6353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6354 ac_cv_prog_ac_ct_AR="ar"
6355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6356 break 2
6357 fi
6358 done
6359 done
6360 IFS=$as_save_IFS
6361
6362 fi
6363 fi
6364 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6365 if test -n "$ac_ct_AR"; then
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6367 $as_echo "$ac_ct_AR" >&6; }
6368 else
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6370 $as_echo "no" >&6; }
6371 fi
6372
6373 if test "x$ac_ct_AR" = x; then
6374 AR="false"
6375 else
6376 case $cross_compiling:$ac_tool_warned in
6377 yes:)
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6379 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6380 ac_tool_warned=yes ;;
6381 esac
6382 AR=$ac_ct_AR
6383 fi
6384 else
6385 AR="$ac_cv_prog_AR"
6386 fi
6387
6388 test -z "$AR" && AR=ar
6389 test -z "$AR_FLAGS" && AR_FLAGS=cru
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401 if test -n "$ac_tool_prefix"; then
6402 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6403 set dummy ${ac_tool_prefix}strip; ac_word=$2
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6405 $as_echo_n "checking for $ac_word... " >&6; }
6406 if ${ac_cv_prog_STRIP+:} false; then :
6407 $as_echo_n "(cached) " >&6
6408 else
6409 if test -n "$STRIP"; then
6410 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6411 else
6412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6413 for as_dir in $PATH
6414 do
6415 IFS=$as_save_IFS
6416 test -z "$as_dir" && as_dir=.
6417 for ac_exec_ext in '' $ac_executable_extensions; do
6418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6419 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6421 break 2
6422 fi
6423 done
6424 done
6425 IFS=$as_save_IFS
6426
6427 fi
6428 fi
6429 STRIP=$ac_cv_prog_STRIP
6430 if test -n "$STRIP"; then
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6432 $as_echo "$STRIP" >&6; }
6433 else
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6435 $as_echo "no" >&6; }
6436 fi
6437
6438
6439 fi
6440 if test -z "$ac_cv_prog_STRIP"; then
6441 ac_ct_STRIP=$STRIP
6442 # Extract the first word of "strip", so it can be a program name with args.
6443 set dummy strip; ac_word=$2
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6445 $as_echo_n "checking for $ac_word... " >&6; }
6446 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6447 $as_echo_n "(cached) " >&6
6448 else
6449 if test -n "$ac_ct_STRIP"; then
6450 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6451 else
6452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6453 for as_dir in $PATH
6454 do
6455 IFS=$as_save_IFS
6456 test -z "$as_dir" && as_dir=.
6457 for ac_exec_ext in '' $ac_executable_extensions; do
6458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6459 ac_cv_prog_ac_ct_STRIP="strip"
6460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6461 break 2
6462 fi
6463 done
6464 done
6465 IFS=$as_save_IFS
6466
6467 fi
6468 fi
6469 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6470 if test -n "$ac_ct_STRIP"; then
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6472 $as_echo "$ac_ct_STRIP" >&6; }
6473 else
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6475 $as_echo "no" >&6; }
6476 fi
6477
6478 if test "x$ac_ct_STRIP" = x; then
6479 STRIP=":"
6480 else
6481 case $cross_compiling:$ac_tool_warned in
6482 yes:)
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6485 ac_tool_warned=yes ;;
6486 esac
6487 STRIP=$ac_ct_STRIP
6488 fi
6489 else
6490 STRIP="$ac_cv_prog_STRIP"
6491 fi
6492
6493 test -z "$STRIP" && STRIP=:
6494
6495
6496
6497
6498
6499
6500 if test -n "$ac_tool_prefix"; then
6501 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6502 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6504 $as_echo_n "checking for $ac_word... " >&6; }
6505 if ${ac_cv_prog_RANLIB+:} false; then :
6506 $as_echo_n "(cached) " >&6
6507 else
6508 if test -n "$RANLIB"; then
6509 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6510 else
6511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6512 for as_dir in $PATH
6513 do
6514 IFS=$as_save_IFS
6515 test -z "$as_dir" && as_dir=.
6516 for ac_exec_ext in '' $ac_executable_extensions; do
6517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6518 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6520 break 2
6521 fi
6522 done
6523 done
6524 IFS=$as_save_IFS
6525
6526 fi
6527 fi
6528 RANLIB=$ac_cv_prog_RANLIB
6529 if test -n "$RANLIB"; then
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6531 $as_echo "$RANLIB" >&6; }
6532 else
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6534 $as_echo "no" >&6; }
6535 fi
6536
6537
6538 fi
6539 if test -z "$ac_cv_prog_RANLIB"; then
6540 ac_ct_RANLIB=$RANLIB
6541 # Extract the first word of "ranlib", so it can be a program name with args.
6542 set dummy ranlib; ac_word=$2
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6544 $as_echo_n "checking for $ac_word... " >&6; }
6545 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6546 $as_echo_n "(cached) " >&6
6547 else
6548 if test -n "$ac_ct_RANLIB"; then
6549 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6550 else
6551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6552 for as_dir in $PATH
6553 do
6554 IFS=$as_save_IFS
6555 test -z "$as_dir" && as_dir=.
6556 for ac_exec_ext in '' $ac_executable_extensions; do
6557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6558 ac_cv_prog_ac_ct_RANLIB="ranlib"
6559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6560 break 2
6561 fi
6562 done
6563 done
6564 IFS=$as_save_IFS
6565
6566 fi
6567 fi
6568 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6569 if test -n "$ac_ct_RANLIB"; then
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6571 $as_echo "$ac_ct_RANLIB" >&6; }
6572 else
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6574 $as_echo "no" >&6; }
6575 fi
6576
6577 if test "x$ac_ct_RANLIB" = x; then
6578 RANLIB=":"
6579 else
6580 case $cross_compiling:$ac_tool_warned in
6581 yes:)
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6583 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6584 ac_tool_warned=yes ;;
6585 esac
6586 RANLIB=$ac_ct_RANLIB
6587 fi
6588 else
6589 RANLIB="$ac_cv_prog_RANLIB"
6590 fi
6591
6592 test -z "$RANLIB" && RANLIB=:
6593
6594
6595
6596
6597
6598
6599 # Determine commands to create old-style static archives.
6600 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6601 old_postinstall_cmds='chmod 644 $oldlib'
6602 old_postuninstall_cmds=
6603
6604 if test -n "$RANLIB"; then
6605 case $host_os in
6606 openbsd*)
6607 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6608 ;;
6609 *)
6610 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6611 ;;
6612 esac
6613 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6614 fi
6615
6616 case $host_os in
6617 darwin*)
6618 lock_old_archive_extraction=yes ;;
6619 *)
6620 lock_old_archive_extraction=no ;;
6621 esac
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661 # If no C compiler was specified, use CC.
6662 LTCC=${LTCC-"$CC"}
6663
6664 # If no C compiler flags were specified, use CFLAGS.
6665 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6666
6667 # Allow CC to be a program name with arguments.
6668 compiler=$CC
6669
6670
6671 # Check for command to grab the raw symbol name followed by C symbol from nm.
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6673 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6674 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6675 $as_echo_n "(cached) " >&6
6676 else
6677
6678 # These are sane defaults that work on at least a few old systems.
6679 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6680
6681 # Character class describing NM global symbol codes.
6682 symcode='[BCDEGRST]'
6683
6684 # Regexp to match symbols that can be accessed directly from C.
6685 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6686
6687 # Define system-specific variables.
6688 case $host_os in
6689 aix*)
6690 symcode='[BCDT]'
6691 ;;
6692 cygwin* | mingw* | pw32* | cegcc*)
6693 symcode='[ABCDGISTW]'
6694 ;;
6695 hpux*)
6696 if test "$host_cpu" = ia64; then
6697 symcode='[ABCDEGRST]'
6698 fi
6699 ;;
6700 irix* | nonstopux*)
6701 symcode='[BCDEGRST]'
6702 ;;
6703 osf*)
6704 symcode='[BCDEGQRST]'
6705 ;;
6706 solaris*)
6707 symcode='[BDRT]'
6708 ;;
6709 sco3.2v5*)
6710 symcode='[DT]'
6711 ;;
6712 sysv4.2uw2*)
6713 symcode='[DT]'
6714 ;;
6715 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6716 symcode='[ABDT]'
6717 ;;
6718 sysv4)
6719 symcode='[DFNSTU]'
6720 ;;
6721 esac
6722
6723 # If we're using GNU nm, then use its standard symbol codes.
6724 case `$NM -V 2>&1` in
6725 *GNU* | *'with BFD'*)
6726 symcode='[ABCDGIRSTW]' ;;
6727 esac
6728
6729 # Transform an extracted symbol line into a proper C declaration.
6730 # Some systems (esp. on ia64) link data and code symbols differently,
6731 # so use this general approach.
6732 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6733
6734 # Transform an extracted symbol line into symbol name and symbol address
6735 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6736 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'"
6737
6738 # Handle CRLF in mingw tool chain
6739 opt_cr=
6740 case $build_os in
6741 mingw*)
6742 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6743 ;;
6744 esac
6745
6746 # Try without a prefix underscore, then with it.
6747 for ac_symprfx in "" "_"; do
6748
6749 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6750 symxfrm="\\1 $ac_symprfx\\2 \\2"
6751
6752 # Write the raw and C identifiers.
6753 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6754 # Fake it for dumpbin and say T for any non-static function
6755 # and D for any global variable.
6756 # Also find C++ and __fastcall symbols from MSVC++,
6757 # which start with @ or ?.
6758 lt_cv_sys_global_symbol_pipe="$AWK '"\
6759 " {last_section=section; section=\$ 3};"\
6760 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6761 " \$ 0!~/External *\|/{next};"\
6762 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6763 " {if(hide[section]) next};"\
6764 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6765 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6766 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6767 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6768 " ' prfx=^$ac_symprfx"
6769 else
6770 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6771 fi
6772
6773 # Check to see that the pipe works correctly.
6774 pipe_works=no
6775
6776 rm -f conftest*
6777 cat > conftest.$ac_ext <<_LT_EOF
6778 #ifdef __cplusplus
6779 extern "C" {
6780 #endif
6781 char nm_test_var;
6782 void nm_test_func(void);
6783 void nm_test_func(void){}
6784 #ifdef __cplusplus
6785 }
6786 #endif
6787 int main(){nm_test_var='a';nm_test_func();return(0);}
6788 _LT_EOF
6789
6790 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6791 (eval $ac_compile) 2>&5
6792 ac_status=$?
6793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6794 test $ac_status = 0; }; then
6795 # Now try to grab the symbols.
6796 nlist=conftest.nm
6797 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6798 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6799 ac_status=$?
6800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6801 test $ac_status = 0; } && test -s "$nlist"; then
6802 # Try sorting and uniquifying the output.
6803 if sort "$nlist" | uniq > "$nlist"T; then
6804 mv -f "$nlist"T "$nlist"
6805 else
6806 rm -f "$nlist"T
6807 fi
6808
6809 # Make sure that we snagged all the symbols we need.
6810 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6811 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6812 cat <<_LT_EOF > conftest.$ac_ext
6813 #ifdef __cplusplus
6814 extern "C" {
6815 #endif
6816
6817 _LT_EOF
6818 # Now generate the symbol file.
6819 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6820
6821 cat <<_LT_EOF >> conftest.$ac_ext
6822
6823 /* The mapping between symbol names and symbols. */
6824 const struct {
6825 const char *name;
6826 void *address;
6827 }
6828 lt__PROGRAM__LTX_preloaded_symbols[] =
6829 {
6830 { "@PROGRAM@", (void *) 0 },
6831 _LT_EOF
6832 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6833 cat <<\_LT_EOF >> conftest.$ac_ext
6834 {0, (void *) 0}
6835 };
6836
6837 /* This works around a problem in FreeBSD linker */
6838 #ifdef FREEBSD_WORKAROUND
6839 static const void *lt_preloaded_setup() {
6840 return lt__PROGRAM__LTX_preloaded_symbols;
6841 }
6842 #endif
6843
6844 #ifdef __cplusplus
6845 }
6846 #endif
6847 _LT_EOF
6848 # Now try linking the two files.
6849 mv conftest.$ac_objext conftstm.$ac_objext
6850 lt_save_LIBS="$LIBS"
6851 lt_save_CFLAGS="$CFLAGS"
6852 LIBS="conftstm.$ac_objext"
6853 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6854 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6855 (eval $ac_link) 2>&5
6856 ac_status=$?
6857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6858 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6859 pipe_works=yes
6860 fi
6861 LIBS="$lt_save_LIBS"
6862 CFLAGS="$lt_save_CFLAGS"
6863 else
6864 echo "cannot find nm_test_func in $nlist" >&5
6865 fi
6866 else
6867 echo "cannot find nm_test_var in $nlist" >&5
6868 fi
6869 else
6870 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6871 fi
6872 else
6873 echo "$progname: failed program was:" >&5
6874 cat conftest.$ac_ext >&5
6875 fi
6876 rm -rf conftest* conftst*
6877
6878 # Do not use the global_symbol_pipe unless it works.
6879 if test "$pipe_works" = yes; then
6880 break
6881 else
6882 lt_cv_sys_global_symbol_pipe=
6883 fi
6884 done
6885
6886 fi
6887
6888 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6889 lt_cv_sys_global_symbol_to_cdecl=
6890 fi
6891 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6893 $as_echo "failed" >&6; }
6894 else
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6896 $as_echo "ok" >&6; }
6897 fi
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921 # Check whether --enable-libtool-lock was given.
6922 if test "${enable_libtool_lock+set}" = set; then :
6923 enableval=$enable_libtool_lock;
6924 fi
6925
6926 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6927
6928 # Some flags need to be propagated to the compiler or linker for good
6929 # libtool support.
6930 case $host in
6931 ia64-*-hpux*)
6932 # Find out which ABI we are using.
6933 echo 'int i;' > conftest.$ac_ext
6934 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6935 (eval $ac_compile) 2>&5
6936 ac_status=$?
6937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6938 test $ac_status = 0; }; then
6939 case `/usr/bin/file conftest.$ac_objext` in
6940 *ELF-32*)
6941 HPUX_IA64_MODE="32"
6942 ;;
6943 *ELF-64*)
6944 HPUX_IA64_MODE="64"
6945 ;;
6946 esac
6947 fi
6948 rm -rf conftest*
6949 ;;
6950 *-*-irix6*)
6951 # Find out which ABI we are using.
6952 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6953 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6954 (eval $ac_compile) 2>&5
6955 ac_status=$?
6956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6957 test $ac_status = 0; }; then
6958 if test "$lt_cv_prog_gnu_ld" = yes; then
6959 case `/usr/bin/file conftest.$ac_objext` in
6960 *32-bit*)
6961 LD="${LD-ld} -melf32bsmip"
6962 ;;
6963 *N32*)
6964 LD="${LD-ld} -melf32bmipn32"
6965 ;;
6966 *64-bit*)
6967 LD="${LD-ld} -melf64bmip"
6968 ;;
6969 esac
6970 else
6971 case `/usr/bin/file conftest.$ac_objext` in
6972 *32-bit*)
6973 LD="${LD-ld} -32"
6974 ;;
6975 *N32*)
6976 LD="${LD-ld} -n32"
6977 ;;
6978 *64-bit*)
6979 LD="${LD-ld} -64"
6980 ;;
6981 esac
6982 fi
6983 fi
6984 rm -rf conftest*
6985 ;;
6986
6987 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6988 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6989 # Find out which ABI we are using.
6990 echo 'int i;' > conftest.$ac_ext
6991 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6992 (eval $ac_compile) 2>&5
6993 ac_status=$?
6994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6995 test $ac_status = 0; }; then
6996 case `/usr/bin/file conftest.o` in
6997 *32-bit*)
6998 case $host in
6999 x86_64-*kfreebsd*-gnu)
7000 LD="${LD-ld} -m elf_i386_fbsd"
7001 ;;
7002 x86_64-*linux*)
7003 case `/usr/bin/file conftest.o` in
7004 *x86-64*)
7005 LD="${LD-ld} -m elf32_x86_64"
7006 ;;
7007 *)
7008 LD="${LD-ld} -m elf_i386"
7009 ;;
7010 esac
7011 ;;
7012 powerpc64le-*linux*)
7013 LD="${LD-ld} -m elf32lppclinux"
7014 ;;
7015 powerpc64-*linux*)
7016 LD="${LD-ld} -m elf32ppclinux"
7017 ;;
7018 s390x-*linux*)
7019 LD="${LD-ld} -m elf_s390"
7020 ;;
7021 sparc64-*linux*)
7022 LD="${LD-ld} -m elf32_sparc"
7023 ;;
7024 esac
7025 ;;
7026 *64-bit*)
7027 case $host in
7028 x86_64-*kfreebsd*-gnu)
7029 LD="${LD-ld} -m elf_x86_64_fbsd"
7030 ;;
7031 x86_64-*linux*)
7032 LD="${LD-ld} -m elf_x86_64"
7033 ;;
7034 powerpcle-*linux*)
7035 LD="${LD-ld} -m elf64lppc"
7036 ;;
7037 powerpc-*linux*)
7038 LD="${LD-ld} -m elf64ppc"
7039 ;;
7040 s390*-*linux*|s390*-*tpf*)
7041 LD="${LD-ld} -m elf64_s390"
7042 ;;
7043 sparc*-*linux*)
7044 LD="${LD-ld} -m elf64_sparc"
7045 ;;
7046 esac
7047 ;;
7048 esac
7049 fi
7050 rm -rf conftest*
7051 ;;
7052
7053 *-*-sco3.2v5*)
7054 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7055 SAVE_CFLAGS="$CFLAGS"
7056 CFLAGS="$CFLAGS -belf"
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7058 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7059 if ${lt_cv_cc_needs_belf+:} false; then :
7060 $as_echo_n "(cached) " >&6
7061 else
7062 ac_ext=c
7063 ac_cpp='$CPP $CPPFLAGS'
7064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7067
7068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7069 /* end confdefs.h. */
7070
7071 int
7072 main ()
7073 {
7074
7075 ;
7076 return 0;
7077 }
7078 _ACEOF
7079 if ac_fn_c_try_link "$LINENO"; then :
7080 lt_cv_cc_needs_belf=yes
7081 else
7082 lt_cv_cc_needs_belf=no
7083 fi
7084 rm -f core conftest.err conftest.$ac_objext \
7085 conftest$ac_exeext conftest.$ac_ext
7086 ac_ext=c
7087 ac_cpp='$CPP $CPPFLAGS'
7088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7091
7092 fi
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7094 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7095 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7096 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7097 CFLAGS="$SAVE_CFLAGS"
7098 fi
7099 ;;
7100 sparc*-*solaris*)
7101 # Find out which ABI we are using.
7102 echo 'int i;' > conftest.$ac_ext
7103 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7104 (eval $ac_compile) 2>&5
7105 ac_status=$?
7106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7107 test $ac_status = 0; }; then
7108 case `/usr/bin/file conftest.o` in
7109 *64-bit*)
7110 case $lt_cv_prog_gnu_ld in
7111 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7112 *)
7113 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7114 LD="${LD-ld} -64"
7115 fi
7116 ;;
7117 esac
7118 ;;
7119 esac
7120 fi
7121 rm -rf conftest*
7122 ;;
7123 esac
7124
7125 need_locks="$enable_libtool_lock"
7126
7127
7128 case $host_os in
7129 rhapsody* | darwin*)
7130 if test -n "$ac_tool_prefix"; then
7131 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7132 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7134 $as_echo_n "checking for $ac_word... " >&6; }
7135 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7136 $as_echo_n "(cached) " >&6
7137 else
7138 if test -n "$DSYMUTIL"; then
7139 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7140 else
7141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7142 for as_dir in $PATH
7143 do
7144 IFS=$as_save_IFS
7145 test -z "$as_dir" && as_dir=.
7146 for ac_exec_ext in '' $ac_executable_extensions; do
7147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7148 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7150 break 2
7151 fi
7152 done
7153 done
7154 IFS=$as_save_IFS
7155
7156 fi
7157 fi
7158 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7159 if test -n "$DSYMUTIL"; then
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7161 $as_echo "$DSYMUTIL" >&6; }
7162 else
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7164 $as_echo "no" >&6; }
7165 fi
7166
7167
7168 fi
7169 if test -z "$ac_cv_prog_DSYMUTIL"; then
7170 ac_ct_DSYMUTIL=$DSYMUTIL
7171 # Extract the first word of "dsymutil", so it can be a program name with args.
7172 set dummy dsymutil; ac_word=$2
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7174 $as_echo_n "checking for $ac_word... " >&6; }
7175 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7176 $as_echo_n "(cached) " >&6
7177 else
7178 if test -n "$ac_ct_DSYMUTIL"; then
7179 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7180 else
7181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7182 for as_dir in $PATH
7183 do
7184 IFS=$as_save_IFS
7185 test -z "$as_dir" && as_dir=.
7186 for ac_exec_ext in '' $ac_executable_extensions; do
7187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7188 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7190 break 2
7191 fi
7192 done
7193 done
7194 IFS=$as_save_IFS
7195
7196 fi
7197 fi
7198 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7199 if test -n "$ac_ct_DSYMUTIL"; then
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7201 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7202 else
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7204 $as_echo "no" >&6; }
7205 fi
7206
7207 if test "x$ac_ct_DSYMUTIL" = x; then
7208 DSYMUTIL=":"
7209 else
7210 case $cross_compiling:$ac_tool_warned in
7211 yes:)
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7214 ac_tool_warned=yes ;;
7215 esac
7216 DSYMUTIL=$ac_ct_DSYMUTIL
7217 fi
7218 else
7219 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7220 fi
7221
7222 if test -n "$ac_tool_prefix"; then
7223 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7224 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7226 $as_echo_n "checking for $ac_word... " >&6; }
7227 if ${ac_cv_prog_NMEDIT+:} false; then :
7228 $as_echo_n "(cached) " >&6
7229 else
7230 if test -n "$NMEDIT"; then
7231 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7232 else
7233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7234 for as_dir in $PATH
7235 do
7236 IFS=$as_save_IFS
7237 test -z "$as_dir" && as_dir=.
7238 for ac_exec_ext in '' $ac_executable_extensions; do
7239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7240 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7242 break 2
7243 fi
7244 done
7245 done
7246 IFS=$as_save_IFS
7247
7248 fi
7249 fi
7250 NMEDIT=$ac_cv_prog_NMEDIT
7251 if test -n "$NMEDIT"; then
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7253 $as_echo "$NMEDIT" >&6; }
7254 else
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7256 $as_echo "no" >&6; }
7257 fi
7258
7259
7260 fi
7261 if test -z "$ac_cv_prog_NMEDIT"; then
7262 ac_ct_NMEDIT=$NMEDIT
7263 # Extract the first word of "nmedit", so it can be a program name with args.
7264 set dummy nmedit; ac_word=$2
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7266 $as_echo_n "checking for $ac_word... " >&6; }
7267 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7268 $as_echo_n "(cached) " >&6
7269 else
7270 if test -n "$ac_ct_NMEDIT"; then
7271 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7272 else
7273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274 for as_dir in $PATH
7275 do
7276 IFS=$as_save_IFS
7277 test -z "$as_dir" && as_dir=.
7278 for ac_exec_ext in '' $ac_executable_extensions; do
7279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7280 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7282 break 2
7283 fi
7284 done
7285 done
7286 IFS=$as_save_IFS
7287
7288 fi
7289 fi
7290 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7291 if test -n "$ac_ct_NMEDIT"; then
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7293 $as_echo "$ac_ct_NMEDIT" >&6; }
7294 else
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7296 $as_echo "no" >&6; }
7297 fi
7298
7299 if test "x$ac_ct_NMEDIT" = x; then
7300 NMEDIT=":"
7301 else
7302 case $cross_compiling:$ac_tool_warned in
7303 yes:)
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7306 ac_tool_warned=yes ;;
7307 esac
7308 NMEDIT=$ac_ct_NMEDIT
7309 fi
7310 else
7311 NMEDIT="$ac_cv_prog_NMEDIT"
7312 fi
7313
7314 if test -n "$ac_tool_prefix"; then
7315 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7316 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7318 $as_echo_n "checking for $ac_word... " >&6; }
7319 if ${ac_cv_prog_LIPO+:} false; then :
7320 $as_echo_n "(cached) " >&6
7321 else
7322 if test -n "$LIPO"; then
7323 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7324 else
7325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7326 for as_dir in $PATH
7327 do
7328 IFS=$as_save_IFS
7329 test -z "$as_dir" && as_dir=.
7330 for ac_exec_ext in '' $ac_executable_extensions; do
7331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7332 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7334 break 2
7335 fi
7336 done
7337 done
7338 IFS=$as_save_IFS
7339
7340 fi
7341 fi
7342 LIPO=$ac_cv_prog_LIPO
7343 if test -n "$LIPO"; then
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7345 $as_echo "$LIPO" >&6; }
7346 else
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7348 $as_echo "no" >&6; }
7349 fi
7350
7351
7352 fi
7353 if test -z "$ac_cv_prog_LIPO"; then
7354 ac_ct_LIPO=$LIPO
7355 # Extract the first word of "lipo", so it can be a program name with args.
7356 set dummy lipo; ac_word=$2
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7358 $as_echo_n "checking for $ac_word... " >&6; }
7359 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7360 $as_echo_n "(cached) " >&6
7361 else
7362 if test -n "$ac_ct_LIPO"; then
7363 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7364 else
7365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7366 for as_dir in $PATH
7367 do
7368 IFS=$as_save_IFS
7369 test -z "$as_dir" && as_dir=.
7370 for ac_exec_ext in '' $ac_executable_extensions; do
7371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7372 ac_cv_prog_ac_ct_LIPO="lipo"
7373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7374 break 2
7375 fi
7376 done
7377 done
7378 IFS=$as_save_IFS
7379
7380 fi
7381 fi
7382 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7383 if test -n "$ac_ct_LIPO"; then
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7385 $as_echo "$ac_ct_LIPO" >&6; }
7386 else
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7388 $as_echo "no" >&6; }
7389 fi
7390
7391 if test "x$ac_ct_LIPO" = x; then
7392 LIPO=":"
7393 else
7394 case $cross_compiling:$ac_tool_warned in
7395 yes:)
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7398 ac_tool_warned=yes ;;
7399 esac
7400 LIPO=$ac_ct_LIPO
7401 fi
7402 else
7403 LIPO="$ac_cv_prog_LIPO"
7404 fi
7405
7406 if test -n "$ac_tool_prefix"; then
7407 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7408 set dummy ${ac_tool_prefix}otool; ac_word=$2
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7410 $as_echo_n "checking for $ac_word... " >&6; }
7411 if ${ac_cv_prog_OTOOL+:} false; then :
7412 $as_echo_n "(cached) " >&6
7413 else
7414 if test -n "$OTOOL"; then
7415 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7416 else
7417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7418 for as_dir in $PATH
7419 do
7420 IFS=$as_save_IFS
7421 test -z "$as_dir" && as_dir=.
7422 for ac_exec_ext in '' $ac_executable_extensions; do
7423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7424 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7426 break 2
7427 fi
7428 done
7429 done
7430 IFS=$as_save_IFS
7431
7432 fi
7433 fi
7434 OTOOL=$ac_cv_prog_OTOOL
7435 if test -n "$OTOOL"; then
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7437 $as_echo "$OTOOL" >&6; }
7438 else
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7440 $as_echo "no" >&6; }
7441 fi
7442
7443
7444 fi
7445 if test -z "$ac_cv_prog_OTOOL"; then
7446 ac_ct_OTOOL=$OTOOL
7447 # Extract the first word of "otool", so it can be a program name with args.
7448 set dummy otool; ac_word=$2
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7450 $as_echo_n "checking for $ac_word... " >&6; }
7451 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7452 $as_echo_n "(cached) " >&6
7453 else
7454 if test -n "$ac_ct_OTOOL"; then
7455 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7456 else
7457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7458 for as_dir in $PATH
7459 do
7460 IFS=$as_save_IFS
7461 test -z "$as_dir" && as_dir=.
7462 for ac_exec_ext in '' $ac_executable_extensions; do
7463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7464 ac_cv_prog_ac_ct_OTOOL="otool"
7465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7466 break 2
7467 fi
7468 done
7469 done
7470 IFS=$as_save_IFS
7471
7472 fi
7473 fi
7474 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7475 if test -n "$ac_ct_OTOOL"; then
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7477 $as_echo "$ac_ct_OTOOL" >&6; }
7478 else
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7480 $as_echo "no" >&6; }
7481 fi
7482
7483 if test "x$ac_ct_OTOOL" = x; then
7484 OTOOL=":"
7485 else
7486 case $cross_compiling:$ac_tool_warned in
7487 yes:)
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7489 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7490 ac_tool_warned=yes ;;
7491 esac
7492 OTOOL=$ac_ct_OTOOL
7493 fi
7494 else
7495 OTOOL="$ac_cv_prog_OTOOL"
7496 fi
7497
7498 if test -n "$ac_tool_prefix"; then
7499 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7500 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7502 $as_echo_n "checking for $ac_word... " >&6; }
7503 if ${ac_cv_prog_OTOOL64+:} false; then :
7504 $as_echo_n "(cached) " >&6
7505 else
7506 if test -n "$OTOOL64"; then
7507 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7508 else
7509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7510 for as_dir in $PATH
7511 do
7512 IFS=$as_save_IFS
7513 test -z "$as_dir" && as_dir=.
7514 for ac_exec_ext in '' $ac_executable_extensions; do
7515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7516 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7518 break 2
7519 fi
7520 done
7521 done
7522 IFS=$as_save_IFS
7523
7524 fi
7525 fi
7526 OTOOL64=$ac_cv_prog_OTOOL64
7527 if test -n "$OTOOL64"; then
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7529 $as_echo "$OTOOL64" >&6; }
7530 else
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7532 $as_echo "no" >&6; }
7533 fi
7534
7535
7536 fi
7537 if test -z "$ac_cv_prog_OTOOL64"; then
7538 ac_ct_OTOOL64=$OTOOL64
7539 # Extract the first word of "otool64", so it can be a program name with args.
7540 set dummy otool64; ac_word=$2
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7542 $as_echo_n "checking for $ac_word... " >&6; }
7543 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7544 $as_echo_n "(cached) " >&6
7545 else
7546 if test -n "$ac_ct_OTOOL64"; then
7547 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7548 else
7549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7550 for as_dir in $PATH
7551 do
7552 IFS=$as_save_IFS
7553 test -z "$as_dir" && as_dir=.
7554 for ac_exec_ext in '' $ac_executable_extensions; do
7555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7556 ac_cv_prog_ac_ct_OTOOL64="otool64"
7557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7558 break 2
7559 fi
7560 done
7561 done
7562 IFS=$as_save_IFS
7563
7564 fi
7565 fi
7566 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7567 if test -n "$ac_ct_OTOOL64"; then
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7569 $as_echo "$ac_ct_OTOOL64" >&6; }
7570 else
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7572 $as_echo "no" >&6; }
7573 fi
7574
7575 if test "x$ac_ct_OTOOL64" = x; then
7576 OTOOL64=":"
7577 else
7578 case $cross_compiling:$ac_tool_warned in
7579 yes:)
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7582 ac_tool_warned=yes ;;
7583 esac
7584 OTOOL64=$ac_ct_OTOOL64
7585 fi
7586 else
7587 OTOOL64="$ac_cv_prog_OTOOL64"
7588 fi
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7617 $as_echo_n "checking for -single_module linker flag... " >&6; }
7618 if ${lt_cv_apple_cc_single_mod+:} false; then :
7619 $as_echo_n "(cached) " >&6
7620 else
7621 lt_cv_apple_cc_single_mod=no
7622 if test -z "${LT_MULTI_MODULE}"; then
7623 # By default we will add the -single_module flag. You can override
7624 # by either setting the environment variable LT_MULTI_MODULE
7625 # non-empty at configure time, or by adding -multi_module to the
7626 # link flags.
7627 rm -rf libconftest.dylib*
7628 echo "int foo(void){return 1;}" > conftest.c
7629 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7630 -dynamiclib -Wl,-single_module conftest.c" >&5
7631 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7632 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7633 _lt_result=$?
7634 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7635 lt_cv_apple_cc_single_mod=yes
7636 else
7637 cat conftest.err >&5
7638 fi
7639 rm -rf libconftest.dylib*
7640 rm -f conftest.*
7641 fi
7642 fi
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7644 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7646 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7647 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7648 $as_echo_n "(cached) " >&6
7649 else
7650 lt_cv_ld_exported_symbols_list=no
7651 save_LDFLAGS=$LDFLAGS
7652 echo "_main" > conftest.sym
7653 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7655 /* end confdefs.h. */
7656
7657 int
7658 main ()
7659 {
7660
7661 ;
7662 return 0;
7663 }
7664 _ACEOF
7665 if ac_fn_c_try_link "$LINENO"; then :
7666 lt_cv_ld_exported_symbols_list=yes
7667 else
7668 lt_cv_ld_exported_symbols_list=no
7669 fi
7670 rm -f core conftest.err conftest.$ac_objext \
7671 conftest$ac_exeext conftest.$ac_ext
7672 LDFLAGS="$save_LDFLAGS"
7673
7674 fi
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7676 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7678 $as_echo_n "checking for -force_load linker flag... " >&6; }
7679 if ${lt_cv_ld_force_load+:} false; then :
7680 $as_echo_n "(cached) " >&6
7681 else
7682 lt_cv_ld_force_load=no
7683 cat > conftest.c << _LT_EOF
7684 int forced_loaded() { return 2;}
7685 _LT_EOF
7686 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7687 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7688 echo "$AR cru libconftest.a conftest.o" >&5
7689 $AR cru libconftest.a conftest.o 2>&5
7690 cat > conftest.c << _LT_EOF
7691 int main() { return 0;}
7692 _LT_EOF
7693 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7694 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7695 _lt_result=$?
7696 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7697 lt_cv_ld_force_load=yes
7698 else
7699 cat conftest.err >&5
7700 fi
7701 rm -f conftest.err libconftest.a conftest conftest.c
7702 rm -rf conftest.dSYM
7703
7704 fi
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7706 $as_echo "$lt_cv_ld_force_load" >&6; }
7707 case $host_os in
7708 rhapsody* | darwin1.[012])
7709 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7710 darwin1.*)
7711 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7712 darwin*) # darwin 5.x on
7713 # if running on 10.5 or later, the deployment target defaults
7714 # to the OS version, if on x86, and 10.4, the deployment
7715 # target defaults to 10.4. Don't you love it?
7716 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7717 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7718 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7719 10.[012][,.]*)
7720 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7721 10.*)
7722 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7723 esac
7724 ;;
7725 esac
7726 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7727 _lt_dar_single_mod='$single_module'
7728 fi
7729 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7730 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7731 else
7732 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7733 fi
7734 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7735 _lt_dsymutil='~$DSYMUTIL $lib || :'
7736 else
7737 _lt_dsymutil=
7738 fi
7739 ;;
7740 esac
7741
7742 ac_ext=c
7743 ac_cpp='$CPP $CPPFLAGS'
7744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7748 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7749 # On Suns, sometimes $CPP names a directory.
7750 if test -n "$CPP" && test -d "$CPP"; then
7751 CPP=
7752 fi
7753 if test -z "$CPP"; then
7754 if ${ac_cv_prog_CPP+:} false; then :
7755 $as_echo_n "(cached) " >&6
7756 else
7757 # Double quotes because CPP needs to be expanded
7758 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7759 do
7760 ac_preproc_ok=false
7761 for ac_c_preproc_warn_flag in '' yes
7762 do
7763 # Use a header file that comes with gcc, so configuring glibc
7764 # with a fresh cross-compiler works.
7765 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7766 # <limits.h> exists even on freestanding compilers.
7767 # On the NeXT, cc -E runs the code through the compiler's parser,
7768 # not just through cpp. "Syntax error" is here to catch this case.
7769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7770 /* end confdefs.h. */
7771 #ifdef __STDC__
7772 # include <limits.h>
7773 #else
7774 # include <assert.h>
7775 #endif
7776 Syntax error
7777 _ACEOF
7778 if ac_fn_c_try_cpp "$LINENO"; then :
7779
7780 else
7781 # Broken: fails on valid input.
7782 continue
7783 fi
7784 rm -f conftest.err conftest.i conftest.$ac_ext
7785
7786 # OK, works on sane cases. Now check whether nonexistent headers
7787 # can be detected and how.
7788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7789 /* end confdefs.h. */
7790 #include <ac_nonexistent.h>
7791 _ACEOF
7792 if ac_fn_c_try_cpp "$LINENO"; then :
7793 # Broken: success on invalid input.
7794 continue
7795 else
7796 # Passes both tests.
7797 ac_preproc_ok=:
7798 break
7799 fi
7800 rm -f conftest.err conftest.i conftest.$ac_ext
7801
7802 done
7803 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7804 rm -f conftest.i conftest.err conftest.$ac_ext
7805 if $ac_preproc_ok; then :
7806 break
7807 fi
7808
7809 done
7810 ac_cv_prog_CPP=$CPP
7811
7812 fi
7813 CPP=$ac_cv_prog_CPP
7814 else
7815 ac_cv_prog_CPP=$CPP
7816 fi
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7818 $as_echo "$CPP" >&6; }
7819 ac_preproc_ok=false
7820 for ac_c_preproc_warn_flag in '' yes
7821 do
7822 # Use a header file that comes with gcc, so configuring glibc
7823 # with a fresh cross-compiler works.
7824 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7825 # <limits.h> exists even on freestanding compilers.
7826 # On the NeXT, cc -E runs the code through the compiler's parser,
7827 # not just through cpp. "Syntax error" is here to catch this case.
7828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7829 /* end confdefs.h. */
7830 #ifdef __STDC__
7831 # include <limits.h>
7832 #else
7833 # include <assert.h>
7834 #endif
7835 Syntax error
7836 _ACEOF
7837 if ac_fn_c_try_cpp "$LINENO"; then :
7838
7839 else
7840 # Broken: fails on valid input.
7841 continue
7842 fi
7843 rm -f conftest.err conftest.i conftest.$ac_ext
7844
7845 # OK, works on sane cases. Now check whether nonexistent headers
7846 # can be detected and how.
7847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7848 /* end confdefs.h. */
7849 #include <ac_nonexistent.h>
7850 _ACEOF
7851 if ac_fn_c_try_cpp "$LINENO"; then :
7852 # Broken: success on invalid input.
7853 continue
7854 else
7855 # Passes both tests.
7856 ac_preproc_ok=:
7857 break
7858 fi
7859 rm -f conftest.err conftest.i conftest.$ac_ext
7860
7861 done
7862 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7863 rm -f conftest.i conftest.err conftest.$ac_ext
7864 if $ac_preproc_ok; then :
7865
7866 else
7867 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7868 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7869 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7870 See \`config.log' for more details" "$LINENO" 5; }
7871 fi
7872
7873 ac_ext=c
7874 ac_cpp='$CPP $CPPFLAGS'
7875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7878
7879
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7881 $as_echo_n "checking for ANSI C header files... " >&6; }
7882 if ${ac_cv_header_stdc+:} false; then :
7883 $as_echo_n "(cached) " >&6
7884 else
7885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7886 /* end confdefs.h. */
7887 #include <stdlib.h>
7888 #include <stdarg.h>
7889 #include <string.h>
7890 #include <float.h>
7891
7892 int
7893 main ()
7894 {
7895
7896 ;
7897 return 0;
7898 }
7899 _ACEOF
7900 if ac_fn_c_try_compile "$LINENO"; then :
7901 ac_cv_header_stdc=yes
7902 else
7903 ac_cv_header_stdc=no
7904 fi
7905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7906
7907 if test $ac_cv_header_stdc = yes; then
7908 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7910 /* end confdefs.h. */
7911 #include <string.h>
7912
7913 _ACEOF
7914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7915 $EGREP "memchr" >/dev/null 2>&1; then :
7916
7917 else
7918 ac_cv_header_stdc=no
7919 fi
7920 rm -f conftest*
7921
7922 fi
7923
7924 if test $ac_cv_header_stdc = yes; then
7925 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7927 /* end confdefs.h. */
7928 #include <stdlib.h>
7929
7930 _ACEOF
7931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7932 $EGREP "free" >/dev/null 2>&1; then :
7933
7934 else
7935 ac_cv_header_stdc=no
7936 fi
7937 rm -f conftest*
7938
7939 fi
7940
7941 if test $ac_cv_header_stdc = yes; then
7942 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7943 if test "$cross_compiling" = yes; then :
7944 :
7945 else
7946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7947 /* end confdefs.h. */
7948 #include <ctype.h>
7949 #include <stdlib.h>
7950 #if ((' ' & 0x0FF) == 0x020)
7951 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7952 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7953 #else
7954 # define ISLOWER(c) \
7955 (('a' <= (c) && (c) <= 'i') \
7956 || ('j' <= (c) && (c) <= 'r') \
7957 || ('s' <= (c) && (c) <= 'z'))
7958 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7959 #endif
7960
7961 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7962 int
7963 main ()
7964 {
7965 int i;
7966 for (i = 0; i < 256; i++)
7967 if (XOR (islower (i), ISLOWER (i))
7968 || toupper (i) != TOUPPER (i))
7969 return 2;
7970 return 0;
7971 }
7972 _ACEOF
7973 if ac_fn_c_try_run "$LINENO"; then :
7974
7975 else
7976 ac_cv_header_stdc=no
7977 fi
7978 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7979 conftest.$ac_objext conftest.beam conftest.$ac_ext
7980 fi
7981
7982 fi
7983 fi
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7985 $as_echo "$ac_cv_header_stdc" >&6; }
7986 if test $ac_cv_header_stdc = yes; then
7987
7988 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7989
7990 fi
7991
7992 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7993 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7994 inttypes.h stdint.h unistd.h
7995 do :
7996 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7997 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7998 "
7999 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8000 cat >>confdefs.h <<_ACEOF
8001 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8002 _ACEOF
8003
8004 fi
8005
8006 done
8007
8008
8009 for ac_header in dlfcn.h
8010 do :
8011 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8012 "
8013 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8014 cat >>confdefs.h <<_ACEOF
8015 #define HAVE_DLFCN_H 1
8016 _ACEOF
8017
8018 fi
8019
8020 done
8021
8022
8023
8024
8025
8026 # Set options
8027 enable_dlopen=yes
8028
8029
8030
8031
8032 enable_win32_dll=no
8033
8034
8035 # Check whether --enable-shared was given.
8036 if test "${enable_shared+set}" = set; then :
8037 enableval=$enable_shared; p=${PACKAGE-default}
8038 case $enableval in
8039 yes) enable_shared=yes ;;
8040 no) enable_shared=no ;;
8041 *)
8042 enable_shared=no
8043 # Look at the argument we got. We use all the common list separators.
8044 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8045 for pkg in $enableval; do
8046 IFS="$lt_save_ifs"
8047 if test "X$pkg" = "X$p"; then
8048 enable_shared=yes
8049 fi
8050 done
8051 IFS="$lt_save_ifs"
8052 ;;
8053 esac
8054 else
8055 enable_shared=yes
8056 fi
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066 # Check whether --enable-static was given.
8067 if test "${enable_static+set}" = set; then :
8068 enableval=$enable_static; p=${PACKAGE-default}
8069 case $enableval in
8070 yes) enable_static=yes ;;
8071 no) enable_static=no ;;
8072 *)
8073 enable_static=no
8074 # Look at the argument we got. We use all the common list separators.
8075 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8076 for pkg in $enableval; do
8077 IFS="$lt_save_ifs"
8078 if test "X$pkg" = "X$p"; then
8079 enable_static=yes
8080 fi
8081 done
8082 IFS="$lt_save_ifs"
8083 ;;
8084 esac
8085 else
8086 enable_static=yes
8087 fi
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098 # Check whether --with-pic was given.
8099 if test "${with_pic+set}" = set; then :
8100 withval=$with_pic; pic_mode="$withval"
8101 else
8102 pic_mode=default
8103 fi
8104
8105
8106 test -z "$pic_mode" && pic_mode=default
8107
8108
8109
8110
8111
8112
8113
8114 # Check whether --enable-fast-install was given.
8115 if test "${enable_fast_install+set}" = set; then :
8116 enableval=$enable_fast_install; p=${PACKAGE-default}
8117 case $enableval in
8118 yes) enable_fast_install=yes ;;
8119 no) enable_fast_install=no ;;
8120 *)
8121 enable_fast_install=no
8122 # Look at the argument we got. We use all the common list separators.
8123 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8124 for pkg in $enableval; do
8125 IFS="$lt_save_ifs"
8126 if test "X$pkg" = "X$p"; then
8127 enable_fast_install=yes
8128 fi
8129 done
8130 IFS="$lt_save_ifs"
8131 ;;
8132 esac
8133 else
8134 enable_fast_install=yes
8135 fi
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147 # This can be used to rebuild libtool when needed
8148 LIBTOOL_DEPS="$ltmain"
8149
8150 # Always use our own libtool.
8151 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178 test -z "$LN_S" && LN_S="ln -s"
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193 if test -n "${ZSH_VERSION+set}" ; then
8194 setopt NO_GLOB_SUBST
8195 fi
8196
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8198 $as_echo_n "checking for objdir... " >&6; }
8199 if ${lt_cv_objdir+:} false; then :
8200 $as_echo_n "(cached) " >&6
8201 else
8202 rm -f .libs 2>/dev/null
8203 mkdir .libs 2>/dev/null
8204 if test -d .libs; then
8205 lt_cv_objdir=.libs
8206 else
8207 # MS-DOS does not allow filenames that begin with a dot.
8208 lt_cv_objdir=_libs
8209 fi
8210 rmdir .libs 2>/dev/null
8211 fi
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8213 $as_echo "$lt_cv_objdir" >&6; }
8214 objdir=$lt_cv_objdir
8215
8216
8217
8218
8219
8220 cat >>confdefs.h <<_ACEOF
8221 #define LT_OBJDIR "$lt_cv_objdir/"
8222 _ACEOF
8223
8224
8225
8226
8227 case $host_os in
8228 aix3*)
8229 # AIX sometimes has problems with the GCC collect2 program. For some
8230 # reason, if we set the COLLECT_NAMES environment variable, the problems
8231 # vanish in a puff of smoke.
8232 if test "X${COLLECT_NAMES+set}" != Xset; then
8233 COLLECT_NAMES=
8234 export COLLECT_NAMES
8235 fi
8236 ;;
8237 esac
8238
8239 # Global variables:
8240 ofile=libtool
8241 can_build_shared=yes
8242
8243 # All known linkers require a `.a' archive for static linking (except MSVC,
8244 # which needs '.lib').
8245 libext=a
8246
8247 with_gnu_ld="$lt_cv_prog_gnu_ld"
8248
8249 old_CC="$CC"
8250 old_CFLAGS="$CFLAGS"
8251
8252 # Set sane defaults for various variables
8253 test -z "$CC" && CC=cc
8254 test -z "$LTCC" && LTCC=$CC
8255 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8256 test -z "$LD" && LD=ld
8257 test -z "$ac_objext" && ac_objext=o
8258
8259 for cc_temp in $compiler""; do
8260 case $cc_temp in
8261 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8262 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8263 \-*) ;;
8264 *) break;;
8265 esac
8266 done
8267 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8268
8269
8270 # Only perform the check for file, if the check method requires it
8271 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8272 case $deplibs_check_method in
8273 file_magic*)
8274 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8276 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8277 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8278 $as_echo_n "(cached) " >&6
8279 else
8280 case $MAGIC_CMD in
8281 [\\/*] | ?:[\\/]*)
8282 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8283 ;;
8284 *)
8285 lt_save_MAGIC_CMD="$MAGIC_CMD"
8286 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8287 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8288 for ac_dir in $ac_dummy; do
8289 IFS="$lt_save_ifs"
8290 test -z "$ac_dir" && ac_dir=.
8291 if test -f $ac_dir/${ac_tool_prefix}file; then
8292 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8293 if test -n "$file_magic_test_file"; then
8294 case $deplibs_check_method in
8295 "file_magic "*)
8296 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8297 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8298 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8299 $EGREP "$file_magic_regex" > /dev/null; then
8300 :
8301 else
8302 cat <<_LT_EOF 1>&2
8303
8304 *** Warning: the command libtool uses to detect shared libraries,
8305 *** $file_magic_cmd, produces output that libtool cannot recognize.
8306 *** The result is that libtool may fail to recognize shared libraries
8307 *** as such. This will affect the creation of libtool libraries that
8308 *** depend on shared libraries, but programs linked with such libtool
8309 *** libraries will work regardless of this problem. Nevertheless, you
8310 *** may want to report the problem to your system manager and/or to
8311 *** bug-libtool@gnu.org
8312
8313 _LT_EOF
8314 fi ;;
8315 esac
8316 fi
8317 break
8318 fi
8319 done
8320 IFS="$lt_save_ifs"
8321 MAGIC_CMD="$lt_save_MAGIC_CMD"
8322 ;;
8323 esac
8324 fi
8325
8326 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8327 if test -n "$MAGIC_CMD"; then
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8329 $as_echo "$MAGIC_CMD" >&6; }
8330 else
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8332 $as_echo "no" >&6; }
8333 fi
8334
8335
8336
8337
8338
8339 if test -z "$lt_cv_path_MAGIC_CMD"; then
8340 if test -n "$ac_tool_prefix"; then
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8342 $as_echo_n "checking for file... " >&6; }
8343 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8344 $as_echo_n "(cached) " >&6
8345 else
8346 case $MAGIC_CMD in
8347 [\\/*] | ?:[\\/]*)
8348 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8349 ;;
8350 *)
8351 lt_save_MAGIC_CMD="$MAGIC_CMD"
8352 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8353 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8354 for ac_dir in $ac_dummy; do
8355 IFS="$lt_save_ifs"
8356 test -z "$ac_dir" && ac_dir=.
8357 if test -f $ac_dir/file; then
8358 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8359 if test -n "$file_magic_test_file"; then
8360 case $deplibs_check_method in
8361 "file_magic "*)
8362 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8363 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8364 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8365 $EGREP "$file_magic_regex" > /dev/null; then
8366 :
8367 else
8368 cat <<_LT_EOF 1>&2
8369
8370 *** Warning: the command libtool uses to detect shared libraries,
8371 *** $file_magic_cmd, produces output that libtool cannot recognize.
8372 *** The result is that libtool may fail to recognize shared libraries
8373 *** as such. This will affect the creation of libtool libraries that
8374 *** depend on shared libraries, but programs linked with such libtool
8375 *** libraries will work regardless of this problem. Nevertheless, you
8376 *** may want to report the problem to your system manager and/or to
8377 *** bug-libtool@gnu.org
8378
8379 _LT_EOF
8380 fi ;;
8381 esac
8382 fi
8383 break
8384 fi
8385 done
8386 IFS="$lt_save_ifs"
8387 MAGIC_CMD="$lt_save_MAGIC_CMD"
8388 ;;
8389 esac
8390 fi
8391
8392 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8393 if test -n "$MAGIC_CMD"; then
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8395 $as_echo "$MAGIC_CMD" >&6; }
8396 else
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8398 $as_echo "no" >&6; }
8399 fi
8400
8401
8402 else
8403 MAGIC_CMD=:
8404 fi
8405 fi
8406
8407 fi
8408 ;;
8409 esac
8410
8411 # Use C for the default configuration in the libtool script
8412
8413 lt_save_CC="$CC"
8414 ac_ext=c
8415 ac_cpp='$CPP $CPPFLAGS'
8416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8419
8420
8421 # Source file extension for C test sources.
8422 ac_ext=c
8423
8424 # Object file extension for compiled C test sources.
8425 objext=o
8426 objext=$objext
8427
8428 # Code to be used in simple compile tests
8429 lt_simple_compile_test_code="int some_variable = 0;"
8430
8431 # Code to be used in simple link tests
8432 lt_simple_link_test_code='int main(){return(0);}'
8433
8434
8435
8436
8437
8438
8439
8440 # If no C compiler was specified, use CC.
8441 LTCC=${LTCC-"$CC"}
8442
8443 # If no C compiler flags were specified, use CFLAGS.
8444 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8445
8446 # Allow CC to be a program name with arguments.
8447 compiler=$CC
8448
8449 # Save the default compiler, since it gets overwritten when the other
8450 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8451 compiler_DEFAULT=$CC
8452
8453 # save warnings/boilerplate of simple test code
8454 ac_outfile=conftest.$ac_objext
8455 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8456 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8457 _lt_compiler_boilerplate=`cat conftest.err`
8458 $RM conftest*
8459
8460 ac_outfile=conftest.$ac_objext
8461 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8462 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8463 _lt_linker_boilerplate=`cat conftest.err`
8464 $RM -r conftest*
8465
8466
8467 ## CAVEAT EMPTOR:
8468 ## There is no encapsulation within the following macros, do not change
8469 ## the running order or otherwise move them around unless you know exactly
8470 ## what you are doing...
8471 if test -n "$compiler"; then
8472
8473 lt_prog_compiler_no_builtin_flag=
8474
8475 if test "$GCC" = yes; then
8476 case $cc_basename in
8477 nvcc*)
8478 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8479 *)
8480 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8481 esac
8482
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8484 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8485 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8486 $as_echo_n "(cached) " >&6
8487 else
8488 lt_cv_prog_compiler_rtti_exceptions=no
8489 ac_outfile=conftest.$ac_objext
8490 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8491 lt_compiler_flag="-fno-rtti -fno-exceptions"
8492 # Insert the option either (1) after the last *FLAGS variable, or
8493 # (2) before a word containing "conftest.", or (3) at the end.
8494 # Note that $ac_compile itself does not contain backslashes and begins
8495 # with a dollar sign (not a hyphen), so the echo should work correctly.
8496 # The option is referenced via a variable to avoid confusing sed.
8497 lt_compile=`echo "$ac_compile" | $SED \
8498 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8499 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8500 -e 's:$: $lt_compiler_flag:'`
8501 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8502 (eval "$lt_compile" 2>conftest.err)
8503 ac_status=$?
8504 cat conftest.err >&5
8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 if (exit $ac_status) && test -s "$ac_outfile"; then
8507 # The compiler can only warn and ignore the option if not recognized
8508 # So say no if there are warnings other than the usual output.
8509 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8510 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8511 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8512 lt_cv_prog_compiler_rtti_exceptions=yes
8513 fi
8514 fi
8515 $RM conftest*
8516
8517 fi
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8519 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8520
8521 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8522 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8523 else
8524 :
8525 fi
8526
8527 fi
8528
8529
8530
8531
8532
8533
8534 lt_prog_compiler_wl=
8535 lt_prog_compiler_pic=
8536 lt_prog_compiler_static=
8537
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8539 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8540
8541 if test "$GCC" = yes; then
8542 lt_prog_compiler_wl='-Wl,'
8543 lt_prog_compiler_static='-static'
8544
8545 case $host_os in
8546 aix*)
8547 # All AIX code is PIC.
8548 if test "$host_cpu" = ia64; then
8549 # AIX 5 now supports IA64 processor
8550 lt_prog_compiler_static='-Bstatic'
8551 fi
8552 lt_prog_compiler_pic='-fPIC'
8553 ;;
8554
8555 amigaos*)
8556 case $host_cpu in
8557 powerpc)
8558 # see comment about AmigaOS4 .so support
8559 lt_prog_compiler_pic='-fPIC'
8560 ;;
8561 m68k)
8562 # FIXME: we need at least 68020 code to build shared libraries, but
8563 # adding the `-m68020' flag to GCC prevents building anything better,
8564 # like `-m68040'.
8565 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8566 ;;
8567 esac
8568 ;;
8569
8570 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8571 # PIC is the default for these OSes.
8572 ;;
8573
8574 mingw* | cygwin* | pw32* | os2* | cegcc*)
8575 # This hack is so that the source file can tell whether it is being
8576 # built for inclusion in a dll (and should export symbols for example).
8577 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8578 # (--disable-auto-import) libraries
8579 lt_prog_compiler_pic='-DDLL_EXPORT'
8580 ;;
8581
8582 darwin* | rhapsody*)
8583 # PIC is the default on this platform
8584 # Common symbols not allowed in MH_DYLIB files
8585 lt_prog_compiler_pic='-fno-common'
8586 ;;
8587
8588 haiku*)
8589 # PIC is the default for Haiku.
8590 # The "-static" flag exists, but is broken.
8591 lt_prog_compiler_static=
8592 ;;
8593
8594 hpux*)
8595 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8596 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8597 # sets the default TLS model and affects inlining.
8598 case $host_cpu in
8599 hppa*64*)
8600 # +Z the default
8601 ;;
8602 *)
8603 lt_prog_compiler_pic='-fPIC'
8604 ;;
8605 esac
8606 ;;
8607
8608 interix[3-9]*)
8609 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8610 # Instead, we relocate shared libraries at runtime.
8611 ;;
8612
8613 msdosdjgpp*)
8614 # Just because we use GCC doesn't mean we suddenly get shared libraries
8615 # on systems that don't support them.
8616 lt_prog_compiler_can_build_shared=no
8617 enable_shared=no
8618 ;;
8619
8620 *nto* | *qnx*)
8621 # QNX uses GNU C++, but need to define -shared option too, otherwise
8622 # it will coredump.
8623 lt_prog_compiler_pic='-fPIC -shared'
8624 ;;
8625
8626 sysv4*MP*)
8627 if test -d /usr/nec; then
8628 lt_prog_compiler_pic=-Kconform_pic
8629 fi
8630 ;;
8631
8632 *)
8633 lt_prog_compiler_pic='-fPIC'
8634 ;;
8635 esac
8636
8637 case $cc_basename in
8638 nvcc*) # Cuda Compiler Driver 2.2
8639 lt_prog_compiler_wl='-Xlinker '
8640 lt_prog_compiler_pic='-Xcompiler -fPIC'
8641 ;;
8642 esac
8643 else
8644 # PORTME Check for flag to pass linker flags through the system compiler.
8645 case $host_os in
8646 aix*)
8647 lt_prog_compiler_wl='-Wl,'
8648 if test "$host_cpu" = ia64; then
8649 # AIX 5 now supports IA64 processor
8650 lt_prog_compiler_static='-Bstatic'
8651 else
8652 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8653 fi
8654 ;;
8655
8656 mingw* | cygwin* | pw32* | os2* | cegcc*)
8657 # This hack is so that the source file can tell whether it is being
8658 # built for inclusion in a dll (and should export symbols for example).
8659 lt_prog_compiler_pic='-DDLL_EXPORT'
8660 ;;
8661
8662 hpux9* | hpux10* | hpux11*)
8663 lt_prog_compiler_wl='-Wl,'
8664 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8665 # not for PA HP-UX.
8666 case $host_cpu in
8667 hppa*64*|ia64*)
8668 # +Z the default
8669 ;;
8670 *)
8671 lt_prog_compiler_pic='+Z'
8672 ;;
8673 esac
8674 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8675 lt_prog_compiler_static='${wl}-a ${wl}archive'
8676 ;;
8677
8678 irix5* | irix6* | nonstopux*)
8679 lt_prog_compiler_wl='-Wl,'
8680 # PIC (with -KPIC) is the default.
8681 lt_prog_compiler_static='-non_shared'
8682 ;;
8683
8684 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8685 case $cc_basename in
8686 # old Intel for x86_64 which still supported -KPIC.
8687 ecc*)
8688 lt_prog_compiler_wl='-Wl,'
8689 lt_prog_compiler_pic='-KPIC'
8690 lt_prog_compiler_static='-static'
8691 ;;
8692 # icc used to be incompatible with GCC.
8693 # ICC 10 doesn't accept -KPIC any more.
8694 icc* | ifort*)
8695 lt_prog_compiler_wl='-Wl,'
8696 lt_prog_compiler_pic='-fPIC'
8697 lt_prog_compiler_static='-static'
8698 ;;
8699 # Lahey Fortran 8.1.
8700 lf95*)
8701 lt_prog_compiler_wl='-Wl,'
8702 lt_prog_compiler_pic='--shared'
8703 lt_prog_compiler_static='--static'
8704 ;;
8705 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8706 # Portland Group compilers (*not* the Pentium gcc compiler,
8707 # which looks to be a dead project)
8708 lt_prog_compiler_wl='-Wl,'
8709 lt_prog_compiler_pic='-fpic'
8710 lt_prog_compiler_static='-Bstatic'
8711 ;;
8712 ccc*)
8713 lt_prog_compiler_wl='-Wl,'
8714 # All Alpha code is PIC.
8715 lt_prog_compiler_static='-non_shared'
8716 ;;
8717 xl* | bgxl* | bgf* | mpixl*)
8718 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8719 lt_prog_compiler_wl='-Wl,'
8720 lt_prog_compiler_pic='-qpic'
8721 lt_prog_compiler_static='-qstaticlink'
8722 ;;
8723 *)
8724 case `$CC -V 2>&1 | sed 5q` in
8725 *Sun\ F* | *Sun*Fortran*)
8726 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8727 lt_prog_compiler_pic='-KPIC'
8728 lt_prog_compiler_static='-Bstatic'
8729 lt_prog_compiler_wl=''
8730 ;;
8731 *Sun\ C*)
8732 # Sun C 5.9
8733 lt_prog_compiler_pic='-KPIC'
8734 lt_prog_compiler_static='-Bstatic'
8735 lt_prog_compiler_wl='-Wl,'
8736 ;;
8737 esac
8738 ;;
8739 esac
8740 ;;
8741
8742 newsos6)
8743 lt_prog_compiler_pic='-KPIC'
8744 lt_prog_compiler_static='-Bstatic'
8745 ;;
8746
8747 *nto* | *qnx*)
8748 # QNX uses GNU C++, but need to define -shared option too, otherwise
8749 # it will coredump.
8750 lt_prog_compiler_pic='-fPIC -shared'
8751 ;;
8752
8753 osf3* | osf4* | osf5*)
8754 lt_prog_compiler_wl='-Wl,'
8755 # All OSF/1 code is PIC.
8756 lt_prog_compiler_static='-non_shared'
8757 ;;
8758
8759 rdos*)
8760 lt_prog_compiler_static='-non_shared'
8761 ;;
8762
8763 solaris*)
8764 lt_prog_compiler_pic='-KPIC'
8765 lt_prog_compiler_static='-Bstatic'
8766 case $cc_basename in
8767 f77* | f90* | f95*)
8768 lt_prog_compiler_wl='-Qoption ld ';;
8769 *)
8770 lt_prog_compiler_wl='-Wl,';;
8771 esac
8772 ;;
8773
8774 sunos4*)
8775 lt_prog_compiler_wl='-Qoption ld '
8776 lt_prog_compiler_pic='-PIC'
8777 lt_prog_compiler_static='-Bstatic'
8778 ;;
8779
8780 sysv4 | sysv4.2uw2* | sysv4.3*)
8781 lt_prog_compiler_wl='-Wl,'
8782 lt_prog_compiler_pic='-KPIC'
8783 lt_prog_compiler_static='-Bstatic'
8784 ;;
8785
8786 sysv4*MP*)
8787 if test -d /usr/nec ;then
8788 lt_prog_compiler_pic='-Kconform_pic'
8789 lt_prog_compiler_static='-Bstatic'
8790 fi
8791 ;;
8792
8793 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8794 lt_prog_compiler_wl='-Wl,'
8795 lt_prog_compiler_pic='-KPIC'
8796 lt_prog_compiler_static='-Bstatic'
8797 ;;
8798
8799 unicos*)
8800 lt_prog_compiler_wl='-Wl,'
8801 lt_prog_compiler_can_build_shared=no
8802 ;;
8803
8804 uts4*)
8805 lt_prog_compiler_pic='-pic'
8806 lt_prog_compiler_static='-Bstatic'
8807 ;;
8808
8809 *)
8810 lt_prog_compiler_can_build_shared=no
8811 ;;
8812 esac
8813 fi
8814
8815 case $host_os in
8816 # For platforms which do not support PIC, -DPIC is meaningless:
8817 *djgpp*)
8818 lt_prog_compiler_pic=
8819 ;;
8820 *)
8821 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8822 ;;
8823 esac
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8825 $as_echo "$lt_prog_compiler_pic" >&6; }
8826
8827
8828
8829
8830
8831
8832 #
8833 # Check to make sure the PIC flag actually works.
8834 #
8835 if test -n "$lt_prog_compiler_pic"; then
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8837 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8838 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8839 $as_echo_n "(cached) " >&6
8840 else
8841 lt_cv_prog_compiler_pic_works=no
8842 ac_outfile=conftest.$ac_objext
8843 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8844 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8845 # Insert the option either (1) after the last *FLAGS variable, or
8846 # (2) before a word containing "conftest.", or (3) at the end.
8847 # Note that $ac_compile itself does not contain backslashes and begins
8848 # with a dollar sign (not a hyphen), so the echo should work correctly.
8849 # The option is referenced via a variable to avoid confusing sed.
8850 lt_compile=`echo "$ac_compile" | $SED \
8851 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8852 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8853 -e 's:$: $lt_compiler_flag:'`
8854 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8855 (eval "$lt_compile" 2>conftest.err)
8856 ac_status=$?
8857 cat conftest.err >&5
8858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859 if (exit $ac_status) && test -s "$ac_outfile"; then
8860 # The compiler can only warn and ignore the option if not recognized
8861 # So say no if there are warnings other than the usual output.
8862 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8863 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8864 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8865 lt_cv_prog_compiler_pic_works=yes
8866 fi
8867 fi
8868 $RM conftest*
8869
8870 fi
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8872 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8873
8874 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8875 case $lt_prog_compiler_pic in
8876 "" | " "*) ;;
8877 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8878 esac
8879 else
8880 lt_prog_compiler_pic=
8881 lt_prog_compiler_can_build_shared=no
8882 fi
8883
8884 fi
8885
8886
8887
8888
8889
8890
8891 #
8892 # Check to make sure the static flag actually works.
8893 #
8894 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8896 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8897 if ${lt_cv_prog_compiler_static_works+:} false; then :
8898 $as_echo_n "(cached) " >&6
8899 else
8900 lt_cv_prog_compiler_static_works=no
8901 save_LDFLAGS="$LDFLAGS"
8902 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8903 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8904 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8905 # The linker can only warn and ignore the option if not recognized
8906 # So say no if there are warnings
8907 if test -s conftest.err; then
8908 # Append any errors to the config.log.
8909 cat conftest.err 1>&5
8910 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8911 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8912 if diff conftest.exp conftest.er2 >/dev/null; then
8913 lt_cv_prog_compiler_static_works=yes
8914 fi
8915 else
8916 lt_cv_prog_compiler_static_works=yes
8917 fi
8918 fi
8919 $RM -r conftest*
8920 LDFLAGS="$save_LDFLAGS"
8921
8922 fi
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8924 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8925
8926 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8927 :
8928 else
8929 lt_prog_compiler_static=
8930 fi
8931
8932
8933
8934
8935
8936
8937
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8939 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8940 if ${lt_cv_prog_compiler_c_o+:} false; then :
8941 $as_echo_n "(cached) " >&6
8942 else
8943 lt_cv_prog_compiler_c_o=no
8944 $RM -r conftest 2>/dev/null
8945 mkdir conftest
8946 cd conftest
8947 mkdir out
8948 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8949
8950 lt_compiler_flag="-o out/conftest2.$ac_objext"
8951 # Insert the option either (1) after the last *FLAGS variable, or
8952 # (2) before a word containing "conftest.", or (3) at the end.
8953 # Note that $ac_compile itself does not contain backslashes and begins
8954 # with a dollar sign (not a hyphen), so the echo should work correctly.
8955 lt_compile=`echo "$ac_compile" | $SED \
8956 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8957 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8958 -e 's:$: $lt_compiler_flag:'`
8959 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8960 (eval "$lt_compile" 2>out/conftest.err)
8961 ac_status=$?
8962 cat out/conftest.err >&5
8963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8965 then
8966 # The compiler can only warn and ignore the option if not recognized
8967 # So say no if there are warnings
8968 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8969 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8970 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8971 lt_cv_prog_compiler_c_o=yes
8972 fi
8973 fi
8974 chmod u+w . 2>&5
8975 $RM conftest*
8976 # SGI C++ compiler will create directory out/ii_files/ for
8977 # template instantiation
8978 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8979 $RM out/* && rmdir out
8980 cd ..
8981 $RM -r conftest
8982 $RM conftest*
8983
8984 fi
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8986 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8987
8988
8989
8990
8991
8992
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8994 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8995 if ${lt_cv_prog_compiler_c_o+:} false; then :
8996 $as_echo_n "(cached) " >&6
8997 else
8998 lt_cv_prog_compiler_c_o=no
8999 $RM -r conftest 2>/dev/null
9000 mkdir conftest
9001 cd conftest
9002 mkdir out
9003 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9004
9005 lt_compiler_flag="-o out/conftest2.$ac_objext"
9006 # Insert the option either (1) after the last *FLAGS variable, or
9007 # (2) before a word containing "conftest.", or (3) at the end.
9008 # Note that $ac_compile itself does not contain backslashes and begins
9009 # with a dollar sign (not a hyphen), so the echo should work correctly.
9010 lt_compile=`echo "$ac_compile" | $SED \
9011 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9012 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9013 -e 's:$: $lt_compiler_flag:'`
9014 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9015 (eval "$lt_compile" 2>out/conftest.err)
9016 ac_status=$?
9017 cat out/conftest.err >&5
9018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9020 then
9021 # The compiler can only warn and ignore the option if not recognized
9022 # So say no if there are warnings
9023 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9024 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9025 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9026 lt_cv_prog_compiler_c_o=yes
9027 fi
9028 fi
9029 chmod u+w . 2>&5
9030 $RM conftest*
9031 # SGI C++ compiler will create directory out/ii_files/ for
9032 # template instantiation
9033 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9034 $RM out/* && rmdir out
9035 cd ..
9036 $RM -r conftest
9037 $RM conftest*
9038
9039 fi
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9041 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9042
9043
9044
9045
9046 hard_links="nottested"
9047 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9048 # do not overwrite the value of need_locks provided by the user
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9050 $as_echo_n "checking if we can lock with hard links... " >&6; }
9051 hard_links=yes
9052 $RM conftest*
9053 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9054 touch conftest.a
9055 ln conftest.a conftest.b 2>&5 || hard_links=no
9056 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9058 $as_echo "$hard_links" >&6; }
9059 if test "$hard_links" = no; then
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9061 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9062 need_locks=warn
9063 fi
9064 else
9065 need_locks=no
9066 fi
9067
9068
9069
9070
9071
9072
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9074 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9075
9076 runpath_var=
9077 allow_undefined_flag=
9078 always_export_symbols=no
9079 archive_cmds=
9080 archive_expsym_cmds=
9081 compiler_needs_object=no
9082 enable_shared_with_static_runtimes=no
9083 export_dynamic_flag_spec=
9084 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9085 hardcode_automatic=no
9086 hardcode_direct=no
9087 hardcode_direct_absolute=no
9088 hardcode_libdir_flag_spec=
9089 hardcode_libdir_flag_spec_ld=
9090 hardcode_libdir_separator=
9091 hardcode_minus_L=no
9092 hardcode_shlibpath_var=unsupported
9093 inherit_rpath=no
9094 link_all_deplibs=unknown
9095 module_cmds=
9096 module_expsym_cmds=
9097 old_archive_from_new_cmds=
9098 old_archive_from_expsyms_cmds=
9099 thread_safe_flag_spec=
9100 whole_archive_flag_spec=
9101 # include_expsyms should be a list of space-separated symbols to be *always*
9102 # included in the symbol list
9103 include_expsyms=
9104 # exclude_expsyms can be an extended regexp of symbols to exclude
9105 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9106 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9107 # as well as any symbol that contains `d'.
9108 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9109 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9110 # platforms (ab)use it in PIC code, but their linkers get confused if
9111 # the symbol is explicitly referenced. Since portable code cannot
9112 # rely on this symbol name, it's probably fine to never include it in
9113 # preloaded symbol tables.
9114 # Exclude shared library initialization/finalization symbols.
9115 extract_expsyms_cmds=
9116
9117 case $host_os in
9118 cygwin* | mingw* | pw32* | cegcc*)
9119 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9120 # When not using gcc, we currently assume that we are using
9121 # Microsoft Visual C++.
9122 if test "$GCC" != yes; then
9123 with_gnu_ld=no
9124 fi
9125 ;;
9126 interix*)
9127 # we just hope/assume this is gcc and not c89 (= MSVC++)
9128 with_gnu_ld=yes
9129 ;;
9130 openbsd*)
9131 with_gnu_ld=no
9132 ;;
9133 esac
9134
9135 ld_shlibs=yes
9136
9137 # On some targets, GNU ld is compatible enough with the native linker
9138 # that we're better off using the native interface for both.
9139 lt_use_gnu_ld_interface=no
9140 if test "$with_gnu_ld" = yes; then
9141 case $host_os in
9142 aix*)
9143 # The AIX port of GNU ld has always aspired to compatibility
9144 # with the native linker. However, as the warning in the GNU ld
9145 # block says, versions before 2.19.5* couldn't really create working
9146 # shared libraries, regardless of the interface used.
9147 case `$LD -v 2>&1` in
9148 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9149 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9150 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9151 *)
9152 lt_use_gnu_ld_interface=yes
9153 ;;
9154 esac
9155 ;;
9156 *)
9157 lt_use_gnu_ld_interface=yes
9158 ;;
9159 esac
9160 fi
9161
9162 if test "$lt_use_gnu_ld_interface" = yes; then
9163 # If archive_cmds runs LD, not CC, wlarc should be empty
9164 wlarc='${wl}'
9165
9166 # Set some defaults for GNU ld with shared library support. These
9167 # are reset later if shared libraries are not supported. Putting them
9168 # here allows them to be overridden if necessary.
9169 runpath_var=LD_RUN_PATH
9170 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9171 export_dynamic_flag_spec='${wl}--export-dynamic'
9172 # ancient GNU ld didn't support --whole-archive et. al.
9173 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9174 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9175 else
9176 whole_archive_flag_spec=
9177 fi
9178 supports_anon_versioning=no
9179 case `$LD -v 2>&1` in
9180 *GNU\ gold*) supports_anon_versioning=yes ;;
9181 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9182 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9183 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9184 *\ 2.11.*) ;; # other 2.11 versions
9185 *) supports_anon_versioning=yes ;;
9186 esac
9187
9188 # See if GNU ld supports shared libraries.
9189 case $host_os in
9190 aix[3-9]*)
9191 # On AIX/PPC, the GNU linker is very broken
9192 if test "$host_cpu" != ia64; then
9193 ld_shlibs=no
9194 cat <<_LT_EOF 1>&2
9195
9196 *** Warning: the GNU linker, at least up to release 2.19, is reported
9197 *** to be unable to reliably create shared libraries on AIX.
9198 *** Therefore, libtool is disabling shared libraries support. If you
9199 *** really care for shared libraries, you may want to install binutils
9200 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9201 *** You will then need to restart the configuration process.
9202
9203 _LT_EOF
9204 fi
9205 ;;
9206
9207 amigaos*)
9208 case $host_cpu in
9209 powerpc)
9210 # see comment about AmigaOS4 .so support
9211 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9212 archive_expsym_cmds=''
9213 ;;
9214 m68k)
9215 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)'
9216 hardcode_libdir_flag_spec='-L$libdir'
9217 hardcode_minus_L=yes
9218 ;;
9219 esac
9220 ;;
9221
9222 beos*)
9223 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9224 allow_undefined_flag=unsupported
9225 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9226 # support --undefined. This deserves some investigation. FIXME
9227 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9228 else
9229 ld_shlibs=no
9230 fi
9231 ;;
9232
9233 cygwin* | mingw* | pw32* | cegcc*)
9234 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9235 # as there is no search path for DLLs.
9236 hardcode_libdir_flag_spec='-L$libdir'
9237 export_dynamic_flag_spec='${wl}--export-all-symbols'
9238 allow_undefined_flag=unsupported
9239 always_export_symbols=no
9240 enable_shared_with_static_runtimes=yes
9241 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9242
9243 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9244 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9245 # If the export-symbols file already is a .def file (1st line
9246 # is EXPORTS), use it as is; otherwise, prepend...
9247 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9248 cp $export_symbols $output_objdir/$soname.def;
9249 else
9250 echo EXPORTS > $output_objdir/$soname.def;
9251 cat $export_symbols >> $output_objdir/$soname.def;
9252 fi~
9253 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9254 else
9255 ld_shlibs=no
9256 fi
9257 ;;
9258
9259 haiku*)
9260 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9261 link_all_deplibs=yes
9262 ;;
9263
9264 interix[3-9]*)
9265 hardcode_direct=no
9266 hardcode_shlibpath_var=no
9267 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9268 export_dynamic_flag_spec='${wl}-E'
9269 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9270 # Instead, shared libraries are loaded at an image base (0x10000000 by
9271 # default) and relocated if they conflict, which is a slow very memory
9272 # consuming and fragmenting process. To avoid this, we pick a random,
9273 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9274 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9275 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9276 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'
9277 ;;
9278
9279 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9280 tmp_diet=no
9281 if test "$host_os" = linux-dietlibc; then
9282 case $cc_basename in
9283 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9284 esac
9285 fi
9286 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9287 && test "$tmp_diet" = no
9288 then
9289 tmp_addflag=' $pic_flag'
9290 tmp_sharedflag='-shared'
9291 case $cc_basename,$host_cpu in
9292 pgcc*) # Portland Group C compiler
9293 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'
9294 tmp_addflag=' $pic_flag'
9295 ;;
9296 pgf77* | pgf90* | pgf95* | pgfortran*)
9297 # Portland Group f77 and f90 compilers
9298 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'
9299 tmp_addflag=' $pic_flag -Mnomain' ;;
9300 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9301 tmp_addflag=' -i_dynamic' ;;
9302 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9303 tmp_addflag=' -i_dynamic -nofor_main' ;;
9304 ifc* | ifort*) # Intel Fortran compiler
9305 tmp_addflag=' -nofor_main' ;;
9306 lf95*) # Lahey Fortran 8.1
9307 whole_archive_flag_spec=
9308 tmp_sharedflag='--shared' ;;
9309 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9310 tmp_sharedflag='-qmkshrobj'
9311 tmp_addflag= ;;
9312 nvcc*) # Cuda Compiler Driver 2.2
9313 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'
9314 compiler_needs_object=yes
9315 ;;
9316 esac
9317 case `$CC -V 2>&1 | sed 5q` in
9318 *Sun\ C*) # Sun C 5.9
9319 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'
9320 compiler_needs_object=yes
9321 tmp_sharedflag='-G' ;;
9322 *Sun\ F*) # Sun Fortran 8.3
9323 tmp_sharedflag='-G' ;;
9324 esac
9325 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9326
9327 if test "x$supports_anon_versioning" = xyes; then
9328 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9329 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9330 echo "local: *; };" >> $output_objdir/$libname.ver~
9331 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9332 fi
9333
9334 case $cc_basename in
9335 xlf* | bgf* | bgxlf* | mpixlf*)
9336 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9337 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9338 hardcode_libdir_flag_spec=
9339 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9340 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9341 if test "x$supports_anon_versioning" = xyes; then
9342 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9343 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9344 echo "local: *; };" >> $output_objdir/$libname.ver~
9345 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9346 fi
9347 ;;
9348 esac
9349 else
9350 ld_shlibs=no
9351 fi
9352 ;;
9353
9354 netbsd*)
9355 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9356 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9357 wlarc=
9358 else
9359 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9360 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9361 fi
9362 ;;
9363
9364 solaris*)
9365 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9366 ld_shlibs=no
9367 cat <<_LT_EOF 1>&2
9368
9369 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9370 *** create shared libraries on Solaris systems. Therefore, libtool
9371 *** is disabling shared libraries support. We urge you to upgrade GNU
9372 *** binutils to release 2.9.1 or newer. Another option is to modify
9373 *** your PATH or compiler configuration so that the native linker is
9374 *** used, and then restart.
9375
9376 _LT_EOF
9377 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9378 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9379 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9380 else
9381 ld_shlibs=no
9382 fi
9383 ;;
9384
9385 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9386 case `$LD -v 2>&1` in
9387 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9388 ld_shlibs=no
9389 cat <<_LT_EOF 1>&2
9390
9391 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9392 *** reliably create shared libraries on SCO systems. Therefore, libtool
9393 *** is disabling shared libraries support. We urge you to upgrade GNU
9394 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9395 *** your PATH or compiler configuration so that the native linker is
9396 *** used, and then restart.
9397
9398 _LT_EOF
9399 ;;
9400 *)
9401 # For security reasons, it is highly recommended that you always
9402 # use absolute paths for naming shared libraries, and exclude the
9403 # DT_RUNPATH tag from executables and libraries. But doing so
9404 # requires that you compile everything twice, which is a pain.
9405 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9406 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9407 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9408 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9409 else
9410 ld_shlibs=no
9411 fi
9412 ;;
9413 esac
9414 ;;
9415
9416 sunos4*)
9417 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9418 wlarc=
9419 hardcode_direct=yes
9420 hardcode_shlibpath_var=no
9421 ;;
9422
9423 *)
9424 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9425 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9426 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9427 else
9428 ld_shlibs=no
9429 fi
9430 ;;
9431 esac
9432
9433 if test "$ld_shlibs" = no; then
9434 runpath_var=
9435 hardcode_libdir_flag_spec=
9436 export_dynamic_flag_spec=
9437 whole_archive_flag_spec=
9438 fi
9439 else
9440 # PORTME fill in a description of your system's linker (not GNU ld)
9441 case $host_os in
9442 aix3*)
9443 allow_undefined_flag=unsupported
9444 always_export_symbols=yes
9445 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'
9446 # Note: this linker hardcodes the directories in LIBPATH if there
9447 # are no directories specified by -L.
9448 hardcode_minus_L=yes
9449 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9450 # Neither direct hardcoding nor static linking is supported with a
9451 # broken collect2.
9452 hardcode_direct=unsupported
9453 fi
9454 ;;
9455
9456 aix[4-9]*)
9457 if test "$host_cpu" = ia64; then
9458 # On IA64, the linker does run time linking by default, so we don't
9459 # have to do anything special.
9460 aix_use_runtimelinking=no
9461 exp_sym_flag='-Bexport'
9462 no_entry_flag=""
9463 else
9464 # If we're using GNU nm, then we don't want the "-C" option.
9465 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9466 # Also, AIX nm treats weak defined symbols like other global
9467 # defined symbols, whereas GNU nm marks them as "W".
9468 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9469 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'
9470 else
9471 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'
9472 fi
9473 aix_use_runtimelinking=no
9474
9475 # Test if we are trying to use run time linking or normal
9476 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9477 # need to do runtime linking.
9478 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9479 for ld_flag in $LDFLAGS; do
9480 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9481 aix_use_runtimelinking=yes
9482 break
9483 fi
9484 done
9485 ;;
9486 esac
9487
9488 exp_sym_flag='-bexport'
9489 no_entry_flag='-bnoentry'
9490 fi
9491
9492 # When large executables or shared objects are built, AIX ld can
9493 # have problems creating the table of contents. If linking a library
9494 # or program results in "error TOC overflow" add -mminimal-toc to
9495 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9496 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9497
9498 archive_cmds=''
9499 hardcode_direct=yes
9500 hardcode_direct_absolute=yes
9501 hardcode_libdir_separator=':'
9502 link_all_deplibs=yes
9503 file_list_spec='${wl}-f,'
9504
9505 if test "$GCC" = yes; then
9506 case $host_os in aix4.[012]|aix4.[012].*)
9507 # We only want to do this on AIX 4.2 and lower, the check
9508 # below for broken collect2 doesn't work under 4.3+
9509 collect2name=`${CC} -print-prog-name=collect2`
9510 if test -f "$collect2name" &&
9511 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9512 then
9513 # We have reworked collect2
9514 :
9515 else
9516 # We have old collect2
9517 hardcode_direct=unsupported
9518 # It fails to find uninstalled libraries when the uninstalled
9519 # path is not listed in the libpath. Setting hardcode_minus_L
9520 # to unsupported forces relinking
9521 hardcode_minus_L=yes
9522 hardcode_libdir_flag_spec='-L$libdir'
9523 hardcode_libdir_separator=
9524 fi
9525 ;;
9526 esac
9527 shared_flag='-shared'
9528 if test "$aix_use_runtimelinking" = yes; then
9529 shared_flag="$shared_flag "'${wl}-G'
9530 fi
9531 else
9532 # not using gcc
9533 if test "$host_cpu" = ia64; then
9534 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9535 # chokes on -Wl,-G. The following line is correct:
9536 shared_flag='-G'
9537 else
9538 if test "$aix_use_runtimelinking" = yes; then
9539 shared_flag='${wl}-G'
9540 else
9541 shared_flag='${wl}-bM:SRE'
9542 fi
9543 fi
9544 fi
9545
9546 export_dynamic_flag_spec='${wl}-bexpall'
9547 # It seems that -bexpall does not export symbols beginning with
9548 # underscore (_), so it is better to generate a list of symbols to export.
9549 always_export_symbols=yes
9550 if test "$aix_use_runtimelinking" = yes; then
9551 # Warning - without using the other runtime loading flags (-brtl),
9552 # -berok will link without error, but may produce a broken library.
9553 allow_undefined_flag='-berok'
9554 # Determine the default libpath from the value encoded in an
9555 # empty executable.
9556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9557 /* end confdefs.h. */
9558
9559 int
9560 main ()
9561 {
9562
9563 ;
9564 return 0;
9565 }
9566 _ACEOF
9567 if ac_fn_c_try_link "$LINENO"; then :
9568
9569 lt_aix_libpath_sed='
9570 /Import File Strings/,/^$/ {
9571 /^0/ {
9572 s/^0 *\(.*\)$/\1/
9573 p
9574 }
9575 }'
9576 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9577 # Check for a 64-bit object if we didn't find anything.
9578 if test -z "$aix_libpath"; then
9579 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9580 fi
9581 fi
9582 rm -f core conftest.err conftest.$ac_objext \
9583 conftest$ac_exeext conftest.$ac_ext
9584 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9585
9586 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9587 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"
9588 else
9589 if test "$host_cpu" = ia64; then
9590 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9591 allow_undefined_flag="-z nodefs"
9592 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"
9593 else
9594 # Determine the default libpath from the value encoded in an
9595 # empty executable.
9596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9597 /* end confdefs.h. */
9598
9599 int
9600 main ()
9601 {
9602
9603 ;
9604 return 0;
9605 }
9606 _ACEOF
9607 if ac_fn_c_try_link "$LINENO"; then :
9608
9609 lt_aix_libpath_sed='
9610 /Import File Strings/,/^$/ {
9611 /^0/ {
9612 s/^0 *\(.*\)$/\1/
9613 p
9614 }
9615 }'
9616 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9617 # Check for a 64-bit object if we didn't find anything.
9618 if test -z "$aix_libpath"; then
9619 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9620 fi
9621 fi
9622 rm -f core conftest.err conftest.$ac_objext \
9623 conftest$ac_exeext conftest.$ac_ext
9624 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9625
9626 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9627 # Warning - without using the other run time loading flags,
9628 # -berok will link without error, but may produce a broken library.
9629 no_undefined_flag=' ${wl}-bernotok'
9630 allow_undefined_flag=' ${wl}-berok'
9631 if test "$with_gnu_ld" = yes; then
9632 # We only use this code for GNU lds that support --whole-archive.
9633 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9634 else
9635 # Exported symbols can be pulled into shared objects from archives
9636 whole_archive_flag_spec='$convenience'
9637 fi
9638 archive_cmds_need_lc=yes
9639 # This is similar to how AIX traditionally builds its shared libraries.
9640 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'
9641 fi
9642 fi
9643 ;;
9644
9645 amigaos*)
9646 case $host_cpu in
9647 powerpc)
9648 # see comment about AmigaOS4 .so support
9649 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9650 archive_expsym_cmds=''
9651 ;;
9652 m68k)
9653 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)'
9654 hardcode_libdir_flag_spec='-L$libdir'
9655 hardcode_minus_L=yes
9656 ;;
9657 esac
9658 ;;
9659
9660 bsdi[45]*)
9661 export_dynamic_flag_spec=-rdynamic
9662 ;;
9663
9664 cygwin* | mingw* | pw32* | cegcc*)
9665 # When not using gcc, we currently assume that we are using
9666 # Microsoft Visual C++.
9667 # hardcode_libdir_flag_spec is actually meaningless, as there is
9668 # no search path for DLLs.
9669 hardcode_libdir_flag_spec=' '
9670 allow_undefined_flag=unsupported
9671 # Tell ltmain to make .lib files, not .a files.
9672 libext=lib
9673 # Tell ltmain to make .dll files, not .so files.
9674 shrext_cmds=".dll"
9675 # FIXME: Setting linknames here is a bad hack.
9676 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9677 # The linker will automatically build a .lib file if we build a DLL.
9678 old_archive_from_new_cmds='true'
9679 # FIXME: Should let the user specify the lib program.
9680 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9681 fix_srcfile_path='`cygpath -w "$srcfile"`'
9682 enable_shared_with_static_runtimes=yes
9683 ;;
9684
9685 darwin* | rhapsody*)
9686
9687
9688 archive_cmds_need_lc=no
9689 hardcode_direct=no
9690 hardcode_automatic=yes
9691 hardcode_shlibpath_var=unsupported
9692 if test "$lt_cv_ld_force_load" = "yes"; then
9693 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\"`'
9694 else
9695 whole_archive_flag_spec=''
9696 fi
9697 link_all_deplibs=yes
9698 allow_undefined_flag="$_lt_dar_allow_undefined"
9699 case $cc_basename in
9700 ifort*) _lt_dar_can_shared=yes ;;
9701 *) _lt_dar_can_shared=$GCC ;;
9702 esac
9703 if test "$_lt_dar_can_shared" = "yes"; then
9704 output_verbose_link_cmd=func_echo_all
9705 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9706 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9707 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}"
9708 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}"
9709
9710 else
9711 ld_shlibs=no
9712 fi
9713
9714 ;;
9715
9716 dgux*)
9717 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9718 hardcode_libdir_flag_spec='-L$libdir'
9719 hardcode_shlibpath_var=no
9720 ;;
9721
9722 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9723 # support. Future versions do this automatically, but an explicit c++rt0.o
9724 # does not break anything, and helps significantly (at the cost of a little
9725 # extra space).
9726 freebsd2.2*)
9727 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9728 hardcode_libdir_flag_spec='-R$libdir'
9729 hardcode_direct=yes
9730 hardcode_shlibpath_var=no
9731 ;;
9732
9733 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9734 freebsd2.*)
9735 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9736 hardcode_direct=yes
9737 hardcode_minus_L=yes
9738 hardcode_shlibpath_var=no
9739 ;;
9740
9741 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9742 freebsd* | dragonfly*)
9743 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9744 hardcode_libdir_flag_spec='-R$libdir'
9745 hardcode_direct=yes
9746 hardcode_shlibpath_var=no
9747 ;;
9748
9749 hpux9*)
9750 if test "$GCC" = yes; then
9751 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'
9752 else
9753 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'
9754 fi
9755 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9756 hardcode_libdir_separator=:
9757 hardcode_direct=yes
9758
9759 # hardcode_minus_L: Not really in the search PATH,
9760 # but as the default location of the library.
9761 hardcode_minus_L=yes
9762 export_dynamic_flag_spec='${wl}-E'
9763 ;;
9764
9765 hpux10*)
9766 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9767 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9768 else
9769 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9770 fi
9771 if test "$with_gnu_ld" = no; then
9772 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9773 hardcode_libdir_flag_spec_ld='+b $libdir'
9774 hardcode_libdir_separator=:
9775 hardcode_direct=yes
9776 hardcode_direct_absolute=yes
9777 export_dynamic_flag_spec='${wl}-E'
9778 # hardcode_minus_L: Not really in the search PATH,
9779 # but as the default location of the library.
9780 hardcode_minus_L=yes
9781 fi
9782 ;;
9783
9784 hpux11*)
9785 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9786 case $host_cpu in
9787 hppa*64*)
9788 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9789 ;;
9790 ia64*)
9791 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9792 ;;
9793 *)
9794 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9795 ;;
9796 esac
9797 else
9798 case $host_cpu in
9799 hppa*64*)
9800 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9801 ;;
9802 ia64*)
9803 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9804 ;;
9805 *)
9806
9807 # Older versions of the 11.00 compiler do not understand -b yet
9808 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9810 $as_echo_n "checking if $CC understands -b... " >&6; }
9811 if ${lt_cv_prog_compiler__b+:} false; then :
9812 $as_echo_n "(cached) " >&6
9813 else
9814 lt_cv_prog_compiler__b=no
9815 save_LDFLAGS="$LDFLAGS"
9816 LDFLAGS="$LDFLAGS -b"
9817 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9818 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9819 # The linker can only warn and ignore the option if not recognized
9820 # So say no if there are warnings
9821 if test -s conftest.err; then
9822 # Append any errors to the config.log.
9823 cat conftest.err 1>&5
9824 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9825 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9826 if diff conftest.exp conftest.er2 >/dev/null; then
9827 lt_cv_prog_compiler__b=yes
9828 fi
9829 else
9830 lt_cv_prog_compiler__b=yes
9831 fi
9832 fi
9833 $RM -r conftest*
9834 LDFLAGS="$save_LDFLAGS"
9835
9836 fi
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9838 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9839
9840 if test x"$lt_cv_prog_compiler__b" = xyes; then
9841 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9842 else
9843 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9844 fi
9845
9846 ;;
9847 esac
9848 fi
9849 if test "$with_gnu_ld" = no; then
9850 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9851 hardcode_libdir_separator=:
9852
9853 case $host_cpu in
9854 hppa*64*|ia64*)
9855 hardcode_direct=no
9856 hardcode_shlibpath_var=no
9857 ;;
9858 *)
9859 hardcode_direct=yes
9860 hardcode_direct_absolute=yes
9861 export_dynamic_flag_spec='${wl}-E'
9862
9863 # hardcode_minus_L: Not really in the search PATH,
9864 # but as the default location of the library.
9865 hardcode_minus_L=yes
9866 ;;
9867 esac
9868 fi
9869 ;;
9870
9871 irix5* | irix6* | nonstopux*)
9872 if test "$GCC" = yes; then
9873 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'
9874 # Try to use the -exported_symbol ld option, if it does not
9875 # work, assume that -exports_file does not work either and
9876 # implicitly export all symbols.
9877 save_LDFLAGS="$LDFLAGS"
9878 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9880 /* end confdefs.h. */
9881 int foo(void) {}
9882 _ACEOF
9883 if ac_fn_c_try_link "$LINENO"; then :
9884 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'
9885
9886 fi
9887 rm -f core conftest.err conftest.$ac_objext \
9888 conftest$ac_exeext conftest.$ac_ext
9889 LDFLAGS="$save_LDFLAGS"
9890 else
9891 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'
9892 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'
9893 fi
9894 archive_cmds_need_lc='no'
9895 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9896 hardcode_libdir_separator=:
9897 inherit_rpath=yes
9898 link_all_deplibs=yes
9899 ;;
9900
9901 netbsd*)
9902 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9903 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9904 else
9905 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9906 fi
9907 hardcode_libdir_flag_spec='-R$libdir'
9908 hardcode_direct=yes
9909 hardcode_shlibpath_var=no
9910 ;;
9911
9912 newsos6)
9913 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9914 hardcode_direct=yes
9915 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9916 hardcode_libdir_separator=:
9917 hardcode_shlibpath_var=no
9918 ;;
9919
9920 *nto* | *qnx*)
9921 ;;
9922
9923 openbsd*)
9924 if test -f /usr/libexec/ld.so; then
9925 hardcode_direct=yes
9926 hardcode_shlibpath_var=no
9927 hardcode_direct_absolute=yes
9928 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9929 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9930 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9931 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9932 export_dynamic_flag_spec='${wl}-E'
9933 else
9934 case $host_os in
9935 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9936 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9937 hardcode_libdir_flag_spec='-R$libdir'
9938 ;;
9939 *)
9940 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9941 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9942 ;;
9943 esac
9944 fi
9945 else
9946 ld_shlibs=no
9947 fi
9948 ;;
9949
9950 os2*)
9951 hardcode_libdir_flag_spec='-L$libdir'
9952 hardcode_minus_L=yes
9953 allow_undefined_flag=unsupported
9954 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'
9955 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9956 ;;
9957
9958 osf3*)
9959 if test "$GCC" = yes; then
9960 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9961 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'
9962 else
9963 allow_undefined_flag=' -expect_unresolved \*'
9964 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'
9965 fi
9966 archive_cmds_need_lc='no'
9967 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9968 hardcode_libdir_separator=:
9969 ;;
9970
9971 osf4* | osf5*) # as osf3* with the addition of -msym flag
9972 if test "$GCC" = yes; then
9973 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9974 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'
9975 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9976 else
9977 allow_undefined_flag=' -expect_unresolved \*'
9978 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'
9979 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~
9980 $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'
9981
9982 # Both c and cxx compiler support -rpath directly
9983 hardcode_libdir_flag_spec='-rpath $libdir'
9984 fi
9985 archive_cmds_need_lc='no'
9986 hardcode_libdir_separator=:
9987 ;;
9988
9989 solaris*)
9990 no_undefined_flag=' -z defs'
9991 if test "$GCC" = yes; then
9992 wlarc='${wl}'
9993 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9994 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9995 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9996 else
9997 case `$CC -V 2>&1` in
9998 *"Compilers 5.0"*)
9999 wlarc=''
10000 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10001 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10002 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10003 ;;
10004 *)
10005 wlarc='${wl}'
10006 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10007 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10008 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10009 ;;
10010 esac
10011 fi
10012 hardcode_libdir_flag_spec='-R$libdir'
10013 hardcode_shlibpath_var=no
10014 case $host_os in
10015 solaris2.[0-5] | solaris2.[0-5].*) ;;
10016 *)
10017 # The compiler driver will combine and reorder linker options,
10018 # but understands `-z linker_flag'. GCC discards it without `$wl',
10019 # but is careful enough not to reorder.
10020 # Supported since Solaris 2.6 (maybe 2.5.1?)
10021 if test "$GCC" = yes; then
10022 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10023 else
10024 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10025 fi
10026 ;;
10027 esac
10028 link_all_deplibs=yes
10029 ;;
10030
10031 sunos4*)
10032 if test "x$host_vendor" = xsequent; then
10033 # Use $CC to link under sequent, because it throws in some extra .o
10034 # files that make .init and .fini sections work.
10035 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10036 else
10037 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10038 fi
10039 hardcode_libdir_flag_spec='-L$libdir'
10040 hardcode_direct=yes
10041 hardcode_minus_L=yes
10042 hardcode_shlibpath_var=no
10043 ;;
10044
10045 sysv4)
10046 case $host_vendor in
10047 sni)
10048 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10049 hardcode_direct=yes # is this really true???
10050 ;;
10051 siemens)
10052 ## LD is ld it makes a PLAMLIB
10053 ## CC just makes a GrossModule.
10054 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10055 reload_cmds='$CC -r -o $output$reload_objs'
10056 hardcode_direct=no
10057 ;;
10058 motorola)
10059 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10060 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10061 ;;
10062 esac
10063 runpath_var='LD_RUN_PATH'
10064 hardcode_shlibpath_var=no
10065 ;;
10066
10067 sysv4.3*)
10068 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10069 hardcode_shlibpath_var=no
10070 export_dynamic_flag_spec='-Bexport'
10071 ;;
10072
10073 sysv4*MP*)
10074 if test -d /usr/nec; then
10075 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10076 hardcode_shlibpath_var=no
10077 runpath_var=LD_RUN_PATH
10078 hardcode_runpath_var=yes
10079 ld_shlibs=yes
10080 fi
10081 ;;
10082
10083 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10084 no_undefined_flag='${wl}-z,text'
10085 archive_cmds_need_lc=no
10086 hardcode_shlibpath_var=no
10087 runpath_var='LD_RUN_PATH'
10088
10089 if test "$GCC" = yes; then
10090 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10091 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10092 else
10093 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10094 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10095 fi
10096 ;;
10097
10098 sysv5* | sco3.2v5* | sco5v6*)
10099 # Note: We can NOT use -z defs as we might desire, because we do not
10100 # link with -lc, and that would cause any symbols used from libc to
10101 # always be unresolved, which means just about no library would
10102 # ever link correctly. If we're not using GNU ld we use -z text
10103 # though, which does catch some bad symbols but isn't as heavy-handed
10104 # as -z defs.
10105 no_undefined_flag='${wl}-z,text'
10106 allow_undefined_flag='${wl}-z,nodefs'
10107 archive_cmds_need_lc=no
10108 hardcode_shlibpath_var=no
10109 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10110 hardcode_libdir_separator=':'
10111 link_all_deplibs=yes
10112 export_dynamic_flag_spec='${wl}-Bexport'
10113 runpath_var='LD_RUN_PATH'
10114
10115 if test "$GCC" = yes; then
10116 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10117 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10118 else
10119 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10120 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10121 fi
10122 ;;
10123
10124 uts4*)
10125 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10126 hardcode_libdir_flag_spec='-L$libdir'
10127 hardcode_shlibpath_var=no
10128 ;;
10129
10130 *)
10131 ld_shlibs=no
10132 ;;
10133 esac
10134
10135 if test x$host_vendor = xsni; then
10136 case $host in
10137 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10138 export_dynamic_flag_spec='${wl}-Blargedynsym'
10139 ;;
10140 esac
10141 fi
10142 fi
10143
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10145 $as_echo "$ld_shlibs" >&6; }
10146 test "$ld_shlibs" = no && can_build_shared=no
10147
10148 with_gnu_ld=$with_gnu_ld
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164 #
10165 # Do we need to explicitly link libc?
10166 #
10167 case "x$archive_cmds_need_lc" in
10168 x|xyes)
10169 # Assume -lc should be added
10170 archive_cmds_need_lc=yes
10171
10172 if test "$enable_shared" = yes && test "$GCC" = yes; then
10173 case $archive_cmds in
10174 *'~'*)
10175 # FIXME: we may have to deal with multi-command sequences.
10176 ;;
10177 '$CC '*)
10178 # Test whether the compiler implicitly links with -lc since on some
10179 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10180 # to ld, don't add -lc before -lgcc.
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10182 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10183 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10184 $as_echo_n "(cached) " >&6
10185 else
10186 $RM conftest*
10187 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10188
10189 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10190 (eval $ac_compile) 2>&5
10191 ac_status=$?
10192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10193 test $ac_status = 0; } 2>conftest.err; then
10194 soname=conftest
10195 lib=conftest
10196 libobjs=conftest.$ac_objext
10197 deplibs=
10198 wl=$lt_prog_compiler_wl
10199 pic_flag=$lt_prog_compiler_pic
10200 compiler_flags=-v
10201 linker_flags=-v
10202 verstring=
10203 output_objdir=.
10204 libname=conftest
10205 lt_save_allow_undefined_flag=$allow_undefined_flag
10206 allow_undefined_flag=
10207 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10208 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10209 ac_status=$?
10210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10211 test $ac_status = 0; }
10212 then
10213 lt_cv_archive_cmds_need_lc=no
10214 else
10215 lt_cv_archive_cmds_need_lc=yes
10216 fi
10217 allow_undefined_flag=$lt_save_allow_undefined_flag
10218 else
10219 cat conftest.err 1>&5
10220 fi
10221 $RM conftest*
10222
10223 fi
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10225 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10226 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10227 ;;
10228 esac
10229 fi
10230 ;;
10231 esac
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10390 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10391
10392 if test "$GCC" = yes; then
10393 case $host_os in
10394 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10395 *) lt_awk_arg="/^libraries:/" ;;
10396 esac
10397 case $host_os in
10398 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10399 *) lt_sed_strip_eq="s,=/,/,g" ;;
10400 esac
10401 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10402 case $lt_search_path_spec in
10403 *\;*)
10404 # if the path contains ";" then we assume it to be the separator
10405 # otherwise default to the standard path separator (i.e. ":") - it is
10406 # assumed that no part of a normal pathname contains ";" but that should
10407 # okay in the real world where ";" in dirpaths is itself problematic.
10408 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10409 ;;
10410 *)
10411 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10412 ;;
10413 esac
10414 # Ok, now we have the path, separated by spaces, we can step through it
10415 # and add multilib dir if necessary.
10416 lt_tmp_lt_search_path_spec=
10417 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10418 for lt_sys_path in $lt_search_path_spec; do
10419 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10420 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10421 else
10422 test -d "$lt_sys_path" && \
10423 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10424 fi
10425 done
10426 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10427 BEGIN {RS=" "; FS="/|\n";} {
10428 lt_foo="";
10429 lt_count=0;
10430 for (lt_i = NF; lt_i > 0; lt_i--) {
10431 if ($lt_i != "" && $lt_i != ".") {
10432 if ($lt_i == "..") {
10433 lt_count++;
10434 } else {
10435 if (lt_count == 0) {
10436 lt_foo="/" $lt_i lt_foo;
10437 } else {
10438 lt_count--;
10439 }
10440 }
10441 }
10442 }
10443 if (lt_foo != "") { lt_freq[lt_foo]++; }
10444 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10445 }'`
10446 # AWK program above erroneously prepends '/' to C:/dos/paths
10447 # for these hosts.
10448 case $host_os in
10449 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10450 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10451 esac
10452 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10453 else
10454 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10455 fi
10456 library_names_spec=
10457 libname_spec='lib$name'
10458 soname_spec=
10459 shrext_cmds=".so"
10460 postinstall_cmds=
10461 postuninstall_cmds=
10462 finish_cmds=
10463 finish_eval=
10464 shlibpath_var=
10465 shlibpath_overrides_runpath=unknown
10466 version_type=none
10467 dynamic_linker="$host_os ld.so"
10468 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10469 need_lib_prefix=unknown
10470 hardcode_into_libs=no
10471
10472 # when you set need_version to no, make sure it does not cause -set_version
10473 # flags to be left without arguments
10474 need_version=unknown
10475
10476 case $host_os in
10477 aix3*)
10478 version_type=linux
10479 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10480 shlibpath_var=LIBPATH
10481
10482 # AIX 3 has no versioning support, so we append a major version to the name.
10483 soname_spec='${libname}${release}${shared_ext}$major'
10484 ;;
10485
10486 aix[4-9]*)
10487 version_type=linux
10488 need_lib_prefix=no
10489 need_version=no
10490 hardcode_into_libs=yes
10491 if test "$host_cpu" = ia64; then
10492 # AIX 5 supports IA64
10493 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10494 shlibpath_var=LD_LIBRARY_PATH
10495 else
10496 # With GCC up to 2.95.x, collect2 would create an import file
10497 # for dependence libraries. The import file would start with
10498 # the line `#! .'. This would cause the generated library to
10499 # depend on `.', always an invalid library. This was fixed in
10500 # development snapshots of GCC prior to 3.0.
10501 case $host_os in
10502 aix4 | aix4.[01] | aix4.[01].*)
10503 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10504 echo ' yes '
10505 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10506 :
10507 else
10508 can_build_shared=no
10509 fi
10510 ;;
10511 esac
10512 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10513 # soname into executable. Probably we can add versioning support to
10514 # collect2, so additional links can be useful in future.
10515 if test "$aix_use_runtimelinking" = yes; then
10516 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10517 # instead of lib<name>.a to let people know that these are not
10518 # typical AIX shared libraries.
10519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10520 else
10521 # We preserve .a as extension for shared libraries through AIX4.2
10522 # and later when we are not doing run time linking.
10523 library_names_spec='${libname}${release}.a $libname.a'
10524 soname_spec='${libname}${release}${shared_ext}$major'
10525 fi
10526 shlibpath_var=LIBPATH
10527 fi
10528 ;;
10529
10530 amigaos*)
10531 case $host_cpu in
10532 powerpc)
10533 # Since July 2007 AmigaOS4 officially supports .so libraries.
10534 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10536 ;;
10537 m68k)
10538 library_names_spec='$libname.ixlibrary $libname.a'
10539 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10540 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'
10541 ;;
10542 esac
10543 ;;
10544
10545 beos*)
10546 library_names_spec='${libname}${shared_ext}'
10547 dynamic_linker="$host_os ld.so"
10548 shlibpath_var=LIBRARY_PATH
10549 ;;
10550
10551 bsdi[45]*)
10552 version_type=linux
10553 need_version=no
10554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10555 soname_spec='${libname}${release}${shared_ext}$major'
10556 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10557 shlibpath_var=LD_LIBRARY_PATH
10558 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10559 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10560 # the default ld.so.conf also contains /usr/contrib/lib and
10561 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10562 # libtool to hard-code these into programs
10563 ;;
10564
10565 cygwin* | mingw* | pw32* | cegcc*)
10566 version_type=windows
10567 shrext_cmds=".dll"
10568 need_version=no
10569 need_lib_prefix=no
10570
10571 case $GCC,$host_os in
10572 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10573 library_names_spec='$libname.dll.a'
10574 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10575 postinstall_cmds='base_file=`basename \${file}`~
10576 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10577 dldir=$destdir/`dirname \$dlpath`~
10578 test -d \$dldir || mkdir -p \$dldir~
10579 $install_prog $dir/$dlname \$dldir/$dlname~
10580 chmod a+x \$dldir/$dlname~
10581 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10582 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10583 fi'
10584 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10585 dlpath=$dir/\$dldll~
10586 $RM \$dlpath'
10587 shlibpath_overrides_runpath=yes
10588
10589 case $host_os in
10590 cygwin*)
10591 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10592 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10593
10594 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10595 ;;
10596 mingw* | cegcc*)
10597 # MinGW DLLs use traditional 'lib' prefix
10598 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10599 ;;
10600 pw32*)
10601 # pw32 DLLs use 'pw' prefix rather than 'lib'
10602 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10603 ;;
10604 esac
10605 ;;
10606
10607 *)
10608 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10609 ;;
10610 esac
10611 dynamic_linker='Win32 ld.exe'
10612 # FIXME: first we should search . and the directory the executable is in
10613 shlibpath_var=PATH
10614 ;;
10615
10616 darwin* | rhapsody*)
10617 dynamic_linker="$host_os dyld"
10618 version_type=darwin
10619 need_lib_prefix=no
10620 need_version=no
10621 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10622 soname_spec='${libname}${release}${major}$shared_ext'
10623 shlibpath_overrides_runpath=yes
10624 shlibpath_var=DYLD_LIBRARY_PATH
10625 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10626
10627 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10628 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10629 ;;
10630
10631 dgux*)
10632 version_type=linux
10633 need_lib_prefix=no
10634 need_version=no
10635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10636 soname_spec='${libname}${release}${shared_ext}$major'
10637 shlibpath_var=LD_LIBRARY_PATH
10638 ;;
10639
10640 freebsd* | dragonfly*)
10641 # DragonFly does not have aout. When/if they implement a new
10642 # versioning mechanism, adjust this.
10643 if test -x /usr/bin/objformat; then
10644 objformat=`/usr/bin/objformat`
10645 else
10646 case $host_os in
10647 freebsd[23].*) objformat=aout ;;
10648 *) objformat=elf ;;
10649 esac
10650 fi
10651 version_type=freebsd-$objformat
10652 case $version_type in
10653 freebsd-elf*)
10654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10655 need_version=no
10656 need_lib_prefix=no
10657 ;;
10658 freebsd-*)
10659 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10660 need_version=yes
10661 ;;
10662 esac
10663 shlibpath_var=LD_LIBRARY_PATH
10664 case $host_os in
10665 freebsd2.*)
10666 shlibpath_overrides_runpath=yes
10667 ;;
10668 freebsd3.[01]* | freebsdelf3.[01]*)
10669 shlibpath_overrides_runpath=yes
10670 hardcode_into_libs=yes
10671 ;;
10672 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10673 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10674 shlibpath_overrides_runpath=no
10675 hardcode_into_libs=yes
10676 ;;
10677 *) # from 4.6 on, and DragonFly
10678 shlibpath_overrides_runpath=yes
10679 hardcode_into_libs=yes
10680 ;;
10681 esac
10682 ;;
10683
10684 gnu*)
10685 version_type=linux
10686 need_lib_prefix=no
10687 need_version=no
10688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10689 soname_spec='${libname}${release}${shared_ext}$major'
10690 shlibpath_var=LD_LIBRARY_PATH
10691 hardcode_into_libs=yes
10692 ;;
10693
10694 haiku*)
10695 version_type=linux
10696 need_lib_prefix=no
10697 need_version=no
10698 dynamic_linker="$host_os runtime_loader"
10699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10700 soname_spec='${libname}${release}${shared_ext}$major'
10701 shlibpath_var=LIBRARY_PATH
10702 shlibpath_overrides_runpath=yes
10703 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10704 hardcode_into_libs=yes
10705 ;;
10706
10707 hpux9* | hpux10* | hpux11*)
10708 # Give a soname corresponding to the major version so that dld.sl refuses to
10709 # link against other versions.
10710 version_type=sunos
10711 need_lib_prefix=no
10712 need_version=no
10713 case $host_cpu in
10714 ia64*)
10715 shrext_cmds='.so'
10716 hardcode_into_libs=yes
10717 dynamic_linker="$host_os dld.so"
10718 shlibpath_var=LD_LIBRARY_PATH
10719 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10721 soname_spec='${libname}${release}${shared_ext}$major'
10722 if test "X$HPUX_IA64_MODE" = X32; then
10723 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10724 else
10725 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10726 fi
10727 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10728 ;;
10729 hppa*64*)
10730 shrext_cmds='.sl'
10731 hardcode_into_libs=yes
10732 dynamic_linker="$host_os dld.sl"
10733 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10734 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10736 soname_spec='${libname}${release}${shared_ext}$major'
10737 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10738 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10739 ;;
10740 *)
10741 shrext_cmds='.sl'
10742 dynamic_linker="$host_os dld.sl"
10743 shlibpath_var=SHLIB_PATH
10744 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10746 soname_spec='${libname}${release}${shared_ext}$major'
10747 ;;
10748 esac
10749 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10750 postinstall_cmds='chmod 555 $lib'
10751 # or fails outright, so override atomically:
10752 install_override_mode=555
10753 ;;
10754
10755 interix[3-9]*)
10756 version_type=linux
10757 need_lib_prefix=no
10758 need_version=no
10759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10760 soname_spec='${libname}${release}${shared_ext}$major'
10761 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10762 shlibpath_var=LD_LIBRARY_PATH
10763 shlibpath_overrides_runpath=no
10764 hardcode_into_libs=yes
10765 ;;
10766
10767 irix5* | irix6* | nonstopux*)
10768 case $host_os in
10769 nonstopux*) version_type=nonstopux ;;
10770 *)
10771 if test "$lt_cv_prog_gnu_ld" = yes; then
10772 version_type=linux
10773 else
10774 version_type=irix
10775 fi ;;
10776 esac
10777 need_lib_prefix=no
10778 need_version=no
10779 soname_spec='${libname}${release}${shared_ext}$major'
10780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10781 case $host_os in
10782 irix5* | nonstopux*)
10783 libsuff= shlibsuff=
10784 ;;
10785 *)
10786 case $LD in # libtool.m4 will add one of these switches to LD
10787 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10788 libsuff= shlibsuff= libmagic=32-bit;;
10789 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10790 libsuff=32 shlibsuff=N32 libmagic=N32;;
10791 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10792 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10793 *) libsuff= shlibsuff= libmagic=never-match;;
10794 esac
10795 ;;
10796 esac
10797 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10798 shlibpath_overrides_runpath=no
10799 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10800 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10801 hardcode_into_libs=yes
10802 ;;
10803
10804 # No shared lib support for Linux oldld, aout, or coff.
10805 linux*oldld* | linux*aout* | linux*coff*)
10806 dynamic_linker=no
10807 ;;
10808
10809 # This must be Linux ELF.
10810 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10811 version_type=linux
10812 need_lib_prefix=no
10813 need_version=no
10814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10815 soname_spec='${libname}${release}${shared_ext}$major'
10816 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10817 shlibpath_var=LD_LIBRARY_PATH
10818 shlibpath_overrides_runpath=no
10819
10820 # Some binutils ld are patched to set DT_RUNPATH
10821 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10822 $as_echo_n "(cached) " >&6
10823 else
10824 lt_cv_shlibpath_overrides_runpath=no
10825 save_LDFLAGS=$LDFLAGS
10826 save_libdir=$libdir
10827 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10828 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10830 /* end confdefs.h. */
10831
10832 int
10833 main ()
10834 {
10835
10836 ;
10837 return 0;
10838 }
10839 _ACEOF
10840 if ac_fn_c_try_link "$LINENO"; then :
10841 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10842 lt_cv_shlibpath_overrides_runpath=yes
10843 fi
10844 fi
10845 rm -f core conftest.err conftest.$ac_objext \
10846 conftest$ac_exeext conftest.$ac_ext
10847 LDFLAGS=$save_LDFLAGS
10848 libdir=$save_libdir
10849
10850 fi
10851
10852 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10853
10854 # This implies no fast_install, which is unacceptable.
10855 # Some rework will be needed to allow for fast_install
10856 # before this can be enabled.
10857 hardcode_into_libs=yes
10858
10859 # Append ld.so.conf contents to the search path
10860 if test -f /etc/ld.so.conf; then
10861 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' ' '`
10862 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10863 fi
10864
10865 # We used to test for /lib/ld.so.1 and disable shared libraries on
10866 # powerpc, because MkLinux only supported shared libraries with the
10867 # GNU dynamic linker. Since this was broken with cross compilers,
10868 # most powerpc-linux boxes support dynamic linking these days and
10869 # people can always --disable-shared, the test was removed, and we
10870 # assume the GNU/Linux dynamic linker is in use.
10871 dynamic_linker='GNU/Linux ld.so'
10872 ;;
10873
10874 netbsd*)
10875 version_type=sunos
10876 need_lib_prefix=no
10877 need_version=no
10878 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10880 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10881 dynamic_linker='NetBSD (a.out) ld.so'
10882 else
10883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10884 soname_spec='${libname}${release}${shared_ext}$major'
10885 dynamic_linker='NetBSD ld.elf_so'
10886 fi
10887 shlibpath_var=LD_LIBRARY_PATH
10888 shlibpath_overrides_runpath=yes
10889 hardcode_into_libs=yes
10890 ;;
10891
10892 newsos6)
10893 version_type=linux
10894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10895 shlibpath_var=LD_LIBRARY_PATH
10896 shlibpath_overrides_runpath=yes
10897 ;;
10898
10899 *nto* | *qnx*)
10900 version_type=qnx
10901 need_lib_prefix=no
10902 need_version=no
10903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10904 soname_spec='${libname}${release}${shared_ext}$major'
10905 shlibpath_var=LD_LIBRARY_PATH
10906 shlibpath_overrides_runpath=no
10907 hardcode_into_libs=yes
10908 dynamic_linker='ldqnx.so'
10909 ;;
10910
10911 openbsd*)
10912 version_type=sunos
10913 sys_lib_dlsearch_path_spec="/usr/lib"
10914 need_lib_prefix=no
10915 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10916 case $host_os in
10917 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10918 *) need_version=no ;;
10919 esac
10920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10921 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10922 shlibpath_var=LD_LIBRARY_PATH
10923 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10924 case $host_os in
10925 openbsd2.[89] | openbsd2.[89].*)
10926 shlibpath_overrides_runpath=no
10927 ;;
10928 *)
10929 shlibpath_overrides_runpath=yes
10930 ;;
10931 esac
10932 else
10933 shlibpath_overrides_runpath=yes
10934 fi
10935 ;;
10936
10937 os2*)
10938 libname_spec='$name'
10939 shrext_cmds=".dll"
10940 need_lib_prefix=no
10941 library_names_spec='$libname${shared_ext} $libname.a'
10942 dynamic_linker='OS/2 ld.exe'
10943 shlibpath_var=LIBPATH
10944 ;;
10945
10946 osf3* | osf4* | osf5*)
10947 version_type=osf
10948 need_lib_prefix=no
10949 need_version=no
10950 soname_spec='${libname}${release}${shared_ext}$major'
10951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10952 shlibpath_var=LD_LIBRARY_PATH
10953 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10954 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10955 ;;
10956
10957 rdos*)
10958 dynamic_linker=no
10959 ;;
10960
10961 solaris*)
10962 version_type=linux
10963 need_lib_prefix=no
10964 need_version=no
10965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10966 soname_spec='${libname}${release}${shared_ext}$major'
10967 shlibpath_var=LD_LIBRARY_PATH
10968 shlibpath_overrides_runpath=yes
10969 hardcode_into_libs=yes
10970 # ldd complains unless libraries are executable
10971 postinstall_cmds='chmod +x $lib'
10972 ;;
10973
10974 sunos4*)
10975 version_type=sunos
10976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10977 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10978 shlibpath_var=LD_LIBRARY_PATH
10979 shlibpath_overrides_runpath=yes
10980 if test "$with_gnu_ld" = yes; then
10981 need_lib_prefix=no
10982 fi
10983 need_version=yes
10984 ;;
10985
10986 sysv4 | sysv4.3*)
10987 version_type=linux
10988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10989 soname_spec='${libname}${release}${shared_ext}$major'
10990 shlibpath_var=LD_LIBRARY_PATH
10991 case $host_vendor in
10992 sni)
10993 shlibpath_overrides_runpath=no
10994 need_lib_prefix=no
10995 runpath_var=LD_RUN_PATH
10996 ;;
10997 siemens)
10998 need_lib_prefix=no
10999 ;;
11000 motorola)
11001 need_lib_prefix=no
11002 need_version=no
11003 shlibpath_overrides_runpath=no
11004 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11005 ;;
11006 esac
11007 ;;
11008
11009 sysv4*MP*)
11010 if test -d /usr/nec ;then
11011 version_type=linux
11012 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11013 soname_spec='$libname${shared_ext}.$major'
11014 shlibpath_var=LD_LIBRARY_PATH
11015 fi
11016 ;;
11017
11018 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11019 version_type=freebsd-elf
11020 need_lib_prefix=no
11021 need_version=no
11022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11023 soname_spec='${libname}${release}${shared_ext}$major'
11024 shlibpath_var=LD_LIBRARY_PATH
11025 shlibpath_overrides_runpath=yes
11026 hardcode_into_libs=yes
11027 if test "$with_gnu_ld" = yes; then
11028 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11029 else
11030 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11031 case $host_os in
11032 sco3.2v5*)
11033 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11034 ;;
11035 esac
11036 fi
11037 sys_lib_dlsearch_path_spec='/usr/lib'
11038 ;;
11039
11040 tpf*)
11041 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11042 version_type=linux
11043 need_lib_prefix=no
11044 need_version=no
11045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11046 shlibpath_var=LD_LIBRARY_PATH
11047 shlibpath_overrides_runpath=no
11048 hardcode_into_libs=yes
11049 ;;
11050
11051 uts4*)
11052 version_type=linux
11053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11054 soname_spec='${libname}${release}${shared_ext}$major'
11055 shlibpath_var=LD_LIBRARY_PATH
11056 ;;
11057
11058 *)
11059 dynamic_linker=no
11060 ;;
11061 esac
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11063 $as_echo "$dynamic_linker" >&6; }
11064 test "$dynamic_linker" = no && can_build_shared=no
11065
11066 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11067 if test "$GCC" = yes; then
11068 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11069 fi
11070
11071 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11072 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11073 fi
11074 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11075 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11076 fi
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11170 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11171 hardcode_action=
11172 if test -n "$hardcode_libdir_flag_spec" ||
11173 test -n "$runpath_var" ||
11174 test "X$hardcode_automatic" = "Xyes" ; then
11175
11176 # We can hardcode non-existent directories.
11177 if test "$hardcode_direct" != no &&
11178 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11179 # have to relink, otherwise we might link with an installed library
11180 # when we should be linking with a yet-to-be-installed one
11181 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11182 test "$hardcode_minus_L" != no; then
11183 # Linking always hardcodes the temporary library directory.
11184 hardcode_action=relink
11185 else
11186 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11187 hardcode_action=immediate
11188 fi
11189 else
11190 # We cannot hardcode anything, or else we can only hardcode existing
11191 # directories.
11192 hardcode_action=unsupported
11193 fi
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11195 $as_echo "$hardcode_action" >&6; }
11196
11197 if test "$hardcode_action" = relink ||
11198 test "$inherit_rpath" = yes; then
11199 # Fast installation is not supported
11200 enable_fast_install=no
11201 elif test "$shlibpath_overrides_runpath" = yes ||
11202 test "$enable_shared" = no; then
11203 # Fast installation is not necessary
11204 enable_fast_install=needless
11205 fi
11206
11207
11208
11209
11210
11211
11212 if test "x$enable_dlopen" != xyes; then
11213 enable_dlopen=unknown
11214 enable_dlopen_self=unknown
11215 enable_dlopen_self_static=unknown
11216 else
11217 lt_cv_dlopen=no
11218 lt_cv_dlopen_libs=
11219
11220 case $host_os in
11221 beos*)
11222 lt_cv_dlopen="load_add_on"
11223 lt_cv_dlopen_libs=
11224 lt_cv_dlopen_self=yes
11225 ;;
11226
11227 mingw* | pw32* | cegcc*)
11228 lt_cv_dlopen="LoadLibrary"
11229 lt_cv_dlopen_libs=
11230 ;;
11231
11232 cygwin*)
11233 lt_cv_dlopen="dlopen"
11234 lt_cv_dlopen_libs=
11235 ;;
11236
11237 darwin*)
11238 # if libdl is installed we need to link against it
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11240 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11241 if ${ac_cv_lib_dl_dlopen+:} false; then :
11242 $as_echo_n "(cached) " >&6
11243 else
11244 ac_check_lib_save_LIBS=$LIBS
11245 LIBS="-ldl $LIBS"
11246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11247 /* end confdefs.h. */
11248
11249 /* Override any GCC internal prototype to avoid an error.
11250 Use char because int might match the return type of a GCC
11251 builtin and then its argument prototype would still apply. */
11252 #ifdef __cplusplus
11253 extern "C"
11254 #endif
11255 char dlopen ();
11256 int
11257 main ()
11258 {
11259 return dlopen ();
11260 ;
11261 return 0;
11262 }
11263 _ACEOF
11264 if ac_fn_c_try_link "$LINENO"; then :
11265 ac_cv_lib_dl_dlopen=yes
11266 else
11267 ac_cv_lib_dl_dlopen=no
11268 fi
11269 rm -f core conftest.err conftest.$ac_objext \
11270 conftest$ac_exeext conftest.$ac_ext
11271 LIBS=$ac_check_lib_save_LIBS
11272 fi
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11274 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11275 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11276 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11277 else
11278
11279 lt_cv_dlopen="dyld"
11280 lt_cv_dlopen_libs=
11281 lt_cv_dlopen_self=yes
11282
11283 fi
11284
11285 ;;
11286
11287 *)
11288 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11289 if test "x$ac_cv_func_shl_load" = xyes; then :
11290 lt_cv_dlopen="shl_load"
11291 else
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11293 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11294 if ${ac_cv_lib_dld_shl_load+:} false; then :
11295 $as_echo_n "(cached) " >&6
11296 else
11297 ac_check_lib_save_LIBS=$LIBS
11298 LIBS="-ldld $LIBS"
11299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11300 /* end confdefs.h. */
11301
11302 /* Override any GCC internal prototype to avoid an error.
11303 Use char because int might match the return type of a GCC
11304 builtin and then its argument prototype would still apply. */
11305 #ifdef __cplusplus
11306 extern "C"
11307 #endif
11308 char shl_load ();
11309 int
11310 main ()
11311 {
11312 return shl_load ();
11313 ;
11314 return 0;
11315 }
11316 _ACEOF
11317 if ac_fn_c_try_link "$LINENO"; then :
11318 ac_cv_lib_dld_shl_load=yes
11319 else
11320 ac_cv_lib_dld_shl_load=no
11321 fi
11322 rm -f core conftest.err conftest.$ac_objext \
11323 conftest$ac_exeext conftest.$ac_ext
11324 LIBS=$ac_check_lib_save_LIBS
11325 fi
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11327 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11328 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11329 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11330 else
11331 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11332 if test "x$ac_cv_func_dlopen" = xyes; then :
11333 lt_cv_dlopen="dlopen"
11334 else
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11336 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11337 if ${ac_cv_lib_dl_dlopen+:} false; then :
11338 $as_echo_n "(cached) " >&6
11339 else
11340 ac_check_lib_save_LIBS=$LIBS
11341 LIBS="-ldl $LIBS"
11342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11343 /* end confdefs.h. */
11344
11345 /* Override any GCC internal prototype to avoid an error.
11346 Use char because int might match the return type of a GCC
11347 builtin and then its argument prototype would still apply. */
11348 #ifdef __cplusplus
11349 extern "C"
11350 #endif
11351 char dlopen ();
11352 int
11353 main ()
11354 {
11355 return dlopen ();
11356 ;
11357 return 0;
11358 }
11359 _ACEOF
11360 if ac_fn_c_try_link "$LINENO"; then :
11361 ac_cv_lib_dl_dlopen=yes
11362 else
11363 ac_cv_lib_dl_dlopen=no
11364 fi
11365 rm -f core conftest.err conftest.$ac_objext \
11366 conftest$ac_exeext conftest.$ac_ext
11367 LIBS=$ac_check_lib_save_LIBS
11368 fi
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11370 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11371 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11372 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11373 else
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11375 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11376 if ${ac_cv_lib_svld_dlopen+:} false; then :
11377 $as_echo_n "(cached) " >&6
11378 else
11379 ac_check_lib_save_LIBS=$LIBS
11380 LIBS="-lsvld $LIBS"
11381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11382 /* end confdefs.h. */
11383
11384 /* Override any GCC internal prototype to avoid an error.
11385 Use char because int might match the return type of a GCC
11386 builtin and then its argument prototype would still apply. */
11387 #ifdef __cplusplus
11388 extern "C"
11389 #endif
11390 char dlopen ();
11391 int
11392 main ()
11393 {
11394 return dlopen ();
11395 ;
11396 return 0;
11397 }
11398 _ACEOF
11399 if ac_fn_c_try_link "$LINENO"; then :
11400 ac_cv_lib_svld_dlopen=yes
11401 else
11402 ac_cv_lib_svld_dlopen=no
11403 fi
11404 rm -f core conftest.err conftest.$ac_objext \
11405 conftest$ac_exeext conftest.$ac_ext
11406 LIBS=$ac_check_lib_save_LIBS
11407 fi
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11409 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11410 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11411 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11412 else
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11414 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11415 if ${ac_cv_lib_dld_dld_link+:} false; then :
11416 $as_echo_n "(cached) " >&6
11417 else
11418 ac_check_lib_save_LIBS=$LIBS
11419 LIBS="-ldld $LIBS"
11420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11421 /* end confdefs.h. */
11422
11423 /* Override any GCC internal prototype to avoid an error.
11424 Use char because int might match the return type of a GCC
11425 builtin and then its argument prototype would still apply. */
11426 #ifdef __cplusplus
11427 extern "C"
11428 #endif
11429 char dld_link ();
11430 int
11431 main ()
11432 {
11433 return dld_link ();
11434 ;
11435 return 0;
11436 }
11437 _ACEOF
11438 if ac_fn_c_try_link "$LINENO"; then :
11439 ac_cv_lib_dld_dld_link=yes
11440 else
11441 ac_cv_lib_dld_dld_link=no
11442 fi
11443 rm -f core conftest.err conftest.$ac_objext \
11444 conftest$ac_exeext conftest.$ac_ext
11445 LIBS=$ac_check_lib_save_LIBS
11446 fi
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11448 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11449 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11450 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11451 fi
11452
11453
11454 fi
11455
11456
11457 fi
11458
11459
11460 fi
11461
11462
11463 fi
11464
11465
11466 fi
11467
11468 ;;
11469 esac
11470
11471 if test "x$lt_cv_dlopen" != xno; then
11472 enable_dlopen=yes
11473 else
11474 enable_dlopen=no
11475 fi
11476
11477 case $lt_cv_dlopen in
11478 dlopen)
11479 save_CPPFLAGS="$CPPFLAGS"
11480 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11481
11482 save_LDFLAGS="$LDFLAGS"
11483 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11484
11485 save_LIBS="$LIBS"
11486 LIBS="$lt_cv_dlopen_libs $LIBS"
11487
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11489 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11490 if ${lt_cv_dlopen_self+:} false; then :
11491 $as_echo_n "(cached) " >&6
11492 else
11493 if test "$cross_compiling" = yes; then :
11494 lt_cv_dlopen_self=cross
11495 else
11496 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11497 lt_status=$lt_dlunknown
11498 cat > conftest.$ac_ext <<_LT_EOF
11499 #line 11499 "configure"
11500 #include "confdefs.h"
11501
11502 #if HAVE_DLFCN_H
11503 #include <dlfcn.h>
11504 #endif
11505
11506 #include <stdio.h>
11507
11508 #ifdef RTLD_GLOBAL
11509 # define LT_DLGLOBAL RTLD_GLOBAL
11510 #else
11511 # ifdef DL_GLOBAL
11512 # define LT_DLGLOBAL DL_GLOBAL
11513 # else
11514 # define LT_DLGLOBAL 0
11515 # endif
11516 #endif
11517
11518 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11519 find out it does not work in some platform. */
11520 #ifndef LT_DLLAZY_OR_NOW
11521 # ifdef RTLD_LAZY
11522 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11523 # else
11524 # ifdef DL_LAZY
11525 # define LT_DLLAZY_OR_NOW DL_LAZY
11526 # else
11527 # ifdef RTLD_NOW
11528 # define LT_DLLAZY_OR_NOW RTLD_NOW
11529 # else
11530 # ifdef DL_NOW
11531 # define LT_DLLAZY_OR_NOW DL_NOW
11532 # else
11533 # define LT_DLLAZY_OR_NOW 0
11534 # endif
11535 # endif
11536 # endif
11537 # endif
11538 #endif
11539
11540 /* When -fvisbility=hidden is used, assume the code has been annotated
11541 correspondingly for the symbols needed. */
11542 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11543 void fnord () __attribute__((visibility("default")));
11544 #endif
11545
11546 void fnord () { int i=42; }
11547 int main ()
11548 {
11549 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11550 int status = $lt_dlunknown;
11551
11552 if (self)
11553 {
11554 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11555 else
11556 {
11557 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11558 else puts (dlerror ());
11559 }
11560 /* dlclose (self); */
11561 }
11562 else
11563 puts (dlerror ());
11564
11565 return status;
11566 }
11567 _LT_EOF
11568 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11569 (eval $ac_link) 2>&5
11570 ac_status=$?
11571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11572 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11573 (./conftest; exit; ) >&5 2>/dev/null
11574 lt_status=$?
11575 case x$lt_status in
11576 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11577 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11578 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11579 esac
11580 else :
11581 # compilation failed
11582 lt_cv_dlopen_self=no
11583 fi
11584 fi
11585 rm -fr conftest*
11586
11587
11588 fi
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11590 $as_echo "$lt_cv_dlopen_self" >&6; }
11591
11592 if test "x$lt_cv_dlopen_self" = xyes; then
11593 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11595 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11596 if ${lt_cv_dlopen_self_static+:} false; then :
11597 $as_echo_n "(cached) " >&6
11598 else
11599 if test "$cross_compiling" = yes; then :
11600 lt_cv_dlopen_self_static=cross
11601 else
11602 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11603 lt_status=$lt_dlunknown
11604 cat > conftest.$ac_ext <<_LT_EOF
11605 #line 11605 "configure"
11606 #include "confdefs.h"
11607
11608 #if HAVE_DLFCN_H
11609 #include <dlfcn.h>
11610 #endif
11611
11612 #include <stdio.h>
11613
11614 #ifdef RTLD_GLOBAL
11615 # define LT_DLGLOBAL RTLD_GLOBAL
11616 #else
11617 # ifdef DL_GLOBAL
11618 # define LT_DLGLOBAL DL_GLOBAL
11619 # else
11620 # define LT_DLGLOBAL 0
11621 # endif
11622 #endif
11623
11624 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11625 find out it does not work in some platform. */
11626 #ifndef LT_DLLAZY_OR_NOW
11627 # ifdef RTLD_LAZY
11628 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11629 # else
11630 # ifdef DL_LAZY
11631 # define LT_DLLAZY_OR_NOW DL_LAZY
11632 # else
11633 # ifdef RTLD_NOW
11634 # define LT_DLLAZY_OR_NOW RTLD_NOW
11635 # else
11636 # ifdef DL_NOW
11637 # define LT_DLLAZY_OR_NOW DL_NOW
11638 # else
11639 # define LT_DLLAZY_OR_NOW 0
11640 # endif
11641 # endif
11642 # endif
11643 # endif
11644 #endif
11645
11646 /* When -fvisbility=hidden is used, assume the code has been annotated
11647 correspondingly for the symbols needed. */
11648 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11649 void fnord () __attribute__((visibility("default")));
11650 #endif
11651
11652 void fnord () { int i=42; }
11653 int main ()
11654 {
11655 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11656 int status = $lt_dlunknown;
11657
11658 if (self)
11659 {
11660 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11661 else
11662 {
11663 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11664 else puts (dlerror ());
11665 }
11666 /* dlclose (self); */
11667 }
11668 else
11669 puts (dlerror ());
11670
11671 return status;
11672 }
11673 _LT_EOF
11674 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11675 (eval $ac_link) 2>&5
11676 ac_status=$?
11677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11678 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11679 (./conftest; exit; ) >&5 2>/dev/null
11680 lt_status=$?
11681 case x$lt_status in
11682 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11683 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11684 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11685 esac
11686 else :
11687 # compilation failed
11688 lt_cv_dlopen_self_static=no
11689 fi
11690 fi
11691 rm -fr conftest*
11692
11693
11694 fi
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11696 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11697 fi
11698
11699 CPPFLAGS="$save_CPPFLAGS"
11700 LDFLAGS="$save_LDFLAGS"
11701 LIBS="$save_LIBS"
11702 ;;
11703 esac
11704
11705 case $lt_cv_dlopen_self in
11706 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11707 *) enable_dlopen_self=unknown ;;
11708 esac
11709
11710 case $lt_cv_dlopen_self_static in
11711 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11712 *) enable_dlopen_self_static=unknown ;;
11713 esac
11714 fi
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732 striplib=
11733 old_striplib=
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11735 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11736 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11737 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11738 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11740 $as_echo "yes" >&6; }
11741 else
11742 # FIXME - insert some real tests, host_os isn't really good enough
11743 case $host_os in
11744 darwin*)
11745 if test -n "$STRIP" ; then
11746 striplib="$STRIP -x"
11747 old_striplib="$STRIP -S"
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11749 $as_echo "yes" >&6; }
11750 else
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11752 $as_echo "no" >&6; }
11753 fi
11754 ;;
11755 *)
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11757 $as_echo "no" >&6; }
11758 ;;
11759 esac
11760 fi
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773 # Report which library types will actually be built
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11775 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11777 $as_echo "$can_build_shared" >&6; }
11778
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11780 $as_echo_n "checking whether to build shared libraries... " >&6; }
11781 test "$can_build_shared" = "no" && enable_shared=no
11782
11783 # On AIX, shared libraries and static libraries use the same namespace, and
11784 # are all built from PIC.
11785 case $host_os in
11786 aix3*)
11787 test "$enable_shared" = yes && enable_static=no
11788 if test -n "$RANLIB"; then
11789 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11790 postinstall_cmds='$RANLIB $lib'
11791 fi
11792 ;;
11793
11794 aix[4-9]*)
11795 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11796 test "$enable_shared" = yes && enable_static=no
11797 fi
11798 ;;
11799 esac
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11801 $as_echo "$enable_shared" >&6; }
11802
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11804 $as_echo_n "checking whether to build static libraries... " >&6; }
11805 # Make sure either enable_shared or enable_static is yes.
11806 test "$enable_shared" = yes || enable_static=yes
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11808 $as_echo "$enable_static" >&6; }
11809
11810
11811
11812
11813 fi
11814 ac_ext=c
11815 ac_cpp='$CPP $CPPFLAGS'
11816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11819
11820 CC="$lt_save_CC"
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834 ac_config_commands="$ac_config_commands libtool"
11835
11836
11837
11838
11839 # Only expand once:
11840
11841
11842
11843
11844
11845 gdc_save_DFLAGS=$GDCFLAGS
11846 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
11847
11848
11849 # Source file extension for D test sources.
11850 ac_ext=d
11851
11852 # Object file extension for compiled D test sources.
11853 objext=o
11854 objext_D=$objext
11855
11856 # Code to be used in simple compile tests
11857 lt_simple_compile_test_code="module mod; extern(C) int main() { return 0; }"
11858
11859 # Code to be used in simple link tests
11860 lt_simple_link_test_code='module mod; extern(C) int main() { return 0; }'
11861
11862 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11863
11864
11865
11866
11867
11868
11869 # If no C compiler was specified, use CC.
11870 LTCC=${LTCC-"$CC"}
11871
11872 # If no C compiler flags were specified, use CFLAGS.
11873 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11874
11875 # Allow CC to be a program name with arguments.
11876 compiler=$CC
11877
11878
11879 # save warnings/boilerplate of simple test code
11880 ac_outfile=conftest.$ac_objext
11881 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11882 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11883 _lt_compiler_boilerplate=`cat conftest.err`
11884 $RM conftest*
11885
11886 ac_outfile=conftest.$ac_objext
11887 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11888 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11889 _lt_linker_boilerplate=`cat conftest.err`
11890 $RM -r conftest*
11891
11892
11893 # Allow CC to be a program name with arguments.
11894 lt_save_CC=$CC
11895 lt_save_CFLAGS=$CFLAGS
11896 lt_save_DFLAGS=$GDCFLAGS
11897 lt_save_GCC=$GCC
11898 GCC=yes
11899 CC=${GDC-"gdc"}
11900 # Need to specify location for object.d
11901 GDCFLAGS="-nophoboslib $GDCFLAGS"
11902 CFLAGS=$GDCFLAGS
11903 compiler=$CC
11904 compiler_D=$CC
11905 LD_D=$CC
11906 for cc_temp in $compiler""; do
11907 case $cc_temp in
11908 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11909 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11910 \-*) ;;
11911 *) break;;
11912 esac
11913 done
11914 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11915
11916
11917 # GDC did not exist at the time GCC didn't implicitly link libc in.
11918 archive_cmds_need_lc_D=no
11919
11920 old_archive_cmds_D=$old_archive_cmds
11921 reload_flag_D=$reload_flag
11922 reload_cmds_D=$reload_cmds
11923
11924 ## CAVEAT EMPTOR:
11925 ## There is no encapsulation within the following macros, do not change
11926 ## the running order or otherwise move them around unless you know exactly
11927 ## what you are doing...
11928 if test -n "$compiler"; then
11929
11930 lt_prog_compiler_no_builtin_flag_D=
11931
11932 if test "$GCC" = yes; then
11933 case $cc_basename in
11934 nvcc*)
11935 lt_prog_compiler_no_builtin_flag_D=' -Xcompiler -fno-builtin' ;;
11936 *)
11937 lt_prog_compiler_no_builtin_flag_D=' -fno-builtin' ;;
11938 esac
11939
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11941 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11942 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11943 $as_echo_n "(cached) " >&6
11944 else
11945 lt_cv_prog_compiler_rtti_exceptions=no
11946 ac_outfile=conftest.$ac_objext
11947 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11948 lt_compiler_flag="-fno-rtti -fno-exceptions"
11949 # Insert the option either (1) after the last *FLAGS variable, or
11950 # (2) before a word containing "conftest.", or (3) at the end.
11951 # Note that $ac_compile itself does not contain backslashes and begins
11952 # with a dollar sign (not a hyphen), so the echo should work correctly.
11953 # The option is referenced via a variable to avoid confusing sed.
11954 lt_compile=`echo "$ac_compile" | $SED \
11955 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11956 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11957 -e 's:$: $lt_compiler_flag:'`
11958 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11959 (eval "$lt_compile" 2>conftest.err)
11960 ac_status=$?
11961 cat conftest.err >&5
11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963 if (exit $ac_status) && test -s "$ac_outfile"; then
11964 # The compiler can only warn and ignore the option if not recognized
11965 # So say no if there are warnings other than the usual output.
11966 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11967 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11968 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11969 lt_cv_prog_compiler_rtti_exceptions=yes
11970 fi
11971 fi
11972 $RM conftest*
11973
11974 fi
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11976 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11977
11978 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11979 lt_prog_compiler_no_builtin_flag_D="$lt_prog_compiler_no_builtin_flag_D -fno-rtti -fno-exceptions"
11980 else
11981 :
11982 fi
11983
11984 fi
11985
11986
11987
11988 lt_prog_compiler_wl_D=
11989 lt_prog_compiler_pic_D=
11990 lt_prog_compiler_static_D=
11991
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11993 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11994
11995 if test "$GCC" = yes; then
11996 lt_prog_compiler_wl_D='-Wl,'
11997 lt_prog_compiler_static_D='-static'
11998
11999 case $host_os in
12000 aix*)
12001 # All AIX code is PIC.
12002 if test "$host_cpu" = ia64; then
12003 # AIX 5 now supports IA64 processor
12004 lt_prog_compiler_static_D='-Bstatic'
12005 fi
12006 lt_prog_compiler_pic_D='-fPIC'
12007 ;;
12008
12009 amigaos*)
12010 case $host_cpu in
12011 powerpc)
12012 # see comment about AmigaOS4 .so support
12013 lt_prog_compiler_pic_D='-fPIC'
12014 ;;
12015 m68k)
12016 # FIXME: we need at least 68020 code to build shared libraries, but
12017 # adding the `-m68020' flag to GCC prevents building anything better,
12018 # like `-m68040'.
12019 lt_prog_compiler_pic_D='-m68020 -resident32 -malways-restore-a4'
12020 ;;
12021 esac
12022 ;;
12023
12024 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12025 # PIC is the default for these OSes.
12026 ;;
12027
12028 mingw* | cygwin* | pw32* | os2* | cegcc*)
12029 # This hack is so that the source file can tell whether it is being
12030 # built for inclusion in a dll (and should export symbols for example).
12031 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12032 # (--disable-auto-import) libraries
12033 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12034 ;;
12035
12036 darwin* | rhapsody*)
12037 # PIC is the default on this platform
12038 # Common symbols not allowed in MH_DYLIB files
12039 lt_prog_compiler_pic_D='-fno-common'
12040 ;;
12041
12042 haiku*)
12043 # PIC is the default for Haiku.
12044 # The "-static" flag exists, but is broken.
12045 lt_prog_compiler_static_D=
12046 ;;
12047
12048 hpux*)
12049 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12050 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12051 # sets the default TLS model and affects inlining.
12052 case $host_cpu in
12053 hppa*64*)
12054 # +Z the default
12055 ;;
12056 *)
12057 lt_prog_compiler_pic_D='-fPIC'
12058 ;;
12059 esac
12060 ;;
12061
12062 interix[3-9]*)
12063 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12064 # Instead, we relocate shared libraries at runtime.
12065 ;;
12066
12067 msdosdjgpp*)
12068 # Just because we use GCC doesn't mean we suddenly get shared libraries
12069 # on systems that don't support them.
12070 lt_prog_compiler_can_build_shared_D=no
12071 enable_shared=no
12072 ;;
12073
12074 *nto* | *qnx*)
12075 # QNX uses GNU C++, but need to define -shared option too, otherwise
12076 # it will coredump.
12077 lt_prog_compiler_pic_D='-fPIC -shared'
12078 ;;
12079
12080 sysv4*MP*)
12081 if test -d /usr/nec; then
12082 lt_prog_compiler_pic_D=-Kconform_pic
12083 fi
12084 ;;
12085
12086 *)
12087 lt_prog_compiler_pic_D='-fPIC'
12088 ;;
12089 esac
12090
12091 case $cc_basename in
12092 nvcc*) # Cuda Compiler Driver 2.2
12093 lt_prog_compiler_wl_D='-Xlinker '
12094 lt_prog_compiler_pic_D='-Xcompiler -fPIC'
12095 ;;
12096 esac
12097 else
12098 # PORTME Check for flag to pass linker flags through the system compiler.
12099 case $host_os in
12100 aix*)
12101 lt_prog_compiler_wl_D='-Wl,'
12102 if test "$host_cpu" = ia64; then
12103 # AIX 5 now supports IA64 processor
12104 lt_prog_compiler_static_D='-Bstatic'
12105 else
12106 lt_prog_compiler_static_D='-bnso -bI:/lib/syscalls.exp'
12107 fi
12108 ;;
12109
12110 mingw* | cygwin* | pw32* | os2* | cegcc*)
12111 # This hack is so that the source file can tell whether it is being
12112 # built for inclusion in a dll (and should export symbols for example).
12113 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12114 ;;
12115
12116 hpux9* | hpux10* | hpux11*)
12117 lt_prog_compiler_wl_D='-Wl,'
12118 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12119 # not for PA HP-UX.
12120 case $host_cpu in
12121 hppa*64*|ia64*)
12122 # +Z the default
12123 ;;
12124 *)
12125 lt_prog_compiler_pic_D='+Z'
12126 ;;
12127 esac
12128 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12129 lt_prog_compiler_static_D='${wl}-a ${wl}archive'
12130 ;;
12131
12132 irix5* | irix6* | nonstopux*)
12133 lt_prog_compiler_wl_D='-Wl,'
12134 # PIC (with -KPIC) is the default.
12135 lt_prog_compiler_static_D='-non_shared'
12136 ;;
12137
12138 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12139 case $cc_basename in
12140 # old Intel for x86_64 which still supported -KPIC.
12141 ecc*)
12142 lt_prog_compiler_wl_D='-Wl,'
12143 lt_prog_compiler_pic_D='-KPIC'
12144 lt_prog_compiler_static_D='-static'
12145 ;;
12146 # icc used to be incompatible with GCC.
12147 # ICC 10 doesn't accept -KPIC any more.
12148 icc* | ifort*)
12149 lt_prog_compiler_wl_D='-Wl,'
12150 lt_prog_compiler_pic_D='-fPIC'
12151 lt_prog_compiler_static_D='-static'
12152 ;;
12153 # Lahey Fortran 8.1.
12154 lf95*)
12155 lt_prog_compiler_wl_D='-Wl,'
12156 lt_prog_compiler_pic_D='--shared'
12157 lt_prog_compiler_static_D='--static'
12158 ;;
12159 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12160 # Portland Group compilers (*not* the Pentium gcc compiler,
12161 # which looks to be a dead project)
12162 lt_prog_compiler_wl_D='-Wl,'
12163 lt_prog_compiler_pic_D='-fpic'
12164 lt_prog_compiler_static_D='-Bstatic'
12165 ;;
12166 ccc*)
12167 lt_prog_compiler_wl_D='-Wl,'
12168 # All Alpha code is PIC.
12169 lt_prog_compiler_static_D='-non_shared'
12170 ;;
12171 xl* | bgxl* | bgf* | mpixl*)
12172 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12173 lt_prog_compiler_wl_D='-Wl,'
12174 lt_prog_compiler_pic_D='-qpic'
12175 lt_prog_compiler_static_D='-qstaticlink'
12176 ;;
12177 *)
12178 case `$CC -V 2>&1 | sed 5q` in
12179 *Sun\ F* | *Sun*Fortran*)
12180 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12181 lt_prog_compiler_pic_D='-KPIC'
12182 lt_prog_compiler_static_D='-Bstatic'
12183 lt_prog_compiler_wl_D=''
12184 ;;
12185 *Sun\ C*)
12186 # Sun C 5.9
12187 lt_prog_compiler_pic_D='-KPIC'
12188 lt_prog_compiler_static_D='-Bstatic'
12189 lt_prog_compiler_wl_D='-Wl,'
12190 ;;
12191 esac
12192 ;;
12193 esac
12194 ;;
12195
12196 newsos6)
12197 lt_prog_compiler_pic_D='-KPIC'
12198 lt_prog_compiler_static_D='-Bstatic'
12199 ;;
12200
12201 *nto* | *qnx*)
12202 # QNX uses GNU C++, but need to define -shared option too, otherwise
12203 # it will coredump.
12204 lt_prog_compiler_pic_D='-fPIC -shared'
12205 ;;
12206
12207 osf3* | osf4* | osf5*)
12208 lt_prog_compiler_wl_D='-Wl,'
12209 # All OSF/1 code is PIC.
12210 lt_prog_compiler_static_D='-non_shared'
12211 ;;
12212
12213 rdos*)
12214 lt_prog_compiler_static_D='-non_shared'
12215 ;;
12216
12217 solaris*)
12218 lt_prog_compiler_pic_D='-KPIC'
12219 lt_prog_compiler_static_D='-Bstatic'
12220 case $cc_basename in
12221 f77* | f90* | f95*)
12222 lt_prog_compiler_wl_D='-Qoption ld ';;
12223 *)
12224 lt_prog_compiler_wl_D='-Wl,';;
12225 esac
12226 ;;
12227
12228 sunos4*)
12229 lt_prog_compiler_wl_D='-Qoption ld '
12230 lt_prog_compiler_pic_D='-PIC'
12231 lt_prog_compiler_static_D='-Bstatic'
12232 ;;
12233
12234 sysv4 | sysv4.2uw2* | sysv4.3*)
12235 lt_prog_compiler_wl_D='-Wl,'
12236 lt_prog_compiler_pic_D='-KPIC'
12237 lt_prog_compiler_static_D='-Bstatic'
12238 ;;
12239
12240 sysv4*MP*)
12241 if test -d /usr/nec ;then
12242 lt_prog_compiler_pic_D='-Kconform_pic'
12243 lt_prog_compiler_static_D='-Bstatic'
12244 fi
12245 ;;
12246
12247 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12248 lt_prog_compiler_wl_D='-Wl,'
12249 lt_prog_compiler_pic_D='-KPIC'
12250 lt_prog_compiler_static_D='-Bstatic'
12251 ;;
12252
12253 unicos*)
12254 lt_prog_compiler_wl_D='-Wl,'
12255 lt_prog_compiler_can_build_shared_D=no
12256 ;;
12257
12258 uts4*)
12259 lt_prog_compiler_pic_D='-pic'
12260 lt_prog_compiler_static_D='-Bstatic'
12261 ;;
12262
12263 *)
12264 lt_prog_compiler_can_build_shared_D=no
12265 ;;
12266 esac
12267 fi
12268
12269 case $host_os in
12270 # For platforms which do not support PIC, -DPIC is meaningless:
12271 *djgpp*)
12272 lt_prog_compiler_pic_D=
12273 ;;
12274 *)
12275 lt_prog_compiler_pic_D="$lt_prog_compiler_pic_D"
12276 ;;
12277 esac
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_D" >&5
12279 $as_echo "$lt_prog_compiler_pic_D" >&6; }
12280
12281
12282
12283 #
12284 # Check to make sure the PIC flag actually works.
12285 #
12286 if test -n "$lt_prog_compiler_pic_D"; then
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_D works" >&5
12288 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_D works... " >&6; }
12289 if ${lt_cv_prog_compiler_pic_works_D+:} false; then :
12290 $as_echo_n "(cached) " >&6
12291 else
12292 lt_cv_prog_compiler_pic_works_D=no
12293 ac_outfile=conftest.$ac_objext
12294 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12295 lt_compiler_flag="$lt_prog_compiler_pic_D"
12296 # Insert the option either (1) after the last *FLAGS variable, or
12297 # (2) before a word containing "conftest.", or (3) at the end.
12298 # Note that $ac_compile itself does not contain backslashes and begins
12299 # with a dollar sign (not a hyphen), so the echo should work correctly.
12300 # The option is referenced via a variable to avoid confusing sed.
12301 lt_compile=`echo "$ac_compile" | $SED \
12302 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12303 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12304 -e 's:$: $lt_compiler_flag:'`
12305 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12306 (eval "$lt_compile" 2>conftest.err)
12307 ac_status=$?
12308 cat conftest.err >&5
12309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310 if (exit $ac_status) && test -s "$ac_outfile"; then
12311 # The compiler can only warn and ignore the option if not recognized
12312 # So say no if there are warnings other than the usual output.
12313 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12314 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12315 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12316 lt_cv_prog_compiler_pic_works_D=yes
12317 fi
12318 fi
12319 $RM conftest*
12320
12321 fi
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_D" >&5
12323 $as_echo "$lt_cv_prog_compiler_pic_works_D" >&6; }
12324
12325 if test x"$lt_cv_prog_compiler_pic_works_D" = xyes; then
12326 case $lt_prog_compiler_pic_D in
12327 "" | " "*) ;;
12328 *) lt_prog_compiler_pic_D=" $lt_prog_compiler_pic_D" ;;
12329 esac
12330 else
12331 lt_prog_compiler_pic_D=
12332 lt_prog_compiler_can_build_shared_D=no
12333 fi
12334
12335 fi
12336
12337
12338
12339 #
12340 # Check to make sure the static flag actually works.
12341 #
12342 wl=$lt_prog_compiler_wl_D eval lt_tmp_static_flag=\"$lt_prog_compiler_static_D\"
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12344 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12345 if ${lt_cv_prog_compiler_static_works_D+:} false; then :
12346 $as_echo_n "(cached) " >&6
12347 else
12348 lt_cv_prog_compiler_static_works_D=no
12349 save_LDFLAGS="$LDFLAGS"
12350 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12351 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12352 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12353 # The linker can only warn and ignore the option if not recognized
12354 # So say no if there are warnings
12355 if test -s conftest.err; then
12356 # Append any errors to the config.log.
12357 cat conftest.err 1>&5
12358 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12359 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12360 if diff conftest.exp conftest.er2 >/dev/null; then
12361 lt_cv_prog_compiler_static_works_D=yes
12362 fi
12363 else
12364 lt_cv_prog_compiler_static_works_D=yes
12365 fi
12366 fi
12367 $RM -r conftest*
12368 LDFLAGS="$save_LDFLAGS"
12369
12370 fi
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_D" >&5
12372 $as_echo "$lt_cv_prog_compiler_static_works_D" >&6; }
12373
12374 if test x"$lt_cv_prog_compiler_static_works_D" = xyes; then
12375 :
12376 else
12377 lt_prog_compiler_static_D=
12378 fi
12379
12380
12381
12382
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12384 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12385 if ${lt_cv_prog_compiler_c_o_D+:} false; then :
12386 $as_echo_n "(cached) " >&6
12387 else
12388 lt_cv_prog_compiler_c_o_D=no
12389 $RM -r conftest 2>/dev/null
12390 mkdir conftest
12391 cd conftest
12392 mkdir out
12393 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12394
12395 lt_compiler_flag="-o out/conftest2.$ac_objext"
12396 # Insert the option either (1) after the last *FLAGS variable, or
12397 # (2) before a word containing "conftest.", or (3) at the end.
12398 # Note that $ac_compile itself does not contain backslashes and begins
12399 # with a dollar sign (not a hyphen), so the echo should work correctly.
12400 lt_compile=`echo "$ac_compile" | $SED \
12401 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12402 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12403 -e 's:$: $lt_compiler_flag:'`
12404 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12405 (eval "$lt_compile" 2>out/conftest.err)
12406 ac_status=$?
12407 cat out/conftest.err >&5
12408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12410 then
12411 # The compiler can only warn and ignore the option if not recognized
12412 # So say no if there are warnings
12413 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12414 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12415 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12416 lt_cv_prog_compiler_c_o_D=yes
12417 fi
12418 fi
12419 chmod u+w . 2>&5
12420 $RM conftest*
12421 # SGI C++ compiler will create directory out/ii_files/ for
12422 # template instantiation
12423 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12424 $RM out/* && rmdir out
12425 cd ..
12426 $RM -r conftest
12427 $RM conftest*
12428
12429 fi
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12431 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12432
12433
12434
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12436 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12437 if ${lt_cv_prog_compiler_c_o_D+:} false; then :
12438 $as_echo_n "(cached) " >&6
12439 else
12440 lt_cv_prog_compiler_c_o_D=no
12441 $RM -r conftest 2>/dev/null
12442 mkdir conftest
12443 cd conftest
12444 mkdir out
12445 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12446
12447 lt_compiler_flag="-o out/conftest2.$ac_objext"
12448 # Insert the option either (1) after the last *FLAGS variable, or
12449 # (2) before a word containing "conftest.", or (3) at the end.
12450 # Note that $ac_compile itself does not contain backslashes and begins
12451 # with a dollar sign (not a hyphen), so the echo should work correctly.
12452 lt_compile=`echo "$ac_compile" | $SED \
12453 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12454 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12455 -e 's:$: $lt_compiler_flag:'`
12456 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12457 (eval "$lt_compile" 2>out/conftest.err)
12458 ac_status=$?
12459 cat out/conftest.err >&5
12460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12462 then
12463 # The compiler can only warn and ignore the option if not recognized
12464 # So say no if there are warnings
12465 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12466 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12467 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12468 lt_cv_prog_compiler_c_o_D=yes
12469 fi
12470 fi
12471 chmod u+w . 2>&5
12472 $RM conftest*
12473 # SGI C++ compiler will create directory out/ii_files/ for
12474 # template instantiation
12475 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12476 $RM out/* && rmdir out
12477 cd ..
12478 $RM -r conftest
12479 $RM conftest*
12480
12481 fi
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12483 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12484
12485
12486
12487
12488 hard_links="nottested"
12489 if test "$lt_cv_prog_compiler_c_o_D" = no && test "$need_locks" != no; then
12490 # do not overwrite the value of need_locks provided by the user
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12492 $as_echo_n "checking if we can lock with hard links... " >&6; }
12493 hard_links=yes
12494 $RM conftest*
12495 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12496 touch conftest.a
12497 ln conftest.a conftest.b 2>&5 || hard_links=no
12498 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12500 $as_echo "$hard_links" >&6; }
12501 if test "$hard_links" = no; then
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12503 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12504 need_locks=warn
12505 fi
12506 else
12507 need_locks=no
12508 fi
12509
12510
12511
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12513 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12514
12515 runpath_var=
12516 allow_undefined_flag_D=
12517 always_export_symbols_D=no
12518 archive_cmds_D=
12519 archive_expsym_cmds_D=
12520 compiler_needs_object_D=no
12521 enable_shared_with_static_runtimes_D=no
12522 export_dynamic_flag_spec_D=
12523 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12524 hardcode_automatic_D=no
12525 hardcode_direct_D=no
12526 hardcode_direct_absolute_D=no
12527 hardcode_libdir_flag_spec_D=
12528 hardcode_libdir_flag_spec_ld_D=
12529 hardcode_libdir_separator_D=
12530 hardcode_minus_L_D=no
12531 hardcode_shlibpath_var_D=unsupported
12532 inherit_rpath_D=no
12533 link_all_deplibs_D=unknown
12534 module_cmds_D=
12535 module_expsym_cmds_D=
12536 old_archive_from_new_cmds_D=
12537 old_archive_from_expsyms_cmds_D=
12538 thread_safe_flag_spec_D=
12539 whole_archive_flag_spec_D=
12540 # include_expsyms should be a list of space-separated symbols to be *always*
12541 # included in the symbol list
12542 include_expsyms_D=
12543 # exclude_expsyms can be an extended regexp of symbols to exclude
12544 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12545 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12546 # as well as any symbol that contains `d'.
12547 exclude_expsyms_D='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12548 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12549 # platforms (ab)use it in PIC code, but their linkers get confused if
12550 # the symbol is explicitly referenced. Since portable code cannot
12551 # rely on this symbol name, it's probably fine to never include it in
12552 # preloaded symbol tables.
12553 # Exclude shared library initialization/finalization symbols.
12554 extract_expsyms_cmds=
12555
12556 case $host_os in
12557 cygwin* | mingw* | pw32* | cegcc*)
12558 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12559 # When not using gcc, we currently assume that we are using
12560 # Microsoft Visual C++.
12561 if test "$GCC" != yes; then
12562 with_gnu_ld=no
12563 fi
12564 ;;
12565 interix*)
12566 # we just hope/assume this is gcc and not c89 (= MSVC++)
12567 with_gnu_ld=yes
12568 ;;
12569 openbsd*)
12570 with_gnu_ld=no
12571 ;;
12572 esac
12573
12574 ld_shlibs_D=yes
12575
12576 # On some targets, GNU ld is compatible enough with the native linker
12577 # that we're better off using the native interface for both.
12578 lt_use_gnu_ld_interface=no
12579 if test "$with_gnu_ld" = yes; then
12580 case $host_os in
12581 aix*)
12582 # The AIX port of GNU ld has always aspired to compatibility
12583 # with the native linker. However, as the warning in the GNU ld
12584 # block says, versions before 2.19.5* couldn't really create working
12585 # shared libraries, regardless of the interface used.
12586 case `$LD -v 2>&1` in
12587 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12588 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12589 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12590 *)
12591 lt_use_gnu_ld_interface=yes
12592 ;;
12593 esac
12594 ;;
12595 *)
12596 lt_use_gnu_ld_interface=yes
12597 ;;
12598 esac
12599 fi
12600
12601 if test "$lt_use_gnu_ld_interface" = yes; then
12602 # If archive_cmds runs LD, not CC, wlarc should be empty
12603 wlarc='${wl}'
12604
12605 # Set some defaults for GNU ld with shared library support. These
12606 # are reset later if shared libraries are not supported. Putting them
12607 # here allows them to be overridden if necessary.
12608 runpath_var=LD_RUN_PATH
12609 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12610 export_dynamic_flag_spec_D='${wl}--export-dynamic'
12611 # ancient GNU ld didn't support --whole-archive et. al.
12612 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12613 whole_archive_flag_spec_D="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12614 else
12615 whole_archive_flag_spec_D=
12616 fi
12617 supports_anon_versioning=no
12618 case `$LD -v 2>&1` in
12619 *GNU\ gold*) supports_anon_versioning=yes ;;
12620 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12621 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12622 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12623 *\ 2.11.*) ;; # other 2.11 versions
12624 *) supports_anon_versioning=yes ;;
12625 esac
12626
12627 # See if GNU ld supports shared libraries.
12628 case $host_os in
12629 aix[3-9]*)
12630 # On AIX/PPC, the GNU linker is very broken
12631 if test "$host_cpu" != ia64; then
12632 ld_shlibs_D=no
12633 cat <<_LT_EOF 1>&2
12634
12635 *** Warning: the GNU linker, at least up to release 2.19, is reported
12636 *** to be unable to reliably create shared libraries on AIX.
12637 *** Therefore, libtool is disabling shared libraries support. If you
12638 *** really care for shared libraries, you may want to install binutils
12639 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12640 *** You will then need to restart the configuration process.
12641
12642 _LT_EOF
12643 fi
12644 ;;
12645
12646 amigaos*)
12647 case $host_cpu in
12648 powerpc)
12649 # see comment about AmigaOS4 .so support
12650 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12651 archive_expsym_cmds_D=''
12652 ;;
12653 m68k)
12654 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)'
12655 hardcode_libdir_flag_spec_D='-L$libdir'
12656 hardcode_minus_L_D=yes
12657 ;;
12658 esac
12659 ;;
12660
12661 beos*)
12662 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12663 allow_undefined_flag_D=unsupported
12664 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12665 # support --undefined. This deserves some investigation. FIXME
12666 archive_cmds_D='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12667 else
12668 ld_shlibs_D=no
12669 fi
12670 ;;
12671
12672 cygwin* | mingw* | pw32* | cegcc*)
12673 # _LT_TAGVAR(hardcode_libdir_flag_spec, D) is actually meaningless,
12674 # as there is no search path for DLLs.
12675 hardcode_libdir_flag_spec_D='-L$libdir'
12676 export_dynamic_flag_spec_D='${wl}--export-all-symbols'
12677 allow_undefined_flag_D=unsupported
12678 always_export_symbols_D=no
12679 enable_shared_with_static_runtimes_D=yes
12680 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12681
12682 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12683 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12684 # If the export-symbols file already is a .def file (1st line
12685 # is EXPORTS), use it as is; otherwise, prepend...
12686 archive_expsym_cmds_D='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12687 cp $export_symbols $output_objdir/$soname.def;
12688 else
12689 echo EXPORTS > $output_objdir/$soname.def;
12690 cat $export_symbols >> $output_objdir/$soname.def;
12691 fi~
12692 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12693 else
12694 ld_shlibs_D=no
12695 fi
12696 ;;
12697
12698 haiku*)
12699 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12700 link_all_deplibs_D=yes
12701 ;;
12702
12703 interix[3-9]*)
12704 hardcode_direct_D=no
12705 hardcode_shlibpath_var_D=no
12706 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
12707 export_dynamic_flag_spec_D='${wl}-E'
12708 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12709 # Instead, shared libraries are loaded at an image base (0x10000000 by
12710 # default) and relocated if they conflict, which is a slow very memory
12711 # consuming and fragmenting process. To avoid this, we pick a random,
12712 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12713 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12714 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'
12715 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'
12716 ;;
12717
12718 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12719 tmp_diet=no
12720 if test "$host_os" = linux-dietlibc; then
12721 case $cc_basename in
12722 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12723 esac
12724 fi
12725 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12726 && test "$tmp_diet" = no
12727 then
12728 tmp_addflag=' $pic_flag'
12729 tmp_sharedflag='-shared'
12730 case $cc_basename,$host_cpu in
12731 pgcc*) # Portland Group C compiler
12732 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'
12733 tmp_addflag=' $pic_flag'
12734 ;;
12735 pgf77* | pgf90* | pgf95* | pgfortran*)
12736 # Portland Group f77 and f90 compilers
12737 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'
12738 tmp_addflag=' $pic_flag -Mnomain' ;;
12739 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12740 tmp_addflag=' -i_dynamic' ;;
12741 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12742 tmp_addflag=' -i_dynamic -nofor_main' ;;
12743 ifc* | ifort*) # Intel Fortran compiler
12744 tmp_addflag=' -nofor_main' ;;
12745 lf95*) # Lahey Fortran 8.1
12746 whole_archive_flag_spec_D=
12747 tmp_sharedflag='--shared' ;;
12748 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12749 tmp_sharedflag='-qmkshrobj'
12750 tmp_addflag= ;;
12751 nvcc*) # Cuda Compiler Driver 2.2
12752 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'
12753 compiler_needs_object_D=yes
12754 ;;
12755 esac
12756 case `$CC -V 2>&1 | sed 5q` in
12757 *Sun\ C*) # Sun C 5.9
12758 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'
12759 compiler_needs_object_D=yes
12760 tmp_sharedflag='-G' ;;
12761 *Sun\ F*) # Sun Fortran 8.3
12762 tmp_sharedflag='-G' ;;
12763 esac
12764 archive_cmds_D='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12765
12766 if test "x$supports_anon_versioning" = xyes; then
12767 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
12768 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12769 echo "local: *; };" >> $output_objdir/$libname.ver~
12770 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12771 fi
12772
12773 case $cc_basename in
12774 xlf* | bgf* | bgxlf* | mpixlf*)
12775 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12776 whole_archive_flag_spec_D='--whole-archive$convenience --no-whole-archive'
12777 hardcode_libdir_flag_spec_D=
12778 hardcode_libdir_flag_spec_ld_D='-rpath $libdir'
12779 archive_cmds_D='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12780 if test "x$supports_anon_versioning" = xyes; then
12781 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
12782 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12783 echo "local: *; };" >> $output_objdir/$libname.ver~
12784 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12785 fi
12786 ;;
12787 esac
12788 else
12789 ld_shlibs_D=no
12790 fi
12791 ;;
12792
12793 netbsd*)
12794 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12795 archive_cmds_D='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12796 wlarc=
12797 else
12798 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12799 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12800 fi
12801 ;;
12802
12803 solaris*)
12804 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12805 ld_shlibs_D=no
12806 cat <<_LT_EOF 1>&2
12807
12808 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12809 *** create shared libraries on Solaris systems. Therefore, libtool
12810 *** is disabling shared libraries support. We urge you to upgrade GNU
12811 *** binutils to release 2.9.1 or newer. Another option is to modify
12812 *** your PATH or compiler configuration so that the native linker is
12813 *** used, and then restart.
12814
12815 _LT_EOF
12816 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12817 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12818 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12819 else
12820 ld_shlibs_D=no
12821 fi
12822 ;;
12823
12824 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12825 case `$LD -v 2>&1` in
12826 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12827 ld_shlibs_D=no
12828 cat <<_LT_EOF 1>&2
12829
12830 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12831 *** reliably create shared libraries on SCO systems. Therefore, libtool
12832 *** is disabling shared libraries support. We urge you to upgrade GNU
12833 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12834 *** your PATH or compiler configuration so that the native linker is
12835 *** used, and then restart.
12836
12837 _LT_EOF
12838 ;;
12839 *)
12840 # For security reasons, it is highly recommended that you always
12841 # use absolute paths for naming shared libraries, and exclude the
12842 # DT_RUNPATH tag from executables and libraries. But doing so
12843 # requires that you compile everything twice, which is a pain.
12844 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12845 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12846 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12847 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12848 else
12849 ld_shlibs_D=no
12850 fi
12851 ;;
12852 esac
12853 ;;
12854
12855 sunos4*)
12856 archive_cmds_D='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12857 wlarc=
12858 hardcode_direct_D=yes
12859 hardcode_shlibpath_var_D=no
12860 ;;
12861
12862 *)
12863 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12864 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12865 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12866 else
12867 ld_shlibs_D=no
12868 fi
12869 ;;
12870 esac
12871
12872 if test "$ld_shlibs_D" = no; then
12873 runpath_var=
12874 hardcode_libdir_flag_spec_D=
12875 export_dynamic_flag_spec_D=
12876 whole_archive_flag_spec_D=
12877 fi
12878 else
12879 # PORTME fill in a description of your system's linker (not GNU ld)
12880 case $host_os in
12881 aix3*)
12882 allow_undefined_flag_D=unsupported
12883 always_export_symbols_D=yes
12884 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'
12885 # Note: this linker hardcodes the directories in LIBPATH if there
12886 # are no directories specified by -L.
12887 hardcode_minus_L_D=yes
12888 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12889 # Neither direct hardcoding nor static linking is supported with a
12890 # broken collect2.
12891 hardcode_direct_D=unsupported
12892 fi
12893 ;;
12894
12895 aix[4-9]*)
12896 if test "$host_cpu" = ia64; then
12897 # On IA64, the linker does run time linking by default, so we don't
12898 # have to do anything special.
12899 aix_use_runtimelinking=no
12900 exp_sym_flag='-Bexport'
12901 no_entry_flag=""
12902 else
12903 # If we're using GNU nm, then we don't want the "-C" option.
12904 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12905 # Also, AIX nm treats weak defined symbols like other global
12906 # defined symbols, whereas GNU nm marks them as "W".
12907 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12908 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'
12909 else
12910 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'
12911 fi
12912 aix_use_runtimelinking=no
12913
12914 # Test if we are trying to use run time linking or normal
12915 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12916 # need to do runtime linking.
12917 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12918 for ld_flag in $LDFLAGS; do
12919 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12920 aix_use_runtimelinking=yes
12921 break
12922 fi
12923 done
12924 ;;
12925 esac
12926
12927 exp_sym_flag='-bexport'
12928 no_entry_flag='-bnoentry'
12929 fi
12930
12931 # When large executables or shared objects are built, AIX ld can
12932 # have problems creating the table of contents. If linking a library
12933 # or program results in "error TOC overflow" add -mminimal-toc to
12934 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12935 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12936
12937 archive_cmds_D=''
12938 hardcode_direct_D=yes
12939 hardcode_direct_absolute_D=yes
12940 hardcode_libdir_separator_D=':'
12941 link_all_deplibs_D=yes
12942 file_list_spec_D='${wl}-f,'
12943
12944 if test "$GCC" = yes; then
12945 case $host_os in aix4.[012]|aix4.[012].*)
12946 # We only want to do this on AIX 4.2 and lower, the check
12947 # below for broken collect2 doesn't work under 4.3+
12948 collect2name=`${CC} -print-prog-name=collect2`
12949 if test -f "$collect2name" &&
12950 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12951 then
12952 # We have reworked collect2
12953 :
12954 else
12955 # We have old collect2
12956 hardcode_direct_D=unsupported
12957 # It fails to find uninstalled libraries when the uninstalled
12958 # path is not listed in the libpath. Setting hardcode_minus_L
12959 # to unsupported forces relinking
12960 hardcode_minus_L_D=yes
12961 hardcode_libdir_flag_spec_D='-L$libdir'
12962 hardcode_libdir_separator_D=
12963 fi
12964 ;;
12965 esac
12966 shared_flag='-shared'
12967 if test "$aix_use_runtimelinking" = yes; then
12968 shared_flag="$shared_flag "'${wl}-G'
12969 fi
12970 else
12971 # not using gcc
12972 if test "$host_cpu" = ia64; then
12973 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12974 # chokes on -Wl,-G. The following line is correct:
12975 shared_flag='-G'
12976 else
12977 if test "$aix_use_runtimelinking" = yes; then
12978 shared_flag='${wl}-G'
12979 else
12980 shared_flag='${wl}-bM:SRE'
12981 fi
12982 fi
12983 fi
12984
12985 export_dynamic_flag_spec_D='${wl}-bexpall'
12986 # It seems that -bexpall does not export symbols beginning with
12987 # underscore (_), so it is better to generate a list of symbols to export.
12988 always_export_symbols_D=yes
12989 if test "$aix_use_runtimelinking" = yes; then
12990 # Warning - without using the other runtime loading flags (-brtl),
12991 # -berok will link without error, but may produce a broken library.
12992 allow_undefined_flag_D='-berok'
12993 # Determine the default libpath from the value encoded in an
12994 # empty executable.
12995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12996 /* end confdefs.h. */
12997
12998 int
12999 main ()
13000 {
13001
13002 ;
13003 return 0;
13004 }
13005 _ACEOF
13006 if ac_fn_c_try_link "$LINENO"; then :
13007
13008 lt_aix_libpath_sed='
13009 /Import File Strings/,/^$/ {
13010 /^0/ {
13011 s/^0 *\(.*\)$/\1/
13012 p
13013 }
13014 }'
13015 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13016 # Check for a 64-bit object if we didn't find anything.
13017 if test -z "$aix_libpath"; then
13018 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13019 fi
13020 fi
13021 rm -f core conftest.err conftest.$ac_objext \
13022 conftest$ac_exeext conftest.$ac_ext
13023 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13024
13025 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13026 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"
13027 else
13028 if test "$host_cpu" = ia64; then
13029 hardcode_libdir_flag_spec_D='${wl}-R $libdir:/usr/lib:/lib'
13030 allow_undefined_flag_D="-z nodefs"
13031 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"
13032 else
13033 # Determine the default libpath from the value encoded in an
13034 # empty executable.
13035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13036 /* end confdefs.h. */
13037
13038 int
13039 main ()
13040 {
13041
13042 ;
13043 return 0;
13044 }
13045 _ACEOF
13046 if ac_fn_c_try_link "$LINENO"; then :
13047
13048 lt_aix_libpath_sed='
13049 /Import File Strings/,/^$/ {
13050 /^0/ {
13051 s/^0 *\(.*\)$/\1/
13052 p
13053 }
13054 }'
13055 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13056 # Check for a 64-bit object if we didn't find anything.
13057 if test -z "$aix_libpath"; then
13058 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13059 fi
13060 fi
13061 rm -f core conftest.err conftest.$ac_objext \
13062 conftest$ac_exeext conftest.$ac_ext
13063 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13064
13065 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13066 # Warning - without using the other run time loading flags,
13067 # -berok will link without error, but may produce a broken library.
13068 no_undefined_flag_D=' ${wl}-bernotok'
13069 allow_undefined_flag_D=' ${wl}-berok'
13070 if test "$with_gnu_ld" = yes; then
13071 # We only use this code for GNU lds that support --whole-archive.
13072 whole_archive_flag_spec_D='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13073 else
13074 # Exported symbols can be pulled into shared objects from archives
13075 whole_archive_flag_spec_D='$convenience'
13076 fi
13077 archive_cmds_need_lc_D=yes
13078 # This is similar to how AIX traditionally builds its shared libraries.
13079 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'
13080 fi
13081 fi
13082 ;;
13083
13084 amigaos*)
13085 case $host_cpu in
13086 powerpc)
13087 # see comment about AmigaOS4 .so support
13088 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13089 archive_expsym_cmds_D=''
13090 ;;
13091 m68k)
13092 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)'
13093 hardcode_libdir_flag_spec_D='-L$libdir'
13094 hardcode_minus_L_D=yes
13095 ;;
13096 esac
13097 ;;
13098
13099 bsdi[45]*)
13100 export_dynamic_flag_spec_D=-rdynamic
13101 ;;
13102
13103 cygwin* | mingw* | pw32* | cegcc*)
13104 # When not using gcc, we currently assume that we are using
13105 # Microsoft Visual C++.
13106 # hardcode_libdir_flag_spec is actually meaningless, as there is
13107 # no search path for DLLs.
13108 hardcode_libdir_flag_spec_D=' '
13109 allow_undefined_flag_D=unsupported
13110 # Tell ltmain to make .lib files, not .a files.
13111 libext=lib
13112 # Tell ltmain to make .dll files, not .so files.
13113 shrext_cmds=".dll"
13114 # FIXME: Setting linknames here is a bad hack.
13115 archive_cmds_D='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13116 # The linker will automatically build a .lib file if we build a DLL.
13117 old_archive_from_new_cmds_D='true'
13118 # FIXME: Should let the user specify the lib program.
13119 old_archive_cmds_D='lib -OUT:$oldlib$oldobjs$old_deplibs'
13120 fix_srcfile_path_D='`cygpath -w "$srcfile"`'
13121 enable_shared_with_static_runtimes_D=yes
13122 ;;
13123
13124 darwin* | rhapsody*)
13125
13126
13127 archive_cmds_need_lc_D=no
13128 hardcode_direct_D=no
13129 hardcode_automatic_D=yes
13130 hardcode_shlibpath_var_D=unsupported
13131 if test "$lt_cv_ld_force_load" = "yes"; then
13132 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\"`'
13133 else
13134 whole_archive_flag_spec_D=''
13135 fi
13136 link_all_deplibs_D=yes
13137 allow_undefined_flag_D="$_lt_dar_allow_undefined"
13138 case $cc_basename in
13139 ifort*) _lt_dar_can_shared=yes ;;
13140 *) _lt_dar_can_shared=$GCC ;;
13141 esac
13142 if test "$_lt_dar_can_shared" = "yes"; then
13143 output_verbose_link_cmd=func_echo_all
13144 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}"
13145 module_cmds_D="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13146 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}"
13147 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}"
13148
13149 else
13150 ld_shlibs_D=no
13151 fi
13152
13153 ;;
13154
13155 dgux*)
13156 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13157 hardcode_libdir_flag_spec_D='-L$libdir'
13158 hardcode_shlibpath_var_D=no
13159 ;;
13160
13161 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13162 # support. Future versions do this automatically, but an explicit c++rt0.o
13163 # does not break anything, and helps significantly (at the cost of a little
13164 # extra space).
13165 freebsd2.2*)
13166 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13167 hardcode_libdir_flag_spec_D='-R$libdir'
13168 hardcode_direct_D=yes
13169 hardcode_shlibpath_var_D=no
13170 ;;
13171
13172 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13173 freebsd2.*)
13174 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13175 hardcode_direct_D=yes
13176 hardcode_minus_L_D=yes
13177 hardcode_shlibpath_var_D=no
13178 ;;
13179
13180 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13181 freebsd* | dragonfly*)
13182 archive_cmds_D='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13183 hardcode_libdir_flag_spec_D='-R$libdir'
13184 hardcode_direct_D=yes
13185 hardcode_shlibpath_var_D=no
13186 ;;
13187
13188 hpux9*)
13189 if test "$GCC" = yes; then
13190 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'
13191 else
13192 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'
13193 fi
13194 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13195 hardcode_libdir_separator_D=:
13196 hardcode_direct_D=yes
13197
13198 # hardcode_minus_L: Not really in the search PATH,
13199 # but as the default location of the library.
13200 hardcode_minus_L_D=yes
13201 export_dynamic_flag_spec_D='${wl}-E'
13202 ;;
13203
13204 hpux10*)
13205 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13206 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13207 else
13208 archive_cmds_D='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13209 fi
13210 if test "$with_gnu_ld" = no; then
13211 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13212 hardcode_libdir_flag_spec_ld_D='+b $libdir'
13213 hardcode_libdir_separator_D=:
13214 hardcode_direct_D=yes
13215 hardcode_direct_absolute_D=yes
13216 export_dynamic_flag_spec_D='${wl}-E'
13217 # hardcode_minus_L: Not really in the search PATH,
13218 # but as the default location of the library.
13219 hardcode_minus_L_D=yes
13220 fi
13221 ;;
13222
13223 hpux11*)
13224 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13225 case $host_cpu in
13226 hppa*64*)
13227 archive_cmds_D='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13228 ;;
13229 ia64*)
13230 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13231 ;;
13232 *)
13233 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13234 ;;
13235 esac
13236 else
13237 case $host_cpu in
13238 hppa*64*)
13239 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13240 ;;
13241 ia64*)
13242 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13243 ;;
13244 *)
13245 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13246 ;;
13247 esac
13248 fi
13249 if test "$with_gnu_ld" = no; then
13250 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13251 hardcode_libdir_separator_D=:
13252
13253 case $host_cpu in
13254 hppa*64*|ia64*)
13255 hardcode_direct_D=no
13256 hardcode_shlibpath_var_D=no
13257 ;;
13258 *)
13259 hardcode_direct_D=yes
13260 hardcode_direct_absolute_D=yes
13261 export_dynamic_flag_spec_D='${wl}-E'
13262
13263 # hardcode_minus_L: Not really in the search PATH,
13264 # but as the default location of the library.
13265 hardcode_minus_L_D=yes
13266 ;;
13267 esac
13268 fi
13269 ;;
13270
13271 irix5* | irix6* | nonstopux*)
13272 if test "$GCC" = yes; then
13273 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'
13274 # Try to use the -exported_symbol ld option, if it does not
13275 # work, assume that -exports_file does not work either and
13276 # implicitly export all symbols.
13277 save_LDFLAGS="$LDFLAGS"
13278 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13280 /* end confdefs.h. */
13281 int foo(void) {}
13282 _ACEOF
13283 if ac_fn_c_try_link "$LINENO"; then :
13284 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'
13285
13286 fi
13287 rm -f core conftest.err conftest.$ac_objext \
13288 conftest$ac_exeext conftest.$ac_ext
13289 LDFLAGS="$save_LDFLAGS"
13290 else
13291 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'
13292 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'
13293 fi
13294 archive_cmds_need_lc_D='no'
13295 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13296 hardcode_libdir_separator_D=:
13297 inherit_rpath_D=yes
13298 link_all_deplibs_D=yes
13299 ;;
13300
13301 netbsd*)
13302 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13303 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13304 else
13305 archive_cmds_D='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13306 fi
13307 hardcode_libdir_flag_spec_D='-R$libdir'
13308 hardcode_direct_D=yes
13309 hardcode_shlibpath_var_D=no
13310 ;;
13311
13312 newsos6)
13313 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13314 hardcode_direct_D=yes
13315 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13316 hardcode_libdir_separator_D=:
13317 hardcode_shlibpath_var_D=no
13318 ;;
13319
13320 *nto* | *qnx*)
13321 ;;
13322
13323 openbsd*)
13324 if test -f /usr/libexec/ld.so; then
13325 hardcode_direct_D=yes
13326 hardcode_shlibpath_var_D=no
13327 hardcode_direct_absolute_D=yes
13328 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13329 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13330 archive_expsym_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13331 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13332 export_dynamic_flag_spec_D='${wl}-E'
13333 else
13334 case $host_os in
13335 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13336 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13337 hardcode_libdir_flag_spec_D='-R$libdir'
13338 ;;
13339 *)
13340 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13341 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13342 ;;
13343 esac
13344 fi
13345 else
13346 ld_shlibs_D=no
13347 fi
13348 ;;
13349
13350 os2*)
13351 hardcode_libdir_flag_spec_D='-L$libdir'
13352 hardcode_minus_L_D=yes
13353 allow_undefined_flag_D=unsupported
13354 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'
13355 old_archive_from_new_cmds_D='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13356 ;;
13357
13358 osf3*)
13359 if test "$GCC" = yes; then
13360 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13361 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'
13362 else
13363 allow_undefined_flag_D=' -expect_unresolved \*'
13364 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'
13365 fi
13366 archive_cmds_need_lc_D='no'
13367 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13368 hardcode_libdir_separator_D=:
13369 ;;
13370
13371 osf4* | osf5*) # as osf3* with the addition of -msym flag
13372 if test "$GCC" = yes; then
13373 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13374 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'
13375 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13376 else
13377 allow_undefined_flag_D=' -expect_unresolved \*'
13378 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'
13379 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~
13380 $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'
13381
13382 # Both c and cxx compiler support -rpath directly
13383 hardcode_libdir_flag_spec_D='-rpath $libdir'
13384 fi
13385 archive_cmds_need_lc_D='no'
13386 hardcode_libdir_separator_D=:
13387 ;;
13388
13389 solaris*)
13390 no_undefined_flag_D=' -z defs'
13391 if test "$GCC" = yes; then
13392 wlarc='${wl}'
13393 archive_cmds_D='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13394 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13395 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13396 else
13397 case `$CC -V 2>&1` in
13398 *"Compilers 5.0"*)
13399 wlarc=''
13400 archive_cmds_D='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13401 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13402 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13403 ;;
13404 *)
13405 wlarc='${wl}'
13406 archive_cmds_D='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13407 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13408 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13409 ;;
13410 esac
13411 fi
13412 hardcode_libdir_flag_spec_D='-R$libdir'
13413 hardcode_shlibpath_var_D=no
13414 case $host_os in
13415 solaris2.[0-5] | solaris2.[0-5].*) ;;
13416 *)
13417 # The compiler driver will combine and reorder linker options,
13418 # but understands `-z linker_flag'. GCC discards it without `$wl',
13419 # but is careful enough not to reorder.
13420 # Supported since Solaris 2.6 (maybe 2.5.1?)
13421 if test "$GCC" = yes; then
13422 whole_archive_flag_spec_D='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13423 else
13424 whole_archive_flag_spec_D='-z allextract$convenience -z defaultextract'
13425 fi
13426 ;;
13427 esac
13428 link_all_deplibs_D=yes
13429 ;;
13430
13431 sunos4*)
13432 if test "x$host_vendor" = xsequent; then
13433 # Use $CC to link under sequent, because it throws in some extra .o
13434 # files that make .init and .fini sections work.
13435 archive_cmds_D='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13436 else
13437 archive_cmds_D='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13438 fi
13439 hardcode_libdir_flag_spec_D='-L$libdir'
13440 hardcode_direct_D=yes
13441 hardcode_minus_L_D=yes
13442 hardcode_shlibpath_var_D=no
13443 ;;
13444
13445 sysv4)
13446 case $host_vendor in
13447 sni)
13448 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13449 hardcode_direct_D=yes # is this really true???
13450 ;;
13451 siemens)
13452 ## LD is ld it makes a PLAMLIB
13453 ## CC just makes a GrossModule.
13454 archive_cmds_D='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13455 reload_cmds_D='$CC -r -o $output$reload_objs'
13456 hardcode_direct_D=no
13457 ;;
13458 motorola)
13459 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13460 hardcode_direct_D=no #Motorola manual says yes, but my tests say they lie
13461 ;;
13462 esac
13463 runpath_var='LD_RUN_PATH'
13464 hardcode_shlibpath_var_D=no
13465 ;;
13466
13467 sysv4.3*)
13468 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13469 hardcode_shlibpath_var_D=no
13470 export_dynamic_flag_spec_D='-Bexport'
13471 ;;
13472
13473 sysv4*MP*)
13474 if test -d /usr/nec; then
13475 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13476 hardcode_shlibpath_var_D=no
13477 runpath_var=LD_RUN_PATH
13478 hardcode_runpath_var=yes
13479 ld_shlibs_D=yes
13480 fi
13481 ;;
13482
13483 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13484 no_undefined_flag_D='${wl}-z,text'
13485 archive_cmds_need_lc_D=no
13486 hardcode_shlibpath_var_D=no
13487 runpath_var='LD_RUN_PATH'
13488
13489 if test "$GCC" = yes; then
13490 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13491 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13492 else
13493 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13494 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13495 fi
13496 ;;
13497
13498 sysv5* | sco3.2v5* | sco5v6*)
13499 # Note: We can NOT use -z defs as we might desire, because we do not
13500 # link with -lc, and that would cause any symbols used from libc to
13501 # always be unresolved, which means just about no library would
13502 # ever link correctly. If we're not using GNU ld we use -z text
13503 # though, which does catch some bad symbols but isn't as heavy-handed
13504 # as -z defs.
13505 no_undefined_flag_D='${wl}-z,text'
13506 allow_undefined_flag_D='${wl}-z,nodefs'
13507 archive_cmds_need_lc_D=no
13508 hardcode_shlibpath_var_D=no
13509 hardcode_libdir_flag_spec_D='${wl}-R,$libdir'
13510 hardcode_libdir_separator_D=':'
13511 link_all_deplibs_D=yes
13512 export_dynamic_flag_spec_D='${wl}-Bexport'
13513 runpath_var='LD_RUN_PATH'
13514
13515 if test "$GCC" = yes; then
13516 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13517 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13518 else
13519 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13520 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13521 fi
13522 ;;
13523
13524 uts4*)
13525 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13526 hardcode_libdir_flag_spec_D='-L$libdir'
13527 hardcode_shlibpath_var_D=no
13528 ;;
13529
13530 *)
13531 ld_shlibs_D=no
13532 ;;
13533 esac
13534
13535 if test x$host_vendor = xsni; then
13536 case $host in
13537 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13538 export_dynamic_flag_spec_D='${wl}-Blargedynsym'
13539 ;;
13540 esac
13541 fi
13542 fi
13543
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_D" >&5
13545 $as_echo "$ld_shlibs_D" >&6; }
13546 test "$ld_shlibs_D" = no && can_build_shared=no
13547
13548 with_gnu_ld_D=$with_gnu_ld
13549
13550
13551
13552
13553
13554
13555 #
13556 # Do we need to explicitly link libc?
13557 #
13558 case "x$archive_cmds_need_lc_D" in
13559 x|xyes)
13560 # Assume -lc should be added
13561 archive_cmds_need_lc_D=yes
13562
13563 if test "$enable_shared" = yes && test "$GCC" = yes; then
13564 case $archive_cmds_D in
13565 *'~'*)
13566 # FIXME: we may have to deal with multi-command sequences.
13567 ;;
13568 '$CC '*)
13569 # Test whether the compiler implicitly links with -lc since on some
13570 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13571 # to ld, don't add -lc before -lgcc.
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13573 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13574 if ${lt_cv_archive_cmds_need_lc_D+:} false; then :
13575 $as_echo_n "(cached) " >&6
13576 else
13577 $RM conftest*
13578 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13579
13580 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13581 (eval $ac_compile) 2>&5
13582 ac_status=$?
13583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13584 test $ac_status = 0; } 2>conftest.err; then
13585 soname=conftest
13586 lib=conftest
13587 libobjs=conftest.$ac_objext
13588 deplibs=
13589 wl=$lt_prog_compiler_wl_D
13590 pic_flag=$lt_prog_compiler_pic_D
13591 compiler_flags=-v
13592 linker_flags=-v
13593 verstring=
13594 output_objdir=.
13595 libname=conftest
13596 lt_save_allow_undefined_flag=$allow_undefined_flag_D
13597 allow_undefined_flag_D=
13598 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13599 (eval $archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13600 ac_status=$?
13601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13602 test $ac_status = 0; }
13603 then
13604 lt_cv_archive_cmds_need_lc_D=no
13605 else
13606 lt_cv_archive_cmds_need_lc_D=yes
13607 fi
13608 allow_undefined_flag_D=$lt_save_allow_undefined_flag
13609 else
13610 cat conftest.err 1>&5
13611 fi
13612 $RM conftest*
13613
13614 fi
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_D" >&5
13616 $as_echo "$lt_cv_archive_cmds_need_lc_D" >&6; }
13617 archive_cmds_need_lc_D=$lt_cv_archive_cmds_need_lc_D
13618 ;;
13619 esac
13620 fi
13621 ;;
13622 esac
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13688 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13689 hardcode_action_D=
13690 if test -n "$hardcode_libdir_flag_spec_D" ||
13691 test -n "$runpath_var_D" ||
13692 test "X$hardcode_automatic_D" = "Xyes" ; then
13693
13694 # We can hardcode non-existent directories.
13695 if test "$hardcode_direct_D" != no &&
13696 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13697 # have to relink, otherwise we might link with an installed library
13698 # when we should be linking with a yet-to-be-installed one
13699 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, D)" != no &&
13700 test "$hardcode_minus_L_D" != no; then
13701 # Linking always hardcodes the temporary library directory.
13702 hardcode_action_D=relink
13703 else
13704 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13705 hardcode_action_D=immediate
13706 fi
13707 else
13708 # We cannot hardcode anything, or else we can only hardcode existing
13709 # directories.
13710 hardcode_action_D=unsupported
13711 fi
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_D" >&5
13713 $as_echo "$hardcode_action_D" >&6; }
13714
13715 if test "$hardcode_action_D" = relink ||
13716 test "$inherit_rpath_D" = yes; then
13717 # Fast installation is not supported
13718 enable_fast_install=no
13719 elif test "$shlibpath_overrides_runpath" = yes ||
13720 test "$enable_shared" = no; then
13721 # Fast installation is not necessary
13722 enable_fast_install=needless
13723 fi
13724
13725
13726
13727
13728
13729
13730
13731 fi
13732
13733 ac_ext=c
13734 ac_cpp='$CPP $CPPFLAGS'
13735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13738
13739
13740 GCC=$lt_save_GCC
13741 CC=$lt_save_CC
13742 CFLAGS=$lt_save_CFLAGS
13743 GDCFLAGS=$lt_save_DFLAGS
13744
13745 GDCFLAGS=$gdc_save_DFLAGS
13746
13747
13748 # libtool variables for Phobos shared and position-independent compiles.
13749 #
13750 # Use phobos_compiler_shared_flag to designate the compile-time flags for
13751 # creating shared objects. Default: -fversion=Shared.
13752 #
13753 # Use phobos_compiler_pic_flag to designate the compile-time flags for
13754 # creating position-independent objects. This varies with the target
13755 # hardware and operating system, but is often: -fPIC.
13756 #
13757 # The distinction between pic and shared compilation flags is not present in
13758 # libtool, and so we make it here. How it is handled is that in shared
13759 # compilations the `lt_prog_compiler_pic_D' variable is used to instead
13760 # ensure that conditional compilation of shared runtime code is compiled in.
13761 # The original PIC flags are then used in the compilation of every object.
13762 #
13763 # Why are objects destined for libgphobos.a compiled with -fPIC?
13764 # Because -fPIC is not harmful to use for objects destined for static
13765 # libraries. In addition, using -fPIC will allow the use of static
13766 # libgphobos.a in the creation of other D shared libraries.
13767 if test "$enable_shared" = yes; then
13768 phobos_compiler_pic_flag="$lt_prog_compiler_pic_D"
13769 phobos_compiler_shared_flag="-fversion=Shared"
13770 else
13771 phobos_compiler_pic_flag=
13772 phobos_compiler_shared_flag=
13773 fi
13774
13775
13776
13777 # Override the libtool's pic_flag and pic_mode.
13778 # Do this step after AM_PROG_LIBTOOL, but before AC_OUTPUT.
13779 # NB: this impacts --with-pic and --without-pic.
13780 lt_prog_compiler_pic_D="$phobos_compiler_shared_flag"
13781 pic_mode='default'
13782
13783 # Determine what GCC version number to use in filesystem paths.
13784
13785 get_gcc_base_ver="cat"
13786
13787 # Check whether --with-gcc-major-version-only was given.
13788 if test "${with_gcc_major_version_only+set}" = set; then :
13789 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13790 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
13791 fi
13792
13793 fi
13794
13795
13796
13797
13798 # libphobos/libdruntime specific options and feature detection
13799
13800 # These need to be absolute paths, yet at the same time need to
13801 # canonicalize only relative paths, because then amd will not unmount
13802 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
13803 libphobos_builddir=`${PWDCMD-pwd}`
13804 case $srcdir in
13805 \\/$* | ?:\\/*) libphobos_srcdir=${srcdir} ;;
13806 *) libphobos_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
13807 esac
13808
13809
13810
13811
13812 if test ${multilib} = yes; then
13813 multilib_arg="--enable-multilib"
13814 else
13815 multilib_arg=
13816 fi
13817
13818
13819 # Check whether --enable-werror was given.
13820 if test "${enable_werror+set}" = set; then :
13821 enableval=$enable_werror;
13822 fi
13823
13824 WERROR_FLAG=""
13825 if test "x$enable_werror" = "xyes"; then
13826 WERROR_FLAG="-Werror"
13827 fi
13828
13829
13830 # Check whether --enable-druntime-gc was given.
13831 if test "${enable_druntime_gc+set}" = set; then :
13832 enableval=$enable_druntime_gc; enable_druntime_gc=no
13833 else
13834 enable_druntime_gc=yes
13835 fi
13836
13837
13838 if test "$enable_druntime_gc" = "yes"; then
13839 DRUNTIME_GC_ENABLE_TRUE=
13840 DRUNTIME_GC_ENABLE_FALSE='#'
13841 else
13842 DRUNTIME_GC_ENABLE_TRUE='#'
13843 DRUNTIME_GC_ENABLE_FALSE=
13844 fi
13845
13846
13847
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target OS" >&5
13849 $as_echo_n "checking for target OS... " >&6; }
13850 if ${druntime_cv_target_os+:} false; then :
13851 $as_echo_n "(cached) " >&6
13852 else
13853 druntime_cv_target_os=`echo $target_os | sed 's/^\([A-Za-z_]+\)/\1/'`
13854 fi
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_target_os" >&5
13856 $as_echo "$druntime_cv_target_os" >&6; }
13857 if test -z "$druntime_cv_target_os"; then :
13858 as_fn_error $? "can't detect target OS" "$LINENO" 5
13859 fi
13860
13861
13862
13863 # Check whether --enable-unix was given.
13864 if test "${enable_unix+set}" = set; then :
13865 enableval=$enable_unix; :
13866 else
13867 enable_unix=auto
13868 fi
13869
13870
13871 case "$druntime_cv_target_os" in
13872 aix*|*bsd*|cygwin*|darwin*|gnu*|linux*|skyos*|*solaris*|sysv*) d_have_unix=1 ;;
13873 esac
13874 if test -n "$d_have_unix" && test "$enable_unix" = auto ; then
13875 enable_unix=yes
13876 fi
13877 if test "$enable_unix" = "yes"; then
13878 DRUNTIME_OS_UNIX_TRUE=
13879 DRUNTIME_OS_UNIX_FALSE='#'
13880 else
13881 DRUNTIME_OS_UNIX_TRUE='#'
13882 DRUNTIME_OS_UNIX_FALSE=
13883 fi
13884
13885
13886
13887
13888
13889 druntime_target_os_parsed=""
13890 case "$druntime_cv_target_os" in
13891 aix*) druntime_target_os_parsed="aix"
13892 ;;
13893 *android*)
13894 druntime_target_os_parsed="android"
13895 ;;
13896 darwin*) druntime_target_os_parsed="darwin"
13897 ;;
13898 dragonfly*)
13899 druntime_target_os_parsed="dragonflybsd"
13900 ;;
13901 freebsd*|k*bsd*-gnu)
13902 druntime_target_os_parsed="freebsd"
13903 ;;
13904 openbsd*)
13905 druntime_target_os_parsed="openbsd"
13906 ;;
13907 netbsd*)
13908 druntime_target_os_parsed="netbsd"
13909 ;;
13910 linux*) druntime_target_os_parsed="linux"
13911 ;;
13912 mingw*) druntime_target_os_parsed="mingw"
13913 ;;
13914 *solaris*) druntime_target_os_parsed="solaris"
13915 esac
13916 if test "$druntime_target_os_parsed" = "aix"; then
13917 DRUNTIME_OS_AIX_TRUE=
13918 DRUNTIME_OS_AIX_FALSE='#'
13919 else
13920 DRUNTIME_OS_AIX_TRUE='#'
13921 DRUNTIME_OS_AIX_FALSE=
13922 fi
13923
13924 if test "$druntime_target_os_parsed" = "android"; then
13925 DRUNTIME_OS_ANDROID_TRUE=
13926 DRUNTIME_OS_ANDROID_FALSE='#'
13927 else
13928 DRUNTIME_OS_ANDROID_TRUE='#'
13929 DRUNTIME_OS_ANDROID_FALSE=
13930 fi
13931
13932 if test "$druntime_target_os_parsed" = "darwin"; then
13933 DRUNTIME_OS_DARWIN_TRUE=
13934 DRUNTIME_OS_DARWIN_FALSE='#'
13935 else
13936 DRUNTIME_OS_DARWIN_TRUE='#'
13937 DRUNTIME_OS_DARWIN_FALSE=
13938 fi
13939
13940 if test "$druntime_target_os_parsed" = "dragonflybsd"; then
13941 DRUNTIME_OS_DRAGONFLYBSD_TRUE=
13942 DRUNTIME_OS_DRAGONFLYBSD_FALSE='#'
13943 else
13944 DRUNTIME_OS_DRAGONFLYBSD_TRUE='#'
13945 DRUNTIME_OS_DRAGONFLYBSD_FALSE=
13946 fi
13947
13948 if test "$druntime_target_os_parsed" = "freebsd"; then
13949 DRUNTIME_OS_FREEBSD_TRUE=
13950 DRUNTIME_OS_FREEBSD_FALSE='#'
13951 else
13952 DRUNTIME_OS_FREEBSD_TRUE='#'
13953 DRUNTIME_OS_FREEBSD_FALSE=
13954 fi
13955
13956 if test "$druntime_target_os_parsed" = "netbsd"; then
13957 DRUNTIME_OS_NETBSD_TRUE=
13958 DRUNTIME_OS_NETBSD_FALSE='#'
13959 else
13960 DRUNTIME_OS_NETBSD_TRUE='#'
13961 DRUNTIME_OS_NETBSD_FALSE=
13962 fi
13963
13964 if test "$druntime_target_os_parsed" = "openbsd"; then
13965 DRUNTIME_OS_OPENBSD_TRUE=
13966 DRUNTIME_OS_OPENBSD_FALSE='#'
13967 else
13968 DRUNTIME_OS_OPENBSD_TRUE='#'
13969 DRUNTIME_OS_OPENBSD_FALSE=
13970 fi
13971
13972 if test "$druntime_target_os_parsed" = "linux"; then
13973 DRUNTIME_OS_LINUX_TRUE=
13974 DRUNTIME_OS_LINUX_FALSE='#'
13975 else
13976 DRUNTIME_OS_LINUX_TRUE='#'
13977 DRUNTIME_OS_LINUX_FALSE=
13978 fi
13979
13980 if test "$druntime_target_os_parsed" = "mingw"; then
13981 DRUNTIME_OS_MINGW_TRUE=
13982 DRUNTIME_OS_MINGW_FALSE='#'
13983 else
13984 DRUNTIME_OS_MINGW_TRUE='#'
13985 DRUNTIME_OS_MINGW_FALSE=
13986 fi
13987
13988 if test "$druntime_target_os_parsed" = "solaris"; then
13989 DRUNTIME_OS_SOLARIS_TRUE=
13990 DRUNTIME_OS_SOLARIS_FALSE='#'
13991 else
13992 DRUNTIME_OS_SOLARIS_TRUE='#'
13993 DRUNTIME_OS_SOLARIS_FALSE=
13994 fi
13995
13996
13997
13998
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GDC" >&5
14000 $as_echo_n "checking for thread model used by GDC... " >&6; }
14001 d_thread_model=`$GDC -v 2>&1 | sed -n 's/^Thread model: //p'`
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d_thread_model" >&5
14003 $as_echo "$d_thread_model" >&6; }
14004
14005 # Map from thread model to thread interface.
14006
14007 case $d_thread_model in
14008 aix) DCFG_THREAD_MODEL="Posix" ;;
14009 lynx) DCFG_THREAD_MODEL="Posix" ;;
14010 posix) DCFG_THREAD_MODEL="Posix" ;;
14011 single) DCFG_THREAD_MODEL="Single" ;;
14012 win32) DCFG_THREAD_MODEL="Win32" ;;
14013 # TODO: These targets need porting.
14014 dce|mipssde|rtems|tpf|vxworks)
14015 DCFG_THREAD_MODEL="Single" ;;
14016 *) as_fn_error "Thread implementation '$d_thread_model' not recognised" "$LINENO" 5 ;;
14017 esac
14018
14019
14020
14021
14022 ac_ext=c
14023 ac_cpp='$CPP $CPPFLAGS'
14024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14027
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM unwinder" >&5
14029 $as_echo_n "checking for ARM unwinder... " >&6; }
14030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14031 /* end confdefs.h. */
14032 #include <unwind.h>
14033 int
14034 main ()
14035 {
14036
14037 #if __ARM_EABI_UNWINDER__
14038 #error Yes, it is.
14039 #endif
14040
14041 ;
14042 return 0;
14043 }
14044 _ACEOF
14045 if ac_fn_c_try_compile "$LINENO"; then :
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14047 $as_echo "no" >&6; }
14048 DCFG_ARM_EABI_UNWINDER=false
14049 else
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14051 $as_echo "yes" >&6; }
14052 DCFG_ARM_EABI_UNWINDER=true
14053 fi
14054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14055
14056 if test "$DCFG_ARM_EABI_UNWINDER" = "true"; then
14057 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE=
14058 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE='#'
14059 else
14060 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE='#'
14061 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE=
14062 fi
14063
14064 ac_ext=c
14065 ac_cpp='$CPP $CPPFLAGS'
14066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14069
14070
14071
14072 ac_ext=c
14073 ac_cpp='$CPP $CPPFLAGS'
14074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14077
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minfo section bracketing" >&5
14079 $as_echo_n "checking for minfo section bracketing... " >&6; }
14080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14081 /* end confdefs.h. */
14082
14083 void* module_info_ptr __attribute__((section ("minfo")));
14084 extern void* __start_minfo __attribute__((visibility ("hidden")));
14085 extern void* __stop_minfo __attribute__((visibility ("hidden")));
14086
14087 int main()
14088 {
14089 // Never run, just to prevent compiler from optimizing access
14090 return &__start_minfo == &__stop_minfo;
14091 }
14092
14093 _ACEOF
14094 if ac_fn_c_try_link "$LINENO"; then :
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14096 $as_echo "yes" >&6; }
14097 DCFG_MINFO_BRACKETING=true
14098 else
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14100 $as_echo "no" >&6; }
14101 DCFG_MINFO_BRACKETING=false
14102 fi
14103 rm -f core conftest.err conftest.$ac_objext \
14104 conftest$ac_exeext conftest.$ac_ext
14105
14106 if test "$DCFG_MINFO_BRACKETING" = "true"; then
14107 DRUNTIME_OS_MINFO_BRACKETING_TRUE=
14108 DRUNTIME_OS_MINFO_BRACKETING_FALSE='#'
14109 else
14110 DRUNTIME_OS_MINFO_BRACKETING_TRUE='#'
14111 DRUNTIME_OS_MINFO_BRACKETING_FALSE=
14112 fi
14113
14114 ac_ext=c
14115 ac_cpp='$CPP $CPPFLAGS'
14116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14119
14120
14121
14122 case $target in
14123 i?86-*-solaris2.* | x86_64-*-solaris2.*)
14124 # 64-bit Solaris/x86 ld breaks calls to __tls_get_addr with non-TLS
14125 # relocs. Work around by disabling TLS transitions. Not necessary
14126 # on 32-bit x86, but cannot be distinguished reliably in specs.
14127 druntime_ld_prog=`$CC -print-prog-name=ld`
14128 if test -n "$druntime_ld_prog" \
14129 && $druntime_ld_prog -v 2>&1 | grep GNU > /dev/null 2>&1; then
14130 :
14131 else
14132 OS_LINK_SPEC='-z relax=transtls'
14133 fi
14134 ;;
14135 esac
14136
14137
14138
14139 ac_ext=c
14140 ac_cpp='$CPP $CPPFLAGS'
14141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14144
14145 DCFG_HAVE_QSORT_R=false
14146 ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r"
14147 if test "x$ac_cv_func_qsort_r" = xyes; then :
14148 DCFG_HAVE_QSORT_R=true
14149 fi
14150
14151
14152 ac_ext=c
14153 ac_cpp='$CPP $CPPFLAGS'
14154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14157
14158
14159
14160
14161
14162 gdc_save_DFLAGS=$GDCFLAGS
14163 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime -nophoboslib $GDCFLAGS"
14164
14165 ac_ext=d
14166 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
14167 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14168 ac_compiler_gnu=yes
14169
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing malloc" >&5
14171 $as_echo_n "checking for library containing malloc... " >&6; }
14172 if ${ac_cv_search_malloc+:} false; then :
14173 $as_echo_n "(cached) " >&6
14174 else
14175 ac_func_search_save_LIBS=$LIBS
14176 cat > conftest.$ac_ext <<_ACEOF
14177 module mod;
14178 extern(C) int malloc();
14179
14180 extern(C) int main() {
14181 malloc(); return 0;
14182 }
14183 _ACEOF
14184 for ac_lib in '' c; do
14185 if test -z "$ac_lib"; then
14186 ac_res="none required"
14187 else
14188 ac_res=-l$ac_lib
14189 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14190 fi
14191 if ac_fn_d_try_link "$LINENO"; then :
14192 ac_cv_search_malloc=$ac_res
14193 fi
14194 rm -f core conftest.err conftest.$ac_objext \
14195 conftest$ac_exeext
14196 if ${ac_cv_search_malloc+:} false; then :
14197 break
14198 fi
14199 done
14200 if ${ac_cv_search_malloc+:} false; then :
14201
14202 else
14203 ac_cv_search_malloc=no
14204 fi
14205 rm conftest.$ac_ext
14206 LIBS=$ac_func_search_save_LIBS
14207 fi
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc" >&5
14209 $as_echo "$ac_cv_search_malloc" >&6; }
14210 ac_res=$ac_cv_search_malloc
14211 if test "$ac_res" != no; then :
14212 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14213
14214 fi
14215
14216
14217 enable_thread_lib=yes
14218 # Check whether --enable-thread-lib was given.
14219 if test "${enable_thread_lib+set}" = set; then :
14220 enableval=$enable_thread_lib;
14221 fi
14222
14223
14224 if test "x$enable_thread_lib" = "xyes"; then :
14225
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
14227 $as_echo_n "checking for library containing pthread_create... " >&6; }
14228 if ${ac_cv_search_pthread_create+:} false; then :
14229 $as_echo_n "(cached) " >&6
14230 else
14231 ac_func_search_save_LIBS=$LIBS
14232 cat > conftest.$ac_ext <<_ACEOF
14233 module mod;
14234 extern(C) int pthread_create();
14235
14236 extern(C) int main() {
14237 pthread_create(); return 0;
14238 }
14239 _ACEOF
14240 for ac_lib in '' pthread; do
14241 if test -z "$ac_lib"; then
14242 ac_res="none required"
14243 else
14244 ac_res=-l$ac_lib
14245 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14246 fi
14247 if ac_fn_d_try_link "$LINENO"; then :
14248 ac_cv_search_pthread_create=$ac_res
14249 fi
14250 rm -f core conftest.err conftest.$ac_objext \
14251 conftest$ac_exeext
14252 if ${ac_cv_search_pthread_create+:} false; then :
14253 break
14254 fi
14255 done
14256 if ${ac_cv_search_pthread_create+:} false; then :
14257
14258 else
14259 ac_cv_search_pthread_create=no
14260 fi
14261 rm conftest.$ac_ext
14262 LIBS=$ac_func_search_save_LIBS
14263 fi
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
14265 $as_echo "$ac_cv_search_pthread_create" >&6; }
14266 ac_res=$ac_cv_search_pthread_create
14267 if test "$ac_res" != no; then :
14268 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14269
14270 fi
14271
14272
14273 else
14274
14275 if test "x$enable_thread_lib" = "xno"; then :
14276
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread library" >&5
14278 $as_echo_n "checking for thread library... " >&6; }
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14280 $as_echo "disabled" >&6; }
14281
14282 else
14283
14284 as_ac_Lib=`$as_echo "ac_cv_lib_$enable_thread_lib''_pthread_create" | $as_tr_sh`
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -l$enable_thread_lib" >&5
14286 $as_echo_n "checking for pthread_create in -l$enable_thread_lib... " >&6; }
14287 if eval \${$as_ac_Lib+:} false; then :
14288 $as_echo_n "(cached) " >&6
14289 else
14290 ac_check_lib_save_LIBS=$LIBS
14291 LIBS="-l$enable_thread_lib $LIBS"
14292 cat > conftest.$ac_ext <<_ACEOF
14293 module mod;
14294 extern(C) int pthread_create();
14295
14296 extern(C) int main() {
14297 pthread_create(); return 0;
14298 }
14299 _ACEOF
14300 if ac_fn_d_try_link "$LINENO"; then :
14301 eval "$as_ac_Lib=yes"
14302 else
14303 eval "$as_ac_Lib=no"
14304 fi
14305 rm -f core conftest.err conftest.$ac_objext \
14306 conftest$ac_exeext conftest.$ac_ext
14307 LIBS=$ac_check_lib_save_LIBS
14308 fi
14309 eval ac_res=\$$as_ac_Lib
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14311 $as_echo "$ac_res" >&6; }
14312 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
14313 cat >>confdefs.h <<_ACEOF
14314 #define `$as_echo "HAVE_LIB$enable_thread_lib" | $as_tr_cpp` 1
14315 _ACEOF
14316
14317 LIBS="-l$enable_thread_lib $LIBS"
14318
14319 else
14320
14321 as_fn_error $? "Thread library not found" "$LINENO" 5
14322
14323 fi
14324
14325
14326 fi
14327
14328 fi
14329
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cosf" >&5
14331 $as_echo_n "checking for library containing cosf... " >&6; }
14332 if ${ac_cv_search_cosf+:} false; then :
14333 $as_echo_n "(cached) " >&6
14334 else
14335 ac_func_search_save_LIBS=$LIBS
14336 cat > conftest.$ac_ext <<_ACEOF
14337 module mod;
14338 extern(C) int cosf();
14339
14340 extern(C) int main() {
14341 cosf(); return 0;
14342 }
14343 _ACEOF
14344 for ac_lib in '' m; do
14345 if test -z "$ac_lib"; then
14346 ac_res="none required"
14347 else
14348 ac_res=-l$ac_lib
14349 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14350 fi
14351 if ac_fn_d_try_link "$LINENO"; then :
14352 ac_cv_search_cosf=$ac_res
14353 fi
14354 rm -f core conftest.err conftest.$ac_objext \
14355 conftest$ac_exeext
14356 if ${ac_cv_search_cosf+:} false; then :
14357 break
14358 fi
14359 done
14360 if ${ac_cv_search_cosf+:} false; then :
14361
14362 else
14363 ac_cv_search_cosf=no
14364 fi
14365 rm conftest.$ac_ext
14366 LIBS=$ac_func_search_save_LIBS
14367 fi
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cosf" >&5
14369 $as_echo "$ac_cv_search_cosf" >&6; }
14370 ac_res=$ac_cv_search_cosf
14371 if test "$ac_res" != no; then :
14372 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14373
14374 fi
14375
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14377 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14378 if ${ac_cv_search_clock_gettime+:} false; then :
14379 $as_echo_n "(cached) " >&6
14380 else
14381 ac_func_search_save_LIBS=$LIBS
14382 cat > conftest.$ac_ext <<_ACEOF
14383 module mod;
14384 extern(C) int clock_gettime();
14385
14386 extern(C) int main() {
14387 clock_gettime(); return 0;
14388 }
14389 _ACEOF
14390 for ac_lib in '' rt; do
14391 if test -z "$ac_lib"; then
14392 ac_res="none required"
14393 else
14394 ac_res=-l$ac_lib
14395 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14396 fi
14397 if ac_fn_d_try_link "$LINENO"; then :
14398 ac_cv_search_clock_gettime=$ac_res
14399 fi
14400 rm -f core conftest.err conftest.$ac_objext \
14401 conftest$ac_exeext
14402 if ${ac_cv_search_clock_gettime+:} false; then :
14403 break
14404 fi
14405 done
14406 if ${ac_cv_search_clock_gettime+:} false; then :
14407
14408 else
14409 ac_cv_search_clock_gettime=no
14410 fi
14411 rm conftest.$ac_ext
14412 LIBS=$ac_func_search_save_LIBS
14413 fi
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14415 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14416 ac_res=$ac_cv_search_clock_gettime
14417 if test "$ac_res" != no; then :
14418 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14419
14420 fi
14421
14422
14423 # This checks to see if the host supports the compiler-generated builtins
14424 # for atomic operations for various integral sizes. Note, this is intended
14425 # to be an all-or-nothing switch, so all the atomic operations that are
14426 # used should be checked.
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for byte" >&5
14428 $as_echo_n "checking for atomic builtins for byte... " >&6; }
14429 if ${druntime_cv_atomic_byte+:} false; then :
14430 $as_echo_n "(cached) " >&6
14431 else
14432
14433 cat > conftest.$ac_ext <<_ACEOF
14434 module mod;
14435 import gcc.builtins;
14436
14437 extern(C) int main() {
14438
14439 shared(byte) c1;
14440 byte c2, c3;
14441 __atomic_compare_exchange_1(&c1, &c2, c3, false, 5, 5);
14442 __atomic_load_1(&c1, 5);
14443 __atomic_store_1(&c1, c2, 5);
14444 return 0;
14445
14446 }
14447 _ACEOF
14448 if ac_fn_d_try_link "$LINENO"; then :
14449 druntime_cv_atomic_byte=yes
14450 else
14451 druntime_cv_atomic_byte=no
14452 fi
14453 rm -f core conftest.err conftest.$ac_objext \
14454 conftest$ac_exeext conftest.$ac_ext
14455
14456 fi
14457
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_byte" >&5
14459 $as_echo "$druntime_cv_atomic_byte" >&6; }
14460
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5
14462 $as_echo_n "checking for atomic builtins for short... " >&6; }
14463 if ${druntime_cv_atomic_short+:} false; then :
14464 $as_echo_n "(cached) " >&6
14465 else
14466
14467 cat > conftest.$ac_ext <<_ACEOF
14468 module mod;
14469 import gcc.builtins;
14470
14471 extern(C) int main() {
14472
14473 shared(short) c1;
14474 short c2, c3;
14475 __atomic_compare_exchange_2(&c1, &c2, c3, false, 5, 5);
14476 __atomic_load_2(&c1, 5);
14477 __atomic_store_2(&c1, c2, 5);
14478 return 0;
14479
14480 }
14481 _ACEOF
14482 if ac_fn_d_try_link "$LINENO"; then :
14483 druntime_cv_atomic_short=yes
14484 else
14485 druntime_cv_atomic_short=no
14486 fi
14487 rm -f core conftest.err conftest.$ac_objext \
14488 conftest$ac_exeext conftest.$ac_ext
14489
14490 fi
14491
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_short" >&5
14493 $as_echo "$druntime_cv_atomic_short" >&6; }
14494
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5
14496 $as_echo_n "checking for atomic builtins for int... " >&6; }
14497 if ${druntime_cv_atomic_int+:} false; then :
14498 $as_echo_n "(cached) " >&6
14499 else
14500
14501 cat > conftest.$ac_ext <<_ACEOF
14502 module mod;
14503 import gcc.builtins;
14504
14505 extern(C) int main() {
14506
14507 shared(int) c1;
14508 int c2, c3;
14509 __atomic_compare_exchange_4(&c1, &c2, c3, false, 5, 5);
14510 __atomic_load_4(&c1, 5);
14511 __atomic_store_4(&c1, c2, 5);
14512 return 0;
14513
14514 }
14515 _ACEOF
14516 if ac_fn_d_try_link "$LINENO"; then :
14517 druntime_cv_atomic_int=yes
14518 else
14519 druntime_cv_atomic_int=no
14520 fi
14521 rm -f core conftest.err conftest.$ac_objext \
14522 conftest$ac_exeext conftest.$ac_ext
14523
14524 fi
14525
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_int" >&5
14527 $as_echo "$druntime_cv_atomic_int" >&6; }
14528
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long" >&5
14530 $as_echo_n "checking for atomic builtins for long... " >&6; }
14531 if ${druntime_cv_atomic_long+:} false; then :
14532 $as_echo_n "(cached) " >&6
14533 else
14534
14535 cat > conftest.$ac_ext <<_ACEOF
14536 module mod;
14537 import gcc.builtins;
14538
14539 extern(C) int main() {
14540
14541 shared(long) c1;
14542 long c2, c3;
14543 __atomic_compare_exchange_8(&c1, &c2, c3, false, 5, 5);
14544 __atomic_load_8(&c1, 5);
14545 __atomic_store_8(&c1, c2, 5);
14546 return 0;
14547
14548 }
14549 _ACEOF
14550 if ac_fn_d_try_link "$LINENO"; then :
14551 druntime_cv_atomic_long=yes
14552 else
14553 druntime_cv_atomic_long=no
14554 fi
14555 rm -f core conftest.err conftest.$ac_objext \
14556 conftest$ac_exeext conftest.$ac_ext
14557
14558 fi
14559
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_long" >&5
14561 $as_echo "$druntime_cv_atomic_long" >&6; }
14562
14563 # Have atomic builtin support if all but the long test above passes.
14564 DCFG_HAVE_ATOMIC_BUILTINS=false
14565 if test "$druntime_cv_atomic_byte" = yes \
14566 && test "$druntime_cv_atomic_short" = yes \
14567 && test "$druntime_cv_atomic_int" = yes; then \
14568 DCFG_HAVE_ATOMIC_BUILTINS=true
14569 fi
14570
14571 # Have 64-bit atomic support if the long test above passes.
14572 DCFG_HAVE_64BIT_ATOMICS=false
14573 if test "$druntime_cv_atomic_long" = yes; then
14574 DCFG_HAVE_64BIT_ATOMICS=true
14575 fi
14576
14577
14578
14579
14580 ac_ext=c
14581 ac_cpp='$CPP $CPPFLAGS'
14582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14585
14586
14587 GDCFLAGS=$gdc_save_DFLAGS
14588
14589
14590
14591
14592 # Check whether --with-libatomic was given.
14593 if test "${with_libatomic+set}" = set; then :
14594 withval=$with_libatomic;
14595 fi
14596
14597
14598 DCFG_HAVE_LIBATOMIC=false
14599 LIBATOMIC=
14600 if test "x$with_libatomic" != "xno"; then :
14601
14602 DCFG_HAVE_LIBATOMIC=true
14603 LIBATOMIC=../../libatomic/libatomic_convenience.la
14604
14605 else
14606
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic" >&5
14608 $as_echo_n "checking for libatomic... " >&6; }
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14610 $as_echo "disabled" >&6; }
14611
14612 fi
14613
14614
14615
14616
14617
14618 ac_ext=c
14619 ac_cpp='$CPP $CPPFLAGS'
14620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14623
14624 BACKTRACE_SUPPORTED=false
14625 BACKTRACE_USES_MALLOC=false
14626 BACKTRACE_SUPPORTS_THREADS=false
14627 LIBBACKTRACE=""
14628
14629
14630 # Check whether --with-libbacktrace was given.
14631 if test "${with_libbacktrace+set}" = set; then :
14632 withval=$with_libbacktrace;
14633 fi
14634
14635
14636 if test "x$with_libbacktrace" != "xno"; then :
14637
14638 LIBBACKTRACE=../../libbacktrace/libbacktrace.la
14639
14640 gdc_save_CPPFLAGS=$CPPFLAGS
14641 CPPFLAGS+=" -I../libbacktrace "
14642
14643 ac_fn_c_check_header_mongrel "$LINENO" "backtrace-supported.h" "ac_cv_header_backtrace_supported_h" "$ac_includes_default"
14644 if test "x$ac_cv_header_backtrace_supported_h" = xyes; then :
14645 have_libbacktrace_h=true
14646 else
14647 have_libbacktrace_h=false
14648 fi
14649
14650
14651
14652 if $have_libbacktrace_h; then
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTED" >&5
14654 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTED... " >&6; }
14655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14656 /* end confdefs.h. */
14657
14658 #include <backtrace-supported.h>
14659 #if BACKTRACE_SUPPORTED
14660 FOUND_LIBBACKTRACE_RESULT_GDC
14661 #endif
14662
14663 _ACEOF
14664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14665 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14666 BACKTRACE_SUPPORTED=true
14667 else
14668 BACKTRACE_SUPPORTED=false
14669 fi
14670 rm -f conftest*
14671
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTED" >&5
14673 $as_echo "$BACKTRACE_SUPPORTED" >&6; }
14674
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_USES_MALLOC" >&5
14676 $as_echo_n "checking libbacktrace: BACKTRACE_USES_MALLOC... " >&6; }
14677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14678 /* end confdefs.h. */
14679
14680 #include <backtrace-supported.h>
14681 #if BACKTRACE_USES_MALLOC
14682 FOUND_LIBBACKTRACE_RESULT_GDC
14683 #endif
14684
14685 _ACEOF
14686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14687 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14688 BACKTRACE_USES_MALLOC=true
14689 else
14690 BACKTRACE_USES_MALLOC=false
14691 fi
14692 rm -f conftest*
14693
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_USES_MALLOC" >&5
14695 $as_echo "$BACKTRACE_USES_MALLOC" >&6; }
14696
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTS_THREADS" >&5
14698 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTS_THREADS... " >&6; }
14699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14700 /* end confdefs.h. */
14701
14702 #include <backtrace-supported.h>
14703 #if BACKTRACE_SUPPORTS_THREADS
14704 FOUND_LIBBACKTRACE_RESULT_GDC
14705 #endif
14706
14707 _ACEOF
14708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14709 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14710 BACKTRACE_SUPPORTS_THREADS=true
14711 else
14712 BACKTRACE_SUPPORTS_THREADS=false
14713 fi
14714 rm -f conftest*
14715
14716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTS_THREADS" >&5
14717 $as_echo "$BACKTRACE_SUPPORTS_THREADS" >&6; }
14718 fi
14719 CPPFLAGS=$gdc_save_CPPFLAGS
14720
14721 else
14722
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbacktrace" >&5
14724 $as_echo_n "checking for libbacktrace... " >&6; }
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14726 $as_echo "disabled" >&6; }
14727
14728 fi
14729
14730
14731
14732
14733
14734 ac_ext=c
14735 ac_cpp='$CPP $CPPFLAGS'
14736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14739
14740
14741
14742 # Libtool has already checked this, so re-use the inferred dlopen lib.
14743 if test "x$enable_dlopen" = "xyes" && test -n "$lt_cv_dlopen_libs"; then :
14744
14745 LIBS="$LIBS $lt_cv_dlopen_libs"
14746
14747 fi
14748
14749
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14751 $as_echo_n "checking for socket libraries... " >&6; }
14752 if ${druntime_cv_lib_sockets+:} false; then :
14753 $as_echo_n "(cached) " >&6
14754 else
14755 druntime_cv_lib_sockets=
14756 druntime_check_both=no
14757 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
14758 if test "x$ac_cv_func_connect" = xyes; then :
14759 druntime_check_socket=no
14760 else
14761 druntime_check_socket=yes
14762 fi
14763
14764 if test "$druntime_check_socket" = "yes"; then
14765 unset ac_cv_func_connect
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
14767 $as_echo_n "checking for main in -lsocket... " >&6; }
14768 if ${ac_cv_lib_socket_main+:} false; then :
14769 $as_echo_n "(cached) " >&6
14770 else
14771 ac_check_lib_save_LIBS=$LIBS
14772 LIBS="-lsocket $LIBS"
14773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14774 /* end confdefs.h. */
14775
14776
14777 int
14778 main ()
14779 {
14780 return main ();
14781 ;
14782 return 0;
14783 }
14784 _ACEOF
14785 if ac_fn_c_try_link "$LINENO"; then :
14786 ac_cv_lib_socket_main=yes
14787 else
14788 ac_cv_lib_socket_main=no
14789 fi
14790 rm -f core conftest.err conftest.$ac_objext \
14791 conftest$ac_exeext conftest.$ac_ext
14792 LIBS=$ac_check_lib_save_LIBS
14793 fi
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14795 $as_echo "$ac_cv_lib_socket_main" >&6; }
14796 if test "x$ac_cv_lib_socket_main" = xyes; then :
14797 druntime_cv_lib_sockets="-lsocket"
14798 else
14799 druntime_check_both=yes
14800 fi
14801
14802 fi
14803 if test "$druntime_check_both" = "yes"; then
14804 druntime_old_libs=$LIBS
14805 LIBS="$LIBS -lsocket -lnsl"
14806 unset ac_cv_func_accept
14807 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
14808 if test "x$ac_cv_func_accept" = xyes; then :
14809 druntime_check_nsl=no
14810 druntime_cv_lib_sockets="-lsocket -lnsl"
14811 fi
14812
14813 unset ac_cv_func_accept
14814 LIBS=$druntime_old_libs
14815 fi
14816 unset ac_cv_func_gethostbyname
14817 druntime_old_libs="$LIBS"
14818 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14819 if test "x$ac_cv_func_gethostbyname" = xyes; then :
14820
14821 else
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14823 $as_echo_n "checking for main in -lnsl... " >&6; }
14824 if ${ac_cv_lib_nsl_main+:} false; then :
14825 $as_echo_n "(cached) " >&6
14826 else
14827 ac_check_lib_save_LIBS=$LIBS
14828 LIBS="-lnsl $LIBS"
14829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14830 /* end confdefs.h. */
14831
14832
14833 int
14834 main ()
14835 {
14836 return main ();
14837 ;
14838 return 0;
14839 }
14840 _ACEOF
14841 if ac_fn_c_try_link "$LINENO"; then :
14842 ac_cv_lib_nsl_main=yes
14843 else
14844 ac_cv_lib_nsl_main=no
14845 fi
14846 rm -f core conftest.err conftest.$ac_objext \
14847 conftest$ac_exeext conftest.$ac_ext
14848 LIBS=$ac_check_lib_save_LIBS
14849 fi
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14851 $as_echo "$ac_cv_lib_nsl_main" >&6; }
14852 if test "x$ac_cv_lib_nsl_main" = xyes; then :
14853 druntime_cv_lib_sockets="$druntime_cv_lib_sockets -lnsl"
14854 fi
14855
14856 fi
14857
14858
14859 fi
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_lib_sockets" >&5
14861 $as_echo "$druntime_cv_lib_sockets" >&6; }
14862 LIBS="$LIBS $druntime_cv_lib_sockets"
14863
14864
14865 ac_ext=c
14866 ac_cpp='$CPP $CPPFLAGS'
14867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14870
14871 LIBZ=""
14872
14873
14874 # Check whether --with-target-system-zlib was given.
14875 if test "${with_target_system_zlib+set}" = set; then :
14876 withval=$with_target_system_zlib;
14877 else
14878 with_target_system_zlib=no
14879 fi
14880
14881
14882 case "$with_target_system_zlib" in
14883 yes|no|auto) ;;
14884 *) as_fn_error $? "Invalid argument for --with-target-system-zlib" "$LINENO" 5 ;;
14885 esac
14886
14887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system zlib" >&5
14888 $as_echo_n "checking for system zlib... " >&6; }
14889 save_LIBS=$LIBS
14890 LIBS="$LIBS -lz"
14891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14892 /* end confdefs.h. */
14893 #include <zlib.h>
14894 int
14895 main ()
14896 {
14897 gzopen("none", "rb")
14898 ;
14899 return 0;
14900 }
14901 _ACEOF
14902 if ac_fn_c_try_link "$LINENO"; then :
14903
14904 if test "$cross_compiling" = yes; then :
14905 system_zlib_found=no
14906
14907 else
14908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14909 /* end confdefs.h. */
14910
14911 #include <zlib.h>
14912 int main() {
14913 gzFile file = gzopen("none", "rb");
14914 return 0;
14915 }
14916
14917 _ACEOF
14918 if ac_fn_c_try_run "$LINENO"; then :
14919 system_zlib_found=yes
14920 else
14921 system_zlib_found=no
14922 fi
14923 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14924 conftest.$ac_objext conftest.beam conftest.$ac_ext
14925 fi
14926
14927
14928 else
14929 system_zlib_found=no
14930 fi
14931 rm -f core conftest.err conftest.$ac_objext \
14932 conftest$ac_exeext conftest.$ac_ext
14933 LIBS=$save_LIBS
14934
14935 if test x$system_zlib_found = xyes && test x$with_target_system_zlib != xno; then
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
14937 $as_echo "found" >&6; }
14938 LIBS="$LIBS -lz"
14939 elif test x$system_zlib_found = xno && test x$with_target_system_zlib = xyes; then
14940 as_fn_error $? "system zlib required but not found" "$LINENO" 5
14941 else
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14943 $as_echo "just compiled" >&6; }
14944 LIBZ=../../zlib/libz_convenience.la
14945 fi
14946
14947
14948 ac_ext=c
14949 ac_cpp='$CPP $CPPFLAGS'
14950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14953
14954
14955
14956
14957
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking D GCC version" >&5
14959 $as_echo_n "checking D GCC version... " >&6; }
14960 gcc_version=`eval $get_gcc_base_ver $srcdir/../gcc/BASE-VER`
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_version" >&5
14962 $as_echo "$gcc_version" >&6; }
14963
14964
14965
14966 # Check whether --with-cross-host was given.
14967 if test "${with_cross_host+set}" = set; then :
14968 withval=$with_cross_host;
14969 fi
14970
14971
14972 libphobos_toolexecdir=no
14973 libphobos_toolexeclibdir=no
14974
14975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
14976 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
14977 # Check whether --enable-version-specific-runtime-libs was given.
14978 if test "${enable_version_specific_runtime_libs+set}" = set; then :
14979 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
14980 yes) version_specific_libs=yes ;;
14981 no) version_specific_libs=no ;;
14982 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
14983 esac
14984 else
14985 version_specific_libs=no
14986 fi
14987
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
14989 $as_echo "$version_specific_libs" >&6; }
14990
14991 # Version-specific runtime libs processing.
14992 if test $version_specific_libs = yes; then
14993 libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
14994 libphobos_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
14995 else
14996 # Calculate libphobos_toolexecdir, libphobos_toolexeclibdir
14997 # Install a library built with a cross compiler in tooldir, not libdir.
14998 if test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
14999 libphobos_toolexecdir='${exec_prefix}/${host_alias}'
15000 libphobos_toolexeclibdir='${toolexecdir}/lib'
15001 else
15002 libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15003 libphobos_toolexeclibdir='${libdir}'
15004 fi
15005 multi_os_directory=`$GDC -print-multi-os-directory`
15006 case $multi_os_directory in
15007 .) ;; # Avoid trailing /.
15008 *) libphobos_toolexeclibdir=${libphobos_toolexeclibdir}/${multi_os_directory} ;;
15009 esac
15010 fi
15011
15012
15013
15014 # Default case for install directory for D sources files.
15015 gdc_include_dir='$(libdir)/gcc/${target_alias}/${gcc_version}/include/d'
15016
15017
15018
15019 # Add drtbegin.o/drtend.o to startfile/endfile specs in libgphobos.spec
15020 if test "$DCFG_MINFO_BRACKETING" = "false"; then
15021 DRTSTUFF_SPEC=$srcdir/src/drtstuff.spec
15022 else
15023 DRTSTUFF_SPEC=/dev/null
15024 fi
15025
15026
15027 # Add dependencies for libgphobos.spec file
15028 SPEC_PHOBOS_DEPS="$LIBS"
15029
15030
15031 # Libdruntime / phobos soname version
15032 libtool_VERSION=76:3:0
15033
15034
15035 # Set default flags (after DRUNTIME_WERROR!)
15036 if test -z "$GDCFLAGS"; then
15037 GDCFLAGS="-Wall $WERROR_FLAG -g -frelease -O2"
15038 fi
15039
15040
15041 if test -z "$GDCFLAGSX"; then
15042 GDCFLAGSX="-Wall $WERROR_FLAG -g -fno-release -funittest"
15043 fi
15044
15045
15046 # Sanity check for the cross-compilation case:
15047 ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
15048 if test "x$ac_cv_header_stdio_h" = xyes; then :
15049 :
15050 else
15051 as_fn_error $? "cannot find stdio.h." "$LINENO" 5
15052 fi
15053
15054
15055
15056 ac_config_files="$ac_config_files Makefile"
15057
15058
15059 ac_config_files="$ac_config_files libdruntime/gcc/config.d libdruntime/gcc/libbacktrace.d"
15060
15061 ac_config_files="$ac_config_files src/libgphobos.spec"
15062
15063 ac_config_files="$ac_config_files testsuite/testsuite_flags"
15064
15065
15066 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
15067 # that multilib installs will end up installed in the correct place.
15068 # The testsuite needs it for multilib-aware ABI baseline files.
15069 # To work around this not being passed down from config-ml.in ->
15070 # srcdir/Makefile.am -> srcdir/{src,libdruntime,...}/Makefile.am, manually
15071 # append it here. Only modify Makefiles that have just been created.
15072 #
15073 # Also, get rid of this simulated-VPATH thing that automake does.
15074 ac_config_files="$ac_config_files libdruntime/Makefile src/Makefile testsuite/Makefile"
15075
15076
15077 cat >confcache <<\_ACEOF
15078 # This file is a shell script that caches the results of configure
15079 # tests run on this system so they can be shared between configure
15080 # scripts and configure runs, see configure's option --config-cache.
15081 # It is not useful on other systems. If it contains results you don't
15082 # want to keep, you may remove or edit it.
15083 #
15084 # config.status only pays attention to the cache file if you give it
15085 # the --recheck option to rerun configure.
15086 #
15087 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15088 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15089 # following values.
15090
15091 _ACEOF
15092
15093 # The following way of writing the cache mishandles newlines in values,
15094 # but we know of no workaround that is simple, portable, and efficient.
15095 # So, we kill variables containing newlines.
15096 # Ultrix sh set writes to stderr and can't be redirected directly,
15097 # and sets the high bit in the cache file unless we assign to the vars.
15098 (
15099 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15100 eval ac_val=\$$ac_var
15101 case $ac_val in #(
15102 *${as_nl}*)
15103 case $ac_var in #(
15104 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15105 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15106 esac
15107 case $ac_var in #(
15108 _ | IFS | as_nl) ;; #(
15109 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15110 *) { eval $ac_var=; unset $ac_var;} ;;
15111 esac ;;
15112 esac
15113 done
15114
15115 (set) 2>&1 |
15116 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15117 *${as_nl}ac_space=\ *)
15118 # `set' does not quote correctly, so add quotes: double-quote
15119 # substitution turns \\\\ into \\, and sed turns \\ into \.
15120 sed -n \
15121 "s/'/'\\\\''/g;
15122 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15123 ;; #(
15124 *)
15125 # `set' quotes correctly as required by POSIX, so do not add quotes.
15126 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15127 ;;
15128 esac |
15129 sort
15130 ) |
15131 sed '
15132 /^ac_cv_env_/b end
15133 t clear
15134 :clear
15135 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15136 t end
15137 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15138 :end' >>confcache
15139 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15140 if test -w "$cache_file"; then
15141 if test "x$cache_file" != "x/dev/null"; then
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15143 $as_echo "$as_me: updating cache $cache_file" >&6;}
15144 if test ! -f "$cache_file" || test -h "$cache_file"; then
15145 cat confcache >"$cache_file"
15146 else
15147 case $cache_file in #(
15148 */* | ?:*)
15149 mv -f confcache "$cache_file"$$ &&
15150 mv -f "$cache_file"$$ "$cache_file" ;; #(
15151 *)
15152 mv -f confcache "$cache_file" ;;
15153 esac
15154 fi
15155 fi
15156 else
15157 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15158 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15159 fi
15160 fi
15161 rm -f confcache
15162
15163 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15164 # Let make expand exec_prefix.
15165 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15166
15167 DEFS=-DHAVE_CONFIG_H
15168
15169 ac_libobjs=
15170 ac_ltlibobjs=
15171 U=
15172 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15173 # 1. Remove the extension, and $U if already installed.
15174 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15175 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15176 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15177 # will be set to the directory where LIBOBJS objects are built.
15178 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15179 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15180 done
15181 LIBOBJS=$ac_libobjs
15182
15183 LTLIBOBJS=$ac_ltlibobjs
15184
15185
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15187 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15188 if test -n "$am_sleep_pid"; then
15189 # Hide warnings about reused PIDs.
15190 wait $am_sleep_pid 2>/dev/null
15191 fi
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15193 $as_echo "done" >&6; }
15194 if test -n "$EXEEXT"; then
15195 am__EXEEXT_TRUE=
15196 am__EXEEXT_FALSE='#'
15197 else
15198 am__EXEEXT_TRUE='#'
15199 am__EXEEXT_FALSE=
15200 fi
15201
15202 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15203 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15204 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15205 fi
15206 if test -z "${DRUNTIME_GC_ENABLE_TRUE}" && test -z "${DRUNTIME_GC_ENABLE_FALSE}"; then
15207 as_fn_error $? "conditional \"DRUNTIME_GC_ENABLE\" was never defined.
15208 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15209 fi
15210 if test -z "${DRUNTIME_OS_UNIX_TRUE}" && test -z "${DRUNTIME_OS_UNIX_FALSE}"; then
15211 as_fn_error $? "conditional \"DRUNTIME_OS_UNIX\" was never defined.
15212 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15213 fi
15214 if test -z "${DRUNTIME_OS_AIX_TRUE}" && test -z "${DRUNTIME_OS_AIX_FALSE}"; then
15215 as_fn_error $? "conditional \"DRUNTIME_OS_AIX\" was never defined.
15216 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15217 fi
15218 if test -z "${DRUNTIME_OS_ANDROID_TRUE}" && test -z "${DRUNTIME_OS_ANDROID_FALSE}"; then
15219 as_fn_error $? "conditional \"DRUNTIME_OS_ANDROID\" was never defined.
15220 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15221 fi
15222 if test -z "${DRUNTIME_OS_DARWIN_TRUE}" && test -z "${DRUNTIME_OS_DARWIN_FALSE}"; then
15223 as_fn_error $? "conditional \"DRUNTIME_OS_DARWIN\" was never defined.
15224 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15225 fi
15226 if test -z "${DRUNTIME_OS_DRAGONFLYBSD_TRUE}" && test -z "${DRUNTIME_OS_DRAGONFLYBSD_FALSE}"; then
15227 as_fn_error $? "conditional \"DRUNTIME_OS_DRAGONFLYBSD\" was never defined.
15228 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15229 fi
15230 if test -z "${DRUNTIME_OS_FREEBSD_TRUE}" && test -z "${DRUNTIME_OS_FREEBSD_FALSE}"; then
15231 as_fn_error $? "conditional \"DRUNTIME_OS_FREEBSD\" was never defined.
15232 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15233 fi
15234 if test -z "${DRUNTIME_OS_NETBSD_TRUE}" && test -z "${DRUNTIME_OS_NETBSD_FALSE}"; then
15235 as_fn_error $? "conditional \"DRUNTIME_OS_NETBSD\" was never defined.
15236 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15237 fi
15238 if test -z "${DRUNTIME_OS_OPENBSD_TRUE}" && test -z "${DRUNTIME_OS_OPENBSD_FALSE}"; then
15239 as_fn_error $? "conditional \"DRUNTIME_OS_OPENBSD\" was never defined.
15240 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15241 fi
15242 if test -z "${DRUNTIME_OS_LINUX_TRUE}" && test -z "${DRUNTIME_OS_LINUX_FALSE}"; then
15243 as_fn_error $? "conditional \"DRUNTIME_OS_LINUX\" was never defined.
15244 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15245 fi
15246 if test -z "${DRUNTIME_OS_MINGW_TRUE}" && test -z "${DRUNTIME_OS_MINGW_FALSE}"; then
15247 as_fn_error $? "conditional \"DRUNTIME_OS_MINGW\" was never defined.
15248 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15249 fi
15250 if test -z "${DRUNTIME_OS_SOLARIS_TRUE}" && test -z "${DRUNTIME_OS_SOLARIS_FALSE}"; then
15251 as_fn_error $? "conditional \"DRUNTIME_OS_SOLARIS\" was never defined.
15252 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15253 fi
15254 if test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE}" && test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE}"; then
15255 as_fn_error $? "conditional \"DRUNTIME_OS_ARM_EABI_UNWINDER\" was never defined.
15256 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15257 fi
15258 if test -z "${DRUNTIME_OS_MINFO_BRACKETING_TRUE}" && test -z "${DRUNTIME_OS_MINFO_BRACKETING_FALSE}"; then
15259 as_fn_error $? "conditional \"DRUNTIME_OS_MINFO_BRACKETING\" was never defined.
15260 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15261 fi
15262
15263 : "${CONFIG_STATUS=./config.status}"
15264 ac_write_fail=0
15265 ac_clean_files_save=$ac_clean_files
15266 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15268 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15269 as_write_fail=0
15270 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15271 #! $SHELL
15272 # Generated by $as_me.
15273 # Run this file to recreate the current configuration.
15274 # Compiler output produced by configure, useful for debugging
15275 # configure, is in config.log if it exists.
15276
15277 debug=false
15278 ac_cs_recheck=false
15279 ac_cs_silent=false
15280
15281 SHELL=\${CONFIG_SHELL-$SHELL}
15282 export SHELL
15283 _ASEOF
15284 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15285 ## -------------------- ##
15286 ## M4sh Initialization. ##
15287 ## -------------------- ##
15288
15289 # Be more Bourne compatible
15290 DUALCASE=1; export DUALCASE # for MKS sh
15291 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15292 emulate sh
15293 NULLCMD=:
15294 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15295 # is contrary to our usage. Disable this feature.
15296 alias -g '${1+"$@"}'='"$@"'
15297 setopt NO_GLOB_SUBST
15298 else
15299 case `(set -o) 2>/dev/null` in #(
15300 *posix*) :
15301 set -o posix ;; #(
15302 *) :
15303 ;;
15304 esac
15305 fi
15306
15307
15308 as_nl='
15309 '
15310 export as_nl
15311 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15312 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15313 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15314 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15315 # Prefer a ksh shell builtin over an external printf program on Solaris,
15316 # but without wasting forks for bash or zsh.
15317 if test -z "$BASH_VERSION$ZSH_VERSION" \
15318 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15319 as_echo='print -r --'
15320 as_echo_n='print -rn --'
15321 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15322 as_echo='printf %s\n'
15323 as_echo_n='printf %s'
15324 else
15325 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15326 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15327 as_echo_n='/usr/ucb/echo -n'
15328 else
15329 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15330 as_echo_n_body='eval
15331 arg=$1;
15332 case $arg in #(
15333 *"$as_nl"*)
15334 expr "X$arg" : "X\\(.*\\)$as_nl";
15335 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15336 esac;
15337 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15338 '
15339 export as_echo_n_body
15340 as_echo_n='sh -c $as_echo_n_body as_echo'
15341 fi
15342 export as_echo_body
15343 as_echo='sh -c $as_echo_body as_echo'
15344 fi
15345
15346 # The user is always right.
15347 if test "${PATH_SEPARATOR+set}" != set; then
15348 PATH_SEPARATOR=:
15349 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15350 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15351 PATH_SEPARATOR=';'
15352 }
15353 fi
15354
15355
15356 # IFS
15357 # We need space, tab and new line, in precisely that order. Quoting is
15358 # there to prevent editors from complaining about space-tab.
15359 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15360 # splitting by setting IFS to empty value.)
15361 IFS=" "" $as_nl"
15362
15363 # Find who we are. Look in the path if we contain no directory separator.
15364 as_myself=
15365 case $0 in #((
15366 *[\\/]* ) as_myself=$0 ;;
15367 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15368 for as_dir in $PATH
15369 do
15370 IFS=$as_save_IFS
15371 test -z "$as_dir" && as_dir=.
15372 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15373 done
15374 IFS=$as_save_IFS
15375
15376 ;;
15377 esac
15378 # We did not find ourselves, most probably we were run as `sh COMMAND'
15379 # in which case we are not to be found in the path.
15380 if test "x$as_myself" = x; then
15381 as_myself=$0
15382 fi
15383 if test ! -f "$as_myself"; then
15384 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15385 exit 1
15386 fi
15387
15388 # Unset variables that we do not need and which cause bugs (e.g. in
15389 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15390 # suppresses any "Segmentation fault" message there. '((' could
15391 # trigger a bug in pdksh 5.2.14.
15392 for as_var in BASH_ENV ENV MAIL MAILPATH
15393 do eval test x\${$as_var+set} = xset \
15394 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15395 done
15396 PS1='$ '
15397 PS2='> '
15398 PS4='+ '
15399
15400 # NLS nuisances.
15401 LC_ALL=C
15402 export LC_ALL
15403 LANGUAGE=C
15404 export LANGUAGE
15405
15406 # CDPATH.
15407 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15408
15409
15410 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15411 # ----------------------------------------
15412 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15413 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15414 # script with STATUS, using 1 if that was 0.
15415 as_fn_error ()
15416 {
15417 as_status=$1; test $as_status -eq 0 && as_status=1
15418 if test "$4"; then
15419 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15420 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15421 fi
15422 $as_echo "$as_me: error: $2" >&2
15423 as_fn_exit $as_status
15424 } # as_fn_error
15425
15426
15427 # as_fn_set_status STATUS
15428 # -----------------------
15429 # Set $? to STATUS, without forking.
15430 as_fn_set_status ()
15431 {
15432 return $1
15433 } # as_fn_set_status
15434
15435 # as_fn_exit STATUS
15436 # -----------------
15437 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15438 as_fn_exit ()
15439 {
15440 set +e
15441 as_fn_set_status $1
15442 exit $1
15443 } # as_fn_exit
15444
15445 # as_fn_unset VAR
15446 # ---------------
15447 # Portably unset VAR.
15448 as_fn_unset ()
15449 {
15450 { eval $1=; unset $1;}
15451 }
15452 as_unset=as_fn_unset
15453 # as_fn_append VAR VALUE
15454 # ----------------------
15455 # Append the text in VALUE to the end of the definition contained in VAR. Take
15456 # advantage of any shell optimizations that allow amortized linear growth over
15457 # repeated appends, instead of the typical quadratic growth present in naive
15458 # implementations.
15459 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15460 eval 'as_fn_append ()
15461 {
15462 eval $1+=\$2
15463 }'
15464 else
15465 as_fn_append ()
15466 {
15467 eval $1=\$$1\$2
15468 }
15469 fi # as_fn_append
15470
15471 # as_fn_arith ARG...
15472 # ------------------
15473 # Perform arithmetic evaluation on the ARGs, and store the result in the
15474 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15475 # must be portable across $(()) and expr.
15476 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15477 eval 'as_fn_arith ()
15478 {
15479 as_val=$(( $* ))
15480 }'
15481 else
15482 as_fn_arith ()
15483 {
15484 as_val=`expr "$@" || test $? -eq 1`
15485 }
15486 fi # as_fn_arith
15487
15488
15489 if expr a : '\(a\)' >/dev/null 2>&1 &&
15490 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15491 as_expr=expr
15492 else
15493 as_expr=false
15494 fi
15495
15496 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15497 as_basename=basename
15498 else
15499 as_basename=false
15500 fi
15501
15502 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15503 as_dirname=dirname
15504 else
15505 as_dirname=false
15506 fi
15507
15508 as_me=`$as_basename -- "$0" ||
15509 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15510 X"$0" : 'X\(//\)$' \| \
15511 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15512 $as_echo X/"$0" |
15513 sed '/^.*\/\([^/][^/]*\)\/*$/{
15514 s//\1/
15515 q
15516 }
15517 /^X\/\(\/\/\)$/{
15518 s//\1/
15519 q
15520 }
15521 /^X\/\(\/\).*/{
15522 s//\1/
15523 q
15524 }
15525 s/.*/./; q'`
15526
15527 # Avoid depending upon Character Ranges.
15528 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15529 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15530 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15531 as_cr_digits='0123456789'
15532 as_cr_alnum=$as_cr_Letters$as_cr_digits
15533
15534 ECHO_C= ECHO_N= ECHO_T=
15535 case `echo -n x` in #(((((
15536 -n*)
15537 case `echo 'xy\c'` in
15538 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15539 xy) ECHO_C='\c';;
15540 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15541 ECHO_T=' ';;
15542 esac;;
15543 *)
15544 ECHO_N='-n';;
15545 esac
15546
15547 rm -f conf$$ conf$$.exe conf$$.file
15548 if test -d conf$$.dir; then
15549 rm -f conf$$.dir/conf$$.file
15550 else
15551 rm -f conf$$.dir
15552 mkdir conf$$.dir 2>/dev/null
15553 fi
15554 if (echo >conf$$.file) 2>/dev/null; then
15555 if ln -s conf$$.file conf$$ 2>/dev/null; then
15556 as_ln_s='ln -s'
15557 # ... but there are two gotchas:
15558 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15559 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15560 # In both cases, we have to default to `cp -pR'.
15561 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15562 as_ln_s='cp -pR'
15563 elif ln conf$$.file conf$$ 2>/dev/null; then
15564 as_ln_s=ln
15565 else
15566 as_ln_s='cp -pR'
15567 fi
15568 else
15569 as_ln_s='cp -pR'
15570 fi
15571 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15572 rmdir conf$$.dir 2>/dev/null
15573
15574
15575 # as_fn_mkdir_p
15576 # -------------
15577 # Create "$as_dir" as a directory, including parents if necessary.
15578 as_fn_mkdir_p ()
15579 {
15580
15581 case $as_dir in #(
15582 -*) as_dir=./$as_dir;;
15583 esac
15584 test -d "$as_dir" || eval $as_mkdir_p || {
15585 as_dirs=
15586 while :; do
15587 case $as_dir in #(
15588 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15589 *) as_qdir=$as_dir;;
15590 esac
15591 as_dirs="'$as_qdir' $as_dirs"
15592 as_dir=`$as_dirname -- "$as_dir" ||
15593 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15594 X"$as_dir" : 'X\(//\)[^/]' \| \
15595 X"$as_dir" : 'X\(//\)$' \| \
15596 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15597 $as_echo X"$as_dir" |
15598 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15599 s//\1/
15600 q
15601 }
15602 /^X\(\/\/\)[^/].*/{
15603 s//\1/
15604 q
15605 }
15606 /^X\(\/\/\)$/{
15607 s//\1/
15608 q
15609 }
15610 /^X\(\/\).*/{
15611 s//\1/
15612 q
15613 }
15614 s/.*/./; q'`
15615 test -d "$as_dir" && break
15616 done
15617 test -z "$as_dirs" || eval "mkdir $as_dirs"
15618 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15619
15620
15621 } # as_fn_mkdir_p
15622 if mkdir -p . 2>/dev/null; then
15623 as_mkdir_p='mkdir -p "$as_dir"'
15624 else
15625 test -d ./-p && rmdir ./-p
15626 as_mkdir_p=false
15627 fi
15628
15629
15630 # as_fn_executable_p FILE
15631 # -----------------------
15632 # Test if FILE is an executable regular file.
15633 as_fn_executable_p ()
15634 {
15635 test -f "$1" && test -x "$1"
15636 } # as_fn_executable_p
15637 as_test_x='test -x'
15638 as_executable_p=as_fn_executable_p
15639
15640 # Sed expression to map a string onto a valid CPP name.
15641 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15642
15643 # Sed expression to map a string onto a valid variable name.
15644 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15645
15646
15647 exec 6>&1
15648 ## ----------------------------------- ##
15649 ## Main body of $CONFIG_STATUS script. ##
15650 ## ----------------------------------- ##
15651 _ASEOF
15652 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15653
15654 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15655 # Save the log message, to keep $0 and so on meaningful, and to
15656 # report actual input values of CONFIG_FILES etc. instead of their
15657 # values after options handling.
15658 ac_log="
15659 This file was extended by package-unused $as_me version-unused, which was
15660 generated by GNU Autoconf 2.69. Invocation command line was
15661
15662 CONFIG_FILES = $CONFIG_FILES
15663 CONFIG_HEADERS = $CONFIG_HEADERS
15664 CONFIG_LINKS = $CONFIG_LINKS
15665 CONFIG_COMMANDS = $CONFIG_COMMANDS
15666 $ $0 $@
15667
15668 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15669 "
15670
15671 _ACEOF
15672
15673 case $ac_config_files in *"
15674 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15675 esac
15676
15677 case $ac_config_headers in *"
15678 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15679 esac
15680
15681
15682 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15683 # Files that config.status was made for.
15684 config_files="$ac_config_files"
15685 config_headers="$ac_config_headers"
15686 config_commands="$ac_config_commands"
15687
15688 _ACEOF
15689
15690 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15691 ac_cs_usage="\
15692 \`$as_me' instantiates files and other configuration actions
15693 from templates according to the current configuration. Unless the files
15694 and actions are specified as TAGs, all are instantiated by default.
15695
15696 Usage: $0 [OPTION]... [TAG]...
15697
15698 -h, --help print this help, then exit
15699 -V, --version print version number and configuration settings, then exit
15700 --config print configuration, then exit
15701 -q, --quiet, --silent
15702 do not print progress messages
15703 -d, --debug don't remove temporary files
15704 --recheck update $as_me by reconfiguring in the same conditions
15705 --file=FILE[:TEMPLATE]
15706 instantiate the configuration file FILE
15707 --header=FILE[:TEMPLATE]
15708 instantiate the configuration header FILE
15709
15710 Configuration files:
15711 $config_files
15712
15713 Configuration headers:
15714 $config_headers
15715
15716 Configuration commands:
15717 $config_commands
15718
15719 Report bugs to the package provider."
15720
15721 _ACEOF
15722 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15723 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15724 ac_cs_version="\\
15725 package-unused config.status version-unused
15726 configured by $0, generated by GNU Autoconf 2.69,
15727 with options \\"\$ac_cs_config\\"
15728
15729 Copyright (C) 2012 Free Software Foundation, Inc.
15730 This config.status script is free software; the Free Software Foundation
15731 gives unlimited permission to copy, distribute and modify it."
15732
15733 ac_pwd='$ac_pwd'
15734 srcdir='$srcdir'
15735 INSTALL='$INSTALL'
15736 MKDIR_P='$MKDIR_P'
15737 AWK='$AWK'
15738 test -n "\$AWK" || AWK=awk
15739 _ACEOF
15740
15741 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15742 # The default lists apply if the user does not specify any file.
15743 ac_need_defaults=:
15744 while test $# != 0
15745 do
15746 case $1 in
15747 --*=?*)
15748 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15749 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15750 ac_shift=:
15751 ;;
15752 --*=)
15753 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15754 ac_optarg=
15755 ac_shift=:
15756 ;;
15757 *)
15758 ac_option=$1
15759 ac_optarg=$2
15760 ac_shift=shift
15761 ;;
15762 esac
15763
15764 case $ac_option in
15765 # Handling of the options.
15766 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15767 ac_cs_recheck=: ;;
15768 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15769 $as_echo "$ac_cs_version"; exit ;;
15770 --config | --confi | --conf | --con | --co | --c )
15771 $as_echo "$ac_cs_config"; exit ;;
15772 --debug | --debu | --deb | --de | --d | -d )
15773 debug=: ;;
15774 --file | --fil | --fi | --f )
15775 $ac_shift
15776 case $ac_optarg in
15777 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15778 '') as_fn_error $? "missing file argument" ;;
15779 esac
15780 as_fn_append CONFIG_FILES " '$ac_optarg'"
15781 ac_need_defaults=false;;
15782 --header | --heade | --head | --hea )
15783 $ac_shift
15784 case $ac_optarg in
15785 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15786 esac
15787 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15788 ac_need_defaults=false;;
15789 --he | --h)
15790 # Conflict between --help and --header
15791 as_fn_error $? "ambiguous option: \`$1'
15792 Try \`$0 --help' for more information.";;
15793 --help | --hel | -h )
15794 $as_echo "$ac_cs_usage"; exit ;;
15795 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15796 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15797 ac_cs_silent=: ;;
15798
15799 # This is an error.
15800 -*) as_fn_error $? "unrecognized option: \`$1'
15801 Try \`$0 --help' for more information." ;;
15802
15803 *) as_fn_append ac_config_targets " $1"
15804 ac_need_defaults=false ;;
15805
15806 esac
15807 shift
15808 done
15809
15810 ac_configure_extra_args=
15811
15812 if $ac_cs_silent; then
15813 exec 6>/dev/null
15814 ac_configure_extra_args="$ac_configure_extra_args --silent"
15815 fi
15816
15817 _ACEOF
15818 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15819 if \$ac_cs_recheck; then
15820 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15821 shift
15822 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15823 CONFIG_SHELL='$SHELL'
15824 export CONFIG_SHELL
15825 exec "\$@"
15826 fi
15827
15828 _ACEOF
15829 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15830 exec 5>>config.log
15831 {
15832 echo
15833 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15834 ## Running $as_me. ##
15835 _ASBOX
15836 $as_echo "$ac_log"
15837 } >&5
15838
15839 _ACEOF
15840 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15841 #
15842 # INIT-COMMANDS
15843 #
15844
15845 srcdir="$srcdir"
15846 host="$host"
15847 target="$target"
15848 with_multisubdir="$with_multisubdir"
15849 with_multisrctop="$with_multisrctop"
15850 with_target_subdir="$with_target_subdir"
15851 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15852 multi_basedir="$multi_basedir"
15853 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15854 CC="$CC"
15855 CXX="$CXX"
15856 GFORTRAN="$GFORTRAN"
15857 GDC="$GDC"
15858
15859
15860 # The HP-UX ksh and POSIX shell print the target directory to stdout
15861 # if CDPATH is set.
15862 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15863
15864 sed_quote_subst='$sed_quote_subst'
15865 double_quote_subst='$double_quote_subst'
15866 delay_variable_subst='$delay_variable_subst'
15867 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15868 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15869 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15870 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15871 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15872 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15873 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15874 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15875 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15876 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15877 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15878 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15879 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15880 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15881 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15882 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15883 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15884 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15885 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15886 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15887 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15888 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15889 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15890 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15891 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15892 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15893 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15894 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15895 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15896 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15897 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15898 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15899 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15900 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15901 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15902 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15903 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15904 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15905 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15906 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15907 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15908 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15909 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15910 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15911 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15912 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15913 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15914 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15915 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"`'
15916 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15917 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15918 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15919 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15920 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15921 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15922 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15923 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15924 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15925 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15926 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15927 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15928 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15929 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15930 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15931 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15932 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15933 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15934 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15935 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15936 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15937 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15938 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15939 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15940 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15941 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15942 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15943 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15944 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15945 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15946 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15947 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15948 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15949 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15950 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15951 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15952 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15953 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15954 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15955 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15956 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15957 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15958 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15959 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15960 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15961 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15962 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15963 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15964 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15965 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15966 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15967 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15968 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15969 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15970 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15971 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15972 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15973 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15974 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15975 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15976 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15977 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15978 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15979 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15980 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15981 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15982 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15983 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15984 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15985 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15986 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15987 LD_D='`$ECHO "$LD_D" | $SED "$delay_single_quote_subst"`'
15988 reload_flag_D='`$ECHO "$reload_flag_D" | $SED "$delay_single_quote_subst"`'
15989 reload_cmds_D='`$ECHO "$reload_cmds_D" | $SED "$delay_single_quote_subst"`'
15990 old_archive_cmds_D='`$ECHO "$old_archive_cmds_D" | $SED "$delay_single_quote_subst"`'
15991 compiler_D='`$ECHO "$compiler_D" | $SED "$delay_single_quote_subst"`'
15992 GCC_D='`$ECHO "$GCC_D" | $SED "$delay_single_quote_subst"`'
15993 lt_prog_compiler_no_builtin_flag_D='`$ECHO "$lt_prog_compiler_no_builtin_flag_D" | $SED "$delay_single_quote_subst"`'
15994 lt_prog_compiler_wl_D='`$ECHO "$lt_prog_compiler_wl_D" | $SED "$delay_single_quote_subst"`'
15995 lt_prog_compiler_pic_D='`$ECHO "$lt_prog_compiler_pic_D" | $SED "$delay_single_quote_subst"`'
15996 lt_prog_compiler_static_D='`$ECHO "$lt_prog_compiler_static_D" | $SED "$delay_single_quote_subst"`'
15997 lt_cv_prog_compiler_c_o_D='`$ECHO "$lt_cv_prog_compiler_c_o_D" | $SED "$delay_single_quote_subst"`'
15998 archive_cmds_need_lc_D='`$ECHO "$archive_cmds_need_lc_D" | $SED "$delay_single_quote_subst"`'
15999 enable_shared_with_static_runtimes_D='`$ECHO "$enable_shared_with_static_runtimes_D" | $SED "$delay_single_quote_subst"`'
16000 export_dynamic_flag_spec_D='`$ECHO "$export_dynamic_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16001 whole_archive_flag_spec_D='`$ECHO "$whole_archive_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16002 compiler_needs_object_D='`$ECHO "$compiler_needs_object_D" | $SED "$delay_single_quote_subst"`'
16003 old_archive_from_new_cmds_D='`$ECHO "$old_archive_from_new_cmds_D" | $SED "$delay_single_quote_subst"`'
16004 old_archive_from_expsyms_cmds_D='`$ECHO "$old_archive_from_expsyms_cmds_D" | $SED "$delay_single_quote_subst"`'
16005 archive_cmds_D='`$ECHO "$archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16006 archive_expsym_cmds_D='`$ECHO "$archive_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16007 module_cmds_D='`$ECHO "$module_cmds_D" | $SED "$delay_single_quote_subst"`'
16008 module_expsym_cmds_D='`$ECHO "$module_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16009 with_gnu_ld_D='`$ECHO "$with_gnu_ld_D" | $SED "$delay_single_quote_subst"`'
16010 allow_undefined_flag_D='`$ECHO "$allow_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16011 no_undefined_flag_D='`$ECHO "$no_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16012 hardcode_libdir_flag_spec_D='`$ECHO "$hardcode_libdir_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16013 hardcode_libdir_flag_spec_ld_D='`$ECHO "$hardcode_libdir_flag_spec_ld_D" | $SED "$delay_single_quote_subst"`'
16014 hardcode_libdir_separator_D='`$ECHO "$hardcode_libdir_separator_D" | $SED "$delay_single_quote_subst"`'
16015 hardcode_direct_D='`$ECHO "$hardcode_direct_D" | $SED "$delay_single_quote_subst"`'
16016 hardcode_direct_absolute_D='`$ECHO "$hardcode_direct_absolute_D" | $SED "$delay_single_quote_subst"`'
16017 hardcode_minus_L_D='`$ECHO "$hardcode_minus_L_D" | $SED "$delay_single_quote_subst"`'
16018 hardcode_shlibpath_var_D='`$ECHO "$hardcode_shlibpath_var_D" | $SED "$delay_single_quote_subst"`'
16019 hardcode_automatic_D='`$ECHO "$hardcode_automatic_D" | $SED "$delay_single_quote_subst"`'
16020 inherit_rpath_D='`$ECHO "$inherit_rpath_D" | $SED "$delay_single_quote_subst"`'
16021 link_all_deplibs_D='`$ECHO "$link_all_deplibs_D" | $SED "$delay_single_quote_subst"`'
16022 fix_srcfile_path_D='`$ECHO "$fix_srcfile_path_D" | $SED "$delay_single_quote_subst"`'
16023 always_export_symbols_D='`$ECHO "$always_export_symbols_D" | $SED "$delay_single_quote_subst"`'
16024 export_symbols_cmds_D='`$ECHO "$export_symbols_cmds_D" | $SED "$delay_single_quote_subst"`'
16025 exclude_expsyms_D='`$ECHO "$exclude_expsyms_D" | $SED "$delay_single_quote_subst"`'
16026 include_expsyms_D='`$ECHO "$include_expsyms_D" | $SED "$delay_single_quote_subst"`'
16027 prelink_cmds_D='`$ECHO "$prelink_cmds_D" | $SED "$delay_single_quote_subst"`'
16028 file_list_spec_D='`$ECHO "$file_list_spec_D" | $SED "$delay_single_quote_subst"`'
16029 hardcode_action_D='`$ECHO "$hardcode_action_D" | $SED "$delay_single_quote_subst"`'
16030
16031 LTCC='$LTCC'
16032 LTCFLAGS='$LTCFLAGS'
16033 compiler='$compiler_DEFAULT'
16034
16035 # A function that is used when there is no print builtin or printf.
16036 func_fallback_echo ()
16037 {
16038 eval 'cat <<_LTECHO_EOF
16039 \$1
16040 _LTECHO_EOF'
16041 }
16042
16043 # Quote evaled strings.
16044 for var in SHELL \
16045 ECHO \
16046 SED \
16047 GREP \
16048 EGREP \
16049 FGREP \
16050 LD \
16051 NM \
16052 LN_S \
16053 lt_SP2NL \
16054 lt_NL2SP \
16055 reload_flag \
16056 OBJDUMP \
16057 deplibs_check_method \
16058 file_magic_cmd \
16059 AR \
16060 AR_FLAGS \
16061 STRIP \
16062 RANLIB \
16063 CC \
16064 CFLAGS \
16065 compiler \
16066 lt_cv_sys_global_symbol_pipe \
16067 lt_cv_sys_global_symbol_to_cdecl \
16068 lt_cv_sys_global_symbol_to_c_name_address \
16069 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16070 lt_prog_compiler_no_builtin_flag \
16071 lt_prog_compiler_wl \
16072 lt_prog_compiler_pic \
16073 lt_prog_compiler_static \
16074 lt_cv_prog_compiler_c_o \
16075 need_locks \
16076 DSYMUTIL \
16077 NMEDIT \
16078 LIPO \
16079 OTOOL \
16080 OTOOL64 \
16081 shrext_cmds \
16082 export_dynamic_flag_spec \
16083 whole_archive_flag_spec \
16084 compiler_needs_object \
16085 with_gnu_ld \
16086 allow_undefined_flag \
16087 no_undefined_flag \
16088 hardcode_libdir_flag_spec \
16089 hardcode_libdir_flag_spec_ld \
16090 hardcode_libdir_separator \
16091 fix_srcfile_path \
16092 exclude_expsyms \
16093 include_expsyms \
16094 file_list_spec \
16095 variables_saved_for_relink \
16096 libname_spec \
16097 library_names_spec \
16098 soname_spec \
16099 install_override_mode \
16100 finish_eval \
16101 old_striplib \
16102 striplib \
16103 LD_D \
16104 reload_flag_D \
16105 compiler_D \
16106 lt_prog_compiler_no_builtin_flag_D \
16107 lt_prog_compiler_wl_D \
16108 lt_prog_compiler_pic_D \
16109 lt_prog_compiler_static_D \
16110 lt_cv_prog_compiler_c_o_D \
16111 export_dynamic_flag_spec_D \
16112 whole_archive_flag_spec_D \
16113 compiler_needs_object_D \
16114 with_gnu_ld_D \
16115 allow_undefined_flag_D \
16116 no_undefined_flag_D \
16117 hardcode_libdir_flag_spec_D \
16118 hardcode_libdir_flag_spec_ld_D \
16119 hardcode_libdir_separator_D \
16120 fix_srcfile_path_D \
16121 exclude_expsyms_D \
16122 include_expsyms_D \
16123 file_list_spec_D; do
16124 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16125 *[\\\\\\\`\\"\\\$]*)
16126 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16127 ;;
16128 *)
16129 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16130 ;;
16131 esac
16132 done
16133
16134 # Double-quote double-evaled strings.
16135 for var in reload_cmds \
16136 old_postinstall_cmds \
16137 old_postuninstall_cmds \
16138 old_archive_cmds \
16139 extract_expsyms_cmds \
16140 old_archive_from_new_cmds \
16141 old_archive_from_expsyms_cmds \
16142 archive_cmds \
16143 archive_expsym_cmds \
16144 module_cmds \
16145 module_expsym_cmds \
16146 export_symbols_cmds \
16147 prelink_cmds \
16148 postinstall_cmds \
16149 postuninstall_cmds \
16150 finish_cmds \
16151 sys_lib_search_path_spec \
16152 sys_lib_dlsearch_path_spec \
16153 reload_cmds_D \
16154 old_archive_cmds_D \
16155 old_archive_from_new_cmds_D \
16156 old_archive_from_expsyms_cmds_D \
16157 archive_cmds_D \
16158 archive_expsym_cmds_D \
16159 module_cmds_D \
16160 module_expsym_cmds_D \
16161 export_symbols_cmds_D \
16162 prelink_cmds_D; do
16163 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16164 *[\\\\\\\`\\"\\\$]*)
16165 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16166 ;;
16167 *)
16168 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16169 ;;
16170 esac
16171 done
16172
16173 ac_aux_dir='$ac_aux_dir'
16174 xsi_shell='$xsi_shell'
16175 lt_shell_append='$lt_shell_append'
16176
16177 # See if we are running on zsh, and set the options which allow our
16178 # commands through without removal of \ escapes INIT.
16179 if test -n "\${ZSH_VERSION+set}" ; then
16180 setopt NO_GLOB_SUBST
16181 fi
16182
16183
16184 PACKAGE='$PACKAGE'
16185 VERSION='$VERSION'
16186 TIMESTAMP='$TIMESTAMP'
16187 RM='$RM'
16188 ofile='$ofile'
16189
16190
16191
16192
16193
16194
16195 _ACEOF
16196
16197 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16198
16199 # Handling of arguments.
16200 for ac_config_target in $ac_config_targets
16201 do
16202 case $ac_config_target in
16203 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16204 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16205 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16206 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16207 "libdruntime/gcc/config.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/config.d" ;;
16208 "libdruntime/gcc/libbacktrace.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/libbacktrace.d" ;;
16209 "src/libgphobos.spec") CONFIG_FILES="$CONFIG_FILES src/libgphobos.spec" ;;
16210 "testsuite/testsuite_flags") CONFIG_FILES="$CONFIG_FILES testsuite/testsuite_flags" ;;
16211 "libdruntime/Makefile") CONFIG_FILES="$CONFIG_FILES libdruntime/Makefile" ;;
16212 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16213 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16214
16215 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16216 esac
16217 done
16218
16219
16220 # If the user did not use the arguments to specify the items to instantiate,
16221 # then the envvar interface is used. Set only those that are not.
16222 # We use the long form for the default assignment because of an extremely
16223 # bizarre bug on SunOS 4.1.3.
16224 if $ac_need_defaults; then
16225 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16226 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16227 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16228 fi
16229
16230 # Have a temporary directory for convenience. Make it in the build tree
16231 # simply because there is no reason against having it here, and in addition,
16232 # creating and moving files from /tmp can sometimes cause problems.
16233 # Hook for its removal unless debugging.
16234 # Note that there is a small window in which the directory will not be cleaned:
16235 # after its creation but before its name has been assigned to `$tmp'.
16236 $debug ||
16237 {
16238 tmp= ac_tmp=
16239 trap 'exit_status=$?
16240 : "${ac_tmp:=$tmp}"
16241 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16242 ' 0
16243 trap 'as_fn_exit 1' 1 2 13 15
16244 }
16245 # Create a (secure) tmp directory for tmp files.
16246
16247 {
16248 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16249 test -d "$tmp"
16250 } ||
16251 {
16252 tmp=./conf$$-$RANDOM
16253 (umask 077 && mkdir "$tmp")
16254 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16255 ac_tmp=$tmp
16256
16257 # Set up the scripts for CONFIG_FILES section.
16258 # No need to generate them if there are no CONFIG_FILES.
16259 # This happens for instance with `./config.status config.h'.
16260 if test -n "$CONFIG_FILES"; then
16261
16262 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16263 ac_cs_awk_getline=:
16264 ac_cs_awk_pipe_init=
16265 ac_cs_awk_read_file='
16266 while ((getline aline < (F[key])) > 0)
16267 print(aline)
16268 close(F[key])'
16269 ac_cs_awk_pipe_fini=
16270 else
16271 ac_cs_awk_getline=false
16272 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16273 ac_cs_awk_read_file='
16274 print "|#_!!_#|"
16275 print "cat " F[key] " &&"
16276 '$ac_cs_awk_pipe_init
16277 # The final `:' finishes the AND list.
16278 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16279 fi
16280 ac_cr=`echo X | tr X '\015'`
16281 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16282 # But we know of no other shell where ac_cr would be empty at this
16283 # point, so we can use a bashism as a fallback.
16284 if test "x$ac_cr" = x; then
16285 eval ac_cr=\$\'\\r\'
16286 fi
16287 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16288 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16289 ac_cs_awk_cr='\\r'
16290 else
16291 ac_cs_awk_cr=$ac_cr
16292 fi
16293
16294 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16295 _ACEOF
16296
16297 # Create commands to substitute file output variables.
16298 {
16299 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16300 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16301 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16302 echo "_ACAWK" &&
16303 echo "_ACEOF"
16304 } >conf$$files.sh &&
16305 . ./conf$$files.sh ||
16306 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16307 rm -f conf$$files.sh
16308
16309 {
16310 echo "cat >conf$$subs.awk <<_ACEOF" &&
16311 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16312 echo "_ACEOF"
16313 } >conf$$subs.sh ||
16314 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16315 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16316 ac_delim='%!_!# '
16317 for ac_last_try in false false false false false :; do
16318 . ./conf$$subs.sh ||
16319 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16320
16321 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16322 if test $ac_delim_n = $ac_delim_num; then
16323 break
16324 elif $ac_last_try; then
16325 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16326 else
16327 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16328 fi
16329 done
16330 rm -f conf$$subs.sh
16331
16332 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16333 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16334 _ACEOF
16335 sed -n '
16336 h
16337 s/^/S["/; s/!.*/"]=/
16338 p
16339 g
16340 s/^[^!]*!//
16341 :repl
16342 t repl
16343 s/'"$ac_delim"'$//
16344 t delim
16345 :nl
16346 h
16347 s/\(.\{148\}\)..*/\1/
16348 t more1
16349 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16350 p
16351 n
16352 b repl
16353 :more1
16354 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16355 p
16356 g
16357 s/.\{148\}//
16358 t nl
16359 :delim
16360 h
16361 s/\(.\{148\}\)..*/\1/
16362 t more2
16363 s/["\\]/\\&/g; s/^/"/; s/$/"/
16364 p
16365 b
16366 :more2
16367 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16368 p
16369 g
16370 s/.\{148\}//
16371 t delim
16372 ' <conf$$subs.awk | sed '
16373 /^[^""]/{
16374 N
16375 s/\n//
16376 }
16377 ' >>$CONFIG_STATUS || ac_write_fail=1
16378 rm -f conf$$subs.awk
16379 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16380 _ACAWK
16381 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16382 for (key in S) S_is_set[key] = 1
16383 FS = "\a"
16384 \$ac_cs_awk_pipe_init
16385 }
16386 {
16387 line = $ 0
16388 nfields = split(line, field, "@")
16389 substed = 0
16390 len = length(field[1])
16391 for (i = 2; i < nfields; i++) {
16392 key = field[i]
16393 keylen = length(key)
16394 if (S_is_set[key]) {
16395 value = S[key]
16396 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16397 len += length(value) + length(field[++i])
16398 substed = 1
16399 } else
16400 len += 1 + keylen
16401 }
16402 if (nfields == 3 && !substed) {
16403 key = field[2]
16404 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16405 \$ac_cs_awk_read_file
16406 next
16407 }
16408 }
16409 print line
16410 }
16411 \$ac_cs_awk_pipe_fini
16412 _ACAWK
16413 _ACEOF
16414 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16415 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16416 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16417 else
16418 cat
16419 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16420 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16421 _ACEOF
16422
16423 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16424 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16425 # trailing colons and then remove the whole line if VPATH becomes empty
16426 # (actually we leave an empty line to preserve line numbers).
16427 if test "x$srcdir" = x.; then
16428 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16429 h
16430 s///
16431 s/^/:/
16432 s/[ ]*$/:/
16433 s/:\$(srcdir):/:/g
16434 s/:\${srcdir}:/:/g
16435 s/:@srcdir@:/:/g
16436 s/^:*//
16437 s/:*$//
16438 x
16439 s/\(=[ ]*\).*/\1/
16440 G
16441 s/\n//
16442 s/^[^=]*=[ ]*$//
16443 }'
16444 fi
16445
16446 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16447 fi # test -n "$CONFIG_FILES"
16448
16449 # Set up the scripts for CONFIG_HEADERS section.
16450 # No need to generate them if there are no CONFIG_HEADERS.
16451 # This happens for instance with `./config.status Makefile'.
16452 if test -n "$CONFIG_HEADERS"; then
16453 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16454 BEGIN {
16455 _ACEOF
16456
16457 # Transform confdefs.h into an awk script `defines.awk', embedded as
16458 # here-document in config.status, that substitutes the proper values into
16459 # config.h.in to produce config.h.
16460
16461 # Create a delimiter string that does not exist in confdefs.h, to ease
16462 # handling of long lines.
16463 ac_delim='%!_!# '
16464 for ac_last_try in false false :; do
16465 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16466 if test -z "$ac_tt"; then
16467 break
16468 elif $ac_last_try; then
16469 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16470 else
16471 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16472 fi
16473 done
16474
16475 # For the awk script, D is an array of macro values keyed by name,
16476 # likewise P contains macro parameters if any. Preserve backslash
16477 # newline sequences.
16478
16479 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16480 sed -n '
16481 s/.\{148\}/&'"$ac_delim"'/g
16482 t rset
16483 :rset
16484 s/^[ ]*#[ ]*define[ ][ ]*/ /
16485 t def
16486 d
16487 :def
16488 s/\\$//
16489 t bsnl
16490 s/["\\]/\\&/g
16491 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16492 D["\1"]=" \3"/p
16493 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16494 d
16495 :bsnl
16496 s/["\\]/\\&/g
16497 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16498 D["\1"]=" \3\\\\\\n"\\/p
16499 t cont
16500 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16501 t cont
16502 d
16503 :cont
16504 n
16505 s/.\{148\}/&'"$ac_delim"'/g
16506 t clear
16507 :clear
16508 s/\\$//
16509 t bsnlc
16510 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16511 d
16512 :bsnlc
16513 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16514 b cont
16515 ' <confdefs.h | sed '
16516 s/'"$ac_delim"'/"\\\
16517 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16518
16519 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16520 for (key in D) D_is_set[key] = 1
16521 FS = "\a"
16522 }
16523 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16524 line = \$ 0
16525 split(line, arg, " ")
16526 if (arg[1] == "#") {
16527 defundef = arg[2]
16528 mac1 = arg[3]
16529 } else {
16530 defundef = substr(arg[1], 2)
16531 mac1 = arg[2]
16532 }
16533 split(mac1, mac2, "(") #)
16534 macro = mac2[1]
16535 prefix = substr(line, 1, index(line, defundef) - 1)
16536 if (D_is_set[macro]) {
16537 # Preserve the white space surrounding the "#".
16538 print prefix "define", macro P[macro] D[macro]
16539 next
16540 } else {
16541 # Replace #undef with comments. This is necessary, for example,
16542 # in the case of _POSIX_SOURCE, which is predefined and required
16543 # on some systems where configure will not decide to define it.
16544 if (defundef == "undef") {
16545 print "/*", prefix defundef, macro, "*/"
16546 next
16547 }
16548 }
16549 }
16550 { print }
16551 _ACAWK
16552 _ACEOF
16553 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16554 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16555 fi # test -n "$CONFIG_HEADERS"
16556
16557
16558 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16559 shift
16560 for ac_tag
16561 do
16562 case $ac_tag in
16563 :[FHLC]) ac_mode=$ac_tag; continue;;
16564 esac
16565 case $ac_mode$ac_tag in
16566 :[FHL]*:*);;
16567 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16568 :[FH]-) ac_tag=-:-;;
16569 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16570 esac
16571 ac_save_IFS=$IFS
16572 IFS=:
16573 set x $ac_tag
16574 IFS=$ac_save_IFS
16575 shift
16576 ac_file=$1
16577 shift
16578
16579 case $ac_mode in
16580 :L) ac_source=$1;;
16581 :[FH])
16582 ac_file_inputs=
16583 for ac_f
16584 do
16585 case $ac_f in
16586 -) ac_f="$ac_tmp/stdin";;
16587 *) # Look for the file first in the build tree, then in the source tree
16588 # (if the path is not absolute). The absolute path cannot be DOS-style,
16589 # because $ac_f cannot contain `:'.
16590 test -f "$ac_f" ||
16591 case $ac_f in
16592 [\\/$]*) false;;
16593 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16594 esac ||
16595 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16596 esac
16597 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16598 as_fn_append ac_file_inputs " '$ac_f'"
16599 done
16600
16601 # Let's still pretend it is `configure' which instantiates (i.e., don't
16602 # use $as_me), people would be surprised to read:
16603 # /* config.h. Generated by config.status. */
16604 configure_input='Generated from '`
16605 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16606 `' by configure.'
16607 if test x"$ac_file" != x-; then
16608 configure_input="$ac_file. $configure_input"
16609 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16610 $as_echo "$as_me: creating $ac_file" >&6;}
16611 fi
16612 # Neutralize special characters interpreted by sed in replacement strings.
16613 case $configure_input in #(
16614 *\&* | *\|* | *\\* )
16615 ac_sed_conf_input=`$as_echo "$configure_input" |
16616 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16617 *) ac_sed_conf_input=$configure_input;;
16618 esac
16619
16620 case $ac_tag in
16621 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16622 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16623 esac
16624 ;;
16625 esac
16626
16627 ac_dir=`$as_dirname -- "$ac_file" ||
16628 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16629 X"$ac_file" : 'X\(//\)[^/]' \| \
16630 X"$ac_file" : 'X\(//\)$' \| \
16631 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16632 $as_echo X"$ac_file" |
16633 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16634 s//\1/
16635 q
16636 }
16637 /^X\(\/\/\)[^/].*/{
16638 s//\1/
16639 q
16640 }
16641 /^X\(\/\/\)$/{
16642 s//\1/
16643 q
16644 }
16645 /^X\(\/\).*/{
16646 s//\1/
16647 q
16648 }
16649 s/.*/./; q'`
16650 as_dir="$ac_dir"; as_fn_mkdir_p
16651 ac_builddir=.
16652
16653 case "$ac_dir" in
16654 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16655 *)
16656 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16657 # A ".." for each directory in $ac_dir_suffix.
16658 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16659 case $ac_top_builddir_sub in
16660 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16661 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16662 esac ;;
16663 esac
16664 ac_abs_top_builddir=$ac_pwd
16665 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16666 # for backward compatibility:
16667 ac_top_builddir=$ac_top_build_prefix
16668
16669 case $srcdir in
16670 .) # We are building in place.
16671 ac_srcdir=.
16672 ac_top_srcdir=$ac_top_builddir_sub
16673 ac_abs_top_srcdir=$ac_pwd ;;
16674 [\\/]* | ?:[\\/]* ) # Absolute name.
16675 ac_srcdir=$srcdir$ac_dir_suffix;
16676 ac_top_srcdir=$srcdir
16677 ac_abs_top_srcdir=$srcdir ;;
16678 *) # Relative name.
16679 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16680 ac_top_srcdir=$ac_top_build_prefix$srcdir
16681 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16682 esac
16683 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16684
16685
16686 case $ac_mode in
16687 :F)
16688 #
16689 # CONFIG_FILE
16690 #
16691
16692 case $INSTALL in
16693 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16694 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16695 esac
16696 ac_MKDIR_P=$MKDIR_P
16697 case $MKDIR_P in
16698 [\\/$]* | ?:[\\/]* ) ;;
16699 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16700 esac
16701 _ACEOF
16702
16703 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16704 # If the template does not know about datarootdir, expand it.
16705 # FIXME: This hack should be removed a few years after 2.60.
16706 ac_datarootdir_hack=; ac_datarootdir_seen=
16707 ac_sed_dataroot='
16708 /datarootdir/ {
16709 p
16710 q
16711 }
16712 /@datadir@/p
16713 /@docdir@/p
16714 /@infodir@/p
16715 /@localedir@/p
16716 /@mandir@/p'
16717 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16718 *datarootdir*) ac_datarootdir_seen=yes;;
16719 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16721 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16722 _ACEOF
16723 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16724 ac_datarootdir_hack='
16725 s&@datadir@&$datadir&g
16726 s&@docdir@&$docdir&g
16727 s&@infodir@&$infodir&g
16728 s&@localedir@&$localedir&g
16729 s&@mandir@&$mandir&g
16730 s&\\\${datarootdir}&$datarootdir&g' ;;
16731 esac
16732 _ACEOF
16733
16734 # Neutralize VPATH when `$srcdir' = `.'.
16735 # Shell code in configure.ac might set extrasub.
16736 # FIXME: do we really want to maintain this feature?
16737 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16738 ac_sed_extra="$ac_vpsub
16739 $extrasub
16740 _ACEOF
16741 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16742 :t
16743 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16744 s|@configure_input@|$ac_sed_conf_input|;t t
16745 s&@top_builddir@&$ac_top_builddir_sub&;t t
16746 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16747 s&@srcdir@&$ac_srcdir&;t t
16748 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16749 s&@top_srcdir@&$ac_top_srcdir&;t t
16750 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16751 s&@builddir@&$ac_builddir&;t t
16752 s&@abs_builddir@&$ac_abs_builddir&;t t
16753 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16754 s&@INSTALL@&$ac_INSTALL&;t t
16755 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16756 $ac_datarootdir_hack
16757 "
16758 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16759 if $ac_cs_awk_getline; then
16760 $AWK -f "$ac_tmp/subs.awk"
16761 else
16762 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16763 fi \
16764 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16765
16766 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16767 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16768 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16769 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16771 which seems to be undefined. Please make sure it is defined" >&5
16772 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16773 which seems to be undefined. Please make sure it is defined" >&2;}
16774
16775 rm -f "$ac_tmp/stdin"
16776 case $ac_file in
16777 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16778 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16779 esac \
16780 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16781 ;;
16782 :H)
16783 #
16784 # CONFIG_HEADER
16785 #
16786 if test x"$ac_file" != x-; then
16787 {
16788 $as_echo "/* $configure_input */" \
16789 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16790 } >"$ac_tmp/config.h" \
16791 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16792 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16793 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16794 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16795 else
16796 rm -f "$ac_file"
16797 mv "$ac_tmp/config.h" "$ac_file" \
16798 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16799 fi
16800 else
16801 $as_echo "/* $configure_input */" \
16802 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16803 || as_fn_error $? "could not create -" "$LINENO" 5
16804 fi
16805 # Compute "$ac_file"'s index in $config_headers.
16806 _am_arg="$ac_file"
16807 _am_stamp_count=1
16808 for _am_header in $config_headers :; do
16809 case $_am_header in
16810 $_am_arg | $_am_arg:* )
16811 break ;;
16812 * )
16813 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16814 esac
16815 done
16816 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16817 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16818 X"$_am_arg" : 'X\(//\)[^/]' \| \
16819 X"$_am_arg" : 'X\(//\)$' \| \
16820 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16821 $as_echo X"$_am_arg" |
16822 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16823 s//\1/
16824 q
16825 }
16826 /^X\(\/\/\)[^/].*/{
16827 s//\1/
16828 q
16829 }
16830 /^X\(\/\/\)$/{
16831 s//\1/
16832 q
16833 }
16834 /^X\(\/\).*/{
16835 s//\1/
16836 q
16837 }
16838 s/.*/./; q'`/stamp-h$_am_stamp_count
16839 ;;
16840
16841 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16842 $as_echo "$as_me: executing $ac_file commands" >&6;}
16843 ;;
16844 esac
16845
16846
16847 case $ac_file$ac_mode in
16848 "default-1":C)
16849 # Only add multilib support code if we just rebuilt the top-level
16850 # Makefile.
16851 case " $CONFIG_FILES " in
16852 *" Makefile "*)
16853 ac_file=Makefile . ${multi_basedir}/config-ml.in
16854 ;;
16855 esac ;;
16856 "libtool":C)
16857
16858 # See if we are running on zsh, and set the options which allow our
16859 # commands through without removal of \ escapes.
16860 if test -n "${ZSH_VERSION+set}" ; then
16861 setopt NO_GLOB_SUBST
16862 fi
16863
16864 cfgfile="${ofile}T"
16865 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16866 $RM "$cfgfile"
16867
16868 cat <<_LT_EOF >> "$cfgfile"
16869 #! $SHELL
16870
16871 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16872 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16873 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16874 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16875 #
16876 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16877 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16878 # Written by Gordon Matzigkeit, 1996
16879 #
16880 # This file is part of GNU Libtool.
16881 #
16882 # GNU Libtool is free software; you can redistribute it and/or
16883 # modify it under the terms of the GNU General Public License as
16884 # published by the Free Software Foundation; either version 2 of
16885 # the License, or (at your option) any later version.
16886 #
16887 # As a special exception to the GNU General Public License,
16888 # if you distribute this file as part of a program or library that
16889 # is built using GNU Libtool, you may include this file under the
16890 # same distribution terms that you use for the rest of that program.
16891 #
16892 # GNU Libtool is distributed in the hope that it will be useful,
16893 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16894 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16895 # GNU General Public License for more details.
16896 #
16897 # You should have received a copy of the GNU General Public License
16898 # along with GNU Libtool; see the file COPYING. If not, a copy
16899 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16900 # obtained by writing to the Free Software Foundation, Inc.,
16901 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16902
16903
16904 # The names of the tagged configurations supported by this script.
16905 available_tags="D "
16906
16907 # ### BEGIN LIBTOOL CONFIG
16908
16909 # Which release of libtool.m4 was used?
16910 macro_version=$macro_version
16911 macro_revision=$macro_revision
16912
16913 # Whether or not to build shared libraries.
16914 build_libtool_libs=$enable_shared
16915
16916 # Whether or not to build static libraries.
16917 build_old_libs=$enable_static
16918
16919 # What type of objects to build.
16920 pic_mode=$pic_mode
16921
16922 # Whether or not to optimize for fast installation.
16923 fast_install=$enable_fast_install
16924
16925 # Shell to use when invoking shell scripts.
16926 SHELL=$lt_SHELL
16927
16928 # An echo program that protects backslashes.
16929 ECHO=$lt_ECHO
16930
16931 # The host system.
16932 host_alias=$host_alias
16933 host=$host
16934 host_os=$host_os
16935
16936 # The build system.
16937 build_alias=$build_alias
16938 build=$build
16939 build_os=$build_os
16940
16941 # A sed program that does not truncate output.
16942 SED=$lt_SED
16943
16944 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16945 Xsed="\$SED -e 1s/^X//"
16946
16947 # A grep program that handles long lines.
16948 GREP=$lt_GREP
16949
16950 # An ERE matcher.
16951 EGREP=$lt_EGREP
16952
16953 # A literal string matcher.
16954 FGREP=$lt_FGREP
16955
16956 # A BSD- or MS-compatible name lister.
16957 NM=$lt_NM
16958
16959 # Whether we need soft or hard links.
16960 LN_S=$lt_LN_S
16961
16962 # What is the maximum length of a command?
16963 max_cmd_len=$max_cmd_len
16964
16965 # Object file suffix (normally "o").
16966 objext=$ac_objext
16967
16968 # Executable file suffix (normally "").
16969 exeext=$exeext
16970
16971 # whether the shell understands "unset".
16972 lt_unset=$lt_unset
16973
16974 # turn spaces into newlines.
16975 SP2NL=$lt_lt_SP2NL
16976
16977 # turn newlines into spaces.
16978 NL2SP=$lt_lt_NL2SP
16979
16980 # An object symbol dumper.
16981 OBJDUMP=$lt_OBJDUMP
16982
16983 # Method to check whether dependent libraries are shared objects.
16984 deplibs_check_method=$lt_deplibs_check_method
16985
16986 # Command to use when deplibs_check_method == "file_magic".
16987 file_magic_cmd=$lt_file_magic_cmd
16988
16989 # The archiver.
16990 AR=$lt_AR
16991 AR_FLAGS=$lt_AR_FLAGS
16992
16993 # A symbol stripping program.
16994 STRIP=$lt_STRIP
16995
16996 # Commands used to install an old-style archive.
16997 RANLIB=$lt_RANLIB
16998 old_postinstall_cmds=$lt_old_postinstall_cmds
16999 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17000
17001 # Whether to use a lock for old archive extraction.
17002 lock_old_archive_extraction=$lock_old_archive_extraction
17003
17004 # A C compiler.
17005 LTCC=$lt_CC
17006
17007 # LTCC compiler flags.
17008 LTCFLAGS=$lt_CFLAGS
17009
17010 # Take the output of nm and produce a listing of raw symbols and C names.
17011 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17012
17013 # Transform the output of nm in a proper C declaration.
17014 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17015
17016 # Transform the output of nm in a C name address pair.
17017 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17018
17019 # Transform the output of nm in a C name address pair when lib prefix is needed.
17020 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17021
17022 # The name of the directory that contains temporary libtool files.
17023 objdir=$objdir
17024
17025 # Used to examine libraries when file_magic_cmd begins with "file".
17026 MAGIC_CMD=$MAGIC_CMD
17027
17028 # Must we lock files when doing compilation?
17029 need_locks=$lt_need_locks
17030
17031 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17032 DSYMUTIL=$lt_DSYMUTIL
17033
17034 # Tool to change global to local symbols on Mac OS X.
17035 NMEDIT=$lt_NMEDIT
17036
17037 # Tool to manipulate fat objects and archives on Mac OS X.
17038 LIPO=$lt_LIPO
17039
17040 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17041 OTOOL=$lt_OTOOL
17042
17043 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17044 OTOOL64=$lt_OTOOL64
17045
17046 # Old archive suffix (normally "a").
17047 libext=$libext
17048
17049 # Shared library suffix (normally ".so").
17050 shrext_cmds=$lt_shrext_cmds
17051
17052 # The commands to extract the exported symbol list from a shared archive.
17053 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17054
17055 # Variables whose values should be saved in libtool wrapper scripts and
17056 # restored at link time.
17057 variables_saved_for_relink=$lt_variables_saved_for_relink
17058
17059 # Do we need the "lib" prefix for modules?
17060 need_lib_prefix=$need_lib_prefix
17061
17062 # Do we need a version for libraries?
17063 need_version=$need_version
17064
17065 # Library versioning type.
17066 version_type=$version_type
17067
17068 # Shared library runtime path variable.
17069 runpath_var=$runpath_var
17070
17071 # Shared library path variable.
17072 shlibpath_var=$shlibpath_var
17073
17074 # Is shlibpath searched before the hard-coded library search path?
17075 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17076
17077 # Format of library name prefix.
17078 libname_spec=$lt_libname_spec
17079
17080 # List of archive names. First name is the real one, the rest are links.
17081 # The last name is the one that the linker finds with -lNAME
17082 library_names_spec=$lt_library_names_spec
17083
17084 # The coded name of the library, if different from the real name.
17085 soname_spec=$lt_soname_spec
17086
17087 # Permission mode override for installation of shared libraries.
17088 install_override_mode=$lt_install_override_mode
17089
17090 # Command to use after installation of a shared archive.
17091 postinstall_cmds=$lt_postinstall_cmds
17092
17093 # Command to use after uninstallation of a shared archive.
17094 postuninstall_cmds=$lt_postuninstall_cmds
17095
17096 # Commands used to finish a libtool library installation in a directory.
17097 finish_cmds=$lt_finish_cmds
17098
17099 # As "finish_cmds", except a single script fragment to be evaled but
17100 # not shown.
17101 finish_eval=$lt_finish_eval
17102
17103 # Whether we should hardcode library paths into libraries.
17104 hardcode_into_libs=$hardcode_into_libs
17105
17106 # Compile-time system search path for libraries.
17107 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17108
17109 # Run-time system search path for libraries.
17110 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17111
17112 # Whether dlopen is supported.
17113 dlopen_support=$enable_dlopen
17114
17115 # Whether dlopen of programs is supported.
17116 dlopen_self=$enable_dlopen_self
17117
17118 # Whether dlopen of statically linked programs is supported.
17119 dlopen_self_static=$enable_dlopen_self_static
17120
17121 # Commands to strip libraries.
17122 old_striplib=$lt_old_striplib
17123 striplib=$lt_striplib
17124
17125
17126 # The linker used to build libraries.
17127 LD=$lt_LD
17128
17129 # How to create reloadable object files.
17130 reload_flag=$lt_reload_flag
17131 reload_cmds=$lt_reload_cmds
17132
17133 # Commands used to build an old-style archive.
17134 old_archive_cmds=$lt_old_archive_cmds
17135
17136 # A language specific compiler.
17137 CC=$lt_compiler
17138
17139 # Is the compiler the GNU compiler?
17140 with_gcc=$GCC
17141
17142 # Compiler flag to turn off builtin functions.
17143 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17144
17145 # How to pass a linker flag through the compiler.
17146 wl=$lt_lt_prog_compiler_wl
17147
17148 # Additional compiler flags for building library objects.
17149 pic_flag=$lt_lt_prog_compiler_pic
17150
17151 # Compiler flag to prevent dynamic linking.
17152 link_static_flag=$lt_lt_prog_compiler_static
17153
17154 # Does compiler simultaneously support -c and -o options?
17155 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17156
17157 # Whether or not to add -lc for building shared libraries.
17158 build_libtool_need_lc=$archive_cmds_need_lc
17159
17160 # Whether or not to disallow shared libs when runtime libs are static.
17161 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17162
17163 # Compiler flag to allow reflexive dlopens.
17164 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17165
17166 # Compiler flag to generate shared objects directly from archives.
17167 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17168
17169 # Whether the compiler copes with passing no objects directly.
17170 compiler_needs_object=$lt_compiler_needs_object
17171
17172 # Create an old-style archive from a shared archive.
17173 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17174
17175 # Create a temporary old-style archive to link instead of a shared archive.
17176 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17177
17178 # Commands used to build a shared archive.
17179 archive_cmds=$lt_archive_cmds
17180 archive_expsym_cmds=$lt_archive_expsym_cmds
17181
17182 # Commands used to build a loadable module if different from building
17183 # a shared archive.
17184 module_cmds=$lt_module_cmds
17185 module_expsym_cmds=$lt_module_expsym_cmds
17186
17187 # Whether we are building with GNU ld or not.
17188 with_gnu_ld=$lt_with_gnu_ld
17189
17190 # Flag that allows shared libraries with undefined symbols to be built.
17191 allow_undefined_flag=$lt_allow_undefined_flag
17192
17193 # Flag that enforces no undefined symbols.
17194 no_undefined_flag=$lt_no_undefined_flag
17195
17196 # Flag to hardcode \$libdir into a binary during linking.
17197 # This must work even if \$libdir does not exist
17198 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17199
17200 # If ld is used when linking, flag to hardcode \$libdir into a binary
17201 # during linking. This must work even if \$libdir does not exist.
17202 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17203
17204 # Whether we need a single "-rpath" flag with a separated argument.
17205 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17206
17207 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17208 # DIR into the resulting binary.
17209 hardcode_direct=$hardcode_direct
17210
17211 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17212 # DIR into the resulting binary and the resulting library dependency is
17213 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17214 # library is relocated.
17215 hardcode_direct_absolute=$hardcode_direct_absolute
17216
17217 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17218 # into the resulting binary.
17219 hardcode_minus_L=$hardcode_minus_L
17220
17221 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17222 # into the resulting binary.
17223 hardcode_shlibpath_var=$hardcode_shlibpath_var
17224
17225 # Set to "yes" if building a shared library automatically hardcodes DIR
17226 # into the library and all subsequent libraries and executables linked
17227 # against it.
17228 hardcode_automatic=$hardcode_automatic
17229
17230 # Set to yes if linker adds runtime paths of dependent libraries
17231 # to runtime path list.
17232 inherit_rpath=$inherit_rpath
17233
17234 # Whether libtool must link a program against all its dependency libraries.
17235 link_all_deplibs=$link_all_deplibs
17236
17237 # Fix the shell variable \$srcfile for the compiler.
17238 fix_srcfile_path=$lt_fix_srcfile_path
17239
17240 # Set to "yes" if exported symbols are required.
17241 always_export_symbols=$always_export_symbols
17242
17243 # The commands to list exported symbols.
17244 export_symbols_cmds=$lt_export_symbols_cmds
17245
17246 # Symbols that should not be listed in the preloaded symbols.
17247 exclude_expsyms=$lt_exclude_expsyms
17248
17249 # Symbols that must always be exported.
17250 include_expsyms=$lt_include_expsyms
17251
17252 # Commands necessary for linking programs (against libraries) with templates.
17253 prelink_cmds=$lt_prelink_cmds
17254
17255 # Specify filename containing input files.
17256 file_list_spec=$lt_file_list_spec
17257
17258 # How to hardcode a shared library path into an executable.
17259 hardcode_action=$hardcode_action
17260
17261 # ### END LIBTOOL CONFIG
17262
17263 _LT_EOF
17264
17265 case $host_os in
17266 aix3*)
17267 cat <<\_LT_EOF >> "$cfgfile"
17268 # AIX sometimes has problems with the GCC collect2 program. For some
17269 # reason, if we set the COLLECT_NAMES environment variable, the problems
17270 # vanish in a puff of smoke.
17271 if test "X${COLLECT_NAMES+set}" != Xset; then
17272 COLLECT_NAMES=
17273 export COLLECT_NAMES
17274 fi
17275 _LT_EOF
17276 ;;
17277 esac
17278
17279
17280 ltmain="$ac_aux_dir/ltmain.sh"
17281
17282
17283 # We use sed instead of cat because bash on DJGPP gets confused if
17284 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17285 # text mode, it properly converts lines to CR/LF. This bash problem
17286 # is reportedly fixed, but why not run on old versions too?
17287 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17288 || (rm -f "$cfgfile"; exit 1)
17289
17290 case $xsi_shell in
17291 yes)
17292 cat << \_LT_EOF >> "$cfgfile"
17293
17294 # func_dirname file append nondir_replacement
17295 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17296 # otherwise set result to NONDIR_REPLACEMENT.
17297 func_dirname ()
17298 {
17299 case ${1} in
17300 */*) func_dirname_result="${1%/*}${2}" ;;
17301 * ) func_dirname_result="${3}" ;;
17302 esac
17303 }
17304
17305 # func_basename file
17306 func_basename ()
17307 {
17308 func_basename_result="${1##*/}"
17309 }
17310
17311 # func_dirname_and_basename file append nondir_replacement
17312 # perform func_basename and func_dirname in a single function
17313 # call:
17314 # dirname: Compute the dirname of FILE. If nonempty,
17315 # add APPEND to the result, otherwise set result
17316 # to NONDIR_REPLACEMENT.
17317 # value returned in "$func_dirname_result"
17318 # basename: Compute filename of FILE.
17319 # value retuned in "$func_basename_result"
17320 # Implementation must be kept synchronized with func_dirname
17321 # and func_basename. For efficiency, we do not delegate to
17322 # those functions but instead duplicate the functionality here.
17323 func_dirname_and_basename ()
17324 {
17325 case ${1} in
17326 */*) func_dirname_result="${1%/*}${2}" ;;
17327 * ) func_dirname_result="${3}" ;;
17328 esac
17329 func_basename_result="${1##*/}"
17330 }
17331
17332 # func_stripname prefix suffix name
17333 # strip PREFIX and SUFFIX off of NAME.
17334 # PREFIX and SUFFIX must not contain globbing or regex special
17335 # characters, hashes, percent signs, but SUFFIX may contain a leading
17336 # dot (in which case that matches only a dot).
17337 func_stripname ()
17338 {
17339 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17340 # positional parameters, so assign one to ordinary parameter first.
17341 func_stripname_result=${3}
17342 func_stripname_result=${func_stripname_result#"${1}"}
17343 func_stripname_result=${func_stripname_result%"${2}"}
17344 }
17345
17346 # func_opt_split
17347 func_opt_split ()
17348 {
17349 func_opt_split_opt=${1%%=*}
17350 func_opt_split_arg=${1#*=}
17351 }
17352
17353 # func_lo2o object
17354 func_lo2o ()
17355 {
17356 case ${1} in
17357 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17358 *) func_lo2o_result=${1} ;;
17359 esac
17360 }
17361
17362 # func_xform libobj-or-source
17363 func_xform ()
17364 {
17365 func_xform_result=${1%.*}.lo
17366 }
17367
17368 # func_arith arithmetic-term...
17369 func_arith ()
17370 {
17371 func_arith_result=$(( $* ))
17372 }
17373
17374 # func_len string
17375 # STRING may not start with a hyphen.
17376 func_len ()
17377 {
17378 func_len_result=${#1}
17379 }
17380
17381 _LT_EOF
17382 ;;
17383 *) # Bourne compatible functions.
17384 cat << \_LT_EOF >> "$cfgfile"
17385
17386 # func_dirname file append nondir_replacement
17387 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17388 # otherwise set result to NONDIR_REPLACEMENT.
17389 func_dirname ()
17390 {
17391 # Extract subdirectory from the argument.
17392 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17393 if test "X$func_dirname_result" = "X${1}"; then
17394 func_dirname_result="${3}"
17395 else
17396 func_dirname_result="$func_dirname_result${2}"
17397 fi
17398 }
17399
17400 # func_basename file
17401 func_basename ()
17402 {
17403 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17404 }
17405
17406
17407 # func_stripname prefix suffix name
17408 # strip PREFIX and SUFFIX off of NAME.
17409 # PREFIX and SUFFIX must not contain globbing or regex special
17410 # characters, hashes, percent signs, but SUFFIX may contain a leading
17411 # dot (in which case that matches only a dot).
17412 # func_strip_suffix prefix name
17413 func_stripname ()
17414 {
17415 case ${2} in
17416 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17417 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17418 esac
17419 }
17420
17421 # sed scripts:
17422 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17423 my_sed_long_arg='1s/^-[^=]*=//'
17424
17425 # func_opt_split
17426 func_opt_split ()
17427 {
17428 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17429 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17430 }
17431
17432 # func_lo2o object
17433 func_lo2o ()
17434 {
17435 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17436 }
17437
17438 # func_xform libobj-or-source
17439 func_xform ()
17440 {
17441 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17442 }
17443
17444 # func_arith arithmetic-term...
17445 func_arith ()
17446 {
17447 func_arith_result=`expr "$@"`
17448 }
17449
17450 # func_len string
17451 # STRING may not start with a hyphen.
17452 func_len ()
17453 {
17454 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17455 }
17456
17457 _LT_EOF
17458 esac
17459
17460 case $lt_shell_append in
17461 yes)
17462 cat << \_LT_EOF >> "$cfgfile"
17463
17464 # func_append var value
17465 # Append VALUE to the end of shell variable VAR.
17466 func_append ()
17467 {
17468 eval "$1+=\$2"
17469 }
17470 _LT_EOF
17471 ;;
17472 *)
17473 cat << \_LT_EOF >> "$cfgfile"
17474
17475 # func_append var value
17476 # Append VALUE to the end of shell variable VAR.
17477 func_append ()
17478 {
17479 eval "$1=\$$1\$2"
17480 }
17481
17482 _LT_EOF
17483 ;;
17484 esac
17485
17486
17487 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17488 || (rm -f "$cfgfile"; exit 1)
17489
17490 mv -f "$cfgfile" "$ofile" ||
17491 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17492 chmod +x "$ofile"
17493
17494
17495 cat <<_LT_EOF >> "$ofile"
17496
17497 # ### BEGIN LIBTOOL TAG CONFIG: D
17498
17499 # The linker used to build libraries.
17500 LD=$lt_LD_D
17501
17502 # How to create reloadable object files.
17503 reload_flag=$lt_reload_flag_D
17504 reload_cmds=$lt_reload_cmds_D
17505
17506 # Commands used to build an old-style archive.
17507 old_archive_cmds=$lt_old_archive_cmds_D
17508
17509 # A language specific compiler.
17510 CC=$lt_compiler_D
17511
17512 # Is the compiler the GNU compiler?
17513 with_gcc=$GCC_D
17514
17515 # Compiler flag to turn off builtin functions.
17516 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_D
17517
17518 # How to pass a linker flag through the compiler.
17519 wl=$lt_lt_prog_compiler_wl_D
17520
17521 # Additional compiler flags for building library objects.
17522 pic_flag=$lt_lt_prog_compiler_pic_D
17523
17524 # Compiler flag to prevent dynamic linking.
17525 link_static_flag=$lt_lt_prog_compiler_static_D
17526
17527 # Does compiler simultaneously support -c and -o options?
17528 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_D
17529
17530 # Whether or not to add -lc for building shared libraries.
17531 build_libtool_need_lc=$archive_cmds_need_lc_D
17532
17533 # Whether or not to disallow shared libs when runtime libs are static.
17534 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_D
17535
17536 # Compiler flag to allow reflexive dlopens.
17537 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_D
17538
17539 # Compiler flag to generate shared objects directly from archives.
17540 whole_archive_flag_spec=$lt_whole_archive_flag_spec_D
17541
17542 # Whether the compiler copes with passing no objects directly.
17543 compiler_needs_object=$lt_compiler_needs_object_D
17544
17545 # Create an old-style archive from a shared archive.
17546 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_D
17547
17548 # Create a temporary old-style archive to link instead of a shared archive.
17549 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_D
17550
17551 # Commands used to build a shared archive.
17552 archive_cmds=$lt_archive_cmds_D
17553 archive_expsym_cmds=$lt_archive_expsym_cmds_D
17554
17555 # Commands used to build a loadable module if different from building
17556 # a shared archive.
17557 module_cmds=$lt_module_cmds_D
17558 module_expsym_cmds=$lt_module_expsym_cmds_D
17559
17560 # Whether we are building with GNU ld or not.
17561 with_gnu_ld=$lt_with_gnu_ld_D
17562
17563 # Flag that allows shared libraries with undefined symbols to be built.
17564 allow_undefined_flag=$lt_allow_undefined_flag_D
17565
17566 # Flag that enforces no undefined symbols.
17567 no_undefined_flag=$lt_no_undefined_flag_D
17568
17569 # Flag to hardcode \$libdir into a binary during linking.
17570 # This must work even if \$libdir does not exist
17571 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_D
17572
17573 # If ld is used when linking, flag to hardcode \$libdir into a binary
17574 # during linking. This must work even if \$libdir does not exist.
17575 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_D
17576
17577 # Whether we need a single "-rpath" flag with a separated argument.
17578 hardcode_libdir_separator=$lt_hardcode_libdir_separator_D
17579
17580 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17581 # DIR into the resulting binary.
17582 hardcode_direct=$hardcode_direct_D
17583
17584 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17585 # DIR into the resulting binary and the resulting library dependency is
17586 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17587 # library is relocated.
17588 hardcode_direct_absolute=$hardcode_direct_absolute_D
17589
17590 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17591 # into the resulting binary.
17592 hardcode_minus_L=$hardcode_minus_L_D
17593
17594 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17595 # into the resulting binary.
17596 hardcode_shlibpath_var=$hardcode_shlibpath_var_D
17597
17598 # Set to "yes" if building a shared library automatically hardcodes DIR
17599 # into the library and all subsequent libraries and executables linked
17600 # against it.
17601 hardcode_automatic=$hardcode_automatic_D
17602
17603 # Set to yes if linker adds runtime paths of dependent libraries
17604 # to runtime path list.
17605 inherit_rpath=$inherit_rpath_D
17606
17607 # Whether libtool must link a program against all its dependency libraries.
17608 link_all_deplibs=$link_all_deplibs_D
17609
17610 # Fix the shell variable \$srcfile for the compiler.
17611 fix_srcfile_path=$lt_fix_srcfile_path_D
17612
17613 # Set to "yes" if exported symbols are required.
17614 always_export_symbols=$always_export_symbols_D
17615
17616 # The commands to list exported symbols.
17617 export_symbols_cmds=$lt_export_symbols_cmds_D
17618
17619 # Symbols that should not be listed in the preloaded symbols.
17620 exclude_expsyms=$lt_exclude_expsyms_D
17621
17622 # Symbols that must always be exported.
17623 include_expsyms=$lt_include_expsyms_D
17624
17625 # Commands necessary for linking programs (against libraries) with templates.
17626 prelink_cmds=$lt_prelink_cmds_D
17627
17628 # Specify filename containing input files.
17629 file_list_spec=$lt_file_list_spec_D
17630
17631 # How to hardcode a shared library path into an executable.
17632 hardcode_action=$hardcode_action_D
17633
17634 # ### END LIBTOOL TAG CONFIG: D
17635 _LT_EOF
17636
17637 ;;
17638 "testsuite/testsuite_flags":F) chmod +x testsuite/testsuite_flags ;;
17639 "libdruntime/Makefile":F) cat > vpsed$$ << \_EOF
17640 s!`test -f '$<' || echo '$(srcdir)/'`!!
17641 _EOF
17642 sed -f vpsed$$ $ac_file > tmp$$
17643 mv tmp$$ $ac_file
17644 rm vpsed$$
17645 echo 'MULTISUBDIR =' >> $ac_file
17646 ml_norecursion=yes
17647 . ${multi_basedir}/config-ml.in
17648 { ml_norecursion=; unset ml_norecursion;}
17649 ;;
17650 "src/Makefile":F) cat > vpsed$$ << \_EOF
17651 s!`test -f '$<' || echo '$(srcdir)/'`!!
17652 _EOF
17653 sed -f vpsed$$ $ac_file > tmp$$
17654 mv tmp$$ $ac_file
17655 rm vpsed$$
17656 echo 'MULTISUBDIR =' >> $ac_file
17657 ml_norecursion=yes
17658 . ${multi_basedir}/config-ml.in
17659 { ml_norecursion=; unset ml_norecursion;}
17660 ;;
17661 "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
17662 s!`test -f '$<' || echo '$(srcdir)/'`!!
17663 _EOF
17664 sed -f vpsed$$ $ac_file > tmp$$
17665 mv tmp$$ $ac_file
17666 rm vpsed$$
17667 echo 'MULTISUBDIR =' >> $ac_file
17668 ml_norecursion=yes
17669 . ${multi_basedir}/config-ml.in
17670 { ml_norecursion=; unset ml_norecursion;}
17671 ;;
17672
17673 esac
17674 done # for ac_tag
17675
17676
17677 as_fn_exit 0
17678 _ACEOF
17679 ac_clean_files=$ac_clean_files_save
17680
17681 test $ac_write_fail = 0 ||
17682 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17683
17684
17685 # configure is writing to config.log, and then calls config.status.
17686 # config.status does its own redirection, appending to config.log.
17687 # Unfortunately, on DOS this fails, as config.log is still kept open
17688 # by configure, so config.status won't be able to write to it; its
17689 # output is simply discarded. So we exec the FD to /dev/null,
17690 # effectively closing config.log, so it can be properly (re)opened and
17691 # appended to by config.status. When coming back to configure, we
17692 # need to make the FD available again.
17693 if test "$no_create" != yes; then
17694 ac_cs_success=:
17695 ac_config_status_args=
17696 test "$silent" = yes &&
17697 ac_config_status_args="$ac_config_status_args --quiet"
17698 exec 5>/dev/null
17699 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17700 exec 5>>config.log
17701 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17702 # would make configure fail if this is the last instruction.
17703 $ac_cs_success || as_fn_exit 1
17704 fi
17705 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17707 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17708 fi
17709