configure revision 1.1.1.2.4.1 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for mpc 1.1.0.
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.1.0'
594 PACKAGE_STRING='mpc 1.1.0'
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 GITVERSION
639 HASGIT
640 GCC_VERSION
641 AS
642 MPC_LDFLAGS
643 MPC_LOG_H
644 LIBOBJS
645 CPP
646 LT_SYS_LIBRARY_PATH
647 OTOOL64
648 OTOOL
649 LIPO
650 NMEDIT
651 DSYMUTIL
652 MANIFEST_TOOL
653 RANLIB
654 DLLTOOL
655 OBJDUMP
656 LN_S
657 NM
658 ac_ct_DUMPBIN
659 DUMPBIN
660 LD
661 FGREP
662 LIBTOOL
663 ac_ct_AR
664 AR
665 am__fastdepCC_FALSE
666 am__fastdepCC_TRUE
667 CCDEPMODE
668 am__nodep
669 AMDEPBACKSLASH
670 AMDEP_FALSE
671 AMDEP_TRUE
672 am__quote
673 am__include
674 DEPDIR
675 OBJEXT
676 EXEEXT
677 ac_ct_CC
678 CPPFLAGS
679 LDFLAGS
680 CFLAGS
681 CC
682 SED
683 EGREP
684 GREP
685 VALGRIND_OPTS
686 VALGRIND
687 host_os
688 host_vendor
689 host_cpu
690 host
691 build_os
692 build_vendor
693 build_cpu
694 build
695 MAINT
696 MAINTAINER_MODE_FALSE
697 MAINTAINER_MODE_TRUE
698 AM_BACKSLASH
699 AM_DEFAULT_VERBOSITY
700 AM_DEFAULT_V
701 AM_V
702 am__untar
703 am__tar
704 AMTAR
705 am__leading_dot
706 SET_MAKE
707 AWK
708 mkdir_p
709 MKDIR_P
710 INSTALL_STRIP_PROGRAM
711 STRIP
712 install_sh
713 MAKEINFO
714 AUTOHEADER
715 AUTOMAKE
716 AUTOCONF
717 ACLOCAL
718 VERSION
719 PACKAGE
720 CYGPATH_W
721 am__isrc
722 INSTALL_DATA
723 INSTALL_SCRIPT
724 INSTALL_PROGRAM
725 target_alias
726 host_alias
727 build_alias
728 LIBS
729 ECHO_T
730 ECHO_N
731 ECHO_C
732 DEFS
733 mandir
734 localedir
735 libdir
736 psdir
737 pdfdir
738 dvidir
739 htmldir
740 infodir
741 docdir
742 oldincludedir
743 includedir
744 localstatedir
745 sharedstatedir
746 sysconfdir
747 datadir
748 datarootdir
749 libexecdir
750 sbindir
751 bindir
752 program_transform_name
753 prefix
754 exec_prefix
755 PACKAGE_URL
756 PACKAGE_BUGREPORT
757 PACKAGE_STRING
758 PACKAGE_VERSION
759 PACKAGE_TARNAME
760 PACKAGE_NAME
761 PATH_SEPARATOR
762 SHELL'
763 ac_subst_files=''
764 ac_user_opts='
765 enable_option_checking
766 enable_silent_rules
767 enable_maintainer_mode
768 with_mpfr_include
769 with_mpfr_lib
770 with_mpfr
771 with_gmp_include
772 with_gmp_lib
773 with_gmp
774 enable_logging
775 enable_valgrind_tests
776 enable_dependency_tracking
777 enable_shared
778 enable_static
779 with_pic
780 enable_fast_install
781 with_aix_soname
782 with_gnu_ld
783 with_sysroot
784 enable_libtool_lock
785 '
786 ac_precious_vars='build_alias
787 host_alias
788 target_alias
789 CC
790 CFLAGS
791 LDFLAGS
792 LIBS
793 CPPFLAGS
794 LT_SYS_LIBRARY_PATH
795 CPP'
796
797
798 # Initialize some variables set by options.
799 ac_init_help=
800 ac_init_version=false
801 ac_unrecognized_opts=
802 ac_unrecognized_sep=
803 # The variables have the same names as the options, with
804 # dashes changed to underlines.
805 cache_file=/dev/null
806 exec_prefix=NONE
807 no_create=
808 no_recursion=
809 prefix=NONE
810 program_prefix=NONE
811 program_suffix=NONE
812 program_transform_name=s,x,x,
813 silent=
814 site=
815 srcdir=
816 verbose=
817 x_includes=NONE
818 x_libraries=NONE
819
820 # Installation directory options.
821 # These are left unexpanded so users can "make install exec_prefix=/foo"
822 # and all the variables that are supposed to be based on exec_prefix
823 # by default will actually change.
824 # Use braces instead of parens because sh, perl, etc. also accept them.
825 # (The list follows the same order as the GNU Coding Standards.)
826 bindir='${exec_prefix}/bin'
827 sbindir='${exec_prefix}/sbin'
828 libexecdir='${exec_prefix}/libexec'
829 datarootdir='${prefix}/share'
830 datadir='${datarootdir}'
831 sysconfdir='${prefix}/etc'
832 sharedstatedir='${prefix}/com'
833 localstatedir='${prefix}/var'
834 includedir='${prefix}/include'
835 oldincludedir='/usr/include'
836 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
837 infodir='${datarootdir}/info'
838 htmldir='${docdir}'
839 dvidir='${docdir}'
840 pdfdir='${docdir}'
841 psdir='${docdir}'
842 libdir='${exec_prefix}/lib'
843 localedir='${datarootdir}/locale'
844 mandir='${datarootdir}/man'
845
846 ac_prev=
847 ac_dashdash=
848 for ac_option
849 do
850 # If the previous option needs an argument, assign it.
851 if test -n "$ac_prev"; then
852 eval $ac_prev=\$ac_option
853 ac_prev=
854 continue
855 fi
856
857 case $ac_option in
858 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
859 *=) ac_optarg= ;;
860 *) ac_optarg=yes ;;
861 esac
862
863 # Accept the important Cygnus configure options, so we can diagnose typos.
864
865 case $ac_dashdash$ac_option in
866 --)
867 ac_dashdash=yes ;;
868
869 -bindir | --bindir | --bindi | --bind | --bin | --bi)
870 ac_prev=bindir ;;
871 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
872 bindir=$ac_optarg ;;
873
874 -build | --build | --buil | --bui | --bu)
875 ac_prev=build_alias ;;
876 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
877 build_alias=$ac_optarg ;;
878
879 -cache-file | --cache-file | --cache-fil | --cache-fi \
880 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
881 ac_prev=cache_file ;;
882 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
883 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
884 cache_file=$ac_optarg ;;
885
886 --config-cache | -C)
887 cache_file=config.cache ;;
888
889 -datadir | --datadir | --datadi | --datad)
890 ac_prev=datadir ;;
891 -datadir=* | --datadir=* | --datadi=* | --datad=*)
892 datadir=$ac_optarg ;;
893
894 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
895 | --dataroo | --dataro | --datar)
896 ac_prev=datarootdir ;;
897 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
898 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
899 datarootdir=$ac_optarg ;;
900
901 -disable-* | --disable-*)
902 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
903 # Reject names that are not valid shell variable names.
904 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
905 as_fn_error $? "invalid feature name: $ac_useropt"
906 ac_useropt_orig=$ac_useropt
907 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
908 case $ac_user_opts in
909 *"
910 "enable_$ac_useropt"
911 "*) ;;
912 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
913 ac_unrecognized_sep=', ';;
914 esac
915 eval enable_$ac_useropt=no ;;
916
917 -docdir | --docdir | --docdi | --doc | --do)
918 ac_prev=docdir ;;
919 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
920 docdir=$ac_optarg ;;
921
922 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
923 ac_prev=dvidir ;;
924 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
925 dvidir=$ac_optarg ;;
926
927 -enable-* | --enable-*)
928 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
929 # Reject names that are not valid shell variable names.
930 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
931 as_fn_error $? "invalid feature name: $ac_useropt"
932 ac_useropt_orig=$ac_useropt
933 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
934 case $ac_user_opts in
935 *"
936 "enable_$ac_useropt"
937 "*) ;;
938 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
939 ac_unrecognized_sep=', ';;
940 esac
941 eval enable_$ac_useropt=\$ac_optarg ;;
942
943 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
944 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
945 | --exec | --exe | --ex)
946 ac_prev=exec_prefix ;;
947 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
948 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
949 | --exec=* | --exe=* | --ex=*)
950 exec_prefix=$ac_optarg ;;
951
952 -gas | --gas | --ga | --g)
953 # Obsolete; use --with-gas.
954 with_gas=yes ;;
955
956 -help | --help | --hel | --he | -h)
957 ac_init_help=long ;;
958 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
959 ac_init_help=recursive ;;
960 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
961 ac_init_help=short ;;
962
963 -host | --host | --hos | --ho)
964 ac_prev=host_alias ;;
965 -host=* | --host=* | --hos=* | --ho=*)
966 host_alias=$ac_optarg ;;
967
968 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
969 ac_prev=htmldir ;;
970 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
971 | --ht=*)
972 htmldir=$ac_optarg ;;
973
974 -includedir | --includedir | --includedi | --included | --include \
975 | --includ | --inclu | --incl | --inc)
976 ac_prev=includedir ;;
977 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
978 | --includ=* | --inclu=* | --incl=* | --inc=*)
979 includedir=$ac_optarg ;;
980
981 -infodir | --infodir | --infodi | --infod | --info | --inf)
982 ac_prev=infodir ;;
983 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
984 infodir=$ac_optarg ;;
985
986 -libdir | --libdir | --libdi | --libd)
987 ac_prev=libdir ;;
988 -libdir=* | --libdir=* | --libdi=* | --libd=*)
989 libdir=$ac_optarg ;;
990
991 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
992 | --libexe | --libex | --libe)
993 ac_prev=libexecdir ;;
994 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
995 | --libexe=* | --libex=* | --libe=*)
996 libexecdir=$ac_optarg ;;
997
998 -localedir | --localedir | --localedi | --localed | --locale)
999 ac_prev=localedir ;;
1000 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1001 localedir=$ac_optarg ;;
1002
1003 -localstatedir | --localstatedir | --localstatedi | --localstated \
1004 | --localstate | --localstat | --localsta | --localst | --locals)
1005 ac_prev=localstatedir ;;
1006 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1007 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1008 localstatedir=$ac_optarg ;;
1009
1010 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1011 ac_prev=mandir ;;
1012 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1013 mandir=$ac_optarg ;;
1014
1015 -nfp | --nfp | --nf)
1016 # Obsolete; use --without-fp.
1017 with_fp=no ;;
1018
1019 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1020 | --no-cr | --no-c | -n)
1021 no_create=yes ;;
1022
1023 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1024 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1025 no_recursion=yes ;;
1026
1027 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1028 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1029 | --oldin | --oldi | --old | --ol | --o)
1030 ac_prev=oldincludedir ;;
1031 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1032 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1033 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1034 oldincludedir=$ac_optarg ;;
1035
1036 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1037 ac_prev=prefix ;;
1038 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1039 prefix=$ac_optarg ;;
1040
1041 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1042 | --program-pre | --program-pr | --program-p)
1043 ac_prev=program_prefix ;;
1044 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1045 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1046 program_prefix=$ac_optarg ;;
1047
1048 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1049 | --program-suf | --program-su | --program-s)
1050 ac_prev=program_suffix ;;
1051 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1052 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1053 program_suffix=$ac_optarg ;;
1054
1055 -program-transform-name | --program-transform-name \
1056 | --program-transform-nam | --program-transform-na \
1057 | --program-transform-n | --program-transform- \
1058 | --program-transform | --program-transfor \
1059 | --program-transfo | --program-transf \
1060 | --program-trans | --program-tran \
1061 | --progr-tra | --program-tr | --program-t)
1062 ac_prev=program_transform_name ;;
1063 -program-transform-name=* | --program-transform-name=* \
1064 | --program-transform-nam=* | --program-transform-na=* \
1065 | --program-transform-n=* | --program-transform-=* \
1066 | --program-transform=* | --program-transfor=* \
1067 | --program-transfo=* | --program-transf=* \
1068 | --program-trans=* | --program-tran=* \
1069 | --progr-tra=* | --program-tr=* | --program-t=*)
1070 program_transform_name=$ac_optarg ;;
1071
1072 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1073 ac_prev=pdfdir ;;
1074 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1075 pdfdir=$ac_optarg ;;
1076
1077 -psdir | --psdir | --psdi | --psd | --ps)
1078 ac_prev=psdir ;;
1079 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1080 psdir=$ac_optarg ;;
1081
1082 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1083 | -silent | --silent | --silen | --sile | --sil)
1084 silent=yes ;;
1085
1086 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1087 ac_prev=sbindir ;;
1088 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1089 | --sbi=* | --sb=*)
1090 sbindir=$ac_optarg ;;
1091
1092 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1093 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1094 | --sharedst | --shareds | --shared | --share | --shar \
1095 | --sha | --sh)
1096 ac_prev=sharedstatedir ;;
1097 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1098 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1099 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1100 | --sha=* | --sh=*)
1101 sharedstatedir=$ac_optarg ;;
1102
1103 -site | --site | --sit)
1104 ac_prev=site ;;
1105 -site=* | --site=* | --sit=*)
1106 site=$ac_optarg ;;
1107
1108 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1109 ac_prev=srcdir ;;
1110 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1111 srcdir=$ac_optarg ;;
1112
1113 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1114 | --syscon | --sysco | --sysc | --sys | --sy)
1115 ac_prev=sysconfdir ;;
1116 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1117 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1118 sysconfdir=$ac_optarg ;;
1119
1120 -target | --target | --targe | --targ | --tar | --ta | --t)
1121 ac_prev=target_alias ;;
1122 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1123 target_alias=$ac_optarg ;;
1124
1125 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1126 verbose=yes ;;
1127
1128 -version | --version | --versio | --versi | --vers | -V)
1129 ac_init_version=: ;;
1130
1131 -with-* | --with-*)
1132 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1133 # Reject names that are not valid shell variable names.
1134 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1135 as_fn_error $? "invalid package name: $ac_useropt"
1136 ac_useropt_orig=$ac_useropt
1137 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138 case $ac_user_opts in
1139 *"
1140 "with_$ac_useropt"
1141 "*) ;;
1142 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1143 ac_unrecognized_sep=', ';;
1144 esac
1145 eval with_$ac_useropt=\$ac_optarg ;;
1146
1147 -without-* | --without-*)
1148 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1149 # Reject names that are not valid shell variable names.
1150 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1151 as_fn_error $? "invalid package name: $ac_useropt"
1152 ac_useropt_orig=$ac_useropt
1153 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1154 case $ac_user_opts in
1155 *"
1156 "with_$ac_useropt"
1157 "*) ;;
1158 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1159 ac_unrecognized_sep=', ';;
1160 esac
1161 eval with_$ac_useropt=no ;;
1162
1163 --x)
1164 # Obsolete; use --with-x.
1165 with_x=yes ;;
1166
1167 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1168 | --x-incl | --x-inc | --x-in | --x-i)
1169 ac_prev=x_includes ;;
1170 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1171 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1172 x_includes=$ac_optarg ;;
1173
1174 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1175 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1176 ac_prev=x_libraries ;;
1177 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1178 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1179 x_libraries=$ac_optarg ;;
1180
1181 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1182 Try \`$0 --help' for more information"
1183 ;;
1184
1185 *=*)
1186 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1187 # Reject names that are not valid shell variable names.
1188 case $ac_envvar in #(
1189 '' | [0-9]* | *[!_$as_cr_alnum]* )
1190 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1191 esac
1192 eval $ac_envvar=\$ac_optarg
1193 export $ac_envvar ;;
1194
1195 *)
1196 # FIXME: should be removed in autoconf 3.0.
1197 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1198 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1199 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1200 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1201 ;;
1202
1203 esac
1204 done
1205
1206 if test -n "$ac_prev"; then
1207 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1208 as_fn_error $? "missing argument to $ac_option"
1209 fi
1210
1211 if test -n "$ac_unrecognized_opts"; then
1212 case $enable_option_checking in
1213 no) ;;
1214 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1215 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1216 esac
1217 fi
1218
1219 # Check all directory arguments for consistency.
1220 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1221 datadir sysconfdir sharedstatedir localstatedir includedir \
1222 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1223 libdir localedir mandir
1224 do
1225 eval ac_val=\$$ac_var
1226 # Remove trailing slashes.
1227 case $ac_val in
1228 */ )
1229 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1230 eval $ac_var=\$ac_val;;
1231 esac
1232 # Be sure to have absolute directory names.
1233 case $ac_val in
1234 [\\/$]* | ?:[\\/]* ) continue;;
1235 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1236 esac
1237 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1238 done
1239
1240 # There might be people who depend on the old broken behavior: `$host'
1241 # used to hold the argument of --host etc.
1242 # FIXME: To remove some day.
1243 build=$build_alias
1244 host=$host_alias
1245 target=$target_alias
1246
1247 # FIXME: To remove some day.
1248 if test "x$host_alias" != x; then
1249 if test "x$build_alias" = x; then
1250 cross_compiling=maybe
1251 elif test "x$build_alias" != "x$host_alias"; then
1252 cross_compiling=yes
1253 fi
1254 fi
1255
1256 ac_tool_prefix=
1257 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1258
1259 test "$silent" = yes && exec 6>/dev/null
1260
1261
1262 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1263 ac_ls_di=`ls -di .` &&
1264 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1265 as_fn_error $? "working directory cannot be determined"
1266 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1267 as_fn_error $? "pwd does not report name of working directory"
1268
1269
1270 # Find the source files, if location was not specified.
1271 if test -z "$srcdir"; then
1272 ac_srcdir_defaulted=yes
1273 # Try the directory containing this script, then the parent directory.
1274 ac_confdir=`$as_dirname -- "$as_myself" ||
1275 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1276 X"$as_myself" : 'X\(//\)[^/]' \| \
1277 X"$as_myself" : 'X\(//\)$' \| \
1278 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1279 $as_echo X"$as_myself" |
1280 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1281 s//\1/
1282 q
1283 }
1284 /^X\(\/\/\)[^/].*/{
1285 s//\1/
1286 q
1287 }
1288 /^X\(\/\/\)$/{
1289 s//\1/
1290 q
1291 }
1292 /^X\(\/\).*/{
1293 s//\1/
1294 q
1295 }
1296 s/.*/./; q'`
1297 srcdir=$ac_confdir
1298 if test ! -r "$srcdir/$ac_unique_file"; then
1299 srcdir=..
1300 fi
1301 else
1302 ac_srcdir_defaulted=no
1303 fi
1304 if test ! -r "$srcdir/$ac_unique_file"; then
1305 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1306 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1307 fi
1308 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1309 ac_abs_confdir=`(
1310 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1311 pwd)`
1312 # When building in place, set srcdir=.
1313 if test "$ac_abs_confdir" = "$ac_pwd"; then
1314 srcdir=.
1315 fi
1316 # Remove unnecessary trailing slashes from srcdir.
1317 # Double slashes in file names in object file debugging info
1318 # mess up M-x gdb in Emacs.
1319 case $srcdir in
1320 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1321 esac
1322 for ac_var in $ac_precious_vars; do
1323 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1324 eval ac_env_${ac_var}_value=\$${ac_var}
1325 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1326 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1327 done
1328
1329 #
1330 # Report the --help message.
1331 #
1332 if test "$ac_init_help" = "long"; then
1333 # Omit some internal or obsolete options to make the list less imposing.
1334 # This message is too long to be a string in the A/UX 3.1 sh.
1335 cat <<_ACEOF
1336 \`configure' configures mpc 1.1.0 to adapt to many kinds of systems.
1337
1338 Usage: $0 [OPTION]... [VAR=VALUE]...
1339
1340 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1341 VAR=VALUE. See below for descriptions of some of the useful variables.
1342
1343 Defaults for the options are specified in brackets.
1344
1345 Configuration:
1346 -h, --help display this help and exit
1347 --help=short display options specific to this package
1348 --help=recursive display the short help of all the included packages
1349 -V, --version display version information and exit
1350 -q, --quiet, --silent do not print \`checking ...' messages
1351 --cache-file=FILE cache test results in FILE [disabled]
1352 -C, --config-cache alias for \`--cache-file=config.cache'
1353 -n, --no-create do not create output files
1354 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1355
1356 Installation directories:
1357 --prefix=PREFIX install architecture-independent files in PREFIX
1358 [$ac_default_prefix]
1359 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1360 [PREFIX]
1361
1362 By default, \`make install' will install all the files in
1363 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1364 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1365 for instance \`--prefix=\$HOME'.
1366
1367 For better control, use the options below.
1368
1369 Fine tuning of the installation directories:
1370 --bindir=DIR user executables [EPREFIX/bin]
1371 --sbindir=DIR system admin executables [EPREFIX/sbin]
1372 --libexecdir=DIR program executables [EPREFIX/libexec]
1373 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1374 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1375 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1376 --libdir=DIR object code libraries [EPREFIX/lib]
1377 --includedir=DIR C header files [PREFIX/include]
1378 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1379 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1380 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1381 --infodir=DIR info documentation [DATAROOTDIR/info]
1382 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1383 --mandir=DIR man documentation [DATAROOTDIR/man]
1384 --docdir=DIR documentation root [DATAROOTDIR/doc/mpc]
1385 --htmldir=DIR html documentation [DOCDIR]
1386 --dvidir=DIR dvi documentation [DOCDIR]
1387 --pdfdir=DIR pdf documentation [DOCDIR]
1388 --psdir=DIR ps documentation [DOCDIR]
1389 _ACEOF
1390
1391 cat <<\_ACEOF
1392
1393 Program names:
1394 --program-prefix=PREFIX prepend PREFIX to installed program names
1395 --program-suffix=SUFFIX append SUFFIX to installed program names
1396 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1397
1398 System types:
1399 --build=BUILD configure for building on BUILD [guessed]
1400 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1401 _ACEOF
1402 fi
1403
1404 if test -n "$ac_init_help"; then
1405 case $ac_init_help in
1406 short | recursive ) echo "Configuration of mpc 1.1.0:";;
1407 esac
1408 cat <<\_ACEOF
1409
1410 Optional Features:
1411 --disable-option-checking ignore unrecognized --enable/--with options
1412 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1413 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1414 --enable-silent-rules less verbose build output (undo: "make V=1")
1415 --disable-silent-rules verbose build output (undo: "make V=0")
1416 --enable-maintainer-mode
1417 enable make rules and dependencies not useful (and
1418 sometimes confusing) to the casual installer
1419 --enable-logging enable logging of function calls to stderr (default
1420 = no)
1421 --enable-valgrind-tests run checks through valgrind (default = no)
1422 --enable-dependency-tracking
1423 do not reject slow dependency extractors
1424 --disable-dependency-tracking
1425 speeds up one-time build
1426 --enable-shared[=PKGS] build shared libraries [default=yes]
1427 --enable-static[=PKGS] build static libraries [default=yes]
1428 --enable-fast-install[=PKGS]
1429 optimize for fast installation [default=yes]
1430 --disable-libtool-lock avoid locking (might break parallel builds)
1431
1432 Optional Packages:
1433 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1434 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1435 --with-mpfr-include=DIR MPFR include directory
1436 --with-mpfr-lib=DIR MPFR lib directory
1437 --with-mpfr=DIR MPFR install directory
1438 --with-gmp-include=DIR GMP include directory
1439 --with-gmp-lib=DIR GMP lib directory
1440 --with-gmp=DIR GMP install directory
1441 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1442 both]
1443 --with-aix-soname=aix|svr4|both
1444 shared library versioning (aka "SONAME") variant to
1445 provide on AIX, [default=aix].
1446 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1447 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1448 compiler's sysroot if not specified).
1449
1450 Some influential environment variables:
1451 CC C compiler command
1452 CFLAGS C compiler flags
1453 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1454 nonstandard directory <lib dir>
1455 LIBS libraries to pass to the linker, e.g. -l<library>
1456 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1457 you have headers in a nonstandard directory <include dir>
1458 LT_SYS_LIBRARY_PATH
1459 User-defined run-time library search path.
1460 CPP C preprocessor
1461
1462 Use these variables to override the choices made by `configure' or to help
1463 it to find libraries and programs with nonstandard names/locations.
1464
1465 Report bugs to <mpc-discuss (at] lists.gforge.inria.fr>.
1466 _ACEOF
1467 ac_status=$?
1468 fi
1469
1470 if test "$ac_init_help" = "recursive"; then
1471 # If there are subdirs, report their specific --help.
1472 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1473 test -d "$ac_dir" ||
1474 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1475 continue
1476 ac_builddir=.
1477
1478 case "$ac_dir" in
1479 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1480 *)
1481 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1482 # A ".." for each directory in $ac_dir_suffix.
1483 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1484 case $ac_top_builddir_sub in
1485 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1487 esac ;;
1488 esac
1489 ac_abs_top_builddir=$ac_pwd
1490 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1491 # for backward compatibility:
1492 ac_top_builddir=$ac_top_build_prefix
1493
1494 case $srcdir in
1495 .) # We are building in place.
1496 ac_srcdir=.
1497 ac_top_srcdir=$ac_top_builddir_sub
1498 ac_abs_top_srcdir=$ac_pwd ;;
1499 [\\/]* | ?:[\\/]* ) # Absolute name.
1500 ac_srcdir=$srcdir$ac_dir_suffix;
1501 ac_top_srcdir=$srcdir
1502 ac_abs_top_srcdir=$srcdir ;;
1503 *) # Relative name.
1504 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1505 ac_top_srcdir=$ac_top_build_prefix$srcdir
1506 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1507 esac
1508 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1509
1510 cd "$ac_dir" || { ac_status=$?; continue; }
1511 # Check for guested configure.
1512 if test -f "$ac_srcdir/configure.gnu"; then
1513 echo &&
1514 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1515 elif test -f "$ac_srcdir/configure"; then
1516 echo &&
1517 $SHELL "$ac_srcdir/configure" --help=recursive
1518 else
1519 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1520 fi || ac_status=$?
1521 cd "$ac_pwd" || { ac_status=$?; break; }
1522 done
1523 fi
1524
1525 test -n "$ac_init_help" && exit $ac_status
1526 if $ac_init_version; then
1527 cat <<\_ACEOF
1528 mpc configure 1.1.0
1529 generated by GNU Autoconf 2.69
1530
1531 Copyright (C) 2012 Free Software Foundation, Inc.
1532 This configure script is free software; the Free Software Foundation
1533 gives unlimited permission to copy, distribute and modify it.
1534 _ACEOF
1535 exit
1536 fi
1537
1538 ## ------------------------ ##
1539 ## Autoconf initialization. ##
1540 ## ------------------------ ##
1541
1542 # ac_fn_c_try_compile LINENO
1543 # --------------------------
1544 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1545 ac_fn_c_try_compile ()
1546 {
1547 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1548 rm -f conftest.$ac_objext
1549 if { { ac_try="$ac_compile"
1550 case "(($ac_try" in
1551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1552 *) ac_try_echo=$ac_try;;
1553 esac
1554 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1555 $as_echo "$ac_try_echo"; } >&5
1556 (eval "$ac_compile") 2>conftest.err
1557 ac_status=$?
1558 if test -s conftest.err; then
1559 grep -v '^ *+' conftest.err >conftest.er1
1560 cat conftest.er1 >&5
1561 mv -f conftest.er1 conftest.err
1562 fi
1563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1564 test $ac_status = 0; } && {
1565 test -z "$ac_c_werror_flag" ||
1566 test ! -s conftest.err
1567 } && test -s conftest.$ac_objext; then :
1568 ac_retval=0
1569 else
1570 $as_echo "$as_me: failed program was:" >&5
1571 sed 's/^/| /' conftest.$ac_ext >&5
1572
1573 ac_retval=1
1574 fi
1575 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1576 as_fn_set_status $ac_retval
1577
1578 } # ac_fn_c_try_compile
1579
1580 # ac_fn_c_try_link LINENO
1581 # -----------------------
1582 # Try to link conftest.$ac_ext, and return whether this succeeded.
1583 ac_fn_c_try_link ()
1584 {
1585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1586 rm -f conftest.$ac_objext conftest$ac_exeext
1587 if { { ac_try="$ac_link"
1588 case "(($ac_try" in
1589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1590 *) ac_try_echo=$ac_try;;
1591 esac
1592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1593 $as_echo "$ac_try_echo"; } >&5
1594 (eval "$ac_link") 2>conftest.err
1595 ac_status=$?
1596 if test -s conftest.err; then
1597 grep -v '^ *+' conftest.err >conftest.er1
1598 cat conftest.er1 >&5
1599 mv -f conftest.er1 conftest.err
1600 fi
1601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1602 test $ac_status = 0; } && {
1603 test -z "$ac_c_werror_flag" ||
1604 test ! -s conftest.err
1605 } && test -s conftest$ac_exeext && {
1606 test "$cross_compiling" = yes ||
1607 test -x conftest$ac_exeext
1608 }; then :
1609 ac_retval=0
1610 else
1611 $as_echo "$as_me: failed program was:" >&5
1612 sed 's/^/| /' conftest.$ac_ext >&5
1613
1614 ac_retval=1
1615 fi
1616 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1617 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1618 # interfere with the next link command; also delete a directory that is
1619 # left behind by Apple's compiler. We do this before executing the actions.
1620 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1621 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1622 as_fn_set_status $ac_retval
1623
1624 } # ac_fn_c_try_link
1625
1626 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1627 # -------------------------------------------------------
1628 # Tests whether HEADER exists and can be compiled using the include files in
1629 # INCLUDES, setting the cache variable VAR accordingly.
1630 ac_fn_c_check_header_compile ()
1631 {
1632 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1634 $as_echo_n "checking for $2... " >&6; }
1635 if eval \${$3+:} false; then :
1636 $as_echo_n "(cached) " >&6
1637 else
1638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1639 /* end confdefs.h. */
1640 $4
1641 #include <$2>
1642 _ACEOF
1643 if ac_fn_c_try_compile "$LINENO"; then :
1644 eval "$3=yes"
1645 else
1646 eval "$3=no"
1647 fi
1648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1649 fi
1650 eval ac_res=\$$3
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1652 $as_echo "$ac_res" >&6; }
1653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1654
1655 } # ac_fn_c_check_header_compile
1656
1657 # ac_fn_c_try_cpp LINENO
1658 # ----------------------
1659 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1660 ac_fn_c_try_cpp ()
1661 {
1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663 if { { ac_try="$ac_cpp conftest.$ac_ext"
1664 case "(($ac_try" in
1665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666 *) ac_try_echo=$ac_try;;
1667 esac
1668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669 $as_echo "$ac_try_echo"; } >&5
1670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1671 ac_status=$?
1672 if test -s conftest.err; then
1673 grep -v '^ *+' conftest.err >conftest.er1
1674 cat conftest.er1 >&5
1675 mv -f conftest.er1 conftest.err
1676 fi
1677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678 test $ac_status = 0; } > conftest.i && {
1679 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1680 test ! -s conftest.err
1681 }; then :
1682 ac_retval=0
1683 else
1684 $as_echo "$as_me: failed program was:" >&5
1685 sed 's/^/| /' conftest.$ac_ext >&5
1686
1687 ac_retval=1
1688 fi
1689 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1690 as_fn_set_status $ac_retval
1691
1692 } # ac_fn_c_try_cpp
1693
1694 # ac_fn_c_try_run LINENO
1695 # ----------------------
1696 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1697 # that executables *can* be run.
1698 ac_fn_c_try_run ()
1699 {
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 if { { ac_try="$ac_link"
1702 case "(($ac_try" in
1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704 *) ac_try_echo=$ac_try;;
1705 esac
1706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707 $as_echo "$ac_try_echo"; } >&5
1708 (eval "$ac_link") 2>&5
1709 ac_status=$?
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1712 { { case "(($ac_try" in
1713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714 *) ac_try_echo=$ac_try;;
1715 esac
1716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717 $as_echo "$ac_try_echo"; } >&5
1718 (eval "$ac_try") 2>&5
1719 ac_status=$?
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; }; }; then :
1722 ac_retval=0
1723 else
1724 $as_echo "$as_me: program exited with status $ac_status" >&5
1725 $as_echo "$as_me: failed program was:" >&5
1726 sed 's/^/| /' conftest.$ac_ext >&5
1727
1728 ac_retval=$ac_status
1729 fi
1730 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732 as_fn_set_status $ac_retval
1733
1734 } # ac_fn_c_try_run
1735
1736 # ac_fn_c_check_func LINENO FUNC VAR
1737 # ----------------------------------
1738 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1739 ac_fn_c_check_func ()
1740 {
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1743 $as_echo_n "checking for $2... " >&6; }
1744 if eval \${$3+:} false; then :
1745 $as_echo_n "(cached) " >&6
1746 else
1747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1748 /* end confdefs.h. */
1749 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1751 #define $2 innocuous_$2
1752
1753 /* System header to define __stub macros and hopefully few prototypes,
1754 which can conflict with char $2 (); below.
1755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1756 <limits.h> exists even on freestanding compilers. */
1757
1758 #ifdef __STDC__
1759 # include <limits.h>
1760 #else
1761 # include <assert.h>
1762 #endif
1763
1764 #undef $2
1765
1766 /* Override any GCC internal prototype to avoid an error.
1767 Use char because int might match the return type of a GCC
1768 builtin and then its argument prototype would still apply. */
1769 #ifdef __cplusplus
1770 extern "C"
1771 #endif
1772 char $2 ();
1773 /* The GNU C library defines this for functions which it implements
1774 to always fail with ENOSYS. Some functions are actually named
1775 something starting with __ and the normal name is an alias. */
1776 #if defined __stub_$2 || defined __stub___$2
1777 choke me
1778 #endif
1779
1780 int
1781 main ()
1782 {
1783 return $2 ();
1784 ;
1785 return 0;
1786 }
1787 _ACEOF
1788 if ac_fn_c_try_link "$LINENO"; then :
1789 eval "$3=yes"
1790 else
1791 eval "$3=no"
1792 fi
1793 rm -f core conftest.err conftest.$ac_objext \
1794 conftest$ac_exeext conftest.$ac_ext
1795 fi
1796 eval ac_res=\$$3
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1798 $as_echo "$ac_res" >&6; }
1799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800
1801 } # ac_fn_c_check_func
1802
1803 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1804 # -------------------------------------------------------
1805 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1806 # the include files in INCLUDES and setting the cache variable VAR
1807 # accordingly.
1808 ac_fn_c_check_header_mongrel ()
1809 {
1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811 if eval \${$3+:} false; then :
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1813 $as_echo_n "checking for $2... " >&6; }
1814 if eval \${$3+:} false; then :
1815 $as_echo_n "(cached) " >&6
1816 fi
1817 eval ac_res=\$$3
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1819 $as_echo "$ac_res" >&6; }
1820 else
1821 # Is the header compilable?
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1823 $as_echo_n "checking $2 usability... " >&6; }
1824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1825 /* end confdefs.h. */
1826 $4
1827 #include <$2>
1828 _ACEOF
1829 if ac_fn_c_try_compile "$LINENO"; then :
1830 ac_header_compiler=yes
1831 else
1832 ac_header_compiler=no
1833 fi
1834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1836 $as_echo "$ac_header_compiler" >&6; }
1837
1838 # Is the header present?
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1840 $as_echo_n "checking $2 presence... " >&6; }
1841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842 /* end confdefs.h. */
1843 #include <$2>
1844 _ACEOF
1845 if ac_fn_c_try_cpp "$LINENO"; then :
1846 ac_header_preproc=yes
1847 else
1848 ac_header_preproc=no
1849 fi
1850 rm -f conftest.err conftest.i conftest.$ac_ext
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1852 $as_echo "$ac_header_preproc" >&6; }
1853
1854 # So? What about this header?
1855 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1856 yes:no: )
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1858 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1860 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1861 ;;
1862 no:yes:* )
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1864 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1866 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1868 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1870 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1872 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1873 ( $as_echo "## ------------------------------------------------ ##
1874 ## Report this to mpc-discuss (at] lists.gforge.inria.fr ##
1875 ## ------------------------------------------------ ##"
1876 ) | sed "s/^/$as_me: WARNING: /" >&2
1877 ;;
1878 esac
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1880 $as_echo_n "checking for $2... " >&6; }
1881 if eval \${$3+:} false; then :
1882 $as_echo_n "(cached) " >&6
1883 else
1884 eval "$3=\$ac_header_compiler"
1885 fi
1886 eval ac_res=\$$3
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888 $as_echo "$ac_res" >&6; }
1889 fi
1890 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1891
1892 } # ac_fn_c_check_header_mongrel
1893
1894 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1895 # -------------------------------------------
1896 # Tests whether TYPE exists after having included INCLUDES, setting cache
1897 # variable VAR accordingly.
1898 ac_fn_c_check_type ()
1899 {
1900 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1902 $as_echo_n "checking for $2... " >&6; }
1903 if eval \${$3+:} false; then :
1904 $as_echo_n "(cached) " >&6
1905 else
1906 eval "$3=no"
1907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908 /* end confdefs.h. */
1909 $4
1910 int
1911 main ()
1912 {
1913 if (sizeof ($2))
1914 return 0;
1915 ;
1916 return 0;
1917 }
1918 _ACEOF
1919 if ac_fn_c_try_compile "$LINENO"; then :
1920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921 /* end confdefs.h. */
1922 $4
1923 int
1924 main ()
1925 {
1926 if (sizeof (($2)))
1927 return 0;
1928 ;
1929 return 0;
1930 }
1931 _ACEOF
1932 if ac_fn_c_try_compile "$LINENO"; then :
1933
1934 else
1935 eval "$3=yes"
1936 fi
1937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1938 fi
1939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1940 fi
1941 eval ac_res=\$$3
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1943 $as_echo "$ac_res" >&6; }
1944 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1945
1946 } # ac_fn_c_check_type
1947 cat >config.log <<_ACEOF
1948 This file contains any messages produced by compilers while
1949 running configure, to aid debugging if configure makes a mistake.
1950
1951 It was created by mpc $as_me 1.1.0, which was
1952 generated by GNU Autoconf 2.69. Invocation command line was
1953
1954 $ $0 $@
1955
1956 _ACEOF
1957 exec 5>>config.log
1958 {
1959 cat <<_ASUNAME
1960 ## --------- ##
1961 ## Platform. ##
1962 ## --------- ##
1963
1964 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1965 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1966 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1967 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1968 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1969
1970 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1971 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1972
1973 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1974 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1975 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1976 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1977 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1978 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1979 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1980
1981 _ASUNAME
1982
1983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1984 for as_dir in $PATH
1985 do
1986 IFS=$as_save_IFS
1987 test -z "$as_dir" && as_dir=.
1988 $as_echo "PATH: $as_dir"
1989 done
1990 IFS=$as_save_IFS
1991
1992 } >&5
1993
1994 cat >&5 <<_ACEOF
1995
1996
1997 ## ----------- ##
1998 ## Core tests. ##
1999 ## ----------- ##
2000
2001 _ACEOF
2002
2003
2004 # Keep a trace of the command line.
2005 # Strip out --no-create and --no-recursion so they do not pile up.
2006 # Strip out --silent because we don't want to record it for future runs.
2007 # Also quote any args containing shell meta-characters.
2008 # Make two passes to allow for proper duplicate-argument suppression.
2009 ac_configure_args=
2010 ac_configure_args0=
2011 ac_configure_args1=
2012 ac_must_keep_next=false
2013 for ac_pass in 1 2
2014 do
2015 for ac_arg
2016 do
2017 case $ac_arg in
2018 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2019 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2020 | -silent | --silent | --silen | --sile | --sil)
2021 continue ;;
2022 *\'*)
2023 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2024 esac
2025 case $ac_pass in
2026 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2027 2)
2028 as_fn_append ac_configure_args1 " '$ac_arg'"
2029 if test $ac_must_keep_next = true; then
2030 ac_must_keep_next=false # Got value, back to normal.
2031 else
2032 case $ac_arg in
2033 *=* | --config-cache | -C | -disable-* | --disable-* \
2034 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2035 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2036 | -with-* | --with-* | -without-* | --without-* | --x)
2037 case "$ac_configure_args0 " in
2038 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2039 esac
2040 ;;
2041 -* ) ac_must_keep_next=true ;;
2042 esac
2043 fi
2044 as_fn_append ac_configure_args " '$ac_arg'"
2045 ;;
2046 esac
2047 done
2048 done
2049 { ac_configure_args0=; unset ac_configure_args0;}
2050 { ac_configure_args1=; unset ac_configure_args1;}
2051
2052 # When interrupted or exit'd, cleanup temporary files, and complete
2053 # config.log. We remove comments because anyway the quotes in there
2054 # would cause problems or look ugly.
2055 # WARNING: Use '\'' to represent an apostrophe within the trap.
2056 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2057 trap 'exit_status=$?
2058 # Save into config.log some information that might help in debugging.
2059 {
2060 echo
2061
2062 $as_echo "## ---------------- ##
2063 ## Cache variables. ##
2064 ## ---------------- ##"
2065 echo
2066 # The following way of writing the cache mishandles newlines in values,
2067 (
2068 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2069 eval ac_val=\$$ac_var
2070 case $ac_val in #(
2071 *${as_nl}*)
2072 case $ac_var in #(
2073 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2074 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2075 esac
2076 case $ac_var in #(
2077 _ | IFS | as_nl) ;; #(
2078 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2079 *) { eval $ac_var=; unset $ac_var;} ;;
2080 esac ;;
2081 esac
2082 done
2083 (set) 2>&1 |
2084 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2085 *${as_nl}ac_space=\ *)
2086 sed -n \
2087 "s/'\''/'\''\\\\'\'''\''/g;
2088 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2089 ;; #(
2090 *)
2091 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2092 ;;
2093 esac |
2094 sort
2095 )
2096 echo
2097
2098 $as_echo "## ----------------- ##
2099 ## Output variables. ##
2100 ## ----------------- ##"
2101 echo
2102 for ac_var in $ac_subst_vars
2103 do
2104 eval ac_val=\$$ac_var
2105 case $ac_val in
2106 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2107 esac
2108 $as_echo "$ac_var='\''$ac_val'\''"
2109 done | sort
2110 echo
2111
2112 if test -n "$ac_subst_files"; then
2113 $as_echo "## ------------------- ##
2114 ## File substitutions. ##
2115 ## ------------------- ##"
2116 echo
2117 for ac_var in $ac_subst_files
2118 do
2119 eval ac_val=\$$ac_var
2120 case $ac_val in
2121 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2122 esac
2123 $as_echo "$ac_var='\''$ac_val'\''"
2124 done | sort
2125 echo
2126 fi
2127
2128 if test -s confdefs.h; then
2129 $as_echo "## ----------- ##
2130 ## confdefs.h. ##
2131 ## ----------- ##"
2132 echo
2133 cat confdefs.h
2134 echo
2135 fi
2136 test "$ac_signal" != 0 &&
2137 $as_echo "$as_me: caught signal $ac_signal"
2138 $as_echo "$as_me: exit $exit_status"
2139 } >&5
2140 rm -f core *.core core.conftest.* &&
2141 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2142 exit $exit_status
2143 ' 0
2144 for ac_signal in 1 2 13 15; do
2145 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2146 done
2147 ac_signal=0
2148
2149 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2150 rm -f -r conftest* confdefs.h
2151
2152 $as_echo "/* confdefs.h */" > confdefs.h
2153
2154 # Predefined preprocessor variables.
2155
2156 cat >>confdefs.h <<_ACEOF
2157 #define PACKAGE_NAME "$PACKAGE_NAME"
2158 _ACEOF
2159
2160 cat >>confdefs.h <<_ACEOF
2161 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2162 _ACEOF
2163
2164 cat >>confdefs.h <<_ACEOF
2165 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2166 _ACEOF
2167
2168 cat >>confdefs.h <<_ACEOF
2169 #define PACKAGE_STRING "$PACKAGE_STRING"
2170 _ACEOF
2171
2172 cat >>confdefs.h <<_ACEOF
2173 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2174 _ACEOF
2175
2176 cat >>confdefs.h <<_ACEOF
2177 #define PACKAGE_URL "$PACKAGE_URL"
2178 _ACEOF
2179
2180
2181 # Let the site file select an alternate cache file if it wants to.
2182 # Prefer an explicitly selected file to automatically selected ones.
2183 ac_site_file1=NONE
2184 ac_site_file2=NONE
2185 if test -n "$CONFIG_SITE"; then
2186 # We do not want a PATH search for config.site.
2187 case $CONFIG_SITE in #((
2188 -*) ac_site_file1=./$CONFIG_SITE;;
2189 */*) ac_site_file1=$CONFIG_SITE;;
2190 *) ac_site_file1=./$CONFIG_SITE;;
2191 esac
2192 elif test "x$prefix" != xNONE; then
2193 ac_site_file1=$prefix/share/config.site
2194 ac_site_file2=$prefix/etc/config.site
2195 else
2196 ac_site_file1=$ac_default_prefix/share/config.site
2197 ac_site_file2=$ac_default_prefix/etc/config.site
2198 fi
2199 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2200 do
2201 test "x$ac_site_file" = xNONE && continue
2202 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2204 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2205 sed 's/^/| /' "$ac_site_file" >&5
2206 . "$ac_site_file" \
2207 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2208 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2209 as_fn_error $? "failed to load site script $ac_site_file
2210 See \`config.log' for more details" "$LINENO" 5; }
2211 fi
2212 done
2213
2214 if test -r "$cache_file"; then
2215 # Some versions of bash will fail to source /dev/null (special files
2216 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2217 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2219 $as_echo "$as_me: loading cache $cache_file" >&6;}
2220 case $cache_file in
2221 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2222 *) . "./$cache_file";;
2223 esac
2224 fi
2225 else
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2227 $as_echo "$as_me: creating cache $cache_file" >&6;}
2228 >$cache_file
2229 fi
2230
2231 # Check that the precious variables saved in the cache have kept the same
2232 # value.
2233 ac_cache_corrupted=false
2234 for ac_var in $ac_precious_vars; do
2235 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2236 eval ac_new_set=\$ac_env_${ac_var}_set
2237 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2238 eval ac_new_val=\$ac_env_${ac_var}_value
2239 case $ac_old_set,$ac_new_set in
2240 set,)
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2242 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2243 ac_cache_corrupted=: ;;
2244 ,set)
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2246 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2247 ac_cache_corrupted=: ;;
2248 ,);;
2249 *)
2250 if test "x$ac_old_val" != "x$ac_new_val"; then
2251 # differences in whitespace do not lead to failure.
2252 ac_old_val_w=`echo x $ac_old_val`
2253 ac_new_val_w=`echo x $ac_new_val`
2254 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2256 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2257 ac_cache_corrupted=:
2258 else
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2260 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2261 eval $ac_var=\$ac_old_val
2262 fi
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2264 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2266 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2267 fi;;
2268 esac
2269 # Pass precious variables to config.status.
2270 if test "$ac_new_set" = set; then
2271 case $ac_new_val in
2272 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2273 *) ac_arg=$ac_var=$ac_new_val ;;
2274 esac
2275 case " $ac_configure_args " in
2276 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2277 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2278 esac
2279 fi
2280 done
2281 if $ac_cache_corrupted; then
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2283 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2285 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2286 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2287 fi
2288 ## -------------------- ##
2289 ## Main body of script. ##
2290 ## -------------------- ##
2291
2292 ac_ext=c
2293 ac_cpp='$CPP $CPPFLAGS'
2294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2297
2298
2299
2300 ac_config_headers="$ac_config_headers config.h"
2301
2302
2303 am__api_version='1.15'
2304
2305 ac_aux_dir=
2306 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2307 if test -f "$ac_dir/install-sh"; then
2308 ac_aux_dir=$ac_dir
2309 ac_install_sh="$ac_aux_dir/install-sh -c"
2310 break
2311 elif test -f "$ac_dir/install.sh"; then
2312 ac_aux_dir=$ac_dir
2313 ac_install_sh="$ac_aux_dir/install.sh -c"
2314 break
2315 elif test -f "$ac_dir/shtool"; then
2316 ac_aux_dir=$ac_dir
2317 ac_install_sh="$ac_aux_dir/shtool install -c"
2318 break
2319 fi
2320 done
2321 if test -z "$ac_aux_dir"; then
2322 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2323 fi
2324
2325 # These three variables are undocumented and unsupported,
2326 # and are intended to be withdrawn in a future Autoconf release.
2327 # They can cause serious problems if a builder's source tree is in a directory
2328 # whose full name contains unusual characters.
2329 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2330 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2331 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2332
2333
2334 # Find a good install program. We prefer a C program (faster),
2335 # so one script is as good as another. But avoid the broken or
2336 # incompatible versions:
2337 # SysV /etc/install, /usr/sbin/install
2338 # SunOS /usr/etc/install
2339 # IRIX /sbin/install
2340 # AIX /bin/install
2341 # AmigaOS /C/install, which installs bootblocks on floppy discs
2342 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2343 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2344 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2345 # OS/2's system install, which has a completely different semantic
2346 # ./install, which can be erroneously created by make from ./install.sh.
2347 # Reject install programs that cannot install multiple files.
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2349 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2350 if test -z "$INSTALL"; then
2351 if ${ac_cv_path_install+:} false; then :
2352 $as_echo_n "(cached) " >&6
2353 else
2354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2355 for as_dir in $PATH
2356 do
2357 IFS=$as_save_IFS
2358 test -z "$as_dir" && as_dir=.
2359 # Account for people who put trailing slashes in PATH elements.
2360 case $as_dir/ in #((
2361 ./ | .// | /[cC]/* | \
2362 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2363 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2364 /usr/ucb/* ) ;;
2365 *)
2366 # OSF1 and SCO ODT 3.0 have their own names for install.
2367 # Don't use installbsd from OSF since it installs stuff as root
2368 # by default.
2369 for ac_prog in ginstall scoinst install; do
2370 for ac_exec_ext in '' $ac_executable_extensions; do
2371 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2372 if test $ac_prog = install &&
2373 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2374 # AIX install. It has an incompatible calling convention.
2375 :
2376 elif test $ac_prog = install &&
2377 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2378 # program-specific install script used by HP pwplus--don't use.
2379 :
2380 else
2381 rm -rf conftest.one conftest.two conftest.dir
2382 echo one > conftest.one
2383 echo two > conftest.two
2384 mkdir conftest.dir
2385 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2386 test -s conftest.one && test -s conftest.two &&
2387 test -s conftest.dir/conftest.one &&
2388 test -s conftest.dir/conftest.two
2389 then
2390 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2391 break 3
2392 fi
2393 fi
2394 fi
2395 done
2396 done
2397 ;;
2398 esac
2399
2400 done
2401 IFS=$as_save_IFS
2402
2403 rm -rf conftest.one conftest.two conftest.dir
2404
2405 fi
2406 if test "${ac_cv_path_install+set}" = set; then
2407 INSTALL=$ac_cv_path_install
2408 else
2409 # As a last resort, use the slow shell script. Don't cache a
2410 # value for INSTALL within a source directory, because that will
2411 # break other packages using the cache if that directory is
2412 # removed, or if the value is a relative name.
2413 INSTALL=$ac_install_sh
2414 fi
2415 fi
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2417 $as_echo "$INSTALL" >&6; }
2418
2419 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2420 # It thinks the first close brace ends the variable substitution.
2421 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2422
2423 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2424
2425 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2426
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2428 $as_echo_n "checking whether build environment is sane... " >&6; }
2429 # Reject unsafe characters in $srcdir or the absolute working directory
2430 # name. Accept space and tab only in the latter.
2431 am_lf='
2432 '
2433 case `pwd` in
2434 *[\\\"\#\$\&\'\`$am_lf]*)
2435 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2436 esac
2437 case $srcdir in
2438 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2439 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2440 esac
2441
2442 # Do 'set' in a subshell so we don't clobber the current shell's
2443 # arguments. Must try -L first in case configure is actually a
2444 # symlink; some systems play weird games with the mod time of symlinks
2445 # (eg FreeBSD returns the mod time of the symlink's containing
2446 # directory).
2447 if (
2448 am_has_slept=no
2449 for am_try in 1 2; do
2450 echo "timestamp, slept: $am_has_slept" > conftest.file
2451 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2452 if test "$*" = "X"; then
2453 # -L didn't work.
2454 set X `ls -t "$srcdir/configure" conftest.file`
2455 fi
2456 if test "$*" != "X $srcdir/configure conftest.file" \
2457 && test "$*" != "X conftest.file $srcdir/configure"; then
2458
2459 # If neither matched, then we have a broken ls. This can happen
2460 # if, for instance, CONFIG_SHELL is bash and it inherits a
2461 # broken ls alias from the environment. This has actually
2462 # happened. Such a system could not be considered "sane".
2463 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2464 alias in your environment" "$LINENO" 5
2465 fi
2466 if test "$2" = conftest.file || test $am_try -eq 2; then
2467 break
2468 fi
2469 # Just in case.
2470 sleep 1
2471 am_has_slept=yes
2472 done
2473 test "$2" = conftest.file
2474 )
2475 then
2476 # Ok.
2477 :
2478 else
2479 as_fn_error $? "newly created file is older than distributed files!
2480 Check your system clock" "$LINENO" 5
2481 fi
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2483 $as_echo "yes" >&6; }
2484 # If we didn't sleep, we still need to ensure time stamps of config.status and
2485 # generated files are strictly newer.
2486 am_sleep_pid=
2487 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2488 ( sleep 1 ) &
2489 am_sleep_pid=$!
2490 fi
2491
2492 rm -f conftest.file
2493
2494 test "$program_prefix" != NONE &&
2495 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2496 # Use a double $ so make ignores it.
2497 test "$program_suffix" != NONE &&
2498 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2499 # Double any \ or $.
2500 # By default was `s,x,x', remove it if useless.
2501 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2502 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2503
2504 # Expand $ac_aux_dir to an absolute path.
2505 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2506
2507 if test x"${MISSING+set}" != xset; then
2508 case $am_aux_dir in
2509 *\ * | *\ *)
2510 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2511 *)
2512 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2513 esac
2514 fi
2515 # Use eval to expand $SHELL
2516 if eval "$MISSING --is-lightweight"; then
2517 am_missing_run="$MISSING "
2518 else
2519 am_missing_run=
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2521 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2522 fi
2523
2524 if test x"${install_sh+set}" != xset; then
2525 case $am_aux_dir in
2526 *\ * | *\ *)
2527 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2528 *)
2529 install_sh="\${SHELL} $am_aux_dir/install-sh"
2530 esac
2531 fi
2532
2533 # Installed binaries are usually stripped using 'strip' when the user
2534 # run "make install-strip". However 'strip' might not be the right
2535 # tool to use in cross-compilation environments, therefore Automake
2536 # will honor the 'STRIP' environment variable to overrule this program.
2537 if test "$cross_compiling" != no; then
2538 if test -n "$ac_tool_prefix"; then
2539 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2540 set dummy ${ac_tool_prefix}strip; ac_word=$2
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2542 $as_echo_n "checking for $ac_word... " >&6; }
2543 if ${ac_cv_prog_STRIP+:} false; then :
2544 $as_echo_n "(cached) " >&6
2545 else
2546 if test -n "$STRIP"; then
2547 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2548 else
2549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550 for as_dir in $PATH
2551 do
2552 IFS=$as_save_IFS
2553 test -z "$as_dir" && as_dir=.
2554 for ac_exec_ext in '' $ac_executable_extensions; do
2555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2556 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2558 break 2
2559 fi
2560 done
2561 done
2562 IFS=$as_save_IFS
2563
2564 fi
2565 fi
2566 STRIP=$ac_cv_prog_STRIP
2567 if test -n "$STRIP"; then
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2569 $as_echo "$STRIP" >&6; }
2570 else
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2572 $as_echo "no" >&6; }
2573 fi
2574
2575
2576 fi
2577 if test -z "$ac_cv_prog_STRIP"; then
2578 ac_ct_STRIP=$STRIP
2579 # Extract the first word of "strip", so it can be a program name with args.
2580 set dummy strip; ac_word=$2
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2582 $as_echo_n "checking for $ac_word... " >&6; }
2583 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2584 $as_echo_n "(cached) " >&6
2585 else
2586 if test -n "$ac_ct_STRIP"; then
2587 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2588 else
2589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590 for as_dir in $PATH
2591 do
2592 IFS=$as_save_IFS
2593 test -z "$as_dir" && as_dir=.
2594 for ac_exec_ext in '' $ac_executable_extensions; do
2595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2596 ac_cv_prog_ac_ct_STRIP="strip"
2597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2598 break 2
2599 fi
2600 done
2601 done
2602 IFS=$as_save_IFS
2603
2604 fi
2605 fi
2606 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2607 if test -n "$ac_ct_STRIP"; then
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2609 $as_echo "$ac_ct_STRIP" >&6; }
2610 else
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2612 $as_echo "no" >&6; }
2613 fi
2614
2615 if test "x$ac_ct_STRIP" = x; then
2616 STRIP=":"
2617 else
2618 case $cross_compiling:$ac_tool_warned in
2619 yes:)
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2621 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2622 ac_tool_warned=yes ;;
2623 esac
2624 STRIP=$ac_ct_STRIP
2625 fi
2626 else
2627 STRIP="$ac_cv_prog_STRIP"
2628 fi
2629
2630 fi
2631 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2632
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2634 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2635 if test -z "$MKDIR_P"; then
2636 if ${ac_cv_path_mkdir+:} false; then :
2637 $as_echo_n "(cached) " >&6
2638 else
2639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2641 do
2642 IFS=$as_save_IFS
2643 test -z "$as_dir" && as_dir=.
2644 for ac_prog in mkdir gmkdir; do
2645 for ac_exec_ext in '' $ac_executable_extensions; do
2646 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2647 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2648 'mkdir (GNU coreutils) '* | \
2649 'mkdir (coreutils) '* | \
2650 'mkdir (fileutils) '4.1*)
2651 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2652 break 3;;
2653 esac
2654 done
2655 done
2656 done
2657 IFS=$as_save_IFS
2658
2659 fi
2660
2661 test -d ./--version && rmdir ./--version
2662 if test "${ac_cv_path_mkdir+set}" = set; then
2663 MKDIR_P="$ac_cv_path_mkdir -p"
2664 else
2665 # As a last resort, use the slow shell script. Don't cache a
2666 # value for MKDIR_P within a source directory, because that will
2667 # break other packages using the cache if that directory is
2668 # removed, or if the value is a relative name.
2669 MKDIR_P="$ac_install_sh -d"
2670 fi
2671 fi
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2673 $as_echo "$MKDIR_P" >&6; }
2674
2675 for ac_prog in gawk mawk nawk awk
2676 do
2677 # Extract the first word of "$ac_prog", so it can be a program name with args.
2678 set dummy $ac_prog; ac_word=$2
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2680 $as_echo_n "checking for $ac_word... " >&6; }
2681 if ${ac_cv_prog_AWK+:} false; then :
2682 $as_echo_n "(cached) " >&6
2683 else
2684 if test -n "$AWK"; then
2685 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2686 else
2687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688 for as_dir in $PATH
2689 do
2690 IFS=$as_save_IFS
2691 test -z "$as_dir" && as_dir=.
2692 for ac_exec_ext in '' $ac_executable_extensions; do
2693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2694 ac_cv_prog_AWK="$ac_prog"
2695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2696 break 2
2697 fi
2698 done
2699 done
2700 IFS=$as_save_IFS
2701
2702 fi
2703 fi
2704 AWK=$ac_cv_prog_AWK
2705 if test -n "$AWK"; then
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2707 $as_echo "$AWK" >&6; }
2708 else
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2710 $as_echo "no" >&6; }
2711 fi
2712
2713
2714 test -n "$AWK" && break
2715 done
2716
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2718 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2719 set x ${MAKE-make}
2720 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2721 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2722 $as_echo_n "(cached) " >&6
2723 else
2724 cat >conftest.make <<\_ACEOF
2725 SHELL = /bin/sh
2726 all:
2727 @echo '@@@%%%=$(MAKE)=@@@%%%'
2728 _ACEOF
2729 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2730 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2731 *@@@%%%=?*=@@@%%%*)
2732 eval ac_cv_prog_make_${ac_make}_set=yes;;
2733 *)
2734 eval ac_cv_prog_make_${ac_make}_set=no;;
2735 esac
2736 rm -f conftest.make
2737 fi
2738 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2740 $as_echo "yes" >&6; }
2741 SET_MAKE=
2742 else
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2744 $as_echo "no" >&6; }
2745 SET_MAKE="MAKE=${MAKE-make}"
2746 fi
2747
2748 rm -rf .tst 2>/dev/null
2749 mkdir .tst 2>/dev/null
2750 if test -d .tst; then
2751 am__leading_dot=.
2752 else
2753 am__leading_dot=_
2754 fi
2755 rmdir .tst 2>/dev/null
2756
2757 # Check whether --enable-silent-rules was given.
2758 if test "${enable_silent_rules+set}" = set; then :
2759 enableval=$enable_silent_rules;
2760 fi
2761
2762 case $enable_silent_rules in # (((
2763 yes) AM_DEFAULT_VERBOSITY=0;;
2764 no) AM_DEFAULT_VERBOSITY=1;;
2765 *) AM_DEFAULT_VERBOSITY=1;;
2766 esac
2767 am_make=${MAKE-make}
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2769 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2770 if ${am_cv_make_support_nested_variables+:} false; then :
2771 $as_echo_n "(cached) " >&6
2772 else
2773 if $as_echo 'TRUE=$(BAR$(V))
2774 BAR0=false
2775 BAR1=true
2776 V=1
2777 am__doit:
2778 @$(TRUE)
2779 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2780 am_cv_make_support_nested_variables=yes
2781 else
2782 am_cv_make_support_nested_variables=no
2783 fi
2784 fi
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2786 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2787 if test $am_cv_make_support_nested_variables = yes; then
2788 AM_V='$(V)'
2789 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2790 else
2791 AM_V=$AM_DEFAULT_VERBOSITY
2792 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2793 fi
2794 AM_BACKSLASH='\'
2795
2796 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2797 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2798 # is not polluted with repeated "-I."
2799 am__isrc=' -I$(srcdir)'
2800 # test to see if srcdir already configured
2801 if test -f $srcdir/config.status; then
2802 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2803 fi
2804 fi
2805
2806 # test whether we have cygpath
2807 if test -z "$CYGPATH_W"; then
2808 if (cygpath --version) >/dev/null 2>/dev/null; then
2809 CYGPATH_W='cygpath -w'
2810 else
2811 CYGPATH_W=echo
2812 fi
2813 fi
2814
2815
2816 # Define the identity of the package.
2817 PACKAGE='mpc'
2818 VERSION='1.1.0'
2819
2820
2821 cat >>confdefs.h <<_ACEOF
2822 #define PACKAGE "$PACKAGE"
2823 _ACEOF
2824
2825
2826 cat >>confdefs.h <<_ACEOF
2827 #define VERSION "$VERSION"
2828 _ACEOF
2829
2830 # Some tools Automake needs.
2831
2832 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2833
2834
2835 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2836
2837
2838 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2839
2840
2841 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2842
2843
2844 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2845
2846 # For better backward compatibility. To be removed once Automake 1.9.x
2847 # dies out for good. For more background, see:
2848 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2849 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2850 mkdir_p='$(MKDIR_P)'
2851
2852 # We need awk for the "check" target (and possibly the TAP driver). The
2853 # system "awk" is bad on some platforms.
2854 # Always define AMTAR for backward compatibility. Yes, it's still used
2855 # in the wild :-( We should find a proper way to deprecate it ...
2856 AMTAR='$${TAR-tar}'
2857
2858
2859 # We'll loop over all known methods to create a tar archive until one works.
2860 _am_tools='gnutar pax cpio none'
2861
2862 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2863
2864
2865
2866
2867
2868
2869 # POSIX will say in a future version that running "rm -f" with no argument
2870 # is OK; and we want to be able to make that assumption in our Makefile
2871 # recipes. So use an aggressive probe to check that the usage we want is
2872 # actually supported "in the wild" to an acceptable degree.
2873 # See automake bug#10828.
2874 # To make any issue more visible, cause the running configure to be aborted
2875 # by default if the 'rm' program in use doesn't match our expectations; the
2876 # user can still override this though.
2877 if rm -f && rm -fr && rm -rf; then : OK; else
2878 cat >&2 <<'END'
2879 Oops!
2880
2881 Your 'rm' program seems unable to run without file operands specified
2882 on the command line, even when the '-f' option is present. This is contrary
2883 to the behaviour of most rm programs out there, and not conforming with
2884 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2885
2886 Please tell bug-automake@gnu.org about your system, including the value
2887 of your $PATH and any error possibly output before this message. This
2888 can help us improve future automake versions.
2889
2890 END
2891 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2892 echo 'Configuration will proceed anyway, since you have set the' >&2
2893 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2894 echo >&2
2895 else
2896 cat >&2 <<'END'
2897 Aborting the configuration process, to ensure you take notice of the issue.
2898
2899 You can download and install GNU coreutils to get an 'rm' implementation
2900 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2901
2902 If you want to complete the configuration process using your problematic
2903 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2904 to "yes", and re-run configure.
2905
2906 END
2907 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2908 fi
2909 fi
2910
2911
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2913 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2914 # Check whether --enable-maintainer-mode was given.
2915 if test "${enable_maintainer_mode+set}" = set; then :
2916 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2917 else
2918 USE_MAINTAINER_MODE=no
2919 fi
2920
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2922 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2923 if test $USE_MAINTAINER_MODE = yes; then
2924 MAINTAINER_MODE_TRUE=
2925 MAINTAINER_MODE_FALSE='#'
2926 else
2927 MAINTAINER_MODE_TRUE='#'
2928 MAINTAINER_MODE_FALSE=
2929 fi
2930
2931 MAINT=$MAINTAINER_MODE_TRUE
2932
2933
2934
2935 USER_CC=$CC
2936 USER_CFLAGS=$CFLAGS
2937
2938 # Make sure we can run config.sub.
2939 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2940 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2941
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2943 $as_echo_n "checking build system type... " >&6; }
2944 if ${ac_cv_build+:} false; then :
2945 $as_echo_n "(cached) " >&6
2946 else
2947 ac_build_alias=$build_alias
2948 test "x$ac_build_alias" = x &&
2949 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2950 test "x$ac_build_alias" = x &&
2951 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2952 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2953 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2954
2955 fi
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2957 $as_echo "$ac_cv_build" >&6; }
2958 case $ac_cv_build in
2959 *-*-*) ;;
2960 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2961 esac
2962 build=$ac_cv_build
2963 ac_save_IFS=$IFS; IFS='-'
2964 set x $ac_cv_build
2965 shift
2966 build_cpu=$1
2967 build_vendor=$2
2968 shift; shift
2969 # Remember, the first character of IFS is used to create $*,
2970 # except with old shells:
2971 build_os=$*
2972 IFS=$ac_save_IFS
2973 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2974
2975
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2977 $as_echo_n "checking host system type... " >&6; }
2978 if ${ac_cv_host+:} false; then :
2979 $as_echo_n "(cached) " >&6
2980 else
2981 if test "x$host_alias" = x; then
2982 ac_cv_host=$ac_cv_build
2983 else
2984 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2985 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2986 fi
2987
2988 fi
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2990 $as_echo "$ac_cv_host" >&6; }
2991 case $ac_cv_host in
2992 *-*-*) ;;
2993 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2994 esac
2995 host=$ac_cv_host
2996 ac_save_IFS=$IFS; IFS='-'
2997 set x $ac_cv_host
2998 shift
2999 host_cpu=$1
3000 host_vendor=$2
3001 shift; shift
3002 # Remember, the first character of IFS is used to create $*,
3003 # except with old shells:
3004 host_os=$*
3005 IFS=$ac_save_IFS
3006 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3007
3008
3009
3010
3011
3012 # Extra arguments to configure
3013
3014 # Check whether --with-mpfr_include was given.
3015 if test "${with_mpfr_include+set}" = set; then :
3016 withval=$with_mpfr_include; CPPFLAGS="-I$withval $CPPFLAGS"
3017 fi
3018
3019
3020 # Check whether --with-mpfr_lib was given.
3021 if test "${with_mpfr_lib+set}" = set; then :
3022 withval=$with_mpfr_lib; LDFLAGS="-L$withval $LDFLAGS"
3023 fi
3024
3025
3026 # Check whether --with-mpfr was given.
3027 if test "${with_mpfr+set}" = set; then :
3028 withval=$with_mpfr;
3029 if test -z "$with_mpfr_include" -a -z "$with_mpfr_lib" ; then
3030 CPPFLAGS="-I$withval/include $CPPFLAGS"
3031 LDFLAGS="-L$withval/lib $LDFLAGS"
3032 else
3033 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3034 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3035 as_fn_error $? "Do not use --with-mpfr and --with-mpfr-include/--with-mpfr-lib options simultaneously.
3036 See \`config.log' for more details" "$LINENO" 5; }
3037 fi
3038
3039 fi
3040
3041
3042 # Check whether --with-gmp_include was given.
3043 if test "${with_gmp_include+set}" = set; then :
3044 withval=$with_gmp_include; CPPFLAGS="-I$withval $CPPFLAGS"
3045 fi
3046
3047
3048 # Check whether --with-gmp_lib was given.
3049 if test "${with_gmp_lib+set}" = set; then :
3050 withval=$with_gmp_lib; LDFLAGS="-L$withval $LDFLAGS"
3051 fi
3052
3053
3054 # Check whether --with-gmp was given.
3055 if test "${with_gmp+set}" = set; then :
3056 withval=$with_gmp;
3057 if test -z "$with_gmp_lib" -a -z "$with_gmp_include" ; then
3058 CPPFLAGS="-I$withval/include $CPPFLAGS"
3059 LDFLAGS="-L$withval/lib $LDFLAGS"
3060 else
3061 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3062 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3063 as_fn_error $? "Do not use --with-gmp and --with-gmp-include/--with-gmp-lib options simultaneously.
3064 See \`config.log' for more details" "$LINENO" 5; }
3065 fi
3066
3067 fi
3068
3069 # Check whether --enable-logging was given.
3070 if test "${enable_logging+set}" = set; then :
3071 enableval=$enable_logging; case $enableval in
3072 yes) if test "x$enable_shared" = "xno"; then :
3073 as_fn_error $? "Logging works only with shared libraries; do not mix --enable-logging and --disable-shared" "$LINENO" 5
3074 fi ;;
3075 no) ;;
3076 *) as_fn_error $? "Bad value for --enable-logging: Use yes or no" "$LINENO" 5 ;;
3077 esac
3078
3079
3080 fi
3081
3082 # Check whether --enable-valgrind-tests was given.
3083 if test "${enable_valgrind_tests+set}" = set; then :
3084 enableval=$enable_valgrind_tests; case $enableval in
3085 yes)
3086 # Run self-tests under valgrind?
3087 if test "$cross_compiling" = no; then
3088 for ac_prog in valgrind
3089 do
3090 # Extract the first word of "$ac_prog", so it can be a program name with args.
3091 set dummy $ac_prog; ac_word=$2
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3093 $as_echo_n "checking for $ac_word... " >&6; }
3094 if ${ac_cv_prog_VALGRIND+:} false; then :
3095 $as_echo_n "(cached) " >&6
3096 else
3097 if test -n "$VALGRIND"; then
3098 ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test.
3099 else
3100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3101 for as_dir in $PATH
3102 do
3103 IFS=$as_save_IFS
3104 test -z "$as_dir" && as_dir=.
3105 for ac_exec_ext in '' $ac_executable_extensions; do
3106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3107 ac_cv_prog_VALGRIND="$ac_prog"
3108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3109 break 2
3110 fi
3111 done
3112 done
3113 IFS=$as_save_IFS
3114
3115 fi
3116 fi
3117 VALGRIND=$ac_cv_prog_VALGRIND
3118 if test -n "$VALGRIND"; then
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
3120 $as_echo "$VALGRIND" >&6; }
3121 else
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3123 $as_echo "no" >&6; }
3124 fi
3125
3126
3127 test -n "$VALGRIND" && break
3128 done
3129
3130 fi
3131
3132 VALGRIND_OPTS="-q --error-exitcode=1 --leak-check=full"
3133
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether valgrind is working" >&5
3135 $as_echo_n "checking whether valgrind is working... " >&6; }
3136 if test -n "$VALGRIND" \
3137 && $VALGRIND $VALGRIND_OPTS $SHELL -c 'exit 0' > /dev/null 2>&1; then
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3139 $as_echo "yes" >&6; }
3140
3141 $as_echo "#define MPC_USE_VALGRIND 1" >>confdefs.h
3142
3143 # Addition AE: enable suppression file through a shell variable
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for valgrind suppression file" >&5
3145 $as_echo_n "checking for valgrind suppression file... " >&6; }
3146 if test -n "$VALGRIND_SUPPRESSION"; then
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND_SUPPRESSION" >&5
3148 $as_echo "$VALGRIND_SUPPRESSION" >&6; }
3149 VALGRIND_OPTS="$VALGRIND_OPTS --suppressions=$VALGRIND_SUPPRESSION"
3150 else
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3152 $as_echo "no" >&6; }
3153 fi
3154 else
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3156 $as_echo "no" >&6; }
3157 VALGRIND=
3158 VALGRIND_OPTS=
3159 fi
3160
3161
3162 ;;
3163 no) ;;
3164 *) as_fn_error $? "Bad value for --enable-valgrind-tests: Use yes or no" "$LINENO" 5 ;;
3165 esac
3166
3167
3168 fi
3169
3170
3171 # Check for CC and CFLAGS in gmp.h unless the user specified one of them
3172 # look for EGREP and SED here, see continued problem
3173 # at http://lists.gforge.inria.fr/pipermail/mpc-discuss/2012-January/001056.html
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3175 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3176 if ${ac_cv_path_GREP+:} false; then :
3177 $as_echo_n "(cached) " >&6
3178 else
3179 if test -z "$GREP"; then
3180 ac_path_GREP_found=false
3181 # Loop through the user's path and test for each of PROGNAME-LIST
3182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3183 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3184 do
3185 IFS=$as_save_IFS
3186 test -z "$as_dir" && as_dir=.
3187 for ac_prog in grep ggrep; do
3188 for ac_exec_ext in '' $ac_executable_extensions; do
3189 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3190 as_fn_executable_p "$ac_path_GREP" || continue
3191 # Check for GNU ac_path_GREP and select it if it is found.
3192 # Check for GNU $ac_path_GREP
3193 case `"$ac_path_GREP" --version 2>&1` in
3194 *GNU*)
3195 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3196 *)
3197 ac_count=0
3198 $as_echo_n 0123456789 >"conftest.in"
3199 while :
3200 do
3201 cat "conftest.in" "conftest.in" >"conftest.tmp"
3202 mv "conftest.tmp" "conftest.in"
3203 cp "conftest.in" "conftest.nl"
3204 $as_echo 'GREP' >> "conftest.nl"
3205 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3206 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3207 as_fn_arith $ac_count + 1 && ac_count=$as_val
3208 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3209 # Best one so far, save it but keep looking for a better one
3210 ac_cv_path_GREP="$ac_path_GREP"
3211 ac_path_GREP_max=$ac_count
3212 fi
3213 # 10*(2^10) chars as input seems more than enough
3214 test $ac_count -gt 10 && break
3215 done
3216 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3217 esac
3218
3219 $ac_path_GREP_found && break 3
3220 done
3221 done
3222 done
3223 IFS=$as_save_IFS
3224 if test -z "$ac_cv_path_GREP"; then
3225 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3226 fi
3227 else
3228 ac_cv_path_GREP=$GREP
3229 fi
3230
3231 fi
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3233 $as_echo "$ac_cv_path_GREP" >&6; }
3234 GREP="$ac_cv_path_GREP"
3235
3236
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3238 $as_echo_n "checking for egrep... " >&6; }
3239 if ${ac_cv_path_EGREP+:} false; then :
3240 $as_echo_n "(cached) " >&6
3241 else
3242 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3243 then ac_cv_path_EGREP="$GREP -E"
3244 else
3245 if test -z "$EGREP"; then
3246 ac_path_EGREP_found=false
3247 # Loop through the user's path and test for each of PROGNAME-LIST
3248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3249 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3250 do
3251 IFS=$as_save_IFS
3252 test -z "$as_dir" && as_dir=.
3253 for ac_prog in egrep; do
3254 for ac_exec_ext in '' $ac_executable_extensions; do
3255 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3256 as_fn_executable_p "$ac_path_EGREP" || continue
3257 # Check for GNU ac_path_EGREP and select it if it is found.
3258 # Check for GNU $ac_path_EGREP
3259 case `"$ac_path_EGREP" --version 2>&1` in
3260 *GNU*)
3261 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3262 *)
3263 ac_count=0
3264 $as_echo_n 0123456789 >"conftest.in"
3265 while :
3266 do
3267 cat "conftest.in" "conftest.in" >"conftest.tmp"
3268 mv "conftest.tmp" "conftest.in"
3269 cp "conftest.in" "conftest.nl"
3270 $as_echo 'EGREP' >> "conftest.nl"
3271 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3272 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3273 as_fn_arith $ac_count + 1 && ac_count=$as_val
3274 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3275 # Best one so far, save it but keep looking for a better one
3276 ac_cv_path_EGREP="$ac_path_EGREP"
3277 ac_path_EGREP_max=$ac_count
3278 fi
3279 # 10*(2^10) chars as input seems more than enough
3280 test $ac_count -gt 10 && break
3281 done
3282 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3283 esac
3284
3285 $ac_path_EGREP_found && break 3
3286 done
3287 done
3288 done
3289 IFS=$as_save_IFS
3290 if test -z "$ac_cv_path_EGREP"; then
3291 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3292 fi
3293 else
3294 ac_cv_path_EGREP=$EGREP
3295 fi
3296
3297 fi
3298 fi
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3300 $as_echo "$ac_cv_path_EGREP" >&6; }
3301 EGREP="$ac_cv_path_EGREP"
3302
3303
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3305 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3306 if ${ac_cv_path_SED+:} false; then :
3307 $as_echo_n "(cached) " >&6
3308 else
3309 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3310 for ac_i in 1 2 3 4 5 6 7; do
3311 ac_script="$ac_script$as_nl$ac_script"
3312 done
3313 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3314 { ac_script=; unset ac_script;}
3315 if test -z "$SED"; then
3316 ac_path_SED_found=false
3317 # Loop through the user's path and test for each of PROGNAME-LIST
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_prog in sed gsed; do
3324 for ac_exec_ext in '' $ac_executable_extensions; do
3325 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3326 as_fn_executable_p "$ac_path_SED" || continue
3327 # Check for GNU ac_path_SED and select it if it is found.
3328 # Check for GNU $ac_path_SED
3329 case `"$ac_path_SED" --version 2>&1` in
3330 *GNU*)
3331 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3332 *)
3333 ac_count=0
3334 $as_echo_n 0123456789 >"conftest.in"
3335 while :
3336 do
3337 cat "conftest.in" "conftest.in" >"conftest.tmp"
3338 mv "conftest.tmp" "conftest.in"
3339 cp "conftest.in" "conftest.nl"
3340 $as_echo '' >> "conftest.nl"
3341 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3342 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3343 as_fn_arith $ac_count + 1 && ac_count=$as_val
3344 if test $ac_count -gt ${ac_path_SED_max-0}; then
3345 # Best one so far, save it but keep looking for a better one
3346 ac_cv_path_SED="$ac_path_SED"
3347 ac_path_SED_max=$ac_count
3348 fi
3349 # 10*(2^10) chars as input seems more than enough
3350 test $ac_count -gt 10 && break
3351 done
3352 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3353 esac
3354
3355 $ac_path_SED_found && break 3
3356 done
3357 done
3358 done
3359 IFS=$as_save_IFS
3360 if test -z "$ac_cv_path_SED"; then
3361 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3362 fi
3363 else
3364 ac_cv_path_SED=$SED
3365 fi
3366
3367 fi
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3369 $as_echo "$ac_cv_path_SED" >&6; }
3370 SED="$ac_cv_path_SED"
3371 rm -f conftest.sed
3372
3373 if test -z "$USER_CC" && test -z "$USER_CFLAGS"; then
3374
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CC and CFLAGS in gmp.h" >&5
3376 $as_echo_n "checking for CC and CFLAGS in gmp.h... " >&6; }
3377 GMP_CC=
3378 GMP_CFLAGS=
3379 # AC_PROG_CPP triggers the search for a C compiler; use hack instead
3380 for cpp in "$CPP" cpp "gcc -E" /lib/cpp "cc -E" "c99 -E"
3381 do
3382 echo foo > conftest.c
3383 if $cpp $CPPFLAGS conftest.c > /dev/null 2> /dev/null ; then
3384 # Get CC
3385 echo "#include \"gmp.h\"" > conftest.c
3386 echo "MPFR_OPTION __GMP_CC" >> conftest.c
3387 GMP_CC=`$cpp $CPPFLAGS conftest.c 2> /dev/null | $EGREP MPFR_OPTION | $SED -e 's/MPFR_OPTION //g;s/ *" *//g'`
3388 # Get CFLAGS
3389 echo "#include \"gmp.h\"" > conftest.c
3390 echo "MPFR_OPTION __GMP_CFLAGS" >> conftest.c
3391 GMP_CFLAGS=`$cpp $CPPFLAGS conftest.c 2> /dev/null | $EGREP MPFR_OPTION | $SED -e 's/MPFR_OPTION //g;s/ *" *//g'`
3392 break
3393 fi
3394 done
3395
3396 if test -z "$GMP_CC$GMP_CFLAGS" ; then
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3398 $as_echo "no" >&6; }
3399 else
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CC=$GMP_CC CFLAGS=$GMP_CFLAGS" >&5
3401 $as_echo "yes CC=$GMP_CC CFLAGS=$GMP_CFLAGS" >&6; }
3402 # Check for validity of CC and CFLAGS obtained from gmp.h
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CC=$GMP_CC and CFLAGS=$GMP_CFLAGS" >&5
3404 $as_echo_n "checking for CC=$GMP_CC and CFLAGS=$GMP_CFLAGS... " >&6; }
3405 echo "int main (void) { return 0; }" > conftest.c
3406 if $GMP_CC $GMP_CFLAGS -o conftest conftest.c 2> /dev/null ; then
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3408 $as_echo "yes" >&6; }
3409 CC=$GMP_CC
3410 CFLAGS=$GMP_CFLAGS
3411 else
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3413 $as_echo "no" >&6; }
3414 fi
3415 fi
3416
3417 rm -f conftest*
3418
3419 fi
3420
3421 # Setup CC and CFLAGS
3422 ac_ext=c
3423 ac_cpp='$CPP $CPPFLAGS'
3424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3427 if test -n "$ac_tool_prefix"; then
3428 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3429 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3431 $as_echo_n "checking for $ac_word... " >&6; }
3432 if ${ac_cv_prog_CC+:} false; then :
3433 $as_echo_n "(cached) " >&6
3434 else
3435 if test -n "$CC"; then
3436 ac_cv_prog_CC="$CC" # Let the user override the test.
3437 else
3438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3439 for as_dir in $PATH
3440 do
3441 IFS=$as_save_IFS
3442 test -z "$as_dir" && as_dir=.
3443 for ac_exec_ext in '' $ac_executable_extensions; do
3444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3445 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3447 break 2
3448 fi
3449 done
3450 done
3451 IFS=$as_save_IFS
3452
3453 fi
3454 fi
3455 CC=$ac_cv_prog_CC
3456 if test -n "$CC"; then
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3458 $as_echo "$CC" >&6; }
3459 else
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3461 $as_echo "no" >&6; }
3462 fi
3463
3464
3465 fi
3466 if test -z "$ac_cv_prog_CC"; then
3467 ac_ct_CC=$CC
3468 # Extract the first word of "gcc", so it can be a program name with args.
3469 set dummy gcc; ac_word=$2
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3471 $as_echo_n "checking for $ac_word... " >&6; }
3472 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3473 $as_echo_n "(cached) " >&6
3474 else
3475 if test -n "$ac_ct_CC"; then
3476 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3477 else
3478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3479 for as_dir in $PATH
3480 do
3481 IFS=$as_save_IFS
3482 test -z "$as_dir" && as_dir=.
3483 for ac_exec_ext in '' $ac_executable_extensions; do
3484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3485 ac_cv_prog_ac_ct_CC="gcc"
3486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3487 break 2
3488 fi
3489 done
3490 done
3491 IFS=$as_save_IFS
3492
3493 fi
3494 fi
3495 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3496 if test -n "$ac_ct_CC"; then
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3498 $as_echo "$ac_ct_CC" >&6; }
3499 else
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3501 $as_echo "no" >&6; }
3502 fi
3503
3504 if test "x$ac_ct_CC" = x; then
3505 CC=""
3506 else
3507 case $cross_compiling:$ac_tool_warned in
3508 yes:)
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3510 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3511 ac_tool_warned=yes ;;
3512 esac
3513 CC=$ac_ct_CC
3514 fi
3515 else
3516 CC="$ac_cv_prog_CC"
3517 fi
3518
3519 if test -z "$CC"; then
3520 if test -n "$ac_tool_prefix"; then
3521 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3522 set dummy ${ac_tool_prefix}cc; ac_word=$2
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3524 $as_echo_n "checking for $ac_word... " >&6; }
3525 if ${ac_cv_prog_CC+:} false; then :
3526 $as_echo_n "(cached) " >&6
3527 else
3528 if test -n "$CC"; then
3529 ac_cv_prog_CC="$CC" # Let the user override the test.
3530 else
3531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3532 for as_dir in $PATH
3533 do
3534 IFS=$as_save_IFS
3535 test -z "$as_dir" && as_dir=.
3536 for ac_exec_ext in '' $ac_executable_extensions; do
3537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3538 ac_cv_prog_CC="${ac_tool_prefix}cc"
3539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3540 break 2
3541 fi
3542 done
3543 done
3544 IFS=$as_save_IFS
3545
3546 fi
3547 fi
3548 CC=$ac_cv_prog_CC
3549 if test -n "$CC"; then
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3551 $as_echo "$CC" >&6; }
3552 else
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3554 $as_echo "no" >&6; }
3555 fi
3556
3557
3558 fi
3559 fi
3560 if test -z "$CC"; then
3561 # Extract the first word of "cc", so it can be a program name with args.
3562 set dummy cc; ac_word=$2
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3564 $as_echo_n "checking for $ac_word... " >&6; }
3565 if ${ac_cv_prog_CC+:} false; then :
3566 $as_echo_n "(cached) " >&6
3567 else
3568 if test -n "$CC"; then
3569 ac_cv_prog_CC="$CC" # Let the user override the test.
3570 else
3571 ac_prog_rejected=no
3572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3573 for as_dir in $PATH
3574 do
3575 IFS=$as_save_IFS
3576 test -z "$as_dir" && as_dir=.
3577 for ac_exec_ext in '' $ac_executable_extensions; do
3578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3579 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3580 ac_prog_rejected=yes
3581 continue
3582 fi
3583 ac_cv_prog_CC="cc"
3584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3585 break 2
3586 fi
3587 done
3588 done
3589 IFS=$as_save_IFS
3590
3591 if test $ac_prog_rejected = yes; then
3592 # We found a bogon in the path, so make sure we never use it.
3593 set dummy $ac_cv_prog_CC
3594 shift
3595 if test $# != 0; then
3596 # We chose a different compiler from the bogus one.
3597 # However, it has the same basename, so the bogon will be chosen
3598 # first if we set CC to just the basename; use the full file name.
3599 shift
3600 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3601 fi
3602 fi
3603 fi
3604 fi
3605 CC=$ac_cv_prog_CC
3606 if test -n "$CC"; then
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3608 $as_echo "$CC" >&6; }
3609 else
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3611 $as_echo "no" >&6; }
3612 fi
3613
3614
3615 fi
3616 if test -z "$CC"; then
3617 if test -n "$ac_tool_prefix"; then
3618 for ac_prog in cl.exe
3619 do
3620 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3621 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3623 $as_echo_n "checking for $ac_word... " >&6; }
3624 if ${ac_cv_prog_CC+:} false; then :
3625 $as_echo_n "(cached) " >&6
3626 else
3627 if test -n "$CC"; then
3628 ac_cv_prog_CC="$CC" # Let the user override the test.
3629 else
3630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3631 for as_dir in $PATH
3632 do
3633 IFS=$as_save_IFS
3634 test -z "$as_dir" && as_dir=.
3635 for ac_exec_ext in '' $ac_executable_extensions; do
3636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3637 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3639 break 2
3640 fi
3641 done
3642 done
3643 IFS=$as_save_IFS
3644
3645 fi
3646 fi
3647 CC=$ac_cv_prog_CC
3648 if test -n "$CC"; then
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3650 $as_echo "$CC" >&6; }
3651 else
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3653 $as_echo "no" >&6; }
3654 fi
3655
3656
3657 test -n "$CC" && break
3658 done
3659 fi
3660 if test -z "$CC"; then
3661 ac_ct_CC=$CC
3662 for ac_prog in cl.exe
3663 do
3664 # Extract the first word of "$ac_prog", so it can be a program name with args.
3665 set dummy $ac_prog; ac_word=$2
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3667 $as_echo_n "checking for $ac_word... " >&6; }
3668 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3669 $as_echo_n "(cached) " >&6
3670 else
3671 if test -n "$ac_ct_CC"; then
3672 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3673 else
3674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3675 for as_dir in $PATH
3676 do
3677 IFS=$as_save_IFS
3678 test -z "$as_dir" && as_dir=.
3679 for ac_exec_ext in '' $ac_executable_extensions; do
3680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3681 ac_cv_prog_ac_ct_CC="$ac_prog"
3682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3683 break 2
3684 fi
3685 done
3686 done
3687 IFS=$as_save_IFS
3688
3689 fi
3690 fi
3691 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3692 if test -n "$ac_ct_CC"; then
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3694 $as_echo "$ac_ct_CC" >&6; }
3695 else
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3697 $as_echo "no" >&6; }
3698 fi
3699
3700
3701 test -n "$ac_ct_CC" && break
3702 done
3703
3704 if test "x$ac_ct_CC" = x; then
3705 CC=""
3706 else
3707 case $cross_compiling:$ac_tool_warned in
3708 yes:)
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3710 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3711 ac_tool_warned=yes ;;
3712 esac
3713 CC=$ac_ct_CC
3714 fi
3715 fi
3716
3717 fi
3718
3719
3720 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3721 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3722 as_fn_error $? "no acceptable C compiler found in \$PATH
3723 See \`config.log' for more details" "$LINENO" 5; }
3724
3725 # Provide some information about the compiler.
3726 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3727 set X $ac_compile
3728 ac_compiler=$2
3729 for ac_option in --version -v -V -qversion; do
3730 { { ac_try="$ac_compiler $ac_option >&5"
3731 case "(($ac_try" in
3732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3733 *) ac_try_echo=$ac_try;;
3734 esac
3735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3736 $as_echo "$ac_try_echo"; } >&5
3737 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3738 ac_status=$?
3739 if test -s conftest.err; then
3740 sed '10a\
3741 ... rest of stderr output deleted ...
3742 10q' conftest.err >conftest.er1
3743 cat conftest.er1 >&5
3744 fi
3745 rm -f conftest.er1 conftest.err
3746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3747 test $ac_status = 0; }
3748 done
3749
3750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3751 /* end confdefs.h. */
3752
3753 int
3754 main ()
3755 {
3756
3757 ;
3758 return 0;
3759 }
3760 _ACEOF
3761 ac_clean_files_save=$ac_clean_files
3762 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3763 # Try to create an executable without -o first, disregard a.out.
3764 # It will help us diagnose broken compilers, and finding out an intuition
3765 # of exeext.
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3767 $as_echo_n "checking whether the C compiler works... " >&6; }
3768 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3769
3770 # The possible output files:
3771 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3772
3773 ac_rmfiles=
3774 for ac_file in $ac_files
3775 do
3776 case $ac_file in
3777 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3778 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3779 esac
3780 done
3781 rm -f $ac_rmfiles
3782
3783 if { { ac_try="$ac_link_default"
3784 case "(($ac_try" in
3785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3786 *) ac_try_echo=$ac_try;;
3787 esac
3788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3789 $as_echo "$ac_try_echo"; } >&5
3790 (eval "$ac_link_default") 2>&5
3791 ac_status=$?
3792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3793 test $ac_status = 0; }; then :
3794 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3795 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3796 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3797 # so that the user can short-circuit this test for compilers unknown to
3798 # Autoconf.
3799 for ac_file in $ac_files ''
3800 do
3801 test -f "$ac_file" || continue
3802 case $ac_file in
3803 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3804 ;;
3805 [ab].out )
3806 # We found the default executable, but exeext='' is most
3807 # certainly right.
3808 break;;
3809 *.* )
3810 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3811 then :; else
3812 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3813 fi
3814 # We set ac_cv_exeext here because the later test for it is not
3815 # safe: cross compilers may not add the suffix if given an `-o'
3816 # argument, so we may need to know it at that point already.
3817 # Even if this section looks crufty: it has the advantage of
3818 # actually working.
3819 break;;
3820 * )
3821 break;;
3822 esac
3823 done
3824 test "$ac_cv_exeext" = no && ac_cv_exeext=
3825
3826 else
3827 ac_file=''
3828 fi
3829 if test -z "$ac_file"; then :
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3831 $as_echo "no" >&6; }
3832 $as_echo "$as_me: failed program was:" >&5
3833 sed 's/^/| /' conftest.$ac_ext >&5
3834
3835 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3836 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3837 as_fn_error 77 "C compiler cannot create executables
3838 See \`config.log' for more details" "$LINENO" 5; }
3839 else
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3841 $as_echo "yes" >&6; }
3842 fi
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3844 $as_echo_n "checking for C compiler default output file name... " >&6; }
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3846 $as_echo "$ac_file" >&6; }
3847 ac_exeext=$ac_cv_exeext
3848
3849 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3850 ac_clean_files=$ac_clean_files_save
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3852 $as_echo_n "checking for suffix of executables... " >&6; }
3853 if { { ac_try="$ac_link"
3854 case "(($ac_try" in
3855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3856 *) ac_try_echo=$ac_try;;
3857 esac
3858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3859 $as_echo "$ac_try_echo"; } >&5
3860 (eval "$ac_link") 2>&5
3861 ac_status=$?
3862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3863 test $ac_status = 0; }; then :
3864 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3865 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3866 # work properly (i.e., refer to `conftest.exe'), while it won't with
3867 # `rm'.
3868 for ac_file in conftest.exe conftest conftest.*; do
3869 test -f "$ac_file" || continue
3870 case $ac_file in
3871 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3872 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3873 break;;
3874 * ) break;;
3875 esac
3876 done
3877 else
3878 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3879 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3880 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3881 See \`config.log' for more details" "$LINENO" 5; }
3882 fi
3883 rm -f conftest conftest$ac_cv_exeext
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3885 $as_echo "$ac_cv_exeext" >&6; }
3886
3887 rm -f conftest.$ac_ext
3888 EXEEXT=$ac_cv_exeext
3889 ac_exeext=$EXEEXT
3890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3891 /* end confdefs.h. */
3892 #include <stdio.h>
3893 int
3894 main ()
3895 {
3896 FILE *f = fopen ("conftest.out", "w");
3897 return ferror (f) || fclose (f) != 0;
3898
3899 ;
3900 return 0;
3901 }
3902 _ACEOF
3903 ac_clean_files="$ac_clean_files conftest.out"
3904 # Check that the compiler produces executables we can run. If not, either
3905 # the compiler is broken, or we cross compile.
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3907 $as_echo_n "checking whether we are cross compiling... " >&6; }
3908 if test "$cross_compiling" != yes; then
3909 { { ac_try="$ac_link"
3910 case "(($ac_try" in
3911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3912 *) ac_try_echo=$ac_try;;
3913 esac
3914 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3915 $as_echo "$ac_try_echo"; } >&5
3916 (eval "$ac_link") 2>&5
3917 ac_status=$?
3918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3919 test $ac_status = 0; }
3920 if { ac_try='./conftest$ac_cv_exeext'
3921 { { case "(($ac_try" in
3922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3923 *) ac_try_echo=$ac_try;;
3924 esac
3925 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3926 $as_echo "$ac_try_echo"; } >&5
3927 (eval "$ac_try") 2>&5
3928 ac_status=$?
3929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3930 test $ac_status = 0; }; }; then
3931 cross_compiling=no
3932 else
3933 if test "$cross_compiling" = maybe; then
3934 cross_compiling=yes
3935 else
3936 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3937 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3938 as_fn_error $? "cannot run C compiled programs.
3939 If you meant to cross compile, use \`--host'.
3940 See \`config.log' for more details" "$LINENO" 5; }
3941 fi
3942 fi
3943 fi
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3945 $as_echo "$cross_compiling" >&6; }
3946
3947 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3948 ac_clean_files=$ac_clean_files_save
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3950 $as_echo_n "checking for suffix of object files... " >&6; }
3951 if ${ac_cv_objext+:} false; then :
3952 $as_echo_n "(cached) " >&6
3953 else
3954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3955 /* end confdefs.h. */
3956
3957 int
3958 main ()
3959 {
3960
3961 ;
3962 return 0;
3963 }
3964 _ACEOF
3965 rm -f conftest.o conftest.obj
3966 if { { ac_try="$ac_compile"
3967 case "(($ac_try" in
3968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3969 *) ac_try_echo=$ac_try;;
3970 esac
3971 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3972 $as_echo "$ac_try_echo"; } >&5
3973 (eval "$ac_compile") 2>&5
3974 ac_status=$?
3975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3976 test $ac_status = 0; }; then :
3977 for ac_file in conftest.o conftest.obj conftest.*; do
3978 test -f "$ac_file" || continue;
3979 case $ac_file in
3980 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3981 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3982 break;;
3983 esac
3984 done
3985 else
3986 $as_echo "$as_me: failed program was:" >&5
3987 sed 's/^/| /' conftest.$ac_ext >&5
3988
3989 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3991 as_fn_error $? "cannot compute suffix of object files: cannot compile
3992 See \`config.log' for more details" "$LINENO" 5; }
3993 fi
3994 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3995 fi
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3997 $as_echo "$ac_cv_objext" >&6; }
3998 OBJEXT=$ac_cv_objext
3999 ac_objext=$OBJEXT
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4001 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4002 if ${ac_cv_c_compiler_gnu+:} false; then :
4003 $as_echo_n "(cached) " >&6
4004 else
4005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4006 /* end confdefs.h. */
4007
4008 int
4009 main ()
4010 {
4011 #ifndef __GNUC__
4012 choke me
4013 #endif
4014
4015 ;
4016 return 0;
4017 }
4018 _ACEOF
4019 if ac_fn_c_try_compile "$LINENO"; then :
4020 ac_compiler_gnu=yes
4021 else
4022 ac_compiler_gnu=no
4023 fi
4024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4025 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4026
4027 fi
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4029 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4030 if test $ac_compiler_gnu = yes; then
4031 GCC=yes
4032 else
4033 GCC=
4034 fi
4035 ac_test_CFLAGS=${CFLAGS+set}
4036 ac_save_CFLAGS=$CFLAGS
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4038 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4039 if ${ac_cv_prog_cc_g+:} false; then :
4040 $as_echo_n "(cached) " >&6
4041 else
4042 ac_save_c_werror_flag=$ac_c_werror_flag
4043 ac_c_werror_flag=yes
4044 ac_cv_prog_cc_g=no
4045 CFLAGS="-g"
4046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4047 /* end confdefs.h. */
4048
4049 int
4050 main ()
4051 {
4052
4053 ;
4054 return 0;
4055 }
4056 _ACEOF
4057 if ac_fn_c_try_compile "$LINENO"; then :
4058 ac_cv_prog_cc_g=yes
4059 else
4060 CFLAGS=""
4061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062 /* end confdefs.h. */
4063
4064 int
4065 main ()
4066 {
4067
4068 ;
4069 return 0;
4070 }
4071 _ACEOF
4072 if ac_fn_c_try_compile "$LINENO"; then :
4073
4074 else
4075 ac_c_werror_flag=$ac_save_c_werror_flag
4076 CFLAGS="-g"
4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078 /* end confdefs.h. */
4079
4080 int
4081 main ()
4082 {
4083
4084 ;
4085 return 0;
4086 }
4087 _ACEOF
4088 if ac_fn_c_try_compile "$LINENO"; then :
4089 ac_cv_prog_cc_g=yes
4090 fi
4091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4092 fi
4093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4094 fi
4095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4096 ac_c_werror_flag=$ac_save_c_werror_flag
4097 fi
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4099 $as_echo "$ac_cv_prog_cc_g" >&6; }
4100 if test "$ac_test_CFLAGS" = set; then
4101 CFLAGS=$ac_save_CFLAGS
4102 elif test $ac_cv_prog_cc_g = yes; then
4103 if test "$GCC" = yes; then
4104 CFLAGS="-g -O2"
4105 else
4106 CFLAGS="-g"
4107 fi
4108 else
4109 if test "$GCC" = yes; then
4110 CFLAGS="-O2"
4111 else
4112 CFLAGS=
4113 fi
4114 fi
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4116 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4117 if ${ac_cv_prog_cc_c89+:} false; then :
4118 $as_echo_n "(cached) " >&6
4119 else
4120 ac_cv_prog_cc_c89=no
4121 ac_save_CC=$CC
4122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123 /* end confdefs.h. */
4124 #include <stdarg.h>
4125 #include <stdio.h>
4126 struct stat;
4127 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4128 struct buf { int x; };
4129 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4130 static char *e (p, i)
4131 char **p;
4132 int i;
4133 {
4134 return p[i];
4135 }
4136 static char *f (char * (*g) (char **, int), char **p, ...)
4137 {
4138 char *s;
4139 va_list v;
4140 va_start (v,p);
4141 s = g (p, va_arg (v,int));
4142 va_end (v);
4143 return s;
4144 }
4145
4146 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4147 function prototypes and stuff, but not '\xHH' hex character constants.
4148 These don't provoke an error unfortunately, instead are silently treated
4149 as 'x'. The following induces an error, until -std is added to get
4150 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4151 array size at least. It's necessary to write '\x00'==0 to get something
4152 that's true only with -std. */
4153 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4154
4155 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4156 inside strings and character constants. */
4157 #define FOO(x) 'x'
4158 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4159
4160 int test (int i, double x);
4161 struct s1 {int (*f) (int a);};
4162 struct s2 {int (*f) (double a);};
4163 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4164 int argc;
4165 char **argv;
4166 int
4167 main ()
4168 {
4169 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4170 ;
4171 return 0;
4172 }
4173 _ACEOF
4174 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4175 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4176 do
4177 CC="$ac_save_CC $ac_arg"
4178 if ac_fn_c_try_compile "$LINENO"; then :
4179 ac_cv_prog_cc_c89=$ac_arg
4180 fi
4181 rm -f core conftest.err conftest.$ac_objext
4182 test "x$ac_cv_prog_cc_c89" != "xno" && break
4183 done
4184 rm -f conftest.$ac_ext
4185 CC=$ac_save_CC
4186
4187 fi
4188 # AC_CACHE_VAL
4189 case "x$ac_cv_prog_cc_c89" in
4190 x)
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4192 $as_echo "none needed" >&6; } ;;
4193 xno)
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4195 $as_echo "unsupported" >&6; } ;;
4196 *)
4197 CC="$CC $ac_cv_prog_cc_c89"
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4199 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4200 esac
4201 if test "x$ac_cv_prog_cc_c89" != xno; then :
4202
4203 fi
4204
4205 ac_ext=c
4206 ac_cpp='$CPP $CPPFLAGS'
4207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4210
4211 ac_ext=c
4212 ac_cpp='$CPP $CPPFLAGS'
4213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4217 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4218 if ${am_cv_prog_cc_c_o+:} false; then :
4219 $as_echo_n "(cached) " >&6
4220 else
4221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4222 /* end confdefs.h. */
4223
4224 int
4225 main ()
4226 {
4227
4228 ;
4229 return 0;
4230 }
4231 _ACEOF
4232 # Make sure it works both with $CC and with simple cc.
4233 # Following AC_PROG_CC_C_O, we do the test twice because some
4234 # compilers refuse to overwrite an existing .o file with -o,
4235 # though they will create one.
4236 am_cv_prog_cc_c_o=yes
4237 for am_i in 1 2; do
4238 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4239 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4240 ac_status=$?
4241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242 (exit $ac_status); } \
4243 && test -f conftest2.$ac_objext; then
4244 : OK
4245 else
4246 am_cv_prog_cc_c_o=no
4247 break
4248 fi
4249 done
4250 rm -f core conftest*
4251 unset am_i
4252 fi
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4254 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4255 if test "$am_cv_prog_cc_c_o" != yes; then
4256 # Losing compiler, so override with the script.
4257 # FIXME: It is wrong to rewrite CC.
4258 # But if we don't then we get into trouble of one sort or another.
4259 # A longer-term fix would be to have automake use am__CC in this case,
4260 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4261 CC="$am_aux_dir/compile $CC"
4262 fi
4263 ac_ext=c
4264 ac_cpp='$CPP $CPPFLAGS'
4265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4268
4269 DEPDIR="${am__leading_dot}deps"
4270
4271 ac_config_commands="$ac_config_commands depfiles"
4272
4273
4274 am_make=${MAKE-make}
4275 cat > confinc << 'END'
4276 am__doit:
4277 @echo this is the am__doit target
4278 .PHONY: am__doit
4279 END
4280 # If we don't find an include directive, just comment out the code.
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4282 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4283 am__include="#"
4284 am__quote=
4285 _am_result=none
4286 # First try GNU make style include.
4287 echo "include confinc" > confmf
4288 # Ignore all kinds of additional output from 'make'.
4289 case `$am_make -s -f confmf 2> /dev/null` in #(
4290 *the\ am__doit\ target*)
4291 am__include=include
4292 am__quote=
4293 _am_result=GNU
4294 ;;
4295 esac
4296 # Now try BSD make style include.
4297 if test "$am__include" = "#"; then
4298 echo '.include "confinc"' > confmf
4299 case `$am_make -s -f confmf 2> /dev/null` in #(
4300 *the\ am__doit\ target*)
4301 am__include=.include
4302 am__quote="\""
4303 _am_result=BSD
4304 ;;
4305 esac
4306 fi
4307
4308
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4310 $as_echo "$_am_result" >&6; }
4311 rm -f confinc confmf
4312
4313 # Check whether --enable-dependency-tracking was given.
4314 if test "${enable_dependency_tracking+set}" = set; then :
4315 enableval=$enable_dependency_tracking;
4316 fi
4317
4318 if test "x$enable_dependency_tracking" != xno; then
4319 am_depcomp="$ac_aux_dir/depcomp"
4320 AMDEPBACKSLASH='\'
4321 am__nodep='_no'
4322 fi
4323 if test "x$enable_dependency_tracking" != xno; then
4324 AMDEP_TRUE=
4325 AMDEP_FALSE='#'
4326 else
4327 AMDEP_TRUE='#'
4328 AMDEP_FALSE=
4329 fi
4330
4331
4332
4333 depcc="$CC" am_compiler_list=
4334
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4336 $as_echo_n "checking dependency style of $depcc... " >&6; }
4337 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4338 $as_echo_n "(cached) " >&6
4339 else
4340 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4341 # We make a subdir and do the tests there. Otherwise we can end up
4342 # making bogus files that we don't know about and never remove. For
4343 # instance it was reported that on HP-UX the gcc test will end up
4344 # making a dummy file named 'D' -- because '-MD' means "put the output
4345 # in D".
4346 rm -rf conftest.dir
4347 mkdir conftest.dir
4348 # Copy depcomp to subdir because otherwise we won't find it if we're
4349 # using a relative directory.
4350 cp "$am_depcomp" conftest.dir
4351 cd conftest.dir
4352 # We will build objects and dependencies in a subdirectory because
4353 # it helps to detect inapplicable dependency modes. For instance
4354 # both Tru64's cc and ICC support -MD to output dependencies as a
4355 # side effect of compilation, but ICC will put the dependencies in
4356 # the current directory while Tru64 will put them in the object
4357 # directory.
4358 mkdir sub
4359
4360 am_cv_CC_dependencies_compiler_type=none
4361 if test "$am_compiler_list" = ""; then
4362 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4363 fi
4364 am__universal=false
4365 case " $depcc " in #(
4366 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4367 esac
4368
4369 for depmode in $am_compiler_list; do
4370 # Setup a source with many dependencies, because some compilers
4371 # like to wrap large dependency lists on column 80 (with \), and
4372 # we should not choose a depcomp mode which is confused by this.
4373 #
4374 # We need to recreate these files for each test, as the compiler may
4375 # overwrite some of them when testing with obscure command lines.
4376 # This happens at least with the AIX C compiler.
4377 : > sub/conftest.c
4378 for i in 1 2 3 4 5 6; do
4379 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4380 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4381 # Solaris 10 /bin/sh.
4382 echo '/* dummy */' > sub/conftst$i.h
4383 done
4384 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4385
4386 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4387 # mode. It turns out that the SunPro C++ compiler does not properly
4388 # handle '-M -o', and we need to detect this. Also, some Intel
4389 # versions had trouble with output in subdirs.
4390 am__obj=sub/conftest.${OBJEXT-o}
4391 am__minus_obj="-o $am__obj"
4392 case $depmode in
4393 gcc)
4394 # This depmode causes a compiler race in universal mode.
4395 test "$am__universal" = false || continue
4396 ;;
4397 nosideeffect)
4398 # After this tag, mechanisms are not by side-effect, so they'll
4399 # only be used when explicitly requested.
4400 if test "x$enable_dependency_tracking" = xyes; then
4401 continue
4402 else
4403 break
4404 fi
4405 ;;
4406 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4407 # This compiler won't grok '-c -o', but also, the minuso test has
4408 # not run yet. These depmodes are late enough in the game, and
4409 # so weak that their functioning should not be impacted.
4410 am__obj=conftest.${OBJEXT-o}
4411 am__minus_obj=
4412 ;;
4413 none) break ;;
4414 esac
4415 if depmode=$depmode \
4416 source=sub/conftest.c object=$am__obj \
4417 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4418 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4419 >/dev/null 2>conftest.err &&
4420 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4421 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4422 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4423 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4424 # icc doesn't choke on unknown options, it will just issue warnings
4425 # or remarks (even with -Werror). So we grep stderr for any message
4426 # that says an option was ignored or not supported.
4427 # When given -MP, icc 7.0 and 7.1 complain thusly:
4428 # icc: Command line warning: ignoring option '-M'; no argument required
4429 # The diagnosis changed in icc 8.0:
4430 # icc: Command line remark: option '-MP' not supported
4431 if (grep 'ignoring option' conftest.err ||
4432 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4433 am_cv_CC_dependencies_compiler_type=$depmode
4434 break
4435 fi
4436 fi
4437 done
4438
4439 cd ..
4440 rm -rf conftest.dir
4441 else
4442 am_cv_CC_dependencies_compiler_type=none
4443 fi
4444
4445 fi
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4447 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4448 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4449
4450 if
4451 test "x$enable_dependency_tracking" != xno \
4452 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4453 am__fastdepCC_TRUE=
4454 am__fastdepCC_FALSE='#'
4455 else
4456 am__fastdepCC_TRUE='#'
4457 am__fastdepCC_FALSE=
4458 fi
4459
4460
4461 ac_ext=c
4462 ac_cpp='$CPP $CPPFLAGS'
4463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4466
4467
4468 # automake 1.12 seems to require this, but automake 1.11 doesn't recognize it
4469
4470 if test -n "$ac_tool_prefix"; then
4471 for ac_prog in ar lib "link -lib"
4472 do
4473 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4474 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4476 $as_echo_n "checking for $ac_word... " >&6; }
4477 if ${ac_cv_prog_AR+:} false; then :
4478 $as_echo_n "(cached) " >&6
4479 else
4480 if test -n "$AR"; then
4481 ac_cv_prog_AR="$AR" # Let the user override the test.
4482 else
4483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484 for as_dir in $PATH
4485 do
4486 IFS=$as_save_IFS
4487 test -z "$as_dir" && as_dir=.
4488 for ac_exec_ext in '' $ac_executable_extensions; do
4489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4490 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4492 break 2
4493 fi
4494 done
4495 done
4496 IFS=$as_save_IFS
4497
4498 fi
4499 fi
4500 AR=$ac_cv_prog_AR
4501 if test -n "$AR"; then
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4503 $as_echo "$AR" >&6; }
4504 else
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4506 $as_echo "no" >&6; }
4507 fi
4508
4509
4510 test -n "$AR" && break
4511 done
4512 fi
4513 if test -z "$AR"; then
4514 ac_ct_AR=$AR
4515 for ac_prog in ar lib "link -lib"
4516 do
4517 # Extract the first word of "$ac_prog", so it can be a program name with args.
4518 set dummy $ac_prog; ac_word=$2
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4520 $as_echo_n "checking for $ac_word... " >&6; }
4521 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4522 $as_echo_n "(cached) " >&6
4523 else
4524 if test -n "$ac_ct_AR"; then
4525 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4526 else
4527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4528 for as_dir in $PATH
4529 do
4530 IFS=$as_save_IFS
4531 test -z "$as_dir" && as_dir=.
4532 for ac_exec_ext in '' $ac_executable_extensions; do
4533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4534 ac_cv_prog_ac_ct_AR="$ac_prog"
4535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4536 break 2
4537 fi
4538 done
4539 done
4540 IFS=$as_save_IFS
4541
4542 fi
4543 fi
4544 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4545 if test -n "$ac_ct_AR"; then
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4547 $as_echo "$ac_ct_AR" >&6; }
4548 else
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4550 $as_echo "no" >&6; }
4551 fi
4552
4553
4554 test -n "$ac_ct_AR" && break
4555 done
4556
4557 if test "x$ac_ct_AR" = x; then
4558 AR="false"
4559 else
4560 case $cross_compiling:$ac_tool_warned in
4561 yes:)
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4563 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4564 ac_tool_warned=yes ;;
4565 esac
4566 AR=$ac_ct_AR
4567 fi
4568 fi
4569
4570 : ${AR=ar}
4571
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4573 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4574 if ${am_cv_ar_interface+:} false; then :
4575 $as_echo_n "(cached) " >&6
4576 else
4577 ac_ext=c
4578 ac_cpp='$CPP $CPPFLAGS'
4579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4582
4583 am_cv_ar_interface=ar
4584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4585 /* end confdefs.h. */
4586 int some_variable = 0;
4587 _ACEOF
4588 if ac_fn_c_try_compile "$LINENO"; then :
4589 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4590 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4591 (eval $am_ar_try) 2>&5
4592 ac_status=$?
4593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4594 test $ac_status = 0; }
4595 if test "$ac_status" -eq 0; then
4596 am_cv_ar_interface=ar
4597 else
4598 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4599 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4600 (eval $am_ar_try) 2>&5
4601 ac_status=$?
4602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4603 test $ac_status = 0; }
4604 if test "$ac_status" -eq 0; then
4605 am_cv_ar_interface=lib
4606 else
4607 am_cv_ar_interface=unknown
4608 fi
4609 fi
4610 rm -f conftest.lib libconftest.a
4611
4612 fi
4613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4614 ac_ext=c
4615 ac_cpp='$CPP $CPPFLAGS'
4616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4619
4620 fi
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4622 $as_echo "$am_cv_ar_interface" >&6; }
4623
4624 case $am_cv_ar_interface in
4625 ar)
4626 ;;
4627 lib)
4628 # Microsoft lib, so override with the ar-lib wrapper script.
4629 # FIXME: It is wrong to rewrite AR.
4630 # But if we don't then we get into trouble of one sort or another.
4631 # A longer-term fix would be to have automake use am__AR in this case,
4632 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4633 # similar.
4634 AR="$am_aux_dir/ar-lib $AR"
4635 ;;
4636 unknown)
4637 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4638 ;;
4639 esac
4640
4641
4642 # Set up LibTool
4643 case `pwd` in
4644 *\ * | *\ *)
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4646 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4647 esac
4648
4649
4650
4651 macro_version='2.4.6'
4652 macro_revision='2.4.6'
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666 ltmain=$ac_aux_dir/ltmain.sh
4667
4668 # Backslashify metacharacters that are still active within
4669 # double-quoted strings.
4670 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4671
4672 # Same as above, but do not quote variable references.
4673 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4674
4675 # Sed substitution to delay expansion of an escaped shell variable in a
4676 # double_quote_subst'ed string.
4677 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4678
4679 # Sed substitution to delay expansion of an escaped single quote.
4680 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4681
4682 # Sed substitution to avoid accidental globbing in evaled expressions
4683 no_glob_subst='s/\*/\\\*/g'
4684
4685 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4686 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4687 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4688
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4690 $as_echo_n "checking how to print strings... " >&6; }
4691 # Test print first, because it will be a builtin if present.
4692 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4693 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4694 ECHO='print -r --'
4695 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4696 ECHO='printf %s\n'
4697 else
4698 # Use this function as a fallback that always works.
4699 func_fallback_echo ()
4700 {
4701 eval 'cat <<_LTECHO_EOF
4702 $1
4703 _LTECHO_EOF'
4704 }
4705 ECHO='func_fallback_echo'
4706 fi
4707
4708 # func_echo_all arg...
4709 # Invoke $ECHO with all args, space-separated.
4710 func_echo_all ()
4711 {
4712 $ECHO ""
4713 }
4714
4715 case $ECHO in
4716 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4717 $as_echo "printf" >&6; } ;;
4718 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4719 $as_echo "print -r" >&6; } ;;
4720 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4721 $as_echo "cat" >&6; } ;;
4722 esac
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4738 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4739 if ${ac_cv_path_SED+:} false; then :
4740 $as_echo_n "(cached) " >&6
4741 else
4742 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4743 for ac_i in 1 2 3 4 5 6 7; do
4744 ac_script="$ac_script$as_nl$ac_script"
4745 done
4746 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4747 { ac_script=; unset ac_script;}
4748 if test -z "$SED"; then
4749 ac_path_SED_found=false
4750 # Loop through the user's path and test for each of PROGNAME-LIST
4751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4752 for as_dir in $PATH
4753 do
4754 IFS=$as_save_IFS
4755 test -z "$as_dir" && as_dir=.
4756 for ac_prog in sed gsed; do
4757 for ac_exec_ext in '' $ac_executable_extensions; do
4758 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4759 as_fn_executable_p "$ac_path_SED" || continue
4760 # Check for GNU ac_path_SED and select it if it is found.
4761 # Check for GNU $ac_path_SED
4762 case `"$ac_path_SED" --version 2>&1` in
4763 *GNU*)
4764 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4765 *)
4766 ac_count=0
4767 $as_echo_n 0123456789 >"conftest.in"
4768 while :
4769 do
4770 cat "conftest.in" "conftest.in" >"conftest.tmp"
4771 mv "conftest.tmp" "conftest.in"
4772 cp "conftest.in" "conftest.nl"
4773 $as_echo '' >> "conftest.nl"
4774 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4775 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4776 as_fn_arith $ac_count + 1 && ac_count=$as_val
4777 if test $ac_count -gt ${ac_path_SED_max-0}; then
4778 # Best one so far, save it but keep looking for a better one
4779 ac_cv_path_SED="$ac_path_SED"
4780 ac_path_SED_max=$ac_count
4781 fi
4782 # 10*(2^10) chars as input seems more than enough
4783 test $ac_count -gt 10 && break
4784 done
4785 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4786 esac
4787
4788 $ac_path_SED_found && break 3
4789 done
4790 done
4791 done
4792 IFS=$as_save_IFS
4793 if test -z "$ac_cv_path_SED"; then
4794 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4795 fi
4796 else
4797 ac_cv_path_SED=$SED
4798 fi
4799
4800 fi
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4802 $as_echo "$ac_cv_path_SED" >&6; }
4803 SED="$ac_cv_path_SED"
4804 rm -f conftest.sed
4805
4806 test -z "$SED" && SED=sed
4807 Xsed="$SED -e 1s/^X//"
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4820 $as_echo_n "checking for fgrep... " >&6; }
4821 if ${ac_cv_path_FGREP+:} false; then :
4822 $as_echo_n "(cached) " >&6
4823 else
4824 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4825 then ac_cv_path_FGREP="$GREP -F"
4826 else
4827 if test -z "$FGREP"; then
4828 ac_path_FGREP_found=false
4829 # Loop through the user's path and test for each of PROGNAME-LIST
4830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4832 do
4833 IFS=$as_save_IFS
4834 test -z "$as_dir" && as_dir=.
4835 for ac_prog in fgrep; do
4836 for ac_exec_ext in '' $ac_executable_extensions; do
4837 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4838 as_fn_executable_p "$ac_path_FGREP" || continue
4839 # Check for GNU ac_path_FGREP and select it if it is found.
4840 # Check for GNU $ac_path_FGREP
4841 case `"$ac_path_FGREP" --version 2>&1` in
4842 *GNU*)
4843 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4844 *)
4845 ac_count=0
4846 $as_echo_n 0123456789 >"conftest.in"
4847 while :
4848 do
4849 cat "conftest.in" "conftest.in" >"conftest.tmp"
4850 mv "conftest.tmp" "conftest.in"
4851 cp "conftest.in" "conftest.nl"
4852 $as_echo 'FGREP' >> "conftest.nl"
4853 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4854 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4855 as_fn_arith $ac_count + 1 && ac_count=$as_val
4856 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4857 # Best one so far, save it but keep looking for a better one
4858 ac_cv_path_FGREP="$ac_path_FGREP"
4859 ac_path_FGREP_max=$ac_count
4860 fi
4861 # 10*(2^10) chars as input seems more than enough
4862 test $ac_count -gt 10 && break
4863 done
4864 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4865 esac
4866
4867 $ac_path_FGREP_found && break 3
4868 done
4869 done
4870 done
4871 IFS=$as_save_IFS
4872 if test -z "$ac_cv_path_FGREP"; then
4873 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4874 fi
4875 else
4876 ac_cv_path_FGREP=$FGREP
4877 fi
4878
4879 fi
4880 fi
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4882 $as_echo "$ac_cv_path_FGREP" >&6; }
4883 FGREP="$ac_cv_path_FGREP"
4884
4885
4886 test -z "$GREP" && GREP=grep
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906 # Check whether --with-gnu-ld was given.
4907 if test "${with_gnu_ld+set}" = set; then :
4908 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4909 else
4910 with_gnu_ld=no
4911 fi
4912
4913 ac_prog=ld
4914 if test yes = "$GCC"; then
4915 # Check if gcc -print-prog-name=ld gives a path.
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4917 $as_echo_n "checking for ld used by $CC... " >&6; }
4918 case $host in
4919 *-*-mingw*)
4920 # gcc leaves a trailing carriage return, which upsets mingw
4921 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4922 *)
4923 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4924 esac
4925 case $ac_prog in
4926 # Accept absolute paths.
4927 [\\/]* | ?:[\\/]*)
4928 re_direlt='/[^/][^/]*/\.\./'
4929 # Canonicalize the pathname of ld
4930 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4931 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4932 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4933 done
4934 test -z "$LD" && LD=$ac_prog
4935 ;;
4936 "")
4937 # If it fails, then pretend we aren't using GCC.
4938 ac_prog=ld
4939 ;;
4940 *)
4941 # If it is relative, then search for the first ld in PATH.
4942 with_gnu_ld=unknown
4943 ;;
4944 esac
4945 elif test yes = "$with_gnu_ld"; then
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4947 $as_echo_n "checking for GNU ld... " >&6; }
4948 else
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4950 $as_echo_n "checking for non-GNU ld... " >&6; }
4951 fi
4952 if ${lt_cv_path_LD+:} false; then :
4953 $as_echo_n "(cached) " >&6
4954 else
4955 if test -z "$LD"; then
4956 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4957 for ac_dir in $PATH; do
4958 IFS=$lt_save_ifs
4959 test -z "$ac_dir" && ac_dir=.
4960 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4961 lt_cv_path_LD=$ac_dir/$ac_prog
4962 # Check to see if the program is GNU ld. I'd rather use --version,
4963 # but apparently some variants of GNU ld only accept -v.
4964 # Break only if it was the GNU/non-GNU ld that we prefer.
4965 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4966 *GNU* | *'with BFD'*)
4967 test no != "$with_gnu_ld" && break
4968 ;;
4969 *)
4970 test yes != "$with_gnu_ld" && break
4971 ;;
4972 esac
4973 fi
4974 done
4975 IFS=$lt_save_ifs
4976 else
4977 lt_cv_path_LD=$LD # Let the user override the test with a path.
4978 fi
4979 fi
4980
4981 LD=$lt_cv_path_LD
4982 if test -n "$LD"; then
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4984 $as_echo "$LD" >&6; }
4985 else
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4987 $as_echo "no" >&6; }
4988 fi
4989 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4991 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4992 if ${lt_cv_prog_gnu_ld+:} false; then :
4993 $as_echo_n "(cached) " >&6
4994 else
4995 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4996 case `$LD -v 2>&1 </dev/null` in
4997 *GNU* | *'with BFD'*)
4998 lt_cv_prog_gnu_ld=yes
4999 ;;
5000 *)
5001 lt_cv_prog_gnu_ld=no
5002 ;;
5003 esac
5004 fi
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5006 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5007 with_gnu_ld=$lt_cv_prog_gnu_ld
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5018 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5019 if ${lt_cv_path_NM+:} false; then :
5020 $as_echo_n "(cached) " >&6
5021 else
5022 if test -n "$NM"; then
5023 # Let the user override the test.
5024 lt_cv_path_NM=$NM
5025 else
5026 lt_nm_to_check=${ac_tool_prefix}nm
5027 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5028 lt_nm_to_check="$lt_nm_to_check nm"
5029 fi
5030 for lt_tmp_nm in $lt_nm_to_check; do
5031 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5032 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5033 IFS=$lt_save_ifs
5034 test -z "$ac_dir" && ac_dir=.
5035 tmp_nm=$ac_dir/$lt_tmp_nm
5036 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5037 # Check to see if the nm accepts a BSD-compat flag.
5038 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5039 # nm: unknown option "B" ignored
5040 # Tru64's nm complains that /dev/null is an invalid object file
5041 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5042 case $build_os in
5043 mingw*) lt_bad_file=conftest.nm/nofile ;;
5044 *) lt_bad_file=/dev/null ;;
5045 esac
5046 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5047 *$lt_bad_file* | *'Invalid file or object type'*)
5048 lt_cv_path_NM="$tmp_nm -B"
5049 break 2
5050 ;;
5051 *)
5052 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5053 */dev/null*)
5054 lt_cv_path_NM="$tmp_nm -p"
5055 break 2
5056 ;;
5057 *)
5058 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5059 continue # so that we can try to find one that supports BSD flags
5060 ;;
5061 esac
5062 ;;
5063 esac
5064 fi
5065 done
5066 IFS=$lt_save_ifs
5067 done
5068 : ${lt_cv_path_NM=no}
5069 fi
5070 fi
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5072 $as_echo "$lt_cv_path_NM" >&6; }
5073 if test no != "$lt_cv_path_NM"; then
5074 NM=$lt_cv_path_NM
5075 else
5076 # Didn't find any BSD compatible name lister, look for dumpbin.
5077 if test -n "$DUMPBIN"; then :
5078 # Let the user override the test.
5079 else
5080 if test -n "$ac_tool_prefix"; then
5081 for ac_prog in dumpbin "link -dump"
5082 do
5083 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5084 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5086 $as_echo_n "checking for $ac_word... " >&6; }
5087 if ${ac_cv_prog_DUMPBIN+:} false; then :
5088 $as_echo_n "(cached) " >&6
5089 else
5090 if test -n "$DUMPBIN"; then
5091 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5092 else
5093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094 for as_dir in $PATH
5095 do
5096 IFS=$as_save_IFS
5097 test -z "$as_dir" && as_dir=.
5098 for ac_exec_ext in '' $ac_executable_extensions; do
5099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5100 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5102 break 2
5103 fi
5104 done
5105 done
5106 IFS=$as_save_IFS
5107
5108 fi
5109 fi
5110 DUMPBIN=$ac_cv_prog_DUMPBIN
5111 if test -n "$DUMPBIN"; then
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5113 $as_echo "$DUMPBIN" >&6; }
5114 else
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5116 $as_echo "no" >&6; }
5117 fi
5118
5119
5120 test -n "$DUMPBIN" && break
5121 done
5122 fi
5123 if test -z "$DUMPBIN"; then
5124 ac_ct_DUMPBIN=$DUMPBIN
5125 for ac_prog in dumpbin "link -dump"
5126 do
5127 # Extract the first word of "$ac_prog", so it can be a program name with args.
5128 set dummy $ac_prog; ac_word=$2
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5130 $as_echo_n "checking for $ac_word... " >&6; }
5131 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5132 $as_echo_n "(cached) " >&6
5133 else
5134 if test -n "$ac_ct_DUMPBIN"; then
5135 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5136 else
5137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138 for as_dir in $PATH
5139 do
5140 IFS=$as_save_IFS
5141 test -z "$as_dir" && as_dir=.
5142 for ac_exec_ext in '' $ac_executable_extensions; do
5143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5144 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5146 break 2
5147 fi
5148 done
5149 done
5150 IFS=$as_save_IFS
5151
5152 fi
5153 fi
5154 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5155 if test -n "$ac_ct_DUMPBIN"; then
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5157 $as_echo "$ac_ct_DUMPBIN" >&6; }
5158 else
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5160 $as_echo "no" >&6; }
5161 fi
5162
5163
5164 test -n "$ac_ct_DUMPBIN" && break
5165 done
5166
5167 if test "x$ac_ct_DUMPBIN" = x; then
5168 DUMPBIN=":"
5169 else
5170 case $cross_compiling:$ac_tool_warned in
5171 yes:)
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5174 ac_tool_warned=yes ;;
5175 esac
5176 DUMPBIN=$ac_ct_DUMPBIN
5177 fi
5178 fi
5179
5180 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5181 *COFF*)
5182 DUMPBIN="$DUMPBIN -symbols -headers"
5183 ;;
5184 *)
5185 DUMPBIN=:
5186 ;;
5187 esac
5188 fi
5189
5190 if test : != "$DUMPBIN"; then
5191 NM=$DUMPBIN
5192 fi
5193 fi
5194 test -z "$NM" && NM=nm
5195
5196
5197
5198
5199
5200
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5202 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5203 if ${lt_cv_nm_interface+:} false; then :
5204 $as_echo_n "(cached) " >&6
5205 else
5206 lt_cv_nm_interface="BSD nm"
5207 echo "int some_variable = 0;" > conftest.$ac_ext
5208 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5209 (eval "$ac_compile" 2>conftest.err)
5210 cat conftest.err >&5
5211 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5212 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5213 cat conftest.err >&5
5214 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5215 cat conftest.out >&5
5216 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5217 lt_cv_nm_interface="MS dumpbin"
5218 fi
5219 rm -f conftest*
5220 fi
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5222 $as_echo "$lt_cv_nm_interface" >&6; }
5223
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5225 $as_echo_n "checking whether ln -s works... " >&6; }
5226 LN_S=$as_ln_s
5227 if test "$LN_S" = "ln -s"; then
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5229 $as_echo "yes" >&6; }
5230 else
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5232 $as_echo "no, using $LN_S" >&6; }
5233 fi
5234
5235 # find the maximum length of command line arguments
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5237 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5238 if ${lt_cv_sys_max_cmd_len+:} false; then :
5239 $as_echo_n "(cached) " >&6
5240 else
5241 i=0
5242 teststring=ABCD
5243
5244 case $build_os in
5245 msdosdjgpp*)
5246 # On DJGPP, this test can blow up pretty badly due to problems in libc
5247 # (any single argument exceeding 2000 bytes causes a buffer overrun
5248 # during glob expansion). Even if it were fixed, the result of this
5249 # check would be larger than it should be.
5250 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5251 ;;
5252
5253 gnu*)
5254 # Under GNU Hurd, this test is not required because there is
5255 # no limit to the length of command line arguments.
5256 # Libtool will interpret -1 as no limit whatsoever
5257 lt_cv_sys_max_cmd_len=-1;
5258 ;;
5259
5260 cygwin* | mingw* | cegcc*)
5261 # On Win9x/ME, this test blows up -- it succeeds, but takes
5262 # about 5 minutes as the teststring grows exponentially.
5263 # Worse, since 9x/ME are not pre-emptively multitasking,
5264 # you end up with a "frozen" computer, even though with patience
5265 # the test eventually succeeds (with a max line length of 256k).
5266 # Instead, let's just punt: use the minimum linelength reported by
5267 # all of the supported platforms: 8192 (on NT/2K/XP).
5268 lt_cv_sys_max_cmd_len=8192;
5269 ;;
5270
5271 mint*)
5272 # On MiNT this can take a long time and run out of memory.
5273 lt_cv_sys_max_cmd_len=8192;
5274 ;;
5275
5276 amigaos*)
5277 # On AmigaOS with pdksh, this test takes hours, literally.
5278 # So we just punt and use a minimum line length of 8192.
5279 lt_cv_sys_max_cmd_len=8192;
5280 ;;
5281
5282 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5283 # This has been around since 386BSD, at least. Likely further.
5284 if test -x /sbin/sysctl; then
5285 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5286 elif test -x /usr/sbin/sysctl; then
5287 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5288 else
5289 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5290 fi
5291 # And add a safety zone
5292 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5293 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5294 ;;
5295
5296 interix*)
5297 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5298 lt_cv_sys_max_cmd_len=196608
5299 ;;
5300
5301 os2*)
5302 # The test takes a long time on OS/2.
5303 lt_cv_sys_max_cmd_len=8192
5304 ;;
5305
5306 osf*)
5307 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5308 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5309 # nice to cause kernel panics so lets avoid the loop below.
5310 # First set a reasonable default.
5311 lt_cv_sys_max_cmd_len=16384
5312 #
5313 if test -x /sbin/sysconfig; then
5314 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5315 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5316 esac
5317 fi
5318 ;;
5319 sco3.2v5*)
5320 lt_cv_sys_max_cmd_len=102400
5321 ;;
5322 sysv5* | sco5v6* | sysv4.2uw2*)
5323 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5324 if test -n "$kargmax"; then
5325 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5326 else
5327 lt_cv_sys_max_cmd_len=32768
5328 fi
5329 ;;
5330 *)
5331 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5332 if test -n "$lt_cv_sys_max_cmd_len" && \
5333 test undefined != "$lt_cv_sys_max_cmd_len"; then
5334 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5335 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5336 else
5337 # Make teststring a little bigger before we do anything with it.
5338 # a 1K string should be a reasonable start.
5339 for i in 1 2 3 4 5 6 7 8; do
5340 teststring=$teststring$teststring
5341 done
5342 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5343 # If test is not a shell built-in, we'll probably end up computing a
5344 # maximum length that is only half of the actual maximum length, but
5345 # we can't tell.
5346 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5347 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5348 test 17 != "$i" # 1/2 MB should be enough
5349 do
5350 i=`expr $i + 1`
5351 teststring=$teststring$teststring
5352 done
5353 # Only check the string length outside the loop.
5354 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5355 teststring=
5356 # Add a significant safety factor because C++ compilers can tack on
5357 # massive amounts of additional arguments before passing them to the
5358 # linker. It appears as though 1/2 is a usable value.
5359 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5360 fi
5361 ;;
5362 esac
5363
5364 fi
5365
5366 if test -n "$lt_cv_sys_max_cmd_len"; then
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5368 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5369 else
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5371 $as_echo "none" >&6; }
5372 fi
5373 max_cmd_len=$lt_cv_sys_max_cmd_len
5374
5375
5376
5377
5378
5379
5380 : ${CP="cp -f"}
5381 : ${MV="mv -f"}
5382 : ${RM="rm -f"}
5383
5384 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5385 lt_unset=unset
5386 else
5387 lt_unset=false
5388 fi
5389
5390
5391
5392
5393
5394 # test EBCDIC or ASCII
5395 case `echo X|tr X '\101'` in
5396 A) # ASCII based system
5397 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5398 lt_SP2NL='tr \040 \012'
5399 lt_NL2SP='tr \015\012 \040\040'
5400 ;;
5401 *) # EBCDIC based system
5402 lt_SP2NL='tr \100 \n'
5403 lt_NL2SP='tr \r\n \100\100'
5404 ;;
5405 esac
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5416 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5417 if ${lt_cv_to_host_file_cmd+:} false; then :
5418 $as_echo_n "(cached) " >&6
5419 else
5420 case $host in
5421 *-*-mingw* )
5422 case $build in
5423 *-*-mingw* ) # actually msys
5424 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5425 ;;
5426 *-*-cygwin* )
5427 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5428 ;;
5429 * ) # otherwise, assume *nix
5430 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5431 ;;
5432 esac
5433 ;;
5434 *-*-cygwin* )
5435 case $build in
5436 *-*-mingw* ) # actually msys
5437 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5438 ;;
5439 *-*-cygwin* )
5440 lt_cv_to_host_file_cmd=func_convert_file_noop
5441 ;;
5442 * ) # otherwise, assume *nix
5443 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5444 ;;
5445 esac
5446 ;;
5447 * ) # unhandled hosts (and "normal" native builds)
5448 lt_cv_to_host_file_cmd=func_convert_file_noop
5449 ;;
5450 esac
5451
5452 fi
5453
5454 to_host_file_cmd=$lt_cv_to_host_file_cmd
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5456 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5457
5458
5459
5460
5461
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5463 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5464 if ${lt_cv_to_tool_file_cmd+:} false; then :
5465 $as_echo_n "(cached) " >&6
5466 else
5467 #assume ordinary cross tools, or native build.
5468 lt_cv_to_tool_file_cmd=func_convert_file_noop
5469 case $host in
5470 *-*-mingw* )
5471 case $build in
5472 *-*-mingw* ) # actually msys
5473 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5474 ;;
5475 esac
5476 ;;
5477 esac
5478
5479 fi
5480
5481 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5483 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5484
5485
5486
5487
5488
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5490 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5491 if ${lt_cv_ld_reload_flag+:} false; then :
5492 $as_echo_n "(cached) " >&6
5493 else
5494 lt_cv_ld_reload_flag='-r'
5495 fi
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5497 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5498 reload_flag=$lt_cv_ld_reload_flag
5499 case $reload_flag in
5500 "" | " "*) ;;
5501 *) reload_flag=" $reload_flag" ;;
5502 esac
5503 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5504 case $host_os in
5505 cygwin* | mingw* | pw32* | cegcc*)
5506 if test yes != "$GCC"; then
5507 reload_cmds=false
5508 fi
5509 ;;
5510 darwin*)
5511 if test yes = "$GCC"; then
5512 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5513 else
5514 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5515 fi
5516 ;;
5517 esac
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527 if test -n "$ac_tool_prefix"; then
5528 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5529 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5531 $as_echo_n "checking for $ac_word... " >&6; }
5532 if ${ac_cv_prog_OBJDUMP+:} false; then :
5533 $as_echo_n "(cached) " >&6
5534 else
5535 if test -n "$OBJDUMP"; then
5536 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5537 else
5538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5539 for as_dir in $PATH
5540 do
5541 IFS=$as_save_IFS
5542 test -z "$as_dir" && as_dir=.
5543 for ac_exec_ext in '' $ac_executable_extensions; do
5544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5545 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5547 break 2
5548 fi
5549 done
5550 done
5551 IFS=$as_save_IFS
5552
5553 fi
5554 fi
5555 OBJDUMP=$ac_cv_prog_OBJDUMP
5556 if test -n "$OBJDUMP"; then
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5558 $as_echo "$OBJDUMP" >&6; }
5559 else
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5561 $as_echo "no" >&6; }
5562 fi
5563
5564
5565 fi
5566 if test -z "$ac_cv_prog_OBJDUMP"; then
5567 ac_ct_OBJDUMP=$OBJDUMP
5568 # Extract the first word of "objdump", so it can be a program name with args.
5569 set dummy objdump; ac_word=$2
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5571 $as_echo_n "checking for $ac_word... " >&6; }
5572 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5573 $as_echo_n "(cached) " >&6
5574 else
5575 if test -n "$ac_ct_OBJDUMP"; then
5576 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5577 else
5578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5579 for as_dir in $PATH
5580 do
5581 IFS=$as_save_IFS
5582 test -z "$as_dir" && as_dir=.
5583 for ac_exec_ext in '' $ac_executable_extensions; do
5584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5585 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5587 break 2
5588 fi
5589 done
5590 done
5591 IFS=$as_save_IFS
5592
5593 fi
5594 fi
5595 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5596 if test -n "$ac_ct_OBJDUMP"; then
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5598 $as_echo "$ac_ct_OBJDUMP" >&6; }
5599 else
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5601 $as_echo "no" >&6; }
5602 fi
5603
5604 if test "x$ac_ct_OBJDUMP" = x; then
5605 OBJDUMP="false"
5606 else
5607 case $cross_compiling:$ac_tool_warned in
5608 yes:)
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5610 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5611 ac_tool_warned=yes ;;
5612 esac
5613 OBJDUMP=$ac_ct_OBJDUMP
5614 fi
5615 else
5616 OBJDUMP="$ac_cv_prog_OBJDUMP"
5617 fi
5618
5619 test -z "$OBJDUMP" && OBJDUMP=objdump
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5630 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5631 if ${lt_cv_deplibs_check_method+:} false; then :
5632 $as_echo_n "(cached) " >&6
5633 else
5634 lt_cv_file_magic_cmd='$MAGIC_CMD'
5635 lt_cv_file_magic_test_file=
5636 lt_cv_deplibs_check_method='unknown'
5637 # Need to set the preceding variable on all platforms that support
5638 # interlibrary dependencies.
5639 # 'none' -- dependencies not supported.
5640 # 'unknown' -- same as none, but documents that we really don't know.
5641 # 'pass_all' -- all dependencies passed with no checks.
5642 # 'test_compile' -- check by making test program.
5643 # 'file_magic [[regex]]' -- check by looking for files in library path
5644 # that responds to the $file_magic_cmd with a given extended regex.
5645 # If you have 'file' or equivalent on your system and you're not sure
5646 # whether 'pass_all' will *always* work, you probably want this one.
5647
5648 case $host_os in
5649 aix[4-9]*)
5650 lt_cv_deplibs_check_method=pass_all
5651 ;;
5652
5653 beos*)
5654 lt_cv_deplibs_check_method=pass_all
5655 ;;
5656
5657 bsdi[45]*)
5658 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5659 lt_cv_file_magic_cmd='/usr/bin/file -L'
5660 lt_cv_file_magic_test_file=/shlib/libc.so
5661 ;;
5662
5663 cygwin*)
5664 # func_win32_libid is a shell function defined in ltmain.sh
5665 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5666 lt_cv_file_magic_cmd='func_win32_libid'
5667 ;;
5668
5669 mingw* | pw32*)
5670 # Base MSYS/MinGW do not provide the 'file' command needed by
5671 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5672 # unless we find 'file', for example because we are cross-compiling.
5673 if ( file / ) >/dev/null 2>&1; then
5674 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5675 lt_cv_file_magic_cmd='func_win32_libid'
5676 else
5677 # Keep this pattern in sync with the one in func_win32_libid.
5678 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5679 lt_cv_file_magic_cmd='$OBJDUMP -f'
5680 fi
5681 ;;
5682
5683 cegcc*)
5684 # use the weaker test based on 'objdump'. See mingw*.
5685 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5686 lt_cv_file_magic_cmd='$OBJDUMP -f'
5687 ;;
5688
5689 darwin* | rhapsody*)
5690 lt_cv_deplibs_check_method=pass_all
5691 ;;
5692
5693 freebsd* | dragonfly*)
5694 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5695 case $host_cpu in
5696 i*86 )
5697 # Not sure whether the presence of OpenBSD here was a mistake.
5698 # Let's accept both of them until this is cleared up.
5699 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5700 lt_cv_file_magic_cmd=/usr/bin/file
5701 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5702 ;;
5703 esac
5704 else
5705 lt_cv_deplibs_check_method=pass_all
5706 fi
5707 ;;
5708
5709 haiku*)
5710 lt_cv_deplibs_check_method=pass_all
5711 ;;
5712
5713 hpux10.20* | hpux11*)
5714 lt_cv_file_magic_cmd=/usr/bin/file
5715 case $host_cpu in
5716 ia64*)
5717 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5718 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5719 ;;
5720 hppa*64*)
5721 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]'
5722 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5723 ;;
5724 *)
5725 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5726 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5727 ;;
5728 esac
5729 ;;
5730
5731 interix[3-9]*)
5732 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5733 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5734 ;;
5735
5736 irix5* | irix6* | nonstopux*)
5737 case $LD in
5738 *-32|*"-32 ") libmagic=32-bit;;
5739 *-n32|*"-n32 ") libmagic=N32;;
5740 *-64|*"-64 ") libmagic=64-bit;;
5741 *) libmagic=never-match;;
5742 esac
5743 lt_cv_deplibs_check_method=pass_all
5744 ;;
5745
5746 # This must be glibc/ELF.
5747 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5748 lt_cv_deplibs_check_method=pass_all
5749 ;;
5750
5751 netbsd*)
5752 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5753 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5754 else
5755 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5756 fi
5757 ;;
5758
5759 newos6*)
5760 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5761 lt_cv_file_magic_cmd=/usr/bin/file
5762 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5763 ;;
5764
5765 *nto* | *qnx*)
5766 lt_cv_deplibs_check_method=pass_all
5767 ;;
5768
5769 openbsd* | bitrig*)
5770 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5771 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5772 else
5773 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5774 fi
5775 ;;
5776
5777 osf3* | osf4* | osf5*)
5778 lt_cv_deplibs_check_method=pass_all
5779 ;;
5780
5781 rdos*)
5782 lt_cv_deplibs_check_method=pass_all
5783 ;;
5784
5785 solaris*)
5786 lt_cv_deplibs_check_method=pass_all
5787 ;;
5788
5789 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5790 lt_cv_deplibs_check_method=pass_all
5791 ;;
5792
5793 sysv4 | sysv4.3*)
5794 case $host_vendor in
5795 motorola)
5796 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]'
5797 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5798 ;;
5799 ncr)
5800 lt_cv_deplibs_check_method=pass_all
5801 ;;
5802 sequent)
5803 lt_cv_file_magic_cmd='/bin/file'
5804 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5805 ;;
5806 sni)
5807 lt_cv_file_magic_cmd='/bin/file'
5808 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5809 lt_cv_file_magic_test_file=/lib/libc.so
5810 ;;
5811 siemens)
5812 lt_cv_deplibs_check_method=pass_all
5813 ;;
5814 pc)
5815 lt_cv_deplibs_check_method=pass_all
5816 ;;
5817 esac
5818 ;;
5819
5820 tpf*)
5821 lt_cv_deplibs_check_method=pass_all
5822 ;;
5823 os2*)
5824 lt_cv_deplibs_check_method=pass_all
5825 ;;
5826 esac
5827
5828 fi
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5830 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5831
5832 file_magic_glob=
5833 want_nocaseglob=no
5834 if test "$build" = "$host"; then
5835 case $host_os in
5836 mingw* | pw32*)
5837 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5838 want_nocaseglob=yes
5839 else
5840 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5841 fi
5842 ;;
5843 esac
5844 fi
5845
5846 file_magic_cmd=$lt_cv_file_magic_cmd
5847 deplibs_check_method=$lt_cv_deplibs_check_method
5848 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871 if test -n "$ac_tool_prefix"; then
5872 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5873 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5875 $as_echo_n "checking for $ac_word... " >&6; }
5876 if ${ac_cv_prog_DLLTOOL+:} false; then :
5877 $as_echo_n "(cached) " >&6
5878 else
5879 if test -n "$DLLTOOL"; then
5880 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5881 else
5882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883 for as_dir in $PATH
5884 do
5885 IFS=$as_save_IFS
5886 test -z "$as_dir" && as_dir=.
5887 for ac_exec_ext in '' $ac_executable_extensions; do
5888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5889 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5891 break 2
5892 fi
5893 done
5894 done
5895 IFS=$as_save_IFS
5896
5897 fi
5898 fi
5899 DLLTOOL=$ac_cv_prog_DLLTOOL
5900 if test -n "$DLLTOOL"; then
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5902 $as_echo "$DLLTOOL" >&6; }
5903 else
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5905 $as_echo "no" >&6; }
5906 fi
5907
5908
5909 fi
5910 if test -z "$ac_cv_prog_DLLTOOL"; then
5911 ac_ct_DLLTOOL=$DLLTOOL
5912 # Extract the first word of "dlltool", so it can be a program name with args.
5913 set dummy dlltool; ac_word=$2
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5915 $as_echo_n "checking for $ac_word... " >&6; }
5916 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5917 $as_echo_n "(cached) " >&6
5918 else
5919 if test -n "$ac_ct_DLLTOOL"; then
5920 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5921 else
5922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5923 for as_dir in $PATH
5924 do
5925 IFS=$as_save_IFS
5926 test -z "$as_dir" && as_dir=.
5927 for ac_exec_ext in '' $ac_executable_extensions; do
5928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5929 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5931 break 2
5932 fi
5933 done
5934 done
5935 IFS=$as_save_IFS
5936
5937 fi
5938 fi
5939 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5940 if test -n "$ac_ct_DLLTOOL"; then
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5942 $as_echo "$ac_ct_DLLTOOL" >&6; }
5943 else
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5945 $as_echo "no" >&6; }
5946 fi
5947
5948 if test "x$ac_ct_DLLTOOL" = x; then
5949 DLLTOOL="false"
5950 else
5951 case $cross_compiling:$ac_tool_warned in
5952 yes:)
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5954 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5955 ac_tool_warned=yes ;;
5956 esac
5957 DLLTOOL=$ac_ct_DLLTOOL
5958 fi
5959 else
5960 DLLTOOL="$ac_cv_prog_DLLTOOL"
5961 fi
5962
5963 test -z "$DLLTOOL" && DLLTOOL=dlltool
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5975 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5976 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5977 $as_echo_n "(cached) " >&6
5978 else
5979 lt_cv_sharedlib_from_linklib_cmd='unknown'
5980
5981 case $host_os in
5982 cygwin* | mingw* | pw32* | cegcc*)
5983 # two different shell functions defined in ltmain.sh;
5984 # decide which one to use based on capabilities of $DLLTOOL
5985 case `$DLLTOOL --help 2>&1` in
5986 *--identify-strict*)
5987 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5988 ;;
5989 *)
5990 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5991 ;;
5992 esac
5993 ;;
5994 *)
5995 # fallback: assume linklib IS sharedlib
5996 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5997 ;;
5998 esac
5999
6000 fi
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6002 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6003 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6004 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6005
6006
6007
6008
6009
6010
6011
6012 if test -n "$ac_tool_prefix"; then
6013 for ac_prog in ar
6014 do
6015 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6016 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6018 $as_echo_n "checking for $ac_word... " >&6; }
6019 if ${ac_cv_prog_AR+:} false; then :
6020 $as_echo_n "(cached) " >&6
6021 else
6022 if test -n "$AR"; then
6023 ac_cv_prog_AR="$AR" # Let the user override the test.
6024 else
6025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6026 for as_dir in $PATH
6027 do
6028 IFS=$as_save_IFS
6029 test -z "$as_dir" && as_dir=.
6030 for ac_exec_ext in '' $ac_executable_extensions; do
6031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6032 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6034 break 2
6035 fi
6036 done
6037 done
6038 IFS=$as_save_IFS
6039
6040 fi
6041 fi
6042 AR=$ac_cv_prog_AR
6043 if test -n "$AR"; then
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6045 $as_echo "$AR" >&6; }
6046 else
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6048 $as_echo "no" >&6; }
6049 fi
6050
6051
6052 test -n "$AR" && break
6053 done
6054 fi
6055 if test -z "$AR"; then
6056 ac_ct_AR=$AR
6057 for ac_prog in ar
6058 do
6059 # Extract the first word of "$ac_prog", so it can be a program name with args.
6060 set dummy $ac_prog; ac_word=$2
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6062 $as_echo_n "checking for $ac_word... " >&6; }
6063 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6064 $as_echo_n "(cached) " >&6
6065 else
6066 if test -n "$ac_ct_AR"; then
6067 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6068 else
6069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6070 for as_dir in $PATH
6071 do
6072 IFS=$as_save_IFS
6073 test -z "$as_dir" && as_dir=.
6074 for ac_exec_ext in '' $ac_executable_extensions; do
6075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6076 ac_cv_prog_ac_ct_AR="$ac_prog"
6077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6078 break 2
6079 fi
6080 done
6081 done
6082 IFS=$as_save_IFS
6083
6084 fi
6085 fi
6086 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6087 if test -n "$ac_ct_AR"; then
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6089 $as_echo "$ac_ct_AR" >&6; }
6090 else
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6092 $as_echo "no" >&6; }
6093 fi
6094
6095
6096 test -n "$ac_ct_AR" && break
6097 done
6098
6099 if test "x$ac_ct_AR" = x; then
6100 AR="false"
6101 else
6102 case $cross_compiling:$ac_tool_warned in
6103 yes:)
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6105 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6106 ac_tool_warned=yes ;;
6107 esac
6108 AR=$ac_ct_AR
6109 fi
6110 fi
6111
6112 : ${AR=ar}
6113 : ${AR_FLAGS=cru}
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6126 $as_echo_n "checking for archiver @FILE support... " >&6; }
6127 if ${lt_cv_ar_at_file+:} false; then :
6128 $as_echo_n "(cached) " >&6
6129 else
6130 lt_cv_ar_at_file=no
6131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6132 /* end confdefs.h. */
6133
6134 int
6135 main ()
6136 {
6137
6138 ;
6139 return 0;
6140 }
6141 _ACEOF
6142 if ac_fn_c_try_compile "$LINENO"; then :
6143 echo conftest.$ac_objext > conftest.lst
6144 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6145 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6146 (eval $lt_ar_try) 2>&5
6147 ac_status=$?
6148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6149 test $ac_status = 0; }
6150 if test 0 -eq "$ac_status"; then
6151 # Ensure the archiver fails upon bogus file names.
6152 rm -f conftest.$ac_objext libconftest.a
6153 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6154 (eval $lt_ar_try) 2>&5
6155 ac_status=$?
6156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6157 test $ac_status = 0; }
6158 if test 0 -ne "$ac_status"; then
6159 lt_cv_ar_at_file=@
6160 fi
6161 fi
6162 rm -f conftest.* libconftest.a
6163
6164 fi
6165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6166
6167 fi
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6169 $as_echo "$lt_cv_ar_at_file" >&6; }
6170
6171 if test no = "$lt_cv_ar_at_file"; then
6172 archiver_list_spec=
6173 else
6174 archiver_list_spec=$lt_cv_ar_at_file
6175 fi
6176
6177
6178
6179
6180
6181
6182
6183 if test -n "$ac_tool_prefix"; then
6184 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6185 set dummy ${ac_tool_prefix}strip; ac_word=$2
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6187 $as_echo_n "checking for $ac_word... " >&6; }
6188 if ${ac_cv_prog_STRIP+:} false; then :
6189 $as_echo_n "(cached) " >&6
6190 else
6191 if test -n "$STRIP"; then
6192 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6193 else
6194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195 for as_dir in $PATH
6196 do
6197 IFS=$as_save_IFS
6198 test -z "$as_dir" && as_dir=.
6199 for ac_exec_ext in '' $ac_executable_extensions; do
6200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6201 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6203 break 2
6204 fi
6205 done
6206 done
6207 IFS=$as_save_IFS
6208
6209 fi
6210 fi
6211 STRIP=$ac_cv_prog_STRIP
6212 if test -n "$STRIP"; then
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6214 $as_echo "$STRIP" >&6; }
6215 else
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6217 $as_echo "no" >&6; }
6218 fi
6219
6220
6221 fi
6222 if test -z "$ac_cv_prog_STRIP"; then
6223 ac_ct_STRIP=$STRIP
6224 # Extract the first word of "strip", so it can be a program name with args.
6225 set dummy strip; ac_word=$2
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6227 $as_echo_n "checking for $ac_word... " >&6; }
6228 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6229 $as_echo_n "(cached) " >&6
6230 else
6231 if test -n "$ac_ct_STRIP"; then
6232 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6233 else
6234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6235 for as_dir in $PATH
6236 do
6237 IFS=$as_save_IFS
6238 test -z "$as_dir" && as_dir=.
6239 for ac_exec_ext in '' $ac_executable_extensions; do
6240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6241 ac_cv_prog_ac_ct_STRIP="strip"
6242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6243 break 2
6244 fi
6245 done
6246 done
6247 IFS=$as_save_IFS
6248
6249 fi
6250 fi
6251 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6252 if test -n "$ac_ct_STRIP"; then
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6254 $as_echo "$ac_ct_STRIP" >&6; }
6255 else
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6257 $as_echo "no" >&6; }
6258 fi
6259
6260 if test "x$ac_ct_STRIP" = x; then
6261 STRIP=":"
6262 else
6263 case $cross_compiling:$ac_tool_warned in
6264 yes:)
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6267 ac_tool_warned=yes ;;
6268 esac
6269 STRIP=$ac_ct_STRIP
6270 fi
6271 else
6272 STRIP="$ac_cv_prog_STRIP"
6273 fi
6274
6275 test -z "$STRIP" && STRIP=:
6276
6277
6278
6279
6280
6281
6282 if test -n "$ac_tool_prefix"; then
6283 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6284 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6286 $as_echo_n "checking for $ac_word... " >&6; }
6287 if ${ac_cv_prog_RANLIB+:} false; then :
6288 $as_echo_n "(cached) " >&6
6289 else
6290 if test -n "$RANLIB"; then
6291 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6292 else
6293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294 for as_dir in $PATH
6295 do
6296 IFS=$as_save_IFS
6297 test -z "$as_dir" && as_dir=.
6298 for ac_exec_ext in '' $ac_executable_extensions; do
6299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6300 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6302 break 2
6303 fi
6304 done
6305 done
6306 IFS=$as_save_IFS
6307
6308 fi
6309 fi
6310 RANLIB=$ac_cv_prog_RANLIB
6311 if test -n "$RANLIB"; then
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6313 $as_echo "$RANLIB" >&6; }
6314 else
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6316 $as_echo "no" >&6; }
6317 fi
6318
6319
6320 fi
6321 if test -z "$ac_cv_prog_RANLIB"; then
6322 ac_ct_RANLIB=$RANLIB
6323 # Extract the first word of "ranlib", so it can be a program name with args.
6324 set dummy ranlib; ac_word=$2
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6326 $as_echo_n "checking for $ac_word... " >&6; }
6327 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6328 $as_echo_n "(cached) " >&6
6329 else
6330 if test -n "$ac_ct_RANLIB"; then
6331 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6332 else
6333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6334 for as_dir in $PATH
6335 do
6336 IFS=$as_save_IFS
6337 test -z "$as_dir" && as_dir=.
6338 for ac_exec_ext in '' $ac_executable_extensions; do
6339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6340 ac_cv_prog_ac_ct_RANLIB="ranlib"
6341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6342 break 2
6343 fi
6344 done
6345 done
6346 IFS=$as_save_IFS
6347
6348 fi
6349 fi
6350 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6351 if test -n "$ac_ct_RANLIB"; then
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6353 $as_echo "$ac_ct_RANLIB" >&6; }
6354 else
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6356 $as_echo "no" >&6; }
6357 fi
6358
6359 if test "x$ac_ct_RANLIB" = x; then
6360 RANLIB=":"
6361 else
6362 case $cross_compiling:$ac_tool_warned in
6363 yes:)
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6365 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6366 ac_tool_warned=yes ;;
6367 esac
6368 RANLIB=$ac_ct_RANLIB
6369 fi
6370 else
6371 RANLIB="$ac_cv_prog_RANLIB"
6372 fi
6373
6374 test -z "$RANLIB" && RANLIB=:
6375
6376
6377
6378
6379
6380
6381 # Determine commands to create old-style static archives.
6382 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6383 old_postinstall_cmds='chmod 644 $oldlib'
6384 old_postuninstall_cmds=
6385
6386 if test -n "$RANLIB"; then
6387 case $host_os in
6388 bitrig* | openbsd*)
6389 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6390 ;;
6391 *)
6392 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6393 ;;
6394 esac
6395 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6396 fi
6397
6398 case $host_os in
6399 darwin*)
6400 lock_old_archive_extraction=yes ;;
6401 *)
6402 lock_old_archive_extraction=no ;;
6403 esac
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443 # If no C compiler was specified, use CC.
6444 LTCC=${LTCC-"$CC"}
6445
6446 # If no C compiler flags were specified, use CFLAGS.
6447 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6448
6449 # Allow CC to be a program name with arguments.
6450 compiler=$CC
6451
6452
6453 # Check for command to grab the raw symbol name followed by C symbol from nm.
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6455 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6456 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6457 $as_echo_n "(cached) " >&6
6458 else
6459
6460 # These are sane defaults that work on at least a few old systems.
6461 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6462
6463 # Character class describing NM global symbol codes.
6464 symcode='[BCDEGRST]'
6465
6466 # Regexp to match symbols that can be accessed directly from C.
6467 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6468
6469 # Define system-specific variables.
6470 case $host_os in
6471 aix*)
6472 symcode='[BCDT]'
6473 ;;
6474 cygwin* | mingw* | pw32* | cegcc*)
6475 symcode='[ABCDGISTW]'
6476 ;;
6477 hpux*)
6478 if test ia64 = "$host_cpu"; then
6479 symcode='[ABCDEGRST]'
6480 fi
6481 ;;
6482 irix* | nonstopux*)
6483 symcode='[BCDEGRST]'
6484 ;;
6485 osf*)
6486 symcode='[BCDEGQRST]'
6487 ;;
6488 solaris*)
6489 symcode='[BDRT]'
6490 ;;
6491 sco3.2v5*)
6492 symcode='[DT]'
6493 ;;
6494 sysv4.2uw2*)
6495 symcode='[DT]'
6496 ;;
6497 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6498 symcode='[ABDT]'
6499 ;;
6500 sysv4)
6501 symcode='[DFNSTU]'
6502 ;;
6503 esac
6504
6505 # If we're using GNU nm, then use its standard symbol codes.
6506 case `$NM -V 2>&1` in
6507 *GNU* | *'with BFD'*)
6508 symcode='[ABCDGIRSTW]' ;;
6509 esac
6510
6511 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6512 # Gets list of data symbols to import.
6513 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6514 # Adjust the below global symbol transforms to fixup imported variables.
6515 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6516 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6517 lt_c_name_lib_hook="\
6518 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6519 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6520 else
6521 # Disable hooks by default.
6522 lt_cv_sys_global_symbol_to_import=
6523 lt_cdecl_hook=
6524 lt_c_name_hook=
6525 lt_c_name_lib_hook=
6526 fi
6527
6528 # Transform an extracted symbol line into a proper C declaration.
6529 # Some systems (esp. on ia64) link data and code symbols differently,
6530 # so use this general approach.
6531 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6532 $lt_cdecl_hook\
6533 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6534 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6535
6536 # Transform an extracted symbol line into symbol name and symbol address
6537 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6538 $lt_c_name_hook\
6539 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6540 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6541
6542 # Transform an extracted symbol line into symbol name with lib prefix and
6543 # symbol address.
6544 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6545 $lt_c_name_lib_hook\
6546 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6547 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6548 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6549
6550 # Handle CRLF in mingw tool chain
6551 opt_cr=
6552 case $build_os in
6553 mingw*)
6554 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6555 ;;
6556 esac
6557
6558 # Try without a prefix underscore, then with it.
6559 for ac_symprfx in "" "_"; do
6560
6561 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6562 symxfrm="\\1 $ac_symprfx\\2 \\2"
6563
6564 # Write the raw and C identifiers.
6565 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6566 # Fake it for dumpbin and say T for any non-static function,
6567 # D for any global variable and I for any imported variable.
6568 # Also find C++ and __fastcall symbols from MSVC++,
6569 # which start with @ or ?.
6570 lt_cv_sys_global_symbol_pipe="$AWK '"\
6571 " {last_section=section; section=\$ 3};"\
6572 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6573 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6574 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6575 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6576 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6577 " \$ 0!~/External *\|/{next};"\
6578 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6579 " {if(hide[section]) next};"\
6580 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6581 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6582 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6583 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6584 " ' prfx=^$ac_symprfx"
6585 else
6586 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6587 fi
6588 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6589
6590 # Check to see that the pipe works correctly.
6591 pipe_works=no
6592
6593 rm -f conftest*
6594 cat > conftest.$ac_ext <<_LT_EOF
6595 #ifdef __cplusplus
6596 extern "C" {
6597 #endif
6598 char nm_test_var;
6599 void nm_test_func(void);
6600 void nm_test_func(void){}
6601 #ifdef __cplusplus
6602 }
6603 #endif
6604 int main(){nm_test_var='a';nm_test_func();return(0);}
6605 _LT_EOF
6606
6607 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6608 (eval $ac_compile) 2>&5
6609 ac_status=$?
6610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6611 test $ac_status = 0; }; then
6612 # Now try to grab the symbols.
6613 nlist=conftest.nm
6614 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6615 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6616 ac_status=$?
6617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6618 test $ac_status = 0; } && test -s "$nlist"; then
6619 # Try sorting and uniquifying the output.
6620 if sort "$nlist" | uniq > "$nlist"T; then
6621 mv -f "$nlist"T "$nlist"
6622 else
6623 rm -f "$nlist"T
6624 fi
6625
6626 # Make sure that we snagged all the symbols we need.
6627 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6628 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6629 cat <<_LT_EOF > conftest.$ac_ext
6630 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6631 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6632 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6633 relocations are performed -- see ld's documentation on pseudo-relocs. */
6634 # define LT_DLSYM_CONST
6635 #elif defined __osf__
6636 /* This system does not cope well with relocations in const data. */
6637 # define LT_DLSYM_CONST
6638 #else
6639 # define LT_DLSYM_CONST const
6640 #endif
6641
6642 #ifdef __cplusplus
6643 extern "C" {
6644 #endif
6645
6646 _LT_EOF
6647 # Now generate the symbol file.
6648 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6649
6650 cat <<_LT_EOF >> conftest.$ac_ext
6651
6652 /* The mapping between symbol names and symbols. */
6653 LT_DLSYM_CONST struct {
6654 const char *name;
6655 void *address;
6656 }
6657 lt__PROGRAM__LTX_preloaded_symbols[] =
6658 {
6659 { "@PROGRAM@", (void *) 0 },
6660 _LT_EOF
6661 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6662 cat <<\_LT_EOF >> conftest.$ac_ext
6663 {0, (void *) 0}
6664 };
6665
6666 /* This works around a problem in FreeBSD linker */
6667 #ifdef FREEBSD_WORKAROUND
6668 static const void *lt_preloaded_setup() {
6669 return lt__PROGRAM__LTX_preloaded_symbols;
6670 }
6671 #endif
6672
6673 #ifdef __cplusplus
6674 }
6675 #endif
6676 _LT_EOF
6677 # Now try linking the two files.
6678 mv conftest.$ac_objext conftstm.$ac_objext
6679 lt_globsym_save_LIBS=$LIBS
6680 lt_globsym_save_CFLAGS=$CFLAGS
6681 LIBS=conftstm.$ac_objext
6682 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6683 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6684 (eval $ac_link) 2>&5
6685 ac_status=$?
6686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6687 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6688 pipe_works=yes
6689 fi
6690 LIBS=$lt_globsym_save_LIBS
6691 CFLAGS=$lt_globsym_save_CFLAGS
6692 else
6693 echo "cannot find nm_test_func in $nlist" >&5
6694 fi
6695 else
6696 echo "cannot find nm_test_var in $nlist" >&5
6697 fi
6698 else
6699 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6700 fi
6701 else
6702 echo "$progname: failed program was:" >&5
6703 cat conftest.$ac_ext >&5
6704 fi
6705 rm -rf conftest* conftst*
6706
6707 # Do not use the global_symbol_pipe unless it works.
6708 if test yes = "$pipe_works"; then
6709 break
6710 else
6711 lt_cv_sys_global_symbol_pipe=
6712 fi
6713 done
6714
6715 fi
6716
6717 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6718 lt_cv_sys_global_symbol_to_cdecl=
6719 fi
6720 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6722 $as_echo "failed" >&6; }
6723 else
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6725 $as_echo "ok" >&6; }
6726 fi
6727
6728 # Response file support.
6729 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6730 nm_file_list_spec='@'
6731 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6732 nm_file_list_spec='@'
6733 fi
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6772 $as_echo_n "checking for sysroot... " >&6; }
6773
6774 # Check whether --with-sysroot was given.
6775 if test "${with_sysroot+set}" = set; then :
6776 withval=$with_sysroot;
6777 else
6778 with_sysroot=no
6779 fi
6780
6781
6782 lt_sysroot=
6783 case $with_sysroot in #(
6784 yes)
6785 if test yes = "$GCC"; then
6786 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6787 fi
6788 ;; #(
6789 /*)
6790 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6791 ;; #(
6792 no|'')
6793 ;; #(
6794 *)
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6796 $as_echo "$with_sysroot" >&6; }
6797 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6798 ;;
6799 esac
6800
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6802 $as_echo "${lt_sysroot:-no}" >&6; }
6803
6804
6805
6806
6807
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6809 $as_echo_n "checking for a working dd... " >&6; }
6810 if ${ac_cv_path_lt_DD+:} false; then :
6811 $as_echo_n "(cached) " >&6
6812 else
6813 printf 0123456789abcdef0123456789abcdef >conftest.i
6814 cat conftest.i conftest.i >conftest2.i
6815 : ${lt_DD:=$DD}
6816 if test -z "$lt_DD"; then
6817 ac_path_lt_DD_found=false
6818 # Loop through the user's path and test for each of PROGNAME-LIST
6819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820 for as_dir in $PATH
6821 do
6822 IFS=$as_save_IFS
6823 test -z "$as_dir" && as_dir=.
6824 for ac_prog in dd; do
6825 for ac_exec_ext in '' $ac_executable_extensions; do
6826 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6827 as_fn_executable_p "$ac_path_lt_DD" || continue
6828 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6829 cmp -s conftest.i conftest.out \
6830 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6831 fi
6832 $ac_path_lt_DD_found && break 3
6833 done
6834 done
6835 done
6836 IFS=$as_save_IFS
6837 if test -z "$ac_cv_path_lt_DD"; then
6838 :
6839 fi
6840 else
6841 ac_cv_path_lt_DD=$lt_DD
6842 fi
6843
6844 rm -f conftest.i conftest2.i conftest.out
6845 fi
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6847 $as_echo "$ac_cv_path_lt_DD" >&6; }
6848
6849
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6851 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6852 if ${lt_cv_truncate_bin+:} false; then :
6853 $as_echo_n "(cached) " >&6
6854 else
6855 printf 0123456789abcdef0123456789abcdef >conftest.i
6856 cat conftest.i conftest.i >conftest2.i
6857 lt_cv_truncate_bin=
6858 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6859 cmp -s conftest.i conftest.out \
6860 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6861 fi
6862 rm -f conftest.i conftest2.i conftest.out
6863 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6864 fi
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6866 $as_echo "$lt_cv_truncate_bin" >&6; }
6867
6868
6869
6870
6871
6872
6873
6874 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6875 func_cc_basename ()
6876 {
6877 for cc_temp in $*""; do
6878 case $cc_temp in
6879 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6880 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6881 \-*) ;;
6882 *) break;;
6883 esac
6884 done
6885 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6886 }
6887
6888 # Check whether --enable-libtool-lock was given.
6889 if test "${enable_libtool_lock+set}" = set; then :
6890 enableval=$enable_libtool_lock;
6891 fi
6892
6893 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6894
6895 # Some flags need to be propagated to the compiler or linker for good
6896 # libtool support.
6897 case $host in
6898 ia64-*-hpux*)
6899 # Find out what ABI is being produced by ac_compile, and set mode
6900 # options accordingly.
6901 echo 'int i;' > conftest.$ac_ext
6902 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6903 (eval $ac_compile) 2>&5
6904 ac_status=$?
6905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6906 test $ac_status = 0; }; then
6907 case `/usr/bin/file conftest.$ac_objext` in
6908 *ELF-32*)
6909 HPUX_IA64_MODE=32
6910 ;;
6911 *ELF-64*)
6912 HPUX_IA64_MODE=64
6913 ;;
6914 esac
6915 fi
6916 rm -rf conftest*
6917 ;;
6918 *-*-irix6*)
6919 # Find out what ABI is being produced by ac_compile, and set linker
6920 # options accordingly.
6921 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6922 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6923 (eval $ac_compile) 2>&5
6924 ac_status=$?
6925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6926 test $ac_status = 0; }; then
6927 if test yes = "$lt_cv_prog_gnu_ld"; then
6928 case `/usr/bin/file conftest.$ac_objext` in
6929 *32-bit*)
6930 LD="${LD-ld} -melf32bsmip"
6931 ;;
6932 *N32*)
6933 LD="${LD-ld} -melf32bmipn32"
6934 ;;
6935 *64-bit*)
6936 LD="${LD-ld} -melf64bmip"
6937 ;;
6938 esac
6939 else
6940 case `/usr/bin/file conftest.$ac_objext` in
6941 *32-bit*)
6942 LD="${LD-ld} -32"
6943 ;;
6944 *N32*)
6945 LD="${LD-ld} -n32"
6946 ;;
6947 *64-bit*)
6948 LD="${LD-ld} -64"
6949 ;;
6950 esac
6951 fi
6952 fi
6953 rm -rf conftest*
6954 ;;
6955
6956 mips64*-*linux*)
6957 # Find out what ABI is being produced by ac_compile, and set linker
6958 # options accordingly.
6959 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6960 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6961 (eval $ac_compile) 2>&5
6962 ac_status=$?
6963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6964 test $ac_status = 0; }; then
6965 emul=elf
6966 case `/usr/bin/file conftest.$ac_objext` in
6967 *32-bit*)
6968 emul="${emul}32"
6969 ;;
6970 *64-bit*)
6971 emul="${emul}64"
6972 ;;
6973 esac
6974 case `/usr/bin/file conftest.$ac_objext` in
6975 *MSB*)
6976 emul="${emul}btsmip"
6977 ;;
6978 *LSB*)
6979 emul="${emul}ltsmip"
6980 ;;
6981 esac
6982 case `/usr/bin/file conftest.$ac_objext` in
6983 *N32*)
6984 emul="${emul}n32"
6985 ;;
6986 esac
6987 LD="${LD-ld} -m $emul"
6988 fi
6989 rm -rf conftest*
6990 ;;
6991
6992 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6993 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6994 # Find out what ABI is being produced by ac_compile, and set linker
6995 # options accordingly. Note that the listed cases only cover the
6996 # situations where additional linker options are needed (such as when
6997 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6998 # vice versa); the common cases where no linker options are needed do
6999 # not appear in the list.
7000 echo 'int i;' > conftest.$ac_ext
7001 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7002 (eval $ac_compile) 2>&5
7003 ac_status=$?
7004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7005 test $ac_status = 0; }; then
7006 case `/usr/bin/file conftest.o` in
7007 *32-bit*)
7008 case $host in
7009 x86_64-*kfreebsd*-gnu)
7010 LD="${LD-ld} -m elf_i386_fbsd"
7011 ;;
7012 x86_64-*linux*)
7013 case `/usr/bin/file conftest.o` in
7014 *x86-64*)
7015 LD="${LD-ld} -m elf32_x86_64"
7016 ;;
7017 *)
7018 LD="${LD-ld} -m elf_i386"
7019 ;;
7020 esac
7021 ;;
7022 powerpc64le-*linux*)
7023 LD="${LD-ld} -m elf32lppclinux"
7024 ;;
7025 powerpc64-*linux*)
7026 LD="${LD-ld} -m elf32ppclinux"
7027 ;;
7028 s390x-*linux*)
7029 LD="${LD-ld} -m elf_s390"
7030 ;;
7031 sparc64-*linux*)
7032 LD="${LD-ld} -m elf32_sparc"
7033 ;;
7034 esac
7035 ;;
7036 *64-bit*)
7037 case $host in
7038 x86_64-*kfreebsd*-gnu)
7039 LD="${LD-ld} -m elf_x86_64_fbsd"
7040 ;;
7041 x86_64-*linux*)
7042 LD="${LD-ld} -m elf_x86_64"
7043 ;;
7044 powerpcle-*linux*)
7045 LD="${LD-ld} -m elf64lppc"
7046 ;;
7047 powerpc-*linux*)
7048 LD="${LD-ld} -m elf64ppc"
7049 ;;
7050 s390*-*linux*|s390*-*tpf*)
7051 LD="${LD-ld} -m elf64_s390"
7052 ;;
7053 sparc*-*linux*)
7054 LD="${LD-ld} -m elf64_sparc"
7055 ;;
7056 esac
7057 ;;
7058 esac
7059 fi
7060 rm -rf conftest*
7061 ;;
7062
7063 *-*-sco3.2v5*)
7064 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7065 SAVE_CFLAGS=$CFLAGS
7066 CFLAGS="$CFLAGS -belf"
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7068 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7069 if ${lt_cv_cc_needs_belf+:} false; then :
7070 $as_echo_n "(cached) " >&6
7071 else
7072 ac_ext=c
7073 ac_cpp='$CPP $CPPFLAGS'
7074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7077
7078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7079 /* end confdefs.h. */
7080
7081 int
7082 main ()
7083 {
7084
7085 ;
7086 return 0;
7087 }
7088 _ACEOF
7089 if ac_fn_c_try_link "$LINENO"; then :
7090 lt_cv_cc_needs_belf=yes
7091 else
7092 lt_cv_cc_needs_belf=no
7093 fi
7094 rm -f core conftest.err conftest.$ac_objext \
7095 conftest$ac_exeext conftest.$ac_ext
7096 ac_ext=c
7097 ac_cpp='$CPP $CPPFLAGS'
7098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7101
7102 fi
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7104 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7105 if test yes != "$lt_cv_cc_needs_belf"; then
7106 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7107 CFLAGS=$SAVE_CFLAGS
7108 fi
7109 ;;
7110 *-*solaris*)
7111 # Find out what ABI is being produced by ac_compile, and set linker
7112 # options accordingly.
7113 echo 'int i;' > conftest.$ac_ext
7114 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7115 (eval $ac_compile) 2>&5
7116 ac_status=$?
7117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7118 test $ac_status = 0; }; then
7119 case `/usr/bin/file conftest.o` in
7120 *64-bit*)
7121 case $lt_cv_prog_gnu_ld in
7122 yes*)
7123 case $host in
7124 i?86-*-solaris*|x86_64-*-solaris*)
7125 LD="${LD-ld} -m elf_x86_64"
7126 ;;
7127 sparc*-*-solaris*)
7128 LD="${LD-ld} -m elf64_sparc"
7129 ;;
7130 esac
7131 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7132 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7133 LD=${LD-ld}_sol2
7134 fi
7135 ;;
7136 *)
7137 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7138 LD="${LD-ld} -64"
7139 fi
7140 ;;
7141 esac
7142 ;;
7143 esac
7144 fi
7145 rm -rf conftest*
7146 ;;
7147 esac
7148
7149 need_locks=$enable_libtool_lock
7150
7151 if test -n "$ac_tool_prefix"; then
7152 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7153 set dummy ${ac_tool_prefix}mt; ac_word=$2
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7155 $as_echo_n "checking for $ac_word... " >&6; }
7156 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7157 $as_echo_n "(cached) " >&6
7158 else
7159 if test -n "$MANIFEST_TOOL"; then
7160 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7161 else
7162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7163 for as_dir in $PATH
7164 do
7165 IFS=$as_save_IFS
7166 test -z "$as_dir" && as_dir=.
7167 for ac_exec_ext in '' $ac_executable_extensions; do
7168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7169 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7171 break 2
7172 fi
7173 done
7174 done
7175 IFS=$as_save_IFS
7176
7177 fi
7178 fi
7179 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7180 if test -n "$MANIFEST_TOOL"; then
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7182 $as_echo "$MANIFEST_TOOL" >&6; }
7183 else
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7185 $as_echo "no" >&6; }
7186 fi
7187
7188
7189 fi
7190 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7191 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7192 # Extract the first word of "mt", so it can be a program name with args.
7193 set dummy mt; ac_word=$2
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7195 $as_echo_n "checking for $ac_word... " >&6; }
7196 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7197 $as_echo_n "(cached) " >&6
7198 else
7199 if test -n "$ac_ct_MANIFEST_TOOL"; then
7200 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7201 else
7202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7203 for as_dir in $PATH
7204 do
7205 IFS=$as_save_IFS
7206 test -z "$as_dir" && as_dir=.
7207 for ac_exec_ext in '' $ac_executable_extensions; do
7208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7209 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7211 break 2
7212 fi
7213 done
7214 done
7215 IFS=$as_save_IFS
7216
7217 fi
7218 fi
7219 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7220 if test -n "$ac_ct_MANIFEST_TOOL"; then
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7222 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7223 else
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7225 $as_echo "no" >&6; }
7226 fi
7227
7228 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7229 MANIFEST_TOOL=":"
7230 else
7231 case $cross_compiling:$ac_tool_warned in
7232 yes:)
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7234 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7235 ac_tool_warned=yes ;;
7236 esac
7237 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7238 fi
7239 else
7240 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7241 fi
7242
7243 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7245 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7246 if ${lt_cv_path_mainfest_tool+:} false; then :
7247 $as_echo_n "(cached) " >&6
7248 else
7249 lt_cv_path_mainfest_tool=no
7250 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7251 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7252 cat conftest.err >&5
7253 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7254 lt_cv_path_mainfest_tool=yes
7255 fi
7256 rm -f conftest*
7257 fi
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7259 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7260 if test yes != "$lt_cv_path_mainfest_tool"; then
7261 MANIFEST_TOOL=:
7262 fi
7263
7264
7265
7266
7267
7268
7269 case $host_os in
7270 rhapsody* | darwin*)
7271 if test -n "$ac_tool_prefix"; then
7272 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7273 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7275 $as_echo_n "checking for $ac_word... " >&6; }
7276 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7277 $as_echo_n "(cached) " >&6
7278 else
7279 if test -n "$DSYMUTIL"; then
7280 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7281 else
7282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7283 for as_dir in $PATH
7284 do
7285 IFS=$as_save_IFS
7286 test -z "$as_dir" && as_dir=.
7287 for ac_exec_ext in '' $ac_executable_extensions; do
7288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7289 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7291 break 2
7292 fi
7293 done
7294 done
7295 IFS=$as_save_IFS
7296
7297 fi
7298 fi
7299 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7300 if test -n "$DSYMUTIL"; then
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7302 $as_echo "$DSYMUTIL" >&6; }
7303 else
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7305 $as_echo "no" >&6; }
7306 fi
7307
7308
7309 fi
7310 if test -z "$ac_cv_prog_DSYMUTIL"; then
7311 ac_ct_DSYMUTIL=$DSYMUTIL
7312 # Extract the first word of "dsymutil", so it can be a program name with args.
7313 set dummy dsymutil; ac_word=$2
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7315 $as_echo_n "checking for $ac_word... " >&6; }
7316 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7317 $as_echo_n "(cached) " >&6
7318 else
7319 if test -n "$ac_ct_DSYMUTIL"; then
7320 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7321 else
7322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7323 for as_dir in $PATH
7324 do
7325 IFS=$as_save_IFS
7326 test -z "$as_dir" && as_dir=.
7327 for ac_exec_ext in '' $ac_executable_extensions; do
7328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7329 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7331 break 2
7332 fi
7333 done
7334 done
7335 IFS=$as_save_IFS
7336
7337 fi
7338 fi
7339 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7340 if test -n "$ac_ct_DSYMUTIL"; then
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7342 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7343 else
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7345 $as_echo "no" >&6; }
7346 fi
7347
7348 if test "x$ac_ct_DSYMUTIL" = x; then
7349 DSYMUTIL=":"
7350 else
7351 case $cross_compiling:$ac_tool_warned in
7352 yes:)
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7354 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7355 ac_tool_warned=yes ;;
7356 esac
7357 DSYMUTIL=$ac_ct_DSYMUTIL
7358 fi
7359 else
7360 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7361 fi
7362
7363 if test -n "$ac_tool_prefix"; then
7364 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7365 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7367 $as_echo_n "checking for $ac_word... " >&6; }
7368 if ${ac_cv_prog_NMEDIT+:} false; then :
7369 $as_echo_n "(cached) " >&6
7370 else
7371 if test -n "$NMEDIT"; then
7372 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7373 else
7374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7375 for as_dir in $PATH
7376 do
7377 IFS=$as_save_IFS
7378 test -z "$as_dir" && as_dir=.
7379 for ac_exec_ext in '' $ac_executable_extensions; do
7380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7381 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7383 break 2
7384 fi
7385 done
7386 done
7387 IFS=$as_save_IFS
7388
7389 fi
7390 fi
7391 NMEDIT=$ac_cv_prog_NMEDIT
7392 if test -n "$NMEDIT"; then
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7394 $as_echo "$NMEDIT" >&6; }
7395 else
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7397 $as_echo "no" >&6; }
7398 fi
7399
7400
7401 fi
7402 if test -z "$ac_cv_prog_NMEDIT"; then
7403 ac_ct_NMEDIT=$NMEDIT
7404 # Extract the first word of "nmedit", so it can be a program name with args.
7405 set dummy nmedit; ac_word=$2
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7407 $as_echo_n "checking for $ac_word... " >&6; }
7408 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7409 $as_echo_n "(cached) " >&6
7410 else
7411 if test -n "$ac_ct_NMEDIT"; then
7412 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7413 else
7414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415 for as_dir in $PATH
7416 do
7417 IFS=$as_save_IFS
7418 test -z "$as_dir" && as_dir=.
7419 for ac_exec_ext in '' $ac_executable_extensions; do
7420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7421 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7423 break 2
7424 fi
7425 done
7426 done
7427 IFS=$as_save_IFS
7428
7429 fi
7430 fi
7431 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7432 if test -n "$ac_ct_NMEDIT"; then
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7434 $as_echo "$ac_ct_NMEDIT" >&6; }
7435 else
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7437 $as_echo "no" >&6; }
7438 fi
7439
7440 if test "x$ac_ct_NMEDIT" = x; then
7441 NMEDIT=":"
7442 else
7443 case $cross_compiling:$ac_tool_warned in
7444 yes:)
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7446 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7447 ac_tool_warned=yes ;;
7448 esac
7449 NMEDIT=$ac_ct_NMEDIT
7450 fi
7451 else
7452 NMEDIT="$ac_cv_prog_NMEDIT"
7453 fi
7454
7455 if test -n "$ac_tool_prefix"; then
7456 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7457 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7459 $as_echo_n "checking for $ac_word... " >&6; }
7460 if ${ac_cv_prog_LIPO+:} false; then :
7461 $as_echo_n "(cached) " >&6
7462 else
7463 if test -n "$LIPO"; then
7464 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7465 else
7466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467 for as_dir in $PATH
7468 do
7469 IFS=$as_save_IFS
7470 test -z "$as_dir" && as_dir=.
7471 for ac_exec_ext in '' $ac_executable_extensions; do
7472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7473 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7475 break 2
7476 fi
7477 done
7478 done
7479 IFS=$as_save_IFS
7480
7481 fi
7482 fi
7483 LIPO=$ac_cv_prog_LIPO
7484 if test -n "$LIPO"; then
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7486 $as_echo "$LIPO" >&6; }
7487 else
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7489 $as_echo "no" >&6; }
7490 fi
7491
7492
7493 fi
7494 if test -z "$ac_cv_prog_LIPO"; then
7495 ac_ct_LIPO=$LIPO
7496 # Extract the first word of "lipo", so it can be a program name with args.
7497 set dummy lipo; ac_word=$2
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7499 $as_echo_n "checking for $ac_word... " >&6; }
7500 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7501 $as_echo_n "(cached) " >&6
7502 else
7503 if test -n "$ac_ct_LIPO"; then
7504 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7505 else
7506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7507 for as_dir in $PATH
7508 do
7509 IFS=$as_save_IFS
7510 test -z "$as_dir" && as_dir=.
7511 for ac_exec_ext in '' $ac_executable_extensions; do
7512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7513 ac_cv_prog_ac_ct_LIPO="lipo"
7514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7515 break 2
7516 fi
7517 done
7518 done
7519 IFS=$as_save_IFS
7520
7521 fi
7522 fi
7523 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7524 if test -n "$ac_ct_LIPO"; then
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7526 $as_echo "$ac_ct_LIPO" >&6; }
7527 else
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7529 $as_echo "no" >&6; }
7530 fi
7531
7532 if test "x$ac_ct_LIPO" = x; then
7533 LIPO=":"
7534 else
7535 case $cross_compiling:$ac_tool_warned in
7536 yes:)
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7538 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7539 ac_tool_warned=yes ;;
7540 esac
7541 LIPO=$ac_ct_LIPO
7542 fi
7543 else
7544 LIPO="$ac_cv_prog_LIPO"
7545 fi
7546
7547 if test -n "$ac_tool_prefix"; then
7548 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7549 set dummy ${ac_tool_prefix}otool; ac_word=$2
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7551 $as_echo_n "checking for $ac_word... " >&6; }
7552 if ${ac_cv_prog_OTOOL+:} false; then :
7553 $as_echo_n "(cached) " >&6
7554 else
7555 if test -n "$OTOOL"; then
7556 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7557 else
7558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7559 for as_dir in $PATH
7560 do
7561 IFS=$as_save_IFS
7562 test -z "$as_dir" && as_dir=.
7563 for ac_exec_ext in '' $ac_executable_extensions; do
7564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7565 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7567 break 2
7568 fi
7569 done
7570 done
7571 IFS=$as_save_IFS
7572
7573 fi
7574 fi
7575 OTOOL=$ac_cv_prog_OTOOL
7576 if test -n "$OTOOL"; then
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7578 $as_echo "$OTOOL" >&6; }
7579 else
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7581 $as_echo "no" >&6; }
7582 fi
7583
7584
7585 fi
7586 if test -z "$ac_cv_prog_OTOOL"; then
7587 ac_ct_OTOOL=$OTOOL
7588 # Extract the first word of "otool", so it can be a program name with args.
7589 set dummy otool; ac_word=$2
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7591 $as_echo_n "checking for $ac_word... " >&6; }
7592 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7593 $as_echo_n "(cached) " >&6
7594 else
7595 if test -n "$ac_ct_OTOOL"; then
7596 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7597 else
7598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599 for as_dir in $PATH
7600 do
7601 IFS=$as_save_IFS
7602 test -z "$as_dir" && as_dir=.
7603 for ac_exec_ext in '' $ac_executable_extensions; do
7604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7605 ac_cv_prog_ac_ct_OTOOL="otool"
7606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7607 break 2
7608 fi
7609 done
7610 done
7611 IFS=$as_save_IFS
7612
7613 fi
7614 fi
7615 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7616 if test -n "$ac_ct_OTOOL"; then
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7618 $as_echo "$ac_ct_OTOOL" >&6; }
7619 else
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7621 $as_echo "no" >&6; }
7622 fi
7623
7624 if test "x$ac_ct_OTOOL" = x; then
7625 OTOOL=":"
7626 else
7627 case $cross_compiling:$ac_tool_warned in
7628 yes:)
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7630 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7631 ac_tool_warned=yes ;;
7632 esac
7633 OTOOL=$ac_ct_OTOOL
7634 fi
7635 else
7636 OTOOL="$ac_cv_prog_OTOOL"
7637 fi
7638
7639 if test -n "$ac_tool_prefix"; then
7640 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7641 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7643 $as_echo_n "checking for $ac_word... " >&6; }
7644 if ${ac_cv_prog_OTOOL64+:} false; then :
7645 $as_echo_n "(cached) " >&6
7646 else
7647 if test -n "$OTOOL64"; then
7648 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7649 else
7650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7651 for as_dir in $PATH
7652 do
7653 IFS=$as_save_IFS
7654 test -z "$as_dir" && as_dir=.
7655 for ac_exec_ext in '' $ac_executable_extensions; do
7656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7657 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7659 break 2
7660 fi
7661 done
7662 done
7663 IFS=$as_save_IFS
7664
7665 fi
7666 fi
7667 OTOOL64=$ac_cv_prog_OTOOL64
7668 if test -n "$OTOOL64"; then
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7670 $as_echo "$OTOOL64" >&6; }
7671 else
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7673 $as_echo "no" >&6; }
7674 fi
7675
7676
7677 fi
7678 if test -z "$ac_cv_prog_OTOOL64"; then
7679 ac_ct_OTOOL64=$OTOOL64
7680 # Extract the first word of "otool64", so it can be a program name with args.
7681 set dummy otool64; ac_word=$2
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7683 $as_echo_n "checking for $ac_word... " >&6; }
7684 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7685 $as_echo_n "(cached) " >&6
7686 else
7687 if test -n "$ac_ct_OTOOL64"; then
7688 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7689 else
7690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7691 for as_dir in $PATH
7692 do
7693 IFS=$as_save_IFS
7694 test -z "$as_dir" && as_dir=.
7695 for ac_exec_ext in '' $ac_executable_extensions; do
7696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7697 ac_cv_prog_ac_ct_OTOOL64="otool64"
7698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7699 break 2
7700 fi
7701 done
7702 done
7703 IFS=$as_save_IFS
7704
7705 fi
7706 fi
7707 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7708 if test -n "$ac_ct_OTOOL64"; then
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7710 $as_echo "$ac_ct_OTOOL64" >&6; }
7711 else
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7713 $as_echo "no" >&6; }
7714 fi
7715
7716 if test "x$ac_ct_OTOOL64" = x; then
7717 OTOOL64=":"
7718 else
7719 case $cross_compiling:$ac_tool_warned in
7720 yes:)
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7722 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7723 ac_tool_warned=yes ;;
7724 esac
7725 OTOOL64=$ac_ct_OTOOL64
7726 fi
7727 else
7728 OTOOL64="$ac_cv_prog_OTOOL64"
7729 fi
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7758 $as_echo_n "checking for -single_module linker flag... " >&6; }
7759 if ${lt_cv_apple_cc_single_mod+:} false; then :
7760 $as_echo_n "(cached) " >&6
7761 else
7762 lt_cv_apple_cc_single_mod=no
7763 if test -z "$LT_MULTI_MODULE"; then
7764 # By default we will add the -single_module flag. You can override
7765 # by either setting the environment variable LT_MULTI_MODULE
7766 # non-empty at configure time, or by adding -multi_module to the
7767 # link flags.
7768 rm -rf libconftest.dylib*
7769 echo "int foo(void){return 1;}" > conftest.c
7770 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7771 -dynamiclib -Wl,-single_module conftest.c" >&5
7772 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7773 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7774 _lt_result=$?
7775 # If there is a non-empty error log, and "single_module"
7776 # appears in it, assume the flag caused a linker warning
7777 if test -s conftest.err && $GREP single_module conftest.err; then
7778 cat conftest.err >&5
7779 # Otherwise, if the output was created with a 0 exit code from
7780 # the compiler, it worked.
7781 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7782 lt_cv_apple_cc_single_mod=yes
7783 else
7784 cat conftest.err >&5
7785 fi
7786 rm -rf libconftest.dylib*
7787 rm -f conftest.*
7788 fi
7789 fi
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7791 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7792
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7794 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7795 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7796 $as_echo_n "(cached) " >&6
7797 else
7798 lt_cv_ld_exported_symbols_list=no
7799 save_LDFLAGS=$LDFLAGS
7800 echo "_main" > conftest.sym
7801 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7803 /* end confdefs.h. */
7804
7805 int
7806 main ()
7807 {
7808
7809 ;
7810 return 0;
7811 }
7812 _ACEOF
7813 if ac_fn_c_try_link "$LINENO"; then :
7814 lt_cv_ld_exported_symbols_list=yes
7815 else
7816 lt_cv_ld_exported_symbols_list=no
7817 fi
7818 rm -f core conftest.err conftest.$ac_objext \
7819 conftest$ac_exeext conftest.$ac_ext
7820 LDFLAGS=$save_LDFLAGS
7821
7822 fi
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7824 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7825
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7827 $as_echo_n "checking for -force_load linker flag... " >&6; }
7828 if ${lt_cv_ld_force_load+:} false; then :
7829 $as_echo_n "(cached) " >&6
7830 else
7831 lt_cv_ld_force_load=no
7832 cat > conftest.c << _LT_EOF
7833 int forced_loaded() { return 2;}
7834 _LT_EOF
7835 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7836 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7837 echo "$AR cru libconftest.a conftest.o" >&5
7838 $AR cru libconftest.a conftest.o 2>&5
7839 echo "$RANLIB libconftest.a" >&5
7840 $RANLIB libconftest.a 2>&5
7841 cat > conftest.c << _LT_EOF
7842 int main() { return 0;}
7843 _LT_EOF
7844 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7845 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7846 _lt_result=$?
7847 if test -s conftest.err && $GREP force_load conftest.err; then
7848 cat conftest.err >&5
7849 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7850 lt_cv_ld_force_load=yes
7851 else
7852 cat conftest.err >&5
7853 fi
7854 rm -f conftest.err libconftest.a conftest conftest.c
7855 rm -rf conftest.dSYM
7856
7857 fi
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7859 $as_echo "$lt_cv_ld_force_load" >&6; }
7860 case $host_os in
7861 rhapsody* | darwin1.[012])
7862 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7863 darwin1.*)
7864 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7865 darwin*) # darwin 5.x on
7866 # if running on 10.5 or later, the deployment target defaults
7867 # to the OS version, if on x86, and 10.4, the deployment
7868 # target defaults to 10.4. Don't you love it?
7869 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7870 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7871 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7872 10.[012][,.]*)
7873 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7874 10.*)
7875 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7876 esac
7877 ;;
7878 esac
7879 if test yes = "$lt_cv_apple_cc_single_mod"; then
7880 _lt_dar_single_mod='$single_module'
7881 fi
7882 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7883 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7884 else
7885 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7886 fi
7887 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7888 _lt_dsymutil='~$DSYMUTIL $lib || :'
7889 else
7890 _lt_dsymutil=
7891 fi
7892 ;;
7893 esac
7894
7895 # func_munge_path_list VARIABLE PATH
7896 # -----------------------------------
7897 # VARIABLE is name of variable containing _space_ separated list of
7898 # directories to be munged by the contents of PATH, which is string
7899 # having a format:
7900 # "DIR[:DIR]:"
7901 # string "DIR[ DIR]" will be prepended to VARIABLE
7902 # ":DIR[:DIR]"
7903 # string "DIR[ DIR]" will be appended to VARIABLE
7904 # "DIRP[:DIRP]::[DIRA:]DIRA"
7905 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7906 # "DIRA[ DIRA]" will be appended to VARIABLE
7907 # "DIR[:DIR]"
7908 # VARIABLE will be replaced by "DIR[ DIR]"
7909 func_munge_path_list ()
7910 {
7911 case x$2 in
7912 x)
7913 ;;
7914 *:)
7915 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7916 ;;
7917 x:*)
7918 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7919 ;;
7920 *::*)
7921 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7922 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7923 ;;
7924 *)
7925 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7926 ;;
7927 esac
7928 }
7929
7930 ac_ext=c
7931 ac_cpp='$CPP $CPPFLAGS'
7932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7936 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7937 # On Suns, sometimes $CPP names a directory.
7938 if test -n "$CPP" && test -d "$CPP"; then
7939 CPP=
7940 fi
7941 if test -z "$CPP"; then
7942 if ${ac_cv_prog_CPP+:} false; then :
7943 $as_echo_n "(cached) " >&6
7944 else
7945 # Double quotes because CPP needs to be expanded
7946 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7947 do
7948 ac_preproc_ok=false
7949 for ac_c_preproc_warn_flag in '' yes
7950 do
7951 # Use a header file that comes with gcc, so configuring glibc
7952 # with a fresh cross-compiler works.
7953 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7954 # <limits.h> exists even on freestanding compilers.
7955 # On the NeXT, cc -E runs the code through the compiler's parser,
7956 # not just through cpp. "Syntax error" is here to catch this case.
7957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7958 /* end confdefs.h. */
7959 #ifdef __STDC__
7960 # include <limits.h>
7961 #else
7962 # include <assert.h>
7963 #endif
7964 Syntax error
7965 _ACEOF
7966 if ac_fn_c_try_cpp "$LINENO"; then :
7967
7968 else
7969 # Broken: fails on valid input.
7970 continue
7971 fi
7972 rm -f conftest.err conftest.i conftest.$ac_ext
7973
7974 # OK, works on sane cases. Now check whether nonexistent headers
7975 # can be detected and how.
7976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7977 /* end confdefs.h. */
7978 #include <ac_nonexistent.h>
7979 _ACEOF
7980 if ac_fn_c_try_cpp "$LINENO"; then :
7981 # Broken: success on invalid input.
7982 continue
7983 else
7984 # Passes both tests.
7985 ac_preproc_ok=:
7986 break
7987 fi
7988 rm -f conftest.err conftest.i conftest.$ac_ext
7989
7990 done
7991 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7992 rm -f conftest.i conftest.err conftest.$ac_ext
7993 if $ac_preproc_ok; then :
7994 break
7995 fi
7996
7997 done
7998 ac_cv_prog_CPP=$CPP
7999
8000 fi
8001 CPP=$ac_cv_prog_CPP
8002 else
8003 ac_cv_prog_CPP=$CPP
8004 fi
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8006 $as_echo "$CPP" >&6; }
8007 ac_preproc_ok=false
8008 for ac_c_preproc_warn_flag in '' yes
8009 do
8010 # Use a header file that comes with gcc, so configuring glibc
8011 # with a fresh cross-compiler works.
8012 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8013 # <limits.h> exists even on freestanding compilers.
8014 # On the NeXT, cc -E runs the code through the compiler's parser,
8015 # not just through cpp. "Syntax error" is here to catch this case.
8016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8017 /* end confdefs.h. */
8018 #ifdef __STDC__
8019 # include <limits.h>
8020 #else
8021 # include <assert.h>
8022 #endif
8023 Syntax error
8024 _ACEOF
8025 if ac_fn_c_try_cpp "$LINENO"; then :
8026
8027 else
8028 # Broken: fails on valid input.
8029 continue
8030 fi
8031 rm -f conftest.err conftest.i conftest.$ac_ext
8032
8033 # OK, works on sane cases. Now check whether nonexistent headers
8034 # can be detected and how.
8035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8036 /* end confdefs.h. */
8037 #include <ac_nonexistent.h>
8038 _ACEOF
8039 if ac_fn_c_try_cpp "$LINENO"; then :
8040 # Broken: success on invalid input.
8041 continue
8042 else
8043 # Passes both tests.
8044 ac_preproc_ok=:
8045 break
8046 fi
8047 rm -f conftest.err conftest.i conftest.$ac_ext
8048
8049 done
8050 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8051 rm -f conftest.i conftest.err conftest.$ac_ext
8052 if $ac_preproc_ok; then :
8053
8054 else
8055 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8056 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8057 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8058 See \`config.log' for more details" "$LINENO" 5; }
8059 fi
8060
8061 ac_ext=c
8062 ac_cpp='$CPP $CPPFLAGS'
8063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8066
8067
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8069 $as_echo_n "checking for ANSI C header files... " >&6; }
8070 if ${ac_cv_header_stdc+:} false; then :
8071 $as_echo_n "(cached) " >&6
8072 else
8073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8074 /* end confdefs.h. */
8075 #include <stdlib.h>
8076 #include <stdarg.h>
8077 #include <string.h>
8078 #include <float.h>
8079
8080 int
8081 main ()
8082 {
8083
8084 ;
8085 return 0;
8086 }
8087 _ACEOF
8088 if ac_fn_c_try_compile "$LINENO"; then :
8089 ac_cv_header_stdc=yes
8090 else
8091 ac_cv_header_stdc=no
8092 fi
8093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8094
8095 if test $ac_cv_header_stdc = yes; then
8096 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8098 /* end confdefs.h. */
8099 #include <string.h>
8100
8101 _ACEOF
8102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8103 $EGREP "memchr" >/dev/null 2>&1; then :
8104
8105 else
8106 ac_cv_header_stdc=no
8107 fi
8108 rm -f conftest*
8109
8110 fi
8111
8112 if test $ac_cv_header_stdc = yes; then
8113 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8115 /* end confdefs.h. */
8116 #include <stdlib.h>
8117
8118 _ACEOF
8119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8120 $EGREP "free" >/dev/null 2>&1; then :
8121
8122 else
8123 ac_cv_header_stdc=no
8124 fi
8125 rm -f conftest*
8126
8127 fi
8128
8129 if test $ac_cv_header_stdc = yes; then
8130 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8131 if test "$cross_compiling" = yes; then :
8132 :
8133 else
8134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8135 /* end confdefs.h. */
8136 #include <ctype.h>
8137 #include <stdlib.h>
8138 #if ((' ' & 0x0FF) == 0x020)
8139 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8140 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8141 #else
8142 # define ISLOWER(c) \
8143 (('a' <= (c) && (c) <= 'i') \
8144 || ('j' <= (c) && (c) <= 'r') \
8145 || ('s' <= (c) && (c) <= 'z'))
8146 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8147 #endif
8148
8149 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8150 int
8151 main ()
8152 {
8153 int i;
8154 for (i = 0; i < 256; i++)
8155 if (XOR (islower (i), ISLOWER (i))
8156 || toupper (i) != TOUPPER (i))
8157 return 2;
8158 return 0;
8159 }
8160 _ACEOF
8161 if ac_fn_c_try_run "$LINENO"; then :
8162
8163 else
8164 ac_cv_header_stdc=no
8165 fi
8166 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8167 conftest.$ac_objext conftest.beam conftest.$ac_ext
8168 fi
8169
8170 fi
8171 fi
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8173 $as_echo "$ac_cv_header_stdc" >&6; }
8174 if test $ac_cv_header_stdc = yes; then
8175
8176 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8177
8178 fi
8179
8180 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8181 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8182 inttypes.h stdint.h unistd.h
8183 do :
8184 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8185 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8186 "
8187 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8188 cat >>confdefs.h <<_ACEOF
8189 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8190 _ACEOF
8191
8192 fi
8193
8194 done
8195
8196
8197 for ac_header in dlfcn.h
8198 do :
8199 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8200 "
8201 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8202 cat >>confdefs.h <<_ACEOF
8203 #define HAVE_DLFCN_H 1
8204 _ACEOF
8205
8206 fi
8207
8208 done
8209
8210
8211
8212
8213
8214 # Set options
8215
8216
8217
8218 enable_dlopen=no
8219
8220
8221 enable_win32_dll=no
8222
8223
8224 # Check whether --enable-shared was given.
8225 if test "${enable_shared+set}" = set; then :
8226 enableval=$enable_shared; p=${PACKAGE-default}
8227 case $enableval in
8228 yes) enable_shared=yes ;;
8229 no) enable_shared=no ;;
8230 *)
8231 enable_shared=no
8232 # Look at the argument we got. We use all the common list separators.
8233 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8234 for pkg in $enableval; do
8235 IFS=$lt_save_ifs
8236 if test "X$pkg" = "X$p"; then
8237 enable_shared=yes
8238 fi
8239 done
8240 IFS=$lt_save_ifs
8241 ;;
8242 esac
8243 else
8244 enable_shared=yes
8245 fi
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255 # Check whether --enable-static was given.
8256 if test "${enable_static+set}" = set; then :
8257 enableval=$enable_static; p=${PACKAGE-default}
8258 case $enableval in
8259 yes) enable_static=yes ;;
8260 no) enable_static=no ;;
8261 *)
8262 enable_static=no
8263 # Look at the argument we got. We use all the common list separators.
8264 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8265 for pkg in $enableval; do
8266 IFS=$lt_save_ifs
8267 if test "X$pkg" = "X$p"; then
8268 enable_static=yes
8269 fi
8270 done
8271 IFS=$lt_save_ifs
8272 ;;
8273 esac
8274 else
8275 enable_static=yes
8276 fi
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287 # Check whether --with-pic was given.
8288 if test "${with_pic+set}" = set; then :
8289 withval=$with_pic; lt_p=${PACKAGE-default}
8290 case $withval in
8291 yes|no) pic_mode=$withval ;;
8292 *)
8293 pic_mode=default
8294 # Look at the argument we got. We use all the common list separators.
8295 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8296 for lt_pkg in $withval; do
8297 IFS=$lt_save_ifs
8298 if test "X$lt_pkg" = "X$lt_p"; then
8299 pic_mode=yes
8300 fi
8301 done
8302 IFS=$lt_save_ifs
8303 ;;
8304 esac
8305 else
8306 pic_mode=default
8307 fi
8308
8309
8310
8311
8312
8313
8314
8315
8316 # Check whether --enable-fast-install was given.
8317 if test "${enable_fast_install+set}" = set; then :
8318 enableval=$enable_fast_install; p=${PACKAGE-default}
8319 case $enableval in
8320 yes) enable_fast_install=yes ;;
8321 no) enable_fast_install=no ;;
8322 *)
8323 enable_fast_install=no
8324 # Look at the argument we got. We use all the common list separators.
8325 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8326 for pkg in $enableval; do
8327 IFS=$lt_save_ifs
8328 if test "X$pkg" = "X$p"; then
8329 enable_fast_install=yes
8330 fi
8331 done
8332 IFS=$lt_save_ifs
8333 ;;
8334 esac
8335 else
8336 enable_fast_install=yes
8337 fi
8338
8339
8340
8341
8342
8343
8344
8345
8346 shared_archive_member_spec=
8347 case $host,$enable_shared in
8348 power*-*-aix[5-9]*,yes)
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8350 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8351
8352 # Check whether --with-aix-soname was given.
8353 if test "${with_aix_soname+set}" = set; then :
8354 withval=$with_aix_soname; case $withval in
8355 aix|svr4|both)
8356 ;;
8357 *)
8358 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8359 ;;
8360 esac
8361 lt_cv_with_aix_soname=$with_aix_soname
8362 else
8363 if ${lt_cv_with_aix_soname+:} false; then :
8364 $as_echo_n "(cached) " >&6
8365 else
8366 lt_cv_with_aix_soname=aix
8367 fi
8368
8369 with_aix_soname=$lt_cv_with_aix_soname
8370 fi
8371
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8373 $as_echo "$with_aix_soname" >&6; }
8374 if test aix != "$with_aix_soname"; then
8375 # For the AIX way of multilib, we name the shared archive member
8376 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8377 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8378 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8379 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8380 if test 64 = "${OBJECT_MODE-32}"; then
8381 shared_archive_member_spec=shr_64
8382 else
8383 shared_archive_member_spec=shr
8384 fi
8385 fi
8386 ;;
8387 *)
8388 with_aix_soname=aix
8389 ;;
8390 esac
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401 # This can be used to rebuild libtool when needed
8402 LIBTOOL_DEPS=$ltmain
8403
8404 # Always use our own libtool.
8405 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436 test -z "$LN_S" && LN_S="ln -s"
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451 if test -n "${ZSH_VERSION+set}"; then
8452 setopt NO_GLOB_SUBST
8453 fi
8454
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8456 $as_echo_n "checking for objdir... " >&6; }
8457 if ${lt_cv_objdir+:} false; then :
8458 $as_echo_n "(cached) " >&6
8459 else
8460 rm -f .libs 2>/dev/null
8461 mkdir .libs 2>/dev/null
8462 if test -d .libs; then
8463 lt_cv_objdir=.libs
8464 else
8465 # MS-DOS does not allow filenames that begin with a dot.
8466 lt_cv_objdir=_libs
8467 fi
8468 rmdir .libs 2>/dev/null
8469 fi
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8471 $as_echo "$lt_cv_objdir" >&6; }
8472 objdir=$lt_cv_objdir
8473
8474
8475
8476
8477
8478 cat >>confdefs.h <<_ACEOF
8479 #define LT_OBJDIR "$lt_cv_objdir/"
8480 _ACEOF
8481
8482
8483
8484
8485 case $host_os in
8486 aix3*)
8487 # AIX sometimes has problems with the GCC collect2 program. For some
8488 # reason, if we set the COLLECT_NAMES environment variable, the problems
8489 # vanish in a puff of smoke.
8490 if test set != "${COLLECT_NAMES+set}"; then
8491 COLLECT_NAMES=
8492 export COLLECT_NAMES
8493 fi
8494 ;;
8495 esac
8496
8497 # Global variables:
8498 ofile=libtool
8499 can_build_shared=yes
8500
8501 # All known linkers require a '.a' archive for static linking (except MSVC,
8502 # which needs '.lib').
8503 libext=a
8504
8505 with_gnu_ld=$lt_cv_prog_gnu_ld
8506
8507 old_CC=$CC
8508 old_CFLAGS=$CFLAGS
8509
8510 # Set sane defaults for various variables
8511 test -z "$CC" && CC=cc
8512 test -z "$LTCC" && LTCC=$CC
8513 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8514 test -z "$LD" && LD=ld
8515 test -z "$ac_objext" && ac_objext=o
8516
8517 func_cc_basename $compiler
8518 cc_basename=$func_cc_basename_result
8519
8520
8521 # Only perform the check for file, if the check method requires it
8522 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8523 case $deplibs_check_method in
8524 file_magic*)
8525 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8527 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8528 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8529 $as_echo_n "(cached) " >&6
8530 else
8531 case $MAGIC_CMD in
8532 [\\/*] | ?:[\\/]*)
8533 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8534 ;;
8535 *)
8536 lt_save_MAGIC_CMD=$MAGIC_CMD
8537 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8538 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8539 for ac_dir in $ac_dummy; do
8540 IFS=$lt_save_ifs
8541 test -z "$ac_dir" && ac_dir=.
8542 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8543 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8544 if test -n "$file_magic_test_file"; then
8545 case $deplibs_check_method in
8546 "file_magic "*)
8547 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8548 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8549 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8550 $EGREP "$file_magic_regex" > /dev/null; then
8551 :
8552 else
8553 cat <<_LT_EOF 1>&2
8554
8555 *** Warning: the command libtool uses to detect shared libraries,
8556 *** $file_magic_cmd, produces output that libtool cannot recognize.
8557 *** The result is that libtool may fail to recognize shared libraries
8558 *** as such. This will affect the creation of libtool libraries that
8559 *** depend on shared libraries, but programs linked with such libtool
8560 *** libraries will work regardless of this problem. Nevertheless, you
8561 *** may want to report the problem to your system manager and/or to
8562 *** bug-libtool (at] gnu.org
8563
8564 _LT_EOF
8565 fi ;;
8566 esac
8567 fi
8568 break
8569 fi
8570 done
8571 IFS=$lt_save_ifs
8572 MAGIC_CMD=$lt_save_MAGIC_CMD
8573 ;;
8574 esac
8575 fi
8576
8577 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8578 if test -n "$MAGIC_CMD"; then
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8580 $as_echo "$MAGIC_CMD" >&6; }
8581 else
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8583 $as_echo "no" >&6; }
8584 fi
8585
8586
8587
8588
8589
8590 if test -z "$lt_cv_path_MAGIC_CMD"; then
8591 if test -n "$ac_tool_prefix"; then
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8593 $as_echo_n "checking for file... " >&6; }
8594 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8595 $as_echo_n "(cached) " >&6
8596 else
8597 case $MAGIC_CMD in
8598 [\\/*] | ?:[\\/]*)
8599 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8600 ;;
8601 *)
8602 lt_save_MAGIC_CMD=$MAGIC_CMD
8603 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8604 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8605 for ac_dir in $ac_dummy; do
8606 IFS=$lt_save_ifs
8607 test -z "$ac_dir" && ac_dir=.
8608 if test -f "$ac_dir/file"; then
8609 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8610 if test -n "$file_magic_test_file"; then
8611 case $deplibs_check_method in
8612 "file_magic "*)
8613 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8614 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8615 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8616 $EGREP "$file_magic_regex" > /dev/null; then
8617 :
8618 else
8619 cat <<_LT_EOF 1>&2
8620
8621 *** Warning: the command libtool uses to detect shared libraries,
8622 *** $file_magic_cmd, produces output that libtool cannot recognize.
8623 *** The result is that libtool may fail to recognize shared libraries
8624 *** as such. This will affect the creation of libtool libraries that
8625 *** depend on shared libraries, but programs linked with such libtool
8626 *** libraries will work regardless of this problem. Nevertheless, you
8627 *** may want to report the problem to your system manager and/or to
8628 *** bug-libtool (at] gnu.org
8629
8630 _LT_EOF
8631 fi ;;
8632 esac
8633 fi
8634 break
8635 fi
8636 done
8637 IFS=$lt_save_ifs
8638 MAGIC_CMD=$lt_save_MAGIC_CMD
8639 ;;
8640 esac
8641 fi
8642
8643 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8644 if test -n "$MAGIC_CMD"; then
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8646 $as_echo "$MAGIC_CMD" >&6; }
8647 else
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8649 $as_echo "no" >&6; }
8650 fi
8651
8652
8653 else
8654 MAGIC_CMD=:
8655 fi
8656 fi
8657
8658 fi
8659 ;;
8660 esac
8661
8662 # Use C for the default configuration in the libtool script
8663
8664 lt_save_CC=$CC
8665 ac_ext=c
8666 ac_cpp='$CPP $CPPFLAGS'
8667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8670
8671
8672 # Source file extension for C test sources.
8673 ac_ext=c
8674
8675 # Object file extension for compiled C test sources.
8676 objext=o
8677 objext=$objext
8678
8679 # Code to be used in simple compile tests
8680 lt_simple_compile_test_code="int some_variable = 0;"
8681
8682 # Code to be used in simple link tests
8683 lt_simple_link_test_code='int main(){return(0);}'
8684
8685
8686
8687
8688
8689
8690
8691 # If no C compiler was specified, use CC.
8692 LTCC=${LTCC-"$CC"}
8693
8694 # If no C compiler flags were specified, use CFLAGS.
8695 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8696
8697 # Allow CC to be a program name with arguments.
8698 compiler=$CC
8699
8700 # Save the default compiler, since it gets overwritten when the other
8701 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8702 compiler_DEFAULT=$CC
8703
8704 # save warnings/boilerplate of simple test code
8705 ac_outfile=conftest.$ac_objext
8706 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8707 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8708 _lt_compiler_boilerplate=`cat conftest.err`
8709 $RM conftest*
8710
8711 ac_outfile=conftest.$ac_objext
8712 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8713 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8714 _lt_linker_boilerplate=`cat conftest.err`
8715 $RM -r conftest*
8716
8717
8718 ## CAVEAT EMPTOR:
8719 ## There is no encapsulation within the following macros, do not change
8720 ## the running order or otherwise move them around unless you know exactly
8721 ## what you are doing...
8722 if test -n "$compiler"; then
8723
8724 lt_prog_compiler_no_builtin_flag=
8725
8726 if test yes = "$GCC"; then
8727 case $cc_basename in
8728 nvcc*)
8729 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8730 *)
8731 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8732 esac
8733
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8735 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8736 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8737 $as_echo_n "(cached) " >&6
8738 else
8739 lt_cv_prog_compiler_rtti_exceptions=no
8740 ac_outfile=conftest.$ac_objext
8741 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8742 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8743 # Insert the option either (1) after the last *FLAGS variable, or
8744 # (2) before a word containing "conftest.", or (3) at the end.
8745 # Note that $ac_compile itself does not contain backslashes and begins
8746 # with a dollar sign (not a hyphen), so the echo should work correctly.
8747 # The option is referenced via a variable to avoid confusing sed.
8748 lt_compile=`echo "$ac_compile" | $SED \
8749 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8750 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8751 -e 's:$: $lt_compiler_flag:'`
8752 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8753 (eval "$lt_compile" 2>conftest.err)
8754 ac_status=$?
8755 cat conftest.err >&5
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 if (exit $ac_status) && test -s "$ac_outfile"; then
8758 # The compiler can only warn and ignore the option if not recognized
8759 # So say no if there are warnings other than the usual output.
8760 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8761 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8762 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8763 lt_cv_prog_compiler_rtti_exceptions=yes
8764 fi
8765 fi
8766 $RM conftest*
8767
8768 fi
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8770 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8771
8772 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8773 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8774 else
8775 :
8776 fi
8777
8778 fi
8779
8780
8781
8782
8783
8784
8785 lt_prog_compiler_wl=
8786 lt_prog_compiler_pic=
8787 lt_prog_compiler_static=
8788
8789
8790 if test yes = "$GCC"; then
8791 lt_prog_compiler_wl='-Wl,'
8792 lt_prog_compiler_static='-static'
8793
8794 case $host_os in
8795 aix*)
8796 # All AIX code is PIC.
8797 if test ia64 = "$host_cpu"; then
8798 # AIX 5 now supports IA64 processor
8799 lt_prog_compiler_static='-Bstatic'
8800 fi
8801 lt_prog_compiler_pic='-fPIC'
8802 ;;
8803
8804 amigaos*)
8805 case $host_cpu in
8806 powerpc)
8807 # see comment about AmigaOS4 .so support
8808 lt_prog_compiler_pic='-fPIC'
8809 ;;
8810 m68k)
8811 # FIXME: we need at least 68020 code to build shared libraries, but
8812 # adding the '-m68020' flag to GCC prevents building anything better,
8813 # like '-m68040'.
8814 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8815 ;;
8816 esac
8817 ;;
8818
8819 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8820 # PIC is the default for these OSes.
8821 ;;
8822
8823 mingw* | cygwin* | pw32* | os2* | cegcc*)
8824 # This hack is so that the source file can tell whether it is being
8825 # built for inclusion in a dll (and should export symbols for example).
8826 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8827 # (--disable-auto-import) libraries
8828 lt_prog_compiler_pic='-DDLL_EXPORT'
8829 case $host_os in
8830 os2*)
8831 lt_prog_compiler_static='$wl-static'
8832 ;;
8833 esac
8834 ;;
8835
8836 darwin* | rhapsody*)
8837 # PIC is the default on this platform
8838 # Common symbols not allowed in MH_DYLIB files
8839 lt_prog_compiler_pic='-fno-common'
8840 ;;
8841
8842 haiku*)
8843 # PIC is the default for Haiku.
8844 # The "-static" flag exists, but is broken.
8845 lt_prog_compiler_static=
8846 ;;
8847
8848 hpux*)
8849 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8850 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8851 # sets the default TLS model and affects inlining.
8852 case $host_cpu in
8853 hppa*64*)
8854 # +Z the default
8855 ;;
8856 *)
8857 lt_prog_compiler_pic='-fPIC'
8858 ;;
8859 esac
8860 ;;
8861
8862 interix[3-9]*)
8863 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8864 # Instead, we relocate shared libraries at runtime.
8865 ;;
8866
8867 msdosdjgpp*)
8868 # Just because we use GCC doesn't mean we suddenly get shared libraries
8869 # on systems that don't support them.
8870 lt_prog_compiler_can_build_shared=no
8871 enable_shared=no
8872 ;;
8873
8874 *nto* | *qnx*)
8875 # QNX uses GNU C++, but need to define -shared option too, otherwise
8876 # it will coredump.
8877 lt_prog_compiler_pic='-fPIC -shared'
8878 ;;
8879
8880 sysv4*MP*)
8881 if test -d /usr/nec; then
8882 lt_prog_compiler_pic=-Kconform_pic
8883 fi
8884 ;;
8885
8886 *)
8887 lt_prog_compiler_pic='-fPIC'
8888 ;;
8889 esac
8890
8891 case $cc_basename in
8892 nvcc*) # Cuda Compiler Driver 2.2
8893 lt_prog_compiler_wl='-Xlinker '
8894 if test -n "$lt_prog_compiler_pic"; then
8895 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8896 fi
8897 ;;
8898 esac
8899 else
8900 # PORTME Check for flag to pass linker flags through the system compiler.
8901 case $host_os in
8902 aix*)
8903 lt_prog_compiler_wl='-Wl,'
8904 if test ia64 = "$host_cpu"; then
8905 # AIX 5 now supports IA64 processor
8906 lt_prog_compiler_static='-Bstatic'
8907 else
8908 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8909 fi
8910 ;;
8911
8912 darwin* | rhapsody*)
8913 # PIC is the default on this platform
8914 # Common symbols not allowed in MH_DYLIB files
8915 lt_prog_compiler_pic='-fno-common'
8916 case $cc_basename in
8917 nagfor*)
8918 # NAG Fortran compiler
8919 lt_prog_compiler_wl='-Wl,-Wl,,'
8920 lt_prog_compiler_pic='-PIC'
8921 lt_prog_compiler_static='-Bstatic'
8922 ;;
8923 esac
8924 ;;
8925
8926 mingw* | cygwin* | pw32* | os2* | cegcc*)
8927 # This hack is so that the source file can tell whether it is being
8928 # built for inclusion in a dll (and should export symbols for example).
8929 lt_prog_compiler_pic='-DDLL_EXPORT'
8930 case $host_os in
8931 os2*)
8932 lt_prog_compiler_static='$wl-static'
8933 ;;
8934 esac
8935 ;;
8936
8937 hpux9* | hpux10* | hpux11*)
8938 lt_prog_compiler_wl='-Wl,'
8939 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8940 # not for PA HP-UX.
8941 case $host_cpu in
8942 hppa*64*|ia64*)
8943 # +Z the default
8944 ;;
8945 *)
8946 lt_prog_compiler_pic='+Z'
8947 ;;
8948 esac
8949 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8950 lt_prog_compiler_static='$wl-a ${wl}archive'
8951 ;;
8952
8953 irix5* | irix6* | nonstopux*)
8954 lt_prog_compiler_wl='-Wl,'
8955 # PIC (with -KPIC) is the default.
8956 lt_prog_compiler_static='-non_shared'
8957 ;;
8958
8959 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8960 case $cc_basename in
8961 # old Intel for x86_64, which still supported -KPIC.
8962 ecc*)
8963 lt_prog_compiler_wl='-Wl,'
8964 lt_prog_compiler_pic='-KPIC'
8965 lt_prog_compiler_static='-static'
8966 ;;
8967 # icc used to be incompatible with GCC.
8968 # ICC 10 doesn't accept -KPIC any more.
8969 icc* | ifort*)
8970 lt_prog_compiler_wl='-Wl,'
8971 lt_prog_compiler_pic='-fPIC'
8972 lt_prog_compiler_static='-static'
8973 ;;
8974 # Lahey Fortran 8.1.
8975 lf95*)
8976 lt_prog_compiler_wl='-Wl,'
8977 lt_prog_compiler_pic='--shared'
8978 lt_prog_compiler_static='--static'
8979 ;;
8980 nagfor*)
8981 # NAG Fortran compiler
8982 lt_prog_compiler_wl='-Wl,-Wl,,'
8983 lt_prog_compiler_pic='-PIC'
8984 lt_prog_compiler_static='-Bstatic'
8985 ;;
8986 tcc*)
8987 # Fabrice Bellard et al's Tiny C Compiler
8988 lt_prog_compiler_wl='-Wl,'
8989 lt_prog_compiler_pic='-fPIC'
8990 lt_prog_compiler_static='-static'
8991 ;;
8992 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8993 # Portland Group compilers (*not* the Pentium gcc compiler,
8994 # which looks to be a dead project)
8995 lt_prog_compiler_wl='-Wl,'
8996 lt_prog_compiler_pic='-fpic'
8997 lt_prog_compiler_static='-Bstatic'
8998 ;;
8999 ccc*)
9000 lt_prog_compiler_wl='-Wl,'
9001 # All Alpha code is PIC.
9002 lt_prog_compiler_static='-non_shared'
9003 ;;
9004 xl* | bgxl* | bgf* | mpixl*)
9005 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9006 lt_prog_compiler_wl='-Wl,'
9007 lt_prog_compiler_pic='-qpic'
9008 lt_prog_compiler_static='-qstaticlink'
9009 ;;
9010 *)
9011 case `$CC -V 2>&1 | sed 5q` in
9012 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9013 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9014 lt_prog_compiler_pic='-KPIC'
9015 lt_prog_compiler_static='-Bstatic'
9016 lt_prog_compiler_wl=''
9017 ;;
9018 *Sun\ F* | *Sun*Fortran*)
9019 lt_prog_compiler_pic='-KPIC'
9020 lt_prog_compiler_static='-Bstatic'
9021 lt_prog_compiler_wl='-Qoption ld '
9022 ;;
9023 *Sun\ C*)
9024 # Sun C 5.9
9025 lt_prog_compiler_pic='-KPIC'
9026 lt_prog_compiler_static='-Bstatic'
9027 lt_prog_compiler_wl='-Wl,'
9028 ;;
9029 *Intel*\ [CF]*Compiler*)
9030 lt_prog_compiler_wl='-Wl,'
9031 lt_prog_compiler_pic='-fPIC'
9032 lt_prog_compiler_static='-static'
9033 ;;
9034 *Portland\ Group*)
9035 lt_prog_compiler_wl='-Wl,'
9036 lt_prog_compiler_pic='-fpic'
9037 lt_prog_compiler_static='-Bstatic'
9038 ;;
9039 esac
9040 ;;
9041 esac
9042 ;;
9043
9044 newsos6)
9045 lt_prog_compiler_pic='-KPIC'
9046 lt_prog_compiler_static='-Bstatic'
9047 ;;
9048
9049 *nto* | *qnx*)
9050 # QNX uses GNU C++, but need to define -shared option too, otherwise
9051 # it will coredump.
9052 lt_prog_compiler_pic='-fPIC -shared'
9053 ;;
9054
9055 osf3* | osf4* | osf5*)
9056 lt_prog_compiler_wl='-Wl,'
9057 # All OSF/1 code is PIC.
9058 lt_prog_compiler_static='-non_shared'
9059 ;;
9060
9061 rdos*)
9062 lt_prog_compiler_static='-non_shared'
9063 ;;
9064
9065 solaris*)
9066 lt_prog_compiler_pic='-KPIC'
9067 lt_prog_compiler_static='-Bstatic'
9068 case $cc_basename in
9069 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9070 lt_prog_compiler_wl='-Qoption ld ';;
9071 *)
9072 lt_prog_compiler_wl='-Wl,';;
9073 esac
9074 ;;
9075
9076 sunos4*)
9077 lt_prog_compiler_wl='-Qoption ld '
9078 lt_prog_compiler_pic='-PIC'
9079 lt_prog_compiler_static='-Bstatic'
9080 ;;
9081
9082 sysv4 | sysv4.2uw2* | sysv4.3*)
9083 lt_prog_compiler_wl='-Wl,'
9084 lt_prog_compiler_pic='-KPIC'
9085 lt_prog_compiler_static='-Bstatic'
9086 ;;
9087
9088 sysv4*MP*)
9089 if test -d /usr/nec; then
9090 lt_prog_compiler_pic='-Kconform_pic'
9091 lt_prog_compiler_static='-Bstatic'
9092 fi
9093 ;;
9094
9095 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9096 lt_prog_compiler_wl='-Wl,'
9097 lt_prog_compiler_pic='-KPIC'
9098 lt_prog_compiler_static='-Bstatic'
9099 ;;
9100
9101 unicos*)
9102 lt_prog_compiler_wl='-Wl,'
9103 lt_prog_compiler_can_build_shared=no
9104 ;;
9105
9106 uts4*)
9107 lt_prog_compiler_pic='-pic'
9108 lt_prog_compiler_static='-Bstatic'
9109 ;;
9110
9111 *)
9112 lt_prog_compiler_can_build_shared=no
9113 ;;
9114 esac
9115 fi
9116
9117 case $host_os in
9118 # For platforms that do not support PIC, -DPIC is meaningless:
9119 *djgpp*)
9120 lt_prog_compiler_pic=
9121 ;;
9122 *)
9123 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9124 ;;
9125 esac
9126
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9128 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9129 if ${lt_cv_prog_compiler_pic+:} false; then :
9130 $as_echo_n "(cached) " >&6
9131 else
9132 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9133 fi
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9135 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9136 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9137
9138 #
9139 # Check to make sure the PIC flag actually works.
9140 #
9141 if test -n "$lt_prog_compiler_pic"; then
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9143 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9144 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9145 $as_echo_n "(cached) " >&6
9146 else
9147 lt_cv_prog_compiler_pic_works=no
9148 ac_outfile=conftest.$ac_objext
9149 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9150 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9151 # Insert the option either (1) after the last *FLAGS variable, or
9152 # (2) before a word containing "conftest.", or (3) at the end.
9153 # Note that $ac_compile itself does not contain backslashes and begins
9154 # with a dollar sign (not a hyphen), so the echo should work correctly.
9155 # The option is referenced via a variable to avoid confusing sed.
9156 lt_compile=`echo "$ac_compile" | $SED \
9157 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9158 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9159 -e 's:$: $lt_compiler_flag:'`
9160 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9161 (eval "$lt_compile" 2>conftest.err)
9162 ac_status=$?
9163 cat conftest.err >&5
9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165 if (exit $ac_status) && test -s "$ac_outfile"; then
9166 # The compiler can only warn and ignore the option if not recognized
9167 # So say no if there are warnings other than the usual output.
9168 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9169 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9170 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9171 lt_cv_prog_compiler_pic_works=yes
9172 fi
9173 fi
9174 $RM conftest*
9175
9176 fi
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9178 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9179
9180 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9181 case $lt_prog_compiler_pic in
9182 "" | " "*) ;;
9183 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9184 esac
9185 else
9186 lt_prog_compiler_pic=
9187 lt_prog_compiler_can_build_shared=no
9188 fi
9189
9190 fi
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202 #
9203 # Check to make sure the static flag actually works.
9204 #
9205 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9207 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9208 if ${lt_cv_prog_compiler_static_works+:} false; then :
9209 $as_echo_n "(cached) " >&6
9210 else
9211 lt_cv_prog_compiler_static_works=no
9212 save_LDFLAGS=$LDFLAGS
9213 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9214 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9215 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9216 # The linker can only warn and ignore the option if not recognized
9217 # So say no if there are warnings
9218 if test -s conftest.err; then
9219 # Append any errors to the config.log.
9220 cat conftest.err 1>&5
9221 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9222 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9223 if diff conftest.exp conftest.er2 >/dev/null; then
9224 lt_cv_prog_compiler_static_works=yes
9225 fi
9226 else
9227 lt_cv_prog_compiler_static_works=yes
9228 fi
9229 fi
9230 $RM -r conftest*
9231 LDFLAGS=$save_LDFLAGS
9232
9233 fi
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9235 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9236
9237 if test yes = "$lt_cv_prog_compiler_static_works"; then
9238 :
9239 else
9240 lt_prog_compiler_static=
9241 fi
9242
9243
9244
9245
9246
9247
9248
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9250 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9251 if ${lt_cv_prog_compiler_c_o+:} false; then :
9252 $as_echo_n "(cached) " >&6
9253 else
9254 lt_cv_prog_compiler_c_o=no
9255 $RM -r conftest 2>/dev/null
9256 mkdir conftest
9257 cd conftest
9258 mkdir out
9259 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9260
9261 lt_compiler_flag="-o out/conftest2.$ac_objext"
9262 # Insert the option either (1) after the last *FLAGS variable, or
9263 # (2) before a word containing "conftest.", or (3) at the end.
9264 # Note that $ac_compile itself does not contain backslashes and begins
9265 # with a dollar sign (not a hyphen), so the echo should work correctly.
9266 lt_compile=`echo "$ac_compile" | $SED \
9267 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9268 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9269 -e 's:$: $lt_compiler_flag:'`
9270 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9271 (eval "$lt_compile" 2>out/conftest.err)
9272 ac_status=$?
9273 cat out/conftest.err >&5
9274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9276 then
9277 # The compiler can only warn and ignore the option if not recognized
9278 # So say no if there are warnings
9279 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9280 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9281 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9282 lt_cv_prog_compiler_c_o=yes
9283 fi
9284 fi
9285 chmod u+w . 2>&5
9286 $RM conftest*
9287 # SGI C++ compiler will create directory out/ii_files/ for
9288 # template instantiation
9289 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9290 $RM out/* && rmdir out
9291 cd ..
9292 $RM -r conftest
9293 $RM conftest*
9294
9295 fi
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9297 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9298
9299
9300
9301
9302
9303
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9305 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9306 if ${lt_cv_prog_compiler_c_o+:} false; then :
9307 $as_echo_n "(cached) " >&6
9308 else
9309 lt_cv_prog_compiler_c_o=no
9310 $RM -r conftest 2>/dev/null
9311 mkdir conftest
9312 cd conftest
9313 mkdir out
9314 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9315
9316 lt_compiler_flag="-o out/conftest2.$ac_objext"
9317 # Insert the option either (1) after the last *FLAGS variable, or
9318 # (2) before a word containing "conftest.", or (3) at the end.
9319 # Note that $ac_compile itself does not contain backslashes and begins
9320 # with a dollar sign (not a hyphen), so the echo should work correctly.
9321 lt_compile=`echo "$ac_compile" | $SED \
9322 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9323 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9324 -e 's:$: $lt_compiler_flag:'`
9325 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9326 (eval "$lt_compile" 2>out/conftest.err)
9327 ac_status=$?
9328 cat out/conftest.err >&5
9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9331 then
9332 # The compiler can only warn and ignore the option if not recognized
9333 # So say no if there are warnings
9334 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9335 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9336 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9337 lt_cv_prog_compiler_c_o=yes
9338 fi
9339 fi
9340 chmod u+w . 2>&5
9341 $RM conftest*
9342 # SGI C++ compiler will create directory out/ii_files/ for
9343 # template instantiation
9344 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9345 $RM out/* && rmdir out
9346 cd ..
9347 $RM -r conftest
9348 $RM conftest*
9349
9350 fi
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9352 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9353
9354
9355
9356
9357 hard_links=nottested
9358 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9359 # do not overwrite the value of need_locks provided by the user
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9361 $as_echo_n "checking if we can lock with hard links... " >&6; }
9362 hard_links=yes
9363 $RM conftest*
9364 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9365 touch conftest.a
9366 ln conftest.a conftest.b 2>&5 || hard_links=no
9367 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9369 $as_echo "$hard_links" >&6; }
9370 if test no = "$hard_links"; then
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9372 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9373 need_locks=warn
9374 fi
9375 else
9376 need_locks=no
9377 fi
9378
9379
9380
9381
9382
9383
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9385 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9386
9387 runpath_var=
9388 allow_undefined_flag=
9389 always_export_symbols=no
9390 archive_cmds=
9391 archive_expsym_cmds=
9392 compiler_needs_object=no
9393 enable_shared_with_static_runtimes=no
9394 export_dynamic_flag_spec=
9395 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9396 hardcode_automatic=no
9397 hardcode_direct=no
9398 hardcode_direct_absolute=no
9399 hardcode_libdir_flag_spec=
9400 hardcode_libdir_separator=
9401 hardcode_minus_L=no
9402 hardcode_shlibpath_var=unsupported
9403 inherit_rpath=no
9404 link_all_deplibs=unknown
9405 module_cmds=
9406 module_expsym_cmds=
9407 old_archive_from_new_cmds=
9408 old_archive_from_expsyms_cmds=
9409 thread_safe_flag_spec=
9410 whole_archive_flag_spec=
9411 # include_expsyms should be a list of space-separated symbols to be *always*
9412 # included in the symbol list
9413 include_expsyms=
9414 # exclude_expsyms can be an extended regexp of symbols to exclude
9415 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9416 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9417 # as well as any symbol that contains 'd'.
9418 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9419 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9420 # platforms (ab)use it in PIC code, but their linkers get confused if
9421 # the symbol is explicitly referenced. Since portable code cannot
9422 # rely on this symbol name, it's probably fine to never include it in
9423 # preloaded symbol tables.
9424 # Exclude shared library initialization/finalization symbols.
9425 extract_expsyms_cmds=
9426
9427 case $host_os in
9428 cygwin* | mingw* | pw32* | cegcc*)
9429 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9430 # When not using gcc, we currently assume that we are using
9431 # Microsoft Visual C++.
9432 if test yes != "$GCC"; then
9433 with_gnu_ld=no
9434 fi
9435 ;;
9436 interix*)
9437 # we just hope/assume this is gcc and not c89 (= MSVC++)
9438 with_gnu_ld=yes
9439 ;;
9440 openbsd* | bitrig*)
9441 with_gnu_ld=no
9442 ;;
9443 esac
9444
9445 ld_shlibs=yes
9446
9447 # On some targets, GNU ld is compatible enough with the native linker
9448 # that we're better off using the native interface for both.
9449 lt_use_gnu_ld_interface=no
9450 if test yes = "$with_gnu_ld"; then
9451 case $host_os in
9452 aix*)
9453 # The AIX port of GNU ld has always aspired to compatibility
9454 # with the native linker. However, as the warning in the GNU ld
9455 # block says, versions before 2.19.5* couldn't really create working
9456 # shared libraries, regardless of the interface used.
9457 case `$LD -v 2>&1` in
9458 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9459 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9460 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9461 *)
9462 lt_use_gnu_ld_interface=yes
9463 ;;
9464 esac
9465 ;;
9466 *)
9467 lt_use_gnu_ld_interface=yes
9468 ;;
9469 esac
9470 fi
9471
9472 if test yes = "$lt_use_gnu_ld_interface"; then
9473 # If archive_cmds runs LD, not CC, wlarc should be empty
9474 wlarc='$wl'
9475
9476 # Set some defaults for GNU ld with shared library support. These
9477 # are reset later if shared libraries are not supported. Putting them
9478 # here allows them to be overridden if necessary.
9479 runpath_var=LD_RUN_PATH
9480 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9481 export_dynamic_flag_spec='$wl--export-dynamic'
9482 # ancient GNU ld didn't support --whole-archive et. al.
9483 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9484 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9485 else
9486 whole_archive_flag_spec=
9487 fi
9488 supports_anon_versioning=no
9489 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9490 *GNU\ gold*) supports_anon_versioning=yes ;;
9491 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9492 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9493 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9494 *\ 2.11.*) ;; # other 2.11 versions
9495 *) supports_anon_versioning=yes ;;
9496 esac
9497
9498 # See if GNU ld supports shared libraries.
9499 case $host_os in
9500 aix[3-9]*)
9501 # On AIX/PPC, the GNU linker is very broken
9502 if test ia64 != "$host_cpu"; then
9503 ld_shlibs=no
9504 cat <<_LT_EOF 1>&2
9505
9506 *** Warning: the GNU linker, at least up to release 2.19, is reported
9507 *** to be unable to reliably create shared libraries on AIX.
9508 *** Therefore, libtool is disabling shared libraries support. If you
9509 *** really care for shared libraries, you may want to install binutils
9510 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9511 *** You will then need to restart the configuration process.
9512
9513 _LT_EOF
9514 fi
9515 ;;
9516
9517 amigaos*)
9518 case $host_cpu in
9519 powerpc)
9520 # see comment about AmigaOS4 .so support
9521 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9522 archive_expsym_cmds=''
9523 ;;
9524 m68k)
9525 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)'
9526 hardcode_libdir_flag_spec='-L$libdir'
9527 hardcode_minus_L=yes
9528 ;;
9529 esac
9530 ;;
9531
9532 beos*)
9533 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9534 allow_undefined_flag=unsupported
9535 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
9536 # support --undefined. This deserves some investigation. FIXME
9537 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9538 else
9539 ld_shlibs=no
9540 fi
9541 ;;
9542
9543 cygwin* | mingw* | pw32* | cegcc*)
9544 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9545 # as there is no search path for DLLs.
9546 hardcode_libdir_flag_spec='-L$libdir'
9547 export_dynamic_flag_spec='$wl--export-all-symbols'
9548 allow_undefined_flag=unsupported
9549 always_export_symbols=no
9550 enable_shared_with_static_runtimes=yes
9551 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'
9552 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9553
9554 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9555 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9556 # If the export-symbols file already is a .def file, use it as
9557 # is; otherwise, prepend EXPORTS...
9558 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9559 cp $export_symbols $output_objdir/$soname.def;
9560 else
9561 echo EXPORTS > $output_objdir/$soname.def;
9562 cat $export_symbols >> $output_objdir/$soname.def;
9563 fi~
9564 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9565 else
9566 ld_shlibs=no
9567 fi
9568 ;;
9569
9570 haiku*)
9571 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9572 link_all_deplibs=yes
9573 ;;
9574
9575 os2*)
9576 hardcode_libdir_flag_spec='-L$libdir'
9577 hardcode_minus_L=yes
9578 allow_undefined_flag=unsupported
9579 shrext_cmds=.dll
9580 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9581 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9582 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9583 $ECHO EXPORTS >> $output_objdir/$libname.def~
9584 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9585 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9586 emximp -o $lib $output_objdir/$libname.def'
9587 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9588 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9589 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9590 $ECHO EXPORTS >> $output_objdir/$libname.def~
9591 prefix_cmds="$SED"~
9592 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9593 prefix_cmds="$prefix_cmds -e 1d";
9594 fi~
9595 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9596 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9597 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9598 emximp -o $lib $output_objdir/$libname.def'
9599 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9600 enable_shared_with_static_runtimes=yes
9601 ;;
9602
9603 interix[3-9]*)
9604 hardcode_direct=no
9605 hardcode_shlibpath_var=no
9606 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9607 export_dynamic_flag_spec='$wl-E'
9608 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9609 # Instead, shared libraries are loaded at an image base (0x10000000 by
9610 # default) and relocated if they conflict, which is a slow very memory
9611 # consuming and fragmenting process. To avoid this, we pick a random,
9612 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9613 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9614 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9615 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'
9616 ;;
9617
9618 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9619 tmp_diet=no
9620 if test linux-dietlibc = "$host_os"; then
9621 case $cc_basename in
9622 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9623 esac
9624 fi
9625 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9626 && test no = "$tmp_diet"
9627 then
9628 tmp_addflag=' $pic_flag'
9629 tmp_sharedflag='-shared'
9630 case $cc_basename,$host_cpu in
9631 pgcc*) # Portland Group C compiler
9632 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'
9633 tmp_addflag=' $pic_flag'
9634 ;;
9635 pgf77* | pgf90* | pgf95* | pgfortran*)
9636 # Portland Group f77 and f90 compilers
9637 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'
9638 tmp_addflag=' $pic_flag -Mnomain' ;;
9639 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9640 tmp_addflag=' -i_dynamic' ;;
9641 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9642 tmp_addflag=' -i_dynamic -nofor_main' ;;
9643 ifc* | ifort*) # Intel Fortran compiler
9644 tmp_addflag=' -nofor_main' ;;
9645 lf95*) # Lahey Fortran 8.1
9646 whole_archive_flag_spec=
9647 tmp_sharedflag='--shared' ;;
9648 nagfor*) # NAGFOR 5.3
9649 tmp_sharedflag='-Wl,-shared' ;;
9650 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9651 tmp_sharedflag='-qmkshrobj'
9652 tmp_addflag= ;;
9653 nvcc*) # Cuda Compiler Driver 2.2
9654 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'
9655 compiler_needs_object=yes
9656 ;;
9657 esac
9658 case `$CC -V 2>&1 | sed 5q` in
9659 *Sun\ C*) # Sun C 5.9
9660 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'
9661 compiler_needs_object=yes
9662 tmp_sharedflag='-G' ;;
9663 *Sun\ F*) # Sun Fortran 8.3
9664 tmp_sharedflag='-G' ;;
9665 esac
9666 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9667
9668 if test yes = "$supports_anon_versioning"; then
9669 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9670 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9671 echo "local: *; };" >> $output_objdir/$libname.ver~
9672 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9673 fi
9674
9675 case $cc_basename in
9676 tcc*)
9677 export_dynamic_flag_spec='-rdynamic'
9678 ;;
9679 xlf* | bgf* | bgxlf* | mpixlf*)
9680 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9681 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9682 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9683 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9684 if test yes = "$supports_anon_versioning"; then
9685 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9686 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9687 echo "local: *; };" >> $output_objdir/$libname.ver~
9688 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9689 fi
9690 ;;
9691 esac
9692 else
9693 ld_shlibs=no
9694 fi
9695 ;;
9696
9697 netbsd*)
9698 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9699 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9700 wlarc=
9701 else
9702 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9703 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9704 fi
9705 ;;
9706
9707 solaris*)
9708 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9709 ld_shlibs=no
9710 cat <<_LT_EOF 1>&2
9711
9712 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9713 *** create shared libraries on Solaris systems. Therefore, libtool
9714 *** is disabling shared libraries support. We urge you to upgrade GNU
9715 *** binutils to release 2.9.1 or newer. Another option is to modify
9716 *** your PATH or compiler configuration so that the native linker is
9717 *** used, and then restart.
9718
9719 _LT_EOF
9720 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9721 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9722 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9723 else
9724 ld_shlibs=no
9725 fi
9726 ;;
9727
9728 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9729 case `$LD -v 2>&1` in
9730 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9731 ld_shlibs=no
9732 cat <<_LT_EOF 1>&2
9733
9734 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9735 *** reliably create shared libraries on SCO systems. Therefore, libtool
9736 *** is disabling shared libraries support. We urge you to upgrade GNU
9737 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9738 *** your PATH or compiler configuration so that the native linker is
9739 *** used, and then restart.
9740
9741 _LT_EOF
9742 ;;
9743 *)
9744 # For security reasons, it is highly recommended that you always
9745 # use absolute paths for naming shared libraries, and exclude the
9746 # DT_RUNPATH tag from executables and libraries. But doing so
9747 # requires that you compile everything twice, which is a pain.
9748 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9749 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9750 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9751 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9752 else
9753 ld_shlibs=no
9754 fi
9755 ;;
9756 esac
9757 ;;
9758
9759 sunos4*)
9760 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9761 wlarc=
9762 hardcode_direct=yes
9763 hardcode_shlibpath_var=no
9764 ;;
9765
9766 *)
9767 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9768 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9769 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9770 else
9771 ld_shlibs=no
9772 fi
9773 ;;
9774 esac
9775
9776 if test no = "$ld_shlibs"; then
9777 runpath_var=
9778 hardcode_libdir_flag_spec=
9779 export_dynamic_flag_spec=
9780 whole_archive_flag_spec=
9781 fi
9782 else
9783 # PORTME fill in a description of your system's linker (not GNU ld)
9784 case $host_os in
9785 aix3*)
9786 allow_undefined_flag=unsupported
9787 always_export_symbols=yes
9788 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'
9789 # Note: this linker hardcodes the directories in LIBPATH if there
9790 # are no directories specified by -L.
9791 hardcode_minus_L=yes
9792 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9793 # Neither direct hardcoding nor static linking is supported with a
9794 # broken collect2.
9795 hardcode_direct=unsupported
9796 fi
9797 ;;
9798
9799 aix[4-9]*)
9800 if test ia64 = "$host_cpu"; then
9801 # On IA64, the linker does run time linking by default, so we don't
9802 # have to do anything special.
9803 aix_use_runtimelinking=no
9804 exp_sym_flag='-Bexport'
9805 no_entry_flag=
9806 else
9807 # If we're using GNU nm, then we don't want the "-C" option.
9808 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9809 # Without the "-l" option, or with the "-B" option, AIX nm treats
9810 # weak defined symbols like other global defined symbols, whereas
9811 # GNU nm marks them as "W".
9812 # While the 'weak' keyword is ignored in the Export File, we need
9813 # it in the Import File for the 'aix-soname' feature, so we have
9814 # to replace the "-B" option with "-P" for AIX nm.
9815 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9816 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9817 else
9818 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9819 fi
9820 aix_use_runtimelinking=no
9821
9822 # Test if we are trying to use run time linking or normal
9823 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9824 # have runtime linking enabled, and use it for executables.
9825 # For shared libraries, we enable/disable runtime linking
9826 # depending on the kind of the shared library created -
9827 # when "with_aix_soname,aix_use_runtimelinking" is:
9828 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9829 # "aix,yes" lib.so shared, rtl:yes, for executables
9830 # lib.a static archive
9831 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9832 # lib.a(lib.so.V) shared, rtl:no, for executables
9833 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9834 # lib.a(lib.so.V) shared, rtl:no
9835 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9836 # lib.a static archive
9837 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9838 for ld_flag in $LDFLAGS; do
9839 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9840 aix_use_runtimelinking=yes
9841 break
9842 fi
9843 done
9844 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9845 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9846 # so we don't have lib.a shared libs to link our executables.
9847 # We have to force runtime linking in this case.
9848 aix_use_runtimelinking=yes
9849 LDFLAGS="$LDFLAGS -Wl,-brtl"
9850 fi
9851 ;;
9852 esac
9853
9854 exp_sym_flag='-bexport'
9855 no_entry_flag='-bnoentry'
9856 fi
9857
9858 # When large executables or shared objects are built, AIX ld can
9859 # have problems creating the table of contents. If linking a library
9860 # or program results in "error TOC overflow" add -mminimal-toc to
9861 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9862 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9863
9864 archive_cmds=''
9865 hardcode_direct=yes
9866 hardcode_direct_absolute=yes
9867 hardcode_libdir_separator=':'
9868 link_all_deplibs=yes
9869 file_list_spec='$wl-f,'
9870 case $with_aix_soname,$aix_use_runtimelinking in
9871 aix,*) ;; # traditional, no import file
9872 svr4,* | *,yes) # use import file
9873 # The Import File defines what to hardcode.
9874 hardcode_direct=no
9875 hardcode_direct_absolute=no
9876 ;;
9877 esac
9878
9879 if test yes = "$GCC"; then
9880 case $host_os in aix4.[012]|aix4.[012].*)
9881 # We only want to do this on AIX 4.2 and lower, the check
9882 # below for broken collect2 doesn't work under 4.3+
9883 collect2name=`$CC -print-prog-name=collect2`
9884 if test -f "$collect2name" &&
9885 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9886 then
9887 # We have reworked collect2
9888 :
9889 else
9890 # We have old collect2
9891 hardcode_direct=unsupported
9892 # It fails to find uninstalled libraries when the uninstalled
9893 # path is not listed in the libpath. Setting hardcode_minus_L
9894 # to unsupported forces relinking
9895 hardcode_minus_L=yes
9896 hardcode_libdir_flag_spec='-L$libdir'
9897 hardcode_libdir_separator=
9898 fi
9899 ;;
9900 esac
9901 shared_flag='-shared'
9902 if test yes = "$aix_use_runtimelinking"; then
9903 shared_flag="$shared_flag "'$wl-G'
9904 fi
9905 # Need to ensure runtime linking is disabled for the traditional
9906 # shared library, or the linker may eventually find shared libraries
9907 # /with/ Import File - we do not want to mix them.
9908 shared_flag_aix='-shared'
9909 shared_flag_svr4='-shared $wl-G'
9910 else
9911 # not using gcc
9912 if test ia64 = "$host_cpu"; then
9913 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9914 # chokes on -Wl,-G. The following line is correct:
9915 shared_flag='-G'
9916 else
9917 if test yes = "$aix_use_runtimelinking"; then
9918 shared_flag='$wl-G'
9919 else
9920 shared_flag='$wl-bM:SRE'
9921 fi
9922 shared_flag_aix='$wl-bM:SRE'
9923 shared_flag_svr4='$wl-G'
9924 fi
9925 fi
9926
9927 export_dynamic_flag_spec='$wl-bexpall'
9928 # It seems that -bexpall does not export symbols beginning with
9929 # underscore (_), so it is better to generate a list of symbols to export.
9930 always_export_symbols=yes
9931 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9932 # Warning - without using the other runtime loading flags (-brtl),
9933 # -berok will link without error, but may produce a broken library.
9934 allow_undefined_flag='-berok'
9935 # Determine the default libpath from the value encoded in an
9936 # empty executable.
9937 if test set = "${lt_cv_aix_libpath+set}"; then
9938 aix_libpath=$lt_cv_aix_libpath
9939 else
9940 if ${lt_cv_aix_libpath_+:} false; then :
9941 $as_echo_n "(cached) " >&6
9942 else
9943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9944 /* end confdefs.h. */
9945
9946 int
9947 main ()
9948 {
9949
9950 ;
9951 return 0;
9952 }
9953 _ACEOF
9954 if ac_fn_c_try_link "$LINENO"; then :
9955
9956 lt_aix_libpath_sed='
9957 /Import File Strings/,/^$/ {
9958 /^0/ {
9959 s/^0 *\([^ ]*\) *$/\1/
9960 p
9961 }
9962 }'
9963 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9964 # Check for a 64-bit object if we didn't find anything.
9965 if test -z "$lt_cv_aix_libpath_"; then
9966 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9967 fi
9968 fi
9969 rm -f core conftest.err conftest.$ac_objext \
9970 conftest$ac_exeext conftest.$ac_ext
9971 if test -z "$lt_cv_aix_libpath_"; then
9972 lt_cv_aix_libpath_=/usr/lib:/lib
9973 fi
9974
9975 fi
9976
9977 aix_libpath=$lt_cv_aix_libpath_
9978 fi
9979
9980 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9981 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9982 else
9983 if test ia64 = "$host_cpu"; then
9984 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9985 allow_undefined_flag="-z nodefs"
9986 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"
9987 else
9988 # Determine the default libpath from the value encoded in an
9989 # empty executable.
9990 if test set = "${lt_cv_aix_libpath+set}"; then
9991 aix_libpath=$lt_cv_aix_libpath
9992 else
9993 if ${lt_cv_aix_libpath_+:} false; then :
9994 $as_echo_n "(cached) " >&6
9995 else
9996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9997 /* end confdefs.h. */
9998
9999 int
10000 main ()
10001 {
10002
10003 ;
10004 return 0;
10005 }
10006 _ACEOF
10007 if ac_fn_c_try_link "$LINENO"; then :
10008
10009 lt_aix_libpath_sed='
10010 /Import File Strings/,/^$/ {
10011 /^0/ {
10012 s/^0 *\([^ ]*\) *$/\1/
10013 p
10014 }
10015 }'
10016 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10017 # Check for a 64-bit object if we didn't find anything.
10018 if test -z "$lt_cv_aix_libpath_"; then
10019 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10020 fi
10021 fi
10022 rm -f core conftest.err conftest.$ac_objext \
10023 conftest$ac_exeext conftest.$ac_ext
10024 if test -z "$lt_cv_aix_libpath_"; then
10025 lt_cv_aix_libpath_=/usr/lib:/lib
10026 fi
10027
10028 fi
10029
10030 aix_libpath=$lt_cv_aix_libpath_
10031 fi
10032
10033 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10034 # Warning - without using the other run time loading flags,
10035 # -berok will link without error, but may produce a broken library.
10036 no_undefined_flag=' $wl-bernotok'
10037 allow_undefined_flag=' $wl-berok'
10038 if test yes = "$with_gnu_ld"; then
10039 # We only use this code for GNU lds that support --whole-archive.
10040 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10041 else
10042 # Exported symbols can be pulled into shared objects from archives
10043 whole_archive_flag_spec='$convenience'
10044 fi
10045 archive_cmds_need_lc=yes
10046 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10047 # -brtl affects multiple linker settings, -berok does not and is overridden later
10048 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10049 if test svr4 != "$with_aix_soname"; then
10050 # This is similar to how AIX traditionally builds its shared libraries.
10051 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10052 fi
10053 if test aix != "$with_aix_soname"; then
10054 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10055 else
10056 # used by -dlpreopen to get the symbols
10057 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10058 fi
10059 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10060 fi
10061 fi
10062 ;;
10063
10064 amigaos*)
10065 case $host_cpu in
10066 powerpc)
10067 # see comment about AmigaOS4 .so support
10068 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10069 archive_expsym_cmds=''
10070 ;;
10071 m68k)
10072 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)'
10073 hardcode_libdir_flag_spec='-L$libdir'
10074 hardcode_minus_L=yes
10075 ;;
10076 esac
10077 ;;
10078
10079 bsdi[45]*)
10080 export_dynamic_flag_spec=-rdynamic
10081 ;;
10082
10083 cygwin* | mingw* | pw32* | cegcc*)
10084 # When not using gcc, we currently assume that we are using
10085 # Microsoft Visual C++.
10086 # hardcode_libdir_flag_spec is actually meaningless, as there is
10087 # no search path for DLLs.
10088 case $cc_basename in
10089 cl*)
10090 # Native MSVC
10091 hardcode_libdir_flag_spec=' '
10092 allow_undefined_flag=unsupported
10093 always_export_symbols=yes
10094 file_list_spec='@'
10095 # Tell ltmain to make .lib files, not .a files.
10096 libext=lib
10097 # Tell ltmain to make .dll files, not .so files.
10098 shrext_cmds=.dll
10099 # FIXME: Setting linknames here is a bad hack.
10100 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10101 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10102 cp "$export_symbols" "$output_objdir/$soname.def";
10103 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10104 else
10105 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10106 fi~
10107 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10108 linknames='
10109 # The linker will not automatically build a static lib if we build a DLL.
10110 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10111 enable_shared_with_static_runtimes=yes
10112 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10113 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10114 # Don't use ranlib
10115 old_postinstall_cmds='chmod 644 $oldlib'
10116 postlink_cmds='lt_outputfile="@OUTPUT@"~
10117 lt_tool_outputfile="@TOOL_OUTPUT@"~
10118 case $lt_outputfile in
10119 *.exe|*.EXE) ;;
10120 *)
10121 lt_outputfile=$lt_outputfile.exe
10122 lt_tool_outputfile=$lt_tool_outputfile.exe
10123 ;;
10124 esac~
10125 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10126 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10127 $RM "$lt_outputfile.manifest";
10128 fi'
10129 ;;
10130 *)
10131 # Assume MSVC wrapper
10132 hardcode_libdir_flag_spec=' '
10133 allow_undefined_flag=unsupported
10134 # Tell ltmain to make .lib files, not .a files.
10135 libext=lib
10136 # Tell ltmain to make .dll files, not .so files.
10137 shrext_cmds=.dll
10138 # FIXME: Setting linknames here is a bad hack.
10139 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10140 # The linker will automatically build a .lib file if we build a DLL.
10141 old_archive_from_new_cmds='true'
10142 # FIXME: Should let the user specify the lib program.
10143 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10144 enable_shared_with_static_runtimes=yes
10145 ;;
10146 esac
10147 ;;
10148
10149 darwin* | rhapsody*)
10150
10151
10152 archive_cmds_need_lc=no
10153 hardcode_direct=no
10154 hardcode_automatic=yes
10155 hardcode_shlibpath_var=unsupported
10156 if test yes = "$lt_cv_ld_force_load"; then
10157 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\"`'
10158
10159 else
10160 whole_archive_flag_spec=''
10161 fi
10162 link_all_deplibs=yes
10163 allow_undefined_flag=$_lt_dar_allow_undefined
10164 case $cc_basename in
10165 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10166 *) _lt_dar_can_shared=$GCC ;;
10167 esac
10168 if test yes = "$_lt_dar_can_shared"; then
10169 output_verbose_link_cmd=func_echo_all
10170 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10171 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10172 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"
10173 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"
10174
10175 else
10176 ld_shlibs=no
10177 fi
10178
10179 ;;
10180
10181 dgux*)
10182 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10183 hardcode_libdir_flag_spec='-L$libdir'
10184 hardcode_shlibpath_var=no
10185 ;;
10186
10187 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10188 # support. Future versions do this automatically, but an explicit c++rt0.o
10189 # does not break anything, and helps significantly (at the cost of a little
10190 # extra space).
10191 freebsd2.2*)
10192 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10193 hardcode_libdir_flag_spec='-R$libdir'
10194 hardcode_direct=yes
10195 hardcode_shlibpath_var=no
10196 ;;
10197
10198 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10199 freebsd2.*)
10200 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10201 hardcode_direct=yes
10202 hardcode_minus_L=yes
10203 hardcode_shlibpath_var=no
10204 ;;
10205
10206 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10207 freebsd* | dragonfly*)
10208 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10209 hardcode_libdir_flag_spec='-R$libdir'
10210 hardcode_direct=yes
10211 hardcode_shlibpath_var=no
10212 ;;
10213
10214 hpux9*)
10215 if test yes = "$GCC"; then
10216 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10217 else
10218 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10219 fi
10220 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10221 hardcode_libdir_separator=:
10222 hardcode_direct=yes
10223
10224 # hardcode_minus_L: Not really in the search PATH,
10225 # but as the default location of the library.
10226 hardcode_minus_L=yes
10227 export_dynamic_flag_spec='$wl-E'
10228 ;;
10229
10230 hpux10*)
10231 if test yes,no = "$GCC,$with_gnu_ld"; then
10232 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10233 else
10234 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10235 fi
10236 if test no = "$with_gnu_ld"; then
10237 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10238 hardcode_libdir_separator=:
10239 hardcode_direct=yes
10240 hardcode_direct_absolute=yes
10241 export_dynamic_flag_spec='$wl-E'
10242 # hardcode_minus_L: Not really in the search PATH,
10243 # but as the default location of the library.
10244 hardcode_minus_L=yes
10245 fi
10246 ;;
10247
10248 hpux11*)
10249 if test yes,no = "$GCC,$with_gnu_ld"; then
10250 case $host_cpu in
10251 hppa*64*)
10252 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10253 ;;
10254 ia64*)
10255 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10256 ;;
10257 *)
10258 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10259 ;;
10260 esac
10261 else
10262 case $host_cpu in
10263 hppa*64*)
10264 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10265 ;;
10266 ia64*)
10267 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10268 ;;
10269 *)
10270
10271 # Older versions of the 11.00 compiler do not understand -b yet
10272 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10274 $as_echo_n "checking if $CC understands -b... " >&6; }
10275 if ${lt_cv_prog_compiler__b+:} false; then :
10276 $as_echo_n "(cached) " >&6
10277 else
10278 lt_cv_prog_compiler__b=no
10279 save_LDFLAGS=$LDFLAGS
10280 LDFLAGS="$LDFLAGS -b"
10281 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10282 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10283 # The linker can only warn and ignore the option if not recognized
10284 # So say no if there are warnings
10285 if test -s conftest.err; then
10286 # Append any errors to the config.log.
10287 cat conftest.err 1>&5
10288 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10289 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10290 if diff conftest.exp conftest.er2 >/dev/null; then
10291 lt_cv_prog_compiler__b=yes
10292 fi
10293 else
10294 lt_cv_prog_compiler__b=yes
10295 fi
10296 fi
10297 $RM -r conftest*
10298 LDFLAGS=$save_LDFLAGS
10299
10300 fi
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10302 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10303
10304 if test yes = "$lt_cv_prog_compiler__b"; then
10305 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10306 else
10307 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10308 fi
10309
10310 ;;
10311 esac
10312 fi
10313 if test no = "$with_gnu_ld"; then
10314 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10315 hardcode_libdir_separator=:
10316
10317 case $host_cpu in
10318 hppa*64*|ia64*)
10319 hardcode_direct=no
10320 hardcode_shlibpath_var=no
10321 ;;
10322 *)
10323 hardcode_direct=yes
10324 hardcode_direct_absolute=yes
10325 export_dynamic_flag_spec='$wl-E'
10326
10327 # hardcode_minus_L: Not really in the search PATH,
10328 # but as the default location of the library.
10329 hardcode_minus_L=yes
10330 ;;
10331 esac
10332 fi
10333 ;;
10334
10335 irix5* | irix6* | nonstopux*)
10336 if test yes = "$GCC"; then
10337 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'
10338 # Try to use the -exported_symbol ld option, if it does not
10339 # work, assume that -exports_file does not work either and
10340 # implicitly export all symbols.
10341 # This should be the same for all languages, so no per-tag cache variable.
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10343 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10344 if ${lt_cv_irix_exported_symbol+:} false; then :
10345 $as_echo_n "(cached) " >&6
10346 else
10347 save_LDFLAGS=$LDFLAGS
10348 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10350 /* end confdefs.h. */
10351 int foo (void) { return 0; }
10352 _ACEOF
10353 if ac_fn_c_try_link "$LINENO"; then :
10354 lt_cv_irix_exported_symbol=yes
10355 else
10356 lt_cv_irix_exported_symbol=no
10357 fi
10358 rm -f core conftest.err conftest.$ac_objext \
10359 conftest$ac_exeext conftest.$ac_ext
10360 LDFLAGS=$save_LDFLAGS
10361 fi
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10363 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10364 if test yes = "$lt_cv_irix_exported_symbol"; then
10365 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'
10366 fi
10367 else
10368 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'
10369 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'
10370 fi
10371 archive_cmds_need_lc='no'
10372 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10373 hardcode_libdir_separator=:
10374 inherit_rpath=yes
10375 link_all_deplibs=yes
10376 ;;
10377
10378 linux*)
10379 case $cc_basename in
10380 tcc*)
10381 # Fabrice Bellard et al's Tiny C Compiler
10382 ld_shlibs=yes
10383 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10384 ;;
10385 esac
10386 ;;
10387
10388 netbsd*)
10389 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10390 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10391 else
10392 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10393 fi
10394 hardcode_libdir_flag_spec='-R$libdir'
10395 hardcode_direct=yes
10396 hardcode_shlibpath_var=no
10397 ;;
10398
10399 newsos6)
10400 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10401 hardcode_direct=yes
10402 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10403 hardcode_libdir_separator=:
10404 hardcode_shlibpath_var=no
10405 ;;
10406
10407 *nto* | *qnx*)
10408 ;;
10409
10410 openbsd* | bitrig*)
10411 if test -f /usr/libexec/ld.so; then
10412 hardcode_direct=yes
10413 hardcode_shlibpath_var=no
10414 hardcode_direct_absolute=yes
10415 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10416 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10417 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10418 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10419 export_dynamic_flag_spec='$wl-E'
10420 else
10421 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10422 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10423 fi
10424 else
10425 ld_shlibs=no
10426 fi
10427 ;;
10428
10429 os2*)
10430 hardcode_libdir_flag_spec='-L$libdir'
10431 hardcode_minus_L=yes
10432 allow_undefined_flag=unsupported
10433 shrext_cmds=.dll
10434 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10435 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10436 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10437 $ECHO EXPORTS >> $output_objdir/$libname.def~
10438 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10439 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10440 emximp -o $lib $output_objdir/$libname.def'
10441 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10442 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10443 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10444 $ECHO EXPORTS >> $output_objdir/$libname.def~
10445 prefix_cmds="$SED"~
10446 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10447 prefix_cmds="$prefix_cmds -e 1d";
10448 fi~
10449 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10450 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10451 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10452 emximp -o $lib $output_objdir/$libname.def'
10453 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10454 enable_shared_with_static_runtimes=yes
10455 ;;
10456
10457 osf3*)
10458 if test yes = "$GCC"; then
10459 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10460 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'
10461 else
10462 allow_undefined_flag=' -expect_unresolved \*'
10463 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'
10464 fi
10465 archive_cmds_need_lc='no'
10466 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10467 hardcode_libdir_separator=:
10468 ;;
10469
10470 osf4* | osf5*) # as osf3* with the addition of -msym flag
10471 if test yes = "$GCC"; then
10472 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10473 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'
10474 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10475 else
10476 allow_undefined_flag=' -expect_unresolved \*'
10477 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'
10478 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~
10479 $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'
10480
10481 # Both c and cxx compiler support -rpath directly
10482 hardcode_libdir_flag_spec='-rpath $libdir'
10483 fi
10484 archive_cmds_need_lc='no'
10485 hardcode_libdir_separator=:
10486 ;;
10487
10488 solaris*)
10489 no_undefined_flag=' -z defs'
10490 if test yes = "$GCC"; then
10491 wlarc='$wl'
10492 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10493 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10494 $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'
10495 else
10496 case `$CC -V 2>&1` in
10497 *"Compilers 5.0"*)
10498 wlarc=''
10499 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10500 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10501 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10502 ;;
10503 *)
10504 wlarc='$wl'
10505 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10506 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10507 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10508 ;;
10509 esac
10510 fi
10511 hardcode_libdir_flag_spec='-R$libdir'
10512 hardcode_shlibpath_var=no
10513 case $host_os in
10514 solaris2.[0-5] | solaris2.[0-5].*) ;;
10515 *)
10516 # The compiler driver will combine and reorder linker options,
10517 # but understands '-z linker_flag'. GCC discards it without '$wl',
10518 # but is careful enough not to reorder.
10519 # Supported since Solaris 2.6 (maybe 2.5.1?)
10520 if test yes = "$GCC"; then
10521 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10522 else
10523 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10524 fi
10525 ;;
10526 esac
10527 link_all_deplibs=yes
10528 ;;
10529
10530 sunos4*)
10531 if test sequent = "$host_vendor"; then
10532 # Use $CC to link under sequent, because it throws in some extra .o
10533 # files that make .init and .fini sections work.
10534 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10535 else
10536 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10537 fi
10538 hardcode_libdir_flag_spec='-L$libdir'
10539 hardcode_direct=yes
10540 hardcode_minus_L=yes
10541 hardcode_shlibpath_var=no
10542 ;;
10543
10544 sysv4)
10545 case $host_vendor in
10546 sni)
10547 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10548 hardcode_direct=yes # is this really true???
10549 ;;
10550 siemens)
10551 ## LD is ld it makes a PLAMLIB
10552 ## CC just makes a GrossModule.
10553 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10554 reload_cmds='$CC -r -o $output$reload_objs'
10555 hardcode_direct=no
10556 ;;
10557 motorola)
10558 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10559 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10560 ;;
10561 esac
10562 runpath_var='LD_RUN_PATH'
10563 hardcode_shlibpath_var=no
10564 ;;
10565
10566 sysv4.3*)
10567 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10568 hardcode_shlibpath_var=no
10569 export_dynamic_flag_spec='-Bexport'
10570 ;;
10571
10572 sysv4*MP*)
10573 if test -d /usr/nec; then
10574 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10575 hardcode_shlibpath_var=no
10576 runpath_var=LD_RUN_PATH
10577 hardcode_runpath_var=yes
10578 ld_shlibs=yes
10579 fi
10580 ;;
10581
10582 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10583 no_undefined_flag='$wl-z,text'
10584 archive_cmds_need_lc=no
10585 hardcode_shlibpath_var=no
10586 runpath_var='LD_RUN_PATH'
10587
10588 if test yes = "$GCC"; then
10589 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10590 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10591 else
10592 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10593 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10594 fi
10595 ;;
10596
10597 sysv5* | sco3.2v5* | sco5v6*)
10598 # Note: We CANNOT use -z defs as we might desire, because we do not
10599 # link with -lc, and that would cause any symbols used from libc to
10600 # always be unresolved, which means just about no library would
10601 # ever link correctly. If we're not using GNU ld we use -z text
10602 # though, which does catch some bad symbols but isn't as heavy-handed
10603 # as -z defs.
10604 no_undefined_flag='$wl-z,text'
10605 allow_undefined_flag='$wl-z,nodefs'
10606 archive_cmds_need_lc=no
10607 hardcode_shlibpath_var=no
10608 hardcode_libdir_flag_spec='$wl-R,$libdir'
10609 hardcode_libdir_separator=':'
10610 link_all_deplibs=yes
10611 export_dynamic_flag_spec='$wl-Bexport'
10612 runpath_var='LD_RUN_PATH'
10613
10614 if test yes = "$GCC"; then
10615 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10616 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10617 else
10618 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10619 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10620 fi
10621 ;;
10622
10623 uts4*)
10624 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10625 hardcode_libdir_flag_spec='-L$libdir'
10626 hardcode_shlibpath_var=no
10627 ;;
10628
10629 *)
10630 ld_shlibs=no
10631 ;;
10632 esac
10633
10634 if test sni = "$host_vendor"; then
10635 case $host in
10636 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10637 export_dynamic_flag_spec='$wl-Blargedynsym'
10638 ;;
10639 esac
10640 fi
10641 fi
10642
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10644 $as_echo "$ld_shlibs" >&6; }
10645 test no = "$ld_shlibs" && can_build_shared=no
10646
10647 with_gnu_ld=$with_gnu_ld
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663 #
10664 # Do we need to explicitly link libc?
10665 #
10666 case "x$archive_cmds_need_lc" in
10667 x|xyes)
10668 # Assume -lc should be added
10669 archive_cmds_need_lc=yes
10670
10671 if test yes,yes = "$GCC,$enable_shared"; then
10672 case $archive_cmds in
10673 *'~'*)
10674 # FIXME: we may have to deal with multi-command sequences.
10675 ;;
10676 '$CC '*)
10677 # Test whether the compiler implicitly links with -lc since on some
10678 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10679 # to ld, don't add -lc before -lgcc.
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10681 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10682 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10683 $as_echo_n "(cached) " >&6
10684 else
10685 $RM conftest*
10686 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10687
10688 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10689 (eval $ac_compile) 2>&5
10690 ac_status=$?
10691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10692 test $ac_status = 0; } 2>conftest.err; then
10693 soname=conftest
10694 lib=conftest
10695 libobjs=conftest.$ac_objext
10696 deplibs=
10697 wl=$lt_prog_compiler_wl
10698 pic_flag=$lt_prog_compiler_pic
10699 compiler_flags=-v
10700 linker_flags=-v
10701 verstring=
10702 output_objdir=.
10703 libname=conftest
10704 lt_save_allow_undefined_flag=$allow_undefined_flag
10705 allow_undefined_flag=
10706 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10707 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10708 ac_status=$?
10709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10710 test $ac_status = 0; }
10711 then
10712 lt_cv_archive_cmds_need_lc=no
10713 else
10714 lt_cv_archive_cmds_need_lc=yes
10715 fi
10716 allow_undefined_flag=$lt_save_allow_undefined_flag
10717 else
10718 cat conftest.err 1>&5
10719 fi
10720 $RM conftest*
10721
10722 fi
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10724 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10725 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10726 ;;
10727 esac
10728 fi
10729 ;;
10730 esac
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10884 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10885
10886 if test yes = "$GCC"; then
10887 case $host_os in
10888 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10889 *) lt_awk_arg='/^libraries:/' ;;
10890 esac
10891 case $host_os in
10892 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10893 *) lt_sed_strip_eq='s|=/|/|g' ;;
10894 esac
10895 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10896 case $lt_search_path_spec in
10897 *\;*)
10898 # if the path contains ";" then we assume it to be the separator
10899 # otherwise default to the standard path separator (i.e. ":") - it is
10900 # assumed that no part of a normal pathname contains ";" but that should
10901 # okay in the real world where ";" in dirpaths is itself problematic.
10902 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10903 ;;
10904 *)
10905 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10906 ;;
10907 esac
10908 # Ok, now we have the path, separated by spaces, we can step through it
10909 # and add multilib dir if necessary...
10910 lt_tmp_lt_search_path_spec=
10911 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10912 # ...but if some path component already ends with the multilib dir we assume
10913 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10914 case "$lt_multi_os_dir; $lt_search_path_spec " in
10915 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10916 lt_multi_os_dir=
10917 ;;
10918 esac
10919 for lt_sys_path in $lt_search_path_spec; do
10920 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10921 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10922 elif test -n "$lt_multi_os_dir"; then
10923 test -d "$lt_sys_path" && \
10924 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10925 fi
10926 done
10927 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10928 BEGIN {RS = " "; FS = "/|\n";} {
10929 lt_foo = "";
10930 lt_count = 0;
10931 for (lt_i = NF; lt_i > 0; lt_i--) {
10932 if ($lt_i != "" && $lt_i != ".") {
10933 if ($lt_i == "..") {
10934 lt_count++;
10935 } else {
10936 if (lt_count == 0) {
10937 lt_foo = "/" $lt_i lt_foo;
10938 } else {
10939 lt_count--;
10940 }
10941 }
10942 }
10943 }
10944 if (lt_foo != "") { lt_freq[lt_foo]++; }
10945 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10946 }'`
10947 # AWK program above erroneously prepends '/' to C:/dos/paths
10948 # for these hosts.
10949 case $host_os in
10950 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10951 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10952 esac
10953 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10954 else
10955 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10956 fi
10957 library_names_spec=
10958 libname_spec='lib$name'
10959 soname_spec=
10960 shrext_cmds=.so
10961 postinstall_cmds=
10962 postuninstall_cmds=
10963 finish_cmds=
10964 finish_eval=
10965 shlibpath_var=
10966 shlibpath_overrides_runpath=unknown
10967 version_type=none
10968 dynamic_linker="$host_os ld.so"
10969 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10970 need_lib_prefix=unknown
10971 hardcode_into_libs=no
10972
10973 # when you set need_version to no, make sure it does not cause -set_version
10974 # flags to be left without arguments
10975 need_version=unknown
10976
10977
10978
10979 case $host_os in
10980 aix3*)
10981 version_type=linux # correct to gnu/linux during the next big refactor
10982 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10983 shlibpath_var=LIBPATH
10984
10985 # AIX 3 has no versioning support, so we append a major version to the name.
10986 soname_spec='$libname$release$shared_ext$major'
10987 ;;
10988
10989 aix[4-9]*)
10990 version_type=linux # correct to gnu/linux during the next big refactor
10991 need_lib_prefix=no
10992 need_version=no
10993 hardcode_into_libs=yes
10994 if test ia64 = "$host_cpu"; then
10995 # AIX 5 supports IA64
10996 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10997 shlibpath_var=LD_LIBRARY_PATH
10998 else
10999 # With GCC up to 2.95.x, collect2 would create an import file
11000 # for dependence libraries. The import file would start with
11001 # the line '#! .'. This would cause the generated library to
11002 # depend on '.', always an invalid library. This was fixed in
11003 # development snapshots of GCC prior to 3.0.
11004 case $host_os in
11005 aix4 | aix4.[01] | aix4.[01].*)
11006 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11007 echo ' yes '
11008 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11009 :
11010 else
11011 can_build_shared=no
11012 fi
11013 ;;
11014 esac
11015 # Using Import Files as archive members, it is possible to support
11016 # filename-based versioning of shared library archives on AIX. While
11017 # this would work for both with and without runtime linking, it will
11018 # prevent static linking of such archives. So we do filename-based
11019 # shared library versioning with .so extension only, which is used
11020 # when both runtime linking and shared linking is enabled.
11021 # Unfortunately, runtime linking may impact performance, so we do
11022 # not want this to be the default eventually. Also, we use the
11023 # versioned .so libs for executables only if there is the -brtl
11024 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11025 # To allow for filename-based versioning support, we need to create
11026 # libNAME.so.V as an archive file, containing:
11027 # *) an Import File, referring to the versioned filename of the
11028 # archive as well as the shared archive member, telling the
11029 # bitwidth (32 or 64) of that shared object, and providing the
11030 # list of exported symbols of that shared object, eventually
11031 # decorated with the 'weak' keyword
11032 # *) the shared object with the F_LOADONLY flag set, to really avoid
11033 # it being seen by the linker.
11034 # At run time we better use the real file rather than another symlink,
11035 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11036
11037 case $with_aix_soname,$aix_use_runtimelinking in
11038 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11039 # soname into executable. Probably we can add versioning support to
11040 # collect2, so additional links can be useful in future.
11041 aix,yes) # traditional libtool
11042 dynamic_linker='AIX unversionable lib.so'
11043 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11044 # instead of lib<name>.a to let people know that these are not
11045 # typical AIX shared libraries.
11046 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11047 ;;
11048 aix,no) # traditional AIX only
11049 dynamic_linker='AIX lib.a(lib.so.V)'
11050 # We preserve .a as extension for shared libraries through AIX4.2
11051 # and later when we are not doing run time linking.
11052 library_names_spec='$libname$release.a $libname.a'
11053 soname_spec='$libname$release$shared_ext$major'
11054 ;;
11055 svr4,*) # full svr4 only
11056 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11057 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11058 # We do not specify a path in Import Files, so LIBPATH fires.
11059 shlibpath_overrides_runpath=yes
11060 ;;
11061 *,yes) # both, prefer svr4
11062 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11063 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11064 # unpreferred sharedlib libNAME.a needs extra handling
11065 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11066 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11067 # We do not specify a path in Import Files, so LIBPATH fires.
11068 shlibpath_overrides_runpath=yes
11069 ;;
11070 *,no) # both, prefer aix
11071 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11072 library_names_spec='$libname$release.a $libname.a'
11073 soname_spec='$libname$release$shared_ext$major'
11074 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11075 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11076 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11077 ;;
11078 esac
11079 shlibpath_var=LIBPATH
11080 fi
11081 ;;
11082
11083 amigaos*)
11084 case $host_cpu in
11085 powerpc)
11086 # Since July 2007 AmigaOS4 officially supports .so libraries.
11087 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11088 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11089 ;;
11090 m68k)
11091 library_names_spec='$libname.ixlibrary $libname.a'
11092 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11093 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
11094 ;;
11095 esac
11096 ;;
11097
11098 beos*)
11099 library_names_spec='$libname$shared_ext'
11100 dynamic_linker="$host_os ld.so"
11101 shlibpath_var=LIBRARY_PATH
11102 ;;
11103
11104 bsdi[45]*)
11105 version_type=linux # correct to gnu/linux during the next big refactor
11106 need_version=no
11107 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11108 soname_spec='$libname$release$shared_ext$major'
11109 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11110 shlibpath_var=LD_LIBRARY_PATH
11111 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11112 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11113 # the default ld.so.conf also contains /usr/contrib/lib and
11114 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11115 # libtool to hard-code these into programs
11116 ;;
11117
11118 cygwin* | mingw* | pw32* | cegcc*)
11119 version_type=windows
11120 shrext_cmds=.dll
11121 need_version=no
11122 need_lib_prefix=no
11123
11124 case $GCC,$cc_basename in
11125 yes,*)
11126 # gcc
11127 library_names_spec='$libname.dll.a'
11128 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11129 postinstall_cmds='base_file=`basename \$file`~
11130 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11131 dldir=$destdir/`dirname \$dlpath`~
11132 test -d \$dldir || mkdir -p \$dldir~
11133 $install_prog $dir/$dlname \$dldir/$dlname~
11134 chmod a+x \$dldir/$dlname~
11135 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11136 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11137 fi'
11138 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11139 dlpath=$dir/\$dldll~
11140 $RM \$dlpath'
11141 shlibpath_overrides_runpath=yes
11142
11143 case $host_os in
11144 cygwin*)
11145 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11146 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11147
11148 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11149 ;;
11150 mingw* | cegcc*)
11151 # MinGW DLLs use traditional 'lib' prefix
11152 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11153 ;;
11154 pw32*)
11155 # pw32 DLLs use 'pw' prefix rather than 'lib'
11156 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11157 ;;
11158 esac
11159 dynamic_linker='Win32 ld.exe'
11160 ;;
11161
11162 *,cl*)
11163 # Native MSVC
11164 libname_spec='$name'
11165 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11166 library_names_spec='$libname.dll.lib'
11167
11168 case $build_os in
11169 mingw*)
11170 sys_lib_search_path_spec=
11171 lt_save_ifs=$IFS
11172 IFS=';'
11173 for lt_path in $LIB
11174 do
11175 IFS=$lt_save_ifs
11176 # Let DOS variable expansion print the short 8.3 style file name.
11177 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11178 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11179 done
11180 IFS=$lt_save_ifs
11181 # Convert to MSYS style.
11182 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11183 ;;
11184 cygwin*)
11185 # Convert to unix form, then to dos form, then back to unix form
11186 # but this time dos style (no spaces!) so that the unix form looks
11187 # like /cygdrive/c/PROGRA~1:/cygdr...
11188 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11189 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11190 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11191 ;;
11192 *)
11193 sys_lib_search_path_spec=$LIB
11194 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11195 # It is most probably a Windows format PATH.
11196 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11197 else
11198 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11199 fi
11200 # FIXME: find the short name or the path components, as spaces are
11201 # common. (e.g. "Program Files" -> "PROGRA~1")
11202 ;;
11203 esac
11204
11205 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11206 postinstall_cmds='base_file=`basename \$file`~
11207 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11208 dldir=$destdir/`dirname \$dlpath`~
11209 test -d \$dldir || mkdir -p \$dldir~
11210 $install_prog $dir/$dlname \$dldir/$dlname'
11211 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11212 dlpath=$dir/\$dldll~
11213 $RM \$dlpath'
11214 shlibpath_overrides_runpath=yes
11215 dynamic_linker='Win32 link.exe'
11216 ;;
11217
11218 *)
11219 # Assume MSVC wrapper
11220 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11221 dynamic_linker='Win32 ld.exe'
11222 ;;
11223 esac
11224 # FIXME: first we should search . and the directory the executable is in
11225 shlibpath_var=PATH
11226 ;;
11227
11228 darwin* | rhapsody*)
11229 dynamic_linker="$host_os dyld"
11230 version_type=darwin
11231 need_lib_prefix=no
11232 need_version=no
11233 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11234 soname_spec='$libname$release$major$shared_ext'
11235 shlibpath_overrides_runpath=yes
11236 shlibpath_var=DYLD_LIBRARY_PATH
11237 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11238
11239 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11240 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11241 ;;
11242
11243 dgux*)
11244 version_type=linux # correct to gnu/linux during the next big refactor
11245 need_lib_prefix=no
11246 need_version=no
11247 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11248 soname_spec='$libname$release$shared_ext$major'
11249 shlibpath_var=LD_LIBRARY_PATH
11250 ;;
11251
11252 freebsd* | dragonfly*)
11253 # DragonFly does not have aout. When/if they implement a new
11254 # versioning mechanism, adjust this.
11255 if test -x /usr/bin/objformat; then
11256 objformat=`/usr/bin/objformat`
11257 else
11258 case $host_os in
11259 freebsd[23].*) objformat=aout ;;
11260 *) objformat=elf ;;
11261 esac
11262 fi
11263 version_type=freebsd-$objformat
11264 case $version_type in
11265 freebsd-elf*)
11266 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11267 soname_spec='$libname$release$shared_ext$major'
11268 need_version=no
11269 need_lib_prefix=no
11270 ;;
11271 freebsd-*)
11272 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11273 need_version=yes
11274 ;;
11275 esac
11276 shlibpath_var=LD_LIBRARY_PATH
11277 case $host_os in
11278 freebsd2.*)
11279 shlibpath_overrides_runpath=yes
11280 ;;
11281 freebsd3.[01]* | freebsdelf3.[01]*)
11282 shlibpath_overrides_runpath=yes
11283 hardcode_into_libs=yes
11284 ;;
11285 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11286 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11287 shlibpath_overrides_runpath=no
11288 hardcode_into_libs=yes
11289 ;;
11290 *) # from 4.6 on, and DragonFly
11291 shlibpath_overrides_runpath=yes
11292 hardcode_into_libs=yes
11293 ;;
11294 esac
11295 ;;
11296
11297 haiku*)
11298 version_type=linux # correct to gnu/linux during the next big refactor
11299 need_lib_prefix=no
11300 need_version=no
11301 dynamic_linker="$host_os runtime_loader"
11302 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11303 soname_spec='$libname$release$shared_ext$major'
11304 shlibpath_var=LIBRARY_PATH
11305 shlibpath_overrides_runpath=no
11306 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11307 hardcode_into_libs=yes
11308 ;;
11309
11310 hpux9* | hpux10* | hpux11*)
11311 # Give a soname corresponding to the major version so that dld.sl refuses to
11312 # link against other versions.
11313 version_type=sunos
11314 need_lib_prefix=no
11315 need_version=no
11316 case $host_cpu in
11317 ia64*)
11318 shrext_cmds='.so'
11319 hardcode_into_libs=yes
11320 dynamic_linker="$host_os dld.so"
11321 shlibpath_var=LD_LIBRARY_PATH
11322 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11323 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11324 soname_spec='$libname$release$shared_ext$major'
11325 if test 32 = "$HPUX_IA64_MODE"; then
11326 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11327 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11328 else
11329 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11330 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11331 fi
11332 ;;
11333 hppa*64*)
11334 shrext_cmds='.sl'
11335 hardcode_into_libs=yes
11336 dynamic_linker="$host_os dld.sl"
11337 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11338 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11339 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11340 soname_spec='$libname$release$shared_ext$major'
11341 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11342 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11343 ;;
11344 *)
11345 shrext_cmds='.sl'
11346 dynamic_linker="$host_os dld.sl"
11347 shlibpath_var=SHLIB_PATH
11348 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11349 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11350 soname_spec='$libname$release$shared_ext$major'
11351 ;;
11352 esac
11353 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11354 postinstall_cmds='chmod 555 $lib'
11355 # or fails outright, so override atomically:
11356 install_override_mode=555
11357 ;;
11358
11359 interix[3-9]*)
11360 version_type=linux # correct to gnu/linux during the next big refactor
11361 need_lib_prefix=no
11362 need_version=no
11363 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11364 soname_spec='$libname$release$shared_ext$major'
11365 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11366 shlibpath_var=LD_LIBRARY_PATH
11367 shlibpath_overrides_runpath=no
11368 hardcode_into_libs=yes
11369 ;;
11370
11371 irix5* | irix6* | nonstopux*)
11372 case $host_os in
11373 nonstopux*) version_type=nonstopux ;;
11374 *)
11375 if test yes = "$lt_cv_prog_gnu_ld"; then
11376 version_type=linux # correct to gnu/linux during the next big refactor
11377 else
11378 version_type=irix
11379 fi ;;
11380 esac
11381 need_lib_prefix=no
11382 need_version=no
11383 soname_spec='$libname$release$shared_ext$major'
11384 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11385 case $host_os in
11386 irix5* | nonstopux*)
11387 libsuff= shlibsuff=
11388 ;;
11389 *)
11390 case $LD in # libtool.m4 will add one of these switches to LD
11391 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11392 libsuff= shlibsuff= libmagic=32-bit;;
11393 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11394 libsuff=32 shlibsuff=N32 libmagic=N32;;
11395 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11396 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11397 *) libsuff= shlibsuff= libmagic=never-match;;
11398 esac
11399 ;;
11400 esac
11401 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11402 shlibpath_overrides_runpath=no
11403 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11404 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11405 hardcode_into_libs=yes
11406 ;;
11407
11408 # No shared lib support for Linux oldld, aout, or coff.
11409 linux*oldld* | linux*aout* | linux*coff*)
11410 dynamic_linker=no
11411 ;;
11412
11413 linux*android*)
11414 version_type=none # Android doesn't support versioned libraries.
11415 need_lib_prefix=no
11416 need_version=no
11417 library_names_spec='$libname$release$shared_ext'
11418 soname_spec='$libname$release$shared_ext'
11419 finish_cmds=
11420 shlibpath_var=LD_LIBRARY_PATH
11421 shlibpath_overrides_runpath=yes
11422
11423 # This implies no fast_install, which is unacceptable.
11424 # Some rework will be needed to allow for fast_install
11425 # before this can be enabled.
11426 hardcode_into_libs=yes
11427
11428 dynamic_linker='Android linker'
11429 # Don't embed -rpath directories since the linker doesn't support them.
11430 hardcode_libdir_flag_spec='-L$libdir'
11431 ;;
11432
11433 # This must be glibc/ELF.
11434 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11435 version_type=linux # correct to gnu/linux during the next big refactor
11436 need_lib_prefix=no
11437 need_version=no
11438 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11439 soname_spec='$libname$release$shared_ext$major'
11440 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11441 shlibpath_var=LD_LIBRARY_PATH
11442 shlibpath_overrides_runpath=no
11443
11444 # Some binutils ld are patched to set DT_RUNPATH
11445 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11446 $as_echo_n "(cached) " >&6
11447 else
11448 lt_cv_shlibpath_overrides_runpath=no
11449 save_LDFLAGS=$LDFLAGS
11450 save_libdir=$libdir
11451 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11452 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11454 /* end confdefs.h. */
11455
11456 int
11457 main ()
11458 {
11459
11460 ;
11461 return 0;
11462 }
11463 _ACEOF
11464 if ac_fn_c_try_link "$LINENO"; then :
11465 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11466 lt_cv_shlibpath_overrides_runpath=yes
11467 fi
11468 fi
11469 rm -f core conftest.err conftest.$ac_objext \
11470 conftest$ac_exeext conftest.$ac_ext
11471 LDFLAGS=$save_LDFLAGS
11472 libdir=$save_libdir
11473
11474 fi
11475
11476 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11477
11478 # This implies no fast_install, which is unacceptable.
11479 # Some rework will be needed to allow for fast_install
11480 # before this can be enabled.
11481 hardcode_into_libs=yes
11482
11483 # Ideally, we could use ldconfig to report *all* directores which are
11484 # searched for libraries, however this is still not possible. Aside from not
11485 # being certain /sbin/ldconfig is available, command
11486 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11487 # even though it is searched at run-time. Try to do the best guess by
11488 # appending ld.so.conf contents (and includes) to the search path.
11489 if test -f /etc/ld.so.conf; then
11490 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' ' '`
11491 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11492 fi
11493
11494 # We used to test for /lib/ld.so.1 and disable shared libraries on
11495 # powerpc, because MkLinux only supported shared libraries with the
11496 # GNU dynamic linker. Since this was broken with cross compilers,
11497 # most powerpc-linux boxes support dynamic linking these days and
11498 # people can always --disable-shared, the test was removed, and we
11499 # assume the GNU/Linux dynamic linker is in use.
11500 dynamic_linker='GNU/Linux ld.so'
11501 ;;
11502
11503 netbsd*)
11504 version_type=sunos
11505 need_lib_prefix=no
11506 need_version=no
11507 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11508 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11509 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11510 dynamic_linker='NetBSD (a.out) ld.so'
11511 else
11512 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11513 soname_spec='$libname$release$shared_ext$major'
11514 dynamic_linker='NetBSD ld.elf_so'
11515 fi
11516 shlibpath_var=LD_LIBRARY_PATH
11517 shlibpath_overrides_runpath=yes
11518 hardcode_into_libs=yes
11519 ;;
11520
11521 newsos6)
11522 version_type=linux # correct to gnu/linux during the next big refactor
11523 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11524 shlibpath_var=LD_LIBRARY_PATH
11525 shlibpath_overrides_runpath=yes
11526 ;;
11527
11528 *nto* | *qnx*)
11529 version_type=qnx
11530 need_lib_prefix=no
11531 need_version=no
11532 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11533 soname_spec='$libname$release$shared_ext$major'
11534 shlibpath_var=LD_LIBRARY_PATH
11535 shlibpath_overrides_runpath=no
11536 hardcode_into_libs=yes
11537 dynamic_linker='ldqnx.so'
11538 ;;
11539
11540 openbsd* | bitrig*)
11541 version_type=sunos
11542 sys_lib_dlsearch_path_spec=/usr/lib
11543 need_lib_prefix=no
11544 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11545 need_version=no
11546 else
11547 need_version=yes
11548 fi
11549 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11550 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11551 shlibpath_var=LD_LIBRARY_PATH
11552 shlibpath_overrides_runpath=yes
11553 ;;
11554
11555 os2*)
11556 libname_spec='$name'
11557 version_type=windows
11558 shrext_cmds=.dll
11559 need_version=no
11560 need_lib_prefix=no
11561 # OS/2 can only load a DLL with a base name of 8 characters or less.
11562 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11563 v=$($ECHO $release$versuffix | tr -d .-);
11564 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11565 $ECHO $n$v`$shared_ext'
11566 library_names_spec='${libname}_dll.$libext'
11567 dynamic_linker='OS/2 ld.exe'
11568 shlibpath_var=BEGINLIBPATH
11569 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11570 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11571 postinstall_cmds='base_file=`basename \$file`~
11572 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11573 dldir=$destdir/`dirname \$dlpath`~
11574 test -d \$dldir || mkdir -p \$dldir~
11575 $install_prog $dir/$dlname \$dldir/$dlname~
11576 chmod a+x \$dldir/$dlname~
11577 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11578 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11579 fi'
11580 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11581 dlpath=$dir/\$dldll~
11582 $RM \$dlpath'
11583 ;;
11584
11585 osf3* | osf4* | osf5*)
11586 version_type=osf
11587 need_lib_prefix=no
11588 need_version=no
11589 soname_spec='$libname$release$shared_ext$major'
11590 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11591 shlibpath_var=LD_LIBRARY_PATH
11592 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11593 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11594 ;;
11595
11596 rdos*)
11597 dynamic_linker=no
11598 ;;
11599
11600 solaris*)
11601 version_type=linux # correct to gnu/linux during the next big refactor
11602 need_lib_prefix=no
11603 need_version=no
11604 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11605 soname_spec='$libname$release$shared_ext$major'
11606 shlibpath_var=LD_LIBRARY_PATH
11607 shlibpath_overrides_runpath=yes
11608 hardcode_into_libs=yes
11609 # ldd complains unless libraries are executable
11610 postinstall_cmds='chmod +x $lib'
11611 ;;
11612
11613 sunos4*)
11614 version_type=sunos
11615 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11616 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11617 shlibpath_var=LD_LIBRARY_PATH
11618 shlibpath_overrides_runpath=yes
11619 if test yes = "$with_gnu_ld"; then
11620 need_lib_prefix=no
11621 fi
11622 need_version=yes
11623 ;;
11624
11625 sysv4 | sysv4.3*)
11626 version_type=linux # correct to gnu/linux during the next big refactor
11627 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11628 soname_spec='$libname$release$shared_ext$major'
11629 shlibpath_var=LD_LIBRARY_PATH
11630 case $host_vendor in
11631 sni)
11632 shlibpath_overrides_runpath=no
11633 need_lib_prefix=no
11634 runpath_var=LD_RUN_PATH
11635 ;;
11636 siemens)
11637 need_lib_prefix=no
11638 ;;
11639 motorola)
11640 need_lib_prefix=no
11641 need_version=no
11642 shlibpath_overrides_runpath=no
11643 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11644 ;;
11645 esac
11646 ;;
11647
11648 sysv4*MP*)
11649 if test -d /usr/nec; then
11650 version_type=linux # correct to gnu/linux during the next big refactor
11651 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11652 soname_spec='$libname$shared_ext.$major'
11653 shlibpath_var=LD_LIBRARY_PATH
11654 fi
11655 ;;
11656
11657 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11658 version_type=sco
11659 need_lib_prefix=no
11660 need_version=no
11661 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11662 soname_spec='$libname$release$shared_ext$major'
11663 shlibpath_var=LD_LIBRARY_PATH
11664 shlibpath_overrides_runpath=yes
11665 hardcode_into_libs=yes
11666 if test yes = "$with_gnu_ld"; then
11667 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11668 else
11669 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11670 case $host_os in
11671 sco3.2v5*)
11672 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11673 ;;
11674 esac
11675 fi
11676 sys_lib_dlsearch_path_spec='/usr/lib'
11677 ;;
11678
11679 tpf*)
11680 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11681 version_type=linux # correct to gnu/linux during the next big refactor
11682 need_lib_prefix=no
11683 need_version=no
11684 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11685 shlibpath_var=LD_LIBRARY_PATH
11686 shlibpath_overrides_runpath=no
11687 hardcode_into_libs=yes
11688 ;;
11689
11690 uts4*)
11691 version_type=linux # correct to gnu/linux during the next big refactor
11692 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11693 soname_spec='$libname$release$shared_ext$major'
11694 shlibpath_var=LD_LIBRARY_PATH
11695 ;;
11696
11697 *)
11698 dynamic_linker=no
11699 ;;
11700 esac
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11702 $as_echo "$dynamic_linker" >&6; }
11703 test no = "$dynamic_linker" && can_build_shared=no
11704
11705 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11706 if test yes = "$GCC"; then
11707 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11708 fi
11709
11710 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11711 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11712 fi
11713
11714 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11715 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11716 fi
11717
11718 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11719 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11720
11721 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11722 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11723
11724 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11725 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11824 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11825 hardcode_action=
11826 if test -n "$hardcode_libdir_flag_spec" ||
11827 test -n "$runpath_var" ||
11828 test yes = "$hardcode_automatic"; then
11829
11830 # We can hardcode non-existent directories.
11831 if test no != "$hardcode_direct" &&
11832 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11833 # have to relink, otherwise we might link with an installed library
11834 # when we should be linking with a yet-to-be-installed one
11835 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11836 test no != "$hardcode_minus_L"; then
11837 # Linking always hardcodes the temporary library directory.
11838 hardcode_action=relink
11839 else
11840 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11841 hardcode_action=immediate
11842 fi
11843 else
11844 # We cannot hardcode anything, or else we can only hardcode existing
11845 # directories.
11846 hardcode_action=unsupported
11847 fi
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11849 $as_echo "$hardcode_action" >&6; }
11850
11851 if test relink = "$hardcode_action" ||
11852 test yes = "$inherit_rpath"; then
11853 # Fast installation is not supported
11854 enable_fast_install=no
11855 elif test yes = "$shlibpath_overrides_runpath" ||
11856 test no = "$enable_shared"; then
11857 # Fast installation is not necessary
11858 enable_fast_install=needless
11859 fi
11860
11861
11862
11863
11864
11865
11866 if test yes != "$enable_dlopen"; then
11867 enable_dlopen=unknown
11868 enable_dlopen_self=unknown
11869 enable_dlopen_self_static=unknown
11870 else
11871 lt_cv_dlopen=no
11872 lt_cv_dlopen_libs=
11873
11874 case $host_os in
11875 beos*)
11876 lt_cv_dlopen=load_add_on
11877 lt_cv_dlopen_libs=
11878 lt_cv_dlopen_self=yes
11879 ;;
11880
11881 mingw* | pw32* | cegcc*)
11882 lt_cv_dlopen=LoadLibrary
11883 lt_cv_dlopen_libs=
11884 ;;
11885
11886 cygwin*)
11887 lt_cv_dlopen=dlopen
11888 lt_cv_dlopen_libs=
11889 ;;
11890
11891 darwin*)
11892 # if libdl is installed we need to link against it
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11894 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11895 if ${ac_cv_lib_dl_dlopen+:} false; then :
11896 $as_echo_n "(cached) " >&6
11897 else
11898 ac_check_lib_save_LIBS=$LIBS
11899 LIBS="-ldl $LIBS"
11900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11901 /* end confdefs.h. */
11902
11903 /* Override any GCC internal prototype to avoid an error.
11904 Use char because int might match the return type of a GCC
11905 builtin and then its argument prototype would still apply. */
11906 #ifdef __cplusplus
11907 extern "C"
11908 #endif
11909 char dlopen ();
11910 int
11911 main ()
11912 {
11913 return dlopen ();
11914 ;
11915 return 0;
11916 }
11917 _ACEOF
11918 if ac_fn_c_try_link "$LINENO"; then :
11919 ac_cv_lib_dl_dlopen=yes
11920 else
11921 ac_cv_lib_dl_dlopen=no
11922 fi
11923 rm -f core conftest.err conftest.$ac_objext \
11924 conftest$ac_exeext conftest.$ac_ext
11925 LIBS=$ac_check_lib_save_LIBS
11926 fi
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11928 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11929 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11930 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11931 else
11932
11933 lt_cv_dlopen=dyld
11934 lt_cv_dlopen_libs=
11935 lt_cv_dlopen_self=yes
11936
11937 fi
11938
11939 ;;
11940
11941 tpf*)
11942 # Don't try to run any link tests for TPF. We know it's impossible
11943 # because TPF is a cross-compiler, and we know how we open DSOs.
11944 lt_cv_dlopen=dlopen
11945 lt_cv_dlopen_libs=
11946 lt_cv_dlopen_self=no
11947 ;;
11948
11949 *)
11950 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11951 if test "x$ac_cv_func_shl_load" = xyes; then :
11952 lt_cv_dlopen=shl_load
11953 else
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11955 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11956 if ${ac_cv_lib_dld_shl_load+:} false; then :
11957 $as_echo_n "(cached) " >&6
11958 else
11959 ac_check_lib_save_LIBS=$LIBS
11960 LIBS="-ldld $LIBS"
11961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11962 /* end confdefs.h. */
11963
11964 /* Override any GCC internal prototype to avoid an error.
11965 Use char because int might match the return type of a GCC
11966 builtin and then its argument prototype would still apply. */
11967 #ifdef __cplusplus
11968 extern "C"
11969 #endif
11970 char shl_load ();
11971 int
11972 main ()
11973 {
11974 return shl_load ();
11975 ;
11976 return 0;
11977 }
11978 _ACEOF
11979 if ac_fn_c_try_link "$LINENO"; then :
11980 ac_cv_lib_dld_shl_load=yes
11981 else
11982 ac_cv_lib_dld_shl_load=no
11983 fi
11984 rm -f core conftest.err conftest.$ac_objext \
11985 conftest$ac_exeext conftest.$ac_ext
11986 LIBS=$ac_check_lib_save_LIBS
11987 fi
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11989 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11990 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11991 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11992 else
11993 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11994 if test "x$ac_cv_func_dlopen" = xyes; then :
11995 lt_cv_dlopen=dlopen
11996 else
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11998 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11999 if ${ac_cv_lib_dl_dlopen+:} false; then :
12000 $as_echo_n "(cached) " >&6
12001 else
12002 ac_check_lib_save_LIBS=$LIBS
12003 LIBS="-ldl $LIBS"
12004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12005 /* end confdefs.h. */
12006
12007 /* Override any GCC internal prototype to avoid an error.
12008 Use char because int might match the return type of a GCC
12009 builtin and then its argument prototype would still apply. */
12010 #ifdef __cplusplus
12011 extern "C"
12012 #endif
12013 char dlopen ();
12014 int
12015 main ()
12016 {
12017 return dlopen ();
12018 ;
12019 return 0;
12020 }
12021 _ACEOF
12022 if ac_fn_c_try_link "$LINENO"; then :
12023 ac_cv_lib_dl_dlopen=yes
12024 else
12025 ac_cv_lib_dl_dlopen=no
12026 fi
12027 rm -f core conftest.err conftest.$ac_objext \
12028 conftest$ac_exeext conftest.$ac_ext
12029 LIBS=$ac_check_lib_save_LIBS
12030 fi
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12032 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12033 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12034 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12035 else
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12037 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12038 if ${ac_cv_lib_svld_dlopen+:} false; then :
12039 $as_echo_n "(cached) " >&6
12040 else
12041 ac_check_lib_save_LIBS=$LIBS
12042 LIBS="-lsvld $LIBS"
12043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12044 /* end confdefs.h. */
12045
12046 /* Override any GCC internal prototype to avoid an error.
12047 Use char because int might match the return type of a GCC
12048 builtin and then its argument prototype would still apply. */
12049 #ifdef __cplusplus
12050 extern "C"
12051 #endif
12052 char dlopen ();
12053 int
12054 main ()
12055 {
12056 return dlopen ();
12057 ;
12058 return 0;
12059 }
12060 _ACEOF
12061 if ac_fn_c_try_link "$LINENO"; then :
12062 ac_cv_lib_svld_dlopen=yes
12063 else
12064 ac_cv_lib_svld_dlopen=no
12065 fi
12066 rm -f core conftest.err conftest.$ac_objext \
12067 conftest$ac_exeext conftest.$ac_ext
12068 LIBS=$ac_check_lib_save_LIBS
12069 fi
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12071 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12072 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12073 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12074 else
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12076 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12077 if ${ac_cv_lib_dld_dld_link+:} false; then :
12078 $as_echo_n "(cached) " >&6
12079 else
12080 ac_check_lib_save_LIBS=$LIBS
12081 LIBS="-ldld $LIBS"
12082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12083 /* end confdefs.h. */
12084
12085 /* Override any GCC internal prototype to avoid an error.
12086 Use char because int might match the return type of a GCC
12087 builtin and then its argument prototype would still apply. */
12088 #ifdef __cplusplus
12089 extern "C"
12090 #endif
12091 char dld_link ();
12092 int
12093 main ()
12094 {
12095 return dld_link ();
12096 ;
12097 return 0;
12098 }
12099 _ACEOF
12100 if ac_fn_c_try_link "$LINENO"; then :
12101 ac_cv_lib_dld_dld_link=yes
12102 else
12103 ac_cv_lib_dld_dld_link=no
12104 fi
12105 rm -f core conftest.err conftest.$ac_objext \
12106 conftest$ac_exeext conftest.$ac_ext
12107 LIBS=$ac_check_lib_save_LIBS
12108 fi
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12110 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12111 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12112 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12113 fi
12114
12115
12116 fi
12117
12118
12119 fi
12120
12121
12122 fi
12123
12124
12125 fi
12126
12127
12128 fi
12129
12130 ;;
12131 esac
12132
12133 if test no = "$lt_cv_dlopen"; then
12134 enable_dlopen=no
12135 else
12136 enable_dlopen=yes
12137 fi
12138
12139 case $lt_cv_dlopen in
12140 dlopen)
12141 save_CPPFLAGS=$CPPFLAGS
12142 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12143
12144 save_LDFLAGS=$LDFLAGS
12145 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12146
12147 save_LIBS=$LIBS
12148 LIBS="$lt_cv_dlopen_libs $LIBS"
12149
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12151 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12152 if ${lt_cv_dlopen_self+:} false; then :
12153 $as_echo_n "(cached) " >&6
12154 else
12155 if test yes = "$cross_compiling"; then :
12156 lt_cv_dlopen_self=cross
12157 else
12158 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12159 lt_status=$lt_dlunknown
12160 cat > conftest.$ac_ext <<_LT_EOF
12161 #line $LINENO "configure"
12162 #include "confdefs.h"
12163
12164 #if HAVE_DLFCN_H
12165 #include <dlfcn.h>
12166 #endif
12167
12168 #include <stdio.h>
12169
12170 #ifdef RTLD_GLOBAL
12171 # define LT_DLGLOBAL RTLD_GLOBAL
12172 #else
12173 # ifdef DL_GLOBAL
12174 # define LT_DLGLOBAL DL_GLOBAL
12175 # else
12176 # define LT_DLGLOBAL 0
12177 # endif
12178 #endif
12179
12180 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12181 find out it does not work in some platform. */
12182 #ifndef LT_DLLAZY_OR_NOW
12183 # ifdef RTLD_LAZY
12184 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12185 # else
12186 # ifdef DL_LAZY
12187 # define LT_DLLAZY_OR_NOW DL_LAZY
12188 # else
12189 # ifdef RTLD_NOW
12190 # define LT_DLLAZY_OR_NOW RTLD_NOW
12191 # else
12192 # ifdef DL_NOW
12193 # define LT_DLLAZY_OR_NOW DL_NOW
12194 # else
12195 # define LT_DLLAZY_OR_NOW 0
12196 # endif
12197 # endif
12198 # endif
12199 # endif
12200 #endif
12201
12202 /* When -fvisibility=hidden is used, assume the code has been annotated
12203 correspondingly for the symbols needed. */
12204 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12205 int fnord () __attribute__((visibility("default")));
12206 #endif
12207
12208 int fnord () { return 42; }
12209 int main ()
12210 {
12211 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12212 int status = $lt_dlunknown;
12213
12214 if (self)
12215 {
12216 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12217 else
12218 {
12219 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12220 else puts (dlerror ());
12221 }
12222 /* dlclose (self); */
12223 }
12224 else
12225 puts (dlerror ());
12226
12227 return status;
12228 }
12229 _LT_EOF
12230 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12231 (eval $ac_link) 2>&5
12232 ac_status=$?
12233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12234 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12235 (./conftest; exit; ) >&5 2>/dev/null
12236 lt_status=$?
12237 case x$lt_status in
12238 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12239 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12240 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12241 esac
12242 else :
12243 # compilation failed
12244 lt_cv_dlopen_self=no
12245 fi
12246 fi
12247 rm -fr conftest*
12248
12249
12250 fi
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12252 $as_echo "$lt_cv_dlopen_self" >&6; }
12253
12254 if test yes = "$lt_cv_dlopen_self"; then
12255 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12257 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12258 if ${lt_cv_dlopen_self_static+:} false; then :
12259 $as_echo_n "(cached) " >&6
12260 else
12261 if test yes = "$cross_compiling"; then :
12262 lt_cv_dlopen_self_static=cross
12263 else
12264 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12265 lt_status=$lt_dlunknown
12266 cat > conftest.$ac_ext <<_LT_EOF
12267 #line $LINENO "configure"
12268 #include "confdefs.h"
12269
12270 #if HAVE_DLFCN_H
12271 #include <dlfcn.h>
12272 #endif
12273
12274 #include <stdio.h>
12275
12276 #ifdef RTLD_GLOBAL
12277 # define LT_DLGLOBAL RTLD_GLOBAL
12278 #else
12279 # ifdef DL_GLOBAL
12280 # define LT_DLGLOBAL DL_GLOBAL
12281 # else
12282 # define LT_DLGLOBAL 0
12283 # endif
12284 #endif
12285
12286 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12287 find out it does not work in some platform. */
12288 #ifndef LT_DLLAZY_OR_NOW
12289 # ifdef RTLD_LAZY
12290 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12291 # else
12292 # ifdef DL_LAZY
12293 # define LT_DLLAZY_OR_NOW DL_LAZY
12294 # else
12295 # ifdef RTLD_NOW
12296 # define LT_DLLAZY_OR_NOW RTLD_NOW
12297 # else
12298 # ifdef DL_NOW
12299 # define LT_DLLAZY_OR_NOW DL_NOW
12300 # else
12301 # define LT_DLLAZY_OR_NOW 0
12302 # endif
12303 # endif
12304 # endif
12305 # endif
12306 #endif
12307
12308 /* When -fvisibility=hidden is used, assume the code has been annotated
12309 correspondingly for the symbols needed. */
12310 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12311 int fnord () __attribute__((visibility("default")));
12312 #endif
12313
12314 int fnord () { return 42; }
12315 int main ()
12316 {
12317 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12318 int status = $lt_dlunknown;
12319
12320 if (self)
12321 {
12322 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12323 else
12324 {
12325 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12326 else puts (dlerror ());
12327 }
12328 /* dlclose (self); */
12329 }
12330 else
12331 puts (dlerror ());
12332
12333 return status;
12334 }
12335 _LT_EOF
12336 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12337 (eval $ac_link) 2>&5
12338 ac_status=$?
12339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12340 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12341 (./conftest; exit; ) >&5 2>/dev/null
12342 lt_status=$?
12343 case x$lt_status in
12344 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12345 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12346 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12347 esac
12348 else :
12349 # compilation failed
12350 lt_cv_dlopen_self_static=no
12351 fi
12352 fi
12353 rm -fr conftest*
12354
12355
12356 fi
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12358 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12359 fi
12360
12361 CPPFLAGS=$save_CPPFLAGS
12362 LDFLAGS=$save_LDFLAGS
12363 LIBS=$save_LIBS
12364 ;;
12365 esac
12366
12367 case $lt_cv_dlopen_self in
12368 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12369 *) enable_dlopen_self=unknown ;;
12370 esac
12371
12372 case $lt_cv_dlopen_self_static in
12373 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12374 *) enable_dlopen_self_static=unknown ;;
12375 esac
12376 fi
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394 striplib=
12395 old_striplib=
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12397 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12398 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12399 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12400 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12402 $as_echo "yes" >&6; }
12403 else
12404 # FIXME - insert some real tests, host_os isn't really good enough
12405 case $host_os in
12406 darwin*)
12407 if test -n "$STRIP"; then
12408 striplib="$STRIP -x"
12409 old_striplib="$STRIP -S"
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12411 $as_echo "yes" >&6; }
12412 else
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12414 $as_echo "no" >&6; }
12415 fi
12416 ;;
12417 *)
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12419 $as_echo "no" >&6; }
12420 ;;
12421 esac
12422 fi
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435 # Report what library types will actually be built
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12437 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12439 $as_echo "$can_build_shared" >&6; }
12440
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12442 $as_echo_n "checking whether to build shared libraries... " >&6; }
12443 test no = "$can_build_shared" && enable_shared=no
12444
12445 # On AIX, shared libraries and static libraries use the same namespace, and
12446 # are all built from PIC.
12447 case $host_os in
12448 aix3*)
12449 test yes = "$enable_shared" && enable_static=no
12450 if test -n "$RANLIB"; then
12451 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12452 postinstall_cmds='$RANLIB $lib'
12453 fi
12454 ;;
12455
12456 aix[4-9]*)
12457 if test ia64 != "$host_cpu"; then
12458 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12459 yes,aix,yes) ;; # shared object as lib.so file only
12460 yes,svr4,*) ;; # shared object as lib.so archive member only
12461 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12462 esac
12463 fi
12464 ;;
12465 esac
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12467 $as_echo "$enable_shared" >&6; }
12468
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12470 $as_echo_n "checking whether to build static libraries... " >&6; }
12471 # Make sure either enable_shared or enable_static is yes.
12472 test yes = "$enable_shared" || enable_static=yes
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12474 $as_echo "$enable_static" >&6; }
12475
12476
12477
12478
12479 fi
12480 ac_ext=c
12481 ac_cpp='$CPP $CPPFLAGS'
12482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12485
12486 CC=$lt_save_CC
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502 ac_config_commands="$ac_config_commands libtool"
12503
12504
12505
12506
12507 # Only expand once:
12508
12509
12510
12511 # Check GMP Header
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gmp.h" >&5
12513 $as_echo_n "checking for gmp.h... " >&6; }
12514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12515 /* end confdefs.h. */
12516
12517 #include "gmp.h"
12518
12519 _ACEOF
12520 if ac_fn_c_try_compile "$LINENO"; then :
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12522 $as_echo "yes" >&6; }
12523 else
12524
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12526 $as_echo "no" >&6; }
12527 as_fn_error $? "gmp.h cannot be found or is unusable." "$LINENO" 5
12528
12529 fi
12530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12531
12532 # Check (only in development versions) if the compiler accepts warning
12533 # flags and add them to CFLAGS
12534 # Note: don't do this if the user defined CFLAGS, since adding new flags
12535 # might override the user's settings, see
12536 # http://lists.gforge.inria.fr/pipermail/mpc-discuss/2012-May/001115.html
12537 if test -z "$USER_CFLAGS"; then
12538
12539
12540 if echo $VERSION | grep -c dev >/dev/null 2>&1 ; then
12541 if test "x$GCC" = "xyes" -a "x$compiler" != "xicc"; then
12542 # enable -Werror for myself (Andreas Enge)
12543 if test "x$USER" = "xenge"; then
12544
12545
12546
12547
12548
12549
12550 flag=`echo "-Werror" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
12551
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Werror flag" >&5
12553 $as_echo_n "checking whether the C compiler accepts the -Werror flag... " >&6; }
12554 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
12555 $as_echo_n "(cached) " >&6
12556 else
12557
12558
12559 ac_ext=c
12560 ac_cpp='$CPP $CPPFLAGS'
12561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12564
12565
12566 save_CFLAGS="$CFLAGS"
12567 CFLAGS="$CFLAGS -Werror"
12568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12569 /* end confdefs.h. */
12570
12571
12572 int
12573 main ()
12574 {
12575
12576 ;
12577 return 0;
12578 }
12579
12580 _ACEOF
12581 if ac_fn_c_try_compile "$LINENO"; then :
12582
12583 eval "ax_cv_c_check_flag_$flag=yes"
12584
12585 else
12586
12587 eval "ax_cv_c_check_flag_$flag=no"
12588
12589 fi
12590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12591
12592 CFLAGS="$save_CFLAGS"
12593
12594 ac_ext=c
12595 ac_cpp='$CPP $CPPFLAGS'
12596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12599
12600
12601
12602 fi
12603 eval ac_res=\$ax_cv_c_check_flag_$flag
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12605 $as_echo "$ac_res" >&6; }
12606
12607 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
12608
12609 :
12610 CFLAGS="$CFLAGS -Werror"
12611
12612 else
12613
12614 :
12615
12616
12617 fi
12618
12619
12620 fi
12621
12622
12623
12624
12625
12626
12627 flag=`echo "-g" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
12628
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -g flag" >&5
12630 $as_echo_n "checking whether the C compiler accepts the -g flag... " >&6; }
12631 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
12632 $as_echo_n "(cached) " >&6
12633 else
12634
12635
12636 ac_ext=c
12637 ac_cpp='$CPP $CPPFLAGS'
12638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12641
12642
12643 save_CFLAGS="$CFLAGS"
12644 CFLAGS="$CFLAGS -g"
12645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12646 /* end confdefs.h. */
12647
12648
12649 int
12650 main ()
12651 {
12652
12653 ;
12654 return 0;
12655 }
12656
12657 _ACEOF
12658 if ac_fn_c_try_compile "$LINENO"; then :
12659
12660 eval "ax_cv_c_check_flag_$flag=yes"
12661
12662 else
12663
12664 eval "ax_cv_c_check_flag_$flag=no"
12665
12666 fi
12667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12668
12669 CFLAGS="$save_CFLAGS"
12670
12671 ac_ext=c
12672 ac_cpp='$CPP $CPPFLAGS'
12673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12676
12677
12678
12679 fi
12680 eval ac_res=\$ax_cv_c_check_flag_$flag
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12682 $as_echo "$ac_res" >&6; }
12683
12684 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
12685
12686 :
12687 CFLAGS="$CFLAGS -g"
12688
12689 else
12690
12691 :
12692
12693
12694 fi
12695
12696
12697
12698
12699
12700
12701
12702
12703 flag=`echo "-std=c99" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
12704
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -std=c99 flag" >&5
12706 $as_echo_n "checking whether the C compiler accepts the -std=c99 flag... " >&6; }
12707 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
12708 $as_echo_n "(cached) " >&6
12709 else
12710
12711
12712 ac_ext=c
12713 ac_cpp='$CPP $CPPFLAGS'
12714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12717
12718
12719 save_CFLAGS="$CFLAGS"
12720 CFLAGS="$CFLAGS -std=c99"
12721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12722 /* end confdefs.h. */
12723
12724
12725 int
12726 main ()
12727 {
12728
12729 ;
12730 return 0;
12731 }
12732
12733 _ACEOF
12734 if ac_fn_c_try_compile "$LINENO"; then :
12735
12736 eval "ax_cv_c_check_flag_$flag=yes"
12737
12738 else
12739
12740 eval "ax_cv_c_check_flag_$flag=no"
12741
12742 fi
12743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12744
12745 CFLAGS="$save_CFLAGS"
12746
12747 ac_ext=c
12748 ac_cpp='$CPP $CPPFLAGS'
12749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12752
12753
12754
12755 fi
12756 eval ac_res=\$ax_cv_c_check_flag_$flag
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12758 $as_echo "$ac_res" >&6; }
12759
12760 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
12761
12762 :
12763 CFLAGS="$CFLAGS -std=c99"
12764
12765 else
12766
12767 :
12768
12769
12770 fi
12771
12772
12773
12774
12775
12776
12777
12778
12779 flag=`echo "-Wno-long-long" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
12780
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wno-long-long flag" >&5
12782 $as_echo_n "checking whether the C compiler accepts the -Wno-long-long flag... " >&6; }
12783 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
12784 $as_echo_n "(cached) " >&6
12785 else
12786
12787
12788 ac_ext=c
12789 ac_cpp='$CPP $CPPFLAGS'
12790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12793
12794
12795 save_CFLAGS="$CFLAGS"
12796 CFLAGS="$CFLAGS -Wno-long-long"
12797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12798 /* end confdefs.h. */
12799
12800
12801 int
12802 main ()
12803 {
12804
12805 ;
12806 return 0;
12807 }
12808
12809 _ACEOF
12810 if ac_fn_c_try_compile "$LINENO"; then :
12811
12812 eval "ax_cv_c_check_flag_$flag=yes"
12813
12814 else
12815
12816 eval "ax_cv_c_check_flag_$flag=no"
12817
12818 fi
12819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12820
12821 CFLAGS="$save_CFLAGS"
12822
12823 ac_ext=c
12824 ac_cpp='$CPP $CPPFLAGS'
12825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12828
12829
12830
12831 fi
12832 eval ac_res=\$ax_cv_c_check_flag_$flag
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12834 $as_echo "$ac_res" >&6; }
12835
12836 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
12837
12838 :
12839 CFLAGS="$CFLAGS -Wno-long-long"
12840
12841 else
12842
12843 :
12844
12845
12846 fi
12847
12848
12849
12850
12851
12852
12853
12854
12855 flag=`echo "-Wall" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
12856
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wall flag" >&5
12858 $as_echo_n "checking whether the C compiler accepts the -Wall flag... " >&6; }
12859 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
12860 $as_echo_n "(cached) " >&6
12861 else
12862
12863
12864 ac_ext=c
12865 ac_cpp='$CPP $CPPFLAGS'
12866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12869
12870
12871 save_CFLAGS="$CFLAGS"
12872 CFLAGS="$CFLAGS -Wall"
12873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12874 /* end confdefs.h. */
12875
12876
12877 int
12878 main ()
12879 {
12880
12881 ;
12882 return 0;
12883 }
12884
12885 _ACEOF
12886 if ac_fn_c_try_compile "$LINENO"; then :
12887
12888 eval "ax_cv_c_check_flag_$flag=yes"
12889
12890 else
12891
12892 eval "ax_cv_c_check_flag_$flag=no"
12893
12894 fi
12895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12896
12897 CFLAGS="$save_CFLAGS"
12898
12899 ac_ext=c
12900 ac_cpp='$CPP $CPPFLAGS'
12901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12904
12905
12906
12907 fi
12908 eval ac_res=\$ax_cv_c_check_flag_$flag
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12910 $as_echo "$ac_res" >&6; }
12911
12912 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
12913
12914 :
12915 CFLAGS="$CFLAGS -Wall"
12916
12917 else
12918
12919 :
12920
12921
12922 fi
12923
12924
12925
12926
12927
12928
12929
12930
12931 flag=`echo "-Wextra" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
12932
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wextra flag" >&5
12934 $as_echo_n "checking whether the C compiler accepts the -Wextra flag... " >&6; }
12935 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
12936 $as_echo_n "(cached) " >&6
12937 else
12938
12939
12940 ac_ext=c
12941 ac_cpp='$CPP $CPPFLAGS'
12942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12945
12946
12947 save_CFLAGS="$CFLAGS"
12948 CFLAGS="$CFLAGS -Wextra"
12949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12950 /* end confdefs.h. */
12951
12952
12953 int
12954 main ()
12955 {
12956
12957 ;
12958 return 0;
12959 }
12960
12961 _ACEOF
12962 if ac_fn_c_try_compile "$LINENO"; then :
12963
12964 eval "ax_cv_c_check_flag_$flag=yes"
12965
12966 else
12967
12968 eval "ax_cv_c_check_flag_$flag=no"
12969
12970 fi
12971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12972
12973 CFLAGS="$save_CFLAGS"
12974
12975 ac_ext=c
12976 ac_cpp='$CPP $CPPFLAGS'
12977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12980
12981
12982
12983 fi
12984 eval ac_res=\$ax_cv_c_check_flag_$flag
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12986 $as_echo "$ac_res" >&6; }
12987
12988 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
12989
12990 :
12991 CFLAGS="$CFLAGS -Wextra"
12992
12993 else
12994
12995 :
12996
12997
12998 fi
12999
13000
13001
13002
13003
13004
13005
13006
13007 flag=`echo "-Wdeclaration-after-statement" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
13008
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wdeclaration-after-statement flag" >&5
13010 $as_echo_n "checking whether the C compiler accepts the -Wdeclaration-after-statement flag... " >&6; }
13011 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
13012 $as_echo_n "(cached) " >&6
13013 else
13014
13015
13016 ac_ext=c
13017 ac_cpp='$CPP $CPPFLAGS'
13018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13021
13022
13023 save_CFLAGS="$CFLAGS"
13024 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13026 /* end confdefs.h. */
13027
13028
13029 int
13030 main ()
13031 {
13032
13033 ;
13034 return 0;
13035 }
13036
13037 _ACEOF
13038 if ac_fn_c_try_compile "$LINENO"; then :
13039
13040 eval "ax_cv_c_check_flag_$flag=yes"
13041
13042 else
13043
13044 eval "ax_cv_c_check_flag_$flag=no"
13045
13046 fi
13047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13048
13049 CFLAGS="$save_CFLAGS"
13050
13051 ac_ext=c
13052 ac_cpp='$CPP $CPPFLAGS'
13053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13056
13057
13058
13059 fi
13060 eval ac_res=\$ax_cv_c_check_flag_$flag
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13062 $as_echo "$ac_res" >&6; }
13063
13064 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
13065
13066 :
13067 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13068
13069 else
13070
13071 :
13072
13073
13074 fi
13075
13076
13077
13078
13079
13080
13081
13082
13083 flag=`echo "-Wshadow" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
13084
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wshadow flag" >&5
13086 $as_echo_n "checking whether the C compiler accepts the -Wshadow flag... " >&6; }
13087 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
13088 $as_echo_n "(cached) " >&6
13089 else
13090
13091
13092 ac_ext=c
13093 ac_cpp='$CPP $CPPFLAGS'
13094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13097
13098
13099 save_CFLAGS="$CFLAGS"
13100 CFLAGS="$CFLAGS -Wshadow"
13101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13102 /* end confdefs.h. */
13103
13104
13105 int
13106 main ()
13107 {
13108
13109 ;
13110 return 0;
13111 }
13112
13113 _ACEOF
13114 if ac_fn_c_try_compile "$LINENO"; then :
13115
13116 eval "ax_cv_c_check_flag_$flag=yes"
13117
13118 else
13119
13120 eval "ax_cv_c_check_flag_$flag=no"
13121
13122 fi
13123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13124
13125 CFLAGS="$save_CFLAGS"
13126
13127 ac_ext=c
13128 ac_cpp='$CPP $CPPFLAGS'
13129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13132
13133
13134
13135 fi
13136 eval ac_res=\$ax_cv_c_check_flag_$flag
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13138 $as_echo "$ac_res" >&6; }
13139
13140 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
13141
13142 :
13143 CFLAGS="$CFLAGS -Wshadow"
13144
13145 else
13146
13147 :
13148
13149
13150 fi
13151
13152
13153
13154
13155
13156
13157
13158
13159 flag=`echo "-Wstrict-prototypes" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
13160
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wstrict-prototypes flag" >&5
13162 $as_echo_n "checking whether the C compiler accepts the -Wstrict-prototypes flag... " >&6; }
13163 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
13164 $as_echo_n "(cached) " >&6
13165 else
13166
13167
13168 ac_ext=c
13169 ac_cpp='$CPP $CPPFLAGS'
13170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13173
13174
13175 save_CFLAGS="$CFLAGS"
13176 CFLAGS="$CFLAGS -Wstrict-prototypes"
13177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13178 /* end confdefs.h. */
13179
13180
13181 int
13182 main ()
13183 {
13184
13185 ;
13186 return 0;
13187 }
13188
13189 _ACEOF
13190 if ac_fn_c_try_compile "$LINENO"; then :
13191
13192 eval "ax_cv_c_check_flag_$flag=yes"
13193
13194 else
13195
13196 eval "ax_cv_c_check_flag_$flag=no"
13197
13198 fi
13199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13200
13201 CFLAGS="$save_CFLAGS"
13202
13203 ac_ext=c
13204 ac_cpp='$CPP $CPPFLAGS'
13205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13208
13209
13210
13211 fi
13212 eval ac_res=\$ax_cv_c_check_flag_$flag
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13214 $as_echo "$ac_res" >&6; }
13215
13216 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
13217
13218 :
13219 CFLAGS="$CFLAGS -Wstrict-prototypes"
13220
13221 else
13222
13223 :
13224
13225
13226 fi
13227
13228
13229
13230
13231
13232
13233
13234
13235 flag=`echo "-Wmissing-prototypes" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
13236
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wmissing-prototypes flag" >&5
13238 $as_echo_n "checking whether the C compiler accepts the -Wmissing-prototypes flag... " >&6; }
13239 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
13240 $as_echo_n "(cached) " >&6
13241 else
13242
13243
13244 ac_ext=c
13245 ac_cpp='$CPP $CPPFLAGS'
13246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13249
13250
13251 save_CFLAGS="$CFLAGS"
13252 CFLAGS="$CFLAGS -Wmissing-prototypes"
13253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13254 /* end confdefs.h. */
13255
13256
13257 int
13258 main ()
13259 {
13260
13261 ;
13262 return 0;
13263 }
13264
13265 _ACEOF
13266 if ac_fn_c_try_compile "$LINENO"; then :
13267
13268 eval "ax_cv_c_check_flag_$flag=yes"
13269
13270 else
13271
13272 eval "ax_cv_c_check_flag_$flag=no"
13273
13274 fi
13275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13276
13277 CFLAGS="$save_CFLAGS"
13278
13279 ac_ext=c
13280 ac_cpp='$CPP $CPPFLAGS'
13281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13284
13285
13286
13287 fi
13288 eval ac_res=\$ax_cv_c_check_flag_$flag
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13290 $as_echo "$ac_res" >&6; }
13291
13292 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
13293
13294 :
13295 CFLAGS="$CFLAGS -Wmissing-prototypes"
13296
13297 else
13298
13299 :
13300
13301
13302 fi
13303
13304
13305
13306
13307
13308
13309
13310
13311 flag=`echo "-Wno-unused-value" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
13312
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wno-unused-value flag" >&5
13314 $as_echo_n "checking whether the C compiler accepts the -Wno-unused-value flag... " >&6; }
13315 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
13316 $as_echo_n "(cached) " >&6
13317 else
13318
13319
13320 ac_ext=c
13321 ac_cpp='$CPP $CPPFLAGS'
13322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13325
13326
13327 save_CFLAGS="$CFLAGS"
13328 CFLAGS="$CFLAGS -Wno-unused-value"
13329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13330 /* end confdefs.h. */
13331
13332
13333 int
13334 main ()
13335 {
13336
13337 ;
13338 return 0;
13339 }
13340
13341 _ACEOF
13342 if ac_fn_c_try_compile "$LINENO"; then :
13343
13344 eval "ax_cv_c_check_flag_$flag=yes"
13345
13346 else
13347
13348 eval "ax_cv_c_check_flag_$flag=no"
13349
13350 fi
13351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13352
13353 CFLAGS="$save_CFLAGS"
13354
13355 ac_ext=c
13356 ac_cpp='$CPP $CPPFLAGS'
13357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13360
13361
13362
13363 fi
13364 eval ac_res=\$ax_cv_c_check_flag_$flag
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13366 $as_echo "$ac_res" >&6; }
13367
13368 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
13369
13370 :
13371 CFLAGS="$CFLAGS -Wno-unused-value"
13372
13373 else
13374
13375 :
13376
13377
13378 fi
13379
13380
13381
13382
13383
13384
13385
13386
13387 flag=`echo "-Wlogical-op" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
13388
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wlogical-op flag" >&5
13390 $as_echo_n "checking whether the C compiler accepts the -Wlogical-op flag... " >&6; }
13391 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
13392 $as_echo_n "(cached) " >&6
13393 else
13394
13395
13396 ac_ext=c
13397 ac_cpp='$CPP $CPPFLAGS'
13398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13401
13402
13403 save_CFLAGS="$CFLAGS"
13404 CFLAGS="$CFLAGS -Wlogical-op"
13405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13406 /* end confdefs.h. */
13407
13408
13409 int
13410 main ()
13411 {
13412
13413 ;
13414 return 0;
13415 }
13416
13417 _ACEOF
13418 if ac_fn_c_try_compile "$LINENO"; then :
13419
13420 eval "ax_cv_c_check_flag_$flag=yes"
13421
13422 else
13423
13424 eval "ax_cv_c_check_flag_$flag=no"
13425
13426 fi
13427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13428
13429 CFLAGS="$save_CFLAGS"
13430
13431 ac_ext=c
13432 ac_cpp='$CPP $CPPFLAGS'
13433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13436
13437
13438
13439 fi
13440 eval ac_res=\$ax_cv_c_check_flag_$flag
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13442 $as_echo "$ac_res" >&6; }
13443
13444 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
13445
13446 :
13447 CFLAGS="$CFLAGS -Wlogical-op"
13448
13449 else
13450
13451 :
13452
13453
13454 fi
13455
13456
13457 fi
13458 fi
13459
13460 fi
13461
13462
13463 # Checks for header files.
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13465 $as_echo_n "checking for ANSI C header files... " >&6; }
13466 if ${ac_cv_header_stdc+:} false; then :
13467 $as_echo_n "(cached) " >&6
13468 else
13469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13470 /* end confdefs.h. */
13471 #include <stdlib.h>
13472 #include <stdarg.h>
13473 #include <string.h>
13474 #include <float.h>
13475
13476 int
13477 main ()
13478 {
13479
13480 ;
13481 return 0;
13482 }
13483 _ACEOF
13484 if ac_fn_c_try_compile "$LINENO"; then :
13485 ac_cv_header_stdc=yes
13486 else
13487 ac_cv_header_stdc=no
13488 fi
13489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13490
13491 if test $ac_cv_header_stdc = yes; then
13492 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13494 /* end confdefs.h. */
13495 #include <string.h>
13496
13497 _ACEOF
13498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13499 $EGREP "memchr" >/dev/null 2>&1; then :
13500
13501 else
13502 ac_cv_header_stdc=no
13503 fi
13504 rm -f conftest*
13505
13506 fi
13507
13508 if test $ac_cv_header_stdc = yes; then
13509 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13511 /* end confdefs.h. */
13512 #include <stdlib.h>
13513
13514 _ACEOF
13515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13516 $EGREP "free" >/dev/null 2>&1; then :
13517
13518 else
13519 ac_cv_header_stdc=no
13520 fi
13521 rm -f conftest*
13522
13523 fi
13524
13525 if test $ac_cv_header_stdc = yes; then
13526 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13527 if test "$cross_compiling" = yes; then :
13528 :
13529 else
13530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13531 /* end confdefs.h. */
13532 #include <ctype.h>
13533 #include <stdlib.h>
13534 #if ((' ' & 0x0FF) == 0x020)
13535 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13536 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13537 #else
13538 # define ISLOWER(c) \
13539 (('a' <= (c) && (c) <= 'i') \
13540 || ('j' <= (c) && (c) <= 'r') \
13541 || ('s' <= (c) && (c) <= 'z'))
13542 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13543 #endif
13544
13545 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13546 int
13547 main ()
13548 {
13549 int i;
13550 for (i = 0; i < 256; i++)
13551 if (XOR (islower (i), ISLOWER (i))
13552 || toupper (i) != TOUPPER (i))
13553 return 2;
13554 return 0;
13555 }
13556 _ACEOF
13557 if ac_fn_c_try_run "$LINENO"; then :
13558
13559 else
13560 ac_cv_header_stdc=no
13561 fi
13562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13563 conftest.$ac_objext conftest.beam conftest.$ac_ext
13564 fi
13565
13566 fi
13567 fi
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13569 $as_echo "$ac_cv_header_stdc" >&6; }
13570 if test $ac_cv_header_stdc = yes; then
13571
13572 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13573
13574 fi
13575
13576 for ac_header in locale.h inttypes.h stdint.h limits.h unistd.h sys/time.h sys/resource.h
13577 do :
13578 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13579 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13580 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13581 cat >>confdefs.h <<_ACEOF
13582 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13583 _ACEOF
13584
13585 fi
13586
13587 done
13588
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13590 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13591 if ${ac_cv_header_time+:} false; then :
13592 $as_echo_n "(cached) " >&6
13593 else
13594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13595 /* end confdefs.h. */
13596 #include <sys/types.h>
13597 #include <sys/time.h>
13598 #include <time.h>
13599
13600 int
13601 main ()
13602 {
13603 if ((struct tm *) 0)
13604 return 0;
13605 ;
13606 return 0;
13607 }
13608 _ACEOF
13609 if ac_fn_c_try_compile "$LINENO"; then :
13610 ac_cv_header_time=yes
13611 else
13612 ac_cv_header_time=no
13613 fi
13614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13615 fi
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13617 $as_echo "$ac_cv_header_time" >&6; }
13618 if test $ac_cv_header_time = yes; then
13619
13620 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13621
13622 fi
13623
13624
13625 ac_fn_c_check_header_mongrel "$LINENO" "complex.h" "ac_cv_header_complex_h" "$ac_includes_default"
13626 if test "x$ac_cv_header_complex_h" = xyes; then :
13627
13628
13629
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing creal" >&5
13631 $as_echo_n "checking for library containing creal... " >&6; }
13632 if ${ac_cv_search_creal+:} false; then :
13633 $as_echo_n "(cached) " >&6
13634 else
13635 ac_func_search_save_LIBS=$LIBS
13636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13637 /* end confdefs.h. */
13638
13639 /* Override any GCC internal prototype to avoid an error.
13640 Use char because int might match the return type of a GCC
13641 builtin and then its argument prototype would still apply. */
13642 #ifdef __cplusplus
13643 extern "C"
13644 #endif
13645 char creal ();
13646 int
13647 main ()
13648 {
13649 return creal ();
13650 ;
13651 return 0;
13652 }
13653 _ACEOF
13654 for ac_lib in '' m; do
13655 if test -z "$ac_lib"; then
13656 ac_res="none required"
13657 else
13658 ac_res=-l$ac_lib
13659 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13660 fi
13661 if ac_fn_c_try_link "$LINENO"; then :
13662 ac_cv_search_creal=$ac_res
13663 fi
13664 rm -f core conftest.err conftest.$ac_objext \
13665 conftest$ac_exeext
13666 if ${ac_cv_search_creal+:} false; then :
13667 break
13668 fi
13669 done
13670 if ${ac_cv_search_creal+:} false; then :
13671
13672 else
13673 ac_cv_search_creal=no
13674 fi
13675 rm conftest.$ac_ext
13676 LIBS=$ac_func_search_save_LIBS
13677 fi
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_creal" >&5
13679 $as_echo "$ac_cv_search_creal" >&6; }
13680 ac_res=$ac_cv_search_creal
13681 if test "$ac_res" != no; then :
13682 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13683
13684 fi
13685
13686 # needed on Solaris
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether creal, cimag and I can be used" >&5
13688 $as_echo_n "checking whether creal, cimag and I can be used... " >&6; }
13689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13690 /* end confdefs.h. */
13691
13692 #include <complex.h>
13693 int
13694 main ()
13695 {
13696 complex double x = 1.0 + 2.0 * I; return (creal (x) + cimag (x));
13697
13698 ;
13699 return 0;
13700 }
13701
13702
13703 _ACEOF
13704 if ac_fn_c_try_link "$LINENO"; then :
13705
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13707 $as_echo "yes" >&6; }
13708
13709 $as_echo "#define HAVE_COMPLEX_H 1" >>confdefs.h
13710
13711
13712 else
13713
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, build without support for C complex numbers" >&5
13715 $as_echo "no, build without support for C complex numbers" >&6; }
13716
13717
13718 fi
13719 rm -f core conftest.err conftest.$ac_objext \
13720 conftest$ac_exeext conftest.$ac_ext
13721
13722
13723 fi
13724
13725
13726
13727
13728 # Checks for typedefs, structures, and compiler characteristics.
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13730 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13731 if ${ac_cv_c_const+:} false; then :
13732 $as_echo_n "(cached) " >&6
13733 else
13734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13735 /* end confdefs.h. */
13736
13737 int
13738 main ()
13739 {
13740
13741 #ifndef __cplusplus
13742 /* Ultrix mips cc rejects this sort of thing. */
13743 typedef int charset[2];
13744 const charset cs = { 0, 0 };
13745 /* SunOS 4.1.1 cc rejects this. */
13746 char const *const *pcpcc;
13747 char **ppc;
13748 /* NEC SVR4.0.2 mips cc rejects this. */
13749 struct point {int x, y;};
13750 static struct point const zero = {0,0};
13751 /* AIX XL C 1.02.0.0 rejects this.
13752 It does not let you subtract one const X* pointer from another in
13753 an arm of an if-expression whose if-part is not a constant
13754 expression */
13755 const char *g = "string";
13756 pcpcc = &g + (g ? g-g : 0);
13757 /* HPUX 7.0 cc rejects these. */
13758 ++pcpcc;
13759 ppc = (char**) pcpcc;
13760 pcpcc = (char const *const *) ppc;
13761 { /* SCO 3.2v4 cc rejects this sort of thing. */
13762 char tx;
13763 char *t = &tx;
13764 char const *s = 0 ? (char *) 0 : (char const *) 0;
13765
13766 *t++ = 0;
13767 if (s) return 0;
13768 }
13769 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13770 int x[] = {25, 17};
13771 const int *foo = &x[0];
13772 ++foo;
13773 }
13774 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13775 typedef const int *iptr;
13776 iptr p = 0;
13777 ++p;
13778 }
13779 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13780 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13781 struct s { int j; const int *ap[3]; } bx;
13782 struct s *b = &bx; b->j = 5;
13783 }
13784 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13785 const int foo = 10;
13786 if (!foo) return 0;
13787 }
13788 return !cs[0] && !zero.x;
13789 #endif
13790
13791 ;
13792 return 0;
13793 }
13794 _ACEOF
13795 if ac_fn_c_try_compile "$LINENO"; then :
13796 ac_cv_c_const=yes
13797 else
13798 ac_cv_c_const=no
13799 fi
13800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13801 fi
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13803 $as_echo "$ac_cv_c_const" >&6; }
13804 if test $ac_cv_c_const = no; then
13805
13806 $as_echo "#define const /**/" >>confdefs.h
13807
13808 fi
13809
13810 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13811 if test "x$ac_cv_type_size_t" = xyes; then :
13812
13813 else
13814
13815 cat >>confdefs.h <<_ACEOF
13816 #define size_t unsigned int
13817 _ACEOF
13818
13819 fi
13820
13821
13822 # Checks for libraries.
13823 for ac_func in gettimeofday localeconv setlocale getrusage
13824 do :
13825 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13826 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13827 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13828 cat >>confdefs.h <<_ACEOF
13829 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13830 _ACEOF
13831
13832 fi
13833 done
13834
13835 for ac_func in dup dup2
13836 do :
13837 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13838 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13839 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13840 cat >>confdefs.h <<_ACEOF
13841 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13842 _ACEOF
13843
13844 else
13845
13846 $as_echo "#define MPC_NO_STREAM_REDIRECTION 1" >>confdefs.h
13847
13848 fi
13849 done
13850
13851
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_init in -lgmp" >&5
13853 $as_echo_n "checking for __gmpz_init in -lgmp... " >&6; }
13854 if ${ac_cv_lib_gmp___gmpz_init+:} false; then :
13855 $as_echo_n "(cached) " >&6
13856 else
13857 ac_check_lib_save_LIBS=$LIBS
13858 LIBS="-lgmp $LIBS"
13859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13860 /* end confdefs.h. */
13861
13862 /* Override any GCC internal prototype to avoid an error.
13863 Use char because int might match the return type of a GCC
13864 builtin and then its argument prototype would still apply. */
13865 #ifdef __cplusplus
13866 extern "C"
13867 #endif
13868 char __gmpz_init ();
13869 int
13870 main ()
13871 {
13872 return __gmpz_init ();
13873 ;
13874 return 0;
13875 }
13876 _ACEOF
13877 if ac_fn_c_try_link "$LINENO"; then :
13878 ac_cv_lib_gmp___gmpz_init=yes
13879 else
13880 ac_cv_lib_gmp___gmpz_init=no
13881 fi
13882 rm -f core conftest.err conftest.$ac_objext \
13883 conftest$ac_exeext conftest.$ac_ext
13884 LIBS=$ac_check_lib_save_LIBS
13885 fi
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_init" >&5
13887 $as_echo "$ac_cv_lib_gmp___gmpz_init" >&6; }
13888 if test "x$ac_cv_lib_gmp___gmpz_init" = xyes; then :
13889 LIBS="-lgmp $LIBS"
13890 else
13891 as_fn_error $? "libgmp not found or uses a different ABI (including static vs shared)." "$LINENO" 5
13892 fi
13893
13894
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPFR" >&5
13896 $as_echo_n "checking for MPFR... " >&6; }
13897 LIBS="-lmpfr $LIBS"
13898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13899 /* end confdefs.h. */
13900 #include "mpfr.h"
13901 int
13902 main ()
13903 {
13904 mpfr_t x; mpfr_init(x) ; mpfr_clear(x);
13905
13906 ;
13907 return 0;
13908 }
13909 _ACEOF
13910 if ac_fn_c_try_link "$LINENO"; then :
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13912 $as_echo "yes" >&6; }
13913 else
13914
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13916 $as_echo "no" >&6; }
13917 as_fn_error $? "libmpfr not found or uses a different ABI (including static vs shared)." "$LINENO" 5
13918
13919 fi
13920 rm -f core conftest.err conftest.$ac_objext \
13921 conftest$ac_exeext conftest.$ac_ext
13922
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpfr_fmma" >&5
13924 $as_echo_n "checking for mpfr_fmma... " >&6; }
13925 LIBS="-lmpfr $LIBS"
13926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13927 /* end confdefs.h. */
13928 #include "mpfr.h"
13929 int
13930 main ()
13931 {
13932 mpfr_t x; mpfr_fmma (x, x, x, x, x, 0);
13933
13934 ;
13935 return 0;
13936 }
13937 _ACEOF
13938 if ac_fn_c_try_link "$LINENO"; then :
13939
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13941 $as_echo "yes" >&6; }
13942
13943 $as_echo "#define HAVE_MPFR_FMMA 1" >>confdefs.h
13944
13945
13946 else
13947
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13949 $as_echo "no" >&6; }
13950
13951 $as_echo "#define HAVE_MPFR_FMMA 0" >>confdefs.h
13952
13953
13954 fi
13955 rm -f core conftest.err conftest.$ac_objext \
13956 conftest$ac_exeext conftest.$ac_ext
13957
13958 # Check for a recent GMP
13959 # We only guarantee that with a *functional* and recent enough GMP version,
13960 # MPC will compile; we do not guarantee that GMP will compile.
13961 # In particular fat builds are broken in GMP 5.0.0
13962 # (at least on 64-bit Core 2 under GNU/Linux),
13963 # see http://gmplib.org/list-archives/gmp-bugs/2011-August/002345.html.
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent GMP" >&5
13965 $as_echo_n "checking for recent GMP... " >&6; }
13966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13967 /* end confdefs.h. */
13968
13969 #include "gmp.h"
13970 #if (__GNU_MP_VERSION*100 + __GNU_MP_VERSION_MINOR*10 + __GNU_MP_VERSION_PATCHLEVEL < 500)
13971 # error "Minimal GMP version is 5.0.0"
13972 error
13973 #endif
13974
13975 _ACEOF
13976 if ac_fn_c_try_compile "$LINENO"; then :
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13978 $as_echo "yes" >&6; }
13979 else
13980
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13982 $as_echo "no" >&6; }
13983 as_fn_error $? "GMP version >= 5.0.0 required" "$LINENO" 5
13984
13985 fi
13986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13987
13988 # Check for a recent MPFR: we require MPFR 3.0.0 for MPC_RNDA
13989 # The same remark as above for GMP applies.
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent MPFR" >&5
13991 $as_echo_n "checking for recent MPFR... " >&6; }
13992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13993 /* end confdefs.h. */
13994
13995 #include "mpfr.h"
13996 #if (MPFR_VERSION < MPFR_VERSION_NUM (3,0,0))
13997 # error "Minimal MPFR version is 3.0.0"
13998 error
13999 #endif
14000
14001 _ACEOF
14002 if ac_fn_c_try_compile "$LINENO"; then :
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14004 $as_echo "yes" >&6; }
14005 else
14006
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14008 $as_echo "no" >&6; }
14009 as_fn_error $? "MPFR version >= 3.0.0 required" "$LINENO" 5
14010
14011 fi
14012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14013
14014 # Check for logging feature
14015 if test "x$enable_logging" = "xyes"; then :
14016 for ac_header in dlfcn.h
14017 do :
14018 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
14019 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14020 cat >>confdefs.h <<_ACEOF
14021 #define HAVE_DLFCN_H 1
14022 _ACEOF
14023
14024 fi
14025
14026 done
14027
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
14029 $as_echo_n "checking for dlsym in -ldl... " >&6; }
14030 if ${ac_cv_lib_dl_dlsym+:} false; then :
14031 $as_echo_n "(cached) " >&6
14032 else
14033 ac_check_lib_save_LIBS=$LIBS
14034 LIBS="-ldl $LIBS"
14035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14036 /* end confdefs.h. */
14037
14038 /* Override any GCC internal prototype to avoid an error.
14039 Use char because int might match the return type of a GCC
14040 builtin and then its argument prototype would still apply. */
14041 #ifdef __cplusplus
14042 extern "C"
14043 #endif
14044 char dlsym ();
14045 int
14046 main ()
14047 {
14048 return dlsym ();
14049 ;
14050 return 0;
14051 }
14052 _ACEOF
14053 if ac_fn_c_try_link "$LINENO"; then :
14054 ac_cv_lib_dl_dlsym=yes
14055 else
14056 ac_cv_lib_dl_dlsym=no
14057 fi
14058 rm -f core conftest.err conftest.$ac_objext \
14059 conftest$ac_exeext conftest.$ac_ext
14060 LIBS=$ac_check_lib_save_LIBS
14061 fi
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
14063 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
14064 if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
14065
14066
14067 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
14068
14069 LIBS="-ldl $LIBS"
14070
14071 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
14072 if test "x$ac_cv_type_intptr_t" = xyes; then :
14073
14074 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
14075
14076 else
14077 for ac_type in 'int' 'long int' 'long long int'; do
14078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14079 /* end confdefs.h. */
14080 $ac_includes_default
14081 int
14082 main ()
14083 {
14084 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
14085 test_array [0] = 0;
14086 return test_array [0];
14087
14088 ;
14089 return 0;
14090 }
14091 _ACEOF
14092 if ac_fn_c_try_compile "$LINENO"; then :
14093
14094 cat >>confdefs.h <<_ACEOF
14095 #define intptr_t $ac_type
14096 _ACEOF
14097
14098 ac_type=
14099 fi
14100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14101 test -z "$ac_type" && break
14102 done
14103 fi
14104
14105
14106 case " $LIBOBJS " in
14107 *" logging.$ac_objext "* ) ;;
14108 *) LIBOBJS="$LIBOBJS logging.$ac_objext"
14109 ;;
14110 esac
14111
14112 MPC_LOG_H=src/mpc-log.h
14113
14114
14115 else
14116 as_fn_error $? "Library dl not found, logging impossible" "$LINENO" 5
14117 fi
14118
14119
14120
14121 fi
14122
14123 # Configs for Windows DLLs
14124
14125 enable_win32_dll=yes
14126
14127 case $host in
14128 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
14129 if test -n "$ac_tool_prefix"; then
14130 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
14131 set dummy ${ac_tool_prefix}as; ac_word=$2
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14133 $as_echo_n "checking for $ac_word... " >&6; }
14134 if ${ac_cv_prog_AS+:} false; then :
14135 $as_echo_n "(cached) " >&6
14136 else
14137 if test -n "$AS"; then
14138 ac_cv_prog_AS="$AS" # Let the user override the test.
14139 else
14140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14141 for as_dir in $PATH
14142 do
14143 IFS=$as_save_IFS
14144 test -z "$as_dir" && as_dir=.
14145 for ac_exec_ext in '' $ac_executable_extensions; do
14146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14147 ac_cv_prog_AS="${ac_tool_prefix}as"
14148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14149 break 2
14150 fi
14151 done
14152 done
14153 IFS=$as_save_IFS
14154
14155 fi
14156 fi
14157 AS=$ac_cv_prog_AS
14158 if test -n "$AS"; then
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
14160 $as_echo "$AS" >&6; }
14161 else
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14163 $as_echo "no" >&6; }
14164 fi
14165
14166
14167 fi
14168 if test -z "$ac_cv_prog_AS"; then
14169 ac_ct_AS=$AS
14170 # Extract the first word of "as", so it can be a program name with args.
14171 set dummy as; ac_word=$2
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14173 $as_echo_n "checking for $ac_word... " >&6; }
14174 if ${ac_cv_prog_ac_ct_AS+:} false; then :
14175 $as_echo_n "(cached) " >&6
14176 else
14177 if test -n "$ac_ct_AS"; then
14178 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
14179 else
14180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14181 for as_dir in $PATH
14182 do
14183 IFS=$as_save_IFS
14184 test -z "$as_dir" && as_dir=.
14185 for ac_exec_ext in '' $ac_executable_extensions; do
14186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14187 ac_cv_prog_ac_ct_AS="as"
14188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14189 break 2
14190 fi
14191 done
14192 done
14193 IFS=$as_save_IFS
14194
14195 fi
14196 fi
14197 ac_ct_AS=$ac_cv_prog_ac_ct_AS
14198 if test -n "$ac_ct_AS"; then
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
14200 $as_echo "$ac_ct_AS" >&6; }
14201 else
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14203 $as_echo "no" >&6; }
14204 fi
14205
14206 if test "x$ac_ct_AS" = x; then
14207 AS="false"
14208 else
14209 case $cross_compiling:$ac_tool_warned in
14210 yes:)
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14213 ac_tool_warned=yes ;;
14214 esac
14215 AS=$ac_ct_AS
14216 fi
14217 else
14218 AS="$ac_cv_prog_AS"
14219 fi
14220
14221 if test -n "$ac_tool_prefix"; then
14222 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
14223 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14225 $as_echo_n "checking for $ac_word... " >&6; }
14226 if ${ac_cv_prog_DLLTOOL+:} false; then :
14227 $as_echo_n "(cached) " >&6
14228 else
14229 if test -n "$DLLTOOL"; then
14230 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14231 else
14232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14233 for as_dir in $PATH
14234 do
14235 IFS=$as_save_IFS
14236 test -z "$as_dir" && as_dir=.
14237 for ac_exec_ext in '' $ac_executable_extensions; do
14238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14239 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
14240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14241 break 2
14242 fi
14243 done
14244 done
14245 IFS=$as_save_IFS
14246
14247 fi
14248 fi
14249 DLLTOOL=$ac_cv_prog_DLLTOOL
14250 if test -n "$DLLTOOL"; then
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
14252 $as_echo "$DLLTOOL" >&6; }
14253 else
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14255 $as_echo "no" >&6; }
14256 fi
14257
14258
14259 fi
14260 if test -z "$ac_cv_prog_DLLTOOL"; then
14261 ac_ct_DLLTOOL=$DLLTOOL
14262 # Extract the first word of "dlltool", so it can be a program name with args.
14263 set dummy dlltool; ac_word=$2
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14265 $as_echo_n "checking for $ac_word... " >&6; }
14266 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
14267 $as_echo_n "(cached) " >&6
14268 else
14269 if test -n "$ac_ct_DLLTOOL"; then
14270 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
14271 else
14272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14273 for as_dir in $PATH
14274 do
14275 IFS=$as_save_IFS
14276 test -z "$as_dir" && as_dir=.
14277 for ac_exec_ext in '' $ac_executable_extensions; do
14278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14279 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
14280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14281 break 2
14282 fi
14283 done
14284 done
14285 IFS=$as_save_IFS
14286
14287 fi
14288 fi
14289 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
14290 if test -n "$ac_ct_DLLTOOL"; then
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
14292 $as_echo "$ac_ct_DLLTOOL" >&6; }
14293 else
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14295 $as_echo "no" >&6; }
14296 fi
14297
14298 if test "x$ac_ct_DLLTOOL" = x; then
14299 DLLTOOL="false"
14300 else
14301 case $cross_compiling:$ac_tool_warned in
14302 yes:)
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14305 ac_tool_warned=yes ;;
14306 esac
14307 DLLTOOL=$ac_ct_DLLTOOL
14308 fi
14309 else
14310 DLLTOOL="$ac_cv_prog_DLLTOOL"
14311 fi
14312
14313 if test -n "$ac_tool_prefix"; then
14314 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
14315 set dummy ${ac_tool_prefix}objdump; ac_word=$2
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14317 $as_echo_n "checking for $ac_word... " >&6; }
14318 if ${ac_cv_prog_OBJDUMP+:} false; then :
14319 $as_echo_n "(cached) " >&6
14320 else
14321 if test -n "$OBJDUMP"; then
14322 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14323 else
14324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14325 for as_dir in $PATH
14326 do
14327 IFS=$as_save_IFS
14328 test -z "$as_dir" && as_dir=.
14329 for ac_exec_ext in '' $ac_executable_extensions; do
14330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14331 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
14332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14333 break 2
14334 fi
14335 done
14336 done
14337 IFS=$as_save_IFS
14338
14339 fi
14340 fi
14341 OBJDUMP=$ac_cv_prog_OBJDUMP
14342 if test -n "$OBJDUMP"; then
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
14344 $as_echo "$OBJDUMP" >&6; }
14345 else
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14347 $as_echo "no" >&6; }
14348 fi
14349
14350
14351 fi
14352 if test -z "$ac_cv_prog_OBJDUMP"; then
14353 ac_ct_OBJDUMP=$OBJDUMP
14354 # Extract the first word of "objdump", so it can be a program name with args.
14355 set dummy objdump; ac_word=$2
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14357 $as_echo_n "checking for $ac_word... " >&6; }
14358 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
14359 $as_echo_n "(cached) " >&6
14360 else
14361 if test -n "$ac_ct_OBJDUMP"; then
14362 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14363 else
14364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14365 for as_dir in $PATH
14366 do
14367 IFS=$as_save_IFS
14368 test -z "$as_dir" && as_dir=.
14369 for ac_exec_ext in '' $ac_executable_extensions; do
14370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14371 ac_cv_prog_ac_ct_OBJDUMP="objdump"
14372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14373 break 2
14374 fi
14375 done
14376 done
14377 IFS=$as_save_IFS
14378
14379 fi
14380 fi
14381 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14382 if test -n "$ac_ct_OBJDUMP"; then
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
14384 $as_echo "$ac_ct_OBJDUMP" >&6; }
14385 else
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14387 $as_echo "no" >&6; }
14388 fi
14389
14390 if test "x$ac_ct_OBJDUMP" = x; then
14391 OBJDUMP="false"
14392 else
14393 case $cross_compiling:$ac_tool_warned in
14394 yes:)
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14396 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14397 ac_tool_warned=yes ;;
14398 esac
14399 OBJDUMP=$ac_ct_OBJDUMP
14400 fi
14401 else
14402 OBJDUMP="$ac_cv_prog_OBJDUMP"
14403 fi
14404
14405 ;;
14406 esac
14407
14408 test -z "$AS" && AS=as
14409
14410
14411
14412
14413
14414 test -z "$DLLTOOL" && DLLTOOL=dlltool
14415
14416
14417 test -z "$OBJDUMP" && OBJDUMP=objdump
14418
14419
14420
14421
14422 case $host in
14423 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
14424
14425 if test "$enable_shared" = yes; then
14426 MPC_LDFLAGS="$MPC_LDFLAGS -no-undefined"
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLL/static gmp" >&5
14428 $as_echo_n "checking for DLL/static gmp... " >&6; }
14429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14430 /* end confdefs.h. */
14431
14432 #include "gmp.h"
14433 #if !__GMP_LIBGMP_DLL
14434 #error
14435 error
14436 #endif
14437
14438 int
14439 main ()
14440 {
14441
14442 ;
14443 return 0;
14444 }
14445 _ACEOF
14446 if ac_fn_c_try_compile "$LINENO"; then :
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: DLL" >&5
14448 $as_echo "DLL" >&6; }
14449 else
14450
14451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5
14452 $as_echo "static" >&6; }
14453 as_fn_error $? "gmp is not available as a DLL: use --enable-static --disable-shared" "$LINENO" 5
14454 fi
14455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLL/static mpfr" >&5
14457 $as_echo_n "checking for DLL/static mpfr... " >&6; }
14458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14459 /* end confdefs.h. */
14460
14461 #include "mpfr.h"
14462 #if !__GMP_LIBGMP_DLL
14463 #error
14464 error
14465 #endif
14466
14467 int
14468 main ()
14469 {
14470
14471 ;
14472 return 0;
14473 }
14474 _ACEOF
14475 if ac_fn_c_try_compile "$LINENO"; then :
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: DLL" >&5
14477 $as_echo "DLL" >&6; }
14478 else
14479
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5
14481 $as_echo "static" >&6; }
14482 as_fn_error $? "mpfr is not available as a DLL: use --enable-static --disable-shared" "$LINENO" 5
14483 fi
14484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14485 else
14486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14487 /* end confdefs.h. */
14488
14489 #include "gmp.h"
14490 #if __GMP_LIBGMP_DLL
14491 #error
14492 error
14493 #endif
14494
14495 int
14496 main ()
14497 {
14498
14499 ;
14500 return 0;
14501 }
14502 _ACEOF
14503 if ac_fn_c_try_compile "$LINENO"; then :
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5
14505 $as_echo "static" >&6; }
14506 else
14507
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: DLL" >&5
14509 $as_echo "DLL" >&6; }
14510 as_fn_error $? "gmp is only available as a DLL: use --disable-static --enable-shared" "$LINENO" 5
14511 fi
14512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14513 fi
14514 ;;
14515
14516 esac
14517
14518 # Checks for gcc version, result in variables MPC_GCC etc. inside config.log
14519
14520 GCC_VERSION=""
14521
14522
14523
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -dumpversion option" >&5
14525 $as_echo_n "checking if gcc accepts -dumpversion option... " >&6; }
14526
14527 if test "x$GCC" = "xyes" ; then :
14528
14529 if test -z "" ; then :
14530
14531 ax_gcc_option_test="int main()
14532 {
14533 return 0;
14534 }"
14535
14536 else
14537
14538 ax_gcc_option_test=""
14539
14540 fi
14541
14542 # Dump the test program to file
14543 cat <<EOF > conftest.c
14544 $ax_gcc_option_test
14545 EOF
14546
14547 # Dump back the file to the log, useful for debugging purposes
14548 { ac_try='cat conftest.c 1>&5'
14549 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14550 (eval $ac_try) 2>&5
14551 ac_status=$?
14552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14553 test $ac_status = 0; }; }
14554
14555 if { ac_try='$CC -dumpversion -c conftest.c 1>&5'
14556 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14557 (eval $ac_try) 2>&5
14558 ac_status=$?
14559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14560 test $ac_status = 0; }; } ; then :
14561
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14563 $as_echo "yes" >&6; }
14564
14565 ax_gcc_version_option=yes
14566
14567
14568 else
14569
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14571 $as_echo "no" >&6; }
14572
14573 ax_gcc_version_option=no
14574
14575
14576 fi
14577
14578 else
14579
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no gcc available" >&5
14581 $as_echo "no gcc available" >&6; }
14582
14583 fi
14584
14585 if test "x$GCC" = "xyes"; then :
14586
14587 if test "x$ax_gcc_version_option" != "xno"; then :
14588
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
14590 $as_echo_n "checking gcc version... " >&6; }
14591 if ${ax_cv_gcc_version+:} false; then :
14592 $as_echo_n "(cached) " >&6
14593 else
14594
14595 ax_cv_gcc_version="`$CC -dumpversion`"
14596 if test "x$ax_cv_gcc_version" = "x"; then :
14597
14598 ax_cv_gcc_version=""
14599
14600 fi
14601
14602 fi
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
14604 $as_echo "$ax_cv_gcc_version" >&6; }
14605 GCC_VERSION=$ax_cv_gcc_version
14606
14607 fi
14608
14609 fi
14610
14611
14612
14613 cat >>confdefs.h <<_ACEOF
14614 #define MPC_GCC "$GCC"
14615 _ACEOF
14616
14617
14618 cat >>confdefs.h <<_ACEOF
14619 #define MPC_CC "$CC"
14620 _ACEOF
14621
14622
14623 cat >>confdefs.h <<_ACEOF
14624 #define MPC_GCC_VERSION "$GCC_VERSION"
14625 _ACEOF
14626
14627
14628 # Looks for short git hash if the version string contains "dev"
14629
14630 if echo $VERSION | grep -c dev >/dev/null 2>&1 ; then
14631 # Extract the first word of "git", so it can be a program name with args.
14632 set dummy git; ac_word=$2
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14634 $as_echo_n "checking for $ac_word... " >&6; }
14635 if ${ac_cv_prog_HASGIT+:} false; then :
14636 $as_echo_n "(cached) " >&6
14637 else
14638 if test -n "$HASGIT"; then
14639 ac_cv_prog_HASGIT="$HASGIT" # Let the user override the test.
14640 else
14641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14642 for as_dir in $PATH
14643 do
14644 IFS=$as_save_IFS
14645 test -z "$as_dir" && as_dir=.
14646 for ac_exec_ext in '' $ac_executable_extensions; do
14647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14648 ac_cv_prog_HASGIT="yes"
14649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14650 break 2
14651 fi
14652 done
14653 done
14654 IFS=$as_save_IFS
14655
14656 test -z "$ac_cv_prog_HASGIT" && ac_cv_prog_HASGIT="no"
14657 fi
14658 fi
14659 HASGIT=$ac_cv_prog_HASGIT
14660 if test -n "$HASGIT"; then
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HASGIT" >&5
14662 $as_echo "$HASGIT" >&6; }
14663 else
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14665 $as_echo "no" >&6; }
14666 fi
14667
14668
14669 if test "x$HASGIT" = "xyes"; then :
14670
14671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for current git version" >&5
14672 $as_echo_n "checking for current git version... " >&6; }
14673 GITVERSION=dd39695
14674
14675
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GITVERSION" >&5
14677 $as_echo "$GITVERSION" >&6; }
14678
14679 fi
14680 fi
14681
14682
14683 ac_config_files="$ac_config_files Makefile src/Makefile tests/Makefile doc/Makefile tools/Makefile tools/bench/Makefile"
14684
14685 cat >confcache <<\_ACEOF
14686 # This file is a shell script that caches the results of configure
14687 # tests run on this system so they can be shared between configure
14688 # scripts and configure runs, see configure's option --config-cache.
14689 # It is not useful on other systems. If it contains results you don't
14690 # want to keep, you may remove or edit it.
14691 #
14692 # config.status only pays attention to the cache file if you give it
14693 # the --recheck option to rerun configure.
14694 #
14695 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14696 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14697 # following values.
14698
14699 _ACEOF
14700
14701 # The following way of writing the cache mishandles newlines in values,
14702 # but we know of no workaround that is simple, portable, and efficient.
14703 # So, we kill variables containing newlines.
14704 # Ultrix sh set writes to stderr and can't be redirected directly,
14705 # and sets the high bit in the cache file unless we assign to the vars.
14706 (
14707 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14708 eval ac_val=\$$ac_var
14709 case $ac_val in #(
14710 *${as_nl}*)
14711 case $ac_var in #(
14712 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14713 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14714 esac
14715 case $ac_var in #(
14716 _ | IFS | as_nl) ;; #(
14717 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14718 *) { eval $ac_var=; unset $ac_var;} ;;
14719 esac ;;
14720 esac
14721 done
14722
14723 (set) 2>&1 |
14724 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14725 *${as_nl}ac_space=\ *)
14726 # `set' does not quote correctly, so add quotes: double-quote
14727 # substitution turns \\\\ into \\, and sed turns \\ into \.
14728 sed -n \
14729 "s/'/'\\\\''/g;
14730 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14731 ;; #(
14732 *)
14733 # `set' quotes correctly as required by POSIX, so do not add quotes.
14734 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14735 ;;
14736 esac |
14737 sort
14738 ) |
14739 sed '
14740 /^ac_cv_env_/b end
14741 t clear
14742 :clear
14743 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14744 t end
14745 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14746 :end' >>confcache
14747 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14748 if test -w "$cache_file"; then
14749 if test "x$cache_file" != "x/dev/null"; then
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14751 $as_echo "$as_me: updating cache $cache_file" >&6;}
14752 if test ! -f "$cache_file" || test -h "$cache_file"; then
14753 cat confcache >"$cache_file"
14754 else
14755 case $cache_file in #(
14756 */* | ?:*)
14757 mv -f confcache "$cache_file"$$ &&
14758 mv -f "$cache_file"$$ "$cache_file" ;; #(
14759 *)
14760 mv -f confcache "$cache_file" ;;
14761 esac
14762 fi
14763 fi
14764 else
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14766 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14767 fi
14768 fi
14769 rm -f confcache
14770
14771 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14772 # Let make expand exec_prefix.
14773 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14774
14775 DEFS=-DHAVE_CONFIG_H
14776
14777 ac_libobjs=
14778 ac_ltlibobjs=
14779 U=
14780 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14781 # 1. Remove the extension, and $U if already installed.
14782 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14783 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14784 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14785 # will be set to the directory where LIBOBJS objects are built.
14786 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14787 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14788 done
14789 LIBOBJS=$ac_libobjs
14790
14791 LTLIBOBJS=$ac_ltlibobjs
14792
14793
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14795 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14796 if test -n "$am_sleep_pid"; then
14797 # Hide warnings about reused PIDs.
14798 wait $am_sleep_pid 2>/dev/null
14799 fi
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14801 $as_echo "done" >&6; }
14802 if test -n "$EXEEXT"; then
14803 am__EXEEXT_TRUE=
14804 am__EXEEXT_FALSE='#'
14805 else
14806 am__EXEEXT_TRUE='#'
14807 am__EXEEXT_FALSE=
14808 fi
14809
14810 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14811 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14812 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14813 fi
14814 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14815 as_fn_error $? "conditional \"AMDEP\" was never defined.
14816 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14817 fi
14818 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14819 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14820 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14821 fi
14822
14823 : "${CONFIG_STATUS=./config.status}"
14824 ac_write_fail=0
14825 ac_clean_files_save=$ac_clean_files
14826 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14827 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14828 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14829 as_write_fail=0
14830 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14831 #! $SHELL
14832 # Generated by $as_me.
14833 # Run this file to recreate the current configuration.
14834 # Compiler output produced by configure, useful for debugging
14835 # configure, is in config.log if it exists.
14836
14837 debug=false
14838 ac_cs_recheck=false
14839 ac_cs_silent=false
14840
14841 SHELL=\${CONFIG_SHELL-$SHELL}
14842 export SHELL
14843 _ASEOF
14844 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14845 ## -------------------- ##
14846 ## M4sh Initialization. ##
14847 ## -------------------- ##
14848
14849 # Be more Bourne compatible
14850 DUALCASE=1; export DUALCASE # for MKS sh
14851 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14852 emulate sh
14853 NULLCMD=:
14854 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14855 # is contrary to our usage. Disable this feature.
14856 alias -g '${1+"$@"}'='"$@"'
14857 setopt NO_GLOB_SUBST
14858 else
14859 case `(set -o) 2>/dev/null` in #(
14860 *posix*) :
14861 set -o posix ;; #(
14862 *) :
14863 ;;
14864 esac
14865 fi
14866
14867
14868 as_nl='
14869 '
14870 export as_nl
14871 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14872 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14873 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14874 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14875 # Prefer a ksh shell builtin over an external printf program on Solaris,
14876 # but without wasting forks for bash or zsh.
14877 if test -z "$BASH_VERSION$ZSH_VERSION" \
14878 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14879 as_echo='print -r --'
14880 as_echo_n='print -rn --'
14881 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14882 as_echo='printf %s\n'
14883 as_echo_n='printf %s'
14884 else
14885 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14886 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14887 as_echo_n='/usr/ucb/echo -n'
14888 else
14889 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14890 as_echo_n_body='eval
14891 arg=$1;
14892 case $arg in #(
14893 *"$as_nl"*)
14894 expr "X$arg" : "X\\(.*\\)$as_nl";
14895 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14896 esac;
14897 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14898 '
14899 export as_echo_n_body
14900 as_echo_n='sh -c $as_echo_n_body as_echo'
14901 fi
14902 export as_echo_body
14903 as_echo='sh -c $as_echo_body as_echo'
14904 fi
14905
14906 # The user is always right.
14907 if test "${PATH_SEPARATOR+set}" != set; then
14908 PATH_SEPARATOR=:
14909 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14910 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14911 PATH_SEPARATOR=';'
14912 }
14913 fi
14914
14915
14916 # IFS
14917 # We need space, tab and new line, in precisely that order. Quoting is
14918 # there to prevent editors from complaining about space-tab.
14919 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14920 # splitting by setting IFS to empty value.)
14921 IFS=" "" $as_nl"
14922
14923 # Find who we are. Look in the path if we contain no directory separator.
14924 as_myself=
14925 case $0 in #((
14926 *[\\/]* ) as_myself=$0 ;;
14927 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14928 for as_dir in $PATH
14929 do
14930 IFS=$as_save_IFS
14931 test -z "$as_dir" && as_dir=.
14932 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14933 done
14934 IFS=$as_save_IFS
14935
14936 ;;
14937 esac
14938 # We did not find ourselves, most probably we were run as `sh COMMAND'
14939 # in which case we are not to be found in the path.
14940 if test "x$as_myself" = x; then
14941 as_myself=$0
14942 fi
14943 if test ! -f "$as_myself"; then
14944 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14945 exit 1
14946 fi
14947
14948 # Unset variables that we do not need and which cause bugs (e.g. in
14949 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14950 # suppresses any "Segmentation fault" message there. '((' could
14951 # trigger a bug in pdksh 5.2.14.
14952 for as_var in BASH_ENV ENV MAIL MAILPATH
14953 do eval test x\${$as_var+set} = xset \
14954 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14955 done
14956 PS1='$ '
14957 PS2='> '
14958 PS4='+ '
14959
14960 # NLS nuisances.
14961 LC_ALL=C
14962 export LC_ALL
14963 LANGUAGE=C
14964 export LANGUAGE
14965
14966 # CDPATH.
14967 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14968
14969
14970 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14971 # ----------------------------------------
14972 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14973 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14974 # script with STATUS, using 1 if that was 0.
14975 as_fn_error ()
14976 {
14977 as_status=$1; test $as_status -eq 0 && as_status=1
14978 if test "$4"; then
14979 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14980 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14981 fi
14982 $as_echo "$as_me: error: $2" >&2
14983 as_fn_exit $as_status
14984 } # as_fn_error
14985
14986
14987 # as_fn_set_status STATUS
14988 # -----------------------
14989 # Set $? to STATUS, without forking.
14990 as_fn_set_status ()
14991 {
14992 return $1
14993 } # as_fn_set_status
14994
14995 # as_fn_exit STATUS
14996 # -----------------
14997 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14998 as_fn_exit ()
14999 {
15000 set +e
15001 as_fn_set_status $1
15002 exit $1
15003 } # as_fn_exit
15004
15005 # as_fn_unset VAR
15006 # ---------------
15007 # Portably unset VAR.
15008 as_fn_unset ()
15009 {
15010 { eval $1=; unset $1;}
15011 }
15012 as_unset=as_fn_unset
15013 # as_fn_append VAR VALUE
15014 # ----------------------
15015 # Append the text in VALUE to the end of the definition contained in VAR. Take
15016 # advantage of any shell optimizations that allow amortized linear growth over
15017 # repeated appends, instead of the typical quadratic growth present in naive
15018 # implementations.
15019 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15020 eval 'as_fn_append ()
15021 {
15022 eval $1+=\$2
15023 }'
15024 else
15025 as_fn_append ()
15026 {
15027 eval $1=\$$1\$2
15028 }
15029 fi # as_fn_append
15030
15031 # as_fn_arith ARG...
15032 # ------------------
15033 # Perform arithmetic evaluation on the ARGs, and store the result in the
15034 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15035 # must be portable across $(()) and expr.
15036 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15037 eval 'as_fn_arith ()
15038 {
15039 as_val=$(( $* ))
15040 }'
15041 else
15042 as_fn_arith ()
15043 {
15044 as_val=`expr "$@" || test $? -eq 1`
15045 }
15046 fi # as_fn_arith
15047
15048
15049 if expr a : '\(a\)' >/dev/null 2>&1 &&
15050 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15051 as_expr=expr
15052 else
15053 as_expr=false
15054 fi
15055
15056 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15057 as_basename=basename
15058 else
15059 as_basename=false
15060 fi
15061
15062 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15063 as_dirname=dirname
15064 else
15065 as_dirname=false
15066 fi
15067
15068 as_me=`$as_basename -- "$0" ||
15069 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15070 X"$0" : 'X\(//\)$' \| \
15071 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15072 $as_echo X/"$0" |
15073 sed '/^.*\/\([^/][^/]*\)\/*$/{
15074 s//\1/
15075 q
15076 }
15077 /^X\/\(\/\/\)$/{
15078 s//\1/
15079 q
15080 }
15081 /^X\/\(\/\).*/{
15082 s//\1/
15083 q
15084 }
15085 s/.*/./; q'`
15086
15087 # Avoid depending upon Character Ranges.
15088 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15089 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15090 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15091 as_cr_digits='0123456789'
15092 as_cr_alnum=$as_cr_Letters$as_cr_digits
15093
15094 ECHO_C= ECHO_N= ECHO_T=
15095 case `echo -n x` in #(((((
15096 -n*)
15097 case `echo 'xy\c'` in
15098 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15099 xy) ECHO_C='\c';;
15100 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15101 ECHO_T=' ';;
15102 esac;;
15103 *)
15104 ECHO_N='-n';;
15105 esac
15106
15107 rm -f conf$$ conf$$.exe conf$$.file
15108 if test -d conf$$.dir; then
15109 rm -f conf$$.dir/conf$$.file
15110 else
15111 rm -f conf$$.dir
15112 mkdir conf$$.dir 2>/dev/null
15113 fi
15114 if (echo >conf$$.file) 2>/dev/null; then
15115 if ln -s conf$$.file conf$$ 2>/dev/null; then
15116 as_ln_s='ln -s'
15117 # ... but there are two gotchas:
15118 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15119 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15120 # In both cases, we have to default to `cp -pR'.
15121 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15122 as_ln_s='cp -pR'
15123 elif ln conf$$.file conf$$ 2>/dev/null; then
15124 as_ln_s=ln
15125 else
15126 as_ln_s='cp -pR'
15127 fi
15128 else
15129 as_ln_s='cp -pR'
15130 fi
15131 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15132 rmdir conf$$.dir 2>/dev/null
15133
15134
15135 # as_fn_mkdir_p
15136 # -------------
15137 # Create "$as_dir" as a directory, including parents if necessary.
15138 as_fn_mkdir_p ()
15139 {
15140
15141 case $as_dir in #(
15142 -*) as_dir=./$as_dir;;
15143 esac
15144 test -d "$as_dir" || eval $as_mkdir_p || {
15145 as_dirs=
15146 while :; do
15147 case $as_dir in #(
15148 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15149 *) as_qdir=$as_dir;;
15150 esac
15151 as_dirs="'$as_qdir' $as_dirs"
15152 as_dir=`$as_dirname -- "$as_dir" ||
15153 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15154 X"$as_dir" : 'X\(//\)[^/]' \| \
15155 X"$as_dir" : 'X\(//\)$' \| \
15156 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15157 $as_echo X"$as_dir" |
15158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15159 s//\1/
15160 q
15161 }
15162 /^X\(\/\/\)[^/].*/{
15163 s//\1/
15164 q
15165 }
15166 /^X\(\/\/\)$/{
15167 s//\1/
15168 q
15169 }
15170 /^X\(\/\).*/{
15171 s//\1/
15172 q
15173 }
15174 s/.*/./; q'`
15175 test -d "$as_dir" && break
15176 done
15177 test -z "$as_dirs" || eval "mkdir $as_dirs"
15178 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15179
15180
15181 } # as_fn_mkdir_p
15182 if mkdir -p . 2>/dev/null; then
15183 as_mkdir_p='mkdir -p "$as_dir"'
15184 else
15185 test -d ./-p && rmdir ./-p
15186 as_mkdir_p=false
15187 fi
15188
15189
15190 # as_fn_executable_p FILE
15191 # -----------------------
15192 # Test if FILE is an executable regular file.
15193 as_fn_executable_p ()
15194 {
15195 test -f "$1" && test -x "$1"
15196 } # as_fn_executable_p
15197 as_test_x='test -x'
15198 as_executable_p=as_fn_executable_p
15199
15200 # Sed expression to map a string onto a valid CPP name.
15201 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15202
15203 # Sed expression to map a string onto a valid variable name.
15204 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15205
15206
15207 exec 6>&1
15208 ## ----------------------------------- ##
15209 ## Main body of $CONFIG_STATUS script. ##
15210 ## ----------------------------------- ##
15211 _ASEOF
15212 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15213
15214 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15215 # Save the log message, to keep $0 and so on meaningful, and to
15216 # report actual input values of CONFIG_FILES etc. instead of their
15217 # values after options handling.
15218 ac_log="
15219 This file was extended by mpc $as_me 1.1.0, which was
15220 generated by GNU Autoconf 2.69. Invocation command line was
15221
15222 CONFIG_FILES = $CONFIG_FILES
15223 CONFIG_HEADERS = $CONFIG_HEADERS
15224 CONFIG_LINKS = $CONFIG_LINKS
15225 CONFIG_COMMANDS = $CONFIG_COMMANDS
15226 $ $0 $@
15227
15228 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15229 "
15230
15231 _ACEOF
15232
15233 case $ac_config_files in *"
15234 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15235 esac
15236
15237 case $ac_config_headers in *"
15238 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15239 esac
15240
15241
15242 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15243 # Files that config.status was made for.
15244 config_files="$ac_config_files"
15245 config_headers="$ac_config_headers"
15246 config_commands="$ac_config_commands"
15247
15248 _ACEOF
15249
15250 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15251 ac_cs_usage="\
15252 \`$as_me' instantiates files and other configuration actions
15253 from templates according to the current configuration. Unless the files
15254 and actions are specified as TAGs, all are instantiated by default.
15255
15256 Usage: $0 [OPTION]... [TAG]...
15257
15258 -h, --help print this help, then exit
15259 -V, --version print version number and configuration settings, then exit
15260 --config print configuration, then exit
15261 -q, --quiet, --silent
15262 do not print progress messages
15263 -d, --debug don't remove temporary files
15264 --recheck update $as_me by reconfiguring in the same conditions
15265 --file=FILE[:TEMPLATE]
15266 instantiate the configuration file FILE
15267 --header=FILE[:TEMPLATE]
15268 instantiate the configuration header FILE
15269
15270 Configuration files:
15271 $config_files
15272
15273 Configuration headers:
15274 $config_headers
15275
15276 Configuration commands:
15277 $config_commands
15278
15279 Report bugs to <mpc-discuss@lists.gforge.inria.fr>."
15280
15281 _ACEOF
15282 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15283 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15284 ac_cs_version="\\
15285 mpc config.status 1.1.0
15286 configured by $0, generated by GNU Autoconf 2.69,
15287 with options \\"\$ac_cs_config\\"
15288
15289 Copyright (C) 2012 Free Software Foundation, Inc.
15290 This config.status script is free software; the Free Software Foundation
15291 gives unlimited permission to copy, distribute and modify it."
15292
15293 ac_pwd='$ac_pwd'
15294 srcdir='$srcdir'
15295 INSTALL='$INSTALL'
15296 MKDIR_P='$MKDIR_P'
15297 AWK='$AWK'
15298 test -n "\$AWK" || AWK=awk
15299 _ACEOF
15300
15301 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15302 # The default lists apply if the user does not specify any file.
15303 ac_need_defaults=:
15304 while test $# != 0
15305 do
15306 case $1 in
15307 --*=?*)
15308 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15309 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15310 ac_shift=:
15311 ;;
15312 --*=)
15313 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15314 ac_optarg=
15315 ac_shift=:
15316 ;;
15317 *)
15318 ac_option=$1
15319 ac_optarg=$2
15320 ac_shift=shift
15321 ;;
15322 esac
15323
15324 case $ac_option in
15325 # Handling of the options.
15326 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15327 ac_cs_recheck=: ;;
15328 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15329 $as_echo "$ac_cs_version"; exit ;;
15330 --config | --confi | --conf | --con | --co | --c )
15331 $as_echo "$ac_cs_config"; exit ;;
15332 --debug | --debu | --deb | --de | --d | -d )
15333 debug=: ;;
15334 --file | --fil | --fi | --f )
15335 $ac_shift
15336 case $ac_optarg in
15337 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15338 '') as_fn_error $? "missing file argument" ;;
15339 esac
15340 as_fn_append CONFIG_FILES " '$ac_optarg'"
15341 ac_need_defaults=false;;
15342 --header | --heade | --head | --hea )
15343 $ac_shift
15344 case $ac_optarg in
15345 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15346 esac
15347 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15348 ac_need_defaults=false;;
15349 --he | --h)
15350 # Conflict between --help and --header
15351 as_fn_error $? "ambiguous option: \`$1'
15352 Try \`$0 --help' for more information.";;
15353 --help | --hel | -h )
15354 $as_echo "$ac_cs_usage"; exit ;;
15355 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15356 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15357 ac_cs_silent=: ;;
15358
15359 # This is an error.
15360 -*) as_fn_error $? "unrecognized option: \`$1'
15361 Try \`$0 --help' for more information." ;;
15362
15363 *) as_fn_append ac_config_targets " $1"
15364 ac_need_defaults=false ;;
15365
15366 esac
15367 shift
15368 done
15369
15370 ac_configure_extra_args=
15371
15372 if $ac_cs_silent; then
15373 exec 6>/dev/null
15374 ac_configure_extra_args="$ac_configure_extra_args --silent"
15375 fi
15376
15377 _ACEOF
15378 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15379 if \$ac_cs_recheck; then
15380 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15381 shift
15382 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15383 CONFIG_SHELL='$SHELL'
15384 export CONFIG_SHELL
15385 exec "\$@"
15386 fi
15387
15388 _ACEOF
15389 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15390 exec 5>>config.log
15391 {
15392 echo
15393 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15394 ## Running $as_me. ##
15395 _ASBOX
15396 $as_echo "$ac_log"
15397 } >&5
15398
15399 _ACEOF
15400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15401 #
15402 # INIT-COMMANDS
15403 #
15404 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15405
15406
15407 # The HP-UX ksh and POSIX shell print the target directory to stdout
15408 # if CDPATH is set.
15409 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15410
15411 sed_quote_subst='$sed_quote_subst'
15412 double_quote_subst='$double_quote_subst'
15413 delay_variable_subst='$delay_variable_subst'
15414 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15415 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15416 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15417 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15418 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15419 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15420 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
15421 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15422 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15423 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15424 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15425 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15426 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15427 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15428 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15429 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15430 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15431 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15432 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15433 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15434 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15435 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15436 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15437 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15438 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15439 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15440 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15441 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15442 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15443 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15444 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15445 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15446 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15447 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15448 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15449 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15450 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15451 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15452 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15453 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15454 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15455 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15456 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15457 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15458 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15459 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15460 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15461 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15462 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15463 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15464 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15465 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15466 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15467 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15468 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15469 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15470 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
15471 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15472 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"`'
15473 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
15474 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15475 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15476 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
15477 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15478 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15479 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15480 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15481 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15482 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15483 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15484 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15485 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15486 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15487 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15488 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15489 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15490 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15491 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15492 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15493 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15494 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15495 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15496 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15497 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15498 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15499 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15500 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15501 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15502 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15503 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15504 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15505 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15506 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15507 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15508 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15509 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15510 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15511 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15512 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15513 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15514 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15515 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15516 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15517 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15518 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15519 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15520 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15521 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15522 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15523 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15524 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15525 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15526 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15527 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15528 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15529 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15530 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15531 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15532 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15533 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15534 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15535 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15536 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15537 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15538 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15539 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15540 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15541 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15542 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
15543 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15544 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15545 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15546 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15547 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15548 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15549 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
15550
15551 LTCC='$LTCC'
15552 LTCFLAGS='$LTCFLAGS'
15553 compiler='$compiler_DEFAULT'
15554
15555 # A function that is used when there is no print builtin or printf.
15556 func_fallback_echo ()
15557 {
15558 eval 'cat <<_LTECHO_EOF
15559 \$1
15560 _LTECHO_EOF'
15561 }
15562
15563 # Quote evaled strings.
15564 for var in SHELL \
15565 ECHO \
15566 PATH_SEPARATOR \
15567 SED \
15568 GREP \
15569 EGREP \
15570 FGREP \
15571 LD \
15572 NM \
15573 LN_S \
15574 lt_SP2NL \
15575 lt_NL2SP \
15576 reload_flag \
15577 OBJDUMP \
15578 deplibs_check_method \
15579 file_magic_cmd \
15580 file_magic_glob \
15581 want_nocaseglob \
15582 DLLTOOL \
15583 sharedlib_from_linklib_cmd \
15584 AR \
15585 AR_FLAGS \
15586 archiver_list_spec \
15587 STRIP \
15588 RANLIB \
15589 CC \
15590 CFLAGS \
15591 compiler \
15592 lt_cv_sys_global_symbol_pipe \
15593 lt_cv_sys_global_symbol_to_cdecl \
15594 lt_cv_sys_global_symbol_to_import \
15595 lt_cv_sys_global_symbol_to_c_name_address \
15596 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15597 lt_cv_nm_interface \
15598 nm_file_list_spec \
15599 lt_cv_truncate_bin \
15600 lt_prog_compiler_no_builtin_flag \
15601 lt_prog_compiler_pic \
15602 lt_prog_compiler_wl \
15603 lt_prog_compiler_static \
15604 lt_cv_prog_compiler_c_o \
15605 need_locks \
15606 MANIFEST_TOOL \
15607 DSYMUTIL \
15608 NMEDIT \
15609 LIPO \
15610 OTOOL \
15611 OTOOL64 \
15612 shrext_cmds \
15613 export_dynamic_flag_spec \
15614 whole_archive_flag_spec \
15615 compiler_needs_object \
15616 with_gnu_ld \
15617 allow_undefined_flag \
15618 no_undefined_flag \
15619 hardcode_libdir_flag_spec \
15620 hardcode_libdir_separator \
15621 exclude_expsyms \
15622 include_expsyms \
15623 file_list_spec \
15624 variables_saved_for_relink \
15625 libname_spec \
15626 library_names_spec \
15627 soname_spec \
15628 install_override_mode \
15629 finish_eval \
15630 old_striplib \
15631 striplib \
15632 AS; do
15633 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15634 *[\\\\\\\`\\"\\\$]*)
15635 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15636 ;;
15637 *)
15638 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15639 ;;
15640 esac
15641 done
15642
15643 # Double-quote double-evaled strings.
15644 for var in reload_cmds \
15645 old_postinstall_cmds \
15646 old_postuninstall_cmds \
15647 old_archive_cmds \
15648 extract_expsyms_cmds \
15649 old_archive_from_new_cmds \
15650 old_archive_from_expsyms_cmds \
15651 archive_cmds \
15652 archive_expsym_cmds \
15653 module_cmds \
15654 module_expsym_cmds \
15655 export_symbols_cmds \
15656 prelink_cmds \
15657 postlink_cmds \
15658 postinstall_cmds \
15659 postuninstall_cmds \
15660 finish_cmds \
15661 sys_lib_search_path_spec \
15662 configure_time_dlsearch_path \
15663 configure_time_lt_sys_library_path; do
15664 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15665 *[\\\\\\\`\\"\\\$]*)
15666 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15667 ;;
15668 *)
15669 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15670 ;;
15671 esac
15672 done
15673
15674 ac_aux_dir='$ac_aux_dir'
15675
15676 # See if we are running on zsh, and set the options that allow our
15677 # commands through without removal of \ escapes INIT.
15678 if test -n "\${ZSH_VERSION+set}"; then
15679 setopt NO_GLOB_SUBST
15680 fi
15681
15682
15683 PACKAGE='$PACKAGE'
15684 VERSION='$VERSION'
15685 RM='$RM'
15686 ofile='$ofile'
15687
15688
15689
15690
15691 _ACEOF
15692
15693 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15694
15695 # Handling of arguments.
15696 for ac_config_target in $ac_config_targets
15697 do
15698 case $ac_config_target in
15699 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15700 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15701 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15702 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15703 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15704 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
15705 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15706 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
15707 "tools/bench/Makefile") CONFIG_FILES="$CONFIG_FILES tools/bench/Makefile" ;;
15708
15709 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15710 esac
15711 done
15712
15713
15714 # If the user did not use the arguments to specify the items to instantiate,
15715 # then the envvar interface is used. Set only those that are not.
15716 # We use the long form for the default assignment because of an extremely
15717 # bizarre bug on SunOS 4.1.3.
15718 if $ac_need_defaults; then
15719 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15720 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15721 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15722 fi
15723
15724 # Have a temporary directory for convenience. Make it in the build tree
15725 # simply because there is no reason against having it here, and in addition,
15726 # creating and moving files from /tmp can sometimes cause problems.
15727 # Hook for its removal unless debugging.
15728 # Note that there is a small window in which the directory will not be cleaned:
15729 # after its creation but before its name has been assigned to `$tmp'.
15730 $debug ||
15731 {
15732 tmp= ac_tmp=
15733 trap 'exit_status=$?
15734 : "${ac_tmp:=$tmp}"
15735 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15736 ' 0
15737 trap 'as_fn_exit 1' 1 2 13 15
15738 }
15739 # Create a (secure) tmp directory for tmp files.
15740
15741 {
15742 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15743 test -d "$tmp"
15744 } ||
15745 {
15746 tmp=./conf$$-$RANDOM
15747 (umask 077 && mkdir "$tmp")
15748 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15749 ac_tmp=$tmp
15750
15751 # Set up the scripts for CONFIG_FILES section.
15752 # No need to generate them if there are no CONFIG_FILES.
15753 # This happens for instance with `./config.status config.h'.
15754 if test -n "$CONFIG_FILES"; then
15755
15756
15757 ac_cr=`echo X | tr X '\015'`
15758 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15759 # But we know of no other shell where ac_cr would be empty at this
15760 # point, so we can use a bashism as a fallback.
15761 if test "x$ac_cr" = x; then
15762 eval ac_cr=\$\'\\r\'
15763 fi
15764 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15765 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15766 ac_cs_awk_cr='\\r'
15767 else
15768 ac_cs_awk_cr=$ac_cr
15769 fi
15770
15771 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15772 _ACEOF
15773
15774
15775 {
15776 echo "cat >conf$$subs.awk <<_ACEOF" &&
15777 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15778 echo "_ACEOF"
15779 } >conf$$subs.sh ||
15780 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15781 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15782 ac_delim='%!_!# '
15783 for ac_last_try in false false false false false :; do
15784 . ./conf$$subs.sh ||
15785 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15786
15787 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15788 if test $ac_delim_n = $ac_delim_num; then
15789 break
15790 elif $ac_last_try; then
15791 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15792 else
15793 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15794 fi
15795 done
15796 rm -f conf$$subs.sh
15797
15798 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15799 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15800 _ACEOF
15801 sed -n '
15802 h
15803 s/^/S["/; s/!.*/"]=/
15804 p
15805 g
15806 s/^[^!]*!//
15807 :repl
15808 t repl
15809 s/'"$ac_delim"'$//
15810 t delim
15811 :nl
15812 h
15813 s/\(.\{148\}\)..*/\1/
15814 t more1
15815 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15816 p
15817 n
15818 b repl
15819 :more1
15820 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15821 p
15822 g
15823 s/.\{148\}//
15824 t nl
15825 :delim
15826 h
15827 s/\(.\{148\}\)..*/\1/
15828 t more2
15829 s/["\\]/\\&/g; s/^/"/; s/$/"/
15830 p
15831 b
15832 :more2
15833 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15834 p
15835 g
15836 s/.\{148\}//
15837 t delim
15838 ' <conf$$subs.awk | sed '
15839 /^[^""]/{
15840 N
15841 s/\n//
15842 }
15843 ' >>$CONFIG_STATUS || ac_write_fail=1
15844 rm -f conf$$subs.awk
15845 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15846 _ACAWK
15847 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15848 for (key in S) S_is_set[key] = 1
15849 FS = ""
15850
15851 }
15852 {
15853 line = $ 0
15854 nfields = split(line, field, "@")
15855 substed = 0
15856 len = length(field[1])
15857 for (i = 2; i < nfields; i++) {
15858 key = field[i]
15859 keylen = length(key)
15860 if (S_is_set[key]) {
15861 value = S[key]
15862 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15863 len += length(value) + length(field[++i])
15864 substed = 1
15865 } else
15866 len += 1 + keylen
15867 }
15868
15869 print line
15870 }
15871
15872 _ACAWK
15873 _ACEOF
15874 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15875 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15876 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15877 else
15878 cat
15879 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15880 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15881 _ACEOF
15882
15883 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15884 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15885 # trailing colons and then remove the whole line if VPATH becomes empty
15886 # (actually we leave an empty line to preserve line numbers).
15887 if test "x$srcdir" = x.; then
15888 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15889 h
15890 s///
15891 s/^/:/
15892 s/[ ]*$/:/
15893 s/:\$(srcdir):/:/g
15894 s/:\${srcdir}:/:/g
15895 s/:@srcdir@:/:/g
15896 s/^:*//
15897 s/:*$//
15898 x
15899 s/\(=[ ]*\).*/\1/
15900 G
15901 s/\n//
15902 s/^[^=]*=[ ]*$//
15903 }'
15904 fi
15905
15906 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15907 fi # test -n "$CONFIG_FILES"
15908
15909 # Set up the scripts for CONFIG_HEADERS section.
15910 # No need to generate them if there are no CONFIG_HEADERS.
15911 # This happens for instance with `./config.status Makefile'.
15912 if test -n "$CONFIG_HEADERS"; then
15913 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15914 BEGIN {
15915 _ACEOF
15916
15917 # Transform confdefs.h into an awk script `defines.awk', embedded as
15918 # here-document in config.status, that substitutes the proper values into
15919 # config.h.in to produce config.h.
15920
15921 # Create a delimiter string that does not exist in confdefs.h, to ease
15922 # handling of long lines.
15923 ac_delim='%!_!# '
15924 for ac_last_try in false false :; do
15925 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15926 if test -z "$ac_tt"; then
15927 break
15928 elif $ac_last_try; then
15929 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15930 else
15931 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15932 fi
15933 done
15934
15935 # For the awk script, D is an array of macro values keyed by name,
15936 # likewise P contains macro parameters if any. Preserve backslash
15937 # newline sequences.
15938
15939 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15940 sed -n '
15941 s/.\{148\}/&'"$ac_delim"'/g
15942 t rset
15943 :rset
15944 s/^[ ]*#[ ]*define[ ][ ]*/ /
15945 t def
15946 d
15947 :def
15948 s/\\$//
15949 t bsnl
15950 s/["\\]/\\&/g
15951 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15952 D["\1"]=" \3"/p
15953 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15954 d
15955 :bsnl
15956 s/["\\]/\\&/g
15957 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15958 D["\1"]=" \3\\\\\\n"\\/p
15959 t cont
15960 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15961 t cont
15962 d
15963 :cont
15964 n
15965 s/.\{148\}/&'"$ac_delim"'/g
15966 t clear
15967 :clear
15968 s/\\$//
15969 t bsnlc
15970 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15971 d
15972 :bsnlc
15973 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15974 b cont
15975 ' <confdefs.h | sed '
15976 s/'"$ac_delim"'/"\\\
15977 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15978
15979 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15980 for (key in D) D_is_set[key] = 1
15981 FS = ""
15982 }
15983 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15984 line = \$ 0
15985 split(line, arg, " ")
15986 if (arg[1] == "#") {
15987 defundef = arg[2]
15988 mac1 = arg[3]
15989 } else {
15990 defundef = substr(arg[1], 2)
15991 mac1 = arg[2]
15992 }
15993 split(mac1, mac2, "(") #)
15994 macro = mac2[1]
15995 prefix = substr(line, 1, index(line, defundef) - 1)
15996 if (D_is_set[macro]) {
15997 # Preserve the white space surrounding the "#".
15998 print prefix "define", macro P[macro] D[macro]
15999 next
16000 } else {
16001 # Replace #undef with comments. This is necessary, for example,
16002 # in the case of _POSIX_SOURCE, which is predefined and required
16003 # on some systems where configure will not decide to define it.
16004 if (defundef == "undef") {
16005 print "/*", prefix defundef, macro, "*/"
16006 next
16007 }
16008 }
16009 }
16010 { print }
16011 _ACAWK
16012 _ACEOF
16013 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16014 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16015 fi # test -n "$CONFIG_HEADERS"
16016
16017
16018 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16019 shift
16020 for ac_tag
16021 do
16022 case $ac_tag in
16023 :[FHLC]) ac_mode=$ac_tag; continue;;
16024 esac
16025 case $ac_mode$ac_tag in
16026 :[FHL]*:*);;
16027 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16028 :[FH]-) ac_tag=-:-;;
16029 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16030 esac
16031 ac_save_IFS=$IFS
16032 IFS=:
16033 set x $ac_tag
16034 IFS=$ac_save_IFS
16035 shift
16036 ac_file=$1
16037 shift
16038
16039 case $ac_mode in
16040 :L) ac_source=$1;;
16041 :[FH])
16042 ac_file_inputs=
16043 for ac_f
16044 do
16045 case $ac_f in
16046 -) ac_f="$ac_tmp/stdin";;
16047 *) # Look for the file first in the build tree, then in the source tree
16048 # (if the path is not absolute). The absolute path cannot be DOS-style,
16049 # because $ac_f cannot contain `:'.
16050 test -f "$ac_f" ||
16051 case $ac_f in
16052 [\\/$]*) false;;
16053 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16054 esac ||
16055 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16056 esac
16057 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16058 as_fn_append ac_file_inputs " '$ac_f'"
16059 done
16060
16061 # Let's still pretend it is `configure' which instantiates (i.e., don't
16062 # use $as_me), people would be surprised to read:
16063 # /* config.h. Generated by config.status. */
16064 configure_input='Generated from '`
16065 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16066 `' by configure.'
16067 if test x"$ac_file" != x-; then
16068 configure_input="$ac_file. $configure_input"
16069 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16070 $as_echo "$as_me: creating $ac_file" >&6;}
16071 fi
16072 # Neutralize special characters interpreted by sed in replacement strings.
16073 case $configure_input in #(
16074 *\&* | *\|* | *\\* )
16075 ac_sed_conf_input=`$as_echo "$configure_input" |
16076 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16077 *) ac_sed_conf_input=$configure_input;;
16078 esac
16079
16080 case $ac_tag in
16081 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16082 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16083 esac
16084 ;;
16085 esac
16086
16087 ac_dir=`$as_dirname -- "$ac_file" ||
16088 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16089 X"$ac_file" : 'X\(//\)[^/]' \| \
16090 X"$ac_file" : 'X\(//\)$' \| \
16091 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16092 $as_echo X"$ac_file" |
16093 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16094 s//\1/
16095 q
16096 }
16097 /^X\(\/\/\)[^/].*/{
16098 s//\1/
16099 q
16100 }
16101 /^X\(\/\/\)$/{
16102 s//\1/
16103 q
16104 }
16105 /^X\(\/\).*/{
16106 s//\1/
16107 q
16108 }
16109 s/.*/./; q'`
16110 as_dir="$ac_dir"; as_fn_mkdir_p
16111 ac_builddir=.
16112
16113 case "$ac_dir" in
16114 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16115 *)
16116 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16117 # A ".." for each directory in $ac_dir_suffix.
16118 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16119 case $ac_top_builddir_sub in
16120 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16121 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16122 esac ;;
16123 esac
16124 ac_abs_top_builddir=$ac_pwd
16125 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16126 # for backward compatibility:
16127 ac_top_builddir=$ac_top_build_prefix
16128
16129 case $srcdir in
16130 .) # We are building in place.
16131 ac_srcdir=.
16132 ac_top_srcdir=$ac_top_builddir_sub
16133 ac_abs_top_srcdir=$ac_pwd ;;
16134 [\\/]* | ?:[\\/]* ) # Absolute name.
16135 ac_srcdir=$srcdir$ac_dir_suffix;
16136 ac_top_srcdir=$srcdir
16137 ac_abs_top_srcdir=$srcdir ;;
16138 *) # Relative name.
16139 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16140 ac_top_srcdir=$ac_top_build_prefix$srcdir
16141 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16142 esac
16143 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16144
16145
16146 case $ac_mode in
16147 :F)
16148 #
16149 # CONFIG_FILE
16150 #
16151
16152 case $INSTALL in
16153 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16154 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16155 esac
16156 ac_MKDIR_P=$MKDIR_P
16157 case $MKDIR_P in
16158 [\\/$]* | ?:[\\/]* ) ;;
16159 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16160 esac
16161 _ACEOF
16162
16163 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16164 # If the template does not know about datarootdir, expand it.
16165 # FIXME: This hack should be removed a few years after 2.60.
16166 ac_datarootdir_hack=; ac_datarootdir_seen=
16167 ac_sed_dataroot='
16168 /datarootdir/ {
16169 p
16170 q
16171 }
16172 /@datadir@/p
16173 /@docdir@/p
16174 /@infodir@/p
16175 /@localedir@/p
16176 /@mandir@/p'
16177 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16178 *datarootdir*) ac_datarootdir_seen=yes;;
16179 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16181 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16182 _ACEOF
16183 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16184 ac_datarootdir_hack='
16185 s&@datadir@&$datadir&g
16186 s&@docdir@&$docdir&g
16187 s&@infodir@&$infodir&g
16188 s&@localedir@&$localedir&g
16189 s&@mandir@&$mandir&g
16190 s&\\\${datarootdir}&$datarootdir&g' ;;
16191 esac
16192 _ACEOF
16193
16194 # Neutralize VPATH when `$srcdir' = `.'.
16195 # Shell code in configure.ac might set extrasub.
16196 # FIXME: do we really want to maintain this feature?
16197 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16198 ac_sed_extra="$ac_vpsub
16199 $extrasub
16200 _ACEOF
16201 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16202 :t
16203 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16204 s|@configure_input@|$ac_sed_conf_input|;t t
16205 s&@top_builddir@&$ac_top_builddir_sub&;t t
16206 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16207 s&@srcdir@&$ac_srcdir&;t t
16208 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16209 s&@top_srcdir@&$ac_top_srcdir&;t t
16210 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16211 s&@builddir@&$ac_builddir&;t t
16212 s&@abs_builddir@&$ac_abs_builddir&;t t
16213 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16214 s&@INSTALL@&$ac_INSTALL&;t t
16215 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16216 $ac_datarootdir_hack
16217 "
16218 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16219 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16220
16221 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16222 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16223 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16224 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16226 which seems to be undefined. Please make sure it is defined" >&5
16227 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16228 which seems to be undefined. Please make sure it is defined" >&2;}
16229
16230 rm -f "$ac_tmp/stdin"
16231 case $ac_file in
16232 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16233 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16234 esac \
16235 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16236 ;;
16237 :H)
16238 #
16239 # CONFIG_HEADER
16240 #
16241 if test x"$ac_file" != x-; then
16242 {
16243 $as_echo "/* $configure_input */" \
16244 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16245 } >"$ac_tmp/config.h" \
16246 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16247 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16249 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16250 else
16251 rm -f "$ac_file"
16252 mv "$ac_tmp/config.h" "$ac_file" \
16253 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16254 fi
16255 else
16256 $as_echo "/* $configure_input */" \
16257 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16258 || as_fn_error $? "could not create -" "$LINENO" 5
16259 fi
16260 # Compute "$ac_file"'s index in $config_headers.
16261 _am_arg="$ac_file"
16262 _am_stamp_count=1
16263 for _am_header in $config_headers :; do
16264 case $_am_header in
16265 $_am_arg | $_am_arg:* )
16266 break ;;
16267 * )
16268 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16269 esac
16270 done
16271 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16272 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16273 X"$_am_arg" : 'X\(//\)[^/]' \| \
16274 X"$_am_arg" : 'X\(//\)$' \| \
16275 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16276 $as_echo X"$_am_arg" |
16277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16278 s//\1/
16279 q
16280 }
16281 /^X\(\/\/\)[^/].*/{
16282 s//\1/
16283 q
16284 }
16285 /^X\(\/\/\)$/{
16286 s//\1/
16287 q
16288 }
16289 /^X\(\/\).*/{
16290 s//\1/
16291 q
16292 }
16293 s/.*/./; q'`/stamp-h$_am_stamp_count
16294 ;;
16295
16296 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16297 $as_echo "$as_me: executing $ac_file commands" >&6;}
16298 ;;
16299 esac
16300
16301
16302 case $ac_file$ac_mode in
16303 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16304 # Older Autoconf quotes --file arguments for eval, but not when files
16305 # are listed without --file. Let's play safe and only enable the eval
16306 # if we detect the quoting.
16307 case $CONFIG_FILES in
16308 *\'*) eval set x "$CONFIG_FILES" ;;
16309 *) set x $CONFIG_FILES ;;
16310 esac
16311 shift
16312 for mf
16313 do
16314 # Strip MF so we end up with the name of the file.
16315 mf=`echo "$mf" | sed -e 's/:.*$//'`
16316 # Check whether this is an Automake generated Makefile or not.
16317 # We used to match only the files named 'Makefile.in', but
16318 # some people rename them; so instead we look at the file content.
16319 # Grep'ing the first line is not enough: some people post-process
16320 # each Makefile.in and add a new line on top of each file to say so.
16321 # Grep'ing the whole file is not good either: AIX grep has a line
16322 # limit of 2048, but all sed's we know have understand at least 4000.
16323 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16324 dirpart=`$as_dirname -- "$mf" ||
16325 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16326 X"$mf" : 'X\(//\)[^/]' \| \
16327 X"$mf" : 'X\(//\)$' \| \
16328 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16329 $as_echo X"$mf" |
16330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16331 s//\1/
16332 q
16333 }
16334 /^X\(\/\/\)[^/].*/{
16335 s//\1/
16336 q
16337 }
16338 /^X\(\/\/\)$/{
16339 s//\1/
16340 q
16341 }
16342 /^X\(\/\).*/{
16343 s//\1/
16344 q
16345 }
16346 s/.*/./; q'`
16347 else
16348 continue
16349 fi
16350 # Extract the definition of DEPDIR, am__include, and am__quote
16351 # from the Makefile without running 'make'.
16352 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16353 test -z "$DEPDIR" && continue
16354 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16355 test -z "$am__include" && continue
16356 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16357 # Find all dependency output files, they are included files with
16358 # $(DEPDIR) in their names. We invoke sed twice because it is the
16359 # simplest approach to changing $(DEPDIR) to its actual value in the
16360 # expansion.
16361 for file in `sed -n "
16362 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16363 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16364 # Make sure the directory exists.
16365 test -f "$dirpart/$file" && continue
16366 fdir=`$as_dirname -- "$file" ||
16367 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16368 X"$file" : 'X\(//\)[^/]' \| \
16369 X"$file" : 'X\(//\)$' \| \
16370 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16371 $as_echo X"$file" |
16372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16373 s//\1/
16374 q
16375 }
16376 /^X\(\/\/\)[^/].*/{
16377 s//\1/
16378 q
16379 }
16380 /^X\(\/\/\)$/{
16381 s//\1/
16382 q
16383 }
16384 /^X\(\/\).*/{
16385 s//\1/
16386 q
16387 }
16388 s/.*/./; q'`
16389 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16390 # echo "creating $dirpart/$file"
16391 echo '# dummy' > "$dirpart/$file"
16392 done
16393 done
16394 }
16395 ;;
16396 "libtool":C)
16397
16398 # See if we are running on zsh, and set the options that allow our
16399 # commands through without removal of \ escapes.
16400 if test -n "${ZSH_VERSION+set}"; then
16401 setopt NO_GLOB_SUBST
16402 fi
16403
16404 cfgfile=${ofile}T
16405 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16406 $RM "$cfgfile"
16407
16408 cat <<_LT_EOF >> "$cfgfile"
16409 #! $SHELL
16410 # Generated automatically by $as_me ($PACKAGE) $VERSION
16411 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16412 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16413
16414 # Provide generalized library-building support services.
16415 # Written by Gordon Matzigkeit, 1996
16416
16417 # Copyright (C) 2014 Free Software Foundation, Inc.
16418 # This is free software; see the source for copying conditions. There is NO
16419 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16420
16421 # GNU Libtool is free software; you can redistribute it and/or modify
16422 # it under the terms of the GNU General Public License as published by
16423 # the Free Software Foundation; either version 2 of of the License, or
16424 # (at your option) any later version.
16425 #
16426 # As a special exception to the GNU General Public License, if you
16427 # distribute this file as part of a program or library that is built
16428 # using GNU Libtool, you may include this file under the same
16429 # distribution terms that you use for the rest of that program.
16430 #
16431 # GNU Libtool is distributed in the hope that it will be useful, but
16432 # WITHOUT ANY WARRANTY; without even the implied warranty of
16433 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16434 # GNU General Public License for more details.
16435 #
16436 # You should have received a copy of the GNU General Public License
16437 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16438
16439
16440 # The names of the tagged configurations supported by this script.
16441 available_tags=''
16442
16443 # Configured defaults for sys_lib_dlsearch_path munging.
16444 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16445
16446 # ### BEGIN LIBTOOL CONFIG
16447
16448 # Which release of libtool.m4 was used?
16449 macro_version=$macro_version
16450 macro_revision=$macro_revision
16451
16452 # Whether or not to build shared libraries.
16453 build_libtool_libs=$enable_shared
16454
16455 # Whether or not to build static libraries.
16456 build_old_libs=$enable_static
16457
16458 # What type of objects to build.
16459 pic_mode=$pic_mode
16460
16461 # Whether or not to optimize for fast installation.
16462 fast_install=$enable_fast_install
16463
16464 # Shared archive member basename,for filename based shared library versioning on AIX.
16465 shared_archive_member_spec=$shared_archive_member_spec
16466
16467 # Shell to use when invoking shell scripts.
16468 SHELL=$lt_SHELL
16469
16470 # An echo program that protects backslashes.
16471 ECHO=$lt_ECHO
16472
16473 # The PATH separator for the build system.
16474 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16475
16476 # The host system.
16477 host_alias=$host_alias
16478 host=$host
16479 host_os=$host_os
16480
16481 # The build system.
16482 build_alias=$build_alias
16483 build=$build
16484 build_os=$build_os
16485
16486 # A sed program that does not truncate output.
16487 SED=$lt_SED
16488
16489 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16490 Xsed="\$SED -e 1s/^X//"
16491
16492 # A grep program that handles long lines.
16493 GREP=$lt_GREP
16494
16495 # An ERE matcher.
16496 EGREP=$lt_EGREP
16497
16498 # A literal string matcher.
16499 FGREP=$lt_FGREP
16500
16501 # A BSD- or MS-compatible name lister.
16502 NM=$lt_NM
16503
16504 # Whether we need soft or hard links.
16505 LN_S=$lt_LN_S
16506
16507 # What is the maximum length of a command?
16508 max_cmd_len=$max_cmd_len
16509
16510 # Object file suffix (normally "o").
16511 objext=$ac_objext
16512
16513 # Executable file suffix (normally "").
16514 exeext=$exeext
16515
16516 # whether the shell understands "unset".
16517 lt_unset=$lt_unset
16518
16519 # turn spaces into newlines.
16520 SP2NL=$lt_lt_SP2NL
16521
16522 # turn newlines into spaces.
16523 NL2SP=$lt_lt_NL2SP
16524
16525 # convert \$build file names to \$host format.
16526 to_host_file_cmd=$lt_cv_to_host_file_cmd
16527
16528 # convert \$build files to toolchain format.
16529 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16530
16531 # An object symbol dumper.
16532 OBJDUMP=$lt_OBJDUMP
16533
16534 # Method to check whether dependent libraries are shared objects.
16535 deplibs_check_method=$lt_deplibs_check_method
16536
16537 # Command to use when deplibs_check_method = "file_magic".
16538 file_magic_cmd=$lt_file_magic_cmd
16539
16540 # How to find potential files when deplibs_check_method = "file_magic".
16541 file_magic_glob=$lt_file_magic_glob
16542
16543 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16544 want_nocaseglob=$lt_want_nocaseglob
16545
16546 # DLL creation program.
16547 DLLTOOL=$lt_DLLTOOL
16548
16549 # Command to associate shared and link libraries.
16550 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16551
16552 # The archiver.
16553 AR=$lt_AR
16554
16555 # Flags to create an archive.
16556 AR_FLAGS=$lt_AR_FLAGS
16557
16558 # How to feed a file listing to the archiver.
16559 archiver_list_spec=$lt_archiver_list_spec
16560
16561 # A symbol stripping program.
16562 STRIP=$lt_STRIP
16563
16564 # Commands used to install an old-style archive.
16565 RANLIB=$lt_RANLIB
16566 old_postinstall_cmds=$lt_old_postinstall_cmds
16567 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16568
16569 # Whether to use a lock for old archive extraction.
16570 lock_old_archive_extraction=$lock_old_archive_extraction
16571
16572 # A C compiler.
16573 LTCC=$lt_CC
16574
16575 # LTCC compiler flags.
16576 LTCFLAGS=$lt_CFLAGS
16577
16578 # Take the output of nm and produce a listing of raw symbols and C names.
16579 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16580
16581 # Transform the output of nm in a proper C declaration.
16582 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16583
16584 # Transform the output of nm into a list of symbols to manually relocate.
16585 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16586
16587 # Transform the output of nm in a C name address pair.
16588 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16589
16590 # Transform the output of nm in a C name address pair when lib prefix is needed.
16591 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16592
16593 # The name lister interface.
16594 nm_interface=$lt_lt_cv_nm_interface
16595
16596 # Specify filename containing input files for \$NM.
16597 nm_file_list_spec=$lt_nm_file_list_spec
16598
16599 # The root where to search for dependent libraries,and where our libraries should be installed.
16600 lt_sysroot=$lt_sysroot
16601
16602 # Command to truncate a binary pipe.
16603 lt_truncate_bin=$lt_lt_cv_truncate_bin
16604
16605 # The name of the directory that contains temporary libtool files.
16606 objdir=$objdir
16607
16608 # Used to examine libraries when file_magic_cmd begins with "file".
16609 MAGIC_CMD=$MAGIC_CMD
16610
16611 # Must we lock files when doing compilation?
16612 need_locks=$lt_need_locks
16613
16614 # Manifest tool.
16615 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16616
16617 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16618 DSYMUTIL=$lt_DSYMUTIL
16619
16620 # Tool to change global to local symbols on Mac OS X.
16621 NMEDIT=$lt_NMEDIT
16622
16623 # Tool to manipulate fat objects and archives on Mac OS X.
16624 LIPO=$lt_LIPO
16625
16626 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16627 OTOOL=$lt_OTOOL
16628
16629 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16630 OTOOL64=$lt_OTOOL64
16631
16632 # Old archive suffix (normally "a").
16633 libext=$libext
16634
16635 # Shared library suffix (normally ".so").
16636 shrext_cmds=$lt_shrext_cmds
16637
16638 # The commands to extract the exported symbol list from a shared archive.
16639 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16640
16641 # Variables whose values should be saved in libtool wrapper scripts and
16642 # restored at link time.
16643 variables_saved_for_relink=$lt_variables_saved_for_relink
16644
16645 # Do we need the "lib" prefix for modules?
16646 need_lib_prefix=$need_lib_prefix
16647
16648 # Do we need a version for libraries?
16649 need_version=$need_version
16650
16651 # Library versioning type.
16652 version_type=$version_type
16653
16654 # Shared library runtime path variable.
16655 runpath_var=$runpath_var
16656
16657 # Shared library path variable.
16658 shlibpath_var=$shlibpath_var
16659
16660 # Is shlibpath searched before the hard-coded library search path?
16661 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16662
16663 # Format of library name prefix.
16664 libname_spec=$lt_libname_spec
16665
16666 # List of archive names. First name is the real one, the rest are links.
16667 # The last name is the one that the linker finds with -lNAME
16668 library_names_spec=$lt_library_names_spec
16669
16670 # The coded name of the library, if different from the real name.
16671 soname_spec=$lt_soname_spec
16672
16673 # Permission mode override for installation of shared libraries.
16674 install_override_mode=$lt_install_override_mode
16675
16676 # Command to use after installation of a shared archive.
16677 postinstall_cmds=$lt_postinstall_cmds
16678
16679 # Command to use after uninstallation of a shared archive.
16680 postuninstall_cmds=$lt_postuninstall_cmds
16681
16682 # Commands used to finish a libtool library installation in a directory.
16683 finish_cmds=$lt_finish_cmds
16684
16685 # As "finish_cmds", except a single script fragment to be evaled but
16686 # not shown.
16687 finish_eval=$lt_finish_eval
16688
16689 # Whether we should hardcode library paths into libraries.
16690 hardcode_into_libs=$hardcode_into_libs
16691
16692 # Compile-time system search path for libraries.
16693 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16694
16695 # Detected run-time system search path for libraries.
16696 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16697
16698 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16699 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16700
16701 # Whether dlopen is supported.
16702 dlopen_support=$enable_dlopen
16703
16704 # Whether dlopen of programs is supported.
16705 dlopen_self=$enable_dlopen_self
16706
16707 # Whether dlopen of statically linked programs is supported.
16708 dlopen_self_static=$enable_dlopen_self_static
16709
16710 # Commands to strip libraries.
16711 old_striplib=$lt_old_striplib
16712 striplib=$lt_striplib
16713
16714 # Assembler program.
16715 AS=$lt_AS
16716
16717
16718 # The linker used to build libraries.
16719 LD=$lt_LD
16720
16721 # How to create reloadable object files.
16722 reload_flag=$lt_reload_flag
16723 reload_cmds=$lt_reload_cmds
16724
16725 # Commands used to build an old-style archive.
16726 old_archive_cmds=$lt_old_archive_cmds
16727
16728 # A language specific compiler.
16729 CC=$lt_compiler
16730
16731 # Is the compiler the GNU compiler?
16732 with_gcc=$GCC
16733
16734 # Compiler flag to turn off builtin functions.
16735 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16736
16737 # Additional compiler flags for building library objects.
16738 pic_flag=$lt_lt_prog_compiler_pic
16739
16740 # How to pass a linker flag through the compiler.
16741 wl=$lt_lt_prog_compiler_wl
16742
16743 # Compiler flag to prevent dynamic linking.
16744 link_static_flag=$lt_lt_prog_compiler_static
16745
16746 # Does compiler simultaneously support -c and -o options?
16747 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16748
16749 # Whether or not to add -lc for building shared libraries.
16750 build_libtool_need_lc=$archive_cmds_need_lc
16751
16752 # Whether or not to disallow shared libs when runtime libs are static.
16753 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16754
16755 # Compiler flag to allow reflexive dlopens.
16756 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16757
16758 # Compiler flag to generate shared objects directly from archives.
16759 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16760
16761 # Whether the compiler copes with passing no objects directly.
16762 compiler_needs_object=$lt_compiler_needs_object
16763
16764 # Create an old-style archive from a shared archive.
16765 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16766
16767 # Create a temporary old-style archive to link instead of a shared archive.
16768 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16769
16770 # Commands used to build a shared archive.
16771 archive_cmds=$lt_archive_cmds
16772 archive_expsym_cmds=$lt_archive_expsym_cmds
16773
16774 # Commands used to build a loadable module if different from building
16775 # a shared archive.
16776 module_cmds=$lt_module_cmds
16777 module_expsym_cmds=$lt_module_expsym_cmds
16778
16779 # Whether we are building with GNU ld or not.
16780 with_gnu_ld=$lt_with_gnu_ld
16781
16782 # Flag that allows shared libraries with undefined symbols to be built.
16783 allow_undefined_flag=$lt_allow_undefined_flag
16784
16785 # Flag that enforces no undefined symbols.
16786 no_undefined_flag=$lt_no_undefined_flag
16787
16788 # Flag to hardcode \$libdir into a binary during linking.
16789 # This must work even if \$libdir does not exist
16790 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16791
16792 # Whether we need a single "-rpath" flag with a separated argument.
16793 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16794
16795 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16796 # DIR into the resulting binary.
16797 hardcode_direct=$hardcode_direct
16798
16799 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16800 # DIR into the resulting binary and the resulting library dependency is
16801 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
16802 # library is relocated.
16803 hardcode_direct_absolute=$hardcode_direct_absolute
16804
16805 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16806 # into the resulting binary.
16807 hardcode_minus_L=$hardcode_minus_L
16808
16809 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16810 # into the resulting binary.
16811 hardcode_shlibpath_var=$hardcode_shlibpath_var
16812
16813 # Set to "yes" if building a shared library automatically hardcodes DIR
16814 # into the library and all subsequent libraries and executables linked
16815 # against it.
16816 hardcode_automatic=$hardcode_automatic
16817
16818 # Set to yes if linker adds runtime paths of dependent libraries
16819 # to runtime path list.
16820 inherit_rpath=$inherit_rpath
16821
16822 # Whether libtool must link a program against all its dependency libraries.
16823 link_all_deplibs=$link_all_deplibs
16824
16825 # Set to "yes" if exported symbols are required.
16826 always_export_symbols=$always_export_symbols
16827
16828 # The commands to list exported symbols.
16829 export_symbols_cmds=$lt_export_symbols_cmds
16830
16831 # Symbols that should not be listed in the preloaded symbols.
16832 exclude_expsyms=$lt_exclude_expsyms
16833
16834 # Symbols that must always be exported.
16835 include_expsyms=$lt_include_expsyms
16836
16837 # Commands necessary for linking programs (against libraries) with templates.
16838 prelink_cmds=$lt_prelink_cmds
16839
16840 # Commands necessary for finishing linking programs.
16841 postlink_cmds=$lt_postlink_cmds
16842
16843 # Specify filename containing input files.
16844 file_list_spec=$lt_file_list_spec
16845
16846 # How to hardcode a shared library path into an executable.
16847 hardcode_action=$hardcode_action
16848
16849 # ### END LIBTOOL CONFIG
16850
16851 _LT_EOF
16852
16853 cat <<'_LT_EOF' >> "$cfgfile"
16854
16855 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16856
16857 # func_munge_path_list VARIABLE PATH
16858 # -----------------------------------
16859 # VARIABLE is name of variable containing _space_ separated list of
16860 # directories to be munged by the contents of PATH, which is string
16861 # having a format:
16862 # "DIR[:DIR]:"
16863 # string "DIR[ DIR]" will be prepended to VARIABLE
16864 # ":DIR[:DIR]"
16865 # string "DIR[ DIR]" will be appended to VARIABLE
16866 # "DIRP[:DIRP]::[DIRA:]DIRA"
16867 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16868 # "DIRA[ DIRA]" will be appended to VARIABLE
16869 # "DIR[:DIR]"
16870 # VARIABLE will be replaced by "DIR[ DIR]"
16871 func_munge_path_list ()
16872 {
16873 case x$2 in
16874 x)
16875 ;;
16876 *:)
16877 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16878 ;;
16879 x:*)
16880 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16881 ;;
16882 *::*)
16883 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16884 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16885 ;;
16886 *)
16887 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16888 ;;
16889 esac
16890 }
16891
16892
16893 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
16894 func_cc_basename ()
16895 {
16896 for cc_temp in $*""; do
16897 case $cc_temp in
16898 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16899 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16900 \-*) ;;
16901 *) break;;
16902 esac
16903 done
16904 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16905 }
16906
16907
16908 # ### END FUNCTIONS SHARED WITH CONFIGURE
16909
16910 _LT_EOF
16911
16912 case $host_os in
16913 aix3*)
16914 cat <<\_LT_EOF >> "$cfgfile"
16915 # AIX sometimes has problems with the GCC collect2 program. For some
16916 # reason, if we set the COLLECT_NAMES environment variable, the problems
16917 # vanish in a puff of smoke.
16918 if test set != "${COLLECT_NAMES+set}"; then
16919 COLLECT_NAMES=
16920 export COLLECT_NAMES
16921 fi
16922 _LT_EOF
16923 ;;
16924 esac
16925
16926
16927 ltmain=$ac_aux_dir/ltmain.sh
16928
16929
16930 # We use sed instead of cat because bash on DJGPP gets confused if
16931 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16932 # text mode, it properly converts lines to CR/LF. This bash problem
16933 # is reportedly fixed, but why not run on old versions too?
16934 sed '$q' "$ltmain" >> "$cfgfile" \
16935 || (rm -f "$cfgfile"; exit 1)
16936
16937 mv -f "$cfgfile" "$ofile" ||
16938 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16939 chmod +x "$ofile"
16940
16941 ;;
16942
16943 esac
16944 done # for ac_tag
16945
16946
16947 as_fn_exit 0
16948 _ACEOF
16949 ac_clean_files=$ac_clean_files_save
16950
16951 test $ac_write_fail = 0 ||
16952 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16953
16954
16955 # configure is writing to config.log, and then calls config.status.
16956 # config.status does its own redirection, appending to config.log.
16957 # Unfortunately, on DOS this fails, as config.log is still kept open
16958 # by configure, so config.status won't be able to write to it; its
16959 # output is simply discarded. So we exec the FD to /dev/null,
16960 # effectively closing config.log, so it can be properly (re)opened and
16961 # appended to by config.status. When coming back to configure, we
16962 # need to make the FD available again.
16963 if test "$no_create" != yes; then
16964 ac_cs_success=:
16965 ac_config_status_args=
16966 test "$silent" = yes &&
16967 ac_config_status_args="$ac_config_status_args --quiet"
16968 exec 5>/dev/null
16969 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16970 exec 5>>config.log
16971 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16972 # would make configure fail if this is the last instruction.
16973 $ac_cs_success || as_fn_exit 1
16974 fi
16975 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16977 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16978 fi
16979
16980