resetting manifest requested domain to floor
[platform/upstream/mpc.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for mpc 1.0.
4 #
5 # Report bugs to <mpc-discuss@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@gnu.org and
278 $0: mpc-discuss@lists.gforge.inria.fr about your system,
279 $0: including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='mpc'
592 PACKAGE_TARNAME='mpc'
593 PACKAGE_VERSION='1.0'
594 PACKAGE_STRING='mpc 1.0'
595 PACKAGE_BUGREPORT='mpc-discuss@lists.gforge.inria.fr'
596 PACKAGE_URL=''
597
598 ac_unique_file="src/mpc-impl.h"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 #  include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #  include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 SVNVERSION
639 HASSVNVERSION
640 GCC_VERSION
641 AS
642 MPC_LDFLAGS
643 MPC_LOG_H
644 LIBOBJS
645 CPP
646 OTOOL64
647 OTOOL
648 LIPO
649 NMEDIT
650 DSYMUTIL
651 MANIFEST_TOOL
652 RANLIB
653 DLLTOOL
654 OBJDUMP
655 LN_S
656 NM
657 ac_ct_DUMPBIN
658 DUMPBIN
659 LD
660 FGREP
661 LIBTOOL
662 SED
663 EGREP
664 GREP
665 VALGRIND
666 host_os
667 host_vendor
668 host_cpu
669 host
670 build_os
671 build_vendor
672 build_cpu
673 build
674 am__fastdepCC_FALSE
675 am__fastdepCC_TRUE
676 CCDEPMODE
677 am__nodep
678 AMDEPBACKSLASH
679 AMDEP_FALSE
680 AMDEP_TRUE
681 am__quote
682 am__include
683 DEPDIR
684 OBJEXT
685 EXEEXT
686 ac_ct_CC
687 CPPFLAGS
688 LDFLAGS
689 CFLAGS
690 CC
691 ac_ct_AR
692 AR
693 MAINT
694 MAINTAINER_MODE_FALSE
695 MAINTAINER_MODE_TRUE
696 am__untar
697 am__tar
698 AMTAR
699 am__leading_dot
700 SET_MAKE
701 AWK
702 mkdir_p
703 MKDIR_P
704 INSTALL_STRIP_PROGRAM
705 STRIP
706 install_sh
707 MAKEINFO
708 AUTOHEADER
709 AUTOMAKE
710 AUTOCONF
711 ACLOCAL
712 VERSION
713 PACKAGE
714 CYGPATH_W
715 am__isrc
716 INSTALL_DATA
717 INSTALL_SCRIPT
718 INSTALL_PROGRAM
719 target_alias
720 host_alias
721 build_alias
722 LIBS
723 ECHO_T
724 ECHO_N
725 ECHO_C
726 DEFS
727 mandir
728 localedir
729 libdir
730 psdir
731 pdfdir
732 dvidir
733 htmldir
734 infodir
735 docdir
736 oldincludedir
737 includedir
738 localstatedir
739 sharedstatedir
740 sysconfdir
741 datadir
742 datarootdir
743 libexecdir
744 sbindir
745 bindir
746 program_transform_name
747 prefix
748 exec_prefix
749 PACKAGE_URL
750 PACKAGE_BUGREPORT
751 PACKAGE_STRING
752 PACKAGE_VERSION
753 PACKAGE_TARNAME
754 PACKAGE_NAME
755 PATH_SEPARATOR
756 SHELL'
757 ac_subst_files=''
758 ac_user_opts='
759 enable_option_checking
760 enable_maintainer_mode
761 enable_dependency_tracking
762 with_mpfr_include
763 with_mpfr_lib
764 with_mpfr
765 with_gmp_include
766 with_gmp_lib
767 with_gmp
768 enable_logging
769 enable_valgrind_tests
770 enable_shared
771 enable_static
772 with_pic
773 enable_fast_install
774 with_gnu_ld
775 with_sysroot
776 enable_libtool_lock
777 '
778       ac_precious_vars='build_alias
779 host_alias
780 target_alias
781 CC
782 CFLAGS
783 LDFLAGS
784 LIBS
785 CPPFLAGS
786 CPP'
787
788
789 # Initialize some variables set by options.
790 ac_init_help=
791 ac_init_version=false
792 ac_unrecognized_opts=
793 ac_unrecognized_sep=
794 # The variables have the same names as the options, with
795 # dashes changed to underlines.
796 cache_file=/dev/null
797 exec_prefix=NONE
798 no_create=
799 no_recursion=
800 prefix=NONE
801 program_prefix=NONE
802 program_suffix=NONE
803 program_transform_name=s,x,x,
804 silent=
805 site=
806 srcdir=
807 verbose=
808 x_includes=NONE
809 x_libraries=NONE
810
811 # Installation directory options.
812 # These are left unexpanded so users can "make install exec_prefix=/foo"
813 # and all the variables that are supposed to be based on exec_prefix
814 # by default will actually change.
815 # Use braces instead of parens because sh, perl, etc. also accept them.
816 # (The list follows the same order as the GNU Coding Standards.)
817 bindir='${exec_prefix}/bin'
818 sbindir='${exec_prefix}/sbin'
819 libexecdir='${exec_prefix}/libexec'
820 datarootdir='${prefix}/share'
821 datadir='${datarootdir}'
822 sysconfdir='${prefix}/etc'
823 sharedstatedir='${prefix}/com'
824 localstatedir='${prefix}/var'
825 includedir='${prefix}/include'
826 oldincludedir='/usr/include'
827 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
828 infodir='${datarootdir}/info'
829 htmldir='${docdir}'
830 dvidir='${docdir}'
831 pdfdir='${docdir}'
832 psdir='${docdir}'
833 libdir='${exec_prefix}/lib'
834 localedir='${datarootdir}/locale'
835 mandir='${datarootdir}/man'
836
837 ac_prev=
838 ac_dashdash=
839 for ac_option
840 do
841   # If the previous option needs an argument, assign it.
842   if test -n "$ac_prev"; then
843     eval $ac_prev=\$ac_option
844     ac_prev=
845     continue
846   fi
847
848   case $ac_option in
849   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
850   *=)   ac_optarg= ;;
851   *)    ac_optarg=yes ;;
852   esac
853
854   # Accept the important Cygnus configure options, so we can diagnose typos.
855
856   case $ac_dashdash$ac_option in
857   --)
858     ac_dashdash=yes ;;
859
860   -bindir | --bindir | --bindi | --bind | --bin | --bi)
861     ac_prev=bindir ;;
862   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
863     bindir=$ac_optarg ;;
864
865   -build | --build | --buil | --bui | --bu)
866     ac_prev=build_alias ;;
867   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
868     build_alias=$ac_optarg ;;
869
870   -cache-file | --cache-file | --cache-fil | --cache-fi \
871   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
872     ac_prev=cache_file ;;
873   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
874   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
875     cache_file=$ac_optarg ;;
876
877   --config-cache | -C)
878     cache_file=config.cache ;;
879
880   -datadir | --datadir | --datadi | --datad)
881     ac_prev=datadir ;;
882   -datadir=* | --datadir=* | --datadi=* | --datad=*)
883     datadir=$ac_optarg ;;
884
885   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
886   | --dataroo | --dataro | --datar)
887     ac_prev=datarootdir ;;
888   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
889   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
890     datarootdir=$ac_optarg ;;
891
892   -disable-* | --disable-*)
893     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
894     # Reject names that are not valid shell variable names.
895     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
896       as_fn_error $? "invalid feature name: $ac_useropt"
897     ac_useropt_orig=$ac_useropt
898     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
899     case $ac_user_opts in
900       *"
901 "enable_$ac_useropt"
902 "*) ;;
903       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
904          ac_unrecognized_sep=', ';;
905     esac
906     eval enable_$ac_useropt=no ;;
907
908   -docdir | --docdir | --docdi | --doc | --do)
909     ac_prev=docdir ;;
910   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
911     docdir=$ac_optarg ;;
912
913   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
914     ac_prev=dvidir ;;
915   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
916     dvidir=$ac_optarg ;;
917
918   -enable-* | --enable-*)
919     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
920     # Reject names that are not valid shell variable names.
921     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
922       as_fn_error $? "invalid feature name: $ac_useropt"
923     ac_useropt_orig=$ac_useropt
924     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925     case $ac_user_opts in
926       *"
927 "enable_$ac_useropt"
928 "*) ;;
929       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
930          ac_unrecognized_sep=', ';;
931     esac
932     eval enable_$ac_useropt=\$ac_optarg ;;
933
934   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
935   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
936   | --exec | --exe | --ex)
937     ac_prev=exec_prefix ;;
938   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
939   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
940   | --exec=* | --exe=* | --ex=*)
941     exec_prefix=$ac_optarg ;;
942
943   -gas | --gas | --ga | --g)
944     # Obsolete; use --with-gas.
945     with_gas=yes ;;
946
947   -help | --help | --hel | --he | -h)
948     ac_init_help=long ;;
949   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
950     ac_init_help=recursive ;;
951   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
952     ac_init_help=short ;;
953
954   -host | --host | --hos | --ho)
955     ac_prev=host_alias ;;
956   -host=* | --host=* | --hos=* | --ho=*)
957     host_alias=$ac_optarg ;;
958
959   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
960     ac_prev=htmldir ;;
961   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
962   | --ht=*)
963     htmldir=$ac_optarg ;;
964
965   -includedir | --includedir | --includedi | --included | --include \
966   | --includ | --inclu | --incl | --inc)
967     ac_prev=includedir ;;
968   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
969   | --includ=* | --inclu=* | --incl=* | --inc=*)
970     includedir=$ac_optarg ;;
971
972   -infodir | --infodir | --infodi | --infod | --info | --inf)
973     ac_prev=infodir ;;
974   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
975     infodir=$ac_optarg ;;
976
977   -libdir | --libdir | --libdi | --libd)
978     ac_prev=libdir ;;
979   -libdir=* | --libdir=* | --libdi=* | --libd=*)
980     libdir=$ac_optarg ;;
981
982   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
983   | --libexe | --libex | --libe)
984     ac_prev=libexecdir ;;
985   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
986   | --libexe=* | --libex=* | --libe=*)
987     libexecdir=$ac_optarg ;;
988
989   -localedir | --localedir | --localedi | --localed | --locale)
990     ac_prev=localedir ;;
991   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
992     localedir=$ac_optarg ;;
993
994   -localstatedir | --localstatedir | --localstatedi | --localstated \
995   | --localstate | --localstat | --localsta | --localst | --locals)
996     ac_prev=localstatedir ;;
997   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
998   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
999     localstatedir=$ac_optarg ;;
1000
1001   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1002     ac_prev=mandir ;;
1003   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1004     mandir=$ac_optarg ;;
1005
1006   -nfp | --nfp | --nf)
1007     # Obsolete; use --without-fp.
1008     with_fp=no ;;
1009
1010   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1011   | --no-cr | --no-c | -n)
1012     no_create=yes ;;
1013
1014   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1015   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1016     no_recursion=yes ;;
1017
1018   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1019   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1020   | --oldin | --oldi | --old | --ol | --o)
1021     ac_prev=oldincludedir ;;
1022   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1023   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1024   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1025     oldincludedir=$ac_optarg ;;
1026
1027   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1028     ac_prev=prefix ;;
1029   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1030     prefix=$ac_optarg ;;
1031
1032   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1033   | --program-pre | --program-pr | --program-p)
1034     ac_prev=program_prefix ;;
1035   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1036   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1037     program_prefix=$ac_optarg ;;
1038
1039   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1040   | --program-suf | --program-su | --program-s)
1041     ac_prev=program_suffix ;;
1042   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1043   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1044     program_suffix=$ac_optarg ;;
1045
1046   -program-transform-name | --program-transform-name \
1047   | --program-transform-nam | --program-transform-na \
1048   | --program-transform-n | --program-transform- \
1049   | --program-transform | --program-transfor \
1050   | --program-transfo | --program-transf \
1051   | --program-trans | --program-tran \
1052   | --progr-tra | --program-tr | --program-t)
1053     ac_prev=program_transform_name ;;
1054   -program-transform-name=* | --program-transform-name=* \
1055   | --program-transform-nam=* | --program-transform-na=* \
1056   | --program-transform-n=* | --program-transform-=* \
1057   | --program-transform=* | --program-transfor=* \
1058   | --program-transfo=* | --program-transf=* \
1059   | --program-trans=* | --program-tran=* \
1060   | --progr-tra=* | --program-tr=* | --program-t=*)
1061     program_transform_name=$ac_optarg ;;
1062
1063   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1064     ac_prev=pdfdir ;;
1065   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1066     pdfdir=$ac_optarg ;;
1067
1068   -psdir | --psdir | --psdi | --psd | --ps)
1069     ac_prev=psdir ;;
1070   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1071     psdir=$ac_optarg ;;
1072
1073   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074   | -silent | --silent | --silen | --sile | --sil)
1075     silent=yes ;;
1076
1077   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1078     ac_prev=sbindir ;;
1079   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1080   | --sbi=* | --sb=*)
1081     sbindir=$ac_optarg ;;
1082
1083   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1084   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1085   | --sharedst | --shareds | --shared | --share | --shar \
1086   | --sha | --sh)
1087     ac_prev=sharedstatedir ;;
1088   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1089   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1090   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1091   | --sha=* | --sh=*)
1092     sharedstatedir=$ac_optarg ;;
1093
1094   -site | --site | --sit)
1095     ac_prev=site ;;
1096   -site=* | --site=* | --sit=*)
1097     site=$ac_optarg ;;
1098
1099   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1100     ac_prev=srcdir ;;
1101   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1102     srcdir=$ac_optarg ;;
1103
1104   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1105   | --syscon | --sysco | --sysc | --sys | --sy)
1106     ac_prev=sysconfdir ;;
1107   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1108   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1109     sysconfdir=$ac_optarg ;;
1110
1111   -target | --target | --targe | --targ | --tar | --ta | --t)
1112     ac_prev=target_alias ;;
1113   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1114     target_alias=$ac_optarg ;;
1115
1116   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1117     verbose=yes ;;
1118
1119   -version | --version | --versio | --versi | --vers | -V)
1120     ac_init_version=: ;;
1121
1122   -with-* | --with-*)
1123     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1124     # Reject names that are not valid shell variable names.
1125     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126       as_fn_error $? "invalid package name: $ac_useropt"
1127     ac_useropt_orig=$ac_useropt
1128     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129     case $ac_user_opts in
1130       *"
1131 "with_$ac_useropt"
1132 "*) ;;
1133       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1134          ac_unrecognized_sep=', ';;
1135     esac
1136     eval with_$ac_useropt=\$ac_optarg ;;
1137
1138   -without-* | --without-*)
1139     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1140     # Reject names that are not valid shell variable names.
1141     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142       as_fn_error $? "invalid package name: $ac_useropt"
1143     ac_useropt_orig=$ac_useropt
1144     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145     case $ac_user_opts in
1146       *"
1147 "with_$ac_useropt"
1148 "*) ;;
1149       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1150          ac_unrecognized_sep=', ';;
1151     esac
1152     eval with_$ac_useropt=no ;;
1153
1154   --x)
1155     # Obsolete; use --with-x.
1156     with_x=yes ;;
1157
1158   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1159   | --x-incl | --x-inc | --x-in | --x-i)
1160     ac_prev=x_includes ;;
1161   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1162   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1163     x_includes=$ac_optarg ;;
1164
1165   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1166   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1167     ac_prev=x_libraries ;;
1168   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1169   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1170     x_libraries=$ac_optarg ;;
1171
1172   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1173 Try \`$0 --help' for more information"
1174     ;;
1175
1176   *=*)
1177     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178     # Reject names that are not valid shell variable names.
1179     case $ac_envvar in #(
1180       '' | [0-9]* | *[!_$as_cr_alnum]* )
1181       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1182     esac
1183     eval $ac_envvar=\$ac_optarg
1184     export $ac_envvar ;;
1185
1186   *)
1187     # FIXME: should be removed in autoconf 3.0.
1188     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1189     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1190       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1191     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1192     ;;
1193
1194   esac
1195 done
1196
1197 if test -n "$ac_prev"; then
1198   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1199   as_fn_error $? "missing argument to $ac_option"
1200 fi
1201
1202 if test -n "$ac_unrecognized_opts"; then
1203   case $enable_option_checking in
1204     no) ;;
1205     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1206     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1207   esac
1208 fi
1209
1210 # Check all directory arguments for consistency.
1211 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1212                 datadir sysconfdir sharedstatedir localstatedir includedir \
1213                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1214                 libdir localedir mandir
1215 do
1216   eval ac_val=\$$ac_var
1217   # Remove trailing slashes.
1218   case $ac_val in
1219     */ )
1220       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1221       eval $ac_var=\$ac_val;;
1222   esac
1223   # Be sure to have absolute directory names.
1224   case $ac_val in
1225     [\\/$]* | ?:[\\/]* )  continue;;
1226     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1227   esac
1228   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1229 done
1230
1231 # There might be people who depend on the old broken behavior: `$host'
1232 # used to hold the argument of --host etc.
1233 # FIXME: To remove some day.
1234 build=$build_alias
1235 host=$host_alias
1236 target=$target_alias
1237
1238 # FIXME: To remove some day.
1239 if test "x$host_alias" != x; then
1240   if test "x$build_alias" = x; then
1241     cross_compiling=maybe
1242   elif test "x$build_alias" != "x$host_alias"; then
1243     cross_compiling=yes
1244   fi
1245 fi
1246
1247 ac_tool_prefix=
1248 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1249
1250 test "$silent" = yes && exec 6>/dev/null
1251
1252
1253 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1254 ac_ls_di=`ls -di .` &&
1255 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1256   as_fn_error $? "working directory cannot be determined"
1257 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1258   as_fn_error $? "pwd does not report name of working directory"
1259
1260
1261 # Find the source files, if location was not specified.
1262 if test -z "$srcdir"; then
1263   ac_srcdir_defaulted=yes
1264   # Try the directory containing this script, then the parent directory.
1265   ac_confdir=`$as_dirname -- "$as_myself" ||
1266 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1267          X"$as_myself" : 'X\(//\)[^/]' \| \
1268          X"$as_myself" : 'X\(//\)$' \| \
1269          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1270 $as_echo X"$as_myself" |
1271     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1272             s//\1/
1273             q
1274           }
1275           /^X\(\/\/\)[^/].*/{
1276             s//\1/
1277             q
1278           }
1279           /^X\(\/\/\)$/{
1280             s//\1/
1281             q
1282           }
1283           /^X\(\/\).*/{
1284             s//\1/
1285             q
1286           }
1287           s/.*/./; q'`
1288   srcdir=$ac_confdir
1289   if test ! -r "$srcdir/$ac_unique_file"; then
1290     srcdir=..
1291   fi
1292 else
1293   ac_srcdir_defaulted=no
1294 fi
1295 if test ! -r "$srcdir/$ac_unique_file"; then
1296   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1297   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1298 fi
1299 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1300 ac_abs_confdir=`(
1301         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1302         pwd)`
1303 # When building in place, set srcdir=.
1304 if test "$ac_abs_confdir" = "$ac_pwd"; then
1305   srcdir=.
1306 fi
1307 # Remove unnecessary trailing slashes from srcdir.
1308 # Double slashes in file names in object file debugging info
1309 # mess up M-x gdb in Emacs.
1310 case $srcdir in
1311 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1312 esac
1313 for ac_var in $ac_precious_vars; do
1314   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1315   eval ac_env_${ac_var}_value=\$${ac_var}
1316   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1317   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1318 done
1319
1320 #
1321 # Report the --help message.
1322 #
1323 if test "$ac_init_help" = "long"; then
1324   # Omit some internal or obsolete options to make the list less imposing.
1325   # This message is too long to be a string in the A/UX 3.1 sh.
1326   cat <<_ACEOF
1327 \`configure' configures mpc 1.0 to adapt to many kinds of systems.
1328
1329 Usage: $0 [OPTION]... [VAR=VALUE]...
1330
1331 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1332 VAR=VALUE.  See below for descriptions of some of the useful variables.
1333
1334 Defaults for the options are specified in brackets.
1335
1336 Configuration:
1337   -h, --help              display this help and exit
1338       --help=short        display options specific to this package
1339       --help=recursive    display the short help of all the included packages
1340   -V, --version           display version information and exit
1341   -q, --quiet, --silent   do not print \`checking ...' messages
1342       --cache-file=FILE   cache test results in FILE [disabled]
1343   -C, --config-cache      alias for \`--cache-file=config.cache'
1344   -n, --no-create         do not create output files
1345       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1346
1347 Installation directories:
1348   --prefix=PREFIX         install architecture-independent files in PREFIX
1349                           [$ac_default_prefix]
1350   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1351                           [PREFIX]
1352
1353 By default, \`make install' will install all the files in
1354 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1355 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1356 for instance \`--prefix=\$HOME'.
1357
1358 For better control, use the options below.
1359
1360 Fine tuning of the installation directories:
1361   --bindir=DIR            user executables [EPREFIX/bin]
1362   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1363   --libexecdir=DIR        program executables [EPREFIX/libexec]
1364   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1365   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1366   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1367   --libdir=DIR            object code libraries [EPREFIX/lib]
1368   --includedir=DIR        C header files [PREFIX/include]
1369   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1370   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1371   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1372   --infodir=DIR           info documentation [DATAROOTDIR/info]
1373   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1374   --mandir=DIR            man documentation [DATAROOTDIR/man]
1375   --docdir=DIR            documentation root [DATAROOTDIR/doc/mpc]
1376   --htmldir=DIR           html documentation [DOCDIR]
1377   --dvidir=DIR            dvi documentation [DOCDIR]
1378   --pdfdir=DIR            pdf documentation [DOCDIR]
1379   --psdir=DIR             ps documentation [DOCDIR]
1380 _ACEOF
1381
1382   cat <<\_ACEOF
1383
1384 Program names:
1385   --program-prefix=PREFIX            prepend PREFIX to installed program names
1386   --program-suffix=SUFFIX            append SUFFIX to installed program names
1387   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1388
1389 System types:
1390   --build=BUILD     configure for building on BUILD [guessed]
1391   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1392 _ACEOF
1393 fi
1394
1395 if test -n "$ac_init_help"; then
1396   case $ac_init_help in
1397      short | recursive ) echo "Configuration of mpc 1.0:";;
1398    esac
1399   cat <<\_ACEOF
1400
1401 Optional Features:
1402   --disable-option-checking  ignore unrecognized --enable/--with options
1403   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1404   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1405   --enable-maintainer-mode  enable make rules and dependencies not useful
1406                           (and sometimes confusing) to the casual installer
1407   --disable-dependency-tracking  speeds up one-time build
1408   --enable-dependency-tracking   do not reject slow dependency extractors
1409   --enable-logging        enable logging of function calls to stderr (default
1410                           = no)
1411   --enable-valgrind-tests run checks through valgrind (default = no)
1412   --enable-shared[=PKGS]  build shared libraries [default=yes]
1413   --enable-static[=PKGS]  build static libraries [default=yes]
1414   --enable-fast-install[=PKGS]
1415                           optimize for fast installation [default=yes]
1416   --disable-libtool-lock  avoid locking (might break parallel builds)
1417
1418 Optional Packages:
1419   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1420   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1421   --with-mpfr-include=DIR MPFR include directory
1422   --with-mpfr-lib=DIR     MPFR lib directory
1423   --with-mpfr=DIR         MPFR install directory
1424   --with-gmp-include=DIR  GMP include directory
1425   --with-gmp-lib=DIR      GMP lib directory
1426   --with-gmp=DIR          GMP install directory
1427   --with-pic              try to use only PIC/non-PIC objects [default=use
1428                           both]
1429   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1430   --with-sysroot=DIR Search for dependent libraries within DIR
1431                         (or the compiler's sysroot if not specified).
1432
1433 Some influential environment variables:
1434   CC          C compiler command
1435   CFLAGS      C compiler flags
1436   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1437               nonstandard directory <lib dir>
1438   LIBS        libraries to pass to the linker, e.g. -l<library>
1439   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1440               you have headers in a nonstandard directory <include dir>
1441   CPP         C preprocessor
1442
1443 Use these variables to override the choices made by `configure' or to help
1444 it to find libraries and programs with nonstandard names/locations.
1445
1446 Report bugs to <mpc-discuss@lists.gforge.inria.fr>.
1447 _ACEOF
1448 ac_status=$?
1449 fi
1450
1451 if test "$ac_init_help" = "recursive"; then
1452   # If there are subdirs, report their specific --help.
1453   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1454     test -d "$ac_dir" ||
1455       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1456       continue
1457     ac_builddir=.
1458
1459 case "$ac_dir" in
1460 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1461 *)
1462   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1463   # A ".." for each directory in $ac_dir_suffix.
1464   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1465   case $ac_top_builddir_sub in
1466   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1467   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1468   esac ;;
1469 esac
1470 ac_abs_top_builddir=$ac_pwd
1471 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1472 # for backward compatibility:
1473 ac_top_builddir=$ac_top_build_prefix
1474
1475 case $srcdir in
1476   .)  # We are building in place.
1477     ac_srcdir=.
1478     ac_top_srcdir=$ac_top_builddir_sub
1479     ac_abs_top_srcdir=$ac_pwd ;;
1480   [\\/]* | ?:[\\/]* )  # Absolute name.
1481     ac_srcdir=$srcdir$ac_dir_suffix;
1482     ac_top_srcdir=$srcdir
1483     ac_abs_top_srcdir=$srcdir ;;
1484   *) # Relative name.
1485     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1486     ac_top_srcdir=$ac_top_build_prefix$srcdir
1487     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1488 esac
1489 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1490
1491     cd "$ac_dir" || { ac_status=$?; continue; }
1492     # Check for guested configure.
1493     if test -f "$ac_srcdir/configure.gnu"; then
1494       echo &&
1495       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1496     elif test -f "$ac_srcdir/configure"; then
1497       echo &&
1498       $SHELL "$ac_srcdir/configure" --help=recursive
1499     else
1500       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1501     fi || ac_status=$?
1502     cd "$ac_pwd" || { ac_status=$?; break; }
1503   done
1504 fi
1505
1506 test -n "$ac_init_help" && exit $ac_status
1507 if $ac_init_version; then
1508   cat <<\_ACEOF
1509 mpc configure 1.0
1510 generated by GNU Autoconf 2.69
1511
1512 Copyright (C) 2012 Free Software Foundation, Inc.
1513 This configure script is free software; the Free Software Foundation
1514 gives unlimited permission to copy, distribute and modify it.
1515 _ACEOF
1516   exit
1517 fi
1518
1519 ## ------------------------ ##
1520 ## Autoconf initialization. ##
1521 ## ------------------------ ##
1522
1523 # ac_fn_c_try_compile LINENO
1524 # --------------------------
1525 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1526 ac_fn_c_try_compile ()
1527 {
1528   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1529   rm -f conftest.$ac_objext
1530   if { { ac_try="$ac_compile"
1531 case "(($ac_try" in
1532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1533   *) ac_try_echo=$ac_try;;
1534 esac
1535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1536 $as_echo "$ac_try_echo"; } >&5
1537   (eval "$ac_compile") 2>conftest.err
1538   ac_status=$?
1539   if test -s conftest.err; then
1540     grep -v '^ *+' conftest.err >conftest.er1
1541     cat conftest.er1 >&5
1542     mv -f conftest.er1 conftest.err
1543   fi
1544   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1545   test $ac_status = 0; } && {
1546          test -z "$ac_c_werror_flag" ||
1547          test ! -s conftest.err
1548        } && test -s conftest.$ac_objext; then :
1549   ac_retval=0
1550 else
1551   $as_echo "$as_me: failed program was:" >&5
1552 sed 's/^/| /' conftest.$ac_ext >&5
1553
1554         ac_retval=1
1555 fi
1556   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1557   as_fn_set_status $ac_retval
1558
1559 } # ac_fn_c_try_compile
1560
1561 # ac_fn_c_try_link LINENO
1562 # -----------------------
1563 # Try to link conftest.$ac_ext, and return whether this succeeded.
1564 ac_fn_c_try_link ()
1565 {
1566   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567   rm -f conftest.$ac_objext conftest$ac_exeext
1568   if { { ac_try="$ac_link"
1569 case "(($ac_try" in
1570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1571   *) ac_try_echo=$ac_try;;
1572 esac
1573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1574 $as_echo "$ac_try_echo"; } >&5
1575   (eval "$ac_link") 2>conftest.err
1576   ac_status=$?
1577   if test -s conftest.err; then
1578     grep -v '^ *+' conftest.err >conftest.er1
1579     cat conftest.er1 >&5
1580     mv -f conftest.er1 conftest.err
1581   fi
1582   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1583   test $ac_status = 0; } && {
1584          test -z "$ac_c_werror_flag" ||
1585          test ! -s conftest.err
1586        } && test -s conftest$ac_exeext && {
1587          test "$cross_compiling" = yes ||
1588          test -x conftest$ac_exeext
1589        }; then :
1590   ac_retval=0
1591 else
1592   $as_echo "$as_me: failed program was:" >&5
1593 sed 's/^/| /' conftest.$ac_ext >&5
1594
1595         ac_retval=1
1596 fi
1597   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1598   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1599   # interfere with the next link command; also delete a directory that is
1600   # left behind by Apple's compiler.  We do this before executing the actions.
1601   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1602   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1603   as_fn_set_status $ac_retval
1604
1605 } # ac_fn_c_try_link
1606
1607 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1608 # -------------------------------------------------------
1609 # Tests whether HEADER exists and can be compiled using the include files in
1610 # INCLUDES, setting the cache variable VAR accordingly.
1611 ac_fn_c_check_header_compile ()
1612 {
1613   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1615 $as_echo_n "checking for $2... " >&6; }
1616 if eval \${$3+:} false; then :
1617   $as_echo_n "(cached) " >&6
1618 else
1619   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1620 /* end confdefs.h.  */
1621 $4
1622 #include <$2>
1623 _ACEOF
1624 if ac_fn_c_try_compile "$LINENO"; then :
1625   eval "$3=yes"
1626 else
1627   eval "$3=no"
1628 fi
1629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1630 fi
1631 eval ac_res=\$$3
1632                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1633 $as_echo "$ac_res" >&6; }
1634   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1635
1636 } # ac_fn_c_check_header_compile
1637
1638 # ac_fn_c_try_cpp LINENO
1639 # ----------------------
1640 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1641 ac_fn_c_try_cpp ()
1642 {
1643   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644   if { { ac_try="$ac_cpp conftest.$ac_ext"
1645 case "(($ac_try" in
1646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1647   *) ac_try_echo=$ac_try;;
1648 esac
1649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1650 $as_echo "$ac_try_echo"; } >&5
1651   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1652   ac_status=$?
1653   if test -s conftest.err; then
1654     grep -v '^ *+' conftest.err >conftest.er1
1655     cat conftest.er1 >&5
1656     mv -f conftest.er1 conftest.err
1657   fi
1658   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659   test $ac_status = 0; } > conftest.i && {
1660          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1661          test ! -s conftest.err
1662        }; then :
1663   ac_retval=0
1664 else
1665   $as_echo "$as_me: failed program was:" >&5
1666 sed 's/^/| /' conftest.$ac_ext >&5
1667
1668     ac_retval=1
1669 fi
1670   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1671   as_fn_set_status $ac_retval
1672
1673 } # ac_fn_c_try_cpp
1674
1675 # ac_fn_c_try_run LINENO
1676 # ----------------------
1677 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1678 # that executables *can* be run.
1679 ac_fn_c_try_run ()
1680 {
1681   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682   if { { ac_try="$ac_link"
1683 case "(($ac_try" in
1684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685   *) ac_try_echo=$ac_try;;
1686 esac
1687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688 $as_echo "$ac_try_echo"; } >&5
1689   (eval "$ac_link") 2>&5
1690   ac_status=$?
1691   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1693   { { case "(($ac_try" in
1694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695   *) ac_try_echo=$ac_try;;
1696 esac
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699   (eval "$ac_try") 2>&5
1700   ac_status=$?
1701   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702   test $ac_status = 0; }; }; then :
1703   ac_retval=0
1704 else
1705   $as_echo "$as_me: program exited with status $ac_status" >&5
1706        $as_echo "$as_me: failed program was:" >&5
1707 sed 's/^/| /' conftest.$ac_ext >&5
1708
1709        ac_retval=$ac_status
1710 fi
1711   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1712   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713   as_fn_set_status $ac_retval
1714
1715 } # ac_fn_c_try_run
1716
1717 # ac_fn_c_check_func LINENO FUNC VAR
1718 # ----------------------------------
1719 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1720 ac_fn_c_check_func ()
1721 {
1722   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1724 $as_echo_n "checking for $2... " >&6; }
1725 if eval \${$3+:} false; then :
1726   $as_echo_n "(cached) " >&6
1727 else
1728   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1729 /* end confdefs.h.  */
1730 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1731    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1732 #define $2 innocuous_$2
1733
1734 /* System header to define __stub macros and hopefully few prototypes,
1735     which can conflict with char $2 (); below.
1736     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1737     <limits.h> exists even on freestanding compilers.  */
1738
1739 #ifdef __STDC__
1740 # include <limits.h>
1741 #else
1742 # include <assert.h>
1743 #endif
1744
1745 #undef $2
1746
1747 /* Override any GCC internal prototype to avoid an error.
1748    Use char because int might match the return type of a GCC
1749    builtin and then its argument prototype would still apply.  */
1750 #ifdef __cplusplus
1751 extern "C"
1752 #endif
1753 char $2 ();
1754 /* The GNU C library defines this for functions which it implements
1755     to always fail with ENOSYS.  Some functions are actually named
1756     something starting with __ and the normal name is an alias.  */
1757 #if defined __stub_$2 || defined __stub___$2
1758 choke me
1759 #endif
1760
1761 int
1762 main ()
1763 {
1764 return $2 ();
1765   ;
1766   return 0;
1767 }
1768 _ACEOF
1769 if ac_fn_c_try_link "$LINENO"; then :
1770   eval "$3=yes"
1771 else
1772   eval "$3=no"
1773 fi
1774 rm -f core conftest.err conftest.$ac_objext \
1775     conftest$ac_exeext conftest.$ac_ext
1776 fi
1777 eval ac_res=\$$3
1778                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1779 $as_echo "$ac_res" >&6; }
1780   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781
1782 } # ac_fn_c_check_func
1783
1784 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1785 # -------------------------------------------------------
1786 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1787 # the include files in INCLUDES and setting the cache variable VAR
1788 # accordingly.
1789 ac_fn_c_check_header_mongrel ()
1790 {
1791   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792   if eval \${$3+:} false; then :
1793   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1794 $as_echo_n "checking for $2... " >&6; }
1795 if eval \${$3+:} false; then :
1796   $as_echo_n "(cached) " >&6
1797 fi
1798 eval ac_res=\$$3
1799                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1800 $as_echo "$ac_res" >&6; }
1801 else
1802   # Is the header compilable?
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1804 $as_echo_n "checking $2 usability... " >&6; }
1805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1806 /* end confdefs.h.  */
1807 $4
1808 #include <$2>
1809 _ACEOF
1810 if ac_fn_c_try_compile "$LINENO"; then :
1811   ac_header_compiler=yes
1812 else
1813   ac_header_compiler=no
1814 fi
1815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1817 $as_echo "$ac_header_compiler" >&6; }
1818
1819 # Is the header present?
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1821 $as_echo_n "checking $2 presence... " >&6; }
1822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1823 /* end confdefs.h.  */
1824 #include <$2>
1825 _ACEOF
1826 if ac_fn_c_try_cpp "$LINENO"; then :
1827   ac_header_preproc=yes
1828 else
1829   ac_header_preproc=no
1830 fi
1831 rm -f conftest.err conftest.i conftest.$ac_ext
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1833 $as_echo "$ac_header_preproc" >&6; }
1834
1835 # So?  What about this header?
1836 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1837   yes:no: )
1838     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1839 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1840     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1841 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1842     ;;
1843   no:yes:* )
1844     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1845 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1846     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1847 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1848     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1849 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1850     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1851 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1852     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1853 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1854 ( $as_echo "## ------------------------------------------------ ##
1855 ## Report this to mpc-discuss@lists.gforge.inria.fr ##
1856 ## ------------------------------------------------ ##"
1857      ) | sed "s/^/$as_me: WARNING:     /" >&2
1858     ;;
1859 esac
1860   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1861 $as_echo_n "checking for $2... " >&6; }
1862 if eval \${$3+:} false; then :
1863   $as_echo_n "(cached) " >&6
1864 else
1865   eval "$3=\$ac_header_compiler"
1866 fi
1867 eval ac_res=\$$3
1868                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1869 $as_echo "$ac_res" >&6; }
1870 fi
1871   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1872
1873 } # ac_fn_c_check_header_mongrel
1874
1875 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1876 # -------------------------------------------
1877 # Tests whether TYPE exists after having included INCLUDES, setting cache
1878 # variable VAR accordingly.
1879 ac_fn_c_check_type ()
1880 {
1881   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883 $as_echo_n "checking for $2... " >&6; }
1884 if eval \${$3+:} false; then :
1885   $as_echo_n "(cached) " >&6
1886 else
1887   eval "$3=no"
1888   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889 /* end confdefs.h.  */
1890 $4
1891 int
1892 main ()
1893 {
1894 if (sizeof ($2))
1895          return 0;
1896   ;
1897   return 0;
1898 }
1899 _ACEOF
1900 if ac_fn_c_try_compile "$LINENO"; then :
1901   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1902 /* end confdefs.h.  */
1903 $4
1904 int
1905 main ()
1906 {
1907 if (sizeof (($2)))
1908             return 0;
1909   ;
1910   return 0;
1911 }
1912 _ACEOF
1913 if ac_fn_c_try_compile "$LINENO"; then :
1914
1915 else
1916   eval "$3=yes"
1917 fi
1918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1919 fi
1920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1921 fi
1922 eval ac_res=\$$3
1923                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1924 $as_echo "$ac_res" >&6; }
1925   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926
1927 } # ac_fn_c_check_type
1928 cat >config.log <<_ACEOF
1929 This file contains any messages produced by compilers while
1930 running configure, to aid debugging if configure makes a mistake.
1931
1932 It was created by mpc $as_me 1.0, which was
1933 generated by GNU Autoconf 2.69.  Invocation command line was
1934
1935   $ $0 $@
1936
1937 _ACEOF
1938 exec 5>>config.log
1939 {
1940 cat <<_ASUNAME
1941 ## --------- ##
1942 ## Platform. ##
1943 ## --------- ##
1944
1945 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1946 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1947 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1948 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1949 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1950
1951 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1952 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1953
1954 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1955 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1956 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1957 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1958 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1959 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1960 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1961
1962 _ASUNAME
1963
1964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965 for as_dir in $PATH
1966 do
1967   IFS=$as_save_IFS
1968   test -z "$as_dir" && as_dir=.
1969     $as_echo "PATH: $as_dir"
1970   done
1971 IFS=$as_save_IFS
1972
1973 } >&5
1974
1975 cat >&5 <<_ACEOF
1976
1977
1978 ## ----------- ##
1979 ## Core tests. ##
1980 ## ----------- ##
1981
1982 _ACEOF
1983
1984
1985 # Keep a trace of the command line.
1986 # Strip out --no-create and --no-recursion so they do not pile up.
1987 # Strip out --silent because we don't want to record it for future runs.
1988 # Also quote any args containing shell meta-characters.
1989 # Make two passes to allow for proper duplicate-argument suppression.
1990 ac_configure_args=
1991 ac_configure_args0=
1992 ac_configure_args1=
1993 ac_must_keep_next=false
1994 for ac_pass in 1 2
1995 do
1996   for ac_arg
1997   do
1998     case $ac_arg in
1999     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2000     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2001     | -silent | --silent | --silen | --sile | --sil)
2002       continue ;;
2003     *\'*)
2004       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2005     esac
2006     case $ac_pass in
2007     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2008     2)
2009       as_fn_append ac_configure_args1 " '$ac_arg'"
2010       if test $ac_must_keep_next = true; then
2011         ac_must_keep_next=false # Got value, back to normal.
2012       else
2013         case $ac_arg in
2014           *=* | --config-cache | -C | -disable-* | --disable-* \
2015           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2016           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2017           | -with-* | --with-* | -without-* | --without-* | --x)
2018             case "$ac_configure_args0 " in
2019               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2020             esac
2021             ;;
2022           -* ) ac_must_keep_next=true ;;
2023         esac
2024       fi
2025       as_fn_append ac_configure_args " '$ac_arg'"
2026       ;;
2027     esac
2028   done
2029 done
2030 { ac_configure_args0=; unset ac_configure_args0;}
2031 { ac_configure_args1=; unset ac_configure_args1;}
2032
2033 # When interrupted or exit'd, cleanup temporary files, and complete
2034 # config.log.  We remove comments because anyway the quotes in there
2035 # would cause problems or look ugly.
2036 # WARNING: Use '\'' to represent an apostrophe within the trap.
2037 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2038 trap 'exit_status=$?
2039   # Save into config.log some information that might help in debugging.
2040   {
2041     echo
2042
2043     $as_echo "## ---------------- ##
2044 ## Cache variables. ##
2045 ## ---------------- ##"
2046     echo
2047     # The following way of writing the cache mishandles newlines in values,
2048 (
2049   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2050     eval ac_val=\$$ac_var
2051     case $ac_val in #(
2052     *${as_nl}*)
2053       case $ac_var in #(
2054       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2055 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2056       esac
2057       case $ac_var in #(
2058       _ | IFS | as_nl) ;; #(
2059       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2060       *) { eval $ac_var=; unset $ac_var;} ;;
2061       esac ;;
2062     esac
2063   done
2064   (set) 2>&1 |
2065     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2066     *${as_nl}ac_space=\ *)
2067       sed -n \
2068         "s/'\''/'\''\\\\'\'''\''/g;
2069           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2070       ;; #(
2071     *)
2072       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2073       ;;
2074     esac |
2075     sort
2076 )
2077     echo
2078
2079     $as_echo "## ----------------- ##
2080 ## Output variables. ##
2081 ## ----------------- ##"
2082     echo
2083     for ac_var in $ac_subst_vars
2084     do
2085       eval ac_val=\$$ac_var
2086       case $ac_val in
2087       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2088       esac
2089       $as_echo "$ac_var='\''$ac_val'\''"
2090     done | sort
2091     echo
2092
2093     if test -n "$ac_subst_files"; then
2094       $as_echo "## ------------------- ##
2095 ## File substitutions. ##
2096 ## ------------------- ##"
2097       echo
2098       for ac_var in $ac_subst_files
2099       do
2100         eval ac_val=\$$ac_var
2101         case $ac_val in
2102         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2103         esac
2104         $as_echo "$ac_var='\''$ac_val'\''"
2105       done | sort
2106       echo
2107     fi
2108
2109     if test -s confdefs.h; then
2110       $as_echo "## ----------- ##
2111 ## confdefs.h. ##
2112 ## ----------- ##"
2113       echo
2114       cat confdefs.h
2115       echo
2116     fi
2117     test "$ac_signal" != 0 &&
2118       $as_echo "$as_me: caught signal $ac_signal"
2119     $as_echo "$as_me: exit $exit_status"
2120   } >&5
2121   rm -f core *.core core.conftest.* &&
2122     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2123     exit $exit_status
2124 ' 0
2125 for ac_signal in 1 2 13 15; do
2126   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2127 done
2128 ac_signal=0
2129
2130 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2131 rm -f -r conftest* confdefs.h
2132
2133 $as_echo "/* confdefs.h */" > confdefs.h
2134
2135 # Predefined preprocessor variables.
2136
2137 cat >>confdefs.h <<_ACEOF
2138 #define PACKAGE_NAME "$PACKAGE_NAME"
2139 _ACEOF
2140
2141 cat >>confdefs.h <<_ACEOF
2142 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2143 _ACEOF
2144
2145 cat >>confdefs.h <<_ACEOF
2146 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2147 _ACEOF
2148
2149 cat >>confdefs.h <<_ACEOF
2150 #define PACKAGE_STRING "$PACKAGE_STRING"
2151 _ACEOF
2152
2153 cat >>confdefs.h <<_ACEOF
2154 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2155 _ACEOF
2156
2157 cat >>confdefs.h <<_ACEOF
2158 #define PACKAGE_URL "$PACKAGE_URL"
2159 _ACEOF
2160
2161
2162 # Let the site file select an alternate cache file if it wants to.
2163 # Prefer an explicitly selected file to automatically selected ones.
2164 ac_site_file1=NONE
2165 ac_site_file2=NONE
2166 if test -n "$CONFIG_SITE"; then
2167   # We do not want a PATH search for config.site.
2168   case $CONFIG_SITE in #((
2169     -*)  ac_site_file1=./$CONFIG_SITE;;
2170     */*) ac_site_file1=$CONFIG_SITE;;
2171     *)   ac_site_file1=./$CONFIG_SITE;;
2172   esac
2173 elif test "x$prefix" != xNONE; then
2174   ac_site_file1=$prefix/share/config.site
2175   ac_site_file2=$prefix/etc/config.site
2176 else
2177   ac_site_file1=$ac_default_prefix/share/config.site
2178   ac_site_file2=$ac_default_prefix/etc/config.site
2179 fi
2180 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2181 do
2182   test "x$ac_site_file" = xNONE && continue
2183   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2184     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2185 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2186     sed 's/^/| /' "$ac_site_file" >&5
2187     . "$ac_site_file" \
2188       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2189 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2190 as_fn_error $? "failed to load site script $ac_site_file
2191 See \`config.log' for more details" "$LINENO" 5; }
2192   fi
2193 done
2194
2195 if test -r "$cache_file"; then
2196   # Some versions of bash will fail to source /dev/null (special files
2197   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2198   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2199     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2200 $as_echo "$as_me: loading cache $cache_file" >&6;}
2201     case $cache_file in
2202       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2203       *)                      . "./$cache_file";;
2204     esac
2205   fi
2206 else
2207   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2208 $as_echo "$as_me: creating cache $cache_file" >&6;}
2209   >$cache_file
2210 fi
2211
2212 # Check that the precious variables saved in the cache have kept the same
2213 # value.
2214 ac_cache_corrupted=false
2215 for ac_var in $ac_precious_vars; do
2216   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2217   eval ac_new_set=\$ac_env_${ac_var}_set
2218   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2219   eval ac_new_val=\$ac_env_${ac_var}_value
2220   case $ac_old_set,$ac_new_set in
2221     set,)
2222       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2223 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2224       ac_cache_corrupted=: ;;
2225     ,set)
2226       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2227 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2228       ac_cache_corrupted=: ;;
2229     ,);;
2230     *)
2231       if test "x$ac_old_val" != "x$ac_new_val"; then
2232         # differences in whitespace do not lead to failure.
2233         ac_old_val_w=`echo x $ac_old_val`
2234         ac_new_val_w=`echo x $ac_new_val`
2235         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2236           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2237 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2238           ac_cache_corrupted=:
2239         else
2240           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2241 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2242           eval $ac_var=\$ac_old_val
2243         fi
2244         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2245 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2246         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2247 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2248       fi;;
2249   esac
2250   # Pass precious variables to config.status.
2251   if test "$ac_new_set" = set; then
2252     case $ac_new_val in
2253     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2254     *) ac_arg=$ac_var=$ac_new_val ;;
2255     esac
2256     case " $ac_configure_args " in
2257       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2258       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2259     esac
2260   fi
2261 done
2262 if $ac_cache_corrupted; then
2263   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2264 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2265   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2266 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2267   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2268 fi
2269 ## -------------------- ##
2270 ## Main body of script. ##
2271 ## -------------------- ##
2272
2273 ac_ext=c
2274 ac_cpp='$CPP $CPPFLAGS'
2275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2278
2279
2280
2281 ac_config_headers="$ac_config_headers config.h"
2282
2283
2284 am__api_version='1.11'
2285
2286 ac_aux_dir=
2287 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2288   if test -f "$ac_dir/install-sh"; then
2289     ac_aux_dir=$ac_dir
2290     ac_install_sh="$ac_aux_dir/install-sh -c"
2291     break
2292   elif test -f "$ac_dir/install.sh"; then
2293     ac_aux_dir=$ac_dir
2294     ac_install_sh="$ac_aux_dir/install.sh -c"
2295     break
2296   elif test -f "$ac_dir/shtool"; then
2297     ac_aux_dir=$ac_dir
2298     ac_install_sh="$ac_aux_dir/shtool install -c"
2299     break
2300   fi
2301 done
2302 if test -z "$ac_aux_dir"; then
2303   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2304 fi
2305
2306 # These three variables are undocumented and unsupported,
2307 # and are intended to be withdrawn in a future Autoconf release.
2308 # They can cause serious problems if a builder's source tree is in a directory
2309 # whose full name contains unusual characters.
2310 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2311 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2312 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2313
2314
2315 # Find a good install program.  We prefer a C program (faster),
2316 # so one script is as good as another.  But avoid the broken or
2317 # incompatible versions:
2318 # SysV /etc/install, /usr/sbin/install
2319 # SunOS /usr/etc/install
2320 # IRIX /sbin/install
2321 # AIX /bin/install
2322 # AmigaOS /C/install, which installs bootblocks on floppy discs
2323 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2324 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2325 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2326 # OS/2's system install, which has a completely different semantic
2327 # ./install, which can be erroneously created by make from ./install.sh.
2328 # Reject install programs that cannot install multiple files.
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2330 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2331 if test -z "$INSTALL"; then
2332 if ${ac_cv_path_install+:} false; then :
2333   $as_echo_n "(cached) " >&6
2334 else
2335   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2336 for as_dir in $PATH
2337 do
2338   IFS=$as_save_IFS
2339   test -z "$as_dir" && as_dir=.
2340     # Account for people who put trailing slashes in PATH elements.
2341 case $as_dir/ in #((
2342   ./ | .// | /[cC]/* | \
2343   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2344   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2345   /usr/ucb/* ) ;;
2346   *)
2347     # OSF1 and SCO ODT 3.0 have their own names for install.
2348     # Don't use installbsd from OSF since it installs stuff as root
2349     # by default.
2350     for ac_prog in ginstall scoinst install; do
2351       for ac_exec_ext in '' $ac_executable_extensions; do
2352         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2353           if test $ac_prog = install &&
2354             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2355             # AIX install.  It has an incompatible calling convention.
2356             :
2357           elif test $ac_prog = install &&
2358             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2359             # program-specific install script used by HP pwplus--don't use.
2360             :
2361           else
2362             rm -rf conftest.one conftest.two conftest.dir
2363             echo one > conftest.one
2364             echo two > conftest.two
2365             mkdir conftest.dir
2366             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2367               test -s conftest.one && test -s conftest.two &&
2368               test -s conftest.dir/conftest.one &&
2369               test -s conftest.dir/conftest.two
2370             then
2371               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2372               break 3
2373             fi
2374           fi
2375         fi
2376       done
2377     done
2378     ;;
2379 esac
2380
2381   done
2382 IFS=$as_save_IFS
2383
2384 rm -rf conftest.one conftest.two conftest.dir
2385
2386 fi
2387   if test "${ac_cv_path_install+set}" = set; then
2388     INSTALL=$ac_cv_path_install
2389   else
2390     # As a last resort, use the slow shell script.  Don't cache a
2391     # value for INSTALL within a source directory, because that will
2392     # break other packages using the cache if that directory is
2393     # removed, or if the value is a relative name.
2394     INSTALL=$ac_install_sh
2395   fi
2396 fi
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2398 $as_echo "$INSTALL" >&6; }
2399
2400 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2401 # It thinks the first close brace ends the variable substitution.
2402 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2403
2404 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2405
2406 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2407
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2409 $as_echo_n "checking whether build environment is sane... " >&6; }
2410 # Just in case
2411 sleep 1
2412 echo timestamp > conftest.file
2413 # Reject unsafe characters in $srcdir or the absolute working directory
2414 # name.  Accept space and tab only in the latter.
2415 am_lf='
2416 '
2417 case `pwd` in
2418   *[\\\"\#\$\&\'\`$am_lf]*)
2419     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2420 esac
2421 case $srcdir in
2422   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2423     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2424 esac
2425
2426 # Do `set' in a subshell so we don't clobber the current shell's
2427 # arguments.  Must try -L first in case configure is actually a
2428 # symlink; some systems play weird games with the mod time of symlinks
2429 # (eg FreeBSD returns the mod time of the symlink's containing
2430 # directory).
2431 if (
2432    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2433    if test "$*" = "X"; then
2434       # -L didn't work.
2435       set X `ls -t "$srcdir/configure" conftest.file`
2436    fi
2437    rm -f conftest.file
2438    if test "$*" != "X $srcdir/configure conftest.file" \
2439       && test "$*" != "X conftest.file $srcdir/configure"; then
2440
2441       # If neither matched, then we have a broken ls.  This can happen
2442       # if, for instance, CONFIG_SHELL is bash and it inherits a
2443       # broken ls alias from the environment.  This has actually
2444       # happened.  Such a system could not be considered "sane".
2445       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2446 alias in your environment" "$LINENO" 5
2447    fi
2448
2449    test "$2" = conftest.file
2450    )
2451 then
2452    # Ok.
2453    :
2454 else
2455    as_fn_error $? "newly created file is older than distributed files!
2456 Check your system clock" "$LINENO" 5
2457 fi
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2459 $as_echo "yes" >&6; }
2460 test "$program_prefix" != NONE &&
2461   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2462 # Use a double $ so make ignores it.
2463 test "$program_suffix" != NONE &&
2464   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2465 # Double any \ or $.
2466 # By default was `s,x,x', remove it if useless.
2467 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2468 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2469
2470 # expand $ac_aux_dir to an absolute path
2471 am_aux_dir=`cd $ac_aux_dir && pwd`
2472
2473 if test x"${MISSING+set}" != xset; then
2474   case $am_aux_dir in
2475   *\ * | *\     *)
2476     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2477   *)
2478     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2479   esac
2480 fi
2481 # Use eval to expand $SHELL
2482 if eval "$MISSING --run true"; then
2483   am_missing_run="$MISSING --run "
2484 else
2485   am_missing_run=
2486   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2487 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2488 fi
2489
2490 if test x"${install_sh}" != xset; then
2491   case $am_aux_dir in
2492   *\ * | *\     *)
2493     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2494   *)
2495     install_sh="\${SHELL} $am_aux_dir/install-sh"
2496   esac
2497 fi
2498
2499 # Installed binaries are usually stripped using `strip' when the user
2500 # run `make install-strip'.  However `strip' might not be the right
2501 # tool to use in cross-compilation environments, therefore Automake
2502 # will honor the `STRIP' environment variable to overrule this program.
2503 if test "$cross_compiling" != no; then
2504   if test -n "$ac_tool_prefix"; then
2505   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2506 set dummy ${ac_tool_prefix}strip; ac_word=$2
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2508 $as_echo_n "checking for $ac_word... " >&6; }
2509 if ${ac_cv_prog_STRIP+:} false; then :
2510   $as_echo_n "(cached) " >&6
2511 else
2512   if test -n "$STRIP"; then
2513   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2514 else
2515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2516 for as_dir in $PATH
2517 do
2518   IFS=$as_save_IFS
2519   test -z "$as_dir" && as_dir=.
2520     for ac_exec_ext in '' $ac_executable_extensions; do
2521   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2522     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2523     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2524     break 2
2525   fi
2526 done
2527   done
2528 IFS=$as_save_IFS
2529
2530 fi
2531 fi
2532 STRIP=$ac_cv_prog_STRIP
2533 if test -n "$STRIP"; then
2534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2535 $as_echo "$STRIP" >&6; }
2536 else
2537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2538 $as_echo "no" >&6; }
2539 fi
2540
2541
2542 fi
2543 if test -z "$ac_cv_prog_STRIP"; then
2544   ac_ct_STRIP=$STRIP
2545   # Extract the first word of "strip", so it can be a program name with args.
2546 set dummy strip; ac_word=$2
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2548 $as_echo_n "checking for $ac_word... " >&6; }
2549 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2550   $as_echo_n "(cached) " >&6
2551 else
2552   if test -n "$ac_ct_STRIP"; then
2553   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2554 else
2555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2556 for as_dir in $PATH
2557 do
2558   IFS=$as_save_IFS
2559   test -z "$as_dir" && as_dir=.
2560     for ac_exec_ext in '' $ac_executable_extensions; do
2561   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2562     ac_cv_prog_ac_ct_STRIP="strip"
2563     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2564     break 2
2565   fi
2566 done
2567   done
2568 IFS=$as_save_IFS
2569
2570 fi
2571 fi
2572 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2573 if test -n "$ac_ct_STRIP"; then
2574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2575 $as_echo "$ac_ct_STRIP" >&6; }
2576 else
2577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2578 $as_echo "no" >&6; }
2579 fi
2580
2581   if test "x$ac_ct_STRIP" = x; then
2582     STRIP=":"
2583   else
2584     case $cross_compiling:$ac_tool_warned in
2585 yes:)
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2587 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2588 ac_tool_warned=yes ;;
2589 esac
2590     STRIP=$ac_ct_STRIP
2591   fi
2592 else
2593   STRIP="$ac_cv_prog_STRIP"
2594 fi
2595
2596 fi
2597 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2598
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2600 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2601 if test -z "$MKDIR_P"; then
2602   if ${ac_cv_path_mkdir+:} false; then :
2603   $as_echo_n "(cached) " >&6
2604 else
2605   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2606 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2607 do
2608   IFS=$as_save_IFS
2609   test -z "$as_dir" && as_dir=.
2610     for ac_prog in mkdir gmkdir; do
2611          for ac_exec_ext in '' $ac_executable_extensions; do
2612            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2613            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2614              'mkdir (GNU coreutils) '* | \
2615              'mkdir (coreutils) '* | \
2616              'mkdir (fileutils) '4.1*)
2617                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2618                break 3;;
2619            esac
2620          done
2621        done
2622   done
2623 IFS=$as_save_IFS
2624
2625 fi
2626
2627   test -d ./--version && rmdir ./--version
2628   if test "${ac_cv_path_mkdir+set}" = set; then
2629     MKDIR_P="$ac_cv_path_mkdir -p"
2630   else
2631     # As a last resort, use the slow shell script.  Don't cache a
2632     # value for MKDIR_P within a source directory, because that will
2633     # break other packages using the cache if that directory is
2634     # removed, or if the value is a relative name.
2635     MKDIR_P="$ac_install_sh -d"
2636   fi
2637 fi
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2639 $as_echo "$MKDIR_P" >&6; }
2640
2641 mkdir_p="$MKDIR_P"
2642 case $mkdir_p in
2643   [\\/$]* | ?:[\\/]*) ;;
2644   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2645 esac
2646
2647 for ac_prog in gawk mawk nawk awk
2648 do
2649   # Extract the first word of "$ac_prog", so it can be a program name with args.
2650 set dummy $ac_prog; ac_word=$2
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2652 $as_echo_n "checking for $ac_word... " >&6; }
2653 if ${ac_cv_prog_AWK+:} false; then :
2654   $as_echo_n "(cached) " >&6
2655 else
2656   if test -n "$AWK"; then
2657   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2658 else
2659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660 for as_dir in $PATH
2661 do
2662   IFS=$as_save_IFS
2663   test -z "$as_dir" && as_dir=.
2664     for ac_exec_ext in '' $ac_executable_extensions; do
2665   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2666     ac_cv_prog_AWK="$ac_prog"
2667     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2668     break 2
2669   fi
2670 done
2671   done
2672 IFS=$as_save_IFS
2673
2674 fi
2675 fi
2676 AWK=$ac_cv_prog_AWK
2677 if test -n "$AWK"; then
2678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2679 $as_echo "$AWK" >&6; }
2680 else
2681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2682 $as_echo "no" >&6; }
2683 fi
2684
2685
2686   test -n "$AWK" && break
2687 done
2688
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2690 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2691 set x ${MAKE-make}
2692 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2693 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2694   $as_echo_n "(cached) " >&6
2695 else
2696   cat >conftest.make <<\_ACEOF
2697 SHELL = /bin/sh
2698 all:
2699         @echo '@@@%%%=$(MAKE)=@@@%%%'
2700 _ACEOF
2701 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2702 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2703   *@@@%%%=?*=@@@%%%*)
2704     eval ac_cv_prog_make_${ac_make}_set=yes;;
2705   *)
2706     eval ac_cv_prog_make_${ac_make}_set=no;;
2707 esac
2708 rm -f conftest.make
2709 fi
2710 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2712 $as_echo "yes" >&6; }
2713   SET_MAKE=
2714 else
2715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2716 $as_echo "no" >&6; }
2717   SET_MAKE="MAKE=${MAKE-make}"
2718 fi
2719
2720 rm -rf .tst 2>/dev/null
2721 mkdir .tst 2>/dev/null
2722 if test -d .tst; then
2723   am__leading_dot=.
2724 else
2725   am__leading_dot=_
2726 fi
2727 rmdir .tst 2>/dev/null
2728
2729 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2730   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2731   # is not polluted with repeated "-I."
2732   am__isrc=' -I$(srcdir)'
2733   # test to see if srcdir already configured
2734   if test -f $srcdir/config.status; then
2735     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2736   fi
2737 fi
2738
2739 # test whether we have cygpath
2740 if test -z "$CYGPATH_W"; then
2741   if (cygpath --version) >/dev/null 2>/dev/null; then
2742     CYGPATH_W='cygpath -w'
2743   else
2744     CYGPATH_W=echo
2745   fi
2746 fi
2747
2748
2749 # Define the identity of the package.
2750  PACKAGE='mpc'
2751  VERSION='1.0'
2752
2753
2754 cat >>confdefs.h <<_ACEOF
2755 #define PACKAGE "$PACKAGE"
2756 _ACEOF
2757
2758
2759 cat >>confdefs.h <<_ACEOF
2760 #define VERSION "$VERSION"
2761 _ACEOF
2762
2763 # Some tools Automake needs.
2764
2765 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2766
2767
2768 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2769
2770
2771 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2772
2773
2774 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2775
2776
2777 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2778
2779 # We need awk for the "check" target.  The system "awk" is bad on
2780 # some platforms.
2781 # Always define AMTAR for backward compatibility.  Yes, it's still used
2782 # in the wild :-(  We should find a proper way to deprecate it ...
2783 AMTAR='$${TAR-tar}'
2784
2785 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2786
2787
2788
2789
2790
2791
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2793 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2794     # Check whether --enable-maintainer-mode was given.
2795 if test "${enable_maintainer_mode+set}" = set; then :
2796   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2797 else
2798   USE_MAINTAINER_MODE=no
2799 fi
2800
2801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2802 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2803    if test $USE_MAINTAINER_MODE = yes; then
2804   MAINTAINER_MODE_TRUE=
2805   MAINTAINER_MODE_FALSE='#'
2806 else
2807   MAINTAINER_MODE_TRUE='#'
2808   MAINTAINER_MODE_FALSE=
2809 fi
2810
2811   MAINT=$MAINTAINER_MODE_TRUE
2812
2813
2814
2815 USER_CC=$CC
2816 USER_CFLAGS=$CFLAGS
2817
2818 # automake 1.12 seems to require this, but automake 1.11 doesn't recognize it
2819 DEPDIR="${am__leading_dot}deps"
2820
2821 ac_config_commands="$ac_config_commands depfiles"
2822
2823
2824 am_make=${MAKE-make}
2825 cat > confinc << 'END'
2826 am__doit:
2827         @echo this is the am__doit target
2828 .PHONY: am__doit
2829 END
2830 # If we don't find an include directive, just comment out the code.
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2832 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2833 am__include="#"
2834 am__quote=
2835 _am_result=none
2836 # First try GNU make style include.
2837 echo "include confinc" > confmf
2838 # Ignore all kinds of additional output from `make'.
2839 case `$am_make -s -f confmf 2> /dev/null` in #(
2840 *the\ am__doit\ target*)
2841   am__include=include
2842   am__quote=
2843   _am_result=GNU
2844   ;;
2845 esac
2846 # Now try BSD make style include.
2847 if test "$am__include" = "#"; then
2848    echo '.include "confinc"' > confmf
2849    case `$am_make -s -f confmf 2> /dev/null` in #(
2850    *the\ am__doit\ target*)
2851      am__include=.include
2852      am__quote="\""
2853      _am_result=BSD
2854      ;;
2855    esac
2856 fi
2857
2858
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2860 $as_echo "$_am_result" >&6; }
2861 rm -f confinc confmf
2862
2863 # Check whether --enable-dependency-tracking was given.
2864 if test "${enable_dependency_tracking+set}" = set; then :
2865   enableval=$enable_dependency_tracking;
2866 fi
2867
2868 if test "x$enable_dependency_tracking" != xno; then
2869   am_depcomp="$ac_aux_dir/depcomp"
2870   AMDEPBACKSLASH='\'
2871   am__nodep='_no'
2872 fi
2873  if test "x$enable_dependency_tracking" != xno; then
2874   AMDEP_TRUE=
2875   AMDEP_FALSE='#'
2876 else
2877   AMDEP_TRUE='#'
2878   AMDEP_FALSE=
2879 fi
2880
2881
2882 ac_ext=c
2883 ac_cpp='$CPP $CPPFLAGS'
2884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2887 if test -n "$ac_tool_prefix"; then
2888   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2889 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2891 $as_echo_n "checking for $ac_word... " >&6; }
2892 if ${ac_cv_prog_CC+:} false; then :
2893   $as_echo_n "(cached) " >&6
2894 else
2895   if test -n "$CC"; then
2896   ac_cv_prog_CC="$CC" # Let the user override the test.
2897 else
2898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899 for as_dir in $PATH
2900 do
2901   IFS=$as_save_IFS
2902   test -z "$as_dir" && as_dir=.
2903     for ac_exec_ext in '' $ac_executable_extensions; do
2904   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2905     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2906     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2907     break 2
2908   fi
2909 done
2910   done
2911 IFS=$as_save_IFS
2912
2913 fi
2914 fi
2915 CC=$ac_cv_prog_CC
2916 if test -n "$CC"; then
2917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2918 $as_echo "$CC" >&6; }
2919 else
2920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2921 $as_echo "no" >&6; }
2922 fi
2923
2924
2925 fi
2926 if test -z "$ac_cv_prog_CC"; then
2927   ac_ct_CC=$CC
2928   # Extract the first word of "gcc", so it can be a program name with args.
2929 set dummy gcc; ac_word=$2
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2931 $as_echo_n "checking for $ac_word... " >&6; }
2932 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2933   $as_echo_n "(cached) " >&6
2934 else
2935   if test -n "$ac_ct_CC"; then
2936   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2937 else
2938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939 for as_dir in $PATH
2940 do
2941   IFS=$as_save_IFS
2942   test -z "$as_dir" && as_dir=.
2943     for ac_exec_ext in '' $ac_executable_extensions; do
2944   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2945     ac_cv_prog_ac_ct_CC="gcc"
2946     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2947     break 2
2948   fi
2949 done
2950   done
2951 IFS=$as_save_IFS
2952
2953 fi
2954 fi
2955 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2956 if test -n "$ac_ct_CC"; then
2957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2958 $as_echo "$ac_ct_CC" >&6; }
2959 else
2960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2961 $as_echo "no" >&6; }
2962 fi
2963
2964   if test "x$ac_ct_CC" = x; then
2965     CC=""
2966   else
2967     case $cross_compiling:$ac_tool_warned in
2968 yes:)
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2970 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2971 ac_tool_warned=yes ;;
2972 esac
2973     CC=$ac_ct_CC
2974   fi
2975 else
2976   CC="$ac_cv_prog_CC"
2977 fi
2978
2979 if test -z "$CC"; then
2980           if test -n "$ac_tool_prefix"; then
2981     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2982 set dummy ${ac_tool_prefix}cc; ac_word=$2
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2984 $as_echo_n "checking for $ac_word... " >&6; }
2985 if ${ac_cv_prog_CC+:} false; then :
2986   $as_echo_n "(cached) " >&6
2987 else
2988   if test -n "$CC"; then
2989   ac_cv_prog_CC="$CC" # Let the user override the test.
2990 else
2991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992 for as_dir in $PATH
2993 do
2994   IFS=$as_save_IFS
2995   test -z "$as_dir" && as_dir=.
2996     for ac_exec_ext in '' $ac_executable_extensions; do
2997   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2998     ac_cv_prog_CC="${ac_tool_prefix}cc"
2999     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3000     break 2
3001   fi
3002 done
3003   done
3004 IFS=$as_save_IFS
3005
3006 fi
3007 fi
3008 CC=$ac_cv_prog_CC
3009 if test -n "$CC"; then
3010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3011 $as_echo "$CC" >&6; }
3012 else
3013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3014 $as_echo "no" >&6; }
3015 fi
3016
3017
3018   fi
3019 fi
3020 if test -z "$CC"; then
3021   # Extract the first word of "cc", so it can be a program name with args.
3022 set dummy cc; ac_word=$2
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3024 $as_echo_n "checking for $ac_word... " >&6; }
3025 if ${ac_cv_prog_CC+:} false; then :
3026   $as_echo_n "(cached) " >&6
3027 else
3028   if test -n "$CC"; then
3029   ac_cv_prog_CC="$CC" # Let the user override the test.
3030 else
3031   ac_prog_rejected=no
3032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033 for as_dir in $PATH
3034 do
3035   IFS=$as_save_IFS
3036   test -z "$as_dir" && as_dir=.
3037     for ac_exec_ext in '' $ac_executable_extensions; do
3038   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3039     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3040        ac_prog_rejected=yes
3041        continue
3042      fi
3043     ac_cv_prog_CC="cc"
3044     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3045     break 2
3046   fi
3047 done
3048   done
3049 IFS=$as_save_IFS
3050
3051 if test $ac_prog_rejected = yes; then
3052   # We found a bogon in the path, so make sure we never use it.
3053   set dummy $ac_cv_prog_CC
3054   shift
3055   if test $# != 0; then
3056     # We chose a different compiler from the bogus one.
3057     # However, it has the same basename, so the bogon will be chosen
3058     # first if we set CC to just the basename; use the full file name.
3059     shift
3060     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3061   fi
3062 fi
3063 fi
3064 fi
3065 CC=$ac_cv_prog_CC
3066 if test -n "$CC"; then
3067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3068 $as_echo "$CC" >&6; }
3069 else
3070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3071 $as_echo "no" >&6; }
3072 fi
3073
3074
3075 fi
3076 if test -z "$CC"; then
3077   if test -n "$ac_tool_prefix"; then
3078   for ac_prog in cl.exe
3079   do
3080     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3081 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3083 $as_echo_n "checking for $ac_word... " >&6; }
3084 if ${ac_cv_prog_CC+:} false; then :
3085   $as_echo_n "(cached) " >&6
3086 else
3087   if test -n "$CC"; then
3088   ac_cv_prog_CC="$CC" # Let the user override the test.
3089 else
3090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3091 for as_dir in $PATH
3092 do
3093   IFS=$as_save_IFS
3094   test -z "$as_dir" && as_dir=.
3095     for ac_exec_ext in '' $ac_executable_extensions; do
3096   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3097     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3098     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3099     break 2
3100   fi
3101 done
3102   done
3103 IFS=$as_save_IFS
3104
3105 fi
3106 fi
3107 CC=$ac_cv_prog_CC
3108 if test -n "$CC"; then
3109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3110 $as_echo "$CC" >&6; }
3111 else
3112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3113 $as_echo "no" >&6; }
3114 fi
3115
3116
3117     test -n "$CC" && break
3118   done
3119 fi
3120 if test -z "$CC"; then
3121   ac_ct_CC=$CC
3122   for ac_prog in cl.exe
3123 do
3124   # Extract the first word of "$ac_prog", so it can be a program name with args.
3125 set dummy $ac_prog; ac_word=$2
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3127 $as_echo_n "checking for $ac_word... " >&6; }
3128 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3129   $as_echo_n "(cached) " >&6
3130 else
3131   if test -n "$ac_ct_CC"; then
3132   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3133 else
3134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3135 for as_dir in $PATH
3136 do
3137   IFS=$as_save_IFS
3138   test -z "$as_dir" && as_dir=.
3139     for ac_exec_ext in '' $ac_executable_extensions; do
3140   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3141     ac_cv_prog_ac_ct_CC="$ac_prog"
3142     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3143     break 2
3144   fi
3145 done
3146   done
3147 IFS=$as_save_IFS
3148
3149 fi
3150 fi
3151 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3152 if test -n "$ac_ct_CC"; then
3153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3154 $as_echo "$ac_ct_CC" >&6; }
3155 else
3156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3157 $as_echo "no" >&6; }
3158 fi
3159
3160
3161   test -n "$ac_ct_CC" && break
3162 done
3163
3164   if test "x$ac_ct_CC" = x; then
3165     CC=""
3166   else
3167     case $cross_compiling:$ac_tool_warned in
3168 yes:)
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3170 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3171 ac_tool_warned=yes ;;
3172 esac
3173     CC=$ac_ct_CC
3174   fi
3175 fi
3176
3177 fi
3178
3179
3180 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3182 as_fn_error $? "no acceptable C compiler found in \$PATH
3183 See \`config.log' for more details" "$LINENO" 5; }
3184
3185 # Provide some information about the compiler.
3186 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3187 set X $ac_compile
3188 ac_compiler=$2
3189 for ac_option in --version -v -V -qversion; do
3190   { { ac_try="$ac_compiler $ac_option >&5"
3191 case "(($ac_try" in
3192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3193   *) ac_try_echo=$ac_try;;
3194 esac
3195 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3196 $as_echo "$ac_try_echo"; } >&5
3197   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3198   ac_status=$?
3199   if test -s conftest.err; then
3200     sed '10a\
3201 ... rest of stderr output deleted ...
3202          10q' conftest.err >conftest.er1
3203     cat conftest.er1 >&5
3204   fi
3205   rm -f conftest.er1 conftest.err
3206   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3207   test $ac_status = 0; }
3208 done
3209
3210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3211 /* end confdefs.h.  */
3212
3213 int
3214 main ()
3215 {
3216
3217   ;
3218   return 0;
3219 }
3220 _ACEOF
3221 ac_clean_files_save=$ac_clean_files
3222 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3223 # Try to create an executable without -o first, disregard a.out.
3224 # It will help us diagnose broken compilers, and finding out an intuition
3225 # of exeext.
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3227 $as_echo_n "checking whether the C compiler works... " >&6; }
3228 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3229
3230 # The possible output files:
3231 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3232
3233 ac_rmfiles=
3234 for ac_file in $ac_files
3235 do
3236   case $ac_file in
3237     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3238     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3239   esac
3240 done
3241 rm -f $ac_rmfiles
3242
3243 if { { ac_try="$ac_link_default"
3244 case "(($ac_try" in
3245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246   *) ac_try_echo=$ac_try;;
3247 esac
3248 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3249 $as_echo "$ac_try_echo"; } >&5
3250   (eval "$ac_link_default") 2>&5
3251   ac_status=$?
3252   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3253   test $ac_status = 0; }; then :
3254   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3255 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3256 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3257 # so that the user can short-circuit this test for compilers unknown to
3258 # Autoconf.
3259 for ac_file in $ac_files ''
3260 do
3261   test -f "$ac_file" || continue
3262   case $ac_file in
3263     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3264         ;;
3265     [ab].out )
3266         # We found the default executable, but exeext='' is most
3267         # certainly right.
3268         break;;
3269     *.* )
3270         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3271         then :; else
3272            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3273         fi
3274         # We set ac_cv_exeext here because the later test for it is not
3275         # safe: cross compilers may not add the suffix if given an `-o'
3276         # argument, so we may need to know it at that point already.
3277         # Even if this section looks crufty: it has the advantage of
3278         # actually working.
3279         break;;
3280     * )
3281         break;;
3282   esac
3283 done
3284 test "$ac_cv_exeext" = no && ac_cv_exeext=
3285
3286 else
3287   ac_file=''
3288 fi
3289 if test -z "$ac_file"; then :
3290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3291 $as_echo "no" >&6; }
3292 $as_echo "$as_me: failed program was:" >&5
3293 sed 's/^/| /' conftest.$ac_ext >&5
3294
3295 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3297 as_fn_error 77 "C compiler cannot create executables
3298 See \`config.log' for more details" "$LINENO" 5; }
3299 else
3300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3301 $as_echo "yes" >&6; }
3302 fi
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3304 $as_echo_n "checking for C compiler default output file name... " >&6; }
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3306 $as_echo "$ac_file" >&6; }
3307 ac_exeext=$ac_cv_exeext
3308
3309 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3310 ac_clean_files=$ac_clean_files_save
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3312 $as_echo_n "checking for suffix of executables... " >&6; }
3313 if { { ac_try="$ac_link"
3314 case "(($ac_try" in
3315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3316   *) ac_try_echo=$ac_try;;
3317 esac
3318 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3319 $as_echo "$ac_try_echo"; } >&5
3320   (eval "$ac_link") 2>&5
3321   ac_status=$?
3322   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3323   test $ac_status = 0; }; then :
3324   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3325 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3326 # work properly (i.e., refer to `conftest.exe'), while it won't with
3327 # `rm'.
3328 for ac_file in conftest.exe conftest conftest.*; do
3329   test -f "$ac_file" || continue
3330   case $ac_file in
3331     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3332     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3333           break;;
3334     * ) break;;
3335   esac
3336 done
3337 else
3338   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3339 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3340 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3341 See \`config.log' for more details" "$LINENO" 5; }
3342 fi
3343 rm -f conftest conftest$ac_cv_exeext
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3345 $as_echo "$ac_cv_exeext" >&6; }
3346
3347 rm -f conftest.$ac_ext
3348 EXEEXT=$ac_cv_exeext
3349 ac_exeext=$EXEEXT
3350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3351 /* end confdefs.h.  */
3352 #include <stdio.h>
3353 int
3354 main ()
3355 {
3356 FILE *f = fopen ("conftest.out", "w");
3357  return ferror (f) || fclose (f) != 0;
3358
3359   ;
3360   return 0;
3361 }
3362 _ACEOF
3363 ac_clean_files="$ac_clean_files conftest.out"
3364 # Check that the compiler produces executables we can run.  If not, either
3365 # the compiler is broken, or we cross compile.
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3367 $as_echo_n "checking whether we are cross compiling... " >&6; }
3368 if test "$cross_compiling" != yes; then
3369   { { ac_try="$ac_link"
3370 case "(($ac_try" in
3371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372   *) ac_try_echo=$ac_try;;
3373 esac
3374 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3375 $as_echo "$ac_try_echo"; } >&5
3376   (eval "$ac_link") 2>&5
3377   ac_status=$?
3378   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3379   test $ac_status = 0; }
3380   if { ac_try='./conftest$ac_cv_exeext'
3381   { { case "(($ac_try" in
3382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383   *) ac_try_echo=$ac_try;;
3384 esac
3385 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3386 $as_echo "$ac_try_echo"; } >&5
3387   (eval "$ac_try") 2>&5
3388   ac_status=$?
3389   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3390   test $ac_status = 0; }; }; then
3391     cross_compiling=no
3392   else
3393     if test "$cross_compiling" = maybe; then
3394         cross_compiling=yes
3395     else
3396         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3397 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3398 as_fn_error $? "cannot run C compiled programs.
3399 If you meant to cross compile, use \`--host'.
3400 See \`config.log' for more details" "$LINENO" 5; }
3401     fi
3402   fi
3403 fi
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3405 $as_echo "$cross_compiling" >&6; }
3406
3407 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3408 ac_clean_files=$ac_clean_files_save
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3410 $as_echo_n "checking for suffix of object files... " >&6; }
3411 if ${ac_cv_objext+:} false; then :
3412   $as_echo_n "(cached) " >&6
3413 else
3414   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3415 /* end confdefs.h.  */
3416
3417 int
3418 main ()
3419 {
3420
3421   ;
3422   return 0;
3423 }
3424 _ACEOF
3425 rm -f conftest.o conftest.obj
3426 if { { ac_try="$ac_compile"
3427 case "(($ac_try" in
3428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429   *) ac_try_echo=$ac_try;;
3430 esac
3431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3432 $as_echo "$ac_try_echo"; } >&5
3433   (eval "$ac_compile") 2>&5
3434   ac_status=$?
3435   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3436   test $ac_status = 0; }; then :
3437   for ac_file in conftest.o conftest.obj conftest.*; do
3438   test -f "$ac_file" || continue;
3439   case $ac_file in
3440     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3441     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3442        break;;
3443   esac
3444 done
3445 else
3446   $as_echo "$as_me: failed program was:" >&5
3447 sed 's/^/| /' conftest.$ac_ext >&5
3448
3449 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3451 as_fn_error $? "cannot compute suffix of object files: cannot compile
3452 See \`config.log' for more details" "$LINENO" 5; }
3453 fi
3454 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3455 fi
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3457 $as_echo "$ac_cv_objext" >&6; }
3458 OBJEXT=$ac_cv_objext
3459 ac_objext=$OBJEXT
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3461 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3462 if ${ac_cv_c_compiler_gnu+:} false; then :
3463   $as_echo_n "(cached) " >&6
3464 else
3465   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3466 /* end confdefs.h.  */
3467
3468 int
3469 main ()
3470 {
3471 #ifndef __GNUC__
3472        choke me
3473 #endif
3474
3475   ;
3476   return 0;
3477 }
3478 _ACEOF
3479 if ac_fn_c_try_compile "$LINENO"; then :
3480   ac_compiler_gnu=yes
3481 else
3482   ac_compiler_gnu=no
3483 fi
3484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3485 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3486
3487 fi
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3489 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3490 if test $ac_compiler_gnu = yes; then
3491   GCC=yes
3492 else
3493   GCC=
3494 fi
3495 ac_test_CFLAGS=${CFLAGS+set}
3496 ac_save_CFLAGS=$CFLAGS
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3498 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3499 if ${ac_cv_prog_cc_g+:} false; then :
3500   $as_echo_n "(cached) " >&6
3501 else
3502   ac_save_c_werror_flag=$ac_c_werror_flag
3503    ac_c_werror_flag=yes
3504    ac_cv_prog_cc_g=no
3505    CFLAGS="-g"
3506    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3507 /* end confdefs.h.  */
3508
3509 int
3510 main ()
3511 {
3512
3513   ;
3514   return 0;
3515 }
3516 _ACEOF
3517 if ac_fn_c_try_compile "$LINENO"; then :
3518   ac_cv_prog_cc_g=yes
3519 else
3520   CFLAGS=""
3521       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3522 /* end confdefs.h.  */
3523
3524 int
3525 main ()
3526 {
3527
3528   ;
3529   return 0;
3530 }
3531 _ACEOF
3532 if ac_fn_c_try_compile "$LINENO"; then :
3533
3534 else
3535   ac_c_werror_flag=$ac_save_c_werror_flag
3536          CFLAGS="-g"
3537          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3538 /* end confdefs.h.  */
3539
3540 int
3541 main ()
3542 {
3543
3544   ;
3545   return 0;
3546 }
3547 _ACEOF
3548 if ac_fn_c_try_compile "$LINENO"; then :
3549   ac_cv_prog_cc_g=yes
3550 fi
3551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3552 fi
3553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3554 fi
3555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3556    ac_c_werror_flag=$ac_save_c_werror_flag
3557 fi
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3559 $as_echo "$ac_cv_prog_cc_g" >&6; }
3560 if test "$ac_test_CFLAGS" = set; then
3561   CFLAGS=$ac_save_CFLAGS
3562 elif test $ac_cv_prog_cc_g = yes; then
3563   if test "$GCC" = yes; then
3564     CFLAGS="-g -O2"
3565   else
3566     CFLAGS="-g"
3567   fi
3568 else
3569   if test "$GCC" = yes; then
3570     CFLAGS="-O2"
3571   else
3572     CFLAGS=
3573   fi
3574 fi
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3576 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3577 if ${ac_cv_prog_cc_c89+:} false; then :
3578   $as_echo_n "(cached) " >&6
3579 else
3580   ac_cv_prog_cc_c89=no
3581 ac_save_CC=$CC
3582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3583 /* end confdefs.h.  */
3584 #include <stdarg.h>
3585 #include <stdio.h>
3586 struct stat;
3587 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3588 struct buf { int x; };
3589 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3590 static char *e (p, i)
3591      char **p;
3592      int i;
3593 {
3594   return p[i];
3595 }
3596 static char *f (char * (*g) (char **, int), char **p, ...)
3597 {
3598   char *s;
3599   va_list v;
3600   va_start (v,p);
3601   s = g (p, va_arg (v,int));
3602   va_end (v);
3603   return s;
3604 }
3605
3606 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3607    function prototypes and stuff, but not '\xHH' hex character constants.
3608    These don't provoke an error unfortunately, instead are silently treated
3609    as 'x'.  The following induces an error, until -std is added to get
3610    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3611    array size at least.  It's necessary to write '\x00'==0 to get something
3612    that's true only with -std.  */
3613 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3614
3615 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3616    inside strings and character constants.  */
3617 #define FOO(x) 'x'
3618 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3619
3620 int test (int i, double x);
3621 struct s1 {int (*f) (int a);};
3622 struct s2 {int (*f) (double a);};
3623 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3624 int argc;
3625 char **argv;
3626 int
3627 main ()
3628 {
3629 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3630   ;
3631   return 0;
3632 }
3633 _ACEOF
3634 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3635         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3636 do
3637   CC="$ac_save_CC $ac_arg"
3638   if ac_fn_c_try_compile "$LINENO"; then :
3639   ac_cv_prog_cc_c89=$ac_arg
3640 fi
3641 rm -f core conftest.err conftest.$ac_objext
3642   test "x$ac_cv_prog_cc_c89" != "xno" && break
3643 done
3644 rm -f conftest.$ac_ext
3645 CC=$ac_save_CC
3646
3647 fi
3648 # AC_CACHE_VAL
3649 case "x$ac_cv_prog_cc_c89" in
3650   x)
3651     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3652 $as_echo "none needed" >&6; } ;;
3653   xno)
3654     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3655 $as_echo "unsupported" >&6; } ;;
3656   *)
3657     CC="$CC $ac_cv_prog_cc_c89"
3658     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3659 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3660 esac
3661 if test "x$ac_cv_prog_cc_c89" != xno; then :
3662
3663 fi
3664
3665 ac_ext=c
3666 ac_cpp='$CPP $CPPFLAGS'
3667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3670
3671 depcc="$CC"   am_compiler_list=
3672
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3674 $as_echo_n "checking dependency style of $depcc... " >&6; }
3675 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3676   $as_echo_n "(cached) " >&6
3677 else
3678   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3679   # We make a subdir and do the tests there.  Otherwise we can end up
3680   # making bogus files that we don't know about and never remove.  For
3681   # instance it was reported that on HP-UX the gcc test will end up
3682   # making a dummy file named `D' -- because `-MD' means `put the output
3683   # in D'.
3684   rm -rf conftest.dir
3685   mkdir conftest.dir
3686   # Copy depcomp to subdir because otherwise we won't find it if we're
3687   # using a relative directory.
3688   cp "$am_depcomp" conftest.dir
3689   cd conftest.dir
3690   # We will build objects and dependencies in a subdirectory because
3691   # it helps to detect inapplicable dependency modes.  For instance
3692   # both Tru64's cc and ICC support -MD to output dependencies as a
3693   # side effect of compilation, but ICC will put the dependencies in
3694   # the current directory while Tru64 will put them in the object
3695   # directory.
3696   mkdir sub
3697
3698   am_cv_CC_dependencies_compiler_type=none
3699   if test "$am_compiler_list" = ""; then
3700      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3701   fi
3702   am__universal=false
3703   case " $depcc " in #(
3704      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3705      esac
3706
3707   for depmode in $am_compiler_list; do
3708     # Setup a source with many dependencies, because some compilers
3709     # like to wrap large dependency lists on column 80 (with \), and
3710     # we should not choose a depcomp mode which is confused by this.
3711     #
3712     # We need to recreate these files for each test, as the compiler may
3713     # overwrite some of them when testing with obscure command lines.
3714     # This happens at least with the AIX C compiler.
3715     : > sub/conftest.c
3716     for i in 1 2 3 4 5 6; do
3717       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3718       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3719       # Solaris 8's {/usr,}/bin/sh.
3720       touch sub/conftst$i.h
3721     done
3722     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3723
3724     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3725     # mode.  It turns out that the SunPro C++ compiler does not properly
3726     # handle `-M -o', and we need to detect this.  Also, some Intel
3727     # versions had trouble with output in subdirs
3728     am__obj=sub/conftest.${OBJEXT-o}
3729     am__minus_obj="-o $am__obj"
3730     case $depmode in
3731     gcc)
3732       # This depmode causes a compiler race in universal mode.
3733       test "$am__universal" = false || continue
3734       ;;
3735     nosideeffect)
3736       # after this tag, mechanisms are not by side-effect, so they'll
3737       # only be used when explicitly requested
3738       if test "x$enable_dependency_tracking" = xyes; then
3739         continue
3740       else
3741         break
3742       fi
3743       ;;
3744     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3745       # This compiler won't grok `-c -o', but also, the minuso test has
3746       # not run yet.  These depmodes are late enough in the game, and
3747       # so weak that their functioning should not be impacted.
3748       am__obj=conftest.${OBJEXT-o}
3749       am__minus_obj=
3750       ;;
3751     none) break ;;
3752     esac
3753     if depmode=$depmode \
3754        source=sub/conftest.c object=$am__obj \
3755        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3756        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3757          >/dev/null 2>conftest.err &&
3758        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3759        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3760        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3761        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3762       # icc doesn't choke on unknown options, it will just issue warnings
3763       # or remarks (even with -Werror).  So we grep stderr for any message
3764       # that says an option was ignored or not supported.
3765       # When given -MP, icc 7.0 and 7.1 complain thusly:
3766       #   icc: Command line warning: ignoring option '-M'; no argument required
3767       # The diagnosis changed in icc 8.0:
3768       #   icc: Command line remark: option '-MP' not supported
3769       if (grep 'ignoring option' conftest.err ||
3770           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3771         am_cv_CC_dependencies_compiler_type=$depmode
3772         break
3773       fi
3774     fi
3775   done
3776
3777   cd ..
3778   rm -rf conftest.dir
3779 else
3780   am_cv_CC_dependencies_compiler_type=none
3781 fi
3782
3783 fi
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3785 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3786 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3787
3788  if
3789   test "x$enable_dependency_tracking" != xno \
3790   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3791   am__fastdepCC_TRUE=
3792   am__fastdepCC_FALSE='#'
3793 else
3794   am__fastdepCC_TRUE='#'
3795   am__fastdepCC_FALSE=
3796 fi
3797
3798
3799
3800 if test -n "$ac_tool_prefix"; then
3801   for ac_prog in ar lib "link -lib"
3802   do
3803     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3804 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3806 $as_echo_n "checking for $ac_word... " >&6; }
3807 if ${ac_cv_prog_AR+:} false; then :
3808   $as_echo_n "(cached) " >&6
3809 else
3810   if test -n "$AR"; then
3811   ac_cv_prog_AR="$AR" # Let the user override the test.
3812 else
3813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814 for as_dir in $PATH
3815 do
3816   IFS=$as_save_IFS
3817   test -z "$as_dir" && as_dir=.
3818     for ac_exec_ext in '' $ac_executable_extensions; do
3819   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3820     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
3821     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3822     break 2
3823   fi
3824 done
3825   done
3826 IFS=$as_save_IFS
3827
3828 fi
3829 fi
3830 AR=$ac_cv_prog_AR
3831 if test -n "$AR"; then
3832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3833 $as_echo "$AR" >&6; }
3834 else
3835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3836 $as_echo "no" >&6; }
3837 fi
3838
3839
3840     test -n "$AR" && break
3841   done
3842 fi
3843 if test -z "$AR"; then
3844   ac_ct_AR=$AR
3845   for ac_prog in ar lib "link -lib"
3846 do
3847   # Extract the first word of "$ac_prog", so it can be a program name with args.
3848 set dummy $ac_prog; ac_word=$2
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3850 $as_echo_n "checking for $ac_word... " >&6; }
3851 if ${ac_cv_prog_ac_ct_AR+:} false; then :
3852   $as_echo_n "(cached) " >&6
3853 else
3854   if test -n "$ac_ct_AR"; then
3855   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3856 else
3857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3858 for as_dir in $PATH
3859 do
3860   IFS=$as_save_IFS
3861   test -z "$as_dir" && as_dir=.
3862     for ac_exec_ext in '' $ac_executable_extensions; do
3863   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3864     ac_cv_prog_ac_ct_AR="$ac_prog"
3865     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3866     break 2
3867   fi
3868 done
3869   done
3870 IFS=$as_save_IFS
3871
3872 fi
3873 fi
3874 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3875 if test -n "$ac_ct_AR"; then
3876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3877 $as_echo "$ac_ct_AR" >&6; }
3878 else
3879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3880 $as_echo "no" >&6; }
3881 fi
3882
3883
3884   test -n "$ac_ct_AR" && break
3885 done
3886
3887   if test "x$ac_ct_AR" = x; then
3888     AR="false"
3889   else
3890     case $cross_compiling:$ac_tool_warned in
3891 yes:)
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3894 ac_tool_warned=yes ;;
3895 esac
3896     AR=$ac_ct_AR
3897   fi
3898 fi
3899
3900 : ${AR=ar}
3901
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
3903 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
3904 if ${am_cv_ar_interface+:} false; then :
3905   $as_echo_n "(cached) " >&6
3906 else
3907   am_cv_ar_interface=ar
3908    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3909 /* end confdefs.h.  */
3910 int some_variable = 0;
3911 _ACEOF
3912 if ac_fn_c_try_compile "$LINENO"; then :
3913   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
3914       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3915   (eval $am_ar_try) 2>&5
3916   ac_status=$?
3917   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3918   test $ac_status = 0; }
3919       if test "$ac_status" -eq 0; then
3920         am_cv_ar_interface=ar
3921       else
3922         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
3923         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3924   (eval $am_ar_try) 2>&5
3925   ac_status=$?
3926   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3927   test $ac_status = 0; }
3928         if test "$ac_status" -eq 0; then
3929           am_cv_ar_interface=lib
3930         else
3931           am_cv_ar_interface=unknown
3932         fi
3933       fi
3934       rm -f conftest.lib libconftest.a
3935
3936 fi
3937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3938
3939 fi
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
3941 $as_echo "$am_cv_ar_interface" >&6; }
3942
3943 case $am_cv_ar_interface in
3944 ar)
3945   ;;
3946 lib)
3947   # Microsoft lib, so override with the ar-lib wrapper script.
3948   # FIXME: It is wrong to rewrite AR.
3949   # But if we don't then we get into trouble of one sort or another.
3950   # A longer-term fix would be to have automake use am__AR in this case,
3951   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
3952   # similar.
3953   AR="$am_aux_dir/ar-lib $AR"
3954   ;;
3955 unknown)
3956   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
3957   ;;
3958 esac
3959
3960
3961 # Make sure we can run config.sub.
3962 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3963   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3964
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3966 $as_echo_n "checking build system type... " >&6; }
3967 if ${ac_cv_build+:} false; then :
3968   $as_echo_n "(cached) " >&6
3969 else
3970   ac_build_alias=$build_alias
3971 test "x$ac_build_alias" = x &&
3972   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3973 test "x$ac_build_alias" = x &&
3974   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3975 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3976   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3977
3978 fi
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3980 $as_echo "$ac_cv_build" >&6; }
3981 case $ac_cv_build in
3982 *-*-*) ;;
3983 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3984 esac
3985 build=$ac_cv_build
3986 ac_save_IFS=$IFS; IFS='-'
3987 set x $ac_cv_build
3988 shift
3989 build_cpu=$1
3990 build_vendor=$2
3991 shift; shift
3992 # Remember, the first character of IFS is used to create $*,
3993 # except with old shells:
3994 build_os=$*
3995 IFS=$ac_save_IFS
3996 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3997
3998
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4000 $as_echo_n "checking host system type... " >&6; }
4001 if ${ac_cv_host+:} false; then :
4002   $as_echo_n "(cached) " >&6
4003 else
4004   if test "x$host_alias" = x; then
4005   ac_cv_host=$ac_cv_build
4006 else
4007   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4008     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4009 fi
4010
4011 fi
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4013 $as_echo "$ac_cv_host" >&6; }
4014 case $ac_cv_host in
4015 *-*-*) ;;
4016 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4017 esac
4018 host=$ac_cv_host
4019 ac_save_IFS=$IFS; IFS='-'
4020 set x $ac_cv_host
4021 shift
4022 host_cpu=$1
4023 host_vendor=$2
4024 shift; shift
4025 # Remember, the first character of IFS is used to create $*,
4026 # except with old shells:
4027 host_os=$*
4028 IFS=$ac_save_IFS
4029 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4030
4031
4032
4033
4034
4035 # Extra arguments to configure
4036
4037 # Check whether --with-mpfr_include was given.
4038 if test "${with_mpfr_include+set}" = set; then :
4039   withval=$with_mpfr_include; CPPFLAGS="-I$withval $CPPFLAGS"
4040 fi
4041
4042
4043 # Check whether --with-mpfr_lib was given.
4044 if test "${with_mpfr_lib+set}" = set; then :
4045   withval=$with_mpfr_lib; LDFLAGS="-L$withval $LDFLAGS"
4046 fi
4047
4048
4049 # Check whether --with-mpfr was given.
4050 if test "${with_mpfr+set}" = set; then :
4051   withval=$with_mpfr;
4052             if test -z "$with_mpfr_include" -a -z "$with_mpfr_lib" ; then
4053                CPPFLAGS="-I$withval/include $CPPFLAGS"
4054                LDFLAGS="-L$withval/lib $LDFLAGS"
4055             else
4056                { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4057 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4058 as_fn_error $? "Do not use --with-mpfr and --with-mpfr-include/--with-mpfr-lib options simultaneously.
4059 See \`config.log' for more details" "$LINENO" 5; }
4060             fi
4061
4062 fi
4063
4064
4065 # Check whether --with-gmp_include was given.
4066 if test "${with_gmp_include+set}" = set; then :
4067   withval=$with_gmp_include; CPPFLAGS="-I$withval $CPPFLAGS"
4068 fi
4069
4070
4071 # Check whether --with-gmp_lib was given.
4072 if test "${with_gmp_lib+set}" = set; then :
4073   withval=$with_gmp_lib; LDFLAGS="-L$withval $LDFLAGS"
4074 fi
4075
4076
4077 # Check whether --with-gmp was given.
4078 if test "${with_gmp+set}" = set; then :
4079   withval=$with_gmp;
4080             if test -z "$with_gmp_lib" -a -z "$with_gmp_include" ; then
4081                CPPFLAGS="-I$withval/include $CPPFLAGS"
4082                LDFLAGS="-L$withval/lib $LDFLAGS"
4083             else
4084                { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4085 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4086 as_fn_error $? "Do not use --with-gmp and --with-gmp-include/--with-gmp-lib options simultaneously.
4087 See \`config.log' for more details" "$LINENO" 5; }
4088             fi
4089
4090 fi
4091
4092 # Check whether --enable-logging was given.
4093 if test "${enable_logging+set}" = set; then :
4094   enableval=$enable_logging; case $enableval in
4095                  yes) if test "x$enable_shared" = "xno"; then :
4096   as_fn_error $? "Logging works only with shared libraries; do not mix --enable-logging and --disable-shared" "$LINENO" 5
4097 fi ;;
4098                  no)  ;;
4099                  *)   as_fn_error $? "Bad value for --enable-logging: Use yes or no" "$LINENO" 5 ;;
4100               esac
4101
4102
4103 fi
4104
4105 # Check whether --enable-valgrind-tests was given.
4106 if test "${enable_valgrind_tests+set}" = set; then :
4107   enableval=$enable_valgrind_tests; case $enableval in
4108                  yes)
4109   # Run self-tests under valgrind?
4110   if test "$cross_compiling" = no; then
4111     for ac_prog in valgrind
4112 do
4113   # Extract the first word of "$ac_prog", so it can be a program name with args.
4114 set dummy $ac_prog; ac_word=$2
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4116 $as_echo_n "checking for $ac_word... " >&6; }
4117 if ${ac_cv_prog_VALGRIND+:} false; then :
4118   $as_echo_n "(cached) " >&6
4119 else
4120   if test -n "$VALGRIND"; then
4121   ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test.
4122 else
4123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4124 for as_dir in $PATH
4125 do
4126   IFS=$as_save_IFS
4127   test -z "$as_dir" && as_dir=.
4128     for ac_exec_ext in '' $ac_executable_extensions; do
4129   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4130     ac_cv_prog_VALGRIND="$ac_prog"
4131     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4132     break 2
4133   fi
4134 done
4135   done
4136 IFS=$as_save_IFS
4137
4138 fi
4139 fi
4140 VALGRIND=$ac_cv_prog_VALGRIND
4141 if test -n "$VALGRIND"; then
4142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
4143 $as_echo "$VALGRIND" >&6; }
4144 else
4145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4146 $as_echo "no" >&6; }
4147 fi
4148
4149
4150   test -n "$VALGRIND" && break
4151 done
4152
4153   fi
4154
4155   if test -n "$VALGRIND" && $VALGRIND -q true > /dev/null 2>&1; then
4156     opt_valgrind_tests=yes
4157     VALGRIND="$VALGRIND -q --error-exitcode=1 --leak-check=full"
4158 # Addition AE: enable suppression file through a shell variable
4159     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for valgrind suppression file" >&5
4160 $as_echo_n "checking for valgrind suppression file... " >&6; }
4161     if test -n "$VALGRIND_SUPPRESSION"; then
4162        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND_SUPPRESSION" >&5
4163 $as_echo "$VALGRIND_SUPPRESSION" >&6; }
4164        VALGRIND="$VALGRIND --suppressions=$VALGRIND_SUPPRESSION"
4165     else
4166        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4167 $as_echo "no" >&6; }
4168     fi
4169
4170 $as_echo "#define MPC_USE_VALGRIND 1" >>confdefs.h
4171
4172   else
4173     opt_valgrind_tests=no
4174     VALGRIND=
4175   fi
4176
4177   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether self tests are run under valgrind" >&5
4178 $as_echo_n "checking whether self tests are run under valgrind... " >&6; }
4179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opt_valgrind_tests" >&5
4180 $as_echo "$opt_valgrind_tests" >&6; }
4181  ;;
4182                  no)  ;;
4183                  *)   as_fn_error $? "Bad value for --enable-valgrind-tests: Use yes or no" "$LINENO" 5 ;;
4184               esac
4185
4186
4187 fi
4188
4189
4190 # Check for CC and CFLAGS in gmp.h unless the user specified one of them
4191 # look for EGREP and SED here, see continued problem
4192 # at http://lists.gforge.inria.fr/pipermail/mpc-discuss/2012-January/001056.html
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4194 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4195 if ${ac_cv_path_GREP+:} false; then :
4196   $as_echo_n "(cached) " >&6
4197 else
4198   if test -z "$GREP"; then
4199   ac_path_GREP_found=false
4200   # Loop through the user's path and test for each of PROGNAME-LIST
4201   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4202 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4203 do
4204   IFS=$as_save_IFS
4205   test -z "$as_dir" && as_dir=.
4206     for ac_prog in grep ggrep; do
4207     for ac_exec_ext in '' $ac_executable_extensions; do
4208       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4209       as_fn_executable_p "$ac_path_GREP" || continue
4210 # Check for GNU ac_path_GREP and select it if it is found.
4211   # Check for GNU $ac_path_GREP
4212 case `"$ac_path_GREP" --version 2>&1` in
4213 *GNU*)
4214   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4215 *)
4216   ac_count=0
4217   $as_echo_n 0123456789 >"conftest.in"
4218   while :
4219   do
4220     cat "conftest.in" "conftest.in" >"conftest.tmp"
4221     mv "conftest.tmp" "conftest.in"
4222     cp "conftest.in" "conftest.nl"
4223     $as_echo 'GREP' >> "conftest.nl"
4224     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4225     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4226     as_fn_arith $ac_count + 1 && ac_count=$as_val
4227     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4228       # Best one so far, save it but keep looking for a better one
4229       ac_cv_path_GREP="$ac_path_GREP"
4230       ac_path_GREP_max=$ac_count
4231     fi
4232     # 10*(2^10) chars as input seems more than enough
4233     test $ac_count -gt 10 && break
4234   done
4235   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4236 esac
4237
4238       $ac_path_GREP_found && break 3
4239     done
4240   done
4241   done
4242 IFS=$as_save_IFS
4243   if test -z "$ac_cv_path_GREP"; then
4244     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4245   fi
4246 else
4247   ac_cv_path_GREP=$GREP
4248 fi
4249
4250 fi
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4252 $as_echo "$ac_cv_path_GREP" >&6; }
4253  GREP="$ac_cv_path_GREP"
4254
4255
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4257 $as_echo_n "checking for egrep... " >&6; }
4258 if ${ac_cv_path_EGREP+:} false; then :
4259   $as_echo_n "(cached) " >&6
4260 else
4261   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4262    then ac_cv_path_EGREP="$GREP -E"
4263    else
4264      if test -z "$EGREP"; then
4265   ac_path_EGREP_found=false
4266   # Loop through the user's path and test for each of PROGNAME-LIST
4267   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4268 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4269 do
4270   IFS=$as_save_IFS
4271   test -z "$as_dir" && as_dir=.
4272     for ac_prog in egrep; do
4273     for ac_exec_ext in '' $ac_executable_extensions; do
4274       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4275       as_fn_executable_p "$ac_path_EGREP" || continue
4276 # Check for GNU ac_path_EGREP and select it if it is found.
4277   # Check for GNU $ac_path_EGREP
4278 case `"$ac_path_EGREP" --version 2>&1` in
4279 *GNU*)
4280   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4281 *)
4282   ac_count=0
4283   $as_echo_n 0123456789 >"conftest.in"
4284   while :
4285   do
4286     cat "conftest.in" "conftest.in" >"conftest.tmp"
4287     mv "conftest.tmp" "conftest.in"
4288     cp "conftest.in" "conftest.nl"
4289     $as_echo 'EGREP' >> "conftest.nl"
4290     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4291     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4292     as_fn_arith $ac_count + 1 && ac_count=$as_val
4293     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4294       # Best one so far, save it but keep looking for a better one
4295       ac_cv_path_EGREP="$ac_path_EGREP"
4296       ac_path_EGREP_max=$ac_count
4297     fi
4298     # 10*(2^10) chars as input seems more than enough
4299     test $ac_count -gt 10 && break
4300   done
4301   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4302 esac
4303
4304       $ac_path_EGREP_found && break 3
4305     done
4306   done
4307   done
4308 IFS=$as_save_IFS
4309   if test -z "$ac_cv_path_EGREP"; then
4310     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4311   fi
4312 else
4313   ac_cv_path_EGREP=$EGREP
4314 fi
4315
4316    fi
4317 fi
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4319 $as_echo "$ac_cv_path_EGREP" >&6; }
4320  EGREP="$ac_cv_path_EGREP"
4321
4322
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4324 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4325 if ${ac_cv_path_SED+:} false; then :
4326   $as_echo_n "(cached) " >&6
4327 else
4328             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4329      for ac_i in 1 2 3 4 5 6 7; do
4330        ac_script="$ac_script$as_nl$ac_script"
4331      done
4332      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4333      { ac_script=; unset ac_script;}
4334      if test -z "$SED"; then
4335   ac_path_SED_found=false
4336   # Loop through the user's path and test for each of PROGNAME-LIST
4337   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4338 for as_dir in $PATH
4339 do
4340   IFS=$as_save_IFS
4341   test -z "$as_dir" && as_dir=.
4342     for ac_prog in sed gsed; do
4343     for ac_exec_ext in '' $ac_executable_extensions; do
4344       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4345       as_fn_executable_p "$ac_path_SED" || continue
4346 # Check for GNU ac_path_SED and select it if it is found.
4347   # Check for GNU $ac_path_SED
4348 case `"$ac_path_SED" --version 2>&1` in
4349 *GNU*)
4350   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4351 *)
4352   ac_count=0
4353   $as_echo_n 0123456789 >"conftest.in"
4354   while :
4355   do
4356     cat "conftest.in" "conftest.in" >"conftest.tmp"
4357     mv "conftest.tmp" "conftest.in"
4358     cp "conftest.in" "conftest.nl"
4359     $as_echo '' >> "conftest.nl"
4360     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4361     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4362     as_fn_arith $ac_count + 1 && ac_count=$as_val
4363     if test $ac_count -gt ${ac_path_SED_max-0}; then
4364       # Best one so far, save it but keep looking for a better one
4365       ac_cv_path_SED="$ac_path_SED"
4366       ac_path_SED_max=$ac_count
4367     fi
4368     # 10*(2^10) chars as input seems more than enough
4369     test $ac_count -gt 10 && break
4370   done
4371   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4372 esac
4373
4374       $ac_path_SED_found && break 3
4375     done
4376   done
4377   done
4378 IFS=$as_save_IFS
4379   if test -z "$ac_cv_path_SED"; then
4380     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4381   fi
4382 else
4383   ac_cv_path_SED=$SED
4384 fi
4385
4386 fi
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4388 $as_echo "$ac_cv_path_SED" >&6; }
4389  SED="$ac_cv_path_SED"
4390   rm -f conftest.sed
4391
4392 if test -z "$USER_CC" && test -z "$USER_CFLAGS"; then
4393
4394    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CC and CFLAGS in gmp.h" >&5
4395 $as_echo_n "checking for CC and CFLAGS in gmp.h... " >&6; }
4396    # AC_PROG_CPP triggers the search for a C compiler; use hack instead
4397    for cpp in /lib/cpp gcc cc c99
4398    do
4399       test $cpp = /lib/cpp || cpp="$cpp -E"
4400       echo foo > conftest.c
4401       if $cpp $CPPFLAGS conftest.c > /dev/null 2> /dev/null ; then
4402          # Get CC
4403          echo "#include \"gmp.h\"" >  conftest.c
4404          echo "MPFR_OPTION __GMP_CC"           >> conftest.c
4405          GMP_CC=`$cpp $CPPFLAGS conftest.c 2> /dev/null | $EGREP MPFR_OPTION | $SED -e 's/MPFR_OPTION //g;s/ *" *//g'`
4406          # Get CFLAGS
4407          echo "#include \"gmp.h\"" >  conftest.c
4408          echo "MPFR_OPTION __GMP_CFLAGS"           >> conftest.c
4409          GMP_CFLAGS=`$cpp $CPPFLAGS conftest.c 2> /dev/null | $EGREP MPFR_OPTION | $SED -e 's/MPFR_OPTION //g;s/ *" *//g'`
4410          break
4411       fi
4412    done
4413
4414    if test "x$GMP_CFLAGS" = "x__GMP_CFLAGS" -o "x$GMP_CC" = "x__GMP_CC" ; then
4415       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4416 $as_echo "no" >&6; }
4417       GMP_CC=
4418       GMP_CFLAGS=
4419    else
4420       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CC=$GMP_CC CFLAGS=$GMP_CFLAGS" >&5
4421 $as_echo "yes CC=$GMP_CC CFLAGS=$GMP_CFLAGS" >&6; }
4422    fi
4423
4424    # Check for validity of CC and CFLAGS obtained from gmp.h
4425    if test -n "$GMP_CC$GMP_CFLAGS" ; then
4426       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CC=$GMP_CC and CFLAGS=$GMP_CFLAGS" >&5
4427 $as_echo_n "checking for CC=$GMP_CC and CFLAGS=$GMP_CFLAGS... " >&6; }
4428       echo "int main (void) { return 0; }" > conftest.c
4429       if $GMP_CC $GMP_CFLAGS -o conftest conftest.c 2> /dev/null ; then
4430          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4431 $as_echo "yes" >&6; }
4432          CC=$GMP_CC
4433          CFLAGS=$GMP_CFLAGS
4434       else
4435          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4436 $as_echo "no" >&6; }
4437       fi
4438    fi
4439
4440    rm -f conftest*
4441
4442 fi
4443
4444 # Setup CC and CFLAGS
4445 ac_ext=c
4446 ac_cpp='$CPP $CPPFLAGS'
4447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4450 if test -n "$ac_tool_prefix"; then
4451   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4452 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4454 $as_echo_n "checking for $ac_word... " >&6; }
4455 if ${ac_cv_prog_CC+:} false; then :
4456   $as_echo_n "(cached) " >&6
4457 else
4458   if test -n "$CC"; then
4459   ac_cv_prog_CC="$CC" # Let the user override the test.
4460 else
4461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462 for as_dir in $PATH
4463 do
4464   IFS=$as_save_IFS
4465   test -z "$as_dir" && as_dir=.
4466     for ac_exec_ext in '' $ac_executable_extensions; do
4467   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4468     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4469     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4470     break 2
4471   fi
4472 done
4473   done
4474 IFS=$as_save_IFS
4475
4476 fi
4477 fi
4478 CC=$ac_cv_prog_CC
4479 if test -n "$CC"; then
4480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4481 $as_echo "$CC" >&6; }
4482 else
4483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4484 $as_echo "no" >&6; }
4485 fi
4486
4487
4488 fi
4489 if test -z "$ac_cv_prog_CC"; then
4490   ac_ct_CC=$CC
4491   # Extract the first word of "gcc", so it can be a program name with args.
4492 set dummy gcc; ac_word=$2
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4494 $as_echo_n "checking for $ac_word... " >&6; }
4495 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4496   $as_echo_n "(cached) " >&6
4497 else
4498   if test -n "$ac_ct_CC"; then
4499   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4500 else
4501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4502 for as_dir in $PATH
4503 do
4504   IFS=$as_save_IFS
4505   test -z "$as_dir" && as_dir=.
4506     for ac_exec_ext in '' $ac_executable_extensions; do
4507   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4508     ac_cv_prog_ac_ct_CC="gcc"
4509     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4510     break 2
4511   fi
4512 done
4513   done
4514 IFS=$as_save_IFS
4515
4516 fi
4517 fi
4518 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4519 if test -n "$ac_ct_CC"; then
4520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4521 $as_echo "$ac_ct_CC" >&6; }
4522 else
4523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4524 $as_echo "no" >&6; }
4525 fi
4526
4527   if test "x$ac_ct_CC" = x; then
4528     CC=""
4529   else
4530     case $cross_compiling:$ac_tool_warned in
4531 yes:)
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4533 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4534 ac_tool_warned=yes ;;
4535 esac
4536     CC=$ac_ct_CC
4537   fi
4538 else
4539   CC="$ac_cv_prog_CC"
4540 fi
4541
4542 if test -z "$CC"; then
4543           if test -n "$ac_tool_prefix"; then
4544     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4545 set dummy ${ac_tool_prefix}cc; ac_word=$2
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4547 $as_echo_n "checking for $ac_word... " >&6; }
4548 if ${ac_cv_prog_CC+:} false; then :
4549   $as_echo_n "(cached) " >&6
4550 else
4551   if test -n "$CC"; then
4552   ac_cv_prog_CC="$CC" # Let the user override the test.
4553 else
4554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555 for as_dir in $PATH
4556 do
4557   IFS=$as_save_IFS
4558   test -z "$as_dir" && as_dir=.
4559     for ac_exec_ext in '' $ac_executable_extensions; do
4560   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4561     ac_cv_prog_CC="${ac_tool_prefix}cc"
4562     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4563     break 2
4564   fi
4565 done
4566   done
4567 IFS=$as_save_IFS
4568
4569 fi
4570 fi
4571 CC=$ac_cv_prog_CC
4572 if test -n "$CC"; then
4573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4574 $as_echo "$CC" >&6; }
4575 else
4576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4577 $as_echo "no" >&6; }
4578 fi
4579
4580
4581   fi
4582 fi
4583 if test -z "$CC"; then
4584   # Extract the first word of "cc", so it can be a program name with args.
4585 set dummy cc; ac_word=$2
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4587 $as_echo_n "checking for $ac_word... " >&6; }
4588 if ${ac_cv_prog_CC+:} false; then :
4589   $as_echo_n "(cached) " >&6
4590 else
4591   if test -n "$CC"; then
4592   ac_cv_prog_CC="$CC" # Let the user override the test.
4593 else
4594   ac_prog_rejected=no
4595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596 for as_dir in $PATH
4597 do
4598   IFS=$as_save_IFS
4599   test -z "$as_dir" && as_dir=.
4600     for ac_exec_ext in '' $ac_executable_extensions; do
4601   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4602     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4603        ac_prog_rejected=yes
4604        continue
4605      fi
4606     ac_cv_prog_CC="cc"
4607     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4608     break 2
4609   fi
4610 done
4611   done
4612 IFS=$as_save_IFS
4613
4614 if test $ac_prog_rejected = yes; then
4615   # We found a bogon in the path, so make sure we never use it.
4616   set dummy $ac_cv_prog_CC
4617   shift
4618   if test $# != 0; then
4619     # We chose a different compiler from the bogus one.
4620     # However, it has the same basename, so the bogon will be chosen
4621     # first if we set CC to just the basename; use the full file name.
4622     shift
4623     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4624   fi
4625 fi
4626 fi
4627 fi
4628 CC=$ac_cv_prog_CC
4629 if test -n "$CC"; then
4630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4631 $as_echo "$CC" >&6; }
4632 else
4633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4634 $as_echo "no" >&6; }
4635 fi
4636
4637
4638 fi
4639 if test -z "$CC"; then
4640   if test -n "$ac_tool_prefix"; then
4641   for ac_prog in cl.exe
4642   do
4643     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4644 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4646 $as_echo_n "checking for $ac_word... " >&6; }
4647 if ${ac_cv_prog_CC+:} false; then :
4648   $as_echo_n "(cached) " >&6
4649 else
4650   if test -n "$CC"; then
4651   ac_cv_prog_CC="$CC" # Let the user override the test.
4652 else
4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654 for as_dir in $PATH
4655 do
4656   IFS=$as_save_IFS
4657   test -z "$as_dir" && as_dir=.
4658     for ac_exec_ext in '' $ac_executable_extensions; do
4659   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4660     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4661     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4662     break 2
4663   fi
4664 done
4665   done
4666 IFS=$as_save_IFS
4667
4668 fi
4669 fi
4670 CC=$ac_cv_prog_CC
4671 if test -n "$CC"; then
4672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4673 $as_echo "$CC" >&6; }
4674 else
4675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4676 $as_echo "no" >&6; }
4677 fi
4678
4679
4680     test -n "$CC" && break
4681   done
4682 fi
4683 if test -z "$CC"; then
4684   ac_ct_CC=$CC
4685   for ac_prog in cl.exe
4686 do
4687   # Extract the first word of "$ac_prog", so it can be a program name with args.
4688 set dummy $ac_prog; ac_word=$2
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4690 $as_echo_n "checking for $ac_word... " >&6; }
4691 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4692   $as_echo_n "(cached) " >&6
4693 else
4694   if test -n "$ac_ct_CC"; then
4695   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4696 else
4697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 for as_dir in $PATH
4699 do
4700   IFS=$as_save_IFS
4701   test -z "$as_dir" && as_dir=.
4702     for ac_exec_ext in '' $ac_executable_extensions; do
4703   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4704     ac_cv_prog_ac_ct_CC="$ac_prog"
4705     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4706     break 2
4707   fi
4708 done
4709   done
4710 IFS=$as_save_IFS
4711
4712 fi
4713 fi
4714 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4715 if test -n "$ac_ct_CC"; then
4716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4717 $as_echo "$ac_ct_CC" >&6; }
4718 else
4719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4720 $as_echo "no" >&6; }
4721 fi
4722
4723
4724   test -n "$ac_ct_CC" && break
4725 done
4726
4727   if test "x$ac_ct_CC" = x; then
4728     CC=""
4729   else
4730     case $cross_compiling:$ac_tool_warned in
4731 yes:)
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4733 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4734 ac_tool_warned=yes ;;
4735 esac
4736     CC=$ac_ct_CC
4737   fi
4738 fi
4739
4740 fi
4741
4742
4743 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4744 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4745 as_fn_error $? "no acceptable C compiler found in \$PATH
4746 See \`config.log' for more details" "$LINENO" 5; }
4747
4748 # Provide some information about the compiler.
4749 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4750 set X $ac_compile
4751 ac_compiler=$2
4752 for ac_option in --version -v -V -qversion; do
4753   { { ac_try="$ac_compiler $ac_option >&5"
4754 case "(($ac_try" in
4755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4756   *) ac_try_echo=$ac_try;;
4757 esac
4758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4759 $as_echo "$ac_try_echo"; } >&5
4760   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4761   ac_status=$?
4762   if test -s conftest.err; then
4763     sed '10a\
4764 ... rest of stderr output deleted ...
4765          10q' conftest.err >conftest.er1
4766     cat conftest.er1 >&5
4767   fi
4768   rm -f conftest.er1 conftest.err
4769   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4770   test $ac_status = 0; }
4771 done
4772
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4774 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4775 if ${ac_cv_c_compiler_gnu+:} false; then :
4776   $as_echo_n "(cached) " >&6
4777 else
4778   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4779 /* end confdefs.h.  */
4780
4781 int
4782 main ()
4783 {
4784 #ifndef __GNUC__
4785        choke me
4786 #endif
4787
4788   ;
4789   return 0;
4790 }
4791 _ACEOF
4792 if ac_fn_c_try_compile "$LINENO"; then :
4793   ac_compiler_gnu=yes
4794 else
4795   ac_compiler_gnu=no
4796 fi
4797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4798 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4799
4800 fi
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4802 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4803 if test $ac_compiler_gnu = yes; then
4804   GCC=yes
4805 else
4806   GCC=
4807 fi
4808 ac_test_CFLAGS=${CFLAGS+set}
4809 ac_save_CFLAGS=$CFLAGS
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4811 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4812 if ${ac_cv_prog_cc_g+:} false; then :
4813   $as_echo_n "(cached) " >&6
4814 else
4815   ac_save_c_werror_flag=$ac_c_werror_flag
4816    ac_c_werror_flag=yes
4817    ac_cv_prog_cc_g=no
4818    CFLAGS="-g"
4819    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4820 /* end confdefs.h.  */
4821
4822 int
4823 main ()
4824 {
4825
4826   ;
4827   return 0;
4828 }
4829 _ACEOF
4830 if ac_fn_c_try_compile "$LINENO"; then :
4831   ac_cv_prog_cc_g=yes
4832 else
4833   CFLAGS=""
4834       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4835 /* end confdefs.h.  */
4836
4837 int
4838 main ()
4839 {
4840
4841   ;
4842   return 0;
4843 }
4844 _ACEOF
4845 if ac_fn_c_try_compile "$LINENO"; then :
4846
4847 else
4848   ac_c_werror_flag=$ac_save_c_werror_flag
4849          CFLAGS="-g"
4850          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4851 /* end confdefs.h.  */
4852
4853 int
4854 main ()
4855 {
4856
4857   ;
4858   return 0;
4859 }
4860 _ACEOF
4861 if ac_fn_c_try_compile "$LINENO"; then :
4862   ac_cv_prog_cc_g=yes
4863 fi
4864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4865 fi
4866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4867 fi
4868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4869    ac_c_werror_flag=$ac_save_c_werror_flag
4870 fi
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4872 $as_echo "$ac_cv_prog_cc_g" >&6; }
4873 if test "$ac_test_CFLAGS" = set; then
4874   CFLAGS=$ac_save_CFLAGS
4875 elif test $ac_cv_prog_cc_g = yes; then
4876   if test "$GCC" = yes; then
4877     CFLAGS="-g -O2"
4878   else
4879     CFLAGS="-g"
4880   fi
4881 else
4882   if test "$GCC" = yes; then
4883     CFLAGS="-O2"
4884   else
4885     CFLAGS=
4886   fi
4887 fi
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4889 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4890 if ${ac_cv_prog_cc_c89+:} false; then :
4891   $as_echo_n "(cached) " >&6
4892 else
4893   ac_cv_prog_cc_c89=no
4894 ac_save_CC=$CC
4895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4896 /* end confdefs.h.  */
4897 #include <stdarg.h>
4898 #include <stdio.h>
4899 struct stat;
4900 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4901 struct buf { int x; };
4902 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4903 static char *e (p, i)
4904      char **p;
4905      int i;
4906 {
4907   return p[i];
4908 }
4909 static char *f (char * (*g) (char **, int), char **p, ...)
4910 {
4911   char *s;
4912   va_list v;
4913   va_start (v,p);
4914   s = g (p, va_arg (v,int));
4915   va_end (v);
4916   return s;
4917 }
4918
4919 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4920    function prototypes and stuff, but not '\xHH' hex character constants.
4921    These don't provoke an error unfortunately, instead are silently treated
4922    as 'x'.  The following induces an error, until -std is added to get
4923    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4924    array size at least.  It's necessary to write '\x00'==0 to get something
4925    that's true only with -std.  */
4926 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4927
4928 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4929    inside strings and character constants.  */
4930 #define FOO(x) 'x'
4931 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4932
4933 int test (int i, double x);
4934 struct s1 {int (*f) (int a);};
4935 struct s2 {int (*f) (double a);};
4936 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4937 int argc;
4938 char **argv;
4939 int
4940 main ()
4941 {
4942 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4943   ;
4944   return 0;
4945 }
4946 _ACEOF
4947 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4948         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4949 do
4950   CC="$ac_save_CC $ac_arg"
4951   if ac_fn_c_try_compile "$LINENO"; then :
4952   ac_cv_prog_cc_c89=$ac_arg
4953 fi
4954 rm -f core conftest.err conftest.$ac_objext
4955   test "x$ac_cv_prog_cc_c89" != "xno" && break
4956 done
4957 rm -f conftest.$ac_ext
4958 CC=$ac_save_CC
4959
4960 fi
4961 # AC_CACHE_VAL
4962 case "x$ac_cv_prog_cc_c89" in
4963   x)
4964     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4965 $as_echo "none needed" >&6; } ;;
4966   xno)
4967     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4968 $as_echo "unsupported" >&6; } ;;
4969   *)
4970     CC="$CC $ac_cv_prog_cc_c89"
4971     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4972 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4973 esac
4974 if test "x$ac_cv_prog_cc_c89" != xno; then :
4975
4976 fi
4977
4978 ac_ext=c
4979 ac_cpp='$CPP $CPPFLAGS'
4980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4983
4984 depcc="$CC"   am_compiler_list=
4985
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4987 $as_echo_n "checking dependency style of $depcc... " >&6; }
4988 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4989   $as_echo_n "(cached) " >&6
4990 else
4991   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4992   # We make a subdir and do the tests there.  Otherwise we can end up
4993   # making bogus files that we don't know about and never remove.  For
4994   # instance it was reported that on HP-UX the gcc test will end up
4995   # making a dummy file named `D' -- because `-MD' means `put the output
4996   # in D'.
4997   rm -rf conftest.dir
4998   mkdir conftest.dir
4999   # Copy depcomp to subdir because otherwise we won't find it if we're
5000   # using a relative directory.
5001   cp "$am_depcomp" conftest.dir
5002   cd conftest.dir
5003   # We will build objects and dependencies in a subdirectory because
5004   # it helps to detect inapplicable dependency modes.  For instance
5005   # both Tru64's cc and ICC support -MD to output dependencies as a
5006   # side effect of compilation, but ICC will put the dependencies in
5007   # the current directory while Tru64 will put them in the object
5008   # directory.
5009   mkdir sub
5010
5011   am_cv_CC_dependencies_compiler_type=none
5012   if test "$am_compiler_list" = ""; then
5013      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5014   fi
5015   am__universal=false
5016   case " $depcc " in #(
5017      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5018      esac
5019
5020   for depmode in $am_compiler_list; do
5021     # Setup a source with many dependencies, because some compilers
5022     # like to wrap large dependency lists on column 80 (with \), and
5023     # we should not choose a depcomp mode which is confused by this.
5024     #
5025     # We need to recreate these files for each test, as the compiler may
5026     # overwrite some of them when testing with obscure command lines.
5027     # This happens at least with the AIX C compiler.
5028     : > sub/conftest.c
5029     for i in 1 2 3 4 5 6; do
5030       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5031       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5032       # Solaris 8's {/usr,}/bin/sh.
5033       touch sub/conftst$i.h
5034     done
5035     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5036
5037     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5038     # mode.  It turns out that the SunPro C++ compiler does not properly
5039     # handle `-M -o', and we need to detect this.  Also, some Intel
5040     # versions had trouble with output in subdirs
5041     am__obj=sub/conftest.${OBJEXT-o}
5042     am__minus_obj="-o $am__obj"
5043     case $depmode in
5044     gcc)
5045       # This depmode causes a compiler race in universal mode.
5046       test "$am__universal" = false || continue
5047       ;;
5048     nosideeffect)
5049       # after this tag, mechanisms are not by side-effect, so they'll
5050       # only be used when explicitly requested
5051       if test "x$enable_dependency_tracking" = xyes; then
5052         continue
5053       else
5054         break
5055       fi
5056       ;;
5057     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5058       # This compiler won't grok `-c -o', but also, the minuso test has
5059       # not run yet.  These depmodes are late enough in the game, and
5060       # so weak that their functioning should not be impacted.
5061       am__obj=conftest.${OBJEXT-o}
5062       am__minus_obj=
5063       ;;
5064     none) break ;;
5065     esac
5066     if depmode=$depmode \
5067        source=sub/conftest.c object=$am__obj \
5068        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5069        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5070          >/dev/null 2>conftest.err &&
5071        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5072        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5073        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5074        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5075       # icc doesn't choke on unknown options, it will just issue warnings
5076       # or remarks (even with -Werror).  So we grep stderr for any message
5077       # that says an option was ignored or not supported.
5078       # When given -MP, icc 7.0 and 7.1 complain thusly:
5079       #   icc: Command line warning: ignoring option '-M'; no argument required
5080       # The diagnosis changed in icc 8.0:
5081       #   icc: Command line remark: option '-MP' not supported
5082       if (grep 'ignoring option' conftest.err ||
5083           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5084         am_cv_CC_dependencies_compiler_type=$depmode
5085         break
5086       fi
5087     fi
5088   done
5089
5090   cd ..
5091   rm -rf conftest.dir
5092 else
5093   am_cv_CC_dependencies_compiler_type=none
5094 fi
5095
5096 fi
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5098 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5099 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5100
5101  if
5102   test "x$enable_dependency_tracking" != xno \
5103   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5104   am__fastdepCC_TRUE=
5105   am__fastdepCC_FALSE='#'
5106 else
5107   am__fastdepCC_TRUE='#'
5108   am__fastdepCC_FALSE=
5109 fi
5110
5111
5112 ac_ext=c
5113 ac_cpp='$CPP $CPPFLAGS'
5114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5117
5118
5119 # Set up LibTool
5120 case `pwd` in
5121   *\ * | *\     *)
5122     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5123 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5124 esac
5125
5126
5127
5128 macro_version='2.4.2'
5129 macro_revision='1.3337'
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143 ltmain="$ac_aux_dir/ltmain.sh"
5144
5145 # Backslashify metacharacters that are still active within
5146 # double-quoted strings.
5147 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5148
5149 # Same as above, but do not quote variable references.
5150 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5151
5152 # Sed substitution to delay expansion of an escaped shell variable in a
5153 # double_quote_subst'ed string.
5154 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5155
5156 # Sed substitution to delay expansion of an escaped single quote.
5157 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5158
5159 # Sed substitution to avoid accidental globbing in evaled expressions
5160 no_glob_subst='s/\*/\\\*/g'
5161
5162 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5163 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5164 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5165
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5167 $as_echo_n "checking how to print strings... " >&6; }
5168 # Test print first, because it will be a builtin if present.
5169 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5170    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5171   ECHO='print -r --'
5172 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5173   ECHO='printf %s\n'
5174 else
5175   # Use this function as a fallback that always works.
5176   func_fallback_echo ()
5177   {
5178     eval 'cat <<_LTECHO_EOF
5179 $1
5180 _LTECHO_EOF'
5181   }
5182   ECHO='func_fallback_echo'
5183 fi
5184
5185 # func_echo_all arg...
5186 # Invoke $ECHO with all args, space-separated.
5187 func_echo_all ()
5188 {
5189     $ECHO ""
5190 }
5191
5192 case "$ECHO" in
5193   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5194 $as_echo "printf" >&6; } ;;
5195   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5196 $as_echo "print -r" >&6; } ;;
5197   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5198 $as_echo "cat" >&6; } ;;
5199 esac
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5215 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5216 if ${ac_cv_path_SED+:} false; then :
5217   $as_echo_n "(cached) " >&6
5218 else
5219             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5220      for ac_i in 1 2 3 4 5 6 7; do
5221        ac_script="$ac_script$as_nl$ac_script"
5222      done
5223      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5224      { ac_script=; unset ac_script;}
5225      if test -z "$SED"; then
5226   ac_path_SED_found=false
5227   # Loop through the user's path and test for each of PROGNAME-LIST
5228   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229 for as_dir in $PATH
5230 do
5231   IFS=$as_save_IFS
5232   test -z "$as_dir" && as_dir=.
5233     for ac_prog in sed gsed; do
5234     for ac_exec_ext in '' $ac_executable_extensions; do
5235       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5236       as_fn_executable_p "$ac_path_SED" || continue
5237 # Check for GNU ac_path_SED and select it if it is found.
5238   # Check for GNU $ac_path_SED
5239 case `"$ac_path_SED" --version 2>&1` in
5240 *GNU*)
5241   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5242 *)
5243   ac_count=0
5244   $as_echo_n 0123456789 >"conftest.in"
5245   while :
5246   do
5247     cat "conftest.in" "conftest.in" >"conftest.tmp"
5248     mv "conftest.tmp" "conftest.in"
5249     cp "conftest.in" "conftest.nl"
5250     $as_echo '' >> "conftest.nl"
5251     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5252     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5253     as_fn_arith $ac_count + 1 && ac_count=$as_val
5254     if test $ac_count -gt ${ac_path_SED_max-0}; then
5255       # Best one so far, save it but keep looking for a better one
5256       ac_cv_path_SED="$ac_path_SED"
5257       ac_path_SED_max=$ac_count
5258     fi
5259     # 10*(2^10) chars as input seems more than enough
5260     test $ac_count -gt 10 && break
5261   done
5262   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5263 esac
5264
5265       $ac_path_SED_found && break 3
5266     done
5267   done
5268   done
5269 IFS=$as_save_IFS
5270   if test -z "$ac_cv_path_SED"; then
5271     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5272   fi
5273 else
5274   ac_cv_path_SED=$SED
5275 fi
5276
5277 fi
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5279 $as_echo "$ac_cv_path_SED" >&6; }
5280  SED="$ac_cv_path_SED"
5281   rm -f conftest.sed
5282
5283 test -z "$SED" && SED=sed
5284 Xsed="$SED -e 1s/^X//"
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5297 $as_echo_n "checking for fgrep... " >&6; }
5298 if ${ac_cv_path_FGREP+:} false; then :
5299   $as_echo_n "(cached) " >&6
5300 else
5301   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5302    then ac_cv_path_FGREP="$GREP -F"
5303    else
5304      if test -z "$FGREP"; then
5305   ac_path_FGREP_found=false
5306   # Loop through the user's path and test for each of PROGNAME-LIST
5307   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5308 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5309 do
5310   IFS=$as_save_IFS
5311   test -z "$as_dir" && as_dir=.
5312     for ac_prog in fgrep; do
5313     for ac_exec_ext in '' $ac_executable_extensions; do
5314       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5315       as_fn_executable_p "$ac_path_FGREP" || continue
5316 # Check for GNU ac_path_FGREP and select it if it is found.
5317   # Check for GNU $ac_path_FGREP
5318 case `"$ac_path_FGREP" --version 2>&1` in
5319 *GNU*)
5320   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5321 *)
5322   ac_count=0
5323   $as_echo_n 0123456789 >"conftest.in"
5324   while :
5325   do
5326     cat "conftest.in" "conftest.in" >"conftest.tmp"
5327     mv "conftest.tmp" "conftest.in"
5328     cp "conftest.in" "conftest.nl"
5329     $as_echo 'FGREP' >> "conftest.nl"
5330     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5331     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5332     as_fn_arith $ac_count + 1 && ac_count=$as_val
5333     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5334       # Best one so far, save it but keep looking for a better one
5335       ac_cv_path_FGREP="$ac_path_FGREP"
5336       ac_path_FGREP_max=$ac_count
5337     fi
5338     # 10*(2^10) chars as input seems more than enough
5339     test $ac_count -gt 10 && break
5340   done
5341   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5342 esac
5343
5344       $ac_path_FGREP_found && break 3
5345     done
5346   done
5347   done
5348 IFS=$as_save_IFS
5349   if test -z "$ac_cv_path_FGREP"; then
5350     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5351   fi
5352 else
5353   ac_cv_path_FGREP=$FGREP
5354 fi
5355
5356    fi
5357 fi
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5359 $as_echo "$ac_cv_path_FGREP" >&6; }
5360  FGREP="$ac_cv_path_FGREP"
5361
5362
5363 test -z "$GREP" && GREP=grep
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383 # Check whether --with-gnu-ld was given.
5384 if test "${with_gnu_ld+set}" = set; then :
5385   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5386 else
5387   with_gnu_ld=no
5388 fi
5389
5390 ac_prog=ld
5391 if test "$GCC" = yes; then
5392   # Check if gcc -print-prog-name=ld gives a path.
5393   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5394 $as_echo_n "checking for ld used by $CC... " >&6; }
5395   case $host in
5396   *-*-mingw*)
5397     # gcc leaves a trailing carriage return which upsets mingw
5398     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5399   *)
5400     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5401   esac
5402   case $ac_prog in
5403     # Accept absolute paths.
5404     [\\/]* | ?:[\\/]*)
5405       re_direlt='/[^/][^/]*/\.\./'
5406       # Canonicalize the pathname of ld
5407       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5408       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5409         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5410       done
5411       test -z "$LD" && LD="$ac_prog"
5412       ;;
5413   "")
5414     # If it fails, then pretend we aren't using GCC.
5415     ac_prog=ld
5416     ;;
5417   *)
5418     # If it is relative, then search for the first ld in PATH.
5419     with_gnu_ld=unknown
5420     ;;
5421   esac
5422 elif test "$with_gnu_ld" = yes; then
5423   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5424 $as_echo_n "checking for GNU ld... " >&6; }
5425 else
5426   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5427 $as_echo_n "checking for non-GNU ld... " >&6; }
5428 fi
5429 if ${lt_cv_path_LD+:} false; then :
5430   $as_echo_n "(cached) " >&6
5431 else
5432   if test -z "$LD"; then
5433   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5434   for ac_dir in $PATH; do
5435     IFS="$lt_save_ifs"
5436     test -z "$ac_dir" && ac_dir=.
5437     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5438       lt_cv_path_LD="$ac_dir/$ac_prog"
5439       # Check to see if the program is GNU ld.  I'd rather use --version,
5440       # but apparently some variants of GNU ld only accept -v.
5441       # Break only if it was the GNU/non-GNU ld that we prefer.
5442       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5443       *GNU* | *'with BFD'*)
5444         test "$with_gnu_ld" != no && break
5445         ;;
5446       *)
5447         test "$with_gnu_ld" != yes && break
5448         ;;
5449       esac
5450     fi
5451   done
5452   IFS="$lt_save_ifs"
5453 else
5454   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5455 fi
5456 fi
5457
5458 LD="$lt_cv_path_LD"
5459 if test -n "$LD"; then
5460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5461 $as_echo "$LD" >&6; }
5462 else
5463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5464 $as_echo "no" >&6; }
5465 fi
5466 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5468 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5469 if ${lt_cv_prog_gnu_ld+:} false; then :
5470   $as_echo_n "(cached) " >&6
5471 else
5472   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5473 case `$LD -v 2>&1 </dev/null` in
5474 *GNU* | *'with BFD'*)
5475   lt_cv_prog_gnu_ld=yes
5476   ;;
5477 *)
5478   lt_cv_prog_gnu_ld=no
5479   ;;
5480 esac
5481 fi
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5483 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5484 with_gnu_ld=$lt_cv_prog_gnu_ld
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5495 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5496 if ${lt_cv_path_NM+:} false; then :
5497   $as_echo_n "(cached) " >&6
5498 else
5499   if test -n "$NM"; then
5500   # Let the user override the test.
5501   lt_cv_path_NM="$NM"
5502 else
5503   lt_nm_to_check="${ac_tool_prefix}nm"
5504   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5505     lt_nm_to_check="$lt_nm_to_check nm"
5506   fi
5507   for lt_tmp_nm in $lt_nm_to_check; do
5508     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5509     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5510       IFS="$lt_save_ifs"
5511       test -z "$ac_dir" && ac_dir=.
5512       tmp_nm="$ac_dir/$lt_tmp_nm"
5513       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5514         # Check to see if the nm accepts a BSD-compat flag.
5515         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5516         #   nm: unknown option "B" ignored
5517         # Tru64's nm complains that /dev/null is an invalid object file
5518         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5519         */dev/null* | *'Invalid file or object type'*)
5520           lt_cv_path_NM="$tmp_nm -B"
5521           break
5522           ;;
5523         *)
5524           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5525           */dev/null*)
5526             lt_cv_path_NM="$tmp_nm -p"
5527             break
5528             ;;
5529           *)
5530             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5531             continue # so that we can try to find one that supports BSD flags
5532             ;;
5533           esac
5534           ;;
5535         esac
5536       fi
5537     done
5538     IFS="$lt_save_ifs"
5539   done
5540   : ${lt_cv_path_NM=no}
5541 fi
5542 fi
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5544 $as_echo "$lt_cv_path_NM" >&6; }
5545 if test "$lt_cv_path_NM" != "no"; then
5546   NM="$lt_cv_path_NM"
5547 else
5548   # Didn't find any BSD compatible name lister, look for dumpbin.
5549   if test -n "$DUMPBIN"; then :
5550     # Let the user override the test.
5551   else
5552     if test -n "$ac_tool_prefix"; then
5553   for ac_prog in dumpbin "link -dump"
5554   do
5555     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5556 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5558 $as_echo_n "checking for $ac_word... " >&6; }
5559 if ${ac_cv_prog_DUMPBIN+:} false; then :
5560   $as_echo_n "(cached) " >&6
5561 else
5562   if test -n "$DUMPBIN"; then
5563   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5564 else
5565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5566 for as_dir in $PATH
5567 do
5568   IFS=$as_save_IFS
5569   test -z "$as_dir" && as_dir=.
5570     for ac_exec_ext in '' $ac_executable_extensions; do
5571   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5572     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5573     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5574     break 2
5575   fi
5576 done
5577   done
5578 IFS=$as_save_IFS
5579
5580 fi
5581 fi
5582 DUMPBIN=$ac_cv_prog_DUMPBIN
5583 if test -n "$DUMPBIN"; then
5584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5585 $as_echo "$DUMPBIN" >&6; }
5586 else
5587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5588 $as_echo "no" >&6; }
5589 fi
5590
5591
5592     test -n "$DUMPBIN" && break
5593   done
5594 fi
5595 if test -z "$DUMPBIN"; then
5596   ac_ct_DUMPBIN=$DUMPBIN
5597   for ac_prog in dumpbin "link -dump"
5598 do
5599   # Extract the first word of "$ac_prog", so it can be a program name with args.
5600 set dummy $ac_prog; ac_word=$2
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5602 $as_echo_n "checking for $ac_word... " >&6; }
5603 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5604   $as_echo_n "(cached) " >&6
5605 else
5606   if test -n "$ac_ct_DUMPBIN"; then
5607   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5608 else
5609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5610 for as_dir in $PATH
5611 do
5612   IFS=$as_save_IFS
5613   test -z "$as_dir" && as_dir=.
5614     for ac_exec_ext in '' $ac_executable_extensions; do
5615   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5616     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5617     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5618     break 2
5619   fi
5620 done
5621   done
5622 IFS=$as_save_IFS
5623
5624 fi
5625 fi
5626 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5627 if test -n "$ac_ct_DUMPBIN"; then
5628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5629 $as_echo "$ac_ct_DUMPBIN" >&6; }
5630 else
5631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5632 $as_echo "no" >&6; }
5633 fi
5634
5635
5636   test -n "$ac_ct_DUMPBIN" && break
5637 done
5638
5639   if test "x$ac_ct_DUMPBIN" = x; then
5640     DUMPBIN=":"
5641   else
5642     case $cross_compiling:$ac_tool_warned in
5643 yes:)
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5645 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5646 ac_tool_warned=yes ;;
5647 esac
5648     DUMPBIN=$ac_ct_DUMPBIN
5649   fi
5650 fi
5651
5652     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5653     *COFF*)
5654       DUMPBIN="$DUMPBIN -symbols"
5655       ;;
5656     *)
5657       DUMPBIN=:
5658       ;;
5659     esac
5660   fi
5661
5662   if test "$DUMPBIN" != ":"; then
5663     NM="$DUMPBIN"
5664   fi
5665 fi
5666 test -z "$NM" && NM=nm
5667
5668
5669
5670
5671
5672
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5674 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5675 if ${lt_cv_nm_interface+:} false; then :
5676   $as_echo_n "(cached) " >&6
5677 else
5678   lt_cv_nm_interface="BSD nm"
5679   echo "int some_variable = 0;" > conftest.$ac_ext
5680   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5681   (eval "$ac_compile" 2>conftest.err)
5682   cat conftest.err >&5
5683   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5684   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5685   cat conftest.err >&5
5686   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5687   cat conftest.out >&5
5688   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5689     lt_cv_nm_interface="MS dumpbin"
5690   fi
5691   rm -f conftest*
5692 fi
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5694 $as_echo "$lt_cv_nm_interface" >&6; }
5695
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5697 $as_echo_n "checking whether ln -s works... " >&6; }
5698 LN_S=$as_ln_s
5699 if test "$LN_S" = "ln -s"; then
5700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5701 $as_echo "yes" >&6; }
5702 else
5703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5704 $as_echo "no, using $LN_S" >&6; }
5705 fi
5706
5707 # find the maximum length of command line arguments
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5709 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5710 if ${lt_cv_sys_max_cmd_len+:} false; then :
5711   $as_echo_n "(cached) " >&6
5712 else
5713     i=0
5714   teststring="ABCD"
5715
5716   case $build_os in
5717   msdosdjgpp*)
5718     # On DJGPP, this test can blow up pretty badly due to problems in libc
5719     # (any single argument exceeding 2000 bytes causes a buffer overrun
5720     # during glob expansion).  Even if it were fixed, the result of this
5721     # check would be larger than it should be.
5722     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5723     ;;
5724
5725   gnu*)
5726     # Under GNU Hurd, this test is not required because there is
5727     # no limit to the length of command line arguments.
5728     # Libtool will interpret -1 as no limit whatsoever
5729     lt_cv_sys_max_cmd_len=-1;
5730     ;;
5731
5732   cygwin* | mingw* | cegcc*)
5733     # On Win9x/ME, this test blows up -- it succeeds, but takes
5734     # about 5 minutes as the teststring grows exponentially.
5735     # Worse, since 9x/ME are not pre-emptively multitasking,
5736     # you end up with a "frozen" computer, even though with patience
5737     # the test eventually succeeds (with a max line length of 256k).
5738     # Instead, let's just punt: use the minimum linelength reported by
5739     # all of the supported platforms: 8192 (on NT/2K/XP).
5740     lt_cv_sys_max_cmd_len=8192;
5741     ;;
5742
5743   mint*)
5744     # On MiNT this can take a long time and run out of memory.
5745     lt_cv_sys_max_cmd_len=8192;
5746     ;;
5747
5748   amigaos*)
5749     # On AmigaOS with pdksh, this test takes hours, literally.
5750     # So we just punt and use a minimum line length of 8192.
5751     lt_cv_sys_max_cmd_len=8192;
5752     ;;
5753
5754   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5755     # This has been around since 386BSD, at least.  Likely further.
5756     if test -x /sbin/sysctl; then
5757       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5758     elif test -x /usr/sbin/sysctl; then
5759       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5760     else
5761       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5762     fi
5763     # And add a safety zone
5764     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5765     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5766     ;;
5767
5768   interix*)
5769     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5770     lt_cv_sys_max_cmd_len=196608
5771     ;;
5772
5773   osf*)
5774     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5775     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5776     # nice to cause kernel panics so lets avoid the loop below.
5777     # First set a reasonable default.
5778     lt_cv_sys_max_cmd_len=16384
5779     #
5780     if test -x /sbin/sysconfig; then
5781       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5782         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5783       esac
5784     fi
5785     ;;
5786   sco3.2v5*)
5787     lt_cv_sys_max_cmd_len=102400
5788     ;;
5789   sysv5* | sco5v6* | sysv4.2uw2*)
5790     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5791     if test -n "$kargmax"; then
5792       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5793     else
5794       lt_cv_sys_max_cmd_len=32768
5795     fi
5796     ;;
5797   *)
5798     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5799     if test -n "$lt_cv_sys_max_cmd_len"; then
5800       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5801       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5802     else
5803       # Make teststring a little bigger before we do anything with it.
5804       # a 1K string should be a reasonable start.
5805       for i in 1 2 3 4 5 6 7 8 ; do
5806         teststring=$teststring$teststring
5807       done
5808       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5809       # If test is not a shell built-in, we'll probably end up computing a
5810       # maximum length that is only half of the actual maximum length, but
5811       # we can't tell.
5812       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5813                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5814               test $i != 17 # 1/2 MB should be enough
5815       do
5816         i=`expr $i + 1`
5817         teststring=$teststring$teststring
5818       done
5819       # Only check the string length outside the loop.
5820       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5821       teststring=
5822       # Add a significant safety factor because C++ compilers can tack on
5823       # massive amounts of additional arguments before passing them to the
5824       # linker.  It appears as though 1/2 is a usable value.
5825       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5826     fi
5827     ;;
5828   esac
5829
5830 fi
5831
5832 if test -n $lt_cv_sys_max_cmd_len ; then
5833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5834 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5835 else
5836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5837 $as_echo "none" >&6; }
5838 fi
5839 max_cmd_len=$lt_cv_sys_max_cmd_len
5840
5841
5842
5843
5844
5845
5846 : ${CP="cp -f"}
5847 : ${MV="mv -f"}
5848 : ${RM="rm -f"}
5849
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5851 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5852 # Try some XSI features
5853 xsi_shell=no
5854 ( _lt_dummy="a/b/c"
5855   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5856       = c,a/b,b/c, \
5857     && eval 'test $(( 1 + 1 )) -eq 2 \
5858     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5859   && xsi_shell=yes
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5861 $as_echo "$xsi_shell" >&6; }
5862
5863
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5865 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5866 lt_shell_append=no
5867 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5868     >/dev/null 2>&1 \
5869   && lt_shell_append=yes
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5871 $as_echo "$lt_shell_append" >&6; }
5872
5873
5874 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5875   lt_unset=unset
5876 else
5877   lt_unset=false
5878 fi
5879
5880
5881
5882
5883
5884 # test EBCDIC or ASCII
5885 case `echo X|tr X '\101'` in
5886  A) # ASCII based system
5887     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5888   lt_SP2NL='tr \040 \012'
5889   lt_NL2SP='tr \015\012 \040\040'
5890   ;;
5891  *) # EBCDIC based system
5892   lt_SP2NL='tr \100 \n'
5893   lt_NL2SP='tr \r\n \100\100'
5894   ;;
5895 esac
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5906 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5907 if ${lt_cv_to_host_file_cmd+:} false; then :
5908   $as_echo_n "(cached) " >&6
5909 else
5910   case $host in
5911   *-*-mingw* )
5912     case $build in
5913       *-*-mingw* ) # actually msys
5914         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5915         ;;
5916       *-*-cygwin* )
5917         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5918         ;;
5919       * ) # otherwise, assume *nix
5920         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5921         ;;
5922     esac
5923     ;;
5924   *-*-cygwin* )
5925     case $build in
5926       *-*-mingw* ) # actually msys
5927         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5928         ;;
5929       *-*-cygwin* )
5930         lt_cv_to_host_file_cmd=func_convert_file_noop
5931         ;;
5932       * ) # otherwise, assume *nix
5933         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5934         ;;
5935     esac
5936     ;;
5937   * ) # unhandled hosts (and "normal" native builds)
5938     lt_cv_to_host_file_cmd=func_convert_file_noop
5939     ;;
5940 esac
5941
5942 fi
5943
5944 to_host_file_cmd=$lt_cv_to_host_file_cmd
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5946 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5947
5948
5949
5950
5951
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5953 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5954 if ${lt_cv_to_tool_file_cmd+:} false; then :
5955   $as_echo_n "(cached) " >&6
5956 else
5957   #assume ordinary cross tools, or native build.
5958 lt_cv_to_tool_file_cmd=func_convert_file_noop
5959 case $host in
5960   *-*-mingw* )
5961     case $build in
5962       *-*-mingw* ) # actually msys
5963         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5964         ;;
5965     esac
5966     ;;
5967 esac
5968
5969 fi
5970
5971 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5973 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5974
5975
5976
5977
5978
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5980 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5981 if ${lt_cv_ld_reload_flag+:} false; then :
5982   $as_echo_n "(cached) " >&6
5983 else
5984   lt_cv_ld_reload_flag='-r'
5985 fi
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5987 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5988 reload_flag=$lt_cv_ld_reload_flag
5989 case $reload_flag in
5990 "" | " "*) ;;
5991 *) reload_flag=" $reload_flag" ;;
5992 esac
5993 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5994 case $host_os in
5995   cygwin* | mingw* | pw32* | cegcc*)
5996     if test "$GCC" != yes; then
5997       reload_cmds=false
5998     fi
5999     ;;
6000   darwin*)
6001     if test "$GCC" = yes; then
6002       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6003     else
6004       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6005     fi
6006     ;;
6007 esac
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017 if test -n "$ac_tool_prefix"; then
6018   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6019 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6021 $as_echo_n "checking for $ac_word... " >&6; }
6022 if ${ac_cv_prog_OBJDUMP+:} false; then :
6023   $as_echo_n "(cached) " >&6
6024 else
6025   if test -n "$OBJDUMP"; then
6026   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6027 else
6028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6029 for as_dir in $PATH
6030 do
6031   IFS=$as_save_IFS
6032   test -z "$as_dir" && as_dir=.
6033     for ac_exec_ext in '' $ac_executable_extensions; do
6034   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6035     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6036     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6037     break 2
6038   fi
6039 done
6040   done
6041 IFS=$as_save_IFS
6042
6043 fi
6044 fi
6045 OBJDUMP=$ac_cv_prog_OBJDUMP
6046 if test -n "$OBJDUMP"; then
6047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6048 $as_echo "$OBJDUMP" >&6; }
6049 else
6050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6051 $as_echo "no" >&6; }
6052 fi
6053
6054
6055 fi
6056 if test -z "$ac_cv_prog_OBJDUMP"; then
6057   ac_ct_OBJDUMP=$OBJDUMP
6058   # Extract the first word of "objdump", so it can be a program name with args.
6059 set dummy objdump; ac_word=$2
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6061 $as_echo_n "checking for $ac_word... " >&6; }
6062 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6063   $as_echo_n "(cached) " >&6
6064 else
6065   if test -n "$ac_ct_OBJDUMP"; then
6066   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6067 else
6068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6069 for as_dir in $PATH
6070 do
6071   IFS=$as_save_IFS
6072   test -z "$as_dir" && as_dir=.
6073     for ac_exec_ext in '' $ac_executable_extensions; do
6074   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6075     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6076     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6077     break 2
6078   fi
6079 done
6080   done
6081 IFS=$as_save_IFS
6082
6083 fi
6084 fi
6085 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6086 if test -n "$ac_ct_OBJDUMP"; then
6087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6088 $as_echo "$ac_ct_OBJDUMP" >&6; }
6089 else
6090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6091 $as_echo "no" >&6; }
6092 fi
6093
6094   if test "x$ac_ct_OBJDUMP" = x; then
6095     OBJDUMP="false"
6096   else
6097     case $cross_compiling:$ac_tool_warned in
6098 yes:)
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6100 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6101 ac_tool_warned=yes ;;
6102 esac
6103     OBJDUMP=$ac_ct_OBJDUMP
6104   fi
6105 else
6106   OBJDUMP="$ac_cv_prog_OBJDUMP"
6107 fi
6108
6109 test -z "$OBJDUMP" && OBJDUMP=objdump
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6120 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6121 if ${lt_cv_deplibs_check_method+:} false; then :
6122   $as_echo_n "(cached) " >&6
6123 else
6124   lt_cv_file_magic_cmd='$MAGIC_CMD'
6125 lt_cv_file_magic_test_file=
6126 lt_cv_deplibs_check_method='unknown'
6127 # Need to set the preceding variable on all platforms that support
6128 # interlibrary dependencies.
6129 # 'none' -- dependencies not supported.
6130 # `unknown' -- same as none, but documents that we really don't know.
6131 # 'pass_all' -- all dependencies passed with no checks.
6132 # 'test_compile' -- check by making test program.
6133 # 'file_magic [[regex]]' -- check by looking for files in library path
6134 # which responds to the $file_magic_cmd with a given extended regex.
6135 # If you have `file' or equivalent on your system and you're not sure
6136 # whether `pass_all' will *always* work, you probably want this one.
6137
6138 case $host_os in
6139 aix[4-9]*)
6140   lt_cv_deplibs_check_method=pass_all
6141   ;;
6142
6143 beos*)
6144   lt_cv_deplibs_check_method=pass_all
6145   ;;
6146
6147 bsdi[45]*)
6148   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6149   lt_cv_file_magic_cmd='/usr/bin/file -L'
6150   lt_cv_file_magic_test_file=/shlib/libc.so
6151   ;;
6152
6153 cygwin*)
6154   # func_win32_libid is a shell function defined in ltmain.sh
6155   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6156   lt_cv_file_magic_cmd='func_win32_libid'
6157   ;;
6158
6159 mingw* | pw32*)
6160   # Base MSYS/MinGW do not provide the 'file' command needed by
6161   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6162   # unless we find 'file', for example because we are cross-compiling.
6163   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6164   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6165     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6166     lt_cv_file_magic_cmd='func_win32_libid'
6167   else
6168     # Keep this pattern in sync with the one in func_win32_libid.
6169     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6170     lt_cv_file_magic_cmd='$OBJDUMP -f'
6171   fi
6172   ;;
6173
6174 cegcc*)
6175   # use the weaker test based on 'objdump'. See mingw*.
6176   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6177   lt_cv_file_magic_cmd='$OBJDUMP -f'
6178   ;;
6179
6180 darwin* | rhapsody*)
6181   lt_cv_deplibs_check_method=pass_all
6182   ;;
6183
6184 freebsd* | dragonfly*)
6185   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6186     case $host_cpu in
6187     i*86 )
6188       # Not sure whether the presence of OpenBSD here was a mistake.
6189       # Let's accept both of them until this is cleared up.
6190       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6191       lt_cv_file_magic_cmd=/usr/bin/file
6192       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6193       ;;
6194     esac
6195   else
6196     lt_cv_deplibs_check_method=pass_all
6197   fi
6198   ;;
6199
6200 gnu*)
6201   lt_cv_deplibs_check_method=pass_all
6202   ;;
6203
6204 haiku*)
6205   lt_cv_deplibs_check_method=pass_all
6206   ;;
6207
6208 hpux10.20* | hpux11*)
6209   lt_cv_file_magic_cmd=/usr/bin/file
6210   case $host_cpu in
6211   ia64*)
6212     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6213     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6214     ;;
6215   hppa*64*)
6216     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]'
6217     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6218     ;;
6219   *)
6220     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6221     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6222     ;;
6223   esac
6224   ;;
6225
6226 interix[3-9]*)
6227   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6228   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6229   ;;
6230
6231 irix5* | irix6* | nonstopux*)
6232   case $LD in
6233   *-32|*"-32 ") libmagic=32-bit;;
6234   *-n32|*"-n32 ") libmagic=N32;;
6235   *-64|*"-64 ") libmagic=64-bit;;
6236   *) libmagic=never-match;;
6237   esac
6238   lt_cv_deplibs_check_method=pass_all
6239   ;;
6240
6241 # This must be Linux ELF.
6242 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6243   lt_cv_deplibs_check_method=pass_all
6244   ;;
6245
6246 netbsd* | netbsdelf*-gnu)
6247   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6248     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6249   else
6250     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6251   fi
6252   ;;
6253
6254 newos6*)
6255   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6256   lt_cv_file_magic_cmd=/usr/bin/file
6257   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6258   ;;
6259
6260 *nto* | *qnx*)
6261   lt_cv_deplibs_check_method=pass_all
6262   ;;
6263
6264 openbsd*)
6265   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6266     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6267   else
6268     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6269   fi
6270   ;;
6271
6272 osf3* | osf4* | osf5*)
6273   lt_cv_deplibs_check_method=pass_all
6274   ;;
6275
6276 rdos*)
6277   lt_cv_deplibs_check_method=pass_all
6278   ;;
6279
6280 solaris*)
6281   lt_cv_deplibs_check_method=pass_all
6282   ;;
6283
6284 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6285   lt_cv_deplibs_check_method=pass_all
6286   ;;
6287
6288 sysv4 | sysv4.3*)
6289   case $host_vendor in
6290   motorola)
6291     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]'
6292     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6293     ;;
6294   ncr)
6295     lt_cv_deplibs_check_method=pass_all
6296     ;;
6297   sequent)
6298     lt_cv_file_magic_cmd='/bin/file'
6299     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6300     ;;
6301   sni)
6302     lt_cv_file_magic_cmd='/bin/file'
6303     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6304     lt_cv_file_magic_test_file=/lib/libc.so
6305     ;;
6306   siemens)
6307     lt_cv_deplibs_check_method=pass_all
6308     ;;
6309   pc)
6310     lt_cv_deplibs_check_method=pass_all
6311     ;;
6312   esac
6313   ;;
6314
6315 tpf*)
6316   lt_cv_deplibs_check_method=pass_all
6317   ;;
6318 esac
6319
6320 fi
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6322 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6323
6324 file_magic_glob=
6325 want_nocaseglob=no
6326 if test "$build" = "$host"; then
6327   case $host_os in
6328   mingw* | pw32*)
6329     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6330       want_nocaseglob=yes
6331     else
6332       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6333     fi
6334     ;;
6335   esac
6336 fi
6337
6338 file_magic_cmd=$lt_cv_file_magic_cmd
6339 deplibs_check_method=$lt_cv_deplibs_check_method
6340 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363 if test -n "$ac_tool_prefix"; then
6364   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6365 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6367 $as_echo_n "checking for $ac_word... " >&6; }
6368 if ${ac_cv_prog_DLLTOOL+:} false; then :
6369   $as_echo_n "(cached) " >&6
6370 else
6371   if test -n "$DLLTOOL"; then
6372   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6373 else
6374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6375 for as_dir in $PATH
6376 do
6377   IFS=$as_save_IFS
6378   test -z "$as_dir" && as_dir=.
6379     for ac_exec_ext in '' $ac_executable_extensions; do
6380   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6381     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6382     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6383     break 2
6384   fi
6385 done
6386   done
6387 IFS=$as_save_IFS
6388
6389 fi
6390 fi
6391 DLLTOOL=$ac_cv_prog_DLLTOOL
6392 if test -n "$DLLTOOL"; then
6393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6394 $as_echo "$DLLTOOL" >&6; }
6395 else
6396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6397 $as_echo "no" >&6; }
6398 fi
6399
6400
6401 fi
6402 if test -z "$ac_cv_prog_DLLTOOL"; then
6403   ac_ct_DLLTOOL=$DLLTOOL
6404   # Extract the first word of "dlltool", so it can be a program name with args.
6405 set dummy dlltool; ac_word=$2
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6407 $as_echo_n "checking for $ac_word... " >&6; }
6408 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6409   $as_echo_n "(cached) " >&6
6410 else
6411   if test -n "$ac_ct_DLLTOOL"; then
6412   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6413 else
6414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6415 for as_dir in $PATH
6416 do
6417   IFS=$as_save_IFS
6418   test -z "$as_dir" && as_dir=.
6419     for ac_exec_ext in '' $ac_executable_extensions; do
6420   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6421     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6422     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6423     break 2
6424   fi
6425 done
6426   done
6427 IFS=$as_save_IFS
6428
6429 fi
6430 fi
6431 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6432 if test -n "$ac_ct_DLLTOOL"; then
6433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6434 $as_echo "$ac_ct_DLLTOOL" >&6; }
6435 else
6436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6437 $as_echo "no" >&6; }
6438 fi
6439
6440   if test "x$ac_ct_DLLTOOL" = x; then
6441     DLLTOOL="false"
6442   else
6443     case $cross_compiling:$ac_tool_warned in
6444 yes:)
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6446 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6447 ac_tool_warned=yes ;;
6448 esac
6449     DLLTOOL=$ac_ct_DLLTOOL
6450   fi
6451 else
6452   DLLTOOL="$ac_cv_prog_DLLTOOL"
6453 fi
6454
6455 test -z "$DLLTOOL" && DLLTOOL=dlltool
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6467 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6468 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6469   $as_echo_n "(cached) " >&6
6470 else
6471   lt_cv_sharedlib_from_linklib_cmd='unknown'
6472
6473 case $host_os in
6474 cygwin* | mingw* | pw32* | cegcc*)
6475   # two different shell functions defined in ltmain.sh
6476   # decide which to use based on capabilities of $DLLTOOL
6477   case `$DLLTOOL --help 2>&1` in
6478   *--identify-strict*)
6479     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6480     ;;
6481   *)
6482     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6483     ;;
6484   esac
6485   ;;
6486 *)
6487   # fallback: assume linklib IS sharedlib
6488   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6489   ;;
6490 esac
6491
6492 fi
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6494 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6495 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6496 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6497
6498
6499
6500
6501
6502
6503
6504 if test -n "$ac_tool_prefix"; then
6505   for ac_prog in ar
6506   do
6507     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6508 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6510 $as_echo_n "checking for $ac_word... " >&6; }
6511 if ${ac_cv_prog_AR+:} false; then :
6512   $as_echo_n "(cached) " >&6
6513 else
6514   if test -n "$AR"; then
6515   ac_cv_prog_AR="$AR" # Let the user override the test.
6516 else
6517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6518 for as_dir in $PATH
6519 do
6520   IFS=$as_save_IFS
6521   test -z "$as_dir" && as_dir=.
6522     for ac_exec_ext in '' $ac_executable_extensions; do
6523   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6524     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6525     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6526     break 2
6527   fi
6528 done
6529   done
6530 IFS=$as_save_IFS
6531
6532 fi
6533 fi
6534 AR=$ac_cv_prog_AR
6535 if test -n "$AR"; then
6536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6537 $as_echo "$AR" >&6; }
6538 else
6539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6540 $as_echo "no" >&6; }
6541 fi
6542
6543
6544     test -n "$AR" && break
6545   done
6546 fi
6547 if test -z "$AR"; then
6548   ac_ct_AR=$AR
6549   for ac_prog in ar
6550 do
6551   # Extract the first word of "$ac_prog", so it can be a program name with args.
6552 set dummy $ac_prog; ac_word=$2
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6554 $as_echo_n "checking for $ac_word... " >&6; }
6555 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6556   $as_echo_n "(cached) " >&6
6557 else
6558   if test -n "$ac_ct_AR"; then
6559   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6560 else
6561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6562 for as_dir in $PATH
6563 do
6564   IFS=$as_save_IFS
6565   test -z "$as_dir" && as_dir=.
6566     for ac_exec_ext in '' $ac_executable_extensions; do
6567   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6568     ac_cv_prog_ac_ct_AR="$ac_prog"
6569     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6570     break 2
6571   fi
6572 done
6573   done
6574 IFS=$as_save_IFS
6575
6576 fi
6577 fi
6578 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6579 if test -n "$ac_ct_AR"; then
6580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6581 $as_echo "$ac_ct_AR" >&6; }
6582 else
6583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6584 $as_echo "no" >&6; }
6585 fi
6586
6587
6588   test -n "$ac_ct_AR" && break
6589 done
6590
6591   if test "x$ac_ct_AR" = x; then
6592     AR="false"
6593   else
6594     case $cross_compiling:$ac_tool_warned in
6595 yes:)
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6598 ac_tool_warned=yes ;;
6599 esac
6600     AR=$ac_ct_AR
6601   fi
6602 fi
6603
6604 : ${AR=ar}
6605 : ${AR_FLAGS=cru}
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6618 $as_echo_n "checking for archiver @FILE support... " >&6; }
6619 if ${lt_cv_ar_at_file+:} false; then :
6620   $as_echo_n "(cached) " >&6
6621 else
6622   lt_cv_ar_at_file=no
6623    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6624 /* end confdefs.h.  */
6625
6626 int
6627 main ()
6628 {
6629
6630   ;
6631   return 0;
6632 }
6633 _ACEOF
6634 if ac_fn_c_try_compile "$LINENO"; then :
6635   echo conftest.$ac_objext > conftest.lst
6636       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6637       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6638   (eval $lt_ar_try) 2>&5
6639   ac_status=$?
6640   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6641   test $ac_status = 0; }
6642       if test "$ac_status" -eq 0; then
6643         # Ensure the archiver fails upon bogus file names.
6644         rm -f conftest.$ac_objext libconftest.a
6645         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6646   (eval $lt_ar_try) 2>&5
6647   ac_status=$?
6648   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6649   test $ac_status = 0; }
6650         if test "$ac_status" -ne 0; then
6651           lt_cv_ar_at_file=@
6652         fi
6653       fi
6654       rm -f conftest.* libconftest.a
6655
6656 fi
6657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6658
6659 fi
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6661 $as_echo "$lt_cv_ar_at_file" >&6; }
6662
6663 if test "x$lt_cv_ar_at_file" = xno; then
6664   archiver_list_spec=
6665 else
6666   archiver_list_spec=$lt_cv_ar_at_file
6667 fi
6668
6669
6670
6671
6672
6673
6674
6675 if test -n "$ac_tool_prefix"; then
6676   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6677 set dummy ${ac_tool_prefix}strip; ac_word=$2
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6679 $as_echo_n "checking for $ac_word... " >&6; }
6680 if ${ac_cv_prog_STRIP+:} false; then :
6681   $as_echo_n "(cached) " >&6
6682 else
6683   if test -n "$STRIP"; then
6684   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6685 else
6686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687 for as_dir in $PATH
6688 do
6689   IFS=$as_save_IFS
6690   test -z "$as_dir" && as_dir=.
6691     for ac_exec_ext in '' $ac_executable_extensions; do
6692   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6693     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6694     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6695     break 2
6696   fi
6697 done
6698   done
6699 IFS=$as_save_IFS
6700
6701 fi
6702 fi
6703 STRIP=$ac_cv_prog_STRIP
6704 if test -n "$STRIP"; then
6705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6706 $as_echo "$STRIP" >&6; }
6707 else
6708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6709 $as_echo "no" >&6; }
6710 fi
6711
6712
6713 fi
6714 if test -z "$ac_cv_prog_STRIP"; then
6715   ac_ct_STRIP=$STRIP
6716   # Extract the first word of "strip", so it can be a program name with args.
6717 set dummy strip; ac_word=$2
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6719 $as_echo_n "checking for $ac_word... " >&6; }
6720 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6721   $as_echo_n "(cached) " >&6
6722 else
6723   if test -n "$ac_ct_STRIP"; then
6724   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6725 else
6726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727 for as_dir in $PATH
6728 do
6729   IFS=$as_save_IFS
6730   test -z "$as_dir" && as_dir=.
6731     for ac_exec_ext in '' $ac_executable_extensions; do
6732   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6733     ac_cv_prog_ac_ct_STRIP="strip"
6734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6735     break 2
6736   fi
6737 done
6738   done
6739 IFS=$as_save_IFS
6740
6741 fi
6742 fi
6743 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6744 if test -n "$ac_ct_STRIP"; then
6745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6746 $as_echo "$ac_ct_STRIP" >&6; }
6747 else
6748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6749 $as_echo "no" >&6; }
6750 fi
6751
6752   if test "x$ac_ct_STRIP" = x; then
6753     STRIP=":"
6754   else
6755     case $cross_compiling:$ac_tool_warned in
6756 yes:)
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6759 ac_tool_warned=yes ;;
6760 esac
6761     STRIP=$ac_ct_STRIP
6762   fi
6763 else
6764   STRIP="$ac_cv_prog_STRIP"
6765 fi
6766
6767 test -z "$STRIP" && STRIP=:
6768
6769
6770
6771
6772
6773
6774 if test -n "$ac_tool_prefix"; then
6775   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6776 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6778 $as_echo_n "checking for $ac_word... " >&6; }
6779 if ${ac_cv_prog_RANLIB+:} false; then :
6780   $as_echo_n "(cached) " >&6
6781 else
6782   if test -n "$RANLIB"; then
6783   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6784 else
6785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6786 for as_dir in $PATH
6787 do
6788   IFS=$as_save_IFS
6789   test -z "$as_dir" && as_dir=.
6790     for ac_exec_ext in '' $ac_executable_extensions; do
6791   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6792     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6793     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6794     break 2
6795   fi
6796 done
6797   done
6798 IFS=$as_save_IFS
6799
6800 fi
6801 fi
6802 RANLIB=$ac_cv_prog_RANLIB
6803 if test -n "$RANLIB"; then
6804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6805 $as_echo "$RANLIB" >&6; }
6806 else
6807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6808 $as_echo "no" >&6; }
6809 fi
6810
6811
6812 fi
6813 if test -z "$ac_cv_prog_RANLIB"; then
6814   ac_ct_RANLIB=$RANLIB
6815   # Extract the first word of "ranlib", so it can be a program name with args.
6816 set dummy ranlib; ac_word=$2
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6818 $as_echo_n "checking for $ac_word... " >&6; }
6819 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6820   $as_echo_n "(cached) " >&6
6821 else
6822   if test -n "$ac_ct_RANLIB"; then
6823   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6824 else
6825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6826 for as_dir in $PATH
6827 do
6828   IFS=$as_save_IFS
6829   test -z "$as_dir" && as_dir=.
6830     for ac_exec_ext in '' $ac_executable_extensions; do
6831   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6832     ac_cv_prog_ac_ct_RANLIB="ranlib"
6833     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6834     break 2
6835   fi
6836 done
6837   done
6838 IFS=$as_save_IFS
6839
6840 fi
6841 fi
6842 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6843 if test -n "$ac_ct_RANLIB"; then
6844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6845 $as_echo "$ac_ct_RANLIB" >&6; }
6846 else
6847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6848 $as_echo "no" >&6; }
6849 fi
6850
6851   if test "x$ac_ct_RANLIB" = x; then
6852     RANLIB=":"
6853   else
6854     case $cross_compiling:$ac_tool_warned in
6855 yes:)
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6857 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6858 ac_tool_warned=yes ;;
6859 esac
6860     RANLIB=$ac_ct_RANLIB
6861   fi
6862 else
6863   RANLIB="$ac_cv_prog_RANLIB"
6864 fi
6865
6866 test -z "$RANLIB" && RANLIB=:
6867
6868
6869
6870
6871
6872
6873 # Determine commands to create old-style static archives.
6874 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6875 old_postinstall_cmds='chmod 644 $oldlib'
6876 old_postuninstall_cmds=
6877
6878 if test -n "$RANLIB"; then
6879   case $host_os in
6880   openbsd*)
6881     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6882     ;;
6883   *)
6884     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6885     ;;
6886   esac
6887   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6888 fi
6889
6890 case $host_os in
6891   darwin*)
6892     lock_old_archive_extraction=yes ;;
6893   *)
6894     lock_old_archive_extraction=no ;;
6895 esac
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935 # If no C compiler was specified, use CC.
6936 LTCC=${LTCC-"$CC"}
6937
6938 # If no C compiler flags were specified, use CFLAGS.
6939 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6940
6941 # Allow CC to be a program name with arguments.
6942 compiler=$CC
6943
6944
6945 # Check for command to grab the raw symbol name followed by C symbol from nm.
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6947 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6948 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6949   $as_echo_n "(cached) " >&6
6950 else
6951
6952 # These are sane defaults that work on at least a few old systems.
6953 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6954
6955 # Character class describing NM global symbol codes.
6956 symcode='[BCDEGRST]'
6957
6958 # Regexp to match symbols that can be accessed directly from C.
6959 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6960
6961 # Define system-specific variables.
6962 case $host_os in
6963 aix*)
6964   symcode='[BCDT]'
6965   ;;
6966 cygwin* | mingw* | pw32* | cegcc*)
6967   symcode='[ABCDGISTW]'
6968   ;;
6969 hpux*)
6970   if test "$host_cpu" = ia64; then
6971     symcode='[ABCDEGRST]'
6972   fi
6973   ;;
6974 irix* | nonstopux*)
6975   symcode='[BCDEGRST]'
6976   ;;
6977 osf*)
6978   symcode='[BCDEGQRST]'
6979   ;;
6980 solaris*)
6981   symcode='[BDRT]'
6982   ;;
6983 sco3.2v5*)
6984   symcode='[DT]'
6985   ;;
6986 sysv4.2uw2*)
6987   symcode='[DT]'
6988   ;;
6989 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6990   symcode='[ABDT]'
6991   ;;
6992 sysv4)
6993   symcode='[DFNSTU]'
6994   ;;
6995 esac
6996
6997 # If we're using GNU nm, then use its standard symbol codes.
6998 case `$NM -V 2>&1` in
6999 *GNU* | *'with BFD'*)
7000   symcode='[ABCDGIRSTW]' ;;
7001 esac
7002
7003 # Transform an extracted symbol line into a proper C declaration.
7004 # Some systems (esp. on ia64) link data and code symbols differently,
7005 # so use this general approach.
7006 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7007
7008 # Transform an extracted symbol line into symbol name and symbol address
7009 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7010 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
7011
7012 # Handle CRLF in mingw tool chain
7013 opt_cr=
7014 case $build_os in
7015 mingw*)
7016   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7017   ;;
7018 esac
7019
7020 # Try without a prefix underscore, then with it.
7021 for ac_symprfx in "" "_"; do
7022
7023   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7024   symxfrm="\\1 $ac_symprfx\\2 \\2"
7025
7026   # Write the raw and C identifiers.
7027   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7028     # Fake it for dumpbin and say T for any non-static function
7029     # and D for any global variable.
7030     # Also find C++ and __fastcall symbols from MSVC++,
7031     # which start with @ or ?.
7032     lt_cv_sys_global_symbol_pipe="$AWK '"\
7033 "     {last_section=section; section=\$ 3};"\
7034 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7035 "     \$ 0!~/External *\|/{next};"\
7036 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7037 "     {if(hide[section]) next};"\
7038 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7039 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7040 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7041 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7042 "     ' prfx=^$ac_symprfx"
7043   else
7044     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7045   fi
7046   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7047
7048   # Check to see that the pipe works correctly.
7049   pipe_works=no
7050
7051   rm -f conftest*
7052   cat > conftest.$ac_ext <<_LT_EOF
7053 #ifdef __cplusplus
7054 extern "C" {
7055 #endif
7056 char nm_test_var;
7057 void nm_test_func(void);
7058 void nm_test_func(void){}
7059 #ifdef __cplusplus
7060 }
7061 #endif
7062 int main(){nm_test_var='a';nm_test_func();return(0);}
7063 _LT_EOF
7064
7065   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7066   (eval $ac_compile) 2>&5
7067   ac_status=$?
7068   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7069   test $ac_status = 0; }; then
7070     # Now try to grab the symbols.
7071     nlist=conftest.nm
7072     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7073   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7074   ac_status=$?
7075   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7076   test $ac_status = 0; } && test -s "$nlist"; then
7077       # Try sorting and uniquifying the output.
7078       if sort "$nlist" | uniq > "$nlist"T; then
7079         mv -f "$nlist"T "$nlist"
7080       else
7081         rm -f "$nlist"T
7082       fi
7083
7084       # Make sure that we snagged all the symbols we need.
7085       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7086         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7087           cat <<_LT_EOF > conftest.$ac_ext
7088 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7089 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7090 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7091    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7092 # define LT_DLSYM_CONST
7093 #elif defined(__osf__)
7094 /* This system does not cope well with relocations in const data.  */
7095 # define LT_DLSYM_CONST
7096 #else
7097 # define LT_DLSYM_CONST const
7098 #endif
7099
7100 #ifdef __cplusplus
7101 extern "C" {
7102 #endif
7103
7104 _LT_EOF
7105           # Now generate the symbol file.
7106           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7107
7108           cat <<_LT_EOF >> conftest.$ac_ext
7109
7110 /* The mapping between symbol names and symbols.  */
7111 LT_DLSYM_CONST struct {
7112   const char *name;
7113   void       *address;
7114 }
7115 lt__PROGRAM__LTX_preloaded_symbols[] =
7116 {
7117   { "@PROGRAM@", (void *) 0 },
7118 _LT_EOF
7119           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7120           cat <<\_LT_EOF >> conftest.$ac_ext
7121   {0, (void *) 0}
7122 };
7123
7124 /* This works around a problem in FreeBSD linker */
7125 #ifdef FREEBSD_WORKAROUND
7126 static const void *lt_preloaded_setup() {
7127   return lt__PROGRAM__LTX_preloaded_symbols;
7128 }
7129 #endif
7130
7131 #ifdef __cplusplus
7132 }
7133 #endif
7134 _LT_EOF
7135           # Now try linking the two files.
7136           mv conftest.$ac_objext conftstm.$ac_objext
7137           lt_globsym_save_LIBS=$LIBS
7138           lt_globsym_save_CFLAGS=$CFLAGS
7139           LIBS="conftstm.$ac_objext"
7140           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7141           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7142   (eval $ac_link) 2>&5
7143   ac_status=$?
7144   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7145   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7146             pipe_works=yes
7147           fi
7148           LIBS=$lt_globsym_save_LIBS
7149           CFLAGS=$lt_globsym_save_CFLAGS
7150         else
7151           echo "cannot find nm_test_func in $nlist" >&5
7152         fi
7153       else
7154         echo "cannot find nm_test_var in $nlist" >&5
7155       fi
7156     else
7157       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7158     fi
7159   else
7160     echo "$progname: failed program was:" >&5
7161     cat conftest.$ac_ext >&5
7162   fi
7163   rm -rf conftest* conftst*
7164
7165   # Do not use the global_symbol_pipe unless it works.
7166   if test "$pipe_works" = yes; then
7167     break
7168   else
7169     lt_cv_sys_global_symbol_pipe=
7170   fi
7171 done
7172
7173 fi
7174
7175 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7176   lt_cv_sys_global_symbol_to_cdecl=
7177 fi
7178 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7180 $as_echo "failed" >&6; }
7181 else
7182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7183 $as_echo "ok" >&6; }
7184 fi
7185
7186 # Response file support.
7187 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7188   nm_file_list_spec='@'
7189 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7190   nm_file_list_spec='@'
7191 fi
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7220 $as_echo_n "checking for sysroot... " >&6; }
7221
7222 # Check whether --with-sysroot was given.
7223 if test "${with_sysroot+set}" = set; then :
7224   withval=$with_sysroot;
7225 else
7226   with_sysroot=no
7227 fi
7228
7229
7230 lt_sysroot=
7231 case ${with_sysroot} in #(
7232  yes)
7233    if test "$GCC" = yes; then
7234      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7235    fi
7236    ;; #(
7237  /*)
7238    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7239    ;; #(
7240  no|'')
7241    ;; #(
7242  *)
7243    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7244 $as_echo "${with_sysroot}" >&6; }
7245    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7246    ;;
7247 esac
7248
7249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7250 $as_echo "${lt_sysroot:-no}" >&6; }
7251
7252
7253
7254
7255
7256 # Check whether --enable-libtool-lock was given.
7257 if test "${enable_libtool_lock+set}" = set; then :
7258   enableval=$enable_libtool_lock;
7259 fi
7260
7261 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7262
7263 # Some flags need to be propagated to the compiler or linker for good
7264 # libtool support.
7265 case $host in
7266 ia64-*-hpux*)
7267   # Find out which ABI we are using.
7268   echo 'int i;' > conftest.$ac_ext
7269   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7270   (eval $ac_compile) 2>&5
7271   ac_status=$?
7272   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7273   test $ac_status = 0; }; then
7274     case `/usr/bin/file conftest.$ac_objext` in
7275       *ELF-32*)
7276         HPUX_IA64_MODE="32"
7277         ;;
7278       *ELF-64*)
7279         HPUX_IA64_MODE="64"
7280         ;;
7281     esac
7282   fi
7283   rm -rf conftest*
7284   ;;
7285 *-*-irix6*)
7286   # Find out which ABI we are using.
7287   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7288   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7289   (eval $ac_compile) 2>&5
7290   ac_status=$?
7291   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7292   test $ac_status = 0; }; then
7293     if test "$lt_cv_prog_gnu_ld" = yes; then
7294       case `/usr/bin/file conftest.$ac_objext` in
7295         *32-bit*)
7296           LD="${LD-ld} -melf32bsmip"
7297           ;;
7298         *N32*)
7299           LD="${LD-ld} -melf32bmipn32"
7300           ;;
7301         *64-bit*)
7302           LD="${LD-ld} -melf64bmip"
7303         ;;
7304       esac
7305     else
7306       case `/usr/bin/file conftest.$ac_objext` in
7307         *32-bit*)
7308           LD="${LD-ld} -32"
7309           ;;
7310         *N32*)
7311           LD="${LD-ld} -n32"
7312           ;;
7313         *64-bit*)
7314           LD="${LD-ld} -64"
7315           ;;
7316       esac
7317     fi
7318   fi
7319   rm -rf conftest*
7320   ;;
7321
7322 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7323 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7324   # Find out which ABI we are using.
7325   echo 'int i;' > conftest.$ac_ext
7326   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7327   (eval $ac_compile) 2>&5
7328   ac_status=$?
7329   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7330   test $ac_status = 0; }; then
7331     case `/usr/bin/file conftest.o` in
7332       *32-bit*)
7333         case $host in
7334           x86_64-*kfreebsd*-gnu)
7335             LD="${LD-ld} -m elf_i386_fbsd"
7336             ;;
7337           x86_64-*linux*)
7338             LD="${LD-ld} -m elf_i386"
7339             ;;
7340           ppc64-*linux*|powerpc64-*linux*)
7341             LD="${LD-ld} -m elf32ppclinux"
7342             ;;
7343           s390x-*linux*)
7344             LD="${LD-ld} -m elf_s390"
7345             ;;
7346           sparc64-*linux*)
7347             LD="${LD-ld} -m elf32_sparc"
7348             ;;
7349         esac
7350         ;;
7351       *64-bit*)
7352         case $host in
7353           x86_64-*kfreebsd*-gnu)
7354             LD="${LD-ld} -m elf_x86_64_fbsd"
7355             ;;
7356           x86_64-*linux*)
7357             LD="${LD-ld} -m elf_x86_64"
7358             ;;
7359           ppc*-*linux*|powerpc*-*linux*)
7360             LD="${LD-ld} -m elf64ppc"
7361             ;;
7362           s390*-*linux*|s390*-*tpf*)
7363             LD="${LD-ld} -m elf64_s390"
7364             ;;
7365           sparc*-*linux*)
7366             LD="${LD-ld} -m elf64_sparc"
7367             ;;
7368         esac
7369         ;;
7370     esac
7371   fi
7372   rm -rf conftest*
7373   ;;
7374
7375 *-*-sco3.2v5*)
7376   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7377   SAVE_CFLAGS="$CFLAGS"
7378   CFLAGS="$CFLAGS -belf"
7379   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7380 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7381 if ${lt_cv_cc_needs_belf+:} false; then :
7382   $as_echo_n "(cached) " >&6
7383 else
7384   ac_ext=c
7385 ac_cpp='$CPP $CPPFLAGS'
7386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7389
7390      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7391 /* end confdefs.h.  */
7392
7393 int
7394 main ()
7395 {
7396
7397   ;
7398   return 0;
7399 }
7400 _ACEOF
7401 if ac_fn_c_try_link "$LINENO"; then :
7402   lt_cv_cc_needs_belf=yes
7403 else
7404   lt_cv_cc_needs_belf=no
7405 fi
7406 rm -f core conftest.err conftest.$ac_objext \
7407     conftest$ac_exeext conftest.$ac_ext
7408      ac_ext=c
7409 ac_cpp='$CPP $CPPFLAGS'
7410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7413
7414 fi
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7416 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7417   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7418     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7419     CFLAGS="$SAVE_CFLAGS"
7420   fi
7421   ;;
7422 sparc*-*solaris*)
7423   # Find out which ABI we are using.
7424   echo 'int i;' > conftest.$ac_ext
7425   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7426   (eval $ac_compile) 2>&5
7427   ac_status=$?
7428   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7429   test $ac_status = 0; }; then
7430     case `/usr/bin/file conftest.o` in
7431     *64-bit*)
7432       case $lt_cv_prog_gnu_ld in
7433       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7434       *)
7435         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7436           LD="${LD-ld} -64"
7437         fi
7438         ;;
7439       esac
7440       ;;
7441     esac
7442   fi
7443   rm -rf conftest*
7444   ;;
7445 esac
7446
7447 need_locks="$enable_libtool_lock"
7448
7449 if test -n "$ac_tool_prefix"; then
7450   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7451 set dummy ${ac_tool_prefix}mt; ac_word=$2
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7453 $as_echo_n "checking for $ac_word... " >&6; }
7454 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7455   $as_echo_n "(cached) " >&6
7456 else
7457   if test -n "$MANIFEST_TOOL"; then
7458   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7459 else
7460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7461 for as_dir in $PATH
7462 do
7463   IFS=$as_save_IFS
7464   test -z "$as_dir" && as_dir=.
7465     for ac_exec_ext in '' $ac_executable_extensions; do
7466   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7467     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7468     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7469     break 2
7470   fi
7471 done
7472   done
7473 IFS=$as_save_IFS
7474
7475 fi
7476 fi
7477 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7478 if test -n "$MANIFEST_TOOL"; then
7479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7480 $as_echo "$MANIFEST_TOOL" >&6; }
7481 else
7482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7483 $as_echo "no" >&6; }
7484 fi
7485
7486
7487 fi
7488 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7489   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7490   # Extract the first word of "mt", so it can be a program name with args.
7491 set dummy mt; ac_word=$2
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7493 $as_echo_n "checking for $ac_word... " >&6; }
7494 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7495   $as_echo_n "(cached) " >&6
7496 else
7497   if test -n "$ac_ct_MANIFEST_TOOL"; then
7498   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7499 else
7500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7501 for as_dir in $PATH
7502 do
7503   IFS=$as_save_IFS
7504   test -z "$as_dir" && as_dir=.
7505     for ac_exec_ext in '' $ac_executable_extensions; do
7506   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7507     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7508     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7509     break 2
7510   fi
7511 done
7512   done
7513 IFS=$as_save_IFS
7514
7515 fi
7516 fi
7517 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7518 if test -n "$ac_ct_MANIFEST_TOOL"; then
7519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7520 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7521 else
7522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7523 $as_echo "no" >&6; }
7524 fi
7525
7526   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7527     MANIFEST_TOOL=":"
7528   else
7529     case $cross_compiling:$ac_tool_warned in
7530 yes:)
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7532 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7533 ac_tool_warned=yes ;;
7534 esac
7535     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7536   fi
7537 else
7538   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7539 fi
7540
7541 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7543 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7544 if ${lt_cv_path_mainfest_tool+:} false; then :
7545   $as_echo_n "(cached) " >&6
7546 else
7547   lt_cv_path_mainfest_tool=no
7548   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7549   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7550   cat conftest.err >&5
7551   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7552     lt_cv_path_mainfest_tool=yes
7553   fi
7554   rm -f conftest*
7555 fi
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7557 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7558 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7559   MANIFEST_TOOL=:
7560 fi
7561
7562
7563
7564
7565
7566
7567   case $host_os in
7568     rhapsody* | darwin*)
7569     if test -n "$ac_tool_prefix"; then
7570   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7571 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7573 $as_echo_n "checking for $ac_word... " >&6; }
7574 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7575   $as_echo_n "(cached) " >&6
7576 else
7577   if test -n "$DSYMUTIL"; then
7578   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7579 else
7580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7581 for as_dir in $PATH
7582 do
7583   IFS=$as_save_IFS
7584   test -z "$as_dir" && as_dir=.
7585     for ac_exec_ext in '' $ac_executable_extensions; do
7586   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7587     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7588     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7589     break 2
7590   fi
7591 done
7592   done
7593 IFS=$as_save_IFS
7594
7595 fi
7596 fi
7597 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7598 if test -n "$DSYMUTIL"; then
7599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7600 $as_echo "$DSYMUTIL" >&6; }
7601 else
7602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7603 $as_echo "no" >&6; }
7604 fi
7605
7606
7607 fi
7608 if test -z "$ac_cv_prog_DSYMUTIL"; then
7609   ac_ct_DSYMUTIL=$DSYMUTIL
7610   # Extract the first word of "dsymutil", so it can be a program name with args.
7611 set dummy dsymutil; ac_word=$2
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7613 $as_echo_n "checking for $ac_word... " >&6; }
7614 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7615   $as_echo_n "(cached) " >&6
7616 else
7617   if test -n "$ac_ct_DSYMUTIL"; then
7618   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7619 else
7620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7621 for as_dir in $PATH
7622 do
7623   IFS=$as_save_IFS
7624   test -z "$as_dir" && as_dir=.
7625     for ac_exec_ext in '' $ac_executable_extensions; do
7626   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7627     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7628     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7629     break 2
7630   fi
7631 done
7632   done
7633 IFS=$as_save_IFS
7634
7635 fi
7636 fi
7637 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7638 if test -n "$ac_ct_DSYMUTIL"; then
7639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7640 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7641 else
7642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7643 $as_echo "no" >&6; }
7644 fi
7645
7646   if test "x$ac_ct_DSYMUTIL" = x; then
7647     DSYMUTIL=":"
7648   else
7649     case $cross_compiling:$ac_tool_warned in
7650 yes:)
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7652 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7653 ac_tool_warned=yes ;;
7654 esac
7655     DSYMUTIL=$ac_ct_DSYMUTIL
7656   fi
7657 else
7658   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7659 fi
7660
7661     if test -n "$ac_tool_prefix"; then
7662   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7663 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7665 $as_echo_n "checking for $ac_word... " >&6; }
7666 if ${ac_cv_prog_NMEDIT+:} false; then :
7667   $as_echo_n "(cached) " >&6
7668 else
7669   if test -n "$NMEDIT"; then
7670   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7671 else
7672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7673 for as_dir in $PATH
7674 do
7675   IFS=$as_save_IFS
7676   test -z "$as_dir" && as_dir=.
7677     for ac_exec_ext in '' $ac_executable_extensions; do
7678   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7679     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7680     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7681     break 2
7682   fi
7683 done
7684   done
7685 IFS=$as_save_IFS
7686
7687 fi
7688 fi
7689 NMEDIT=$ac_cv_prog_NMEDIT
7690 if test -n "$NMEDIT"; then
7691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7692 $as_echo "$NMEDIT" >&6; }
7693 else
7694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7695 $as_echo "no" >&6; }
7696 fi
7697
7698
7699 fi
7700 if test -z "$ac_cv_prog_NMEDIT"; then
7701   ac_ct_NMEDIT=$NMEDIT
7702   # Extract the first word of "nmedit", so it can be a program name with args.
7703 set dummy nmedit; ac_word=$2
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7705 $as_echo_n "checking for $ac_word... " >&6; }
7706 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7707   $as_echo_n "(cached) " >&6
7708 else
7709   if test -n "$ac_ct_NMEDIT"; then
7710   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7711 else
7712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7713 for as_dir in $PATH
7714 do
7715   IFS=$as_save_IFS
7716   test -z "$as_dir" && as_dir=.
7717     for ac_exec_ext in '' $ac_executable_extensions; do
7718   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7719     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7720     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7721     break 2
7722   fi
7723 done
7724   done
7725 IFS=$as_save_IFS
7726
7727 fi
7728 fi
7729 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7730 if test -n "$ac_ct_NMEDIT"; then
7731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7732 $as_echo "$ac_ct_NMEDIT" >&6; }
7733 else
7734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7735 $as_echo "no" >&6; }
7736 fi
7737
7738   if test "x$ac_ct_NMEDIT" = x; then
7739     NMEDIT=":"
7740   else
7741     case $cross_compiling:$ac_tool_warned in
7742 yes:)
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7745 ac_tool_warned=yes ;;
7746 esac
7747     NMEDIT=$ac_ct_NMEDIT
7748   fi
7749 else
7750   NMEDIT="$ac_cv_prog_NMEDIT"
7751 fi
7752
7753     if test -n "$ac_tool_prefix"; then
7754   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7755 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7757 $as_echo_n "checking for $ac_word... " >&6; }
7758 if ${ac_cv_prog_LIPO+:} false; then :
7759   $as_echo_n "(cached) " >&6
7760 else
7761   if test -n "$LIPO"; then
7762   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7763 else
7764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7765 for as_dir in $PATH
7766 do
7767   IFS=$as_save_IFS
7768   test -z "$as_dir" && as_dir=.
7769     for ac_exec_ext in '' $ac_executable_extensions; do
7770   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7771     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7772     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7773     break 2
7774   fi
7775 done
7776   done
7777 IFS=$as_save_IFS
7778
7779 fi
7780 fi
7781 LIPO=$ac_cv_prog_LIPO
7782 if test -n "$LIPO"; then
7783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7784 $as_echo "$LIPO" >&6; }
7785 else
7786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7787 $as_echo "no" >&6; }
7788 fi
7789
7790
7791 fi
7792 if test -z "$ac_cv_prog_LIPO"; then
7793   ac_ct_LIPO=$LIPO
7794   # Extract the first word of "lipo", so it can be a program name with args.
7795 set dummy lipo; ac_word=$2
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7797 $as_echo_n "checking for $ac_word... " >&6; }
7798 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7799   $as_echo_n "(cached) " >&6
7800 else
7801   if test -n "$ac_ct_LIPO"; then
7802   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7803 else
7804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7805 for as_dir in $PATH
7806 do
7807   IFS=$as_save_IFS
7808   test -z "$as_dir" && as_dir=.
7809     for ac_exec_ext in '' $ac_executable_extensions; do
7810   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7811     ac_cv_prog_ac_ct_LIPO="lipo"
7812     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7813     break 2
7814   fi
7815 done
7816   done
7817 IFS=$as_save_IFS
7818
7819 fi
7820 fi
7821 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7822 if test -n "$ac_ct_LIPO"; then
7823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7824 $as_echo "$ac_ct_LIPO" >&6; }
7825 else
7826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7827 $as_echo "no" >&6; }
7828 fi
7829
7830   if test "x$ac_ct_LIPO" = x; then
7831     LIPO=":"
7832   else
7833     case $cross_compiling:$ac_tool_warned in
7834 yes:)
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7836 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7837 ac_tool_warned=yes ;;
7838 esac
7839     LIPO=$ac_ct_LIPO
7840   fi
7841 else
7842   LIPO="$ac_cv_prog_LIPO"
7843 fi
7844
7845     if test -n "$ac_tool_prefix"; then
7846   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7847 set dummy ${ac_tool_prefix}otool; ac_word=$2
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7849 $as_echo_n "checking for $ac_word... " >&6; }
7850 if ${ac_cv_prog_OTOOL+:} false; then :
7851   $as_echo_n "(cached) " >&6
7852 else
7853   if test -n "$OTOOL"; then
7854   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7855 else
7856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7857 for as_dir in $PATH
7858 do
7859   IFS=$as_save_IFS
7860   test -z "$as_dir" && as_dir=.
7861     for ac_exec_ext in '' $ac_executable_extensions; do
7862   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7863     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7864     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7865     break 2
7866   fi
7867 done
7868   done
7869 IFS=$as_save_IFS
7870
7871 fi
7872 fi
7873 OTOOL=$ac_cv_prog_OTOOL
7874 if test -n "$OTOOL"; then
7875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7876 $as_echo "$OTOOL" >&6; }
7877 else
7878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7879 $as_echo "no" >&6; }
7880 fi
7881
7882
7883 fi
7884 if test -z "$ac_cv_prog_OTOOL"; then
7885   ac_ct_OTOOL=$OTOOL
7886   # Extract the first word of "otool", so it can be a program name with args.
7887 set dummy otool; ac_word=$2
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7889 $as_echo_n "checking for $ac_word... " >&6; }
7890 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7891   $as_echo_n "(cached) " >&6
7892 else
7893   if test -n "$ac_ct_OTOOL"; then
7894   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7895 else
7896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7897 for as_dir in $PATH
7898 do
7899   IFS=$as_save_IFS
7900   test -z "$as_dir" && as_dir=.
7901     for ac_exec_ext in '' $ac_executable_extensions; do
7902   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7903     ac_cv_prog_ac_ct_OTOOL="otool"
7904     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7905     break 2
7906   fi
7907 done
7908   done
7909 IFS=$as_save_IFS
7910
7911 fi
7912 fi
7913 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7914 if test -n "$ac_ct_OTOOL"; then
7915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7916 $as_echo "$ac_ct_OTOOL" >&6; }
7917 else
7918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7919 $as_echo "no" >&6; }
7920 fi
7921
7922   if test "x$ac_ct_OTOOL" = x; then
7923     OTOOL=":"
7924   else
7925     case $cross_compiling:$ac_tool_warned in
7926 yes:)
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7928 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7929 ac_tool_warned=yes ;;
7930 esac
7931     OTOOL=$ac_ct_OTOOL
7932   fi
7933 else
7934   OTOOL="$ac_cv_prog_OTOOL"
7935 fi
7936
7937     if test -n "$ac_tool_prefix"; then
7938   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7939 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7941 $as_echo_n "checking for $ac_word... " >&6; }
7942 if ${ac_cv_prog_OTOOL64+:} false; then :
7943   $as_echo_n "(cached) " >&6
7944 else
7945   if test -n "$OTOOL64"; then
7946   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7947 else
7948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7949 for as_dir in $PATH
7950 do
7951   IFS=$as_save_IFS
7952   test -z "$as_dir" && as_dir=.
7953     for ac_exec_ext in '' $ac_executable_extensions; do
7954   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7955     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7956     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7957     break 2
7958   fi
7959 done
7960   done
7961 IFS=$as_save_IFS
7962
7963 fi
7964 fi
7965 OTOOL64=$ac_cv_prog_OTOOL64
7966 if test -n "$OTOOL64"; then
7967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7968 $as_echo "$OTOOL64" >&6; }
7969 else
7970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7971 $as_echo "no" >&6; }
7972 fi
7973
7974
7975 fi
7976 if test -z "$ac_cv_prog_OTOOL64"; then
7977   ac_ct_OTOOL64=$OTOOL64
7978   # Extract the first word of "otool64", so it can be a program name with args.
7979 set dummy otool64; ac_word=$2
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7981 $as_echo_n "checking for $ac_word... " >&6; }
7982 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7983   $as_echo_n "(cached) " >&6
7984 else
7985   if test -n "$ac_ct_OTOOL64"; then
7986   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7987 else
7988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7989 for as_dir in $PATH
7990 do
7991   IFS=$as_save_IFS
7992   test -z "$as_dir" && as_dir=.
7993     for ac_exec_ext in '' $ac_executable_extensions; do
7994   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7995     ac_cv_prog_ac_ct_OTOOL64="otool64"
7996     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7997     break 2
7998   fi
7999 done
8000   done
8001 IFS=$as_save_IFS
8002
8003 fi
8004 fi
8005 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8006 if test -n "$ac_ct_OTOOL64"; then
8007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8008 $as_echo "$ac_ct_OTOOL64" >&6; }
8009 else
8010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8011 $as_echo "no" >&6; }
8012 fi
8013
8014   if test "x$ac_ct_OTOOL64" = x; then
8015     OTOOL64=":"
8016   else
8017     case $cross_compiling:$ac_tool_warned in
8018 yes:)
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8020 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8021 ac_tool_warned=yes ;;
8022 esac
8023     OTOOL64=$ac_ct_OTOOL64
8024   fi
8025 else
8026   OTOOL64="$ac_cv_prog_OTOOL64"
8027 fi
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8056 $as_echo_n "checking for -single_module linker flag... " >&6; }
8057 if ${lt_cv_apple_cc_single_mod+:} false; then :
8058   $as_echo_n "(cached) " >&6
8059 else
8060   lt_cv_apple_cc_single_mod=no
8061       if test -z "${LT_MULTI_MODULE}"; then
8062         # By default we will add the -single_module flag. You can override
8063         # by either setting the environment variable LT_MULTI_MODULE
8064         # non-empty at configure time, or by adding -multi_module to the
8065         # link flags.
8066         rm -rf libconftest.dylib*
8067         echo "int foo(void){return 1;}" > conftest.c
8068         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8069 -dynamiclib -Wl,-single_module conftest.c" >&5
8070         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8071           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8072         _lt_result=$?
8073         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8074           lt_cv_apple_cc_single_mod=yes
8075         else
8076           cat conftest.err >&5
8077         fi
8078         rm -rf libconftest.dylib*
8079         rm -f conftest.*
8080       fi
8081 fi
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8083 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8084     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8085 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8086 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8087   $as_echo_n "(cached) " >&6
8088 else
8089   lt_cv_ld_exported_symbols_list=no
8090       save_LDFLAGS=$LDFLAGS
8091       echo "_main" > conftest.sym
8092       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8093       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8094 /* end confdefs.h.  */
8095
8096 int
8097 main ()
8098 {
8099
8100   ;
8101   return 0;
8102 }
8103 _ACEOF
8104 if ac_fn_c_try_link "$LINENO"; then :
8105   lt_cv_ld_exported_symbols_list=yes
8106 else
8107   lt_cv_ld_exported_symbols_list=no
8108 fi
8109 rm -f core conftest.err conftest.$ac_objext \
8110     conftest$ac_exeext conftest.$ac_ext
8111         LDFLAGS="$save_LDFLAGS"
8112
8113 fi
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8115 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8116     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8117 $as_echo_n "checking for -force_load linker flag... " >&6; }
8118 if ${lt_cv_ld_force_load+:} false; then :
8119   $as_echo_n "(cached) " >&6
8120 else
8121   lt_cv_ld_force_load=no
8122       cat > conftest.c << _LT_EOF
8123 int forced_loaded() { return 2;}
8124 _LT_EOF
8125       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8126       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8127       echo "$AR cru libconftest.a conftest.o" >&5
8128       $AR cru libconftest.a conftest.o 2>&5
8129       echo "$RANLIB libconftest.a" >&5
8130       $RANLIB libconftest.a 2>&5
8131       cat > conftest.c << _LT_EOF
8132 int main() { return 0;}
8133 _LT_EOF
8134       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8135       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8136       _lt_result=$?
8137       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8138         lt_cv_ld_force_load=yes
8139       else
8140         cat conftest.err >&5
8141       fi
8142         rm -f conftest.err libconftest.a conftest conftest.c
8143         rm -rf conftest.dSYM
8144
8145 fi
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8147 $as_echo "$lt_cv_ld_force_load" >&6; }
8148     case $host_os in
8149     rhapsody* | darwin1.[012])
8150       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8151     darwin1.*)
8152       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8153     darwin*) # darwin 5.x on
8154       # if running on 10.5 or later, the deployment target defaults
8155       # to the OS version, if on x86, and 10.4, the deployment
8156       # target defaults to 10.4. Don't you love it?
8157       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8158         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8159           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8160         10.[012]*)
8161           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8162         10.*)
8163           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8164       esac
8165     ;;
8166   esac
8167     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8168       _lt_dar_single_mod='$single_module'
8169     fi
8170     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8171       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8172     else
8173       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8174     fi
8175     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8176       _lt_dsymutil='~$DSYMUTIL $lib || :'
8177     else
8178       _lt_dsymutil=
8179     fi
8180     ;;
8181   esac
8182
8183 ac_ext=c
8184 ac_cpp='$CPP $CPPFLAGS'
8185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8189 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8190 # On Suns, sometimes $CPP names a directory.
8191 if test -n "$CPP" && test -d "$CPP"; then
8192   CPP=
8193 fi
8194 if test -z "$CPP"; then
8195   if ${ac_cv_prog_CPP+:} false; then :
8196   $as_echo_n "(cached) " >&6
8197 else
8198       # Double quotes because CPP needs to be expanded
8199     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8200     do
8201       ac_preproc_ok=false
8202 for ac_c_preproc_warn_flag in '' yes
8203 do
8204   # Use a header file that comes with gcc, so configuring glibc
8205   # with a fresh cross-compiler works.
8206   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8207   # <limits.h> exists even on freestanding compilers.
8208   # On the NeXT, cc -E runs the code through the compiler's parser,
8209   # not just through cpp. "Syntax error" is here to catch this case.
8210   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8211 /* end confdefs.h.  */
8212 #ifdef __STDC__
8213 # include <limits.h>
8214 #else
8215 # include <assert.h>
8216 #endif
8217                      Syntax error
8218 _ACEOF
8219 if ac_fn_c_try_cpp "$LINENO"; then :
8220
8221 else
8222   # Broken: fails on valid input.
8223 continue
8224 fi
8225 rm -f conftest.err conftest.i conftest.$ac_ext
8226
8227   # OK, works on sane cases.  Now check whether nonexistent headers
8228   # can be detected and how.
8229   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8230 /* end confdefs.h.  */
8231 #include <ac_nonexistent.h>
8232 _ACEOF
8233 if ac_fn_c_try_cpp "$LINENO"; then :
8234   # Broken: success on invalid input.
8235 continue
8236 else
8237   # Passes both tests.
8238 ac_preproc_ok=:
8239 break
8240 fi
8241 rm -f conftest.err conftest.i conftest.$ac_ext
8242
8243 done
8244 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8245 rm -f conftest.i conftest.err conftest.$ac_ext
8246 if $ac_preproc_ok; then :
8247   break
8248 fi
8249
8250     done
8251     ac_cv_prog_CPP=$CPP
8252
8253 fi
8254   CPP=$ac_cv_prog_CPP
8255 else
8256   ac_cv_prog_CPP=$CPP
8257 fi
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8259 $as_echo "$CPP" >&6; }
8260 ac_preproc_ok=false
8261 for ac_c_preproc_warn_flag in '' yes
8262 do
8263   # Use a header file that comes with gcc, so configuring glibc
8264   # with a fresh cross-compiler works.
8265   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8266   # <limits.h> exists even on freestanding compilers.
8267   # On the NeXT, cc -E runs the code through the compiler's parser,
8268   # not just through cpp. "Syntax error" is here to catch this case.
8269   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8270 /* end confdefs.h.  */
8271 #ifdef __STDC__
8272 # include <limits.h>
8273 #else
8274 # include <assert.h>
8275 #endif
8276                      Syntax error
8277 _ACEOF
8278 if ac_fn_c_try_cpp "$LINENO"; then :
8279
8280 else
8281   # Broken: fails on valid input.
8282 continue
8283 fi
8284 rm -f conftest.err conftest.i conftest.$ac_ext
8285
8286   # OK, works on sane cases.  Now check whether nonexistent headers
8287   # can be detected and how.
8288   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8289 /* end confdefs.h.  */
8290 #include <ac_nonexistent.h>
8291 _ACEOF
8292 if ac_fn_c_try_cpp "$LINENO"; then :
8293   # Broken: success on invalid input.
8294 continue
8295 else
8296   # Passes both tests.
8297 ac_preproc_ok=:
8298 break
8299 fi
8300 rm -f conftest.err conftest.i conftest.$ac_ext
8301
8302 done
8303 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8304 rm -f conftest.i conftest.err conftest.$ac_ext
8305 if $ac_preproc_ok; then :
8306
8307 else
8308   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8309 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8310 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8311 See \`config.log' for more details" "$LINENO" 5; }
8312 fi
8313
8314 ac_ext=c
8315 ac_cpp='$CPP $CPPFLAGS'
8316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8319
8320
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8322 $as_echo_n "checking for ANSI C header files... " >&6; }
8323 if ${ac_cv_header_stdc+:} false; then :
8324   $as_echo_n "(cached) " >&6
8325 else
8326   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8327 /* end confdefs.h.  */
8328 #include <stdlib.h>
8329 #include <stdarg.h>
8330 #include <string.h>
8331 #include <float.h>
8332
8333 int
8334 main ()
8335 {
8336
8337   ;
8338   return 0;
8339 }
8340 _ACEOF
8341 if ac_fn_c_try_compile "$LINENO"; then :
8342   ac_cv_header_stdc=yes
8343 else
8344   ac_cv_header_stdc=no
8345 fi
8346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8347
8348 if test $ac_cv_header_stdc = yes; then
8349   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8350   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8351 /* end confdefs.h.  */
8352 #include <string.h>
8353
8354 _ACEOF
8355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8356   $EGREP "memchr" >/dev/null 2>&1; then :
8357
8358 else
8359   ac_cv_header_stdc=no
8360 fi
8361 rm -f conftest*
8362
8363 fi
8364
8365 if test $ac_cv_header_stdc = yes; then
8366   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8367   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8368 /* end confdefs.h.  */
8369 #include <stdlib.h>
8370
8371 _ACEOF
8372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8373   $EGREP "free" >/dev/null 2>&1; then :
8374
8375 else
8376   ac_cv_header_stdc=no
8377 fi
8378 rm -f conftest*
8379
8380 fi
8381
8382 if test $ac_cv_header_stdc = yes; then
8383   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8384   if test "$cross_compiling" = yes; then :
8385   :
8386 else
8387   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8388 /* end confdefs.h.  */
8389 #include <ctype.h>
8390 #include <stdlib.h>
8391 #if ((' ' & 0x0FF) == 0x020)
8392 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8393 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8394 #else
8395 # define ISLOWER(c) \
8396                    (('a' <= (c) && (c) <= 'i') \
8397                      || ('j' <= (c) && (c) <= 'r') \
8398                      || ('s' <= (c) && (c) <= 'z'))
8399 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8400 #endif
8401
8402 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8403 int
8404 main ()
8405 {
8406   int i;
8407   for (i = 0; i < 256; i++)
8408     if (XOR (islower (i), ISLOWER (i))
8409         || toupper (i) != TOUPPER (i))
8410       return 2;
8411   return 0;
8412 }
8413 _ACEOF
8414 if ac_fn_c_try_run "$LINENO"; then :
8415
8416 else
8417   ac_cv_header_stdc=no
8418 fi
8419 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8420   conftest.$ac_objext conftest.beam conftest.$ac_ext
8421 fi
8422
8423 fi
8424 fi
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8426 $as_echo "$ac_cv_header_stdc" >&6; }
8427 if test $ac_cv_header_stdc = yes; then
8428
8429 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8430
8431 fi
8432
8433 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8434 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8435                   inttypes.h stdint.h unistd.h
8436 do :
8437   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8438 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8439 "
8440 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8441   cat >>confdefs.h <<_ACEOF
8442 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8443 _ACEOF
8444
8445 fi
8446
8447 done
8448
8449
8450 for ac_header in dlfcn.h
8451 do :
8452   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8453 "
8454 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8455   cat >>confdefs.h <<_ACEOF
8456 #define HAVE_DLFCN_H 1
8457 _ACEOF
8458
8459 fi
8460
8461 done
8462
8463
8464
8465
8466
8467 # Set options
8468
8469
8470
8471         enable_dlopen=no
8472
8473
8474   enable_win32_dll=no
8475
8476
8477             # Check whether --enable-shared was given.
8478 if test "${enable_shared+set}" = set; then :
8479   enableval=$enable_shared; p=${PACKAGE-default}
8480     case $enableval in
8481     yes) enable_shared=yes ;;
8482     no) enable_shared=no ;;
8483     *)
8484       enable_shared=no
8485       # Look at the argument we got.  We use all the common list separators.
8486       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8487       for pkg in $enableval; do
8488         IFS="$lt_save_ifs"
8489         if test "X$pkg" = "X$p"; then
8490           enable_shared=yes
8491         fi
8492       done
8493       IFS="$lt_save_ifs"
8494       ;;
8495     esac
8496 else
8497   enable_shared=yes
8498 fi
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508   # Check whether --enable-static was given.
8509 if test "${enable_static+set}" = set; then :
8510   enableval=$enable_static; p=${PACKAGE-default}
8511     case $enableval in
8512     yes) enable_static=yes ;;
8513     no) enable_static=no ;;
8514     *)
8515      enable_static=no
8516       # Look at the argument we got.  We use all the common list separators.
8517       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8518       for pkg in $enableval; do
8519         IFS="$lt_save_ifs"
8520         if test "X$pkg" = "X$p"; then
8521           enable_static=yes
8522         fi
8523       done
8524       IFS="$lt_save_ifs"
8525       ;;
8526     esac
8527 else
8528   enable_static=yes
8529 fi
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540 # Check whether --with-pic was given.
8541 if test "${with_pic+set}" = set; then :
8542   withval=$with_pic; pic_mode="$withval"
8543 else
8544   pic_mode=default
8545 fi
8546
8547
8548 test -z "$pic_mode" && pic_mode=default
8549
8550
8551
8552
8553
8554
8555
8556   # Check whether --enable-fast-install was given.
8557 if test "${enable_fast_install+set}" = set; then :
8558   enableval=$enable_fast_install; p=${PACKAGE-default}
8559     case $enableval in
8560     yes) enable_fast_install=yes ;;
8561     no) enable_fast_install=no ;;
8562     *)
8563       enable_fast_install=no
8564       # Look at the argument we got.  We use all the common list separators.
8565       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8566       for pkg in $enableval; do
8567         IFS="$lt_save_ifs"
8568         if test "X$pkg" = "X$p"; then
8569           enable_fast_install=yes
8570         fi
8571       done
8572       IFS="$lt_save_ifs"
8573       ;;
8574     esac
8575 else
8576   enable_fast_install=yes
8577 fi
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589 # This can be used to rebuild libtool when needed
8590 LIBTOOL_DEPS="$ltmain"
8591
8592 # Always use our own libtool.
8593 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620 test -z "$LN_S" && LN_S="ln -s"
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635 if test -n "${ZSH_VERSION+set}" ; then
8636    setopt NO_GLOB_SUBST
8637 fi
8638
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8640 $as_echo_n "checking for objdir... " >&6; }
8641 if ${lt_cv_objdir+:} false; then :
8642   $as_echo_n "(cached) " >&6
8643 else
8644   rm -f .libs 2>/dev/null
8645 mkdir .libs 2>/dev/null
8646 if test -d .libs; then
8647   lt_cv_objdir=.libs
8648 else
8649   # MS-DOS does not allow filenames that begin with a dot.
8650   lt_cv_objdir=_libs
8651 fi
8652 rmdir .libs 2>/dev/null
8653 fi
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8655 $as_echo "$lt_cv_objdir" >&6; }
8656 objdir=$lt_cv_objdir
8657
8658
8659
8660
8661
8662 cat >>confdefs.h <<_ACEOF
8663 #define LT_OBJDIR "$lt_cv_objdir/"
8664 _ACEOF
8665
8666
8667
8668
8669 case $host_os in
8670 aix3*)
8671   # AIX sometimes has problems with the GCC collect2 program.  For some
8672   # reason, if we set the COLLECT_NAMES environment variable, the problems
8673   # vanish in a puff of smoke.
8674   if test "X${COLLECT_NAMES+set}" != Xset; then
8675     COLLECT_NAMES=
8676     export COLLECT_NAMES
8677   fi
8678   ;;
8679 esac
8680
8681 # Global variables:
8682 ofile=libtool
8683 can_build_shared=yes
8684
8685 # All known linkers require a `.a' archive for static linking (except MSVC,
8686 # which needs '.lib').
8687 libext=a
8688
8689 with_gnu_ld="$lt_cv_prog_gnu_ld"
8690
8691 old_CC="$CC"
8692 old_CFLAGS="$CFLAGS"
8693
8694 # Set sane defaults for various variables
8695 test -z "$CC" && CC=cc
8696 test -z "$LTCC" && LTCC=$CC
8697 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8698 test -z "$LD" && LD=ld
8699 test -z "$ac_objext" && ac_objext=o
8700
8701 for cc_temp in $compiler""; do
8702   case $cc_temp in
8703     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8704     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8705     \-*) ;;
8706     *) break;;
8707   esac
8708 done
8709 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8710
8711
8712 # Only perform the check for file, if the check method requires it
8713 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8714 case $deplibs_check_method in
8715 file_magic*)
8716   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8717     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8718 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8719 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8720   $as_echo_n "(cached) " >&6
8721 else
8722   case $MAGIC_CMD in
8723 [\\/*] |  ?:[\\/]*)
8724   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8725   ;;
8726 *)
8727   lt_save_MAGIC_CMD="$MAGIC_CMD"
8728   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8729   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8730   for ac_dir in $ac_dummy; do
8731     IFS="$lt_save_ifs"
8732     test -z "$ac_dir" && ac_dir=.
8733     if test -f $ac_dir/${ac_tool_prefix}file; then
8734       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8735       if test -n "$file_magic_test_file"; then
8736         case $deplibs_check_method in
8737         "file_magic "*)
8738           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8739           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8740           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8741             $EGREP "$file_magic_regex" > /dev/null; then
8742             :
8743           else
8744             cat <<_LT_EOF 1>&2
8745
8746 *** Warning: the command libtool uses to detect shared libraries,
8747 *** $file_magic_cmd, produces output that libtool cannot recognize.
8748 *** The result is that libtool may fail to recognize shared libraries
8749 *** as such.  This will affect the creation of libtool libraries that
8750 *** depend on shared libraries, but programs linked with such libtool
8751 *** libraries will work regardless of this problem.  Nevertheless, you
8752 *** may want to report the problem to your system manager and/or to
8753 *** bug-libtool@gnu.org
8754
8755 _LT_EOF
8756           fi ;;
8757         esac
8758       fi
8759       break
8760     fi
8761   done
8762   IFS="$lt_save_ifs"
8763   MAGIC_CMD="$lt_save_MAGIC_CMD"
8764   ;;
8765 esac
8766 fi
8767
8768 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8769 if test -n "$MAGIC_CMD"; then
8770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8771 $as_echo "$MAGIC_CMD" >&6; }
8772 else
8773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8774 $as_echo "no" >&6; }
8775 fi
8776
8777
8778
8779
8780
8781 if test -z "$lt_cv_path_MAGIC_CMD"; then
8782   if test -n "$ac_tool_prefix"; then
8783     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8784 $as_echo_n "checking for file... " >&6; }
8785 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8786   $as_echo_n "(cached) " >&6
8787 else
8788   case $MAGIC_CMD in
8789 [\\/*] |  ?:[\\/]*)
8790   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8791   ;;
8792 *)
8793   lt_save_MAGIC_CMD="$MAGIC_CMD"
8794   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8795   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8796   for ac_dir in $ac_dummy; do
8797     IFS="$lt_save_ifs"
8798     test -z "$ac_dir" && ac_dir=.
8799     if test -f $ac_dir/file; then
8800       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8801       if test -n "$file_magic_test_file"; then
8802         case $deplibs_check_method in
8803         "file_magic "*)
8804           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8805           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8806           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8807             $EGREP "$file_magic_regex" > /dev/null; then
8808             :
8809           else
8810             cat <<_LT_EOF 1>&2
8811
8812 *** Warning: the command libtool uses to detect shared libraries,
8813 *** $file_magic_cmd, produces output that libtool cannot recognize.
8814 *** The result is that libtool may fail to recognize shared libraries
8815 *** as such.  This will affect the creation of libtool libraries that
8816 *** depend on shared libraries, but programs linked with such libtool
8817 *** libraries will work regardless of this problem.  Nevertheless, you
8818 *** may want to report the problem to your system manager and/or to
8819 *** bug-libtool@gnu.org
8820
8821 _LT_EOF
8822           fi ;;
8823         esac
8824       fi
8825       break
8826     fi
8827   done
8828   IFS="$lt_save_ifs"
8829   MAGIC_CMD="$lt_save_MAGIC_CMD"
8830   ;;
8831 esac
8832 fi
8833
8834 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8835 if test -n "$MAGIC_CMD"; then
8836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8837 $as_echo "$MAGIC_CMD" >&6; }
8838 else
8839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8840 $as_echo "no" >&6; }
8841 fi
8842
8843
8844   else
8845     MAGIC_CMD=:
8846   fi
8847 fi
8848
8849   fi
8850   ;;
8851 esac
8852
8853 # Use C for the default configuration in the libtool script
8854
8855 lt_save_CC="$CC"
8856 ac_ext=c
8857 ac_cpp='$CPP $CPPFLAGS'
8858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8861
8862
8863 # Source file extension for C test sources.
8864 ac_ext=c
8865
8866 # Object file extension for compiled C test sources.
8867 objext=o
8868 objext=$objext
8869
8870 # Code to be used in simple compile tests
8871 lt_simple_compile_test_code="int some_variable = 0;"
8872
8873 # Code to be used in simple link tests
8874 lt_simple_link_test_code='int main(){return(0);}'
8875
8876
8877
8878
8879
8880
8881
8882 # If no C compiler was specified, use CC.
8883 LTCC=${LTCC-"$CC"}
8884
8885 # If no C compiler flags were specified, use CFLAGS.
8886 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8887
8888 # Allow CC to be a program name with arguments.
8889 compiler=$CC
8890
8891 # Save the default compiler, since it gets overwritten when the other
8892 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8893 compiler_DEFAULT=$CC
8894
8895 # save warnings/boilerplate of simple test code
8896 ac_outfile=conftest.$ac_objext
8897 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8898 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8899 _lt_compiler_boilerplate=`cat conftest.err`
8900 $RM conftest*
8901
8902 ac_outfile=conftest.$ac_objext
8903 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8904 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8905 _lt_linker_boilerplate=`cat conftest.err`
8906 $RM -r conftest*
8907
8908
8909 ## CAVEAT EMPTOR:
8910 ## There is no encapsulation within the following macros, do not change
8911 ## the running order or otherwise move them around unless you know exactly
8912 ## what you are doing...
8913 if test -n "$compiler"; then
8914
8915 lt_prog_compiler_no_builtin_flag=
8916
8917 if test "$GCC" = yes; then
8918   case $cc_basename in
8919   nvcc*)
8920     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8921   *)
8922     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8923   esac
8924
8925   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8926 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8927 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8928   $as_echo_n "(cached) " >&6
8929 else
8930   lt_cv_prog_compiler_rtti_exceptions=no
8931    ac_outfile=conftest.$ac_objext
8932    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8933    lt_compiler_flag="-fno-rtti -fno-exceptions"
8934    # Insert the option either (1) after the last *FLAGS variable, or
8935    # (2) before a word containing "conftest.", or (3) at the end.
8936    # Note that $ac_compile itself does not contain backslashes and begins
8937    # with a dollar sign (not a hyphen), so the echo should work correctly.
8938    # The option is referenced via a variable to avoid confusing sed.
8939    lt_compile=`echo "$ac_compile" | $SED \
8940    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8941    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8942    -e 's:$: $lt_compiler_flag:'`
8943    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8944    (eval "$lt_compile" 2>conftest.err)
8945    ac_status=$?
8946    cat conftest.err >&5
8947    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948    if (exit $ac_status) && test -s "$ac_outfile"; then
8949      # The compiler can only warn and ignore the option if not recognized
8950      # So say no if there are warnings other than the usual output.
8951      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8952      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8953      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8954        lt_cv_prog_compiler_rtti_exceptions=yes
8955      fi
8956    fi
8957    $RM conftest*
8958
8959 fi
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8961 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8962
8963 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8964     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8965 else
8966     :
8967 fi
8968
8969 fi
8970
8971
8972
8973
8974
8975
8976   lt_prog_compiler_wl=
8977 lt_prog_compiler_pic=
8978 lt_prog_compiler_static=
8979
8980
8981   if test "$GCC" = yes; then
8982     lt_prog_compiler_wl='-Wl,'
8983     lt_prog_compiler_static='-static'
8984
8985     case $host_os in
8986       aix*)
8987       # All AIX code is PIC.
8988       if test "$host_cpu" = ia64; then
8989         # AIX 5 now supports IA64 processor
8990         lt_prog_compiler_static='-Bstatic'
8991       fi
8992       ;;
8993
8994     amigaos*)
8995       case $host_cpu in
8996       powerpc)
8997             # see comment about AmigaOS4 .so support
8998             lt_prog_compiler_pic='-fPIC'
8999         ;;
9000       m68k)
9001             # FIXME: we need at least 68020 code to build shared libraries, but
9002             # adding the `-m68020' flag to GCC prevents building anything better,
9003             # like `-m68040'.
9004             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9005         ;;
9006       esac
9007       ;;
9008
9009     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9010       # PIC is the default for these OSes.
9011       ;;
9012
9013     mingw* | cygwin* | pw32* | os2* | cegcc*)
9014       # This hack is so that the source file can tell whether it is being
9015       # built for inclusion in a dll (and should export symbols for example).
9016       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9017       # (--disable-auto-import) libraries
9018       lt_prog_compiler_pic='-DDLL_EXPORT'
9019       ;;
9020
9021     darwin* | rhapsody*)
9022       # PIC is the default on this platform
9023       # Common symbols not allowed in MH_DYLIB files
9024       lt_prog_compiler_pic='-fno-common'
9025       ;;
9026
9027     haiku*)
9028       # PIC is the default for Haiku.
9029       # The "-static" flag exists, but is broken.
9030       lt_prog_compiler_static=
9031       ;;
9032
9033     hpux*)
9034       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9035       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9036       # sets the default TLS model and affects inlining.
9037       case $host_cpu in
9038       hppa*64*)
9039         # +Z the default
9040         ;;
9041       *)
9042         lt_prog_compiler_pic='-fPIC'
9043         ;;
9044       esac
9045       ;;
9046
9047     interix[3-9]*)
9048       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9049       # Instead, we relocate shared libraries at runtime.
9050       ;;
9051
9052     msdosdjgpp*)
9053       # Just because we use GCC doesn't mean we suddenly get shared libraries
9054       # on systems that don't support them.
9055       lt_prog_compiler_can_build_shared=no
9056       enable_shared=no
9057       ;;
9058
9059     *nto* | *qnx*)
9060       # QNX uses GNU C++, but need to define -shared option too, otherwise
9061       # it will coredump.
9062       lt_prog_compiler_pic='-fPIC -shared'
9063       ;;
9064
9065     sysv4*MP*)
9066       if test -d /usr/nec; then
9067         lt_prog_compiler_pic=-Kconform_pic
9068       fi
9069       ;;
9070
9071     *)
9072       lt_prog_compiler_pic='-fPIC'
9073       ;;
9074     esac
9075
9076     case $cc_basename in
9077     nvcc*) # Cuda Compiler Driver 2.2
9078       lt_prog_compiler_wl='-Xlinker '
9079       lt_prog_compiler_pic='-Xcompiler -fPIC'
9080       ;;
9081     esac
9082   else
9083     # PORTME Check for flag to pass linker flags through the system compiler.
9084     case $host_os in
9085     aix*)
9086       lt_prog_compiler_wl='-Wl,'
9087       if test "$host_cpu" = ia64; then
9088         # AIX 5 now supports IA64 processor
9089         lt_prog_compiler_static='-Bstatic'
9090       else
9091         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9092       fi
9093       ;;
9094
9095     mingw* | cygwin* | pw32* | os2* | cegcc*)
9096       # This hack is so that the source file can tell whether it is being
9097       # built for inclusion in a dll (and should export symbols for example).
9098       lt_prog_compiler_pic='-DDLL_EXPORT'
9099       ;;
9100
9101     hpux9* | hpux10* | hpux11*)
9102       lt_prog_compiler_wl='-Wl,'
9103       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9104       # not for PA HP-UX.
9105       case $host_cpu in
9106       hppa*64*|ia64*)
9107         # +Z the default
9108         ;;
9109       *)
9110         lt_prog_compiler_pic='+Z'
9111         ;;
9112       esac
9113       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9114       lt_prog_compiler_static='${wl}-a ${wl}archive'
9115       ;;
9116
9117     irix5* | irix6* | nonstopux*)
9118       lt_prog_compiler_wl='-Wl,'
9119       # PIC (with -KPIC) is the default.
9120       lt_prog_compiler_static='-non_shared'
9121       ;;
9122
9123     linux* | k*bsd*-gnu | kopensolaris*-gnu)
9124       case $cc_basename in
9125       # old Intel for x86_64 which still supported -KPIC.
9126       ecc*)
9127         lt_prog_compiler_wl='-Wl,'
9128         lt_prog_compiler_pic='-KPIC'
9129         lt_prog_compiler_static='-static'
9130         ;;
9131       # icc used to be incompatible with GCC.
9132       # ICC 10 doesn't accept -KPIC any more.
9133       icc* | ifort*)
9134         lt_prog_compiler_wl='-Wl,'
9135         lt_prog_compiler_pic='-fPIC'
9136         lt_prog_compiler_static='-static'
9137         ;;
9138       # Lahey Fortran 8.1.
9139       lf95*)
9140         lt_prog_compiler_wl='-Wl,'
9141         lt_prog_compiler_pic='--shared'
9142         lt_prog_compiler_static='--static'
9143         ;;
9144       nagfor*)
9145         # NAG Fortran compiler
9146         lt_prog_compiler_wl='-Wl,-Wl,,'
9147         lt_prog_compiler_pic='-PIC'
9148         lt_prog_compiler_static='-Bstatic'
9149         ;;
9150       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9151         # Portland Group compilers (*not* the Pentium gcc compiler,
9152         # which looks to be a dead project)
9153         lt_prog_compiler_wl='-Wl,'
9154         lt_prog_compiler_pic='-fpic'
9155         lt_prog_compiler_static='-Bstatic'
9156         ;;
9157       ccc*)
9158         lt_prog_compiler_wl='-Wl,'
9159         # All Alpha code is PIC.
9160         lt_prog_compiler_static='-non_shared'
9161         ;;
9162       xl* | bgxl* | bgf* | mpixl*)
9163         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9164         lt_prog_compiler_wl='-Wl,'
9165         lt_prog_compiler_pic='-qpic'
9166         lt_prog_compiler_static='-qstaticlink'
9167         ;;
9168       *)
9169         case `$CC -V 2>&1 | sed 5q` in
9170         *Sun\ F* | *Sun*Fortran*)
9171           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9172           lt_prog_compiler_pic='-KPIC'
9173           lt_prog_compiler_static='-Bstatic'
9174           lt_prog_compiler_wl=''
9175           ;;
9176         *Sun\ C*)
9177           # Sun C 5.9
9178           lt_prog_compiler_pic='-KPIC'
9179           lt_prog_compiler_static='-Bstatic'
9180           lt_prog_compiler_wl='-Wl,'
9181           ;;
9182         esac
9183         ;;
9184       esac
9185       ;;
9186
9187     newsos6)
9188       lt_prog_compiler_pic='-KPIC'
9189       lt_prog_compiler_static='-Bstatic'
9190       ;;
9191
9192     *nto* | *qnx*)
9193       # QNX uses GNU C++, but need to define -shared option too, otherwise
9194       # it will coredump.
9195       lt_prog_compiler_pic='-fPIC -shared'
9196       ;;
9197
9198     osf3* | osf4* | osf5*)
9199       lt_prog_compiler_wl='-Wl,'
9200       # All OSF/1 code is PIC.
9201       lt_prog_compiler_static='-non_shared'
9202       ;;
9203
9204     rdos*)
9205       lt_prog_compiler_static='-non_shared'
9206       ;;
9207
9208     solaris*)
9209       lt_prog_compiler_pic='-KPIC'
9210       lt_prog_compiler_static='-Bstatic'
9211       case $cc_basename in
9212       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9213         lt_prog_compiler_wl='-Qoption ld ';;
9214       *)
9215         lt_prog_compiler_wl='-Wl,';;
9216       esac
9217       ;;
9218
9219     sunos4*)
9220       lt_prog_compiler_wl='-Qoption ld '
9221       lt_prog_compiler_pic='-PIC'
9222       lt_prog_compiler_static='-Bstatic'
9223       ;;
9224
9225     sysv4 | sysv4.2uw2* | sysv4.3*)
9226       lt_prog_compiler_wl='-Wl,'
9227       lt_prog_compiler_pic='-KPIC'
9228       lt_prog_compiler_static='-Bstatic'
9229       ;;
9230
9231     sysv4*MP*)
9232       if test -d /usr/nec ;then
9233         lt_prog_compiler_pic='-Kconform_pic'
9234         lt_prog_compiler_static='-Bstatic'
9235       fi
9236       ;;
9237
9238     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9239       lt_prog_compiler_wl='-Wl,'
9240       lt_prog_compiler_pic='-KPIC'
9241       lt_prog_compiler_static='-Bstatic'
9242       ;;
9243
9244     unicos*)
9245       lt_prog_compiler_wl='-Wl,'
9246       lt_prog_compiler_can_build_shared=no
9247       ;;
9248
9249     uts4*)
9250       lt_prog_compiler_pic='-pic'
9251       lt_prog_compiler_static='-Bstatic'
9252       ;;
9253
9254     *)
9255       lt_prog_compiler_can_build_shared=no
9256       ;;
9257     esac
9258   fi
9259
9260 case $host_os in
9261   # For platforms which do not support PIC, -DPIC is meaningless:
9262   *djgpp*)
9263     lt_prog_compiler_pic=
9264     ;;
9265   *)
9266     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9267     ;;
9268 esac
9269
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9271 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9272 if ${lt_cv_prog_compiler_pic+:} false; then :
9273   $as_echo_n "(cached) " >&6
9274 else
9275   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9276 fi
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9278 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9279 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9280
9281 #
9282 # Check to make sure the PIC flag actually works.
9283 #
9284 if test -n "$lt_prog_compiler_pic"; then
9285   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9286 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9287 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9288   $as_echo_n "(cached) " >&6
9289 else
9290   lt_cv_prog_compiler_pic_works=no
9291    ac_outfile=conftest.$ac_objext
9292    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9293    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9294    # Insert the option either (1) after the last *FLAGS variable, or
9295    # (2) before a word containing "conftest.", or (3) at the end.
9296    # Note that $ac_compile itself does not contain backslashes and begins
9297    # with a dollar sign (not a hyphen), so the echo should work correctly.
9298    # The option is referenced via a variable to avoid confusing sed.
9299    lt_compile=`echo "$ac_compile" | $SED \
9300    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9301    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9302    -e 's:$: $lt_compiler_flag:'`
9303    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9304    (eval "$lt_compile" 2>conftest.err)
9305    ac_status=$?
9306    cat conftest.err >&5
9307    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308    if (exit $ac_status) && test -s "$ac_outfile"; then
9309      # The compiler can only warn and ignore the option if not recognized
9310      # So say no if there are warnings other than the usual output.
9311      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9312      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9313      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9314        lt_cv_prog_compiler_pic_works=yes
9315      fi
9316    fi
9317    $RM conftest*
9318
9319 fi
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9321 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9322
9323 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9324     case $lt_prog_compiler_pic in
9325      "" | " "*) ;;
9326      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9327      esac
9328 else
9329     lt_prog_compiler_pic=
9330      lt_prog_compiler_can_build_shared=no
9331 fi
9332
9333 fi
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345 #
9346 # Check to make sure the static flag actually works.
9347 #
9348 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9350 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9351 if ${lt_cv_prog_compiler_static_works+:} false; then :
9352   $as_echo_n "(cached) " >&6
9353 else
9354   lt_cv_prog_compiler_static_works=no
9355    save_LDFLAGS="$LDFLAGS"
9356    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9357    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9358    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9359      # The linker can only warn and ignore the option if not recognized
9360      # So say no if there are warnings
9361      if test -s conftest.err; then
9362        # Append any errors to the config.log.
9363        cat conftest.err 1>&5
9364        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9365        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9366        if diff conftest.exp conftest.er2 >/dev/null; then
9367          lt_cv_prog_compiler_static_works=yes
9368        fi
9369      else
9370        lt_cv_prog_compiler_static_works=yes
9371      fi
9372    fi
9373    $RM -r conftest*
9374    LDFLAGS="$save_LDFLAGS"
9375
9376 fi
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9378 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9379
9380 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9381     :
9382 else
9383     lt_prog_compiler_static=
9384 fi
9385
9386
9387
9388
9389
9390
9391
9392   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9393 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9394 if ${lt_cv_prog_compiler_c_o+:} false; then :
9395   $as_echo_n "(cached) " >&6
9396 else
9397   lt_cv_prog_compiler_c_o=no
9398    $RM -r conftest 2>/dev/null
9399    mkdir conftest
9400    cd conftest
9401    mkdir out
9402    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9403
9404    lt_compiler_flag="-o out/conftest2.$ac_objext"
9405    # Insert the option either (1) after the last *FLAGS variable, or
9406    # (2) before a word containing "conftest.", or (3) at the end.
9407    # Note that $ac_compile itself does not contain backslashes and begins
9408    # with a dollar sign (not a hyphen), so the echo should work correctly.
9409    lt_compile=`echo "$ac_compile" | $SED \
9410    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9411    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9412    -e 's:$: $lt_compiler_flag:'`
9413    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9414    (eval "$lt_compile" 2>out/conftest.err)
9415    ac_status=$?
9416    cat out/conftest.err >&5
9417    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9419    then
9420      # The compiler can only warn and ignore the option if not recognized
9421      # So say no if there are warnings
9422      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9423      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9424      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9425        lt_cv_prog_compiler_c_o=yes
9426      fi
9427    fi
9428    chmod u+w . 2>&5
9429    $RM conftest*
9430    # SGI C++ compiler will create directory out/ii_files/ for
9431    # template instantiation
9432    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9433    $RM out/* && rmdir out
9434    cd ..
9435    $RM -r conftest
9436    $RM conftest*
9437
9438 fi
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9440 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9441
9442
9443
9444
9445
9446
9447   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9448 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9449 if ${lt_cv_prog_compiler_c_o+:} false; then :
9450   $as_echo_n "(cached) " >&6
9451 else
9452   lt_cv_prog_compiler_c_o=no
9453    $RM -r conftest 2>/dev/null
9454    mkdir conftest
9455    cd conftest
9456    mkdir out
9457    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9458
9459    lt_compiler_flag="-o out/conftest2.$ac_objext"
9460    # Insert the option either (1) after the last *FLAGS variable, or
9461    # (2) before a word containing "conftest.", or (3) at the end.
9462    # Note that $ac_compile itself does not contain backslashes and begins
9463    # with a dollar sign (not a hyphen), so the echo should work correctly.
9464    lt_compile=`echo "$ac_compile" | $SED \
9465    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9466    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9467    -e 's:$: $lt_compiler_flag:'`
9468    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9469    (eval "$lt_compile" 2>out/conftest.err)
9470    ac_status=$?
9471    cat out/conftest.err >&5
9472    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9474    then
9475      # The compiler can only warn and ignore the option if not recognized
9476      # So say no if there are warnings
9477      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9478      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9479      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9480        lt_cv_prog_compiler_c_o=yes
9481      fi
9482    fi
9483    chmod u+w . 2>&5
9484    $RM conftest*
9485    # SGI C++ compiler will create directory out/ii_files/ for
9486    # template instantiation
9487    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9488    $RM out/* && rmdir out
9489    cd ..
9490    $RM -r conftest
9491    $RM conftest*
9492
9493 fi
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9495 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9496
9497
9498
9499
9500 hard_links="nottested"
9501 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9502   # do not overwrite the value of need_locks provided by the user
9503   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9504 $as_echo_n "checking if we can lock with hard links... " >&6; }
9505   hard_links=yes
9506   $RM conftest*
9507   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9508   touch conftest.a
9509   ln conftest.a conftest.b 2>&5 || hard_links=no
9510   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9512 $as_echo "$hard_links" >&6; }
9513   if test "$hard_links" = no; then
9514     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9515 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9516     need_locks=warn
9517   fi
9518 else
9519   need_locks=no
9520 fi
9521
9522
9523
9524
9525
9526
9527   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9528 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9529
9530   runpath_var=
9531   allow_undefined_flag=
9532   always_export_symbols=no
9533   archive_cmds=
9534   archive_expsym_cmds=
9535   compiler_needs_object=no
9536   enable_shared_with_static_runtimes=no
9537   export_dynamic_flag_spec=
9538   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9539   hardcode_automatic=no
9540   hardcode_direct=no
9541   hardcode_direct_absolute=no
9542   hardcode_libdir_flag_spec=
9543   hardcode_libdir_flag_spec_ld=
9544   hardcode_libdir_separator=
9545   hardcode_minus_L=no
9546   hardcode_shlibpath_var=unsupported
9547   inherit_rpath=no
9548   link_all_deplibs=unknown
9549   module_cmds=
9550   module_expsym_cmds=
9551   old_archive_from_new_cmds=
9552   old_archive_from_expsyms_cmds=
9553   thread_safe_flag_spec=
9554   whole_archive_flag_spec=
9555   # include_expsyms should be a list of space-separated symbols to be *always*
9556   # included in the symbol list
9557   include_expsyms=
9558   # exclude_expsyms can be an extended regexp of symbols to exclude
9559   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9560   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9561   # as well as any symbol that contains `d'.
9562   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9563   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9564   # platforms (ab)use it in PIC code, but their linkers get confused if
9565   # the symbol is explicitly referenced.  Since portable code cannot
9566   # rely on this symbol name, it's probably fine to never include it in
9567   # preloaded symbol tables.
9568   # Exclude shared library initialization/finalization symbols.
9569   extract_expsyms_cmds=
9570
9571   case $host_os in
9572   cygwin* | mingw* | pw32* | cegcc*)
9573     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9574     # When not using gcc, we currently assume that we are using
9575     # Microsoft Visual C++.
9576     if test "$GCC" != yes; then
9577       with_gnu_ld=no
9578     fi
9579     ;;
9580   interix*)
9581     # we just hope/assume this is gcc and not c89 (= MSVC++)
9582     with_gnu_ld=yes
9583     ;;
9584   openbsd*)
9585     with_gnu_ld=no
9586     ;;
9587   linux* | k*bsd*-gnu | gnu*)
9588     link_all_deplibs=no
9589     ;;
9590   esac
9591
9592   ld_shlibs=yes
9593
9594   # On some targets, GNU ld is compatible enough with the native linker
9595   # that we're better off using the native interface for both.
9596   lt_use_gnu_ld_interface=no
9597   if test "$with_gnu_ld" = yes; then
9598     case $host_os in
9599       aix*)
9600         # The AIX port of GNU ld has always aspired to compatibility
9601         # with the native linker.  However, as the warning in the GNU ld
9602         # block says, versions before 2.19.5* couldn't really create working
9603         # shared libraries, regardless of the interface used.
9604         case `$LD -v 2>&1` in
9605           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9606           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9607           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9608           *)
9609             lt_use_gnu_ld_interface=yes
9610             ;;
9611         esac
9612         ;;
9613       *)
9614         lt_use_gnu_ld_interface=yes
9615         ;;
9616     esac
9617   fi
9618
9619   if test "$lt_use_gnu_ld_interface" = yes; then
9620     # If archive_cmds runs LD, not CC, wlarc should be empty
9621     wlarc='${wl}'
9622
9623     # Set some defaults for GNU ld with shared library support. These
9624     # are reset later if shared libraries are not supported. Putting them
9625     # here allows them to be overridden if necessary.
9626     runpath_var=LD_RUN_PATH
9627     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9628     export_dynamic_flag_spec='${wl}--export-dynamic'
9629     # ancient GNU ld didn't support --whole-archive et. al.
9630     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9631       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9632     else
9633       whole_archive_flag_spec=
9634     fi
9635     supports_anon_versioning=no
9636     case `$LD -v 2>&1` in
9637       *GNU\ gold*) supports_anon_versioning=yes ;;
9638       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9639       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9640       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9641       *\ 2.11.*) ;; # other 2.11 versions
9642       *) supports_anon_versioning=yes ;;
9643     esac
9644
9645     # See if GNU ld supports shared libraries.
9646     case $host_os in
9647     aix[3-9]*)
9648       # On AIX/PPC, the GNU linker is very broken
9649       if test "$host_cpu" != ia64; then
9650         ld_shlibs=no
9651         cat <<_LT_EOF 1>&2
9652
9653 *** Warning: the GNU linker, at least up to release 2.19, is reported
9654 *** to be unable to reliably create shared libraries on AIX.
9655 *** Therefore, libtool is disabling shared libraries support.  If you
9656 *** really care for shared libraries, you may want to install binutils
9657 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9658 *** You will then need to restart the configuration process.
9659
9660 _LT_EOF
9661       fi
9662       ;;
9663
9664     amigaos*)
9665       case $host_cpu in
9666       powerpc)
9667             # see comment about AmigaOS4 .so support
9668             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9669             archive_expsym_cmds=''
9670         ;;
9671       m68k)
9672             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)'
9673             hardcode_libdir_flag_spec='-L$libdir'
9674             hardcode_minus_L=yes
9675         ;;
9676       esac
9677       ;;
9678
9679     beos*)
9680       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9681         allow_undefined_flag=unsupported
9682         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9683         # support --undefined.  This deserves some investigation.  FIXME
9684         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9685       else
9686         ld_shlibs=no
9687       fi
9688       ;;
9689
9690     cygwin* | mingw* | pw32* | cegcc*)
9691       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9692       # as there is no search path for DLLs.
9693       hardcode_libdir_flag_spec='-L$libdir'
9694       export_dynamic_flag_spec='${wl}--export-all-symbols'
9695       allow_undefined_flag=unsupported
9696       always_export_symbols=no
9697       enable_shared_with_static_runtimes=yes
9698       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'
9699       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9700
9701       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9702         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9703         # If the export-symbols file already is a .def file (1st line
9704         # is EXPORTS), use it as is; otherwise, prepend...
9705         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9706           cp $export_symbols $output_objdir/$soname.def;
9707         else
9708           echo EXPORTS > $output_objdir/$soname.def;
9709           cat $export_symbols >> $output_objdir/$soname.def;
9710         fi~
9711         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9712       else
9713         ld_shlibs=no
9714       fi
9715       ;;
9716
9717     haiku*)
9718       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9719       link_all_deplibs=yes
9720       ;;
9721
9722     interix[3-9]*)
9723       hardcode_direct=no
9724       hardcode_shlibpath_var=no
9725       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9726       export_dynamic_flag_spec='${wl}-E'
9727       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9728       # Instead, shared libraries are loaded at an image base (0x10000000 by
9729       # default) and relocated if they conflict, which is a slow very memory
9730       # consuming and fragmenting process.  To avoid this, we pick a random,
9731       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9732       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9733       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9734       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'
9735       ;;
9736
9737     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9738       tmp_diet=no
9739       if test "$host_os" = linux-dietlibc; then
9740         case $cc_basename in
9741           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9742         esac
9743       fi
9744       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9745          && test "$tmp_diet" = no
9746       then
9747         tmp_addflag=' $pic_flag'
9748         tmp_sharedflag='-shared'
9749         case $cc_basename,$host_cpu in
9750         pgcc*)                          # Portland Group C compiler
9751           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'
9752           tmp_addflag=' $pic_flag'
9753           ;;
9754         pgf77* | pgf90* | pgf95* | pgfortran*)
9755                                         # Portland Group f77 and f90 compilers
9756           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'
9757           tmp_addflag=' $pic_flag -Mnomain' ;;
9758         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9759           tmp_addflag=' -i_dynamic' ;;
9760         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9761           tmp_addflag=' -i_dynamic -nofor_main' ;;
9762         ifc* | ifort*)                  # Intel Fortran compiler
9763           tmp_addflag=' -nofor_main' ;;
9764         lf95*)                          # Lahey Fortran 8.1
9765           whole_archive_flag_spec=
9766           tmp_sharedflag='--shared' ;;
9767         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9768           tmp_sharedflag='-qmkshrobj'
9769           tmp_addflag= ;;
9770         nvcc*)  # Cuda Compiler Driver 2.2
9771           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'
9772           compiler_needs_object=yes
9773           ;;
9774         esac
9775         case `$CC -V 2>&1 | sed 5q` in
9776         *Sun\ C*)                       # Sun C 5.9
9777           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'
9778           compiler_needs_object=yes
9779           tmp_sharedflag='-G' ;;
9780         *Sun\ F*)                       # Sun Fortran 8.3
9781           tmp_sharedflag='-G' ;;
9782         esac
9783         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9784
9785         if test "x$supports_anon_versioning" = xyes; then
9786           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9787             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9788             echo "local: *; };" >> $output_objdir/$libname.ver~
9789             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9790         fi
9791
9792         case $cc_basename in
9793         xlf* | bgf* | bgxlf* | mpixlf*)
9794           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9795           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9796           hardcode_libdir_flag_spec=
9797           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9798           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9799           if test "x$supports_anon_versioning" = xyes; then
9800             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9801               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9802               echo "local: *; };" >> $output_objdir/$libname.ver~
9803               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9804           fi
9805           ;;
9806         esac
9807       else
9808         ld_shlibs=no
9809       fi
9810       ;;
9811
9812     netbsd* | netbsdelf*-gnu)
9813       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9814         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9815         wlarc=
9816       else
9817         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9818         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9819       fi
9820       ;;
9821
9822     solaris*)
9823       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9824         ld_shlibs=no
9825         cat <<_LT_EOF 1>&2
9826
9827 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9828 *** create shared libraries on Solaris systems.  Therefore, libtool
9829 *** is disabling shared libraries support.  We urge you to upgrade GNU
9830 *** binutils to release 2.9.1 or newer.  Another option is to modify
9831 *** your PATH or compiler configuration so that the native linker is
9832 *** used, and then restart.
9833
9834 _LT_EOF
9835       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9836         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9837         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9838       else
9839         ld_shlibs=no
9840       fi
9841       ;;
9842
9843     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9844       case `$LD -v 2>&1` in
9845         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9846         ld_shlibs=no
9847         cat <<_LT_EOF 1>&2
9848
9849 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9850 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9851 *** is disabling shared libraries support.  We urge you to upgrade GNU
9852 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9853 *** your PATH or compiler configuration so that the native linker is
9854 *** used, and then restart.
9855
9856 _LT_EOF
9857         ;;
9858         *)
9859           # For security reasons, it is highly recommended that you always
9860           # use absolute paths for naming shared libraries, and exclude the
9861           # DT_RUNPATH tag from executables and libraries.  But doing so
9862           # requires that you compile everything twice, which is a pain.
9863           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9864             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9865             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9866             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9867           else
9868             ld_shlibs=no
9869           fi
9870         ;;
9871       esac
9872       ;;
9873
9874     sunos4*)
9875       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9876       wlarc=
9877       hardcode_direct=yes
9878       hardcode_shlibpath_var=no
9879       ;;
9880
9881     *)
9882       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9883         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9884         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9885       else
9886         ld_shlibs=no
9887       fi
9888       ;;
9889     esac
9890
9891     if test "$ld_shlibs" = no; then
9892       runpath_var=
9893       hardcode_libdir_flag_spec=
9894       export_dynamic_flag_spec=
9895       whole_archive_flag_spec=
9896     fi
9897   else
9898     # PORTME fill in a description of your system's linker (not GNU ld)
9899     case $host_os in
9900     aix3*)
9901       allow_undefined_flag=unsupported
9902       always_export_symbols=yes
9903       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'
9904       # Note: this linker hardcodes the directories in LIBPATH if there
9905       # are no directories specified by -L.
9906       hardcode_minus_L=yes
9907       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9908         # Neither direct hardcoding nor static linking is supported with a
9909         # broken collect2.
9910         hardcode_direct=unsupported
9911       fi
9912       ;;
9913
9914     aix[4-9]*)
9915       if test "$host_cpu" = ia64; then
9916         # On IA64, the linker does run time linking by default, so we don't
9917         # have to do anything special.
9918         aix_use_runtimelinking=no
9919         exp_sym_flag='-Bexport'
9920         no_entry_flag=""
9921       else
9922         # If we're using GNU nm, then we don't want the "-C" option.
9923         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9924         # Also, AIX nm treats weak defined symbols like other global
9925         # defined symbols, whereas GNU nm marks them as "W".
9926         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9927           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9928         else
9929           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9930         fi
9931         aix_use_runtimelinking=no
9932
9933         # Test if we are trying to use run time linking or normal
9934         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9935         # need to do runtime linking.
9936         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9937           for ld_flag in $LDFLAGS; do
9938           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9939             aix_use_runtimelinking=yes
9940             break
9941           fi
9942           done
9943           ;;
9944         esac
9945
9946         exp_sym_flag='-bexport'
9947         no_entry_flag='-bnoentry'
9948       fi
9949
9950       # When large executables or shared objects are built, AIX ld can
9951       # have problems creating the table of contents.  If linking a library
9952       # or program results in "error TOC overflow" add -mminimal-toc to
9953       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9954       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9955
9956       archive_cmds=''
9957       hardcode_direct=yes
9958       hardcode_direct_absolute=yes
9959       hardcode_libdir_separator=':'
9960       link_all_deplibs=yes
9961       file_list_spec='${wl}-f,'
9962
9963       if test "$GCC" = yes; then
9964         case $host_os in aix4.[012]|aix4.[012].*)
9965         # We only want to do this on AIX 4.2 and lower, the check
9966         # below for broken collect2 doesn't work under 4.3+
9967           collect2name=`${CC} -print-prog-name=collect2`
9968           if test -f "$collect2name" &&
9969            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9970           then
9971           # We have reworked collect2
9972           :
9973           else
9974           # We have old collect2
9975           hardcode_direct=unsupported
9976           # It fails to find uninstalled libraries when the uninstalled
9977           # path is not listed in the libpath.  Setting hardcode_minus_L
9978           # to unsupported forces relinking
9979           hardcode_minus_L=yes
9980           hardcode_libdir_flag_spec='-L$libdir'
9981           hardcode_libdir_separator=
9982           fi
9983           ;;
9984         esac
9985         shared_flag='-shared'
9986         if test "$aix_use_runtimelinking" = yes; then
9987           shared_flag="$shared_flag "'${wl}-G'
9988         fi
9989         link_all_deplibs=no
9990       else
9991         # not using gcc
9992         if test "$host_cpu" = ia64; then
9993         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9994         # chokes on -Wl,-G. The following line is correct:
9995           shared_flag='-G'
9996         else
9997           if test "$aix_use_runtimelinking" = yes; then
9998             shared_flag='${wl}-G'
9999           else
10000             shared_flag='${wl}-bM:SRE'
10001           fi
10002         fi
10003       fi
10004
10005       export_dynamic_flag_spec='${wl}-bexpall'
10006       # It seems that -bexpall does not export symbols beginning with
10007       # underscore (_), so it is better to generate a list of symbols to export.
10008       always_export_symbols=yes
10009       if test "$aix_use_runtimelinking" = yes; then
10010         # Warning - without using the other runtime loading flags (-brtl),
10011         # -berok will link without error, but may produce a broken library.
10012         allow_undefined_flag='-berok'
10013         # Determine the default libpath from the value encoded in an
10014         # empty executable.
10015         if test "${lt_cv_aix_libpath+set}" = set; then
10016   aix_libpath=$lt_cv_aix_libpath
10017 else
10018   if ${lt_cv_aix_libpath_+:} false; then :
10019   $as_echo_n "(cached) " >&6
10020 else
10021   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10022 /* end confdefs.h.  */
10023
10024 int
10025 main ()
10026 {
10027
10028   ;
10029   return 0;
10030 }
10031 _ACEOF
10032 if ac_fn_c_try_link "$LINENO"; then :
10033
10034   lt_aix_libpath_sed='
10035       /Import File Strings/,/^$/ {
10036           /^0/ {
10037               s/^0  *\([^ ]*\) *$/\1/
10038               p
10039           }
10040       }'
10041   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10042   # Check for a 64-bit object if we didn't find anything.
10043   if test -z "$lt_cv_aix_libpath_"; then
10044     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10045   fi
10046 fi
10047 rm -f core conftest.err conftest.$ac_objext \
10048     conftest$ac_exeext conftest.$ac_ext
10049   if test -z "$lt_cv_aix_libpath_"; then
10050     lt_cv_aix_libpath_="/usr/lib:/lib"
10051   fi
10052
10053 fi
10054
10055   aix_libpath=$lt_cv_aix_libpath_
10056 fi
10057
10058         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10059         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10060       else
10061         if test "$host_cpu" = ia64; then
10062           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10063           allow_undefined_flag="-z nodefs"
10064           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"
10065         else
10066          # Determine the default libpath from the value encoded in an
10067          # empty executable.
10068          if test "${lt_cv_aix_libpath+set}" = set; then
10069   aix_libpath=$lt_cv_aix_libpath
10070 else
10071   if ${lt_cv_aix_libpath_+:} false; then :
10072   $as_echo_n "(cached) " >&6
10073 else
10074   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10075 /* end confdefs.h.  */
10076
10077 int
10078 main ()
10079 {
10080
10081   ;
10082   return 0;
10083 }
10084 _ACEOF
10085 if ac_fn_c_try_link "$LINENO"; then :
10086
10087   lt_aix_libpath_sed='
10088       /Import File Strings/,/^$/ {
10089           /^0/ {
10090               s/^0  *\([^ ]*\) *$/\1/
10091               p
10092           }
10093       }'
10094   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10095   # Check for a 64-bit object if we didn't find anything.
10096   if test -z "$lt_cv_aix_libpath_"; then
10097     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10098   fi
10099 fi
10100 rm -f core conftest.err conftest.$ac_objext \
10101     conftest$ac_exeext conftest.$ac_ext
10102   if test -z "$lt_cv_aix_libpath_"; then
10103     lt_cv_aix_libpath_="/usr/lib:/lib"
10104   fi
10105
10106 fi
10107
10108   aix_libpath=$lt_cv_aix_libpath_
10109 fi
10110
10111          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10112           # Warning - without using the other run time loading flags,
10113           # -berok will link without error, but may produce a broken library.
10114           no_undefined_flag=' ${wl}-bernotok'
10115           allow_undefined_flag=' ${wl}-berok'
10116           if test "$with_gnu_ld" = yes; then
10117             # We only use this code for GNU lds that support --whole-archive.
10118             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10119           else
10120             # Exported symbols can be pulled into shared objects from archives
10121             whole_archive_flag_spec='$convenience'
10122           fi
10123           archive_cmds_need_lc=yes
10124           # This is similar to how AIX traditionally builds its shared libraries.
10125           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10126         fi
10127       fi
10128       ;;
10129
10130     amigaos*)
10131       case $host_cpu in
10132       powerpc)
10133             # see comment about AmigaOS4 .so support
10134             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10135             archive_expsym_cmds=''
10136         ;;
10137       m68k)
10138             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)'
10139             hardcode_libdir_flag_spec='-L$libdir'
10140             hardcode_minus_L=yes
10141         ;;
10142       esac
10143       ;;
10144
10145     bsdi[45]*)
10146       export_dynamic_flag_spec=-rdynamic
10147       ;;
10148
10149     cygwin* | mingw* | pw32* | cegcc*)
10150       # When not using gcc, we currently assume that we are using
10151       # Microsoft Visual C++.
10152       # hardcode_libdir_flag_spec is actually meaningless, as there is
10153       # no search path for DLLs.
10154       case $cc_basename in
10155       cl*)
10156         # Native MSVC
10157         hardcode_libdir_flag_spec=' '
10158         allow_undefined_flag=unsupported
10159         always_export_symbols=yes
10160         file_list_spec='@'
10161         # Tell ltmain to make .lib files, not .a files.
10162         libext=lib
10163         # Tell ltmain to make .dll files, not .so files.
10164         shrext_cmds=".dll"
10165         # FIXME: Setting linknames here is a bad hack.
10166         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10167         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10168             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10169           else
10170             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10171           fi~
10172           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10173           linknames='
10174         # The linker will not automatically build a static lib if we build a DLL.
10175         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10176         enable_shared_with_static_runtimes=yes
10177         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10178         # Don't use ranlib
10179         old_postinstall_cmds='chmod 644 $oldlib'
10180         postlink_cmds='lt_outputfile="@OUTPUT@"~
10181           lt_tool_outputfile="@TOOL_OUTPUT@"~
10182           case $lt_outputfile in
10183             *.exe|*.EXE) ;;
10184             *)
10185               lt_outputfile="$lt_outputfile.exe"
10186               lt_tool_outputfile="$lt_tool_outputfile.exe"
10187               ;;
10188           esac~
10189           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10190             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10191             $RM "$lt_outputfile.manifest";
10192           fi'
10193         ;;
10194       *)
10195         # Assume MSVC wrapper
10196         hardcode_libdir_flag_spec=' '
10197         allow_undefined_flag=unsupported
10198         # Tell ltmain to make .lib files, not .a files.
10199         libext=lib
10200         # Tell ltmain to make .dll files, not .so files.
10201         shrext_cmds=".dll"
10202         # FIXME: Setting linknames here is a bad hack.
10203         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10204         # The linker will automatically build a .lib file if we build a DLL.
10205         old_archive_from_new_cmds='true'
10206         # FIXME: Should let the user specify the lib program.
10207         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10208         enable_shared_with_static_runtimes=yes
10209         ;;
10210       esac
10211       ;;
10212
10213     darwin* | rhapsody*)
10214
10215
10216   archive_cmds_need_lc=no
10217   hardcode_direct=no
10218   hardcode_automatic=yes
10219   hardcode_shlibpath_var=unsupported
10220   if test "$lt_cv_ld_force_load" = "yes"; then
10221     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\"`'
10222   else
10223     whole_archive_flag_spec=''
10224   fi
10225   link_all_deplibs=yes
10226   allow_undefined_flag="$_lt_dar_allow_undefined"
10227   case $cc_basename in
10228      ifort*) _lt_dar_can_shared=yes ;;
10229      *) _lt_dar_can_shared=$GCC ;;
10230   esac
10231   if test "$_lt_dar_can_shared" = "yes"; then
10232     output_verbose_link_cmd=func_echo_all
10233     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10234     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10235     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}"
10236     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}"
10237
10238   else
10239   ld_shlibs=no
10240   fi
10241
10242       ;;
10243
10244     dgux*)
10245       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10246       hardcode_libdir_flag_spec='-L$libdir'
10247       hardcode_shlibpath_var=no
10248       ;;
10249
10250     freebsd1*)
10251       ld_shlibs=no
10252       ;;
10253
10254     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10255     # support.  Future versions do this automatically, but an explicit c++rt0.o
10256     # does not break anything, and helps significantly (at the cost of a little
10257     # extra space).
10258     freebsd2.2*)
10259       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10260       hardcode_libdir_flag_spec='-R$libdir'
10261       hardcode_direct=yes
10262       hardcode_shlibpath_var=no
10263       ;;
10264
10265     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10266     freebsd2*)
10267       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10268       hardcode_direct=yes
10269       hardcode_minus_L=yes
10270       hardcode_shlibpath_var=no
10271       ;;
10272
10273     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10274     freebsd* | dragonfly*)
10275       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10276       hardcode_libdir_flag_spec='-R$libdir'
10277       hardcode_direct=yes
10278       hardcode_shlibpath_var=no
10279       ;;
10280
10281     hpux9*)
10282       if test "$GCC" = yes; then
10283         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10284       else
10285         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10286       fi
10287       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10288       hardcode_libdir_separator=:
10289       hardcode_direct=yes
10290
10291       # hardcode_minus_L: Not really in the search PATH,
10292       # but as the default location of the library.
10293       hardcode_minus_L=yes
10294       export_dynamic_flag_spec='${wl}-E'
10295       ;;
10296
10297     hpux10*)
10298       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10299         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10300       else
10301         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10302       fi
10303       if test "$with_gnu_ld" = no; then
10304         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10305         hardcode_libdir_flag_spec_ld='+b $libdir'
10306         hardcode_libdir_separator=:
10307         hardcode_direct=yes
10308         hardcode_direct_absolute=yes
10309         export_dynamic_flag_spec='${wl}-E'
10310         # hardcode_minus_L: Not really in the search PATH,
10311         # but as the default location of the library.
10312         hardcode_minus_L=yes
10313       fi
10314       ;;
10315
10316     hpux11*)
10317       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10318         case $host_cpu in
10319         hppa*64*)
10320           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10321           ;;
10322         ia64*)
10323           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10324           ;;
10325         *)
10326           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10327           ;;
10328         esac
10329       else
10330         case $host_cpu in
10331         hppa*64*)
10332           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10333           ;;
10334         ia64*)
10335           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10336           ;;
10337         *)
10338
10339           # Older versions of the 11.00 compiler do not understand -b yet
10340           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10341           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10342 $as_echo_n "checking if $CC understands -b... " >&6; }
10343 if ${lt_cv_prog_compiler__b+:} false; then :
10344   $as_echo_n "(cached) " >&6
10345 else
10346   lt_cv_prog_compiler__b=no
10347    save_LDFLAGS="$LDFLAGS"
10348    LDFLAGS="$LDFLAGS -b"
10349    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10350    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10351      # The linker can only warn and ignore the option if not recognized
10352      # So say no if there are warnings
10353      if test -s conftest.err; then
10354        # Append any errors to the config.log.
10355        cat conftest.err 1>&5
10356        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10357        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10358        if diff conftest.exp conftest.er2 >/dev/null; then
10359          lt_cv_prog_compiler__b=yes
10360        fi
10361      else
10362        lt_cv_prog_compiler__b=yes
10363      fi
10364    fi
10365    $RM -r conftest*
10366    LDFLAGS="$save_LDFLAGS"
10367
10368 fi
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10370 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10371
10372 if test x"$lt_cv_prog_compiler__b" = xyes; then
10373     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10374 else
10375     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10376 fi
10377
10378           ;;
10379         esac
10380       fi
10381       if test "$with_gnu_ld" = no; then
10382         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10383         hardcode_libdir_separator=:
10384
10385         case $host_cpu in
10386         hppa*64*|ia64*)
10387           hardcode_direct=no
10388           hardcode_shlibpath_var=no
10389           ;;
10390         *)
10391           hardcode_direct=yes
10392           hardcode_direct_absolute=yes
10393           export_dynamic_flag_spec='${wl}-E'
10394
10395           # hardcode_minus_L: Not really in the search PATH,
10396           # but as the default location of the library.
10397           hardcode_minus_L=yes
10398           ;;
10399         esac
10400       fi
10401       ;;
10402
10403     irix5* | irix6* | nonstopux*)
10404       if test "$GCC" = yes; then
10405         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'
10406         # Try to use the -exported_symbol ld option, if it does not
10407         # work, assume that -exports_file does not work either and
10408         # implicitly export all symbols.
10409         # This should be the same for all languages, so no per-tag cache variable.
10410         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10411 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10412 if ${lt_cv_irix_exported_symbol+:} false; then :
10413   $as_echo_n "(cached) " >&6
10414 else
10415   save_LDFLAGS="$LDFLAGS"
10416            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10417            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10418 /* end confdefs.h.  */
10419 int foo (void) { return 0; }
10420 _ACEOF
10421 if ac_fn_c_try_link "$LINENO"; then :
10422   lt_cv_irix_exported_symbol=yes
10423 else
10424   lt_cv_irix_exported_symbol=no
10425 fi
10426 rm -f core conftest.err conftest.$ac_objext \
10427     conftest$ac_exeext conftest.$ac_ext
10428            LDFLAGS="$save_LDFLAGS"
10429 fi
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10431 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10432         if test "$lt_cv_irix_exported_symbol" = yes; then
10433           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'
10434         fi
10435       else
10436         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'
10437         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'
10438       fi
10439       archive_cmds_need_lc='no'
10440       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10441       hardcode_libdir_separator=:
10442       inherit_rpath=yes
10443       link_all_deplibs=yes
10444       ;;
10445
10446     netbsd* | netbsdelf*-gnu)
10447       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10448         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10449       else
10450         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10451       fi
10452       hardcode_libdir_flag_spec='-R$libdir'
10453       hardcode_direct=yes
10454       hardcode_shlibpath_var=no
10455       ;;
10456
10457     newsos6)
10458       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10459       hardcode_direct=yes
10460       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10461       hardcode_libdir_separator=:
10462       hardcode_shlibpath_var=no
10463       ;;
10464
10465     *nto* | *qnx*)
10466       ;;
10467
10468     openbsd*)
10469       if test -f /usr/libexec/ld.so; then
10470         hardcode_direct=yes
10471         hardcode_shlibpath_var=no
10472         hardcode_direct_absolute=yes
10473         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10474           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10475           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10476           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10477           export_dynamic_flag_spec='${wl}-E'
10478         else
10479           case $host_os in
10480            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10481              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10482              hardcode_libdir_flag_spec='-R$libdir'
10483              ;;
10484            *)
10485              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10486              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10487              ;;
10488           esac
10489         fi
10490       else
10491         ld_shlibs=no
10492       fi
10493       ;;
10494
10495     os2*)
10496       hardcode_libdir_flag_spec='-L$libdir'
10497       hardcode_minus_L=yes
10498       allow_undefined_flag=unsupported
10499       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10500       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10501       ;;
10502
10503     osf3*)
10504       if test "$GCC" = yes; then
10505         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10506         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'
10507       else
10508         allow_undefined_flag=' -expect_unresolved \*'
10509         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'
10510       fi
10511       archive_cmds_need_lc='no'
10512       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10513       hardcode_libdir_separator=:
10514       ;;
10515
10516     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10517       if test "$GCC" = yes; then
10518         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10519         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'
10520         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10521       else
10522         allow_undefined_flag=' -expect_unresolved \*'
10523         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'
10524         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~
10525         $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'
10526
10527         # Both c and cxx compiler support -rpath directly
10528         hardcode_libdir_flag_spec='-rpath $libdir'
10529       fi
10530       archive_cmds_need_lc='no'
10531       hardcode_libdir_separator=:
10532       ;;
10533
10534     solaris*)
10535       no_undefined_flag=' -z defs'
10536       if test "$GCC" = yes; then
10537         wlarc='${wl}'
10538         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10539         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10540           $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'
10541       else
10542         case `$CC -V 2>&1` in
10543         *"Compilers 5.0"*)
10544           wlarc=''
10545           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10546           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10547           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10548           ;;
10549         *)
10550           wlarc='${wl}'
10551           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10552           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10553           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10554           ;;
10555         esac
10556       fi
10557       hardcode_libdir_flag_spec='-R$libdir'
10558       hardcode_shlibpath_var=no
10559       case $host_os in
10560       solaris2.[0-5] | solaris2.[0-5].*) ;;
10561       *)
10562         # The compiler driver will combine and reorder linker options,
10563         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10564         # but is careful enough not to reorder.
10565         # Supported since Solaris 2.6 (maybe 2.5.1?)
10566         if test "$GCC" = yes; then
10567           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10568         else
10569           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10570         fi
10571         ;;
10572       esac
10573       link_all_deplibs=yes
10574       ;;
10575
10576     sunos4*)
10577       if test "x$host_vendor" = xsequent; then
10578         # Use $CC to link under sequent, because it throws in some extra .o
10579         # files that make .init and .fini sections work.
10580         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10581       else
10582         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10583       fi
10584       hardcode_libdir_flag_spec='-L$libdir'
10585       hardcode_direct=yes
10586       hardcode_minus_L=yes
10587       hardcode_shlibpath_var=no
10588       ;;
10589
10590     sysv4)
10591       case $host_vendor in
10592         sni)
10593           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10594           hardcode_direct=yes # is this really true???
10595         ;;
10596         siemens)
10597           ## LD is ld it makes a PLAMLIB
10598           ## CC just makes a GrossModule.
10599           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10600           reload_cmds='$CC -r -o $output$reload_objs'
10601           hardcode_direct=no
10602         ;;
10603         motorola)
10604           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10605           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10606         ;;
10607       esac
10608       runpath_var='LD_RUN_PATH'
10609       hardcode_shlibpath_var=no
10610       ;;
10611
10612     sysv4.3*)
10613       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10614       hardcode_shlibpath_var=no
10615       export_dynamic_flag_spec='-Bexport'
10616       ;;
10617
10618     sysv4*MP*)
10619       if test -d /usr/nec; then
10620         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10621         hardcode_shlibpath_var=no
10622         runpath_var=LD_RUN_PATH
10623         hardcode_runpath_var=yes
10624         ld_shlibs=yes
10625       fi
10626       ;;
10627
10628     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10629       no_undefined_flag='${wl}-z,text'
10630       archive_cmds_need_lc=no
10631       hardcode_shlibpath_var=no
10632       runpath_var='LD_RUN_PATH'
10633
10634       if test "$GCC" = yes; then
10635         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10636         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10637       else
10638         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10639         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10640       fi
10641       ;;
10642
10643     sysv5* | sco3.2v5* | sco5v6*)
10644       # Note: We can NOT use -z defs as we might desire, because we do not
10645       # link with -lc, and that would cause any symbols used from libc to
10646       # always be unresolved, which means just about no library would
10647       # ever link correctly.  If we're not using GNU ld we use -z text
10648       # though, which does catch some bad symbols but isn't as heavy-handed
10649       # as -z defs.
10650       no_undefined_flag='${wl}-z,text'
10651       allow_undefined_flag='${wl}-z,nodefs'
10652       archive_cmds_need_lc=no
10653       hardcode_shlibpath_var=no
10654       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10655       hardcode_libdir_separator=':'
10656       link_all_deplibs=yes
10657       export_dynamic_flag_spec='${wl}-Bexport'
10658       runpath_var='LD_RUN_PATH'
10659
10660       if test "$GCC" = yes; then
10661         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10662         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10663       else
10664         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10665         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10666       fi
10667       ;;
10668
10669     uts4*)
10670       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10671       hardcode_libdir_flag_spec='-L$libdir'
10672       hardcode_shlibpath_var=no
10673       ;;
10674
10675     *)
10676       ld_shlibs=no
10677       ;;
10678     esac
10679
10680     if test x$host_vendor = xsni; then
10681       case $host in
10682       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10683         export_dynamic_flag_spec='${wl}-Blargedynsym'
10684         ;;
10685       esac
10686     fi
10687   fi
10688
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10690 $as_echo "$ld_shlibs" >&6; }
10691 test "$ld_shlibs" = no && can_build_shared=no
10692
10693 with_gnu_ld=$with_gnu_ld
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709 #
10710 # Do we need to explicitly link libc?
10711 #
10712 case "x$archive_cmds_need_lc" in
10713 x|xyes)
10714   # Assume -lc should be added
10715   archive_cmds_need_lc=yes
10716
10717   if test "$enable_shared" = yes && test "$GCC" = yes; then
10718     case $archive_cmds in
10719     *'~'*)
10720       # FIXME: we may have to deal with multi-command sequences.
10721       ;;
10722     '$CC '*)
10723       # Test whether the compiler implicitly links with -lc since on some
10724       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10725       # to ld, don't add -lc before -lgcc.
10726       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10727 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10728 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10729   $as_echo_n "(cached) " >&6
10730 else
10731   $RM conftest*
10732         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10733
10734         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10735   (eval $ac_compile) 2>&5
10736   ac_status=$?
10737   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10738   test $ac_status = 0; } 2>conftest.err; then
10739           soname=conftest
10740           lib=conftest
10741           libobjs=conftest.$ac_objext
10742           deplibs=
10743           wl=$lt_prog_compiler_wl
10744           pic_flag=$lt_prog_compiler_pic
10745           compiler_flags=-v
10746           linker_flags=-v
10747           verstring=
10748           output_objdir=.
10749           libname=conftest
10750           lt_save_allow_undefined_flag=$allow_undefined_flag
10751           allow_undefined_flag=
10752           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10753   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10754   ac_status=$?
10755   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10756   test $ac_status = 0; }
10757           then
10758             lt_cv_archive_cmds_need_lc=no
10759           else
10760             lt_cv_archive_cmds_need_lc=yes
10761           fi
10762           allow_undefined_flag=$lt_save_allow_undefined_flag
10763         else
10764           cat conftest.err 1>&5
10765         fi
10766         $RM conftest*
10767
10768 fi
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10770 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10771       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10772       ;;
10773     esac
10774   fi
10775   ;;
10776 esac
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
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10935 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10936
10937 if test "$GCC" = yes; then
10938   case $host_os in
10939     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10940     *) lt_awk_arg="/^libraries:/" ;;
10941   esac
10942   case $host_os in
10943     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10944     *) lt_sed_strip_eq="s,=/,/,g" ;;
10945   esac
10946   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10947   case $lt_search_path_spec in
10948   *\;*)
10949     # if the path contains ";" then we assume it to be the separator
10950     # otherwise default to the standard path separator (i.e. ":") - it is
10951     # assumed that no part of a normal pathname contains ";" but that should
10952     # okay in the real world where ";" in dirpaths is itself problematic.
10953     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10954     ;;
10955   *)
10956     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10957     ;;
10958   esac
10959   # Ok, now we have the path, separated by spaces, we can step through it
10960   # and add multilib dir if necessary.
10961   lt_tmp_lt_search_path_spec=
10962   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10963   for lt_sys_path in $lt_search_path_spec; do
10964     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10965       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10966     else
10967       test -d "$lt_sys_path" && \
10968         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10969     fi
10970   done
10971   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10972 BEGIN {RS=" "; FS="/|\n";} {
10973   lt_foo="";
10974   lt_count=0;
10975   for (lt_i = NF; lt_i > 0; lt_i--) {
10976     if ($lt_i != "" && $lt_i != ".") {
10977       if ($lt_i == "..") {
10978         lt_count++;
10979       } else {
10980         if (lt_count == 0) {
10981           lt_foo="/" $lt_i lt_foo;
10982         } else {
10983           lt_count--;
10984         }
10985       }
10986     }
10987   }
10988   if (lt_foo != "") { lt_freq[lt_foo]++; }
10989   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10990 }'`
10991   # AWK program above erroneously prepends '/' to C:/dos/paths
10992   # for these hosts.
10993   case $host_os in
10994     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10995       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10996   esac
10997   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10998 else
10999   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11000 fi
11001 library_names_spec=
11002 libname_spec='lib$name'
11003 soname_spec=
11004 shrext_cmds=".so"
11005 postinstall_cmds=
11006 postuninstall_cmds=
11007 finish_cmds=
11008 finish_eval=
11009 shlibpath_var=
11010 shlibpath_overrides_runpath=unknown
11011 version_type=none
11012 dynamic_linker="$host_os ld.so"
11013 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11014 need_lib_prefix=unknown
11015 hardcode_into_libs=no
11016
11017 # when you set need_version to no, make sure it does not cause -set_version
11018 # flags to be left without arguments
11019 need_version=unknown
11020
11021 case $host_os in
11022 aix3*)
11023   version_type=linux
11024   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11025   shlibpath_var=LIBPATH
11026
11027   # AIX 3 has no versioning support, so we append a major version to the name.
11028   soname_spec='${libname}${release}${shared_ext}$major'
11029   ;;
11030
11031 aix[4-9]*)
11032   version_type=linux
11033   need_lib_prefix=no
11034   need_version=no
11035   hardcode_into_libs=yes
11036   if test "$host_cpu" = ia64; then
11037     # AIX 5 supports IA64
11038     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11039     shlibpath_var=LD_LIBRARY_PATH
11040   else
11041     # With GCC up to 2.95.x, collect2 would create an import file
11042     # for dependence libraries.  The import file would start with
11043     # the line `#! .'.  This would cause the generated library to
11044     # depend on `.', always an invalid library.  This was fixed in
11045     # development snapshots of GCC prior to 3.0.
11046     case $host_os in
11047       aix4 | aix4.[01] | aix4.[01].*)
11048       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11049            echo ' yes '
11050            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11051         :
11052       else
11053         can_build_shared=no
11054       fi
11055       ;;
11056     esac
11057     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11058     # soname into executable. Probably we can add versioning support to
11059     # collect2, so additional links can be useful in future.
11060     if test "$aix_use_runtimelinking" = yes; then
11061       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11062       # instead of lib<name>.a to let people know that these are not
11063       # typical AIX shared libraries.
11064       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11065     else
11066       # We preserve .a as extension for shared libraries through AIX4.2
11067       # and later when we are not doing run time linking.
11068       library_names_spec='${libname}${release}.a $libname.a'
11069       soname_spec='${libname}${release}${shared_ext}$major'
11070     fi
11071     shlibpath_var=LIBPATH
11072   fi
11073   ;;
11074
11075 amigaos*)
11076   case $host_cpu in
11077   powerpc)
11078     # Since July 2007 AmigaOS4 officially supports .so libraries.
11079     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11080     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11081     ;;
11082   m68k)
11083     library_names_spec='$libname.ixlibrary $libname.a'
11084     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11085     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11086     ;;
11087   esac
11088   ;;
11089
11090 beos*)
11091   library_names_spec='${libname}${shared_ext}'
11092   dynamic_linker="$host_os ld.so"
11093   shlibpath_var=LIBRARY_PATH
11094   ;;
11095
11096 bsdi[45]*)
11097   version_type=linux
11098   need_version=no
11099   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11100   soname_spec='${libname}${release}${shared_ext}$major'
11101   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11102   shlibpath_var=LD_LIBRARY_PATH
11103   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11104   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11105   # the default ld.so.conf also contains /usr/contrib/lib and
11106   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11107   # libtool to hard-code these into programs
11108   ;;
11109
11110 cygwin* | mingw* | pw32* | cegcc*)
11111   version_type=windows
11112   shrext_cmds=".dll"
11113   need_version=no
11114   need_lib_prefix=no
11115
11116   case $GCC,$cc_basename in
11117   yes,*)
11118     # gcc
11119     library_names_spec='$libname.dll.a'
11120     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11121     postinstall_cmds='base_file=`basename \${file}`~
11122       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11123       dldir=$destdir/`dirname \$dlpath`~
11124       test -d \$dldir || mkdir -p \$dldir~
11125       $install_prog $dir/$dlname \$dldir/$dlname~
11126       chmod a+x \$dldir/$dlname~
11127       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11128         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11129       fi'
11130     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11131       dlpath=$dir/\$dldll~
11132        $RM \$dlpath'
11133     shlibpath_overrides_runpath=yes
11134
11135     case $host_os in
11136     cygwin*)
11137       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11138       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11139
11140       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11141       ;;
11142     mingw* | cegcc*)
11143       # MinGW DLLs use traditional 'lib' prefix
11144       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11145       ;;
11146     pw32*)
11147       # pw32 DLLs use 'pw' prefix rather than 'lib'
11148       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11149       ;;
11150     esac
11151     dynamic_linker='Win32 ld.exe'
11152     ;;
11153
11154   *,cl*)
11155     # Native MSVC
11156     libname_spec='$name'
11157     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11158     library_names_spec='${libname}.dll.lib'
11159
11160     case $build_os in
11161     mingw*)
11162       sys_lib_search_path_spec=
11163       lt_save_ifs=$IFS
11164       IFS=';'
11165       for lt_path in $LIB
11166       do
11167         IFS=$lt_save_ifs
11168         # Let DOS variable expansion print the short 8.3 style file name.
11169         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11170         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11171       done
11172       IFS=$lt_save_ifs
11173       # Convert to MSYS style.
11174       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11175       ;;
11176     cygwin*)
11177       # Convert to unix form, then to dos form, then back to unix form
11178       # but this time dos style (no spaces!) so that the unix form looks
11179       # like /cygdrive/c/PROGRA~1:/cygdr...
11180       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11181       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11182       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11183       ;;
11184     *)
11185       sys_lib_search_path_spec="$LIB"
11186       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11187         # It is most probably a Windows format PATH.
11188         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11189       else
11190         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11191       fi
11192       # FIXME: find the short name or the path components, as spaces are
11193       # common. (e.g. "Program Files" -> "PROGRA~1")
11194       ;;
11195     esac
11196
11197     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11198     postinstall_cmds='base_file=`basename \${file}`~
11199       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11200       dldir=$destdir/`dirname \$dlpath`~
11201       test -d \$dldir || mkdir -p \$dldir~
11202       $install_prog $dir/$dlname \$dldir/$dlname'
11203     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11204       dlpath=$dir/\$dldll~
11205        $RM \$dlpath'
11206     shlibpath_overrides_runpath=yes
11207     dynamic_linker='Win32 link.exe'
11208     ;;
11209
11210   *)
11211     # Assume MSVC wrapper
11212     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11213     dynamic_linker='Win32 ld.exe'
11214     ;;
11215   esac
11216   # FIXME: first we should search . and the directory the executable is in
11217   shlibpath_var=PATH
11218   ;;
11219
11220 darwin* | rhapsody*)
11221   dynamic_linker="$host_os dyld"
11222   version_type=darwin
11223   need_lib_prefix=no
11224   need_version=no
11225   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11226   soname_spec='${libname}${release}${major}$shared_ext'
11227   shlibpath_overrides_runpath=yes
11228   shlibpath_var=DYLD_LIBRARY_PATH
11229   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11230
11231   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11232   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11233   ;;
11234
11235 dgux*)
11236   version_type=linux
11237   need_lib_prefix=no
11238   need_version=no
11239   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11240   soname_spec='${libname}${release}${shared_ext}$major'
11241   shlibpath_var=LD_LIBRARY_PATH
11242   ;;
11243
11244 freebsd1*)
11245   dynamic_linker=no
11246   ;;
11247
11248 freebsd* | dragonfly*)
11249   # DragonFly does not have aout.  When/if they implement a new
11250   # versioning mechanism, adjust this.
11251   if test -x /usr/bin/objformat; then
11252     objformat=`/usr/bin/objformat`
11253   else
11254     case $host_os in
11255     freebsd[123]*) objformat=aout ;;
11256     *) objformat=elf ;;
11257     esac
11258   fi
11259   version_type=freebsd-$objformat
11260   case $version_type in
11261     freebsd-elf*)
11262       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11263       need_version=no
11264       need_lib_prefix=no
11265       ;;
11266     freebsd-*)
11267       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11268       need_version=yes
11269       ;;
11270   esac
11271   shlibpath_var=LD_LIBRARY_PATH
11272   case $host_os in
11273   freebsd2*)
11274     shlibpath_overrides_runpath=yes
11275     ;;
11276   freebsd3.[01]* | freebsdelf3.[01]*)
11277     shlibpath_overrides_runpath=yes
11278     hardcode_into_libs=yes
11279     ;;
11280   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11281   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11282     shlibpath_overrides_runpath=no
11283     hardcode_into_libs=yes
11284     ;;
11285   *) # from 4.6 on, and DragonFly
11286     shlibpath_overrides_runpath=yes
11287     hardcode_into_libs=yes
11288     ;;
11289   esac
11290   ;;
11291
11292 gnu*)
11293   version_type=linux
11294   need_lib_prefix=no
11295   need_version=no
11296   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11297   soname_spec='${libname}${release}${shared_ext}$major'
11298   shlibpath_var=LD_LIBRARY_PATH
11299   shlibpath_overrides_runpath=no
11300   hardcode_into_libs=yes
11301   ;;
11302
11303 haiku*)
11304   version_type=linux
11305   need_lib_prefix=no
11306   need_version=no
11307   dynamic_linker="$host_os runtime_loader"
11308   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11309   soname_spec='${libname}${release}${shared_ext}$major'
11310   shlibpath_var=LIBRARY_PATH
11311   shlibpath_overrides_runpath=yes
11312   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11313   hardcode_into_libs=yes
11314   ;;
11315
11316 hpux9* | hpux10* | hpux11*)
11317   # Give a soname corresponding to the major version so that dld.sl refuses to
11318   # link against other versions.
11319   version_type=sunos
11320   need_lib_prefix=no
11321   need_version=no
11322   case $host_cpu in
11323   ia64*)
11324     shrext_cmds='.so'
11325     hardcode_into_libs=yes
11326     dynamic_linker="$host_os dld.so"
11327     shlibpath_var=LD_LIBRARY_PATH
11328     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11329     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11330     soname_spec='${libname}${release}${shared_ext}$major'
11331     if test "X$HPUX_IA64_MODE" = X32; then
11332       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11333     else
11334       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11335     fi
11336     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11337     ;;
11338   hppa*64*)
11339     shrext_cmds='.sl'
11340     hardcode_into_libs=yes
11341     dynamic_linker="$host_os dld.sl"
11342     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11343     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11344     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11345     soname_spec='${libname}${release}${shared_ext}$major'
11346     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11347     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11348     ;;
11349   *)
11350     shrext_cmds='.sl'
11351     dynamic_linker="$host_os dld.sl"
11352     shlibpath_var=SHLIB_PATH
11353     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11354     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11355     soname_spec='${libname}${release}${shared_ext}$major'
11356     ;;
11357   esac
11358   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11359   postinstall_cmds='chmod 555 $lib'
11360   # or fails outright, so override atomically:
11361   install_override_mode=555
11362   ;;
11363
11364 interix[3-9]*)
11365   version_type=linux
11366   need_lib_prefix=no
11367   need_version=no
11368   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11369   soname_spec='${libname}${release}${shared_ext}$major'
11370   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11371   shlibpath_var=LD_LIBRARY_PATH
11372   shlibpath_overrides_runpath=no
11373   hardcode_into_libs=yes
11374   ;;
11375
11376 irix5* | irix6* | nonstopux*)
11377   case $host_os in
11378     nonstopux*) version_type=nonstopux ;;
11379     *)
11380         if test "$lt_cv_prog_gnu_ld" = yes; then
11381                 version_type=linux
11382         else
11383                 version_type=irix
11384         fi ;;
11385   esac
11386   need_lib_prefix=no
11387   need_version=no
11388   soname_spec='${libname}${release}${shared_ext}$major'
11389   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11390   case $host_os in
11391   irix5* | nonstopux*)
11392     libsuff= shlibsuff=
11393     ;;
11394   *)
11395     case $LD in # libtool.m4 will add one of these switches to LD
11396     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11397       libsuff= shlibsuff= libmagic=32-bit;;
11398     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11399       libsuff=32 shlibsuff=N32 libmagic=N32;;
11400     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11401       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11402     *) libsuff= shlibsuff= libmagic=never-match;;
11403     esac
11404     ;;
11405   esac
11406   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11407   shlibpath_overrides_runpath=no
11408   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11409   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11410   hardcode_into_libs=yes
11411   ;;
11412
11413 # No shared lib support for Linux oldld, aout, or coff.
11414 linux*oldld* | linux*aout* | linux*coff*)
11415   dynamic_linker=no
11416   ;;
11417
11418 # This must be Linux ELF.
11419 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11420   version_type=linux
11421   need_lib_prefix=no
11422   need_version=no
11423   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11424   soname_spec='${libname}${release}${shared_ext}$major'
11425   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11426   shlibpath_var=LD_LIBRARY_PATH
11427   shlibpath_overrides_runpath=no
11428
11429   # Some binutils ld are patched to set DT_RUNPATH
11430   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11431   $as_echo_n "(cached) " >&6
11432 else
11433   lt_cv_shlibpath_overrides_runpath=no
11434     save_LDFLAGS=$LDFLAGS
11435     save_libdir=$libdir
11436     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11437          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11438     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11439 /* end confdefs.h.  */
11440
11441 int
11442 main ()
11443 {
11444
11445   ;
11446   return 0;
11447 }
11448 _ACEOF
11449 if ac_fn_c_try_link "$LINENO"; then :
11450   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11451   lt_cv_shlibpath_overrides_runpath=yes
11452 fi
11453 fi
11454 rm -f core conftest.err conftest.$ac_objext \
11455     conftest$ac_exeext conftest.$ac_ext
11456     LDFLAGS=$save_LDFLAGS
11457     libdir=$save_libdir
11458
11459 fi
11460
11461   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11462
11463   # This implies no fast_install, which is unacceptable.
11464   # Some rework will be needed to allow for fast_install
11465   # before this can be enabled.
11466   hardcode_into_libs=yes
11467
11468   # Append ld.so.conf contents to the search path
11469   if test -f /etc/ld.so.conf; then
11470     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' ' '`
11471     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11472   fi
11473
11474   # We used to test for /lib/ld.so.1 and disable shared libraries on
11475   # powerpc, because MkLinux only supported shared libraries with the
11476   # GNU dynamic linker.  Since this was broken with cross compilers,
11477   # most powerpc-linux boxes support dynamic linking these days and
11478   # people can always --disable-shared, the test was removed, and we
11479   # assume the GNU/Linux dynamic linker is in use.
11480   dynamic_linker='GNU/Linux ld.so'
11481   ;;
11482
11483 netbsdelf*-gnu)
11484   version_type=linux
11485   need_lib_prefix=no
11486   need_version=no
11487   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11488   soname_spec='${libname}${release}${shared_ext}$major'
11489   shlibpath_var=LD_LIBRARY_PATH
11490   shlibpath_overrides_runpath=no
11491   hardcode_into_libs=yes
11492   dynamic_linker='NetBSD ld.elf_so'
11493   ;;
11494
11495 netbsd*)
11496   version_type=sunos
11497   need_lib_prefix=no
11498   need_version=no
11499   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11500     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11501     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11502     dynamic_linker='NetBSD (a.out) ld.so'
11503   else
11504     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11505     soname_spec='${libname}${release}${shared_ext}$major'
11506     dynamic_linker='NetBSD ld.elf_so'
11507   fi
11508   shlibpath_var=LD_LIBRARY_PATH
11509   shlibpath_overrides_runpath=yes
11510   hardcode_into_libs=yes
11511   ;;
11512
11513 newsos6)
11514   version_type=linux
11515   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11516   shlibpath_var=LD_LIBRARY_PATH
11517   shlibpath_overrides_runpath=yes
11518   ;;
11519
11520 *nto* | *qnx*)
11521   version_type=qnx
11522   need_lib_prefix=no
11523   need_version=no
11524   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11525   soname_spec='${libname}${release}${shared_ext}$major'
11526   shlibpath_var=LD_LIBRARY_PATH
11527   shlibpath_overrides_runpath=no
11528   hardcode_into_libs=yes
11529   dynamic_linker='ldqnx.so'
11530   ;;
11531
11532 openbsd*)
11533   version_type=sunos
11534   sys_lib_dlsearch_path_spec="/usr/lib"
11535   need_lib_prefix=no
11536   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11537   case $host_os in
11538     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11539     *)                          need_version=no  ;;
11540   esac
11541   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11542   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11543   shlibpath_var=LD_LIBRARY_PATH
11544   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11545     case $host_os in
11546       openbsd2.[89] | openbsd2.[89].*)
11547         shlibpath_overrides_runpath=no
11548         ;;
11549       *)
11550         shlibpath_overrides_runpath=yes
11551         ;;
11552       esac
11553   else
11554     shlibpath_overrides_runpath=yes
11555   fi
11556   ;;
11557
11558 os2*)
11559   libname_spec='$name'
11560   shrext_cmds=".dll"
11561   need_lib_prefix=no
11562   library_names_spec='$libname${shared_ext} $libname.a'
11563   dynamic_linker='OS/2 ld.exe'
11564   shlibpath_var=LIBPATH
11565   ;;
11566
11567 osf3* | osf4* | osf5*)
11568   version_type=osf
11569   need_lib_prefix=no
11570   need_version=no
11571   soname_spec='${libname}${release}${shared_ext}$major'
11572   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11573   shlibpath_var=LD_LIBRARY_PATH
11574   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11575   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11576   ;;
11577
11578 rdos*)
11579   dynamic_linker=no
11580   ;;
11581
11582 solaris*)
11583   version_type=linux
11584   need_lib_prefix=no
11585   need_version=no
11586   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11587   soname_spec='${libname}${release}${shared_ext}$major'
11588   shlibpath_var=LD_LIBRARY_PATH
11589   shlibpath_overrides_runpath=yes
11590   hardcode_into_libs=yes
11591   # ldd complains unless libraries are executable
11592   postinstall_cmds='chmod +x $lib'
11593   ;;
11594
11595 sunos4*)
11596   version_type=sunos
11597   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11598   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11599   shlibpath_var=LD_LIBRARY_PATH
11600   shlibpath_overrides_runpath=yes
11601   if test "$with_gnu_ld" = yes; then
11602     need_lib_prefix=no
11603   fi
11604   need_version=yes
11605   ;;
11606
11607 sysv4 | sysv4.3*)
11608   version_type=linux
11609   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11610   soname_spec='${libname}${release}${shared_ext}$major'
11611   shlibpath_var=LD_LIBRARY_PATH
11612   case $host_vendor in
11613     sni)
11614       shlibpath_overrides_runpath=no
11615       need_lib_prefix=no
11616       runpath_var=LD_RUN_PATH
11617       ;;
11618     siemens)
11619       need_lib_prefix=no
11620       ;;
11621     motorola)
11622       need_lib_prefix=no
11623       need_version=no
11624       shlibpath_overrides_runpath=no
11625       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11626       ;;
11627   esac
11628   ;;
11629
11630 sysv4*MP*)
11631   if test -d /usr/nec ;then
11632     version_type=linux
11633     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11634     soname_spec='$libname${shared_ext}.$major'
11635     shlibpath_var=LD_LIBRARY_PATH
11636   fi
11637   ;;
11638
11639 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11640   version_type=freebsd-elf
11641   need_lib_prefix=no
11642   need_version=no
11643   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11644   soname_spec='${libname}${release}${shared_ext}$major'
11645   shlibpath_var=LD_LIBRARY_PATH
11646   shlibpath_overrides_runpath=yes
11647   hardcode_into_libs=yes
11648   if test "$with_gnu_ld" = yes; then
11649     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11650   else
11651     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11652     case $host_os in
11653       sco3.2v5*)
11654         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11655         ;;
11656     esac
11657   fi
11658   sys_lib_dlsearch_path_spec='/usr/lib'
11659   ;;
11660
11661 tpf*)
11662   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11663   version_type=linux
11664   need_lib_prefix=no
11665   need_version=no
11666   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11667   shlibpath_var=LD_LIBRARY_PATH
11668   shlibpath_overrides_runpath=no
11669   hardcode_into_libs=yes
11670   ;;
11671
11672 uts4*)
11673   version_type=linux
11674   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11675   soname_spec='${libname}${release}${shared_ext}$major'
11676   shlibpath_var=LD_LIBRARY_PATH
11677   ;;
11678
11679 *)
11680   dynamic_linker=no
11681   ;;
11682 esac
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11684 $as_echo "$dynamic_linker" >&6; }
11685 test "$dynamic_linker" = no && can_build_shared=no
11686
11687 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11688 if test "$GCC" = yes; then
11689   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11690 fi
11691
11692 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11693   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11694 fi
11695 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11696   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11697 fi
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11791 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11792 hardcode_action=
11793 if test -n "$hardcode_libdir_flag_spec" ||
11794    test -n "$runpath_var" ||
11795    test "X$hardcode_automatic" = "Xyes" ; then
11796
11797   # We can hardcode non-existent directories.
11798   if test "$hardcode_direct" != no &&
11799      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11800      # have to relink, otherwise we might link with an installed library
11801      # when we should be linking with a yet-to-be-installed one
11802      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11803      test "$hardcode_minus_L" != no; then
11804     # Linking always hardcodes the temporary library directory.
11805     hardcode_action=relink
11806   else
11807     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11808     hardcode_action=immediate
11809   fi
11810 else
11811   # We cannot hardcode anything, or else we can only hardcode existing
11812   # directories.
11813   hardcode_action=unsupported
11814 fi
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11816 $as_echo "$hardcode_action" >&6; }
11817
11818 if test "$hardcode_action" = relink ||
11819    test "$inherit_rpath" = yes; then
11820   # Fast installation is not supported
11821   enable_fast_install=no
11822 elif test "$shlibpath_overrides_runpath" = yes ||
11823      test "$enable_shared" = no; then
11824   # Fast installation is not necessary
11825   enable_fast_install=needless
11826 fi
11827
11828
11829
11830
11831
11832
11833   if test "x$enable_dlopen" != xyes; then
11834   enable_dlopen=unknown
11835   enable_dlopen_self=unknown
11836   enable_dlopen_self_static=unknown
11837 else
11838   lt_cv_dlopen=no
11839   lt_cv_dlopen_libs=
11840
11841   case $host_os in
11842   beos*)
11843     lt_cv_dlopen="load_add_on"
11844     lt_cv_dlopen_libs=
11845     lt_cv_dlopen_self=yes
11846     ;;
11847
11848   mingw* | pw32* | cegcc*)
11849     lt_cv_dlopen="LoadLibrary"
11850     lt_cv_dlopen_libs=
11851     ;;
11852
11853   cygwin*)
11854     lt_cv_dlopen="dlopen"
11855     lt_cv_dlopen_libs=
11856     ;;
11857
11858   darwin*)
11859   # if libdl is installed we need to link against it
11860     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11861 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11862 if ${ac_cv_lib_dl_dlopen+:} false; then :
11863   $as_echo_n "(cached) " >&6
11864 else
11865   ac_check_lib_save_LIBS=$LIBS
11866 LIBS="-ldl  $LIBS"
11867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11868 /* end confdefs.h.  */
11869
11870 /* Override any GCC internal prototype to avoid an error.
11871    Use char because int might match the return type of a GCC
11872    builtin and then its argument prototype would still apply.  */
11873 #ifdef __cplusplus
11874 extern "C"
11875 #endif
11876 char dlopen ();
11877 int
11878 main ()
11879 {
11880 return dlopen ();
11881   ;
11882   return 0;
11883 }
11884 _ACEOF
11885 if ac_fn_c_try_link "$LINENO"; then :
11886   ac_cv_lib_dl_dlopen=yes
11887 else
11888   ac_cv_lib_dl_dlopen=no
11889 fi
11890 rm -f core conftest.err conftest.$ac_objext \
11891     conftest$ac_exeext conftest.$ac_ext
11892 LIBS=$ac_check_lib_save_LIBS
11893 fi
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11895 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11896 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11897   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11898 else
11899
11900     lt_cv_dlopen="dyld"
11901     lt_cv_dlopen_libs=
11902     lt_cv_dlopen_self=yes
11903
11904 fi
11905
11906     ;;
11907
11908   *)
11909     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11910 if test "x$ac_cv_func_shl_load" = xyes; then :
11911   lt_cv_dlopen="shl_load"
11912 else
11913   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11914 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11915 if ${ac_cv_lib_dld_shl_load+:} false; then :
11916   $as_echo_n "(cached) " >&6
11917 else
11918   ac_check_lib_save_LIBS=$LIBS
11919 LIBS="-ldld  $LIBS"
11920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11921 /* end confdefs.h.  */
11922
11923 /* Override any GCC internal prototype to avoid an error.
11924    Use char because int might match the return type of a GCC
11925    builtin and then its argument prototype would still apply.  */
11926 #ifdef __cplusplus
11927 extern "C"
11928 #endif
11929 char shl_load ();
11930 int
11931 main ()
11932 {
11933 return shl_load ();
11934   ;
11935   return 0;
11936 }
11937 _ACEOF
11938 if ac_fn_c_try_link "$LINENO"; then :
11939   ac_cv_lib_dld_shl_load=yes
11940 else
11941   ac_cv_lib_dld_shl_load=no
11942 fi
11943 rm -f core conftest.err conftest.$ac_objext \
11944     conftest$ac_exeext conftest.$ac_ext
11945 LIBS=$ac_check_lib_save_LIBS
11946 fi
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11948 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11949 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11950   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11951 else
11952   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11953 if test "x$ac_cv_func_dlopen" = xyes; then :
11954   lt_cv_dlopen="dlopen"
11955 else
11956   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11957 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11958 if ${ac_cv_lib_dl_dlopen+:} false; then :
11959   $as_echo_n "(cached) " >&6
11960 else
11961   ac_check_lib_save_LIBS=$LIBS
11962 LIBS="-ldl  $LIBS"
11963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11964 /* end confdefs.h.  */
11965
11966 /* Override any GCC internal prototype to avoid an error.
11967    Use char because int might match the return type of a GCC
11968    builtin and then its argument prototype would still apply.  */
11969 #ifdef __cplusplus
11970 extern "C"
11971 #endif
11972 char dlopen ();
11973 int
11974 main ()
11975 {
11976 return dlopen ();
11977   ;
11978   return 0;
11979 }
11980 _ACEOF
11981 if ac_fn_c_try_link "$LINENO"; then :
11982   ac_cv_lib_dl_dlopen=yes
11983 else
11984   ac_cv_lib_dl_dlopen=no
11985 fi
11986 rm -f core conftest.err conftest.$ac_objext \
11987     conftest$ac_exeext conftest.$ac_ext
11988 LIBS=$ac_check_lib_save_LIBS
11989 fi
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11991 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11992 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11993   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11994 else
11995   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11996 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11997 if ${ac_cv_lib_svld_dlopen+:} false; then :
11998   $as_echo_n "(cached) " >&6
11999 else
12000   ac_check_lib_save_LIBS=$LIBS
12001 LIBS="-lsvld  $LIBS"
12002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12003 /* end confdefs.h.  */
12004
12005 /* Override any GCC internal prototype to avoid an error.
12006    Use char because int might match the return type of a GCC
12007    builtin and then its argument prototype would still apply.  */
12008 #ifdef __cplusplus
12009 extern "C"
12010 #endif
12011 char dlopen ();
12012 int
12013 main ()
12014 {
12015 return dlopen ();
12016   ;
12017   return 0;
12018 }
12019 _ACEOF
12020 if ac_fn_c_try_link "$LINENO"; then :
12021   ac_cv_lib_svld_dlopen=yes
12022 else
12023   ac_cv_lib_svld_dlopen=no
12024 fi
12025 rm -f core conftest.err conftest.$ac_objext \
12026     conftest$ac_exeext conftest.$ac_ext
12027 LIBS=$ac_check_lib_save_LIBS
12028 fi
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12030 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12031 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12032   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12033 else
12034   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12035 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12036 if ${ac_cv_lib_dld_dld_link+:} false; then :
12037   $as_echo_n "(cached) " >&6
12038 else
12039   ac_check_lib_save_LIBS=$LIBS
12040 LIBS="-ldld  $LIBS"
12041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12042 /* end confdefs.h.  */
12043
12044 /* Override any GCC internal prototype to avoid an error.
12045    Use char because int might match the return type of a GCC
12046    builtin and then its argument prototype would still apply.  */
12047 #ifdef __cplusplus
12048 extern "C"
12049 #endif
12050 char dld_link ();
12051 int
12052 main ()
12053 {
12054 return dld_link ();
12055   ;
12056   return 0;
12057 }
12058 _ACEOF
12059 if ac_fn_c_try_link "$LINENO"; then :
12060   ac_cv_lib_dld_dld_link=yes
12061 else
12062   ac_cv_lib_dld_dld_link=no
12063 fi
12064 rm -f core conftest.err conftest.$ac_objext \
12065     conftest$ac_exeext conftest.$ac_ext
12066 LIBS=$ac_check_lib_save_LIBS
12067 fi
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12069 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12070 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12071   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12072 fi
12073
12074
12075 fi
12076
12077
12078 fi
12079
12080
12081 fi
12082
12083
12084 fi
12085
12086
12087 fi
12088
12089     ;;
12090   esac
12091
12092   if test "x$lt_cv_dlopen" != xno; then
12093     enable_dlopen=yes
12094   else
12095     enable_dlopen=no
12096   fi
12097
12098   case $lt_cv_dlopen in
12099   dlopen)
12100     save_CPPFLAGS="$CPPFLAGS"
12101     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12102
12103     save_LDFLAGS="$LDFLAGS"
12104     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12105
12106     save_LIBS="$LIBS"
12107     LIBS="$lt_cv_dlopen_libs $LIBS"
12108
12109     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12110 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12111 if ${lt_cv_dlopen_self+:} false; then :
12112   $as_echo_n "(cached) " >&6
12113 else
12114           if test "$cross_compiling" = yes; then :
12115   lt_cv_dlopen_self=cross
12116 else
12117   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12118   lt_status=$lt_dlunknown
12119   cat > conftest.$ac_ext <<_LT_EOF
12120 #line $LINENO "configure"
12121 #include "confdefs.h"
12122
12123 #if HAVE_DLFCN_H
12124 #include <dlfcn.h>
12125 #endif
12126
12127 #include <stdio.h>
12128
12129 #ifdef RTLD_GLOBAL
12130 #  define LT_DLGLOBAL           RTLD_GLOBAL
12131 #else
12132 #  ifdef DL_GLOBAL
12133 #    define LT_DLGLOBAL         DL_GLOBAL
12134 #  else
12135 #    define LT_DLGLOBAL         0
12136 #  endif
12137 #endif
12138
12139 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12140    find out it does not work in some platform. */
12141 #ifndef LT_DLLAZY_OR_NOW
12142 #  ifdef RTLD_LAZY
12143 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12144 #  else
12145 #    ifdef DL_LAZY
12146 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12147 #    else
12148 #      ifdef RTLD_NOW
12149 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12150 #      else
12151 #        ifdef DL_NOW
12152 #          define LT_DLLAZY_OR_NOW      DL_NOW
12153 #        else
12154 #          define LT_DLLAZY_OR_NOW      0
12155 #        endif
12156 #      endif
12157 #    endif
12158 #  endif
12159 #endif
12160
12161 /* When -fvisbility=hidden is used, assume the code has been annotated
12162    correspondingly for the symbols needed.  */
12163 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12164 int fnord () __attribute__((visibility("default")));
12165 #endif
12166
12167 int fnord () { return 42; }
12168 int main ()
12169 {
12170   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12171   int status = $lt_dlunknown;
12172
12173   if (self)
12174     {
12175       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12176       else
12177         {
12178           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12179           else puts (dlerror ());
12180         }
12181       /* dlclose (self); */
12182     }
12183   else
12184     puts (dlerror ());
12185
12186   return status;
12187 }
12188 _LT_EOF
12189   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12190   (eval $ac_link) 2>&5
12191   ac_status=$?
12192   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12193   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12194     (./conftest; exit; ) >&5 2>/dev/null
12195     lt_status=$?
12196     case x$lt_status in
12197       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12198       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12199       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12200     esac
12201   else :
12202     # compilation failed
12203     lt_cv_dlopen_self=no
12204   fi
12205 fi
12206 rm -fr conftest*
12207
12208
12209 fi
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12211 $as_echo "$lt_cv_dlopen_self" >&6; }
12212
12213     if test "x$lt_cv_dlopen_self" = xyes; then
12214       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12215       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12216 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12217 if ${lt_cv_dlopen_self_static+:} false; then :
12218   $as_echo_n "(cached) " >&6
12219 else
12220           if test "$cross_compiling" = yes; then :
12221   lt_cv_dlopen_self_static=cross
12222 else
12223   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12224   lt_status=$lt_dlunknown
12225   cat > conftest.$ac_ext <<_LT_EOF
12226 #line $LINENO "configure"
12227 #include "confdefs.h"
12228
12229 #if HAVE_DLFCN_H
12230 #include <dlfcn.h>
12231 #endif
12232
12233 #include <stdio.h>
12234
12235 #ifdef RTLD_GLOBAL
12236 #  define LT_DLGLOBAL           RTLD_GLOBAL
12237 #else
12238 #  ifdef DL_GLOBAL
12239 #    define LT_DLGLOBAL         DL_GLOBAL
12240 #  else
12241 #    define LT_DLGLOBAL         0
12242 #  endif
12243 #endif
12244
12245 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12246    find out it does not work in some platform. */
12247 #ifndef LT_DLLAZY_OR_NOW
12248 #  ifdef RTLD_LAZY
12249 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12250 #  else
12251 #    ifdef DL_LAZY
12252 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12253 #    else
12254 #      ifdef RTLD_NOW
12255 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12256 #      else
12257 #        ifdef DL_NOW
12258 #          define LT_DLLAZY_OR_NOW      DL_NOW
12259 #        else
12260 #          define LT_DLLAZY_OR_NOW      0
12261 #        endif
12262 #      endif
12263 #    endif
12264 #  endif
12265 #endif
12266
12267 /* When -fvisbility=hidden is used, assume the code has been annotated
12268    correspondingly for the symbols needed.  */
12269 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12270 int fnord () __attribute__((visibility("default")));
12271 #endif
12272
12273 int fnord () { return 42; }
12274 int main ()
12275 {
12276   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12277   int status = $lt_dlunknown;
12278
12279   if (self)
12280     {
12281       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12282       else
12283         {
12284           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12285           else puts (dlerror ());
12286         }
12287       /* dlclose (self); */
12288     }
12289   else
12290     puts (dlerror ());
12291
12292   return status;
12293 }
12294 _LT_EOF
12295   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12296   (eval $ac_link) 2>&5
12297   ac_status=$?
12298   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12299   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12300     (./conftest; exit; ) >&5 2>/dev/null
12301     lt_status=$?
12302     case x$lt_status in
12303       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12304       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12305       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12306     esac
12307   else :
12308     # compilation failed
12309     lt_cv_dlopen_self_static=no
12310   fi
12311 fi
12312 rm -fr conftest*
12313
12314
12315 fi
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12317 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12318     fi
12319
12320     CPPFLAGS="$save_CPPFLAGS"
12321     LDFLAGS="$save_LDFLAGS"
12322     LIBS="$save_LIBS"
12323     ;;
12324   esac
12325
12326   case $lt_cv_dlopen_self in
12327   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12328   *) enable_dlopen_self=unknown ;;
12329   esac
12330
12331   case $lt_cv_dlopen_self_static in
12332   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12333   *) enable_dlopen_self_static=unknown ;;
12334   esac
12335 fi
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353 striplib=
12354 old_striplib=
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12356 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12357 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12358   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12359   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12361 $as_echo "yes" >&6; }
12362 else
12363 # FIXME - insert some real tests, host_os isn't really good enough
12364   case $host_os in
12365   darwin*)
12366     if test -n "$STRIP" ; then
12367       striplib="$STRIP -x"
12368       old_striplib="$STRIP -S"
12369       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12370 $as_echo "yes" >&6; }
12371     else
12372       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12373 $as_echo "no" >&6; }
12374     fi
12375     ;;
12376   *)
12377     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12378 $as_echo "no" >&6; }
12379     ;;
12380   esac
12381 fi
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394   # Report which library types will actually be built
12395   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12396 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12398 $as_echo "$can_build_shared" >&6; }
12399
12400   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12401 $as_echo_n "checking whether to build shared libraries... " >&6; }
12402   test "$can_build_shared" = "no" && enable_shared=no
12403
12404   # On AIX, shared libraries and static libraries use the same namespace, and
12405   # are all built from PIC.
12406   case $host_os in
12407   aix3*)
12408     test "$enable_shared" = yes && enable_static=no
12409     if test -n "$RANLIB"; then
12410       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12411       postinstall_cmds='$RANLIB $lib'
12412     fi
12413     ;;
12414
12415   aix[4-9]*)
12416     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12417       test "$enable_shared" = yes && enable_static=no
12418     fi
12419     ;;
12420   esac
12421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12422 $as_echo "$enable_shared" >&6; }
12423
12424   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12425 $as_echo_n "checking whether to build static libraries... " >&6; }
12426   # Make sure either enable_shared or enable_static is yes.
12427   test "$enable_shared" = yes || enable_static=yes
12428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12429 $as_echo "$enable_static" >&6; }
12430
12431
12432
12433
12434 fi
12435 ac_ext=c
12436 ac_cpp='$CPP $CPPFLAGS'
12437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12440
12441 CC="$lt_save_CC"
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455         ac_config_commands="$ac_config_commands libtool"
12456
12457
12458
12459
12460 # Only expand once:
12461
12462
12463
12464 # Check GMP Header
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gmp.h" >&5
12466 $as_echo_n "checking for gmp.h... " >&6; }
12467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12468 /* end confdefs.h.  */
12469
12470 #include "gmp.h"
12471
12472 _ACEOF
12473 if ac_fn_c_try_compile "$LINENO"; then :
12474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12475 $as_echo "yes" >&6; }
12476 else
12477
12478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12479 $as_echo "no" >&6; }
12480  as_fn_error $? "gmp.h cannot be found or is unusable." "$LINENO" 5
12481
12482 fi
12483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12484
12485 # Check (only in development versions) if the compiler accepts warning
12486 # flags and add them to CFLAGS
12487 # Note: don't do this if the user defined CFLAGS, since adding new flags
12488 # might override the user's settings, see
12489 # http://lists.gforge.inria.fr/pipermail/mpc-discuss/2012-May/001115.html
12490 if test -z "$USER_CFLAGS"; then
12491
12492
12493   if echo $VERSION | grep -c dev >/dev/null 2>&1 ; then
12494     if test "x$GCC" = "xyes" -a "x$compiler" != "xicc" -a "x$compiler" != "xg++"; then
12495       # enable -Werror for myself (Andreas Enge)
12496       if test "x$USER" = "xenge"; then
12497
12498
12499
12500
12501
12502
12503   flag=`echo "-Werror" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
12504
12505   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Werror flag" >&5
12506 $as_echo_n "checking whether the C compiler accepts the -Werror flag... " >&6; }
12507 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
12508   $as_echo_n "(cached) " >&6
12509 else
12510
12511
12512     ac_ext=c
12513 ac_cpp='$CPP $CPPFLAGS'
12514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12517
12518
12519     save_CFLAGS="$CFLAGS"
12520     CFLAGS="$CFLAGS -Werror"
12521     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12522 /* end confdefs.h.  */
12523
12524
12525 int
12526 main ()
12527 {
12528
12529   ;
12530   return 0;
12531 }
12532
12533 _ACEOF
12534 if ac_fn_c_try_compile "$LINENO"; then :
12535
12536       eval "ax_cv_c_check_flag_$flag=yes"
12537
12538 else
12539
12540       eval "ax_cv_c_check_flag_$flag=no"
12541
12542 fi
12543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12544
12545     CFLAGS="$save_CFLAGS"
12546
12547     ac_ext=c
12548 ac_cpp='$CPP $CPPFLAGS'
12549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12552
12553
12554
12555 fi
12556 eval ac_res=\$ax_cv_c_check_flag_$flag
12557                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12558 $as_echo "$ac_res" >&6; }
12559
12560   if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
12561
12562     :
12563     CFLAGS="$CFLAGS -Werror"
12564
12565 else
12566
12567     :
12568
12569
12570 fi
12571
12572
12573       fi
12574
12575
12576
12577
12578
12579
12580   flag=`echo "-g" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
12581
12582   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -g flag" >&5
12583 $as_echo_n "checking whether the C compiler accepts the -g flag... " >&6; }
12584 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
12585   $as_echo_n "(cached) " >&6
12586 else
12587
12588
12589     ac_ext=c
12590 ac_cpp='$CPP $CPPFLAGS'
12591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12594
12595
12596     save_CFLAGS="$CFLAGS"
12597     CFLAGS="$CFLAGS -g"
12598     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12599 /* end confdefs.h.  */
12600
12601
12602 int
12603 main ()
12604 {
12605
12606   ;
12607   return 0;
12608 }
12609
12610 _ACEOF
12611 if ac_fn_c_try_compile "$LINENO"; then :
12612
12613       eval "ax_cv_c_check_flag_$flag=yes"
12614
12615 else
12616
12617       eval "ax_cv_c_check_flag_$flag=no"
12618
12619 fi
12620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12621
12622     CFLAGS="$save_CFLAGS"
12623
12624     ac_ext=c
12625 ac_cpp='$CPP $CPPFLAGS'
12626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12629
12630
12631
12632 fi
12633 eval ac_res=\$ax_cv_c_check_flag_$flag
12634                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12635 $as_echo "$ac_res" >&6; }
12636
12637   if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
12638
12639     :
12640     CFLAGS="$CFLAGS -g"
12641
12642 else
12643
12644     :
12645
12646
12647 fi
12648
12649
12650
12651
12652
12653
12654
12655
12656   flag=`echo "-std=c99" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
12657
12658   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -std=c99 flag" >&5
12659 $as_echo_n "checking whether the C compiler accepts the -std=c99 flag... " >&6; }
12660 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
12661   $as_echo_n "(cached) " >&6
12662 else
12663
12664
12665     ac_ext=c
12666 ac_cpp='$CPP $CPPFLAGS'
12667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12670
12671
12672     save_CFLAGS="$CFLAGS"
12673     CFLAGS="$CFLAGS -std=c99"
12674     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12675 /* end confdefs.h.  */
12676
12677
12678 int
12679 main ()
12680 {
12681
12682   ;
12683   return 0;
12684 }
12685
12686 _ACEOF
12687 if ac_fn_c_try_compile "$LINENO"; then :
12688
12689       eval "ax_cv_c_check_flag_$flag=yes"
12690
12691 else
12692
12693       eval "ax_cv_c_check_flag_$flag=no"
12694
12695 fi
12696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12697
12698     CFLAGS="$save_CFLAGS"
12699
12700     ac_ext=c
12701 ac_cpp='$CPP $CPPFLAGS'
12702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12705
12706
12707
12708 fi
12709 eval ac_res=\$ax_cv_c_check_flag_$flag
12710                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12711 $as_echo "$ac_res" >&6; }
12712
12713   if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
12714
12715     :
12716     CFLAGS="$CFLAGS -std=c99"
12717
12718 else
12719
12720     :
12721
12722
12723 fi
12724
12725
12726
12727
12728
12729
12730
12731
12732   flag=`echo "-pedantic" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
12733
12734   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -pedantic flag" >&5
12735 $as_echo_n "checking whether the C compiler accepts the -pedantic flag... " >&6; }
12736 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
12737   $as_echo_n "(cached) " >&6
12738 else
12739
12740
12741     ac_ext=c
12742 ac_cpp='$CPP $CPPFLAGS'
12743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12746
12747
12748     save_CFLAGS="$CFLAGS"
12749     CFLAGS="$CFLAGS -pedantic"
12750     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12751 /* end confdefs.h.  */
12752
12753
12754 int
12755 main ()
12756 {
12757
12758   ;
12759   return 0;
12760 }
12761
12762 _ACEOF
12763 if ac_fn_c_try_compile "$LINENO"; then :
12764
12765       eval "ax_cv_c_check_flag_$flag=yes"
12766
12767 else
12768
12769       eval "ax_cv_c_check_flag_$flag=no"
12770
12771 fi
12772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12773
12774     CFLAGS="$save_CFLAGS"
12775
12776     ac_ext=c
12777 ac_cpp='$CPP $CPPFLAGS'
12778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12781
12782
12783
12784 fi
12785 eval ac_res=\$ax_cv_c_check_flag_$flag
12786                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12787 $as_echo "$ac_res" >&6; }
12788
12789   if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
12790
12791     :
12792     CFLAGS="$CFLAGS -pedantic"
12793
12794 else
12795
12796     :
12797
12798
12799 fi
12800
12801
12802
12803
12804
12805
12806
12807
12808   flag=`echo "-Wno-long-long" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
12809
12810   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wno-long-long flag" >&5
12811 $as_echo_n "checking whether the C compiler accepts the -Wno-long-long flag... " >&6; }
12812 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
12813   $as_echo_n "(cached) " >&6
12814 else
12815
12816
12817     ac_ext=c
12818 ac_cpp='$CPP $CPPFLAGS'
12819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12822
12823
12824     save_CFLAGS="$CFLAGS"
12825     CFLAGS="$CFLAGS -Wno-long-long"
12826     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12827 /* end confdefs.h.  */
12828
12829
12830 int
12831 main ()
12832 {
12833
12834   ;
12835   return 0;
12836 }
12837
12838 _ACEOF
12839 if ac_fn_c_try_compile "$LINENO"; then :
12840
12841       eval "ax_cv_c_check_flag_$flag=yes"
12842
12843 else
12844
12845       eval "ax_cv_c_check_flag_$flag=no"
12846
12847 fi
12848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12849
12850     CFLAGS="$save_CFLAGS"
12851
12852     ac_ext=c
12853 ac_cpp='$CPP $CPPFLAGS'
12854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12857
12858
12859
12860 fi
12861 eval ac_res=\$ax_cv_c_check_flag_$flag
12862                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12863 $as_echo "$ac_res" >&6; }
12864
12865   if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
12866
12867     :
12868     CFLAGS="$CFLAGS -Wno-long-long"
12869
12870 else
12871
12872     :
12873
12874
12875 fi
12876
12877
12878
12879
12880
12881
12882
12883
12884   flag=`echo "-Wall" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
12885
12886   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wall flag" >&5
12887 $as_echo_n "checking whether the C compiler accepts the -Wall flag... " >&6; }
12888 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
12889   $as_echo_n "(cached) " >&6
12890 else
12891
12892
12893     ac_ext=c
12894 ac_cpp='$CPP $CPPFLAGS'
12895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12898
12899
12900     save_CFLAGS="$CFLAGS"
12901     CFLAGS="$CFLAGS -Wall"
12902     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12903 /* end confdefs.h.  */
12904
12905
12906 int
12907 main ()
12908 {
12909
12910   ;
12911   return 0;
12912 }
12913
12914 _ACEOF
12915 if ac_fn_c_try_compile "$LINENO"; then :
12916
12917       eval "ax_cv_c_check_flag_$flag=yes"
12918
12919 else
12920
12921       eval "ax_cv_c_check_flag_$flag=no"
12922
12923 fi
12924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12925
12926     CFLAGS="$save_CFLAGS"
12927
12928     ac_ext=c
12929 ac_cpp='$CPP $CPPFLAGS'
12930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12933
12934
12935
12936 fi
12937 eval ac_res=\$ax_cv_c_check_flag_$flag
12938                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12939 $as_echo "$ac_res" >&6; }
12940
12941   if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
12942
12943     :
12944     CFLAGS="$CFLAGS -Wall"
12945
12946 else
12947
12948     :
12949
12950
12951 fi
12952
12953
12954
12955
12956
12957
12958
12959
12960   flag=`echo "-Wextra" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
12961
12962   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wextra flag" >&5
12963 $as_echo_n "checking whether the C compiler accepts the -Wextra flag... " >&6; }
12964 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
12965   $as_echo_n "(cached) " >&6
12966 else
12967
12968
12969     ac_ext=c
12970 ac_cpp='$CPP $CPPFLAGS'
12971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12974
12975
12976     save_CFLAGS="$CFLAGS"
12977     CFLAGS="$CFLAGS -Wextra"
12978     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12979 /* end confdefs.h.  */
12980
12981
12982 int
12983 main ()
12984 {
12985
12986   ;
12987   return 0;
12988 }
12989
12990 _ACEOF
12991 if ac_fn_c_try_compile "$LINENO"; then :
12992
12993       eval "ax_cv_c_check_flag_$flag=yes"
12994
12995 else
12996
12997       eval "ax_cv_c_check_flag_$flag=no"
12998
12999 fi
13000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13001
13002     CFLAGS="$save_CFLAGS"
13003
13004     ac_ext=c
13005 ac_cpp='$CPP $CPPFLAGS'
13006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13009
13010
13011
13012 fi
13013 eval ac_res=\$ax_cv_c_check_flag_$flag
13014                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13015 $as_echo "$ac_res" >&6; }
13016
13017   if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
13018
13019     :
13020     CFLAGS="$CFLAGS -Wextra"
13021
13022 else
13023
13024     :
13025
13026
13027 fi
13028
13029
13030
13031
13032
13033
13034
13035
13036   flag=`echo "-Wdeclaration-after-statement" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
13037
13038   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wdeclaration-after-statement flag" >&5
13039 $as_echo_n "checking whether the C compiler accepts the -Wdeclaration-after-statement flag... " >&6; }
13040 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
13041   $as_echo_n "(cached) " >&6
13042 else
13043
13044
13045     ac_ext=c
13046 ac_cpp='$CPP $CPPFLAGS'
13047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13050
13051
13052     save_CFLAGS="$CFLAGS"
13053     CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13054     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13055 /* end confdefs.h.  */
13056
13057
13058 int
13059 main ()
13060 {
13061
13062   ;
13063   return 0;
13064 }
13065
13066 _ACEOF
13067 if ac_fn_c_try_compile "$LINENO"; then :
13068
13069       eval "ax_cv_c_check_flag_$flag=yes"
13070
13071 else
13072
13073       eval "ax_cv_c_check_flag_$flag=no"
13074
13075 fi
13076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13077
13078     CFLAGS="$save_CFLAGS"
13079
13080     ac_ext=c
13081 ac_cpp='$CPP $CPPFLAGS'
13082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13085
13086
13087
13088 fi
13089 eval ac_res=\$ax_cv_c_check_flag_$flag
13090                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13091 $as_echo "$ac_res" >&6; }
13092
13093   if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
13094
13095     :
13096     CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13097
13098 else
13099
13100     :
13101
13102
13103 fi
13104
13105
13106
13107
13108
13109
13110
13111
13112   flag=`echo "-Wundef" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
13113
13114   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wundef flag" >&5
13115 $as_echo_n "checking whether the C compiler accepts the -Wundef flag... " >&6; }
13116 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
13117   $as_echo_n "(cached) " >&6
13118 else
13119
13120
13121     ac_ext=c
13122 ac_cpp='$CPP $CPPFLAGS'
13123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13126
13127
13128     save_CFLAGS="$CFLAGS"
13129     CFLAGS="$CFLAGS -Wundef"
13130     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13131 /* end confdefs.h.  */
13132
13133
13134 int
13135 main ()
13136 {
13137
13138   ;
13139   return 0;
13140 }
13141
13142 _ACEOF
13143 if ac_fn_c_try_compile "$LINENO"; then :
13144
13145       eval "ax_cv_c_check_flag_$flag=yes"
13146
13147 else
13148
13149       eval "ax_cv_c_check_flag_$flag=no"
13150
13151 fi
13152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13153
13154     CFLAGS="$save_CFLAGS"
13155
13156     ac_ext=c
13157 ac_cpp='$CPP $CPPFLAGS'
13158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13161
13162
13163
13164 fi
13165 eval ac_res=\$ax_cv_c_check_flag_$flag
13166                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13167 $as_echo "$ac_res" >&6; }
13168
13169   if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
13170
13171     :
13172     CFLAGS="$CFLAGS -Wundef"
13173
13174 else
13175
13176     :
13177
13178
13179 fi
13180
13181
13182
13183
13184
13185
13186
13187
13188   flag=`echo "-Wshadow" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
13189
13190   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wshadow flag" >&5
13191 $as_echo_n "checking whether the C compiler accepts the -Wshadow flag... " >&6; }
13192 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
13193   $as_echo_n "(cached) " >&6
13194 else
13195
13196
13197     ac_ext=c
13198 ac_cpp='$CPP $CPPFLAGS'
13199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13202
13203
13204     save_CFLAGS="$CFLAGS"
13205     CFLAGS="$CFLAGS -Wshadow"
13206     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13207 /* end confdefs.h.  */
13208
13209
13210 int
13211 main ()
13212 {
13213
13214   ;
13215   return 0;
13216 }
13217
13218 _ACEOF
13219 if ac_fn_c_try_compile "$LINENO"; then :
13220
13221       eval "ax_cv_c_check_flag_$flag=yes"
13222
13223 else
13224
13225       eval "ax_cv_c_check_flag_$flag=no"
13226
13227 fi
13228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13229
13230     CFLAGS="$save_CFLAGS"
13231
13232     ac_ext=c
13233 ac_cpp='$CPP $CPPFLAGS'
13234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13237
13238
13239
13240 fi
13241 eval ac_res=\$ax_cv_c_check_flag_$flag
13242                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13243 $as_echo "$ac_res" >&6; }
13244
13245   if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
13246
13247     :
13248     CFLAGS="$CFLAGS -Wshadow"
13249
13250 else
13251
13252     :
13253
13254
13255 fi
13256
13257
13258
13259
13260
13261
13262
13263
13264   flag=`echo "-Wstrict-prototypes" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
13265
13266   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wstrict-prototypes flag" >&5
13267 $as_echo_n "checking whether the C compiler accepts the -Wstrict-prototypes flag... " >&6; }
13268 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
13269   $as_echo_n "(cached) " >&6
13270 else
13271
13272
13273     ac_ext=c
13274 ac_cpp='$CPP $CPPFLAGS'
13275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13278
13279
13280     save_CFLAGS="$CFLAGS"
13281     CFLAGS="$CFLAGS -Wstrict-prototypes"
13282     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13283 /* end confdefs.h.  */
13284
13285
13286 int
13287 main ()
13288 {
13289
13290   ;
13291   return 0;
13292 }
13293
13294 _ACEOF
13295 if ac_fn_c_try_compile "$LINENO"; then :
13296
13297       eval "ax_cv_c_check_flag_$flag=yes"
13298
13299 else
13300
13301       eval "ax_cv_c_check_flag_$flag=no"
13302
13303 fi
13304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13305
13306     CFLAGS="$save_CFLAGS"
13307
13308     ac_ext=c
13309 ac_cpp='$CPP $CPPFLAGS'
13310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13313
13314
13315
13316 fi
13317 eval ac_res=\$ax_cv_c_check_flag_$flag
13318                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13319 $as_echo "$ac_res" >&6; }
13320
13321   if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
13322
13323     :
13324     CFLAGS="$CFLAGS -Wstrict-prototypes"
13325
13326 else
13327
13328     :
13329
13330
13331 fi
13332
13333
13334
13335
13336
13337
13338
13339
13340   flag=`echo "-Wmissing-prototypes" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
13341
13342   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wmissing-prototypes flag" >&5
13343 $as_echo_n "checking whether the C compiler accepts the -Wmissing-prototypes flag... " >&6; }
13344 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
13345   $as_echo_n "(cached) " >&6
13346 else
13347
13348
13349     ac_ext=c
13350 ac_cpp='$CPP $CPPFLAGS'
13351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13354
13355
13356     save_CFLAGS="$CFLAGS"
13357     CFLAGS="$CFLAGS -Wmissing-prototypes"
13358     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13359 /* end confdefs.h.  */
13360
13361
13362 int
13363 main ()
13364 {
13365
13366   ;
13367   return 0;
13368 }
13369
13370 _ACEOF
13371 if ac_fn_c_try_compile "$LINENO"; then :
13372
13373       eval "ax_cv_c_check_flag_$flag=yes"
13374
13375 else
13376
13377       eval "ax_cv_c_check_flag_$flag=no"
13378
13379 fi
13380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13381
13382     CFLAGS="$save_CFLAGS"
13383
13384     ac_ext=c
13385 ac_cpp='$CPP $CPPFLAGS'
13386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13389
13390
13391
13392 fi
13393 eval ac_res=\$ax_cv_c_check_flag_$flag
13394                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13395 $as_echo "$ac_res" >&6; }
13396
13397   if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
13398
13399     :
13400     CFLAGS="$CFLAGS -Wmissing-prototypes"
13401
13402 else
13403
13404     :
13405
13406
13407 fi
13408
13409
13410
13411
13412
13413
13414
13415
13416   flag=`echo "-Wno-unused-value" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
13417
13418   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wno-unused-value flag" >&5
13419 $as_echo_n "checking whether the C compiler accepts the -Wno-unused-value flag... " >&6; }
13420 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
13421   $as_echo_n "(cached) " >&6
13422 else
13423
13424
13425     ac_ext=c
13426 ac_cpp='$CPP $CPPFLAGS'
13427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13430
13431
13432     save_CFLAGS="$CFLAGS"
13433     CFLAGS="$CFLAGS -Wno-unused-value"
13434     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13435 /* end confdefs.h.  */
13436
13437
13438 int
13439 main ()
13440 {
13441
13442   ;
13443   return 0;
13444 }
13445
13446 _ACEOF
13447 if ac_fn_c_try_compile "$LINENO"; then :
13448
13449       eval "ax_cv_c_check_flag_$flag=yes"
13450
13451 else
13452
13453       eval "ax_cv_c_check_flag_$flag=no"
13454
13455 fi
13456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13457
13458     CFLAGS="$save_CFLAGS"
13459
13460     ac_ext=c
13461 ac_cpp='$CPP $CPPFLAGS'
13462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13465
13466
13467
13468 fi
13469 eval ac_res=\$ax_cv_c_check_flag_$flag
13470                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13471 $as_echo "$ac_res" >&6; }
13472
13473   if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
13474
13475     :
13476     CFLAGS="$CFLAGS -Wno-unused-value"
13477
13478 else
13479
13480     :
13481
13482
13483 fi
13484
13485
13486     fi
13487   fi
13488
13489 fi
13490
13491
13492 # Checks for header files.
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13494 $as_echo_n "checking for ANSI C header files... " >&6; }
13495 if ${ac_cv_header_stdc+:} false; then :
13496   $as_echo_n "(cached) " >&6
13497 else
13498   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13499 /* end confdefs.h.  */
13500 #include <stdlib.h>
13501 #include <stdarg.h>
13502 #include <string.h>
13503 #include <float.h>
13504
13505 int
13506 main ()
13507 {
13508
13509   ;
13510   return 0;
13511 }
13512 _ACEOF
13513 if ac_fn_c_try_compile "$LINENO"; then :
13514   ac_cv_header_stdc=yes
13515 else
13516   ac_cv_header_stdc=no
13517 fi
13518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13519
13520 if test $ac_cv_header_stdc = yes; then
13521   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13522   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13523 /* end confdefs.h.  */
13524 #include <string.h>
13525
13526 _ACEOF
13527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13528   $EGREP "memchr" >/dev/null 2>&1; then :
13529
13530 else
13531   ac_cv_header_stdc=no
13532 fi
13533 rm -f conftest*
13534
13535 fi
13536
13537 if test $ac_cv_header_stdc = yes; then
13538   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13539   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13540 /* end confdefs.h.  */
13541 #include <stdlib.h>
13542
13543 _ACEOF
13544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13545   $EGREP "free" >/dev/null 2>&1; then :
13546
13547 else
13548   ac_cv_header_stdc=no
13549 fi
13550 rm -f conftest*
13551
13552 fi
13553
13554 if test $ac_cv_header_stdc = yes; then
13555   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13556   if test "$cross_compiling" = yes; then :
13557   :
13558 else
13559   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13560 /* end confdefs.h.  */
13561 #include <ctype.h>
13562 #include <stdlib.h>
13563 #if ((' ' & 0x0FF) == 0x020)
13564 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13565 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13566 #else
13567 # define ISLOWER(c) \
13568                    (('a' <= (c) && (c) <= 'i') \
13569                      || ('j' <= (c) && (c) <= 'r') \
13570                      || ('s' <= (c) && (c) <= 'z'))
13571 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13572 #endif
13573
13574 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13575 int
13576 main ()
13577 {
13578   int i;
13579   for (i = 0; i < 256; i++)
13580     if (XOR (islower (i), ISLOWER (i))
13581         || toupper (i) != TOUPPER (i))
13582       return 2;
13583   return 0;
13584 }
13585 _ACEOF
13586 if ac_fn_c_try_run "$LINENO"; then :
13587
13588 else
13589   ac_cv_header_stdc=no
13590 fi
13591 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13592   conftest.$ac_objext conftest.beam conftest.$ac_ext
13593 fi
13594
13595 fi
13596 fi
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13598 $as_echo "$ac_cv_header_stdc" >&6; }
13599 if test $ac_cv_header_stdc = yes; then
13600
13601 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13602
13603 fi
13604
13605 for ac_header in locale.h inttypes.h stdint.h limits.h unistd.h sys/time.h
13606 do :
13607   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13608 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13609 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13610   cat >>confdefs.h <<_ACEOF
13611 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13612 _ACEOF
13613
13614 fi
13615
13616 done
13617
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13619 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13620 if ${ac_cv_header_time+:} false; then :
13621   $as_echo_n "(cached) " >&6
13622 else
13623   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13624 /* end confdefs.h.  */
13625 #include <sys/types.h>
13626 #include <sys/time.h>
13627 #include <time.h>
13628
13629 int
13630 main ()
13631 {
13632 if ((struct tm *) 0)
13633 return 0;
13634   ;
13635   return 0;
13636 }
13637 _ACEOF
13638 if ac_fn_c_try_compile "$LINENO"; then :
13639   ac_cv_header_time=yes
13640 else
13641   ac_cv_header_time=no
13642 fi
13643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13644 fi
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13646 $as_echo "$ac_cv_header_time" >&6; }
13647 if test $ac_cv_header_time = yes; then
13648
13649 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13650
13651 fi
13652
13653
13654    ac_fn_c_check_header_mongrel "$LINENO" "complex.h" "ac_cv_header_complex_h" "$ac_includes_default"
13655 if test "x$ac_cv_header_complex_h" = xyes; then :
13656
13657
13658
13659          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing creal" >&5
13660 $as_echo_n "checking for library containing creal... " >&6; }
13661 if ${ac_cv_search_creal+:} false; then :
13662   $as_echo_n "(cached) " >&6
13663 else
13664   ac_func_search_save_LIBS=$LIBS
13665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13666 /* end confdefs.h.  */
13667
13668 /* Override any GCC internal prototype to avoid an error.
13669    Use char because int might match the return type of a GCC
13670    builtin and then its argument prototype would still apply.  */
13671 #ifdef __cplusplus
13672 extern "C"
13673 #endif
13674 char creal ();
13675 int
13676 main ()
13677 {
13678 return creal ();
13679   ;
13680   return 0;
13681 }
13682 _ACEOF
13683 for ac_lib in '' m; do
13684   if test -z "$ac_lib"; then
13685     ac_res="none required"
13686   else
13687     ac_res=-l$ac_lib
13688     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13689   fi
13690   if ac_fn_c_try_link "$LINENO"; then :
13691   ac_cv_search_creal=$ac_res
13692 fi
13693 rm -f core conftest.err conftest.$ac_objext \
13694     conftest$ac_exeext
13695   if ${ac_cv_search_creal+:} false; then :
13696   break
13697 fi
13698 done
13699 if ${ac_cv_search_creal+:} false; then :
13700
13701 else
13702   ac_cv_search_creal=no
13703 fi
13704 rm conftest.$ac_ext
13705 LIBS=$ac_func_search_save_LIBS
13706 fi
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_creal" >&5
13708 $as_echo "$ac_cv_search_creal" >&6; }
13709 ac_res=$ac_cv_search_creal
13710 if test "$ac_res" != no; then :
13711   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13712
13713 fi
13714
13715 #           needed on Solaris
13716          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether creal, cimag and I can be used" >&5
13717 $as_echo_n "checking whether creal, cimag and I can be used... " >&6; }
13718          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13719 /* end confdefs.h.  */
13720
13721                #include <complex.h>
13722 int
13723 main ()
13724 {
13725 complex double x = 1.0 + 2.0 * I; return (creal (x) + cimag (x));
13726
13727   ;
13728   return 0;
13729 }
13730
13731
13732 _ACEOF
13733 if ac_fn_c_try_link "$LINENO"; then :
13734
13735                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13736 $as_echo "yes" >&6; }
13737
13738 $as_echo "#define HAVE_COMPLEX_H 1" >>confdefs.h
13739
13740
13741 else
13742
13743                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, build without support for C complex numbers" >&5
13744 $as_echo "no, build without support for C complex numbers" >&6; }
13745
13746
13747 fi
13748 rm -f core conftest.err conftest.$ac_objext \
13749     conftest$ac_exeext conftest.$ac_ext
13750
13751
13752 fi
13753
13754
13755
13756
13757 # Checks for typedefs, structures, and compiler characteristics.
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13759 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13760 if ${ac_cv_c_const+:} false; then :
13761   $as_echo_n "(cached) " >&6
13762 else
13763   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13764 /* end confdefs.h.  */
13765
13766 int
13767 main ()
13768 {
13769
13770 #ifndef __cplusplus
13771   /* Ultrix mips cc rejects this sort of thing.  */
13772   typedef int charset[2];
13773   const charset cs = { 0, 0 };
13774   /* SunOS 4.1.1 cc rejects this.  */
13775   char const *const *pcpcc;
13776   char **ppc;
13777   /* NEC SVR4.0.2 mips cc rejects this.  */
13778   struct point {int x, y;};
13779   static struct point const zero = {0,0};
13780   /* AIX XL C 1.02.0.0 rejects this.
13781      It does not let you subtract one const X* pointer from another in
13782      an arm of an if-expression whose if-part is not a constant
13783      expression */
13784   const char *g = "string";
13785   pcpcc = &g + (g ? g-g : 0);
13786   /* HPUX 7.0 cc rejects these. */
13787   ++pcpcc;
13788   ppc = (char**) pcpcc;
13789   pcpcc = (char const *const *) ppc;
13790   { /* SCO 3.2v4 cc rejects this sort of thing.  */
13791     char tx;
13792     char *t = &tx;
13793     char const *s = 0 ? (char *) 0 : (char const *) 0;
13794
13795     *t++ = 0;
13796     if (s) return 0;
13797   }
13798   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13799     int x[] = {25, 17};
13800     const int *foo = &x[0];
13801     ++foo;
13802   }
13803   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13804     typedef const int *iptr;
13805     iptr p = 0;
13806     ++p;
13807   }
13808   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13809        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13810     struct s { int j; const int *ap[3]; } bx;
13811     struct s *b = &bx; b->j = 5;
13812   }
13813   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13814     const int foo = 10;
13815     if (!foo) return 0;
13816   }
13817   return !cs[0] && !zero.x;
13818 #endif
13819
13820   ;
13821   return 0;
13822 }
13823 _ACEOF
13824 if ac_fn_c_try_compile "$LINENO"; then :
13825   ac_cv_c_const=yes
13826 else
13827   ac_cv_c_const=no
13828 fi
13829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13830 fi
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13832 $as_echo "$ac_cv_c_const" >&6; }
13833 if test $ac_cv_c_const = no; then
13834
13835 $as_echo "#define const /**/" >>confdefs.h
13836
13837 fi
13838
13839 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13840 if test "x$ac_cv_type_size_t" = xyes; then :
13841
13842 else
13843
13844 cat >>confdefs.h <<_ACEOF
13845 #define size_t unsigned int
13846 _ACEOF
13847
13848 fi
13849
13850
13851 # Checks for libraries.
13852 for ac_func in gettimeofday localeconv setlocale
13853 do :
13854   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13855 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13856 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13857   cat >>confdefs.h <<_ACEOF
13858 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13859 _ACEOF
13860
13861 fi
13862 done
13863
13864 for ac_func in dup dup2
13865 do :
13866   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13867 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13868 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13869   cat >>confdefs.h <<_ACEOF
13870 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13871 _ACEOF
13872
13873 else
13874
13875 $as_echo "#define MPC_NO_STREAM_REDIRECTION 1" >>confdefs.h
13876
13877 fi
13878 done
13879
13880
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_init in -lgmp" >&5
13882 $as_echo_n "checking for __gmpz_init in -lgmp... " >&6; }
13883 if ${ac_cv_lib_gmp___gmpz_init+:} false; then :
13884   $as_echo_n "(cached) " >&6
13885 else
13886   ac_check_lib_save_LIBS=$LIBS
13887 LIBS="-lgmp  $LIBS"
13888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13889 /* end confdefs.h.  */
13890
13891 /* Override any GCC internal prototype to avoid an error.
13892    Use char because int might match the return type of a GCC
13893    builtin and then its argument prototype would still apply.  */
13894 #ifdef __cplusplus
13895 extern "C"
13896 #endif
13897 char __gmpz_init ();
13898 int
13899 main ()
13900 {
13901 return __gmpz_init ();
13902   ;
13903   return 0;
13904 }
13905 _ACEOF
13906 if ac_fn_c_try_link "$LINENO"; then :
13907   ac_cv_lib_gmp___gmpz_init=yes
13908 else
13909   ac_cv_lib_gmp___gmpz_init=no
13910 fi
13911 rm -f core conftest.err conftest.$ac_objext \
13912     conftest$ac_exeext conftest.$ac_ext
13913 LIBS=$ac_check_lib_save_LIBS
13914 fi
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_init" >&5
13916 $as_echo "$ac_cv_lib_gmp___gmpz_init" >&6; }
13917 if test "x$ac_cv_lib_gmp___gmpz_init" = xyes; then :
13918   LIBS="-lgmp $LIBS"
13919 else
13920   as_fn_error $? "libgmp not found or uses a different ABI (including static vs shared)." "$LINENO" 5
13921 fi
13922
13923
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPFR" >&5
13925 $as_echo_n "checking for MPFR... " >&6; }
13926 LIBS="-lmpfr $LIBS"
13927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13928 /* end confdefs.h.  */
13929 #include "mpfr.h"
13930 int
13931 main ()
13932 {
13933 mpfr_t x;  mpfr_init(x) ; mpfr_clear(x);
13934
13935   ;
13936   return 0;
13937 }
13938 _ACEOF
13939 if ac_fn_c_try_link "$LINENO"; then :
13940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13941 $as_echo "yes" >&6; }
13942 else
13943
13944         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13945 $as_echo "no" >&6; }
13946         as_fn_error $? "libmpfr not found or uses a different ABI (including static vs shared)." "$LINENO" 5
13947
13948 fi
13949 rm -f core conftest.err conftest.$ac_objext \
13950     conftest$ac_exeext conftest.$ac_ext
13951
13952 # Check for a recent GMP
13953 # We only guarantee that with a *functional* and recent enough GMP version,
13954 # MPC will compile; we do not guarantee that GMP will compile.
13955 # In particular fat builds are broken in GMP 4.3.2 and GMP 5.0.0
13956 # (at least on 64-bit Core 2 under GNU/Linux),
13957 # see http://gmplib.org/list-archives/gmp-bugs/2011-August/002345.html.
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent GMP" >&5
13959 $as_echo_n "checking for recent GMP... " >&6; }
13960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13961 /* end confdefs.h.  */
13962
13963 #include "gmp.h"
13964 #if (__GNU_MP_VERSION*100 + __GNU_MP_VERSION_MINOR*10 + __GNU_MP_VERSION_PATCHLEVEL < 432)
13965 # error "Minimal GMP version is 4.3.2"
13966 error
13967 #endif
13968
13969 _ACEOF
13970 if ac_fn_c_try_compile "$LINENO"; then :
13971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13972 $as_echo "yes" >&6; }
13973 else
13974
13975         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13976 $as_echo "no" >&6; }
13977         as_fn_error $? "GMP version >= 4.3.2 required" "$LINENO" 5
13978
13979 fi
13980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13981
13982 # Check for a recent MPFR: we require MPFR 2.4.2 so that the tests
13983 # in log.dat pass
13984 # The same remark as above for GMP applies.
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent MPFR" >&5
13986 $as_echo_n "checking for recent MPFR... " >&6; }
13987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13988 /* end confdefs.h.  */
13989
13990 #include "mpfr.h"
13991 #if (MPFR_VERSION < MPFR_VERSION_NUM (2,4,2))
13992 # error "Minimal MPFR version is 2.4.2"
13993 error
13994 #endif
13995
13996 _ACEOF
13997 if ac_fn_c_try_compile "$LINENO"; then :
13998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13999 $as_echo "yes" >&6; }
14000 else
14001
14002          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14003 $as_echo "no" >&6; }
14004          as_fn_error $? "MPFR version >= 2.4.2 required" "$LINENO" 5
14005
14006 fi
14007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14008
14009 # Check for logging feature
14010 if test "x$enable_logging" = "xyes"; then :
14011   for ac_header in dlfcn.h
14012 do :
14013   ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
14014 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14015   cat >>confdefs.h <<_ACEOF
14016 #define HAVE_DLFCN_H 1
14017 _ACEOF
14018
14019 fi
14020
14021 done
14022
14023         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
14024 $as_echo_n "checking for dlsym in -ldl... " >&6; }
14025 if ${ac_cv_lib_dl_dlsym+:} false; then :
14026   $as_echo_n "(cached) " >&6
14027 else
14028   ac_check_lib_save_LIBS=$LIBS
14029 LIBS="-ldl  $LIBS"
14030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14031 /* end confdefs.h.  */
14032
14033 /* Override any GCC internal prototype to avoid an error.
14034    Use char because int might match the return type of a GCC
14035    builtin and then its argument prototype would still apply.  */
14036 #ifdef __cplusplus
14037 extern "C"
14038 #endif
14039 char dlsym ();
14040 int
14041 main ()
14042 {
14043 return dlsym ();
14044   ;
14045   return 0;
14046 }
14047 _ACEOF
14048 if ac_fn_c_try_link "$LINENO"; then :
14049   ac_cv_lib_dl_dlsym=yes
14050 else
14051   ac_cv_lib_dl_dlsym=no
14052 fi
14053 rm -f core conftest.err conftest.$ac_objext \
14054     conftest$ac_exeext conftest.$ac_ext
14055 LIBS=$ac_check_lib_save_LIBS
14056 fi
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
14058 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
14059 if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
14060
14061
14062 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
14063
14064             LIBS="-ldl $LIBS"
14065
14066   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
14067 if test "x$ac_cv_type_intptr_t" = xyes; then :
14068
14069 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
14070
14071 else
14072   for ac_type in 'int' 'long int' 'long long int'; do
14073        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14074 /* end confdefs.h.  */
14075 $ac_includes_default
14076 int
14077 main ()
14078 {
14079 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
14080 test_array [0] = 0;
14081 return test_array [0];
14082
14083   ;
14084   return 0;
14085 }
14086 _ACEOF
14087 if ac_fn_c_try_compile "$LINENO"; then :
14088
14089 cat >>confdefs.h <<_ACEOF
14090 #define intptr_t $ac_type
14091 _ACEOF
14092
14093           ac_type=
14094 fi
14095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14096        test -z "$ac_type" && break
14097      done
14098 fi
14099
14100
14101             case " $LIBOBJS " in
14102   *" logging.$ac_objext "* ) ;;
14103   *) LIBOBJS="$LIBOBJS logging.$ac_objext"
14104  ;;
14105 esac
14106
14107             MPC_LOG_H=src/mpc-log.h
14108
14109
14110 else
14111   as_fn_error $? "Library dl not found, logging impossible" "$LINENO" 5
14112 fi
14113
14114
14115
14116 fi
14117
14118 # Configs for Windows DLLs
14119
14120 enable_win32_dll=yes
14121
14122 case $host in
14123 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
14124   if test -n "$ac_tool_prefix"; then
14125   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
14126 set dummy ${ac_tool_prefix}as; ac_word=$2
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14128 $as_echo_n "checking for $ac_word... " >&6; }
14129 if ${ac_cv_prog_AS+:} false; then :
14130   $as_echo_n "(cached) " >&6
14131 else
14132   if test -n "$AS"; then
14133   ac_cv_prog_AS="$AS" # Let the user override the test.
14134 else
14135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14136 for as_dir in $PATH
14137 do
14138   IFS=$as_save_IFS
14139   test -z "$as_dir" && as_dir=.
14140     for ac_exec_ext in '' $ac_executable_extensions; do
14141   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14142     ac_cv_prog_AS="${ac_tool_prefix}as"
14143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14144     break 2
14145   fi
14146 done
14147   done
14148 IFS=$as_save_IFS
14149
14150 fi
14151 fi
14152 AS=$ac_cv_prog_AS
14153 if test -n "$AS"; then
14154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
14155 $as_echo "$AS" >&6; }
14156 else
14157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14158 $as_echo "no" >&6; }
14159 fi
14160
14161
14162 fi
14163 if test -z "$ac_cv_prog_AS"; then
14164   ac_ct_AS=$AS
14165   # Extract the first word of "as", so it can be a program name with args.
14166 set dummy as; ac_word=$2
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14168 $as_echo_n "checking for $ac_word... " >&6; }
14169 if ${ac_cv_prog_ac_ct_AS+:} false; then :
14170   $as_echo_n "(cached) " >&6
14171 else
14172   if test -n "$ac_ct_AS"; then
14173   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
14174 else
14175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14176 for as_dir in $PATH
14177 do
14178   IFS=$as_save_IFS
14179   test -z "$as_dir" && as_dir=.
14180     for ac_exec_ext in '' $ac_executable_extensions; do
14181   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14182     ac_cv_prog_ac_ct_AS="as"
14183     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14184     break 2
14185   fi
14186 done
14187   done
14188 IFS=$as_save_IFS
14189
14190 fi
14191 fi
14192 ac_ct_AS=$ac_cv_prog_ac_ct_AS
14193 if test -n "$ac_ct_AS"; then
14194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
14195 $as_echo "$ac_ct_AS" >&6; }
14196 else
14197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14198 $as_echo "no" >&6; }
14199 fi
14200
14201   if test "x$ac_ct_AS" = x; then
14202     AS="false"
14203   else
14204     case $cross_compiling:$ac_tool_warned in
14205 yes:)
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14207 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14208 ac_tool_warned=yes ;;
14209 esac
14210     AS=$ac_ct_AS
14211   fi
14212 else
14213   AS="$ac_cv_prog_AS"
14214 fi
14215
14216   if test -n "$ac_tool_prefix"; then
14217   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
14218 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14220 $as_echo_n "checking for $ac_word... " >&6; }
14221 if ${ac_cv_prog_DLLTOOL+:} false; then :
14222   $as_echo_n "(cached) " >&6
14223 else
14224   if test -n "$DLLTOOL"; then
14225   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14226 else
14227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14228 for as_dir in $PATH
14229 do
14230   IFS=$as_save_IFS
14231   test -z "$as_dir" && as_dir=.
14232     for ac_exec_ext in '' $ac_executable_extensions; do
14233   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14234     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
14235     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14236     break 2
14237   fi
14238 done
14239   done
14240 IFS=$as_save_IFS
14241
14242 fi
14243 fi
14244 DLLTOOL=$ac_cv_prog_DLLTOOL
14245 if test -n "$DLLTOOL"; then
14246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
14247 $as_echo "$DLLTOOL" >&6; }
14248 else
14249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14250 $as_echo "no" >&6; }
14251 fi
14252
14253
14254 fi
14255 if test -z "$ac_cv_prog_DLLTOOL"; then
14256   ac_ct_DLLTOOL=$DLLTOOL
14257   # Extract the first word of "dlltool", so it can be a program name with args.
14258 set dummy dlltool; ac_word=$2
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14260 $as_echo_n "checking for $ac_word... " >&6; }
14261 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
14262   $as_echo_n "(cached) " >&6
14263 else
14264   if test -n "$ac_ct_DLLTOOL"; then
14265   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
14266 else
14267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14268 for as_dir in $PATH
14269 do
14270   IFS=$as_save_IFS
14271   test -z "$as_dir" && as_dir=.
14272     for ac_exec_ext in '' $ac_executable_extensions; do
14273   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14274     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
14275     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14276     break 2
14277   fi
14278 done
14279   done
14280 IFS=$as_save_IFS
14281
14282 fi
14283 fi
14284 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
14285 if test -n "$ac_ct_DLLTOOL"; then
14286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
14287 $as_echo "$ac_ct_DLLTOOL" >&6; }
14288 else
14289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14290 $as_echo "no" >&6; }
14291 fi
14292
14293   if test "x$ac_ct_DLLTOOL" = x; then
14294     DLLTOOL="false"
14295   else
14296     case $cross_compiling:$ac_tool_warned in
14297 yes:)
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14299 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14300 ac_tool_warned=yes ;;
14301 esac
14302     DLLTOOL=$ac_ct_DLLTOOL
14303   fi
14304 else
14305   DLLTOOL="$ac_cv_prog_DLLTOOL"
14306 fi
14307
14308   if test -n "$ac_tool_prefix"; then
14309   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
14310 set dummy ${ac_tool_prefix}objdump; ac_word=$2
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14312 $as_echo_n "checking for $ac_word... " >&6; }
14313 if ${ac_cv_prog_OBJDUMP+:} false; then :
14314   $as_echo_n "(cached) " >&6
14315 else
14316   if test -n "$OBJDUMP"; then
14317   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14318 else
14319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14320 for as_dir in $PATH
14321 do
14322   IFS=$as_save_IFS
14323   test -z "$as_dir" && as_dir=.
14324     for ac_exec_ext in '' $ac_executable_extensions; do
14325   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14326     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
14327     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14328     break 2
14329   fi
14330 done
14331   done
14332 IFS=$as_save_IFS
14333
14334 fi
14335 fi
14336 OBJDUMP=$ac_cv_prog_OBJDUMP
14337 if test -n "$OBJDUMP"; then
14338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
14339 $as_echo "$OBJDUMP" >&6; }
14340 else
14341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14342 $as_echo "no" >&6; }
14343 fi
14344
14345
14346 fi
14347 if test -z "$ac_cv_prog_OBJDUMP"; then
14348   ac_ct_OBJDUMP=$OBJDUMP
14349   # Extract the first word of "objdump", so it can be a program name with args.
14350 set dummy objdump; ac_word=$2
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14352 $as_echo_n "checking for $ac_word... " >&6; }
14353 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
14354   $as_echo_n "(cached) " >&6
14355 else
14356   if test -n "$ac_ct_OBJDUMP"; then
14357   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14358 else
14359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14360 for as_dir in $PATH
14361 do
14362   IFS=$as_save_IFS
14363   test -z "$as_dir" && as_dir=.
14364     for ac_exec_ext in '' $ac_executable_extensions; do
14365   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14366     ac_cv_prog_ac_ct_OBJDUMP="objdump"
14367     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14368     break 2
14369   fi
14370 done
14371   done
14372 IFS=$as_save_IFS
14373
14374 fi
14375 fi
14376 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14377 if test -n "$ac_ct_OBJDUMP"; then
14378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
14379 $as_echo "$ac_ct_OBJDUMP" >&6; }
14380 else
14381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14382 $as_echo "no" >&6; }
14383 fi
14384
14385   if test "x$ac_ct_OBJDUMP" = x; then
14386     OBJDUMP="false"
14387   else
14388     case $cross_compiling:$ac_tool_warned in
14389 yes:)
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14392 ac_tool_warned=yes ;;
14393 esac
14394     OBJDUMP=$ac_ct_OBJDUMP
14395   fi
14396 else
14397   OBJDUMP="$ac_cv_prog_OBJDUMP"
14398 fi
14399
14400   ;;
14401 esac
14402
14403 test -z "$AS" && AS=as
14404
14405
14406
14407
14408
14409 test -z "$DLLTOOL" && DLLTOOL=dlltool
14410
14411
14412 test -z "$OBJDUMP" && OBJDUMP=objdump
14413
14414
14415
14416
14417 case $host in
14418   *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
14419
14420    if test "$enable_shared" = yes; then
14421      MPC_LDFLAGS="$MPC_LDFLAGS -no-undefined"
14422      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLL/static gmp" >&5
14423 $as_echo_n "checking for DLL/static gmp... " >&6; }
14424      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14425 /* end confdefs.h.  */
14426
14427 #include "gmp.h"
14428 #if !__GMP_LIBGMP_DLL
14429 #error
14430 error
14431 #endif
14432
14433 int
14434 main ()
14435 {
14436
14437   ;
14438   return 0;
14439 }
14440 _ACEOF
14441 if ac_fn_c_try_compile "$LINENO"; then :
14442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: DLL" >&5
14443 $as_echo "DLL" >&6; }
14444 else
14445
14446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5
14447 $as_echo "static" >&6; }
14448   as_fn_error $? "gmp is not available as a DLL: use --enable-static --disable-shared" "$LINENO" 5
14449 fi
14450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14451      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLL/static mpfr" >&5
14452 $as_echo_n "checking for DLL/static mpfr... " >&6; }
14453      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14454 /* end confdefs.h.  */
14455
14456 #include "mpfr.h"
14457 #if !__GMP_LIBGMP_DLL
14458 #error
14459 error
14460 #endif
14461
14462 int
14463 main ()
14464 {
14465
14466   ;
14467   return 0;
14468 }
14469 _ACEOF
14470 if ac_fn_c_try_compile "$LINENO"; then :
14471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: DLL" >&5
14472 $as_echo "DLL" >&6; }
14473 else
14474
14475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5
14476 $as_echo "static" >&6; }
14477   as_fn_error $? "mpfr is not available as a DLL: use --enable-static --disable-shared" "$LINENO" 5
14478 fi
14479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14480    else
14481      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14482 /* end confdefs.h.  */
14483
14484 #include "gmp.h"
14485 #if __GMP_LIBGMP_DLL
14486 #error
14487 error
14488 #endif
14489
14490 int
14491 main ()
14492 {
14493
14494   ;
14495   return 0;
14496 }
14497 _ACEOF
14498 if ac_fn_c_try_compile "$LINENO"; then :
14499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5
14500 $as_echo "static" >&6; }
14501 else
14502
14503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: DLL" >&5
14504 $as_echo "DLL" >&6; }
14505   as_fn_error $? "gmp is only available as a DLL: use --disable-static --enable-shared" "$LINENO" 5
14506 fi
14507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14508   fi
14509   ;;
14510
14511 esac
14512
14513 # Checks for gcc version, result in variables MPC_GCC etc. inside config.log
14514
14515   GCC_VERSION=""
14516
14517
14518
14519   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -dumpversion option" >&5
14520 $as_echo_n "checking if gcc accepts -dumpversion option... " >&6; }
14521
14522   if  test "x$GCC" = "xyes" ; then :
14523
14524     if  test -z "" ; then :
14525
14526       ax_gcc_option_test="int main()
14527 {
14528         return 0;
14529 }"
14530
14531 else
14532
14533       ax_gcc_option_test=""
14534
14535 fi
14536
14537     # Dump the test program to file
14538     cat <<EOF > conftest.c
14539 $ax_gcc_option_test
14540 EOF
14541
14542     # Dump back the file to the log, useful for debugging purposes
14543     { ac_try='cat conftest.c 1>&5'
14544   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14545   (eval $ac_try) 2>&5
14546   ac_status=$?
14547   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14548   test $ac_status = 0; }; }
14549
14550     if  { ac_try='$CC  -dumpversion -c conftest.c 1>&5'
14551   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14552   (eval $ac_try) 2>&5
14553   ac_status=$?
14554   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14555   test $ac_status = 0; }; } ; then :
14556
14557                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14558 $as_echo "yes" >&6; }
14559
14560     ax_gcc_version_option=yes
14561
14562
14563 else
14564
14565                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14566 $as_echo "no" >&6; }
14567
14568     ax_gcc_version_option=no
14569
14570
14571 fi
14572
14573 else
14574
14575     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no gcc available" >&5
14576 $as_echo "no gcc available" >&6; }
14577
14578 fi
14579
14580   if test "x$GCC" = "xyes"; then :
14581
14582     if test "x$ax_gcc_version_option" != "xno"; then :
14583
14584       { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
14585 $as_echo_n "checking gcc version... " >&6; }
14586 if ${ax_cv_gcc_version+:} false; then :
14587   $as_echo_n "(cached) " >&6
14588 else
14589
14590         ax_cv_gcc_version="`$CC -dumpversion`"
14591         if test "x$ax_cv_gcc_version" = "x"; then :
14592
14593           ax_cv_gcc_version=""
14594
14595 fi
14596
14597 fi
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
14599 $as_echo "$ax_cv_gcc_version" >&6; }
14600       GCC_VERSION=$ax_cv_gcc_version
14601
14602 fi
14603
14604 fi
14605
14606
14607
14608 cat >>confdefs.h <<_ACEOF
14609 #define MPC_GCC "$GCC"
14610 _ACEOF
14611
14612
14613 cat >>confdefs.h <<_ACEOF
14614 #define MPC_CC "$CC"
14615 _ACEOF
14616
14617
14618 cat >>confdefs.h <<_ACEOF
14619 #define MPC_GCC_VERSION "$GCC_VERSION"
14620 _ACEOF
14621
14622
14623 # Looks for svn version if the version string contains "dev"
14624
14625    if echo $VERSION | grep -c dev >/dev/null 2>&1 ; then
14626       # Extract the first word of "svnversion", so it can be a program name with args.
14627 set dummy svnversion; ac_word=$2
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14629 $as_echo_n "checking for $ac_word... " >&6; }
14630 if ${ac_cv_prog_HASSVNVERSION+:} false; then :
14631   $as_echo_n "(cached) " >&6
14632 else
14633   if test -n "$HASSVNVERSION"; then
14634   ac_cv_prog_HASSVNVERSION="$HASSVNVERSION" # Let the user override the test.
14635 else
14636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14637 for as_dir in $PATH
14638 do
14639   IFS=$as_save_IFS
14640   test -z "$as_dir" && as_dir=.
14641     for ac_exec_ext in '' $ac_executable_extensions; do
14642   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14643     ac_cv_prog_HASSVNVERSION="yes"
14644     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14645     break 2
14646   fi
14647 done
14648   done
14649 IFS=$as_save_IFS
14650
14651   test -z "$ac_cv_prog_HASSVNVERSION" && ac_cv_prog_HASSVNVERSION="no"
14652 fi
14653 fi
14654 HASSVNVERSION=$ac_cv_prog_HASSVNVERSION
14655 if test -n "$HASSVNVERSION"; then
14656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HASSVNVERSION" >&5
14657 $as_echo "$HASSVNVERSION" >&6; }
14658 else
14659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14660 $as_echo "no" >&6; }
14661 fi
14662
14663
14664       if test "x$HASSVNVERSION" = "xyes"; then :
14665
14666          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for current svn version" >&5
14667 $as_echo_n "checking for current svn version... " >&6; }
14668          SVNVERSION=1241M
14669
14670          { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVNVERSION" >&5
14671 $as_echo "$SVNVERSION" >&6; }
14672
14673 fi
14674    fi
14675
14676
14677 ac_config_files="$ac_config_files Makefile src/Makefile tests/Makefile doc/Makefile"
14678
14679 cat >confcache <<\_ACEOF
14680 # This file is a shell script that caches the results of configure
14681 # tests run on this system so they can be shared between configure
14682 # scripts and configure runs, see configure's option --config-cache.
14683 # It is not useful on other systems.  If it contains results you don't
14684 # want to keep, you may remove or edit it.
14685 #
14686 # config.status only pays attention to the cache file if you give it
14687 # the --recheck option to rerun configure.
14688 #
14689 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14690 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14691 # following values.
14692
14693 _ACEOF
14694
14695 # The following way of writing the cache mishandles newlines in values,
14696 # but we know of no workaround that is simple, portable, and efficient.
14697 # So, we kill variables containing newlines.
14698 # Ultrix sh set writes to stderr and can't be redirected directly,
14699 # and sets the high bit in the cache file unless we assign to the vars.
14700 (
14701   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14702     eval ac_val=\$$ac_var
14703     case $ac_val in #(
14704     *${as_nl}*)
14705       case $ac_var in #(
14706       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14707 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14708       esac
14709       case $ac_var in #(
14710       _ | IFS | as_nl) ;; #(
14711       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14712       *) { eval $ac_var=; unset $ac_var;} ;;
14713       esac ;;
14714     esac
14715   done
14716
14717   (set) 2>&1 |
14718     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14719     *${as_nl}ac_space=\ *)
14720       # `set' does not quote correctly, so add quotes: double-quote
14721       # substitution turns \\\\ into \\, and sed turns \\ into \.
14722       sed -n \
14723         "s/'/'\\\\''/g;
14724           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14725       ;; #(
14726     *)
14727       # `set' quotes correctly as required by POSIX, so do not add quotes.
14728       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14729       ;;
14730     esac |
14731     sort
14732 ) |
14733   sed '
14734      /^ac_cv_env_/b end
14735      t clear
14736      :clear
14737      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14738      t end
14739      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14740      :end' >>confcache
14741 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14742   if test -w "$cache_file"; then
14743     if test "x$cache_file" != "x/dev/null"; then
14744       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14745 $as_echo "$as_me: updating cache $cache_file" >&6;}
14746       if test ! -f "$cache_file" || test -h "$cache_file"; then
14747         cat confcache >"$cache_file"
14748       else
14749         case $cache_file in #(
14750         */* | ?:*)
14751           mv -f confcache "$cache_file"$$ &&
14752           mv -f "$cache_file"$$ "$cache_file" ;; #(
14753         *)
14754           mv -f confcache "$cache_file" ;;
14755         esac
14756       fi
14757     fi
14758   else
14759     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14760 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14761   fi
14762 fi
14763 rm -f confcache
14764
14765 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14766 # Let make expand exec_prefix.
14767 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14768
14769 DEFS=-DHAVE_CONFIG_H
14770
14771 ac_libobjs=
14772 ac_ltlibobjs=
14773 U=
14774 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14775   # 1. Remove the extension, and $U if already installed.
14776   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14777   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14778   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14779   #    will be set to the directory where LIBOBJS objects are built.
14780   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14781   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14782 done
14783 LIBOBJS=$ac_libobjs
14784
14785 LTLIBOBJS=$ac_ltlibobjs
14786
14787
14788  if test -n "$EXEEXT"; then
14789   am__EXEEXT_TRUE=
14790   am__EXEEXT_FALSE='#'
14791 else
14792   am__EXEEXT_TRUE='#'
14793   am__EXEEXT_FALSE=
14794 fi
14795
14796 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14797   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14798 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14799 fi
14800 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14801   as_fn_error $? "conditional \"AMDEP\" was never defined.
14802 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14803 fi
14804 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14805   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14806 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14807 fi
14808 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14809   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14810 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14811 fi
14812
14813 : "${CONFIG_STATUS=./config.status}"
14814 ac_write_fail=0
14815 ac_clean_files_save=$ac_clean_files
14816 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14818 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14819 as_write_fail=0
14820 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14821 #! $SHELL
14822 # Generated by $as_me.
14823 # Run this file to recreate the current configuration.
14824 # Compiler output produced by configure, useful for debugging
14825 # configure, is in config.log if it exists.
14826
14827 debug=false
14828 ac_cs_recheck=false
14829 ac_cs_silent=false
14830
14831 SHELL=\${CONFIG_SHELL-$SHELL}
14832 export SHELL
14833 _ASEOF
14834 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14835 ## -------------------- ##
14836 ## M4sh Initialization. ##
14837 ## -------------------- ##
14838
14839 # Be more Bourne compatible
14840 DUALCASE=1; export DUALCASE # for MKS sh
14841 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14842   emulate sh
14843   NULLCMD=:
14844   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14845   # is contrary to our usage.  Disable this feature.
14846   alias -g '${1+"$@"}'='"$@"'
14847   setopt NO_GLOB_SUBST
14848 else
14849   case `(set -o) 2>/dev/null` in #(
14850   *posix*) :
14851     set -o posix ;; #(
14852   *) :
14853      ;;
14854 esac
14855 fi
14856
14857
14858 as_nl='
14859 '
14860 export as_nl
14861 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14862 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14863 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14864 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14865 # Prefer a ksh shell builtin over an external printf program on Solaris,
14866 # but without wasting forks for bash or zsh.
14867 if test -z "$BASH_VERSION$ZSH_VERSION" \
14868     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14869   as_echo='print -r --'
14870   as_echo_n='print -rn --'
14871 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14872   as_echo='printf %s\n'
14873   as_echo_n='printf %s'
14874 else
14875   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14876     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14877     as_echo_n='/usr/ucb/echo -n'
14878   else
14879     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14880     as_echo_n_body='eval
14881       arg=$1;
14882       case $arg in #(
14883       *"$as_nl"*)
14884         expr "X$arg" : "X\\(.*\\)$as_nl";
14885         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14886       esac;
14887       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14888     '
14889     export as_echo_n_body
14890     as_echo_n='sh -c $as_echo_n_body as_echo'
14891   fi
14892   export as_echo_body
14893   as_echo='sh -c $as_echo_body as_echo'
14894 fi
14895
14896 # The user is always right.
14897 if test "${PATH_SEPARATOR+set}" != set; then
14898   PATH_SEPARATOR=:
14899   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14900     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14901       PATH_SEPARATOR=';'
14902   }
14903 fi
14904
14905
14906 # IFS
14907 # We need space, tab and new line, in precisely that order.  Quoting is
14908 # there to prevent editors from complaining about space-tab.
14909 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14910 # splitting by setting IFS to empty value.)
14911 IFS=" ""        $as_nl"
14912
14913 # Find who we are.  Look in the path if we contain no directory separator.
14914 as_myself=
14915 case $0 in #((
14916   *[\\/]* ) as_myself=$0 ;;
14917   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14918 for as_dir in $PATH
14919 do
14920   IFS=$as_save_IFS
14921   test -z "$as_dir" && as_dir=.
14922     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14923   done
14924 IFS=$as_save_IFS
14925
14926      ;;
14927 esac
14928 # We did not find ourselves, most probably we were run as `sh COMMAND'
14929 # in which case we are not to be found in the path.
14930 if test "x$as_myself" = x; then
14931   as_myself=$0
14932 fi
14933 if test ! -f "$as_myself"; then
14934   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14935   exit 1
14936 fi
14937
14938 # Unset variables that we do not need and which cause bugs (e.g. in
14939 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14940 # suppresses any "Segmentation fault" message there.  '((' could
14941 # trigger a bug in pdksh 5.2.14.
14942 for as_var in BASH_ENV ENV MAIL MAILPATH
14943 do eval test x\${$as_var+set} = xset \
14944   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14945 done
14946 PS1='$ '
14947 PS2='> '
14948 PS4='+ '
14949
14950 # NLS nuisances.
14951 LC_ALL=C
14952 export LC_ALL
14953 LANGUAGE=C
14954 export LANGUAGE
14955
14956 # CDPATH.
14957 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14958
14959
14960 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14961 # ----------------------------------------
14962 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14963 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14964 # script with STATUS, using 1 if that was 0.
14965 as_fn_error ()
14966 {
14967   as_status=$1; test $as_status -eq 0 && as_status=1
14968   if test "$4"; then
14969     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14970     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14971   fi
14972   $as_echo "$as_me: error: $2" >&2
14973   as_fn_exit $as_status
14974 } # as_fn_error
14975
14976
14977 # as_fn_set_status STATUS
14978 # -----------------------
14979 # Set $? to STATUS, without forking.
14980 as_fn_set_status ()
14981 {
14982   return $1
14983 } # as_fn_set_status
14984
14985 # as_fn_exit STATUS
14986 # -----------------
14987 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14988 as_fn_exit ()
14989 {
14990   set +e
14991   as_fn_set_status $1
14992   exit $1
14993 } # as_fn_exit
14994
14995 # as_fn_unset VAR
14996 # ---------------
14997 # Portably unset VAR.
14998 as_fn_unset ()
14999 {
15000   { eval $1=; unset $1;}
15001 }
15002 as_unset=as_fn_unset
15003 # as_fn_append VAR VALUE
15004 # ----------------------
15005 # Append the text in VALUE to the end of the definition contained in VAR. Take
15006 # advantage of any shell optimizations that allow amortized linear growth over
15007 # repeated appends, instead of the typical quadratic growth present in naive
15008 # implementations.
15009 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15010   eval 'as_fn_append ()
15011   {
15012     eval $1+=\$2
15013   }'
15014 else
15015   as_fn_append ()
15016   {
15017     eval $1=\$$1\$2
15018   }
15019 fi # as_fn_append
15020
15021 # as_fn_arith ARG...
15022 # ------------------
15023 # Perform arithmetic evaluation on the ARGs, and store the result in the
15024 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15025 # must be portable across $(()) and expr.
15026 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15027   eval 'as_fn_arith ()
15028   {
15029     as_val=$(( $* ))
15030   }'
15031 else
15032   as_fn_arith ()
15033   {
15034     as_val=`expr "$@" || test $? -eq 1`
15035   }
15036 fi # as_fn_arith
15037
15038
15039 if expr a : '\(a\)' >/dev/null 2>&1 &&
15040    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15041   as_expr=expr
15042 else
15043   as_expr=false
15044 fi
15045
15046 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15047   as_basename=basename
15048 else
15049   as_basename=false
15050 fi
15051
15052 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15053   as_dirname=dirname
15054 else
15055   as_dirname=false
15056 fi
15057
15058 as_me=`$as_basename -- "$0" ||
15059 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15060          X"$0" : 'X\(//\)$' \| \
15061          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15062 $as_echo X/"$0" |
15063     sed '/^.*\/\([^/][^/]*\)\/*$/{
15064             s//\1/
15065             q
15066           }
15067           /^X\/\(\/\/\)$/{
15068             s//\1/
15069             q
15070           }
15071           /^X\/\(\/\).*/{
15072             s//\1/
15073             q
15074           }
15075           s/.*/./; q'`
15076
15077 # Avoid depending upon Character Ranges.
15078 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15079 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15080 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15081 as_cr_digits='0123456789'
15082 as_cr_alnum=$as_cr_Letters$as_cr_digits
15083
15084 ECHO_C= ECHO_N= ECHO_T=
15085 case `echo -n x` in #(((((
15086 -n*)
15087   case `echo 'xy\c'` in
15088   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15089   xy)  ECHO_C='\c';;
15090   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15091        ECHO_T=' ';;
15092   esac;;
15093 *)
15094   ECHO_N='-n';;
15095 esac
15096
15097 rm -f conf$$ conf$$.exe conf$$.file
15098 if test -d conf$$.dir; then
15099   rm -f conf$$.dir/conf$$.file
15100 else
15101   rm -f conf$$.dir
15102   mkdir conf$$.dir 2>/dev/null
15103 fi
15104 if (echo >conf$$.file) 2>/dev/null; then
15105   if ln -s conf$$.file conf$$ 2>/dev/null; then
15106     as_ln_s='ln -s'
15107     # ... but there are two gotchas:
15108     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15109     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15110     # In both cases, we have to default to `cp -pR'.
15111     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15112       as_ln_s='cp -pR'
15113   elif ln conf$$.file conf$$ 2>/dev/null; then
15114     as_ln_s=ln
15115   else
15116     as_ln_s='cp -pR'
15117   fi
15118 else
15119   as_ln_s='cp -pR'
15120 fi
15121 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15122 rmdir conf$$.dir 2>/dev/null
15123
15124
15125 # as_fn_mkdir_p
15126 # -------------
15127 # Create "$as_dir" as a directory, including parents if necessary.
15128 as_fn_mkdir_p ()
15129 {
15130
15131   case $as_dir in #(
15132   -*) as_dir=./$as_dir;;
15133   esac
15134   test -d "$as_dir" || eval $as_mkdir_p || {
15135     as_dirs=
15136     while :; do
15137       case $as_dir in #(
15138       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15139       *) as_qdir=$as_dir;;
15140       esac
15141       as_dirs="'$as_qdir' $as_dirs"
15142       as_dir=`$as_dirname -- "$as_dir" ||
15143 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15144          X"$as_dir" : 'X\(//\)[^/]' \| \
15145          X"$as_dir" : 'X\(//\)$' \| \
15146          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15147 $as_echo X"$as_dir" |
15148     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15149             s//\1/
15150             q
15151           }
15152           /^X\(\/\/\)[^/].*/{
15153             s//\1/
15154             q
15155           }
15156           /^X\(\/\/\)$/{
15157             s//\1/
15158             q
15159           }
15160           /^X\(\/\).*/{
15161             s//\1/
15162             q
15163           }
15164           s/.*/./; q'`
15165       test -d "$as_dir" && break
15166     done
15167     test -z "$as_dirs" || eval "mkdir $as_dirs"
15168   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15169
15170
15171 } # as_fn_mkdir_p
15172 if mkdir -p . 2>/dev/null; then
15173   as_mkdir_p='mkdir -p "$as_dir"'
15174 else
15175   test -d ./-p && rmdir ./-p
15176   as_mkdir_p=false
15177 fi
15178
15179
15180 # as_fn_executable_p FILE
15181 # -----------------------
15182 # Test if FILE is an executable regular file.
15183 as_fn_executable_p ()
15184 {
15185   test -f "$1" && test -x "$1"
15186 } # as_fn_executable_p
15187 as_test_x='test -x'
15188 as_executable_p=as_fn_executable_p
15189
15190 # Sed expression to map a string onto a valid CPP name.
15191 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15192
15193 # Sed expression to map a string onto a valid variable name.
15194 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15195
15196
15197 exec 6>&1
15198 ## ----------------------------------- ##
15199 ## Main body of $CONFIG_STATUS script. ##
15200 ## ----------------------------------- ##
15201 _ASEOF
15202 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15203
15204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15205 # Save the log message, to keep $0 and so on meaningful, and to
15206 # report actual input values of CONFIG_FILES etc. instead of their
15207 # values after options handling.
15208 ac_log="
15209 This file was extended by mpc $as_me 1.0, which was
15210 generated by GNU Autoconf 2.69.  Invocation command line was
15211
15212   CONFIG_FILES    = $CONFIG_FILES
15213   CONFIG_HEADERS  = $CONFIG_HEADERS
15214   CONFIG_LINKS    = $CONFIG_LINKS
15215   CONFIG_COMMANDS = $CONFIG_COMMANDS
15216   $ $0 $@
15217
15218 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15219 "
15220
15221 _ACEOF
15222
15223 case $ac_config_files in *"
15224 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15225 esac
15226
15227 case $ac_config_headers in *"
15228 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15229 esac
15230
15231
15232 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15233 # Files that config.status was made for.
15234 config_files="$ac_config_files"
15235 config_headers="$ac_config_headers"
15236 config_commands="$ac_config_commands"
15237
15238 _ACEOF
15239
15240 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15241 ac_cs_usage="\
15242 \`$as_me' instantiates files and other configuration actions
15243 from templates according to the current configuration.  Unless the files
15244 and actions are specified as TAGs, all are instantiated by default.
15245
15246 Usage: $0 [OPTION]... [TAG]...
15247
15248   -h, --help       print this help, then exit
15249   -V, --version    print version number and configuration settings, then exit
15250       --config     print configuration, then exit
15251   -q, --quiet, --silent
15252                    do not print progress messages
15253   -d, --debug      don't remove temporary files
15254       --recheck    update $as_me by reconfiguring in the same conditions
15255       --file=FILE[:TEMPLATE]
15256                    instantiate the configuration file FILE
15257       --header=FILE[:TEMPLATE]
15258                    instantiate the configuration header FILE
15259
15260 Configuration files:
15261 $config_files
15262
15263 Configuration headers:
15264 $config_headers
15265
15266 Configuration commands:
15267 $config_commands
15268
15269 Report bugs to <mpc-discuss@lists.gforge.inria.fr>."
15270
15271 _ACEOF
15272 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15273 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15274 ac_cs_version="\\
15275 mpc config.status 1.0
15276 configured by $0, generated by GNU Autoconf 2.69,
15277   with options \\"\$ac_cs_config\\"
15278
15279 Copyright (C) 2012 Free Software Foundation, Inc.
15280 This config.status script is free software; the Free Software Foundation
15281 gives unlimited permission to copy, distribute and modify it."
15282
15283 ac_pwd='$ac_pwd'
15284 srcdir='$srcdir'
15285 INSTALL='$INSTALL'
15286 MKDIR_P='$MKDIR_P'
15287 AWK='$AWK'
15288 test -n "\$AWK" || AWK=awk
15289 _ACEOF
15290
15291 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15292 # The default lists apply if the user does not specify any file.
15293 ac_need_defaults=:
15294 while test $# != 0
15295 do
15296   case $1 in
15297   --*=?*)
15298     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15299     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15300     ac_shift=:
15301     ;;
15302   --*=)
15303     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15304     ac_optarg=
15305     ac_shift=:
15306     ;;
15307   *)
15308     ac_option=$1
15309     ac_optarg=$2
15310     ac_shift=shift
15311     ;;
15312   esac
15313
15314   case $ac_option in
15315   # Handling of the options.
15316   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15317     ac_cs_recheck=: ;;
15318   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15319     $as_echo "$ac_cs_version"; exit ;;
15320   --config | --confi | --conf | --con | --co | --c )
15321     $as_echo "$ac_cs_config"; exit ;;
15322   --debug | --debu | --deb | --de | --d | -d )
15323     debug=: ;;
15324   --file | --fil | --fi | --f )
15325     $ac_shift
15326     case $ac_optarg in
15327     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15328     '') as_fn_error $? "missing file argument" ;;
15329     esac
15330     as_fn_append CONFIG_FILES " '$ac_optarg'"
15331     ac_need_defaults=false;;
15332   --header | --heade | --head | --hea )
15333     $ac_shift
15334     case $ac_optarg in
15335     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15336     esac
15337     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15338     ac_need_defaults=false;;
15339   --he | --h)
15340     # Conflict between --help and --header
15341     as_fn_error $? "ambiguous option: \`$1'
15342 Try \`$0 --help' for more information.";;
15343   --help | --hel | -h )
15344     $as_echo "$ac_cs_usage"; exit ;;
15345   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15346   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15347     ac_cs_silent=: ;;
15348
15349   # This is an error.
15350   -*) as_fn_error $? "unrecognized option: \`$1'
15351 Try \`$0 --help' for more information." ;;
15352
15353   *) as_fn_append ac_config_targets " $1"
15354      ac_need_defaults=false ;;
15355
15356   esac
15357   shift
15358 done
15359
15360 ac_configure_extra_args=
15361
15362 if $ac_cs_silent; then
15363   exec 6>/dev/null
15364   ac_configure_extra_args="$ac_configure_extra_args --silent"
15365 fi
15366
15367 _ACEOF
15368 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15369 if \$ac_cs_recheck; then
15370   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15371   shift
15372   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15373   CONFIG_SHELL='$SHELL'
15374   export CONFIG_SHELL
15375   exec "\$@"
15376 fi
15377
15378 _ACEOF
15379 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15380 exec 5>>config.log
15381 {
15382   echo
15383   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15384 ## Running $as_me. ##
15385 _ASBOX
15386   $as_echo "$ac_log"
15387 } >&5
15388
15389 _ACEOF
15390 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15391 #
15392 # INIT-COMMANDS
15393 #
15394 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15395
15396
15397 # The HP-UX ksh and POSIX shell print the target directory to stdout
15398 # if CDPATH is set.
15399 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15400
15401 sed_quote_subst='$sed_quote_subst'
15402 double_quote_subst='$double_quote_subst'
15403 delay_variable_subst='$delay_variable_subst'
15404 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15405 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15406 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15407 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15408 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15409 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15410 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15411 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15412 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15413 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15414 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15415 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15416 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15417 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15418 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15419 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15420 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15421 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15422 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15423 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15424 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15425 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15426 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15427 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15428 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15429 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15430 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15431 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15432 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15433 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15434 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15435 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15436 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15437 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15438 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15439 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15440 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15441 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15442 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15443 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15444 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15445 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15446 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15447 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15448 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15449 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15450 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15451 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15452 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15453 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15454 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15455 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15456 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15457 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15458 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15459 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"`'
15460 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15461 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15462 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15463 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15464 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15465 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15466 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15467 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15468 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15469 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15470 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15471 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15472 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15473 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15474 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15475 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15476 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15477 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15478 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15479 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15480 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15481 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15482 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15483 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15484 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15485 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15486 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15487 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15488 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15489 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15490 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15491 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15492 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15493 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15494 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15495 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15496 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15497 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15498 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15499 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15500 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15501 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15502 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15503 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15504 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15505 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15506 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15507 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15508 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15509 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15510 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15511 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15512 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15513 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15514 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15515 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15516 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15517 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15518 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15519 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15520 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15521 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15522 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15523 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15524 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15525 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15526 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15527 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15528 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15529 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15530 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15531 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15532 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15533 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15534 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
15535
15536 LTCC='$LTCC'
15537 LTCFLAGS='$LTCFLAGS'
15538 compiler='$compiler_DEFAULT'
15539
15540 # A function that is used when there is no print builtin or printf.
15541 func_fallback_echo ()
15542 {
15543   eval 'cat <<_LTECHO_EOF
15544 \$1
15545 _LTECHO_EOF'
15546 }
15547
15548 # Quote evaled strings.
15549 for var in SHELL \
15550 ECHO \
15551 SED \
15552 GREP \
15553 EGREP \
15554 FGREP \
15555 LD \
15556 NM \
15557 LN_S \
15558 lt_SP2NL \
15559 lt_NL2SP \
15560 reload_flag \
15561 OBJDUMP \
15562 deplibs_check_method \
15563 file_magic_cmd \
15564 file_magic_glob \
15565 want_nocaseglob \
15566 DLLTOOL \
15567 sharedlib_from_linklib_cmd \
15568 AR \
15569 AR_FLAGS \
15570 archiver_list_spec \
15571 STRIP \
15572 RANLIB \
15573 CC \
15574 CFLAGS \
15575 compiler \
15576 lt_cv_sys_global_symbol_pipe \
15577 lt_cv_sys_global_symbol_to_cdecl \
15578 lt_cv_sys_global_symbol_to_c_name_address \
15579 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15580 nm_file_list_spec \
15581 lt_prog_compiler_no_builtin_flag \
15582 lt_prog_compiler_pic \
15583 lt_prog_compiler_wl \
15584 lt_prog_compiler_static \
15585 lt_cv_prog_compiler_c_o \
15586 need_locks \
15587 MANIFEST_TOOL \
15588 DSYMUTIL \
15589 NMEDIT \
15590 LIPO \
15591 OTOOL \
15592 OTOOL64 \
15593 shrext_cmds \
15594 export_dynamic_flag_spec \
15595 whole_archive_flag_spec \
15596 compiler_needs_object \
15597 with_gnu_ld \
15598 allow_undefined_flag \
15599 no_undefined_flag \
15600 hardcode_libdir_flag_spec \
15601 hardcode_libdir_flag_spec_ld \
15602 hardcode_libdir_separator \
15603 exclude_expsyms \
15604 include_expsyms \
15605 file_list_spec \
15606 variables_saved_for_relink \
15607 libname_spec \
15608 library_names_spec \
15609 soname_spec \
15610 install_override_mode \
15611 finish_eval \
15612 old_striplib \
15613 striplib \
15614 AS; do
15615     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15616     *[\\\\\\\`\\"\\\$]*)
15617       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15618       ;;
15619     *)
15620       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15621       ;;
15622     esac
15623 done
15624
15625 # Double-quote double-evaled strings.
15626 for var in reload_cmds \
15627 old_postinstall_cmds \
15628 old_postuninstall_cmds \
15629 old_archive_cmds \
15630 extract_expsyms_cmds \
15631 old_archive_from_new_cmds \
15632 old_archive_from_expsyms_cmds \
15633 archive_cmds \
15634 archive_expsym_cmds \
15635 module_cmds \
15636 module_expsym_cmds \
15637 export_symbols_cmds \
15638 prelink_cmds \
15639 postlink_cmds \
15640 postinstall_cmds \
15641 postuninstall_cmds \
15642 finish_cmds \
15643 sys_lib_search_path_spec \
15644 sys_lib_dlsearch_path_spec; do
15645     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15646     *[\\\\\\\`\\"\\\$]*)
15647       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15648       ;;
15649     *)
15650       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15651       ;;
15652     esac
15653 done
15654
15655 ac_aux_dir='$ac_aux_dir'
15656 xsi_shell='$xsi_shell'
15657 lt_shell_append='$lt_shell_append'
15658
15659 # See if we are running on zsh, and set the options which allow our
15660 # commands through without removal of \ escapes INIT.
15661 if test -n "\${ZSH_VERSION+set}" ; then
15662    setopt NO_GLOB_SUBST
15663 fi
15664
15665
15666     PACKAGE='$PACKAGE'
15667     VERSION='$VERSION'
15668     TIMESTAMP='$TIMESTAMP'
15669     RM='$RM'
15670     ofile='$ofile'
15671
15672
15673
15674
15675 _ACEOF
15676
15677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15678
15679 # Handling of arguments.
15680 for ac_config_target in $ac_config_targets
15681 do
15682   case $ac_config_target in
15683     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15684     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15685     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15686     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15687     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15688     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
15689     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15690
15691   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15692   esac
15693 done
15694
15695
15696 # If the user did not use the arguments to specify the items to instantiate,
15697 # then the envvar interface is used.  Set only those that are not.
15698 # We use the long form for the default assignment because of an extremely
15699 # bizarre bug on SunOS 4.1.3.
15700 if $ac_need_defaults; then
15701   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15702   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15703   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15704 fi
15705
15706 # Have a temporary directory for convenience.  Make it in the build tree
15707 # simply because there is no reason against having it here, and in addition,
15708 # creating and moving files from /tmp can sometimes cause problems.
15709 # Hook for its removal unless debugging.
15710 # Note that there is a small window in which the directory will not be cleaned:
15711 # after its creation but before its name has been assigned to `$tmp'.
15712 $debug ||
15713 {
15714   tmp= ac_tmp=
15715   trap 'exit_status=$?
15716   : "${ac_tmp:=$tmp}"
15717   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15718 ' 0
15719   trap 'as_fn_exit 1' 1 2 13 15
15720 }
15721 # Create a (secure) tmp directory for tmp files.
15722
15723 {
15724   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15725   test -d "$tmp"
15726 }  ||
15727 {
15728   tmp=./conf$$-$RANDOM
15729   (umask 077 && mkdir "$tmp")
15730 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15731 ac_tmp=$tmp
15732
15733 # Set up the scripts for CONFIG_FILES section.
15734 # No need to generate them if there are no CONFIG_FILES.
15735 # This happens for instance with `./config.status config.h'.
15736 if test -n "$CONFIG_FILES"; then
15737
15738
15739 ac_cr=`echo X | tr X '\015'`
15740 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15741 # But we know of no other shell where ac_cr would be empty at this
15742 # point, so we can use a bashism as a fallback.
15743 if test "x$ac_cr" = x; then
15744   eval ac_cr=\$\'\\r\'
15745 fi
15746 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15747 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15748   ac_cs_awk_cr='\\r'
15749 else
15750   ac_cs_awk_cr=$ac_cr
15751 fi
15752
15753 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15754 _ACEOF
15755
15756
15757 {
15758   echo "cat >conf$$subs.awk <<_ACEOF" &&
15759   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15760   echo "_ACEOF"
15761 } >conf$$subs.sh ||
15762   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15763 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15764 ac_delim='%!_!# '
15765 for ac_last_try in false false false false false :; do
15766   . ./conf$$subs.sh ||
15767     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15768
15769   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15770   if test $ac_delim_n = $ac_delim_num; then
15771     break
15772   elif $ac_last_try; then
15773     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15774   else
15775     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15776   fi
15777 done
15778 rm -f conf$$subs.sh
15779
15780 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15781 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15782 _ACEOF
15783 sed -n '
15784 h
15785 s/^/S["/; s/!.*/"]=/
15786 p
15787 g
15788 s/^[^!]*!//
15789 :repl
15790 t repl
15791 s/'"$ac_delim"'$//
15792 t delim
15793 :nl
15794 h
15795 s/\(.\{148\}\)..*/\1/
15796 t more1
15797 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15798 p
15799 n
15800 b repl
15801 :more1
15802 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15803 p
15804 g
15805 s/.\{148\}//
15806 t nl
15807 :delim
15808 h
15809 s/\(.\{148\}\)..*/\1/
15810 t more2
15811 s/["\\]/\\&/g; s/^/"/; s/$/"/
15812 p
15813 b
15814 :more2
15815 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15816 p
15817 g
15818 s/.\{148\}//
15819 t delim
15820 ' <conf$$subs.awk | sed '
15821 /^[^""]/{
15822   N
15823   s/\n//
15824 }
15825 ' >>$CONFIG_STATUS || ac_write_fail=1
15826 rm -f conf$$subs.awk
15827 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15828 _ACAWK
15829 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15830   for (key in S) S_is_set[key] = 1
15831   FS = "\a"
15832
15833 }
15834 {
15835   line = $ 0
15836   nfields = split(line, field, "@")
15837   substed = 0
15838   len = length(field[1])
15839   for (i = 2; i < nfields; i++) {
15840     key = field[i]
15841     keylen = length(key)
15842     if (S_is_set[key]) {
15843       value = S[key]
15844       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15845       len += length(value) + length(field[++i])
15846       substed = 1
15847     } else
15848       len += 1 + keylen
15849   }
15850
15851   print line
15852 }
15853
15854 _ACAWK
15855 _ACEOF
15856 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15857 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15858   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15859 else
15860   cat
15861 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15862   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15863 _ACEOF
15864
15865 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15866 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15867 # trailing colons and then remove the whole line if VPATH becomes empty
15868 # (actually we leave an empty line to preserve line numbers).
15869 if test "x$srcdir" = x.; then
15870   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
15871 h
15872 s///
15873 s/^/:/
15874 s/[      ]*$/:/
15875 s/:\$(srcdir):/:/g
15876 s/:\${srcdir}:/:/g
15877 s/:@srcdir@:/:/g
15878 s/^:*//
15879 s/:*$//
15880 x
15881 s/\(=[   ]*\).*/\1/
15882 G
15883 s/\n//
15884 s/^[^=]*=[       ]*$//
15885 }'
15886 fi
15887
15888 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15889 fi # test -n "$CONFIG_FILES"
15890
15891 # Set up the scripts for CONFIG_HEADERS section.
15892 # No need to generate them if there are no CONFIG_HEADERS.
15893 # This happens for instance with `./config.status Makefile'.
15894 if test -n "$CONFIG_HEADERS"; then
15895 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15896 BEGIN {
15897 _ACEOF
15898
15899 # Transform confdefs.h into an awk script `defines.awk', embedded as
15900 # here-document in config.status, that substitutes the proper values into
15901 # config.h.in to produce config.h.
15902
15903 # Create a delimiter string that does not exist in confdefs.h, to ease
15904 # handling of long lines.
15905 ac_delim='%!_!# '
15906 for ac_last_try in false false :; do
15907   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15908   if test -z "$ac_tt"; then
15909     break
15910   elif $ac_last_try; then
15911     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15912   else
15913     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15914   fi
15915 done
15916
15917 # For the awk script, D is an array of macro values keyed by name,
15918 # likewise P contains macro parameters if any.  Preserve backslash
15919 # newline sequences.
15920
15921 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15922 sed -n '
15923 s/.\{148\}/&'"$ac_delim"'/g
15924 t rset
15925 :rset
15926 s/^[     ]*#[    ]*define[       ][      ]*/ /
15927 t def
15928 d
15929 :def
15930 s/\\$//
15931 t bsnl
15932 s/["\\]/\\&/g
15933 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15934 D["\1"]=" \3"/p
15935 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
15936 d
15937 :bsnl
15938 s/["\\]/\\&/g
15939 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15940 D["\1"]=" \3\\\\\\n"\\/p
15941 t cont
15942 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15943 t cont
15944 d
15945 :cont
15946 n
15947 s/.\{148\}/&'"$ac_delim"'/g
15948 t clear
15949 :clear
15950 s/\\$//
15951 t bsnlc
15952 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15953 d
15954 :bsnlc
15955 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15956 b cont
15957 ' <confdefs.h | sed '
15958 s/'"$ac_delim"'/"\\\
15959 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15960
15961 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15962   for (key in D) D_is_set[key] = 1
15963   FS = "\a"
15964 }
15965 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15966   line = \$ 0
15967   split(line, arg, " ")
15968   if (arg[1] == "#") {
15969     defundef = arg[2]
15970     mac1 = arg[3]
15971   } else {
15972     defundef = substr(arg[1], 2)
15973     mac1 = arg[2]
15974   }
15975   split(mac1, mac2, "(") #)
15976   macro = mac2[1]
15977   prefix = substr(line, 1, index(line, defundef) - 1)
15978   if (D_is_set[macro]) {
15979     # Preserve the white space surrounding the "#".
15980     print prefix "define", macro P[macro] D[macro]
15981     next
15982   } else {
15983     # Replace #undef with comments.  This is necessary, for example,
15984     # in the case of _POSIX_SOURCE, which is predefined and required
15985     # on some systems where configure will not decide to define it.
15986     if (defundef == "undef") {
15987       print "/*", prefix defundef, macro, "*/"
15988       next
15989     }
15990   }
15991 }
15992 { print }
15993 _ACAWK
15994 _ACEOF
15995 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15996   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15997 fi # test -n "$CONFIG_HEADERS"
15998
15999
16000 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16001 shift
16002 for ac_tag
16003 do
16004   case $ac_tag in
16005   :[FHLC]) ac_mode=$ac_tag; continue;;
16006   esac
16007   case $ac_mode$ac_tag in
16008   :[FHL]*:*);;
16009   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16010   :[FH]-) ac_tag=-:-;;
16011   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16012   esac
16013   ac_save_IFS=$IFS
16014   IFS=:
16015   set x $ac_tag
16016   IFS=$ac_save_IFS
16017   shift
16018   ac_file=$1
16019   shift
16020
16021   case $ac_mode in
16022   :L) ac_source=$1;;
16023   :[FH])
16024     ac_file_inputs=
16025     for ac_f
16026     do
16027       case $ac_f in
16028       -) ac_f="$ac_tmp/stdin";;
16029       *) # Look for the file first in the build tree, then in the source tree
16030          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16031          # because $ac_f cannot contain `:'.
16032          test -f "$ac_f" ||
16033            case $ac_f in
16034            [\\/$]*) false;;
16035            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16036            esac ||
16037            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16038       esac
16039       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16040       as_fn_append ac_file_inputs " '$ac_f'"
16041     done
16042
16043     # Let's still pretend it is `configure' which instantiates (i.e., don't
16044     # use $as_me), people would be surprised to read:
16045     #    /* config.h.  Generated by config.status.  */
16046     configure_input='Generated from '`
16047           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16048         `' by configure.'
16049     if test x"$ac_file" != x-; then
16050       configure_input="$ac_file.  $configure_input"
16051       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16052 $as_echo "$as_me: creating $ac_file" >&6;}
16053     fi
16054     # Neutralize special characters interpreted by sed in replacement strings.
16055     case $configure_input in #(
16056     *\&* | *\|* | *\\* )
16057        ac_sed_conf_input=`$as_echo "$configure_input" |
16058        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16059     *) ac_sed_conf_input=$configure_input;;
16060     esac
16061
16062     case $ac_tag in
16063     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16064       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16065     esac
16066     ;;
16067   esac
16068
16069   ac_dir=`$as_dirname -- "$ac_file" ||
16070 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16071          X"$ac_file" : 'X\(//\)[^/]' \| \
16072          X"$ac_file" : 'X\(//\)$' \| \
16073          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16074 $as_echo X"$ac_file" |
16075     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16076             s//\1/
16077             q
16078           }
16079           /^X\(\/\/\)[^/].*/{
16080             s//\1/
16081             q
16082           }
16083           /^X\(\/\/\)$/{
16084             s//\1/
16085             q
16086           }
16087           /^X\(\/\).*/{
16088             s//\1/
16089             q
16090           }
16091           s/.*/./; q'`
16092   as_dir="$ac_dir"; as_fn_mkdir_p
16093   ac_builddir=.
16094
16095 case "$ac_dir" in
16096 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16097 *)
16098   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16099   # A ".." for each directory in $ac_dir_suffix.
16100   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16101   case $ac_top_builddir_sub in
16102   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16103   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16104   esac ;;
16105 esac
16106 ac_abs_top_builddir=$ac_pwd
16107 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16108 # for backward compatibility:
16109 ac_top_builddir=$ac_top_build_prefix
16110
16111 case $srcdir in
16112   .)  # We are building in place.
16113     ac_srcdir=.
16114     ac_top_srcdir=$ac_top_builddir_sub
16115     ac_abs_top_srcdir=$ac_pwd ;;
16116   [\\/]* | ?:[\\/]* )  # Absolute name.
16117     ac_srcdir=$srcdir$ac_dir_suffix;
16118     ac_top_srcdir=$srcdir
16119     ac_abs_top_srcdir=$srcdir ;;
16120   *) # Relative name.
16121     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16122     ac_top_srcdir=$ac_top_build_prefix$srcdir
16123     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16124 esac
16125 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16126
16127
16128   case $ac_mode in
16129   :F)
16130   #
16131   # CONFIG_FILE
16132   #
16133
16134   case $INSTALL in
16135   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16136   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16137   esac
16138   ac_MKDIR_P=$MKDIR_P
16139   case $MKDIR_P in
16140   [\\/$]* | ?:[\\/]* ) ;;
16141   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16142   esac
16143 _ACEOF
16144
16145 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16146 # If the template does not know about datarootdir, expand it.
16147 # FIXME: This hack should be removed a few years after 2.60.
16148 ac_datarootdir_hack=; ac_datarootdir_seen=
16149 ac_sed_dataroot='
16150 /datarootdir/ {
16151   p
16152   q
16153 }
16154 /@datadir@/p
16155 /@docdir@/p
16156 /@infodir@/p
16157 /@localedir@/p
16158 /@mandir@/p'
16159 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16160 *datarootdir*) ac_datarootdir_seen=yes;;
16161 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16162   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16163 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16164 _ACEOF
16165 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16166   ac_datarootdir_hack='
16167   s&@datadir@&$datadir&g
16168   s&@docdir@&$docdir&g
16169   s&@infodir@&$infodir&g
16170   s&@localedir@&$localedir&g
16171   s&@mandir@&$mandir&g
16172   s&\\\${datarootdir}&$datarootdir&g' ;;
16173 esac
16174 _ACEOF
16175
16176 # Neutralize VPATH when `$srcdir' = `.'.
16177 # Shell code in configure.ac might set extrasub.
16178 # FIXME: do we really want to maintain this feature?
16179 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16180 ac_sed_extra="$ac_vpsub
16181 $extrasub
16182 _ACEOF
16183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16184 :t
16185 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16186 s|@configure_input@|$ac_sed_conf_input|;t t
16187 s&@top_builddir@&$ac_top_builddir_sub&;t t
16188 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16189 s&@srcdir@&$ac_srcdir&;t t
16190 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16191 s&@top_srcdir@&$ac_top_srcdir&;t t
16192 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16193 s&@builddir@&$ac_builddir&;t t
16194 s&@abs_builddir@&$ac_abs_builddir&;t t
16195 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16196 s&@INSTALL@&$ac_INSTALL&;t t
16197 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16198 $ac_datarootdir_hack
16199 "
16200 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16201   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16202
16203 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16204   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16205   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
16206       "$ac_tmp/out"`; test -z "$ac_out"; } &&
16207   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16208 which seems to be undefined.  Please make sure it is defined" >&5
16209 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16210 which seems to be undefined.  Please make sure it is defined" >&2;}
16211
16212   rm -f "$ac_tmp/stdin"
16213   case $ac_file in
16214   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16215   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16216   esac \
16217   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16218  ;;
16219   :H)
16220   #
16221   # CONFIG_HEADER
16222   #
16223   if test x"$ac_file" != x-; then
16224     {
16225       $as_echo "/* $configure_input  */" \
16226       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16227     } >"$ac_tmp/config.h" \
16228       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16229     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16230       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16231 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16232     else
16233       rm -f "$ac_file"
16234       mv "$ac_tmp/config.h" "$ac_file" \
16235         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16236     fi
16237   else
16238     $as_echo "/* $configure_input  */" \
16239       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16240       || as_fn_error $? "could not create -" "$LINENO" 5
16241   fi
16242 # Compute "$ac_file"'s index in $config_headers.
16243 _am_arg="$ac_file"
16244 _am_stamp_count=1
16245 for _am_header in $config_headers :; do
16246   case $_am_header in
16247     $_am_arg | $_am_arg:* )
16248       break ;;
16249     * )
16250       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16251   esac
16252 done
16253 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16254 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16255          X"$_am_arg" : 'X\(//\)[^/]' \| \
16256          X"$_am_arg" : 'X\(//\)$' \| \
16257          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16258 $as_echo X"$_am_arg" |
16259     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16260             s//\1/
16261             q
16262           }
16263           /^X\(\/\/\)[^/].*/{
16264             s//\1/
16265             q
16266           }
16267           /^X\(\/\/\)$/{
16268             s//\1/
16269             q
16270           }
16271           /^X\(\/\).*/{
16272             s//\1/
16273             q
16274           }
16275           s/.*/./; q'`/stamp-h$_am_stamp_count
16276  ;;
16277
16278   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16279 $as_echo "$as_me: executing $ac_file commands" >&6;}
16280  ;;
16281   esac
16282
16283
16284   case $ac_file$ac_mode in
16285     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16286   # Autoconf 2.62 quotes --file arguments for eval, but not when files
16287   # are listed without --file.  Let's play safe and only enable the eval
16288   # if we detect the quoting.
16289   case $CONFIG_FILES in
16290   *\'*) eval set x "$CONFIG_FILES" ;;
16291   *)   set x $CONFIG_FILES ;;
16292   esac
16293   shift
16294   for mf
16295   do
16296     # Strip MF so we end up with the name of the file.
16297     mf=`echo "$mf" | sed -e 's/:.*$//'`
16298     # Check whether this is an Automake generated Makefile or not.
16299     # We used to match only the files named `Makefile.in', but
16300     # some people rename them; so instead we look at the file content.
16301     # Grep'ing the first line is not enough: some people post-process
16302     # each Makefile.in and add a new line on top of each file to say so.
16303     # Grep'ing the whole file is not good either: AIX grep has a line
16304     # limit of 2048, but all sed's we know have understand at least 4000.
16305     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16306       dirpart=`$as_dirname -- "$mf" ||
16307 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16308          X"$mf" : 'X\(//\)[^/]' \| \
16309          X"$mf" : 'X\(//\)$' \| \
16310          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16311 $as_echo X"$mf" |
16312     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16313             s//\1/
16314             q
16315           }
16316           /^X\(\/\/\)[^/].*/{
16317             s//\1/
16318             q
16319           }
16320           /^X\(\/\/\)$/{
16321             s//\1/
16322             q
16323           }
16324           /^X\(\/\).*/{
16325             s//\1/
16326             q
16327           }
16328           s/.*/./; q'`
16329     else
16330       continue
16331     fi
16332     # Extract the definition of DEPDIR, am__include, and am__quote
16333     # from the Makefile without running `make'.
16334     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16335     test -z "$DEPDIR" && continue
16336     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16337     test -z "am__include" && continue
16338     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16339     # When using ansi2knr, U may be empty or an underscore; expand it
16340     U=`sed -n 's/^U = //p' < "$mf"`
16341     # Find all dependency output files, they are included files with
16342     # $(DEPDIR) in their names.  We invoke sed twice because it is the
16343     # simplest approach to changing $(DEPDIR) to its actual value in the
16344     # expansion.
16345     for file in `sed -n "
16346       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16347          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16348       # Make sure the directory exists.
16349       test -f "$dirpart/$file" && continue
16350       fdir=`$as_dirname -- "$file" ||
16351 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16352          X"$file" : 'X\(//\)[^/]' \| \
16353          X"$file" : 'X\(//\)$' \| \
16354          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16355 $as_echo X"$file" |
16356     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16357             s//\1/
16358             q
16359           }
16360           /^X\(\/\/\)[^/].*/{
16361             s//\1/
16362             q
16363           }
16364           /^X\(\/\/\)$/{
16365             s//\1/
16366             q
16367           }
16368           /^X\(\/\).*/{
16369             s//\1/
16370             q
16371           }
16372           s/.*/./; q'`
16373       as_dir=$dirpart/$fdir; as_fn_mkdir_p
16374       # echo "creating $dirpart/$file"
16375       echo '# dummy' > "$dirpart/$file"
16376     done
16377   done
16378 }
16379  ;;
16380     "libtool":C)
16381
16382     # See if we are running on zsh, and set the options which allow our
16383     # commands through without removal of \ escapes.
16384     if test -n "${ZSH_VERSION+set}" ; then
16385       setopt NO_GLOB_SUBST
16386     fi
16387
16388     cfgfile="${ofile}T"
16389     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16390     $RM "$cfgfile"
16391
16392     cat <<_LT_EOF >> "$cfgfile"
16393 #! $SHELL
16394
16395 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16396 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16397 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16398 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16399 #
16400 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16401 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
16402 #                 Inc.
16403 #   Written by Gordon Matzigkeit, 1996
16404 #
16405 #   This file is part of GNU Libtool.
16406 #
16407 # GNU Libtool is free software; you can redistribute it and/or
16408 # modify it under the terms of the GNU General Public License as
16409 # published by the Free Software Foundation; either version 2 of
16410 # the License, or (at your option) any later version.
16411 #
16412 # As a special exception to the GNU General Public License,
16413 # if you distribute this file as part of a program or library that
16414 # is built using GNU Libtool, you may include this file under the
16415 # same distribution terms that you use for the rest of that program.
16416 #
16417 # GNU Libtool is distributed in the hope that it will be useful,
16418 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16419 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16420 # GNU General Public License for more details.
16421 #
16422 # You should have received a copy of the GNU General Public License
16423 # along with GNU Libtool; see the file COPYING.  If not, a copy
16424 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16425 # obtained by writing to the Free Software Foundation, Inc.,
16426 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16427
16428
16429 # The names of the tagged configurations supported by this script.
16430 available_tags=""
16431
16432 # ### BEGIN LIBTOOL CONFIG
16433
16434 # Which release of libtool.m4 was used?
16435 macro_version=$macro_version
16436 macro_revision=$macro_revision
16437
16438 # Whether or not to build shared libraries.
16439 build_libtool_libs=$enable_shared
16440
16441 # Whether or not to build static libraries.
16442 build_old_libs=$enable_static
16443
16444 # What type of objects to build.
16445 pic_mode=$pic_mode
16446
16447 # Whether or not to optimize for fast installation.
16448 fast_install=$enable_fast_install
16449
16450 # Shell to use when invoking shell scripts.
16451 SHELL=$lt_SHELL
16452
16453 # An echo program that protects backslashes.
16454 ECHO=$lt_ECHO
16455
16456 # The host system.
16457 host_alias=$host_alias
16458 host=$host
16459 host_os=$host_os
16460
16461 # The build system.
16462 build_alias=$build_alias
16463 build=$build
16464 build_os=$build_os
16465
16466 # A sed program that does not truncate output.
16467 SED=$lt_SED
16468
16469 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16470 Xsed="\$SED -e 1s/^X//"
16471
16472 # A grep program that handles long lines.
16473 GREP=$lt_GREP
16474
16475 # An ERE matcher.
16476 EGREP=$lt_EGREP
16477
16478 # A literal string matcher.
16479 FGREP=$lt_FGREP
16480
16481 # A BSD- or MS-compatible name lister.
16482 NM=$lt_NM
16483
16484 # Whether we need soft or hard links.
16485 LN_S=$lt_LN_S
16486
16487 # What is the maximum length of a command?
16488 max_cmd_len=$max_cmd_len
16489
16490 # Object file suffix (normally "o").
16491 objext=$ac_objext
16492
16493 # Executable file suffix (normally "").
16494 exeext=$exeext
16495
16496 # whether the shell understands "unset".
16497 lt_unset=$lt_unset
16498
16499 # turn spaces into newlines.
16500 SP2NL=$lt_lt_SP2NL
16501
16502 # turn newlines into spaces.
16503 NL2SP=$lt_lt_NL2SP
16504
16505 # convert \$build file names to \$host format.
16506 to_host_file_cmd=$lt_cv_to_host_file_cmd
16507
16508 # convert \$build files to toolchain format.
16509 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16510
16511 # An object symbol dumper.
16512 OBJDUMP=$lt_OBJDUMP
16513
16514 # Method to check whether dependent libraries are shared objects.
16515 deplibs_check_method=$lt_deplibs_check_method
16516
16517 # Command to use when deplibs_check_method = "file_magic".
16518 file_magic_cmd=$lt_file_magic_cmd
16519
16520 # How to find potential files when deplibs_check_method = "file_magic".
16521 file_magic_glob=$lt_file_magic_glob
16522
16523 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16524 want_nocaseglob=$lt_want_nocaseglob
16525
16526 # DLL creation program.
16527 DLLTOOL=$lt_DLLTOOL
16528
16529 # Command to associate shared and link libraries.
16530 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16531
16532 # The archiver.
16533 AR=$lt_AR
16534
16535 # Flags to create an archive.
16536 AR_FLAGS=$lt_AR_FLAGS
16537
16538 # How to feed a file listing to the archiver.
16539 archiver_list_spec=$lt_archiver_list_spec
16540
16541 # A symbol stripping program.
16542 STRIP=$lt_STRIP
16543
16544 # Commands used to install an old-style archive.
16545 RANLIB=$lt_RANLIB
16546 old_postinstall_cmds=$lt_old_postinstall_cmds
16547 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16548
16549 # Whether to use a lock for old archive extraction.
16550 lock_old_archive_extraction=$lock_old_archive_extraction
16551
16552 # A C compiler.
16553 LTCC=$lt_CC
16554
16555 # LTCC compiler flags.
16556 LTCFLAGS=$lt_CFLAGS
16557
16558 # Take the output of nm and produce a listing of raw symbols and C names.
16559 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16560
16561 # Transform the output of nm in a proper C declaration.
16562 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16563
16564 # Transform the output of nm in a C name address pair.
16565 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16566
16567 # Transform the output of nm in a C name address pair when lib prefix is needed.
16568 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16569
16570 # Specify filename containing input files for \$NM.
16571 nm_file_list_spec=$lt_nm_file_list_spec
16572
16573 # The root where to search for dependent libraries,and in which our libraries should be installed.
16574 lt_sysroot=$lt_sysroot
16575
16576 # The name of the directory that contains temporary libtool files.
16577 objdir=$objdir
16578
16579 # Used to examine libraries when file_magic_cmd begins with "file".
16580 MAGIC_CMD=$MAGIC_CMD
16581
16582 # Must we lock files when doing compilation?
16583 need_locks=$lt_need_locks
16584
16585 # Manifest tool.
16586 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16587
16588 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16589 DSYMUTIL=$lt_DSYMUTIL
16590
16591 # Tool to change global to local symbols on Mac OS X.
16592 NMEDIT=$lt_NMEDIT
16593
16594 # Tool to manipulate fat objects and archives on Mac OS X.
16595 LIPO=$lt_LIPO
16596
16597 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16598 OTOOL=$lt_OTOOL
16599
16600 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16601 OTOOL64=$lt_OTOOL64
16602
16603 # Old archive suffix (normally "a").
16604 libext=$libext
16605
16606 # Shared library suffix (normally ".so").
16607 shrext_cmds=$lt_shrext_cmds
16608
16609 # The commands to extract the exported symbol list from a shared archive.
16610 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16611
16612 # Variables whose values should be saved in libtool wrapper scripts and
16613 # restored at link time.
16614 variables_saved_for_relink=$lt_variables_saved_for_relink
16615
16616 # Do we need the "lib" prefix for modules?
16617 need_lib_prefix=$need_lib_prefix
16618
16619 # Do we need a version for libraries?
16620 need_version=$need_version
16621
16622 # Library versioning type.
16623 version_type=$version_type
16624
16625 # Shared library runtime path variable.
16626 runpath_var=$runpath_var
16627
16628 # Shared library path variable.
16629 shlibpath_var=$shlibpath_var
16630
16631 # Is shlibpath searched before the hard-coded library search path?
16632 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16633
16634 # Format of library name prefix.
16635 libname_spec=$lt_libname_spec
16636
16637 # List of archive names.  First name is the real one, the rest are links.
16638 # The last name is the one that the linker finds with -lNAME
16639 library_names_spec=$lt_library_names_spec
16640
16641 # The coded name of the library, if different from the real name.
16642 soname_spec=$lt_soname_spec
16643
16644 # Permission mode override for installation of shared libraries.
16645 install_override_mode=$lt_install_override_mode
16646
16647 # Command to use after installation of a shared archive.
16648 postinstall_cmds=$lt_postinstall_cmds
16649
16650 # Command to use after uninstallation of a shared archive.
16651 postuninstall_cmds=$lt_postuninstall_cmds
16652
16653 # Commands used to finish a libtool library installation in a directory.
16654 finish_cmds=$lt_finish_cmds
16655
16656 # As "finish_cmds", except a single script fragment to be evaled but
16657 # not shown.
16658 finish_eval=$lt_finish_eval
16659
16660 # Whether we should hardcode library paths into libraries.
16661 hardcode_into_libs=$hardcode_into_libs
16662
16663 # Compile-time system search path for libraries.
16664 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16665
16666 # Run-time system search path for libraries.
16667 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16668
16669 # Whether dlopen is supported.
16670 dlopen_support=$enable_dlopen
16671
16672 # Whether dlopen of programs is supported.
16673 dlopen_self=$enable_dlopen_self
16674
16675 # Whether dlopen of statically linked programs is supported.
16676 dlopen_self_static=$enable_dlopen_self_static
16677
16678 # Commands to strip libraries.
16679 old_striplib=$lt_old_striplib
16680 striplib=$lt_striplib
16681
16682 # Assembler program.
16683 AS=$lt_AS
16684
16685
16686 # The linker used to build libraries.
16687 LD=$lt_LD
16688
16689 # How to create reloadable object files.
16690 reload_flag=$lt_reload_flag
16691 reload_cmds=$lt_reload_cmds
16692
16693 # Commands used to build an old-style archive.
16694 old_archive_cmds=$lt_old_archive_cmds
16695
16696 # A language specific compiler.
16697 CC=$lt_compiler
16698
16699 # Is the compiler the GNU compiler?
16700 with_gcc=$GCC
16701
16702 # Compiler flag to turn off builtin functions.
16703 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16704
16705 # Additional compiler flags for building library objects.
16706 pic_flag=$lt_lt_prog_compiler_pic
16707
16708 # How to pass a linker flag through the compiler.
16709 wl=$lt_lt_prog_compiler_wl
16710
16711 # Compiler flag to prevent dynamic linking.
16712 link_static_flag=$lt_lt_prog_compiler_static
16713
16714 # Does compiler simultaneously support -c and -o options?
16715 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16716
16717 # Whether or not to add -lc for building shared libraries.
16718 build_libtool_need_lc=$archive_cmds_need_lc
16719
16720 # Whether or not to disallow shared libs when runtime libs are static.
16721 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16722
16723 # Compiler flag to allow reflexive dlopens.
16724 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16725
16726 # Compiler flag to generate shared objects directly from archives.
16727 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16728
16729 # Whether the compiler copes with passing no objects directly.
16730 compiler_needs_object=$lt_compiler_needs_object
16731
16732 # Create an old-style archive from a shared archive.
16733 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16734
16735 # Create a temporary old-style archive to link instead of a shared archive.
16736 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16737
16738 # Commands used to build a shared archive.
16739 archive_cmds=$lt_archive_cmds
16740 archive_expsym_cmds=$lt_archive_expsym_cmds
16741
16742 # Commands used to build a loadable module if different from building
16743 # a shared archive.
16744 module_cmds=$lt_module_cmds
16745 module_expsym_cmds=$lt_module_expsym_cmds
16746
16747 # Whether we are building with GNU ld or not.
16748 with_gnu_ld=$lt_with_gnu_ld
16749
16750 # Flag that allows shared libraries with undefined symbols to be built.
16751 allow_undefined_flag=$lt_allow_undefined_flag
16752
16753 # Flag that enforces no undefined symbols.
16754 no_undefined_flag=$lt_no_undefined_flag
16755
16756 # Flag to hardcode \$libdir into a binary during linking.
16757 # This must work even if \$libdir does not exist
16758 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16759
16760 # If ld is used when linking, flag to hardcode \$libdir into a binary
16761 # during linking.  This must work even if \$libdir does not exist.
16762 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16763
16764 # Whether we need a single "-rpath" flag with a separated argument.
16765 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16766
16767 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16768 # DIR into the resulting binary.
16769 hardcode_direct=$hardcode_direct
16770
16771 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16772 # DIR into the resulting binary and the resulting library dependency is
16773 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16774 # library is relocated.
16775 hardcode_direct_absolute=$hardcode_direct_absolute
16776
16777 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16778 # into the resulting binary.
16779 hardcode_minus_L=$hardcode_minus_L
16780
16781 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16782 # into the resulting binary.
16783 hardcode_shlibpath_var=$hardcode_shlibpath_var
16784
16785 # Set to "yes" if building a shared library automatically hardcodes DIR
16786 # into the library and all subsequent libraries and executables linked
16787 # against it.
16788 hardcode_automatic=$hardcode_automatic
16789
16790 # Set to yes if linker adds runtime paths of dependent libraries
16791 # to runtime path list.
16792 inherit_rpath=$inherit_rpath
16793
16794 # Whether libtool must link a program against all its dependency libraries.
16795 link_all_deplibs=$link_all_deplibs
16796
16797 # Set to "yes" if exported symbols are required.
16798 always_export_symbols=$always_export_symbols
16799
16800 # The commands to list exported symbols.
16801 export_symbols_cmds=$lt_export_symbols_cmds
16802
16803 # Symbols that should not be listed in the preloaded symbols.
16804 exclude_expsyms=$lt_exclude_expsyms
16805
16806 # Symbols that must always be exported.
16807 include_expsyms=$lt_include_expsyms
16808
16809 # Commands necessary for linking programs (against libraries) with templates.
16810 prelink_cmds=$lt_prelink_cmds
16811
16812 # Commands necessary for finishing linking programs.
16813 postlink_cmds=$lt_postlink_cmds
16814
16815 # Specify filename containing input files.
16816 file_list_spec=$lt_file_list_spec
16817
16818 # How to hardcode a shared library path into an executable.
16819 hardcode_action=$hardcode_action
16820
16821 # ### END LIBTOOL CONFIG
16822
16823 _LT_EOF
16824
16825   case $host_os in
16826   aix3*)
16827     cat <<\_LT_EOF >> "$cfgfile"
16828 # AIX sometimes has problems with the GCC collect2 program.  For some
16829 # reason, if we set the COLLECT_NAMES environment variable, the problems
16830 # vanish in a puff of smoke.
16831 if test "X${COLLECT_NAMES+set}" != Xset; then
16832   COLLECT_NAMES=
16833   export COLLECT_NAMES
16834 fi
16835 _LT_EOF
16836     ;;
16837   esac
16838
16839
16840 ltmain="$ac_aux_dir/ltmain.sh"
16841
16842
16843   # We use sed instead of cat because bash on DJGPP gets confused if
16844   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16845   # text mode, it properly converts lines to CR/LF.  This bash problem
16846   # is reportedly fixed, but why not run on old versions too?
16847   sed '$q' "$ltmain" >> "$cfgfile" \
16848      || (rm -f "$cfgfile"; exit 1)
16849
16850   if test x"$xsi_shell" = xyes; then
16851   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16852 func_dirname ()\
16853 {\
16854 \    case ${1} in\
16855 \      */*) func_dirname_result="${1%/*}${2}" ;;\
16856 \      *  ) func_dirname_result="${3}" ;;\
16857 \    esac\
16858 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16859   && mv -f "$cfgfile.tmp" "$cfgfile" \
16860     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16861 test 0 -eq $? || _lt_function_replace_fail=:
16862
16863
16864   sed -e '/^func_basename ()$/,/^} # func_basename /c\
16865 func_basename ()\
16866 {\
16867 \    func_basename_result="${1##*/}"\
16868 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16869   && mv -f "$cfgfile.tmp" "$cfgfile" \
16870     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16871 test 0 -eq $? || _lt_function_replace_fail=:
16872
16873
16874   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16875 func_dirname_and_basename ()\
16876 {\
16877 \    case ${1} in\
16878 \      */*) func_dirname_result="${1%/*}${2}" ;;\
16879 \      *  ) func_dirname_result="${3}" ;;\
16880 \    esac\
16881 \    func_basename_result="${1##*/}"\
16882 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16883   && mv -f "$cfgfile.tmp" "$cfgfile" \
16884     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16885 test 0 -eq $? || _lt_function_replace_fail=:
16886
16887
16888   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16889 func_stripname ()\
16890 {\
16891 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16892 \    # positional parameters, so assign one to ordinary parameter first.\
16893 \    func_stripname_result=${3}\
16894 \    func_stripname_result=${func_stripname_result#"${1}"}\
16895 \    func_stripname_result=${func_stripname_result%"${2}"}\
16896 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16897   && mv -f "$cfgfile.tmp" "$cfgfile" \
16898     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16899 test 0 -eq $? || _lt_function_replace_fail=:
16900
16901
16902   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16903 func_split_long_opt ()\
16904 {\
16905 \    func_split_long_opt_name=${1%%=*}\
16906 \    func_split_long_opt_arg=${1#*=}\
16907 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16908   && mv -f "$cfgfile.tmp" "$cfgfile" \
16909     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16910 test 0 -eq $? || _lt_function_replace_fail=:
16911
16912
16913   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16914 func_split_short_opt ()\
16915 {\
16916 \    func_split_short_opt_arg=${1#??}\
16917 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16918 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16919   && mv -f "$cfgfile.tmp" "$cfgfile" \
16920     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16921 test 0 -eq $? || _lt_function_replace_fail=:
16922
16923
16924   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
16925 func_lo2o ()\
16926 {\
16927 \    case ${1} in\
16928 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16929 \      *)    func_lo2o_result=${1} ;;\
16930 \    esac\
16931 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16932   && mv -f "$cfgfile.tmp" "$cfgfile" \
16933     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16934 test 0 -eq $? || _lt_function_replace_fail=:
16935
16936
16937   sed -e '/^func_xform ()$/,/^} # func_xform /c\
16938 func_xform ()\
16939 {\
16940     func_xform_result=${1%.*}.lo\
16941 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16942   && mv -f "$cfgfile.tmp" "$cfgfile" \
16943     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16944 test 0 -eq $? || _lt_function_replace_fail=:
16945
16946
16947   sed -e '/^func_arith ()$/,/^} # func_arith /c\
16948 func_arith ()\
16949 {\
16950     func_arith_result=$(( $* ))\
16951 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16952   && mv -f "$cfgfile.tmp" "$cfgfile" \
16953     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16954 test 0 -eq $? || _lt_function_replace_fail=:
16955
16956
16957   sed -e '/^func_len ()$/,/^} # func_len /c\
16958 func_len ()\
16959 {\
16960     func_len_result=${#1}\
16961 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16962   && mv -f "$cfgfile.tmp" "$cfgfile" \
16963     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16964 test 0 -eq $? || _lt_function_replace_fail=:
16965
16966 fi
16967
16968 if test x"$lt_shell_append" = xyes; then
16969   sed -e '/^func_append ()$/,/^} # func_append /c\
16970 func_append ()\
16971 {\
16972     eval "${1}+=\\${2}"\
16973 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16974   && mv -f "$cfgfile.tmp" "$cfgfile" \
16975     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16976 test 0 -eq $? || _lt_function_replace_fail=:
16977
16978
16979   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16980 func_append_quoted ()\
16981 {\
16982 \    func_quote_for_eval "${2}"\
16983 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16984 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16985   && mv -f "$cfgfile.tmp" "$cfgfile" \
16986     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16987 test 0 -eq $? || _lt_function_replace_fail=:
16988
16989
16990   # Save a `func_append' function call where possible by direct use of '+='
16991   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
16992     && mv -f "$cfgfile.tmp" "$cfgfile" \
16993       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16994   test 0 -eq $? || _lt_function_replace_fail=:
16995 else
16996   # Save a `func_append' function call even when '+=' is not available
16997   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
16998     && mv -f "$cfgfile.tmp" "$cfgfile" \
16999       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17000   test 0 -eq $? || _lt_function_replace_fail=:
17001 fi
17002
17003 if test x"$_lt_function_replace_fail" = x":"; then
17004   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17005 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17006 fi
17007
17008
17009    mv -f "$cfgfile" "$ofile" ||
17010     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17011   chmod +x "$ofile"
17012
17013  ;;
17014
17015   esac
17016 done # for ac_tag
17017
17018
17019 as_fn_exit 0
17020 _ACEOF
17021 ac_clean_files=$ac_clean_files_save
17022
17023 test $ac_write_fail = 0 ||
17024   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17025
17026
17027 # configure is writing to config.log, and then calls config.status.
17028 # config.status does its own redirection, appending to config.log.
17029 # Unfortunately, on DOS this fails, as config.log is still kept open
17030 # by configure, so config.status won't be able to write to it; its
17031 # output is simply discarded.  So we exec the FD to /dev/null,
17032 # effectively closing config.log, so it can be properly (re)opened and
17033 # appended to by config.status.  When coming back to configure, we
17034 # need to make the FD available again.
17035 if test "$no_create" != yes; then
17036   ac_cs_success=:
17037   ac_config_status_args=
17038   test "$silent" = yes &&
17039     ac_config_status_args="$ac_config_status_args --quiet"
17040   exec 5>/dev/null
17041   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17042   exec 5>>config.log
17043   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17044   # would make configure fail if this is the last instruction.
17045   $ac_cs_success || as_fn_exit 1
17046 fi
17047 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17048   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17049 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17050 fi
17051