configure revision 1.1.1.1.4.2 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for mpc 1.0.1.
4 #
5 # Report bugs to <mpc-discuss (at] lists.gforge.inria.fr>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
278 $0: mpc-discuss (at] lists.gforge.inria.fr about your system,
279 $0: including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
282 fi
283 exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301 { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310 return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520 *)
521 ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545 else
546 as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='mpc'
592 PACKAGE_TARNAME='mpc'
593 PACKAGE_VERSION='1.0.1'
594 PACKAGE_STRING='mpc 1.0.1'
595 PACKAGE_BUGREPORT='mpc-discuss (at] lists.gforge.inria.fr'
596 PACKAGE_URL=''
597
598 ac_unique_file="src/mpc-impl.h"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 # include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 SVNVERSION
639 HASSVNVERSION
640 GCC_VERSION
641 AS
642 MPC_LDFLAGS
643 MPC_LOG_H
644 LIBOBJS
645 CPP
646 OTOOL64
647 OTOOL
648 LIPO
649 NMEDIT
650 DSYMUTIL
651 MANIFEST_TOOL
652 RANLIB
653 DLLTOOL
654 OBJDUMP
655 LN_S
656 NM
657 ac_ct_DUMPBIN
658 DUMPBIN
659 LD
660 FGREP
661 LIBTOOL
662 ac_ct_AR
663 AR
664 am__fastdepCC_FALSE
665 am__fastdepCC_TRUE
666 CCDEPMODE
667 am__nodep
668 AMDEPBACKSLASH
669 AMDEP_FALSE
670 AMDEP_TRUE
671 am__quote
672 am__include
673 DEPDIR
674 OBJEXT
675 EXEEXT
676 ac_ct_CC
677 CPPFLAGS
678 LDFLAGS
679 CFLAGS
680 CC
681 SED
682 EGREP
683 GREP
684 VALGRIND
685 host_os
686 host_vendor
687 host_cpu
688 host
689 build_os
690 build_vendor
691 build_cpu
692 build
693 MAINT
694 MAINTAINER_MODE_FALSE
695 MAINTAINER_MODE_TRUE
696 am__untar
697 am__tar
698 AMTAR
699 am__leading_dot
700 SET_MAKE
701 AWK
702 mkdir_p
703 MKDIR_P
704 INSTALL_STRIP_PROGRAM
705 STRIP
706 install_sh
707 MAKEINFO
708 AUTOHEADER
709 AUTOMAKE
710 AUTOCONF
711 ACLOCAL
712 VERSION
713 PACKAGE
714 CYGPATH_W
715 am__isrc
716 INSTALL_DATA
717 INSTALL_SCRIPT
718 INSTALL_PROGRAM
719 target_alias
720 host_alias
721 build_alias
722 LIBS
723 ECHO_T
724 ECHO_N
725 ECHO_C
726 DEFS
727 mandir
728 localedir
729 libdir
730 psdir
731 pdfdir
732 dvidir
733 htmldir
734 infodir
735 docdir
736 oldincludedir
737 includedir
738 localstatedir
739 sharedstatedir
740 sysconfdir
741 datadir
742 datarootdir
743 libexecdir
744 sbindir
745 bindir
746 program_transform_name
747 prefix
748 exec_prefix
749 PACKAGE_URL
750 PACKAGE_BUGREPORT
751 PACKAGE_STRING
752 PACKAGE_VERSION
753 PACKAGE_TARNAME
754 PACKAGE_NAME
755 PATH_SEPARATOR
756 SHELL'
757 ac_subst_files=''
758 ac_user_opts='
759 enable_option_checking
760 enable_maintainer_mode
761 with_mpfr_include
762 with_mpfr_lib
763 with_mpfr
764 with_gmp_include
765 with_gmp_lib
766 with_gmp
767 enable_logging
768 enable_valgrind_tests
769 enable_dependency_tracking
770 enable_shared
771 enable_static
772 with_pic
773 enable_fast_install
774 with_gnu_ld
775 with_sysroot
776 enable_libtool_lock
777 '
778 ac_precious_vars='build_alias
779 host_alias
780 target_alias
781 CC
782 CFLAGS
783 LDFLAGS
784 LIBS
785 CPPFLAGS
786 CPP'
787
788
789 # Initialize some variables set by options.
790 ac_init_help=
791 ac_init_version=false
792 ac_unrecognized_opts=
793 ac_unrecognized_sep=
794 # The variables have the same names as the options, with
795 # dashes changed to underlines.
796 cache_file=/dev/null
797 exec_prefix=NONE
798 no_create=
799 no_recursion=
800 prefix=NONE
801 program_prefix=NONE
802 program_suffix=NONE
803 program_transform_name=s,x,x,
804 silent=
805 site=
806 srcdir=
807 verbose=
808 x_includes=NONE
809 x_libraries=NONE
810
811 # Installation directory options.
812 # These are left unexpanded so users can "make install exec_prefix=/foo"
813 # and all the variables that are supposed to be based on exec_prefix
814 # by default will actually change.
815 # Use braces instead of parens because sh, perl, etc. also accept them.
816 # (The list follows the same order as the GNU Coding Standards.)
817 bindir='${exec_prefix}/bin'
818 sbindir='${exec_prefix}/sbin'
819 libexecdir='${exec_prefix}/libexec'
820 datarootdir='${prefix}/share'
821 datadir='${datarootdir}'
822 sysconfdir='${prefix}/etc'
823 sharedstatedir='${prefix}/com'
824 localstatedir='${prefix}/var'
825 includedir='${prefix}/include'
826 oldincludedir='/usr/include'
827 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
828 infodir='${datarootdir}/info'
829 htmldir='${docdir}'
830 dvidir='${docdir}'
831 pdfdir='${docdir}'
832 psdir='${docdir}'
833 libdir='${exec_prefix}/lib'
834 localedir='${datarootdir}/locale'
835 mandir='${datarootdir}/man'
836
837 ac_prev=
838 ac_dashdash=
839 for ac_option
840 do
841 # If the previous option needs an argument, assign it.
842 if test -n "$ac_prev"; then
843 eval $ac_prev=\$ac_option
844 ac_prev=
845 continue
846 fi
847
848 case $ac_option in
849 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
850 *=) ac_optarg= ;;
851 *) ac_optarg=yes ;;
852 esac
853
854 # Accept the important Cygnus configure options, so we can diagnose typos.
855
856 case $ac_dashdash$ac_option in
857 --)
858 ac_dashdash=yes ;;
859
860 -bindir | --bindir | --bindi | --bind | --bin | --bi)
861 ac_prev=bindir ;;
862 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
863 bindir=$ac_optarg ;;
864
865 -build | --build | --buil | --bui | --bu)
866 ac_prev=build_alias ;;
867 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
868 build_alias=$ac_optarg ;;
869
870 -cache-file | --cache-file | --cache-fil | --cache-fi \
871 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
872 ac_prev=cache_file ;;
873 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
874 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
875 cache_file=$ac_optarg ;;
876
877 --config-cache | -C)
878 cache_file=config.cache ;;
879
880 -datadir | --datadir | --datadi | --datad)
881 ac_prev=datadir ;;
882 -datadir=* | --datadir=* | --datadi=* | --datad=*)
883 datadir=$ac_optarg ;;
884
885 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
886 | --dataroo | --dataro | --datar)
887 ac_prev=datarootdir ;;
888 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
889 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
890 datarootdir=$ac_optarg ;;
891
892 -disable-* | --disable-*)
893 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
894 # Reject names that are not valid shell variable names.
895 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
896 as_fn_error $? "invalid feature name: $ac_useropt"
897 ac_useropt_orig=$ac_useropt
898 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
899 case $ac_user_opts in
900 *"
901 "enable_$ac_useropt"
902 "*) ;;
903 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
904 ac_unrecognized_sep=', ';;
905 esac
906 eval enable_$ac_useropt=no ;;
907
908 -docdir | --docdir | --docdi | --doc | --do)
909 ac_prev=docdir ;;
910 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
911 docdir=$ac_optarg ;;
912
913 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
914 ac_prev=dvidir ;;
915 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
916 dvidir=$ac_optarg ;;
917
918 -enable-* | --enable-*)
919 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
920 # Reject names that are not valid shell variable names.
921 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
922 as_fn_error $? "invalid feature name: $ac_useropt"
923 ac_useropt_orig=$ac_useropt
924 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925 case $ac_user_opts in
926 *"
927 "enable_$ac_useropt"
928 "*) ;;
929 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
930 ac_unrecognized_sep=', ';;
931 esac
932 eval enable_$ac_useropt=\$ac_optarg ;;
933
934 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
935 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
936 | --exec | --exe | --ex)
937 ac_prev=exec_prefix ;;
938 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
939 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
940 | --exec=* | --exe=* | --ex=*)
941 exec_prefix=$ac_optarg ;;
942
943 -gas | --gas | --ga | --g)
944 # Obsolete; use --with-gas.
945 with_gas=yes ;;
946
947 -help | --help | --hel | --he | -h)
948 ac_init_help=long ;;
949 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
950 ac_init_help=recursive ;;
951 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
952 ac_init_help=short ;;
953
954 -host | --host | --hos | --ho)
955 ac_prev=host_alias ;;
956 -host=* | --host=* | --hos=* | --ho=*)
957 host_alias=$ac_optarg ;;
958
959 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
960 ac_prev=htmldir ;;
961 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
962 | --ht=*)
963 htmldir=$ac_optarg ;;
964
965 -includedir | --includedir | --includedi | --included | --include \
966 | --includ | --inclu | --incl | --inc)
967 ac_prev=includedir ;;
968 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
969 | --includ=* | --inclu=* | --incl=* | --inc=*)
970 includedir=$ac_optarg ;;
971
972 -infodir | --infodir | --infodi | --infod | --info | --inf)
973 ac_prev=infodir ;;
974 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
975 infodir=$ac_optarg ;;
976
977 -libdir | --libdir | --libdi | --libd)
978 ac_prev=libdir ;;
979 -libdir=* | --libdir=* | --libdi=* | --libd=*)
980 libdir=$ac_optarg ;;
981
982 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
983 | --libexe | --libex | --libe)
984 ac_prev=libexecdir ;;
985 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
986 | --libexe=* | --libex=* | --libe=*)
987 libexecdir=$ac_optarg ;;
988
989 -localedir | --localedir | --localedi | --localed | --locale)
990 ac_prev=localedir ;;
991 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
992 localedir=$ac_optarg ;;
993
994 -localstatedir | --localstatedir | --localstatedi | --localstated \
995 | --localstate | --localstat | --localsta | --localst | --locals)
996 ac_prev=localstatedir ;;
997 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
998 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
999 localstatedir=$ac_optarg ;;
1000
1001 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1002 ac_prev=mandir ;;
1003 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1004 mandir=$ac_optarg ;;
1005
1006 -nfp | --nfp | --nf)
1007 # Obsolete; use --without-fp.
1008 with_fp=no ;;
1009
1010 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1011 | --no-cr | --no-c | -n)
1012 no_create=yes ;;
1013
1014 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1015 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1016 no_recursion=yes ;;
1017
1018 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1019 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1020 | --oldin | --oldi | --old | --ol | --o)
1021 ac_prev=oldincludedir ;;
1022 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1023 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1024 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1025 oldincludedir=$ac_optarg ;;
1026
1027 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1028 ac_prev=prefix ;;
1029 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1030 prefix=$ac_optarg ;;
1031
1032 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1033 | --program-pre | --program-pr | --program-p)
1034 ac_prev=program_prefix ;;
1035 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1036 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1037 program_prefix=$ac_optarg ;;
1038
1039 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1040 | --program-suf | --program-su | --program-s)
1041 ac_prev=program_suffix ;;
1042 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1043 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1044 program_suffix=$ac_optarg ;;
1045
1046 -program-transform-name | --program-transform-name \
1047 | --program-transform-nam | --program-transform-na \
1048 | --program-transform-n | --program-transform- \
1049 | --program-transform | --program-transfor \
1050 | --program-transfo | --program-transf \
1051 | --program-trans | --program-tran \
1052 | --progr-tra | --program-tr | --program-t)
1053 ac_prev=program_transform_name ;;
1054 -program-transform-name=* | --program-transform-name=* \
1055 | --program-transform-nam=* | --program-transform-na=* \
1056 | --program-transform-n=* | --program-transform-=* \
1057 | --program-transform=* | --program-transfor=* \
1058 | --program-transfo=* | --program-transf=* \
1059 | --program-trans=* | --program-tran=* \
1060 | --progr-tra=* | --program-tr=* | --program-t=*)
1061 program_transform_name=$ac_optarg ;;
1062
1063 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1064 ac_prev=pdfdir ;;
1065 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1066 pdfdir=$ac_optarg ;;
1067
1068 -psdir | --psdir | --psdi | --psd | --ps)
1069 ac_prev=psdir ;;
1070 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1071 psdir=$ac_optarg ;;
1072
1073 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074 | -silent | --silent | --silen | --sile | --sil)
1075 silent=yes ;;
1076
1077 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1078 ac_prev=sbindir ;;
1079 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1080 | --sbi=* | --sb=*)
1081 sbindir=$ac_optarg ;;
1082
1083 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1084 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1085 | --sharedst | --shareds | --shared | --share | --shar \
1086 | --sha | --sh)
1087 ac_prev=sharedstatedir ;;
1088 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1089 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1090 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1091 | --sha=* | --sh=*)
1092 sharedstatedir=$ac_optarg ;;
1093
1094 -site | --site | --sit)
1095 ac_prev=site ;;
1096 -site=* | --site=* | --sit=*)
1097 site=$ac_optarg ;;
1098
1099 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1100 ac_prev=srcdir ;;
1101 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1102 srcdir=$ac_optarg ;;
1103
1104 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1105 | --syscon | --sysco | --sysc | --sys | --sy)
1106 ac_prev=sysconfdir ;;
1107 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1108 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1109 sysconfdir=$ac_optarg ;;
1110
1111 -target | --target | --targe | --targ | --tar | --ta | --t)
1112 ac_prev=target_alias ;;
1113 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1114 target_alias=$ac_optarg ;;
1115
1116 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1117 verbose=yes ;;
1118
1119 -version | --version | --versio | --versi | --vers | -V)
1120 ac_init_version=: ;;
1121
1122 -with-* | --with-*)
1123 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1124 # Reject names that are not valid shell variable names.
1125 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126 as_fn_error $? "invalid package name: $ac_useropt"
1127 ac_useropt_orig=$ac_useropt
1128 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129 case $ac_user_opts in
1130 *"
1131 "with_$ac_useropt"
1132 "*) ;;
1133 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1134 ac_unrecognized_sep=', ';;
1135 esac
1136 eval with_$ac_useropt=\$ac_optarg ;;
1137
1138 -without-* | --without-*)
1139 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1140 # Reject names that are not valid shell variable names.
1141 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142 as_fn_error $? "invalid package name: $ac_useropt"
1143 ac_useropt_orig=$ac_useropt
1144 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145 case $ac_user_opts in
1146 *"
1147 "with_$ac_useropt"
1148 "*) ;;
1149 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1150 ac_unrecognized_sep=', ';;
1151 esac
1152 eval with_$ac_useropt=no ;;
1153
1154 --x)
1155 # Obsolete; use --with-x.
1156 with_x=yes ;;
1157
1158 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1159 | --x-incl | --x-inc | --x-in | --x-i)
1160 ac_prev=x_includes ;;
1161 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1162 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1163 x_includes=$ac_optarg ;;
1164
1165 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1166 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1167 ac_prev=x_libraries ;;
1168 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1169 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1170 x_libraries=$ac_optarg ;;
1171
1172 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1173 Try \`$0 --help' for more information"
1174 ;;
1175
1176 *=*)
1177 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178 # Reject names that are not valid shell variable names.
1179 case $ac_envvar in #(
1180 '' | [0-9]* | *[!_$as_cr_alnum]* )
1181 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1182 esac
1183 eval $ac_envvar=\$ac_optarg
1184 export $ac_envvar ;;
1185
1186 *)
1187 # FIXME: should be removed in autoconf 3.0.
1188 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1189 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1190 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1191 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1192 ;;
1193
1194 esac
1195 done
1196
1197 if test -n "$ac_prev"; then
1198 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1199 as_fn_error $? "missing argument to $ac_option"
1200 fi
1201
1202 if test -n "$ac_unrecognized_opts"; then
1203 case $enable_option_checking in
1204 no) ;;
1205 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1206 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1207 esac
1208 fi
1209
1210 # Check all directory arguments for consistency.
1211 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1212 datadir sysconfdir sharedstatedir localstatedir includedir \
1213 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1214 libdir localedir mandir
1215 do
1216 eval ac_val=\$$ac_var
1217 # Remove trailing slashes.
1218 case $ac_val in
1219 */ )
1220 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1221 eval $ac_var=\$ac_val;;
1222 esac
1223 # Be sure to have absolute directory names.
1224 case $ac_val in
1225 [\\/$]* | ?:[\\/]* ) continue;;
1226 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1227 esac
1228 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1229 done
1230
1231 # There might be people who depend on the old broken behavior: `$host'
1232 # used to hold the argument of --host etc.
1233 # FIXME: To remove some day.
1234 build=$build_alias
1235 host=$host_alias
1236 target=$target_alias
1237
1238 # FIXME: To remove some day.
1239 if test "x$host_alias" != x; then
1240 if test "x$build_alias" = x; then
1241 cross_compiling=maybe
1242 elif test "x$build_alias" != "x$host_alias"; then
1243 cross_compiling=yes
1244 fi
1245 fi
1246
1247 ac_tool_prefix=
1248 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1249
1250 test "$silent" = yes && exec 6>/dev/null
1251
1252
1253 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1254 ac_ls_di=`ls -di .` &&
1255 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1256 as_fn_error $? "working directory cannot be determined"
1257 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1258 as_fn_error $? "pwd does not report name of working directory"
1259
1260
1261 # Find the source files, if location was not specified.
1262 if test -z "$srcdir"; then
1263 ac_srcdir_defaulted=yes
1264 # Try the directory containing this script, then the parent directory.
1265 ac_confdir=`$as_dirname -- "$as_myself" ||
1266 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1267 X"$as_myself" : 'X\(//\)[^/]' \| \
1268 X"$as_myself" : 'X\(//\)$' \| \
1269 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1270 $as_echo X"$as_myself" |
1271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1272 s//\1/
1273 q
1274 }
1275 /^X\(\/\/\)[^/].*/{
1276 s//\1/
1277 q
1278 }
1279 /^X\(\/\/\)$/{
1280 s//\1/
1281 q
1282 }
1283 /^X\(\/\).*/{
1284 s//\1/
1285 q
1286 }
1287 s/.*/./; q'`
1288 srcdir=$ac_confdir
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1290 srcdir=..
1291 fi
1292 else
1293 ac_srcdir_defaulted=no
1294 fi
1295 if test ! -r "$srcdir/$ac_unique_file"; then
1296 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1297 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1298 fi
1299 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1300 ac_abs_confdir=`(
1301 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1302 pwd)`
1303 # When building in place, set srcdir=.
1304 if test "$ac_abs_confdir" = "$ac_pwd"; then
1305 srcdir=.
1306 fi
1307 # Remove unnecessary trailing slashes from srcdir.
1308 # Double slashes in file names in object file debugging info
1309 # mess up M-x gdb in Emacs.
1310 case $srcdir in
1311 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1312 esac
1313 for ac_var in $ac_precious_vars; do
1314 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1315 eval ac_env_${ac_var}_value=\$${ac_var}
1316 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1317 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1318 done
1319
1320 #
1321 # Report the --help message.
1322 #
1323 if test "$ac_init_help" = "long"; then
1324 # Omit some internal or obsolete options to make the list less imposing.
1325 # This message is too long to be a string in the A/UX 3.1 sh.
1326 cat <<_ACEOF
1327 \`configure' configures mpc 1.0.1 to adapt to many kinds of systems.
1328
1329 Usage: $0 [OPTION]... [VAR=VALUE]...
1330
1331 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1332 VAR=VALUE. See below for descriptions of some of the useful variables.
1333
1334 Defaults for the options are specified in brackets.
1335
1336 Configuration:
1337 -h, --help display this help and exit
1338 --help=short display options specific to this package
1339 --help=recursive display the short help of all the included packages
1340 -V, --version display version information and exit
1341 -q, --quiet, --silent do not print \`checking ...' messages
1342 --cache-file=FILE cache test results in FILE [disabled]
1343 -C, --config-cache alias for \`--cache-file=config.cache'
1344 -n, --no-create do not create output files
1345 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1346
1347 Installation directories:
1348 --prefix=PREFIX install architecture-independent files in PREFIX
1349 [$ac_default_prefix]
1350 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1351 [PREFIX]
1352
1353 By default, \`make install' will install all the files in
1354 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1355 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1356 for instance \`--prefix=\$HOME'.
1357
1358 For better control, use the options below.
1359
1360 Fine tuning of the installation directories:
1361 --bindir=DIR user executables [EPREFIX/bin]
1362 --sbindir=DIR system admin executables [EPREFIX/sbin]
1363 --libexecdir=DIR program executables [EPREFIX/libexec]
1364 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1365 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1366 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1367 --libdir=DIR object code libraries [EPREFIX/lib]
1368 --includedir=DIR C header files [PREFIX/include]
1369 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1370 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1371 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1372 --infodir=DIR info documentation [DATAROOTDIR/info]
1373 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1374 --mandir=DIR man documentation [DATAROOTDIR/man]
1375 --docdir=DIR documentation root [DATAROOTDIR/doc/mpc]
1376 --htmldir=DIR html documentation [DOCDIR]
1377 --dvidir=DIR dvi documentation [DOCDIR]
1378 --pdfdir=DIR pdf documentation [DOCDIR]
1379 --psdir=DIR ps documentation [DOCDIR]
1380 _ACEOF
1381
1382 cat <<\_ACEOF
1383
1384 Program names:
1385 --program-prefix=PREFIX prepend PREFIX to installed program names
1386 --program-suffix=SUFFIX append SUFFIX to installed program names
1387 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1388
1389 System types:
1390 --build=BUILD configure for building on BUILD [guessed]
1391 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1392 _ACEOF
1393 fi
1394
1395 if test -n "$ac_init_help"; then
1396 case $ac_init_help in
1397 short | recursive ) echo "Configuration of mpc 1.0.1:";;
1398 esac
1399 cat <<\_ACEOF
1400
1401 Optional Features:
1402 --disable-option-checking ignore unrecognized --enable/--with options
1403 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1404 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1405 --enable-maintainer-mode enable make rules and dependencies not useful
1406 (and sometimes confusing) to the casual installer
1407 --enable-logging enable logging of function calls to stderr (default
1408 = no)
1409 --enable-valgrind-tests run checks through valgrind (default = no)
1410 --disable-dependency-tracking speeds up one-time build
1411 --enable-dependency-tracking do not reject slow dependency extractors
1412 --enable-shared[=PKGS] build shared libraries [default=yes]
1413 --enable-static[=PKGS] build static libraries [default=yes]
1414 --enable-fast-install[=PKGS]
1415 optimize for fast installation [default=yes]
1416 --disable-libtool-lock avoid locking (might break parallel builds)
1417
1418 Optional Packages:
1419 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1420 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1421 --with-mpfr-include=DIR MPFR include directory
1422 --with-mpfr-lib=DIR MPFR lib directory
1423 --with-mpfr=DIR MPFR install directory
1424 --with-gmp-include=DIR GMP include directory
1425 --with-gmp-lib=DIR GMP lib directory
1426 --with-gmp=DIR GMP install directory
1427 --with-pic try to use only PIC/non-PIC objects [default=use
1428 both]
1429 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1430 --with-sysroot=DIR Search for dependent libraries within DIR
1431 (or the compiler's sysroot if not specified).
1432
1433 Some influential environment variables:
1434 CC C compiler command
1435 CFLAGS C compiler flags
1436 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1437 nonstandard directory <lib dir>
1438 LIBS libraries to pass to the linker, e.g. -l<library>
1439 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1440 you have headers in a nonstandard directory <include dir>
1441 CPP C preprocessor
1442
1443 Use these variables to override the choices made by `configure' or to help
1444 it to find libraries and programs with nonstandard names/locations.
1445
1446 Report bugs to <mpc-discuss (at] lists.gforge.inria.fr>.
1447 _ACEOF
1448 ac_status=$?
1449 fi
1450
1451 if test "$ac_init_help" = "recursive"; then
1452 # If there are subdirs, report their specific --help.
1453 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1454 test -d "$ac_dir" ||
1455 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1456 continue
1457 ac_builddir=.
1458
1459 case "$ac_dir" in
1460 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1461 *)
1462 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1463 # A ".." for each directory in $ac_dir_suffix.
1464 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1465 case $ac_top_builddir_sub in
1466 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1467 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1468 esac ;;
1469 esac
1470 ac_abs_top_builddir=$ac_pwd
1471 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1472 # for backward compatibility:
1473 ac_top_builddir=$ac_top_build_prefix
1474
1475 case $srcdir in
1476 .) # We are building in place.
1477 ac_srcdir=.
1478 ac_top_srcdir=$ac_top_builddir_sub
1479 ac_abs_top_srcdir=$ac_pwd ;;
1480 [\\/]* | ?:[\\/]* ) # Absolute name.
1481 ac_srcdir=$srcdir$ac_dir_suffix;
1482 ac_top_srcdir=$srcdir
1483 ac_abs_top_srcdir=$srcdir ;;
1484 *) # Relative name.
1485 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1486 ac_top_srcdir=$ac_top_build_prefix$srcdir
1487 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1488 esac
1489 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1490
1491 cd "$ac_dir" || { ac_status=$?; continue; }
1492 # Check for guested configure.
1493 if test -f "$ac_srcdir/configure.gnu"; then
1494 echo &&
1495 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1496 elif test -f "$ac_srcdir/configure"; then
1497 echo &&
1498 $SHELL "$ac_srcdir/configure" --help=recursive
1499 else
1500 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1501 fi || ac_status=$?
1502 cd "$ac_pwd" || { ac_status=$?; break; }
1503 done
1504 fi
1505
1506 test -n "$ac_init_help" && exit $ac_status
1507 if $ac_init_version; then
1508 cat <<\_ACEOF
1509 mpc configure 1.0.1
1510 generated by GNU Autoconf 2.69
1511
1512 Copyright (C) 2012 Free Software Foundation, Inc.
1513 This configure script is free software; the Free Software Foundation
1514 gives unlimited permission to copy, distribute and modify it.
1515 _ACEOF
1516 exit
1517 fi
1518
1519 ## ------------------------ ##
1520 ## Autoconf initialization. ##
1521 ## ------------------------ ##
1522
1523 # ac_fn_c_try_compile LINENO
1524 # --------------------------
1525 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1526 ac_fn_c_try_compile ()
1527 {
1528 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1529 rm -f conftest.$ac_objext
1530 if { { ac_try="$ac_compile"
1531 case "(($ac_try" in
1532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1533 *) ac_try_echo=$ac_try;;
1534 esac
1535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1536 $as_echo "$ac_try_echo"; } >&5
1537 (eval "$ac_compile") 2>conftest.err
1538 ac_status=$?
1539 if test -s conftest.err; then
1540 grep -v '^ *+' conftest.err >conftest.er1
1541 cat conftest.er1 >&5
1542 mv -f conftest.er1 conftest.err
1543 fi
1544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1545 test $ac_status = 0; } && {
1546 test -z "$ac_c_werror_flag" ||
1547 test ! -s conftest.err
1548 } && test -s conftest.$ac_objext; then :
1549 ac_retval=0
1550 else
1551 $as_echo "$as_me: failed program was:" >&5
1552 sed 's/^/| /' conftest.$ac_ext >&5
1553
1554 ac_retval=1
1555 fi
1556 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1557 as_fn_set_status $ac_retval
1558
1559 } # ac_fn_c_try_compile
1560
1561 # ac_fn_c_try_link LINENO
1562 # -----------------------
1563 # Try to link conftest.$ac_ext, and return whether this succeeded.
1564 ac_fn_c_try_link ()
1565 {
1566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567 rm -f conftest.$ac_objext conftest$ac_exeext
1568 if { { ac_try="$ac_link"
1569 case "(($ac_try" in
1570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1571 *) ac_try_echo=$ac_try;;
1572 esac
1573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1574 $as_echo "$ac_try_echo"; } >&5
1575 (eval "$ac_link") 2>conftest.err
1576 ac_status=$?
1577 if test -s conftest.err; then
1578 grep -v '^ *+' conftest.err >conftest.er1
1579 cat conftest.er1 >&5
1580 mv -f conftest.er1 conftest.err
1581 fi
1582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1583 test $ac_status = 0; } && {
1584 test -z "$ac_c_werror_flag" ||
1585 test ! -s conftest.err
1586 } && test -s conftest$ac_exeext && {
1587 test "$cross_compiling" = yes ||
1588 test -x conftest$ac_exeext
1589 }; then :
1590 ac_retval=0
1591 else
1592 $as_echo "$as_me: failed program was:" >&5
1593 sed 's/^/| /' conftest.$ac_ext >&5
1594
1595 ac_retval=1
1596 fi
1597 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1598 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1599 # interfere with the next link command; also delete a directory that is
1600 # left behind by Apple's compiler. We do this before executing the actions.
1601 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1602 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1603 as_fn_set_status $ac_retval
1604
1605 } # ac_fn_c_try_link
1606
1607 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1608 # -------------------------------------------------------
1609 # Tests whether HEADER exists and can be compiled using the include files in
1610 # INCLUDES, setting the cache variable VAR accordingly.
1611 ac_fn_c_check_header_compile ()
1612 {
1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1615 $as_echo_n "checking for $2... " >&6; }
1616 if eval \${$3+:} false; then :
1617 $as_echo_n "(cached) " >&6
1618 else
1619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1620 /* end confdefs.h. */
1621 $4
1622 #include <$2>
1623 _ACEOF
1624 if ac_fn_c_try_compile "$LINENO"; then :
1625 eval "$3=yes"
1626 else
1627 eval "$3=no"
1628 fi
1629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1630 fi
1631 eval ac_res=\$$3
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1633 $as_echo "$ac_res" >&6; }
1634 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1635
1636 } # ac_fn_c_check_header_compile
1637
1638 # ac_fn_c_try_cpp LINENO
1639 # ----------------------
1640 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1641 ac_fn_c_try_cpp ()
1642 {
1643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644 if { { ac_try="$ac_cpp conftest.$ac_ext"
1645 case "(($ac_try" in
1646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1647 *) ac_try_echo=$ac_try;;
1648 esac
1649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1650 $as_echo "$ac_try_echo"; } >&5
1651 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1652 ac_status=$?
1653 if test -s conftest.err; then
1654 grep -v '^ *+' conftest.err >conftest.er1
1655 cat conftest.er1 >&5
1656 mv -f conftest.er1 conftest.err
1657 fi
1658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659 test $ac_status = 0; } > conftest.i && {
1660 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1661 test ! -s conftest.err
1662 }; then :
1663 ac_retval=0
1664 else
1665 $as_echo "$as_me: failed program was:" >&5
1666 sed 's/^/| /' conftest.$ac_ext >&5
1667
1668 ac_retval=1
1669 fi
1670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1671 as_fn_set_status $ac_retval
1672
1673 } # ac_fn_c_try_cpp
1674
1675 # ac_fn_c_try_run LINENO
1676 # ----------------------
1677 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1678 # that executables *can* be run.
1679 ac_fn_c_try_run ()
1680 {
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 if { { ac_try="$ac_link"
1683 case "(($ac_try" in
1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685 *) ac_try_echo=$ac_try;;
1686 esac
1687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688 $as_echo "$ac_try_echo"; } >&5
1689 (eval "$ac_link") 2>&5
1690 ac_status=$?
1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1693 { { case "(($ac_try" in
1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1696 esac
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_try") 2>&5
1700 ac_status=$?
1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; }; }; then :
1703 ac_retval=0
1704 else
1705 $as_echo "$as_me: program exited with status $ac_status" >&5
1706 $as_echo "$as_me: failed program was:" >&5
1707 sed 's/^/| /' conftest.$ac_ext >&5
1708
1709 ac_retval=$ac_status
1710 fi
1711 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713 as_fn_set_status $ac_retval
1714
1715 } # ac_fn_c_try_run
1716
1717 # ac_fn_c_check_func LINENO FUNC VAR
1718 # ----------------------------------
1719 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1720 ac_fn_c_check_func ()
1721 {
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1724 $as_echo_n "checking for $2... " >&6; }
1725 if eval \${$3+:} false; then :
1726 $as_echo_n "(cached) " >&6
1727 else
1728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1729 /* end confdefs.h. */
1730 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1732 #define $2 innocuous_$2
1733
1734 /* System header to define __stub macros and hopefully few prototypes,
1735 which can conflict with char $2 (); below.
1736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1737 <limits.h> exists even on freestanding compilers. */
1738
1739 #ifdef __STDC__
1740 # include <limits.h>
1741 #else
1742 # include <assert.h>
1743 #endif
1744
1745 #undef $2
1746
1747 /* Override any GCC internal prototype to avoid an error.
1748 Use char because int might match the return type of a GCC
1749 builtin and then its argument prototype would still apply. */
1750 #ifdef __cplusplus
1751 extern "C"
1752 #endif
1753 char $2 ();
1754 /* The GNU C library defines this for functions which it implements
1755 to always fail with ENOSYS. Some functions are actually named
1756 something starting with __ and the normal name is an alias. */
1757 #if defined __stub_$2 || defined __stub___$2
1758 choke me
1759 #endif
1760
1761 int
1762 main ()
1763 {
1764 return $2 ();
1765 ;
1766 return 0;
1767 }
1768 _ACEOF
1769 if ac_fn_c_try_link "$LINENO"; then :
1770 eval "$3=yes"
1771 else
1772 eval "$3=no"
1773 fi
1774 rm -f core conftest.err conftest.$ac_objext \
1775 conftest$ac_exeext conftest.$ac_ext
1776 fi
1777 eval ac_res=\$$3
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1779 $as_echo "$ac_res" >&6; }
1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781
1782 } # ac_fn_c_check_func
1783
1784 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1785 # -------------------------------------------------------
1786 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1787 # the include files in INCLUDES and setting the cache variable VAR
1788 # accordingly.
1789 ac_fn_c_check_header_mongrel ()
1790 {
1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792 if eval \${$3+:} false; then :
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1794 $as_echo_n "checking for $2... " >&6; }
1795 if eval \${$3+:} false; then :
1796 $as_echo_n "(cached) " >&6
1797 fi
1798 eval ac_res=\$$3
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1800 $as_echo "$ac_res" >&6; }
1801 else
1802 # Is the header compilable?
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1804 $as_echo_n "checking $2 usability... " >&6; }
1805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1806 /* end confdefs.h. */
1807 $4
1808 #include <$2>
1809 _ACEOF
1810 if ac_fn_c_try_compile "$LINENO"; then :
1811 ac_header_compiler=yes
1812 else
1813 ac_header_compiler=no
1814 fi
1815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1817 $as_echo "$ac_header_compiler" >&6; }
1818
1819 # Is the header present?
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1821 $as_echo_n "checking $2 presence... " >&6; }
1822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1823 /* end confdefs.h. */
1824 #include <$2>
1825 _ACEOF
1826 if ac_fn_c_try_cpp "$LINENO"; then :
1827 ac_header_preproc=yes
1828 else
1829 ac_header_preproc=no
1830 fi
1831 rm -f conftest.err conftest.i conftest.$ac_ext
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1833 $as_echo "$ac_header_preproc" >&6; }
1834
1835 # So? What about this header?
1836 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1837 yes:no: )
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1839 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1841 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1842 ;;
1843 no:yes:* )
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1845 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1847 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1849 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1851 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1853 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1854 ( $as_echo "## ------------------------------------------------ ##
1855 ## Report this to mpc-discuss (at] lists.gforge.inria.fr ##
1856 ## ------------------------------------------------ ##"
1857 ) | sed "s/^/$as_me: WARNING: /" >&2
1858 ;;
1859 esac
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1861 $as_echo_n "checking for $2... " >&6; }
1862 if eval \${$3+:} false; then :
1863 $as_echo_n "(cached) " >&6
1864 else
1865 eval "$3=\$ac_header_compiler"
1866 fi
1867 eval ac_res=\$$3
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1869 $as_echo "$ac_res" >&6; }
1870 fi
1871 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1872
1873 } # ac_fn_c_check_header_mongrel
1874
1875 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1876 # -------------------------------------------
1877 # Tests whether TYPE exists after having included INCLUDES, setting cache
1878 # variable VAR accordingly.
1879 ac_fn_c_check_type ()
1880 {
1881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883 $as_echo_n "checking for $2... " >&6; }
1884 if eval \${$3+:} false; then :
1885 $as_echo_n "(cached) " >&6
1886 else
1887 eval "$3=no"
1888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889 /* end confdefs.h. */
1890 $4
1891 int
1892 main ()
1893 {
1894 if (sizeof ($2))
1895 return 0;
1896 ;
1897 return 0;
1898 }
1899 _ACEOF
1900 if ac_fn_c_try_compile "$LINENO"; then :
1901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1902 /* end confdefs.h. */
1903 $4
1904 int
1905 main ()
1906 {
1907 if (sizeof (($2)))
1908 return 0;
1909 ;
1910 return 0;
1911 }
1912 _ACEOF
1913 if ac_fn_c_try_compile "$LINENO"; then :
1914
1915 else
1916 eval "$3=yes"
1917 fi
1918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1919 fi
1920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1921 fi
1922 eval ac_res=\$$3
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1924 $as_echo "$ac_res" >&6; }
1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926
1927 } # ac_fn_c_check_type
1928 cat >config.log <<_ACEOF
1929 This file contains any messages produced by compilers while
1930 running configure, to aid debugging if configure makes a mistake.
1931
1932 It was created by mpc $as_me 1.0.1, which was
1933 generated by GNU Autoconf 2.69. Invocation command line was
1934
1935 $ $0 $@
1936
1937 _ACEOF
1938 exec 5>>config.log
1939 {
1940 cat <<_ASUNAME
1941 ## --------- ##
1942 ## Platform. ##
1943 ## --------- ##
1944
1945 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1946 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1947 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1948 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1949 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1950
1951 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1952 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1953
1954 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1955 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1956 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1957 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1958 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1959 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1960 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1961
1962 _ASUNAME
1963
1964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965 for as_dir in $PATH
1966 do
1967 IFS=$as_save_IFS
1968 test -z "$as_dir" && as_dir=.
1969 $as_echo "PATH: $as_dir"
1970 done
1971 IFS=$as_save_IFS
1972
1973 } >&5
1974
1975 cat >&5 <<_ACEOF
1976
1977
1978 ## ----------- ##
1979 ## Core tests. ##
1980 ## ----------- ##
1981
1982 _ACEOF
1983
1984
1985 # Keep a trace of the command line.
1986 # Strip out --no-create and --no-recursion so they do not pile up.
1987 # Strip out --silent because we don't want to record it for future runs.
1988 # Also quote any args containing shell meta-characters.
1989 # Make two passes to allow for proper duplicate-argument suppression.
1990 ac_configure_args=
1991 ac_configure_args0=
1992 ac_configure_args1=
1993 ac_must_keep_next=false
1994 for ac_pass in 1 2
1995 do
1996 for ac_arg
1997 do
1998 case $ac_arg in
1999 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2000 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2001 | -silent | --silent | --silen | --sile | --sil)
2002 continue ;;
2003 *\'*)
2004 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2005 esac
2006 case $ac_pass in
2007 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2008 2)
2009 as_fn_append ac_configure_args1 " '$ac_arg'"
2010 if test $ac_must_keep_next = true; then
2011 ac_must_keep_next=false # Got value, back to normal.
2012 else
2013 case $ac_arg in
2014 *=* | --config-cache | -C | -disable-* | --disable-* \
2015 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2016 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2017 | -with-* | --with-* | -without-* | --without-* | --x)
2018 case "$ac_configure_args0 " in
2019 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2020 esac
2021 ;;
2022 -* ) ac_must_keep_next=true ;;
2023 esac
2024 fi
2025 as_fn_append ac_configure_args " '$ac_arg'"
2026 ;;
2027 esac
2028 done
2029 done
2030 { ac_configure_args0=; unset ac_configure_args0;}
2031 { ac_configure_args1=; unset ac_configure_args1;}
2032
2033 # When interrupted or exit'd, cleanup temporary files, and complete
2034 # config.log. We remove comments because anyway the quotes in there
2035 # would cause problems or look ugly.
2036 # WARNING: Use '\'' to represent an apostrophe within the trap.
2037 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2038 trap 'exit_status=$?
2039 # Save into config.log some information that might help in debugging.
2040 {
2041 echo
2042
2043 $as_echo "## ---------------- ##
2044 ## Cache variables. ##
2045 ## ---------------- ##"
2046 echo
2047 # The following way of writing the cache mishandles newlines in values,
2048 (
2049 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2050 eval ac_val=\$$ac_var
2051 case $ac_val in #(
2052 *${as_nl}*)
2053 case $ac_var in #(
2054 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2055 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2056 esac
2057 case $ac_var in #(
2058 _ | IFS | as_nl) ;; #(
2059 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2060 *) { eval $ac_var=; unset $ac_var;} ;;
2061 esac ;;
2062 esac
2063 done
2064 (set) 2>&1 |
2065 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2066 *${as_nl}ac_space=\ *)
2067 sed -n \
2068 "s/'\''/'\''\\\\'\'''\''/g;
2069 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2070 ;; #(
2071 *)
2072 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2073 ;;
2074 esac |
2075 sort
2076 )
2077 echo
2078
2079 $as_echo "## ----------------- ##
2080 ## Output variables. ##
2081 ## ----------------- ##"
2082 echo
2083 for ac_var in $ac_subst_vars
2084 do
2085 eval ac_val=\$$ac_var
2086 case $ac_val in
2087 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2088 esac
2089 $as_echo "$ac_var='\''$ac_val'\''"
2090 done | sort
2091 echo
2092
2093 if test -n "$ac_subst_files"; then
2094 $as_echo "## ------------------- ##
2095 ## File substitutions. ##
2096 ## ------------------- ##"
2097 echo
2098 for ac_var in $ac_subst_files
2099 do
2100 eval ac_val=\$$ac_var
2101 case $ac_val in
2102 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2103 esac
2104 $as_echo "$ac_var='\''$ac_val'\''"
2105 done | sort
2106 echo
2107 fi
2108
2109 if test -s confdefs.h; then
2110 $as_echo "## ----------- ##
2111 ## confdefs.h. ##
2112 ## ----------- ##"
2113 echo
2114 cat confdefs.h
2115 echo
2116 fi
2117 test "$ac_signal" != 0 &&
2118 $as_echo "$as_me: caught signal $ac_signal"
2119 $as_echo "$as_me: exit $exit_status"
2120 } >&5
2121 rm -f core *.core core.conftest.* &&
2122 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2123 exit $exit_status
2124 ' 0
2125 for ac_signal in 1 2 13 15; do
2126 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2127 done
2128 ac_signal=0
2129
2130 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2131 rm -f -r conftest* confdefs.h
2132
2133 $as_echo "/* confdefs.h */" > confdefs.h
2134
2135 # Predefined preprocessor variables.
2136
2137 cat >>confdefs.h <<_ACEOF
2138 #define PACKAGE_NAME "$PACKAGE_NAME"
2139 _ACEOF
2140
2141 cat >>confdefs.h <<_ACEOF
2142 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2143 _ACEOF
2144
2145 cat >>confdefs.h <<_ACEOF
2146 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2147 _ACEOF
2148
2149 cat >>confdefs.h <<_ACEOF
2150 #define PACKAGE_STRING "$PACKAGE_STRING"
2151 _ACEOF
2152
2153 cat >>confdefs.h <<_ACEOF
2154 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2155 _ACEOF
2156
2157 cat >>confdefs.h <<_ACEOF
2158 #define PACKAGE_URL "$PACKAGE_URL"
2159 _ACEOF
2160
2161
2162 # Let the site file select an alternate cache file if it wants to.
2163 # Prefer an explicitly selected file to automatically selected ones.
2164 ac_site_file1=NONE
2165 ac_site_file2=NONE
2166 if test -n "$CONFIG_SITE"; then
2167 # We do not want a PATH search for config.site.
2168 case $CONFIG_SITE in #((
2169 -*) ac_site_file1=./$CONFIG_SITE;;
2170 */*) ac_site_file1=$CONFIG_SITE;;
2171 *) ac_site_file1=./$CONFIG_SITE;;
2172 esac
2173 elif test "x$prefix" != xNONE; then
2174 ac_site_file1=$prefix/share/config.site
2175 ac_site_file2=$prefix/etc/config.site
2176 else
2177 ac_site_file1=$ac_default_prefix/share/config.site
2178 ac_site_file2=$ac_default_prefix/etc/config.site
2179 fi
2180 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2181 do
2182 test "x$ac_site_file" = xNONE && continue
2183 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2185 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2186 sed 's/^/| /' "$ac_site_file" >&5
2187 . "$ac_site_file" \
2188 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2189 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2190 as_fn_error $? "failed to load site script $ac_site_file
2191 See \`config.log' for more details" "$LINENO" 5; }
2192 fi
2193 done
2194
2195 if test -r "$cache_file"; then
2196 # Some versions of bash will fail to source /dev/null (special files
2197 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2198 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2200 $as_echo "$as_me: loading cache $cache_file" >&6;}
2201 case $cache_file in
2202 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2203 *) . "./$cache_file";;
2204 esac
2205 fi
2206 else
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2208 $as_echo "$as_me: creating cache $cache_file" >&6;}
2209 >$cache_file
2210 fi
2211
2212 # Check that the precious variables saved in the cache have kept the same
2213 # value.
2214 ac_cache_corrupted=false
2215 for ac_var in $ac_precious_vars; do
2216 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2217 eval ac_new_set=\$ac_env_${ac_var}_set
2218 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2219 eval ac_new_val=\$ac_env_${ac_var}_value
2220 case $ac_old_set,$ac_new_set in
2221 set,)
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2223 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2224 ac_cache_corrupted=: ;;
2225 ,set)
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2227 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2228 ac_cache_corrupted=: ;;
2229 ,);;
2230 *)
2231 if test "x$ac_old_val" != "x$ac_new_val"; then
2232 # differences in whitespace do not lead to failure.
2233 ac_old_val_w=`echo x $ac_old_val`
2234 ac_new_val_w=`echo x $ac_new_val`
2235 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2237 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2238 ac_cache_corrupted=:
2239 else
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2241 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2242 eval $ac_var=\$ac_old_val
2243 fi
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2245 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2247 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2248 fi;;
2249 esac
2250 # Pass precious variables to config.status.
2251 if test "$ac_new_set" = set; then
2252 case $ac_new_val in
2253 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2254 *) ac_arg=$ac_var=$ac_new_val ;;
2255 esac
2256 case " $ac_configure_args " in
2257 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2258 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2259 esac
2260 fi
2261 done
2262 if $ac_cache_corrupted; then
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2264 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2266 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2267 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2268 fi
2269 ## -------------------- ##
2270 ## Main body of script. ##
2271 ## -------------------- ##
2272
2273 ac_ext=c
2274 ac_cpp='$CPP $CPPFLAGS'
2275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2278
2279
2280
2281 ac_config_headers="$ac_config_headers config.h"
2282
2283
2284 am__api_version='1.11'
2285
2286 ac_aux_dir=
2287 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2288 if test -f "$ac_dir/install-sh"; then
2289 ac_aux_dir=$ac_dir
2290 ac_install_sh="$ac_aux_dir/install-sh -c"
2291 break
2292 elif test -f "$ac_dir/install.sh"; then
2293 ac_aux_dir=$ac_dir
2294 ac_install_sh="$ac_aux_dir/install.sh -c"
2295 break
2296 elif test -f "$ac_dir/shtool"; then
2297 ac_aux_dir=$ac_dir
2298 ac_install_sh="$ac_aux_dir/shtool install -c"
2299 break
2300 fi
2301 done
2302 if test -z "$ac_aux_dir"; then
2303 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2304 fi
2305
2306 # These three variables are undocumented and unsupported,
2307 # and are intended to be withdrawn in a future Autoconf release.
2308 # They can cause serious problems if a builder's source tree is in a directory
2309 # whose full name contains unusual characters.
2310 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2311 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2312 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2313
2314
2315 # Find a good install program. We prefer a C program (faster),
2316 # so one script is as good as another. But avoid the broken or
2317 # incompatible versions:
2318 # SysV /etc/install, /usr/sbin/install
2319 # SunOS /usr/etc/install
2320 # IRIX /sbin/install
2321 # AIX /bin/install
2322 # AmigaOS /C/install, which installs bootblocks on floppy discs
2323 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2324 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2325 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2326 # OS/2's system install, which has a completely different semantic
2327 # ./install, which can be erroneously created by make from ./install.sh.
2328 # Reject install programs that cannot install multiple files.
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2330 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2331 if test -z "$INSTALL"; then
2332 if ${ac_cv_path_install+:} false; then :
2333 $as_echo_n "(cached) " >&6
2334 else
2335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2336 for as_dir in $PATH
2337 do
2338 IFS=$as_save_IFS
2339 test -z "$as_dir" && as_dir=.
2340 # Account for people who put trailing slashes in PATH elements.
2341 case $as_dir/ in #((
2342 ./ | .// | /[cC]/* | \
2343 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2344 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2345 /usr/ucb/* ) ;;
2346 *)
2347 # OSF1 and SCO ODT 3.0 have their own names for install.
2348 # Don't use installbsd from OSF since it installs stuff as root
2349 # by default.
2350 for ac_prog in ginstall scoinst install; do
2351 for ac_exec_ext in '' $ac_executable_extensions; do
2352 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2353 if test $ac_prog = install &&
2354 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2355 # AIX install. It has an incompatible calling convention.
2356 :
2357 elif test $ac_prog = install &&
2358 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2359 # program-specific install script used by HP pwplus--don't use.
2360 :
2361 else
2362 rm -rf conftest.one conftest.two conftest.dir
2363 echo one > conftest.one
2364 echo two > conftest.two
2365 mkdir conftest.dir
2366 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2367 test -s conftest.one && test -s conftest.two &&
2368 test -s conftest.dir/conftest.one &&
2369 test -s conftest.dir/conftest.two
2370 then
2371 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2372 break 3
2373 fi
2374 fi
2375 fi
2376 done
2377 done
2378 ;;
2379 esac
2380
2381 done
2382 IFS=$as_save_IFS
2383
2384 rm -rf conftest.one conftest.two conftest.dir
2385
2386 fi
2387 if test "${ac_cv_path_install+set}" = set; then
2388 INSTALL=$ac_cv_path_install
2389 else
2390 # As a last resort, use the slow shell script. Don't cache a
2391 # value for INSTALL within a source directory, because that will
2392 # break other packages using the cache if that directory is
2393 # removed, or if the value is a relative name.
2394 INSTALL=$ac_install_sh
2395 fi
2396 fi
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2398 $as_echo "$INSTALL" >&6; }
2399
2400 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2401 # It thinks the first close brace ends the variable substitution.
2402 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2403
2404 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2405
2406 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2407
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2409 $as_echo_n "checking whether build environment is sane... " >&6; }
2410 # Just in case
2411 sleep 1
2412 echo timestamp > conftest.file
2413 # Reject unsafe characters in $srcdir or the absolute working directory
2414 # name. Accept space and tab only in the latter.
2415 am_lf='
2416 '
2417 case `pwd` in
2418 *[\\\"\#\$\&\'\`$am_lf]*)
2419 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2420 esac
2421 case $srcdir in
2422 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2423 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2424 esac
2425
2426 # Do `set' in a subshell so we don't clobber the current shell's
2427 # arguments. Must try -L first in case configure is actually a
2428 # symlink; some systems play weird games with the mod time of symlinks
2429 # (eg FreeBSD returns the mod time of the symlink's containing
2430 # directory).
2431 if (
2432 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2433 if test "$*" = "X"; then
2434 # -L didn't work.
2435 set X `ls -t "$srcdir/configure" conftest.file`
2436 fi
2437 rm -f conftest.file
2438 if test "$*" != "X $srcdir/configure conftest.file" \
2439 && test "$*" != "X conftest.file $srcdir/configure"; then
2440
2441 # If neither matched, then we have a broken ls. This can happen
2442 # if, for instance, CONFIG_SHELL is bash and it inherits a
2443 # broken ls alias from the environment. This has actually
2444 # happened. Such a system could not be considered "sane".
2445 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2446 alias in your environment" "$LINENO" 5
2447 fi
2448
2449 test "$2" = conftest.file
2450 )
2451 then
2452 # Ok.
2453 :
2454 else
2455 as_fn_error $? "newly created file is older than distributed files!
2456 Check your system clock" "$LINENO" 5
2457 fi
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2459 $as_echo "yes" >&6; }
2460 test "$program_prefix" != NONE &&
2461 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2462 # Use a double $ so make ignores it.
2463 test "$program_suffix" != NONE &&
2464 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2465 # Double any \ or $.
2466 # By default was `s,x,x', remove it if useless.
2467 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2468 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2469
2470 # expand $ac_aux_dir to an absolute path
2471 am_aux_dir=`cd $ac_aux_dir && pwd`
2472
2473 if test x"${MISSING+set}" != xset; then
2474 case $am_aux_dir in
2475 *\ * | *\ *)
2476 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2477 *)
2478 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2479 esac
2480 fi
2481 # Use eval to expand $SHELL
2482 if eval "$MISSING --run true"; then
2483 am_missing_run="$MISSING --run "
2484 else
2485 am_missing_run=
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2487 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2488 fi
2489
2490 if test x"${install_sh}" != xset; then
2491 case $am_aux_dir in
2492 *\ * | *\ *)
2493 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2494 *)
2495 install_sh="\${SHELL} $am_aux_dir/install-sh"
2496 esac
2497 fi
2498
2499 # Installed binaries are usually stripped using `strip' when the user
2500 # run `make install-strip'. However `strip' might not be the right
2501 # tool to use in cross-compilation environments, therefore Automake
2502 # will honor the `STRIP' environment variable to overrule this program.
2503 if test "$cross_compiling" != no; then
2504 if test -n "$ac_tool_prefix"; then
2505 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2506 set dummy ${ac_tool_prefix}strip; ac_word=$2
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2508 $as_echo_n "checking for $ac_word... " >&6; }
2509 if ${ac_cv_prog_STRIP+:} false; then :
2510 $as_echo_n "(cached) " >&6
2511 else
2512 if test -n "$STRIP"; then
2513 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2514 else
2515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2516 for as_dir in $PATH
2517 do
2518 IFS=$as_save_IFS
2519 test -z "$as_dir" && as_dir=.
2520 for ac_exec_ext in '' $ac_executable_extensions; do
2521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2522 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2524 break 2
2525 fi
2526 done
2527 done
2528 IFS=$as_save_IFS
2529
2530 fi
2531 fi
2532 STRIP=$ac_cv_prog_STRIP
2533 if test -n "$STRIP"; then
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2535 $as_echo "$STRIP" >&6; }
2536 else
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2538 $as_echo "no" >&6; }
2539 fi
2540
2541
2542 fi
2543 if test -z "$ac_cv_prog_STRIP"; then
2544 ac_ct_STRIP=$STRIP
2545 # Extract the first word of "strip", so it can be a program name with args.
2546 set dummy strip; ac_word=$2
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2548 $as_echo_n "checking for $ac_word... " >&6; }
2549 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2550 $as_echo_n "(cached) " >&6
2551 else
2552 if test -n "$ac_ct_STRIP"; then
2553 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2554 else
2555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2556 for as_dir in $PATH
2557 do
2558 IFS=$as_save_IFS
2559 test -z "$as_dir" && as_dir=.
2560 for ac_exec_ext in '' $ac_executable_extensions; do
2561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2562 ac_cv_prog_ac_ct_STRIP="strip"
2563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2564 break 2
2565 fi
2566 done
2567 done
2568 IFS=$as_save_IFS
2569
2570 fi
2571 fi
2572 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2573 if test -n "$ac_ct_STRIP"; then
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2575 $as_echo "$ac_ct_STRIP" >&6; }
2576 else
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2578 $as_echo "no" >&6; }
2579 fi
2580
2581 if test "x$ac_ct_STRIP" = x; then
2582 STRIP=":"
2583 else
2584 case $cross_compiling:$ac_tool_warned in
2585 yes:)
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2587 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2588 ac_tool_warned=yes ;;
2589 esac
2590 STRIP=$ac_ct_STRIP
2591 fi
2592 else
2593 STRIP="$ac_cv_prog_STRIP"
2594 fi
2595
2596 fi
2597 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2598
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2600 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2601 if test -z "$MKDIR_P"; then
2602 if ${ac_cv_path_mkdir+:} false; then :
2603 $as_echo_n "(cached) " >&6
2604 else
2605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2606 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2607 do
2608 IFS=$as_save_IFS
2609 test -z "$as_dir" && as_dir=.
2610 for ac_prog in mkdir gmkdir; do
2611 for ac_exec_ext in '' $ac_executable_extensions; do
2612 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2613 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2614 'mkdir (GNU coreutils) '* | \
2615 'mkdir (coreutils) '* | \
2616 'mkdir (fileutils) '4.1*)
2617 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2618 break 3;;
2619 esac
2620 done
2621 done
2622 done
2623 IFS=$as_save_IFS
2624
2625 fi
2626
2627 test -d ./--version && rmdir ./--version
2628 if test "${ac_cv_path_mkdir+set}" = set; then
2629 MKDIR_P="$ac_cv_path_mkdir -p"
2630 else
2631 # As a last resort, use the slow shell script. Don't cache a
2632 # value for MKDIR_P within a source directory, because that will
2633 # break other packages using the cache if that directory is
2634 # removed, or if the value is a relative name.
2635 MKDIR_P="$ac_install_sh -d"
2636 fi
2637 fi
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2639 $as_echo "$MKDIR_P" >&6; }
2640
2641 mkdir_p="$MKDIR_P"
2642 case $mkdir_p in
2643 [\\/$]* | ?:[\\/]*) ;;
2644 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2645 esac
2646
2647 for ac_prog in gawk mawk nawk awk
2648 do
2649 # Extract the first word of "$ac_prog", so it can be a program name with args.
2650 set dummy $ac_prog; ac_word=$2
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2652 $as_echo_n "checking for $ac_word... " >&6; }
2653 if ${ac_cv_prog_AWK+:} false; then :
2654 $as_echo_n "(cached) " >&6
2655 else
2656 if test -n "$AWK"; then
2657 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2658 else
2659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660 for as_dir in $PATH
2661 do
2662 IFS=$as_save_IFS
2663 test -z "$as_dir" && as_dir=.
2664 for ac_exec_ext in '' $ac_executable_extensions; do
2665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2666 ac_cv_prog_AWK="$ac_prog"
2667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2668 break 2
2669 fi
2670 done
2671 done
2672 IFS=$as_save_IFS
2673
2674 fi
2675 fi
2676 AWK=$ac_cv_prog_AWK
2677 if test -n "$AWK"; then
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2679 $as_echo "$AWK" >&6; }
2680 else
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2682 $as_echo "no" >&6; }
2683 fi
2684
2685
2686 test -n "$AWK" && break
2687 done
2688
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2690 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2691 set x ${MAKE-make}
2692 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2693 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2694 $as_echo_n "(cached) " >&6
2695 else
2696 cat >conftest.make <<\_ACEOF
2697 SHELL = /bin/sh
2698 all:
2699 @echo '@@@%%%=$(MAKE)=@@@%%%'
2700 _ACEOF
2701 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2702 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2703 *@@@%%%=?*=@@@%%%*)
2704 eval ac_cv_prog_make_${ac_make}_set=yes;;
2705 *)
2706 eval ac_cv_prog_make_${ac_make}_set=no;;
2707 esac
2708 rm -f conftest.make
2709 fi
2710 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2712 $as_echo "yes" >&6; }
2713 SET_MAKE=
2714 else
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2716 $as_echo "no" >&6; }
2717 SET_MAKE="MAKE=${MAKE-make}"
2718 fi
2719
2720 rm -rf .tst 2>/dev/null
2721 mkdir .tst 2>/dev/null
2722 if test -d .tst; then
2723 am__leading_dot=.
2724 else
2725 am__leading_dot=_
2726 fi
2727 rmdir .tst 2>/dev/null
2728
2729 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2730 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2731 # is not polluted with repeated "-I."
2732 am__isrc=' -I$(srcdir)'
2733 # test to see if srcdir already configured
2734 if test -f $srcdir/config.status; then
2735 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2736 fi
2737 fi
2738
2739 # test whether we have cygpath
2740 if test -z "$CYGPATH_W"; then
2741 if (cygpath --version) >/dev/null 2>/dev/null; then
2742 CYGPATH_W='cygpath -w'
2743 else
2744 CYGPATH_W=echo
2745 fi
2746 fi
2747
2748
2749 # Define the identity of the package.
2750 PACKAGE='mpc'
2751 VERSION='1.0.1'
2752
2753
2754 cat >>confdefs.h <<_ACEOF
2755 #define PACKAGE "$PACKAGE"
2756 _ACEOF
2757
2758
2759 cat >>confdefs.h <<_ACEOF
2760 #define VERSION "$VERSION"
2761 _ACEOF
2762
2763 # Some tools Automake needs.
2764
2765 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2766
2767
2768 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2769
2770
2771 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2772
2773
2774 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2775
2776
2777 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2778
2779 # We need awk for the "check" target. The system "awk" is bad on
2780 # some platforms.
2781 # Always define AMTAR for backward compatibility. Yes, it's still used
2782 # in the wild :-( We should find a proper way to deprecate it ...
2783 AMTAR='$${TAR-tar}'
2784
2785 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2786
2787
2788
2789
2790
2791
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2793 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2794 # Check whether --enable-maintainer-mode was given.
2795 if test "${enable_maintainer_mode+set}" = set; then :
2796 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2797 else
2798 USE_MAINTAINER_MODE=no
2799 fi
2800
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2802 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2803 if test $USE_MAINTAINER_MODE = yes; then
2804 MAINTAINER_MODE_TRUE=
2805 MAINTAINER_MODE_FALSE='#'
2806 else
2807 MAINTAINER_MODE_TRUE='#'
2808 MAINTAINER_MODE_FALSE=
2809 fi
2810
2811 MAINT=$MAINTAINER_MODE_TRUE
2812
2813
2814
2815 USER_CC=$CC
2816 USER_CFLAGS=$CFLAGS
2817
2818 # Make sure we can run config.sub.
2819 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2820 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2821
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2823 $as_echo_n "checking build system type... " >&6; }
2824 if ${ac_cv_build+:} false; then :
2825 $as_echo_n "(cached) " >&6
2826 else
2827 ac_build_alias=$build_alias
2828 test "x$ac_build_alias" = x &&
2829 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2830 test "x$ac_build_alias" = x &&
2831 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2832 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2833 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2834
2835 fi
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2837 $as_echo "$ac_cv_build" >&6; }
2838 case $ac_cv_build in
2839 *-*-*) ;;
2840 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2841 esac
2842 build=$ac_cv_build
2843 ac_save_IFS=$IFS; IFS='-'
2844 set x $ac_cv_build
2845 shift
2846 build_cpu=$1
2847 build_vendor=$2
2848 shift; shift
2849 # Remember, the first character of IFS is used to create $*,
2850 # except with old shells:
2851 build_os=$*
2852 IFS=$ac_save_IFS
2853 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2854
2855
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2857 $as_echo_n "checking host system type... " >&6; }
2858 if ${ac_cv_host+:} false; then :
2859 $as_echo_n "(cached) " >&6
2860 else
2861 if test "x$host_alias" = x; then
2862 ac_cv_host=$ac_cv_build
2863 else
2864 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2865 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2866 fi
2867
2868 fi
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2870 $as_echo "$ac_cv_host" >&6; }
2871 case $ac_cv_host in
2872 *-*-*) ;;
2873 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2874 esac
2875 host=$ac_cv_host
2876 ac_save_IFS=$IFS; IFS='-'
2877 set x $ac_cv_host
2878 shift
2879 host_cpu=$1
2880 host_vendor=$2
2881 shift; shift
2882 # Remember, the first character of IFS is used to create $*,
2883 # except with old shells:
2884 host_os=$*
2885 IFS=$ac_save_IFS
2886 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2887
2888
2889
2890
2891
2892 # Extra arguments to configure
2893
2894 # Check whether --with-mpfr_include was given.
2895 if test "${with_mpfr_include+set}" = set; then :
2896 withval=$with_mpfr_include; CPPFLAGS="-I$withval $CPPFLAGS"
2897 fi
2898
2899
2900 # Check whether --with-mpfr_lib was given.
2901 if test "${with_mpfr_lib+set}" = set; then :
2902 withval=$with_mpfr_lib; LDFLAGS="-L$withval $LDFLAGS"
2903 fi
2904
2905
2906 # Check whether --with-mpfr was given.
2907 if test "${with_mpfr+set}" = set; then :
2908 withval=$with_mpfr;
2909 if test -z "$with_mpfr_include" -a -z "$with_mpfr_lib" ; then
2910 CPPFLAGS="-I$withval/include $CPPFLAGS"
2911 LDFLAGS="-L$withval/lib $LDFLAGS"
2912 else
2913 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2914 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2915 as_fn_error $? "Do not use --with-mpfr and --with-mpfr-include/--with-mpfr-lib options simultaneously.
2916 See \`config.log' for more details" "$LINENO" 5; }
2917 fi
2918
2919 fi
2920
2921
2922 # Check whether --with-gmp_include was given.
2923 if test "${with_gmp_include+set}" = set; then :
2924 withval=$with_gmp_include; CPPFLAGS="-I$withval $CPPFLAGS"
2925 fi
2926
2927
2928 # Check whether --with-gmp_lib was given.
2929 if test "${with_gmp_lib+set}" = set; then :
2930 withval=$with_gmp_lib; LDFLAGS="-L$withval $LDFLAGS"
2931 fi
2932
2933
2934 # Check whether --with-gmp was given.
2935 if test "${with_gmp+set}" = set; then :
2936 withval=$with_gmp;
2937 if test -z "$with_gmp_lib" -a -z "$with_gmp_include" ; then
2938 CPPFLAGS="-I$withval/include $CPPFLAGS"
2939 LDFLAGS="-L$withval/lib $LDFLAGS"
2940 else
2941 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2943 as_fn_error $? "Do not use --with-gmp and --with-gmp-include/--with-gmp-lib options simultaneously.
2944 See \`config.log' for more details" "$LINENO" 5; }
2945 fi
2946
2947 fi
2948
2949 # Check whether --enable-logging was given.
2950 if test "${enable_logging+set}" = set; then :
2951 enableval=$enable_logging; case $enableval in
2952 yes) if test "x$enable_shared" = "xno"; then :
2953 as_fn_error $? "Logging works only with shared libraries; do not mix --enable-logging and --disable-shared" "$LINENO" 5
2954 fi ;;
2955 no) ;;
2956 *) as_fn_error $? "Bad value for --enable-logging: Use yes or no" "$LINENO" 5 ;;
2957 esac
2958
2959
2960 fi
2961
2962 # Check whether --enable-valgrind-tests was given.
2963 if test "${enable_valgrind_tests+set}" = set; then :
2964 enableval=$enable_valgrind_tests; case $enableval in
2965 yes)
2966 # Run self-tests under valgrind?
2967 if test "$cross_compiling" = no; then
2968 for ac_prog in valgrind
2969 do
2970 # Extract the first word of "$ac_prog", so it can be a program name with args.
2971 set dummy $ac_prog; ac_word=$2
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2973 $as_echo_n "checking for $ac_word... " >&6; }
2974 if ${ac_cv_prog_VALGRIND+:} false; then :
2975 $as_echo_n "(cached) " >&6
2976 else
2977 if test -n "$VALGRIND"; then
2978 ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test.
2979 else
2980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981 for as_dir in $PATH
2982 do
2983 IFS=$as_save_IFS
2984 test -z "$as_dir" && as_dir=.
2985 for ac_exec_ext in '' $ac_executable_extensions; do
2986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2987 ac_cv_prog_VALGRIND="$ac_prog"
2988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2989 break 2
2990 fi
2991 done
2992 done
2993 IFS=$as_save_IFS
2994
2995 fi
2996 fi
2997 VALGRIND=$ac_cv_prog_VALGRIND
2998 if test -n "$VALGRIND"; then
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
3000 $as_echo "$VALGRIND" >&6; }
3001 else
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3003 $as_echo "no" >&6; }
3004 fi
3005
3006
3007 test -n "$VALGRIND" && break
3008 done
3009
3010 fi
3011
3012 if test -n "$VALGRIND" && $VALGRIND -q true > /dev/null 2>&1; then
3013 opt_valgrind_tests=yes
3014 VALGRIND="$VALGRIND -q --error-exitcode=1 --leak-check=full"
3015 # Addition AE: enable suppression file through a shell variable
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for valgrind suppression file" >&5
3017 $as_echo_n "checking for valgrind suppression file... " >&6; }
3018 if test -n "$VALGRIND_SUPPRESSION"; then
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND_SUPPRESSION" >&5
3020 $as_echo "$VALGRIND_SUPPRESSION" >&6; }
3021 VALGRIND="$VALGRIND --suppressions=$VALGRIND_SUPPRESSION"
3022 else
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3024 $as_echo "no" >&6; }
3025 fi
3026
3027 $as_echo "#define MPC_USE_VALGRIND 1" >>confdefs.h
3028
3029 else
3030 opt_valgrind_tests=no
3031 VALGRIND=
3032 fi
3033
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether self tests are run under valgrind" >&5
3035 $as_echo_n "checking whether self tests are run under valgrind... " >&6; }
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opt_valgrind_tests" >&5
3037 $as_echo "$opt_valgrind_tests" >&6; }
3038 ;;
3039 no) ;;
3040 *) as_fn_error $? "Bad value for --enable-valgrind-tests: Use yes or no" "$LINENO" 5 ;;
3041 esac
3042
3043
3044 fi
3045
3046
3047 # Check for CC and CFLAGS in gmp.h unless the user specified one of them
3048 # look for EGREP and SED here, see continued problem
3049 # at http://lists.gforge.inria.fr/pipermail/mpc-discuss/2012-January/001056.html
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3051 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3052 if ${ac_cv_path_GREP+:} false; then :
3053 $as_echo_n "(cached) " >&6
3054 else
3055 if test -z "$GREP"; then
3056 ac_path_GREP_found=false
3057 # Loop through the user's path and test for each of PROGNAME-LIST
3058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3059 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3060 do
3061 IFS=$as_save_IFS
3062 test -z "$as_dir" && as_dir=.
3063 for ac_prog in grep ggrep; do
3064 for ac_exec_ext in '' $ac_executable_extensions; do
3065 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3066 as_fn_executable_p "$ac_path_GREP" || continue
3067 # Check for GNU ac_path_GREP and select it if it is found.
3068 # Check for GNU $ac_path_GREP
3069 case `"$ac_path_GREP" --version 2>&1` in
3070 *GNU*)
3071 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3072 *)
3073 ac_count=0
3074 $as_echo_n 0123456789 >"conftest.in"
3075 while :
3076 do
3077 cat "conftest.in" "conftest.in" >"conftest.tmp"
3078 mv "conftest.tmp" "conftest.in"
3079 cp "conftest.in" "conftest.nl"
3080 $as_echo 'GREP' >> "conftest.nl"
3081 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3082 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3083 as_fn_arith $ac_count + 1 && ac_count=$as_val
3084 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3085 # Best one so far, save it but keep looking for a better one
3086 ac_cv_path_GREP="$ac_path_GREP"
3087 ac_path_GREP_max=$ac_count
3088 fi
3089 # 10*(2^10) chars as input seems more than enough
3090 test $ac_count -gt 10 && break
3091 done
3092 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3093 esac
3094
3095 $ac_path_GREP_found && break 3
3096 done
3097 done
3098 done
3099 IFS=$as_save_IFS
3100 if test -z "$ac_cv_path_GREP"; then
3101 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3102 fi
3103 else
3104 ac_cv_path_GREP=$GREP
3105 fi
3106
3107 fi
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3109 $as_echo "$ac_cv_path_GREP" >&6; }
3110 GREP="$ac_cv_path_GREP"
3111
3112
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3114 $as_echo_n "checking for egrep... " >&6; }
3115 if ${ac_cv_path_EGREP+:} false; then :
3116 $as_echo_n "(cached) " >&6
3117 else
3118 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3119 then ac_cv_path_EGREP="$GREP -E"
3120 else
3121 if test -z "$EGREP"; then
3122 ac_path_EGREP_found=false
3123 # Loop through the user's path and test for each of PROGNAME-LIST
3124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3125 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3126 do
3127 IFS=$as_save_IFS
3128 test -z "$as_dir" && as_dir=.
3129 for ac_prog in egrep; do
3130 for ac_exec_ext in '' $ac_executable_extensions; do
3131 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3132 as_fn_executable_p "$ac_path_EGREP" || continue
3133 # Check for GNU ac_path_EGREP and select it if it is found.
3134 # Check for GNU $ac_path_EGREP
3135 case `"$ac_path_EGREP" --version 2>&1` in
3136 *GNU*)
3137 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3138 *)
3139 ac_count=0
3140 $as_echo_n 0123456789 >"conftest.in"
3141 while :
3142 do
3143 cat "conftest.in" "conftest.in" >"conftest.tmp"
3144 mv "conftest.tmp" "conftest.in"
3145 cp "conftest.in" "conftest.nl"
3146 $as_echo 'EGREP' >> "conftest.nl"
3147 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3148 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3149 as_fn_arith $ac_count + 1 && ac_count=$as_val
3150 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3151 # Best one so far, save it but keep looking for a better one
3152 ac_cv_path_EGREP="$ac_path_EGREP"
3153 ac_path_EGREP_max=$ac_count
3154 fi
3155 # 10*(2^10) chars as input seems more than enough
3156 test $ac_count -gt 10 && break
3157 done
3158 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3159 esac
3160
3161 $ac_path_EGREP_found && break 3
3162 done
3163 done
3164 done
3165 IFS=$as_save_IFS
3166 if test -z "$ac_cv_path_EGREP"; then
3167 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3168 fi
3169 else
3170 ac_cv_path_EGREP=$EGREP
3171 fi
3172
3173 fi
3174 fi
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3176 $as_echo "$ac_cv_path_EGREP" >&6; }
3177 EGREP="$ac_cv_path_EGREP"
3178
3179
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3181 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3182 if ${ac_cv_path_SED+:} false; then :
3183 $as_echo_n "(cached) " >&6
3184 else
3185 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3186 for ac_i in 1 2 3 4 5 6 7; do
3187 ac_script="$ac_script$as_nl$ac_script"
3188 done
3189 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3190 { ac_script=; unset ac_script;}
3191 if test -z "$SED"; then
3192 ac_path_SED_found=false
3193 # Loop through the user's path and test for each of PROGNAME-LIST
3194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3195 for as_dir in $PATH
3196 do
3197 IFS=$as_save_IFS
3198 test -z "$as_dir" && as_dir=.
3199 for ac_prog in sed gsed; do
3200 for ac_exec_ext in '' $ac_executable_extensions; do
3201 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3202 as_fn_executable_p "$ac_path_SED" || continue
3203 # Check for GNU ac_path_SED and select it if it is found.
3204 # Check for GNU $ac_path_SED
3205 case `"$ac_path_SED" --version 2>&1` in
3206 *GNU*)
3207 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3208 *)
3209 ac_count=0
3210 $as_echo_n 0123456789 >"conftest.in"
3211 while :
3212 do
3213 cat "conftest.in" "conftest.in" >"conftest.tmp"
3214 mv "conftest.tmp" "conftest.in"
3215 cp "conftest.in" "conftest.nl"
3216 $as_echo '' >> "conftest.nl"
3217 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3218 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3219 as_fn_arith $ac_count + 1 && ac_count=$as_val
3220 if test $ac_count -gt ${ac_path_SED_max-0}; then
3221 # Best one so far, save it but keep looking for a better one
3222 ac_cv_path_SED="$ac_path_SED"
3223 ac_path_SED_max=$ac_count
3224 fi
3225 # 10*(2^10) chars as input seems more than enough
3226 test $ac_count -gt 10 && break
3227 done
3228 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3229 esac
3230
3231 $ac_path_SED_found && break 3
3232 done
3233 done
3234 done
3235 IFS=$as_save_IFS
3236 if test -z "$ac_cv_path_SED"; then
3237 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3238 fi
3239 else
3240 ac_cv_path_SED=$SED
3241 fi
3242
3243 fi
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3245 $as_echo "$ac_cv_path_SED" >&6; }
3246 SED="$ac_cv_path_SED"
3247 rm -f conftest.sed
3248
3249 if test -z "$USER_CC" && test -z "$USER_CFLAGS"; then
3250
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CC and CFLAGS in gmp.h" >&5
3252 $as_echo_n "checking for CC and CFLAGS in gmp.h... " >&6; }
3253 # AC_PROG_CPP triggers the search for a C compiler; use hack instead
3254 for cpp in /lib/cpp gcc cc c99
3255 do
3256 test $cpp = /lib/cpp || cpp="$cpp -E"
3257 echo foo > conftest.c
3258 if $cpp $CPPFLAGS conftest.c > /dev/null 2> /dev/null ; then
3259 # Get CC
3260 echo "#include \"gmp.h\"" > conftest.c
3261 echo "MPFR_OPTION __GMP_CC" >> conftest.c
3262 GMP_CC=`$cpp $CPPFLAGS conftest.c 2> /dev/null | $EGREP MPFR_OPTION | $SED -e 's/MPFR_OPTION //g;s/ *" *//g'`
3263 # Get CFLAGS
3264 echo "#include \"gmp.h\"" > conftest.c
3265 echo "MPFR_OPTION __GMP_CFLAGS" >> conftest.c
3266 GMP_CFLAGS=`$cpp $CPPFLAGS conftest.c 2> /dev/null | $EGREP MPFR_OPTION | $SED -e 's/MPFR_OPTION //g;s/ *" *//g'`
3267 break
3268 fi
3269 done
3270
3271 if test "x$GMP_CFLAGS" = "x__GMP_CFLAGS" -o "x$GMP_CC" = "x__GMP_CC" ; then
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3273 $as_echo "no" >&6; }
3274 GMP_CC=
3275 GMP_CFLAGS=
3276 else
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CC=$GMP_CC CFLAGS=$GMP_CFLAGS" >&5
3278 $as_echo "yes CC=$GMP_CC CFLAGS=$GMP_CFLAGS" >&6; }
3279 fi
3280
3281 # Check for validity of CC and CFLAGS obtained from gmp.h
3282 if test -n "$GMP_CC$GMP_CFLAGS" ; then
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CC=$GMP_CC and CFLAGS=$GMP_CFLAGS" >&5
3284 $as_echo_n "checking for CC=$GMP_CC and CFLAGS=$GMP_CFLAGS... " >&6; }
3285 echo "int main (void) { return 0; }" > conftest.c
3286 if $GMP_CC $GMP_CFLAGS -o conftest conftest.c 2> /dev/null ; then
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3288 $as_echo "yes" >&6; }
3289 CC=$GMP_CC
3290 CFLAGS=$GMP_CFLAGS
3291 else
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293 $as_echo "no" >&6; }
3294 fi
3295 fi
3296
3297 rm -f conftest*
3298
3299 fi
3300
3301 # Setup CC and CFLAGS
3302 ac_ext=c
3303 ac_cpp='$CPP $CPPFLAGS'
3304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3307 if test -n "$ac_tool_prefix"; then
3308 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3309 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3311 $as_echo_n "checking for $ac_word... " >&6; }
3312 if ${ac_cv_prog_CC+:} false; then :
3313 $as_echo_n "(cached) " >&6
3314 else
3315 if test -n "$CC"; then
3316 ac_cv_prog_CC="$CC" # Let the user override the test.
3317 else
3318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3319 for as_dir in $PATH
3320 do
3321 IFS=$as_save_IFS
3322 test -z "$as_dir" && as_dir=.
3323 for ac_exec_ext in '' $ac_executable_extensions; do
3324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3325 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3327 break 2
3328 fi
3329 done
3330 done
3331 IFS=$as_save_IFS
3332
3333 fi
3334 fi
3335 CC=$ac_cv_prog_CC
3336 if test -n "$CC"; then
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3338 $as_echo "$CC" >&6; }
3339 else
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3341 $as_echo "no" >&6; }
3342 fi
3343
3344
3345 fi
3346 if test -z "$ac_cv_prog_CC"; then
3347 ac_ct_CC=$CC
3348 # Extract the first word of "gcc", so it can be a program name with args.
3349 set dummy gcc; ac_word=$2
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3351 $as_echo_n "checking for $ac_word... " >&6; }
3352 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3353 $as_echo_n "(cached) " >&6
3354 else
3355 if test -n "$ac_ct_CC"; then
3356 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3357 else
3358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3359 for as_dir in $PATH
3360 do
3361 IFS=$as_save_IFS
3362 test -z "$as_dir" && as_dir=.
3363 for ac_exec_ext in '' $ac_executable_extensions; do
3364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3365 ac_cv_prog_ac_ct_CC="gcc"
3366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3367 break 2
3368 fi
3369 done
3370 done
3371 IFS=$as_save_IFS
3372
3373 fi
3374 fi
3375 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3376 if test -n "$ac_ct_CC"; then
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3378 $as_echo "$ac_ct_CC" >&6; }
3379 else
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3381 $as_echo "no" >&6; }
3382 fi
3383
3384 if test "x$ac_ct_CC" = x; then
3385 CC=""
3386 else
3387 case $cross_compiling:$ac_tool_warned in
3388 yes:)
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3390 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3391 ac_tool_warned=yes ;;
3392 esac
3393 CC=$ac_ct_CC
3394 fi
3395 else
3396 CC="$ac_cv_prog_CC"
3397 fi
3398
3399 if test -z "$CC"; then
3400 if test -n "$ac_tool_prefix"; then
3401 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3402 set dummy ${ac_tool_prefix}cc; ac_word=$2
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3404 $as_echo_n "checking for $ac_word... " >&6; }
3405 if ${ac_cv_prog_CC+:} false; then :
3406 $as_echo_n "(cached) " >&6
3407 else
3408 if test -n "$CC"; then
3409 ac_cv_prog_CC="$CC" # Let the user override the test.
3410 else
3411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3412 for as_dir in $PATH
3413 do
3414 IFS=$as_save_IFS
3415 test -z "$as_dir" && as_dir=.
3416 for ac_exec_ext in '' $ac_executable_extensions; do
3417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3418 ac_cv_prog_CC="${ac_tool_prefix}cc"
3419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3420 break 2
3421 fi
3422 done
3423 done
3424 IFS=$as_save_IFS
3425
3426 fi
3427 fi
3428 CC=$ac_cv_prog_CC
3429 if test -n "$CC"; then
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3431 $as_echo "$CC" >&6; }
3432 else
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3434 $as_echo "no" >&6; }
3435 fi
3436
3437
3438 fi
3439 fi
3440 if test -z "$CC"; then
3441 # Extract the first word of "cc", so it can be a program name with args.
3442 set dummy cc; ac_word=$2
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3444 $as_echo_n "checking for $ac_word... " >&6; }
3445 if ${ac_cv_prog_CC+:} false; then :
3446 $as_echo_n "(cached) " >&6
3447 else
3448 if test -n "$CC"; then
3449 ac_cv_prog_CC="$CC" # Let the user override the test.
3450 else
3451 ac_prog_rejected=no
3452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3453 for as_dir in $PATH
3454 do
3455 IFS=$as_save_IFS
3456 test -z "$as_dir" && as_dir=.
3457 for ac_exec_ext in '' $ac_executable_extensions; do
3458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3459 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3460 ac_prog_rejected=yes
3461 continue
3462 fi
3463 ac_cv_prog_CC="cc"
3464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3465 break 2
3466 fi
3467 done
3468 done
3469 IFS=$as_save_IFS
3470
3471 if test $ac_prog_rejected = yes; then
3472 # We found a bogon in the path, so make sure we never use it.
3473 set dummy $ac_cv_prog_CC
3474 shift
3475 if test $# != 0; then
3476 # We chose a different compiler from the bogus one.
3477 # However, it has the same basename, so the bogon will be chosen
3478 # first if we set CC to just the basename; use the full file name.
3479 shift
3480 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3481 fi
3482 fi
3483 fi
3484 fi
3485 CC=$ac_cv_prog_CC
3486 if test -n "$CC"; then
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3488 $as_echo "$CC" >&6; }
3489 else
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3491 $as_echo "no" >&6; }
3492 fi
3493
3494
3495 fi
3496 if test -z "$CC"; then
3497 if test -n "$ac_tool_prefix"; then
3498 for ac_prog in cl.exe
3499 do
3500 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3501 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3503 $as_echo_n "checking for $ac_word... " >&6; }
3504 if ${ac_cv_prog_CC+:} false; then :
3505 $as_echo_n "(cached) " >&6
3506 else
3507 if test -n "$CC"; then
3508 ac_cv_prog_CC="$CC" # Let the user override the test.
3509 else
3510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3511 for as_dir in $PATH
3512 do
3513 IFS=$as_save_IFS
3514 test -z "$as_dir" && as_dir=.
3515 for ac_exec_ext in '' $ac_executable_extensions; do
3516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3517 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3519 break 2
3520 fi
3521 done
3522 done
3523 IFS=$as_save_IFS
3524
3525 fi
3526 fi
3527 CC=$ac_cv_prog_CC
3528 if test -n "$CC"; then
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3530 $as_echo "$CC" >&6; }
3531 else
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3533 $as_echo "no" >&6; }
3534 fi
3535
3536
3537 test -n "$CC" && break
3538 done
3539 fi
3540 if test -z "$CC"; then
3541 ac_ct_CC=$CC
3542 for ac_prog in cl.exe
3543 do
3544 # Extract the first word of "$ac_prog", so it can be a program name with args.
3545 set dummy $ac_prog; ac_word=$2
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3547 $as_echo_n "checking for $ac_word... " >&6; }
3548 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3549 $as_echo_n "(cached) " >&6
3550 else
3551 if test -n "$ac_ct_CC"; then
3552 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3553 else
3554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3555 for as_dir in $PATH
3556 do
3557 IFS=$as_save_IFS
3558 test -z "$as_dir" && as_dir=.
3559 for ac_exec_ext in '' $ac_executable_extensions; do
3560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3561 ac_cv_prog_ac_ct_CC="$ac_prog"
3562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3563 break 2
3564 fi
3565 done
3566 done
3567 IFS=$as_save_IFS
3568
3569 fi
3570 fi
3571 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3572 if test -n "$ac_ct_CC"; then
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3574 $as_echo "$ac_ct_CC" >&6; }
3575 else
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3577 $as_echo "no" >&6; }
3578 fi
3579
3580
3581 test -n "$ac_ct_CC" && break
3582 done
3583
3584 if test "x$ac_ct_CC" = x; then
3585 CC=""
3586 else
3587 case $cross_compiling:$ac_tool_warned in
3588 yes:)
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3590 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3591 ac_tool_warned=yes ;;
3592 esac
3593 CC=$ac_ct_CC
3594 fi
3595 fi
3596
3597 fi
3598
3599
3600 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3601 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3602 as_fn_error $? "no acceptable C compiler found in \$PATH
3603 See \`config.log' for more details" "$LINENO" 5; }
3604
3605 # Provide some information about the compiler.
3606 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3607 set X $ac_compile
3608 ac_compiler=$2
3609 for ac_option in --version -v -V -qversion; do
3610 { { ac_try="$ac_compiler $ac_option >&5"
3611 case "(($ac_try" in
3612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3613 *) ac_try_echo=$ac_try;;
3614 esac
3615 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3616 $as_echo "$ac_try_echo"; } >&5
3617 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3618 ac_status=$?
3619 if test -s conftest.err; then
3620 sed '10a\
3621 ... rest of stderr output deleted ...
3622 10q' conftest.err >conftest.er1
3623 cat conftest.er1 >&5
3624 fi
3625 rm -f conftest.er1 conftest.err
3626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3627 test $ac_status = 0; }
3628 done
3629
3630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3631 /* end confdefs.h. */
3632
3633 int
3634 main ()
3635 {
3636
3637 ;
3638 return 0;
3639 }
3640 _ACEOF
3641 ac_clean_files_save=$ac_clean_files
3642 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3643 # Try to create an executable without -o first, disregard a.out.
3644 # It will help us diagnose broken compilers, and finding out an intuition
3645 # of exeext.
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3647 $as_echo_n "checking whether the C compiler works... " >&6; }
3648 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3649
3650 # The possible output files:
3651 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3652
3653 ac_rmfiles=
3654 for ac_file in $ac_files
3655 do
3656 case $ac_file in
3657 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3658 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3659 esac
3660 done
3661 rm -f $ac_rmfiles
3662
3663 if { { ac_try="$ac_link_default"
3664 case "(($ac_try" in
3665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3666 *) ac_try_echo=$ac_try;;
3667 esac
3668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3669 $as_echo "$ac_try_echo"; } >&5
3670 (eval "$ac_link_default") 2>&5
3671 ac_status=$?
3672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3673 test $ac_status = 0; }; then :
3674 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3675 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3676 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3677 # so that the user can short-circuit this test for compilers unknown to
3678 # Autoconf.
3679 for ac_file in $ac_files ''
3680 do
3681 test -f "$ac_file" || continue
3682 case $ac_file in
3683 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3684 ;;
3685 [ab].out )
3686 # We found the default executable, but exeext='' is most
3687 # certainly right.
3688 break;;
3689 *.* )
3690 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3691 then :; else
3692 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3693 fi
3694 # We set ac_cv_exeext here because the later test for it is not
3695 # safe: cross compilers may not add the suffix if given an `-o'
3696 # argument, so we may need to know it at that point already.
3697 # Even if this section looks crufty: it has the advantage of
3698 # actually working.
3699 break;;
3700 * )
3701 break;;
3702 esac
3703 done
3704 test "$ac_cv_exeext" = no && ac_cv_exeext=
3705
3706 else
3707 ac_file=''
3708 fi
3709 if test -z "$ac_file"; then :
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3711 $as_echo "no" >&6; }
3712 $as_echo "$as_me: failed program was:" >&5
3713 sed 's/^/| /' conftest.$ac_ext >&5
3714
3715 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3716 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3717 as_fn_error 77 "C compiler cannot create executables
3718 See \`config.log' for more details" "$LINENO" 5; }
3719 else
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3721 $as_echo "yes" >&6; }
3722 fi
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3724 $as_echo_n "checking for C compiler default output file name... " >&6; }
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3726 $as_echo "$ac_file" >&6; }
3727 ac_exeext=$ac_cv_exeext
3728
3729 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3730 ac_clean_files=$ac_clean_files_save
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3732 $as_echo_n "checking for suffix of executables... " >&6; }
3733 if { { ac_try="$ac_link"
3734 case "(($ac_try" in
3735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3736 *) ac_try_echo=$ac_try;;
3737 esac
3738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3739 $as_echo "$ac_try_echo"; } >&5
3740 (eval "$ac_link") 2>&5
3741 ac_status=$?
3742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3743 test $ac_status = 0; }; then :
3744 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3745 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3746 # work properly (i.e., refer to `conftest.exe'), while it won't with
3747 # `rm'.
3748 for ac_file in conftest.exe conftest conftest.*; do
3749 test -f "$ac_file" || continue
3750 case $ac_file in
3751 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3752 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3753 break;;
3754 * ) break;;
3755 esac
3756 done
3757 else
3758 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3759 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3760 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3761 See \`config.log' for more details" "$LINENO" 5; }
3762 fi
3763 rm -f conftest conftest$ac_cv_exeext
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3765 $as_echo "$ac_cv_exeext" >&6; }
3766
3767 rm -f conftest.$ac_ext
3768 EXEEXT=$ac_cv_exeext
3769 ac_exeext=$EXEEXT
3770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3771 /* end confdefs.h. */
3772 #include <stdio.h>
3773 int
3774 main ()
3775 {
3776 FILE *f = fopen ("conftest.out", "w");
3777 return ferror (f) || fclose (f) != 0;
3778
3779 ;
3780 return 0;
3781 }
3782 _ACEOF
3783 ac_clean_files="$ac_clean_files conftest.out"
3784 # Check that the compiler produces executables we can run. If not, either
3785 # the compiler is broken, or we cross compile.
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3787 $as_echo_n "checking whether we are cross compiling... " >&6; }
3788 if test "$cross_compiling" != yes; then
3789 { { ac_try="$ac_link"
3790 case "(($ac_try" in
3791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3792 *) ac_try_echo=$ac_try;;
3793 esac
3794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3795 $as_echo "$ac_try_echo"; } >&5
3796 (eval "$ac_link") 2>&5
3797 ac_status=$?
3798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3799 test $ac_status = 0; }
3800 if { ac_try='./conftest$ac_cv_exeext'
3801 { { case "(($ac_try" in
3802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3803 *) ac_try_echo=$ac_try;;
3804 esac
3805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3806 $as_echo "$ac_try_echo"; } >&5
3807 (eval "$ac_try") 2>&5
3808 ac_status=$?
3809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3810 test $ac_status = 0; }; }; then
3811 cross_compiling=no
3812 else
3813 if test "$cross_compiling" = maybe; then
3814 cross_compiling=yes
3815 else
3816 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3818 as_fn_error $? "cannot run C compiled programs.
3819 If you meant to cross compile, use \`--host'.
3820 See \`config.log' for more details" "$LINENO" 5; }
3821 fi
3822 fi
3823 fi
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3825 $as_echo "$cross_compiling" >&6; }
3826
3827 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3828 ac_clean_files=$ac_clean_files_save
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3830 $as_echo_n "checking for suffix of object files... " >&6; }
3831 if ${ac_cv_objext+:} false; then :
3832 $as_echo_n "(cached) " >&6
3833 else
3834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835 /* end confdefs.h. */
3836
3837 int
3838 main ()
3839 {
3840
3841 ;
3842 return 0;
3843 }
3844 _ACEOF
3845 rm -f conftest.o conftest.obj
3846 if { { ac_try="$ac_compile"
3847 case "(($ac_try" in
3848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849 *) ac_try_echo=$ac_try;;
3850 esac
3851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3852 $as_echo "$ac_try_echo"; } >&5
3853 (eval "$ac_compile") 2>&5
3854 ac_status=$?
3855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3856 test $ac_status = 0; }; then :
3857 for ac_file in conftest.o conftest.obj conftest.*; do
3858 test -f "$ac_file" || continue;
3859 case $ac_file in
3860 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3861 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3862 break;;
3863 esac
3864 done
3865 else
3866 $as_echo "$as_me: failed program was:" >&5
3867 sed 's/^/| /' conftest.$ac_ext >&5
3868
3869 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3870 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3871 as_fn_error $? "cannot compute suffix of object files: cannot compile
3872 See \`config.log' for more details" "$LINENO" 5; }
3873 fi
3874 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3875 fi
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3877 $as_echo "$ac_cv_objext" >&6; }
3878 OBJEXT=$ac_cv_objext
3879 ac_objext=$OBJEXT
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3881 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3882 if ${ac_cv_c_compiler_gnu+:} false; then :
3883 $as_echo_n "(cached) " >&6
3884 else
3885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3886 /* end confdefs.h. */
3887
3888 int
3889 main ()
3890 {
3891 #ifndef __GNUC__
3892 choke me
3893 #endif
3894
3895 ;
3896 return 0;
3897 }
3898 _ACEOF
3899 if ac_fn_c_try_compile "$LINENO"; then :
3900 ac_compiler_gnu=yes
3901 else
3902 ac_compiler_gnu=no
3903 fi
3904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3905 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3906
3907 fi
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3909 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3910 if test $ac_compiler_gnu = yes; then
3911 GCC=yes
3912 else
3913 GCC=
3914 fi
3915 ac_test_CFLAGS=${CFLAGS+set}
3916 ac_save_CFLAGS=$CFLAGS
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3918 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3919 if ${ac_cv_prog_cc_g+:} false; then :
3920 $as_echo_n "(cached) " >&6
3921 else
3922 ac_save_c_werror_flag=$ac_c_werror_flag
3923 ac_c_werror_flag=yes
3924 ac_cv_prog_cc_g=no
3925 CFLAGS="-g"
3926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3927 /* end confdefs.h. */
3928
3929 int
3930 main ()
3931 {
3932
3933 ;
3934 return 0;
3935 }
3936 _ACEOF
3937 if ac_fn_c_try_compile "$LINENO"; then :
3938 ac_cv_prog_cc_g=yes
3939 else
3940 CFLAGS=""
3941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3942 /* end confdefs.h. */
3943
3944 int
3945 main ()
3946 {
3947
3948 ;
3949 return 0;
3950 }
3951 _ACEOF
3952 if ac_fn_c_try_compile "$LINENO"; then :
3953
3954 else
3955 ac_c_werror_flag=$ac_save_c_werror_flag
3956 CFLAGS="-g"
3957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3958 /* end confdefs.h. */
3959
3960 int
3961 main ()
3962 {
3963
3964 ;
3965 return 0;
3966 }
3967 _ACEOF
3968 if ac_fn_c_try_compile "$LINENO"; then :
3969 ac_cv_prog_cc_g=yes
3970 fi
3971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3972 fi
3973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3974 fi
3975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3976 ac_c_werror_flag=$ac_save_c_werror_flag
3977 fi
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3979 $as_echo "$ac_cv_prog_cc_g" >&6; }
3980 if test "$ac_test_CFLAGS" = set; then
3981 CFLAGS=$ac_save_CFLAGS
3982 elif test $ac_cv_prog_cc_g = yes; then
3983 if test "$GCC" = yes; then
3984 CFLAGS="-g -O2"
3985 else
3986 CFLAGS="-g"
3987 fi
3988 else
3989 if test "$GCC" = yes; then
3990 CFLAGS="-O2"
3991 else
3992 CFLAGS=
3993 fi
3994 fi
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3996 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3997 if ${ac_cv_prog_cc_c89+:} false; then :
3998 $as_echo_n "(cached) " >&6
3999 else
4000 ac_cv_prog_cc_c89=no
4001 ac_save_CC=$CC
4002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4003 /* end confdefs.h. */
4004 #include <stdarg.h>
4005 #include <stdio.h>
4006 struct stat;
4007 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4008 struct buf { int x; };
4009 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4010 static char *e (p, i)
4011 char **p;
4012 int i;
4013 {
4014 return p[i];
4015 }
4016 static char *f (char * (*g) (char **, int), char **p, ...)
4017 {
4018 char *s;
4019 va_list v;
4020 va_start (v,p);
4021 s = g (p, va_arg (v,int));
4022 va_end (v);
4023 return s;
4024 }
4025
4026 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4027 function prototypes and stuff, but not '\xHH' hex character constants.
4028 These don't provoke an error unfortunately, instead are silently treated
4029 as 'x'. The following induces an error, until -std is added to get
4030 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4031 array size at least. It's necessary to write '\x00'==0 to get something
4032 that's true only with -std. */
4033 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4034
4035 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4036 inside strings and character constants. */
4037 #define FOO(x) 'x'
4038 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4039
4040 int test (int i, double x);
4041 struct s1 {int (*f) (int a);};
4042 struct s2 {int (*f) (double a);};
4043 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4044 int argc;
4045 char **argv;
4046 int
4047 main ()
4048 {
4049 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4050 ;
4051 return 0;
4052 }
4053 _ACEOF
4054 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4055 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4056 do
4057 CC="$ac_save_CC $ac_arg"
4058 if ac_fn_c_try_compile "$LINENO"; then :
4059 ac_cv_prog_cc_c89=$ac_arg
4060 fi
4061 rm -f core conftest.err conftest.$ac_objext
4062 test "x$ac_cv_prog_cc_c89" != "xno" && break
4063 done
4064 rm -f conftest.$ac_ext
4065 CC=$ac_save_CC
4066
4067 fi
4068 # AC_CACHE_VAL
4069 case "x$ac_cv_prog_cc_c89" in
4070 x)
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4072 $as_echo "none needed" >&6; } ;;
4073 xno)
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4075 $as_echo "unsupported" >&6; } ;;
4076 *)
4077 CC="$CC $ac_cv_prog_cc_c89"
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4079 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4080 esac
4081 if test "x$ac_cv_prog_cc_c89" != xno; then :
4082
4083 fi
4084
4085 ac_ext=c
4086 ac_cpp='$CPP $CPPFLAGS'
4087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4090 DEPDIR="${am__leading_dot}deps"
4091
4092 ac_config_commands="$ac_config_commands depfiles"
4093
4094
4095 am_make=${MAKE-make}
4096 cat > confinc << 'END'
4097 am__doit:
4098 @echo this is the am__doit target
4099 .PHONY: am__doit
4100 END
4101 # If we don't find an include directive, just comment out the code.
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4103 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4104 am__include="#"
4105 am__quote=
4106 _am_result=none
4107 # First try GNU make style include.
4108 echo "include confinc" > confmf
4109 # Ignore all kinds of additional output from `make'.
4110 case `$am_make -s -f confmf 2> /dev/null` in #(
4111 *the\ am__doit\ target*)
4112 am__include=include
4113 am__quote=
4114 _am_result=GNU
4115 ;;
4116 esac
4117 # Now try BSD make style include.
4118 if test "$am__include" = "#"; then
4119 echo '.include "confinc"' > confmf
4120 case `$am_make -s -f confmf 2> /dev/null` in #(
4121 *the\ am__doit\ target*)
4122 am__include=.include
4123 am__quote="\""
4124 _am_result=BSD
4125 ;;
4126 esac
4127 fi
4128
4129
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4131 $as_echo "$_am_result" >&6; }
4132 rm -f confinc confmf
4133
4134 # Check whether --enable-dependency-tracking was given.
4135 if test "${enable_dependency_tracking+set}" = set; then :
4136 enableval=$enable_dependency_tracking;
4137 fi
4138
4139 if test "x$enable_dependency_tracking" != xno; then
4140 am_depcomp="$ac_aux_dir/depcomp"
4141 AMDEPBACKSLASH='\'
4142 am__nodep='_no'
4143 fi
4144 if test "x$enable_dependency_tracking" != xno; then
4145 AMDEP_TRUE=
4146 AMDEP_FALSE='#'
4147 else
4148 AMDEP_TRUE='#'
4149 AMDEP_FALSE=
4150 fi
4151
4152
4153
4154 depcc="$CC" am_compiler_list=
4155
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4157 $as_echo_n "checking dependency style of $depcc... " >&6; }
4158 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4159 $as_echo_n "(cached) " >&6
4160 else
4161 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4162 # We make a subdir and do the tests there. Otherwise we can end up
4163 # making bogus files that we don't know about and never remove. For
4164 # instance it was reported that on HP-UX the gcc test will end up
4165 # making a dummy file named `D' -- because `-MD' means `put the output
4166 # in D'.
4167 rm -rf conftest.dir
4168 mkdir conftest.dir
4169 # Copy depcomp to subdir because otherwise we won't find it if we're
4170 # using a relative directory.
4171 cp "$am_depcomp" conftest.dir
4172 cd conftest.dir
4173 # We will build objects and dependencies in a subdirectory because
4174 # it helps to detect inapplicable dependency modes. For instance
4175 # both Tru64's cc and ICC support -MD to output dependencies as a
4176 # side effect of compilation, but ICC will put the dependencies in
4177 # the current directory while Tru64 will put them in the object
4178 # directory.
4179 mkdir sub
4180
4181 am_cv_CC_dependencies_compiler_type=none
4182 if test "$am_compiler_list" = ""; then
4183 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4184 fi
4185 am__universal=false
4186 case " $depcc " in #(
4187 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4188 esac
4189
4190 for depmode in $am_compiler_list; do
4191 # Setup a source with many dependencies, because some compilers
4192 # like to wrap large dependency lists on column 80 (with \), and
4193 # we should not choose a depcomp mode which is confused by this.
4194 #
4195 # We need to recreate these files for each test, as the compiler may
4196 # overwrite some of them when testing with obscure command lines.
4197 # This happens at least with the AIX C compiler.
4198 : > sub/conftest.c
4199 for i in 1 2 3 4 5 6; do
4200 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4201 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4202 # Solaris 8's {/usr,}/bin/sh.
4203 touch sub/conftst$i.h
4204 done
4205 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4206
4207 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4208 # mode. It turns out that the SunPro C++ compiler does not properly
4209 # handle `-M -o', and we need to detect this. Also, some Intel
4210 # versions had trouble with output in subdirs
4211 am__obj=sub/conftest.${OBJEXT-o}
4212 am__minus_obj="-o $am__obj"
4213 case $depmode in
4214 gcc)
4215 # This depmode causes a compiler race in universal mode.
4216 test "$am__universal" = false || continue
4217 ;;
4218 nosideeffect)
4219 # after this tag, mechanisms are not by side-effect, so they'll
4220 # only be used when explicitly requested
4221 if test "x$enable_dependency_tracking" = xyes; then
4222 continue
4223 else
4224 break
4225 fi
4226 ;;
4227 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4228 # This compiler won't grok `-c -o', but also, the minuso test has
4229 # not run yet. These depmodes are late enough in the game, and
4230 # so weak that their functioning should not be impacted.
4231 am__obj=conftest.${OBJEXT-o}
4232 am__minus_obj=
4233 ;;
4234 none) break ;;
4235 esac
4236 if depmode=$depmode \
4237 source=sub/conftest.c object=$am__obj \
4238 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4239 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4240 >/dev/null 2>conftest.err &&
4241 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4242 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4243 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4244 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4245 # icc doesn't choke on unknown options, it will just issue warnings
4246 # or remarks (even with -Werror). So we grep stderr for any message
4247 # that says an option was ignored or not supported.
4248 # When given -MP, icc 7.0 and 7.1 complain thusly:
4249 # icc: Command line warning: ignoring option '-M'; no argument required
4250 # The diagnosis changed in icc 8.0:
4251 # icc: Command line remark: option '-MP' not supported
4252 if (grep 'ignoring option' conftest.err ||
4253 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4254 am_cv_CC_dependencies_compiler_type=$depmode
4255 break
4256 fi
4257 fi
4258 done
4259
4260 cd ..
4261 rm -rf conftest.dir
4262 else
4263 am_cv_CC_dependencies_compiler_type=none
4264 fi
4265
4266 fi
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4268 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4269 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4270
4271 if
4272 test "x$enable_dependency_tracking" != xno \
4273 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4274 am__fastdepCC_TRUE=
4275 am__fastdepCC_FALSE='#'
4276 else
4277 am__fastdepCC_TRUE='#'
4278 am__fastdepCC_FALSE=
4279 fi
4280
4281
4282 ac_ext=c
4283 ac_cpp='$CPP $CPPFLAGS'
4284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4287
4288
4289 # automake 1.12 seems to require this, but automake 1.11 doesn't recognize it
4290
4291 if test -n "$ac_tool_prefix"; then
4292 for ac_prog in ar lib "link -lib"
4293 do
4294 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4295 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4297 $as_echo_n "checking for $ac_word... " >&6; }
4298 if ${ac_cv_prog_AR+:} false; then :
4299 $as_echo_n "(cached) " >&6
4300 else
4301 if test -n "$AR"; then
4302 ac_cv_prog_AR="$AR" # Let the user override the test.
4303 else
4304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4305 for as_dir in $PATH
4306 do
4307 IFS=$as_save_IFS
4308 test -z "$as_dir" && as_dir=.
4309 for ac_exec_ext in '' $ac_executable_extensions; do
4310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4311 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4313 break 2
4314 fi
4315 done
4316 done
4317 IFS=$as_save_IFS
4318
4319 fi
4320 fi
4321 AR=$ac_cv_prog_AR
4322 if test -n "$AR"; then
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4324 $as_echo "$AR" >&6; }
4325 else
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4327 $as_echo "no" >&6; }
4328 fi
4329
4330
4331 test -n "$AR" && break
4332 done
4333 fi
4334 if test -z "$AR"; then
4335 ac_ct_AR=$AR
4336 for ac_prog in ar lib "link -lib"
4337 do
4338 # Extract the first word of "$ac_prog", so it can be a program name with args.
4339 set dummy $ac_prog; ac_word=$2
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4341 $as_echo_n "checking for $ac_word... " >&6; }
4342 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4343 $as_echo_n "(cached) " >&6
4344 else
4345 if test -n "$ac_ct_AR"; then
4346 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4347 else
4348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4349 for as_dir in $PATH
4350 do
4351 IFS=$as_save_IFS
4352 test -z "$as_dir" && as_dir=.
4353 for ac_exec_ext in '' $ac_executable_extensions; do
4354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4355 ac_cv_prog_ac_ct_AR="$ac_prog"
4356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4357 break 2
4358 fi
4359 done
4360 done
4361 IFS=$as_save_IFS
4362
4363 fi
4364 fi
4365 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4366 if test -n "$ac_ct_AR"; then
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4368 $as_echo "$ac_ct_AR" >&6; }
4369 else
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4371 $as_echo "no" >&6; }
4372 fi
4373
4374
4375 test -n "$ac_ct_AR" && break
4376 done
4377
4378 if test "x$ac_ct_AR" = x; then
4379 AR="false"
4380 else
4381 case $cross_compiling:$ac_tool_warned in
4382 yes:)
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4384 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4385 ac_tool_warned=yes ;;
4386 esac
4387 AR=$ac_ct_AR
4388 fi
4389 fi
4390
4391 : ${AR=ar}
4392
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4394 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4395 if ${am_cv_ar_interface+:} false; then :
4396 $as_echo_n "(cached) " >&6
4397 else
4398 am_cv_ar_interface=ar
4399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4400 /* end confdefs.h. */
4401 int some_variable = 0;
4402 _ACEOF
4403 if ac_fn_c_try_compile "$LINENO"; then :
4404 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4406 (eval $am_ar_try) 2>&5
4407 ac_status=$?
4408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4409 test $ac_status = 0; }
4410 if test "$ac_status" -eq 0; then
4411 am_cv_ar_interface=ar
4412 else
4413 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4414 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4415 (eval $am_ar_try) 2>&5
4416 ac_status=$?
4417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4418 test $ac_status = 0; }
4419 if test "$ac_status" -eq 0; then
4420 am_cv_ar_interface=lib
4421 else
4422 am_cv_ar_interface=unknown
4423 fi
4424 fi
4425 rm -f conftest.lib libconftest.a
4426
4427 fi
4428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4429
4430 fi
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4432 $as_echo "$am_cv_ar_interface" >&6; }
4433
4434 case $am_cv_ar_interface in
4435 ar)
4436 ;;
4437 lib)
4438 # Microsoft lib, so override with the ar-lib wrapper script.
4439 # FIXME: It is wrong to rewrite AR.
4440 # But if we don't then we get into trouble of one sort or another.
4441 # A longer-term fix would be to have automake use am__AR in this case,
4442 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4443 # similar.
4444 AR="$am_aux_dir/ar-lib $AR"
4445 ;;
4446 unknown)
4447 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4448 ;;
4449 esac
4450
4451
4452 # Set up LibTool
4453 case `pwd` in
4454 *\ * | *\ *)
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4456 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4457 esac
4458
4459
4460
4461 macro_version='2.4.2'
4462 macro_revision='1.3337'
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476 ltmain="$ac_aux_dir/ltmain.sh"
4477
4478 # Backslashify metacharacters that are still active within
4479 # double-quoted strings.
4480 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4481
4482 # Same as above, but do not quote variable references.
4483 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4484
4485 # Sed substitution to delay expansion of an escaped shell variable in a
4486 # double_quote_subst'ed string.
4487 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4488
4489 # Sed substitution to delay expansion of an escaped single quote.
4490 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4491
4492 # Sed substitution to avoid accidental globbing in evaled expressions
4493 no_glob_subst='s/\*/\\\*/g'
4494
4495 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4496 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4497 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4498
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4500 $as_echo_n "checking how to print strings... " >&6; }
4501 # Test print first, because it will be a builtin if present.
4502 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4503 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4504 ECHO='print -r --'
4505 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4506 ECHO='printf %s\n'
4507 else
4508 # Use this function as a fallback that always works.
4509 func_fallback_echo ()
4510 {
4511 eval 'cat <<_LTECHO_EOF
4512 $1
4513 _LTECHO_EOF'
4514 }
4515 ECHO='func_fallback_echo'
4516 fi
4517
4518 # func_echo_all arg...
4519 # Invoke $ECHO with all args, space-separated.
4520 func_echo_all ()
4521 {
4522 $ECHO ""
4523 }
4524
4525 case "$ECHO" in
4526 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4527 $as_echo "printf" >&6; } ;;
4528 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4529 $as_echo "print -r" >&6; } ;;
4530 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4531 $as_echo "cat" >&6; } ;;
4532 esac
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4548 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4549 if ${ac_cv_path_SED+:} false; then :
4550 $as_echo_n "(cached) " >&6
4551 else
4552 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4553 for ac_i in 1 2 3 4 5 6 7; do
4554 ac_script="$ac_script$as_nl$ac_script"
4555 done
4556 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4557 { ac_script=; unset ac_script;}
4558 if test -z "$SED"; then
4559 ac_path_SED_found=false
4560 # Loop through the user's path and test for each of PROGNAME-LIST
4561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562 for as_dir in $PATH
4563 do
4564 IFS=$as_save_IFS
4565 test -z "$as_dir" && as_dir=.
4566 for ac_prog in sed gsed; do
4567 for ac_exec_ext in '' $ac_executable_extensions; do
4568 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4569 as_fn_executable_p "$ac_path_SED" || continue
4570 # Check for GNU ac_path_SED and select it if it is found.
4571 # Check for GNU $ac_path_SED
4572 case `"$ac_path_SED" --version 2>&1` in
4573 *GNU*)
4574 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4575 *)
4576 ac_count=0
4577 $as_echo_n 0123456789 >"conftest.in"
4578 while :
4579 do
4580 cat "conftest.in" "conftest.in" >"conftest.tmp"
4581 mv "conftest.tmp" "conftest.in"
4582 cp "conftest.in" "conftest.nl"
4583 $as_echo '' >> "conftest.nl"
4584 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4585 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4586 as_fn_arith $ac_count + 1 && ac_count=$as_val
4587 if test $ac_count -gt ${ac_path_SED_max-0}; then
4588 # Best one so far, save it but keep looking for a better one
4589 ac_cv_path_SED="$ac_path_SED"
4590 ac_path_SED_max=$ac_count
4591 fi
4592 # 10*(2^10) chars as input seems more than enough
4593 test $ac_count -gt 10 && break
4594 done
4595 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4596 esac
4597
4598 $ac_path_SED_found && break 3
4599 done
4600 done
4601 done
4602 IFS=$as_save_IFS
4603 if test -z "$ac_cv_path_SED"; then
4604 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4605 fi
4606 else
4607 ac_cv_path_SED=$SED
4608 fi
4609
4610 fi
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4612 $as_echo "$ac_cv_path_SED" >&6; }
4613 SED="$ac_cv_path_SED"
4614 rm -f conftest.sed
4615
4616 test -z "$SED" && SED=sed
4617 Xsed="$SED -e 1s/^X//"
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4630 $as_echo_n "checking for fgrep... " >&6; }
4631 if ${ac_cv_path_FGREP+:} false; then :
4632 $as_echo_n "(cached) " >&6
4633 else
4634 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4635 then ac_cv_path_FGREP="$GREP -F"
4636 else
4637 if test -z "$FGREP"; then
4638 ac_path_FGREP_found=false
4639 # Loop through the user's path and test for each of PROGNAME-LIST
4640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4641 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4642 do
4643 IFS=$as_save_IFS
4644 test -z "$as_dir" && as_dir=.
4645 for ac_prog in fgrep; do
4646 for ac_exec_ext in '' $ac_executable_extensions; do
4647 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4648 as_fn_executable_p "$ac_path_FGREP" || continue
4649 # Check for GNU ac_path_FGREP and select it if it is found.
4650 # Check for GNU $ac_path_FGREP
4651 case `"$ac_path_FGREP" --version 2>&1` in
4652 *GNU*)
4653 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4654 *)
4655 ac_count=0
4656 $as_echo_n 0123456789 >"conftest.in"
4657 while :
4658 do
4659 cat "conftest.in" "conftest.in" >"conftest.tmp"
4660 mv "conftest.tmp" "conftest.in"
4661 cp "conftest.in" "conftest.nl"
4662 $as_echo 'FGREP' >> "conftest.nl"
4663 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4664 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4665 as_fn_arith $ac_count + 1 && ac_count=$as_val
4666 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4667 # Best one so far, save it but keep looking for a better one
4668 ac_cv_path_FGREP="$ac_path_FGREP"
4669 ac_path_FGREP_max=$ac_count
4670 fi
4671 # 10*(2^10) chars as input seems more than enough
4672 test $ac_count -gt 10 && break
4673 done
4674 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4675 esac
4676
4677 $ac_path_FGREP_found && break 3
4678 done
4679 done
4680 done
4681 IFS=$as_save_IFS
4682 if test -z "$ac_cv_path_FGREP"; then
4683 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4684 fi
4685 else
4686 ac_cv_path_FGREP=$FGREP
4687 fi
4688
4689 fi
4690 fi
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4692 $as_echo "$ac_cv_path_FGREP" >&6; }
4693 FGREP="$ac_cv_path_FGREP"
4694
4695
4696 test -z "$GREP" && GREP=grep
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716 # Check whether --with-gnu-ld was given.
4717 if test "${with_gnu_ld+set}" = set; then :
4718 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4719 else
4720 with_gnu_ld=no
4721 fi
4722
4723 ac_prog=ld
4724 if test "$GCC" = yes; then
4725 # Check if gcc -print-prog-name=ld gives a path.
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4727 $as_echo_n "checking for ld used by $CC... " >&6; }
4728 case $host in
4729 *-*-mingw*)
4730 # gcc leaves a trailing carriage return which upsets mingw
4731 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4732 *)
4733 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4734 esac
4735 case $ac_prog in
4736 # Accept absolute paths.
4737 [\\/]* | ?:[\\/]*)
4738 re_direlt='/[^/][^/]*/\.\./'
4739 # Canonicalize the pathname of ld
4740 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4741 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4742 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4743 done
4744 test -z "$LD" && LD="$ac_prog"
4745 ;;
4746 "")
4747 # If it fails, then pretend we aren't using GCC.
4748 ac_prog=ld
4749 ;;
4750 *)
4751 # If it is relative, then search for the first ld in PATH.
4752 with_gnu_ld=unknown
4753 ;;
4754 esac
4755 elif test "$with_gnu_ld" = yes; then
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4757 $as_echo_n "checking for GNU ld... " >&6; }
4758 else
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4760 $as_echo_n "checking for non-GNU ld... " >&6; }
4761 fi
4762 if ${lt_cv_path_LD+:} false; then :
4763 $as_echo_n "(cached) " >&6
4764 else
4765 if test -z "$LD"; then
4766 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4767 for ac_dir in $PATH; do
4768 IFS="$lt_save_ifs"
4769 test -z "$ac_dir" && ac_dir=.
4770 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4771 lt_cv_path_LD="$ac_dir/$ac_prog"
4772 # Check to see if the program is GNU ld. I'd rather use --version,
4773 # but apparently some variants of GNU ld only accept -v.
4774 # Break only if it was the GNU/non-GNU ld that we prefer.
4775 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4776 *GNU* | *'with BFD'*)
4777 test "$with_gnu_ld" != no && break
4778 ;;
4779 *)
4780 test "$with_gnu_ld" != yes && break
4781 ;;
4782 esac
4783 fi
4784 done
4785 IFS="$lt_save_ifs"
4786 else
4787 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4788 fi
4789 fi
4790
4791 LD="$lt_cv_path_LD"
4792 if test -n "$LD"; then
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4794 $as_echo "$LD" >&6; }
4795 else
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4797 $as_echo "no" >&6; }
4798 fi
4799 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4801 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4802 if ${lt_cv_prog_gnu_ld+:} false; then :
4803 $as_echo_n "(cached) " >&6
4804 else
4805 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4806 case `$LD -v 2>&1 </dev/null` in
4807 *GNU* | *'with BFD'*)
4808 lt_cv_prog_gnu_ld=yes
4809 ;;
4810 *)
4811 lt_cv_prog_gnu_ld=no
4812 ;;
4813 esac
4814 fi
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4816 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4817 with_gnu_ld=$lt_cv_prog_gnu_ld
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4828 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4829 if ${lt_cv_path_NM+:} false; then :
4830 $as_echo_n "(cached) " >&6
4831 else
4832 if test -n "$NM"; then
4833 # Let the user override the test.
4834 lt_cv_path_NM="$NM"
4835 else
4836 lt_nm_to_check="${ac_tool_prefix}nm"
4837 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4838 lt_nm_to_check="$lt_nm_to_check nm"
4839 fi
4840 for lt_tmp_nm in $lt_nm_to_check; do
4841 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4842 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4843 IFS="$lt_save_ifs"
4844 test -z "$ac_dir" && ac_dir=.
4845 tmp_nm="$ac_dir/$lt_tmp_nm"
4846 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4847 # Check to see if the nm accepts a BSD-compat flag.
4848 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4849 # nm: unknown option "B" ignored
4850 # Tru64's nm complains that /dev/null is an invalid object file
4851 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4852 */dev/null* | *'Invalid file or object type'*)
4853 lt_cv_path_NM="$tmp_nm -B"
4854 break
4855 ;;
4856 *)
4857 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4858 */dev/null*)
4859 lt_cv_path_NM="$tmp_nm -p"
4860 break
4861 ;;
4862 *)
4863 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4864 continue # so that we can try to find one that supports BSD flags
4865 ;;
4866 esac
4867 ;;
4868 esac
4869 fi
4870 done
4871 IFS="$lt_save_ifs"
4872 done
4873 : ${lt_cv_path_NM=no}
4874 fi
4875 fi
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4877 $as_echo "$lt_cv_path_NM" >&6; }
4878 if test "$lt_cv_path_NM" != "no"; then
4879 NM="$lt_cv_path_NM"
4880 else
4881 # Didn't find any BSD compatible name lister, look for dumpbin.
4882 if test -n "$DUMPBIN"; then :
4883 # Let the user override the test.
4884 else
4885 if test -n "$ac_tool_prefix"; then
4886 for ac_prog in dumpbin "link -dump"
4887 do
4888 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4889 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4891 $as_echo_n "checking for $ac_word... " >&6; }
4892 if ${ac_cv_prog_DUMPBIN+:} false; then :
4893 $as_echo_n "(cached) " >&6
4894 else
4895 if test -n "$DUMPBIN"; then
4896 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4897 else
4898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4899 for as_dir in $PATH
4900 do
4901 IFS=$as_save_IFS
4902 test -z "$as_dir" && as_dir=.
4903 for ac_exec_ext in '' $ac_executable_extensions; do
4904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4905 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4907 break 2
4908 fi
4909 done
4910 done
4911 IFS=$as_save_IFS
4912
4913 fi
4914 fi
4915 DUMPBIN=$ac_cv_prog_DUMPBIN
4916 if test -n "$DUMPBIN"; then
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4918 $as_echo "$DUMPBIN" >&6; }
4919 else
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4921 $as_echo "no" >&6; }
4922 fi
4923
4924
4925 test -n "$DUMPBIN" && break
4926 done
4927 fi
4928 if test -z "$DUMPBIN"; then
4929 ac_ct_DUMPBIN=$DUMPBIN
4930 for ac_prog in dumpbin "link -dump"
4931 do
4932 # Extract the first word of "$ac_prog", so it can be a program name with args.
4933 set dummy $ac_prog; ac_word=$2
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4935 $as_echo_n "checking for $ac_word... " >&6; }
4936 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4937 $as_echo_n "(cached) " >&6
4938 else
4939 if test -n "$ac_ct_DUMPBIN"; then
4940 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4941 else
4942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4943 for as_dir in $PATH
4944 do
4945 IFS=$as_save_IFS
4946 test -z "$as_dir" && as_dir=.
4947 for ac_exec_ext in '' $ac_executable_extensions; do
4948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4949 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4951 break 2
4952 fi
4953 done
4954 done
4955 IFS=$as_save_IFS
4956
4957 fi
4958 fi
4959 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4960 if test -n "$ac_ct_DUMPBIN"; then
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4962 $as_echo "$ac_ct_DUMPBIN" >&6; }
4963 else
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4965 $as_echo "no" >&6; }
4966 fi
4967
4968
4969 test -n "$ac_ct_DUMPBIN" && break
4970 done
4971
4972 if test "x$ac_ct_DUMPBIN" = x; then
4973 DUMPBIN=":"
4974 else
4975 case $cross_compiling:$ac_tool_warned in
4976 yes:)
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4978 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4979 ac_tool_warned=yes ;;
4980 esac
4981 DUMPBIN=$ac_ct_DUMPBIN
4982 fi
4983 fi
4984
4985 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4986 *COFF*)
4987 DUMPBIN="$DUMPBIN -symbols"
4988 ;;
4989 *)
4990 DUMPBIN=:
4991 ;;
4992 esac
4993 fi
4994
4995 if test "$DUMPBIN" != ":"; then
4996 NM="$DUMPBIN"
4997 fi
4998 fi
4999 test -z "$NM" && NM=nm
5000
5001
5002
5003
5004
5005
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5007 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5008 if ${lt_cv_nm_interface+:} false; then :
5009 $as_echo_n "(cached) " >&6
5010 else
5011 lt_cv_nm_interface="BSD nm"
5012 echo "int some_variable = 0;" > conftest.$ac_ext
5013 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5014 (eval "$ac_compile" 2>conftest.err)
5015 cat conftest.err >&5
5016 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5017 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5018 cat conftest.err >&5
5019 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5020 cat conftest.out >&5
5021 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5022 lt_cv_nm_interface="MS dumpbin"
5023 fi
5024 rm -f conftest*
5025 fi
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5027 $as_echo "$lt_cv_nm_interface" >&6; }
5028
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5030 $as_echo_n "checking whether ln -s works... " >&6; }
5031 LN_S=$as_ln_s
5032 if test "$LN_S" = "ln -s"; then
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5034 $as_echo "yes" >&6; }
5035 else
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5037 $as_echo "no, using $LN_S" >&6; }
5038 fi
5039
5040 # find the maximum length of command line arguments
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5042 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5043 if ${lt_cv_sys_max_cmd_len+:} false; then :
5044 $as_echo_n "(cached) " >&6
5045 else
5046 i=0
5047 teststring="ABCD"
5048
5049 case $build_os in
5050 msdosdjgpp*)
5051 # On DJGPP, this test can blow up pretty badly due to problems in libc
5052 # (any single argument exceeding 2000 bytes causes a buffer overrun
5053 # during glob expansion). Even if it were fixed, the result of this
5054 # check would be larger than it should be.
5055 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5056 ;;
5057
5058 gnu*)
5059 # Under GNU Hurd, this test is not required because there is
5060 # no limit to the length of command line arguments.
5061 # Libtool will interpret -1 as no limit whatsoever
5062 lt_cv_sys_max_cmd_len=-1;
5063 ;;
5064
5065 cygwin* | mingw* | cegcc*)
5066 # On Win9x/ME, this test blows up -- it succeeds, but takes
5067 # about 5 minutes as the teststring grows exponentially.
5068 # Worse, since 9x/ME are not pre-emptively multitasking,
5069 # you end up with a "frozen" computer, even though with patience
5070 # the test eventually succeeds (with a max line length of 256k).
5071 # Instead, let's just punt: use the minimum linelength reported by
5072 # all of the supported platforms: 8192 (on NT/2K/XP).
5073 lt_cv_sys_max_cmd_len=8192;
5074 ;;
5075
5076 mint*)
5077 # On MiNT this can take a long time and run out of memory.
5078 lt_cv_sys_max_cmd_len=8192;
5079 ;;
5080
5081 amigaos*)
5082 # On AmigaOS with pdksh, this test takes hours, literally.
5083 # So we just punt and use a minimum line length of 8192.
5084 lt_cv_sys_max_cmd_len=8192;
5085 ;;
5086
5087 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5088 # This has been around since 386BSD, at least. Likely further.
5089 if test -x /sbin/sysctl; then
5090 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5091 elif test -x /usr/sbin/sysctl; then
5092 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5093 else
5094 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5095 fi
5096 # And add a safety zone
5097 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5098 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5099 ;;
5100
5101 interix*)
5102 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5103 lt_cv_sys_max_cmd_len=196608
5104 ;;
5105
5106 osf*)
5107 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5108 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5109 # nice to cause kernel panics so lets avoid the loop below.
5110 # First set a reasonable default.
5111 lt_cv_sys_max_cmd_len=16384
5112 #
5113 if test -x /sbin/sysconfig; then
5114 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5115 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5116 esac
5117 fi
5118 ;;
5119 sco3.2v5*)
5120 lt_cv_sys_max_cmd_len=102400
5121 ;;
5122 sysv5* | sco5v6* | sysv4.2uw2*)
5123 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5124 if test -n "$kargmax"; then
5125 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5126 else
5127 lt_cv_sys_max_cmd_len=32768
5128 fi
5129 ;;
5130 *)
5131 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5132 if test -n "$lt_cv_sys_max_cmd_len"; then
5133 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5134 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5135 else
5136 # Make teststring a little bigger before we do anything with it.
5137 # a 1K string should be a reasonable start.
5138 for i in 1 2 3 4 5 6 7 8 ; do
5139 teststring=$teststring$teststring
5140 done
5141 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5142 # If test is not a shell built-in, we'll probably end up computing a
5143 # maximum length that is only half of the actual maximum length, but
5144 # we can't tell.
5145 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5146 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5147 test $i != 17 # 1/2 MB should be enough
5148 do
5149 i=`expr $i + 1`
5150 teststring=$teststring$teststring
5151 done
5152 # Only check the string length outside the loop.
5153 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5154 teststring=
5155 # Add a significant safety factor because C++ compilers can tack on
5156 # massive amounts of additional arguments before passing them to the
5157 # linker. It appears as though 1/2 is a usable value.
5158 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5159 fi
5160 ;;
5161 esac
5162
5163 fi
5164
5165 if test -n $lt_cv_sys_max_cmd_len ; then
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5167 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5168 else
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5170 $as_echo "none" >&6; }
5171 fi
5172 max_cmd_len=$lt_cv_sys_max_cmd_len
5173
5174
5175
5176
5177
5178
5179 : ${CP="cp -f"}
5180 : ${MV="mv -f"}
5181 : ${RM="rm -f"}
5182
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5184 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5185 # Try some XSI features
5186 xsi_shell=no
5187 ( _lt_dummy="a/b/c"
5188 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5189 = c,a/b,b/c, \
5190 && eval 'test $(( 1 + 1 )) -eq 2 \
5191 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5192 && xsi_shell=yes
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5194 $as_echo "$xsi_shell" >&6; }
5195
5196
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5198 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5199 lt_shell_append=no
5200 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5201 >/dev/null 2>&1 \
5202 && lt_shell_append=yes
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5204 $as_echo "$lt_shell_append" >&6; }
5205
5206
5207 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5208 lt_unset=unset
5209 else
5210 lt_unset=false
5211 fi
5212
5213
5214
5215
5216
5217 # test EBCDIC or ASCII
5218 case `echo X|tr X '\101'` in
5219 A) # ASCII based system
5220 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5221 lt_SP2NL='tr \040 \012'
5222 lt_NL2SP='tr \015\012 \040\040'
5223 ;;
5224 *) # EBCDIC based system
5225 lt_SP2NL='tr \100 \n'
5226 lt_NL2SP='tr \r\n \100\100'
5227 ;;
5228 esac
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5239 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5240 if ${lt_cv_to_host_file_cmd+:} false; then :
5241 $as_echo_n "(cached) " >&6
5242 else
5243 case $host in
5244 *-*-mingw* )
5245 case $build in
5246 *-*-mingw* ) # actually msys
5247 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5248 ;;
5249 *-*-cygwin* )
5250 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5251 ;;
5252 * ) # otherwise, assume *nix
5253 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5254 ;;
5255 esac
5256 ;;
5257 *-*-cygwin* )
5258 case $build in
5259 *-*-mingw* ) # actually msys
5260 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5261 ;;
5262 *-*-cygwin* )
5263 lt_cv_to_host_file_cmd=func_convert_file_noop
5264 ;;
5265 * ) # otherwise, assume *nix
5266 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5267 ;;
5268 esac
5269 ;;
5270 * ) # unhandled hosts (and "normal" native builds)
5271 lt_cv_to_host_file_cmd=func_convert_file_noop
5272 ;;
5273 esac
5274
5275 fi
5276
5277 to_host_file_cmd=$lt_cv_to_host_file_cmd
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5279 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5280
5281
5282
5283
5284
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5286 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5287 if ${lt_cv_to_tool_file_cmd+:} false; then :
5288 $as_echo_n "(cached) " >&6
5289 else
5290 #assume ordinary cross tools, or native build.
5291 lt_cv_to_tool_file_cmd=func_convert_file_noop
5292 case $host in
5293 *-*-mingw* )
5294 case $build in
5295 *-*-mingw* ) # actually msys
5296 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5297 ;;
5298 esac
5299 ;;
5300 esac
5301
5302 fi
5303
5304 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5306 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5307
5308
5309
5310
5311
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5313 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5314 if ${lt_cv_ld_reload_flag+:} false; then :
5315 $as_echo_n "(cached) " >&6
5316 else
5317 lt_cv_ld_reload_flag='-r'
5318 fi
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5320 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5321 reload_flag=$lt_cv_ld_reload_flag
5322 case $reload_flag in
5323 "" | " "*) ;;
5324 *) reload_flag=" $reload_flag" ;;
5325 esac
5326 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5327 case $host_os in
5328 cygwin* | mingw* | pw32* | cegcc*)
5329 if test "$GCC" != yes; then
5330 reload_cmds=false
5331 fi
5332 ;;
5333 darwin*)
5334 if test "$GCC" = yes; then
5335 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5336 else
5337 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5338 fi
5339 ;;
5340 esac
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350 if test -n "$ac_tool_prefix"; then
5351 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5352 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5354 $as_echo_n "checking for $ac_word... " >&6; }
5355 if ${ac_cv_prog_OBJDUMP+:} false; then :
5356 $as_echo_n "(cached) " >&6
5357 else
5358 if test -n "$OBJDUMP"; then
5359 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5360 else
5361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5362 for as_dir in $PATH
5363 do
5364 IFS=$as_save_IFS
5365 test -z "$as_dir" && as_dir=.
5366 for ac_exec_ext in '' $ac_executable_extensions; do
5367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5368 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5370 break 2
5371 fi
5372 done
5373 done
5374 IFS=$as_save_IFS
5375
5376 fi
5377 fi
5378 OBJDUMP=$ac_cv_prog_OBJDUMP
5379 if test -n "$OBJDUMP"; then
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5381 $as_echo "$OBJDUMP" >&6; }
5382 else
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5384 $as_echo "no" >&6; }
5385 fi
5386
5387
5388 fi
5389 if test -z "$ac_cv_prog_OBJDUMP"; then
5390 ac_ct_OBJDUMP=$OBJDUMP
5391 # Extract the first word of "objdump", so it can be a program name with args.
5392 set dummy objdump; ac_word=$2
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5394 $as_echo_n "checking for $ac_word... " >&6; }
5395 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5396 $as_echo_n "(cached) " >&6
5397 else
5398 if test -n "$ac_ct_OBJDUMP"; then
5399 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5400 else
5401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5402 for as_dir in $PATH
5403 do
5404 IFS=$as_save_IFS
5405 test -z "$as_dir" && as_dir=.
5406 for ac_exec_ext in '' $ac_executable_extensions; do
5407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5408 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5410 break 2
5411 fi
5412 done
5413 done
5414 IFS=$as_save_IFS
5415
5416 fi
5417 fi
5418 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5419 if test -n "$ac_ct_OBJDUMP"; then
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5421 $as_echo "$ac_ct_OBJDUMP" >&6; }
5422 else
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5424 $as_echo "no" >&6; }
5425 fi
5426
5427 if test "x$ac_ct_OBJDUMP" = x; then
5428 OBJDUMP="false"
5429 else
5430 case $cross_compiling:$ac_tool_warned in
5431 yes:)
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5433 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5434 ac_tool_warned=yes ;;
5435 esac
5436 OBJDUMP=$ac_ct_OBJDUMP
5437 fi
5438 else
5439 OBJDUMP="$ac_cv_prog_OBJDUMP"
5440 fi
5441
5442 test -z "$OBJDUMP" && OBJDUMP=objdump
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5453 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5454 if ${lt_cv_deplibs_check_method+:} false; then :
5455 $as_echo_n "(cached) " >&6
5456 else
5457 lt_cv_file_magic_cmd='$MAGIC_CMD'
5458 lt_cv_file_magic_test_file=
5459 lt_cv_deplibs_check_method='unknown'
5460 # Need to set the preceding variable on all platforms that support
5461 # interlibrary dependencies.
5462 # 'none' -- dependencies not supported.
5463 # `unknown' -- same as none, but documents that we really don't know.
5464 # 'pass_all' -- all dependencies passed with no checks.
5465 # 'test_compile' -- check by making test program.
5466 # 'file_magic [[regex]]' -- check by looking for files in library path
5467 # which responds to the $file_magic_cmd with a given extended regex.
5468 # If you have `file' or equivalent on your system and you're not sure
5469 # whether `pass_all' will *always* work, you probably want this one.
5470
5471 case $host_os in
5472 aix[4-9]*)
5473 lt_cv_deplibs_check_method=pass_all
5474 ;;
5475
5476 beos*)
5477 lt_cv_deplibs_check_method=pass_all
5478 ;;
5479
5480 bsdi[45]*)
5481 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5482 lt_cv_file_magic_cmd='/usr/bin/file -L'
5483 lt_cv_file_magic_test_file=/shlib/libc.so
5484 ;;
5485
5486 cygwin*)
5487 # func_win32_libid is a shell function defined in ltmain.sh
5488 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5489 lt_cv_file_magic_cmd='func_win32_libid'
5490 ;;
5491
5492 mingw* | pw32*)
5493 # Base MSYS/MinGW do not provide the 'file' command needed by
5494 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5495 # unless we find 'file', for example because we are cross-compiling.
5496 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5497 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5498 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5499 lt_cv_file_magic_cmd='func_win32_libid'
5500 else
5501 # Keep this pattern in sync with the one in func_win32_libid.
5502 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5503 lt_cv_file_magic_cmd='$OBJDUMP -f'
5504 fi
5505 ;;
5506
5507 cegcc*)
5508 # use the weaker test based on 'objdump'. See mingw*.
5509 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5510 lt_cv_file_magic_cmd='$OBJDUMP -f'
5511 ;;
5512
5513 darwin* | rhapsody*)
5514 lt_cv_deplibs_check_method=pass_all
5515 ;;
5516
5517 freebsd* | dragonfly*)
5518 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5519 case $host_cpu in
5520 i*86 )
5521 # Not sure whether the presence of OpenBSD here was a mistake.
5522 # Let's accept both of them until this is cleared up.
5523 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5524 lt_cv_file_magic_cmd=/usr/bin/file
5525 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5526 ;;
5527 esac
5528 else
5529 lt_cv_deplibs_check_method=pass_all
5530 fi
5531 ;;
5532
5533 gnu*)
5534 lt_cv_deplibs_check_method=pass_all
5535 ;;
5536
5537 haiku*)
5538 lt_cv_deplibs_check_method=pass_all
5539 ;;
5540
5541 hpux10.20* | hpux11*)
5542 lt_cv_file_magic_cmd=/usr/bin/file
5543 case $host_cpu in
5544 ia64*)
5545 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5546 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5547 ;;
5548 hppa*64*)
5549 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]'
5550 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5551 ;;
5552 *)
5553 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5554 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5555 ;;
5556 esac
5557 ;;
5558
5559 interix[3-9]*)
5560 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5561 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5562 ;;
5563
5564 irix5* | irix6* | nonstopux*)
5565 case $LD in
5566 *-32|*"-32 ") libmagic=32-bit;;
5567 *-n32|*"-n32 ") libmagic=N32;;
5568 *-64|*"-64 ") libmagic=64-bit;;
5569 *) libmagic=never-match;;
5570 esac
5571 lt_cv_deplibs_check_method=pass_all
5572 ;;
5573
5574 # This must be Linux ELF.
5575 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5576 lt_cv_deplibs_check_method=pass_all
5577 ;;
5578
5579 netbsd* | netbsdelf*-gnu)
5580 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5581 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5582 else
5583 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5584 fi
5585 ;;
5586
5587 newos6*)
5588 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5589 lt_cv_file_magic_cmd=/usr/bin/file
5590 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5591 ;;
5592
5593 *nto* | *qnx*)
5594 lt_cv_deplibs_check_method=pass_all
5595 ;;
5596
5597 openbsd*)
5598 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5599 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5600 else
5601 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5602 fi
5603 ;;
5604
5605 osf3* | osf4* | osf5*)
5606 lt_cv_deplibs_check_method=pass_all
5607 ;;
5608
5609 rdos*)
5610 lt_cv_deplibs_check_method=pass_all
5611 ;;
5612
5613 solaris*)
5614 lt_cv_deplibs_check_method=pass_all
5615 ;;
5616
5617 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5618 lt_cv_deplibs_check_method=pass_all
5619 ;;
5620
5621 sysv4 | sysv4.3*)
5622 case $host_vendor in
5623 motorola)
5624 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]'
5625 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5626 ;;
5627 ncr)
5628 lt_cv_deplibs_check_method=pass_all
5629 ;;
5630 sequent)
5631 lt_cv_file_magic_cmd='/bin/file'
5632 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5633 ;;
5634 sni)
5635 lt_cv_file_magic_cmd='/bin/file'
5636 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5637 lt_cv_file_magic_test_file=/lib/libc.so
5638 ;;
5639 siemens)
5640 lt_cv_deplibs_check_method=pass_all
5641 ;;
5642 pc)
5643 lt_cv_deplibs_check_method=pass_all
5644 ;;
5645 esac
5646 ;;
5647
5648 tpf*)
5649 lt_cv_deplibs_check_method=pass_all
5650 ;;
5651 esac
5652
5653 fi
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5655 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5656
5657 file_magic_glob=
5658 want_nocaseglob=no
5659 if test "$build" = "$host"; then
5660 case $host_os in
5661 mingw* | pw32*)
5662 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5663 want_nocaseglob=yes
5664 else
5665 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5666 fi
5667 ;;
5668 esac
5669 fi
5670
5671 file_magic_cmd=$lt_cv_file_magic_cmd
5672 deplibs_check_method=$lt_cv_deplibs_check_method
5673 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696 if test -n "$ac_tool_prefix"; then
5697 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5698 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5700 $as_echo_n "checking for $ac_word... " >&6; }
5701 if ${ac_cv_prog_DLLTOOL+:} false; then :
5702 $as_echo_n "(cached) " >&6
5703 else
5704 if test -n "$DLLTOOL"; then
5705 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5706 else
5707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5708 for as_dir in $PATH
5709 do
5710 IFS=$as_save_IFS
5711 test -z "$as_dir" && as_dir=.
5712 for ac_exec_ext in '' $ac_executable_extensions; do
5713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5714 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5716 break 2
5717 fi
5718 done
5719 done
5720 IFS=$as_save_IFS
5721
5722 fi
5723 fi
5724 DLLTOOL=$ac_cv_prog_DLLTOOL
5725 if test -n "$DLLTOOL"; then
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5727 $as_echo "$DLLTOOL" >&6; }
5728 else
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5730 $as_echo "no" >&6; }
5731 fi
5732
5733
5734 fi
5735 if test -z "$ac_cv_prog_DLLTOOL"; then
5736 ac_ct_DLLTOOL=$DLLTOOL
5737 # Extract the first word of "dlltool", so it can be a program name with args.
5738 set dummy dlltool; ac_word=$2
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5740 $as_echo_n "checking for $ac_word... " >&6; }
5741 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5742 $as_echo_n "(cached) " >&6
5743 else
5744 if test -n "$ac_ct_DLLTOOL"; then
5745 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5746 else
5747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5748 for as_dir in $PATH
5749 do
5750 IFS=$as_save_IFS
5751 test -z "$as_dir" && as_dir=.
5752 for ac_exec_ext in '' $ac_executable_extensions; do
5753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5754 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5756 break 2
5757 fi
5758 done
5759 done
5760 IFS=$as_save_IFS
5761
5762 fi
5763 fi
5764 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5765 if test -n "$ac_ct_DLLTOOL"; then
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5767 $as_echo "$ac_ct_DLLTOOL" >&6; }
5768 else
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5770 $as_echo "no" >&6; }
5771 fi
5772
5773 if test "x$ac_ct_DLLTOOL" = x; then
5774 DLLTOOL="false"
5775 else
5776 case $cross_compiling:$ac_tool_warned in
5777 yes:)
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5779 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5780 ac_tool_warned=yes ;;
5781 esac
5782 DLLTOOL=$ac_ct_DLLTOOL
5783 fi
5784 else
5785 DLLTOOL="$ac_cv_prog_DLLTOOL"
5786 fi
5787
5788 test -z "$DLLTOOL" && DLLTOOL=dlltool
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5800 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5801 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5802 $as_echo_n "(cached) " >&6
5803 else
5804 lt_cv_sharedlib_from_linklib_cmd='unknown'
5805
5806 case $host_os in
5807 cygwin* | mingw* | pw32* | cegcc*)
5808 # two different shell functions defined in ltmain.sh
5809 # decide which to use based on capabilities of $DLLTOOL
5810 case `$DLLTOOL --help 2>&1` in
5811 *--identify-strict*)
5812 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5813 ;;
5814 *)
5815 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5816 ;;
5817 esac
5818 ;;
5819 *)
5820 # fallback: assume linklib IS sharedlib
5821 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5822 ;;
5823 esac
5824
5825 fi
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5827 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5828 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5829 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5830
5831
5832
5833
5834
5835
5836
5837 if test -n "$ac_tool_prefix"; then
5838 for ac_prog in ar
5839 do
5840 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5841 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5843 $as_echo_n "checking for $ac_word... " >&6; }
5844 if ${ac_cv_prog_AR+:} false; then :
5845 $as_echo_n "(cached) " >&6
5846 else
5847 if test -n "$AR"; then
5848 ac_cv_prog_AR="$AR" # Let the user override the test.
5849 else
5850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5851 for as_dir in $PATH
5852 do
5853 IFS=$as_save_IFS
5854 test -z "$as_dir" && as_dir=.
5855 for ac_exec_ext in '' $ac_executable_extensions; do
5856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5857 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5859 break 2
5860 fi
5861 done
5862 done
5863 IFS=$as_save_IFS
5864
5865 fi
5866 fi
5867 AR=$ac_cv_prog_AR
5868 if test -n "$AR"; then
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5870 $as_echo "$AR" >&6; }
5871 else
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5873 $as_echo "no" >&6; }
5874 fi
5875
5876
5877 test -n "$AR" && break
5878 done
5879 fi
5880 if test -z "$AR"; then
5881 ac_ct_AR=$AR
5882 for ac_prog in ar
5883 do
5884 # Extract the first word of "$ac_prog", so it can be a program name with args.
5885 set dummy $ac_prog; ac_word=$2
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5887 $as_echo_n "checking for $ac_word... " >&6; }
5888 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5889 $as_echo_n "(cached) " >&6
5890 else
5891 if test -n "$ac_ct_AR"; then
5892 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5893 else
5894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5895 for as_dir in $PATH
5896 do
5897 IFS=$as_save_IFS
5898 test -z "$as_dir" && as_dir=.
5899 for ac_exec_ext in '' $ac_executable_extensions; do
5900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5901 ac_cv_prog_ac_ct_AR="$ac_prog"
5902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5903 break 2
5904 fi
5905 done
5906 done
5907 IFS=$as_save_IFS
5908
5909 fi
5910 fi
5911 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5912 if test -n "$ac_ct_AR"; then
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5914 $as_echo "$ac_ct_AR" >&6; }
5915 else
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5917 $as_echo "no" >&6; }
5918 fi
5919
5920
5921 test -n "$ac_ct_AR" && break
5922 done
5923
5924 if test "x$ac_ct_AR" = x; then
5925 AR="false"
5926 else
5927 case $cross_compiling:$ac_tool_warned in
5928 yes:)
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5930 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5931 ac_tool_warned=yes ;;
5932 esac
5933 AR=$ac_ct_AR
5934 fi
5935 fi
5936
5937 : ${AR=ar}
5938 : ${AR_FLAGS=cru}
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5951 $as_echo_n "checking for archiver @FILE support... " >&6; }
5952 if ${lt_cv_ar_at_file+:} false; then :
5953 $as_echo_n "(cached) " >&6
5954 else
5955 lt_cv_ar_at_file=no
5956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5957 /* end confdefs.h. */
5958
5959 int
5960 main ()
5961 {
5962
5963 ;
5964 return 0;
5965 }
5966 _ACEOF
5967 if ac_fn_c_try_compile "$LINENO"; then :
5968 echo conftest.$ac_objext > conftest.lst
5969 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5970 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5971 (eval $lt_ar_try) 2>&5
5972 ac_status=$?
5973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5974 test $ac_status = 0; }
5975 if test "$ac_status" -eq 0; then
5976 # Ensure the archiver fails upon bogus file names.
5977 rm -f conftest.$ac_objext libconftest.a
5978 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5979 (eval $lt_ar_try) 2>&5
5980 ac_status=$?
5981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5982 test $ac_status = 0; }
5983 if test "$ac_status" -ne 0; then
5984 lt_cv_ar_at_file=@
5985 fi
5986 fi
5987 rm -f conftest.* libconftest.a
5988
5989 fi
5990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5991
5992 fi
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5994 $as_echo "$lt_cv_ar_at_file" >&6; }
5995
5996 if test "x$lt_cv_ar_at_file" = xno; then
5997 archiver_list_spec=
5998 else
5999 archiver_list_spec=$lt_cv_ar_at_file
6000 fi
6001
6002
6003
6004
6005
6006
6007
6008 if test -n "$ac_tool_prefix"; then
6009 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6010 set dummy ${ac_tool_prefix}strip; ac_word=$2
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6012 $as_echo_n "checking for $ac_word... " >&6; }
6013 if ${ac_cv_prog_STRIP+:} false; then :
6014 $as_echo_n "(cached) " >&6
6015 else
6016 if test -n "$STRIP"; then
6017 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6018 else
6019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6020 for as_dir in $PATH
6021 do
6022 IFS=$as_save_IFS
6023 test -z "$as_dir" && as_dir=.
6024 for ac_exec_ext in '' $ac_executable_extensions; do
6025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6026 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6028 break 2
6029 fi
6030 done
6031 done
6032 IFS=$as_save_IFS
6033
6034 fi
6035 fi
6036 STRIP=$ac_cv_prog_STRIP
6037 if test -n "$STRIP"; then
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6039 $as_echo "$STRIP" >&6; }
6040 else
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6042 $as_echo "no" >&6; }
6043 fi
6044
6045
6046 fi
6047 if test -z "$ac_cv_prog_STRIP"; then
6048 ac_ct_STRIP=$STRIP
6049 # Extract the first word of "strip", so it can be a program name with args.
6050 set dummy strip; ac_word=$2
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6052 $as_echo_n "checking for $ac_word... " >&6; }
6053 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6054 $as_echo_n "(cached) " >&6
6055 else
6056 if test -n "$ac_ct_STRIP"; then
6057 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6058 else
6059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060 for as_dir in $PATH
6061 do
6062 IFS=$as_save_IFS
6063 test -z "$as_dir" && as_dir=.
6064 for ac_exec_ext in '' $ac_executable_extensions; do
6065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6066 ac_cv_prog_ac_ct_STRIP="strip"
6067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6068 break 2
6069 fi
6070 done
6071 done
6072 IFS=$as_save_IFS
6073
6074 fi
6075 fi
6076 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6077 if test -n "$ac_ct_STRIP"; then
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6079 $as_echo "$ac_ct_STRIP" >&6; }
6080 else
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6082 $as_echo "no" >&6; }
6083 fi
6084
6085 if test "x$ac_ct_STRIP" = x; then
6086 STRIP=":"
6087 else
6088 case $cross_compiling:$ac_tool_warned in
6089 yes:)
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6091 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6092 ac_tool_warned=yes ;;
6093 esac
6094 STRIP=$ac_ct_STRIP
6095 fi
6096 else
6097 STRIP="$ac_cv_prog_STRIP"
6098 fi
6099
6100 test -z "$STRIP" && STRIP=:
6101
6102
6103
6104
6105
6106
6107 if test -n "$ac_tool_prefix"; then
6108 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6109 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6111 $as_echo_n "checking for $ac_word... " >&6; }
6112 if ${ac_cv_prog_RANLIB+:} false; then :
6113 $as_echo_n "(cached) " >&6
6114 else
6115 if test -n "$RANLIB"; then
6116 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6117 else
6118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6119 for as_dir in $PATH
6120 do
6121 IFS=$as_save_IFS
6122 test -z "$as_dir" && as_dir=.
6123 for ac_exec_ext in '' $ac_executable_extensions; do
6124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6125 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6127 break 2
6128 fi
6129 done
6130 done
6131 IFS=$as_save_IFS
6132
6133 fi
6134 fi
6135 RANLIB=$ac_cv_prog_RANLIB
6136 if test -n "$RANLIB"; then
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6138 $as_echo "$RANLIB" >&6; }
6139 else
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6141 $as_echo "no" >&6; }
6142 fi
6143
6144
6145 fi
6146 if test -z "$ac_cv_prog_RANLIB"; then
6147 ac_ct_RANLIB=$RANLIB
6148 # Extract the first word of "ranlib", so it can be a program name with args.
6149 set dummy ranlib; ac_word=$2
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6151 $as_echo_n "checking for $ac_word... " >&6; }
6152 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6153 $as_echo_n "(cached) " >&6
6154 else
6155 if test -n "$ac_ct_RANLIB"; then
6156 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6157 else
6158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6159 for as_dir in $PATH
6160 do
6161 IFS=$as_save_IFS
6162 test -z "$as_dir" && as_dir=.
6163 for ac_exec_ext in '' $ac_executable_extensions; do
6164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6165 ac_cv_prog_ac_ct_RANLIB="ranlib"
6166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6167 break 2
6168 fi
6169 done
6170 done
6171 IFS=$as_save_IFS
6172
6173 fi
6174 fi
6175 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6176 if test -n "$ac_ct_RANLIB"; then
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6178 $as_echo "$ac_ct_RANLIB" >&6; }
6179 else
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6181 $as_echo "no" >&6; }
6182 fi
6183
6184 if test "x$ac_ct_RANLIB" = x; then
6185 RANLIB=":"
6186 else
6187 case $cross_compiling:$ac_tool_warned in
6188 yes:)
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6190 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6191 ac_tool_warned=yes ;;
6192 esac
6193 RANLIB=$ac_ct_RANLIB
6194 fi
6195 else
6196 RANLIB="$ac_cv_prog_RANLIB"
6197 fi
6198
6199 test -z "$RANLIB" && RANLIB=:
6200
6201
6202
6203
6204
6205
6206 # Determine commands to create old-style static archives.
6207 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6208 old_postinstall_cmds='chmod 644 $oldlib'
6209 old_postuninstall_cmds=
6210
6211 if test -n "$RANLIB"; then
6212 case $host_os in
6213 openbsd*)
6214 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6215 ;;
6216 *)
6217 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6218 ;;
6219 esac
6220 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6221 fi
6222
6223 case $host_os in
6224 darwin*)
6225 lock_old_archive_extraction=yes ;;
6226 *)
6227 lock_old_archive_extraction=no ;;
6228 esac
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268 # If no C compiler was specified, use CC.
6269 LTCC=${LTCC-"$CC"}
6270
6271 # If no C compiler flags were specified, use CFLAGS.
6272 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6273
6274 # Allow CC to be a program name with arguments.
6275 compiler=$CC
6276
6277
6278 # Check for command to grab the raw symbol name followed by C symbol from nm.
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6280 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6281 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6282 $as_echo_n "(cached) " >&6
6283 else
6284
6285 # These are sane defaults that work on at least a few old systems.
6286 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6287
6288 # Character class describing NM global symbol codes.
6289 symcode='[BCDEGRST]'
6290
6291 # Regexp to match symbols that can be accessed directly from C.
6292 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6293
6294 # Define system-specific variables.
6295 case $host_os in
6296 aix*)
6297 symcode='[BCDT]'
6298 ;;
6299 cygwin* | mingw* | pw32* | cegcc*)
6300 symcode='[ABCDGISTW]'
6301 ;;
6302 hpux*)
6303 if test "$host_cpu" = ia64; then
6304 symcode='[ABCDEGRST]'
6305 fi
6306 ;;
6307 irix* | nonstopux*)
6308 symcode='[BCDEGRST]'
6309 ;;
6310 osf*)
6311 symcode='[BCDEGQRST]'
6312 ;;
6313 solaris*)
6314 symcode='[BDRT]'
6315 ;;
6316 sco3.2v5*)
6317 symcode='[DT]'
6318 ;;
6319 sysv4.2uw2*)
6320 symcode='[DT]'
6321 ;;
6322 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6323 symcode='[ABDT]'
6324 ;;
6325 sysv4)
6326 symcode='[DFNSTU]'
6327 ;;
6328 esac
6329
6330 # If we're using GNU nm, then use its standard symbol codes.
6331 case `$NM -V 2>&1` in
6332 *GNU* | *'with BFD'*)
6333 symcode='[ABCDGIRSTW]' ;;
6334 esac
6335
6336 # Transform an extracted symbol line into a proper C declaration.
6337 # Some systems (esp. on ia64) link data and code symbols differently,
6338 # so use this general approach.
6339 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6340
6341 # Transform an extracted symbol line into symbol name and symbol address
6342 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6343 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'"
6344
6345 # Handle CRLF in mingw tool chain
6346 opt_cr=
6347 case $build_os in
6348 mingw*)
6349 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6350 ;;
6351 esac
6352
6353 # Try without a prefix underscore, then with it.
6354 for ac_symprfx in "" "_"; do
6355
6356 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6357 symxfrm="\\1 $ac_symprfx\\2 \\2"
6358
6359 # Write the raw and C identifiers.
6360 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6361 # Fake it for dumpbin and say T for any non-static function
6362 # and D for any global variable.
6363 # Also find C++ and __fastcall symbols from MSVC++,
6364 # which start with @ or ?.
6365 lt_cv_sys_global_symbol_pipe="$AWK '"\
6366 " {last_section=section; section=\$ 3};"\
6367 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6368 " \$ 0!~/External *\|/{next};"\
6369 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6370 " {if(hide[section]) next};"\
6371 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6372 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6373 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6374 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6375 " ' prfx=^$ac_symprfx"
6376 else
6377 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6378 fi
6379 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6380
6381 # Check to see that the pipe works correctly.
6382 pipe_works=no
6383
6384 rm -f conftest*
6385 cat > conftest.$ac_ext <<_LT_EOF
6386 #ifdef __cplusplus
6387 extern "C" {
6388 #endif
6389 char nm_test_var;
6390 void nm_test_func(void);
6391 void nm_test_func(void){}
6392 #ifdef __cplusplus
6393 }
6394 #endif
6395 int main(){nm_test_var='a';nm_test_func();return(0);}
6396 _LT_EOF
6397
6398 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6399 (eval $ac_compile) 2>&5
6400 ac_status=$?
6401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6402 test $ac_status = 0; }; then
6403 # Now try to grab the symbols.
6404 nlist=conftest.nm
6405 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6406 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6407 ac_status=$?
6408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6409 test $ac_status = 0; } && test -s "$nlist"; then
6410 # Try sorting and uniquifying the output.
6411 if sort "$nlist" | uniq > "$nlist"T; then
6412 mv -f "$nlist"T "$nlist"
6413 else
6414 rm -f "$nlist"T
6415 fi
6416
6417 # Make sure that we snagged all the symbols we need.
6418 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6419 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6420 cat <<_LT_EOF > conftest.$ac_ext
6421 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6422 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6423 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6424 relocations are performed -- see ld's documentation on pseudo-relocs. */
6425 # define LT_DLSYM_CONST
6426 #elif defined(__osf__)
6427 /* This system does not cope well with relocations in const data. */
6428 # define LT_DLSYM_CONST
6429 #else
6430 # define LT_DLSYM_CONST const
6431 #endif
6432
6433 #ifdef __cplusplus
6434 extern "C" {
6435 #endif
6436
6437 _LT_EOF
6438 # Now generate the symbol file.
6439 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6440
6441 cat <<_LT_EOF >> conftest.$ac_ext
6442
6443 /* The mapping between symbol names and symbols. */
6444 LT_DLSYM_CONST struct {
6445 const char *name;
6446 void *address;
6447 }
6448 lt__PROGRAM__LTX_preloaded_symbols[] =
6449 {
6450 { "@PROGRAM@", (void *) 0 },
6451 _LT_EOF
6452 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6453 cat <<\_LT_EOF >> conftest.$ac_ext
6454 {0, (void *) 0}
6455 };
6456
6457 /* This works around a problem in FreeBSD linker */
6458 #ifdef FREEBSD_WORKAROUND
6459 static const void *lt_preloaded_setup() {
6460 return lt__PROGRAM__LTX_preloaded_symbols;
6461 }
6462 #endif
6463
6464 #ifdef __cplusplus
6465 }
6466 #endif
6467 _LT_EOF
6468 # Now try linking the two files.
6469 mv conftest.$ac_objext conftstm.$ac_objext
6470 lt_globsym_save_LIBS=$LIBS
6471 lt_globsym_save_CFLAGS=$CFLAGS
6472 LIBS="conftstm.$ac_objext"
6473 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6474 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6475 (eval $ac_link) 2>&5
6476 ac_status=$?
6477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6478 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6479 pipe_works=yes
6480 fi
6481 LIBS=$lt_globsym_save_LIBS
6482 CFLAGS=$lt_globsym_save_CFLAGS
6483 else
6484 echo "cannot find nm_test_func in $nlist" >&5
6485 fi
6486 else
6487 echo "cannot find nm_test_var in $nlist" >&5
6488 fi
6489 else
6490 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6491 fi
6492 else
6493 echo "$progname: failed program was:" >&5
6494 cat conftest.$ac_ext >&5
6495 fi
6496 rm -rf conftest* conftst*
6497
6498 # Do not use the global_symbol_pipe unless it works.
6499 if test "$pipe_works" = yes; then
6500 break
6501 else
6502 lt_cv_sys_global_symbol_pipe=
6503 fi
6504 done
6505
6506 fi
6507
6508 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6509 lt_cv_sys_global_symbol_to_cdecl=
6510 fi
6511 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6513 $as_echo "failed" >&6; }
6514 else
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6516 $as_echo "ok" >&6; }
6517 fi
6518
6519 # Response file support.
6520 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6521 nm_file_list_spec='@'
6522 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6523 nm_file_list_spec='@'
6524 fi
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6553 $as_echo_n "checking for sysroot... " >&6; }
6554
6555 # Check whether --with-sysroot was given.
6556 if test "${with_sysroot+set}" = set; then :
6557 withval=$with_sysroot;
6558 else
6559 with_sysroot=no
6560 fi
6561
6562
6563 lt_sysroot=
6564 case ${with_sysroot} in #(
6565 yes)
6566 if test "$GCC" = yes; then
6567 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6568 fi
6569 ;; #(
6570 /*)
6571 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6572 ;; #(
6573 no|'')
6574 ;; #(
6575 *)
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6577 $as_echo "${with_sysroot}" >&6; }
6578 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6579 ;;
6580 esac
6581
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6583 $as_echo "${lt_sysroot:-no}" >&6; }
6584
6585
6586
6587
6588
6589 # Check whether --enable-libtool-lock was given.
6590 if test "${enable_libtool_lock+set}" = set; then :
6591 enableval=$enable_libtool_lock;
6592 fi
6593
6594 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6595
6596 # Some flags need to be propagated to the compiler or linker for good
6597 # libtool support.
6598 case $host in
6599 ia64-*-hpux*)
6600 # Find out which ABI we are using.
6601 echo 'int i;' > conftest.$ac_ext
6602 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6603 (eval $ac_compile) 2>&5
6604 ac_status=$?
6605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6606 test $ac_status = 0; }; then
6607 case `/usr/bin/file conftest.$ac_objext` in
6608 *ELF-32*)
6609 HPUX_IA64_MODE="32"
6610 ;;
6611 *ELF-64*)
6612 HPUX_IA64_MODE="64"
6613 ;;
6614 esac
6615 fi
6616 rm -rf conftest*
6617 ;;
6618 *-*-irix6*)
6619 # Find out which ABI we are using.
6620 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6621 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6622 (eval $ac_compile) 2>&5
6623 ac_status=$?
6624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6625 test $ac_status = 0; }; then
6626 if test "$lt_cv_prog_gnu_ld" = yes; then
6627 case `/usr/bin/file conftest.$ac_objext` in
6628 *32-bit*)
6629 LD="${LD-ld} -melf32bsmip"
6630 ;;
6631 *N32*)
6632 LD="${LD-ld} -melf32bmipn32"
6633 ;;
6634 *64-bit*)
6635 LD="${LD-ld} -melf64bmip"
6636 ;;
6637 esac
6638 else
6639 case `/usr/bin/file conftest.$ac_objext` in
6640 *32-bit*)
6641 LD="${LD-ld} -32"
6642 ;;
6643 *N32*)
6644 LD="${LD-ld} -n32"
6645 ;;
6646 *64-bit*)
6647 LD="${LD-ld} -64"
6648 ;;
6649 esac
6650 fi
6651 fi
6652 rm -rf conftest*
6653 ;;
6654
6655 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6656 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6657 # Find out which ABI we are using.
6658 echo 'int i;' > conftest.$ac_ext
6659 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6660 (eval $ac_compile) 2>&5
6661 ac_status=$?
6662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6663 test $ac_status = 0; }; then
6664 case `/usr/bin/file conftest.o` in
6665 *32-bit*)
6666 case $host in
6667 x86_64-*kfreebsd*-gnu)
6668 LD="${LD-ld} -m elf_i386_fbsd"
6669 ;;
6670 x86_64-*linux*)
6671 LD="${LD-ld} -m elf_i386"
6672 ;;
6673 ppc64-*linux*|powerpc64-*linux*)
6674 LD="${LD-ld} -m elf32ppclinux"
6675 ;;
6676 s390x-*linux*)
6677 LD="${LD-ld} -m elf_s390"
6678 ;;
6679 sparc64-*linux*)
6680 LD="${LD-ld} -m elf32_sparc"
6681 ;;
6682 esac
6683 ;;
6684 *64-bit*)
6685 case $host in
6686 x86_64-*kfreebsd*-gnu)
6687 LD="${LD-ld} -m elf_x86_64_fbsd"
6688 ;;
6689 x86_64-*linux*)
6690 LD="${LD-ld} -m elf_x86_64"
6691 ;;
6692 ppc*-*linux*|powerpc*-*linux*)
6693 LD="${LD-ld} -m elf64ppc"
6694 ;;
6695 s390*-*linux*|s390*-*tpf*)
6696 LD="${LD-ld} -m elf64_s390"
6697 ;;
6698 sparc*-*linux*)
6699 LD="${LD-ld} -m elf64_sparc"
6700 ;;
6701 esac
6702 ;;
6703 esac
6704 fi
6705 rm -rf conftest*
6706 ;;
6707
6708 *-*-sco3.2v5*)
6709 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6710 SAVE_CFLAGS="$CFLAGS"
6711 CFLAGS="$CFLAGS -belf"
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6713 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6714 if ${lt_cv_cc_needs_belf+:} false; then :
6715 $as_echo_n "(cached) " >&6
6716 else
6717 ac_ext=c
6718 ac_cpp='$CPP $CPPFLAGS'
6719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6722
6723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6724 /* end confdefs.h. */
6725
6726 int
6727 main ()
6728 {
6729
6730 ;
6731 return 0;
6732 }
6733 _ACEOF
6734 if ac_fn_c_try_link "$LINENO"; then :
6735 lt_cv_cc_needs_belf=yes
6736 else
6737 lt_cv_cc_needs_belf=no
6738 fi
6739 rm -f core conftest.err conftest.$ac_objext \
6740 conftest$ac_exeext conftest.$ac_ext
6741 ac_ext=c
6742 ac_cpp='$CPP $CPPFLAGS'
6743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6746
6747 fi
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6749 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6750 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6751 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6752 CFLAGS="$SAVE_CFLAGS"
6753 fi
6754 ;;
6755 sparc*-*solaris*)
6756 # Find out which ABI we are using.
6757 echo 'int i;' > conftest.$ac_ext
6758 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6759 (eval $ac_compile) 2>&5
6760 ac_status=$?
6761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6762 test $ac_status = 0; }; then
6763 case `/usr/bin/file conftest.o` in
6764 *64-bit*)
6765 case $lt_cv_prog_gnu_ld in
6766 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6767 *)
6768 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6769 LD="${LD-ld} -64"
6770 fi
6771 ;;
6772 esac
6773 ;;
6774 esac
6775 fi
6776 rm -rf conftest*
6777 ;;
6778 esac
6779
6780 need_locks="$enable_libtool_lock"
6781
6782 if test -n "$ac_tool_prefix"; then
6783 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6784 set dummy ${ac_tool_prefix}mt; ac_word=$2
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6786 $as_echo_n "checking for $ac_word... " >&6; }
6787 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6788 $as_echo_n "(cached) " >&6
6789 else
6790 if test -n "$MANIFEST_TOOL"; then
6791 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6792 else
6793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6794 for as_dir in $PATH
6795 do
6796 IFS=$as_save_IFS
6797 test -z "$as_dir" && as_dir=.
6798 for ac_exec_ext in '' $ac_executable_extensions; do
6799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6800 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6802 break 2
6803 fi
6804 done
6805 done
6806 IFS=$as_save_IFS
6807
6808 fi
6809 fi
6810 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6811 if test -n "$MANIFEST_TOOL"; then
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6813 $as_echo "$MANIFEST_TOOL" >&6; }
6814 else
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6816 $as_echo "no" >&6; }
6817 fi
6818
6819
6820 fi
6821 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6822 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6823 # Extract the first word of "mt", so it can be a program name with args.
6824 set dummy mt; ac_word=$2
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6826 $as_echo_n "checking for $ac_word... " >&6; }
6827 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6828 $as_echo_n "(cached) " >&6
6829 else
6830 if test -n "$ac_ct_MANIFEST_TOOL"; then
6831 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6832 else
6833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6834 for as_dir in $PATH
6835 do
6836 IFS=$as_save_IFS
6837 test -z "$as_dir" && as_dir=.
6838 for ac_exec_ext in '' $ac_executable_extensions; do
6839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6840 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6842 break 2
6843 fi
6844 done
6845 done
6846 IFS=$as_save_IFS
6847
6848 fi
6849 fi
6850 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6851 if test -n "$ac_ct_MANIFEST_TOOL"; then
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6853 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6854 else
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6856 $as_echo "no" >&6; }
6857 fi
6858
6859 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6860 MANIFEST_TOOL=":"
6861 else
6862 case $cross_compiling:$ac_tool_warned in
6863 yes:)
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6865 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6866 ac_tool_warned=yes ;;
6867 esac
6868 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6869 fi
6870 else
6871 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6872 fi
6873
6874 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6876 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6877 if ${lt_cv_path_mainfest_tool+:} false; then :
6878 $as_echo_n "(cached) " >&6
6879 else
6880 lt_cv_path_mainfest_tool=no
6881 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6882 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6883 cat conftest.err >&5
6884 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6885 lt_cv_path_mainfest_tool=yes
6886 fi
6887 rm -f conftest*
6888 fi
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6890 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6891 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6892 MANIFEST_TOOL=:
6893 fi
6894
6895
6896
6897
6898
6899
6900 case $host_os in
6901 rhapsody* | darwin*)
6902 if test -n "$ac_tool_prefix"; then
6903 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6904 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6906 $as_echo_n "checking for $ac_word... " >&6; }
6907 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6908 $as_echo_n "(cached) " >&6
6909 else
6910 if test -n "$DSYMUTIL"; then
6911 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6912 else
6913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6914 for as_dir in $PATH
6915 do
6916 IFS=$as_save_IFS
6917 test -z "$as_dir" && as_dir=.
6918 for ac_exec_ext in '' $ac_executable_extensions; do
6919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6920 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6922 break 2
6923 fi
6924 done
6925 done
6926 IFS=$as_save_IFS
6927
6928 fi
6929 fi
6930 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6931 if test -n "$DSYMUTIL"; then
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6933 $as_echo "$DSYMUTIL" >&6; }
6934 else
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6936 $as_echo "no" >&6; }
6937 fi
6938
6939
6940 fi
6941 if test -z "$ac_cv_prog_DSYMUTIL"; then
6942 ac_ct_DSYMUTIL=$DSYMUTIL
6943 # Extract the first word of "dsymutil", so it can be a program name with args.
6944 set dummy dsymutil; ac_word=$2
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6946 $as_echo_n "checking for $ac_word... " >&6; }
6947 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6948 $as_echo_n "(cached) " >&6
6949 else
6950 if test -n "$ac_ct_DSYMUTIL"; then
6951 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6952 else
6953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6954 for as_dir in $PATH
6955 do
6956 IFS=$as_save_IFS
6957 test -z "$as_dir" && as_dir=.
6958 for ac_exec_ext in '' $ac_executable_extensions; do
6959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6960 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6962 break 2
6963 fi
6964 done
6965 done
6966 IFS=$as_save_IFS
6967
6968 fi
6969 fi
6970 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6971 if test -n "$ac_ct_DSYMUTIL"; then
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6973 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6974 else
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6976 $as_echo "no" >&6; }
6977 fi
6978
6979 if test "x$ac_ct_DSYMUTIL" = x; then
6980 DSYMUTIL=":"
6981 else
6982 case $cross_compiling:$ac_tool_warned in
6983 yes:)
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6985 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6986 ac_tool_warned=yes ;;
6987 esac
6988 DSYMUTIL=$ac_ct_DSYMUTIL
6989 fi
6990 else
6991 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6992 fi
6993
6994 if test -n "$ac_tool_prefix"; then
6995 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6996 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6998 $as_echo_n "checking for $ac_word... " >&6; }
6999 if ${ac_cv_prog_NMEDIT+:} false; then :
7000 $as_echo_n "(cached) " >&6
7001 else
7002 if test -n "$NMEDIT"; then
7003 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7004 else
7005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7006 for as_dir in $PATH
7007 do
7008 IFS=$as_save_IFS
7009 test -z "$as_dir" && as_dir=.
7010 for ac_exec_ext in '' $ac_executable_extensions; do
7011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7012 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7014 break 2
7015 fi
7016 done
7017 done
7018 IFS=$as_save_IFS
7019
7020 fi
7021 fi
7022 NMEDIT=$ac_cv_prog_NMEDIT
7023 if test -n "$NMEDIT"; then
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7025 $as_echo "$NMEDIT" >&6; }
7026 else
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7028 $as_echo "no" >&6; }
7029 fi
7030
7031
7032 fi
7033 if test -z "$ac_cv_prog_NMEDIT"; then
7034 ac_ct_NMEDIT=$NMEDIT
7035 # Extract the first word of "nmedit", so it can be a program name with args.
7036 set dummy nmedit; ac_word=$2
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7038 $as_echo_n "checking for $ac_word... " >&6; }
7039 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7040 $as_echo_n "(cached) " >&6
7041 else
7042 if test -n "$ac_ct_NMEDIT"; then
7043 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7044 else
7045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7046 for as_dir in $PATH
7047 do
7048 IFS=$as_save_IFS
7049 test -z "$as_dir" && as_dir=.
7050 for ac_exec_ext in '' $ac_executable_extensions; do
7051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7052 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7054 break 2
7055 fi
7056 done
7057 done
7058 IFS=$as_save_IFS
7059
7060 fi
7061 fi
7062 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7063 if test -n "$ac_ct_NMEDIT"; then
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7065 $as_echo "$ac_ct_NMEDIT" >&6; }
7066 else
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7068 $as_echo "no" >&6; }
7069 fi
7070
7071 if test "x$ac_ct_NMEDIT" = x; then
7072 NMEDIT=":"
7073 else
7074 case $cross_compiling:$ac_tool_warned in
7075 yes:)
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7077 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7078 ac_tool_warned=yes ;;
7079 esac
7080 NMEDIT=$ac_ct_NMEDIT
7081 fi
7082 else
7083 NMEDIT="$ac_cv_prog_NMEDIT"
7084 fi
7085
7086 if test -n "$ac_tool_prefix"; then
7087 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7088 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7090 $as_echo_n "checking for $ac_word... " >&6; }
7091 if ${ac_cv_prog_LIPO+:} false; then :
7092 $as_echo_n "(cached) " >&6
7093 else
7094 if test -n "$LIPO"; then
7095 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7096 else
7097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098 for as_dir in $PATH
7099 do
7100 IFS=$as_save_IFS
7101 test -z "$as_dir" && as_dir=.
7102 for ac_exec_ext in '' $ac_executable_extensions; do
7103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7104 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7106 break 2
7107 fi
7108 done
7109 done
7110 IFS=$as_save_IFS
7111
7112 fi
7113 fi
7114 LIPO=$ac_cv_prog_LIPO
7115 if test -n "$LIPO"; then
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7117 $as_echo "$LIPO" >&6; }
7118 else
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7120 $as_echo "no" >&6; }
7121 fi
7122
7123
7124 fi
7125 if test -z "$ac_cv_prog_LIPO"; then
7126 ac_ct_LIPO=$LIPO
7127 # Extract the first word of "lipo", so it can be a program name with args.
7128 set dummy lipo; ac_word=$2
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7130 $as_echo_n "checking for $ac_word... " >&6; }
7131 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7132 $as_echo_n "(cached) " >&6
7133 else
7134 if test -n "$ac_ct_LIPO"; then
7135 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7136 else
7137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138 for as_dir in $PATH
7139 do
7140 IFS=$as_save_IFS
7141 test -z "$as_dir" && as_dir=.
7142 for ac_exec_ext in '' $ac_executable_extensions; do
7143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7144 ac_cv_prog_ac_ct_LIPO="lipo"
7145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7146 break 2
7147 fi
7148 done
7149 done
7150 IFS=$as_save_IFS
7151
7152 fi
7153 fi
7154 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7155 if test -n "$ac_ct_LIPO"; then
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7157 $as_echo "$ac_ct_LIPO" >&6; }
7158 else
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7160 $as_echo "no" >&6; }
7161 fi
7162
7163 if test "x$ac_ct_LIPO" = x; then
7164 LIPO=":"
7165 else
7166 case $cross_compiling:$ac_tool_warned in
7167 yes:)
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7170 ac_tool_warned=yes ;;
7171 esac
7172 LIPO=$ac_ct_LIPO
7173 fi
7174 else
7175 LIPO="$ac_cv_prog_LIPO"
7176 fi
7177
7178 if test -n "$ac_tool_prefix"; then
7179 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7180 set dummy ${ac_tool_prefix}otool; ac_word=$2
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7182 $as_echo_n "checking for $ac_word... " >&6; }
7183 if ${ac_cv_prog_OTOOL+:} false; then :
7184 $as_echo_n "(cached) " >&6
7185 else
7186 if test -n "$OTOOL"; then
7187 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7188 else
7189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7190 for as_dir in $PATH
7191 do
7192 IFS=$as_save_IFS
7193 test -z "$as_dir" && as_dir=.
7194 for ac_exec_ext in '' $ac_executable_extensions; do
7195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7196 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7198 break 2
7199 fi
7200 done
7201 done
7202 IFS=$as_save_IFS
7203
7204 fi
7205 fi
7206 OTOOL=$ac_cv_prog_OTOOL
7207 if test -n "$OTOOL"; then
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7209 $as_echo "$OTOOL" >&6; }
7210 else
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7212 $as_echo "no" >&6; }
7213 fi
7214
7215
7216 fi
7217 if test -z "$ac_cv_prog_OTOOL"; then
7218 ac_ct_OTOOL=$OTOOL
7219 # Extract the first word of "otool", so it can be a program name with args.
7220 set dummy otool; ac_word=$2
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7222 $as_echo_n "checking for $ac_word... " >&6; }
7223 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7224 $as_echo_n "(cached) " >&6
7225 else
7226 if test -n "$ac_ct_OTOOL"; then
7227 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7228 else
7229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7230 for as_dir in $PATH
7231 do
7232 IFS=$as_save_IFS
7233 test -z "$as_dir" && as_dir=.
7234 for ac_exec_ext in '' $ac_executable_extensions; do
7235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7236 ac_cv_prog_ac_ct_OTOOL="otool"
7237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7238 break 2
7239 fi
7240 done
7241 done
7242 IFS=$as_save_IFS
7243
7244 fi
7245 fi
7246 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7247 if test -n "$ac_ct_OTOOL"; then
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7249 $as_echo "$ac_ct_OTOOL" >&6; }
7250 else
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7252 $as_echo "no" >&6; }
7253 fi
7254
7255 if test "x$ac_ct_OTOOL" = x; then
7256 OTOOL=":"
7257 else
7258 case $cross_compiling:$ac_tool_warned in
7259 yes:)
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7261 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7262 ac_tool_warned=yes ;;
7263 esac
7264 OTOOL=$ac_ct_OTOOL
7265 fi
7266 else
7267 OTOOL="$ac_cv_prog_OTOOL"
7268 fi
7269
7270 if test -n "$ac_tool_prefix"; then
7271 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7272 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7274 $as_echo_n "checking for $ac_word... " >&6; }
7275 if ${ac_cv_prog_OTOOL64+:} false; then :
7276 $as_echo_n "(cached) " >&6
7277 else
7278 if test -n "$OTOOL64"; then
7279 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7280 else
7281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7282 for as_dir in $PATH
7283 do
7284 IFS=$as_save_IFS
7285 test -z "$as_dir" && as_dir=.
7286 for ac_exec_ext in '' $ac_executable_extensions; do
7287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7288 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7290 break 2
7291 fi
7292 done
7293 done
7294 IFS=$as_save_IFS
7295
7296 fi
7297 fi
7298 OTOOL64=$ac_cv_prog_OTOOL64
7299 if test -n "$OTOOL64"; then
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7301 $as_echo "$OTOOL64" >&6; }
7302 else
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7304 $as_echo "no" >&6; }
7305 fi
7306
7307
7308 fi
7309 if test -z "$ac_cv_prog_OTOOL64"; then
7310 ac_ct_OTOOL64=$OTOOL64
7311 # Extract the first word of "otool64", so it can be a program name with args.
7312 set dummy otool64; ac_word=$2
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7314 $as_echo_n "checking for $ac_word... " >&6; }
7315 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7316 $as_echo_n "(cached) " >&6
7317 else
7318 if test -n "$ac_ct_OTOOL64"; then
7319 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7320 else
7321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7322 for as_dir in $PATH
7323 do
7324 IFS=$as_save_IFS
7325 test -z "$as_dir" && as_dir=.
7326 for ac_exec_ext in '' $ac_executable_extensions; do
7327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7328 ac_cv_prog_ac_ct_OTOOL64="otool64"
7329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7330 break 2
7331 fi
7332 done
7333 done
7334 IFS=$as_save_IFS
7335
7336 fi
7337 fi
7338 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7339 if test -n "$ac_ct_OTOOL64"; then
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7341 $as_echo "$ac_ct_OTOOL64" >&6; }
7342 else
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7344 $as_echo "no" >&6; }
7345 fi
7346
7347 if test "x$ac_ct_OTOOL64" = x; then
7348 OTOOL64=":"
7349 else
7350 case $cross_compiling:$ac_tool_warned in
7351 yes:)
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7354 ac_tool_warned=yes ;;
7355 esac
7356 OTOOL64=$ac_ct_OTOOL64
7357 fi
7358 else
7359 OTOOL64="$ac_cv_prog_OTOOL64"
7360 fi
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7389 $as_echo_n "checking for -single_module linker flag... " >&6; }
7390 if ${lt_cv_apple_cc_single_mod+:} false; then :
7391 $as_echo_n "(cached) " >&6
7392 else
7393 lt_cv_apple_cc_single_mod=no
7394 if test -z "${LT_MULTI_MODULE}"; then
7395 # By default we will add the -single_module flag. You can override
7396 # by either setting the environment variable LT_MULTI_MODULE
7397 # non-empty at configure time, or by adding -multi_module to the
7398 # link flags.
7399 rm -rf libconftest.dylib*
7400 echo "int foo(void){return 1;}" > conftest.c
7401 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7402 -dynamiclib -Wl,-single_module conftest.c" >&5
7403 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7404 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7405 _lt_result=$?
7406 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7407 lt_cv_apple_cc_single_mod=yes
7408 else
7409 cat conftest.err >&5
7410 fi
7411 rm -rf libconftest.dylib*
7412 rm -f conftest.*
7413 fi
7414 fi
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7416 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7418 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7419 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7420 $as_echo_n "(cached) " >&6
7421 else
7422 lt_cv_ld_exported_symbols_list=no
7423 save_LDFLAGS=$LDFLAGS
7424 echo "_main" > conftest.sym
7425 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7427 /* end confdefs.h. */
7428
7429 int
7430 main ()
7431 {
7432
7433 ;
7434 return 0;
7435 }
7436 _ACEOF
7437 if ac_fn_c_try_link "$LINENO"; then :
7438 lt_cv_ld_exported_symbols_list=yes
7439 else
7440 lt_cv_ld_exported_symbols_list=no
7441 fi
7442 rm -f core conftest.err conftest.$ac_objext \
7443 conftest$ac_exeext conftest.$ac_ext
7444 LDFLAGS="$save_LDFLAGS"
7445
7446 fi
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7448 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7450 $as_echo_n "checking for -force_load linker flag... " >&6; }
7451 if ${lt_cv_ld_force_load+:} false; then :
7452 $as_echo_n "(cached) " >&6
7453 else
7454 lt_cv_ld_force_load=no
7455 cat > conftest.c << _LT_EOF
7456 int forced_loaded() { return 2;}
7457 _LT_EOF
7458 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7459 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7460 echo "$AR cru libconftest.a conftest.o" >&5
7461 $AR cru libconftest.a conftest.o 2>&5
7462 echo "$RANLIB libconftest.a" >&5
7463 $RANLIB libconftest.a 2>&5
7464 cat > conftest.c << _LT_EOF
7465 int main() { return 0;}
7466 _LT_EOF
7467 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7468 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7469 _lt_result=$?
7470 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7471 lt_cv_ld_force_load=yes
7472 else
7473 cat conftest.err >&5
7474 fi
7475 rm -f conftest.err libconftest.a conftest conftest.c
7476 rm -rf conftest.dSYM
7477
7478 fi
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7480 $as_echo "$lt_cv_ld_force_load" >&6; }
7481 case $host_os in
7482 rhapsody* | darwin1.[012])
7483 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7484 darwin1.*)
7485 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7486 darwin*) # darwin 5.x on
7487 # if running on 10.5 or later, the deployment target defaults
7488 # to the OS version, if on x86, and 10.4, the deployment
7489 # target defaults to 10.4. Don't you love it?
7490 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7491 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7492 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7493 10.[012]*)
7494 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7495 10.*)
7496 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7497 esac
7498 ;;
7499 esac
7500 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7501 _lt_dar_single_mod='$single_module'
7502 fi
7503 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7504 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7505 else
7506 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7507 fi
7508 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7509 _lt_dsymutil='~$DSYMUTIL $lib || :'
7510 else
7511 _lt_dsymutil=
7512 fi
7513 ;;
7514 esac
7515
7516 ac_ext=c
7517 ac_cpp='$CPP $CPPFLAGS'
7518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7522 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7523 # On Suns, sometimes $CPP names a directory.
7524 if test -n "$CPP" && test -d "$CPP"; then
7525 CPP=
7526 fi
7527 if test -z "$CPP"; then
7528 if ${ac_cv_prog_CPP+:} false; then :
7529 $as_echo_n "(cached) " >&6
7530 else
7531 # Double quotes because CPP needs to be expanded
7532 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7533 do
7534 ac_preproc_ok=false
7535 for ac_c_preproc_warn_flag in '' yes
7536 do
7537 # Use a header file that comes with gcc, so configuring glibc
7538 # with a fresh cross-compiler works.
7539 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7540 # <limits.h> exists even on freestanding compilers.
7541 # On the NeXT, cc -E runs the code through the compiler's parser,
7542 # not just through cpp. "Syntax error" is here to catch this case.
7543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7544 /* end confdefs.h. */
7545 #ifdef __STDC__
7546 # include <limits.h>
7547 #else
7548 # include <assert.h>
7549 #endif
7550 Syntax error
7551 _ACEOF
7552 if ac_fn_c_try_cpp "$LINENO"; then :
7553
7554 else
7555 # Broken: fails on valid input.
7556 continue
7557 fi
7558 rm -f conftest.err conftest.i conftest.$ac_ext
7559
7560 # OK, works on sane cases. Now check whether nonexistent headers
7561 # can be detected and how.
7562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7563 /* end confdefs.h. */
7564 #include <ac_nonexistent.h>
7565 _ACEOF
7566 if ac_fn_c_try_cpp "$LINENO"; then :
7567 # Broken: success on invalid input.
7568 continue
7569 else
7570 # Passes both tests.
7571 ac_preproc_ok=:
7572 break
7573 fi
7574 rm -f conftest.err conftest.i conftest.$ac_ext
7575
7576 done
7577 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7578 rm -f conftest.i conftest.err conftest.$ac_ext
7579 if $ac_preproc_ok; then :
7580 break
7581 fi
7582
7583 done
7584 ac_cv_prog_CPP=$CPP
7585
7586 fi
7587 CPP=$ac_cv_prog_CPP
7588 else
7589 ac_cv_prog_CPP=$CPP
7590 fi
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7592 $as_echo "$CPP" >&6; }
7593 ac_preproc_ok=false
7594 for ac_c_preproc_warn_flag in '' yes
7595 do
7596 # Use a header file that comes with gcc, so configuring glibc
7597 # with a fresh cross-compiler works.
7598 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7599 # <limits.h> exists even on freestanding compilers.
7600 # On the NeXT, cc -E runs the code through the compiler's parser,
7601 # not just through cpp. "Syntax error" is here to catch this case.
7602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7603 /* end confdefs.h. */
7604 #ifdef __STDC__
7605 # include <limits.h>
7606 #else
7607 # include <assert.h>
7608 #endif
7609 Syntax error
7610 _ACEOF
7611 if ac_fn_c_try_cpp "$LINENO"; then :
7612
7613 else
7614 # Broken: fails on valid input.
7615 continue
7616 fi
7617 rm -f conftest.err conftest.i conftest.$ac_ext
7618
7619 # OK, works on sane cases. Now check whether nonexistent headers
7620 # can be detected and how.
7621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7622 /* end confdefs.h. */
7623 #include <ac_nonexistent.h>
7624 _ACEOF
7625 if ac_fn_c_try_cpp "$LINENO"; then :
7626 # Broken: success on invalid input.
7627 continue
7628 else
7629 # Passes both tests.
7630 ac_preproc_ok=:
7631 break
7632 fi
7633 rm -f conftest.err conftest.i conftest.$ac_ext
7634
7635 done
7636 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7637 rm -f conftest.i conftest.err conftest.$ac_ext
7638 if $ac_preproc_ok; then :
7639
7640 else
7641 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7642 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7643 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7644 See \`config.log' for more details" "$LINENO" 5; }
7645 fi
7646
7647 ac_ext=c
7648 ac_cpp='$CPP $CPPFLAGS'
7649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7652
7653
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7655 $as_echo_n "checking for ANSI C header files... " >&6; }
7656 if ${ac_cv_header_stdc+:} false; then :
7657 $as_echo_n "(cached) " >&6
7658 else
7659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7660 /* end confdefs.h. */
7661 #include <stdlib.h>
7662 #include <stdarg.h>
7663 #include <string.h>
7664 #include <float.h>
7665
7666 int
7667 main ()
7668 {
7669
7670 ;
7671 return 0;
7672 }
7673 _ACEOF
7674 if ac_fn_c_try_compile "$LINENO"; then :
7675 ac_cv_header_stdc=yes
7676 else
7677 ac_cv_header_stdc=no
7678 fi
7679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7680
7681 if test $ac_cv_header_stdc = yes; then
7682 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7684 /* end confdefs.h. */
7685 #include <string.h>
7686
7687 _ACEOF
7688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7689 $EGREP "memchr" >/dev/null 2>&1; then :
7690
7691 else
7692 ac_cv_header_stdc=no
7693 fi
7694 rm -f conftest*
7695
7696 fi
7697
7698 if test $ac_cv_header_stdc = yes; then
7699 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7701 /* end confdefs.h. */
7702 #include <stdlib.h>
7703
7704 _ACEOF
7705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7706 $EGREP "free" >/dev/null 2>&1; then :
7707
7708 else
7709 ac_cv_header_stdc=no
7710 fi
7711 rm -f conftest*
7712
7713 fi
7714
7715 if test $ac_cv_header_stdc = yes; then
7716 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7717 if test "$cross_compiling" = yes; then :
7718 :
7719 else
7720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7721 /* end confdefs.h. */
7722 #include <ctype.h>
7723 #include <stdlib.h>
7724 #if ((' ' & 0x0FF) == 0x020)
7725 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7726 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7727 #else
7728 # define ISLOWER(c) \
7729 (('a' <= (c) && (c) <= 'i') \
7730 || ('j' <= (c) && (c) <= 'r') \
7731 || ('s' <= (c) && (c) <= 'z'))
7732 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7733 #endif
7734
7735 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7736 int
7737 main ()
7738 {
7739 int i;
7740 for (i = 0; i < 256; i++)
7741 if (XOR (islower (i), ISLOWER (i))
7742 || toupper (i) != TOUPPER (i))
7743 return 2;
7744 return 0;
7745 }
7746 _ACEOF
7747 if ac_fn_c_try_run "$LINENO"; then :
7748
7749 else
7750 ac_cv_header_stdc=no
7751 fi
7752 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7753 conftest.$ac_objext conftest.beam conftest.$ac_ext
7754 fi
7755
7756 fi
7757 fi
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7759 $as_echo "$ac_cv_header_stdc" >&6; }
7760 if test $ac_cv_header_stdc = yes; then
7761
7762 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7763
7764 fi
7765
7766 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7767 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7768 inttypes.h stdint.h unistd.h
7769 do :
7770 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7771 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7772 "
7773 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7774 cat >>confdefs.h <<_ACEOF
7775 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7776 _ACEOF
7777
7778 fi
7779
7780 done
7781
7782
7783 for ac_header in dlfcn.h
7784 do :
7785 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7786 "
7787 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7788 cat >>confdefs.h <<_ACEOF
7789 #define HAVE_DLFCN_H 1
7790 _ACEOF
7791
7792 fi
7793
7794 done
7795
7796
7797
7798
7799
7800 # Set options
7801
7802
7803
7804 enable_dlopen=no
7805
7806
7807 enable_win32_dll=no
7808
7809
7810 # Check whether --enable-shared was given.
7811 if test "${enable_shared+set}" = set; then :
7812 enableval=$enable_shared; p=${PACKAGE-default}
7813 case $enableval in
7814 yes) enable_shared=yes ;;
7815 no) enable_shared=no ;;
7816 *)
7817 enable_shared=no
7818 # Look at the argument we got. We use all the common list separators.
7819 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7820 for pkg in $enableval; do
7821 IFS="$lt_save_ifs"
7822 if test "X$pkg" = "X$p"; then
7823 enable_shared=yes
7824 fi
7825 done
7826 IFS="$lt_save_ifs"
7827 ;;
7828 esac
7829 else
7830 enable_shared=yes
7831 fi
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841 # Check whether --enable-static was given.
7842 if test "${enable_static+set}" = set; then :
7843 enableval=$enable_static; p=${PACKAGE-default}
7844 case $enableval in
7845 yes) enable_static=yes ;;
7846 no) enable_static=no ;;
7847 *)
7848 enable_static=no
7849 # Look at the argument we got. We use all the common list separators.
7850 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7851 for pkg in $enableval; do
7852 IFS="$lt_save_ifs"
7853 if test "X$pkg" = "X$p"; then
7854 enable_static=yes
7855 fi
7856 done
7857 IFS="$lt_save_ifs"
7858 ;;
7859 esac
7860 else
7861 enable_static=yes
7862 fi
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873 # Check whether --with-pic was given.
7874 if test "${with_pic+set}" = set; then :
7875 withval=$with_pic; pic_mode="$withval"
7876 else
7877 pic_mode=default
7878 fi
7879
7880
7881 test -z "$pic_mode" && pic_mode=default
7882
7883
7884
7885
7886
7887
7888
7889 # Check whether --enable-fast-install was given.
7890 if test "${enable_fast_install+set}" = set; then :
7891 enableval=$enable_fast_install; p=${PACKAGE-default}
7892 case $enableval in
7893 yes) enable_fast_install=yes ;;
7894 no) enable_fast_install=no ;;
7895 *)
7896 enable_fast_install=no
7897 # Look at the argument we got. We use all the common list separators.
7898 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7899 for pkg in $enableval; do
7900 IFS="$lt_save_ifs"
7901 if test "X$pkg" = "X$p"; then
7902 enable_fast_install=yes
7903 fi
7904 done
7905 IFS="$lt_save_ifs"
7906 ;;
7907 esac
7908 else
7909 enable_fast_install=yes
7910 fi
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922 # This can be used to rebuild libtool when needed
7923 LIBTOOL_DEPS="$ltmain"
7924
7925 # Always use our own libtool.
7926 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953 test -z "$LN_S" && LN_S="ln -s"
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968 if test -n "${ZSH_VERSION+set}" ; then
7969 setopt NO_GLOB_SUBST
7970 fi
7971
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7973 $as_echo_n "checking for objdir... " >&6; }
7974 if ${lt_cv_objdir+:} false; then :
7975 $as_echo_n "(cached) " >&6
7976 else
7977 rm -f .libs 2>/dev/null
7978 mkdir .libs 2>/dev/null
7979 if test -d .libs; then
7980 lt_cv_objdir=.libs
7981 else
7982 # MS-DOS does not allow filenames that begin with a dot.
7983 lt_cv_objdir=_libs
7984 fi
7985 rmdir .libs 2>/dev/null
7986 fi
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7988 $as_echo "$lt_cv_objdir" >&6; }
7989 objdir=$lt_cv_objdir
7990
7991
7992
7993
7994
7995 cat >>confdefs.h <<_ACEOF
7996 #define LT_OBJDIR "$lt_cv_objdir/"
7997 _ACEOF
7998
7999
8000
8001
8002 case $host_os in
8003 aix3*)
8004 # AIX sometimes has problems with the GCC collect2 program. For some
8005 # reason, if we set the COLLECT_NAMES environment variable, the problems
8006 # vanish in a puff of smoke.
8007 if test "X${COLLECT_NAMES+set}" != Xset; then
8008 COLLECT_NAMES=
8009 export COLLECT_NAMES
8010 fi
8011 ;;
8012 esac
8013
8014 # Global variables:
8015 ofile=libtool
8016 can_build_shared=yes
8017
8018 # All known linkers require a `.a' archive for static linking (except MSVC,
8019 # which needs '.lib').
8020 libext=a
8021
8022 with_gnu_ld="$lt_cv_prog_gnu_ld"
8023
8024 old_CC="$CC"
8025 old_CFLAGS="$CFLAGS"
8026
8027 # Set sane defaults for various variables
8028 test -z "$CC" && CC=cc
8029 test -z "$LTCC" && LTCC=$CC
8030 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8031 test -z "$LD" && LD=ld
8032 test -z "$ac_objext" && ac_objext=o
8033
8034 for cc_temp in $compiler""; do
8035 case $cc_temp in
8036 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8037 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8038 \-*) ;;
8039 *) break;;
8040 esac
8041 done
8042 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8043
8044
8045 # Only perform the check for file, if the check method requires it
8046 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8047 case $deplibs_check_method in
8048 file_magic*)
8049 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8051 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8052 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8053 $as_echo_n "(cached) " >&6
8054 else
8055 case $MAGIC_CMD in
8056 [\\/*] | ?:[\\/]*)
8057 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8058 ;;
8059 *)
8060 lt_save_MAGIC_CMD="$MAGIC_CMD"
8061 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8062 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8063 for ac_dir in $ac_dummy; do
8064 IFS="$lt_save_ifs"
8065 test -z "$ac_dir" && ac_dir=.
8066 if test -f $ac_dir/${ac_tool_prefix}file; then
8067 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8068 if test -n "$file_magic_test_file"; then
8069 case $deplibs_check_method in
8070 "file_magic "*)
8071 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8072 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8073 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8074 $EGREP "$file_magic_regex" > /dev/null; then
8075 :
8076 else
8077 cat <<_LT_EOF 1>&2
8078
8079 *** Warning: the command libtool uses to detect shared libraries,
8080 *** $file_magic_cmd, produces output that libtool cannot recognize.
8081 *** The result is that libtool may fail to recognize shared libraries
8082 *** as such. This will affect the creation of libtool libraries that
8083 *** depend on shared libraries, but programs linked with such libtool
8084 *** libraries will work regardless of this problem. Nevertheless, you
8085 *** may want to report the problem to your system manager and/or to
8086 *** bug-libtool@gnu.org
8087
8088 _LT_EOF
8089 fi ;;
8090 esac
8091 fi
8092 break
8093 fi
8094 done
8095 IFS="$lt_save_ifs"
8096 MAGIC_CMD="$lt_save_MAGIC_CMD"
8097 ;;
8098 esac
8099 fi
8100
8101 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8102 if test -n "$MAGIC_CMD"; then
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8104 $as_echo "$MAGIC_CMD" >&6; }
8105 else
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8107 $as_echo "no" >&6; }
8108 fi
8109
8110
8111
8112
8113
8114 if test -z "$lt_cv_path_MAGIC_CMD"; then
8115 if test -n "$ac_tool_prefix"; then
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8117 $as_echo_n "checking for file... " >&6; }
8118 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8119 $as_echo_n "(cached) " >&6
8120 else
8121 case $MAGIC_CMD in
8122 [\\/*] | ?:[\\/]*)
8123 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8124 ;;
8125 *)
8126 lt_save_MAGIC_CMD="$MAGIC_CMD"
8127 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8128 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8129 for ac_dir in $ac_dummy; do
8130 IFS="$lt_save_ifs"
8131 test -z "$ac_dir" && ac_dir=.
8132 if test -f $ac_dir/file; then
8133 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8134 if test -n "$file_magic_test_file"; then
8135 case $deplibs_check_method in
8136 "file_magic "*)
8137 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8138 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8139 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8140 $EGREP "$file_magic_regex" > /dev/null; then
8141 :
8142 else
8143 cat <<_LT_EOF 1>&2
8144
8145 *** Warning: the command libtool uses to detect shared libraries,
8146 *** $file_magic_cmd, produces output that libtool cannot recognize.
8147 *** The result is that libtool may fail to recognize shared libraries
8148 *** as such. This will affect the creation of libtool libraries that
8149 *** depend on shared libraries, but programs linked with such libtool
8150 *** libraries will work regardless of this problem. Nevertheless, you
8151 *** may want to report the problem to your system manager and/or to
8152 *** bug-libtool@gnu.org
8153
8154 _LT_EOF
8155 fi ;;
8156 esac
8157 fi
8158 break
8159 fi
8160 done
8161 IFS="$lt_save_ifs"
8162 MAGIC_CMD="$lt_save_MAGIC_CMD"
8163 ;;
8164 esac
8165 fi
8166
8167 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8168 if test -n "$MAGIC_CMD"; then
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8170 $as_echo "$MAGIC_CMD" >&6; }
8171 else
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8173 $as_echo "no" >&6; }
8174 fi
8175
8176
8177 else
8178 MAGIC_CMD=:
8179 fi
8180 fi
8181
8182 fi
8183 ;;
8184 esac
8185
8186 # Use C for the default configuration in the libtool script
8187
8188 lt_save_CC="$CC"
8189 ac_ext=c
8190 ac_cpp='$CPP $CPPFLAGS'
8191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8194
8195
8196 # Source file extension for C test sources.
8197 ac_ext=c
8198
8199 # Object file extension for compiled C test sources.
8200 objext=o
8201 objext=$objext
8202
8203 # Code to be used in simple compile tests
8204 lt_simple_compile_test_code="int some_variable = 0;"
8205
8206 # Code to be used in simple link tests
8207 lt_simple_link_test_code='int main(){return(0);}'
8208
8209
8210
8211
8212
8213
8214
8215 # If no C compiler was specified, use CC.
8216 LTCC=${LTCC-"$CC"}
8217
8218 # If no C compiler flags were specified, use CFLAGS.
8219 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8220
8221 # Allow CC to be a program name with arguments.
8222 compiler=$CC
8223
8224 # Save the default compiler, since it gets overwritten when the other
8225 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8226 compiler_DEFAULT=$CC
8227
8228 # save warnings/boilerplate of simple test code
8229 ac_outfile=conftest.$ac_objext
8230 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8231 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8232 _lt_compiler_boilerplate=`cat conftest.err`
8233 $RM conftest*
8234
8235 ac_outfile=conftest.$ac_objext
8236 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8237 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8238 _lt_linker_boilerplate=`cat conftest.err`
8239 $RM -r conftest*
8240
8241
8242 ## CAVEAT EMPTOR:
8243 ## There is no encapsulation within the following macros, do not change
8244 ## the running order or otherwise move them around unless you know exactly
8245 ## what you are doing...
8246 if test -n "$compiler"; then
8247
8248 lt_prog_compiler_no_builtin_flag=
8249
8250 if test "$GCC" = yes; then
8251 case $cc_basename in
8252 nvcc*)
8253 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8254 *)
8255 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8256 esac
8257
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8259 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8260 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8261 $as_echo_n "(cached) " >&6
8262 else
8263 lt_cv_prog_compiler_rtti_exceptions=no
8264 ac_outfile=conftest.$ac_objext
8265 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8266 lt_compiler_flag="-fno-rtti -fno-exceptions"
8267 # Insert the option either (1) after the last *FLAGS variable, or
8268 # (2) before a word containing "conftest.", or (3) at the end.
8269 # Note that $ac_compile itself does not contain backslashes and begins
8270 # with a dollar sign (not a hyphen), so the echo should work correctly.
8271 # The option is referenced via a variable to avoid confusing sed.
8272 lt_compile=`echo "$ac_compile" | $SED \
8273 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8274 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8275 -e 's:$: $lt_compiler_flag:'`
8276 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8277 (eval "$lt_compile" 2>conftest.err)
8278 ac_status=$?
8279 cat conftest.err >&5
8280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281 if (exit $ac_status) && test -s "$ac_outfile"; then
8282 # The compiler can only warn and ignore the option if not recognized
8283 # So say no if there are warnings other than the usual output.
8284 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8285 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8286 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8287 lt_cv_prog_compiler_rtti_exceptions=yes
8288 fi
8289 fi
8290 $RM conftest*
8291
8292 fi
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8294 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8295
8296 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8297 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8298 else
8299 :
8300 fi
8301
8302 fi
8303
8304
8305
8306
8307
8308
8309 lt_prog_compiler_wl=
8310 lt_prog_compiler_pic=
8311 lt_prog_compiler_static=
8312
8313
8314 if test "$GCC" = yes; then
8315 lt_prog_compiler_wl='-Wl,'
8316 lt_prog_compiler_static='-static'
8317
8318 case $host_os in
8319 aix*)
8320 # All AIX code is PIC.
8321 if test "$host_cpu" = ia64; then
8322 # AIX 5 now supports IA64 processor
8323 lt_prog_compiler_static='-Bstatic'
8324 fi
8325 ;;
8326
8327 amigaos*)
8328 case $host_cpu in
8329 powerpc)
8330 # see comment about AmigaOS4 .so support
8331 lt_prog_compiler_pic='-fPIC'
8332 ;;
8333 m68k)
8334 # FIXME: we need at least 68020 code to build shared libraries, but
8335 # adding the `-m68020' flag to GCC prevents building anything better,
8336 # like `-m68040'.
8337 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8338 ;;
8339 esac
8340 ;;
8341
8342 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8343 # PIC is the default for these OSes.
8344 ;;
8345
8346 mingw* | cygwin* | pw32* | os2* | cegcc*)
8347 # This hack is so that the source file can tell whether it is being
8348 # built for inclusion in a dll (and should export symbols for example).
8349 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8350 # (--disable-auto-import) libraries
8351 lt_prog_compiler_pic='-DDLL_EXPORT'
8352 ;;
8353
8354 darwin* | rhapsody*)
8355 # PIC is the default on this platform
8356 # Common symbols not allowed in MH_DYLIB files
8357 lt_prog_compiler_pic='-fno-common'
8358 ;;
8359
8360 haiku*)
8361 # PIC is the default for Haiku.
8362 # The "-static" flag exists, but is broken.
8363 lt_prog_compiler_static=
8364 ;;
8365
8366 hpux*)
8367 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8368 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8369 # sets the default TLS model and affects inlining.
8370 case $host_cpu in
8371 hppa*64*)
8372 # +Z the default
8373 ;;
8374 *)
8375 lt_prog_compiler_pic='-fPIC'
8376 ;;
8377 esac
8378 ;;
8379
8380 interix[3-9]*)
8381 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8382 # Instead, we relocate shared libraries at runtime.
8383 ;;
8384
8385 msdosdjgpp*)
8386 # Just because we use GCC doesn't mean we suddenly get shared libraries
8387 # on systems that don't support them.
8388 lt_prog_compiler_can_build_shared=no
8389 enable_shared=no
8390 ;;
8391
8392 *nto* | *qnx*)
8393 # QNX uses GNU C++, but need to define -shared option too, otherwise
8394 # it will coredump.
8395 lt_prog_compiler_pic='-fPIC -shared'
8396 ;;
8397
8398 sysv4*MP*)
8399 if test -d /usr/nec; then
8400 lt_prog_compiler_pic=-Kconform_pic
8401 fi
8402 ;;
8403
8404 *)
8405 lt_prog_compiler_pic='-fPIC'
8406 ;;
8407 esac
8408
8409 case $cc_basename in
8410 nvcc*) # Cuda Compiler Driver 2.2
8411 lt_prog_compiler_wl='-Xlinker '
8412 lt_prog_compiler_pic='-Xcompiler -fPIC'
8413 ;;
8414 esac
8415 else
8416 # PORTME Check for flag to pass linker flags through the system compiler.
8417 case $host_os in
8418 aix*)
8419 lt_prog_compiler_wl='-Wl,'
8420 if test "$host_cpu" = ia64; then
8421 # AIX 5 now supports IA64 processor
8422 lt_prog_compiler_static='-Bstatic'
8423 else
8424 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8425 fi
8426 ;;
8427
8428 mingw* | cygwin* | pw32* | os2* | cegcc*)
8429 # This hack is so that the source file can tell whether it is being
8430 # built for inclusion in a dll (and should export symbols for example).
8431 lt_prog_compiler_pic='-DDLL_EXPORT'
8432 ;;
8433
8434 hpux9* | hpux10* | hpux11*)
8435 lt_prog_compiler_wl='-Wl,'
8436 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8437 # not for PA HP-UX.
8438 case $host_cpu in
8439 hppa*64*|ia64*)
8440 # +Z the default
8441 ;;
8442 *)
8443 lt_prog_compiler_pic='+Z'
8444 ;;
8445 esac
8446 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8447 lt_prog_compiler_static='${wl}-a ${wl}archive'
8448 ;;
8449
8450 irix5* | irix6* | nonstopux*)
8451 lt_prog_compiler_wl='-Wl,'
8452 # PIC (with -KPIC) is the default.
8453 lt_prog_compiler_static='-non_shared'
8454 ;;
8455
8456 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8457 case $cc_basename in
8458 # old Intel for x86_64 which still supported -KPIC.
8459 ecc*)
8460 lt_prog_compiler_wl='-Wl,'
8461 lt_prog_compiler_pic='-KPIC'
8462 lt_prog_compiler_static='-static'
8463 ;;
8464 # icc used to be incompatible with GCC.
8465 # ICC 10 doesn't accept -KPIC any more.
8466 icc* | ifort*)
8467 lt_prog_compiler_wl='-Wl,'
8468 lt_prog_compiler_pic='-fPIC'
8469 lt_prog_compiler_static='-static'
8470 ;;
8471 # Lahey Fortran 8.1.
8472 lf95*)
8473 lt_prog_compiler_wl='-Wl,'
8474 lt_prog_compiler_pic='--shared'
8475 lt_prog_compiler_static='--static'
8476 ;;
8477 nagfor*)
8478 # NAG Fortran compiler
8479 lt_prog_compiler_wl='-Wl,-Wl,,'
8480 lt_prog_compiler_pic='-PIC'
8481 lt_prog_compiler_static='-Bstatic'
8482 ;;
8483 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8484 # Portland Group compilers (*not* the Pentium gcc compiler,
8485 # which looks to be a dead project)
8486 lt_prog_compiler_wl='-Wl,'
8487 lt_prog_compiler_pic='-fpic'
8488 lt_prog_compiler_static='-Bstatic'
8489 ;;
8490 ccc*)
8491 lt_prog_compiler_wl='-Wl,'
8492 # All Alpha code is PIC.
8493 lt_prog_compiler_static='-non_shared'
8494 ;;
8495 xl* | bgxl* | bgf* | mpixl*)
8496 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8497 lt_prog_compiler_wl='-Wl,'
8498 lt_prog_compiler_pic='-qpic'
8499 lt_prog_compiler_static='-qstaticlink'
8500 ;;
8501 *)
8502 case `$CC -V 2>&1 | sed 5q` in
8503 *Sun\ F* | *Sun*Fortran*)
8504 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8505 lt_prog_compiler_pic='-KPIC'
8506 lt_prog_compiler_static='-Bstatic'
8507 lt_prog_compiler_wl=''
8508 ;;
8509 *Sun\ C*)
8510 # Sun C 5.9
8511 lt_prog_compiler_pic='-KPIC'
8512 lt_prog_compiler_static='-Bstatic'
8513 lt_prog_compiler_wl='-Wl,'
8514 ;;
8515 esac
8516 ;;
8517 esac
8518 ;;
8519
8520 newsos6)
8521 lt_prog_compiler_pic='-KPIC'
8522 lt_prog_compiler_static='-Bstatic'
8523 ;;
8524
8525 *nto* | *qnx*)
8526 # QNX uses GNU C++, but need to define -shared option too, otherwise
8527 # it will coredump.
8528 lt_prog_compiler_pic='-fPIC -shared'
8529 ;;
8530
8531 osf3* | osf4* | osf5*)
8532 lt_prog_compiler_wl='-Wl,'
8533 # All OSF/1 code is PIC.
8534 lt_prog_compiler_static='-non_shared'
8535 ;;
8536
8537 rdos*)
8538 lt_prog_compiler_static='-non_shared'
8539 ;;
8540
8541 solaris*)
8542 lt_prog_compiler_pic='-KPIC'
8543 lt_prog_compiler_static='-Bstatic'
8544 case $cc_basename in
8545 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8546 lt_prog_compiler_wl='-Qoption ld ';;
8547 *)
8548 lt_prog_compiler_wl='-Wl,';;
8549 esac
8550 ;;
8551
8552 sunos4*)
8553 lt_prog_compiler_wl='-Qoption ld '
8554 lt_prog_compiler_pic='-PIC'
8555 lt_prog_compiler_static='-Bstatic'
8556 ;;
8557
8558 sysv4 | sysv4.2uw2* | sysv4.3*)
8559 lt_prog_compiler_wl='-Wl,'
8560 lt_prog_compiler_pic='-KPIC'
8561 lt_prog_compiler_static='-Bstatic'
8562 ;;
8563
8564 sysv4*MP*)
8565 if test -d /usr/nec ;then
8566 lt_prog_compiler_pic='-Kconform_pic'
8567 lt_prog_compiler_static='-Bstatic'
8568 fi
8569 ;;
8570
8571 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8572 lt_prog_compiler_wl='-Wl,'
8573 lt_prog_compiler_pic='-KPIC'
8574 lt_prog_compiler_static='-Bstatic'
8575 ;;
8576
8577 unicos*)
8578 lt_prog_compiler_wl='-Wl,'
8579 lt_prog_compiler_can_build_shared=no
8580 ;;
8581
8582 uts4*)
8583 lt_prog_compiler_pic='-pic'
8584 lt_prog_compiler_static='-Bstatic'
8585 ;;
8586
8587 *)
8588 lt_prog_compiler_can_build_shared=no
8589 ;;
8590 esac
8591 fi
8592
8593 case $host_os in
8594 # For platforms which do not support PIC, -DPIC is meaningless:
8595 *djgpp*)
8596 lt_prog_compiler_pic=
8597 ;;
8598 *)
8599 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8600 ;;
8601 esac
8602
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8604 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8605 if ${lt_cv_prog_compiler_pic+:} false; then :
8606 $as_echo_n "(cached) " >&6
8607 else
8608 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8609 fi
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8611 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8612 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8613
8614 #
8615 # Check to make sure the PIC flag actually works.
8616 #
8617 if test -n "$lt_prog_compiler_pic"; then
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8619 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8620 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8621 $as_echo_n "(cached) " >&6
8622 else
8623 lt_cv_prog_compiler_pic_works=no
8624 ac_outfile=conftest.$ac_objext
8625 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8626 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8627 # Insert the option either (1) after the last *FLAGS variable, or
8628 # (2) before a word containing "conftest.", or (3) at the end.
8629 # Note that $ac_compile itself does not contain backslashes and begins
8630 # with a dollar sign (not a hyphen), so the echo should work correctly.
8631 # The option is referenced via a variable to avoid confusing sed.
8632 lt_compile=`echo "$ac_compile" | $SED \
8633 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8634 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8635 -e 's:$: $lt_compiler_flag:'`
8636 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8637 (eval "$lt_compile" 2>conftest.err)
8638 ac_status=$?
8639 cat conftest.err >&5
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 if (exit $ac_status) && test -s "$ac_outfile"; then
8642 # The compiler can only warn and ignore the option if not recognized
8643 # So say no if there are warnings other than the usual output.
8644 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8645 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8646 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8647 lt_cv_prog_compiler_pic_works=yes
8648 fi
8649 fi
8650 $RM conftest*
8651
8652 fi
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8654 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8655
8656 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8657 case $lt_prog_compiler_pic in
8658 "" | " "*) ;;
8659 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8660 esac
8661 else
8662 lt_prog_compiler_pic=
8663 lt_prog_compiler_can_build_shared=no
8664 fi
8665
8666 fi
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678 #
8679 # Check to make sure the static flag actually works.
8680 #
8681 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8683 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8684 if ${lt_cv_prog_compiler_static_works+:} false; then :
8685 $as_echo_n "(cached) " >&6
8686 else
8687 lt_cv_prog_compiler_static_works=no
8688 save_LDFLAGS="$LDFLAGS"
8689 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8690 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8691 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8692 # The linker can only warn and ignore the option if not recognized
8693 # So say no if there are warnings
8694 if test -s conftest.err; then
8695 # Append any errors to the config.log.
8696 cat conftest.err 1>&5
8697 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8698 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8699 if diff conftest.exp conftest.er2 >/dev/null; then
8700 lt_cv_prog_compiler_static_works=yes
8701 fi
8702 else
8703 lt_cv_prog_compiler_static_works=yes
8704 fi
8705 fi
8706 $RM -r conftest*
8707 LDFLAGS="$save_LDFLAGS"
8708
8709 fi
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8711 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8712
8713 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8714 :
8715 else
8716 lt_prog_compiler_static=
8717 fi
8718
8719
8720
8721
8722
8723
8724
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8726 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8727 if ${lt_cv_prog_compiler_c_o+:} false; then :
8728 $as_echo_n "(cached) " >&6
8729 else
8730 lt_cv_prog_compiler_c_o=no
8731 $RM -r conftest 2>/dev/null
8732 mkdir conftest
8733 cd conftest
8734 mkdir out
8735 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8736
8737 lt_compiler_flag="-o out/conftest2.$ac_objext"
8738 # Insert the option either (1) after the last *FLAGS variable, or
8739 # (2) before a word containing "conftest.", or (3) at the end.
8740 # Note that $ac_compile itself does not contain backslashes and begins
8741 # with a dollar sign (not a hyphen), so the echo should work correctly.
8742 lt_compile=`echo "$ac_compile" | $SED \
8743 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8744 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8745 -e 's:$: $lt_compiler_flag:'`
8746 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8747 (eval "$lt_compile" 2>out/conftest.err)
8748 ac_status=$?
8749 cat out/conftest.err >&5
8750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8752 then
8753 # The compiler can only warn and ignore the option if not recognized
8754 # So say no if there are warnings
8755 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8756 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8757 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8758 lt_cv_prog_compiler_c_o=yes
8759 fi
8760 fi
8761 chmod u+w . 2>&5
8762 $RM conftest*
8763 # SGI C++ compiler will create directory out/ii_files/ for
8764 # template instantiation
8765 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8766 $RM out/* && rmdir out
8767 cd ..
8768 $RM -r conftest
8769 $RM conftest*
8770
8771 fi
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8773 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8774
8775
8776
8777
8778
8779
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8781 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8782 if ${lt_cv_prog_compiler_c_o+:} false; then :
8783 $as_echo_n "(cached) " >&6
8784 else
8785 lt_cv_prog_compiler_c_o=no
8786 $RM -r conftest 2>/dev/null
8787 mkdir conftest
8788 cd conftest
8789 mkdir out
8790 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8791
8792 lt_compiler_flag="-o out/conftest2.$ac_objext"
8793 # Insert the option either (1) after the last *FLAGS variable, or
8794 # (2) before a word containing "conftest.", or (3) at the end.
8795 # Note that $ac_compile itself does not contain backslashes and begins
8796 # with a dollar sign (not a hyphen), so the echo should work correctly.
8797 lt_compile=`echo "$ac_compile" | $SED \
8798 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8799 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8800 -e 's:$: $lt_compiler_flag:'`
8801 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8802 (eval "$lt_compile" 2>out/conftest.err)
8803 ac_status=$?
8804 cat out/conftest.err >&5
8805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8807 then
8808 # The compiler can only warn and ignore the option if not recognized
8809 # So say no if there are warnings
8810 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8811 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8812 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8813 lt_cv_prog_compiler_c_o=yes
8814 fi
8815 fi
8816 chmod u+w . 2>&5
8817 $RM conftest*
8818 # SGI C++ compiler will create directory out/ii_files/ for
8819 # template instantiation
8820 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8821 $RM out/* && rmdir out
8822 cd ..
8823 $RM -r conftest
8824 $RM conftest*
8825
8826 fi
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8828 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8829
8830
8831
8832
8833 hard_links="nottested"
8834 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8835 # do not overwrite the value of need_locks provided by the user
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8837 $as_echo_n "checking if we can lock with hard links... " >&6; }
8838 hard_links=yes
8839 $RM conftest*
8840 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8841 touch conftest.a
8842 ln conftest.a conftest.b 2>&5 || hard_links=no
8843 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8845 $as_echo "$hard_links" >&6; }
8846 if test "$hard_links" = no; then
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8848 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8849 need_locks=warn
8850 fi
8851 else
8852 need_locks=no
8853 fi
8854
8855
8856
8857
8858
8859
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8861 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8862
8863 runpath_var=
8864 allow_undefined_flag=
8865 always_export_symbols=no
8866 archive_cmds=
8867 archive_expsym_cmds=
8868 compiler_needs_object=no
8869 enable_shared_with_static_runtimes=no
8870 export_dynamic_flag_spec=
8871 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8872 hardcode_automatic=no
8873 hardcode_direct=no
8874 hardcode_direct_absolute=no
8875 hardcode_libdir_flag_spec=
8876 hardcode_libdir_flag_spec_ld=
8877 hardcode_libdir_separator=
8878 hardcode_minus_L=no
8879 hardcode_shlibpath_var=unsupported
8880 inherit_rpath=no
8881 link_all_deplibs=unknown
8882 module_cmds=
8883 module_expsym_cmds=
8884 old_archive_from_new_cmds=
8885 old_archive_from_expsyms_cmds=
8886 thread_safe_flag_spec=
8887 whole_archive_flag_spec=
8888 # include_expsyms should be a list of space-separated symbols to be *always*
8889 # included in the symbol list
8890 include_expsyms=
8891 # exclude_expsyms can be an extended regexp of symbols to exclude
8892 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8893 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8894 # as well as any symbol that contains `d'.
8895 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8896 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8897 # platforms (ab)use it in PIC code, but their linkers get confused if
8898 # the symbol is explicitly referenced. Since portable code cannot
8899 # rely on this symbol name, it's probably fine to never include it in
8900 # preloaded symbol tables.
8901 # Exclude shared library initialization/finalization symbols.
8902 extract_expsyms_cmds=
8903
8904 case $host_os in
8905 cygwin* | mingw* | pw32* | cegcc*)
8906 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8907 # When not using gcc, we currently assume that we are using
8908 # Microsoft Visual C++.
8909 if test "$GCC" != yes; then
8910 with_gnu_ld=no
8911 fi
8912 ;;
8913 interix*)
8914 # we just hope/assume this is gcc and not c89 (= MSVC++)
8915 with_gnu_ld=yes
8916 ;;
8917 openbsd*)
8918 with_gnu_ld=no
8919 ;;
8920 linux* | k*bsd*-gnu | gnu*)
8921 link_all_deplibs=no
8922 ;;
8923 esac
8924
8925 ld_shlibs=yes
8926
8927 # On some targets, GNU ld is compatible enough with the native linker
8928 # that we're better off using the native interface for both.
8929 lt_use_gnu_ld_interface=no
8930 if test "$with_gnu_ld" = yes; then
8931 case $host_os in
8932 aix*)
8933 # The AIX port of GNU ld has always aspired to compatibility
8934 # with the native linker. However, as the warning in the GNU ld
8935 # block says, versions before 2.19.5* couldn't really create working
8936 # shared libraries, regardless of the interface used.
8937 case `$LD -v 2>&1` in
8938 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8939 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8940 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8941 *)
8942 lt_use_gnu_ld_interface=yes
8943 ;;
8944 esac
8945 ;;
8946 *)
8947 lt_use_gnu_ld_interface=yes
8948 ;;
8949 esac
8950 fi
8951
8952 if test "$lt_use_gnu_ld_interface" = yes; then
8953 # If archive_cmds runs LD, not CC, wlarc should be empty
8954 wlarc='${wl}'
8955
8956 # Set some defaults for GNU ld with shared library support. These
8957 # are reset later if shared libraries are not supported. Putting them
8958 # here allows them to be overridden if necessary.
8959 runpath_var=LD_RUN_PATH
8960 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8961 export_dynamic_flag_spec='${wl}--export-dynamic'
8962 # ancient GNU ld didn't support --whole-archive et. al.
8963 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8964 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8965 else
8966 whole_archive_flag_spec=
8967 fi
8968 supports_anon_versioning=no
8969 case `$LD -v 2>&1` in
8970 *GNU\ gold*) supports_anon_versioning=yes ;;
8971 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8972 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8973 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8974 *\ 2.11.*) ;; # other 2.11 versions
8975 *) supports_anon_versioning=yes ;;
8976 esac
8977
8978 # See if GNU ld supports shared libraries.
8979 case $host_os in
8980 aix[3-9]*)
8981 # On AIX/PPC, the GNU linker is very broken
8982 if test "$host_cpu" != ia64; then
8983 ld_shlibs=no
8984 cat <<_LT_EOF 1>&2
8985
8986 *** Warning: the GNU linker, at least up to release 2.19, is reported
8987 *** to be unable to reliably create shared libraries on AIX.
8988 *** Therefore, libtool is disabling shared libraries support. If you
8989 *** really care for shared libraries, you may want to install binutils
8990 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8991 *** You will then need to restart the configuration process.
8992
8993 _LT_EOF
8994 fi
8995 ;;
8996
8997 amigaos*)
8998 case $host_cpu in
8999 powerpc)
9000 # see comment about AmigaOS4 .so support
9001 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9002 archive_expsym_cmds=''
9003 ;;
9004 m68k)
9005 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)'
9006 hardcode_libdir_flag_spec='-L$libdir'
9007 hardcode_minus_L=yes
9008 ;;
9009 esac
9010 ;;
9011
9012 beos*)
9013 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9014 allow_undefined_flag=unsupported
9015 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
9016 # support --undefined. This deserves some investigation. FIXME
9017 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9018 else
9019 ld_shlibs=no
9020 fi
9021 ;;
9022
9023 cygwin* | mingw* | pw32* | cegcc*)
9024 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9025 # as there is no search path for DLLs.
9026 hardcode_libdir_flag_spec='-L$libdir'
9027 export_dynamic_flag_spec='${wl}--export-all-symbols'
9028 allow_undefined_flag=unsupported
9029 always_export_symbols=no
9030 enable_shared_with_static_runtimes=yes
9031 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9032 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9033
9034 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9035 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9036 # If the export-symbols file already is a .def file (1st line
9037 # is EXPORTS), use it as is; otherwise, prepend...
9038 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9039 cp $export_symbols $output_objdir/$soname.def;
9040 else
9041 echo EXPORTS > $output_objdir/$soname.def;
9042 cat $export_symbols >> $output_objdir/$soname.def;
9043 fi~
9044 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9045 else
9046 ld_shlibs=no
9047 fi
9048 ;;
9049
9050 haiku*)
9051 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9052 link_all_deplibs=yes
9053 ;;
9054
9055 interix[3-9]*)
9056 hardcode_direct=no
9057 hardcode_shlibpath_var=no
9058 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9059 export_dynamic_flag_spec='${wl}-E'
9060 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9061 # Instead, shared libraries are loaded at an image base (0x10000000 by
9062 # default) and relocated if they conflict, which is a slow very memory
9063 # consuming and fragmenting process. To avoid this, we pick a random,
9064 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9065 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9066 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9067 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'
9068 ;;
9069
9070 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9071 tmp_diet=no
9072 if test "$host_os" = linux-dietlibc; then
9073 case $cc_basename in
9074 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9075 esac
9076 fi
9077 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9078 && test "$tmp_diet" = no
9079 then
9080 tmp_addflag=' $pic_flag'
9081 tmp_sharedflag='-shared'
9082 case $cc_basename,$host_cpu in
9083 pgcc*) # Portland Group C compiler
9084 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'
9085 tmp_addflag=' $pic_flag'
9086 ;;
9087 pgf77* | pgf90* | pgf95* | pgfortran*)
9088 # Portland Group f77 and f90 compilers
9089 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'
9090 tmp_addflag=' $pic_flag -Mnomain' ;;
9091 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9092 tmp_addflag=' -i_dynamic' ;;
9093 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9094 tmp_addflag=' -i_dynamic -nofor_main' ;;
9095 ifc* | ifort*) # Intel Fortran compiler
9096 tmp_addflag=' -nofor_main' ;;
9097 lf95*) # Lahey Fortran 8.1
9098 whole_archive_flag_spec=
9099 tmp_sharedflag='--shared' ;;
9100 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9101 tmp_sharedflag='-qmkshrobj'
9102 tmp_addflag= ;;
9103 nvcc*) # Cuda Compiler Driver 2.2
9104 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'
9105 compiler_needs_object=yes
9106 ;;
9107 esac
9108 case `$CC -V 2>&1 | sed 5q` in
9109 *Sun\ C*) # Sun C 5.9
9110 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'
9111 compiler_needs_object=yes
9112 tmp_sharedflag='-G' ;;
9113 *Sun\ F*) # Sun Fortran 8.3
9114 tmp_sharedflag='-G' ;;
9115 esac
9116 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9117
9118 if test "x$supports_anon_versioning" = xyes; then
9119 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9120 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9121 echo "local: *; };" >> $output_objdir/$libname.ver~
9122 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9123 fi
9124
9125 case $cc_basename in
9126 xlf* | bgf* | bgxlf* | mpixlf*)
9127 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9128 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9129 hardcode_libdir_flag_spec=
9130 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9131 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9132 if test "x$supports_anon_versioning" = xyes; then
9133 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9134 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9135 echo "local: *; };" >> $output_objdir/$libname.ver~
9136 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9137 fi
9138 ;;
9139 esac
9140 else
9141 ld_shlibs=no
9142 fi
9143 ;;
9144
9145 netbsd* | netbsdelf*-gnu)
9146 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9147 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9148 wlarc=
9149 else
9150 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9151 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9152 fi
9153 ;;
9154
9155 solaris*)
9156 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9157 ld_shlibs=no
9158 cat <<_LT_EOF 1>&2
9159
9160 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9161 *** create shared libraries on Solaris systems. Therefore, libtool
9162 *** is disabling shared libraries support. We urge you to upgrade GNU
9163 *** binutils to release 2.9.1 or newer. Another option is to modify
9164 *** your PATH or compiler configuration so that the native linker is
9165 *** used, and then restart.
9166
9167 _LT_EOF
9168 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9169 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9170 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9171 else
9172 ld_shlibs=no
9173 fi
9174 ;;
9175
9176 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9177 case `$LD -v 2>&1` in
9178 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9179 ld_shlibs=no
9180 cat <<_LT_EOF 1>&2
9181
9182 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9183 *** reliably create shared libraries on SCO systems. Therefore, libtool
9184 *** is disabling shared libraries support. We urge you to upgrade GNU
9185 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9186 *** your PATH or compiler configuration so that the native linker is
9187 *** used, and then restart.
9188
9189 _LT_EOF
9190 ;;
9191 *)
9192 # For security reasons, it is highly recommended that you always
9193 # use absolute paths for naming shared libraries, and exclude the
9194 # DT_RUNPATH tag from executables and libraries. But doing so
9195 # requires that you compile everything twice, which is a pain.
9196 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9197 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9198 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9199 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9200 else
9201 ld_shlibs=no
9202 fi
9203 ;;
9204 esac
9205 ;;
9206
9207 sunos4*)
9208 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9209 wlarc=
9210 hardcode_direct=yes
9211 hardcode_shlibpath_var=no
9212 ;;
9213
9214 *)
9215 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9216 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9217 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9218 else
9219 ld_shlibs=no
9220 fi
9221 ;;
9222 esac
9223
9224 if test "$ld_shlibs" = no; then
9225 runpath_var=
9226 hardcode_libdir_flag_spec=
9227 export_dynamic_flag_spec=
9228 whole_archive_flag_spec=
9229 fi
9230 else
9231 # PORTME fill in a description of your system's linker (not GNU ld)
9232 case $host_os in
9233 aix3*)
9234 allow_undefined_flag=unsupported
9235 always_export_symbols=yes
9236 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'
9237 # Note: this linker hardcodes the directories in LIBPATH if there
9238 # are no directories specified by -L.
9239 hardcode_minus_L=yes
9240 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9241 # Neither direct hardcoding nor static linking is supported with a
9242 # broken collect2.
9243 hardcode_direct=unsupported
9244 fi
9245 ;;
9246
9247 aix[4-9]*)
9248 if test "$host_cpu" = ia64; then
9249 # On IA64, the linker does run time linking by default, so we don't
9250 # have to do anything special.
9251 aix_use_runtimelinking=no
9252 exp_sym_flag='-Bexport'
9253 no_entry_flag=""
9254 else
9255 # If we're using GNU nm, then we don't want the "-C" option.
9256 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9257 # Also, AIX nm treats weak defined symbols like other global
9258 # defined symbols, whereas GNU nm marks them as "W".
9259 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9260 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'
9261 else
9262 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9263 fi
9264 aix_use_runtimelinking=no
9265
9266 # Test if we are trying to use run time linking or normal
9267 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9268 # need to do runtime linking.
9269 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9270 for ld_flag in $LDFLAGS; do
9271 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9272 aix_use_runtimelinking=yes
9273 break
9274 fi
9275 done
9276 ;;
9277 esac
9278
9279 exp_sym_flag='-bexport'
9280 no_entry_flag='-bnoentry'
9281 fi
9282
9283 # When large executables or shared objects are built, AIX ld can
9284 # have problems creating the table of contents. If linking a library
9285 # or program results in "error TOC overflow" add -mminimal-toc to
9286 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9287 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9288
9289 archive_cmds=''
9290 hardcode_direct=yes
9291 hardcode_direct_absolute=yes
9292 hardcode_libdir_separator=':'
9293 link_all_deplibs=yes
9294 file_list_spec='${wl}-f,'
9295
9296 if test "$GCC" = yes; then
9297 case $host_os in aix4.[012]|aix4.[012].*)
9298 # We only want to do this on AIX 4.2 and lower, the check
9299 # below for broken collect2 doesn't work under 4.3+
9300 collect2name=`${CC} -print-prog-name=collect2`
9301 if test -f "$collect2name" &&
9302 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9303 then
9304 # We have reworked collect2
9305 :
9306 else
9307 # We have old collect2
9308 hardcode_direct=unsupported
9309 # It fails to find uninstalled libraries when the uninstalled
9310 # path is not listed in the libpath. Setting hardcode_minus_L
9311 # to unsupported forces relinking
9312 hardcode_minus_L=yes
9313 hardcode_libdir_flag_spec='-L$libdir'
9314 hardcode_libdir_separator=
9315 fi
9316 ;;
9317 esac
9318 shared_flag='-shared'
9319 if test "$aix_use_runtimelinking" = yes; then
9320 shared_flag="$shared_flag "'${wl}-G'
9321 fi
9322 link_all_deplibs=no
9323 else
9324 # not using gcc
9325 if test "$host_cpu" = ia64; then
9326 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9327 # chokes on -Wl,-G. The following line is correct:
9328 shared_flag='-G'
9329 else
9330 if test "$aix_use_runtimelinking" = yes; then
9331 shared_flag='${wl}-G'
9332 else
9333 shared_flag='${wl}-bM:SRE'
9334 fi
9335 fi
9336 fi
9337
9338 export_dynamic_flag_spec='${wl}-bexpall'
9339 # It seems that -bexpall does not export symbols beginning with
9340 # underscore (_), so it is better to generate a list of symbols to export.
9341 always_export_symbols=yes
9342 if test "$aix_use_runtimelinking" = yes; then
9343 # Warning - without using the other runtime loading flags (-brtl),
9344 # -berok will link without error, but may produce a broken library.
9345 allow_undefined_flag='-berok'
9346 # Determine the default libpath from the value encoded in an
9347 # empty executable.
9348 if test "${lt_cv_aix_libpath+set}" = set; then
9349 aix_libpath=$lt_cv_aix_libpath
9350 else
9351 if ${lt_cv_aix_libpath_+:} false; then :
9352 $as_echo_n "(cached) " >&6
9353 else
9354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9355 /* end confdefs.h. */
9356
9357 int
9358 main ()
9359 {
9360
9361 ;
9362 return 0;
9363 }
9364 _ACEOF
9365 if ac_fn_c_try_link "$LINENO"; then :
9366
9367 lt_aix_libpath_sed='
9368 /Import File Strings/,/^$/ {
9369 /^0/ {
9370 s/^0 *\([^ ]*\) *$/\1/
9371 p
9372 }
9373 }'
9374 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9375 # Check for a 64-bit object if we didn't find anything.
9376 if test -z "$lt_cv_aix_libpath_"; then
9377 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9378 fi
9379 fi
9380 rm -f core conftest.err conftest.$ac_objext \
9381 conftest$ac_exeext conftest.$ac_ext
9382 if test -z "$lt_cv_aix_libpath_"; then
9383 lt_cv_aix_libpath_="/usr/lib:/lib"
9384 fi
9385
9386 fi
9387
9388 aix_libpath=$lt_cv_aix_libpath_
9389 fi
9390
9391 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9392 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"
9393 else
9394 if test "$host_cpu" = ia64; then
9395 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9396 allow_undefined_flag="-z nodefs"
9397 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"
9398 else
9399 # Determine the default libpath from the value encoded in an
9400 # empty executable.
9401 if test "${lt_cv_aix_libpath+set}" = set; then
9402 aix_libpath=$lt_cv_aix_libpath
9403 else
9404 if ${lt_cv_aix_libpath_+:} false; then :
9405 $as_echo_n "(cached) " >&6
9406 else
9407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9408 /* end confdefs.h. */
9409
9410 int
9411 main ()
9412 {
9413
9414 ;
9415 return 0;
9416 }
9417 _ACEOF
9418 if ac_fn_c_try_link "$LINENO"; then :
9419
9420 lt_aix_libpath_sed='
9421 /Import File Strings/,/^$/ {
9422 /^0/ {
9423 s/^0 *\([^ ]*\) *$/\1/
9424 p
9425 }
9426 }'
9427 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9428 # Check for a 64-bit object if we didn't find anything.
9429 if test -z "$lt_cv_aix_libpath_"; then
9430 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9431 fi
9432 fi
9433 rm -f core conftest.err conftest.$ac_objext \
9434 conftest$ac_exeext conftest.$ac_ext
9435 if test -z "$lt_cv_aix_libpath_"; then
9436 lt_cv_aix_libpath_="/usr/lib:/lib"
9437 fi
9438
9439 fi
9440
9441 aix_libpath=$lt_cv_aix_libpath_
9442 fi
9443
9444 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9445 # Warning - without using the other run time loading flags,
9446 # -berok will link without error, but may produce a broken library.
9447 no_undefined_flag=' ${wl}-bernotok'
9448 allow_undefined_flag=' ${wl}-berok'
9449 if test "$with_gnu_ld" = yes; then
9450 # We only use this code for GNU lds that support --whole-archive.
9451 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9452 else
9453 # Exported symbols can be pulled into shared objects from archives
9454 whole_archive_flag_spec='$convenience'
9455 fi
9456 archive_cmds_need_lc=yes
9457 # This is similar to how AIX traditionally builds its shared libraries.
9458 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'
9459 fi
9460 fi
9461 ;;
9462
9463 amigaos*)
9464 case $host_cpu in
9465 powerpc)
9466 # see comment about AmigaOS4 .so support
9467 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9468 archive_expsym_cmds=''
9469 ;;
9470 m68k)
9471 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)'
9472 hardcode_libdir_flag_spec='-L$libdir'
9473 hardcode_minus_L=yes
9474 ;;
9475 esac
9476 ;;
9477
9478 bsdi[45]*)
9479 export_dynamic_flag_spec=-rdynamic
9480 ;;
9481
9482 cygwin* | mingw* | pw32* | cegcc*)
9483 # When not using gcc, we currently assume that we are using
9484 # Microsoft Visual C++.
9485 # hardcode_libdir_flag_spec is actually meaningless, as there is
9486 # no search path for DLLs.
9487 case $cc_basename in
9488 cl*)
9489 # Native MSVC
9490 hardcode_libdir_flag_spec=' '
9491 allow_undefined_flag=unsupported
9492 always_export_symbols=yes
9493 file_list_spec='@'
9494 # Tell ltmain to make .lib files, not .a files.
9495 libext=lib
9496 # Tell ltmain to make .dll files, not .so files.
9497 shrext_cmds=".dll"
9498 # FIXME: Setting linknames here is a bad hack.
9499 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9500 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9501 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9502 else
9503 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9504 fi~
9505 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9506 linknames='
9507 # The linker will not automatically build a static lib if we build a DLL.
9508 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9509 enable_shared_with_static_runtimes=yes
9510 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9511 # Don't use ranlib
9512 old_postinstall_cmds='chmod 644 $oldlib'
9513 postlink_cmds='lt_outputfile="@OUTPUT@"~
9514 lt_tool_outputfile="@TOOL_OUTPUT@"~
9515 case $lt_outputfile in
9516 *.exe|*.EXE) ;;
9517 *)
9518 lt_outputfile="$lt_outputfile.exe"
9519 lt_tool_outputfile="$lt_tool_outputfile.exe"
9520 ;;
9521 esac~
9522 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9523 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9524 $RM "$lt_outputfile.manifest";
9525 fi'
9526 ;;
9527 *)
9528 # Assume MSVC wrapper
9529 hardcode_libdir_flag_spec=' '
9530 allow_undefined_flag=unsupported
9531 # Tell ltmain to make .lib files, not .a files.
9532 libext=lib
9533 # Tell ltmain to make .dll files, not .so files.
9534 shrext_cmds=".dll"
9535 # FIXME: Setting linknames here is a bad hack.
9536 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9537 # The linker will automatically build a .lib file if we build a DLL.
9538 old_archive_from_new_cmds='true'
9539 # FIXME: Should let the user specify the lib program.
9540 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9541 enable_shared_with_static_runtimes=yes
9542 ;;
9543 esac
9544 ;;
9545
9546 darwin* | rhapsody*)
9547
9548
9549 archive_cmds_need_lc=no
9550 hardcode_direct=no
9551 hardcode_automatic=yes
9552 hardcode_shlibpath_var=unsupported
9553 if test "$lt_cv_ld_force_load" = "yes"; then
9554 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\"`'
9555 else
9556 whole_archive_flag_spec=''
9557 fi
9558 link_all_deplibs=yes
9559 allow_undefined_flag="$_lt_dar_allow_undefined"
9560 case $cc_basename in
9561 ifort*) _lt_dar_can_shared=yes ;;
9562 *) _lt_dar_can_shared=$GCC ;;
9563 esac
9564 if test "$_lt_dar_can_shared" = "yes"; then
9565 output_verbose_link_cmd=func_echo_all
9566 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9567 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9568 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}"
9569 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}"
9570
9571 else
9572 ld_shlibs=no
9573 fi
9574
9575 ;;
9576
9577 dgux*)
9578 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9579 hardcode_libdir_flag_spec='-L$libdir'
9580 hardcode_shlibpath_var=no
9581 ;;
9582
9583 freebsd1*)
9584 ld_shlibs=no
9585 ;;
9586
9587 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9588 # support. Future versions do this automatically, but an explicit c++rt0.o
9589 # does not break anything, and helps significantly (at the cost of a little
9590 # extra space).
9591 freebsd2.2*)
9592 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9593 hardcode_libdir_flag_spec='-R$libdir'
9594 hardcode_direct=yes
9595 hardcode_shlibpath_var=no
9596 ;;
9597
9598 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9599 freebsd2*)
9600 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9601 hardcode_direct=yes
9602 hardcode_minus_L=yes
9603 hardcode_shlibpath_var=no
9604 ;;
9605
9606 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9607 freebsd* | dragonfly*)
9608 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9609 hardcode_libdir_flag_spec='-R$libdir'
9610 hardcode_direct=yes
9611 hardcode_shlibpath_var=no
9612 ;;
9613
9614 hpux9*)
9615 if test "$GCC" = yes; then
9616 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9617 else
9618 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'
9619 fi
9620 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9621 hardcode_libdir_separator=:
9622 hardcode_direct=yes
9623
9624 # hardcode_minus_L: Not really in the search PATH,
9625 # but as the default location of the library.
9626 hardcode_minus_L=yes
9627 export_dynamic_flag_spec='${wl}-E'
9628 ;;
9629
9630 hpux10*)
9631 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9632 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9633 else
9634 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9635 fi
9636 if test "$with_gnu_ld" = no; then
9637 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9638 hardcode_libdir_flag_spec_ld='+b $libdir'
9639 hardcode_libdir_separator=:
9640 hardcode_direct=yes
9641 hardcode_direct_absolute=yes
9642 export_dynamic_flag_spec='${wl}-E'
9643 # hardcode_minus_L: Not really in the search PATH,
9644 # but as the default location of the library.
9645 hardcode_minus_L=yes
9646 fi
9647 ;;
9648
9649 hpux11*)
9650 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9651 case $host_cpu in
9652 hppa*64*)
9653 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9654 ;;
9655 ia64*)
9656 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9657 ;;
9658 *)
9659 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9660 ;;
9661 esac
9662 else
9663 case $host_cpu in
9664 hppa*64*)
9665 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9666 ;;
9667 ia64*)
9668 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9669 ;;
9670 *)
9671
9672 # Older versions of the 11.00 compiler do not understand -b yet
9673 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9675 $as_echo_n "checking if $CC understands -b... " >&6; }
9676 if ${lt_cv_prog_compiler__b+:} false; then :
9677 $as_echo_n "(cached) " >&6
9678 else
9679 lt_cv_prog_compiler__b=no
9680 save_LDFLAGS="$LDFLAGS"
9681 LDFLAGS="$LDFLAGS -b"
9682 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9683 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9684 # The linker can only warn and ignore the option if not recognized
9685 # So say no if there are warnings
9686 if test -s conftest.err; then
9687 # Append any errors to the config.log.
9688 cat conftest.err 1>&5
9689 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9690 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9691 if diff conftest.exp conftest.er2 >/dev/null; then
9692 lt_cv_prog_compiler__b=yes
9693 fi
9694 else
9695 lt_cv_prog_compiler__b=yes
9696 fi
9697 fi
9698 $RM -r conftest*
9699 LDFLAGS="$save_LDFLAGS"
9700
9701 fi
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9703 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9704
9705 if test x"$lt_cv_prog_compiler__b" = xyes; then
9706 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9707 else
9708 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9709 fi
9710
9711 ;;
9712 esac
9713 fi
9714 if test "$with_gnu_ld" = no; then
9715 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9716 hardcode_libdir_separator=:
9717
9718 case $host_cpu in
9719 hppa*64*|ia64*)
9720 hardcode_direct=no
9721 hardcode_shlibpath_var=no
9722 ;;
9723 *)
9724 hardcode_direct=yes
9725 hardcode_direct_absolute=yes
9726 export_dynamic_flag_spec='${wl}-E'
9727
9728 # hardcode_minus_L: Not really in the search PATH,
9729 # but as the default location of the library.
9730 hardcode_minus_L=yes
9731 ;;
9732 esac
9733 fi
9734 ;;
9735
9736 irix5* | irix6* | nonstopux*)
9737 if test "$GCC" = yes; then
9738 archive_cmds='$CC -shared $pic_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'
9739 # Try to use the -exported_symbol ld option, if it does not
9740 # work, assume that -exports_file does not work either and
9741 # implicitly export all symbols.
9742 # This should be the same for all languages, so no per-tag cache variable.
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9744 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9745 if ${lt_cv_irix_exported_symbol+:} false; then :
9746 $as_echo_n "(cached) " >&6
9747 else
9748 save_LDFLAGS="$LDFLAGS"
9749 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9751 /* end confdefs.h. */
9752 int foo (void) { return 0; }
9753 _ACEOF
9754 if ac_fn_c_try_link "$LINENO"; then :
9755 lt_cv_irix_exported_symbol=yes
9756 else
9757 lt_cv_irix_exported_symbol=no
9758 fi
9759 rm -f core conftest.err conftest.$ac_objext \
9760 conftest$ac_exeext conftest.$ac_ext
9761 LDFLAGS="$save_LDFLAGS"
9762 fi
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9764 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9765 if test "$lt_cv_irix_exported_symbol" = yes; then
9766 archive_expsym_cmds='$CC -shared $pic_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 ${wl}-exports_file ${wl}$export_symbols -o $lib'
9767 fi
9768 else
9769 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'
9770 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'
9771 fi
9772 archive_cmds_need_lc='no'
9773 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9774 hardcode_libdir_separator=:
9775 inherit_rpath=yes
9776 link_all_deplibs=yes
9777 ;;
9778
9779 netbsd* | netbsdelf*-gnu)
9780 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9781 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9782 else
9783 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9784 fi
9785 hardcode_libdir_flag_spec='-R$libdir'
9786 hardcode_direct=yes
9787 hardcode_shlibpath_var=no
9788 ;;
9789
9790 newsos6)
9791 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9792 hardcode_direct=yes
9793 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9794 hardcode_libdir_separator=:
9795 hardcode_shlibpath_var=no
9796 ;;
9797
9798 *nto* | *qnx*)
9799 ;;
9800
9801 openbsd*)
9802 if test -f /usr/libexec/ld.so; then
9803 hardcode_direct=yes
9804 hardcode_shlibpath_var=no
9805 hardcode_direct_absolute=yes
9806 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9807 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9808 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9809 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9810 export_dynamic_flag_spec='${wl}-E'
9811 else
9812 case $host_os in
9813 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9814 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9815 hardcode_libdir_flag_spec='-R$libdir'
9816 ;;
9817 *)
9818 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9819 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9820 ;;
9821 esac
9822 fi
9823 else
9824 ld_shlibs=no
9825 fi
9826 ;;
9827
9828 os2*)
9829 hardcode_libdir_flag_spec='-L$libdir'
9830 hardcode_minus_L=yes
9831 allow_undefined_flag=unsupported
9832 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'
9833 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9834 ;;
9835
9836 osf3*)
9837 if test "$GCC" = yes; then
9838 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9839 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'
9840 else
9841 allow_undefined_flag=' -expect_unresolved \*'
9842 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'
9843 fi
9844 archive_cmds_need_lc='no'
9845 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9846 hardcode_libdir_separator=:
9847 ;;
9848
9849 osf4* | osf5*) # as osf3* with the addition of -msym flag
9850 if test "$GCC" = yes; then
9851 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9852 archive_cmds='$CC -shared${allow_undefined_flag} $pic_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'
9853 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9854 else
9855 allow_undefined_flag=' -expect_unresolved \*'
9856 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'
9857 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~
9858 $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'
9859
9860 # Both c and cxx compiler support -rpath directly
9861 hardcode_libdir_flag_spec='-rpath $libdir'
9862 fi
9863 archive_cmds_need_lc='no'
9864 hardcode_libdir_separator=:
9865 ;;
9866
9867 solaris*)
9868 no_undefined_flag=' -z defs'
9869 if test "$GCC" = yes; then
9870 wlarc='${wl}'
9871 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9872 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9873 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9874 else
9875 case `$CC -V 2>&1` in
9876 *"Compilers 5.0"*)
9877 wlarc=''
9878 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9879 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9880 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9881 ;;
9882 *)
9883 wlarc='${wl}'
9884 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9885 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9886 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9887 ;;
9888 esac
9889 fi
9890 hardcode_libdir_flag_spec='-R$libdir'
9891 hardcode_shlibpath_var=no
9892 case $host_os in
9893 solaris2.[0-5] | solaris2.[0-5].*) ;;
9894 *)
9895 # The compiler driver will combine and reorder linker options,
9896 # but understands `-z linker_flag'. GCC discards it without `$wl',
9897 # but is careful enough not to reorder.
9898 # Supported since Solaris 2.6 (maybe 2.5.1?)
9899 if test "$GCC" = yes; then
9900 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9901 else
9902 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9903 fi
9904 ;;
9905 esac
9906 link_all_deplibs=yes
9907 ;;
9908
9909 sunos4*)
9910 if test "x$host_vendor" = xsequent; then
9911 # Use $CC to link under sequent, because it throws in some extra .o
9912 # files that make .init and .fini sections work.
9913 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9914 else
9915 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9916 fi
9917 hardcode_libdir_flag_spec='-L$libdir'
9918 hardcode_direct=yes
9919 hardcode_minus_L=yes
9920 hardcode_shlibpath_var=no
9921 ;;
9922
9923 sysv4)
9924 case $host_vendor in
9925 sni)
9926 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9927 hardcode_direct=yes # is this really true???
9928 ;;
9929 siemens)
9930 ## LD is ld it makes a PLAMLIB
9931 ## CC just makes a GrossModule.
9932 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9933 reload_cmds='$CC -r -o $output$reload_objs'
9934 hardcode_direct=no
9935 ;;
9936 motorola)
9937 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9938 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9939 ;;
9940 esac
9941 runpath_var='LD_RUN_PATH'
9942 hardcode_shlibpath_var=no
9943 ;;
9944
9945 sysv4.3*)
9946 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9947 hardcode_shlibpath_var=no
9948 export_dynamic_flag_spec='-Bexport'
9949 ;;
9950
9951 sysv4*MP*)
9952 if test -d /usr/nec; then
9953 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9954 hardcode_shlibpath_var=no
9955 runpath_var=LD_RUN_PATH
9956 hardcode_runpath_var=yes
9957 ld_shlibs=yes
9958 fi
9959 ;;
9960
9961 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9962 no_undefined_flag='${wl}-z,text'
9963 archive_cmds_need_lc=no
9964 hardcode_shlibpath_var=no
9965 runpath_var='LD_RUN_PATH'
9966
9967 if test "$GCC" = yes; then
9968 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9969 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9970 else
9971 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9972 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9973 fi
9974 ;;
9975
9976 sysv5* | sco3.2v5* | sco5v6*)
9977 # Note: We can NOT use -z defs as we might desire, because we do not
9978 # link with -lc, and that would cause any symbols used from libc to
9979 # always be unresolved, which means just about no library would
9980 # ever link correctly. If we're not using GNU ld we use -z text
9981 # though, which does catch some bad symbols but isn't as heavy-handed
9982 # as -z defs.
9983 no_undefined_flag='${wl}-z,text'
9984 allow_undefined_flag='${wl}-z,nodefs'
9985 archive_cmds_need_lc=no
9986 hardcode_shlibpath_var=no
9987 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9988 hardcode_libdir_separator=':'
9989 link_all_deplibs=yes
9990 export_dynamic_flag_spec='${wl}-Bexport'
9991 runpath_var='LD_RUN_PATH'
9992
9993 if test "$GCC" = yes; then
9994 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9995 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9996 else
9997 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9998 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9999 fi
10000 ;;
10001
10002 uts4*)
10003 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10004 hardcode_libdir_flag_spec='-L$libdir'
10005 hardcode_shlibpath_var=no
10006 ;;
10007
10008 *)
10009 ld_shlibs=no
10010 ;;
10011 esac
10012
10013 if test x$host_vendor = xsni; then
10014 case $host in
10015 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10016 export_dynamic_flag_spec='${wl}-Blargedynsym'
10017 ;;
10018 esac
10019 fi
10020 fi
10021
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10023 $as_echo "$ld_shlibs" >&6; }
10024 test "$ld_shlibs" = no && can_build_shared=no
10025
10026 with_gnu_ld=$with_gnu_ld
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042 #
10043 # Do we need to explicitly link libc?
10044 #
10045 case "x$archive_cmds_need_lc" in
10046 x|xyes)
10047 # Assume -lc should be added
10048 archive_cmds_need_lc=yes
10049
10050 if test "$enable_shared" = yes && test "$GCC" = yes; then
10051 case $archive_cmds in
10052 *'~'*)
10053 # FIXME: we may have to deal with multi-command sequences.
10054 ;;
10055 '$CC '*)
10056 # Test whether the compiler implicitly links with -lc since on some
10057 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10058 # to ld, don't add -lc before -lgcc.
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10060 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10061 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10062 $as_echo_n "(cached) " >&6
10063 else
10064 $RM conftest*
10065 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10066
10067 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10068 (eval $ac_compile) 2>&5
10069 ac_status=$?
10070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10071 test $ac_status = 0; } 2>conftest.err; then
10072 soname=conftest
10073 lib=conftest
10074 libobjs=conftest.$ac_objext
10075 deplibs=
10076 wl=$lt_prog_compiler_wl
10077 pic_flag=$lt_prog_compiler_pic
10078 compiler_flags=-v
10079 linker_flags=-v
10080 verstring=
10081 output_objdir=.
10082 libname=conftest
10083 lt_save_allow_undefined_flag=$allow_undefined_flag
10084 allow_undefined_flag=
10085 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10086 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10087 ac_status=$?
10088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10089 test $ac_status = 0; }
10090 then
10091 lt_cv_archive_cmds_need_lc=no
10092 else
10093 lt_cv_archive_cmds_need_lc=yes
10094 fi
10095 allow_undefined_flag=$lt_save_allow_undefined_flag
10096 else
10097 cat conftest.err 1>&5
10098 fi
10099 $RM conftest*
10100
10101 fi
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10103 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10104 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10105 ;;
10106 esac
10107 fi
10108 ;;
10109 esac
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10268 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10269
10270 if test "$GCC" = yes; then
10271 case $host_os in
10272 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10273 *) lt_awk_arg="/^libraries:/" ;;
10274 esac
10275 case $host_os in
10276 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10277 *) lt_sed_strip_eq="s,=/,/,g" ;;
10278 esac
10279 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10280 case $lt_search_path_spec in
10281 *\;*)
10282 # if the path contains ";" then we assume it to be the separator
10283 # otherwise default to the standard path separator (i.e. ":") - it is
10284 # assumed that no part of a normal pathname contains ";" but that should
10285 # okay in the real world where ";" in dirpaths is itself problematic.
10286 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10287 ;;
10288 *)
10289 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10290 ;;
10291 esac
10292 # Ok, now we have the path, separated by spaces, we can step through it
10293 # and add multilib dir if necessary.
10294 lt_tmp_lt_search_path_spec=
10295 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10296 for lt_sys_path in $lt_search_path_spec; do
10297 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10298 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10299 else
10300 test -d "$lt_sys_path" && \
10301 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10302 fi
10303 done
10304 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10305 BEGIN {RS=" "; FS="/|\n";} {
10306 lt_foo="";
10307 lt_count=0;
10308 for (lt_i = NF; lt_i > 0; lt_i--) {
10309 if ($lt_i != "" && $lt_i != ".") {
10310 if ($lt_i == "..") {
10311 lt_count++;
10312 } else {
10313 if (lt_count == 0) {
10314 lt_foo="/" $lt_i lt_foo;
10315 } else {
10316 lt_count--;
10317 }
10318 }
10319 }
10320 }
10321 if (lt_foo != "") { lt_freq[lt_foo]++; }
10322 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10323 }'`
10324 # AWK program above erroneously prepends '/' to C:/dos/paths
10325 # for these hosts.
10326 case $host_os in
10327 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10328 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10329 esac
10330 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10331 else
10332 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10333 fi
10334 library_names_spec=
10335 libname_spec='lib$name'
10336 soname_spec=
10337 shrext_cmds=".so"
10338 postinstall_cmds=
10339 postuninstall_cmds=
10340 finish_cmds=
10341 finish_eval=
10342 shlibpath_var=
10343 shlibpath_overrides_runpath=unknown
10344 version_type=none
10345 dynamic_linker="$host_os ld.so"
10346 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10347 need_lib_prefix=unknown
10348 hardcode_into_libs=no
10349
10350 # when you set need_version to no, make sure it does not cause -set_version
10351 # flags to be left without arguments
10352 need_version=unknown
10353
10354 case $host_os in
10355 aix3*)
10356 version_type=linux
10357 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10358 shlibpath_var=LIBPATH
10359
10360 # AIX 3 has no versioning support, so we append a major version to the name.
10361 soname_spec='${libname}${release}${shared_ext}$major'
10362 ;;
10363
10364 aix[4-9]*)
10365 version_type=linux
10366 need_lib_prefix=no
10367 need_version=no
10368 hardcode_into_libs=yes
10369 if test "$host_cpu" = ia64; then
10370 # AIX 5 supports IA64
10371 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10372 shlibpath_var=LD_LIBRARY_PATH
10373 else
10374 # With GCC up to 2.95.x, collect2 would create an import file
10375 # for dependence libraries. The import file would start with
10376 # the line `#! .'. This would cause the generated library to
10377 # depend on `.', always an invalid library. This was fixed in
10378 # development snapshots of GCC prior to 3.0.
10379 case $host_os in
10380 aix4 | aix4.[01] | aix4.[01].*)
10381 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10382 echo ' yes '
10383 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10384 :
10385 else
10386 can_build_shared=no
10387 fi
10388 ;;
10389 esac
10390 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10391 # soname into executable. Probably we can add versioning support to
10392 # collect2, so additional links can be useful in future.
10393 if test "$aix_use_runtimelinking" = yes; then
10394 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10395 # instead of lib<name>.a to let people know that these are not
10396 # typical AIX shared libraries.
10397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10398 else
10399 # We preserve .a as extension for shared libraries through AIX4.2
10400 # and later when we are not doing run time linking.
10401 library_names_spec='${libname}${release}.a $libname.a'
10402 soname_spec='${libname}${release}${shared_ext}$major'
10403 fi
10404 shlibpath_var=LIBPATH
10405 fi
10406 ;;
10407
10408 amigaos*)
10409 case $host_cpu in
10410 powerpc)
10411 # Since July 2007 AmigaOS4 officially supports .so libraries.
10412 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10414 ;;
10415 m68k)
10416 library_names_spec='$libname.ixlibrary $libname.a'
10417 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10418 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'
10419 ;;
10420 esac
10421 ;;
10422
10423 beos*)
10424 library_names_spec='${libname}${shared_ext}'
10425 dynamic_linker="$host_os ld.so"
10426 shlibpath_var=LIBRARY_PATH
10427 ;;
10428
10429 bsdi[45]*)
10430 version_type=linux
10431 need_version=no
10432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10433 soname_spec='${libname}${release}${shared_ext}$major'
10434 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10435 shlibpath_var=LD_LIBRARY_PATH
10436 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10437 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10438 # the default ld.so.conf also contains /usr/contrib/lib and
10439 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10440 # libtool to hard-code these into programs
10441 ;;
10442
10443 cygwin* | mingw* | pw32* | cegcc*)
10444 version_type=windows
10445 shrext_cmds=".dll"
10446 need_version=no
10447 need_lib_prefix=no
10448
10449 case $GCC,$cc_basename in
10450 yes,*)
10451 # gcc
10452 library_names_spec='$libname.dll.a'
10453 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10454 postinstall_cmds='base_file=`basename \${file}`~
10455 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10456 dldir=$destdir/`dirname \$dlpath`~
10457 test -d \$dldir || mkdir -p \$dldir~
10458 $install_prog $dir/$dlname \$dldir/$dlname~
10459 chmod a+x \$dldir/$dlname~
10460 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10461 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10462 fi'
10463 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10464 dlpath=$dir/\$dldll~
10465 $RM \$dlpath'
10466 shlibpath_overrides_runpath=yes
10467
10468 case $host_os in
10469 cygwin*)
10470 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10471 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10472
10473 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10474 ;;
10475 mingw* | cegcc*)
10476 # MinGW DLLs use traditional 'lib' prefix
10477 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10478 ;;
10479 pw32*)
10480 # pw32 DLLs use 'pw' prefix rather than 'lib'
10481 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10482 ;;
10483 esac
10484 dynamic_linker='Win32 ld.exe'
10485 ;;
10486
10487 *,cl*)
10488 # Native MSVC
10489 libname_spec='$name'
10490 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10491 library_names_spec='${libname}.dll.lib'
10492
10493 case $build_os in
10494 mingw*)
10495 sys_lib_search_path_spec=
10496 lt_save_ifs=$IFS
10497 IFS=';'
10498 for lt_path in $LIB
10499 do
10500 IFS=$lt_save_ifs
10501 # Let DOS variable expansion print the short 8.3 style file name.
10502 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10503 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10504 done
10505 IFS=$lt_save_ifs
10506 # Convert to MSYS style.
10507 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10508 ;;
10509 cygwin*)
10510 # Convert to unix form, then to dos form, then back to unix form
10511 # but this time dos style (no spaces!) so that the unix form looks
10512 # like /cygdrive/c/PROGRA~1:/cygdr...
10513 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10514 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10515 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10516 ;;
10517 *)
10518 sys_lib_search_path_spec="$LIB"
10519 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10520 # It is most probably a Windows format PATH.
10521 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10522 else
10523 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10524 fi
10525 # FIXME: find the short name or the path components, as spaces are
10526 # common. (e.g. "Program Files" -> "PROGRA~1")
10527 ;;
10528 esac
10529
10530 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10531 postinstall_cmds='base_file=`basename \${file}`~
10532 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10533 dldir=$destdir/`dirname \$dlpath`~
10534 test -d \$dldir || mkdir -p \$dldir~
10535 $install_prog $dir/$dlname \$dldir/$dlname'
10536 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10537 dlpath=$dir/\$dldll~
10538 $RM \$dlpath'
10539 shlibpath_overrides_runpath=yes
10540 dynamic_linker='Win32 link.exe'
10541 ;;
10542
10543 *)
10544 # Assume MSVC wrapper
10545 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10546 dynamic_linker='Win32 ld.exe'
10547 ;;
10548 esac
10549 # FIXME: first we should search . and the directory the executable is in
10550 shlibpath_var=PATH
10551 ;;
10552
10553 darwin* | rhapsody*)
10554 dynamic_linker="$host_os dyld"
10555 version_type=darwin
10556 need_lib_prefix=no
10557 need_version=no
10558 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10559 soname_spec='${libname}${release}${major}$shared_ext'
10560 shlibpath_overrides_runpath=yes
10561 shlibpath_var=DYLD_LIBRARY_PATH
10562 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10563
10564 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10565 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10566 ;;
10567
10568 dgux*)
10569 version_type=linux
10570 need_lib_prefix=no
10571 need_version=no
10572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10573 soname_spec='${libname}${release}${shared_ext}$major'
10574 shlibpath_var=LD_LIBRARY_PATH
10575 ;;
10576
10577 freebsd1*)
10578 dynamic_linker=no
10579 ;;
10580
10581 freebsd* | dragonfly*)
10582 # DragonFly does not have aout. When/if they implement a new
10583 # versioning mechanism, adjust this.
10584 if test -x /usr/bin/objformat; then
10585 objformat=`/usr/bin/objformat`
10586 else
10587 case $host_os in
10588 freebsd[123]*) objformat=aout ;;
10589 *) objformat=elf ;;
10590 esac
10591 fi
10592 version_type=freebsd-$objformat
10593 case $version_type in
10594 freebsd-elf*)
10595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10596 need_version=no
10597 need_lib_prefix=no
10598 ;;
10599 freebsd-*)
10600 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10601 need_version=yes
10602 ;;
10603 esac
10604 shlibpath_var=LD_LIBRARY_PATH
10605 case $host_os in
10606 freebsd2*)
10607 shlibpath_overrides_runpath=yes
10608 ;;
10609 freebsd3.[01]* | freebsdelf3.[01]*)
10610 shlibpath_overrides_runpath=yes
10611 hardcode_into_libs=yes
10612 ;;
10613 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10614 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10615 shlibpath_overrides_runpath=no
10616 hardcode_into_libs=yes
10617 ;;
10618 *) # from 4.6 on, and DragonFly
10619 shlibpath_overrides_runpath=yes
10620 hardcode_into_libs=yes
10621 ;;
10622 esac
10623 ;;
10624
10625 gnu*)
10626 version_type=linux
10627 need_lib_prefix=no
10628 need_version=no
10629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10630 soname_spec='${libname}${release}${shared_ext}$major'
10631 shlibpath_var=LD_LIBRARY_PATH
10632 shlibpath_overrides_runpath=no
10633 hardcode_into_libs=yes
10634 ;;
10635
10636 haiku*)
10637 version_type=linux
10638 need_lib_prefix=no
10639 need_version=no
10640 dynamic_linker="$host_os runtime_loader"
10641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10642 soname_spec='${libname}${release}${shared_ext}$major'
10643 shlibpath_var=LIBRARY_PATH
10644 shlibpath_overrides_runpath=yes
10645 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10646 hardcode_into_libs=yes
10647 ;;
10648
10649 hpux9* | hpux10* | hpux11*)
10650 # Give a soname corresponding to the major version so that dld.sl refuses to
10651 # link against other versions.
10652 version_type=sunos
10653 need_lib_prefix=no
10654 need_version=no
10655 case $host_cpu in
10656 ia64*)
10657 shrext_cmds='.so'
10658 hardcode_into_libs=yes
10659 dynamic_linker="$host_os dld.so"
10660 shlibpath_var=LD_LIBRARY_PATH
10661 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10663 soname_spec='${libname}${release}${shared_ext}$major'
10664 if test "X$HPUX_IA64_MODE" = X32; then
10665 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10666 else
10667 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10668 fi
10669 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10670 ;;
10671 hppa*64*)
10672 shrext_cmds='.sl'
10673 hardcode_into_libs=yes
10674 dynamic_linker="$host_os dld.sl"
10675 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10676 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10678 soname_spec='${libname}${release}${shared_ext}$major'
10679 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10680 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10681 ;;
10682 *)
10683 shrext_cmds='.sl'
10684 dynamic_linker="$host_os dld.sl"
10685 shlibpath_var=SHLIB_PATH
10686 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10688 soname_spec='${libname}${release}${shared_ext}$major'
10689 ;;
10690 esac
10691 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10692 postinstall_cmds='chmod 555 $lib'
10693 # or fails outright, so override atomically:
10694 install_override_mode=555
10695 ;;
10696
10697 interix[3-9]*)
10698 version_type=linux
10699 need_lib_prefix=no
10700 need_version=no
10701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10702 soname_spec='${libname}${release}${shared_ext}$major'
10703 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10704 shlibpath_var=LD_LIBRARY_PATH
10705 shlibpath_overrides_runpath=no
10706 hardcode_into_libs=yes
10707 ;;
10708
10709 irix5* | irix6* | nonstopux*)
10710 case $host_os in
10711 nonstopux*) version_type=nonstopux ;;
10712 *)
10713 if test "$lt_cv_prog_gnu_ld" = yes; then
10714 version_type=linux
10715 else
10716 version_type=irix
10717 fi ;;
10718 esac
10719 need_lib_prefix=no
10720 need_version=no
10721 soname_spec='${libname}${release}${shared_ext}$major'
10722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10723 case $host_os in
10724 irix5* | nonstopux*)
10725 libsuff= shlibsuff=
10726 ;;
10727 *)
10728 case $LD in # libtool.m4 will add one of these switches to LD
10729 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10730 libsuff= shlibsuff= libmagic=32-bit;;
10731 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10732 libsuff=32 shlibsuff=N32 libmagic=N32;;
10733 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10734 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10735 *) libsuff= shlibsuff= libmagic=never-match;;
10736 esac
10737 ;;
10738 esac
10739 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10740 shlibpath_overrides_runpath=no
10741 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10742 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10743 hardcode_into_libs=yes
10744 ;;
10745
10746 # No shared lib support for Linux oldld, aout, or coff.
10747 linux*oldld* | linux*aout* | linux*coff*)
10748 dynamic_linker=no
10749 ;;
10750
10751 # This must be Linux ELF.
10752 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10753 version_type=linux
10754 need_lib_prefix=no
10755 need_version=no
10756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10757 soname_spec='${libname}${release}${shared_ext}$major'
10758 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10759 shlibpath_var=LD_LIBRARY_PATH
10760 shlibpath_overrides_runpath=no
10761
10762 # Some binutils ld are patched to set DT_RUNPATH
10763 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10764 $as_echo_n "(cached) " >&6
10765 else
10766 lt_cv_shlibpath_overrides_runpath=no
10767 save_LDFLAGS=$LDFLAGS
10768 save_libdir=$libdir
10769 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10770 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10772 /* end confdefs.h. */
10773
10774 int
10775 main ()
10776 {
10777
10778 ;
10779 return 0;
10780 }
10781 _ACEOF
10782 if ac_fn_c_try_link "$LINENO"; then :
10783 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10784 lt_cv_shlibpath_overrides_runpath=yes
10785 fi
10786 fi
10787 rm -f core conftest.err conftest.$ac_objext \
10788 conftest$ac_exeext conftest.$ac_ext
10789 LDFLAGS=$save_LDFLAGS
10790 libdir=$save_libdir
10791
10792 fi
10793
10794 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10795
10796 # This implies no fast_install, which is unacceptable.
10797 # Some rework will be needed to allow for fast_install
10798 # before this can be enabled.
10799 hardcode_into_libs=yes
10800
10801 # Append ld.so.conf contents to the search path
10802 if test -f /etc/ld.so.conf; then
10803 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' ' '`
10804 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10805 fi
10806
10807 # We used to test for /lib/ld.so.1 and disable shared libraries on
10808 # powerpc, because MkLinux only supported shared libraries with the
10809 # GNU dynamic linker. Since this was broken with cross compilers,
10810 # most powerpc-linux boxes support dynamic linking these days and
10811 # people can always --disable-shared, the test was removed, and we
10812 # assume the GNU/Linux dynamic linker is in use.
10813 dynamic_linker='GNU/Linux ld.so'
10814 ;;
10815
10816 netbsdelf*-gnu)
10817 version_type=linux
10818 need_lib_prefix=no
10819 need_version=no
10820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10821 soname_spec='${libname}${release}${shared_ext}$major'
10822 shlibpath_var=LD_LIBRARY_PATH
10823 shlibpath_overrides_runpath=no
10824 hardcode_into_libs=yes
10825 dynamic_linker='NetBSD ld.elf_so'
10826 ;;
10827
10828 netbsd*)
10829 version_type=sunos
10830 need_lib_prefix=no
10831 need_version=no
10832 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10834 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10835 dynamic_linker='NetBSD (a.out) ld.so'
10836 else
10837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10838 soname_spec='${libname}${release}${shared_ext}$major'
10839 dynamic_linker='NetBSD ld.elf_so'
10840 fi
10841 shlibpath_var=LD_LIBRARY_PATH
10842 shlibpath_overrides_runpath=yes
10843 hardcode_into_libs=yes
10844 ;;
10845
10846 newsos6)
10847 version_type=linux
10848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10849 shlibpath_var=LD_LIBRARY_PATH
10850 shlibpath_overrides_runpath=yes
10851 ;;
10852
10853 *nto* | *qnx*)
10854 version_type=qnx
10855 need_lib_prefix=no
10856 need_version=no
10857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10858 soname_spec='${libname}${release}${shared_ext}$major'
10859 shlibpath_var=LD_LIBRARY_PATH
10860 shlibpath_overrides_runpath=no
10861 hardcode_into_libs=yes
10862 dynamic_linker='ldqnx.so'
10863 ;;
10864
10865 openbsd*)
10866 version_type=sunos
10867 sys_lib_dlsearch_path_spec="/usr/lib"
10868 need_lib_prefix=no
10869 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10870 case $host_os in
10871 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10872 *) need_version=no ;;
10873 esac
10874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10875 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10876 shlibpath_var=LD_LIBRARY_PATH
10877 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10878 case $host_os in
10879 openbsd2.[89] | openbsd2.[89].*)
10880 shlibpath_overrides_runpath=no
10881 ;;
10882 *)
10883 shlibpath_overrides_runpath=yes
10884 ;;
10885 esac
10886 else
10887 shlibpath_overrides_runpath=yes
10888 fi
10889 ;;
10890
10891 os2*)
10892 libname_spec='$name'
10893 shrext_cmds=".dll"
10894 need_lib_prefix=no
10895 library_names_spec='$libname${shared_ext} $libname.a'
10896 dynamic_linker='OS/2 ld.exe'
10897 shlibpath_var=LIBPATH
10898 ;;
10899
10900 osf3* | osf4* | osf5*)
10901 version_type=osf
10902 need_lib_prefix=no
10903 need_version=no
10904 soname_spec='${libname}${release}${shared_ext}$major'
10905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10906 shlibpath_var=LD_LIBRARY_PATH
10907 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10908 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10909 ;;
10910
10911 rdos*)
10912 dynamic_linker=no
10913 ;;
10914
10915 solaris*)
10916 version_type=linux
10917 need_lib_prefix=no
10918 need_version=no
10919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10920 soname_spec='${libname}${release}${shared_ext}$major'
10921 shlibpath_var=LD_LIBRARY_PATH
10922 shlibpath_overrides_runpath=yes
10923 hardcode_into_libs=yes
10924 # ldd complains unless libraries are executable
10925 postinstall_cmds='chmod +x $lib'
10926 ;;
10927
10928 sunos4*)
10929 version_type=sunos
10930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10931 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10932 shlibpath_var=LD_LIBRARY_PATH
10933 shlibpath_overrides_runpath=yes
10934 if test "$with_gnu_ld" = yes; then
10935 need_lib_prefix=no
10936 fi
10937 need_version=yes
10938 ;;
10939
10940 sysv4 | sysv4.3*)
10941 version_type=linux
10942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10943 soname_spec='${libname}${release}${shared_ext}$major'
10944 shlibpath_var=LD_LIBRARY_PATH
10945 case $host_vendor in
10946 sni)
10947 shlibpath_overrides_runpath=no
10948 need_lib_prefix=no
10949 runpath_var=LD_RUN_PATH
10950 ;;
10951 siemens)
10952 need_lib_prefix=no
10953 ;;
10954 motorola)
10955 need_lib_prefix=no
10956 need_version=no
10957 shlibpath_overrides_runpath=no
10958 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10959 ;;
10960 esac
10961 ;;
10962
10963 sysv4*MP*)
10964 if test -d /usr/nec ;then
10965 version_type=linux
10966 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10967 soname_spec='$libname${shared_ext}.$major'
10968 shlibpath_var=LD_LIBRARY_PATH
10969 fi
10970 ;;
10971
10972 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10973 version_type=freebsd-elf
10974 need_lib_prefix=no
10975 need_version=no
10976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10977 soname_spec='${libname}${release}${shared_ext}$major'
10978 shlibpath_var=LD_LIBRARY_PATH
10979 shlibpath_overrides_runpath=yes
10980 hardcode_into_libs=yes
10981 if test "$with_gnu_ld" = yes; then
10982 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10983 else
10984 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10985 case $host_os in
10986 sco3.2v5*)
10987 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10988 ;;
10989 esac
10990 fi
10991 sys_lib_dlsearch_path_spec='/usr/lib'
10992 ;;
10993
10994 tpf*)
10995 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10996 version_type=linux
10997 need_lib_prefix=no
10998 need_version=no
10999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11000 shlibpath_var=LD_LIBRARY_PATH
11001 shlibpath_overrides_runpath=no
11002 hardcode_into_libs=yes
11003 ;;
11004
11005 uts4*)
11006 version_type=linux
11007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11008 soname_spec='${libname}${release}${shared_ext}$major'
11009 shlibpath_var=LD_LIBRARY_PATH
11010 ;;
11011
11012 *)
11013 dynamic_linker=no
11014 ;;
11015 esac
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11017 $as_echo "$dynamic_linker" >&6; }
11018 test "$dynamic_linker" = no && can_build_shared=no
11019
11020 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11021 if test "$GCC" = yes; then
11022 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11023 fi
11024
11025 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11026 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11027 fi
11028 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11029 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11030 fi
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11124 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11125 hardcode_action=
11126 if test -n "$hardcode_libdir_flag_spec" ||
11127 test -n "$runpath_var" ||
11128 test "X$hardcode_automatic" = "Xyes" ; then
11129
11130 # We can hardcode non-existent directories.
11131 if test "$hardcode_direct" != no &&
11132 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11133 # have to relink, otherwise we might link with an installed library
11134 # when we should be linking with a yet-to-be-installed one
11135 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11136 test "$hardcode_minus_L" != no; then
11137 # Linking always hardcodes the temporary library directory.
11138 hardcode_action=relink
11139 else
11140 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11141 hardcode_action=immediate
11142 fi
11143 else
11144 # We cannot hardcode anything, or else we can only hardcode existing
11145 # directories.
11146 hardcode_action=unsupported
11147 fi
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11149 $as_echo "$hardcode_action" >&6; }
11150
11151 if test "$hardcode_action" = relink ||
11152 test "$inherit_rpath" = yes; then
11153 # Fast installation is not supported
11154 enable_fast_install=no
11155 elif test "$shlibpath_overrides_runpath" = yes ||
11156 test "$enable_shared" = no; then
11157 # Fast installation is not necessary
11158 enable_fast_install=needless
11159 fi
11160
11161
11162
11163
11164
11165
11166 if test "x$enable_dlopen" != xyes; then
11167 enable_dlopen=unknown
11168 enable_dlopen_self=unknown
11169 enable_dlopen_self_static=unknown
11170 else
11171 lt_cv_dlopen=no
11172 lt_cv_dlopen_libs=
11173
11174 case $host_os in
11175 beos*)
11176 lt_cv_dlopen="load_add_on"
11177 lt_cv_dlopen_libs=
11178 lt_cv_dlopen_self=yes
11179 ;;
11180
11181 mingw* | pw32* | cegcc*)
11182 lt_cv_dlopen="LoadLibrary"
11183 lt_cv_dlopen_libs=
11184 ;;
11185
11186 cygwin*)
11187 lt_cv_dlopen="dlopen"
11188 lt_cv_dlopen_libs=
11189 ;;
11190
11191 darwin*)
11192 # if libdl is installed we need to link against it
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11194 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11195 if ${ac_cv_lib_dl_dlopen+:} false; then :
11196 $as_echo_n "(cached) " >&6
11197 else
11198 ac_check_lib_save_LIBS=$LIBS
11199 LIBS="-ldl $LIBS"
11200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11201 /* end confdefs.h. */
11202
11203 /* Override any GCC internal prototype to avoid an error.
11204 Use char because int might match the return type of a GCC
11205 builtin and then its argument prototype would still apply. */
11206 #ifdef __cplusplus
11207 extern "C"
11208 #endif
11209 char dlopen ();
11210 int
11211 main ()
11212 {
11213 return dlopen ();
11214 ;
11215 return 0;
11216 }
11217 _ACEOF
11218 if ac_fn_c_try_link "$LINENO"; then :
11219 ac_cv_lib_dl_dlopen=yes
11220 else
11221 ac_cv_lib_dl_dlopen=no
11222 fi
11223 rm -f core conftest.err conftest.$ac_objext \
11224 conftest$ac_exeext conftest.$ac_ext
11225 LIBS=$ac_check_lib_save_LIBS
11226 fi
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11228 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11229 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11230 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11231 else
11232
11233 lt_cv_dlopen="dyld"
11234 lt_cv_dlopen_libs=
11235 lt_cv_dlopen_self=yes
11236
11237 fi
11238
11239 ;;
11240
11241 *)
11242 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11243 if test "x$ac_cv_func_shl_load" = xyes; then :
11244 lt_cv_dlopen="shl_load"
11245 else
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11247 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11248 if ${ac_cv_lib_dld_shl_load+:} false; then :
11249 $as_echo_n "(cached) " >&6
11250 else
11251 ac_check_lib_save_LIBS=$LIBS
11252 LIBS="-ldld $LIBS"
11253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11254 /* end confdefs.h. */
11255
11256 /* Override any GCC internal prototype to avoid an error.
11257 Use char because int might match the return type of a GCC
11258 builtin and then its argument prototype would still apply. */
11259 #ifdef __cplusplus
11260 extern "C"
11261 #endif
11262 char shl_load ();
11263 int
11264 main ()
11265 {
11266 return shl_load ();
11267 ;
11268 return 0;
11269 }
11270 _ACEOF
11271 if ac_fn_c_try_link "$LINENO"; then :
11272 ac_cv_lib_dld_shl_load=yes
11273 else
11274 ac_cv_lib_dld_shl_load=no
11275 fi
11276 rm -f core conftest.err conftest.$ac_objext \
11277 conftest$ac_exeext conftest.$ac_ext
11278 LIBS=$ac_check_lib_save_LIBS
11279 fi
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11281 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11282 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11283 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11284 else
11285 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11286 if test "x$ac_cv_func_dlopen" = xyes; then :
11287 lt_cv_dlopen="dlopen"
11288 else
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11290 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11291 if ${ac_cv_lib_dl_dlopen+:} false; then :
11292 $as_echo_n "(cached) " >&6
11293 else
11294 ac_check_lib_save_LIBS=$LIBS
11295 LIBS="-ldl $LIBS"
11296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11297 /* end confdefs.h. */
11298
11299 /* Override any GCC internal prototype to avoid an error.
11300 Use char because int might match the return type of a GCC
11301 builtin and then its argument prototype would still apply. */
11302 #ifdef __cplusplus
11303 extern "C"
11304 #endif
11305 char dlopen ();
11306 int
11307 main ()
11308 {
11309 return dlopen ();
11310 ;
11311 return 0;
11312 }
11313 _ACEOF
11314 if ac_fn_c_try_link "$LINENO"; then :
11315 ac_cv_lib_dl_dlopen=yes
11316 else
11317 ac_cv_lib_dl_dlopen=no
11318 fi
11319 rm -f core conftest.err conftest.$ac_objext \
11320 conftest$ac_exeext conftest.$ac_ext
11321 LIBS=$ac_check_lib_save_LIBS
11322 fi
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11324 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11325 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11326 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11327 else
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11329 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11330 if ${ac_cv_lib_svld_dlopen+:} false; then :
11331 $as_echo_n "(cached) " >&6
11332 else
11333 ac_check_lib_save_LIBS=$LIBS
11334 LIBS="-lsvld $LIBS"
11335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11336 /* end confdefs.h. */
11337
11338 /* Override any GCC internal prototype to avoid an error.
11339 Use char because int might match the return type of a GCC
11340 builtin and then its argument prototype would still apply. */
11341 #ifdef __cplusplus
11342 extern "C"
11343 #endif
11344 char dlopen ();
11345 int
11346 main ()
11347 {
11348 return dlopen ();
11349 ;
11350 return 0;
11351 }
11352 _ACEOF
11353 if ac_fn_c_try_link "$LINENO"; then :
11354 ac_cv_lib_svld_dlopen=yes
11355 else
11356 ac_cv_lib_svld_dlopen=no
11357 fi
11358 rm -f core conftest.err conftest.$ac_objext \
11359 conftest$ac_exeext conftest.$ac_ext
11360 LIBS=$ac_check_lib_save_LIBS
11361 fi
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11363 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11364 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11365 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11366 else
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11368 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11369 if ${ac_cv_lib_dld_dld_link+:} false; then :
11370 $as_echo_n "(cached) " >&6
11371 else
11372 ac_check_lib_save_LIBS=$LIBS
11373 LIBS="-ldld $LIBS"
11374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11375 /* end confdefs.h. */
11376
11377 /* Override any GCC internal prototype to avoid an error.
11378 Use char because int might match the return type of a GCC
11379 builtin and then its argument prototype would still apply. */
11380 #ifdef __cplusplus
11381 extern "C"
11382 #endif
11383 char dld_link ();
11384 int
11385 main ()
11386 {
11387 return dld_link ();
11388 ;
11389 return 0;
11390 }
11391 _ACEOF
11392 if ac_fn_c_try_link "$LINENO"; then :
11393 ac_cv_lib_dld_dld_link=yes
11394 else
11395 ac_cv_lib_dld_dld_link=no
11396 fi
11397 rm -f core conftest.err conftest.$ac_objext \
11398 conftest$ac_exeext conftest.$ac_ext
11399 LIBS=$ac_check_lib_save_LIBS
11400 fi
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11402 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11403 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11404 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11405 fi
11406
11407
11408 fi
11409
11410
11411 fi
11412
11413
11414 fi
11415
11416
11417 fi
11418
11419
11420 fi
11421
11422 ;;
11423 esac
11424
11425 if test "x$lt_cv_dlopen" != xno; then
11426 enable_dlopen=yes
11427 else
11428 enable_dlopen=no
11429 fi
11430
11431 case $lt_cv_dlopen in
11432 dlopen)
11433 save_CPPFLAGS="$CPPFLAGS"
11434 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11435
11436 save_LDFLAGS="$LDFLAGS"
11437 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11438
11439 save_LIBS="$LIBS"
11440 LIBS="$lt_cv_dlopen_libs $LIBS"
11441
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11443 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11444 if ${lt_cv_dlopen_self+:} false; then :
11445 $as_echo_n "(cached) " >&6
11446 else
11447 if test "$cross_compiling" = yes; then :
11448 lt_cv_dlopen_self=cross
11449 else
11450 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11451 lt_status=$lt_dlunknown
11452 cat > conftest.$ac_ext <<_LT_EOF
11453 #line $LINENO "configure"
11454 #include "confdefs.h"
11455
11456 #if HAVE_DLFCN_H
11457 #include <dlfcn.h>
11458 #endif
11459
11460 #include <stdio.h>
11461
11462 #ifdef RTLD_GLOBAL
11463 # define LT_DLGLOBAL RTLD_GLOBAL
11464 #else
11465 # ifdef DL_GLOBAL
11466 # define LT_DLGLOBAL DL_GLOBAL
11467 # else
11468 # define LT_DLGLOBAL 0
11469 # endif
11470 #endif
11471
11472 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11473 find out it does not work in some platform. */
11474 #ifndef LT_DLLAZY_OR_NOW
11475 # ifdef RTLD_LAZY
11476 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11477 # else
11478 # ifdef DL_LAZY
11479 # define LT_DLLAZY_OR_NOW DL_LAZY
11480 # else
11481 # ifdef RTLD_NOW
11482 # define LT_DLLAZY_OR_NOW RTLD_NOW
11483 # else
11484 # ifdef DL_NOW
11485 # define LT_DLLAZY_OR_NOW DL_NOW
11486 # else
11487 # define LT_DLLAZY_OR_NOW 0
11488 # endif
11489 # endif
11490 # endif
11491 # endif
11492 #endif
11493
11494 /* When -fvisbility=hidden is used, assume the code has been annotated
11495 correspondingly for the symbols needed. */
11496 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11497 int fnord () __attribute__((visibility("default")));
11498 #endif
11499
11500 int fnord () { return 42; }
11501 int main ()
11502 {
11503 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11504 int status = $lt_dlunknown;
11505
11506 if (self)
11507 {
11508 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11509 else
11510 {
11511 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11512 else puts (dlerror ());
11513 }
11514 /* dlclose (self); */
11515 }
11516 else
11517 puts (dlerror ());
11518
11519 return status;
11520 }
11521 _LT_EOF
11522 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11523 (eval $ac_link) 2>&5
11524 ac_status=$?
11525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11526 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11527 (./conftest; exit; ) >&5 2>/dev/null
11528 lt_status=$?
11529 case x$lt_status in
11530 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11531 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11532 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11533 esac
11534 else :
11535 # compilation failed
11536 lt_cv_dlopen_self=no
11537 fi
11538 fi
11539 rm -fr conftest*
11540
11541
11542 fi
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11544 $as_echo "$lt_cv_dlopen_self" >&6; }
11545
11546 if test "x$lt_cv_dlopen_self" = xyes; then
11547 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11549 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11550 if ${lt_cv_dlopen_self_static+:} false; then :
11551 $as_echo_n "(cached) " >&6
11552 else
11553 if test "$cross_compiling" = yes; then :
11554 lt_cv_dlopen_self_static=cross
11555 else
11556 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11557 lt_status=$lt_dlunknown
11558 cat > conftest.$ac_ext <<_LT_EOF
11559 #line $LINENO "configure"
11560 #include "confdefs.h"
11561
11562 #if HAVE_DLFCN_H
11563 #include <dlfcn.h>
11564 #endif
11565
11566 #include <stdio.h>
11567
11568 #ifdef RTLD_GLOBAL
11569 # define LT_DLGLOBAL RTLD_GLOBAL
11570 #else
11571 # ifdef DL_GLOBAL
11572 # define LT_DLGLOBAL DL_GLOBAL
11573 # else
11574 # define LT_DLGLOBAL 0
11575 # endif
11576 #endif
11577
11578 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11579 find out it does not work in some platform. */
11580 #ifndef LT_DLLAZY_OR_NOW
11581 # ifdef RTLD_LAZY
11582 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11583 # else
11584 # ifdef DL_LAZY
11585 # define LT_DLLAZY_OR_NOW DL_LAZY
11586 # else
11587 # ifdef RTLD_NOW
11588 # define LT_DLLAZY_OR_NOW RTLD_NOW
11589 # else
11590 # ifdef DL_NOW
11591 # define LT_DLLAZY_OR_NOW DL_NOW
11592 # else
11593 # define LT_DLLAZY_OR_NOW 0
11594 # endif
11595 # endif
11596 # endif
11597 # endif
11598 #endif
11599
11600 /* When -fvisbility=hidden is used, assume the code has been annotated
11601 correspondingly for the symbols needed. */
11602 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11603 int fnord () __attribute__((visibility("default")));
11604 #endif
11605
11606 int fnord () { return 42; }
11607 int main ()
11608 {
11609 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11610 int status = $lt_dlunknown;
11611
11612 if (self)
11613 {
11614 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11615 else
11616 {
11617 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11618 else puts (dlerror ());
11619 }
11620 /* dlclose (self); */
11621 }
11622 else
11623 puts (dlerror ());
11624
11625 return status;
11626 }
11627 _LT_EOF
11628 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11629 (eval $ac_link) 2>&5
11630 ac_status=$?
11631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11632 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11633 (./conftest; exit; ) >&5 2>/dev/null
11634 lt_status=$?
11635 case x$lt_status in
11636 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11637 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11638 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11639 esac
11640 else :
11641 # compilation failed
11642 lt_cv_dlopen_self_static=no
11643 fi
11644 fi
11645 rm -fr conftest*
11646
11647
11648 fi
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11650 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11651 fi
11652
11653 CPPFLAGS="$save_CPPFLAGS"
11654 LDFLAGS="$save_LDFLAGS"
11655 LIBS="$save_LIBS"
11656 ;;
11657 esac
11658
11659 case $lt_cv_dlopen_self in
11660 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11661 *) enable_dlopen_self=unknown ;;
11662 esac
11663
11664 case $lt_cv_dlopen_self_static in
11665 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11666 *) enable_dlopen_self_static=unknown ;;
11667 esac
11668 fi
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686 striplib=
11687 old_striplib=
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11689 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11690 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11691 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11692 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11694 $as_echo "yes" >&6; }
11695 else
11696 # FIXME - insert some real tests, host_os isn't really good enough
11697 case $host_os in
11698 darwin*)
11699 if test -n "$STRIP" ; then
11700 striplib="$STRIP -x"
11701 old_striplib="$STRIP -S"
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11703 $as_echo "yes" >&6; }
11704 else
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11706 $as_echo "no" >&6; }
11707 fi
11708 ;;
11709 *)
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11711 $as_echo "no" >&6; }
11712 ;;
11713 esac
11714 fi
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727 # Report which library types will actually be built
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11729 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11731 $as_echo "$can_build_shared" >&6; }
11732
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11734 $as_echo_n "checking whether to build shared libraries... " >&6; }
11735 test "$can_build_shared" = "no" && enable_shared=no
11736
11737 # On AIX, shared libraries and static libraries use the same namespace, and
11738 # are all built from PIC.
11739 case $host_os in
11740 aix3*)
11741 test "$enable_shared" = yes && enable_static=no
11742 if test -n "$RANLIB"; then
11743 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11744 postinstall_cmds='$RANLIB $lib'
11745 fi
11746 ;;
11747
11748 aix[4-9]*)
11749 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11750 test "$enable_shared" = yes && enable_static=no
11751 fi
11752 ;;
11753 esac
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11755 $as_echo "$enable_shared" >&6; }
11756
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11758 $as_echo_n "checking whether to build static libraries... " >&6; }
11759 # Make sure either enable_shared or enable_static is yes.
11760 test "$enable_shared" = yes || enable_static=yes
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11762 $as_echo "$enable_static" >&6; }
11763
11764
11765
11766
11767 fi
11768 ac_ext=c
11769 ac_cpp='$CPP $CPPFLAGS'
11770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11773
11774 CC="$lt_save_CC"
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788 ac_config_commands="$ac_config_commands libtool"
11789
11790
11791
11792
11793 # Only expand once:
11794
11795
11796
11797 # Check GMP Header
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gmp.h" >&5
11799 $as_echo_n "checking for gmp.h... " >&6; }
11800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11801 /* end confdefs.h. */
11802
11803 #include "gmp.h"
11804
11805 _ACEOF
11806 if ac_fn_c_try_compile "$LINENO"; then :
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11808 $as_echo "yes" >&6; }
11809 else
11810
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11812 $as_echo "no" >&6; }
11813 as_fn_error $? "gmp.h cannot be found or is unusable." "$LINENO" 5
11814
11815 fi
11816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11817
11818 # Check (only in development versions) if the compiler accepts warning
11819 # flags and add them to CFLAGS
11820 # Note: don't do this if the user defined CFLAGS, since adding new flags
11821 # might override the user's settings, see
11822 # http://lists.gforge.inria.fr/pipermail/mpc-discuss/2012-May/001115.html
11823 if test -z "$USER_CFLAGS"; then
11824
11825
11826 if echo $VERSION | grep -c dev >/dev/null 2>&1 ; then
11827 if test "x$GCC" = "xyes" -a "x$compiler" != "xicc" -a "x$compiler" != "xg++"; then
11828 # enable -Werror for myself (Andreas Enge)
11829 if test "x$USER" = "xenge"; then
11830
11831
11832
11833
11834
11835
11836 flag=`echo "-Werror" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
11837
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Werror flag" >&5
11839 $as_echo_n "checking whether the C compiler accepts the -Werror flag... " >&6; }
11840 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
11841 $as_echo_n "(cached) " >&6
11842 else
11843
11844
11845 ac_ext=c
11846 ac_cpp='$CPP $CPPFLAGS'
11847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11850
11851
11852 save_CFLAGS="$CFLAGS"
11853 CFLAGS="$CFLAGS -Werror"
11854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11855 /* end confdefs.h. */
11856
11857
11858 int
11859 main ()
11860 {
11861
11862 ;
11863 return 0;
11864 }
11865
11866 _ACEOF
11867 if ac_fn_c_try_compile "$LINENO"; then :
11868
11869 eval "ax_cv_c_check_flag_$flag=yes"
11870
11871 else
11872
11873 eval "ax_cv_c_check_flag_$flag=no"
11874
11875 fi
11876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11877
11878 CFLAGS="$save_CFLAGS"
11879
11880 ac_ext=c
11881 ac_cpp='$CPP $CPPFLAGS'
11882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11885
11886
11887
11888 fi
11889 eval ac_res=\$ax_cv_c_check_flag_$flag
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11891 $as_echo "$ac_res" >&6; }
11892
11893 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
11894
11895 :
11896 CFLAGS="$CFLAGS -Werror"
11897
11898 else
11899
11900 :
11901
11902
11903 fi
11904
11905
11906 fi
11907
11908
11909
11910
11911
11912
11913 flag=`echo "-g" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
11914
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -g flag" >&5
11916 $as_echo_n "checking whether the C compiler accepts the -g flag... " >&6; }
11917 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
11918 $as_echo_n "(cached) " >&6
11919 else
11920
11921
11922 ac_ext=c
11923 ac_cpp='$CPP $CPPFLAGS'
11924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11927
11928
11929 save_CFLAGS="$CFLAGS"
11930 CFLAGS="$CFLAGS -g"
11931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11932 /* end confdefs.h. */
11933
11934
11935 int
11936 main ()
11937 {
11938
11939 ;
11940 return 0;
11941 }
11942
11943 _ACEOF
11944 if ac_fn_c_try_compile "$LINENO"; then :
11945
11946 eval "ax_cv_c_check_flag_$flag=yes"
11947
11948 else
11949
11950 eval "ax_cv_c_check_flag_$flag=no"
11951
11952 fi
11953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11954
11955 CFLAGS="$save_CFLAGS"
11956
11957 ac_ext=c
11958 ac_cpp='$CPP $CPPFLAGS'
11959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11962
11963
11964
11965 fi
11966 eval ac_res=\$ax_cv_c_check_flag_$flag
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11968 $as_echo "$ac_res" >&6; }
11969
11970 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
11971
11972 :
11973 CFLAGS="$CFLAGS -g"
11974
11975 else
11976
11977 :
11978
11979
11980 fi
11981
11982
11983
11984
11985
11986
11987
11988
11989 flag=`echo "-std=c99" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
11990
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -std=c99 flag" >&5
11992 $as_echo_n "checking whether the C compiler accepts the -std=c99 flag... " >&6; }
11993 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
11994 $as_echo_n "(cached) " >&6
11995 else
11996
11997
11998 ac_ext=c
11999 ac_cpp='$CPP $CPPFLAGS'
12000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12003
12004
12005 save_CFLAGS="$CFLAGS"
12006 CFLAGS="$CFLAGS -std=c99"
12007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12008 /* end confdefs.h. */
12009
12010
12011 int
12012 main ()
12013 {
12014
12015 ;
12016 return 0;
12017 }
12018
12019 _ACEOF
12020 if ac_fn_c_try_compile "$LINENO"; then :
12021
12022 eval "ax_cv_c_check_flag_$flag=yes"
12023
12024 else
12025
12026 eval "ax_cv_c_check_flag_$flag=no"
12027
12028 fi
12029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12030
12031 CFLAGS="$save_CFLAGS"
12032
12033 ac_ext=c
12034 ac_cpp='$CPP $CPPFLAGS'
12035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12038
12039
12040
12041 fi
12042 eval ac_res=\$ax_cv_c_check_flag_$flag
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12044 $as_echo "$ac_res" >&6; }
12045
12046 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
12047
12048 :
12049 CFLAGS="$CFLAGS -std=c99"
12050
12051 else
12052
12053 :
12054
12055
12056 fi
12057
12058
12059
12060
12061
12062
12063
12064
12065 flag=`echo "-pedantic" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
12066
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -pedantic flag" >&5
12068 $as_echo_n "checking whether the C compiler accepts the -pedantic flag... " >&6; }
12069 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
12070 $as_echo_n "(cached) " >&6
12071 else
12072
12073
12074 ac_ext=c
12075 ac_cpp='$CPP $CPPFLAGS'
12076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12079
12080
12081 save_CFLAGS="$CFLAGS"
12082 CFLAGS="$CFLAGS -pedantic"
12083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12084 /* end confdefs.h. */
12085
12086
12087 int
12088 main ()
12089 {
12090
12091 ;
12092 return 0;
12093 }
12094
12095 _ACEOF
12096 if ac_fn_c_try_compile "$LINENO"; then :
12097
12098 eval "ax_cv_c_check_flag_$flag=yes"
12099
12100 else
12101
12102 eval "ax_cv_c_check_flag_$flag=no"
12103
12104 fi
12105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12106
12107 CFLAGS="$save_CFLAGS"
12108
12109 ac_ext=c
12110 ac_cpp='$CPP $CPPFLAGS'
12111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12114
12115
12116
12117 fi
12118 eval ac_res=\$ax_cv_c_check_flag_$flag
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12120 $as_echo "$ac_res" >&6; }
12121
12122 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
12123
12124 :
12125 CFLAGS="$CFLAGS -pedantic"
12126
12127 else
12128
12129 :
12130
12131
12132 fi
12133
12134
12135
12136
12137
12138
12139
12140
12141 flag=`echo "-Wno-long-long" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
12142
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wno-long-long flag" >&5
12144 $as_echo_n "checking whether the C compiler accepts the -Wno-long-long flag... " >&6; }
12145 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
12146 $as_echo_n "(cached) " >&6
12147 else
12148
12149
12150 ac_ext=c
12151 ac_cpp='$CPP $CPPFLAGS'
12152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12155
12156
12157 save_CFLAGS="$CFLAGS"
12158 CFLAGS="$CFLAGS -Wno-long-long"
12159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12160 /* end confdefs.h. */
12161
12162
12163 int
12164 main ()
12165 {
12166
12167 ;
12168 return 0;
12169 }
12170
12171 _ACEOF
12172 if ac_fn_c_try_compile "$LINENO"; then :
12173
12174 eval "ax_cv_c_check_flag_$flag=yes"
12175
12176 else
12177
12178 eval "ax_cv_c_check_flag_$flag=no"
12179
12180 fi
12181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12182
12183 CFLAGS="$save_CFLAGS"
12184
12185 ac_ext=c
12186 ac_cpp='$CPP $CPPFLAGS'
12187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12190
12191
12192
12193 fi
12194 eval ac_res=\$ax_cv_c_check_flag_$flag
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12196 $as_echo "$ac_res" >&6; }
12197
12198 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
12199
12200 :
12201 CFLAGS="$CFLAGS -Wno-long-long"
12202
12203 else
12204
12205 :
12206
12207
12208 fi
12209
12210
12211
12212
12213
12214
12215
12216
12217 flag=`echo "-Wall" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
12218
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wall flag" >&5
12220 $as_echo_n "checking whether the C compiler accepts the -Wall flag... " >&6; }
12221 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
12222 $as_echo_n "(cached) " >&6
12223 else
12224
12225
12226 ac_ext=c
12227 ac_cpp='$CPP $CPPFLAGS'
12228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12231
12232
12233 save_CFLAGS="$CFLAGS"
12234 CFLAGS="$CFLAGS -Wall"
12235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12236 /* end confdefs.h. */
12237
12238
12239 int
12240 main ()
12241 {
12242
12243 ;
12244 return 0;
12245 }
12246
12247 _ACEOF
12248 if ac_fn_c_try_compile "$LINENO"; then :
12249
12250 eval "ax_cv_c_check_flag_$flag=yes"
12251
12252 else
12253
12254 eval "ax_cv_c_check_flag_$flag=no"
12255
12256 fi
12257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12258
12259 CFLAGS="$save_CFLAGS"
12260
12261 ac_ext=c
12262 ac_cpp='$CPP $CPPFLAGS'
12263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12266
12267
12268
12269 fi
12270 eval ac_res=\$ax_cv_c_check_flag_$flag
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12272 $as_echo "$ac_res" >&6; }
12273
12274 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
12275
12276 :
12277 CFLAGS="$CFLAGS -Wall"
12278
12279 else
12280
12281 :
12282
12283
12284 fi
12285
12286
12287
12288
12289
12290
12291
12292
12293 flag=`echo "-Wextra" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
12294
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wextra flag" >&5
12296 $as_echo_n "checking whether the C compiler accepts the -Wextra flag... " >&6; }
12297 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
12298 $as_echo_n "(cached) " >&6
12299 else
12300
12301
12302 ac_ext=c
12303 ac_cpp='$CPP $CPPFLAGS'
12304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12307
12308
12309 save_CFLAGS="$CFLAGS"
12310 CFLAGS="$CFLAGS -Wextra"
12311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12312 /* end confdefs.h. */
12313
12314
12315 int
12316 main ()
12317 {
12318
12319 ;
12320 return 0;
12321 }
12322
12323 _ACEOF
12324 if ac_fn_c_try_compile "$LINENO"; then :
12325
12326 eval "ax_cv_c_check_flag_$flag=yes"
12327
12328 else
12329
12330 eval "ax_cv_c_check_flag_$flag=no"
12331
12332 fi
12333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12334
12335 CFLAGS="$save_CFLAGS"
12336
12337 ac_ext=c
12338 ac_cpp='$CPP $CPPFLAGS'
12339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12342
12343
12344
12345 fi
12346 eval ac_res=\$ax_cv_c_check_flag_$flag
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12348 $as_echo "$ac_res" >&6; }
12349
12350 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
12351
12352 :
12353 CFLAGS="$CFLAGS -Wextra"
12354
12355 else
12356
12357 :
12358
12359
12360 fi
12361
12362
12363
12364
12365
12366
12367
12368
12369 flag=`echo "-Wdeclaration-after-statement" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
12370
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wdeclaration-after-statement flag" >&5
12372 $as_echo_n "checking whether the C compiler accepts the -Wdeclaration-after-statement flag... " >&6; }
12373 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
12374 $as_echo_n "(cached) " >&6
12375 else
12376
12377
12378 ac_ext=c
12379 ac_cpp='$CPP $CPPFLAGS'
12380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12383
12384
12385 save_CFLAGS="$CFLAGS"
12386 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12388 /* end confdefs.h. */
12389
12390
12391 int
12392 main ()
12393 {
12394
12395 ;
12396 return 0;
12397 }
12398
12399 _ACEOF
12400 if ac_fn_c_try_compile "$LINENO"; then :
12401
12402 eval "ax_cv_c_check_flag_$flag=yes"
12403
12404 else
12405
12406 eval "ax_cv_c_check_flag_$flag=no"
12407
12408 fi
12409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12410
12411 CFLAGS="$save_CFLAGS"
12412
12413 ac_ext=c
12414 ac_cpp='$CPP $CPPFLAGS'
12415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12418
12419
12420
12421 fi
12422 eval ac_res=\$ax_cv_c_check_flag_$flag
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12424 $as_echo "$ac_res" >&6; }
12425
12426 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
12427
12428 :
12429 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12430
12431 else
12432
12433 :
12434
12435
12436 fi
12437
12438
12439
12440
12441
12442
12443
12444
12445 flag=`echo "-Wundef" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
12446
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wundef flag" >&5
12448 $as_echo_n "checking whether the C compiler accepts the -Wundef flag... " >&6; }
12449 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
12450 $as_echo_n "(cached) " >&6
12451 else
12452
12453
12454 ac_ext=c
12455 ac_cpp='$CPP $CPPFLAGS'
12456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12459
12460
12461 save_CFLAGS="$CFLAGS"
12462 CFLAGS="$CFLAGS -Wundef"
12463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12464 /* end confdefs.h. */
12465
12466
12467 int
12468 main ()
12469 {
12470
12471 ;
12472 return 0;
12473 }
12474
12475 _ACEOF
12476 if ac_fn_c_try_compile "$LINENO"; then :
12477
12478 eval "ax_cv_c_check_flag_$flag=yes"
12479
12480 else
12481
12482 eval "ax_cv_c_check_flag_$flag=no"
12483
12484 fi
12485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12486
12487 CFLAGS="$save_CFLAGS"
12488
12489 ac_ext=c
12490 ac_cpp='$CPP $CPPFLAGS'
12491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12494
12495
12496
12497 fi
12498 eval ac_res=\$ax_cv_c_check_flag_$flag
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12500 $as_echo "$ac_res" >&6; }
12501
12502 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
12503
12504 :
12505 CFLAGS="$CFLAGS -Wundef"
12506
12507 else
12508
12509 :
12510
12511
12512 fi
12513
12514
12515
12516
12517
12518
12519
12520
12521 flag=`echo "-Wshadow" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
12522
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wshadow flag" >&5
12524 $as_echo_n "checking whether the C compiler accepts the -Wshadow flag... " >&6; }
12525 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
12526 $as_echo_n "(cached) " >&6
12527 else
12528
12529
12530 ac_ext=c
12531 ac_cpp='$CPP $CPPFLAGS'
12532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12535
12536
12537 save_CFLAGS="$CFLAGS"
12538 CFLAGS="$CFLAGS -Wshadow"
12539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12540 /* end confdefs.h. */
12541
12542
12543 int
12544 main ()
12545 {
12546
12547 ;
12548 return 0;
12549 }
12550
12551 _ACEOF
12552 if ac_fn_c_try_compile "$LINENO"; then :
12553
12554 eval "ax_cv_c_check_flag_$flag=yes"
12555
12556 else
12557
12558 eval "ax_cv_c_check_flag_$flag=no"
12559
12560 fi
12561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12562
12563 CFLAGS="$save_CFLAGS"
12564
12565 ac_ext=c
12566 ac_cpp='$CPP $CPPFLAGS'
12567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12570
12571
12572
12573 fi
12574 eval ac_res=\$ax_cv_c_check_flag_$flag
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12576 $as_echo "$ac_res" >&6; }
12577
12578 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
12579
12580 :
12581 CFLAGS="$CFLAGS -Wshadow"
12582
12583 else
12584
12585 :
12586
12587
12588 fi
12589
12590
12591
12592
12593
12594
12595
12596
12597 flag=`echo "-Wstrict-prototypes" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
12598
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wstrict-prototypes flag" >&5
12600 $as_echo_n "checking whether the C compiler accepts the -Wstrict-prototypes flag... " >&6; }
12601 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
12602 $as_echo_n "(cached) " >&6
12603 else
12604
12605
12606 ac_ext=c
12607 ac_cpp='$CPP $CPPFLAGS'
12608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12611
12612
12613 save_CFLAGS="$CFLAGS"
12614 CFLAGS="$CFLAGS -Wstrict-prototypes"
12615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12616 /* end confdefs.h. */
12617
12618
12619 int
12620 main ()
12621 {
12622
12623 ;
12624 return 0;
12625 }
12626
12627 _ACEOF
12628 if ac_fn_c_try_compile "$LINENO"; then :
12629
12630 eval "ax_cv_c_check_flag_$flag=yes"
12631
12632 else
12633
12634 eval "ax_cv_c_check_flag_$flag=no"
12635
12636 fi
12637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12638
12639 CFLAGS="$save_CFLAGS"
12640
12641 ac_ext=c
12642 ac_cpp='$CPP $CPPFLAGS'
12643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12646
12647
12648
12649 fi
12650 eval ac_res=\$ax_cv_c_check_flag_$flag
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12652 $as_echo "$ac_res" >&6; }
12653
12654 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
12655
12656 :
12657 CFLAGS="$CFLAGS -Wstrict-prototypes"
12658
12659 else
12660
12661 :
12662
12663
12664 fi
12665
12666
12667
12668
12669
12670
12671
12672
12673 flag=`echo "-Wmissing-prototypes" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
12674
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wmissing-prototypes flag" >&5
12676 $as_echo_n "checking whether the C compiler accepts the -Wmissing-prototypes flag... " >&6; }
12677 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
12678 $as_echo_n "(cached) " >&6
12679 else
12680
12681
12682 ac_ext=c
12683 ac_cpp='$CPP $CPPFLAGS'
12684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12687
12688
12689 save_CFLAGS="$CFLAGS"
12690 CFLAGS="$CFLAGS -Wmissing-prototypes"
12691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12692 /* end confdefs.h. */
12693
12694
12695 int
12696 main ()
12697 {
12698
12699 ;
12700 return 0;
12701 }
12702
12703 _ACEOF
12704 if ac_fn_c_try_compile "$LINENO"; then :
12705
12706 eval "ax_cv_c_check_flag_$flag=yes"
12707
12708 else
12709
12710 eval "ax_cv_c_check_flag_$flag=no"
12711
12712 fi
12713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12714
12715 CFLAGS="$save_CFLAGS"
12716
12717 ac_ext=c
12718 ac_cpp='$CPP $CPPFLAGS'
12719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12722
12723
12724
12725 fi
12726 eval ac_res=\$ax_cv_c_check_flag_$flag
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12728 $as_echo "$ac_res" >&6; }
12729
12730 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
12731
12732 :
12733 CFLAGS="$CFLAGS -Wmissing-prototypes"
12734
12735 else
12736
12737 :
12738
12739
12740 fi
12741
12742
12743
12744
12745
12746
12747
12748
12749 flag=`echo "-Wno-unused-value" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
12750
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wno-unused-value flag" >&5
12752 $as_echo_n "checking whether the C compiler accepts the -Wno-unused-value flag... " >&6; }
12753 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
12754 $as_echo_n "(cached) " >&6
12755 else
12756
12757
12758 ac_ext=c
12759 ac_cpp='$CPP $CPPFLAGS'
12760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12763
12764
12765 save_CFLAGS="$CFLAGS"
12766 CFLAGS="$CFLAGS -Wno-unused-value"
12767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12768 /* end confdefs.h. */
12769
12770
12771 int
12772 main ()
12773 {
12774
12775 ;
12776 return 0;
12777 }
12778
12779 _ACEOF
12780 if ac_fn_c_try_compile "$LINENO"; then :
12781
12782 eval "ax_cv_c_check_flag_$flag=yes"
12783
12784 else
12785
12786 eval "ax_cv_c_check_flag_$flag=no"
12787
12788 fi
12789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12790
12791 CFLAGS="$save_CFLAGS"
12792
12793 ac_ext=c
12794 ac_cpp='$CPP $CPPFLAGS'
12795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12798
12799
12800
12801 fi
12802 eval ac_res=\$ax_cv_c_check_flag_$flag
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12804 $as_echo "$ac_res" >&6; }
12805
12806 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
12807
12808 :
12809 CFLAGS="$CFLAGS -Wno-unused-value"
12810
12811 else
12812
12813 :
12814
12815
12816 fi
12817
12818
12819 fi
12820 fi
12821
12822 fi
12823
12824
12825 # Checks for header files.
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12827 $as_echo_n "checking for ANSI C header files... " >&6; }
12828 if ${ac_cv_header_stdc+:} false; then :
12829 $as_echo_n "(cached) " >&6
12830 else
12831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12832 /* end confdefs.h. */
12833 #include <stdlib.h>
12834 #include <stdarg.h>
12835 #include <string.h>
12836 #include <float.h>
12837
12838 int
12839 main ()
12840 {
12841
12842 ;
12843 return 0;
12844 }
12845 _ACEOF
12846 if ac_fn_c_try_compile "$LINENO"; then :
12847 ac_cv_header_stdc=yes
12848 else
12849 ac_cv_header_stdc=no
12850 fi
12851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12852
12853 if test $ac_cv_header_stdc = yes; then
12854 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12856 /* end confdefs.h. */
12857 #include <string.h>
12858
12859 _ACEOF
12860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12861 $EGREP "memchr" >/dev/null 2>&1; then :
12862
12863 else
12864 ac_cv_header_stdc=no
12865 fi
12866 rm -f conftest*
12867
12868 fi
12869
12870 if test $ac_cv_header_stdc = yes; then
12871 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12873 /* end confdefs.h. */
12874 #include <stdlib.h>
12875
12876 _ACEOF
12877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12878 $EGREP "free" >/dev/null 2>&1; then :
12879
12880 else
12881 ac_cv_header_stdc=no
12882 fi
12883 rm -f conftest*
12884
12885 fi
12886
12887 if test $ac_cv_header_stdc = yes; then
12888 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12889 if test "$cross_compiling" = yes; then :
12890 :
12891 else
12892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12893 /* end confdefs.h. */
12894 #include <ctype.h>
12895 #include <stdlib.h>
12896 #if ((' ' & 0x0FF) == 0x020)
12897 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12898 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12899 #else
12900 # define ISLOWER(c) \
12901 (('a' <= (c) && (c) <= 'i') \
12902 || ('j' <= (c) && (c) <= 'r') \
12903 || ('s' <= (c) && (c) <= 'z'))
12904 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12905 #endif
12906
12907 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12908 int
12909 main ()
12910 {
12911 int i;
12912 for (i = 0; i < 256; i++)
12913 if (XOR (islower (i), ISLOWER (i))
12914 || toupper (i) != TOUPPER (i))
12915 return 2;
12916 return 0;
12917 }
12918 _ACEOF
12919 if ac_fn_c_try_run "$LINENO"; then :
12920
12921 else
12922 ac_cv_header_stdc=no
12923 fi
12924 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12925 conftest.$ac_objext conftest.beam conftest.$ac_ext
12926 fi
12927
12928 fi
12929 fi
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12931 $as_echo "$ac_cv_header_stdc" >&6; }
12932 if test $ac_cv_header_stdc = yes; then
12933
12934 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12935
12936 fi
12937
12938 for ac_header in locale.h inttypes.h stdint.h limits.h unistd.h sys/time.h
12939 do :
12940 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12941 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12942 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12943 cat >>confdefs.h <<_ACEOF
12944 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12945 _ACEOF
12946
12947 fi
12948
12949 done
12950
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
12952 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12953 if ${ac_cv_header_time+:} false; then :
12954 $as_echo_n "(cached) " >&6
12955 else
12956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12957 /* end confdefs.h. */
12958 #include <sys/types.h>
12959 #include <sys/time.h>
12960 #include <time.h>
12961
12962 int
12963 main ()
12964 {
12965 if ((struct tm *) 0)
12966 return 0;
12967 ;
12968 return 0;
12969 }
12970 _ACEOF
12971 if ac_fn_c_try_compile "$LINENO"; then :
12972 ac_cv_header_time=yes
12973 else
12974 ac_cv_header_time=no
12975 fi
12976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12977 fi
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
12979 $as_echo "$ac_cv_header_time" >&6; }
12980 if test $ac_cv_header_time = yes; then
12981
12982 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
12983
12984 fi
12985
12986
12987 ac_fn_c_check_header_mongrel "$LINENO" "complex.h" "ac_cv_header_complex_h" "$ac_includes_default"
12988 if test "x$ac_cv_header_complex_h" = xyes; then :
12989
12990
12991
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing creal" >&5
12993 $as_echo_n "checking for library containing creal... " >&6; }
12994 if ${ac_cv_search_creal+:} false; then :
12995 $as_echo_n "(cached) " >&6
12996 else
12997 ac_func_search_save_LIBS=$LIBS
12998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12999 /* end confdefs.h. */
13000
13001 /* Override any GCC internal prototype to avoid an error.
13002 Use char because int might match the return type of a GCC
13003 builtin and then its argument prototype would still apply. */
13004 #ifdef __cplusplus
13005 extern "C"
13006 #endif
13007 char creal ();
13008 int
13009 main ()
13010 {
13011 return creal ();
13012 ;
13013 return 0;
13014 }
13015 _ACEOF
13016 for ac_lib in '' m; do
13017 if test -z "$ac_lib"; then
13018 ac_res="none required"
13019 else
13020 ac_res=-l$ac_lib
13021 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13022 fi
13023 if ac_fn_c_try_link "$LINENO"; then :
13024 ac_cv_search_creal=$ac_res
13025 fi
13026 rm -f core conftest.err conftest.$ac_objext \
13027 conftest$ac_exeext
13028 if ${ac_cv_search_creal+:} false; then :
13029 break
13030 fi
13031 done
13032 if ${ac_cv_search_creal+:} false; then :
13033
13034 else
13035 ac_cv_search_creal=no
13036 fi
13037 rm conftest.$ac_ext
13038 LIBS=$ac_func_search_save_LIBS
13039 fi
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_creal" >&5
13041 $as_echo "$ac_cv_search_creal" >&6; }
13042 ac_res=$ac_cv_search_creal
13043 if test "$ac_res" != no; then :
13044 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13045
13046 fi
13047
13048 # needed on Solaris
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether creal, cimag and I can be used" >&5
13050 $as_echo_n "checking whether creal, cimag and I can be used... " >&6; }
13051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13052 /* end confdefs.h. */
13053
13054 #include <complex.h>
13055 int
13056 main ()
13057 {
13058 complex double x = 1.0 + 2.0 * I; return (creal (x) + cimag (x));
13059
13060 ;
13061 return 0;
13062 }
13063
13064
13065 _ACEOF
13066 if ac_fn_c_try_link "$LINENO"; then :
13067
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13069 $as_echo "yes" >&6; }
13070
13071 $as_echo "#define HAVE_COMPLEX_H 1" >>confdefs.h
13072
13073
13074 else
13075
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, build without support for C complex numbers" >&5
13077 $as_echo "no, build without support for C complex numbers" >&6; }
13078
13079
13080 fi
13081 rm -f core conftest.err conftest.$ac_objext \
13082 conftest$ac_exeext conftest.$ac_ext
13083
13084
13085 fi
13086
13087
13088
13089
13090 # Checks for typedefs, structures, and compiler characteristics.
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13092 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13093 if ${ac_cv_c_const+:} false; then :
13094 $as_echo_n "(cached) " >&6
13095 else
13096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13097 /* end confdefs.h. */
13098
13099 int
13100 main ()
13101 {
13102
13103 #ifndef __cplusplus
13104 /* Ultrix mips cc rejects this sort of thing. */
13105 typedef int charset[2];
13106 const charset cs = { 0, 0 };
13107 /* SunOS 4.1.1 cc rejects this. */
13108 char const *const *pcpcc;
13109 char **ppc;
13110 /* NEC SVR4.0.2 mips cc rejects this. */
13111 struct point {int x, y;};
13112 static struct point const zero = {0,0};
13113 /* AIX XL C 1.02.0.0 rejects this.
13114 It does not let you subtract one const X* pointer from another in
13115 an arm of an if-expression whose if-part is not a constant
13116 expression */
13117 const char *g = "string";
13118 pcpcc = &g + (g ? g-g : 0);
13119 /* HPUX 7.0 cc rejects these. */
13120 ++pcpcc;
13121 ppc = (char**) pcpcc;
13122 pcpcc = (char const *const *) ppc;
13123 { /* SCO 3.2v4 cc rejects this sort of thing. */
13124 char tx;
13125 char *t = &tx;
13126 char const *s = 0 ? (char *) 0 : (char const *) 0;
13127
13128 *t++ = 0;
13129 if (s) return 0;
13130 }
13131 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13132 int x[] = {25, 17};
13133 const int *foo = &x[0];
13134 ++foo;
13135 }
13136 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13137 typedef const int *iptr;
13138 iptr p = 0;
13139 ++p;
13140 }
13141 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13142 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13143 struct s { int j; const int *ap[3]; } bx;
13144 struct s *b = &bx; b->j = 5;
13145 }
13146 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13147 const int foo = 10;
13148 if (!foo) return 0;
13149 }
13150 return !cs[0] && !zero.x;
13151 #endif
13152
13153 ;
13154 return 0;
13155 }
13156 _ACEOF
13157 if ac_fn_c_try_compile "$LINENO"; then :
13158 ac_cv_c_const=yes
13159 else
13160 ac_cv_c_const=no
13161 fi
13162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13163 fi
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13165 $as_echo "$ac_cv_c_const" >&6; }
13166 if test $ac_cv_c_const = no; then
13167
13168 $as_echo "#define const /**/" >>confdefs.h
13169
13170 fi
13171
13172 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13173 if test "x$ac_cv_type_size_t" = xyes; then :
13174
13175 else
13176
13177 cat >>confdefs.h <<_ACEOF
13178 #define size_t unsigned int
13179 _ACEOF
13180
13181 fi
13182
13183
13184 # Checks for libraries.
13185 for ac_func in gettimeofday localeconv setlocale
13186 do :
13187 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13188 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13189 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13190 cat >>confdefs.h <<_ACEOF
13191 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13192 _ACEOF
13193
13194 fi
13195 done
13196
13197 for ac_func in dup dup2
13198 do :
13199 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13200 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13201 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13202 cat >>confdefs.h <<_ACEOF
13203 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13204 _ACEOF
13205
13206 else
13207
13208 $as_echo "#define MPC_NO_STREAM_REDIRECTION 1" >>confdefs.h
13209
13210 fi
13211 done
13212
13213
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_init in -lgmp" >&5
13215 $as_echo_n "checking for __gmpz_init in -lgmp... " >&6; }
13216 if ${ac_cv_lib_gmp___gmpz_init+:} false; then :
13217 $as_echo_n "(cached) " >&6
13218 else
13219 ac_check_lib_save_LIBS=$LIBS
13220 LIBS="-lgmp $LIBS"
13221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13222 /* end confdefs.h. */
13223
13224 /* Override any GCC internal prototype to avoid an error.
13225 Use char because int might match the return type of a GCC
13226 builtin and then its argument prototype would still apply. */
13227 #ifdef __cplusplus
13228 extern "C"
13229 #endif
13230 char __gmpz_init ();
13231 int
13232 main ()
13233 {
13234 return __gmpz_init ();
13235 ;
13236 return 0;
13237 }
13238 _ACEOF
13239 if ac_fn_c_try_link "$LINENO"; then :
13240 ac_cv_lib_gmp___gmpz_init=yes
13241 else
13242 ac_cv_lib_gmp___gmpz_init=no
13243 fi
13244 rm -f core conftest.err conftest.$ac_objext \
13245 conftest$ac_exeext conftest.$ac_ext
13246 LIBS=$ac_check_lib_save_LIBS
13247 fi
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_init" >&5
13249 $as_echo "$ac_cv_lib_gmp___gmpz_init" >&6; }
13250 if test "x$ac_cv_lib_gmp___gmpz_init" = xyes; then :
13251 LIBS="-lgmp $LIBS"
13252 else
13253 as_fn_error $? "libgmp not found or uses a different ABI (including static vs shared)." "$LINENO" 5
13254 fi
13255
13256
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPFR" >&5
13258 $as_echo_n "checking for MPFR... " >&6; }
13259 LIBS="-lmpfr $LIBS"
13260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13261 /* end confdefs.h. */
13262 #include "mpfr.h"
13263 int
13264 main ()
13265 {
13266 mpfr_t x; mpfr_init(x) ; mpfr_clear(x);
13267
13268 ;
13269 return 0;
13270 }
13271 _ACEOF
13272 if ac_fn_c_try_link "$LINENO"; then :
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13274 $as_echo "yes" >&6; }
13275 else
13276
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13278 $as_echo "no" >&6; }
13279 as_fn_error $? "libmpfr not found or uses a different ABI (including static vs shared)." "$LINENO" 5
13280
13281 fi
13282 rm -f core conftest.err conftest.$ac_objext \
13283 conftest$ac_exeext conftest.$ac_ext
13284
13285 # Check for a recent GMP
13286 # We only guarantee that with a *functional* and recent enough GMP version,
13287 # MPC will compile; we do not guarantee that GMP will compile.
13288 # In particular fat builds are broken in GMP 4.3.2 and GMP 5.0.0
13289 # (at least on 64-bit Core 2 under GNU/Linux),
13290 # see http://gmplib.org/list-archives/gmp-bugs/2011-August/002345.html.
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent GMP" >&5
13292 $as_echo_n "checking for recent GMP... " >&6; }
13293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13294 /* end confdefs.h. */
13295
13296 #include "gmp.h"
13297 #if (__GNU_MP_VERSION*100 + __GNU_MP_VERSION_MINOR*10 + __GNU_MP_VERSION_PATCHLEVEL < 432)
13298 # error "Minimal GMP version is 4.3.2"
13299 error
13300 #endif
13301
13302 _ACEOF
13303 if ac_fn_c_try_compile "$LINENO"; then :
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13305 $as_echo "yes" >&6; }
13306 else
13307
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13309 $as_echo "no" >&6; }
13310 as_fn_error $? "GMP version >= 4.3.2 required" "$LINENO" 5
13311
13312 fi
13313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13314
13315 # Check for a recent MPFR: we require MPFR 2.4.2 so that the tests
13316 # in log.dat pass
13317 # The same remark as above for GMP applies.
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent MPFR" >&5
13319 $as_echo_n "checking for recent MPFR... " >&6; }
13320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13321 /* end confdefs.h. */
13322
13323 #include "mpfr.h"
13324 #if (MPFR_VERSION < MPFR_VERSION_NUM (2,4,2))
13325 # error "Minimal MPFR version is 2.4.2"
13326 error
13327 #endif
13328
13329 _ACEOF
13330 if ac_fn_c_try_compile "$LINENO"; then :
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13332 $as_echo "yes" >&6; }
13333 else
13334
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13336 $as_echo "no" >&6; }
13337 as_fn_error $? "MPFR version >= 2.4.2 required" "$LINENO" 5
13338
13339 fi
13340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13341
13342 # Check for logging feature
13343 if test "x$enable_logging" = "xyes"; then :
13344 for ac_header in dlfcn.h
13345 do :
13346 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
13347 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13348 cat >>confdefs.h <<_ACEOF
13349 #define HAVE_DLFCN_H 1
13350 _ACEOF
13351
13352 fi
13353
13354 done
13355
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
13357 $as_echo_n "checking for dlsym in -ldl... " >&6; }
13358 if ${ac_cv_lib_dl_dlsym+:} false; then :
13359 $as_echo_n "(cached) " >&6
13360 else
13361 ac_check_lib_save_LIBS=$LIBS
13362 LIBS="-ldl $LIBS"
13363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13364 /* end confdefs.h. */
13365
13366 /* Override any GCC internal prototype to avoid an error.
13367 Use char because int might match the return type of a GCC
13368 builtin and then its argument prototype would still apply. */
13369 #ifdef __cplusplus
13370 extern "C"
13371 #endif
13372 char dlsym ();
13373 int
13374 main ()
13375 {
13376 return dlsym ();
13377 ;
13378 return 0;
13379 }
13380 _ACEOF
13381 if ac_fn_c_try_link "$LINENO"; then :
13382 ac_cv_lib_dl_dlsym=yes
13383 else
13384 ac_cv_lib_dl_dlsym=no
13385 fi
13386 rm -f core conftest.err conftest.$ac_objext \
13387 conftest$ac_exeext conftest.$ac_ext
13388 LIBS=$ac_check_lib_save_LIBS
13389 fi
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
13391 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
13392 if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
13393
13394
13395 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
13396
13397 LIBS="-ldl $LIBS"
13398
13399 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
13400 if test "x$ac_cv_type_intptr_t" = xyes; then :
13401
13402 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
13403
13404 else
13405 for ac_type in 'int' 'long int' 'long long int'; do
13406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13407 /* end confdefs.h. */
13408 $ac_includes_default
13409 int
13410 main ()
13411 {
13412 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
13413 test_array [0] = 0;
13414 return test_array [0];
13415
13416 ;
13417 return 0;
13418 }
13419 _ACEOF
13420 if ac_fn_c_try_compile "$LINENO"; then :
13421
13422 cat >>confdefs.h <<_ACEOF
13423 #define intptr_t $ac_type
13424 _ACEOF
13425
13426 ac_type=
13427 fi
13428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13429 test -z "$ac_type" && break
13430 done
13431 fi
13432
13433
13434 case " $LIBOBJS " in
13435 *" logging.$ac_objext "* ) ;;
13436 *) LIBOBJS="$LIBOBJS logging.$ac_objext"
13437 ;;
13438 esac
13439
13440 MPC_LOG_H=src/mpc-log.h
13441
13442
13443 else
13444 as_fn_error $? "Library dl not found, logging impossible" "$LINENO" 5
13445 fi
13446
13447
13448
13449 fi
13450
13451 # Configs for Windows DLLs
13452
13453 enable_win32_dll=yes
13454
13455 case $host in
13456 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
13457 if test -n "$ac_tool_prefix"; then
13458 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13459 set dummy ${ac_tool_prefix}as; ac_word=$2
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13461 $as_echo_n "checking for $ac_word... " >&6; }
13462 if ${ac_cv_prog_AS+:} false; then :
13463 $as_echo_n "(cached) " >&6
13464 else
13465 if test -n "$AS"; then
13466 ac_cv_prog_AS="$AS" # Let the user override the test.
13467 else
13468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13469 for as_dir in $PATH
13470 do
13471 IFS=$as_save_IFS
13472 test -z "$as_dir" && as_dir=.
13473 for ac_exec_ext in '' $ac_executable_extensions; do
13474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13475 ac_cv_prog_AS="${ac_tool_prefix}as"
13476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13477 break 2
13478 fi
13479 done
13480 done
13481 IFS=$as_save_IFS
13482
13483 fi
13484 fi
13485 AS=$ac_cv_prog_AS
13486 if test -n "$AS"; then
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13488 $as_echo "$AS" >&6; }
13489 else
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13491 $as_echo "no" >&6; }
13492 fi
13493
13494
13495 fi
13496 if test -z "$ac_cv_prog_AS"; then
13497 ac_ct_AS=$AS
13498 # Extract the first word of "as", so it can be a program name with args.
13499 set dummy as; ac_word=$2
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13501 $as_echo_n "checking for $ac_word... " >&6; }
13502 if ${ac_cv_prog_ac_ct_AS+:} false; then :
13503 $as_echo_n "(cached) " >&6
13504 else
13505 if test -n "$ac_ct_AS"; then
13506 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13507 else
13508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13509 for as_dir in $PATH
13510 do
13511 IFS=$as_save_IFS
13512 test -z "$as_dir" && as_dir=.
13513 for ac_exec_ext in '' $ac_executable_extensions; do
13514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13515 ac_cv_prog_ac_ct_AS="as"
13516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13517 break 2
13518 fi
13519 done
13520 done
13521 IFS=$as_save_IFS
13522
13523 fi
13524 fi
13525 ac_ct_AS=$ac_cv_prog_ac_ct_AS
13526 if test -n "$ac_ct_AS"; then
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13528 $as_echo "$ac_ct_AS" >&6; }
13529 else
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13531 $as_echo "no" >&6; }
13532 fi
13533
13534 if test "x$ac_ct_AS" = x; then
13535 AS="false"
13536 else
13537 case $cross_compiling:$ac_tool_warned in
13538 yes:)
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13540 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13541 ac_tool_warned=yes ;;
13542 esac
13543 AS=$ac_ct_AS
13544 fi
13545 else
13546 AS="$ac_cv_prog_AS"
13547 fi
13548
13549 if test -n "$ac_tool_prefix"; then
13550 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13551 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13553 $as_echo_n "checking for $ac_word... " >&6; }
13554 if ${ac_cv_prog_DLLTOOL+:} false; then :
13555 $as_echo_n "(cached) " >&6
13556 else
13557 if test -n "$DLLTOOL"; then
13558 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13559 else
13560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13561 for as_dir in $PATH
13562 do
13563 IFS=$as_save_IFS
13564 test -z "$as_dir" && as_dir=.
13565 for ac_exec_ext in '' $ac_executable_extensions; do
13566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13567 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13569 break 2
13570 fi
13571 done
13572 done
13573 IFS=$as_save_IFS
13574
13575 fi
13576 fi
13577 DLLTOOL=$ac_cv_prog_DLLTOOL
13578 if test -n "$DLLTOOL"; then
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13580 $as_echo "$DLLTOOL" >&6; }
13581 else
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13583 $as_echo "no" >&6; }
13584 fi
13585
13586
13587 fi
13588 if test -z "$ac_cv_prog_DLLTOOL"; then
13589 ac_ct_DLLTOOL=$DLLTOOL
13590 # Extract the first word of "dlltool", so it can be a program name with args.
13591 set dummy dlltool; ac_word=$2
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13593 $as_echo_n "checking for $ac_word... " >&6; }
13594 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
13595 $as_echo_n "(cached) " >&6
13596 else
13597 if test -n "$ac_ct_DLLTOOL"; then
13598 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13599 else
13600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13601 for as_dir in $PATH
13602 do
13603 IFS=$as_save_IFS
13604 test -z "$as_dir" && as_dir=.
13605 for ac_exec_ext in '' $ac_executable_extensions; do
13606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13607 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13609 break 2
13610 fi
13611 done
13612 done
13613 IFS=$as_save_IFS
13614
13615 fi
13616 fi
13617 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13618 if test -n "$ac_ct_DLLTOOL"; then
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13620 $as_echo "$ac_ct_DLLTOOL" >&6; }
13621 else
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13623 $as_echo "no" >&6; }
13624 fi
13625
13626 if test "x$ac_ct_DLLTOOL" = x; then
13627 DLLTOOL="false"
13628 else
13629 case $cross_compiling:$ac_tool_warned in
13630 yes:)
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13632 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13633 ac_tool_warned=yes ;;
13634 esac
13635 DLLTOOL=$ac_ct_DLLTOOL
13636 fi
13637 else
13638 DLLTOOL="$ac_cv_prog_DLLTOOL"
13639 fi
13640
13641 if test -n "$ac_tool_prefix"; then
13642 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13643 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13645 $as_echo_n "checking for $ac_word... " >&6; }
13646 if ${ac_cv_prog_OBJDUMP+:} false; then :
13647 $as_echo_n "(cached) " >&6
13648 else
13649 if test -n "$OBJDUMP"; then
13650 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13651 else
13652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13653 for as_dir in $PATH
13654 do
13655 IFS=$as_save_IFS
13656 test -z "$as_dir" && as_dir=.
13657 for ac_exec_ext in '' $ac_executable_extensions; do
13658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13659 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13661 break 2
13662 fi
13663 done
13664 done
13665 IFS=$as_save_IFS
13666
13667 fi
13668 fi
13669 OBJDUMP=$ac_cv_prog_OBJDUMP
13670 if test -n "$OBJDUMP"; then
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13672 $as_echo "$OBJDUMP" >&6; }
13673 else
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13675 $as_echo "no" >&6; }
13676 fi
13677
13678
13679 fi
13680 if test -z "$ac_cv_prog_OBJDUMP"; then
13681 ac_ct_OBJDUMP=$OBJDUMP
13682 # Extract the first word of "objdump", so it can be a program name with args.
13683 set dummy objdump; ac_word=$2
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13685 $as_echo_n "checking for $ac_word... " >&6; }
13686 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
13687 $as_echo_n "(cached) " >&6
13688 else
13689 if test -n "$ac_ct_OBJDUMP"; then
13690 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13691 else
13692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13693 for as_dir in $PATH
13694 do
13695 IFS=$as_save_IFS
13696 test -z "$as_dir" && as_dir=.
13697 for ac_exec_ext in '' $ac_executable_extensions; do
13698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13699 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13701 break 2
13702 fi
13703 done
13704 done
13705 IFS=$as_save_IFS
13706
13707 fi
13708 fi
13709 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13710 if test -n "$ac_ct_OBJDUMP"; then
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13712 $as_echo "$ac_ct_OBJDUMP" >&6; }
13713 else
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13715 $as_echo "no" >&6; }
13716 fi
13717
13718 if test "x$ac_ct_OBJDUMP" = x; then
13719 OBJDUMP="false"
13720 else
13721 case $cross_compiling:$ac_tool_warned in
13722 yes:)
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13724 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13725 ac_tool_warned=yes ;;
13726 esac
13727 OBJDUMP=$ac_ct_OBJDUMP
13728 fi
13729 else
13730 OBJDUMP="$ac_cv_prog_OBJDUMP"
13731 fi
13732
13733 ;;
13734 esac
13735
13736 test -z "$AS" && AS=as
13737
13738
13739
13740
13741
13742 test -z "$DLLTOOL" && DLLTOOL=dlltool
13743
13744
13745 test -z "$OBJDUMP" && OBJDUMP=objdump
13746
13747
13748
13749
13750 case $host in
13751 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
13752
13753 if test "$enable_shared" = yes; then
13754 MPC_LDFLAGS="$MPC_LDFLAGS -no-undefined"
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLL/static gmp" >&5
13756 $as_echo_n "checking for DLL/static gmp... " >&6; }
13757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13758 /* end confdefs.h. */
13759
13760 #include "gmp.h"
13761 #if !__GMP_LIBGMP_DLL
13762 #error
13763 error
13764 #endif
13765
13766 int
13767 main ()
13768 {
13769
13770 ;
13771 return 0;
13772 }
13773 _ACEOF
13774 if ac_fn_c_try_compile "$LINENO"; then :
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: DLL" >&5
13776 $as_echo "DLL" >&6; }
13777 else
13778
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5
13780 $as_echo "static" >&6; }
13781 as_fn_error $? "gmp is not available as a DLL: use --enable-static --disable-shared" "$LINENO" 5
13782 fi
13783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLL/static mpfr" >&5
13785 $as_echo_n "checking for DLL/static mpfr... " >&6; }
13786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13787 /* end confdefs.h. */
13788
13789 #include "mpfr.h"
13790 #if !__GMP_LIBGMP_DLL
13791 #error
13792 error
13793 #endif
13794
13795 int
13796 main ()
13797 {
13798
13799 ;
13800 return 0;
13801 }
13802 _ACEOF
13803 if ac_fn_c_try_compile "$LINENO"; then :
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: DLL" >&5
13805 $as_echo "DLL" >&6; }
13806 else
13807
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5
13809 $as_echo "static" >&6; }
13810 as_fn_error $? "mpfr is not available as a DLL: use --enable-static --disable-shared" "$LINENO" 5
13811 fi
13812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13813 else
13814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13815 /* end confdefs.h. */
13816
13817 #include "gmp.h"
13818 #if __GMP_LIBGMP_DLL
13819 #error
13820 error
13821 #endif
13822
13823 int
13824 main ()
13825 {
13826
13827 ;
13828 return 0;
13829 }
13830 _ACEOF
13831 if ac_fn_c_try_compile "$LINENO"; then :
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5
13833 $as_echo "static" >&6; }
13834 else
13835
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: DLL" >&5
13837 $as_echo "DLL" >&6; }
13838 as_fn_error $? "gmp is only available as a DLL: use --disable-static --enable-shared" "$LINENO" 5
13839 fi
13840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13841 fi
13842 ;;
13843
13844 esac
13845
13846 # Checks for gcc version, result in variables MPC_GCC etc. inside config.log
13847
13848 GCC_VERSION=""
13849
13850
13851
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -dumpversion option" >&5
13853 $as_echo_n "checking if gcc accepts -dumpversion option... " >&6; }
13854
13855 if test "x$GCC" = "xyes" ; then :
13856
13857 if test -z "" ; then :
13858
13859 ax_gcc_option_test="int main()
13860 {
13861 return 0;
13862 }"
13863
13864 else
13865
13866 ax_gcc_option_test=""
13867
13868 fi
13869
13870 # Dump the test program to file
13871 cat <<EOF > conftest.c
13872 $ax_gcc_option_test
13873 EOF
13874
13875 # Dump back the file to the log, useful for debugging purposes
13876 { ac_try='cat conftest.c 1>&5'
13877 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13878 (eval $ac_try) 2>&5
13879 ac_status=$?
13880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13881 test $ac_status = 0; }; }
13882
13883 if { ac_try='$CC -dumpversion -c conftest.c 1>&5'
13884 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13885 (eval $ac_try) 2>&5
13886 ac_status=$?
13887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13888 test $ac_status = 0; }; } ; then :
13889
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13891 $as_echo "yes" >&6; }
13892
13893 ax_gcc_version_option=yes
13894
13895
13896 else
13897
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13899 $as_echo "no" >&6; }
13900
13901 ax_gcc_version_option=no
13902
13903
13904 fi
13905
13906 else
13907
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no gcc available" >&5
13909 $as_echo "no gcc available" >&6; }
13910
13911 fi
13912
13913 if test "x$GCC" = "xyes"; then :
13914
13915 if test "x$ax_gcc_version_option" != "xno"; then :
13916
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
13918 $as_echo_n "checking gcc version... " >&6; }
13919 if ${ax_cv_gcc_version+:} false; then :
13920 $as_echo_n "(cached) " >&6
13921 else
13922
13923 ax_cv_gcc_version="`$CC -dumpversion`"
13924 if test "x$ax_cv_gcc_version" = "x"; then :
13925
13926 ax_cv_gcc_version=""
13927
13928 fi
13929
13930 fi
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
13932 $as_echo "$ax_cv_gcc_version" >&6; }
13933 GCC_VERSION=$ax_cv_gcc_version
13934
13935 fi
13936
13937 fi
13938
13939
13940
13941 cat >>confdefs.h <<_ACEOF
13942 #define MPC_GCC "$GCC"
13943 _ACEOF
13944
13945
13946 cat >>confdefs.h <<_ACEOF
13947 #define MPC_CC "$CC"
13948 _ACEOF
13949
13950
13951 cat >>confdefs.h <<_ACEOF
13952 #define MPC_GCC_VERSION "$GCC_VERSION"
13953 _ACEOF
13954
13955
13956 # Looks for svn version if the version string contains "dev"
13957
13958 if echo $VERSION | grep -c dev >/dev/null 2>&1 ; then
13959 # Extract the first word of "svnversion", so it can be a program name with args.
13960 set dummy svnversion; ac_word=$2
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13962 $as_echo_n "checking for $ac_word... " >&6; }
13963 if ${ac_cv_prog_HASSVNVERSION+:} false; then :
13964 $as_echo_n "(cached) " >&6
13965 else
13966 if test -n "$HASSVNVERSION"; then
13967 ac_cv_prog_HASSVNVERSION="$HASSVNVERSION" # Let the user override the test.
13968 else
13969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13970 for as_dir in $PATH
13971 do
13972 IFS=$as_save_IFS
13973 test -z "$as_dir" && as_dir=.
13974 for ac_exec_ext in '' $ac_executable_extensions; do
13975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13976 ac_cv_prog_HASSVNVERSION="yes"
13977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13978 break 2
13979 fi
13980 done
13981 done
13982 IFS=$as_save_IFS
13983
13984 test -z "$ac_cv_prog_HASSVNVERSION" && ac_cv_prog_HASSVNVERSION="no"
13985 fi
13986 fi
13987 HASSVNVERSION=$ac_cv_prog_HASSVNVERSION
13988 if test -n "$HASSVNVERSION"; then
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HASSVNVERSION" >&5
13990 $as_echo "$HASSVNVERSION" >&6; }
13991 else
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13993 $as_echo "no" >&6; }
13994 fi
13995
13996
13997 if test "x$HASSVNVERSION" = "xyes"; then :
13998
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for current svn version" >&5
14000 $as_echo_n "checking for current svn version... " >&6; }
14001 SVNVERSION=1259M
14002
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVNVERSION" >&5
14004 $as_echo "$SVNVERSION" >&6; }
14005
14006 fi
14007 fi
14008
14009
14010 ac_config_files="$ac_config_files Makefile src/Makefile tests/Makefile doc/Makefile"
14011
14012 cat >confcache <<\_ACEOF
14013 # This file is a shell script that caches the results of configure
14014 # tests run on this system so they can be shared between configure
14015 # scripts and configure runs, see configure's option --config-cache.
14016 # It is not useful on other systems. If it contains results you don't
14017 # want to keep, you may remove or edit it.
14018 #
14019 # config.status only pays attention to the cache file if you give it
14020 # the --recheck option to rerun configure.
14021 #
14022 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14023 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14024 # following values.
14025
14026 _ACEOF
14027
14028 # The following way of writing the cache mishandles newlines in values,
14029 # but we know of no workaround that is simple, portable, and efficient.
14030 # So, we kill variables containing newlines.
14031 # Ultrix sh set writes to stderr and can't be redirected directly,
14032 # and sets the high bit in the cache file unless we assign to the vars.
14033 (
14034 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14035 eval ac_val=\$$ac_var
14036 case $ac_val in #(
14037 *${as_nl}*)
14038 case $ac_var in #(
14039 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14040 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14041 esac
14042 case $ac_var in #(
14043 _ | IFS | as_nl) ;; #(
14044 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14045 *) { eval $ac_var=; unset $ac_var;} ;;
14046 esac ;;
14047 esac
14048 done
14049
14050 (set) 2>&1 |
14051 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14052 *${as_nl}ac_space=\ *)
14053 # `set' does not quote correctly, so add quotes: double-quote
14054 # substitution turns \\\\ into \\, and sed turns \\ into \.
14055 sed -n \
14056 "s/'/'\\\\''/g;
14057 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14058 ;; #(
14059 *)
14060 # `set' quotes correctly as required by POSIX, so do not add quotes.
14061 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14062 ;;
14063 esac |
14064 sort
14065 ) |
14066 sed '
14067 /^ac_cv_env_/b end
14068 t clear
14069 :clear
14070 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14071 t end
14072 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14073 :end' >>confcache
14074 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14075 if test -w "$cache_file"; then
14076 if test "x$cache_file" != "x/dev/null"; then
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14078 $as_echo "$as_me: updating cache $cache_file" >&6;}
14079 if test ! -f "$cache_file" || test -h "$cache_file"; then
14080 cat confcache >"$cache_file"
14081 else
14082 case $cache_file in #(
14083 */* | ?:*)
14084 mv -f confcache "$cache_file"$$ &&
14085 mv -f "$cache_file"$$ "$cache_file" ;; #(
14086 *)
14087 mv -f confcache "$cache_file" ;;
14088 esac
14089 fi
14090 fi
14091 else
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14093 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14094 fi
14095 fi
14096 rm -f confcache
14097
14098 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14099 # Let make expand exec_prefix.
14100 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14101
14102 DEFS=-DHAVE_CONFIG_H
14103
14104 ac_libobjs=
14105 ac_ltlibobjs=
14106 U=
14107 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14108 # 1. Remove the extension, and $U if already installed.
14109 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14110 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14111 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14112 # will be set to the directory where LIBOBJS objects are built.
14113 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14114 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14115 done
14116 LIBOBJS=$ac_libobjs
14117
14118 LTLIBOBJS=$ac_ltlibobjs
14119
14120
14121 if test -n "$EXEEXT"; then
14122 am__EXEEXT_TRUE=
14123 am__EXEEXT_FALSE='#'
14124 else
14125 am__EXEEXT_TRUE='#'
14126 am__EXEEXT_FALSE=
14127 fi
14128
14129 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14130 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14131 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14132 fi
14133 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14134 as_fn_error $? "conditional \"AMDEP\" was never defined.
14135 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14136 fi
14137 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14138 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14139 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14140 fi
14141
14142 : "${CONFIG_STATUS=./config.status}"
14143 ac_write_fail=0
14144 ac_clean_files_save=$ac_clean_files
14145 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14147 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14148 as_write_fail=0
14149 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14150 #! $SHELL
14151 # Generated by $as_me.
14152 # Run this file to recreate the current configuration.
14153 # Compiler output produced by configure, useful for debugging
14154 # configure, is in config.log if it exists.
14155
14156 debug=false
14157 ac_cs_recheck=false
14158 ac_cs_silent=false
14159
14160 SHELL=\${CONFIG_SHELL-$SHELL}
14161 export SHELL
14162 _ASEOF
14163 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14164 ## -------------------- ##
14165 ## M4sh Initialization. ##
14166 ## -------------------- ##
14167
14168 # Be more Bourne compatible
14169 DUALCASE=1; export DUALCASE # for MKS sh
14170 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14171 emulate sh
14172 NULLCMD=:
14173 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14174 # is contrary to our usage. Disable this feature.
14175 alias -g '${1+"$@"}'='"$@"'
14176 setopt NO_GLOB_SUBST
14177 else
14178 case `(set -o) 2>/dev/null` in #(
14179 *posix*) :
14180 set -o posix ;; #(
14181 *) :
14182 ;;
14183 esac
14184 fi
14185
14186
14187 as_nl='
14188 '
14189 export as_nl
14190 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14191 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14192 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14193 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14194 # Prefer a ksh shell builtin over an external printf program on Solaris,
14195 # but without wasting forks for bash or zsh.
14196 if test -z "$BASH_VERSION$ZSH_VERSION" \
14197 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14198 as_echo='print -r --'
14199 as_echo_n='print -rn --'
14200 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14201 as_echo='printf %s\n'
14202 as_echo_n='printf %s'
14203 else
14204 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14205 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14206 as_echo_n='/usr/ucb/echo -n'
14207 else
14208 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14209 as_echo_n_body='eval
14210 arg=$1;
14211 case $arg in #(
14212 *"$as_nl"*)
14213 expr "X$arg" : "X\\(.*\\)$as_nl";
14214 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14215 esac;
14216 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14217 '
14218 export as_echo_n_body
14219 as_echo_n='sh -c $as_echo_n_body as_echo'
14220 fi
14221 export as_echo_body
14222 as_echo='sh -c $as_echo_body as_echo'
14223 fi
14224
14225 # The user is always right.
14226 if test "${PATH_SEPARATOR+set}" != set; then
14227 PATH_SEPARATOR=:
14228 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14229 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14230 PATH_SEPARATOR=';'
14231 }
14232 fi
14233
14234
14235 # IFS
14236 # We need space, tab and new line, in precisely that order. Quoting is
14237 # there to prevent editors from complaining about space-tab.
14238 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14239 # splitting by setting IFS to empty value.)
14240 IFS=" "" $as_nl"
14241
14242 # Find who we are. Look in the path if we contain no directory separator.
14243 as_myself=
14244 case $0 in #((
14245 *[\\/]* ) as_myself=$0 ;;
14246 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14247 for as_dir in $PATH
14248 do
14249 IFS=$as_save_IFS
14250 test -z "$as_dir" && as_dir=.
14251 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14252 done
14253 IFS=$as_save_IFS
14254
14255 ;;
14256 esac
14257 # We did not find ourselves, most probably we were run as `sh COMMAND'
14258 # in which case we are not to be found in the path.
14259 if test "x$as_myself" = x; then
14260 as_myself=$0
14261 fi
14262 if test ! -f "$as_myself"; then
14263 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14264 exit 1
14265 fi
14266
14267 # Unset variables that we do not need and which cause bugs (e.g. in
14268 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14269 # suppresses any "Segmentation fault" message there. '((' could
14270 # trigger a bug in pdksh 5.2.14.
14271 for as_var in BASH_ENV ENV MAIL MAILPATH
14272 do eval test x\${$as_var+set} = xset \
14273 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14274 done
14275 PS1='$ '
14276 PS2='> '
14277 PS4='+ '
14278
14279 # NLS nuisances.
14280 LC_ALL=C
14281 export LC_ALL
14282 LANGUAGE=C
14283 export LANGUAGE
14284
14285 # CDPATH.
14286 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14287
14288
14289 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14290 # ----------------------------------------
14291 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14292 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14293 # script with STATUS, using 1 if that was 0.
14294 as_fn_error ()
14295 {
14296 as_status=$1; test $as_status -eq 0 && as_status=1
14297 if test "$4"; then
14298 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14299 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14300 fi
14301 $as_echo "$as_me: error: $2" >&2
14302 as_fn_exit $as_status
14303 } # as_fn_error
14304
14305
14306 # as_fn_set_status STATUS
14307 # -----------------------
14308 # Set $? to STATUS, without forking.
14309 as_fn_set_status ()
14310 {
14311 return $1
14312 } # as_fn_set_status
14313
14314 # as_fn_exit STATUS
14315 # -----------------
14316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14317 as_fn_exit ()
14318 {
14319 set +e
14320 as_fn_set_status $1
14321 exit $1
14322 } # as_fn_exit
14323
14324 # as_fn_unset VAR
14325 # ---------------
14326 # Portably unset VAR.
14327 as_fn_unset ()
14328 {
14329 { eval $1=; unset $1;}
14330 }
14331 as_unset=as_fn_unset
14332 # as_fn_append VAR VALUE
14333 # ----------------------
14334 # Append the text in VALUE to the end of the definition contained in VAR. Take
14335 # advantage of any shell optimizations that allow amortized linear growth over
14336 # repeated appends, instead of the typical quadratic growth present in naive
14337 # implementations.
14338 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14339 eval 'as_fn_append ()
14340 {
14341 eval $1+=\$2
14342 }'
14343 else
14344 as_fn_append ()
14345 {
14346 eval $1=\$$1\$2
14347 }
14348 fi # as_fn_append
14349
14350 # as_fn_arith ARG...
14351 # ------------------
14352 # Perform arithmetic evaluation on the ARGs, and store the result in the
14353 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14354 # must be portable across $(()) and expr.
14355 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14356 eval 'as_fn_arith ()
14357 {
14358 as_val=$(( $* ))
14359 }'
14360 else
14361 as_fn_arith ()
14362 {
14363 as_val=`expr "$@" || test $? -eq 1`
14364 }
14365 fi # as_fn_arith
14366
14367
14368 if expr a : '\(a\)' >/dev/null 2>&1 &&
14369 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14370 as_expr=expr
14371 else
14372 as_expr=false
14373 fi
14374
14375 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14376 as_basename=basename
14377 else
14378 as_basename=false
14379 fi
14380
14381 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14382 as_dirname=dirname
14383 else
14384 as_dirname=false
14385 fi
14386
14387 as_me=`$as_basename -- "$0" ||
14388 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14389 X"$0" : 'X\(//\)$' \| \
14390 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14391 $as_echo X/"$0" |
14392 sed '/^.*\/\([^/][^/]*\)\/*$/{
14393 s//\1/
14394 q
14395 }
14396 /^X\/\(\/\/\)$/{
14397 s//\1/
14398 q
14399 }
14400 /^X\/\(\/\).*/{
14401 s//\1/
14402 q
14403 }
14404 s/.*/./; q'`
14405
14406 # Avoid depending upon Character Ranges.
14407 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14408 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14409 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14410 as_cr_digits='0123456789'
14411 as_cr_alnum=$as_cr_Letters$as_cr_digits
14412
14413 ECHO_C= ECHO_N= ECHO_T=
14414 case `echo -n x` in #(((((
14415 -n*)
14416 case `echo 'xy\c'` in
14417 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14418 xy) ECHO_C='\c';;
14419 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14420 ECHO_T=' ';;
14421 esac;;
14422 *)
14423 ECHO_N='-n';;
14424 esac
14425
14426 rm -f conf$$ conf$$.exe conf$$.file
14427 if test -d conf$$.dir; then
14428 rm -f conf$$.dir/conf$$.file
14429 else
14430 rm -f conf$$.dir
14431 mkdir conf$$.dir 2>/dev/null
14432 fi
14433 if (echo >conf$$.file) 2>/dev/null; then
14434 if ln -s conf$$.file conf$$ 2>/dev/null; then
14435 as_ln_s='ln -s'
14436 # ... but there are two gotchas:
14437 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14438 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14439 # In both cases, we have to default to `cp -pR'.
14440 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14441 as_ln_s='cp -pR'
14442 elif ln conf$$.file conf$$ 2>/dev/null; then
14443 as_ln_s=ln
14444 else
14445 as_ln_s='cp -pR'
14446 fi
14447 else
14448 as_ln_s='cp -pR'
14449 fi
14450 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14451 rmdir conf$$.dir 2>/dev/null
14452
14453
14454 # as_fn_mkdir_p
14455 # -------------
14456 # Create "$as_dir" as a directory, including parents if necessary.
14457 as_fn_mkdir_p ()
14458 {
14459
14460 case $as_dir in #(
14461 -*) as_dir=./$as_dir;;
14462 esac
14463 test -d "$as_dir" || eval $as_mkdir_p || {
14464 as_dirs=
14465 while :; do
14466 case $as_dir in #(
14467 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14468 *) as_qdir=$as_dir;;
14469 esac
14470 as_dirs="'$as_qdir' $as_dirs"
14471 as_dir=`$as_dirname -- "$as_dir" ||
14472 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14473 X"$as_dir" : 'X\(//\)[^/]' \| \
14474 X"$as_dir" : 'X\(//\)$' \| \
14475 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14476 $as_echo X"$as_dir" |
14477 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14478 s//\1/
14479 q
14480 }
14481 /^X\(\/\/\)[^/].*/{
14482 s//\1/
14483 q
14484 }
14485 /^X\(\/\/\)$/{
14486 s//\1/
14487 q
14488 }
14489 /^X\(\/\).*/{
14490 s//\1/
14491 q
14492 }
14493 s/.*/./; q'`
14494 test -d "$as_dir" && break
14495 done
14496 test -z "$as_dirs" || eval "mkdir $as_dirs"
14497 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14498
14499
14500 } # as_fn_mkdir_p
14501 if mkdir -p . 2>/dev/null; then
14502 as_mkdir_p='mkdir -p "$as_dir"'
14503 else
14504 test -d ./-p && rmdir ./-p
14505 as_mkdir_p=false
14506 fi
14507
14508
14509 # as_fn_executable_p FILE
14510 # -----------------------
14511 # Test if FILE is an executable regular file.
14512 as_fn_executable_p ()
14513 {
14514 test -f "$1" && test -x "$1"
14515 } # as_fn_executable_p
14516 as_test_x='test -x'
14517 as_executable_p=as_fn_executable_p
14518
14519 # Sed expression to map a string onto a valid CPP name.
14520 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14521
14522 # Sed expression to map a string onto a valid variable name.
14523 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14524
14525
14526 exec 6>&1
14527 ## ----------------------------------- ##
14528 ## Main body of $CONFIG_STATUS script. ##
14529 ## ----------------------------------- ##
14530 _ASEOF
14531 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14532
14533 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14534 # Save the log message, to keep $0 and so on meaningful, and to
14535 # report actual input values of CONFIG_FILES etc. instead of their
14536 # values after options handling.
14537 ac_log="
14538 This file was extended by mpc $as_me 1.0.1, which was
14539 generated by GNU Autoconf 2.69. Invocation command line was
14540
14541 CONFIG_FILES = $CONFIG_FILES
14542 CONFIG_HEADERS = $CONFIG_HEADERS
14543 CONFIG_LINKS = $CONFIG_LINKS
14544 CONFIG_COMMANDS = $CONFIG_COMMANDS
14545 $ $0 $@
14546
14547 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14548 "
14549
14550 _ACEOF
14551
14552 case $ac_config_files in *"
14553 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14554 esac
14555
14556 case $ac_config_headers in *"
14557 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14558 esac
14559
14560
14561 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14562 # Files that config.status was made for.
14563 config_files="$ac_config_files"
14564 config_headers="$ac_config_headers"
14565 config_commands="$ac_config_commands"
14566
14567 _ACEOF
14568
14569 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14570 ac_cs_usage="\
14571 \`$as_me' instantiates files and other configuration actions
14572 from templates according to the current configuration. Unless the files
14573 and actions are specified as TAGs, all are instantiated by default.
14574
14575 Usage: $0 [OPTION]... [TAG]...
14576
14577 -h, --help print this help, then exit
14578 -V, --version print version number and configuration settings, then exit
14579 --config print configuration, then exit
14580 -q, --quiet, --silent
14581 do not print progress messages
14582 -d, --debug don't remove temporary files
14583 --recheck update $as_me by reconfiguring in the same conditions
14584 --file=FILE[:TEMPLATE]
14585 instantiate the configuration file FILE
14586 --header=FILE[:TEMPLATE]
14587 instantiate the configuration header FILE
14588
14589 Configuration files:
14590 $config_files
14591
14592 Configuration headers:
14593 $config_headers
14594
14595 Configuration commands:
14596 $config_commands
14597
14598 Report bugs to <mpc-discuss@lists.gforge.inria.fr>."
14599
14600 _ACEOF
14601 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14602 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14603 ac_cs_version="\\
14604 mpc config.status 1.0.1
14605 configured by $0, generated by GNU Autoconf 2.69,
14606 with options \\"\$ac_cs_config\\"
14607
14608 Copyright (C) 2012 Free Software Foundation, Inc.
14609 This config.status script is free software; the Free Software Foundation
14610 gives unlimited permission to copy, distribute and modify it."
14611
14612 ac_pwd='$ac_pwd'
14613 srcdir='$srcdir'
14614 INSTALL='$INSTALL'
14615 MKDIR_P='$MKDIR_P'
14616 AWK='$AWK'
14617 test -n "\$AWK" || AWK=awk
14618 _ACEOF
14619
14620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14621 # The default lists apply if the user does not specify any file.
14622 ac_need_defaults=:
14623 while test $# != 0
14624 do
14625 case $1 in
14626 --*=?*)
14627 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14628 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14629 ac_shift=:
14630 ;;
14631 --*=)
14632 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14633 ac_optarg=
14634 ac_shift=:
14635 ;;
14636 *)
14637 ac_option=$1
14638 ac_optarg=$2
14639 ac_shift=shift
14640 ;;
14641 esac
14642
14643 case $ac_option in
14644 # Handling of the options.
14645 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14646 ac_cs_recheck=: ;;
14647 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14648 $as_echo "$ac_cs_version"; exit ;;
14649 --config | --confi | --conf | --con | --co | --c )
14650 $as_echo "$ac_cs_config"; exit ;;
14651 --debug | --debu | --deb | --de | --d | -d )
14652 debug=: ;;
14653 --file | --fil | --fi | --f )
14654 $ac_shift
14655 case $ac_optarg in
14656 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14657 '') as_fn_error $? "missing file argument" ;;
14658 esac
14659 as_fn_append CONFIG_FILES " '$ac_optarg'"
14660 ac_need_defaults=false;;
14661 --header | --heade | --head | --hea )
14662 $ac_shift
14663 case $ac_optarg in
14664 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14665 esac
14666 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14667 ac_need_defaults=false;;
14668 --he | --h)
14669 # Conflict between --help and --header
14670 as_fn_error $? "ambiguous option: \`$1'
14671 Try \`$0 --help' for more information.";;
14672 --help | --hel | -h )
14673 $as_echo "$ac_cs_usage"; exit ;;
14674 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14675 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14676 ac_cs_silent=: ;;
14677
14678 # This is an error.
14679 -*) as_fn_error $? "unrecognized option: \`$1'
14680 Try \`$0 --help' for more information." ;;
14681
14682 *) as_fn_append ac_config_targets " $1"
14683 ac_need_defaults=false ;;
14684
14685 esac
14686 shift
14687 done
14688
14689 ac_configure_extra_args=
14690
14691 if $ac_cs_silent; then
14692 exec 6>/dev/null
14693 ac_configure_extra_args="$ac_configure_extra_args --silent"
14694 fi
14695
14696 _ACEOF
14697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14698 if \$ac_cs_recheck; then
14699 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14700 shift
14701 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14702 CONFIG_SHELL='$SHELL'
14703 export CONFIG_SHELL
14704 exec "\$@"
14705 fi
14706
14707 _ACEOF
14708 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14709 exec 5>>config.log
14710 {
14711 echo
14712 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14713 ## Running $as_me. ##
14714 _ASBOX
14715 $as_echo "$ac_log"
14716 } >&5
14717
14718 _ACEOF
14719 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14720 #
14721 # INIT-COMMANDS
14722 #
14723 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14724
14725
14726 # The HP-UX ksh and POSIX shell print the target directory to stdout
14727 # if CDPATH is set.
14728 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14729
14730 sed_quote_subst='$sed_quote_subst'
14731 double_quote_subst='$double_quote_subst'
14732 delay_variable_subst='$delay_variable_subst'
14733 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14734 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14735 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14736 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14737 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14738 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14739 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14740 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14741 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14742 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14743 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14744 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14745 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14746 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14747 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14748 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14749 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14750 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14751 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14752 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14753 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14754 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14755 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14756 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14757 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14758 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14759 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14760 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14761 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14762 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14763 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14764 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14765 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14766 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14767 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14768 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14769 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14770 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14771 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14772 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14773 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14774 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14775 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14776 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14777 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14778 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14779 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14780 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14781 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14782 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14783 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14784 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14785 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14786 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14787 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14788 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"`'
14789 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14790 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14791 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14792 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14793 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14794 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14795 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14796 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14797 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14798 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14799 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14800 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14801 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14802 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14803 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14804 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14805 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14806 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14807 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14808 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14809 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14810 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14811 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14812 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14813 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14814 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14815 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14816 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14817 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14818 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14819 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14820 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14821 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14822 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14823 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
14824 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14825 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14826 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14827 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14828 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14829 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14830 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14831 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14832 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14833 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14834 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14835 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14836 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14837 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14838 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14839 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14840 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14841 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14842 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14843 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14844 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14845 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14846 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14847 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14848 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14849 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14850 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14851 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14852 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14853 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14854 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14855 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14856 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14857 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14858 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14859 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14860 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14861 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14862 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14863 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
14864
14865 LTCC='$LTCC'
14866 LTCFLAGS='$LTCFLAGS'
14867 compiler='$compiler_DEFAULT'
14868
14869 # A function that is used when there is no print builtin or printf.
14870 func_fallback_echo ()
14871 {
14872 eval 'cat <<_LTECHO_EOF
14873 \$1
14874 _LTECHO_EOF'
14875 }
14876
14877 # Quote evaled strings.
14878 for var in SHELL \
14879 ECHO \
14880 SED \
14881 GREP \
14882 EGREP \
14883 FGREP \
14884 LD \
14885 NM \
14886 LN_S \
14887 lt_SP2NL \
14888 lt_NL2SP \
14889 reload_flag \
14890 OBJDUMP \
14891 deplibs_check_method \
14892 file_magic_cmd \
14893 file_magic_glob \
14894 want_nocaseglob \
14895 DLLTOOL \
14896 sharedlib_from_linklib_cmd \
14897 AR \
14898 AR_FLAGS \
14899 archiver_list_spec \
14900 STRIP \
14901 RANLIB \
14902 CC \
14903 CFLAGS \
14904 compiler \
14905 lt_cv_sys_global_symbol_pipe \
14906 lt_cv_sys_global_symbol_to_cdecl \
14907 lt_cv_sys_global_symbol_to_c_name_address \
14908 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14909 nm_file_list_spec \
14910 lt_prog_compiler_no_builtin_flag \
14911 lt_prog_compiler_pic \
14912 lt_prog_compiler_wl \
14913 lt_prog_compiler_static \
14914 lt_cv_prog_compiler_c_o \
14915 need_locks \
14916 MANIFEST_TOOL \
14917 DSYMUTIL \
14918 NMEDIT \
14919 LIPO \
14920 OTOOL \
14921 OTOOL64 \
14922 shrext_cmds \
14923 export_dynamic_flag_spec \
14924 whole_archive_flag_spec \
14925 compiler_needs_object \
14926 with_gnu_ld \
14927 allow_undefined_flag \
14928 no_undefined_flag \
14929 hardcode_libdir_flag_spec \
14930 hardcode_libdir_flag_spec_ld \
14931 hardcode_libdir_separator \
14932 exclude_expsyms \
14933 include_expsyms \
14934 file_list_spec \
14935 variables_saved_for_relink \
14936 libname_spec \
14937 library_names_spec \
14938 soname_spec \
14939 install_override_mode \
14940 finish_eval \
14941 old_striplib \
14942 striplib \
14943 AS; do
14944 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14945 *[\\\\\\\`\\"\\\$]*)
14946 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14947 ;;
14948 *)
14949 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14950 ;;
14951 esac
14952 done
14953
14954 # Double-quote double-evaled strings.
14955 for var in reload_cmds \
14956 old_postinstall_cmds \
14957 old_postuninstall_cmds \
14958 old_archive_cmds \
14959 extract_expsyms_cmds \
14960 old_archive_from_new_cmds \
14961 old_archive_from_expsyms_cmds \
14962 archive_cmds \
14963 archive_expsym_cmds \
14964 module_cmds \
14965 module_expsym_cmds \
14966 export_symbols_cmds \
14967 prelink_cmds \
14968 postlink_cmds \
14969 postinstall_cmds \
14970 postuninstall_cmds \
14971 finish_cmds \
14972 sys_lib_search_path_spec \
14973 sys_lib_dlsearch_path_spec; do
14974 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14975 *[\\\\\\\`\\"\\\$]*)
14976 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14977 ;;
14978 *)
14979 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14980 ;;
14981 esac
14982 done
14983
14984 ac_aux_dir='$ac_aux_dir'
14985 xsi_shell='$xsi_shell'
14986 lt_shell_append='$lt_shell_append'
14987
14988 # See if we are running on zsh, and set the options which allow our
14989 # commands through without removal of \ escapes INIT.
14990 if test -n "\${ZSH_VERSION+set}" ; then
14991 setopt NO_GLOB_SUBST
14992 fi
14993
14994
14995 PACKAGE='$PACKAGE'
14996 VERSION='$VERSION'
14997 TIMESTAMP='$TIMESTAMP'
14998 RM='$RM'
14999 ofile='$ofile'
15000
15001
15002
15003
15004 _ACEOF
15005
15006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15007
15008 # Handling of arguments.
15009 for ac_config_target in $ac_config_targets
15010 do
15011 case $ac_config_target in
15012 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15013 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15014 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15015 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15016 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15017 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
15018 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15019
15020 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15021 esac
15022 done
15023
15024
15025 # If the user did not use the arguments to specify the items to instantiate,
15026 # then the envvar interface is used. Set only those that are not.
15027 # We use the long form for the default assignment because of an extremely
15028 # bizarre bug on SunOS 4.1.3.
15029 if $ac_need_defaults; then
15030 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15031 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15032 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15033 fi
15034
15035 # Have a temporary directory for convenience. Make it in the build tree
15036 # simply because there is no reason against having it here, and in addition,
15037 # creating and moving files from /tmp can sometimes cause problems.
15038 # Hook for its removal unless debugging.
15039 # Note that there is a small window in which the directory will not be cleaned:
15040 # after its creation but before its name has been assigned to `$tmp'.
15041 $debug ||
15042 {
15043 tmp= ac_tmp=
15044 trap 'exit_status=$?
15045 : "${ac_tmp:=$tmp}"
15046 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15047 ' 0
15048 trap 'as_fn_exit 1' 1 2 13 15
15049 }
15050 # Create a (secure) tmp directory for tmp files.
15051
15052 {
15053 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15054 test -d "$tmp"
15055 } ||
15056 {
15057 tmp=./conf$$-$RANDOM
15058 (umask 077 && mkdir "$tmp")
15059 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15060 ac_tmp=$tmp
15061
15062 # Set up the scripts for CONFIG_FILES section.
15063 # No need to generate them if there are no CONFIG_FILES.
15064 # This happens for instance with `./config.status config.h'.
15065 if test -n "$CONFIG_FILES"; then
15066
15067
15068 ac_cr=`echo X | tr X '\015'`
15069 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15070 # But we know of no other shell where ac_cr would be empty at this
15071 # point, so we can use a bashism as a fallback.
15072 if test "x$ac_cr" = x; then
15073 eval ac_cr=\$\'\\r\'
15074 fi
15075 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15076 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15077 ac_cs_awk_cr='\\r'
15078 else
15079 ac_cs_awk_cr=$ac_cr
15080 fi
15081
15082 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15083 _ACEOF
15084
15085
15086 {
15087 echo "cat >conf$$subs.awk <<_ACEOF" &&
15088 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15089 echo "_ACEOF"
15090 } >conf$$subs.sh ||
15091 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15092 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15093 ac_delim='%!_!# '
15094 for ac_last_try in false false false false false :; do
15095 . ./conf$$subs.sh ||
15096 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15097
15098 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15099 if test $ac_delim_n = $ac_delim_num; then
15100 break
15101 elif $ac_last_try; then
15102 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15103 else
15104 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15105 fi
15106 done
15107 rm -f conf$$subs.sh
15108
15109 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15110 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15111 _ACEOF
15112 sed -n '
15113 h
15114 s/^/S["/; s/!.*/"]=/
15115 p
15116 g
15117 s/^[^!]*!//
15118 :repl
15119 t repl
15120 s/'"$ac_delim"'$//
15121 t delim
15122 :nl
15123 h
15124 s/\(.\{148\}\)..*/\1/
15125 t more1
15126 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15127 p
15128 n
15129 b repl
15130 :more1
15131 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15132 p
15133 g
15134 s/.\{148\}//
15135 t nl
15136 :delim
15137 h
15138 s/\(.\{148\}\)..*/\1/
15139 t more2
15140 s/["\\]/\\&/g; s/^/"/; s/$/"/
15141 p
15142 b
15143 :more2
15144 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15145 p
15146 g
15147 s/.\{148\}//
15148 t delim
15149 ' <conf$$subs.awk | sed '
15150 /^[^""]/{
15151 N
15152 s/\n//
15153 }
15154 ' >>$CONFIG_STATUS || ac_write_fail=1
15155 rm -f conf$$subs.awk
15156 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15157 _ACAWK
15158 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15159 for (key in S) S_is_set[key] = 1
15160 FS = ""
15161
15162 }
15163 {
15164 line = $ 0
15165 nfields = split(line, field, "@")
15166 substed = 0
15167 len = length(field[1])
15168 for (i = 2; i < nfields; i++) {
15169 key = field[i]
15170 keylen = length(key)
15171 if (S_is_set[key]) {
15172 value = S[key]
15173 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15174 len += length(value) + length(field[++i])
15175 substed = 1
15176 } else
15177 len += 1 + keylen
15178 }
15179
15180 print line
15181 }
15182
15183 _ACAWK
15184 _ACEOF
15185 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15186 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15187 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15188 else
15189 cat
15190 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15191 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15192 _ACEOF
15193
15194 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15195 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15196 # trailing colons and then remove the whole line if VPATH becomes empty
15197 # (actually we leave an empty line to preserve line numbers).
15198 if test "x$srcdir" = x.; then
15199 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15200 h
15201 s///
15202 s/^/:/
15203 s/[ ]*$/:/
15204 s/:\$(srcdir):/:/g
15205 s/:\${srcdir}:/:/g
15206 s/:@srcdir@:/:/g
15207 s/^:*//
15208 s/:*$//
15209 x
15210 s/\(=[ ]*\).*/\1/
15211 G
15212 s/\n//
15213 s/^[^=]*=[ ]*$//
15214 }'
15215 fi
15216
15217 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15218 fi # test -n "$CONFIG_FILES"
15219
15220 # Set up the scripts for CONFIG_HEADERS section.
15221 # No need to generate them if there are no CONFIG_HEADERS.
15222 # This happens for instance with `./config.status Makefile'.
15223 if test -n "$CONFIG_HEADERS"; then
15224 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15225 BEGIN {
15226 _ACEOF
15227
15228 # Transform confdefs.h into an awk script `defines.awk', embedded as
15229 # here-document in config.status, that substitutes the proper values into
15230 # config.h.in to produce config.h.
15231
15232 # Create a delimiter string that does not exist in confdefs.h, to ease
15233 # handling of long lines.
15234 ac_delim='%!_!# '
15235 for ac_last_try in false false :; do
15236 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15237 if test -z "$ac_tt"; then
15238 break
15239 elif $ac_last_try; then
15240 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15241 else
15242 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15243 fi
15244 done
15245
15246 # For the awk script, D is an array of macro values keyed by name,
15247 # likewise P contains macro parameters if any. Preserve backslash
15248 # newline sequences.
15249
15250 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15251 sed -n '
15252 s/.\{148\}/&'"$ac_delim"'/g
15253 t rset
15254 :rset
15255 s/^[ ]*#[ ]*define[ ][ ]*/ /
15256 t def
15257 d
15258 :def
15259 s/\\$//
15260 t bsnl
15261 s/["\\]/\\&/g
15262 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15263 D["\1"]=" \3"/p
15264 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15265 d
15266 :bsnl
15267 s/["\\]/\\&/g
15268 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15269 D["\1"]=" \3\\\\\\n"\\/p
15270 t cont
15271 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15272 t cont
15273 d
15274 :cont
15275 n
15276 s/.\{148\}/&'"$ac_delim"'/g
15277 t clear
15278 :clear
15279 s/\\$//
15280 t bsnlc
15281 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15282 d
15283 :bsnlc
15284 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15285 b cont
15286 ' <confdefs.h | sed '
15287 s/'"$ac_delim"'/"\\\
15288 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15289
15290 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15291 for (key in D) D_is_set[key] = 1
15292 FS = ""
15293 }
15294 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15295 line = \$ 0
15296 split(line, arg, " ")
15297 if (arg[1] == "#") {
15298 defundef = arg[2]
15299 mac1 = arg[3]
15300 } else {
15301 defundef = substr(arg[1], 2)
15302 mac1 = arg[2]
15303 }
15304 split(mac1, mac2, "(") #)
15305 macro = mac2[1]
15306 prefix = substr(line, 1, index(line, defundef) - 1)
15307 if (D_is_set[macro]) {
15308 # Preserve the white space surrounding the "#".
15309 print prefix "define", macro P[macro] D[macro]
15310 next
15311 } else {
15312 # Replace #undef with comments. This is necessary, for example,
15313 # in the case of _POSIX_SOURCE, which is predefined and required
15314 # on some systems where configure will not decide to define it.
15315 if (defundef == "undef") {
15316 print "/*", prefix defundef, macro, "*/"
15317 next
15318 }
15319 }
15320 }
15321 { print }
15322 _ACAWK
15323 _ACEOF
15324 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15325 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15326 fi # test -n "$CONFIG_HEADERS"
15327
15328
15329 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15330 shift
15331 for ac_tag
15332 do
15333 case $ac_tag in
15334 :[FHLC]) ac_mode=$ac_tag; continue;;
15335 esac
15336 case $ac_mode$ac_tag in
15337 :[FHL]*:*);;
15338 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15339 :[FH]-) ac_tag=-:-;;
15340 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15341 esac
15342 ac_save_IFS=$IFS
15343 IFS=:
15344 set x $ac_tag
15345 IFS=$ac_save_IFS
15346 shift
15347 ac_file=$1
15348 shift
15349
15350 case $ac_mode in
15351 :L) ac_source=$1;;
15352 :[FH])
15353 ac_file_inputs=
15354 for ac_f
15355 do
15356 case $ac_f in
15357 -) ac_f="$ac_tmp/stdin";;
15358 *) # Look for the file first in the build tree, then in the source tree
15359 # (if the path is not absolute). The absolute path cannot be DOS-style,
15360 # because $ac_f cannot contain `:'.
15361 test -f "$ac_f" ||
15362 case $ac_f in
15363 [\\/$]*) false;;
15364 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15365 esac ||
15366 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15367 esac
15368 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15369 as_fn_append ac_file_inputs " '$ac_f'"
15370 done
15371
15372 # Let's still pretend it is `configure' which instantiates (i.e., don't
15373 # use $as_me), people would be surprised to read:
15374 # /* config.h. Generated by config.status. */
15375 configure_input='Generated from '`
15376 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15377 `' by configure.'
15378 if test x"$ac_file" != x-; then
15379 configure_input="$ac_file. $configure_input"
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15381 $as_echo "$as_me: creating $ac_file" >&6;}
15382 fi
15383 # Neutralize special characters interpreted by sed in replacement strings.
15384 case $configure_input in #(
15385 *\&* | *\|* | *\\* )
15386 ac_sed_conf_input=`$as_echo "$configure_input" |
15387 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15388 *) ac_sed_conf_input=$configure_input;;
15389 esac
15390
15391 case $ac_tag in
15392 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15393 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15394 esac
15395 ;;
15396 esac
15397
15398 ac_dir=`$as_dirname -- "$ac_file" ||
15399 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15400 X"$ac_file" : 'X\(//\)[^/]' \| \
15401 X"$ac_file" : 'X\(//\)$' \| \
15402 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15403 $as_echo X"$ac_file" |
15404 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15405 s//\1/
15406 q
15407 }
15408 /^X\(\/\/\)[^/].*/{
15409 s//\1/
15410 q
15411 }
15412 /^X\(\/\/\)$/{
15413 s//\1/
15414 q
15415 }
15416 /^X\(\/\).*/{
15417 s//\1/
15418 q
15419 }
15420 s/.*/./; q'`
15421 as_dir="$ac_dir"; as_fn_mkdir_p
15422 ac_builddir=.
15423
15424 case "$ac_dir" in
15425 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15426 *)
15427 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15428 # A ".." for each directory in $ac_dir_suffix.
15429 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15430 case $ac_top_builddir_sub in
15431 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15432 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15433 esac ;;
15434 esac
15435 ac_abs_top_builddir=$ac_pwd
15436 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15437 # for backward compatibility:
15438 ac_top_builddir=$ac_top_build_prefix
15439
15440 case $srcdir in
15441 .) # We are building in place.
15442 ac_srcdir=.
15443 ac_top_srcdir=$ac_top_builddir_sub
15444 ac_abs_top_srcdir=$ac_pwd ;;
15445 [\\/]* | ?:[\\/]* ) # Absolute name.
15446 ac_srcdir=$srcdir$ac_dir_suffix;
15447 ac_top_srcdir=$srcdir
15448 ac_abs_top_srcdir=$srcdir ;;
15449 *) # Relative name.
15450 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15451 ac_top_srcdir=$ac_top_build_prefix$srcdir
15452 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15453 esac
15454 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15455
15456
15457 case $ac_mode in
15458 :F)
15459 #
15460 # CONFIG_FILE
15461 #
15462
15463 case $INSTALL in
15464 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15465 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15466 esac
15467 ac_MKDIR_P=$MKDIR_P
15468 case $MKDIR_P in
15469 [\\/$]* | ?:[\\/]* ) ;;
15470 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15471 esac
15472 _ACEOF
15473
15474 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15475 # If the template does not know about datarootdir, expand it.
15476 # FIXME: This hack should be removed a few years after 2.60.
15477 ac_datarootdir_hack=; ac_datarootdir_seen=
15478 ac_sed_dataroot='
15479 /datarootdir/ {
15480 p
15481 q
15482 }
15483 /@datadir@/p
15484 /@docdir@/p
15485 /@infodir@/p
15486 /@localedir@/p
15487 /@mandir@/p'
15488 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15489 *datarootdir*) ac_datarootdir_seen=yes;;
15490 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15492 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15493 _ACEOF
15494 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15495 ac_datarootdir_hack='
15496 s&@datadir@&$datadir&g
15497 s&@docdir@&$docdir&g
15498 s&@infodir@&$infodir&g
15499 s&@localedir@&$localedir&g
15500 s&@mandir@&$mandir&g
15501 s&\\\${datarootdir}&$datarootdir&g' ;;
15502 esac
15503 _ACEOF
15504
15505 # Neutralize VPATH when `$srcdir' = `.'.
15506 # Shell code in configure.ac might set extrasub.
15507 # FIXME: do we really want to maintain this feature?
15508 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15509 ac_sed_extra="$ac_vpsub
15510 $extrasub
15511 _ACEOF
15512 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15513 :t
15514 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15515 s|@configure_input@|$ac_sed_conf_input|;t t
15516 s&@top_builddir@&$ac_top_builddir_sub&;t t
15517 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15518 s&@srcdir@&$ac_srcdir&;t t
15519 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15520 s&@top_srcdir@&$ac_top_srcdir&;t t
15521 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15522 s&@builddir@&$ac_builddir&;t t
15523 s&@abs_builddir@&$ac_abs_builddir&;t t
15524 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15525 s&@INSTALL@&$ac_INSTALL&;t t
15526 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15527 $ac_datarootdir_hack
15528 "
15529 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15530 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15531
15532 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15533 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15534 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15535 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15537 which seems to be undefined. Please make sure it is defined" >&5
15538 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15539 which seems to be undefined. Please make sure it is defined" >&2;}
15540
15541 rm -f "$ac_tmp/stdin"
15542 case $ac_file in
15543 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15544 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15545 esac \
15546 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15547 ;;
15548 :H)
15549 #
15550 # CONFIG_HEADER
15551 #
15552 if test x"$ac_file" != x-; then
15553 {
15554 $as_echo "/* $configure_input */" \
15555 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15556 } >"$ac_tmp/config.h" \
15557 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15558 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15559 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15560 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15561 else
15562 rm -f "$ac_file"
15563 mv "$ac_tmp/config.h" "$ac_file" \
15564 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15565 fi
15566 else
15567 $as_echo "/* $configure_input */" \
15568 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15569 || as_fn_error $? "could not create -" "$LINENO" 5
15570 fi
15571 # Compute "$ac_file"'s index in $config_headers.
15572 _am_arg="$ac_file"
15573 _am_stamp_count=1
15574 for _am_header in $config_headers :; do
15575 case $_am_header in
15576 $_am_arg | $_am_arg:* )
15577 break ;;
15578 * )
15579 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15580 esac
15581 done
15582 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15583 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15584 X"$_am_arg" : 'X\(//\)[^/]' \| \
15585 X"$_am_arg" : 'X\(//\)$' \| \
15586 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15587 $as_echo X"$_am_arg" |
15588 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15589 s//\1/
15590 q
15591 }
15592 /^X\(\/\/\)[^/].*/{
15593 s//\1/
15594 q
15595 }
15596 /^X\(\/\/\)$/{
15597 s//\1/
15598 q
15599 }
15600 /^X\(\/\).*/{
15601 s//\1/
15602 q
15603 }
15604 s/.*/./; q'`/stamp-h$_am_stamp_count
15605 ;;
15606
15607 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15608 $as_echo "$as_me: executing $ac_file commands" >&6;}
15609 ;;
15610 esac
15611
15612
15613 case $ac_file$ac_mode in
15614 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15615 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15616 # are listed without --file. Let's play safe and only enable the eval
15617 # if we detect the quoting.
15618 case $CONFIG_FILES in
15619 *\'*) eval set x "$CONFIG_FILES" ;;
15620 *) set x $CONFIG_FILES ;;
15621 esac
15622 shift
15623 for mf
15624 do
15625 # Strip MF so we end up with the name of the file.
15626 mf=`echo "$mf" | sed -e 's/:.*$//'`
15627 # Check whether this is an Automake generated Makefile or not.
15628 # We used to match only the files named `Makefile.in', but
15629 # some people rename them; so instead we look at the file content.
15630 # Grep'ing the first line is not enough: some people post-process
15631 # each Makefile.in and add a new line on top of each file to say so.
15632 # Grep'ing the whole file is not good either: AIX grep has a line
15633 # limit of 2048, but all sed's we know have understand at least 4000.
15634 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15635 dirpart=`$as_dirname -- "$mf" ||
15636 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15637 X"$mf" : 'X\(//\)[^/]' \| \
15638 X"$mf" : 'X\(//\)$' \| \
15639 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15640 $as_echo X"$mf" |
15641 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15642 s//\1/
15643 q
15644 }
15645 /^X\(\/\/\)[^/].*/{
15646 s//\1/
15647 q
15648 }
15649 /^X\(\/\/\)$/{
15650 s//\1/
15651 q
15652 }
15653 /^X\(\/\).*/{
15654 s//\1/
15655 q
15656 }
15657 s/.*/./; q'`
15658 else
15659 continue
15660 fi
15661 # Extract the definition of DEPDIR, am__include, and am__quote
15662 # from the Makefile without running `make'.
15663 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15664 test -z "$DEPDIR" && continue
15665 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15666 test -z "am__include" && continue
15667 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15668 # When using ansi2knr, U may be empty or an underscore; expand it
15669 U=`sed -n 's/^U = //p' < "$mf"`
15670 # Find all dependency output files, they are included files with
15671 # $(DEPDIR) in their names. We invoke sed twice because it is the
15672 # simplest approach to changing $(DEPDIR) to its actual value in the
15673 # expansion.
15674 for file in `sed -n "
15675 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15676 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15677 # Make sure the directory exists.
15678 test -f "$dirpart/$file" && continue
15679 fdir=`$as_dirname -- "$file" ||
15680 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15681 X"$file" : 'X\(//\)[^/]' \| \
15682 X"$file" : 'X\(//\)$' \| \
15683 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15684 $as_echo X"$file" |
15685 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15686 s//\1/
15687 q
15688 }
15689 /^X\(\/\/\)[^/].*/{
15690 s//\1/
15691 q
15692 }
15693 /^X\(\/\/\)$/{
15694 s//\1/
15695 q
15696 }
15697 /^X\(\/\).*/{
15698 s//\1/
15699 q
15700 }
15701 s/.*/./; q'`
15702 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15703 # echo "creating $dirpart/$file"
15704 echo '# dummy' > "$dirpart/$file"
15705 done
15706 done
15707 }
15708 ;;
15709 "libtool":C)
15710
15711 # See if we are running on zsh, and set the options which allow our
15712 # commands through without removal of \ escapes.
15713 if test -n "${ZSH_VERSION+set}" ; then
15714 setopt NO_GLOB_SUBST
15715 fi
15716
15717 cfgfile="${ofile}T"
15718 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15719 $RM "$cfgfile"
15720
15721 cat <<_LT_EOF >> "$cfgfile"
15722 #! $SHELL
15723
15724 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15725 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15726 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15727 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15728 #
15729 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15730 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
15731 # Inc.
15732 # Written by Gordon Matzigkeit, 1996
15733 #
15734 # This file is part of GNU Libtool.
15735 #
15736 # GNU Libtool is free software; you can redistribute it and/or
15737 # modify it under the terms of the GNU General Public License as
15738 # published by the Free Software Foundation; either version 2 of
15739 # the License, or (at your option) any later version.
15740 #
15741 # As a special exception to the GNU General Public License,
15742 # if you distribute this file as part of a program or library that
15743 # is built using GNU Libtool, you may include this file under the
15744 # same distribution terms that you use for the rest of that program.
15745 #
15746 # GNU Libtool is distributed in the hope that it will be useful,
15747 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15748 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15749 # GNU General Public License for more details.
15750 #
15751 # You should have received a copy of the GNU General Public License
15752 # along with GNU Libtool; see the file COPYING. If not, a copy
15753 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15754 # obtained by writing to the Free Software Foundation, Inc.,
15755 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15756
15757
15758 # The names of the tagged configurations supported by this script.
15759 available_tags=""
15760
15761 # ### BEGIN LIBTOOL CONFIG
15762
15763 # Which release of libtool.m4 was used?
15764 macro_version=$macro_version
15765 macro_revision=$macro_revision
15766
15767 # Whether or not to build shared libraries.
15768 build_libtool_libs=$enable_shared
15769
15770 # Whether or not to build static libraries.
15771 build_old_libs=$enable_static
15772
15773 # What type of objects to build.
15774 pic_mode=$pic_mode
15775
15776 # Whether or not to optimize for fast installation.
15777 fast_install=$enable_fast_install
15778
15779 # Shell to use when invoking shell scripts.
15780 SHELL=$lt_SHELL
15781
15782 # An echo program that protects backslashes.
15783 ECHO=$lt_ECHO
15784
15785 # The host system.
15786 host_alias=$host_alias
15787 host=$host
15788 host_os=$host_os
15789
15790 # The build system.
15791 build_alias=$build_alias
15792 build=$build
15793 build_os=$build_os
15794
15795 # A sed program that does not truncate output.
15796 SED=$lt_SED
15797
15798 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15799 Xsed="\$SED -e 1s/^X//"
15800
15801 # A grep program that handles long lines.
15802 GREP=$lt_GREP
15803
15804 # An ERE matcher.
15805 EGREP=$lt_EGREP
15806
15807 # A literal string matcher.
15808 FGREP=$lt_FGREP
15809
15810 # A BSD- or MS-compatible name lister.
15811 NM=$lt_NM
15812
15813 # Whether we need soft or hard links.
15814 LN_S=$lt_LN_S
15815
15816 # What is the maximum length of a command?
15817 max_cmd_len=$max_cmd_len
15818
15819 # Object file suffix (normally "o").
15820 objext=$ac_objext
15821
15822 # Executable file suffix (normally "").
15823 exeext=$exeext
15824
15825 # whether the shell understands "unset".
15826 lt_unset=$lt_unset
15827
15828 # turn spaces into newlines.
15829 SP2NL=$lt_lt_SP2NL
15830
15831 # turn newlines into spaces.
15832 NL2SP=$lt_lt_NL2SP
15833
15834 # convert \$build file names to \$host format.
15835 to_host_file_cmd=$lt_cv_to_host_file_cmd
15836
15837 # convert \$build files to toolchain format.
15838 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15839
15840 # An object symbol dumper.
15841 OBJDUMP=$lt_OBJDUMP
15842
15843 # Method to check whether dependent libraries are shared objects.
15844 deplibs_check_method=$lt_deplibs_check_method
15845
15846 # Command to use when deplibs_check_method = "file_magic".
15847 file_magic_cmd=$lt_file_magic_cmd
15848
15849 # How to find potential files when deplibs_check_method = "file_magic".
15850 file_magic_glob=$lt_file_magic_glob
15851
15852 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15853 want_nocaseglob=$lt_want_nocaseglob
15854
15855 # DLL creation program.
15856 DLLTOOL=$lt_DLLTOOL
15857
15858 # Command to associate shared and link libraries.
15859 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15860
15861 # The archiver.
15862 AR=$lt_AR
15863
15864 # Flags to create an archive.
15865 AR_FLAGS=$lt_AR_FLAGS
15866
15867 # How to feed a file listing to the archiver.
15868 archiver_list_spec=$lt_archiver_list_spec
15869
15870 # A symbol stripping program.
15871 STRIP=$lt_STRIP
15872
15873 # Commands used to install an old-style archive.
15874 RANLIB=$lt_RANLIB
15875 old_postinstall_cmds=$lt_old_postinstall_cmds
15876 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15877
15878 # Whether to use a lock for old archive extraction.
15879 lock_old_archive_extraction=$lock_old_archive_extraction
15880
15881 # A C compiler.
15882 LTCC=$lt_CC
15883
15884 # LTCC compiler flags.
15885 LTCFLAGS=$lt_CFLAGS
15886
15887 # Take the output of nm and produce a listing of raw symbols and C names.
15888 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15889
15890 # Transform the output of nm in a proper C declaration.
15891 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15892
15893 # Transform the output of nm in a C name address pair.
15894 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15895
15896 # Transform the output of nm in a C name address pair when lib prefix is needed.
15897 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15898
15899 # Specify filename containing input files for \$NM.
15900 nm_file_list_spec=$lt_nm_file_list_spec
15901
15902 # The root where to search for dependent libraries,and in which our libraries should be installed.
15903 lt_sysroot=$lt_sysroot
15904
15905 # The name of the directory that contains temporary libtool files.
15906 objdir=$objdir
15907
15908 # Used to examine libraries when file_magic_cmd begins with "file".
15909 MAGIC_CMD=$MAGIC_CMD
15910
15911 # Must we lock files when doing compilation?
15912 need_locks=$lt_need_locks
15913
15914 # Manifest tool.
15915 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15916
15917 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15918 DSYMUTIL=$lt_DSYMUTIL
15919
15920 # Tool to change global to local symbols on Mac OS X.
15921 NMEDIT=$lt_NMEDIT
15922
15923 # Tool to manipulate fat objects and archives on Mac OS X.
15924 LIPO=$lt_LIPO
15925
15926 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15927 OTOOL=$lt_OTOOL
15928
15929 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15930 OTOOL64=$lt_OTOOL64
15931
15932 # Old archive suffix (normally "a").
15933 libext=$libext
15934
15935 # Shared library suffix (normally ".so").
15936 shrext_cmds=$lt_shrext_cmds
15937
15938 # The commands to extract the exported symbol list from a shared archive.
15939 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15940
15941 # Variables whose values should be saved in libtool wrapper scripts and
15942 # restored at link time.
15943 variables_saved_for_relink=$lt_variables_saved_for_relink
15944
15945 # Do we need the "lib" prefix for modules?
15946 need_lib_prefix=$need_lib_prefix
15947
15948 # Do we need a version for libraries?
15949 need_version=$need_version
15950
15951 # Library versioning type.
15952 version_type=$version_type
15953
15954 # Shared library runtime path variable.
15955 runpath_var=$runpath_var
15956
15957 # Shared library path variable.
15958 shlibpath_var=$shlibpath_var
15959
15960 # Is shlibpath searched before the hard-coded library search path?
15961 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15962
15963 # Format of library name prefix.
15964 libname_spec=$lt_libname_spec
15965
15966 # List of archive names. First name is the real one, the rest are links.
15967 # The last name is the one that the linker finds with -lNAME
15968 library_names_spec=$lt_library_names_spec
15969
15970 # The coded name of the library, if different from the real name.
15971 soname_spec=$lt_soname_spec
15972
15973 # Permission mode override for installation of shared libraries.
15974 install_override_mode=$lt_install_override_mode
15975
15976 # Command to use after installation of a shared archive.
15977 postinstall_cmds=$lt_postinstall_cmds
15978
15979 # Command to use after uninstallation of a shared archive.
15980 postuninstall_cmds=$lt_postuninstall_cmds
15981
15982 # Commands used to finish a libtool library installation in a directory.
15983 finish_cmds=$lt_finish_cmds
15984
15985 # As "finish_cmds", except a single script fragment to be evaled but
15986 # not shown.
15987 finish_eval=$lt_finish_eval
15988
15989 # Whether we should hardcode library paths into libraries.
15990 hardcode_into_libs=$hardcode_into_libs
15991
15992 # Compile-time system search path for libraries.
15993 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15994
15995 # Run-time system search path for libraries.
15996 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15997
15998 # Whether dlopen is supported.
15999 dlopen_support=$enable_dlopen
16000
16001 # Whether dlopen of programs is supported.
16002 dlopen_self=$enable_dlopen_self
16003
16004 # Whether dlopen of statically linked programs is supported.
16005 dlopen_self_static=$enable_dlopen_self_static
16006
16007 # Commands to strip libraries.
16008 old_striplib=$lt_old_striplib
16009 striplib=$lt_striplib
16010
16011 # Assembler program.
16012 AS=$lt_AS
16013
16014
16015 # The linker used to build libraries.
16016 LD=$lt_LD
16017
16018 # How to create reloadable object files.
16019 reload_flag=$lt_reload_flag
16020 reload_cmds=$lt_reload_cmds
16021
16022 # Commands used to build an old-style archive.
16023 old_archive_cmds=$lt_old_archive_cmds
16024
16025 # A language specific compiler.
16026 CC=$lt_compiler
16027
16028 # Is the compiler the GNU compiler?
16029 with_gcc=$GCC
16030
16031 # Compiler flag to turn off builtin functions.
16032 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16033
16034 # Additional compiler flags for building library objects.
16035 pic_flag=$lt_lt_prog_compiler_pic
16036
16037 # How to pass a linker flag through the compiler.
16038 wl=$lt_lt_prog_compiler_wl
16039
16040 # Compiler flag to prevent dynamic linking.
16041 link_static_flag=$lt_lt_prog_compiler_static
16042
16043 # Does compiler simultaneously support -c and -o options?
16044 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16045
16046 # Whether or not to add -lc for building shared libraries.
16047 build_libtool_need_lc=$archive_cmds_need_lc
16048
16049 # Whether or not to disallow shared libs when runtime libs are static.
16050 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16051
16052 # Compiler flag to allow reflexive dlopens.
16053 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16054
16055 # Compiler flag to generate shared objects directly from archives.
16056 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16057
16058 # Whether the compiler copes with passing no objects directly.
16059 compiler_needs_object=$lt_compiler_needs_object
16060
16061 # Create an old-style archive from a shared archive.
16062 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16063
16064 # Create a temporary old-style archive to link instead of a shared archive.
16065 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16066
16067 # Commands used to build a shared archive.
16068 archive_cmds=$lt_archive_cmds
16069 archive_expsym_cmds=$lt_archive_expsym_cmds
16070
16071 # Commands used to build a loadable module if different from building
16072 # a shared archive.
16073 module_cmds=$lt_module_cmds
16074 module_expsym_cmds=$lt_module_expsym_cmds
16075
16076 # Whether we are building with GNU ld or not.
16077 with_gnu_ld=$lt_with_gnu_ld
16078
16079 # Flag that allows shared libraries with undefined symbols to be built.
16080 allow_undefined_flag=$lt_allow_undefined_flag
16081
16082 # Flag that enforces no undefined symbols.
16083 no_undefined_flag=$lt_no_undefined_flag
16084
16085 # Flag to hardcode \$libdir into a binary during linking.
16086 # This must work even if \$libdir does not exist
16087 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16088
16089 # If ld is used when linking, flag to hardcode \$libdir into a binary
16090 # during linking. This must work even if \$libdir does not exist.
16091 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16092
16093 # Whether we need a single "-rpath" flag with a separated argument.
16094 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16095
16096 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16097 # DIR into the resulting binary.
16098 hardcode_direct=$hardcode_direct
16099
16100 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16101 # DIR into the resulting binary and the resulting library dependency is
16102 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16103 # library is relocated.
16104 hardcode_direct_absolute=$hardcode_direct_absolute
16105
16106 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16107 # into the resulting binary.
16108 hardcode_minus_L=$hardcode_minus_L
16109
16110 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16111 # into the resulting binary.
16112 hardcode_shlibpath_var=$hardcode_shlibpath_var
16113
16114 # Set to "yes" if building a shared library automatically hardcodes DIR
16115 # into the library and all subsequent libraries and executables linked
16116 # against it.
16117 hardcode_automatic=$hardcode_automatic
16118
16119 # Set to yes if linker adds runtime paths of dependent libraries
16120 # to runtime path list.
16121 inherit_rpath=$inherit_rpath
16122
16123 # Whether libtool must link a program against all its dependency libraries.
16124 link_all_deplibs=$link_all_deplibs
16125
16126 # Set to "yes" if exported symbols are required.
16127 always_export_symbols=$always_export_symbols
16128
16129 # The commands to list exported symbols.
16130 export_symbols_cmds=$lt_export_symbols_cmds
16131
16132 # Symbols that should not be listed in the preloaded symbols.
16133 exclude_expsyms=$lt_exclude_expsyms
16134
16135 # Symbols that must always be exported.
16136 include_expsyms=$lt_include_expsyms
16137
16138 # Commands necessary for linking programs (against libraries) with templates.
16139 prelink_cmds=$lt_prelink_cmds
16140
16141 # Commands necessary for finishing linking programs.
16142 postlink_cmds=$lt_postlink_cmds
16143
16144 # Specify filename containing input files.
16145 file_list_spec=$lt_file_list_spec
16146
16147 # How to hardcode a shared library path into an executable.
16148 hardcode_action=$hardcode_action
16149
16150 # ### END LIBTOOL CONFIG
16151
16152 _LT_EOF
16153
16154 case $host_os in
16155 aix3*)
16156 cat <<\_LT_EOF >> "$cfgfile"
16157 # AIX sometimes has problems with the GCC collect2 program. For some
16158 # reason, if we set the COLLECT_NAMES environment variable, the problems
16159 # vanish in a puff of smoke.
16160 if test "X${COLLECT_NAMES+set}" != Xset; then
16161 COLLECT_NAMES=
16162 export COLLECT_NAMES
16163 fi
16164 _LT_EOF
16165 ;;
16166 esac
16167
16168
16169 ltmain="$ac_aux_dir/ltmain.sh"
16170
16171
16172 # We use sed instead of cat because bash on DJGPP gets confused if
16173 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16174 # text mode, it properly converts lines to CR/LF. This bash problem
16175 # is reportedly fixed, but why not run on old versions too?
16176 sed '$q' "$ltmain" >> "$cfgfile" \
16177 || (rm -f "$cfgfile"; exit 1)
16178
16179 if test x"$xsi_shell" = xyes; then
16180 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16181 func_dirname ()\
16182 {\
16183 \ case ${1} in\
16184 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16185 \ * ) func_dirname_result="${3}" ;;\
16186 \ esac\
16187 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16188 && mv -f "$cfgfile.tmp" "$cfgfile" \
16189 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16190 test 0 -eq $? || _lt_function_replace_fail=:
16191
16192
16193 sed -e '/^func_basename ()$/,/^} # func_basename /c\
16194 func_basename ()\
16195 {\
16196 \ func_basename_result="${1##*/}"\
16197 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16198 && mv -f "$cfgfile.tmp" "$cfgfile" \
16199 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16200 test 0 -eq $? || _lt_function_replace_fail=:
16201
16202
16203 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16204 func_dirname_and_basename ()\
16205 {\
16206 \ case ${1} in\
16207 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16208 \ * ) func_dirname_result="${3}" ;;\
16209 \ esac\
16210 \ func_basename_result="${1##*/}"\
16211 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16212 && mv -f "$cfgfile.tmp" "$cfgfile" \
16213 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16214 test 0 -eq $? || _lt_function_replace_fail=:
16215
16216
16217 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16218 func_stripname ()\
16219 {\
16220 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16221 \ # positional parameters, so assign one to ordinary parameter first.\
16222 \ func_stripname_result=${3}\
16223 \ func_stripname_result=${func_stripname_result#"${1}"}\
16224 \ func_stripname_result=${func_stripname_result%"${2}"}\
16225 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16226 && mv -f "$cfgfile.tmp" "$cfgfile" \
16227 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16228 test 0 -eq $? || _lt_function_replace_fail=:
16229
16230
16231 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16232 func_split_long_opt ()\
16233 {\
16234 \ func_split_long_opt_name=${1%%=*}\
16235 \ func_split_long_opt_arg=${1#*=}\
16236 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16237 && mv -f "$cfgfile.tmp" "$cfgfile" \
16238 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16239 test 0 -eq $? || _lt_function_replace_fail=:
16240
16241
16242 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16243 func_split_short_opt ()\
16244 {\
16245 \ func_split_short_opt_arg=${1#??}\
16246 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16247 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16248 && mv -f "$cfgfile.tmp" "$cfgfile" \
16249 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16250 test 0 -eq $? || _lt_function_replace_fail=:
16251
16252
16253 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
16254 func_lo2o ()\
16255 {\
16256 \ case ${1} in\
16257 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16258 \ *) func_lo2o_result=${1} ;;\
16259 \ esac\
16260 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16261 && mv -f "$cfgfile.tmp" "$cfgfile" \
16262 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16263 test 0 -eq $? || _lt_function_replace_fail=:
16264
16265
16266 sed -e '/^func_xform ()$/,/^} # func_xform /c\
16267 func_xform ()\
16268 {\
16269 func_xform_result=${1%.*}.lo\
16270 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16271 && mv -f "$cfgfile.tmp" "$cfgfile" \
16272 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16273 test 0 -eq $? || _lt_function_replace_fail=:
16274
16275
16276 sed -e '/^func_arith ()$/,/^} # func_arith /c\
16277 func_arith ()\
16278 {\
16279 func_arith_result=$(( $* ))\
16280 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16281 && mv -f "$cfgfile.tmp" "$cfgfile" \
16282 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16283 test 0 -eq $? || _lt_function_replace_fail=:
16284
16285
16286 sed -e '/^func_len ()$/,/^} # func_len /c\
16287 func_len ()\
16288 {\
16289 func_len_result=${#1}\
16290 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16291 && mv -f "$cfgfile.tmp" "$cfgfile" \
16292 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16293 test 0 -eq $? || _lt_function_replace_fail=:
16294
16295 fi
16296
16297 if test x"$lt_shell_append" = xyes; then
16298 sed -e '/^func_append ()$/,/^} # func_append /c\
16299 func_append ()\
16300 {\
16301 eval "${1}+=\\${2}"\
16302 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16303 && mv -f "$cfgfile.tmp" "$cfgfile" \
16304 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16305 test 0 -eq $? || _lt_function_replace_fail=:
16306
16307
16308 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16309 func_append_quoted ()\
16310 {\
16311 \ func_quote_for_eval "${2}"\
16312 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16313 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16314 && mv -f "$cfgfile.tmp" "$cfgfile" \
16315 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16316 test 0 -eq $? || _lt_function_replace_fail=:
16317
16318
16319 # Save a `func_append' function call where possible by direct use of '+='
16320 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
16321 && mv -f "$cfgfile.tmp" "$cfgfile" \
16322 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16323 test 0 -eq $? || _lt_function_replace_fail=:
16324 else
16325 # Save a `func_append' function call even when '+=' is not available
16326 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
16327 && mv -f "$cfgfile.tmp" "$cfgfile" \
16328 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16329 test 0 -eq $? || _lt_function_replace_fail=:
16330 fi
16331
16332 if test x"$_lt_function_replace_fail" = x":"; then
16333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
16334 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
16335 fi
16336
16337
16338 mv -f "$cfgfile" "$ofile" ||
16339 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16340 chmod +x "$ofile"
16341
16342 ;;
16343
16344 esac
16345 done # for ac_tag
16346
16347
16348 as_fn_exit 0
16349 _ACEOF
16350 ac_clean_files=$ac_clean_files_save
16351
16352 test $ac_write_fail = 0 ||
16353 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16354
16355
16356 # configure is writing to config.log, and then calls config.status.
16357 # config.status does its own redirection, appending to config.log.
16358 # Unfortunately, on DOS this fails, as config.log is still kept open
16359 # by configure, so config.status won't be able to write to it; its
16360 # output is simply discarded. So we exec the FD to /dev/null,
16361 # effectively closing config.log, so it can be properly (re)opened and
16362 # appended to by config.status. When coming back to configure, we
16363 # need to make the FD available again.
16364 if test "$no_create" != yes; then
16365 ac_cs_success=:
16366 ac_config_status_args=
16367 test "$silent" = yes &&
16368 ac_config_status_args="$ac_config_status_args --quiet"
16369 exec 5>/dev/null
16370 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16371 exec 5>>config.log
16372 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16373 # would make configure fail if this is the last instruction.
16374 $ac_cs_success || as_fn_exit 1
16375 fi
16376 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16378 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16379 fi
16380
16381