1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for MPFR 3.1.2.
4#
5#
6# Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc.
7# Contributed by the AriC and Caramel projects, INRIA.
8#
9# This file is part of the GNU MPFR Library.
10#
11# The GNU MPFR Library is free software; you can redistribute it and/or modify
12# it under the terms of the GNU Lesser General Public License as published
13# by the Free Software Foundation; either version 3 of the License, or (at
14# your option) any later version.
15#
16# The GNU MPFR Library is distributed in the hope that it will be useful, but
17# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
18# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
19# License for more details.
20#
21# You should have received a copy of the GNU Lesser General Public License
22# along with the GNU MPFR Library; see the file COPYING.LESSER.  If not, see
23# http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc.,
24# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
25#
26#
27#
28# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
29#
30#
31# This configure script is free software; the Free Software Foundation
32# gives unlimited permission to copy, distribute and modify it.
33## -------------------- ##
34## M4sh Initialization. ##
35## -------------------- ##
36
37# Be more Bourne compatible
38DUALCASE=1; export DUALCASE # for MKS sh
39if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
40  emulate sh
41  NULLCMD=:
42  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
43  # is contrary to our usage.  Disable this feature.
44  alias -g '${1+"$@"}'='"$@"'
45  setopt NO_GLOB_SUBST
46else
47  case `(set -o) 2>/dev/null` in #(
48  *posix*) :
49    set -o posix ;; #(
50  *) :
51     ;;
52esac
53fi
54
55
56as_nl='
57'
58export as_nl
59# Printing a long string crashes Solaris 7 /usr/bin/printf.
60as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
61as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
62as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
63# Prefer a ksh shell builtin over an external printf program on Solaris,
64# but without wasting forks for bash or zsh.
65if test -z "$BASH_VERSION$ZSH_VERSION" \
66    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
67  as_echo='print -r --'
68  as_echo_n='print -rn --'
69elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
70  as_echo='printf %s\n'
71  as_echo_n='printf %s'
72else
73  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
74    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
75    as_echo_n='/usr/ucb/echo -n'
76  else
77    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
78    as_echo_n_body='eval
79      arg=$1;
80      case $arg in #(
81      *"$as_nl"*)
82	expr "X$arg" : "X\\(.*\\)$as_nl";
83	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
84      esac;
85      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
86    '
87    export as_echo_n_body
88    as_echo_n='sh -c $as_echo_n_body as_echo'
89  fi
90  export as_echo_body
91  as_echo='sh -c $as_echo_body as_echo'
92fi
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  PATH_SEPARATOR=:
97  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
98    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
99      PATH_SEPARATOR=';'
100  }
101fi
102
103
104# IFS
105# We need space, tab and new line, in precisely that order.  Quoting is
106# there to prevent editors from complaining about space-tab.
107# (If _AS_PATH_WALK were called with IFS unset, it would disable word
108# splitting by setting IFS to empty value.)
109IFS=" ""	$as_nl"
110
111# Find who we are.  Look in the path if we contain no directory separator.
112as_myself=
113case $0 in #((
114  *[\\/]* ) as_myself=$0 ;;
115  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
116for as_dir in $PATH
117do
118  IFS=$as_save_IFS
119  test -z "$as_dir" && as_dir=.
120    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121  done
122IFS=$as_save_IFS
123
124     ;;
125esac
126# We did not find ourselves, most probably we were run as `sh COMMAND'
127# in which case we are not to be found in the path.
128if test "x$as_myself" = x; then
129  as_myself=$0
130fi
131if test ! -f "$as_myself"; then
132  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
133  exit 1
134fi
135
136# Unset variables that we do not need and which cause bugs (e.g. in
137# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
138# suppresses any "Segmentation fault" message there.  '((' could
139# trigger a bug in pdksh 5.2.14.
140for as_var in BASH_ENV ENV MAIL MAILPATH
141do eval test x\${$as_var+set} = xset \
142  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
143done
144PS1='$ '
145PS2='> '
146PS4='+ '
147
148# NLS nuisances.
149LC_ALL=C
150export LC_ALL
151LANGUAGE=C
152export LANGUAGE
153
154# CDPATH.
155(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
156
157# Use a proper internal environment variable to ensure we don't fall
158  # into an infinite loop, continuously re-executing ourselves.
159  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
160    _as_can_reexec=no; export _as_can_reexec;
161    # We cannot yet assume a decent shell, so we have to provide a
162# neutralization value for shells without unset; and this also
163# works around shells that cannot unset nonexistent variables.
164# Preserve -v and -x to the replacement shell.
165BASH_ENV=/dev/null
166ENV=/dev/null
167(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
168case $- in # ((((
169  *v*x* | *x*v* ) as_opts=-vx ;;
170  *v* ) as_opts=-v ;;
171  *x* ) as_opts=-x ;;
172  * ) as_opts= ;;
173esac
174exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
175# Admittedly, this is quite paranoid, since all the known shells bail
176# out after a failed `exec'.
177$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
178as_fn_exit 255
179  fi
180  # We don't want this to propagate to other subprocesses.
181          { _as_can_reexec=; unset _as_can_reexec;}
182if test "x$CONFIG_SHELL" = x; then
183  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
184  emulate sh
185  NULLCMD=:
186  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
187  # is contrary to our usage.  Disable this feature.
188  alias -g '\${1+\"\$@\"}'='\"\$@\"'
189  setopt NO_GLOB_SUBST
190else
191  case \`(set -o) 2>/dev/null\` in #(
192  *posix*) :
193    set -o posix ;; #(
194  *) :
195     ;;
196esac
197fi
198"
199  as_required="as_fn_return () { (exit \$1); }
200as_fn_success () { as_fn_return 0; }
201as_fn_failure () { as_fn_return 1; }
202as_fn_ret_success () { return 0; }
203as_fn_ret_failure () { return 1; }
204
205exitcode=0
206as_fn_success || { exitcode=1; echo as_fn_success failed.; }
207as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
208as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
209as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
210if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
211
212else
213  exitcode=1; echo positional parameters were not saved.
214fi
215test x\$exitcode = x0 || exit 1
216test -x / || exit 1"
217  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
218  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
219  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
220  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
221test \$(( 1 + 1 )) = 2 || exit 1
222
223  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
224    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
225    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
226    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
227    PATH=/empty FPATH=/empty; export PATH FPATH
228    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
229      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
230  if (eval "$as_required") 2>/dev/null; then :
231  as_have_required=yes
232else
233  as_have_required=no
234fi
235  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
236
237else
238  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
239as_found=false
240for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
241do
242  IFS=$as_save_IFS
243  test -z "$as_dir" && as_dir=.
244  as_found=:
245  case $as_dir in #(
246	 /*)
247	   for as_base in sh bash ksh sh5; do
248	     # Try only shells that exist, to save several forks.
249	     as_shell=$as_dir/$as_base
250	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
251		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
252  CONFIG_SHELL=$as_shell as_have_required=yes
253		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
254  break 2
255fi
256fi
257	   done;;
258       esac
259  as_found=false
260done
261$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
262	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
263  CONFIG_SHELL=$SHELL as_have_required=yes
264fi; }
265IFS=$as_save_IFS
266
267
268      if test "x$CONFIG_SHELL" != x; then :
269  export CONFIG_SHELL
270             # We cannot yet assume a decent shell, so we have to provide a
271# neutralization value for shells without unset; and this also
272# works around shells that cannot unset nonexistent variables.
273# Preserve -v and -x to the replacement shell.
274BASH_ENV=/dev/null
275ENV=/dev/null
276(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
277case $- in # ((((
278  *v*x* | *x*v* ) as_opts=-vx ;;
279  *v* ) as_opts=-v ;;
280  *x* ) as_opts=-x ;;
281  * ) as_opts= ;;
282esac
283exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
284# Admittedly, this is quite paranoid, since all the known shells bail
285# out after a failed `exec'.
286$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
287exit 255
288fi
289
290    if test x$as_have_required = xno; then :
291  $as_echo "$0: This script requires a shell more modern than all"
292  $as_echo "$0: the shells that I found on your system."
293  if test x${ZSH_VERSION+set} = xset ; then
294    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
295    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
296  else
297    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
298$0: including any error possibly output before this
299$0: message. Then install a modern shell, or manually run
300$0: the script under such a shell if you do have one."
301  fi
302  exit 1
303fi
304fi
305fi
306SHELL=${CONFIG_SHELL-/bin/sh}
307export SHELL
308# Unset more variables known to interfere with behavior of common tools.
309CLICOLOR_FORCE= GREP_OPTIONS=
310unset CLICOLOR_FORCE GREP_OPTIONS
311
312## --------------------- ##
313## M4sh Shell Functions. ##
314## --------------------- ##
315# as_fn_unset VAR
316# ---------------
317# Portably unset VAR.
318as_fn_unset ()
319{
320  { eval $1=; unset $1;}
321}
322as_unset=as_fn_unset
323
324# as_fn_set_status STATUS
325# -----------------------
326# Set $? to STATUS, without forking.
327as_fn_set_status ()
328{
329  return $1
330} # as_fn_set_status
331
332# as_fn_exit STATUS
333# -----------------
334# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
335as_fn_exit ()
336{
337  set +e
338  as_fn_set_status $1
339  exit $1
340} # as_fn_exit
341
342# as_fn_mkdir_p
343# -------------
344# Create "$as_dir" as a directory, including parents if necessary.
345as_fn_mkdir_p ()
346{
347
348  case $as_dir in #(
349  -*) as_dir=./$as_dir;;
350  esac
351  test -d "$as_dir" || eval $as_mkdir_p || {
352    as_dirs=
353    while :; do
354      case $as_dir in #(
355      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
356      *) as_qdir=$as_dir;;
357      esac
358      as_dirs="'$as_qdir' $as_dirs"
359      as_dir=`$as_dirname -- "$as_dir" ||
360$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
361	 X"$as_dir" : 'X\(//\)[^/]' \| \
362	 X"$as_dir" : 'X\(//\)$' \| \
363	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
364$as_echo X"$as_dir" |
365    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
366	    s//\1/
367	    q
368	  }
369	  /^X\(\/\/\)[^/].*/{
370	    s//\1/
371	    q
372	  }
373	  /^X\(\/\/\)$/{
374	    s//\1/
375	    q
376	  }
377	  /^X\(\/\).*/{
378	    s//\1/
379	    q
380	  }
381	  s/.*/./; q'`
382      test -d "$as_dir" && break
383    done
384    test -z "$as_dirs" || eval "mkdir $as_dirs"
385  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
386
387
388} # as_fn_mkdir_p
389
390# as_fn_executable_p FILE
391# -----------------------
392# Test if FILE is an executable regular file.
393as_fn_executable_p ()
394{
395  test -f "$1" && test -x "$1"
396} # as_fn_executable_p
397# as_fn_append VAR VALUE
398# ----------------------
399# Append the text in VALUE to the end of the definition contained in VAR. Take
400# advantage of any shell optimizations that allow amortized linear growth over
401# repeated appends, instead of the typical quadratic growth present in naive
402# implementations.
403if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
404  eval 'as_fn_append ()
405  {
406    eval $1+=\$2
407  }'
408else
409  as_fn_append ()
410  {
411    eval $1=\$$1\$2
412  }
413fi # as_fn_append
414
415# as_fn_arith ARG...
416# ------------------
417# Perform arithmetic evaluation on the ARGs, and store the result in the
418# global $as_val. Take advantage of shells that can avoid forks. The arguments
419# must be portable across $(()) and expr.
420if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
421  eval 'as_fn_arith ()
422  {
423    as_val=$(( $* ))
424  }'
425else
426  as_fn_arith ()
427  {
428    as_val=`expr "$@" || test $? -eq 1`
429  }
430fi # as_fn_arith
431
432
433# as_fn_error STATUS ERROR [LINENO LOG_FD]
434# ----------------------------------------
435# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
436# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
437# script with STATUS, using 1 if that was 0.
438as_fn_error ()
439{
440  as_status=$1; test $as_status -eq 0 && as_status=1
441  if test "$4"; then
442    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
443    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
444  fi
445  $as_echo "$as_me: error: $2" >&2
446  as_fn_exit $as_status
447} # as_fn_error
448
449if expr a : '\(a\)' >/dev/null 2>&1 &&
450   test "X`expr 00001 : '.*\(...\)'`" = X001; then
451  as_expr=expr
452else
453  as_expr=false
454fi
455
456if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
457  as_basename=basename
458else
459  as_basename=false
460fi
461
462if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
463  as_dirname=dirname
464else
465  as_dirname=false
466fi
467
468as_me=`$as_basename -- "$0" ||
469$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
470	 X"$0" : 'X\(//\)$' \| \
471	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
472$as_echo X/"$0" |
473    sed '/^.*\/\([^/][^/]*\)\/*$/{
474	    s//\1/
475	    q
476	  }
477	  /^X\/\(\/\/\)$/{
478	    s//\1/
479	    q
480	  }
481	  /^X\/\(\/\).*/{
482	    s//\1/
483	    q
484	  }
485	  s/.*/./; q'`
486
487# Avoid depending upon Character Ranges.
488as_cr_letters='abcdefghijklmnopqrstuvwxyz'
489as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
490as_cr_Letters=$as_cr_letters$as_cr_LETTERS
491as_cr_digits='0123456789'
492as_cr_alnum=$as_cr_Letters$as_cr_digits
493
494
495  as_lineno_1=$LINENO as_lineno_1a=$LINENO
496  as_lineno_2=$LINENO as_lineno_2a=$LINENO
497  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
498  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
499  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
500  sed -n '
501    p
502    /[$]LINENO/=
503  ' <$as_myself |
504    sed '
505      s/[$]LINENO.*/&-/
506      t lineno
507      b
508      :lineno
509      N
510      :loop
511      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
512      t loop
513      s/-\n.*//
514    ' >$as_me.lineno &&
515  chmod +x "$as_me.lineno" ||
516    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
517
518  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
519  # already done that, so ensure we don't try to do so again and fall
520  # in an infinite loop.  This has already happened in practice.
521  _as_can_reexec=no; export _as_can_reexec
522  # Don't try to exec as it changes $[0], causing all sort of problems
523  # (the dirname of $[0] is not the place where we might find the
524  # original and so on.  Autoconf is especially sensitive to this).
525  . "./$as_me.lineno"
526  # Exit status is that of the last command.
527  exit
528}
529
530ECHO_C= ECHO_N= ECHO_T=
531case `echo -n x` in #(((((
532-n*)
533  case `echo 'xy\c'` in
534  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
535  xy)  ECHO_C='\c';;
536  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
537       ECHO_T='	';;
538  esac;;
539*)
540  ECHO_N='-n';;
541esac
542
543rm -f conf$$ conf$$.exe conf$$.file
544if test -d conf$$.dir; then
545  rm -f conf$$.dir/conf$$.file
546else
547  rm -f conf$$.dir
548  mkdir conf$$.dir 2>/dev/null
549fi
550if (echo >conf$$.file) 2>/dev/null; then
551  if ln -s conf$$.file conf$$ 2>/dev/null; then
552    as_ln_s='ln -s'
553    # ... but there are two gotchas:
554    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
555    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
556    # In both cases, we have to default to `cp -pR'.
557    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
558      as_ln_s='cp -pR'
559  elif ln conf$$.file conf$$ 2>/dev/null; then
560    as_ln_s=ln
561  else
562    as_ln_s='cp -pR'
563  fi
564else
565  as_ln_s='cp -pR'
566fi
567rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
568rmdir conf$$.dir 2>/dev/null
569
570if mkdir -p . 2>/dev/null; then
571  as_mkdir_p='mkdir -p "$as_dir"'
572else
573  test -d ./-p && rmdir ./-p
574  as_mkdir_p=false
575fi
576
577as_test_x='test -x'
578as_executable_p=as_fn_executable_p
579
580# Sed expression to map a string onto a valid CPP name.
581as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
582
583# Sed expression to map a string onto a valid variable name.
584as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
585
586SHELL=${CONFIG_SHELL-/bin/sh}
587
588
589test -n "$DJDIR" || exec 7<&0 </dev/null
590exec 6>&1
591
592# Name of the host.
593# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
594# so uname gets run too.
595ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
596
597#
598# Initializations.
599#
600ac_default_prefix=/usr/local
601ac_clean_files=
602ac_config_libobj_dir=.
603LIBOBJS=
604cross_compiling=no
605subdirs=
606MFLAGS=
607MAKEFLAGS=
608
609# Identity of this package.
610PACKAGE_NAME='MPFR'
611PACKAGE_TARNAME='mpfr'
612PACKAGE_VERSION='3.1.2'
613PACKAGE_STRING='MPFR 3.1.2'
614PACKAGE_BUGREPORT=''
615PACKAGE_URL=''
616
617# Factoring default headers for most tests.
618ac_includes_default="\
619#include <stdio.h>
620#ifdef HAVE_SYS_TYPES_H
621# include <sys/types.h>
622#endif
623#ifdef HAVE_SYS_STAT_H
624# include <sys/stat.h>
625#endif
626#ifdef STDC_HEADERS
627# include <stdlib.h>
628# include <stddef.h>
629#else
630# ifdef HAVE_STDLIB_H
631#  include <stdlib.h>
632# endif
633#endif
634#ifdef HAVE_STRING_H
635# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
636#  include <memory.h>
637# endif
638# include <string.h>
639#endif
640#ifdef HAVE_STRINGS_H
641# include <strings.h>
642#endif
643#ifdef HAVE_INTTYPES_H
644# include <inttypes.h>
645#endif
646#ifdef HAVE_STDINT_H
647# include <stdint.h>
648#endif
649#ifdef HAVE_UNISTD_H
650# include <unistd.h>
651#endif"
652
653ac_subst_vars='am__EXEEXT_FALSE
654am__EXEEXT_TRUE
655LTLIBOBJS
656LIBOBJS
657DATAFILES
658OTOOL64
659OTOOL
660LIPO
661NMEDIT
662DSYMUTIL
663MANIFEST_TOOL
664RANLIB
665ac_ct_AR
666AR
667LN_S
668NM
669ac_ct_DUMPBIN
670DUMPBIN
671LD
672FGREP
673LIBTOOL
674OBJDUMP
675DLLTOOL
676AS
677LIBMPFR_LDFLAGS
678MPFR_LDFLAGS
679TUNE_LIBS
680ALLOCA
681MPFR_LIBM
682CPP
683am__fastdepCC_FALSE
684am__fastdepCC_TRUE
685CCDEPMODE
686am__nodep
687AMDEPBACKSLASH
688AMDEP_FALSE
689AMDEP_TRUE
690am__quote
691am__include
692DEPDIR
693OBJEXT
694EXEEXT
695ac_ct_CC
696CPPFLAGS
697LDFLAGS
698CFLAGS
699CC
700SED
701EGREP
702GREP
703host_os
704host_vendor
705host_cpu
706host
707build_os
708build_vendor
709build_cpu
710build
711MAINT
712MAINTAINER_MODE_FALSE
713MAINTAINER_MODE_TRUE
714am__untar
715am__tar
716AMTAR
717am__leading_dot
718SET_MAKE
719AWK
720mkdir_p
721MKDIR_P
722INSTALL_STRIP_PROGRAM
723STRIP
724install_sh
725MAKEINFO
726AUTOHEADER
727AUTOMAKE
728AUTOCONF
729ACLOCAL
730VERSION
731PACKAGE
732CYGPATH_W
733am__isrc
734INSTALL_DATA
735INSTALL_SCRIPT
736INSTALL_PROGRAM
737target_alias
738host_alias
739build_alias
740LIBS
741ECHO_T
742ECHO_N
743ECHO_C
744DEFS
745mandir
746localedir
747libdir
748psdir
749pdfdir
750dvidir
751htmldir
752infodir
753docdir
754oldincludedir
755includedir
756localstatedir
757sharedstatedir
758sysconfdir
759datadir
760datarootdir
761libexecdir
762sbindir
763bindir
764program_transform_name
765prefix
766exec_prefix
767PACKAGE_URL
768PACKAGE_BUGREPORT
769PACKAGE_STRING
770PACKAGE_VERSION
771PACKAGE_TARNAME
772PACKAGE_NAME
773PATH_SEPARATOR
774SHELL'
775ac_subst_files=''
776ac_user_opts='
777enable_option_checking
778enable_maintainer_mode
779with_gmp_include
780with_gmp_lib
781with_gmp
782with_gmp_build
783with_mulhigh_size
784enable_gmp_internals
785enable_assert
786enable_logging
787enable_thread_safe
788enable_warnings
789enable_tests_timeout
790enable_dependency_tracking
791enable_decimal_float
792enable_shared
793enable_static
794with_pic
795enable_fast_install
796with_gnu_ld
797with_sysroot
798enable_libtool_lock
799'
800      ac_precious_vars='build_alias
801host_alias
802target_alias
803CC
804CFLAGS
805LDFLAGS
806LIBS
807CPPFLAGS
808CPP'
809
810
811# Initialize some variables set by options.
812ac_init_help=
813ac_init_version=false
814ac_unrecognized_opts=
815ac_unrecognized_sep=
816# The variables have the same names as the options, with
817# dashes changed to underlines.
818cache_file=/dev/null
819exec_prefix=NONE
820no_create=
821no_recursion=
822prefix=NONE
823program_prefix=NONE
824program_suffix=NONE
825program_transform_name=s,x,x,
826silent=
827site=
828srcdir=
829verbose=
830x_includes=NONE
831x_libraries=NONE
832
833# Installation directory options.
834# These are left unexpanded so users can "make install exec_prefix=/foo"
835# and all the variables that are supposed to be based on exec_prefix
836# by default will actually change.
837# Use braces instead of parens because sh, perl, etc. also accept them.
838# (The list follows the same order as the GNU Coding Standards.)
839bindir='${exec_prefix}/bin'
840sbindir='${exec_prefix}/sbin'
841libexecdir='${exec_prefix}/libexec'
842datarootdir='${prefix}/share'
843datadir='${datarootdir}'
844sysconfdir='${prefix}/etc'
845sharedstatedir='${prefix}/com'
846localstatedir='${prefix}/var'
847includedir='${prefix}/include'
848oldincludedir='/usr/include'
849docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
850infodir='${datarootdir}/info'
851htmldir='${docdir}'
852dvidir='${docdir}'
853pdfdir='${docdir}'
854psdir='${docdir}'
855libdir='${exec_prefix}/lib'
856localedir='${datarootdir}/locale'
857mandir='${datarootdir}/man'
858
859ac_prev=
860ac_dashdash=
861for ac_option
862do
863  # If the previous option needs an argument, assign it.
864  if test -n "$ac_prev"; then
865    eval $ac_prev=\$ac_option
866    ac_prev=
867    continue
868  fi
869
870  case $ac_option in
871  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
872  *=)   ac_optarg= ;;
873  *)    ac_optarg=yes ;;
874  esac
875
876  # Accept the important Cygnus configure options, so we can diagnose typos.
877
878  case $ac_dashdash$ac_option in
879  --)
880    ac_dashdash=yes ;;
881
882  -bindir | --bindir | --bindi | --bind | --bin | --bi)
883    ac_prev=bindir ;;
884  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
885    bindir=$ac_optarg ;;
886
887  -build | --build | --buil | --bui | --bu)
888    ac_prev=build_alias ;;
889  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
890    build_alias=$ac_optarg ;;
891
892  -cache-file | --cache-file | --cache-fil | --cache-fi \
893  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
894    ac_prev=cache_file ;;
895  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
896  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
897    cache_file=$ac_optarg ;;
898
899  --config-cache | -C)
900    cache_file=config.cache ;;
901
902  -datadir | --datadir | --datadi | --datad)
903    ac_prev=datadir ;;
904  -datadir=* | --datadir=* | --datadi=* | --datad=*)
905    datadir=$ac_optarg ;;
906
907  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
908  | --dataroo | --dataro | --datar)
909    ac_prev=datarootdir ;;
910  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
911  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
912    datarootdir=$ac_optarg ;;
913
914  -disable-* | --disable-*)
915    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
916    # Reject names that are not valid shell variable names.
917    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
918      as_fn_error $? "invalid feature name: $ac_useropt"
919    ac_useropt_orig=$ac_useropt
920    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
921    case $ac_user_opts in
922      *"
923"enable_$ac_useropt"
924"*) ;;
925      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
926	 ac_unrecognized_sep=', ';;
927    esac
928    eval enable_$ac_useropt=no ;;
929
930  -docdir | --docdir | --docdi | --doc | --do)
931    ac_prev=docdir ;;
932  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
933    docdir=$ac_optarg ;;
934
935  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
936    ac_prev=dvidir ;;
937  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
938    dvidir=$ac_optarg ;;
939
940  -enable-* | --enable-*)
941    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
942    # Reject names that are not valid shell variable names.
943    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
944      as_fn_error $? "invalid feature name: $ac_useropt"
945    ac_useropt_orig=$ac_useropt
946    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
947    case $ac_user_opts in
948      *"
949"enable_$ac_useropt"
950"*) ;;
951      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
952	 ac_unrecognized_sep=', ';;
953    esac
954    eval enable_$ac_useropt=\$ac_optarg ;;
955
956  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
957  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
958  | --exec | --exe | --ex)
959    ac_prev=exec_prefix ;;
960  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
961  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
962  | --exec=* | --exe=* | --ex=*)
963    exec_prefix=$ac_optarg ;;
964
965  -gas | --gas | --ga | --g)
966    # Obsolete; use --with-gas.
967    with_gas=yes ;;
968
969  -help | --help | --hel | --he | -h)
970    ac_init_help=long ;;
971  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
972    ac_init_help=recursive ;;
973  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
974    ac_init_help=short ;;
975
976  -host | --host | --hos | --ho)
977    ac_prev=host_alias ;;
978  -host=* | --host=* | --hos=* | --ho=*)
979    host_alias=$ac_optarg ;;
980
981  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
982    ac_prev=htmldir ;;
983  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
984  | --ht=*)
985    htmldir=$ac_optarg ;;
986
987  -includedir | --includedir | --includedi | --included | --include \
988  | --includ | --inclu | --incl | --inc)
989    ac_prev=includedir ;;
990  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
991  | --includ=* | --inclu=* | --incl=* | --inc=*)
992    includedir=$ac_optarg ;;
993
994  -infodir | --infodir | --infodi | --infod | --info | --inf)
995    ac_prev=infodir ;;
996  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
997    infodir=$ac_optarg ;;
998
999  -libdir | --libdir | --libdi | --libd)
1000    ac_prev=libdir ;;
1001  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1002    libdir=$ac_optarg ;;
1003
1004  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1005  | --libexe | --libex | --libe)
1006    ac_prev=libexecdir ;;
1007  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1008  | --libexe=* | --libex=* | --libe=*)
1009    libexecdir=$ac_optarg ;;
1010
1011  -localedir | --localedir | --localedi | --localed | --locale)
1012    ac_prev=localedir ;;
1013  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1014    localedir=$ac_optarg ;;
1015
1016  -localstatedir | --localstatedir | --localstatedi | --localstated \
1017  | --localstate | --localstat | --localsta | --localst | --locals)
1018    ac_prev=localstatedir ;;
1019  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1020  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1021    localstatedir=$ac_optarg ;;
1022
1023  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1024    ac_prev=mandir ;;
1025  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1026    mandir=$ac_optarg ;;
1027
1028  -nfp | --nfp | --nf)
1029    # Obsolete; use --without-fp.
1030    with_fp=no ;;
1031
1032  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1033  | --no-cr | --no-c | -n)
1034    no_create=yes ;;
1035
1036  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1037  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1038    no_recursion=yes ;;
1039
1040  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1041  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1042  | --oldin | --oldi | --old | --ol | --o)
1043    ac_prev=oldincludedir ;;
1044  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1045  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1046  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1047    oldincludedir=$ac_optarg ;;
1048
1049  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1050    ac_prev=prefix ;;
1051  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1052    prefix=$ac_optarg ;;
1053
1054  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1055  | --program-pre | --program-pr | --program-p)
1056    ac_prev=program_prefix ;;
1057  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1058  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1059    program_prefix=$ac_optarg ;;
1060
1061  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1062  | --program-suf | --program-su | --program-s)
1063    ac_prev=program_suffix ;;
1064  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1065  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1066    program_suffix=$ac_optarg ;;
1067
1068  -program-transform-name | --program-transform-name \
1069  | --program-transform-nam | --program-transform-na \
1070  | --program-transform-n | --program-transform- \
1071  | --program-transform | --program-transfor \
1072  | --program-transfo | --program-transf \
1073  | --program-trans | --program-tran \
1074  | --progr-tra | --program-tr | --program-t)
1075    ac_prev=program_transform_name ;;
1076  -program-transform-name=* | --program-transform-name=* \
1077  | --program-transform-nam=* | --program-transform-na=* \
1078  | --program-transform-n=* | --program-transform-=* \
1079  | --program-transform=* | --program-transfor=* \
1080  | --program-transfo=* | --program-transf=* \
1081  | --program-trans=* | --program-tran=* \
1082  | --progr-tra=* | --program-tr=* | --program-t=*)
1083    program_transform_name=$ac_optarg ;;
1084
1085  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1086    ac_prev=pdfdir ;;
1087  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1088    pdfdir=$ac_optarg ;;
1089
1090  -psdir | --psdir | --psdi | --psd | --ps)
1091    ac_prev=psdir ;;
1092  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1093    psdir=$ac_optarg ;;
1094
1095  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1096  | -silent | --silent | --silen | --sile | --sil)
1097    silent=yes ;;
1098
1099  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1100    ac_prev=sbindir ;;
1101  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1102  | --sbi=* | --sb=*)
1103    sbindir=$ac_optarg ;;
1104
1105  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1106  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1107  | --sharedst | --shareds | --shared | --share | --shar \
1108  | --sha | --sh)
1109    ac_prev=sharedstatedir ;;
1110  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1111  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1112  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1113  | --sha=* | --sh=*)
1114    sharedstatedir=$ac_optarg ;;
1115
1116  -site | --site | --sit)
1117    ac_prev=site ;;
1118  -site=* | --site=* | --sit=*)
1119    site=$ac_optarg ;;
1120
1121  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1122    ac_prev=srcdir ;;
1123  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1124    srcdir=$ac_optarg ;;
1125
1126  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1127  | --syscon | --sysco | --sysc | --sys | --sy)
1128    ac_prev=sysconfdir ;;
1129  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1130  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1131    sysconfdir=$ac_optarg ;;
1132
1133  -target | --target | --targe | --targ | --tar | --ta | --t)
1134    ac_prev=target_alias ;;
1135  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1136    target_alias=$ac_optarg ;;
1137
1138  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1139    verbose=yes ;;
1140
1141  -version | --version | --versio | --versi | --vers | -V)
1142    ac_init_version=: ;;
1143
1144  -with-* | --with-*)
1145    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1146    # Reject names that are not valid shell variable names.
1147    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1148      as_fn_error $? "invalid package name: $ac_useropt"
1149    ac_useropt_orig=$ac_useropt
1150    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151    case $ac_user_opts in
1152      *"
1153"with_$ac_useropt"
1154"*) ;;
1155      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1156	 ac_unrecognized_sep=', ';;
1157    esac
1158    eval with_$ac_useropt=\$ac_optarg ;;
1159
1160  -without-* | --without-*)
1161    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1162    # Reject names that are not valid shell variable names.
1163    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1164      as_fn_error $? "invalid package name: $ac_useropt"
1165    ac_useropt_orig=$ac_useropt
1166    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1167    case $ac_user_opts in
1168      *"
1169"with_$ac_useropt"
1170"*) ;;
1171      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1172	 ac_unrecognized_sep=', ';;
1173    esac
1174    eval with_$ac_useropt=no ;;
1175
1176  --x)
1177    # Obsolete; use --with-x.
1178    with_x=yes ;;
1179
1180  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1181  | --x-incl | --x-inc | --x-in | --x-i)
1182    ac_prev=x_includes ;;
1183  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1184  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1185    x_includes=$ac_optarg ;;
1186
1187  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1188  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1189    ac_prev=x_libraries ;;
1190  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1191  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1192    x_libraries=$ac_optarg ;;
1193
1194  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1195Try \`$0 --help' for more information"
1196    ;;
1197
1198  *=*)
1199    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1200    # Reject names that are not valid shell variable names.
1201    case $ac_envvar in #(
1202      '' | [0-9]* | *[!_$as_cr_alnum]* )
1203      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1204    esac
1205    eval $ac_envvar=\$ac_optarg
1206    export $ac_envvar ;;
1207
1208  *)
1209    # FIXME: should be removed in autoconf 3.0.
1210    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1211    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1212      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1213    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1214    ;;
1215
1216  esac
1217done
1218
1219if test -n "$ac_prev"; then
1220  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1221  as_fn_error $? "missing argument to $ac_option"
1222fi
1223
1224if test -n "$ac_unrecognized_opts"; then
1225  case $enable_option_checking in
1226    no) ;;
1227    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1228    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1229  esac
1230fi
1231
1232# Check all directory arguments for consistency.
1233for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1234		datadir sysconfdir sharedstatedir localstatedir includedir \
1235		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1236		libdir localedir mandir
1237do
1238  eval ac_val=\$$ac_var
1239  # Remove trailing slashes.
1240  case $ac_val in
1241    */ )
1242      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1243      eval $ac_var=\$ac_val;;
1244  esac
1245  # Be sure to have absolute directory names.
1246  case $ac_val in
1247    [\\/$]* | ?:[\\/]* )  continue;;
1248    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1249  esac
1250  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1251done
1252
1253# There might be people who depend on the old broken behavior: `$host'
1254# used to hold the argument of --host etc.
1255# FIXME: To remove some day.
1256build=$build_alias
1257host=$host_alias
1258target=$target_alias
1259
1260# FIXME: To remove some day.
1261if test "x$host_alias" != x; then
1262  if test "x$build_alias" = x; then
1263    cross_compiling=maybe
1264  elif test "x$build_alias" != "x$host_alias"; then
1265    cross_compiling=yes
1266  fi
1267fi
1268
1269ac_tool_prefix=
1270test -n "$host_alias" && ac_tool_prefix=$host_alias-
1271
1272test "$silent" = yes && exec 6>/dev/null
1273
1274
1275ac_pwd=`pwd` && test -n "$ac_pwd" &&
1276ac_ls_di=`ls -di .` &&
1277ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1278  as_fn_error $? "working directory cannot be determined"
1279test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1280  as_fn_error $? "pwd does not report name of working directory"
1281
1282
1283# Find the source files, if location was not specified.
1284if test -z "$srcdir"; then
1285  ac_srcdir_defaulted=yes
1286  # Try the directory containing this script, then the parent directory.
1287  ac_confdir=`$as_dirname -- "$as_myself" ||
1288$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1289	 X"$as_myself" : 'X\(//\)[^/]' \| \
1290	 X"$as_myself" : 'X\(//\)$' \| \
1291	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1292$as_echo X"$as_myself" |
1293    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1294	    s//\1/
1295	    q
1296	  }
1297	  /^X\(\/\/\)[^/].*/{
1298	    s//\1/
1299	    q
1300	  }
1301	  /^X\(\/\/\)$/{
1302	    s//\1/
1303	    q
1304	  }
1305	  /^X\(\/\).*/{
1306	    s//\1/
1307	    q
1308	  }
1309	  s/.*/./; q'`
1310  srcdir=$ac_confdir
1311  if test ! -r "$srcdir/$ac_unique_file"; then
1312    srcdir=..
1313  fi
1314else
1315  ac_srcdir_defaulted=no
1316fi
1317if test ! -r "$srcdir/$ac_unique_file"; then
1318  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1319  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1320fi
1321ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1322ac_abs_confdir=`(
1323	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1324	pwd)`
1325# When building in place, set srcdir=.
1326if test "$ac_abs_confdir" = "$ac_pwd"; then
1327  srcdir=.
1328fi
1329# Remove unnecessary trailing slashes from srcdir.
1330# Double slashes in file names in object file debugging info
1331# mess up M-x gdb in Emacs.
1332case $srcdir in
1333*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1334esac
1335for ac_var in $ac_precious_vars; do
1336  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1337  eval ac_env_${ac_var}_value=\$${ac_var}
1338  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1339  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1340done
1341
1342#
1343# Report the --help message.
1344#
1345if test "$ac_init_help" = "long"; then
1346  # Omit some internal or obsolete options to make the list less imposing.
1347  # This message is too long to be a string in the A/UX 3.1 sh.
1348  cat <<_ACEOF
1349\`configure' configures MPFR 3.1.2 to adapt to many kinds of systems.
1350
1351Usage: $0 [OPTION]... [VAR=VALUE]...
1352
1353To assign environment variables (e.g., CC, CFLAGS...), specify them as
1354VAR=VALUE.  See below for descriptions of some of the useful variables.
1355
1356Defaults for the options are specified in brackets.
1357
1358Configuration:
1359  -h, --help              display this help and exit
1360      --help=short        display options specific to this package
1361      --help=recursive    display the short help of all the included packages
1362  -V, --version           display version information and exit
1363  -q, --quiet, --silent   do not print \`checking ...' messages
1364      --cache-file=FILE   cache test results in FILE [disabled]
1365  -C, --config-cache      alias for \`--cache-file=config.cache'
1366  -n, --no-create         do not create output files
1367      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1368
1369Installation directories:
1370  --prefix=PREFIX         install architecture-independent files in PREFIX
1371                          [$ac_default_prefix]
1372  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1373                          [PREFIX]
1374
1375By default, \`make install' will install all the files in
1376\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1377an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1378for instance \`--prefix=\$HOME'.
1379
1380For better control, use the options below.
1381
1382Fine tuning of the installation directories:
1383  --bindir=DIR            user executables [EPREFIX/bin]
1384  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1385  --libexecdir=DIR        program executables [EPREFIX/libexec]
1386  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1387  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1388  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1389  --libdir=DIR            object code libraries [EPREFIX/lib]
1390  --includedir=DIR        C header files [PREFIX/include]
1391  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1392  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1393  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1394  --infodir=DIR           info documentation [DATAROOTDIR/info]
1395  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1396  --mandir=DIR            man documentation [DATAROOTDIR/man]
1397  --docdir=DIR            documentation root [DATAROOTDIR/doc/mpfr]
1398  --htmldir=DIR           html documentation [DOCDIR]
1399  --dvidir=DIR            dvi documentation [DOCDIR]
1400  --pdfdir=DIR            pdf documentation [DOCDIR]
1401  --psdir=DIR             ps documentation [DOCDIR]
1402_ACEOF
1403
1404  cat <<\_ACEOF
1405
1406Program names:
1407  --program-prefix=PREFIX            prepend PREFIX to installed program names
1408  --program-suffix=SUFFIX            append SUFFIX to installed program names
1409  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1410
1411System types:
1412  --build=BUILD     configure for building on BUILD [guessed]
1413  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1414_ACEOF
1415fi
1416
1417if test -n "$ac_init_help"; then
1418  case $ac_init_help in
1419     short | recursive ) echo "Configuration of MPFR 3.1.2:";;
1420   esac
1421  cat <<\_ACEOF
1422
1423Optional Features:
1424  --disable-option-checking  ignore unrecognized --enable/--with options
1425  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1426  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1427  --disable-maintainer-mode  disable make rules and dependencies not useful
1428			  (and sometimes confusing) to the casual installer
1429  --enable-gmp-internals  enable use of GMP undocumented functions [default=no]
1430  --enable-assert         enable ASSERT checking [default=no]
1431  --enable-logging        enable MPFR logging (the system must support it)
1432                          [default=no]
1433  --disable-thread-safe   explicitly disable TLS support
1434  --enable-thread-safe    build MPFR as thread safe, i.e. with TLS support
1435                          (the system must support it) [default=autodetect]
1436  --enable-warnings       allow MPFR to output warnings to stderr [default=no]
1437  --enable-tests-timeout=NUM    enable timeout (NUM seconds) for test programs
1438                          (NUM <= 9999) [default=no]; if enabled, env variable
1439                          $MPFR_TESTS_TIMEOUT overrides NUM (0: no timeout).
1440  --disable-dependency-tracking  speeds up one-time build
1441  --enable-dependency-tracking   do not reject slow dependency extractors
1442  --enable-decimal-float  build conversion functions from/to decimal floats
1443                          [default=no]
1444  --enable-shared[=PKGS]  build shared libraries [default=yes]
1445  --enable-static[=PKGS]  build static libraries [default=yes]
1446  --enable-fast-install[=PKGS]
1447                          optimize for fast installation [default=yes]
1448  --disable-libtool-lock  avoid locking (might break parallel builds)
1449
1450Optional Packages:
1451  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1452  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1453  --with-gmp-include=DIR  GMP include directory
1454  --with-gmp-lib=DIR      GMP lib directory
1455  --with-gmp=DIR          GMP install directory
1456  --with-gmp-build=DIR    GMP build directory (please read INSTALL file)
1457  --with-mulhigh-size=NUM internal threshold table for mulhigh
1458  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1459                          both]
1460  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1461  --with-sysroot=DIR Search for dependent libraries within DIR
1462                        (or the compiler's sysroot if not specified).
1463
1464Some influential environment variables:
1465  CC          C compiler command
1466  CFLAGS      C compiler flags
1467  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1468              nonstandard directory <lib dir>
1469  LIBS        libraries to pass to the linker, e.g. -l<library>
1470  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1471              you have headers in a nonstandard directory <include dir>
1472  CPP         C preprocessor
1473
1474Use these variables to override the choices made by `configure' or to help
1475it to find libraries and programs with nonstandard names/locations.
1476
1477Report bugs to the package provider.
1478_ACEOF
1479ac_status=$?
1480fi
1481
1482if test "$ac_init_help" = "recursive"; then
1483  # If there are subdirs, report their specific --help.
1484  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1485    test -d "$ac_dir" ||
1486      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1487      continue
1488    ac_builddir=.
1489
1490case "$ac_dir" in
1491.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492*)
1493  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1494  # A ".." for each directory in $ac_dir_suffix.
1495  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1496  case $ac_top_builddir_sub in
1497  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1498  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1499  esac ;;
1500esac
1501ac_abs_top_builddir=$ac_pwd
1502ac_abs_builddir=$ac_pwd$ac_dir_suffix
1503# for backward compatibility:
1504ac_top_builddir=$ac_top_build_prefix
1505
1506case $srcdir in
1507  .)  # We are building in place.
1508    ac_srcdir=.
1509    ac_top_srcdir=$ac_top_builddir_sub
1510    ac_abs_top_srcdir=$ac_pwd ;;
1511  [\\/]* | ?:[\\/]* )  # Absolute name.
1512    ac_srcdir=$srcdir$ac_dir_suffix;
1513    ac_top_srcdir=$srcdir
1514    ac_abs_top_srcdir=$srcdir ;;
1515  *) # Relative name.
1516    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1517    ac_top_srcdir=$ac_top_build_prefix$srcdir
1518    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1519esac
1520ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1521
1522    cd "$ac_dir" || { ac_status=$?; continue; }
1523    # Check for guested configure.
1524    if test -f "$ac_srcdir/configure.gnu"; then
1525      echo &&
1526      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1527    elif test -f "$ac_srcdir/configure"; then
1528      echo &&
1529      $SHELL "$ac_srcdir/configure" --help=recursive
1530    else
1531      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1532    fi || ac_status=$?
1533    cd "$ac_pwd" || { ac_status=$?; break; }
1534  done
1535fi
1536
1537test -n "$ac_init_help" && exit $ac_status
1538if $ac_init_version; then
1539  cat <<\_ACEOF
1540MPFR configure 3.1.2
1541generated by GNU Autoconf 2.69
1542
1543Copyright (C) 2012 Free Software Foundation, Inc.
1544This configure script is free software; the Free Software Foundation
1545gives unlimited permission to copy, distribute and modify it.
1546
1547
1548Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc.
1549Contributed by the AriC and Caramel projects, INRIA.
1550
1551This file is part of the GNU MPFR Library.
1552
1553The GNU MPFR Library is free software; you can redistribute it and/or modify
1554it under the terms of the GNU Lesser General Public License as published
1555by the Free Software Foundation; either version 3 of the License, or (at
1556your option) any later version.
1557
1558The GNU MPFR Library is distributed in the hope that it will be useful, but
1559WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
1560or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
1561License for more details.
1562
1563You should have received a copy of the GNU Lesser General Public License
1564along with the GNU MPFR Library; see the file COPYING.LESSER.  If not, see
1565http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc.,
156651 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
1567
1568_ACEOF
1569  exit
1570fi
1571
1572## ------------------------ ##
1573## Autoconf initialization. ##
1574## ------------------------ ##
1575
1576# ac_fn_c_try_compile LINENO
1577# --------------------------
1578# Try to compile conftest.$ac_ext, and return whether this succeeded.
1579ac_fn_c_try_compile ()
1580{
1581  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582  rm -f conftest.$ac_objext
1583  if { { ac_try="$ac_compile"
1584case "(($ac_try" in
1585  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1586  *) ac_try_echo=$ac_try;;
1587esac
1588eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1589$as_echo "$ac_try_echo"; } >&5
1590  (eval "$ac_compile") 2>conftest.err
1591  ac_status=$?
1592  if test -s conftest.err; then
1593    grep -v '^ *+' conftest.err >conftest.er1
1594    cat conftest.er1 >&5
1595    mv -f conftest.er1 conftest.err
1596  fi
1597  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1598  test $ac_status = 0; } && {
1599	 test -z "$ac_c_werror_flag" ||
1600	 test ! -s conftest.err
1601       } && test -s conftest.$ac_objext; then :
1602  ac_retval=0
1603else
1604  $as_echo "$as_me: failed program was:" >&5
1605sed 's/^/| /' conftest.$ac_ext >&5
1606
1607	ac_retval=1
1608fi
1609  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1610  as_fn_set_status $ac_retval
1611
1612} # ac_fn_c_try_compile
1613
1614# ac_fn_c_try_cpp LINENO
1615# ----------------------
1616# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1617ac_fn_c_try_cpp ()
1618{
1619  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620  if { { ac_try="$ac_cpp conftest.$ac_ext"
1621case "(($ac_try" in
1622  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623  *) ac_try_echo=$ac_try;;
1624esac
1625eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626$as_echo "$ac_try_echo"; } >&5
1627  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1628  ac_status=$?
1629  if test -s conftest.err; then
1630    grep -v '^ *+' conftest.err >conftest.er1
1631    cat conftest.er1 >&5
1632    mv -f conftest.er1 conftest.err
1633  fi
1634  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635  test $ac_status = 0; } > conftest.i && {
1636	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1637	 test ! -s conftest.err
1638       }; then :
1639  ac_retval=0
1640else
1641  $as_echo "$as_me: failed program was:" >&5
1642sed 's/^/| /' conftest.$ac_ext >&5
1643
1644    ac_retval=1
1645fi
1646  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1647  as_fn_set_status $ac_retval
1648
1649} # ac_fn_c_try_cpp
1650
1651# ac_fn_c_try_run LINENO
1652# ----------------------
1653# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1654# that executables *can* be run.
1655ac_fn_c_try_run ()
1656{
1657  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658  if { { ac_try="$ac_link"
1659case "(($ac_try" in
1660  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661  *) ac_try_echo=$ac_try;;
1662esac
1663eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664$as_echo "$ac_try_echo"; } >&5
1665  (eval "$ac_link") 2>&5
1666  ac_status=$?
1667  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1669  { { case "(($ac_try" in
1670  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671  *) ac_try_echo=$ac_try;;
1672esac
1673eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674$as_echo "$ac_try_echo"; } >&5
1675  (eval "$ac_try") 2>&5
1676  ac_status=$?
1677  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678  test $ac_status = 0; }; }; then :
1679  ac_retval=0
1680else
1681  $as_echo "$as_me: program exited with status $ac_status" >&5
1682       $as_echo "$as_me: failed program was:" >&5
1683sed 's/^/| /' conftest.$ac_ext >&5
1684
1685       ac_retval=$ac_status
1686fi
1687  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1688  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1689  as_fn_set_status $ac_retval
1690
1691} # ac_fn_c_try_run
1692
1693# ac_fn_c_try_link LINENO
1694# -----------------------
1695# Try to link conftest.$ac_ext, and return whether this succeeded.
1696ac_fn_c_try_link ()
1697{
1698  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699  rm -f conftest.$ac_objext conftest$ac_exeext
1700  if { { ac_try="$ac_link"
1701case "(($ac_try" in
1702  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703  *) ac_try_echo=$ac_try;;
1704esac
1705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706$as_echo "$ac_try_echo"; } >&5
1707  (eval "$ac_link") 2>conftest.err
1708  ac_status=$?
1709  if test -s conftest.err; then
1710    grep -v '^ *+' conftest.err >conftest.er1
1711    cat conftest.er1 >&5
1712    mv -f conftest.er1 conftest.err
1713  fi
1714  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715  test $ac_status = 0; } && {
1716	 test -z "$ac_c_werror_flag" ||
1717	 test ! -s conftest.err
1718       } && test -s conftest$ac_exeext && {
1719	 test "$cross_compiling" = yes ||
1720	 test -x conftest$ac_exeext
1721       }; then :
1722  ac_retval=0
1723else
1724  $as_echo "$as_me: failed program was:" >&5
1725sed 's/^/| /' conftest.$ac_ext >&5
1726
1727	ac_retval=1
1728fi
1729  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1730  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1731  # interfere with the next link command; also delete a directory that is
1732  # left behind by Apple's compiler.  We do this before executing the actions.
1733  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1734  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1735  as_fn_set_status $ac_retval
1736
1737} # ac_fn_c_try_link
1738
1739# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1740# -------------------------------------------------------
1741# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1742# the include files in INCLUDES and setting the cache variable VAR
1743# accordingly.
1744ac_fn_c_check_header_mongrel ()
1745{
1746  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747  if eval \${$3+:} false; then :
1748  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1749$as_echo_n "checking for $2... " >&6; }
1750if eval \${$3+:} false; then :
1751  $as_echo_n "(cached) " >&6
1752fi
1753eval ac_res=\$$3
1754	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1755$as_echo "$ac_res" >&6; }
1756else
1757  # Is the header compilable?
1758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1759$as_echo_n "checking $2 usability... " >&6; }
1760cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1761/* end confdefs.h.  */
1762$4
1763#include <$2>
1764_ACEOF
1765if ac_fn_c_try_compile "$LINENO"; then :
1766  ac_header_compiler=yes
1767else
1768  ac_header_compiler=no
1769fi
1770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1772$as_echo "$ac_header_compiler" >&6; }
1773
1774# Is the header present?
1775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1776$as_echo_n "checking $2 presence... " >&6; }
1777cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1778/* end confdefs.h.  */
1779#include <$2>
1780_ACEOF
1781if ac_fn_c_try_cpp "$LINENO"; then :
1782  ac_header_preproc=yes
1783else
1784  ac_header_preproc=no
1785fi
1786rm -f conftest.err conftest.i conftest.$ac_ext
1787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1788$as_echo "$ac_header_preproc" >&6; }
1789
1790# So?  What about this header?
1791case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1792  yes:no: )
1793    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1794$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1795    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1796$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1797    ;;
1798  no:yes:* )
1799    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1800$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1801    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1802$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1803    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1804$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1805    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1806$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1807    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1808$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1809    ;;
1810esac
1811  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1812$as_echo_n "checking for $2... " >&6; }
1813if eval \${$3+:} false; then :
1814  $as_echo_n "(cached) " >&6
1815else
1816  eval "$3=\$ac_header_compiler"
1817fi
1818eval ac_res=\$$3
1819	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1820$as_echo "$ac_res" >&6; }
1821fi
1822  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1823
1824} # ac_fn_c_check_header_mongrel
1825
1826# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1827# -------------------------------------------------------
1828# Tests whether HEADER exists and can be compiled using the include files in
1829# INCLUDES, setting the cache variable VAR accordingly.
1830ac_fn_c_check_header_compile ()
1831{
1832  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1834$as_echo_n "checking for $2... " >&6; }
1835if eval \${$3+:} false; then :
1836  $as_echo_n "(cached) " >&6
1837else
1838  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1839/* end confdefs.h.  */
1840$4
1841#include <$2>
1842_ACEOF
1843if ac_fn_c_try_compile "$LINENO"; then :
1844  eval "$3=yes"
1845else
1846  eval "$3=no"
1847fi
1848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1849fi
1850eval ac_res=\$$3
1851	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1852$as_echo "$ac_res" >&6; }
1853  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1854
1855} # ac_fn_c_check_header_compile
1856
1857# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1858# -------------------------------------------
1859# Tests whether TYPE exists after having included INCLUDES, setting cache
1860# variable VAR accordingly.
1861ac_fn_c_check_type ()
1862{
1863  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1865$as_echo_n "checking for $2... " >&6; }
1866if eval \${$3+:} false; then :
1867  $as_echo_n "(cached) " >&6
1868else
1869  eval "$3=no"
1870  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871/* end confdefs.h.  */
1872$4
1873int
1874main ()
1875{
1876if (sizeof ($2))
1877	 return 0;
1878  ;
1879  return 0;
1880}
1881_ACEOF
1882if ac_fn_c_try_compile "$LINENO"; then :
1883  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1884/* end confdefs.h.  */
1885$4
1886int
1887main ()
1888{
1889if (sizeof (($2)))
1890	    return 0;
1891  ;
1892  return 0;
1893}
1894_ACEOF
1895if ac_fn_c_try_compile "$LINENO"; then :
1896
1897else
1898  eval "$3=yes"
1899fi
1900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1901fi
1902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1903fi
1904eval ac_res=\$$3
1905	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1906$as_echo "$ac_res" >&6; }
1907  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1908
1909} # ac_fn_c_check_type
1910
1911# ac_fn_c_check_func LINENO FUNC VAR
1912# ----------------------------------
1913# Tests whether FUNC exists, setting the cache variable VAR accordingly
1914ac_fn_c_check_func ()
1915{
1916  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1918$as_echo_n "checking for $2... " >&6; }
1919if eval \${$3+:} false; then :
1920  $as_echo_n "(cached) " >&6
1921else
1922  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1923/* end confdefs.h.  */
1924/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1925   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1926#define $2 innocuous_$2
1927
1928/* System header to define __stub macros and hopefully few prototypes,
1929    which can conflict with char $2 (); below.
1930    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1931    <limits.h> exists even on freestanding compilers.  */
1932
1933#ifdef __STDC__
1934# include <limits.h>
1935#else
1936# include <assert.h>
1937#endif
1938
1939#undef $2
1940
1941/* Override any GCC internal prototype to avoid an error.
1942   Use char because int might match the return type of a GCC
1943   builtin and then its argument prototype would still apply.  */
1944#ifdef __cplusplus
1945extern "C"
1946#endif
1947char $2 ();
1948/* The GNU C library defines this for functions which it implements
1949    to always fail with ENOSYS.  Some functions are actually named
1950    something starting with __ and the normal name is an alias.  */
1951#if defined __stub_$2 || defined __stub___$2
1952choke me
1953#endif
1954
1955int
1956main ()
1957{
1958return $2 ();
1959  ;
1960  return 0;
1961}
1962_ACEOF
1963if ac_fn_c_try_link "$LINENO"; then :
1964  eval "$3=yes"
1965else
1966  eval "$3=no"
1967fi
1968rm -f core conftest.err conftest.$ac_objext \
1969    conftest$ac_exeext conftest.$ac_ext
1970fi
1971eval ac_res=\$$3
1972	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1973$as_echo "$ac_res" >&6; }
1974  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1975
1976} # ac_fn_c_check_func
1977
1978# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1979# --------------------------------------------
1980# Tries to find the compile-time value of EXPR in a program that includes
1981# INCLUDES, setting VAR accordingly. Returns whether the value could be
1982# computed
1983ac_fn_c_compute_int ()
1984{
1985  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1986  if test "$cross_compiling" = yes; then
1987    # Depending upon the size, compute the lo and hi bounds.
1988cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989/* end confdefs.h.  */
1990$4
1991int
1992main ()
1993{
1994static int test_array [1 - 2 * !(($2) >= 0)];
1995test_array [0] = 0;
1996return test_array [0];
1997
1998  ;
1999  return 0;
2000}
2001_ACEOF
2002if ac_fn_c_try_compile "$LINENO"; then :
2003  ac_lo=0 ac_mid=0
2004  while :; do
2005    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2006/* end confdefs.h.  */
2007$4
2008int
2009main ()
2010{
2011static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2012test_array [0] = 0;
2013return test_array [0];
2014
2015  ;
2016  return 0;
2017}
2018_ACEOF
2019if ac_fn_c_try_compile "$LINENO"; then :
2020  ac_hi=$ac_mid; break
2021else
2022  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2023			if test $ac_lo -le $ac_mid; then
2024			  ac_lo= ac_hi=
2025			  break
2026			fi
2027			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2028fi
2029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2030  done
2031else
2032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033/* end confdefs.h.  */
2034$4
2035int
2036main ()
2037{
2038static int test_array [1 - 2 * !(($2) < 0)];
2039test_array [0] = 0;
2040return test_array [0];
2041
2042  ;
2043  return 0;
2044}
2045_ACEOF
2046if ac_fn_c_try_compile "$LINENO"; then :
2047  ac_hi=-1 ac_mid=-1
2048  while :; do
2049    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2050/* end confdefs.h.  */
2051$4
2052int
2053main ()
2054{
2055static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2056test_array [0] = 0;
2057return test_array [0];
2058
2059  ;
2060  return 0;
2061}
2062_ACEOF
2063if ac_fn_c_try_compile "$LINENO"; then :
2064  ac_lo=$ac_mid; break
2065else
2066  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2067			if test $ac_mid -le $ac_hi; then
2068			  ac_lo= ac_hi=
2069			  break
2070			fi
2071			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2072fi
2073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2074  done
2075else
2076  ac_lo= ac_hi=
2077fi
2078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2079fi
2080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2081# Binary search between lo and hi bounds.
2082while test "x$ac_lo" != "x$ac_hi"; do
2083  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2084  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085/* end confdefs.h.  */
2086$4
2087int
2088main ()
2089{
2090static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2091test_array [0] = 0;
2092return test_array [0];
2093
2094  ;
2095  return 0;
2096}
2097_ACEOF
2098if ac_fn_c_try_compile "$LINENO"; then :
2099  ac_hi=$ac_mid
2100else
2101  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2102fi
2103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2104done
2105case $ac_lo in #((
2106?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2107'') ac_retval=1 ;;
2108esac
2109  else
2110    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2111/* end confdefs.h.  */
2112$4
2113static long int longval () { return $2; }
2114static unsigned long int ulongval () { return $2; }
2115#include <stdio.h>
2116#include <stdlib.h>
2117int
2118main ()
2119{
2120
2121  FILE *f = fopen ("conftest.val", "w");
2122  if (! f)
2123    return 1;
2124  if (($2) < 0)
2125    {
2126      long int i = longval ();
2127      if (i != ($2))
2128	return 1;
2129      fprintf (f, "%ld", i);
2130    }
2131  else
2132    {
2133      unsigned long int i = ulongval ();
2134      if (i != ($2))
2135	return 1;
2136      fprintf (f, "%lu", i);
2137    }
2138  /* Do not output a trailing newline, as this causes \r\n confusion
2139     on some platforms.  */
2140  return ferror (f) || fclose (f) != 0;
2141
2142  ;
2143  return 0;
2144}
2145_ACEOF
2146if ac_fn_c_try_run "$LINENO"; then :
2147  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2148else
2149  ac_retval=1
2150fi
2151rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2152  conftest.$ac_objext conftest.beam conftest.$ac_ext
2153rm -f conftest.val
2154
2155  fi
2156  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2157  as_fn_set_status $ac_retval
2158
2159} # ac_fn_c_compute_int
2160cat >config.log <<_ACEOF
2161This file contains any messages produced by compilers while
2162running configure, to aid debugging if configure makes a mistake.
2163
2164It was created by MPFR $as_me 3.1.2, which was
2165generated by GNU Autoconf 2.69.  Invocation command line was
2166
2167  $ $0 $@
2168
2169_ACEOF
2170exec 5>>config.log
2171{
2172cat <<_ASUNAME
2173## --------- ##
2174## Platform. ##
2175## --------- ##
2176
2177hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2178uname -m = `(uname -m) 2>/dev/null || echo unknown`
2179uname -r = `(uname -r) 2>/dev/null || echo unknown`
2180uname -s = `(uname -s) 2>/dev/null || echo unknown`
2181uname -v = `(uname -v) 2>/dev/null || echo unknown`
2182
2183/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2184/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2185
2186/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2187/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2188/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2189/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2190/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2191/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2192/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2193
2194_ASUNAME
2195
2196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2197for as_dir in $PATH
2198do
2199  IFS=$as_save_IFS
2200  test -z "$as_dir" && as_dir=.
2201    $as_echo "PATH: $as_dir"
2202  done
2203IFS=$as_save_IFS
2204
2205} >&5
2206
2207cat >&5 <<_ACEOF
2208
2209
2210## ----------- ##
2211## Core tests. ##
2212## ----------- ##
2213
2214_ACEOF
2215
2216
2217# Keep a trace of the command line.
2218# Strip out --no-create and --no-recursion so they do not pile up.
2219# Strip out --silent because we don't want to record it for future runs.
2220# Also quote any args containing shell meta-characters.
2221# Make two passes to allow for proper duplicate-argument suppression.
2222ac_configure_args=
2223ac_configure_args0=
2224ac_configure_args1=
2225ac_must_keep_next=false
2226for ac_pass in 1 2
2227do
2228  for ac_arg
2229  do
2230    case $ac_arg in
2231    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2232    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2233    | -silent | --silent | --silen | --sile | --sil)
2234      continue ;;
2235    *\'*)
2236      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2237    esac
2238    case $ac_pass in
2239    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2240    2)
2241      as_fn_append ac_configure_args1 " '$ac_arg'"
2242      if test $ac_must_keep_next = true; then
2243	ac_must_keep_next=false # Got value, back to normal.
2244      else
2245	case $ac_arg in
2246	  *=* | --config-cache | -C | -disable-* | --disable-* \
2247	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2248	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2249	  | -with-* | --with-* | -without-* | --without-* | --x)
2250	    case "$ac_configure_args0 " in
2251	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2252	    esac
2253	    ;;
2254	  -* ) ac_must_keep_next=true ;;
2255	esac
2256      fi
2257      as_fn_append ac_configure_args " '$ac_arg'"
2258      ;;
2259    esac
2260  done
2261done
2262{ ac_configure_args0=; unset ac_configure_args0;}
2263{ ac_configure_args1=; unset ac_configure_args1;}
2264
2265# When interrupted or exit'd, cleanup temporary files, and complete
2266# config.log.  We remove comments because anyway the quotes in there
2267# would cause problems or look ugly.
2268# WARNING: Use '\'' to represent an apostrophe within the trap.
2269# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2270trap 'exit_status=$?
2271  # Save into config.log some information that might help in debugging.
2272  {
2273    echo
2274
2275    $as_echo "## ---------------- ##
2276## Cache variables. ##
2277## ---------------- ##"
2278    echo
2279    # The following way of writing the cache mishandles newlines in values,
2280(
2281  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2282    eval ac_val=\$$ac_var
2283    case $ac_val in #(
2284    *${as_nl}*)
2285      case $ac_var in #(
2286      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2287$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2288      esac
2289      case $ac_var in #(
2290      _ | IFS | as_nl) ;; #(
2291      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2292      *) { eval $ac_var=; unset $ac_var;} ;;
2293      esac ;;
2294    esac
2295  done
2296  (set) 2>&1 |
2297    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2298    *${as_nl}ac_space=\ *)
2299      sed -n \
2300	"s/'\''/'\''\\\\'\'''\''/g;
2301	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2302      ;; #(
2303    *)
2304      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2305      ;;
2306    esac |
2307    sort
2308)
2309    echo
2310
2311    $as_echo "## ----------------- ##
2312## Output variables. ##
2313## ----------------- ##"
2314    echo
2315    for ac_var in $ac_subst_vars
2316    do
2317      eval ac_val=\$$ac_var
2318      case $ac_val in
2319      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2320      esac
2321      $as_echo "$ac_var='\''$ac_val'\''"
2322    done | sort
2323    echo
2324
2325    if test -n "$ac_subst_files"; then
2326      $as_echo "## ------------------- ##
2327## File substitutions. ##
2328## ------------------- ##"
2329      echo
2330      for ac_var in $ac_subst_files
2331      do
2332	eval ac_val=\$$ac_var
2333	case $ac_val in
2334	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2335	esac
2336	$as_echo "$ac_var='\''$ac_val'\''"
2337      done | sort
2338      echo
2339    fi
2340
2341    if test -s confdefs.h; then
2342      $as_echo "## ----------- ##
2343## confdefs.h. ##
2344## ----------- ##"
2345      echo
2346      cat confdefs.h
2347      echo
2348    fi
2349    test "$ac_signal" != 0 &&
2350      $as_echo "$as_me: caught signal $ac_signal"
2351    $as_echo "$as_me: exit $exit_status"
2352  } >&5
2353  rm -f core *.core core.conftest.* &&
2354    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2355    exit $exit_status
2356' 0
2357for ac_signal in 1 2 13 15; do
2358  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2359done
2360ac_signal=0
2361
2362# confdefs.h avoids OS command line length limits that DEFS can exceed.
2363rm -f -r conftest* confdefs.h
2364
2365$as_echo "/* confdefs.h */" > confdefs.h
2366
2367# Predefined preprocessor variables.
2368
2369cat >>confdefs.h <<_ACEOF
2370#define PACKAGE_NAME "$PACKAGE_NAME"
2371_ACEOF
2372
2373cat >>confdefs.h <<_ACEOF
2374#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2375_ACEOF
2376
2377cat >>confdefs.h <<_ACEOF
2378#define PACKAGE_VERSION "$PACKAGE_VERSION"
2379_ACEOF
2380
2381cat >>confdefs.h <<_ACEOF
2382#define PACKAGE_STRING "$PACKAGE_STRING"
2383_ACEOF
2384
2385cat >>confdefs.h <<_ACEOF
2386#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2387_ACEOF
2388
2389cat >>confdefs.h <<_ACEOF
2390#define PACKAGE_URL "$PACKAGE_URL"
2391_ACEOF
2392
2393
2394# Let the site file select an alternate cache file if it wants to.
2395# Prefer an explicitly selected file to automatically selected ones.
2396ac_site_file1=NONE
2397ac_site_file2=NONE
2398if test -n "$CONFIG_SITE"; then
2399  # We do not want a PATH search for config.site.
2400  case $CONFIG_SITE in #((
2401    -*)  ac_site_file1=./$CONFIG_SITE;;
2402    */*) ac_site_file1=$CONFIG_SITE;;
2403    *)   ac_site_file1=./$CONFIG_SITE;;
2404  esac
2405elif test "x$prefix" != xNONE; then
2406  ac_site_file1=$prefix/share/config.site
2407  ac_site_file2=$prefix/etc/config.site
2408else
2409  ac_site_file1=$ac_default_prefix/share/config.site
2410  ac_site_file2=$ac_default_prefix/etc/config.site
2411fi
2412for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2413do
2414  test "x$ac_site_file" = xNONE && continue
2415  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2416    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2417$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2418    sed 's/^/| /' "$ac_site_file" >&5
2419    . "$ac_site_file" \
2420      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2421$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2422as_fn_error $? "failed to load site script $ac_site_file
2423See \`config.log' for more details" "$LINENO" 5; }
2424  fi
2425done
2426
2427if test -r "$cache_file"; then
2428  # Some versions of bash will fail to source /dev/null (special files
2429  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2430  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2431    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2432$as_echo "$as_me: loading cache $cache_file" >&6;}
2433    case $cache_file in
2434      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2435      *)                      . "./$cache_file";;
2436    esac
2437  fi
2438else
2439  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2440$as_echo "$as_me: creating cache $cache_file" >&6;}
2441  >$cache_file
2442fi
2443
2444# Check that the precious variables saved in the cache have kept the same
2445# value.
2446ac_cache_corrupted=false
2447for ac_var in $ac_precious_vars; do
2448  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2449  eval ac_new_set=\$ac_env_${ac_var}_set
2450  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2451  eval ac_new_val=\$ac_env_${ac_var}_value
2452  case $ac_old_set,$ac_new_set in
2453    set,)
2454      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2455$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2456      ac_cache_corrupted=: ;;
2457    ,set)
2458      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2459$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2460      ac_cache_corrupted=: ;;
2461    ,);;
2462    *)
2463      if test "x$ac_old_val" != "x$ac_new_val"; then
2464	# differences in whitespace do not lead to failure.
2465	ac_old_val_w=`echo x $ac_old_val`
2466	ac_new_val_w=`echo x $ac_new_val`
2467	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2468	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2469$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2470	  ac_cache_corrupted=:
2471	else
2472	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2473$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2474	  eval $ac_var=\$ac_old_val
2475	fi
2476	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2477$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2478	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2479$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2480      fi;;
2481  esac
2482  # Pass precious variables to config.status.
2483  if test "$ac_new_set" = set; then
2484    case $ac_new_val in
2485    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2486    *) ac_arg=$ac_var=$ac_new_val ;;
2487    esac
2488    case " $ac_configure_args " in
2489      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2490      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2491    esac
2492  fi
2493done
2494if $ac_cache_corrupted; then
2495  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2496$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2497  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2498$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2499  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2500fi
2501## -------------------- ##
2502## Main body of script. ##
2503## -------------------- ##
2504
2505ac_ext=c
2506ac_cpp='$CPP $CPPFLAGS'
2507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2509ac_compiler_gnu=$ac_cv_c_compiler_gnu
2510
2511
2512
2513am__api_version='1.11'
2514
2515ac_aux_dir=
2516for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2517  if test -f "$ac_dir/install-sh"; then
2518    ac_aux_dir=$ac_dir
2519    ac_install_sh="$ac_aux_dir/install-sh -c"
2520    break
2521  elif test -f "$ac_dir/install.sh"; then
2522    ac_aux_dir=$ac_dir
2523    ac_install_sh="$ac_aux_dir/install.sh -c"
2524    break
2525  elif test -f "$ac_dir/shtool"; then
2526    ac_aux_dir=$ac_dir
2527    ac_install_sh="$ac_aux_dir/shtool install -c"
2528    break
2529  fi
2530done
2531if test -z "$ac_aux_dir"; then
2532  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2533fi
2534
2535# These three variables are undocumented and unsupported,
2536# and are intended to be withdrawn in a future Autoconf release.
2537# They can cause serious problems if a builder's source tree is in a directory
2538# whose full name contains unusual characters.
2539ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2540ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2541ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2542
2543
2544# Find a good install program.  We prefer a C program (faster),
2545# so one script is as good as another.  But avoid the broken or
2546# incompatible versions:
2547# SysV /etc/install, /usr/sbin/install
2548# SunOS /usr/etc/install
2549# IRIX /sbin/install
2550# AIX /bin/install
2551# AmigaOS /C/install, which installs bootblocks on floppy discs
2552# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2553# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2554# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2555# OS/2's system install, which has a completely different semantic
2556# ./install, which can be erroneously created by make from ./install.sh.
2557# Reject install programs that cannot install multiple files.
2558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2559$as_echo_n "checking for a BSD-compatible install... " >&6; }
2560if test -z "$INSTALL"; then
2561if ${ac_cv_path_install+:} false; then :
2562  $as_echo_n "(cached) " >&6
2563else
2564  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565for as_dir in $PATH
2566do
2567  IFS=$as_save_IFS
2568  test -z "$as_dir" && as_dir=.
2569    # Account for people who put trailing slashes in PATH elements.
2570case $as_dir/ in #((
2571  ./ | .// | /[cC]/* | \
2572  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2573  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2574  /usr/ucb/* ) ;;
2575  *)
2576    # OSF1 and SCO ODT 3.0 have their own names for install.
2577    # Don't use installbsd from OSF since it installs stuff as root
2578    # by default.
2579    for ac_prog in ginstall scoinst install; do
2580      for ac_exec_ext in '' $ac_executable_extensions; do
2581	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2582	  if test $ac_prog = install &&
2583	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2584	    # AIX install.  It has an incompatible calling convention.
2585	    :
2586	  elif test $ac_prog = install &&
2587	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2588	    # program-specific install script used by HP pwplus--don't use.
2589	    :
2590	  else
2591	    rm -rf conftest.one conftest.two conftest.dir
2592	    echo one > conftest.one
2593	    echo two > conftest.two
2594	    mkdir conftest.dir
2595	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2596	      test -s conftest.one && test -s conftest.two &&
2597	      test -s conftest.dir/conftest.one &&
2598	      test -s conftest.dir/conftest.two
2599	    then
2600	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2601	      break 3
2602	    fi
2603	  fi
2604	fi
2605      done
2606    done
2607    ;;
2608esac
2609
2610  done
2611IFS=$as_save_IFS
2612
2613rm -rf conftest.one conftest.two conftest.dir
2614
2615fi
2616  if test "${ac_cv_path_install+set}" = set; then
2617    INSTALL=$ac_cv_path_install
2618  else
2619    # As a last resort, use the slow shell script.  Don't cache a
2620    # value for INSTALL within a source directory, because that will
2621    # break other packages using the cache if that directory is
2622    # removed, or if the value is a relative name.
2623    INSTALL=$ac_install_sh
2624  fi
2625fi
2626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2627$as_echo "$INSTALL" >&6; }
2628
2629# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2630# It thinks the first close brace ends the variable substitution.
2631test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2632
2633test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2634
2635test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2636
2637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2638$as_echo_n "checking whether build environment is sane... " >&6; }
2639# Just in case
2640sleep 1
2641echo timestamp > conftest.file
2642# Reject unsafe characters in $srcdir or the absolute working directory
2643# name.  Accept space and tab only in the latter.
2644am_lf='
2645'
2646case `pwd` in
2647  *[\\\"\#\$\&\'\`$am_lf]*)
2648    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2649esac
2650case $srcdir in
2651  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2652    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2653esac
2654
2655# Do `set' in a subshell so we don't clobber the current shell's
2656# arguments.  Must try -L first in case configure is actually a
2657# symlink; some systems play weird games with the mod time of symlinks
2658# (eg FreeBSD returns the mod time of the symlink's containing
2659# directory).
2660if (
2661   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2662   if test "$*" = "X"; then
2663      # -L didn't work.
2664      set X `ls -t "$srcdir/configure" conftest.file`
2665   fi
2666   rm -f conftest.file
2667   if test "$*" != "X $srcdir/configure conftest.file" \
2668      && test "$*" != "X conftest.file $srcdir/configure"; then
2669
2670      # If neither matched, then we have a broken ls.  This can happen
2671      # if, for instance, CONFIG_SHELL is bash and it inherits a
2672      # broken ls alias from the environment.  This has actually
2673      # happened.  Such a system could not be considered "sane".
2674      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2675alias in your environment" "$LINENO" 5
2676   fi
2677
2678   test "$2" = conftest.file
2679   )
2680then
2681   # Ok.
2682   :
2683else
2684   as_fn_error $? "newly created file is older than distributed files!
2685Check your system clock" "$LINENO" 5
2686fi
2687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2688$as_echo "yes" >&6; }
2689test "$program_prefix" != NONE &&
2690  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2691# Use a double $ so make ignores it.
2692test "$program_suffix" != NONE &&
2693  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2694# Double any \ or $.
2695# By default was `s,x,x', remove it if useless.
2696ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2697program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2698
2699# expand $ac_aux_dir to an absolute path
2700am_aux_dir=`cd $ac_aux_dir && pwd`
2701
2702if test x"${MISSING+set}" != xset; then
2703  case $am_aux_dir in
2704  *\ * | *\	*)
2705    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2706  *)
2707    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2708  esac
2709fi
2710# Use eval to expand $SHELL
2711if eval "$MISSING --run true"; then
2712  am_missing_run="$MISSING --run "
2713else
2714  am_missing_run=
2715  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2716$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2717fi
2718
2719if test x"${install_sh}" != xset; then
2720  case $am_aux_dir in
2721  *\ * | *\	*)
2722    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2723  *)
2724    install_sh="\${SHELL} $am_aux_dir/install-sh"
2725  esac
2726fi
2727
2728# Installed binaries are usually stripped using `strip' when the user
2729# run `make install-strip'.  However `strip' might not be the right
2730# tool to use in cross-compilation environments, therefore Automake
2731# will honor the `STRIP' environment variable to overrule this program.
2732if test "$cross_compiling" != no; then
2733  if test -n "$ac_tool_prefix"; then
2734  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2735set dummy ${ac_tool_prefix}strip; ac_word=$2
2736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2737$as_echo_n "checking for $ac_word... " >&6; }
2738if ${ac_cv_prog_STRIP+:} false; then :
2739  $as_echo_n "(cached) " >&6
2740else
2741  if test -n "$STRIP"; then
2742  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2743else
2744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745for as_dir in $PATH
2746do
2747  IFS=$as_save_IFS
2748  test -z "$as_dir" && as_dir=.
2749    for ac_exec_ext in '' $ac_executable_extensions; do
2750  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2751    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2752    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2753    break 2
2754  fi
2755done
2756  done
2757IFS=$as_save_IFS
2758
2759fi
2760fi
2761STRIP=$ac_cv_prog_STRIP
2762if test -n "$STRIP"; then
2763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2764$as_echo "$STRIP" >&6; }
2765else
2766  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2767$as_echo "no" >&6; }
2768fi
2769
2770
2771fi
2772if test -z "$ac_cv_prog_STRIP"; then
2773  ac_ct_STRIP=$STRIP
2774  # Extract the first word of "strip", so it can be a program name with args.
2775set dummy strip; ac_word=$2
2776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2777$as_echo_n "checking for $ac_word... " >&6; }
2778if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2779  $as_echo_n "(cached) " >&6
2780else
2781  if test -n "$ac_ct_STRIP"; then
2782  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2783else
2784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785for as_dir in $PATH
2786do
2787  IFS=$as_save_IFS
2788  test -z "$as_dir" && as_dir=.
2789    for ac_exec_ext in '' $ac_executable_extensions; do
2790  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2791    ac_cv_prog_ac_ct_STRIP="strip"
2792    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2793    break 2
2794  fi
2795done
2796  done
2797IFS=$as_save_IFS
2798
2799fi
2800fi
2801ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2802if test -n "$ac_ct_STRIP"; then
2803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2804$as_echo "$ac_ct_STRIP" >&6; }
2805else
2806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2807$as_echo "no" >&6; }
2808fi
2809
2810  if test "x$ac_ct_STRIP" = x; then
2811    STRIP=":"
2812  else
2813    case $cross_compiling:$ac_tool_warned in
2814yes:)
2815{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2816$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2817ac_tool_warned=yes ;;
2818esac
2819    STRIP=$ac_ct_STRIP
2820  fi
2821else
2822  STRIP="$ac_cv_prog_STRIP"
2823fi
2824
2825fi
2826INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2827
2828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2829$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2830if test -z "$MKDIR_P"; then
2831  if ${ac_cv_path_mkdir+:} false; then :
2832  $as_echo_n "(cached) " >&6
2833else
2834  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2836do
2837  IFS=$as_save_IFS
2838  test -z "$as_dir" && as_dir=.
2839    for ac_prog in mkdir gmkdir; do
2840	 for ac_exec_ext in '' $ac_executable_extensions; do
2841	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2842	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2843	     'mkdir (GNU coreutils) '* | \
2844	     'mkdir (coreutils) '* | \
2845	     'mkdir (fileutils) '4.1*)
2846	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2847	       break 3;;
2848	   esac
2849	 done
2850       done
2851  done
2852IFS=$as_save_IFS
2853
2854fi
2855
2856  test -d ./--version && rmdir ./--version
2857  if test "${ac_cv_path_mkdir+set}" = set; then
2858    MKDIR_P="$ac_cv_path_mkdir -p"
2859  else
2860    # As a last resort, use the slow shell script.  Don't cache a
2861    # value for MKDIR_P within a source directory, because that will
2862    # break other packages using the cache if that directory is
2863    # removed, or if the value is a relative name.
2864    MKDIR_P="$ac_install_sh -d"
2865  fi
2866fi
2867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2868$as_echo "$MKDIR_P" >&6; }
2869
2870mkdir_p="$MKDIR_P"
2871case $mkdir_p in
2872  [\\/$]* | ?:[\\/]*) ;;
2873  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2874esac
2875
2876for ac_prog in gawk mawk nawk awk
2877do
2878  # Extract the first word of "$ac_prog", so it can be a program name with args.
2879set dummy $ac_prog; ac_word=$2
2880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2881$as_echo_n "checking for $ac_word... " >&6; }
2882if ${ac_cv_prog_AWK+:} false; then :
2883  $as_echo_n "(cached) " >&6
2884else
2885  if test -n "$AWK"; then
2886  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2887else
2888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889for as_dir in $PATH
2890do
2891  IFS=$as_save_IFS
2892  test -z "$as_dir" && as_dir=.
2893    for ac_exec_ext in '' $ac_executable_extensions; do
2894  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2895    ac_cv_prog_AWK="$ac_prog"
2896    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2897    break 2
2898  fi
2899done
2900  done
2901IFS=$as_save_IFS
2902
2903fi
2904fi
2905AWK=$ac_cv_prog_AWK
2906if test -n "$AWK"; then
2907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2908$as_echo "$AWK" >&6; }
2909else
2910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2911$as_echo "no" >&6; }
2912fi
2913
2914
2915  test -n "$AWK" && break
2916done
2917
2918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2919$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2920set x ${MAKE-make}
2921ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2922if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2923  $as_echo_n "(cached) " >&6
2924else
2925  cat >conftest.make <<\_ACEOF
2926SHELL = /bin/sh
2927all:
2928	@echo '@@@%%%=$(MAKE)=@@@%%%'
2929_ACEOF
2930# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2931case `${MAKE-make} -f conftest.make 2>/dev/null` in
2932  *@@@%%%=?*=@@@%%%*)
2933    eval ac_cv_prog_make_${ac_make}_set=yes;;
2934  *)
2935    eval ac_cv_prog_make_${ac_make}_set=no;;
2936esac
2937rm -f conftest.make
2938fi
2939if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2941$as_echo "yes" >&6; }
2942  SET_MAKE=
2943else
2944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2945$as_echo "no" >&6; }
2946  SET_MAKE="MAKE=${MAKE-make}"
2947fi
2948
2949rm -rf .tst 2>/dev/null
2950mkdir .tst 2>/dev/null
2951if test -d .tst; then
2952  am__leading_dot=.
2953else
2954  am__leading_dot=_
2955fi
2956rmdir .tst 2>/dev/null
2957
2958if test "`cd $srcdir && pwd`" != "`pwd`"; then
2959  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2960  # is not polluted with repeated "-I."
2961  am__isrc=' -I$(srcdir)'
2962  # test to see if srcdir already configured
2963  if test -f $srcdir/config.status; then
2964    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2965  fi
2966fi
2967
2968# test whether we have cygpath
2969if test -z "$CYGPATH_W"; then
2970  if (cygpath --version) >/dev/null 2>/dev/null; then
2971    CYGPATH_W='cygpath -w'
2972  else
2973    CYGPATH_W=echo
2974  fi
2975fi
2976
2977
2978# Define the identity of the package.
2979 PACKAGE='mpfr'
2980 VERSION='3.1.2'
2981
2982
2983# Some tools Automake needs.
2984
2985ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2986
2987
2988AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2989
2990
2991AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2992
2993
2994AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2995
2996
2997MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2998
2999# We need awk for the "check" target.  The system "awk" is bad on
3000# some platforms.
3001# Always define AMTAR for backward compatibility.  Yes, it's still used
3002# in the wild :-(  We should find a proper way to deprecate it ...
3003AMTAR='$${TAR-tar}'
3004
3005am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3006
3007
3008
3009
3010
3011
3012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3013$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3014    # Check whether --enable-maintainer-mode was given.
3015if test "${enable_maintainer_mode+set}" = set; then :
3016  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3017else
3018  USE_MAINTAINER_MODE=yes
3019fi
3020
3021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3022$as_echo "$USE_MAINTAINER_MODE" >&6; }
3023   if test $USE_MAINTAINER_MODE = yes; then
3024  MAINTAINER_MODE_TRUE=
3025  MAINTAINER_MODE_FALSE='#'
3026else
3027  MAINTAINER_MODE_TRUE='#'
3028  MAINTAINER_MODE_FALSE=
3029fi
3030
3031  MAINT=$MAINTAINER_MODE_TRUE
3032
3033
3034
3035
3036
3037
3038test_CFLAGS=${CFLAGS+set}
3039
3040# Make sure we can run config.sub.
3041$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3042  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3043
3044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3045$as_echo_n "checking build system type... " >&6; }
3046if ${ac_cv_build+:} false; then :
3047  $as_echo_n "(cached) " >&6
3048else
3049  ac_build_alias=$build_alias
3050test "x$ac_build_alias" = x &&
3051  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3052test "x$ac_build_alias" = x &&
3053  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3054ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3055  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3056
3057fi
3058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3059$as_echo "$ac_cv_build" >&6; }
3060case $ac_cv_build in
3061*-*-*) ;;
3062*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3063esac
3064build=$ac_cv_build
3065ac_save_IFS=$IFS; IFS='-'
3066set x $ac_cv_build
3067shift
3068build_cpu=$1
3069build_vendor=$2
3070shift; shift
3071# Remember, the first character of IFS is used to create $*,
3072# except with old shells:
3073build_os=$*
3074IFS=$ac_save_IFS
3075case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3076
3077
3078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3079$as_echo_n "checking host system type... " >&6; }
3080if ${ac_cv_host+:} false; then :
3081  $as_echo_n "(cached) " >&6
3082else
3083  if test "x$host_alias" = x; then
3084  ac_cv_host=$ac_cv_build
3085else
3086  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3087    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3088fi
3089
3090fi
3091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3092$as_echo "$ac_cv_host" >&6; }
3093case $ac_cv_host in
3094*-*-*) ;;
3095*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3096esac
3097host=$ac_cv_host
3098ac_save_IFS=$IFS; IFS='-'
3099set x $ac_cv_host
3100shift
3101host_cpu=$1
3102host_vendor=$2
3103shift; shift
3104# Remember, the first character of IFS is used to create $*,
3105# except with old shells:
3106host_os=$*
3107IFS=$ac_save_IFS
3108case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3109
3110
3111
3112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3113$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3114if ${ac_cv_path_GREP+:} false; then :
3115  $as_echo_n "(cached) " >&6
3116else
3117  if test -z "$GREP"; then
3118  ac_path_GREP_found=false
3119  # Loop through the user's path and test for each of PROGNAME-LIST
3120  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3121for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3122do
3123  IFS=$as_save_IFS
3124  test -z "$as_dir" && as_dir=.
3125    for ac_prog in grep ggrep; do
3126    for ac_exec_ext in '' $ac_executable_extensions; do
3127      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3128      as_fn_executable_p "$ac_path_GREP" || continue
3129# Check for GNU ac_path_GREP and select it if it is found.
3130  # Check for GNU $ac_path_GREP
3131case `"$ac_path_GREP" --version 2>&1` in
3132*GNU*)
3133  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3134*)
3135  ac_count=0
3136  $as_echo_n 0123456789 >"conftest.in"
3137  while :
3138  do
3139    cat "conftest.in" "conftest.in" >"conftest.tmp"
3140    mv "conftest.tmp" "conftest.in"
3141    cp "conftest.in" "conftest.nl"
3142    $as_echo 'GREP' >> "conftest.nl"
3143    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3144    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3145    as_fn_arith $ac_count + 1 && ac_count=$as_val
3146    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3147      # Best one so far, save it but keep looking for a better one
3148      ac_cv_path_GREP="$ac_path_GREP"
3149      ac_path_GREP_max=$ac_count
3150    fi
3151    # 10*(2^10) chars as input seems more than enough
3152    test $ac_count -gt 10 && break
3153  done
3154  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3155esac
3156
3157      $ac_path_GREP_found && break 3
3158    done
3159  done
3160  done
3161IFS=$as_save_IFS
3162  if test -z "$ac_cv_path_GREP"; then
3163    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3164  fi
3165else
3166  ac_cv_path_GREP=$GREP
3167fi
3168
3169fi
3170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3171$as_echo "$ac_cv_path_GREP" >&6; }
3172 GREP="$ac_cv_path_GREP"
3173
3174
3175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3176$as_echo_n "checking for egrep... " >&6; }
3177if ${ac_cv_path_EGREP+:} false; then :
3178  $as_echo_n "(cached) " >&6
3179else
3180  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3181   then ac_cv_path_EGREP="$GREP -E"
3182   else
3183     if test -z "$EGREP"; then
3184  ac_path_EGREP_found=false
3185  # Loop through the user's path and test for each of PROGNAME-LIST
3186  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3187for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3188do
3189  IFS=$as_save_IFS
3190  test -z "$as_dir" && as_dir=.
3191    for ac_prog in egrep; do
3192    for ac_exec_ext in '' $ac_executable_extensions; do
3193      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3194      as_fn_executable_p "$ac_path_EGREP" || continue
3195# Check for GNU ac_path_EGREP and select it if it is found.
3196  # Check for GNU $ac_path_EGREP
3197case `"$ac_path_EGREP" --version 2>&1` in
3198*GNU*)
3199  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3200*)
3201  ac_count=0
3202  $as_echo_n 0123456789 >"conftest.in"
3203  while :
3204  do
3205    cat "conftest.in" "conftest.in" >"conftest.tmp"
3206    mv "conftest.tmp" "conftest.in"
3207    cp "conftest.in" "conftest.nl"
3208    $as_echo 'EGREP' >> "conftest.nl"
3209    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3210    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3211    as_fn_arith $ac_count + 1 && ac_count=$as_val
3212    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3213      # Best one so far, save it but keep looking for a better one
3214      ac_cv_path_EGREP="$ac_path_EGREP"
3215      ac_path_EGREP_max=$ac_count
3216    fi
3217    # 10*(2^10) chars as input seems more than enough
3218    test $ac_count -gt 10 && break
3219  done
3220  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3221esac
3222
3223      $ac_path_EGREP_found && break 3
3224    done
3225  done
3226  done
3227IFS=$as_save_IFS
3228  if test -z "$ac_cv_path_EGREP"; then
3229    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3230  fi
3231else
3232  ac_cv_path_EGREP=$EGREP
3233fi
3234
3235   fi
3236fi
3237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3238$as_echo "$ac_cv_path_EGREP" >&6; }
3239 EGREP="$ac_cv_path_EGREP"
3240
3241
3242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3243$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3244if ${ac_cv_path_SED+:} false; then :
3245  $as_echo_n "(cached) " >&6
3246else
3247            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3248     for ac_i in 1 2 3 4 5 6 7; do
3249       ac_script="$ac_script$as_nl$ac_script"
3250     done
3251     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3252     { ac_script=; unset ac_script;}
3253     if test -z "$SED"; then
3254  ac_path_SED_found=false
3255  # Loop through the user's path and test for each of PROGNAME-LIST
3256  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3257for as_dir in $PATH
3258do
3259  IFS=$as_save_IFS
3260  test -z "$as_dir" && as_dir=.
3261    for ac_prog in sed gsed; do
3262    for ac_exec_ext in '' $ac_executable_extensions; do
3263      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3264      as_fn_executable_p "$ac_path_SED" || continue
3265# Check for GNU ac_path_SED and select it if it is found.
3266  # Check for GNU $ac_path_SED
3267case `"$ac_path_SED" --version 2>&1` in
3268*GNU*)
3269  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3270*)
3271  ac_count=0
3272  $as_echo_n 0123456789 >"conftest.in"
3273  while :
3274  do
3275    cat "conftest.in" "conftest.in" >"conftest.tmp"
3276    mv "conftest.tmp" "conftest.in"
3277    cp "conftest.in" "conftest.nl"
3278    $as_echo '' >> "conftest.nl"
3279    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3280    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3281    as_fn_arith $ac_count + 1 && ac_count=$as_val
3282    if test $ac_count -gt ${ac_path_SED_max-0}; then
3283      # Best one so far, save it but keep looking for a better one
3284      ac_cv_path_SED="$ac_path_SED"
3285      ac_path_SED_max=$ac_count
3286    fi
3287    # 10*(2^10) chars as input seems more than enough
3288    test $ac_count -gt 10 && break
3289  done
3290  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3291esac
3292
3293      $ac_path_SED_found && break 3
3294    done
3295  done
3296  done
3297IFS=$as_save_IFS
3298  if test -z "$ac_cv_path_SED"; then
3299    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3300  fi
3301else
3302  ac_cv_path_SED=$SED
3303fi
3304
3305fi
3306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3307$as_echo "$ac_cv_path_SED" >&6; }
3308 SED="$ac_cv_path_SED"
3309  rm -f conftest.sed
3310
3311
3312
3313unset gmp_lib_path GMP_CFLAGS GMP_CC
3314
3315# Check whether --with-gmp_include was given.
3316if test "${with_gmp_include+set}" = set; then :
3317  withval=$with_gmp_include; CPPFLAGS="$CPPFLAGS -I$withval"
3318fi
3319
3320
3321# Check whether --with-gmp_lib was given.
3322if test "${with_gmp_lib+set}" = set; then :
3323  withval=$with_gmp_lib;
3324   LDFLAGS="$LDFLAGS -L$withval"
3325   gmp_lib_path="$withval"
3326
3327fi
3328
3329
3330# Check whether --with-gmp was given.
3331if test "${with_gmp+set}" = set; then :
3332  withval=$with_gmp;
3333   if test -z "$with_gmp_lib" && test -z "$with_gmp_include" ; then
3334      CPPFLAGS="$CPPFLAGS -I$withval/include"
3335      LDFLAGS="$LDFLAGS -L$withval/lib"
3336      gmp_lib_path="$withval/lib"
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;}
3340as_fn_error $? "Do not use --with-gmp and --with-gmp-include/--with-gmp-lib options simultaneously.
3341See \`config.log' for more details" "$LINENO" 5; }
3342   fi
3343
3344fi
3345
3346
3347
3348# Check whether --with-gmp_build was given.
3349if test "${with_gmp_build+set}" = set; then :
3350  withval=$with_gmp_build;
3351   if test -z "$gmp_lib_path" && test -z "$with_gmp_include" ; then
3352      CPPFLAGS="$CPPFLAGS -I$withval -I$withval/tune"
3353      LDFLAGS="$LDFLAGS -L$withval -L$withval/.libs -L$withval/tune"
3354      gmp_lib_path="$withval$PATH_SEPARATOR$withval/.libs$PATH_SEPARATOR$withval/tune"
3355      if test -r $withval/Makefile ; then
3356         GMP_CFLAGS=`$SED -n 's/^CFLAGS = //p' $withval/Makefile`
3357         GMP_CC=`$SED -n 's/^CC = //p' $withval/Makefile`
3358         GMP_SOURCE=`$SED -n 's/^srcdir = *//p' $withval/Makefile`
3359         case "$GMP_SOURCE" in
3360           .)  GMP_SOURCE="" ;;
3361           /*) ;;
3362           ?*) GMP_SOURCE="$withval/$GMP_SOURCE" ;;
3363         esac
3364         if test -d "$GMP_SOURCE" ; then
3365            CPPFLAGS="$CPPFLAGS -I$GMP_SOURCE -I$GMP_SOURCE/tune"
3366         fi
3367      fi
3368      use_gmp_build=yes
3369   else
3370      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3371$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3372as_fn_error $? "Do not use --with-gmp-build and other --with-gmp options simultaneously.
3373See \`config.log' for more details" "$LINENO" 5; }
3374   fi
3375
3376fi
3377
3378
3379
3380# Check whether --with-mulhigh_size was given.
3381if test "${with_mulhigh_size+set}" = set; then :
3382  withval=$with_mulhigh_size;
3383cat >>confdefs.h <<_ACEOF
3384#define MPFR_MULHIGH_SIZE $withval
3385_ACEOF
3386
3387fi
3388
3389
3390# Check whether --enable-gmp-internals was given.
3391if test "${enable_gmp_internals+set}" = set; then :
3392  enableval=$enable_gmp_internals;  case $enableval in
3393      yes)
3394$as_echo "#define WANT_GMP_INTERNALS 1" >>confdefs.h
3395 ;;
3396      no)  ;;
3397      *) as_fn_error $? "bad value for --enable-gmp-internals: yes or no" "$LINENO" 5 ;;
3398     esac
3399fi
3400
3401
3402# Check whether --enable-assert was given.
3403if test "${enable_assert+set}" = set; then :
3404  enableval=$enable_assert;  case $enableval in
3405      yes)
3406$as_echo "#define WANT_ASSERT 1" >>confdefs.h
3407 ;;
3408      no)  ;;
3409      full)
3410$as_echo "#define WANT_ASSERT 2" >>confdefs.h
3411 ;;
3412      *) as_fn_error $? "bad value for --enable-assert: yes, no or full" "$LINENO" 5 ;;
3413     esac
3414fi
3415
3416# Check whether --enable-logging was given.
3417if test "${enable_logging+set}" = set; then :
3418  enableval=$enable_logging;  case $enableval in
3419      yes)
3420$as_echo "#define MPFR_USE_LOGGING 1" >>confdefs.h
3421 ;;
3422      no)  ;;
3423      *)   as_fn_error $? "bad value for --enable-logging: yes or no" "$LINENO" 5 ;;
3424     esac
3425fi
3426
3427# Check whether --enable-thread-safe was given.
3428if test "${enable_thread_safe+set}" = set; then :
3429  enableval=$enable_thread_safe;  case $enableval in
3430      yes) ;;
3431      no)  ;;
3432      *)   as_fn_error $? "bad value for --enable-thread-safe: yes or no" "$LINENO" 5 ;;
3433     esac
3434fi
3435
3436# Check whether --enable-warnings was given.
3437if test "${enable_warnings+set}" = set; then :
3438  enableval=$enable_warnings;  case $enableval in
3439      yes)
3440$as_echo "#define MPFR_USE_WARNINGS 1" >>confdefs.h
3441 ;;
3442      no)  ;;
3443      *)   as_fn_error $? "bad value for --enable-warnings: yes or no" "$LINENO" 5 ;;
3444     esac
3445fi
3446
3447
3448# Check whether --enable-tests-timeout was given.
3449if test "${enable_tests_timeout+set}" = set; then :
3450  enableval=$enable_tests_timeout;  case $enableval in
3451      no)   ;;
3452      yes)
3453$as_echo "#define MPFR_TESTS_TIMEOUT 0" >>confdefs.h
3454 ;;
3455      [0-9]|[0-9][0-9]|[0-9][0-9][0-9]|[0-9][0-9][0-9][0-9])
3456
3457cat >>confdefs.h <<_ACEOF
3458#define MPFR_TESTS_TIMEOUT $enableval
3459_ACEOF
3460 ;;
3461      *)    as_fn_error $? "bad value for --enable-tests-timeout" "$LINENO" 5 ;;
3462     esac
3463fi
3464
3465
3466
3467
3468if test -n "$CFLAGS" || test -n "$CC" ; then
3469 user_redefine_cc=yes
3470fi
3471
3472
3473if test -z "$user_redefine_cc" && test "$cross_compiling" != yes ; then
3474
3475if test -z "$GMP_CC$GMP_CFLAGS" ; then
3476   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CC and CFLAGS in gmp.h" >&5
3477$as_echo_n "checking for CC and CFLAGS in gmp.h... " >&6; }
3478   GMP_CC=__GMP_CC
3479   GMP_CFLAGS=__GMP_CFLAGS
3480   for cpp in /lib/cpp gcc cc c99
3481   do
3482     test $cpp = /lib/cpp || cpp="$cpp -E"
3483     echo foo > conftest.c
3484     if $cpp $CPPFLAGS conftest.c > /dev/null 2> /dev/null ; then
3485       # Get CC
3486       echo "#include \"gmp.h\"" >  conftest.c
3487       echo "MPFR_OPTION __GMP_CC"           >> conftest.c
3488       GMP_CC=`$cpp $CPPFLAGS conftest.c 2> /dev/null | $EGREP MPFR_OPTION | $SED -e 's/MPFR_OPTION //g;s/ *" *//g'`
3489       # Get CFLAGS
3490       echo "#include \"gmp.h\"" >  conftest.c
3491       echo "MPFR_OPTION __GMP_CFLAGS"           >> conftest.c
3492       unset rmpedantic
3493       test "$enable_logging" = yes && rmpedantic='s/[ "]-pedantic[ "]/ /g;'
3494       GMP_CFLAGS=`$cpp $CPPFLAGS conftest.c 2> /dev/null | $EGREP MPFR_OPTION | $SED -e "$rmpedantic"'s/MPFR_OPTION //g;s/ *" *//g'`
3495       break
3496     fi
3497   done
3498   rm -f conftest*
3499   if test "x$GMP_CC" = "x__GMP_CC" || test "x$GMP_CFLAGS" = "x__GMP_CFLAGS" ; then
3500      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3501$as_echo "no" >&6; }
3502      GMP_CFLAGS=
3503      GMP_CC=
3504   else
3505      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CC=$GMP_CC CFLAGS=$GMP_CFLAGS" >&5
3506$as_echo "yes CC=$GMP_CC CFLAGS=$GMP_CFLAGS" >&6; }
3507   fi
3508fi
3509
3510if test -n "$GMP_CC$GMP_CFLAGS" ; then
3511   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CC=$GMP_CC and CFLAGS=$GMP_CFLAGS" >&5
3512$as_echo_n "checking for CC=$GMP_CC and CFLAGS=$GMP_CFLAGS... " >&6; }
3513   echo "int main (void) { return 0; }" > conftest.c
3514   if $GMP_CC $GMP_CFLAGS -o conftest conftest.c 2> /dev/null ; then
3515     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3516$as_echo "yes" >&6; }
3517     CFLAGS=$GMP_CFLAGS
3518     CC=$GMP_CC
3519   else
3520     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3521$as_echo "no" >&6; }
3522   fi
3523   rm -f conftest*
3524fi
3525
3526fi
3527
3528
3529ac_ext=c
3530ac_cpp='$CPP $CPPFLAGS'
3531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3533ac_compiler_gnu=$ac_cv_c_compiler_gnu
3534if test -n "$ac_tool_prefix"; then
3535  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3536set dummy ${ac_tool_prefix}gcc; ac_word=$2
3537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3538$as_echo_n "checking for $ac_word... " >&6; }
3539if ${ac_cv_prog_CC+:} false; then :
3540  $as_echo_n "(cached) " >&6
3541else
3542  if test -n "$CC"; then
3543  ac_cv_prog_CC="$CC" # Let the user override the test.
3544else
3545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546for as_dir in $PATH
3547do
3548  IFS=$as_save_IFS
3549  test -z "$as_dir" && as_dir=.
3550    for ac_exec_ext in '' $ac_executable_extensions; do
3551  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3552    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3553    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3554    break 2
3555  fi
3556done
3557  done
3558IFS=$as_save_IFS
3559
3560fi
3561fi
3562CC=$ac_cv_prog_CC
3563if test -n "$CC"; then
3564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3565$as_echo "$CC" >&6; }
3566else
3567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568$as_echo "no" >&6; }
3569fi
3570
3571
3572fi
3573if test -z "$ac_cv_prog_CC"; then
3574  ac_ct_CC=$CC
3575  # Extract the first word of "gcc", so it can be a program name with args.
3576set dummy gcc; ac_word=$2
3577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3578$as_echo_n "checking for $ac_word... " >&6; }
3579if ${ac_cv_prog_ac_ct_CC+:} false; then :
3580  $as_echo_n "(cached) " >&6
3581else
3582  if test -n "$ac_ct_CC"; then
3583  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3584else
3585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3586for as_dir in $PATH
3587do
3588  IFS=$as_save_IFS
3589  test -z "$as_dir" && as_dir=.
3590    for ac_exec_ext in '' $ac_executable_extensions; do
3591  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3592    ac_cv_prog_ac_ct_CC="gcc"
3593    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3594    break 2
3595  fi
3596done
3597  done
3598IFS=$as_save_IFS
3599
3600fi
3601fi
3602ac_ct_CC=$ac_cv_prog_ac_ct_CC
3603if test -n "$ac_ct_CC"; then
3604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3605$as_echo "$ac_ct_CC" >&6; }
3606else
3607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3608$as_echo "no" >&6; }
3609fi
3610
3611  if test "x$ac_ct_CC" = x; then
3612    CC=""
3613  else
3614    case $cross_compiling:$ac_tool_warned in
3615yes:)
3616{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3617$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3618ac_tool_warned=yes ;;
3619esac
3620    CC=$ac_ct_CC
3621  fi
3622else
3623  CC="$ac_cv_prog_CC"
3624fi
3625
3626if test -z "$CC"; then
3627          if test -n "$ac_tool_prefix"; then
3628    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3629set dummy ${ac_tool_prefix}cc; ac_word=$2
3630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3631$as_echo_n "checking for $ac_word... " >&6; }
3632if ${ac_cv_prog_CC+:} false; then :
3633  $as_echo_n "(cached) " >&6
3634else
3635  if test -n "$CC"; then
3636  ac_cv_prog_CC="$CC" # Let the user override the test.
3637else
3638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3639for as_dir in $PATH
3640do
3641  IFS=$as_save_IFS
3642  test -z "$as_dir" && as_dir=.
3643    for ac_exec_ext in '' $ac_executable_extensions; do
3644  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3645    ac_cv_prog_CC="${ac_tool_prefix}cc"
3646    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3647    break 2
3648  fi
3649done
3650  done
3651IFS=$as_save_IFS
3652
3653fi
3654fi
3655CC=$ac_cv_prog_CC
3656if test -n "$CC"; then
3657  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3658$as_echo "$CC" >&6; }
3659else
3660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3661$as_echo "no" >&6; }
3662fi
3663
3664
3665  fi
3666fi
3667if test -z "$CC"; then
3668  # Extract the first word of "cc", so it can be a program name with args.
3669set dummy cc; ac_word=$2
3670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3671$as_echo_n "checking for $ac_word... " >&6; }
3672if ${ac_cv_prog_CC+:} false; then :
3673  $as_echo_n "(cached) " >&6
3674else
3675  if test -n "$CC"; then
3676  ac_cv_prog_CC="$CC" # Let the user override the test.
3677else
3678  ac_prog_rejected=no
3679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3680for as_dir in $PATH
3681do
3682  IFS=$as_save_IFS
3683  test -z "$as_dir" && as_dir=.
3684    for ac_exec_ext in '' $ac_executable_extensions; do
3685  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3686    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3687       ac_prog_rejected=yes
3688       continue
3689     fi
3690    ac_cv_prog_CC="cc"
3691    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3692    break 2
3693  fi
3694done
3695  done
3696IFS=$as_save_IFS
3697
3698if test $ac_prog_rejected = yes; then
3699  # We found a bogon in the path, so make sure we never use it.
3700  set dummy $ac_cv_prog_CC
3701  shift
3702  if test $# != 0; then
3703    # We chose a different compiler from the bogus one.
3704    # However, it has the same basename, so the bogon will be chosen
3705    # first if we set CC to just the basename; use the full file name.
3706    shift
3707    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3708  fi
3709fi
3710fi
3711fi
3712CC=$ac_cv_prog_CC
3713if test -n "$CC"; then
3714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3715$as_echo "$CC" >&6; }
3716else
3717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3718$as_echo "no" >&6; }
3719fi
3720
3721
3722fi
3723if test -z "$CC"; then
3724  if test -n "$ac_tool_prefix"; then
3725  for ac_prog in cl.exe
3726  do
3727    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3728set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3730$as_echo_n "checking for $ac_word... " >&6; }
3731if ${ac_cv_prog_CC+:} false; then :
3732  $as_echo_n "(cached) " >&6
3733else
3734  if test -n "$CC"; then
3735  ac_cv_prog_CC="$CC" # Let the user override the test.
3736else
3737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3738for as_dir in $PATH
3739do
3740  IFS=$as_save_IFS
3741  test -z "$as_dir" && as_dir=.
3742    for ac_exec_ext in '' $ac_executable_extensions; do
3743  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3744    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3745    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3746    break 2
3747  fi
3748done
3749  done
3750IFS=$as_save_IFS
3751
3752fi
3753fi
3754CC=$ac_cv_prog_CC
3755if test -n "$CC"; then
3756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3757$as_echo "$CC" >&6; }
3758else
3759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3760$as_echo "no" >&6; }
3761fi
3762
3763
3764    test -n "$CC" && break
3765  done
3766fi
3767if test -z "$CC"; then
3768  ac_ct_CC=$CC
3769  for ac_prog in cl.exe
3770do
3771  # Extract the first word of "$ac_prog", so it can be a program name with args.
3772set dummy $ac_prog; ac_word=$2
3773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3774$as_echo_n "checking for $ac_word... " >&6; }
3775if ${ac_cv_prog_ac_ct_CC+:} false; then :
3776  $as_echo_n "(cached) " >&6
3777else
3778  if test -n "$ac_ct_CC"; then
3779  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3780else
3781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3782for as_dir in $PATH
3783do
3784  IFS=$as_save_IFS
3785  test -z "$as_dir" && as_dir=.
3786    for ac_exec_ext in '' $ac_executable_extensions; do
3787  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3788    ac_cv_prog_ac_ct_CC="$ac_prog"
3789    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3790    break 2
3791  fi
3792done
3793  done
3794IFS=$as_save_IFS
3795
3796fi
3797fi
3798ac_ct_CC=$ac_cv_prog_ac_ct_CC
3799if test -n "$ac_ct_CC"; then
3800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3801$as_echo "$ac_ct_CC" >&6; }
3802else
3803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3804$as_echo "no" >&6; }
3805fi
3806
3807
3808  test -n "$ac_ct_CC" && break
3809done
3810
3811  if test "x$ac_ct_CC" = x; then
3812    CC=""
3813  else
3814    case $cross_compiling:$ac_tool_warned in
3815yes:)
3816{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3817$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3818ac_tool_warned=yes ;;
3819esac
3820    CC=$ac_ct_CC
3821  fi
3822fi
3823
3824fi
3825
3826
3827test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3828$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3829as_fn_error $? "no acceptable C compiler found in \$PATH
3830See \`config.log' for more details" "$LINENO" 5; }
3831
3832# Provide some information about the compiler.
3833$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3834set X $ac_compile
3835ac_compiler=$2
3836for ac_option in --version -v -V -qversion; do
3837  { { ac_try="$ac_compiler $ac_option >&5"
3838case "(($ac_try" in
3839  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3840  *) ac_try_echo=$ac_try;;
3841esac
3842eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3843$as_echo "$ac_try_echo"; } >&5
3844  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3845  ac_status=$?
3846  if test -s conftest.err; then
3847    sed '10a\
3848... rest of stderr output deleted ...
3849         10q' conftest.err >conftest.er1
3850    cat conftest.er1 >&5
3851  fi
3852  rm -f conftest.er1 conftest.err
3853  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3854  test $ac_status = 0; }
3855done
3856
3857cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858/* end confdefs.h.  */
3859
3860int
3861main ()
3862{
3863
3864  ;
3865  return 0;
3866}
3867_ACEOF
3868ac_clean_files_save=$ac_clean_files
3869ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3870# Try to create an executable without -o first, disregard a.out.
3871# It will help us diagnose broken compilers, and finding out an intuition
3872# of exeext.
3873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3874$as_echo_n "checking whether the C compiler works... " >&6; }
3875ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3876
3877# The possible output files:
3878ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3879
3880ac_rmfiles=
3881for ac_file in $ac_files
3882do
3883  case $ac_file in
3884    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3885    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3886  esac
3887done
3888rm -f $ac_rmfiles
3889
3890if { { ac_try="$ac_link_default"
3891case "(($ac_try" in
3892  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893  *) ac_try_echo=$ac_try;;
3894esac
3895eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3896$as_echo "$ac_try_echo"; } >&5
3897  (eval "$ac_link_default") 2>&5
3898  ac_status=$?
3899  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3900  test $ac_status = 0; }; then :
3901  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3902# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3903# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3904# so that the user can short-circuit this test for compilers unknown to
3905# Autoconf.
3906for ac_file in $ac_files ''
3907do
3908  test -f "$ac_file" || continue
3909  case $ac_file in
3910    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3911	;;
3912    [ab].out )
3913	# We found the default executable, but exeext='' is most
3914	# certainly right.
3915	break;;
3916    *.* )
3917	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3918	then :; else
3919	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3920	fi
3921	# We set ac_cv_exeext here because the later test for it is not
3922	# safe: cross compilers may not add the suffix if given an `-o'
3923	# argument, so we may need to know it at that point already.
3924	# Even if this section looks crufty: it has the advantage of
3925	# actually working.
3926	break;;
3927    * )
3928	break;;
3929  esac
3930done
3931test "$ac_cv_exeext" = no && ac_cv_exeext=
3932
3933else
3934  ac_file=''
3935fi
3936if test -z "$ac_file"; then :
3937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3938$as_echo "no" >&6; }
3939$as_echo "$as_me: failed program was:" >&5
3940sed 's/^/| /' conftest.$ac_ext >&5
3941
3942{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3943$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3944as_fn_error 77 "C compiler cannot create executables
3945See \`config.log' for more details" "$LINENO" 5; }
3946else
3947  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3948$as_echo "yes" >&6; }
3949fi
3950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3951$as_echo_n "checking for C compiler default output file name... " >&6; }
3952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3953$as_echo "$ac_file" >&6; }
3954ac_exeext=$ac_cv_exeext
3955
3956rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3957ac_clean_files=$ac_clean_files_save
3958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3959$as_echo_n "checking for suffix of executables... " >&6; }
3960if { { ac_try="$ac_link"
3961case "(($ac_try" in
3962  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3963  *) ac_try_echo=$ac_try;;
3964esac
3965eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3966$as_echo "$ac_try_echo"; } >&5
3967  (eval "$ac_link") 2>&5
3968  ac_status=$?
3969  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3970  test $ac_status = 0; }; then :
3971  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3972# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3973# work properly (i.e., refer to `conftest.exe'), while it won't with
3974# `rm'.
3975for ac_file in conftest.exe conftest conftest.*; do
3976  test -f "$ac_file" || continue
3977  case $ac_file in
3978    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3979    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3980	  break;;
3981    * ) break;;
3982  esac
3983done
3984else
3985  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3986$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3987as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3988See \`config.log' for more details" "$LINENO" 5; }
3989fi
3990rm -f conftest conftest$ac_cv_exeext
3991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3992$as_echo "$ac_cv_exeext" >&6; }
3993
3994rm -f conftest.$ac_ext
3995EXEEXT=$ac_cv_exeext
3996ac_exeext=$EXEEXT
3997cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3998/* end confdefs.h.  */
3999#include <stdio.h>
4000int
4001main ()
4002{
4003FILE *f = fopen ("conftest.out", "w");
4004 return ferror (f) || fclose (f) != 0;
4005
4006  ;
4007  return 0;
4008}
4009_ACEOF
4010ac_clean_files="$ac_clean_files conftest.out"
4011# Check that the compiler produces executables we can run.  If not, either
4012# the compiler is broken, or we cross compile.
4013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4014$as_echo_n "checking whether we are cross compiling... " >&6; }
4015if test "$cross_compiling" != yes; then
4016  { { ac_try="$ac_link"
4017case "(($ac_try" in
4018  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4019  *) ac_try_echo=$ac_try;;
4020esac
4021eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4022$as_echo "$ac_try_echo"; } >&5
4023  (eval "$ac_link") 2>&5
4024  ac_status=$?
4025  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4026  test $ac_status = 0; }
4027  if { ac_try='./conftest$ac_cv_exeext'
4028  { { case "(($ac_try" in
4029  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4030  *) ac_try_echo=$ac_try;;
4031esac
4032eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4033$as_echo "$ac_try_echo"; } >&5
4034  (eval "$ac_try") 2>&5
4035  ac_status=$?
4036  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4037  test $ac_status = 0; }; }; then
4038    cross_compiling=no
4039  else
4040    if test "$cross_compiling" = maybe; then
4041	cross_compiling=yes
4042    else
4043	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4044$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4045as_fn_error $? "cannot run C compiled programs.
4046If you meant to cross compile, use \`--host'.
4047See \`config.log' for more details" "$LINENO" 5; }
4048    fi
4049  fi
4050fi
4051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4052$as_echo "$cross_compiling" >&6; }
4053
4054rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4055ac_clean_files=$ac_clean_files_save
4056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4057$as_echo_n "checking for suffix of object files... " >&6; }
4058if ${ac_cv_objext+:} false; then :
4059  $as_echo_n "(cached) " >&6
4060else
4061  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062/* end confdefs.h.  */
4063
4064int
4065main ()
4066{
4067
4068  ;
4069  return 0;
4070}
4071_ACEOF
4072rm -f conftest.o conftest.obj
4073if { { ac_try="$ac_compile"
4074case "(($ac_try" in
4075  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076  *) ac_try_echo=$ac_try;;
4077esac
4078eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4079$as_echo "$ac_try_echo"; } >&5
4080  (eval "$ac_compile") 2>&5
4081  ac_status=$?
4082  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4083  test $ac_status = 0; }; then :
4084  for ac_file in conftest.o conftest.obj conftest.*; do
4085  test -f "$ac_file" || continue;
4086  case $ac_file in
4087    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4088    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4089       break;;
4090  esac
4091done
4092else
4093  $as_echo "$as_me: failed program was:" >&5
4094sed 's/^/| /' conftest.$ac_ext >&5
4095
4096{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4097$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4098as_fn_error $? "cannot compute suffix of object files: cannot compile
4099See \`config.log' for more details" "$LINENO" 5; }
4100fi
4101rm -f conftest.$ac_cv_objext conftest.$ac_ext
4102fi
4103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4104$as_echo "$ac_cv_objext" >&6; }
4105OBJEXT=$ac_cv_objext
4106ac_objext=$OBJEXT
4107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4108$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4109if ${ac_cv_c_compiler_gnu+:} false; then :
4110  $as_echo_n "(cached) " >&6
4111else
4112  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4113/* end confdefs.h.  */
4114
4115int
4116main ()
4117{
4118#ifndef __GNUC__
4119       choke me
4120#endif
4121
4122  ;
4123  return 0;
4124}
4125_ACEOF
4126if ac_fn_c_try_compile "$LINENO"; then :
4127  ac_compiler_gnu=yes
4128else
4129  ac_compiler_gnu=no
4130fi
4131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4132ac_cv_c_compiler_gnu=$ac_compiler_gnu
4133
4134fi
4135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4136$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4137if test $ac_compiler_gnu = yes; then
4138  GCC=yes
4139else
4140  GCC=
4141fi
4142ac_test_CFLAGS=${CFLAGS+set}
4143ac_save_CFLAGS=$CFLAGS
4144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4145$as_echo_n "checking whether $CC accepts -g... " >&6; }
4146if ${ac_cv_prog_cc_g+:} false; then :
4147  $as_echo_n "(cached) " >&6
4148else
4149  ac_save_c_werror_flag=$ac_c_werror_flag
4150   ac_c_werror_flag=yes
4151   ac_cv_prog_cc_g=no
4152   CFLAGS="-g"
4153   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4154/* end confdefs.h.  */
4155
4156int
4157main ()
4158{
4159
4160  ;
4161  return 0;
4162}
4163_ACEOF
4164if ac_fn_c_try_compile "$LINENO"; then :
4165  ac_cv_prog_cc_g=yes
4166else
4167  CFLAGS=""
4168      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4169/* end confdefs.h.  */
4170
4171int
4172main ()
4173{
4174
4175  ;
4176  return 0;
4177}
4178_ACEOF
4179if ac_fn_c_try_compile "$LINENO"; then :
4180
4181else
4182  ac_c_werror_flag=$ac_save_c_werror_flag
4183	 CFLAGS="-g"
4184	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4185/* end confdefs.h.  */
4186
4187int
4188main ()
4189{
4190
4191  ;
4192  return 0;
4193}
4194_ACEOF
4195if ac_fn_c_try_compile "$LINENO"; then :
4196  ac_cv_prog_cc_g=yes
4197fi
4198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4199fi
4200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4201fi
4202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4203   ac_c_werror_flag=$ac_save_c_werror_flag
4204fi
4205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4206$as_echo "$ac_cv_prog_cc_g" >&6; }
4207if test "$ac_test_CFLAGS" = set; then
4208  CFLAGS=$ac_save_CFLAGS
4209elif test $ac_cv_prog_cc_g = yes; then
4210  if test "$GCC" = yes; then
4211    CFLAGS="-g -O2"
4212  else
4213    CFLAGS="-g"
4214  fi
4215else
4216  if test "$GCC" = yes; then
4217    CFLAGS="-O2"
4218  else
4219    CFLAGS=
4220  fi
4221fi
4222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4223$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4224if ${ac_cv_prog_cc_c89+:} false; then :
4225  $as_echo_n "(cached) " >&6
4226else
4227  ac_cv_prog_cc_c89=no
4228ac_save_CC=$CC
4229cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4230/* end confdefs.h.  */
4231#include <stdarg.h>
4232#include <stdio.h>
4233struct stat;
4234/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4235struct buf { int x; };
4236FILE * (*rcsopen) (struct buf *, struct stat *, int);
4237static char *e (p, i)
4238     char **p;
4239     int i;
4240{
4241  return p[i];
4242}
4243static char *f (char * (*g) (char **, int), char **p, ...)
4244{
4245  char *s;
4246  va_list v;
4247  va_start (v,p);
4248  s = g (p, va_arg (v,int));
4249  va_end (v);
4250  return s;
4251}
4252
4253/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4254   function prototypes and stuff, but not '\xHH' hex character constants.
4255   These don't provoke an error unfortunately, instead are silently treated
4256   as 'x'.  The following induces an error, until -std is added to get
4257   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4258   array size at least.  It's necessary to write '\x00'==0 to get something
4259   that's true only with -std.  */
4260int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4261
4262/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4263   inside strings and character constants.  */
4264#define FOO(x) 'x'
4265int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4266
4267int test (int i, double x);
4268struct s1 {int (*f) (int a);};
4269struct s2 {int (*f) (double a);};
4270int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4271int argc;
4272char **argv;
4273int
4274main ()
4275{
4276return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4277  ;
4278  return 0;
4279}
4280_ACEOF
4281for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4282	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4283do
4284  CC="$ac_save_CC $ac_arg"
4285  if ac_fn_c_try_compile "$LINENO"; then :
4286  ac_cv_prog_cc_c89=$ac_arg
4287fi
4288rm -f core conftest.err conftest.$ac_objext
4289  test "x$ac_cv_prog_cc_c89" != "xno" && break
4290done
4291rm -f conftest.$ac_ext
4292CC=$ac_save_CC
4293
4294fi
4295# AC_CACHE_VAL
4296case "x$ac_cv_prog_cc_c89" in
4297  x)
4298    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4299$as_echo "none needed" >&6; } ;;
4300  xno)
4301    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4302$as_echo "unsupported" >&6; } ;;
4303  *)
4304    CC="$CC $ac_cv_prog_cc_c89"
4305    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4306$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4307esac
4308if test "x$ac_cv_prog_cc_c89" != xno; then :
4309
4310fi
4311
4312ac_ext=c
4313ac_cpp='$CPP $CPPFLAGS'
4314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4316ac_compiler_gnu=$ac_cv_c_compiler_gnu
4317DEPDIR="${am__leading_dot}deps"
4318
4319ac_config_commands="$ac_config_commands depfiles"
4320
4321
4322am_make=${MAKE-make}
4323cat > confinc << 'END'
4324am__doit:
4325	@echo this is the am__doit target
4326.PHONY: am__doit
4327END
4328# If we don't find an include directive, just comment out the code.
4329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4330$as_echo_n "checking for style of include used by $am_make... " >&6; }
4331am__include="#"
4332am__quote=
4333_am_result=none
4334# First try GNU make style include.
4335echo "include confinc" > confmf
4336# Ignore all kinds of additional output from `make'.
4337case `$am_make -s -f confmf 2> /dev/null` in #(
4338*the\ am__doit\ target*)
4339  am__include=include
4340  am__quote=
4341  _am_result=GNU
4342  ;;
4343esac
4344# Now try BSD make style include.
4345if test "$am__include" = "#"; then
4346   echo '.include "confinc"' > confmf
4347   case `$am_make -s -f confmf 2> /dev/null` in #(
4348   *the\ am__doit\ target*)
4349     am__include=.include
4350     am__quote="\""
4351     _am_result=BSD
4352     ;;
4353   esac
4354fi
4355
4356
4357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4358$as_echo "$_am_result" >&6; }
4359rm -f confinc confmf
4360
4361# Check whether --enable-dependency-tracking was given.
4362if test "${enable_dependency_tracking+set}" = set; then :
4363  enableval=$enable_dependency_tracking;
4364fi
4365
4366if test "x$enable_dependency_tracking" != xno; then
4367  am_depcomp="$ac_aux_dir/depcomp"
4368  AMDEPBACKSLASH='\'
4369  am__nodep='_no'
4370fi
4371 if test "x$enable_dependency_tracking" != xno; then
4372  AMDEP_TRUE=
4373  AMDEP_FALSE='#'
4374else
4375  AMDEP_TRUE='#'
4376  AMDEP_FALSE=
4377fi
4378
4379
4380
4381depcc="$CC"   am_compiler_list=
4382
4383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4384$as_echo_n "checking dependency style of $depcc... " >&6; }
4385if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4386  $as_echo_n "(cached) " >&6
4387else
4388  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4389  # We make a subdir and do the tests there.  Otherwise we can end up
4390  # making bogus files that we don't know about and never remove.  For
4391  # instance it was reported that on HP-UX the gcc test will end up
4392  # making a dummy file named `D' -- because `-MD' means `put the output
4393  # in D'.
4394  rm -rf conftest.dir
4395  mkdir conftest.dir
4396  # Copy depcomp to subdir because otherwise we won't find it if we're
4397  # using a relative directory.
4398  cp "$am_depcomp" conftest.dir
4399  cd conftest.dir
4400  # We will build objects and dependencies in a subdirectory because
4401  # it helps to detect inapplicable dependency modes.  For instance
4402  # both Tru64's cc and ICC support -MD to output dependencies as a
4403  # side effect of compilation, but ICC will put the dependencies in
4404  # the current directory while Tru64 will put them in the object
4405  # directory.
4406  mkdir sub
4407
4408  am_cv_CC_dependencies_compiler_type=none
4409  if test "$am_compiler_list" = ""; then
4410     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4411  fi
4412  am__universal=false
4413  case " $depcc " in #(
4414     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4415     esac
4416
4417  for depmode in $am_compiler_list; do
4418    # Setup a source with many dependencies, because some compilers
4419    # like to wrap large dependency lists on column 80 (with \), and
4420    # we should not choose a depcomp mode which is confused by this.
4421    #
4422    # We need to recreate these files for each test, as the compiler may
4423    # overwrite some of them when testing with obscure command lines.
4424    # This happens at least with the AIX C compiler.
4425    : > sub/conftest.c
4426    for i in 1 2 3 4 5 6; do
4427      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4428      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4429      # Solaris 8's {/usr,}/bin/sh.
4430      touch sub/conftst$i.h
4431    done
4432    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4433
4434    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4435    # mode.  It turns out that the SunPro C++ compiler does not properly
4436    # handle `-M -o', and we need to detect this.  Also, some Intel
4437    # versions had trouble with output in subdirs
4438    am__obj=sub/conftest.${OBJEXT-o}
4439    am__minus_obj="-o $am__obj"
4440    case $depmode in
4441    gcc)
4442      # This depmode causes a compiler race in universal mode.
4443      test "$am__universal" = false || continue
4444      ;;
4445    nosideeffect)
4446      # after this tag, mechanisms are not by side-effect, so they'll
4447      # only be used when explicitly requested
4448      if test "x$enable_dependency_tracking" = xyes; then
4449	continue
4450      else
4451	break
4452      fi
4453      ;;
4454    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4455      # This compiler won't grok `-c -o', but also, the minuso test has
4456      # not run yet.  These depmodes are late enough in the game, and
4457      # so weak that their functioning should not be impacted.
4458      am__obj=conftest.${OBJEXT-o}
4459      am__minus_obj=
4460      ;;
4461    none) break ;;
4462    esac
4463    if depmode=$depmode \
4464       source=sub/conftest.c object=$am__obj \
4465       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4466       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4467         >/dev/null 2>conftest.err &&
4468       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4469       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4470       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4471       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4472      # icc doesn't choke on unknown options, it will just issue warnings
4473      # or remarks (even with -Werror).  So we grep stderr for any message
4474      # that says an option was ignored or not supported.
4475      # When given -MP, icc 7.0 and 7.1 complain thusly:
4476      #   icc: Command line warning: ignoring option '-M'; no argument required
4477      # The diagnosis changed in icc 8.0:
4478      #   icc: Command line remark: option '-MP' not supported
4479      if (grep 'ignoring option' conftest.err ||
4480          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4481        am_cv_CC_dependencies_compiler_type=$depmode
4482        break
4483      fi
4484    fi
4485  done
4486
4487  cd ..
4488  rm -rf conftest.dir
4489else
4490  am_cv_CC_dependencies_compiler_type=none
4491fi
4492
4493fi
4494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4495$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4496CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4497
4498 if
4499  test "x$enable_dependency_tracking" != xno \
4500  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4501  am__fastdepCC_TRUE=
4502  am__fastdepCC_FALSE='#'
4503else
4504  am__fastdepCC_TRUE='#'
4505  am__fastdepCC_FALSE=
4506fi
4507
4508
4509ac_ext=c
4510ac_cpp='$CPP $CPPFLAGS'
4511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4513ac_compiler_gnu=$ac_cv_c_compiler_gnu
4514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4515$as_echo_n "checking how to run the C preprocessor... " >&6; }
4516# On Suns, sometimes $CPP names a directory.
4517if test -n "$CPP" && test -d "$CPP"; then
4518  CPP=
4519fi
4520if test -z "$CPP"; then
4521  if ${ac_cv_prog_CPP+:} false; then :
4522  $as_echo_n "(cached) " >&6
4523else
4524      # Double quotes because CPP needs to be expanded
4525    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4526    do
4527      ac_preproc_ok=false
4528for ac_c_preproc_warn_flag in '' yes
4529do
4530  # Use a header file that comes with gcc, so configuring glibc
4531  # with a fresh cross-compiler works.
4532  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4533  # <limits.h> exists even on freestanding compilers.
4534  # On the NeXT, cc -E runs the code through the compiler's parser,
4535  # not just through cpp. "Syntax error" is here to catch this case.
4536  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4537/* end confdefs.h.  */
4538#ifdef __STDC__
4539# include <limits.h>
4540#else
4541# include <assert.h>
4542#endif
4543		     Syntax error
4544_ACEOF
4545if ac_fn_c_try_cpp "$LINENO"; then :
4546
4547else
4548  # Broken: fails on valid input.
4549continue
4550fi
4551rm -f conftest.err conftest.i conftest.$ac_ext
4552
4553  # OK, works on sane cases.  Now check whether nonexistent headers
4554  # can be detected and how.
4555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4556/* end confdefs.h.  */
4557#include <ac_nonexistent.h>
4558_ACEOF
4559if ac_fn_c_try_cpp "$LINENO"; then :
4560  # Broken: success on invalid input.
4561continue
4562else
4563  # Passes both tests.
4564ac_preproc_ok=:
4565break
4566fi
4567rm -f conftest.err conftest.i conftest.$ac_ext
4568
4569done
4570# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4571rm -f conftest.i conftest.err conftest.$ac_ext
4572if $ac_preproc_ok; then :
4573  break
4574fi
4575
4576    done
4577    ac_cv_prog_CPP=$CPP
4578
4579fi
4580  CPP=$ac_cv_prog_CPP
4581else
4582  ac_cv_prog_CPP=$CPP
4583fi
4584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4585$as_echo "$CPP" >&6; }
4586ac_preproc_ok=false
4587for ac_c_preproc_warn_flag in '' yes
4588do
4589  # Use a header file that comes with gcc, so configuring glibc
4590  # with a fresh cross-compiler works.
4591  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4592  # <limits.h> exists even on freestanding compilers.
4593  # On the NeXT, cc -E runs the code through the compiler's parser,
4594  # not just through cpp. "Syntax error" is here to catch this case.
4595  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4596/* end confdefs.h.  */
4597#ifdef __STDC__
4598# include <limits.h>
4599#else
4600# include <assert.h>
4601#endif
4602		     Syntax error
4603_ACEOF
4604if ac_fn_c_try_cpp "$LINENO"; then :
4605
4606else
4607  # Broken: fails on valid input.
4608continue
4609fi
4610rm -f conftest.err conftest.i conftest.$ac_ext
4611
4612  # OK, works on sane cases.  Now check whether nonexistent headers
4613  # can be detected and how.
4614  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4615/* end confdefs.h.  */
4616#include <ac_nonexistent.h>
4617_ACEOF
4618if ac_fn_c_try_cpp "$LINENO"; then :
4619  # Broken: success on invalid input.
4620continue
4621else
4622  # Passes both tests.
4623ac_preproc_ok=:
4624break
4625fi
4626rm -f conftest.err conftest.i conftest.$ac_ext
4627
4628done
4629# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4630rm -f conftest.i conftest.err conftest.$ac_ext
4631if $ac_preproc_ok; then :
4632
4633else
4634  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4635$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4636as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4637See \`config.log' for more details" "$LINENO" 5; }
4638fi
4639
4640ac_ext=c
4641ac_cpp='$CPP $CPPFLAGS'
4642ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4643ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4644ac_compiler_gnu=$ac_cv_c_compiler_gnu
4645
4646ac_ext=c
4647ac_cpp='$CPP $CPPFLAGS'
4648ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4649ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4650ac_compiler_gnu=$ac_cv_c_compiler_gnu
4651
4652
4653
4654# Check whether --enable-decimal-float was given.
4655if test "${enable_decimal_float+set}" = set; then :
4656  enableval=$enable_decimal_float;  case $enableval in
4657      yes)
4658$as_echo "#define MPFR_WANT_DECIMAL_FLOATS 1" >>confdefs.h
4659
4660           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler knows _Decimal64" >&5
4661$as_echo_n "checking if compiler knows _Decimal64... " >&6; }
4662           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4663/* end confdefs.h.  */
4664_Decimal64 x;
4665int
4666main ()
4667{
4668
4669  ;
4670  return 0;
4671}
4672_ACEOF
4673if ac_fn_c_try_compile "$LINENO"; then :
4674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4675$as_echo "yes" >&6; }
4676               if test "$use_gmp_build" != yes ; then
4677                  as_fn_error $? "decimal float support requires --with-gmp-build" "$LINENO" 5
4678               fi
4679               { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _GMP_IEEE_FLOATS is defined" >&5
4680$as_echo_n "checking if _GMP_IEEE_FLOATS is defined... " >&6; }
4681               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4682/* end confdefs.h.  */
4683
4684#include "gmp.h"
4685#include "gmp-impl.h"
4686#ifndef _GMP_IEEE_FLOATS
4687#error "_GMP_IEEE_FLOATS is not defined"
4688#endif
4689_ACEOF
4690if ac_fn_c_try_compile "$LINENO"; then :
4691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4692$as_echo "yes" >&6; }
4693else
4694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4695$as_echo "no" >&6; }
4696                  as_fn_error $? "decimal float support requires _GMP_IEEE_FLOATS" "$LINENO" 5
4697fi
4698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4699
4700else
4701  as_fn_error $? "Compiler doesn't know _Decimal64; try GCC >= 4.2, configured with --enable-decimal-float
4702           " "$LINENO" 5
4703fi
4704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4705           { $as_echo "$as_me:${as_lineno-$LINENO}: checking decimal float format" >&5
4706$as_echo_n "checking decimal float format... " >&6; }
4707           if test "$cross_compiling" = yes; then :
4708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming DPD" >&5
4709$as_echo "assuming DPD" >&6; }
4710       $as_echo "#define DPD_FORMAT 1" >>confdefs.h
4711
4712else
4713  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4714/* end confdefs.h.  */
4715
4716#include <stdlib.h>
4717
4718int
4719main ()
4720{
4721
4722union { double d; _Decimal64 d64; } y;
4723y.d64 = 1234567890123456.0dd;
4724return y.d == 0.14894469406741037E-123 ? 0 :
4725       y.d == 0.59075095508629822E-68  ? 1 : 2;
4726
4727  ;
4728  return 0;
4729}
4730_ACEOF
4731if ac_fn_c_try_run "$LINENO"; then :
4732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: DPD" >&5
4733$as_echo "DPD" >&6; }
4734       $as_echo "#define DPD_FORMAT 1" >>confdefs.h
4735
4736else
4737  if test "$?" != 1 ; then
4738          { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4739$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4740as_fn_error $? "neither DPD nor BID
4741See \`config.log' for more details" "$LINENO" 5; }
4742       fi
4743       { $as_echo "$as_me:${as_lineno-$LINENO}: result: BID" >&5
4744$as_echo "BID" >&6; }
4745fi
4746rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4747  conftest.$ac_objext conftest.beam conftest.$ac_ext
4748fi
4749
4750           ;;
4751      no)  ;;
4752      *)   as_fn_error $? "bad value for --enable-decimal-float: yes or no" "$LINENO" 5 ;;
4753     esac
4754fi
4755
4756
4757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICC" >&5
4758$as_echo_n "checking for ICC... " >&6; }
4759cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4760/* end confdefs.h.  */
4761
4762#if !defined(__ICC)
4763# error "ICC Not Found"
4764error
4765#endif
4766
4767int
4768main ()
4769{
4770
4771  ;
4772  return 0;
4773}
4774_ACEOF
4775if ac_fn_c_try_compile "$LINENO"; then :
4776
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4778$as_echo "yes" >&6; }
4779 CFLAGS="-fp_port -mp -wd1572 -wd265 -wd186 -wd239 $CFLAGS"
4780
4781else
4782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4783$as_echo "no" >&6; }
4784fi
4785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4786
4787if test "$test_CFLAGS" != set && test -n "$GCC"; then
4788  CFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith $CFLAGS"
4789fi
4790
4791if test "x$CC" != xcc; then
4792  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4793$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4794else
4795  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4796$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4797fi
4798set dummy $CC; ac_cc=`$as_echo "$2" |
4799		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4800if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4801  $as_echo_n "(cached) " >&6
4802else
4803  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4804/* end confdefs.h.  */
4805
4806int
4807main ()
4808{
4809
4810  ;
4811  return 0;
4812}
4813_ACEOF
4814# Make sure it works both with $CC and with simple cc.
4815# We do the test twice because some compilers refuse to overwrite an
4816# existing .o file with -o, though they will create one.
4817ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4818rm -f conftest2.*
4819if { { case "(($ac_try" in
4820  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4821  *) ac_try_echo=$ac_try;;
4822esac
4823eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4824$as_echo "$ac_try_echo"; } >&5
4825  (eval "$ac_try") 2>&5
4826  ac_status=$?
4827  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4828  test $ac_status = 0; } &&
4829   test -f conftest2.$ac_objext && { { case "(($ac_try" in
4830  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4831  *) ac_try_echo=$ac_try;;
4832esac
4833eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4834$as_echo "$ac_try_echo"; } >&5
4835  (eval "$ac_try") 2>&5
4836  ac_status=$?
4837  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4838  test $ac_status = 0; };
4839then
4840  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4841  if test "x$CC" != xcc; then
4842    # Test first that cc exists at all.
4843    if { ac_try='cc -c conftest.$ac_ext >&5'
4844  { { case "(($ac_try" in
4845  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4846  *) ac_try_echo=$ac_try;;
4847esac
4848eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4849$as_echo "$ac_try_echo"; } >&5
4850  (eval "$ac_try") 2>&5
4851  ac_status=$?
4852  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4853  test $ac_status = 0; }; }; then
4854      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4855      rm -f conftest2.*
4856      if { { case "(($ac_try" in
4857  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4858  *) ac_try_echo=$ac_try;;
4859esac
4860eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4861$as_echo "$ac_try_echo"; } >&5
4862  (eval "$ac_try") 2>&5
4863  ac_status=$?
4864  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4865  test $ac_status = 0; } &&
4866	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4867  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4868  *) ac_try_echo=$ac_try;;
4869esac
4870eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4871$as_echo "$ac_try_echo"; } >&5
4872  (eval "$ac_try") 2>&5
4873  ac_status=$?
4874  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4875  test $ac_status = 0; };
4876      then
4877	# cc works too.
4878	:
4879      else
4880	# cc exists but doesn't like -o.
4881	eval ac_cv_prog_cc_${ac_cc}_c_o=no
4882      fi
4883    fi
4884  fi
4885else
4886  eval ac_cv_prog_cc_${ac_cc}_c_o=no
4887fi
4888rm -f core conftest*
4889
4890fi
4891if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4892  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4893$as_echo "yes" >&6; }
4894else
4895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4896$as_echo "no" >&6; }
4897
4898$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4899
4900fi
4901
4902# FIXME: we rely on the cache variable name because
4903# there is no other way.
4904set dummy $CC
4905am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4906eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4907if test "$am_t" != yes; then
4908   # Losing compiler, so override with the script.
4909   # FIXME: It is wrong to rewrite CC.
4910   # But if we don't then we get into trouble of one sort or another.
4911   # A longer-term fix would be to have automake use am__CC in this case,
4912   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4913   CC="$am_aux_dir/compile $CC"
4914fi
4915
4916
4917
4918case $host in
4919  *-apple-darwin*)
4920    case "$LD $LDFLAGS" in
4921  *-Wl,-search_paths_first*) ;;
4922  *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler understands -Wl,-search_paths_first" >&5
4923$as_echo_n "checking if the compiler understands -Wl,-search_paths_first... " >&6; }
4924     saved_LDFLAGS="$LDFLAGS"
4925     LDFLAGS="-Wl,-search_paths_first $LDFLAGS"
4926     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4927/* end confdefs.h.  */
4928
4929int
4930main ()
4931{
4932
4933  ;
4934  return 0;
4935}
4936_ACEOF
4937if ac_fn_c_try_link "$LINENO"; then :
4938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4939$as_echo "yes" >&6; }
4940else
4941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4942$as_echo "no" >&6; }
4943        LDFLAGS="$saved_LDFLAGS"
4944fi
4945rm -f core conftest.err conftest.$ac_objext \
4946    conftest$ac_exeext conftest.$ac_ext
4947     ;;
4948 esac
4949 ;;
4950esac
4951
4952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4953$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4954if ${ac_cv_c_const+:} false; then :
4955  $as_echo_n "(cached) " >&6
4956else
4957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4958/* end confdefs.h.  */
4959
4960int
4961main ()
4962{
4963
4964#ifndef __cplusplus
4965  /* Ultrix mips cc rejects this sort of thing.  */
4966  typedef int charset[2];
4967  const charset cs = { 0, 0 };
4968  /* SunOS 4.1.1 cc rejects this.  */
4969  char const *const *pcpcc;
4970  char **ppc;
4971  /* NEC SVR4.0.2 mips cc rejects this.  */
4972  struct point {int x, y;};
4973  static struct point const zero = {0,0};
4974  /* AIX XL C 1.02.0.0 rejects this.
4975     It does not let you subtract one const X* pointer from another in
4976     an arm of an if-expression whose if-part is not a constant
4977     expression */
4978  const char *g = "string";
4979  pcpcc = &g + (g ? g-g : 0);
4980  /* HPUX 7.0 cc rejects these. */
4981  ++pcpcc;
4982  ppc = (char**) pcpcc;
4983  pcpcc = (char const *const *) ppc;
4984  { /* SCO 3.2v4 cc rejects this sort of thing.  */
4985    char tx;
4986    char *t = &tx;
4987    char const *s = 0 ? (char *) 0 : (char const *) 0;
4988
4989    *t++ = 0;
4990    if (s) return 0;
4991  }
4992  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4993    int x[] = {25, 17};
4994    const int *foo = &x[0];
4995    ++foo;
4996  }
4997  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4998    typedef const int *iptr;
4999    iptr p = 0;
5000    ++p;
5001  }
5002  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
5003       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5004    struct s { int j; const int *ap[3]; } bx;
5005    struct s *b = &bx; b->j = 5;
5006  }
5007  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5008    const int foo = 10;
5009    if (!foo) return 0;
5010  }
5011  return !cs[0] && !zero.x;
5012#endif
5013
5014  ;
5015  return 0;
5016}
5017_ACEOF
5018if ac_fn_c_try_compile "$LINENO"; then :
5019  ac_cv_c_const=yes
5020else
5021  ac_cv_c_const=no
5022fi
5023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5024fi
5025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5026$as_echo "$ac_cv_c_const" >&6; }
5027if test $ac_cv_c_const = no; then
5028
5029$as_echo "#define const /**/" >>confdefs.h
5030
5031fi
5032
5033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
5034$as_echo_n "checking for working volatile... " >&6; }
5035if ${ac_cv_c_volatile+:} false; then :
5036  $as_echo_n "(cached) " >&6
5037else
5038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5039/* end confdefs.h.  */
5040
5041int
5042main ()
5043{
5044
5045volatile int x;
5046int * volatile y = (int *) 0;
5047return !x && !y;
5048  ;
5049  return 0;
5050}
5051_ACEOF
5052if ac_fn_c_try_compile "$LINENO"; then :
5053  ac_cv_c_volatile=yes
5054else
5055  ac_cv_c_volatile=no
5056fi
5057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5058fi
5059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
5060$as_echo "$ac_cv_c_volatile" >&6; }
5061if test $ac_cv_c_volatile = no; then
5062
5063$as_echo "#define volatile /**/" >>confdefs.h
5064
5065fi
5066
5067
5068
5069MPFR_LIBM=''
5070
5071case $host in
5072  *-*-beos* | *-*-cygwin* | *-*-pw32*)
5073    # According to libtool AC CHECK LIBM, these systems don't have libm
5074    ;;
5075  *-*-solaris*)
5076    # On Solaris the math functions new in C99 are in -lm9x.
5077    # FIXME: Do we need -lm9x as well as -lm, or just instead of?
5078    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm9x" >&5
5079$as_echo_n "checking for main in -lm9x... " >&6; }
5080if ${ac_cv_lib_m9x_main+:} false; then :
5081  $as_echo_n "(cached) " >&6
5082else
5083  ac_check_lib_save_LIBS=$LIBS
5084LIBS="-lm9x  $LIBS"
5085cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5086/* end confdefs.h.  */
5087
5088
5089int
5090main ()
5091{
5092return main ();
5093  ;
5094  return 0;
5095}
5096_ACEOF
5097if ac_fn_c_try_link "$LINENO"; then :
5098  ac_cv_lib_m9x_main=yes
5099else
5100  ac_cv_lib_m9x_main=no
5101fi
5102rm -f core conftest.err conftest.$ac_objext \
5103    conftest$ac_exeext conftest.$ac_ext
5104LIBS=$ac_check_lib_save_LIBS
5105fi
5106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m9x_main" >&5
5107$as_echo "$ac_cv_lib_m9x_main" >&6; }
5108if test "x$ac_cv_lib_m9x_main" = xyes; then :
5109  MPFR_LIBM="-lm9x"
5110fi
5111
5112    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
5113$as_echo_n "checking for main in -lm... " >&6; }
5114if ${ac_cv_lib_m_main+:} false; then :
5115  $as_echo_n "(cached) " >&6
5116else
5117  ac_check_lib_save_LIBS=$LIBS
5118LIBS="-lm  $LIBS"
5119cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5120/* end confdefs.h.  */
5121
5122
5123int
5124main ()
5125{
5126return main ();
5127  ;
5128  return 0;
5129}
5130_ACEOF
5131if ac_fn_c_try_link "$LINENO"; then :
5132  ac_cv_lib_m_main=yes
5133else
5134  ac_cv_lib_m_main=no
5135fi
5136rm -f core conftest.err conftest.$ac_objext \
5137    conftest$ac_exeext conftest.$ac_ext
5138LIBS=$ac_check_lib_save_LIBS
5139fi
5140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
5141$as_echo "$ac_cv_lib_m_main" >&6; }
5142if test "x$ac_cv_lib_m_main" = xyes; then :
5143  MPFR_LIBM="$MPFR_LIBM -lm"
5144fi
5145
5146    ;;
5147  *-ncr-sysv4.3*)
5148    # FIXME: What does -lmw mean?  Libtool AC CHECK LIBM does it this way.
5149    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
5150$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
5151if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
5152  $as_echo_n "(cached) " >&6
5153else
5154  ac_check_lib_save_LIBS=$LIBS
5155LIBS="-lmw  $LIBS"
5156cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5157/* end confdefs.h.  */
5158
5159/* Override any GCC internal prototype to avoid an error.
5160   Use char because int might match the return type of a GCC
5161   builtin and then its argument prototype would still apply.  */
5162#ifdef __cplusplus
5163extern "C"
5164#endif
5165char _mwvalidcheckl ();
5166int
5167main ()
5168{
5169return _mwvalidcheckl ();
5170  ;
5171  return 0;
5172}
5173_ACEOF
5174if ac_fn_c_try_link "$LINENO"; then :
5175  ac_cv_lib_mw__mwvalidcheckl=yes
5176else
5177  ac_cv_lib_mw__mwvalidcheckl=no
5178fi
5179rm -f core conftest.err conftest.$ac_objext \
5180    conftest$ac_exeext conftest.$ac_ext
5181LIBS=$ac_check_lib_save_LIBS
5182fi
5183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
5184$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
5185if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
5186  MPFR_LIBM="-lmw"
5187fi
5188
5189    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
5190$as_echo_n "checking for main in -lm... " >&6; }
5191if ${ac_cv_lib_m_main+:} false; then :
5192  $as_echo_n "(cached) " >&6
5193else
5194  ac_check_lib_save_LIBS=$LIBS
5195LIBS="-lm  $LIBS"
5196cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5197/* end confdefs.h.  */
5198
5199
5200int
5201main ()
5202{
5203return main ();
5204  ;
5205  return 0;
5206}
5207_ACEOF
5208if ac_fn_c_try_link "$LINENO"; then :
5209  ac_cv_lib_m_main=yes
5210else
5211  ac_cv_lib_m_main=no
5212fi
5213rm -f core conftest.err conftest.$ac_objext \
5214    conftest$ac_exeext conftest.$ac_ext
5215LIBS=$ac_check_lib_save_LIBS
5216fi
5217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
5218$as_echo "$ac_cv_lib_m_main" >&6; }
5219if test "x$ac_cv_lib_m_main" = xyes; then :
5220  MPFR_LIBM="$MPFR_LIBM -lm"
5221fi
5222
5223    ;;
5224  *)
5225    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
5226$as_echo_n "checking for main in -lm... " >&6; }
5227if ${ac_cv_lib_m_main+:} false; then :
5228  $as_echo_n "(cached) " >&6
5229else
5230  ac_check_lib_save_LIBS=$LIBS
5231LIBS="-lm  $LIBS"
5232cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5233/* end confdefs.h.  */
5234
5235
5236int
5237main ()
5238{
5239return main ();
5240  ;
5241  return 0;
5242}
5243_ACEOF
5244if ac_fn_c_try_link "$LINENO"; then :
5245  ac_cv_lib_m_main=yes
5246else
5247  ac_cv_lib_m_main=no
5248fi
5249rm -f core conftest.err conftest.$ac_objext \
5250    conftest$ac_exeext conftest.$ac_ext
5251LIBS=$ac_check_lib_save_LIBS
5252fi
5253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
5254$as_echo "$ac_cv_lib_m_main" >&6; }
5255if test "x$ac_cv_lib_m_main" = xyes; then :
5256  MPFR_LIBM="-lm"
5257fi
5258
5259    ;;
5260esac
5261
5262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5263$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5264if ${ac_cv_header_time+:} false; then :
5265  $as_echo_n "(cached) " >&6
5266else
5267  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5268/* end confdefs.h.  */
5269#include <sys/types.h>
5270#include <sys/time.h>
5271#include <time.h>
5272
5273int
5274main ()
5275{
5276if ((struct tm *) 0)
5277return 0;
5278  ;
5279  return 0;
5280}
5281_ACEOF
5282if ac_fn_c_try_compile "$LINENO"; then :
5283  ac_cv_header_time=yes
5284else
5285  ac_cv_header_time=no
5286fi
5287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5288fi
5289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5290$as_echo "$ac_cv_header_time" >&6; }
5291if test $ac_cv_header_time = yes; then
5292
5293$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5294
5295fi
5296
5297
5298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5299$as_echo_n "checking for ANSI C header files... " >&6; }
5300if ${ac_cv_header_stdc+:} false; then :
5301  $as_echo_n "(cached) " >&6
5302else
5303  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5304/* end confdefs.h.  */
5305#include <stdlib.h>
5306#include <stdarg.h>
5307#include <string.h>
5308#include <float.h>
5309
5310int
5311main ()
5312{
5313
5314  ;
5315  return 0;
5316}
5317_ACEOF
5318if ac_fn_c_try_compile "$LINENO"; then :
5319  ac_cv_header_stdc=yes
5320else
5321  ac_cv_header_stdc=no
5322fi
5323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5324
5325if test $ac_cv_header_stdc = yes; then
5326  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5328/* end confdefs.h.  */
5329#include <string.h>
5330
5331_ACEOF
5332if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5333  $EGREP "memchr" >/dev/null 2>&1; then :
5334
5335else
5336  ac_cv_header_stdc=no
5337fi
5338rm -f conftest*
5339
5340fi
5341
5342if test $ac_cv_header_stdc = yes; then
5343  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5344  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5345/* end confdefs.h.  */
5346#include <stdlib.h>
5347
5348_ACEOF
5349if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5350  $EGREP "free" >/dev/null 2>&1; then :
5351
5352else
5353  ac_cv_header_stdc=no
5354fi
5355rm -f conftest*
5356
5357fi
5358
5359if test $ac_cv_header_stdc = yes; then
5360  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5361  if test "$cross_compiling" = yes; then :
5362  :
5363else
5364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5365/* end confdefs.h.  */
5366#include <ctype.h>
5367#include <stdlib.h>
5368#if ((' ' & 0x0FF) == 0x020)
5369# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5370# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5371#else
5372# define ISLOWER(c) \
5373		   (('a' <= (c) && (c) <= 'i') \
5374		     || ('j' <= (c) && (c) <= 'r') \
5375		     || ('s' <= (c) && (c) <= 'z'))
5376# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5377#endif
5378
5379#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5380int
5381main ()
5382{
5383  int i;
5384  for (i = 0; i < 256; i++)
5385    if (XOR (islower (i), ISLOWER (i))
5386	|| toupper (i) != TOUPPER (i))
5387      return 2;
5388  return 0;
5389}
5390_ACEOF
5391if ac_fn_c_try_run "$LINENO"; then :
5392
5393else
5394  ac_cv_header_stdc=no
5395fi
5396rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5397  conftest.$ac_objext conftest.beam conftest.$ac_ext
5398fi
5399
5400fi
5401fi
5402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5403$as_echo "$ac_cv_header_stdc" >&6; }
5404if test $ac_cv_header_stdc = yes; then
5405
5406$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5407
5408fi
5409
5410# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5411for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5412		  inttypes.h stdint.h unistd.h
5413do :
5414  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5415ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5416"
5417if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5418  cat >>confdefs.h <<_ACEOF
5419#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5420_ACEOF
5421
5422fi
5423
5424done
5425
5426
5427ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5428if test "x$ac_cv_type_size_t" = xyes; then :
5429
5430else
5431
5432cat >>confdefs.h <<_ACEOF
5433#define size_t unsigned int
5434_ACEOF
5435
5436fi
5437
5438
5439
5440
5441
5442
5443
5444ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
5445if test "x$ac_cv_header_limits_h" = xyes; then :
5446
5447else
5448  as_fn_error $? "limits.h not found" "$LINENO" 5
5449fi
5450
5451
5452ac_fn_c_check_header_mongrel "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
5453if test "x$ac_cv_header_float_h" = xyes; then :
5454
5455else
5456  as_fn_error $? "float.h not found" "$LINENO" 5
5457fi
5458
5459
5460ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
5461if test "x$ac_cv_header_string_h" = xyes; then :
5462
5463else
5464  as_fn_error $? "string.h not found" "$LINENO" 5
5465fi
5466
5467
5468
5469for ac_header in locale.h
5470do :
5471  ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
5472if test "x$ac_cv_header_locale_h" = xyes; then :
5473  cat >>confdefs.h <<_ACEOF
5474#define HAVE_LOCALE_H 1
5475_ACEOF
5476
5477fi
5478
5479done
5480
5481
5482for ac_header in wchar.h
5483do :
5484  ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
5485if test "x$ac_cv_header_wchar_h" = xyes; then :
5486  cat >>confdefs.h <<_ACEOF
5487#define HAVE_WCHAR_H 1
5488_ACEOF
5489
5490fi
5491
5492done
5493
5494
5495ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
5496if test "x$ac_cv_header_stdarg_h" = xyes; then :
5497
5498$as_echo "#define HAVE_STDARG 1" >>confdefs.h
5499
5500else
5501  ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
5502if test "x$ac_cv_header_varargs_h" = xyes; then :
5503
5504else
5505  as_fn_error $? "stdarg.h or varargs.h not found" "$LINENO" 5
5506fi
5507
5508
5509fi
5510
5511
5512
5513for ac_header in sys/time.h sys/fpu.h
5514do :
5515  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5516ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5517if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5518  cat >>confdefs.h <<_ACEOF
5519#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5520_ACEOF
5521
5522fi
5523
5524done
5525
5526
5527# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5528# for constant arguments.  Useless!
5529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5530$as_echo_n "checking for working alloca.h... " >&6; }
5531if ${ac_cv_working_alloca_h+:} false; then :
5532  $as_echo_n "(cached) " >&6
5533else
5534  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5535/* end confdefs.h.  */
5536#include <alloca.h>
5537int
5538main ()
5539{
5540char *p = (char *) alloca (2 * sizeof (int));
5541			  if (p) return 0;
5542  ;
5543  return 0;
5544}
5545_ACEOF
5546if ac_fn_c_try_link "$LINENO"; then :
5547  ac_cv_working_alloca_h=yes
5548else
5549  ac_cv_working_alloca_h=no
5550fi
5551rm -f core conftest.err conftest.$ac_objext \
5552    conftest$ac_exeext conftest.$ac_ext
5553fi
5554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5555$as_echo "$ac_cv_working_alloca_h" >&6; }
5556if test $ac_cv_working_alloca_h = yes; then
5557
5558$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5559
5560fi
5561
5562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5563$as_echo_n "checking for alloca... " >&6; }
5564if ${ac_cv_func_alloca_works+:} false; then :
5565  $as_echo_n "(cached) " >&6
5566else
5567  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5568/* end confdefs.h.  */
5569#ifdef __GNUC__
5570# define alloca __builtin_alloca
5571#else
5572# ifdef _MSC_VER
5573#  include <malloc.h>
5574#  define alloca _alloca
5575# else
5576#  ifdef HAVE_ALLOCA_H
5577#   include <alloca.h>
5578#  else
5579#   ifdef _AIX
5580 #pragma alloca
5581#   else
5582#    ifndef alloca /* predefined by HP cc +Olibcalls */
5583void *alloca (size_t);
5584#    endif
5585#   endif
5586#  endif
5587# endif
5588#endif
5589
5590int
5591main ()
5592{
5593char *p = (char *) alloca (1);
5594				    if (p) return 0;
5595  ;
5596  return 0;
5597}
5598_ACEOF
5599if ac_fn_c_try_link "$LINENO"; then :
5600  ac_cv_func_alloca_works=yes
5601else
5602  ac_cv_func_alloca_works=no
5603fi
5604rm -f core conftest.err conftest.$ac_objext \
5605    conftest$ac_exeext conftest.$ac_ext
5606fi
5607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5608$as_echo "$ac_cv_func_alloca_works" >&6; }
5609
5610if test $ac_cv_func_alloca_works = yes; then
5611
5612$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5613
5614else
5615  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5616# that cause trouble.  Some versions do not even contain alloca or
5617# contain a buggy version.  If you still want to use their alloca,
5618# use ar to extract alloca.o from them instead of compiling alloca.c.
5619
5620ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5621
5622$as_echo "#define C_ALLOCA 1" >>confdefs.h
5623
5624
5625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5626$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5627if ${ac_cv_os_cray+:} false; then :
5628  $as_echo_n "(cached) " >&6
5629else
5630  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5631/* end confdefs.h.  */
5632#if defined CRAY && ! defined CRAY2
5633webecray
5634#else
5635wenotbecray
5636#endif
5637
5638_ACEOF
5639if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5640  $EGREP "webecray" >/dev/null 2>&1; then :
5641  ac_cv_os_cray=yes
5642else
5643  ac_cv_os_cray=no
5644fi
5645rm -f conftest*
5646
5647fi
5648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5649$as_echo "$ac_cv_os_cray" >&6; }
5650if test $ac_cv_os_cray = yes; then
5651  for ac_func in _getb67 GETB67 getb67; do
5652    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5653ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5654if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5655
5656cat >>confdefs.h <<_ACEOF
5657#define CRAY_STACKSEG_END $ac_func
5658_ACEOF
5659
5660    break
5661fi
5662
5663  done
5664fi
5665
5666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5667$as_echo_n "checking stack direction for C alloca... " >&6; }
5668if ${ac_cv_c_stack_direction+:} false; then :
5669  $as_echo_n "(cached) " >&6
5670else
5671  if test "$cross_compiling" = yes; then :
5672  ac_cv_c_stack_direction=0
5673else
5674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5675/* end confdefs.h.  */
5676$ac_includes_default
5677int
5678find_stack_direction (int *addr, int depth)
5679{
5680  int dir, dummy = 0;
5681  if (! addr)
5682    addr = &dummy;
5683  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
5684  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
5685  return dir + dummy;
5686}
5687
5688int
5689main (int argc, char **argv)
5690{
5691  return find_stack_direction (0, argc + !argv + 20) < 0;
5692}
5693_ACEOF
5694if ac_fn_c_try_run "$LINENO"; then :
5695  ac_cv_c_stack_direction=1
5696else
5697  ac_cv_c_stack_direction=-1
5698fi
5699rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5700  conftest.$ac_objext conftest.beam conftest.$ac_ext
5701fi
5702
5703fi
5704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5705$as_echo "$ac_cv_c_stack_direction" >&6; }
5706cat >>confdefs.h <<_ACEOF
5707#define STACK_DIRECTION $ac_cv_c_stack_direction
5708_ACEOF
5709
5710
5711fi
5712
5713
5714
5715  for ac_header in stdint.h
5716do :
5717  ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
5718if test "x$ac_cv_header_stdint_h" = xyes; then :
5719  cat >>confdefs.h <<_ACEOF
5720#define HAVE_STDINT_H 1
5721_ACEOF
5722
5723fi
5724
5725done
5726
5727    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
5728$as_echo_n "checking for SIZE_MAX... " >&6; }
5729  if ${gl_cv_size_max+:} false; then :
5730  $as_echo_n "(cached) " >&6
5731else
5732
5733    gl_cv_size_max=
5734    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5735/* end confdefs.h.  */
5736
5737#include <limits.h>
5738#ifdef HAVE_INTTYPES_H
5739# include <inttypes.h>
5740#endif
5741#if HAVE_STDINT_H
5742# include <stdint.h>
5743#endif
5744#ifdef SIZE_MAX
5745Found it
5746#endif
5747
5748_ACEOF
5749if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5750  $EGREP "Found it" >/dev/null 2>&1; then :
5751  gl_cv_size_max=yes
5752fi
5753rm -f conftest*
5754
5755    if test -z "$gl_cv_size_max"; then
5756                        if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
5757#include <limits.h>"; then :
5758
5759else
5760  size_t_bits_minus_1=
5761fi
5762
5763      if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
5764
5765else
5766  fits_in_uint=
5767fi
5768
5769      if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
5770        if test $fits_in_uint = 1; then
5771                              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5772/* end confdefs.h.  */
5773#include <stddef.h>
5774            extern size_t foo;
5775            extern unsigned long foo;
5776
5777int
5778main ()
5779{
5780
5781  ;
5782  return 0;
5783}
5784_ACEOF
5785if ac_fn_c_try_compile "$LINENO"; then :
5786  fits_in_uint=0
5787fi
5788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5789        fi
5790                                if test $fits_in_uint = 1; then
5791          gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
5792        else
5793          gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
5794        fi
5795      else
5796                gl_cv_size_max='((size_t)~(size_t)0)'
5797      fi
5798    fi
5799
5800fi
5801
5802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
5803$as_echo "$gl_cv_size_max" >&6; }
5804  if test "$gl_cv_size_max" != yes; then
5805
5806cat >>confdefs.h <<_ACEOF
5807#define SIZE_MAX $gl_cv_size_max
5808_ACEOF
5809
5810  fi
5811
5812
5813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to copy va_list" >&5
5814$as_echo_n "checking how to copy va_list... " >&6; }
5815cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5816/* end confdefs.h.  */
5817
5818#include <stdarg.h>
5819
5820int
5821main ()
5822{
5823
5824   va_list ap1, ap2;
5825   va_copy(ap1, ap2);
5826
5827  ;
5828  return 0;
5829}
5830_ACEOF
5831if ac_fn_c_try_link "$LINENO"; then :
5832
5833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: va_copy" >&5
5834$as_echo "va_copy" >&6; }
5835   $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
5836
5837
5838else
5839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5840/* end confdefs.h.  */
5841
5842#include <stdarg.h>
5843
5844int
5845main ()
5846{
5847
5848   va_list ap1, ap2;
5849   __va_copy(ap1, ap2);
5850
5851  ;
5852  return 0;
5853}
5854_ACEOF
5855if ac_fn_c_try_link "$LINENO"; then :
5856  $as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: __va_copy" >&5
5858$as_echo "__va_copy" >&6; }
5859else
5860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: memcpy" >&5
5861$as_echo "memcpy" >&6; }
5862fi
5863rm -f core conftest.err conftest.$ac_objext \
5864    conftest$ac_exeext conftest.$ac_ext
5865fi
5866rm -f core conftest.err conftest.$ac_objext \
5867    conftest$ac_exeext conftest.$ac_ext
5868
5869for ac_func in memmove memset setlocale strtol gettimeofday
5870do :
5871  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5872ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5873if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5874  cat >>confdefs.h <<_ACEOF
5875#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5876_ACEOF
5877
5878fi
5879done
5880
5881
5882case $host in
5883alpha*-*-*)
5884  saved_CFLAGS="$CFLAGS"
5885  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IEEE-754 switches" >&5
5886$as_echo_n "checking for IEEE-754 switches... " >&6; }
5887if ${mpfr_cv_ieee_switches+:} false; then :
5888  $as_echo_n "(cached) " >&6
5889else
5890
5891  if test -n "$GCC"; then
5892    mpfr_cv_ieee_switches="-mfp-rounding-mode=d -mieee-with-inexact"
5893  else
5894    mpfr_cv_ieee_switches="-fprm d -ieee_with_inexact"
5895  fi
5896  CFLAGS="$CFLAGS $mpfr_cv_ieee_switches"
5897  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5898/* end confdefs.h.  */
5899
5900int
5901main ()
5902{
5903
5904  ;
5905  return 0;
5906}
5907_ACEOF
5908if ac_fn_c_try_compile "$LINENO"; then :
5909
5910else
5911  mpfr_cv_ieee_switches="none"
5912fi
5913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5914
5915fi
5916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_ieee_switches" >&5
5917$as_echo "$mpfr_cv_ieee_switches" >&6; }
5918  if test "$mpfr_cv_ieee_switches" = "none"; then
5919    CFLAGS="$saved_CFLAGS"
5920  else
5921    CFLAGS="$saved_CFLAGS $mpfr_cv_ieee_switches"
5922  fi
5923esac
5924
5925ac_fn_c_check_type "$LINENO" "long long int" "ac_cv_type_long_long_int" "$ac_includes_default"
5926if test "x$ac_cv_type_long_long_int" = xyes; then :
5927
5928$as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
5929
5930fi
5931
5932
5933ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
5934if test "x$ac_cv_type_intmax_t" = xyes; then :
5935
5936cat >>confdefs.h <<_ACEOF
5937#define HAVE_INTMAX_T 1
5938_ACEOF
5939
5940
5941fi
5942
5943if test "$ac_cv_type_intmax_t" = yes; then
5944  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working INTMAX_MAX" >&5
5945$as_echo_n "checking for working INTMAX_MAX... " >&6; }
5946if ${mpfr_cv_have_intmax_max+:} false; then :
5947  $as_echo_n "(cached) " >&6
5948else
5949
5950    saved_CPPFLAGS="$CPPFLAGS"
5951    CPPFLAGS="$CPPFLAGS -I$srcdir/src"
5952    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5953/* end confdefs.h.  */
5954#include "mpfr-intmax.h"
5955int
5956main ()
5957{
5958intmax_t x = INTMAX_MAX;
5959  ;
5960  return 0;
5961}
5962_ACEOF
5963if ac_fn_c_try_compile "$LINENO"; then :
5964  mpfr_cv_have_intmax_max=yes
5965else
5966  mpfr_cv_have_intmax_max=no
5967fi
5968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5969    CPPFLAGS="$saved_CPPFLAGS"
5970
5971fi
5972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_have_intmax_max" >&5
5973$as_echo "$mpfr_cv_have_intmax_max" >&6; }
5974  if test "$mpfr_cv_have_intmax_max" = "yes"; then
5975
5976$as_echo "#define MPFR_HAVE_INTMAX_MAX 1" >>confdefs.h
5977
5978  fi
5979fi
5980
5981ac_fn_c_check_type "$LINENO" "union fpc_csr" "ac_cv_type_union_fpc_csr" "
5982#if HAVE_SYS_FPU_H
5983#  include <sys/fpu.h>
5984#endif
5985
5986"
5987if test "x$ac_cv_type_union_fpc_csr" = xyes; then :
5988
5989$as_echo "#define HAVE_FPC_CSR 1" >>confdefs.h
5990
5991fi
5992
5993
5994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fesetround" >&5
5995$as_echo_n "checking for fesetround... " >&6; }
5996if ${mpfr_cv_have_fesetround+:} false; then :
5997  $as_echo_n "(cached) " >&6
5998else
5999
6000saved_LIBS="$LIBS"
6001LIBS="$LIBS $MPFR_LIBM"
6002cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6003/* end confdefs.h.  */
6004#include <fenv.h>
6005int
6006main ()
6007{
6008fesetround(FE_TONEAREST);
6009  ;
6010  return 0;
6011}
6012_ACEOF
6013if ac_fn_c_try_link "$LINENO"; then :
6014  mpfr_cv_have_fesetround=yes
6015else
6016  mpfr_cv_have_fesetround=no
6017fi
6018rm -f core conftest.err conftest.$ac_objext \
6019    conftest$ac_exeext conftest.$ac_ext
6020LIBS="$saved_LIBS"
6021
6022fi
6023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_have_fesetround" >&5
6024$as_echo "$mpfr_cv_have_fesetround" >&6; }
6025if test "$mpfr_cv_have_fesetround" = "yes"; then
6026
6027$as_echo "#define MPFR_HAVE_FESETROUND 1" >>confdefs.h
6028
6029fi
6030
6031if test -n "$GCC"; then
6032  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc float-conversion bug" >&5
6033$as_echo_n "checking for gcc float-conversion bug... " >&6; }
6034if ${mpfr_cv_gcc_floatconv_bug+:} false; then :
6035  $as_echo_n "(cached) " >&6
6036else
6037
6038  saved_LIBS="$LIBS"
6039  LIBS="$LIBS $MPFR_LIBM"
6040  if test "$cross_compiling" = yes; then :
6041  mpfr_cv_gcc_floatconv_bug="cannot test, use -ffloat-store"
6042else
6043  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6044/* end confdefs.h.  */
6045
6046#include <float.h>
6047#ifdef MPFR_HAVE_FESETROUND
6048#include <fenv.h>
6049#endif
6050static double get_max (void);
6051int main() {
6052  double x = 0.5;
6053  double y;
6054  int i;
6055  for (i = 1; i <= 11; i++)
6056    x *= x;
6057  if (x != 0)
6058    return 1;
6059#ifdef MPFR_HAVE_FESETROUND
6060  /* Useful test for the G4 PowerPC */
6061  fesetround(FE_TOWARDZERO);
6062  x = y = get_max ();
6063  x *= 2.0;
6064  if (x != y)
6065    return 1;
6066#endif
6067  return 0;
6068}
6069static double get_max (void) { static volatile double d = DBL_MAX; return d; }
6070
6071_ACEOF
6072if ac_fn_c_try_run "$LINENO"; then :
6073  mpfr_cv_gcc_floatconv_bug="no"
6074else
6075  mpfr_cv_gcc_floatconv_bug="yes, use -ffloat-store"
6076fi
6077rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6078  conftest.$ac_objext conftest.beam conftest.$ac_ext
6079fi
6080
6081  LIBS="$saved_LIBS"
6082
6083fi
6084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_gcc_floatconv_bug" >&5
6085$as_echo "$mpfr_cv_gcc_floatconv_bug" >&6; }
6086  if test "$mpfr_cv_gcc_floatconv_bug" != "no"; then
6087    CFLAGS="$CFLAGS -ffloat-store"
6088  fi
6089fi
6090
6091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for denormalized numbers" >&5
6092$as_echo_n "checking for denormalized numbers... " >&6; }
6093if ${mpfr_cv_have_denorms+:} false; then :
6094  $as_echo_n "(cached) " >&6
6095else
6096
6097if test "$cross_compiling" = yes; then :
6098  mpfr_cv_have_denorms=no
6099else
6100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6101/* end confdefs.h.  */
6102
6103#include <math.h>
6104#include <stdio.h>
6105int main() {
6106  double x = 2.22507385850720138309e-308;
6107  fprintf (stderr, "%e\n", x / 2.0);
6108  return 2.0 * (x / 2.0) != x;
6109}
6110
6111_ACEOF
6112if ac_fn_c_try_run "$LINENO"; then :
6113  mpfr_cv_have_denorms=yes
6114else
6115  mpfr_cv_have_denorms=no
6116fi
6117rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6118  conftest.$ac_objext conftest.beam conftest.$ac_ext
6119fi
6120
6121
6122fi
6123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_have_denorms" >&5
6124$as_echo "$mpfr_cv_have_denorms" >&6; }
6125if test "$mpfr_cv_have_denorms" = "yes"; then
6126
6127$as_echo "#define HAVE_DENORMS 1" >>confdefs.h
6128
6129fi
6130
6131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the FP division by 0 fails" >&5
6132$as_echo_n "checking if the FP division by 0 fails... " >&6; }
6133if ${mpfr_cv_errdivzero+:} false; then :
6134  $as_echo_n "(cached) " >&6
6135else
6136
6137if test "$cross_compiling" = yes; then :
6138  mpfr_cv_errdivzero="cannot test, assume no"
6139else
6140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6141/* end confdefs.h.  */
6142
6143int main() {
6144  volatile double d = 0.0, x;
6145  x = 0.0 / d;
6146  x = 1.0 / d;
6147  return 0;
6148}
6149
6150_ACEOF
6151if ac_fn_c_try_run "$LINENO"; then :
6152  mpfr_cv_errdivzero="no"
6153else
6154  mpfr_cv_errdivzero="yes"
6155fi
6156rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6157  conftest.$ac_objext conftest.beam conftest.$ac_ext
6158fi
6159
6160
6161fi
6162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_errdivzero" >&5
6163$as_echo "$mpfr_cv_errdivzero" >&6; }
6164if test "$mpfr_cv_errdivzero" = "yes"; then
6165
6166$as_echo "#define MPFR_ERRDIVZERO 1" >>confdefs.h
6167
6168  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The floating-point division by 0 fails instead of" >&5
6169$as_echo "$as_me: WARNING: The floating-point division by 0 fails instead of" >&2;}
6170  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: returning a special value: NaN or infinity. Tests" >&5
6171$as_echo "$as_me: WARNING: returning a special value: NaN or infinity. Tests" >&2;}
6172  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: involving a FP division by 0 will be disabled." >&5
6173$as_echo "$as_me: WARNING: involving a FP division by 0 will be disabled." >&2;}
6174fi
6175
6176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if NAN == NAN" >&5
6177$as_echo_n "checking if NAN == NAN... " >&6; }
6178if ${mpfr_cv_nanisnan+:} false; then :
6179  $as_echo_n "(cached) " >&6
6180else
6181
6182if test "$cross_compiling" = yes; then :
6183  mpfr_cv_nanisnan="cannot test, assume no"
6184else
6185  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6186/* end confdefs.h.  */
6187
6188#include <stdio.h>
6189#include <math.h>
6190#ifndef NAN
6191# define NAN (0.0/0.0)
6192#endif
6193int main() {
6194  double d;
6195  d = NAN;
6196  return d != d;
6197}
6198
6199_ACEOF
6200if ac_fn_c_try_run "$LINENO"; then :
6201  mpfr_cv_nanisnan="yes"
6202else
6203  mpfr_cv_nanisnan="no"
6204fi
6205rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6206  conftest.$ac_objext conftest.beam conftest.$ac_ext
6207fi
6208
6209
6210fi
6211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_nanisnan" >&5
6212$as_echo "$mpfr_cv_nanisnan" >&6; }
6213if test "$mpfr_cv_nanisnan" = "yes"; then
6214
6215$as_echo "#define MPFR_NANISNAN 1" >>confdefs.h
6216
6217  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The test NAN != NAN is false. The probable reason is that" >&5
6218$as_echo "$as_me: WARNING: The test NAN != NAN is false. The probable reason is that" >&2;}
6219  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your compiler optimizes floating-point expressions in an" >&5
6220$as_echo "$as_me: WARNING: your compiler optimizes floating-point expressions in an" >&2;}
6221  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unsafe way because some option, such as -ffast-math or" >&5
6222$as_echo "$as_me: WARNING: unsafe way because some option, such as -ffast-math or" >&2;}
6223  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: -fast (depending on the compiler), has been used.  You" >&5
6224$as_echo "$as_me: WARNING: -fast (depending on the compiler), has been used.  You" >&2;}
6225  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: should NOT use such an option, otherwise MPFR functions" >&5
6226$as_echo "$as_me: WARNING: should NOT use such an option, otherwise MPFR functions" >&2;}
6227  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: such as mpfr_get_d and mpfr_set_d may return incorrect" >&5
6228$as_echo "$as_me: WARNING: such as mpfr_get_d and mpfr_set_d may return incorrect" >&2;}
6229  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: results on special FP numbers (e.g. NaN or signed zeros)." >&5
6230$as_echo "$as_me: WARNING: results on special FP numbers (e.g. NaN or signed zeros)." >&2;}
6231  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you did not use such an option, please send us a bug" >&5
6232$as_echo "$as_me: WARNING: If you did not use such an option, please send us a bug" >&2;}
6233  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: report so that we can try to find a workaround for your" >&5
6234$as_echo "$as_me: WARNING: report so that we can try to find a workaround for your" >&2;}
6235  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: platform and/or document the behavior." >&5
6236$as_echo "$as_me: WARNING: platform and/or document the behavior." >&2;}
6237fi
6238
6239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if charset has consecutive values" >&5
6240$as_echo_n "checking if charset has consecutive values... " >&6; }
6241if test "$cross_compiling" = yes; then :
6242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test" >&5
6243$as_echo "cannot test" >&6; }
6244else
6245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6246/* end confdefs.h.  */
6247
6248char *number = "0123456789";
6249char *lower  = "abcdefghijklmnopqrstuvwxyz";
6250char *upper  = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
6251
6252int
6253main ()
6254{
6255
6256 int i;
6257 unsigned char *p;
6258 for (p = (unsigned char*) number, i = 0; i < 9; i++)
6259   if ( (*p)+1 != *(p+1) ) return 1;
6260 for (p = (unsigned char*) lower, i = 0; i < 25; i++)
6261   if ( (*p)+1 != *(p+1) ) return 1;
6262 for (p = (unsigned char*) upper, i = 0; i < 25; i++)
6263   if ( (*p)+1 != *(p+1) ) return 1;
6264
6265  ;
6266  return 0;
6267}
6268_ACEOF
6269if ac_fn_c_try_run "$LINENO"; then :
6270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6271$as_echo "yes" >&6; }
6272else
6273
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6275$as_echo "no" >&6; }
6276
6277$as_echo "#define MPFR_NO_CONSECUTIVE_CHARSET 1" >>confdefs.h
6278
6279
6280fi
6281rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6282  conftest.$ac_objext conftest.beam conftest.$ac_ext
6283fi
6284
6285
6286saved_LIBS="$LIBS"
6287LIBS="$LIBS $MPFR_LIBM"
6288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for math/round" >&5
6289$as_echo_n "checking for math/round... " >&6; }
6290cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6291/* end confdefs.h.  */
6292
6293#include <math.h>
6294int f (double (*func)(double)) { return 0;}
6295
6296int
6297main ()
6298{
6299
6300 double a = 17.42;
6301 a = f (round);
6302 return 0;
6303
6304  ;
6305  return 0;
6306}
6307_ACEOF
6308if ac_fn_c_try_link "$LINENO"; then :
6309
6310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6311$as_echo "yes" >&6; }
6312
6313$as_echo "#define HAVE_ROUND 1" >>confdefs.h
6314
6315
6316else
6317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6318$as_echo "no" >&6; }
6319fi
6320rm -f core conftest.err conftest.$ac_objext \
6321    conftest$ac_exeext conftest.$ac_ext
6322
6323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for math/trunc" >&5
6324$as_echo_n "checking for math/trunc... " >&6; }
6325cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6326/* end confdefs.h.  */
6327
6328#include <math.h>
6329int f (double (*func)(double)) { return 0;}
6330
6331int
6332main ()
6333{
6334
6335 double a = 17.42;
6336 a = f(trunc);
6337 return 0;
6338
6339  ;
6340  return 0;
6341}
6342_ACEOF
6343if ac_fn_c_try_link "$LINENO"; then :
6344
6345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6346$as_echo "yes" >&6; }
6347
6348$as_echo "#define HAVE_TRUNC 1" >>confdefs.h
6349
6350
6351else
6352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6353$as_echo "no" >&6; }
6354fi
6355rm -f core conftest.err conftest.$ac_objext \
6356    conftest$ac_exeext conftest.$ac_ext
6357
6358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for math/floor" >&5
6359$as_echo_n "checking for math/floor... " >&6; }
6360cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6361/* end confdefs.h.  */
6362
6363#include <math.h>
6364int f (double (*func)(double)) { return 0;}
6365
6366int
6367main ()
6368{
6369
6370 double a = 17.42;
6371 a = f(floor);
6372 return 0;
6373
6374  ;
6375  return 0;
6376}
6377_ACEOF
6378if ac_fn_c_try_link "$LINENO"; then :
6379
6380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6381$as_echo "yes" >&6; }
6382
6383$as_echo "#define HAVE_FLOOR 1" >>confdefs.h
6384
6385
6386else
6387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6388$as_echo "no" >&6; }
6389fi
6390rm -f core conftest.err conftest.$ac_objext \
6391    conftest$ac_exeext conftest.$ac_ext
6392
6393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for math/ceil" >&5
6394$as_echo_n "checking for math/ceil... " >&6; }
6395cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6396/* end confdefs.h.  */
6397
6398#include <math.h>
6399int f (double (*func)(double)) { return 0;}
6400
6401int
6402main ()
6403{
6404
6405 double a = 17.42;
6406 a = f(ceil);
6407 return 0;
6408
6409  ;
6410  return 0;
6411}
6412_ACEOF
6413if ac_fn_c_try_link "$LINENO"; then :
6414
6415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6416$as_echo "yes" >&6; }
6417
6418$as_echo "#define HAVE_CEIL 1" >>confdefs.h
6419
6420
6421else
6422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6423$as_echo "no" >&6; }
6424fi
6425rm -f core conftest.err conftest.$ac_objext \
6426    conftest$ac_exeext conftest.$ac_ext
6427
6428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for math/rint" >&5
6429$as_echo_n "checking for math/rint... " >&6; }
6430cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6431/* end confdefs.h.  */
6432
6433#include <math.h>
6434int f (double (*func)(double)) { return 0;}
6435
6436int
6437main ()
6438{
6439
6440 double a = 17.42;
6441 a = f(nearbyint);
6442 return 0;
6443
6444  ;
6445  return 0;
6446}
6447_ACEOF
6448if ac_fn_c_try_link "$LINENO"; then :
6449
6450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6451$as_echo "yes" >&6; }
6452
6453$as_echo "#define HAVE_NEARBYINT 1" >>confdefs.h
6454
6455
6456else
6457  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6458$as_echo "no" >&6; }
6459fi
6460rm -f core conftest.err conftest.$ac_objext \
6461    conftest$ac_exeext conftest.$ac_ext
6462
6463LIBS="$saved_LIBS"
6464
6465
6466
6467
6468ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default"
6469if test "x$ac_cv_type_long_double" = xyes; then :
6470
6471cat >>confdefs.h <<_ACEOF
6472#define HAVE_LONG_DOUBLE 1
6473_ACEOF
6474
6475
6476fi
6477
6478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking format of \`long double' floating point" >&5
6479$as_echo_n "checking format of \`long double' floating point... " >&6; }
6480if ${mpfr_cv_c_long_double_format+:} false; then :
6481  $as_echo_n "(cached) " >&6
6482else
6483  mpfr_cv_c_long_double_format=unknown
6484if test "$ac_cv_type_long_double" != yes; then
6485  mpfr_cv_c_long_double_format="not available"
6486else
6487  cat >conftest.c <<\EOF
6488
6489/* "before" is 16 bytes to ensure there's no padding between it and "x".
6490   We're not expecting any "long double" bigger than 16 bytes or with
6491   alignment requirements stricter than 16 bytes.  */
6492struct {
6493  char         before[16];
6494  long double  x;
6495  char         after[8];
6496} foo = {
6497  { '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
6498    '\001', '\043', '\105', '\147', '\211', '\253', '\315', '\357' },
6499  -123456789.0,
6500  { '\376', '\334', '\272', '\230', '\166', '\124', '\062', '\020' }
6501};
6502
6503EOF
6504  mpfr_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >&5 2>&1"
6505  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mpfr_compile\""; } >&5
6506  (eval $mpfr_compile) 2>&5
6507  ac_status=$?
6508  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6509  test $ac_status = 0; }; then
6510    cat >conftest.awk <<\EOF
6511
6512BEGIN {
6513  found = 0
6514}
6515
6516# got[] holds a sliding window of bytes read the input.  got[0] is the most
6517# recent byte read, and got[31] the oldest byte read, so when looking to
6518# match some data the indices are "reversed".
6519#
6520{
6521  for (f = 2; f <= NF; f++)
6522    {
6523      # new byte, shift others up
6524      for (i = 31; i >= 0; i--)
6525        got[i+1] = got[i];
6526      got[0] = $f;
6527
6528      # end sequence
6529      if (got[7] != "376") continue
6530      if (got[6] != "334") continue
6531      if (got[5] != "272") continue
6532      if (got[4] != "230") continue
6533      if (got[3] != "166") continue
6534      if (got[2] != "124") continue
6535      if (got[1] != "062") continue
6536      if (got[0] != "020") continue
6537
6538      # start sequence, with 8-byte body
6539      if (got[23] == "001" && \
6540          got[22] == "043" && \
6541          got[21] == "105" && \
6542          got[20] == "147" && \
6543          got[19] == "211" && \
6544          got[18] == "253" && \
6545          got[17] == "315" && \
6546          got[16] == "357")
6547        {
6548          saw = " (" got[15] \
6549                 " " got[14] \
6550                 " " got[13] \
6551                 " " got[12] \
6552                 " " got[11] \
6553                 " " got[10] \
6554                 " " got[9]  \
6555                 " " got[8] ")"
6556
6557          if (got[15] == "301" && \
6558              got[14] == "235" && \
6559              got[13] == "157" && \
6560              got[12] == "064" && \
6561              got[11] == "124" && \
6562              got[10] == "000" && \
6563              got[9] ==  "000" && \
6564              got[8] ==  "000")
6565            {
6566              print "IEEE double, big endian"
6567              found = 1
6568              exit
6569            }
6570
6571          if (got[15] == "000" && \
6572              got[14] == "000" && \
6573              got[13] == "000" && \
6574              got[12] == "124" && \
6575              got[11] == "064" && \
6576              got[10] == "157" && \
6577              got[9] ==  "235" && \
6578              got[8] ==  "301")
6579            {
6580              print "IEEE double, little endian"
6581              found = 1
6582              exit
6583            }
6584        }
6585
6586      # start sequence, with 12-byte body
6587      if (got[27] == "001" && \
6588          got[26] == "043" && \
6589          got[25] == "105" && \
6590          got[24] == "147" && \
6591          got[23] == "211" && \
6592          got[22] == "253" && \
6593          got[21] == "315" && \
6594          got[20] == "357")
6595        {
6596          saw = " (" got[19] \
6597                 " " got[18] \
6598                 " " got[17] \
6599                 " " got[16] \
6600                 " " got[15] \
6601                 " " got[14] \
6602                 " " got[13] \
6603                 " " got[12] \
6604                 " " got[11] \
6605                 " " got[10] \
6606                 " " got[9]  \
6607                 " " got[8] ")"
6608
6609          if (got[19] == "000" && \
6610              got[18] == "000" && \
6611              got[17] == "000" && \
6612              got[16] == "000" && \
6613              got[15] == "240" && \
6614              got[14] == "242" && \
6615              got[13] == "171" && \
6616              got[12] == "353" && \
6617              got[11] == "031" && \
6618              got[10] == "300")
6619            {
6620              print "IEEE extended, little endian"
6621              found = 1
6622              exit
6623            }
6624
6625          if (got[19] == "300" && \
6626              got[18] == "031" && \
6627              got[17] == "000" && \
6628              got[16] == "000" && \
6629              got[15] == "353" && \
6630              got[14] == "171" && \
6631              got[13] == "242" && \
6632              got[12] == "240" && \
6633              got[11] == "000" && \
6634              got[10] == "000" && \
6635              got[09] == "000" && \
6636              got[08] == "000")
6637            {
6638              # format found on m68k
6639              print "IEEE extended, big endian"
6640              found = 1
6641              exit
6642            }
6643        }
6644
6645      # start sequence, with 16-byte body
6646      if (got[31] == "001" && \
6647          got[30] == "043" && \
6648          got[29] == "105" && \
6649          got[28] == "147" && \
6650          got[27] == "211" && \
6651          got[26] == "253" && \
6652          got[25] == "315" && \
6653          got[24] == "357")
6654        {
6655          saw = " (" got[23] \
6656                 " " got[22] \
6657                 " " got[21] \
6658                 " " got[20] \
6659                 " " got[19] \
6660                 " " got[18] \
6661                 " " got[17] \
6662                 " " got[16] \
6663                 " " got[15] \
6664                 " " got[14] \
6665                 " " got[13] \
6666                 " " got[12] \
6667                 " " got[11] \
6668                 " " got[10] \
6669                 " " got[9]  \
6670                 " " got[8] ")"
6671
6672          if (got[23] == "000" && \
6673              got[22] == "000" && \
6674              got[21] == "000" && \
6675              got[20] == "000" && \
6676              got[19] == "240" && \
6677              got[18] == "242" && \
6678              got[17] == "171" && \
6679              got[16] == "353" && \
6680              got[15] == "031" && \
6681              got[14] == "300")
6682            {
6683              print "IEEE extended, little endian"
6684              found = 1
6685              exit
6686            }
6687
6688          if (got[23] == "300" && \
6689              got[22] == "031" && \
6690              got[21] == "326" && \
6691              got[20] == "363" && \
6692              got[19] == "105" && \
6693              got[18] == "100" && \
6694              got[17] == "000" && \
6695              got[16] == "000" && \
6696              got[15] == "000" && \
6697              got[14] == "000" && \
6698              got[13] == "000" && \
6699              got[12] == "000" && \
6700              got[11] == "000" && \
6701              got[10] == "000" && \
6702              got[9]  == "000" && \
6703              got[8]  == "000")
6704            {
6705              # format used on HP 9000/785 under HP-UX
6706              print "IEEE quad, big endian"
6707              found = 1
6708              exit
6709            }
6710
6711          if (got[23] == "000" && \
6712              got[22] == "000" && \
6713              got[21] == "000" && \
6714              got[20] == "000" && \
6715              got[19] == "000" && \
6716              got[18] == "000" && \
6717              got[17] == "000" && \
6718              got[16] == "000" && \
6719              got[15] == "000" && \
6720              got[14] == "000" && \
6721              got[13] == "100" && \
6722              got[12] == "105" && \
6723              got[11] == "363" && \
6724              got[10] == "326" && \
6725              got[9]  == "031" && \
6726	      got[8]  == "300")
6727            {
6728              print "IEEE quad, little endian"
6729              found = 1
6730              exit
6731            }
6732
6733          if (got[23] == "301" && \
6734              got[22] == "235" && \
6735              got[21] == "157" && \
6736              got[20] == "064" && \
6737              got[19] == "124" && \
6738              got[18] == "000" && \
6739              got[17] == "000" && \
6740              got[16] == "000" && \
6741              got[15] == "000" && \
6742              got[14] == "000" && \
6743              got[13] == "000" && \
6744              got[12] == "000" && \
6745              got[11] == "000" && \
6746              got[10] == "000" && \
6747              got[9]  == "000" && \
6748              got[8]  == "000")
6749            {
6750              # format used on 32-bit PowerPC (Mac OS X and Debian GNU/Linux)
6751              print "possibly double-double, big endian"
6752              found = 1
6753              exit
6754            }
6755        }
6756    }
6757}
6758
6759END {
6760  if (! found)
6761    print "unknown", saw
6762}
6763
6764EOF
6765    mpfr_cv_c_long_double_format=`od -b conftest.$OBJEXT | $AWK -f conftest.awk`
6766    case $mpfr_cv_c_long_double_format in
6767    unknown*)
6768      echo "cannot match anything, conftest.$OBJEXT contains" >&5
6769      od -b conftest.$OBJEXT >&5
6770      ;;
6771    esac
6772  else
6773    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: oops, cannot compile test program" >&5
6774$as_echo "$as_me: WARNING: oops, cannot compile test program" >&2;}
6775  fi
6776fi
6777rm -f conftest*
6778
6779fi
6780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_c_long_double_format" >&5
6781$as_echo "$mpfr_cv_c_long_double_format" >&6; }
6782
6783
6784
6785case $mpfr_cv_c_long_double_format in
6786  "IEEE extended, little endian")
6787    $as_echo "#define HAVE_LDOUBLE_IEEE_EXT_LITTLE 1" >>confdefs.h
6788
6789    ;;
6790  "IEEE quad, big endian")
6791    $as_echo "#define HAVE_LDOUBLE_IEEE_QUAD_BIG 1" >>confdefs.h
6792
6793    ;;
6794  "IEEE quad, little endian")
6795    $as_echo "#define HAVE_LDOUBLE_IEEE_QUAD_LITTLE 1" >>confdefs.h
6796
6797    ;;
6798  "possibly double-double, big endian")
6799    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This format is known on GCC/PowerPC platforms," >&5
6800$as_echo "$as_me: WARNING: This format is known on GCC/PowerPC platforms," >&2;}
6801    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but due to GCC PR26374, we can't test further." >&5
6802$as_echo "$as_me: WARNING: but due to GCC PR26374, we can't test further." >&2;}
6803    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You can safely ignore this warning, though." >&5
6804$as_echo "$as_me: WARNING: You can safely ignore this warning, though." >&2;}
6805    # Since we are not sure, we do not want to define a macro.
6806    ;;
6807  unknown* | "not available")
6808    ;;
6809  *)
6810    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: oops, unrecognised float format: $mpfr_cv_c_long_double_format" >&5
6811$as_echo "$as_me: WARNING: oops, unrecognised float format: $mpfr_cv_c_long_double_format" >&2;}
6812    ;;
6813esac
6814
6815
6816if test "$enable_logging" = yes; then
6817  if test "$enable_thread_safe" = yes; then
6818    as_fn_error $? "Enable either \`Logging' or \`thread-safe', not both" "$LINENO" 5
6819  else
6820    enable_thread_safe=no
6821  fi
6822fi
6823
6824if test "$enable_thread_safe" != no; then
6825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS support" >&5
6826$as_echo_n "checking for TLS support... " >&6; }
6827saved_CPPFLAGS="$CPPFLAGS"
6828CPPFLAGS="$CPPFLAGS -I$srcdir/src"
6829if test "$cross_compiling" = yes; then :
6830  if test "$enable_thread_safe" = yes; then
6831        { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test, assume yes" >&5
6832$as_echo "cannot test, assume yes" >&6; }
6833
6834$as_echo "#define MPFR_USE_THREAD_SAFE 1" >>confdefs.h
6835
6836      else
6837        { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test, assume no" >&5
6838$as_echo "cannot test, assume no" >&6; }
6839      fi
6840
6841else
6842  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6843/* end confdefs.h.  */
6844
6845#define MPFR_USE_THREAD_SAFE 1
6846#include "mpfr-thread.h"
6847MPFR_THREAD_ATTR int x = 17;
6848int main() {
6849  return x != 17;
6850}
6851
6852_ACEOF
6853if ac_fn_c_try_run "$LINENO"; then :
6854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6855$as_echo "yes" >&6; }
6856
6857$as_echo "#define MPFR_USE_THREAD_SAFE 1" >>confdefs.h
6858
6859
6860else
6861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6862$as_echo "no" >&6; }
6863      if test "$enable_thread_safe" = yes; then
6864        as_fn_error $? "please configure with --disable-thread-safe" "$LINENO" 5
6865      fi
6866
6867fi
6868rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6869  conftest.$ac_objext conftest.beam conftest.$ac_ext
6870fi
6871
6872CPPFLAGS="$saved_CPPFLAGS"
6873fi
6874
6875
6876# (Based on GMP 5.1)
6877# clock_gettime is in librt on *-*-osf5.1 and on glibc < 2.17, so add -lrt to
6878# TUNE_LIBS if needed (e.g. if clock_gettime is not already in the C library).
6879# On linux (tested on x86_32, 2.6.26), clock_getres reports ns accuracy,
6880# while in a quick test on osf, clock_getres said only 1 millisecond.
6881old_LIBS="$LIBS"
6882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
6883$as_echo_n "checking for library containing clock_gettime... " >&6; }
6884if ${ac_cv_search_clock_gettime+:} false; then :
6885  $as_echo_n "(cached) " >&6
6886else
6887  ac_func_search_save_LIBS=$LIBS
6888cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6889/* end confdefs.h.  */
6890
6891/* Override any GCC internal prototype to avoid an error.
6892   Use char because int might match the return type of a GCC
6893   builtin and then its argument prototype would still apply.  */
6894#ifdef __cplusplus
6895extern "C"
6896#endif
6897char clock_gettime ();
6898int
6899main ()
6900{
6901return clock_gettime ();
6902  ;
6903  return 0;
6904}
6905_ACEOF
6906for ac_lib in '' rt; do
6907  if test -z "$ac_lib"; then
6908    ac_res="none required"
6909  else
6910    ac_res=-l$ac_lib
6911    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6912  fi
6913  if ac_fn_c_try_link "$LINENO"; then :
6914  ac_cv_search_clock_gettime=$ac_res
6915fi
6916rm -f core conftest.err conftest.$ac_objext \
6917    conftest$ac_exeext
6918  if ${ac_cv_search_clock_gettime+:} false; then :
6919  break
6920fi
6921done
6922if ${ac_cv_search_clock_gettime+:} false; then :
6923
6924else
6925  ac_cv_search_clock_gettime=no
6926fi
6927rm conftest.$ac_ext
6928LIBS=$ac_func_search_save_LIBS
6929fi
6930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
6931$as_echo "$ac_cv_search_clock_gettime" >&6; }
6932ac_res=$ac_cv_search_clock_gettime
6933if test "$ac_res" != no; then :
6934  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6935
6936
6937$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
6938
6939fi
6940
6941TUNE_LIBS="$LIBS"
6942LIBS="$old_LIBS"
6943
6944
6945
6946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gmp.h" >&5
6947$as_echo_n "checking for gmp.h... " >&6; }
6948cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6949/* end confdefs.h.  */
6950
6951#include "gmp.h"
6952
6953_ACEOF
6954if ac_fn_c_try_compile "$LINENO"; then :
6955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6956$as_echo "yes" >&6; }
6957else
6958
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6960$as_echo "no" >&6; }
6961 as_fn_error $? "gmp.h can't be found, or is unusable." "$LINENO" 5
6962
6963fi
6964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6965
6966
6967
6968enable_win32_dll=yes
6969
6970case $host in
6971*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
6972  if test -n "$ac_tool_prefix"; then
6973  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6974set dummy ${ac_tool_prefix}as; ac_word=$2
6975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6976$as_echo_n "checking for $ac_word... " >&6; }
6977if ${ac_cv_prog_AS+:} false; then :
6978  $as_echo_n "(cached) " >&6
6979else
6980  if test -n "$AS"; then
6981  ac_cv_prog_AS="$AS" # Let the user override the test.
6982else
6983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6984for as_dir in $PATH
6985do
6986  IFS=$as_save_IFS
6987  test -z "$as_dir" && as_dir=.
6988    for ac_exec_ext in '' $ac_executable_extensions; do
6989  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6990    ac_cv_prog_AS="${ac_tool_prefix}as"
6991    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6992    break 2
6993  fi
6994done
6995  done
6996IFS=$as_save_IFS
6997
6998fi
6999fi
7000AS=$ac_cv_prog_AS
7001if test -n "$AS"; then
7002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7003$as_echo "$AS" >&6; }
7004else
7005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7006$as_echo "no" >&6; }
7007fi
7008
7009
7010fi
7011if test -z "$ac_cv_prog_AS"; then
7012  ac_ct_AS=$AS
7013  # Extract the first word of "as", so it can be a program name with args.
7014set dummy as; ac_word=$2
7015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7016$as_echo_n "checking for $ac_word... " >&6; }
7017if ${ac_cv_prog_ac_ct_AS+:} false; then :
7018  $as_echo_n "(cached) " >&6
7019else
7020  if test -n "$ac_ct_AS"; then
7021  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7022else
7023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7024for as_dir in $PATH
7025do
7026  IFS=$as_save_IFS
7027  test -z "$as_dir" && as_dir=.
7028    for ac_exec_ext in '' $ac_executable_extensions; do
7029  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7030    ac_cv_prog_ac_ct_AS="as"
7031    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7032    break 2
7033  fi
7034done
7035  done
7036IFS=$as_save_IFS
7037
7038fi
7039fi
7040ac_ct_AS=$ac_cv_prog_ac_ct_AS
7041if test -n "$ac_ct_AS"; then
7042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7043$as_echo "$ac_ct_AS" >&6; }
7044else
7045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7046$as_echo "no" >&6; }
7047fi
7048
7049  if test "x$ac_ct_AS" = x; then
7050    AS="false"
7051  else
7052    case $cross_compiling:$ac_tool_warned in
7053yes:)
7054{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7055$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7056ac_tool_warned=yes ;;
7057esac
7058    AS=$ac_ct_AS
7059  fi
7060else
7061  AS="$ac_cv_prog_AS"
7062fi
7063
7064  if test -n "$ac_tool_prefix"; then
7065  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7066set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7068$as_echo_n "checking for $ac_word... " >&6; }
7069if ${ac_cv_prog_DLLTOOL+:} false; then :
7070  $as_echo_n "(cached) " >&6
7071else
7072  if test -n "$DLLTOOL"; then
7073  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7074else
7075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7076for as_dir in $PATH
7077do
7078  IFS=$as_save_IFS
7079  test -z "$as_dir" && as_dir=.
7080    for ac_exec_ext in '' $ac_executable_extensions; do
7081  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7082    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7083    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7084    break 2
7085  fi
7086done
7087  done
7088IFS=$as_save_IFS
7089
7090fi
7091fi
7092DLLTOOL=$ac_cv_prog_DLLTOOL
7093if test -n "$DLLTOOL"; then
7094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7095$as_echo "$DLLTOOL" >&6; }
7096else
7097  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7098$as_echo "no" >&6; }
7099fi
7100
7101
7102fi
7103if test -z "$ac_cv_prog_DLLTOOL"; then
7104  ac_ct_DLLTOOL=$DLLTOOL
7105  # Extract the first word of "dlltool", so it can be a program name with args.
7106set dummy dlltool; ac_word=$2
7107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7108$as_echo_n "checking for $ac_word... " >&6; }
7109if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7110  $as_echo_n "(cached) " >&6
7111else
7112  if test -n "$ac_ct_DLLTOOL"; then
7113  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7114else
7115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7116for as_dir in $PATH
7117do
7118  IFS=$as_save_IFS
7119  test -z "$as_dir" && as_dir=.
7120    for ac_exec_ext in '' $ac_executable_extensions; do
7121  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7122    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7123    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7124    break 2
7125  fi
7126done
7127  done
7128IFS=$as_save_IFS
7129
7130fi
7131fi
7132ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7133if test -n "$ac_ct_DLLTOOL"; then
7134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7135$as_echo "$ac_ct_DLLTOOL" >&6; }
7136else
7137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7138$as_echo "no" >&6; }
7139fi
7140
7141  if test "x$ac_ct_DLLTOOL" = x; then
7142    DLLTOOL="false"
7143  else
7144    case $cross_compiling:$ac_tool_warned in
7145yes:)
7146{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7147$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7148ac_tool_warned=yes ;;
7149esac
7150    DLLTOOL=$ac_ct_DLLTOOL
7151  fi
7152else
7153  DLLTOOL="$ac_cv_prog_DLLTOOL"
7154fi
7155
7156  if test -n "$ac_tool_prefix"; then
7157  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7158set dummy ${ac_tool_prefix}objdump; ac_word=$2
7159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7160$as_echo_n "checking for $ac_word... " >&6; }
7161if ${ac_cv_prog_OBJDUMP+:} false; then :
7162  $as_echo_n "(cached) " >&6
7163else
7164  if test -n "$OBJDUMP"; then
7165  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7166else
7167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7168for as_dir in $PATH
7169do
7170  IFS=$as_save_IFS
7171  test -z "$as_dir" && as_dir=.
7172    for ac_exec_ext in '' $ac_executable_extensions; do
7173  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7174    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7175    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7176    break 2
7177  fi
7178done
7179  done
7180IFS=$as_save_IFS
7181
7182fi
7183fi
7184OBJDUMP=$ac_cv_prog_OBJDUMP
7185if test -n "$OBJDUMP"; then
7186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7187$as_echo "$OBJDUMP" >&6; }
7188else
7189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7190$as_echo "no" >&6; }
7191fi
7192
7193
7194fi
7195if test -z "$ac_cv_prog_OBJDUMP"; then
7196  ac_ct_OBJDUMP=$OBJDUMP
7197  # Extract the first word of "objdump", so it can be a program name with args.
7198set dummy objdump; ac_word=$2
7199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7200$as_echo_n "checking for $ac_word... " >&6; }
7201if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7202  $as_echo_n "(cached) " >&6
7203else
7204  if test -n "$ac_ct_OBJDUMP"; then
7205  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7206else
7207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7208for as_dir in $PATH
7209do
7210  IFS=$as_save_IFS
7211  test -z "$as_dir" && as_dir=.
7212    for ac_exec_ext in '' $ac_executable_extensions; do
7213  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7214    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7215    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7216    break 2
7217  fi
7218done
7219  done
7220IFS=$as_save_IFS
7221
7222fi
7223fi
7224ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7225if test -n "$ac_ct_OBJDUMP"; then
7226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7227$as_echo "$ac_ct_OBJDUMP" >&6; }
7228else
7229  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7230$as_echo "no" >&6; }
7231fi
7232
7233  if test "x$ac_ct_OBJDUMP" = x; then
7234    OBJDUMP="false"
7235  else
7236    case $cross_compiling:$ac_tool_warned in
7237yes:)
7238{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7239$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7240ac_tool_warned=yes ;;
7241esac
7242    OBJDUMP=$ac_ct_OBJDUMP
7243  fi
7244else
7245  OBJDUMP="$ac_cv_prog_OBJDUMP"
7246fi
7247
7248  ;;
7249esac
7250
7251test -z "$AS" && AS=as
7252
7253
7254
7255
7256
7257test -z "$DLLTOOL" && DLLTOOL=dlltool
7258
7259
7260
7261
7262
7263test -z "$OBJDUMP" && OBJDUMP=objdump
7264
7265
7266
7267
7268
7269
7270
7271case $host in
7272  *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
7273   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLL/static GMP" >&5
7274$as_echo_n "checking for DLL/static GMP... " >&6; }
7275   if test "$enable_shared" = yes; then
7276     MPFR_LDFLAGS="$MPFR_LDFLAGS -no-undefined"
7277     LIBMPFR_LDFLAGS="$LIBMPFR_LDFLAGS -Wl,--output-def,.libs/libmpfr-4.dll.def"
7278     dont_link_with_gmp="yes"
7279     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7280/* end confdefs.h.  */
7281
7282#include "gmp.h"
7283#if !__GMP_LIBGMP_DLL
7284# error "Dead man"
7285error
7286#endif
7287
7288int
7289main ()
7290{
7291
7292  ;
7293  return 0;
7294}
7295_ACEOF
7296if ac_fn_c_try_compile "$LINENO"; then :
7297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: DLL" >&5
7298$as_echo "DLL" >&6; }
7299else
7300
7301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5
7302$as_echo "static" >&6; }
7303  as_fn_error $? "gmp.h isn't a DLL: use --enable-static --disable-shared" "$LINENO" 5
7304fi
7305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7306   else
7307     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7308/* end confdefs.h.  */
7309
7310#include "gmp.h"
7311#if __GMP_LIBGMP_DLL
7312# error "Dead man"
7313error
7314#endif
7315
7316int
7317main ()
7318{
7319
7320  ;
7321  return 0;
7322}
7323_ACEOF
7324if ac_fn_c_try_compile "$LINENO"; then :
7325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5
7326$as_echo "static" >&6; }
7327else
7328
7329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: DLL" >&5
7330$as_echo "DLL" >&6; }
7331  as_fn_error $? "gmp.h is a DLL: use --disable-static --enable-shared" "$LINENO" 5
7332fi
7333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7334  fi
7335  ;;
7336esac
7337case `pwd` in
7338  *\ * | *\	*)
7339    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7340$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7341esac
7342
7343
7344
7345macro_version='2.4.2'
7346macro_revision='1.3337'
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360ltmain="$ac_aux_dir/ltmain.sh"
7361
7362# Backslashify metacharacters that are still active within
7363# double-quoted strings.
7364sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7365
7366# Same as above, but do not quote variable references.
7367double_quote_subst='s/\(["`\\]\)/\\\1/g'
7368
7369# Sed substitution to delay expansion of an escaped shell variable in a
7370# double_quote_subst'ed string.
7371delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7372
7373# Sed substitution to delay expansion of an escaped single quote.
7374delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7375
7376# Sed substitution to avoid accidental globbing in evaled expressions
7377no_glob_subst='s/\*/\\\*/g'
7378
7379ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7380ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7381ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7382
7383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7384$as_echo_n "checking how to print strings... " >&6; }
7385# Test print first, because it will be a builtin if present.
7386if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7387   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7388  ECHO='print -r --'
7389elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7390  ECHO='printf %s\n'
7391else
7392  # Use this function as a fallback that always works.
7393  func_fallback_echo ()
7394  {
7395    eval 'cat <<_LTECHO_EOF
7396$1
7397_LTECHO_EOF'
7398  }
7399  ECHO='func_fallback_echo'
7400fi
7401
7402# func_echo_all arg...
7403# Invoke $ECHO with all args, space-separated.
7404func_echo_all ()
7405{
7406    $ECHO ""
7407}
7408
7409case "$ECHO" in
7410  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7411$as_echo "printf" >&6; } ;;
7412  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7413$as_echo "print -r" >&6; } ;;
7414  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7415$as_echo "cat" >&6; } ;;
7416esac
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7432$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7433if ${ac_cv_path_SED+:} false; then :
7434  $as_echo_n "(cached) " >&6
7435else
7436            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7437     for ac_i in 1 2 3 4 5 6 7; do
7438       ac_script="$ac_script$as_nl$ac_script"
7439     done
7440     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7441     { ac_script=; unset ac_script;}
7442     if test -z "$SED"; then
7443  ac_path_SED_found=false
7444  # Loop through the user's path and test for each of PROGNAME-LIST
7445  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7446for as_dir in $PATH
7447do
7448  IFS=$as_save_IFS
7449  test -z "$as_dir" && as_dir=.
7450    for ac_prog in sed gsed; do
7451    for ac_exec_ext in '' $ac_executable_extensions; do
7452      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7453      as_fn_executable_p "$ac_path_SED" || continue
7454# Check for GNU ac_path_SED and select it if it is found.
7455  # Check for GNU $ac_path_SED
7456case `"$ac_path_SED" --version 2>&1` in
7457*GNU*)
7458  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7459*)
7460  ac_count=0
7461  $as_echo_n 0123456789 >"conftest.in"
7462  while :
7463  do
7464    cat "conftest.in" "conftest.in" >"conftest.tmp"
7465    mv "conftest.tmp" "conftest.in"
7466    cp "conftest.in" "conftest.nl"
7467    $as_echo '' >> "conftest.nl"
7468    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7469    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7470    as_fn_arith $ac_count + 1 && ac_count=$as_val
7471    if test $ac_count -gt ${ac_path_SED_max-0}; then
7472      # Best one so far, save it but keep looking for a better one
7473      ac_cv_path_SED="$ac_path_SED"
7474      ac_path_SED_max=$ac_count
7475    fi
7476    # 10*(2^10) chars as input seems more than enough
7477    test $ac_count -gt 10 && break
7478  done
7479  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7480esac
7481
7482      $ac_path_SED_found && break 3
7483    done
7484  done
7485  done
7486IFS=$as_save_IFS
7487  if test -z "$ac_cv_path_SED"; then
7488    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7489  fi
7490else
7491  ac_cv_path_SED=$SED
7492fi
7493
7494fi
7495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7496$as_echo "$ac_cv_path_SED" >&6; }
7497 SED="$ac_cv_path_SED"
7498  rm -f conftest.sed
7499
7500test -z "$SED" && SED=sed
7501Xsed="$SED -e 1s/^X//"
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7514$as_echo_n "checking for fgrep... " >&6; }
7515if ${ac_cv_path_FGREP+:} false; then :
7516  $as_echo_n "(cached) " >&6
7517else
7518  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7519   then ac_cv_path_FGREP="$GREP -F"
7520   else
7521     if test -z "$FGREP"; then
7522  ac_path_FGREP_found=false
7523  # Loop through the user's path and test for each of PROGNAME-LIST
7524  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7526do
7527  IFS=$as_save_IFS
7528  test -z "$as_dir" && as_dir=.
7529    for ac_prog in fgrep; do
7530    for ac_exec_ext in '' $ac_executable_extensions; do
7531      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7532      as_fn_executable_p "$ac_path_FGREP" || continue
7533# Check for GNU ac_path_FGREP and select it if it is found.
7534  # Check for GNU $ac_path_FGREP
7535case `"$ac_path_FGREP" --version 2>&1` in
7536*GNU*)
7537  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7538*)
7539  ac_count=0
7540  $as_echo_n 0123456789 >"conftest.in"
7541  while :
7542  do
7543    cat "conftest.in" "conftest.in" >"conftest.tmp"
7544    mv "conftest.tmp" "conftest.in"
7545    cp "conftest.in" "conftest.nl"
7546    $as_echo 'FGREP' >> "conftest.nl"
7547    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7548    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7549    as_fn_arith $ac_count + 1 && ac_count=$as_val
7550    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7551      # Best one so far, save it but keep looking for a better one
7552      ac_cv_path_FGREP="$ac_path_FGREP"
7553      ac_path_FGREP_max=$ac_count
7554    fi
7555    # 10*(2^10) chars as input seems more than enough
7556    test $ac_count -gt 10 && break
7557  done
7558  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7559esac
7560
7561      $ac_path_FGREP_found && break 3
7562    done
7563  done
7564  done
7565IFS=$as_save_IFS
7566  if test -z "$ac_cv_path_FGREP"; then
7567    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7568  fi
7569else
7570  ac_cv_path_FGREP=$FGREP
7571fi
7572
7573   fi
7574fi
7575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7576$as_echo "$ac_cv_path_FGREP" >&6; }
7577 FGREP="$ac_cv_path_FGREP"
7578
7579
7580test -z "$GREP" && GREP=grep
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600# Check whether --with-gnu-ld was given.
7601if test "${with_gnu_ld+set}" = set; then :
7602  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7603else
7604  with_gnu_ld=no
7605fi
7606
7607ac_prog=ld
7608if test "$GCC" = yes; then
7609  # Check if gcc -print-prog-name=ld gives a path.
7610  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7611$as_echo_n "checking for ld used by $CC... " >&6; }
7612  case $host in
7613  *-*-mingw*)
7614    # gcc leaves a trailing carriage return which upsets mingw
7615    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7616  *)
7617    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7618  esac
7619  case $ac_prog in
7620    # Accept absolute paths.
7621    [\\/]* | ?:[\\/]*)
7622      re_direlt='/[^/][^/]*/\.\./'
7623      # Canonicalize the pathname of ld
7624      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7625      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7626	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7627      done
7628      test -z "$LD" && LD="$ac_prog"
7629      ;;
7630  "")
7631    # If it fails, then pretend we aren't using GCC.
7632    ac_prog=ld
7633    ;;
7634  *)
7635    # If it is relative, then search for the first ld in PATH.
7636    with_gnu_ld=unknown
7637    ;;
7638  esac
7639elif test "$with_gnu_ld" = yes; then
7640  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7641$as_echo_n "checking for GNU ld... " >&6; }
7642else
7643  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7644$as_echo_n "checking for non-GNU ld... " >&6; }
7645fi
7646if ${lt_cv_path_LD+:} false; then :
7647  $as_echo_n "(cached) " >&6
7648else
7649  if test -z "$LD"; then
7650  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7651  for ac_dir in $PATH; do
7652    IFS="$lt_save_ifs"
7653    test -z "$ac_dir" && ac_dir=.
7654    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7655      lt_cv_path_LD="$ac_dir/$ac_prog"
7656      # Check to see if the program is GNU ld.  I'd rather use --version,
7657      # but apparently some variants of GNU ld only accept -v.
7658      # Break only if it was the GNU/non-GNU ld that we prefer.
7659      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7660      *GNU* | *'with BFD'*)
7661	test "$with_gnu_ld" != no && break
7662	;;
7663      *)
7664	test "$with_gnu_ld" != yes && break
7665	;;
7666      esac
7667    fi
7668  done
7669  IFS="$lt_save_ifs"
7670else
7671  lt_cv_path_LD="$LD" # Let the user override the test with a path.
7672fi
7673fi
7674
7675LD="$lt_cv_path_LD"
7676if test -n "$LD"; then
7677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7678$as_echo "$LD" >&6; }
7679else
7680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7681$as_echo "no" >&6; }
7682fi
7683test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7685$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7686if ${lt_cv_prog_gnu_ld+:} false; then :
7687  $as_echo_n "(cached) " >&6
7688else
7689  # I'd rather use --version here, but apparently some GNU lds only accept -v.
7690case `$LD -v 2>&1 </dev/null` in
7691*GNU* | *'with BFD'*)
7692  lt_cv_prog_gnu_ld=yes
7693  ;;
7694*)
7695  lt_cv_prog_gnu_ld=no
7696  ;;
7697esac
7698fi
7699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7700$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7701with_gnu_ld=$lt_cv_prog_gnu_ld
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7712$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7713if ${lt_cv_path_NM+:} false; then :
7714  $as_echo_n "(cached) " >&6
7715else
7716  if test -n "$NM"; then
7717  # Let the user override the test.
7718  lt_cv_path_NM="$NM"
7719else
7720  lt_nm_to_check="${ac_tool_prefix}nm"
7721  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7722    lt_nm_to_check="$lt_nm_to_check nm"
7723  fi
7724  for lt_tmp_nm in $lt_nm_to_check; do
7725    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7726    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7727      IFS="$lt_save_ifs"
7728      test -z "$ac_dir" && ac_dir=.
7729      tmp_nm="$ac_dir/$lt_tmp_nm"
7730      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7731	# Check to see if the nm accepts a BSD-compat flag.
7732	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
7733	#   nm: unknown option "B" ignored
7734	# Tru64's nm complains that /dev/null is an invalid object file
7735	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7736	*/dev/null* | *'Invalid file or object type'*)
7737	  lt_cv_path_NM="$tmp_nm -B"
7738	  break
7739	  ;;
7740	*)
7741	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7742	  */dev/null*)
7743	    lt_cv_path_NM="$tmp_nm -p"
7744	    break
7745	    ;;
7746	  *)
7747	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7748	    continue # so that we can try to find one that supports BSD flags
7749	    ;;
7750	  esac
7751	  ;;
7752	esac
7753      fi
7754    done
7755    IFS="$lt_save_ifs"
7756  done
7757  : ${lt_cv_path_NM=no}
7758fi
7759fi
7760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7761$as_echo "$lt_cv_path_NM" >&6; }
7762if test "$lt_cv_path_NM" != "no"; then
7763  NM="$lt_cv_path_NM"
7764else
7765  # Didn't find any BSD compatible name lister, look for dumpbin.
7766  if test -n "$DUMPBIN"; then :
7767    # Let the user override the test.
7768  else
7769    if test -n "$ac_tool_prefix"; then
7770  for ac_prog in dumpbin "link -dump"
7771  do
7772    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7773set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7775$as_echo_n "checking for $ac_word... " >&6; }
7776if ${ac_cv_prog_DUMPBIN+:} false; then :
7777  $as_echo_n "(cached) " >&6
7778else
7779  if test -n "$DUMPBIN"; then
7780  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7781else
7782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7783for as_dir in $PATH
7784do
7785  IFS=$as_save_IFS
7786  test -z "$as_dir" && as_dir=.
7787    for ac_exec_ext in '' $ac_executable_extensions; do
7788  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7789    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7790    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7791    break 2
7792  fi
7793done
7794  done
7795IFS=$as_save_IFS
7796
7797fi
7798fi
7799DUMPBIN=$ac_cv_prog_DUMPBIN
7800if test -n "$DUMPBIN"; then
7801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7802$as_echo "$DUMPBIN" >&6; }
7803else
7804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7805$as_echo "no" >&6; }
7806fi
7807
7808
7809    test -n "$DUMPBIN" && break
7810  done
7811fi
7812if test -z "$DUMPBIN"; then
7813  ac_ct_DUMPBIN=$DUMPBIN
7814  for ac_prog in dumpbin "link -dump"
7815do
7816  # Extract the first word of "$ac_prog", so it can be a program name with args.
7817set dummy $ac_prog; ac_word=$2
7818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7819$as_echo_n "checking for $ac_word... " >&6; }
7820if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7821  $as_echo_n "(cached) " >&6
7822else
7823  if test -n "$ac_ct_DUMPBIN"; then
7824  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7825else
7826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7827for as_dir in $PATH
7828do
7829  IFS=$as_save_IFS
7830  test -z "$as_dir" && as_dir=.
7831    for ac_exec_ext in '' $ac_executable_extensions; do
7832  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7833    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7834    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7835    break 2
7836  fi
7837done
7838  done
7839IFS=$as_save_IFS
7840
7841fi
7842fi
7843ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7844if test -n "$ac_ct_DUMPBIN"; then
7845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7846$as_echo "$ac_ct_DUMPBIN" >&6; }
7847else
7848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7849$as_echo "no" >&6; }
7850fi
7851
7852
7853  test -n "$ac_ct_DUMPBIN" && break
7854done
7855
7856  if test "x$ac_ct_DUMPBIN" = x; then
7857    DUMPBIN=":"
7858  else
7859    case $cross_compiling:$ac_tool_warned in
7860yes:)
7861{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7862$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7863ac_tool_warned=yes ;;
7864esac
7865    DUMPBIN=$ac_ct_DUMPBIN
7866  fi
7867fi
7868
7869    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7870    *COFF*)
7871      DUMPBIN="$DUMPBIN -symbols"
7872      ;;
7873    *)
7874      DUMPBIN=:
7875      ;;
7876    esac
7877  fi
7878
7879  if test "$DUMPBIN" != ":"; then
7880    NM="$DUMPBIN"
7881  fi
7882fi
7883test -z "$NM" && NM=nm
7884
7885
7886
7887
7888
7889
7890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7891$as_echo_n "checking the name lister ($NM) interface... " >&6; }
7892if ${lt_cv_nm_interface+:} false; then :
7893  $as_echo_n "(cached) " >&6
7894else
7895  lt_cv_nm_interface="BSD nm"
7896  echo "int some_variable = 0;" > conftest.$ac_ext
7897  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7898  (eval "$ac_compile" 2>conftest.err)
7899  cat conftest.err >&5
7900  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7901  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7902  cat conftest.err >&5
7903  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7904  cat conftest.out >&5
7905  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7906    lt_cv_nm_interface="MS dumpbin"
7907  fi
7908  rm -f conftest*
7909fi
7910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7911$as_echo "$lt_cv_nm_interface" >&6; }
7912
7913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7914$as_echo_n "checking whether ln -s works... " >&6; }
7915LN_S=$as_ln_s
7916if test "$LN_S" = "ln -s"; then
7917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7918$as_echo "yes" >&6; }
7919else
7920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7921$as_echo "no, using $LN_S" >&6; }
7922fi
7923
7924# find the maximum length of command line arguments
7925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7926$as_echo_n "checking the maximum length of command line arguments... " >&6; }
7927if ${lt_cv_sys_max_cmd_len+:} false; then :
7928  $as_echo_n "(cached) " >&6
7929else
7930    i=0
7931  teststring="ABCD"
7932
7933  case $build_os in
7934  msdosdjgpp*)
7935    # On DJGPP, this test can blow up pretty badly due to problems in libc
7936    # (any single argument exceeding 2000 bytes causes a buffer overrun
7937    # during glob expansion).  Even if it were fixed, the result of this
7938    # check would be larger than it should be.
7939    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7940    ;;
7941
7942  gnu*)
7943    # Under GNU Hurd, this test is not required because there is
7944    # no limit to the length of command line arguments.
7945    # Libtool will interpret -1 as no limit whatsoever
7946    lt_cv_sys_max_cmd_len=-1;
7947    ;;
7948
7949  cygwin* | mingw* | cegcc*)
7950    # On Win9x/ME, this test blows up -- it succeeds, but takes
7951    # about 5 minutes as the teststring grows exponentially.
7952    # Worse, since 9x/ME are not pre-emptively multitasking,
7953    # you end up with a "frozen" computer, even though with patience
7954    # the test eventually succeeds (with a max line length of 256k).
7955    # Instead, let's just punt: use the minimum linelength reported by
7956    # all of the supported platforms: 8192 (on NT/2K/XP).
7957    lt_cv_sys_max_cmd_len=8192;
7958    ;;
7959
7960  mint*)
7961    # On MiNT this can take a long time and run out of memory.
7962    lt_cv_sys_max_cmd_len=8192;
7963    ;;
7964
7965  amigaos*)
7966    # On AmigaOS with pdksh, this test takes hours, literally.
7967    # So we just punt and use a minimum line length of 8192.
7968    lt_cv_sys_max_cmd_len=8192;
7969    ;;
7970
7971  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7972    # This has been around since 386BSD, at least.  Likely further.
7973    if test -x /sbin/sysctl; then
7974      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7975    elif test -x /usr/sbin/sysctl; then
7976      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7977    else
7978      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
7979    fi
7980    # And add a safety zone
7981    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7982    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7983    ;;
7984
7985  interix*)
7986    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7987    lt_cv_sys_max_cmd_len=196608
7988    ;;
7989
7990  os2*)
7991    # The test takes a long time on OS/2.
7992    lt_cv_sys_max_cmd_len=8192
7993    ;;
7994
7995  osf*)
7996    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7997    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7998    # nice to cause kernel panics so lets avoid the loop below.
7999    # First set a reasonable default.
8000    lt_cv_sys_max_cmd_len=16384
8001    #
8002    if test -x /sbin/sysconfig; then
8003      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8004        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8005      esac
8006    fi
8007    ;;
8008  sco3.2v5*)
8009    lt_cv_sys_max_cmd_len=102400
8010    ;;
8011  sysv5* | sco5v6* | sysv4.2uw2*)
8012    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8013    if test -n "$kargmax"; then
8014      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
8015    else
8016      lt_cv_sys_max_cmd_len=32768
8017    fi
8018    ;;
8019  *)
8020    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8021    if test -n "$lt_cv_sys_max_cmd_len" && \
8022	test undefined != "$lt_cv_sys_max_cmd_len"; then
8023      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8024      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8025    else
8026      # Make teststring a little bigger before we do anything with it.
8027      # a 1K string should be a reasonable start.
8028      for i in 1 2 3 4 5 6 7 8 ; do
8029        teststring=$teststring$teststring
8030      done
8031      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8032      # If test is not a shell built-in, we'll probably end up computing a
8033      # maximum length that is only half of the actual maximum length, but
8034      # we can't tell.
8035      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
8036	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8037	      test $i != 17 # 1/2 MB should be enough
8038      do
8039        i=`expr $i + 1`
8040        teststring=$teststring$teststring
8041      done
8042      # Only check the string length outside the loop.
8043      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8044      teststring=
8045      # Add a significant safety factor because C++ compilers can tack on
8046      # massive amounts of additional arguments before passing them to the
8047      # linker.  It appears as though 1/2 is a usable value.
8048      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8049    fi
8050    ;;
8051  esac
8052
8053fi
8054
8055if test -n $lt_cv_sys_max_cmd_len ; then
8056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8057$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8058else
8059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8060$as_echo "none" >&6; }
8061fi
8062max_cmd_len=$lt_cv_sys_max_cmd_len
8063
8064
8065
8066
8067
8068
8069: ${CP="cp -f"}
8070: ${MV="mv -f"}
8071: ${RM="rm -f"}
8072
8073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
8074$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
8075# Try some XSI features
8076xsi_shell=no
8077( _lt_dummy="a/b/c"
8078  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
8079      = c,a/b,b/c, \
8080    && eval 'test $(( 1 + 1 )) -eq 2 \
8081    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8082  && xsi_shell=yes
8083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
8084$as_echo "$xsi_shell" >&6; }
8085
8086
8087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
8088$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
8089lt_shell_append=no
8090( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
8091    >/dev/null 2>&1 \
8092  && lt_shell_append=yes
8093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
8094$as_echo "$lt_shell_append" >&6; }
8095
8096
8097if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8098  lt_unset=unset
8099else
8100  lt_unset=false
8101fi
8102
8103
8104
8105
8106
8107# test EBCDIC or ASCII
8108case `echo X|tr X '\101'` in
8109 A) # ASCII based system
8110    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8111  lt_SP2NL='tr \040 \012'
8112  lt_NL2SP='tr \015\012 \040\040'
8113  ;;
8114 *) # EBCDIC based system
8115  lt_SP2NL='tr \100 \n'
8116  lt_NL2SP='tr \r\n \100\100'
8117  ;;
8118esac
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8129$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8130if ${lt_cv_to_host_file_cmd+:} false; then :
8131  $as_echo_n "(cached) " >&6
8132else
8133  case $host in
8134  *-*-mingw* )
8135    case $build in
8136      *-*-mingw* ) # actually msys
8137        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8138        ;;
8139      *-*-cygwin* )
8140        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8141        ;;
8142      * ) # otherwise, assume *nix
8143        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8144        ;;
8145    esac
8146    ;;
8147  *-*-cygwin* )
8148    case $build in
8149      *-*-mingw* ) # actually msys
8150        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8151        ;;
8152      *-*-cygwin* )
8153        lt_cv_to_host_file_cmd=func_convert_file_noop
8154        ;;
8155      * ) # otherwise, assume *nix
8156        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8157        ;;
8158    esac
8159    ;;
8160  * ) # unhandled hosts (and "normal" native builds)
8161    lt_cv_to_host_file_cmd=func_convert_file_noop
8162    ;;
8163esac
8164
8165fi
8166
8167to_host_file_cmd=$lt_cv_to_host_file_cmd
8168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8169$as_echo "$lt_cv_to_host_file_cmd" >&6; }
8170
8171
8172
8173
8174
8175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8176$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8177if ${lt_cv_to_tool_file_cmd+:} false; then :
8178  $as_echo_n "(cached) " >&6
8179else
8180  #assume ordinary cross tools, or native build.
8181lt_cv_to_tool_file_cmd=func_convert_file_noop
8182case $host in
8183  *-*-mingw* )
8184    case $build in
8185      *-*-mingw* ) # actually msys
8186        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8187        ;;
8188    esac
8189    ;;
8190esac
8191
8192fi
8193
8194to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8196$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8197
8198
8199
8200
8201
8202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8203$as_echo_n "checking for $LD option to reload object files... " >&6; }
8204if ${lt_cv_ld_reload_flag+:} false; then :
8205  $as_echo_n "(cached) " >&6
8206else
8207  lt_cv_ld_reload_flag='-r'
8208fi
8209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8210$as_echo "$lt_cv_ld_reload_flag" >&6; }
8211reload_flag=$lt_cv_ld_reload_flag
8212case $reload_flag in
8213"" | " "*) ;;
8214*) reload_flag=" $reload_flag" ;;
8215esac
8216reload_cmds='$LD$reload_flag -o $output$reload_objs'
8217case $host_os in
8218  cygwin* | mingw* | pw32* | cegcc*)
8219    if test "$GCC" != yes; then
8220      reload_cmds=false
8221    fi
8222    ;;
8223  darwin*)
8224    if test "$GCC" = yes; then
8225      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8226    else
8227      reload_cmds='$LD$reload_flag -o $output$reload_objs'
8228    fi
8229    ;;
8230esac
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240if test -n "$ac_tool_prefix"; then
8241  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8242set dummy ${ac_tool_prefix}objdump; ac_word=$2
8243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8244$as_echo_n "checking for $ac_word... " >&6; }
8245if ${ac_cv_prog_OBJDUMP+:} false; then :
8246  $as_echo_n "(cached) " >&6
8247else
8248  if test -n "$OBJDUMP"; then
8249  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8250else
8251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8252for as_dir in $PATH
8253do
8254  IFS=$as_save_IFS
8255  test -z "$as_dir" && as_dir=.
8256    for ac_exec_ext in '' $ac_executable_extensions; do
8257  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8258    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8259    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8260    break 2
8261  fi
8262done
8263  done
8264IFS=$as_save_IFS
8265
8266fi
8267fi
8268OBJDUMP=$ac_cv_prog_OBJDUMP
8269if test -n "$OBJDUMP"; then
8270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8271$as_echo "$OBJDUMP" >&6; }
8272else
8273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8274$as_echo "no" >&6; }
8275fi
8276
8277
8278fi
8279if test -z "$ac_cv_prog_OBJDUMP"; then
8280  ac_ct_OBJDUMP=$OBJDUMP
8281  # Extract the first word of "objdump", so it can be a program name with args.
8282set dummy objdump; ac_word=$2
8283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8284$as_echo_n "checking for $ac_word... " >&6; }
8285if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8286  $as_echo_n "(cached) " >&6
8287else
8288  if test -n "$ac_ct_OBJDUMP"; then
8289  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8290else
8291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8292for as_dir in $PATH
8293do
8294  IFS=$as_save_IFS
8295  test -z "$as_dir" && as_dir=.
8296    for ac_exec_ext in '' $ac_executable_extensions; do
8297  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8298    ac_cv_prog_ac_ct_OBJDUMP="objdump"
8299    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8300    break 2
8301  fi
8302done
8303  done
8304IFS=$as_save_IFS
8305
8306fi
8307fi
8308ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8309if test -n "$ac_ct_OBJDUMP"; then
8310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8311$as_echo "$ac_ct_OBJDUMP" >&6; }
8312else
8313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8314$as_echo "no" >&6; }
8315fi
8316
8317  if test "x$ac_ct_OBJDUMP" = x; then
8318    OBJDUMP="false"
8319  else
8320    case $cross_compiling:$ac_tool_warned in
8321yes:)
8322{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8323$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8324ac_tool_warned=yes ;;
8325esac
8326    OBJDUMP=$ac_ct_OBJDUMP
8327  fi
8328else
8329  OBJDUMP="$ac_cv_prog_OBJDUMP"
8330fi
8331
8332test -z "$OBJDUMP" && OBJDUMP=objdump
8333
8334
8335
8336
8337
8338
8339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8340$as_echo_n "checking how to recognize dependent libraries... " >&6; }
8341if ${lt_cv_deplibs_check_method+:} false; then :
8342  $as_echo_n "(cached) " >&6
8343else
8344  lt_cv_file_magic_cmd='$MAGIC_CMD'
8345lt_cv_file_magic_test_file=
8346lt_cv_deplibs_check_method='unknown'
8347# Need to set the preceding variable on all platforms that support
8348# interlibrary dependencies.
8349# 'none' -- dependencies not supported.
8350# `unknown' -- same as none, but documents that we really don't know.
8351# 'pass_all' -- all dependencies passed with no checks.
8352# 'test_compile' -- check by making test program.
8353# 'file_magic [[regex]]' -- check by looking for files in library path
8354# which responds to the $file_magic_cmd with a given extended regex.
8355# If you have `file' or equivalent on your system and you're not sure
8356# whether `pass_all' will *always* work, you probably want this one.
8357
8358case $host_os in
8359aix[4-9]*)
8360  lt_cv_deplibs_check_method=pass_all
8361  ;;
8362
8363beos*)
8364  lt_cv_deplibs_check_method=pass_all
8365  ;;
8366
8367bsdi[45]*)
8368  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8369  lt_cv_file_magic_cmd='/usr/bin/file -L'
8370  lt_cv_file_magic_test_file=/shlib/libc.so
8371  ;;
8372
8373cygwin*)
8374  # func_win32_libid is a shell function defined in ltmain.sh
8375  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8376  lt_cv_file_magic_cmd='func_win32_libid'
8377  ;;
8378
8379mingw* | pw32*)
8380  # Base MSYS/MinGW do not provide the 'file' command needed by
8381  # func_win32_libid shell function, so use a weaker test based on 'objdump',
8382  # unless we find 'file', for example because we are cross-compiling.
8383  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
8384  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
8385    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8386    lt_cv_file_magic_cmd='func_win32_libid'
8387  else
8388    # Keep this pattern in sync with the one in func_win32_libid.
8389    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8390    lt_cv_file_magic_cmd='$OBJDUMP -f'
8391  fi
8392  ;;
8393
8394cegcc*)
8395  # use the weaker test based on 'objdump'. See mingw*.
8396  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8397  lt_cv_file_magic_cmd='$OBJDUMP -f'
8398  ;;
8399
8400darwin* | rhapsody*)
8401  lt_cv_deplibs_check_method=pass_all
8402  ;;
8403
8404freebsd* | dragonfly*)
8405  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8406    case $host_cpu in
8407    i*86 )
8408      # Not sure whether the presence of OpenBSD here was a mistake.
8409      # Let's accept both of them until this is cleared up.
8410      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8411      lt_cv_file_magic_cmd=/usr/bin/file
8412      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8413      ;;
8414    esac
8415  else
8416    lt_cv_deplibs_check_method=pass_all
8417  fi
8418  ;;
8419
8420haiku*)
8421  lt_cv_deplibs_check_method=pass_all
8422  ;;
8423
8424hpux10.20* | hpux11*)
8425  lt_cv_file_magic_cmd=/usr/bin/file
8426  case $host_cpu in
8427  ia64*)
8428    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8429    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8430    ;;
8431  hppa*64*)
8432    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]'
8433    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8434    ;;
8435  *)
8436    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8437    lt_cv_file_magic_test_file=/usr/lib/libc.sl
8438    ;;
8439  esac
8440  ;;
8441
8442interix[3-9]*)
8443  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8444  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8445  ;;
8446
8447irix5* | irix6* | nonstopux*)
8448  case $LD in
8449  *-32|*"-32 ") libmagic=32-bit;;
8450  *-n32|*"-n32 ") libmagic=N32;;
8451  *-64|*"-64 ") libmagic=64-bit;;
8452  *) libmagic=never-match;;
8453  esac
8454  lt_cv_deplibs_check_method=pass_all
8455  ;;
8456
8457# This must be glibc/ELF.
8458linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8459  lt_cv_deplibs_check_method=pass_all
8460  ;;
8461
8462netbsd* | netbsdelf*-gnu)
8463  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8464    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8465  else
8466    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8467  fi
8468  ;;
8469
8470newos6*)
8471  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8472  lt_cv_file_magic_cmd=/usr/bin/file
8473  lt_cv_file_magic_test_file=/usr/lib/libnls.so
8474  ;;
8475
8476*nto* | *qnx*)
8477  lt_cv_deplibs_check_method=pass_all
8478  ;;
8479
8480openbsd*)
8481  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8482    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8483  else
8484    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8485  fi
8486  ;;
8487
8488osf3* | osf4* | osf5*)
8489  lt_cv_deplibs_check_method=pass_all
8490  ;;
8491
8492rdos*)
8493  lt_cv_deplibs_check_method=pass_all
8494  ;;
8495
8496solaris*)
8497  lt_cv_deplibs_check_method=pass_all
8498  ;;
8499
8500sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8501  lt_cv_deplibs_check_method=pass_all
8502  ;;
8503
8504sysv4 | sysv4.3*)
8505  case $host_vendor in
8506  motorola)
8507    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]'
8508    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8509    ;;
8510  ncr)
8511    lt_cv_deplibs_check_method=pass_all
8512    ;;
8513  sequent)
8514    lt_cv_file_magic_cmd='/bin/file'
8515    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8516    ;;
8517  sni)
8518    lt_cv_file_magic_cmd='/bin/file'
8519    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8520    lt_cv_file_magic_test_file=/lib/libc.so
8521    ;;
8522  siemens)
8523    lt_cv_deplibs_check_method=pass_all
8524    ;;
8525  pc)
8526    lt_cv_deplibs_check_method=pass_all
8527    ;;
8528  esac
8529  ;;
8530
8531tpf*)
8532  lt_cv_deplibs_check_method=pass_all
8533  ;;
8534esac
8535
8536fi
8537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8538$as_echo "$lt_cv_deplibs_check_method" >&6; }
8539
8540file_magic_glob=
8541want_nocaseglob=no
8542if test "$build" = "$host"; then
8543  case $host_os in
8544  mingw* | pw32*)
8545    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8546      want_nocaseglob=yes
8547    else
8548      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8549    fi
8550    ;;
8551  esac
8552fi
8553
8554file_magic_cmd=$lt_cv_file_magic_cmd
8555deplibs_check_method=$lt_cv_deplibs_check_method
8556test -z "$deplibs_check_method" && deplibs_check_method=unknown
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579if test -n "$ac_tool_prefix"; then
8580  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8581set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8583$as_echo_n "checking for $ac_word... " >&6; }
8584if ${ac_cv_prog_DLLTOOL+:} false; then :
8585  $as_echo_n "(cached) " >&6
8586else
8587  if test -n "$DLLTOOL"; then
8588  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8589else
8590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8591for as_dir in $PATH
8592do
8593  IFS=$as_save_IFS
8594  test -z "$as_dir" && as_dir=.
8595    for ac_exec_ext in '' $ac_executable_extensions; do
8596  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8597    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8598    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8599    break 2
8600  fi
8601done
8602  done
8603IFS=$as_save_IFS
8604
8605fi
8606fi
8607DLLTOOL=$ac_cv_prog_DLLTOOL
8608if test -n "$DLLTOOL"; then
8609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8610$as_echo "$DLLTOOL" >&6; }
8611else
8612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8613$as_echo "no" >&6; }
8614fi
8615
8616
8617fi
8618if test -z "$ac_cv_prog_DLLTOOL"; then
8619  ac_ct_DLLTOOL=$DLLTOOL
8620  # Extract the first word of "dlltool", so it can be a program name with args.
8621set dummy dlltool; ac_word=$2
8622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8623$as_echo_n "checking for $ac_word... " >&6; }
8624if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8625  $as_echo_n "(cached) " >&6
8626else
8627  if test -n "$ac_ct_DLLTOOL"; then
8628  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8629else
8630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8631for as_dir in $PATH
8632do
8633  IFS=$as_save_IFS
8634  test -z "$as_dir" && as_dir=.
8635    for ac_exec_ext in '' $ac_executable_extensions; do
8636  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8637    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8638    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8639    break 2
8640  fi
8641done
8642  done
8643IFS=$as_save_IFS
8644
8645fi
8646fi
8647ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8648if test -n "$ac_ct_DLLTOOL"; then
8649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8650$as_echo "$ac_ct_DLLTOOL" >&6; }
8651else
8652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8653$as_echo "no" >&6; }
8654fi
8655
8656  if test "x$ac_ct_DLLTOOL" = x; then
8657    DLLTOOL="false"
8658  else
8659    case $cross_compiling:$ac_tool_warned in
8660yes:)
8661{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8662$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8663ac_tool_warned=yes ;;
8664esac
8665    DLLTOOL=$ac_ct_DLLTOOL
8666  fi
8667else
8668  DLLTOOL="$ac_cv_prog_DLLTOOL"
8669fi
8670
8671test -z "$DLLTOOL" && DLLTOOL=dlltool
8672
8673
8674
8675
8676
8677
8678
8679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8680$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8681if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8682  $as_echo_n "(cached) " >&6
8683else
8684  lt_cv_sharedlib_from_linklib_cmd='unknown'
8685
8686case $host_os in
8687cygwin* | mingw* | pw32* | cegcc*)
8688  # two different shell functions defined in ltmain.sh
8689  # decide which to use based on capabilities of $DLLTOOL
8690  case `$DLLTOOL --help 2>&1` in
8691  *--identify-strict*)
8692    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8693    ;;
8694  *)
8695    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8696    ;;
8697  esac
8698  ;;
8699*)
8700  # fallback: assume linklib IS sharedlib
8701  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
8702  ;;
8703esac
8704
8705fi
8706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8707$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8708sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8709test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8710
8711
8712
8713
8714
8715
8716
8717if test -n "$ac_tool_prefix"; then
8718  for ac_prog in ar
8719  do
8720    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8721set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8723$as_echo_n "checking for $ac_word... " >&6; }
8724if ${ac_cv_prog_AR+:} false; then :
8725  $as_echo_n "(cached) " >&6
8726else
8727  if test -n "$AR"; then
8728  ac_cv_prog_AR="$AR" # Let the user override the test.
8729else
8730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8731for as_dir in $PATH
8732do
8733  IFS=$as_save_IFS
8734  test -z "$as_dir" && as_dir=.
8735    for ac_exec_ext in '' $ac_executable_extensions; do
8736  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8737    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8738    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8739    break 2
8740  fi
8741done
8742  done
8743IFS=$as_save_IFS
8744
8745fi
8746fi
8747AR=$ac_cv_prog_AR
8748if test -n "$AR"; then
8749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8750$as_echo "$AR" >&6; }
8751else
8752  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8753$as_echo "no" >&6; }
8754fi
8755
8756
8757    test -n "$AR" && break
8758  done
8759fi
8760if test -z "$AR"; then
8761  ac_ct_AR=$AR
8762  for ac_prog in ar
8763do
8764  # Extract the first word of "$ac_prog", so it can be a program name with args.
8765set dummy $ac_prog; ac_word=$2
8766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8767$as_echo_n "checking for $ac_word... " >&6; }
8768if ${ac_cv_prog_ac_ct_AR+:} false; then :
8769  $as_echo_n "(cached) " >&6
8770else
8771  if test -n "$ac_ct_AR"; then
8772  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8773else
8774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8775for as_dir in $PATH
8776do
8777  IFS=$as_save_IFS
8778  test -z "$as_dir" && as_dir=.
8779    for ac_exec_ext in '' $ac_executable_extensions; do
8780  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8781    ac_cv_prog_ac_ct_AR="$ac_prog"
8782    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8783    break 2
8784  fi
8785done
8786  done
8787IFS=$as_save_IFS
8788
8789fi
8790fi
8791ac_ct_AR=$ac_cv_prog_ac_ct_AR
8792if test -n "$ac_ct_AR"; then
8793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8794$as_echo "$ac_ct_AR" >&6; }
8795else
8796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8797$as_echo "no" >&6; }
8798fi
8799
8800
8801  test -n "$ac_ct_AR" && break
8802done
8803
8804  if test "x$ac_ct_AR" = x; then
8805    AR="false"
8806  else
8807    case $cross_compiling:$ac_tool_warned in
8808yes:)
8809{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8810$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8811ac_tool_warned=yes ;;
8812esac
8813    AR=$ac_ct_AR
8814  fi
8815fi
8816
8817: ${AR=ar}
8818: ${AR_FLAGS=cru}
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8831$as_echo_n "checking for archiver @FILE support... " >&6; }
8832if ${lt_cv_ar_at_file+:} false; then :
8833  $as_echo_n "(cached) " >&6
8834else
8835  lt_cv_ar_at_file=no
8836   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8837/* end confdefs.h.  */
8838
8839int
8840main ()
8841{
8842
8843  ;
8844  return 0;
8845}
8846_ACEOF
8847if ac_fn_c_try_compile "$LINENO"; then :
8848  echo conftest.$ac_objext > conftest.lst
8849      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8850      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8851  (eval $lt_ar_try) 2>&5
8852  ac_status=$?
8853  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8854  test $ac_status = 0; }
8855      if test "$ac_status" -eq 0; then
8856	# Ensure the archiver fails upon bogus file names.
8857	rm -f conftest.$ac_objext libconftest.a
8858	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8859  (eval $lt_ar_try) 2>&5
8860  ac_status=$?
8861  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8862  test $ac_status = 0; }
8863	if test "$ac_status" -ne 0; then
8864          lt_cv_ar_at_file=@
8865        fi
8866      fi
8867      rm -f conftest.* libconftest.a
8868
8869fi
8870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8871
8872fi
8873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8874$as_echo "$lt_cv_ar_at_file" >&6; }
8875
8876if test "x$lt_cv_ar_at_file" = xno; then
8877  archiver_list_spec=
8878else
8879  archiver_list_spec=$lt_cv_ar_at_file
8880fi
8881
8882
8883
8884
8885
8886
8887
8888if test -n "$ac_tool_prefix"; then
8889  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8890set dummy ${ac_tool_prefix}strip; ac_word=$2
8891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8892$as_echo_n "checking for $ac_word... " >&6; }
8893if ${ac_cv_prog_STRIP+:} false; then :
8894  $as_echo_n "(cached) " >&6
8895else
8896  if test -n "$STRIP"; then
8897  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8898else
8899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8900for as_dir in $PATH
8901do
8902  IFS=$as_save_IFS
8903  test -z "$as_dir" && as_dir=.
8904    for ac_exec_ext in '' $ac_executable_extensions; do
8905  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8906    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8907    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8908    break 2
8909  fi
8910done
8911  done
8912IFS=$as_save_IFS
8913
8914fi
8915fi
8916STRIP=$ac_cv_prog_STRIP
8917if test -n "$STRIP"; then
8918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8919$as_echo "$STRIP" >&6; }
8920else
8921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8922$as_echo "no" >&6; }
8923fi
8924
8925
8926fi
8927if test -z "$ac_cv_prog_STRIP"; then
8928  ac_ct_STRIP=$STRIP
8929  # Extract the first word of "strip", so it can be a program name with args.
8930set dummy strip; ac_word=$2
8931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8932$as_echo_n "checking for $ac_word... " >&6; }
8933if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8934  $as_echo_n "(cached) " >&6
8935else
8936  if test -n "$ac_ct_STRIP"; then
8937  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8938else
8939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8940for as_dir in $PATH
8941do
8942  IFS=$as_save_IFS
8943  test -z "$as_dir" && as_dir=.
8944    for ac_exec_ext in '' $ac_executable_extensions; do
8945  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8946    ac_cv_prog_ac_ct_STRIP="strip"
8947    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8948    break 2
8949  fi
8950done
8951  done
8952IFS=$as_save_IFS
8953
8954fi
8955fi
8956ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8957if test -n "$ac_ct_STRIP"; then
8958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8959$as_echo "$ac_ct_STRIP" >&6; }
8960else
8961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8962$as_echo "no" >&6; }
8963fi
8964
8965  if test "x$ac_ct_STRIP" = x; then
8966    STRIP=":"
8967  else
8968    case $cross_compiling:$ac_tool_warned in
8969yes:)
8970{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8971$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8972ac_tool_warned=yes ;;
8973esac
8974    STRIP=$ac_ct_STRIP
8975  fi
8976else
8977  STRIP="$ac_cv_prog_STRIP"
8978fi
8979
8980test -z "$STRIP" && STRIP=:
8981
8982
8983
8984
8985
8986
8987if test -n "$ac_tool_prefix"; then
8988  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8989set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8991$as_echo_n "checking for $ac_word... " >&6; }
8992if ${ac_cv_prog_RANLIB+:} false; then :
8993  $as_echo_n "(cached) " >&6
8994else
8995  if test -n "$RANLIB"; then
8996  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8997else
8998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8999for as_dir in $PATH
9000do
9001  IFS=$as_save_IFS
9002  test -z "$as_dir" && as_dir=.
9003    for ac_exec_ext in '' $ac_executable_extensions; do
9004  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9005    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9006    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9007    break 2
9008  fi
9009done
9010  done
9011IFS=$as_save_IFS
9012
9013fi
9014fi
9015RANLIB=$ac_cv_prog_RANLIB
9016if test -n "$RANLIB"; then
9017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9018$as_echo "$RANLIB" >&6; }
9019else
9020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9021$as_echo "no" >&6; }
9022fi
9023
9024
9025fi
9026if test -z "$ac_cv_prog_RANLIB"; then
9027  ac_ct_RANLIB=$RANLIB
9028  # Extract the first word of "ranlib", so it can be a program name with args.
9029set dummy ranlib; ac_word=$2
9030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9031$as_echo_n "checking for $ac_word... " >&6; }
9032if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9033  $as_echo_n "(cached) " >&6
9034else
9035  if test -n "$ac_ct_RANLIB"; then
9036  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9037else
9038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9039for as_dir in $PATH
9040do
9041  IFS=$as_save_IFS
9042  test -z "$as_dir" && as_dir=.
9043    for ac_exec_ext in '' $ac_executable_extensions; do
9044  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9045    ac_cv_prog_ac_ct_RANLIB="ranlib"
9046    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9047    break 2
9048  fi
9049done
9050  done
9051IFS=$as_save_IFS
9052
9053fi
9054fi
9055ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9056if test -n "$ac_ct_RANLIB"; then
9057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9058$as_echo "$ac_ct_RANLIB" >&6; }
9059else
9060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9061$as_echo "no" >&6; }
9062fi
9063
9064  if test "x$ac_ct_RANLIB" = x; then
9065    RANLIB=":"
9066  else
9067    case $cross_compiling:$ac_tool_warned in
9068yes:)
9069{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9070$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9071ac_tool_warned=yes ;;
9072esac
9073    RANLIB=$ac_ct_RANLIB
9074  fi
9075else
9076  RANLIB="$ac_cv_prog_RANLIB"
9077fi
9078
9079test -z "$RANLIB" && RANLIB=:
9080
9081
9082
9083
9084
9085
9086# Determine commands to create old-style static archives.
9087old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9088old_postinstall_cmds='chmod 644 $oldlib'
9089old_postuninstall_cmds=
9090
9091if test -n "$RANLIB"; then
9092  case $host_os in
9093  openbsd*)
9094    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9095    ;;
9096  *)
9097    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9098    ;;
9099  esac
9100  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9101fi
9102
9103case $host_os in
9104  darwin*)
9105    lock_old_archive_extraction=yes ;;
9106  *)
9107    lock_old_archive_extraction=no ;;
9108esac
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148# If no C compiler was specified, use CC.
9149LTCC=${LTCC-"$CC"}
9150
9151# If no C compiler flags were specified, use CFLAGS.
9152LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9153
9154# Allow CC to be a program name with arguments.
9155compiler=$CC
9156
9157
9158# Check for command to grab the raw symbol name followed by C symbol from nm.
9159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9160$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9161if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9162  $as_echo_n "(cached) " >&6
9163else
9164
9165# These are sane defaults that work on at least a few old systems.
9166# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9167
9168# Character class describing NM global symbol codes.
9169symcode='[BCDEGRST]'
9170
9171# Regexp to match symbols that can be accessed directly from C.
9172sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9173
9174# Define system-specific variables.
9175case $host_os in
9176aix*)
9177  symcode='[BCDT]'
9178  ;;
9179cygwin* | mingw* | pw32* | cegcc*)
9180  symcode='[ABCDGISTW]'
9181  ;;
9182hpux*)
9183  if test "$host_cpu" = ia64; then
9184    symcode='[ABCDEGRST]'
9185  fi
9186  ;;
9187irix* | nonstopux*)
9188  symcode='[BCDEGRST]'
9189  ;;
9190osf*)
9191  symcode='[BCDEGQRST]'
9192  ;;
9193solaris*)
9194  symcode='[BDRT]'
9195  ;;
9196sco3.2v5*)
9197  symcode='[DT]'
9198  ;;
9199sysv4.2uw2*)
9200  symcode='[DT]'
9201  ;;
9202sysv5* | sco5v6* | unixware* | OpenUNIX*)
9203  symcode='[ABDT]'
9204  ;;
9205sysv4)
9206  symcode='[DFNSTU]'
9207  ;;
9208esac
9209
9210# If we're using GNU nm, then use its standard symbol codes.
9211case `$NM -V 2>&1` in
9212*GNU* | *'with BFD'*)
9213  symcode='[ABCDGIRSTW]' ;;
9214esac
9215
9216# Transform an extracted symbol line into a proper C declaration.
9217# Some systems (esp. on ia64) link data and code symbols differently,
9218# so use this general approach.
9219lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9220
9221# Transform an extracted symbol line into symbol name and symbol address
9222lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
9223lt_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'"
9224
9225# Handle CRLF in mingw tool chain
9226opt_cr=
9227case $build_os in
9228mingw*)
9229  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9230  ;;
9231esac
9232
9233# Try without a prefix underscore, then with it.
9234for ac_symprfx in "" "_"; do
9235
9236  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9237  symxfrm="\\1 $ac_symprfx\\2 \\2"
9238
9239  # Write the raw and C identifiers.
9240  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9241    # Fake it for dumpbin and say T for any non-static function
9242    # and D for any global variable.
9243    # Also find C++ and __fastcall symbols from MSVC++,
9244    # which start with @ or ?.
9245    lt_cv_sys_global_symbol_pipe="$AWK '"\
9246"     {last_section=section; section=\$ 3};"\
9247"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9248"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9249"     \$ 0!~/External *\|/{next};"\
9250"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9251"     {if(hide[section]) next};"\
9252"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9253"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9254"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
9255"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9256"     ' prfx=^$ac_symprfx"
9257  else
9258    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9259  fi
9260  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9261
9262  # Check to see that the pipe works correctly.
9263  pipe_works=no
9264
9265  rm -f conftest*
9266  cat > conftest.$ac_ext <<_LT_EOF
9267#ifdef __cplusplus
9268extern "C" {
9269#endif
9270char nm_test_var;
9271void nm_test_func(void);
9272void nm_test_func(void){}
9273#ifdef __cplusplus
9274}
9275#endif
9276int main(){nm_test_var='a';nm_test_func();return(0);}
9277_LT_EOF
9278
9279  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9280  (eval $ac_compile) 2>&5
9281  ac_status=$?
9282  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9283  test $ac_status = 0; }; then
9284    # Now try to grab the symbols.
9285    nlist=conftest.nm
9286    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9287  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9288  ac_status=$?
9289  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9290  test $ac_status = 0; } && test -s "$nlist"; then
9291      # Try sorting and uniquifying the output.
9292      if sort "$nlist" | uniq > "$nlist"T; then
9293	mv -f "$nlist"T "$nlist"
9294      else
9295	rm -f "$nlist"T
9296      fi
9297
9298      # Make sure that we snagged all the symbols we need.
9299      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9300	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9301	  cat <<_LT_EOF > conftest.$ac_ext
9302/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
9303#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
9304/* DATA imports from DLLs on WIN32 con't be const, because runtime
9305   relocations are performed -- see ld's documentation on pseudo-relocs.  */
9306# define LT_DLSYM_CONST
9307#elif defined(__osf__)
9308/* This system does not cope well with relocations in const data.  */
9309# define LT_DLSYM_CONST
9310#else
9311# define LT_DLSYM_CONST const
9312#endif
9313
9314#ifdef __cplusplus
9315extern "C" {
9316#endif
9317
9318_LT_EOF
9319	  # Now generate the symbol file.
9320	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9321
9322	  cat <<_LT_EOF >> conftest.$ac_ext
9323
9324/* The mapping between symbol names and symbols.  */
9325LT_DLSYM_CONST struct {
9326  const char *name;
9327  void       *address;
9328}
9329lt__PROGRAM__LTX_preloaded_symbols[] =
9330{
9331  { "@PROGRAM@", (void *) 0 },
9332_LT_EOF
9333	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9334	  cat <<\_LT_EOF >> conftest.$ac_ext
9335  {0, (void *) 0}
9336};
9337
9338/* This works around a problem in FreeBSD linker */
9339#ifdef FREEBSD_WORKAROUND
9340static const void *lt_preloaded_setup() {
9341  return lt__PROGRAM__LTX_preloaded_symbols;
9342}
9343#endif
9344
9345#ifdef __cplusplus
9346}
9347#endif
9348_LT_EOF
9349	  # Now try linking the two files.
9350	  mv conftest.$ac_objext conftstm.$ac_objext
9351	  lt_globsym_save_LIBS=$LIBS
9352	  lt_globsym_save_CFLAGS=$CFLAGS
9353	  LIBS="conftstm.$ac_objext"
9354	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9355	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9356  (eval $ac_link) 2>&5
9357  ac_status=$?
9358  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9359  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
9360	    pipe_works=yes
9361	  fi
9362	  LIBS=$lt_globsym_save_LIBS
9363	  CFLAGS=$lt_globsym_save_CFLAGS
9364	else
9365	  echo "cannot find nm_test_func in $nlist" >&5
9366	fi
9367      else
9368	echo "cannot find nm_test_var in $nlist" >&5
9369      fi
9370    else
9371      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9372    fi
9373  else
9374    echo "$progname: failed program was:" >&5
9375    cat conftest.$ac_ext >&5
9376  fi
9377  rm -rf conftest* conftst*
9378
9379  # Do not use the global_symbol_pipe unless it works.
9380  if test "$pipe_works" = yes; then
9381    break
9382  else
9383    lt_cv_sys_global_symbol_pipe=
9384  fi
9385done
9386
9387fi
9388
9389if test -z "$lt_cv_sys_global_symbol_pipe"; then
9390  lt_cv_sys_global_symbol_to_cdecl=
9391fi
9392if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9394$as_echo "failed" >&6; }
9395else
9396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9397$as_echo "ok" >&6; }
9398fi
9399
9400# Response file support.
9401if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9402  nm_file_list_spec='@'
9403elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9404  nm_file_list_spec='@'
9405fi
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9434$as_echo_n "checking for sysroot... " >&6; }
9435
9436# Check whether --with-sysroot was given.
9437if test "${with_sysroot+set}" = set; then :
9438  withval=$with_sysroot;
9439else
9440  with_sysroot=no
9441fi
9442
9443
9444lt_sysroot=
9445case ${with_sysroot} in #(
9446 yes)
9447   if test "$GCC" = yes; then
9448     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9449   fi
9450   ;; #(
9451 /*)
9452   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9453   ;; #(
9454 no|'')
9455   ;; #(
9456 *)
9457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
9458$as_echo "${with_sysroot}" >&6; }
9459   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9460   ;;
9461esac
9462
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9464$as_echo "${lt_sysroot:-no}" >&6; }
9465
9466
9467
9468
9469
9470# Check whether --enable-libtool-lock was given.
9471if test "${enable_libtool_lock+set}" = set; then :
9472  enableval=$enable_libtool_lock;
9473fi
9474
9475test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9476
9477# Some flags need to be propagated to the compiler or linker for good
9478# libtool support.
9479case $host in
9480ia64-*-hpux*)
9481  # Find out which ABI we are using.
9482  echo 'int i;' > conftest.$ac_ext
9483  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9484  (eval $ac_compile) 2>&5
9485  ac_status=$?
9486  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9487  test $ac_status = 0; }; then
9488    case `/usr/bin/file conftest.$ac_objext` in
9489      *ELF-32*)
9490	HPUX_IA64_MODE="32"
9491	;;
9492      *ELF-64*)
9493	HPUX_IA64_MODE="64"
9494	;;
9495    esac
9496  fi
9497  rm -rf conftest*
9498  ;;
9499*-*-irix6*)
9500  # Find out which ABI we are using.
9501  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9502  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9503  (eval $ac_compile) 2>&5
9504  ac_status=$?
9505  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9506  test $ac_status = 0; }; then
9507    if test "$lt_cv_prog_gnu_ld" = yes; then
9508      case `/usr/bin/file conftest.$ac_objext` in
9509	*32-bit*)
9510	  LD="${LD-ld} -melf32bsmip"
9511	  ;;
9512	*N32*)
9513	  LD="${LD-ld} -melf32bmipn32"
9514	  ;;
9515	*64-bit*)
9516	  LD="${LD-ld} -melf64bmip"
9517	;;
9518      esac
9519    else
9520      case `/usr/bin/file conftest.$ac_objext` in
9521	*32-bit*)
9522	  LD="${LD-ld} -32"
9523	  ;;
9524	*N32*)
9525	  LD="${LD-ld} -n32"
9526	  ;;
9527	*64-bit*)
9528	  LD="${LD-ld} -64"
9529	  ;;
9530      esac
9531    fi
9532  fi
9533  rm -rf conftest*
9534  ;;
9535
9536x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
9537s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9538  # Find out which ABI we are using.
9539  echo 'int i;' > conftest.$ac_ext
9540  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9541  (eval $ac_compile) 2>&5
9542  ac_status=$?
9543  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9544  test $ac_status = 0; }; then
9545    case `/usr/bin/file conftest.o` in
9546      *32-bit*)
9547	case $host in
9548	  x86_64-*kfreebsd*-gnu)
9549	    LD="${LD-ld} -m elf_i386_fbsd"
9550	    ;;
9551	  x86_64-*linux*)
9552	    case `/usr/bin/file conftest.o` in
9553	      *x86-64*)
9554		LD="${LD-ld} -m elf32_x86_64"
9555		;;
9556	      *)
9557		LD="${LD-ld} -m elf_i386"
9558		;;
9559	    esac
9560	    ;;
9561	  ppc64-*linux*|powerpc64-*linux*)
9562	    LD="${LD-ld} -m elf32ppclinux"
9563	    ;;
9564	  s390x-*linux*)
9565	    LD="${LD-ld} -m elf_s390"
9566	    ;;
9567	  sparc64-*linux*)
9568	    LD="${LD-ld} -m elf32_sparc"
9569	    ;;
9570	esac
9571	;;
9572      *64-bit*)
9573	case $host in
9574	  x86_64-*kfreebsd*-gnu)
9575	    LD="${LD-ld} -m elf_x86_64_fbsd"
9576	    ;;
9577	  x86_64-*linux*)
9578	    LD="${LD-ld} -m elf_x86_64"
9579	    ;;
9580	  ppc*-*linux*|powerpc*-*linux*)
9581	    LD="${LD-ld} -m elf64ppc"
9582	    ;;
9583	  s390*-*linux*|s390*-*tpf*)
9584	    LD="${LD-ld} -m elf64_s390"
9585	    ;;
9586	  sparc*-*linux*)
9587	    LD="${LD-ld} -m elf64_sparc"
9588	    ;;
9589	esac
9590	;;
9591    esac
9592  fi
9593  rm -rf conftest*
9594  ;;
9595
9596*-*-sco3.2v5*)
9597  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9598  SAVE_CFLAGS="$CFLAGS"
9599  CFLAGS="$CFLAGS -belf"
9600  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9601$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9602if ${lt_cv_cc_needs_belf+:} false; then :
9603  $as_echo_n "(cached) " >&6
9604else
9605  ac_ext=c
9606ac_cpp='$CPP $CPPFLAGS'
9607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9609ac_compiler_gnu=$ac_cv_c_compiler_gnu
9610
9611     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9612/* end confdefs.h.  */
9613
9614int
9615main ()
9616{
9617
9618  ;
9619  return 0;
9620}
9621_ACEOF
9622if ac_fn_c_try_link "$LINENO"; then :
9623  lt_cv_cc_needs_belf=yes
9624else
9625  lt_cv_cc_needs_belf=no
9626fi
9627rm -f core conftest.err conftest.$ac_objext \
9628    conftest$ac_exeext conftest.$ac_ext
9629     ac_ext=c
9630ac_cpp='$CPP $CPPFLAGS'
9631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9633ac_compiler_gnu=$ac_cv_c_compiler_gnu
9634
9635fi
9636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9637$as_echo "$lt_cv_cc_needs_belf" >&6; }
9638  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9639    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9640    CFLAGS="$SAVE_CFLAGS"
9641  fi
9642  ;;
9643*-*solaris*)
9644  # Find out which ABI we are using.
9645  echo 'int i;' > conftest.$ac_ext
9646  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9647  (eval $ac_compile) 2>&5
9648  ac_status=$?
9649  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9650  test $ac_status = 0; }; then
9651    case `/usr/bin/file conftest.o` in
9652    *64-bit*)
9653      case $lt_cv_prog_gnu_ld in
9654      yes*)
9655        case $host in
9656        i?86-*-solaris*)
9657          LD="${LD-ld} -m elf_x86_64"
9658          ;;
9659        sparc*-*-solaris*)
9660          LD="${LD-ld} -m elf64_sparc"
9661          ;;
9662        esac
9663        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
9664        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9665          LD="${LD-ld}_sol2"
9666        fi
9667        ;;
9668      *)
9669	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9670	  LD="${LD-ld} -64"
9671	fi
9672	;;
9673      esac
9674      ;;
9675    esac
9676  fi
9677  rm -rf conftest*
9678  ;;
9679esac
9680
9681need_locks="$enable_libtool_lock"
9682
9683if test -n "$ac_tool_prefix"; then
9684  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9685set dummy ${ac_tool_prefix}mt; ac_word=$2
9686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9687$as_echo_n "checking for $ac_word... " >&6; }
9688if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9689  $as_echo_n "(cached) " >&6
9690else
9691  if test -n "$MANIFEST_TOOL"; then
9692  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9693else
9694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9695for as_dir in $PATH
9696do
9697  IFS=$as_save_IFS
9698  test -z "$as_dir" && as_dir=.
9699    for ac_exec_ext in '' $ac_executable_extensions; do
9700  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9701    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9702    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9703    break 2
9704  fi
9705done
9706  done
9707IFS=$as_save_IFS
9708
9709fi
9710fi
9711MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9712if test -n "$MANIFEST_TOOL"; then
9713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9714$as_echo "$MANIFEST_TOOL" >&6; }
9715else
9716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9717$as_echo "no" >&6; }
9718fi
9719
9720
9721fi
9722if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9723  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9724  # Extract the first word of "mt", so it can be a program name with args.
9725set dummy mt; ac_word=$2
9726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9727$as_echo_n "checking for $ac_word... " >&6; }
9728if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9729  $as_echo_n "(cached) " >&6
9730else
9731  if test -n "$ac_ct_MANIFEST_TOOL"; then
9732  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9733else
9734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9735for as_dir in $PATH
9736do
9737  IFS=$as_save_IFS
9738  test -z "$as_dir" && as_dir=.
9739    for ac_exec_ext in '' $ac_executable_extensions; do
9740  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9741    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9742    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9743    break 2
9744  fi
9745done
9746  done
9747IFS=$as_save_IFS
9748
9749fi
9750fi
9751ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9752if test -n "$ac_ct_MANIFEST_TOOL"; then
9753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9754$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9755else
9756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9757$as_echo "no" >&6; }
9758fi
9759
9760  if test "x$ac_ct_MANIFEST_TOOL" = x; then
9761    MANIFEST_TOOL=":"
9762  else
9763    case $cross_compiling:$ac_tool_warned in
9764yes:)
9765{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9766$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9767ac_tool_warned=yes ;;
9768esac
9769    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9770  fi
9771else
9772  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9773fi
9774
9775test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9777$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9778if ${lt_cv_path_mainfest_tool+:} false; then :
9779  $as_echo_n "(cached) " >&6
9780else
9781  lt_cv_path_mainfest_tool=no
9782  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9783  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9784  cat conftest.err >&5
9785  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9786    lt_cv_path_mainfest_tool=yes
9787  fi
9788  rm -f conftest*
9789fi
9790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9791$as_echo "$lt_cv_path_mainfest_tool" >&6; }
9792if test "x$lt_cv_path_mainfest_tool" != xyes; then
9793  MANIFEST_TOOL=:
9794fi
9795
9796
9797
9798
9799
9800
9801  case $host_os in
9802    rhapsody* | darwin*)
9803    if test -n "$ac_tool_prefix"; then
9804  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9805set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9807$as_echo_n "checking for $ac_word... " >&6; }
9808if ${ac_cv_prog_DSYMUTIL+:} false; then :
9809  $as_echo_n "(cached) " >&6
9810else
9811  if test -n "$DSYMUTIL"; then
9812  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9813else
9814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9815for as_dir in $PATH
9816do
9817  IFS=$as_save_IFS
9818  test -z "$as_dir" && as_dir=.
9819    for ac_exec_ext in '' $ac_executable_extensions; do
9820  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9821    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9822    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9823    break 2
9824  fi
9825done
9826  done
9827IFS=$as_save_IFS
9828
9829fi
9830fi
9831DSYMUTIL=$ac_cv_prog_DSYMUTIL
9832if test -n "$DSYMUTIL"; then
9833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9834$as_echo "$DSYMUTIL" >&6; }
9835else
9836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9837$as_echo "no" >&6; }
9838fi
9839
9840
9841fi
9842if test -z "$ac_cv_prog_DSYMUTIL"; then
9843  ac_ct_DSYMUTIL=$DSYMUTIL
9844  # Extract the first word of "dsymutil", so it can be a program name with args.
9845set dummy dsymutil; ac_word=$2
9846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9847$as_echo_n "checking for $ac_word... " >&6; }
9848if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9849  $as_echo_n "(cached) " >&6
9850else
9851  if test -n "$ac_ct_DSYMUTIL"; then
9852  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9853else
9854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9855for as_dir in $PATH
9856do
9857  IFS=$as_save_IFS
9858  test -z "$as_dir" && as_dir=.
9859    for ac_exec_ext in '' $ac_executable_extensions; do
9860  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9861    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9862    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9863    break 2
9864  fi
9865done
9866  done
9867IFS=$as_save_IFS
9868
9869fi
9870fi
9871ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9872if test -n "$ac_ct_DSYMUTIL"; then
9873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9874$as_echo "$ac_ct_DSYMUTIL" >&6; }
9875else
9876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9877$as_echo "no" >&6; }
9878fi
9879
9880  if test "x$ac_ct_DSYMUTIL" = x; then
9881    DSYMUTIL=":"
9882  else
9883    case $cross_compiling:$ac_tool_warned in
9884yes:)
9885{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9886$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9887ac_tool_warned=yes ;;
9888esac
9889    DSYMUTIL=$ac_ct_DSYMUTIL
9890  fi
9891else
9892  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9893fi
9894
9895    if test -n "$ac_tool_prefix"; then
9896  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9897set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9899$as_echo_n "checking for $ac_word... " >&6; }
9900if ${ac_cv_prog_NMEDIT+:} false; then :
9901  $as_echo_n "(cached) " >&6
9902else
9903  if test -n "$NMEDIT"; then
9904  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9905else
9906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9907for as_dir in $PATH
9908do
9909  IFS=$as_save_IFS
9910  test -z "$as_dir" && as_dir=.
9911    for ac_exec_ext in '' $ac_executable_extensions; do
9912  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9913    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9914    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9915    break 2
9916  fi
9917done
9918  done
9919IFS=$as_save_IFS
9920
9921fi
9922fi
9923NMEDIT=$ac_cv_prog_NMEDIT
9924if test -n "$NMEDIT"; then
9925  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9926$as_echo "$NMEDIT" >&6; }
9927else
9928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9929$as_echo "no" >&6; }
9930fi
9931
9932
9933fi
9934if test -z "$ac_cv_prog_NMEDIT"; then
9935  ac_ct_NMEDIT=$NMEDIT
9936  # Extract the first word of "nmedit", so it can be a program name with args.
9937set dummy nmedit; ac_word=$2
9938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9939$as_echo_n "checking for $ac_word... " >&6; }
9940if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9941  $as_echo_n "(cached) " >&6
9942else
9943  if test -n "$ac_ct_NMEDIT"; then
9944  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9945else
9946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9947for as_dir in $PATH
9948do
9949  IFS=$as_save_IFS
9950  test -z "$as_dir" && as_dir=.
9951    for ac_exec_ext in '' $ac_executable_extensions; do
9952  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9953    ac_cv_prog_ac_ct_NMEDIT="nmedit"
9954    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9955    break 2
9956  fi
9957done
9958  done
9959IFS=$as_save_IFS
9960
9961fi
9962fi
9963ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9964if test -n "$ac_ct_NMEDIT"; then
9965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9966$as_echo "$ac_ct_NMEDIT" >&6; }
9967else
9968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9969$as_echo "no" >&6; }
9970fi
9971
9972  if test "x$ac_ct_NMEDIT" = x; then
9973    NMEDIT=":"
9974  else
9975    case $cross_compiling:$ac_tool_warned in
9976yes:)
9977{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9978$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9979ac_tool_warned=yes ;;
9980esac
9981    NMEDIT=$ac_ct_NMEDIT
9982  fi
9983else
9984  NMEDIT="$ac_cv_prog_NMEDIT"
9985fi
9986
9987    if test -n "$ac_tool_prefix"; then
9988  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9989set dummy ${ac_tool_prefix}lipo; ac_word=$2
9990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9991$as_echo_n "checking for $ac_word... " >&6; }
9992if ${ac_cv_prog_LIPO+:} false; then :
9993  $as_echo_n "(cached) " >&6
9994else
9995  if test -n "$LIPO"; then
9996  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9997else
9998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9999for as_dir in $PATH
10000do
10001  IFS=$as_save_IFS
10002  test -z "$as_dir" && as_dir=.
10003    for ac_exec_ext in '' $ac_executable_extensions; do
10004  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10005    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10006    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10007    break 2
10008  fi
10009done
10010  done
10011IFS=$as_save_IFS
10012
10013fi
10014fi
10015LIPO=$ac_cv_prog_LIPO
10016if test -n "$LIPO"; then
10017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10018$as_echo "$LIPO" >&6; }
10019else
10020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10021$as_echo "no" >&6; }
10022fi
10023
10024
10025fi
10026if test -z "$ac_cv_prog_LIPO"; then
10027  ac_ct_LIPO=$LIPO
10028  # Extract the first word of "lipo", so it can be a program name with args.
10029set dummy lipo; ac_word=$2
10030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10031$as_echo_n "checking for $ac_word... " >&6; }
10032if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10033  $as_echo_n "(cached) " >&6
10034else
10035  if test -n "$ac_ct_LIPO"; then
10036  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10037else
10038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10039for as_dir in $PATH
10040do
10041  IFS=$as_save_IFS
10042  test -z "$as_dir" && as_dir=.
10043    for ac_exec_ext in '' $ac_executable_extensions; do
10044  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10045    ac_cv_prog_ac_ct_LIPO="lipo"
10046    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10047    break 2
10048  fi
10049done
10050  done
10051IFS=$as_save_IFS
10052
10053fi
10054fi
10055ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10056if test -n "$ac_ct_LIPO"; then
10057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10058$as_echo "$ac_ct_LIPO" >&6; }
10059else
10060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10061$as_echo "no" >&6; }
10062fi
10063
10064  if test "x$ac_ct_LIPO" = x; then
10065    LIPO=":"
10066  else
10067    case $cross_compiling:$ac_tool_warned in
10068yes:)
10069{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10070$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10071ac_tool_warned=yes ;;
10072esac
10073    LIPO=$ac_ct_LIPO
10074  fi
10075else
10076  LIPO="$ac_cv_prog_LIPO"
10077fi
10078
10079    if test -n "$ac_tool_prefix"; then
10080  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10081set dummy ${ac_tool_prefix}otool; ac_word=$2
10082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10083$as_echo_n "checking for $ac_word... " >&6; }
10084if ${ac_cv_prog_OTOOL+:} false; then :
10085  $as_echo_n "(cached) " >&6
10086else
10087  if test -n "$OTOOL"; then
10088  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10089else
10090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10091for as_dir in $PATH
10092do
10093  IFS=$as_save_IFS
10094  test -z "$as_dir" && as_dir=.
10095    for ac_exec_ext in '' $ac_executable_extensions; do
10096  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10097    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10098    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10099    break 2
10100  fi
10101done
10102  done
10103IFS=$as_save_IFS
10104
10105fi
10106fi
10107OTOOL=$ac_cv_prog_OTOOL
10108if test -n "$OTOOL"; then
10109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10110$as_echo "$OTOOL" >&6; }
10111else
10112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10113$as_echo "no" >&6; }
10114fi
10115
10116
10117fi
10118if test -z "$ac_cv_prog_OTOOL"; then
10119  ac_ct_OTOOL=$OTOOL
10120  # Extract the first word of "otool", so it can be a program name with args.
10121set dummy otool; ac_word=$2
10122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10123$as_echo_n "checking for $ac_word... " >&6; }
10124if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10125  $as_echo_n "(cached) " >&6
10126else
10127  if test -n "$ac_ct_OTOOL"; then
10128  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10129else
10130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10131for as_dir in $PATH
10132do
10133  IFS=$as_save_IFS
10134  test -z "$as_dir" && as_dir=.
10135    for ac_exec_ext in '' $ac_executable_extensions; do
10136  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10137    ac_cv_prog_ac_ct_OTOOL="otool"
10138    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10139    break 2
10140  fi
10141done
10142  done
10143IFS=$as_save_IFS
10144
10145fi
10146fi
10147ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10148if test -n "$ac_ct_OTOOL"; then
10149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10150$as_echo "$ac_ct_OTOOL" >&6; }
10151else
10152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10153$as_echo "no" >&6; }
10154fi
10155
10156  if test "x$ac_ct_OTOOL" = x; then
10157    OTOOL=":"
10158  else
10159    case $cross_compiling:$ac_tool_warned in
10160yes:)
10161{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10162$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10163ac_tool_warned=yes ;;
10164esac
10165    OTOOL=$ac_ct_OTOOL
10166  fi
10167else
10168  OTOOL="$ac_cv_prog_OTOOL"
10169fi
10170
10171    if test -n "$ac_tool_prefix"; then
10172  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10173set dummy ${ac_tool_prefix}otool64; ac_word=$2
10174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10175$as_echo_n "checking for $ac_word... " >&6; }
10176if ${ac_cv_prog_OTOOL64+:} false; then :
10177  $as_echo_n "(cached) " >&6
10178else
10179  if test -n "$OTOOL64"; then
10180  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10181else
10182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10183for as_dir in $PATH
10184do
10185  IFS=$as_save_IFS
10186  test -z "$as_dir" && as_dir=.
10187    for ac_exec_ext in '' $ac_executable_extensions; do
10188  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10189    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10190    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10191    break 2
10192  fi
10193done
10194  done
10195IFS=$as_save_IFS
10196
10197fi
10198fi
10199OTOOL64=$ac_cv_prog_OTOOL64
10200if test -n "$OTOOL64"; then
10201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10202$as_echo "$OTOOL64" >&6; }
10203else
10204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10205$as_echo "no" >&6; }
10206fi
10207
10208
10209fi
10210if test -z "$ac_cv_prog_OTOOL64"; then
10211  ac_ct_OTOOL64=$OTOOL64
10212  # Extract the first word of "otool64", so it can be a program name with args.
10213set dummy otool64; ac_word=$2
10214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10215$as_echo_n "checking for $ac_word... " >&6; }
10216if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10217  $as_echo_n "(cached) " >&6
10218else
10219  if test -n "$ac_ct_OTOOL64"; then
10220  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10221else
10222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10223for as_dir in $PATH
10224do
10225  IFS=$as_save_IFS
10226  test -z "$as_dir" && as_dir=.
10227    for ac_exec_ext in '' $ac_executable_extensions; do
10228  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10229    ac_cv_prog_ac_ct_OTOOL64="otool64"
10230    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10231    break 2
10232  fi
10233done
10234  done
10235IFS=$as_save_IFS
10236
10237fi
10238fi
10239ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10240if test -n "$ac_ct_OTOOL64"; then
10241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10242$as_echo "$ac_ct_OTOOL64" >&6; }
10243else
10244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10245$as_echo "no" >&6; }
10246fi
10247
10248  if test "x$ac_ct_OTOOL64" = x; then
10249    OTOOL64=":"
10250  else
10251    case $cross_compiling:$ac_tool_warned in
10252yes:)
10253{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10254$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10255ac_tool_warned=yes ;;
10256esac
10257    OTOOL64=$ac_ct_OTOOL64
10258  fi
10259else
10260  OTOOL64="$ac_cv_prog_OTOOL64"
10261fi
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10290$as_echo_n "checking for -single_module linker flag... " >&6; }
10291if ${lt_cv_apple_cc_single_mod+:} false; then :
10292  $as_echo_n "(cached) " >&6
10293else
10294  lt_cv_apple_cc_single_mod=no
10295      if test -z "${LT_MULTI_MODULE}"; then
10296	# By default we will add the -single_module flag. You can override
10297	# by either setting the environment variable LT_MULTI_MODULE
10298	# non-empty at configure time, or by adding -multi_module to the
10299	# link flags.
10300	rm -rf libconftest.dylib*
10301	echo "int foo(void){return 1;}" > conftest.c
10302	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10303-dynamiclib -Wl,-single_module conftest.c" >&5
10304	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10305	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10306        _lt_result=$?
10307	# If there is a non-empty error log, and "single_module"
10308	# appears in it, assume the flag caused a linker warning
10309        if test -s conftest.err && $GREP single_module conftest.err; then
10310	  cat conftest.err >&5
10311	# Otherwise, if the output was created with a 0 exit code from
10312	# the compiler, it worked.
10313	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
10314	  lt_cv_apple_cc_single_mod=yes
10315	else
10316	  cat conftest.err >&5
10317	fi
10318	rm -rf libconftest.dylib*
10319	rm -f conftest.*
10320      fi
10321fi
10322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10323$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10324
10325    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10326$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10327if ${lt_cv_ld_exported_symbols_list+:} false; then :
10328  $as_echo_n "(cached) " >&6
10329else
10330  lt_cv_ld_exported_symbols_list=no
10331      save_LDFLAGS=$LDFLAGS
10332      echo "_main" > conftest.sym
10333      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10334      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10335/* end confdefs.h.  */
10336
10337int
10338main ()
10339{
10340
10341  ;
10342  return 0;
10343}
10344_ACEOF
10345if ac_fn_c_try_link "$LINENO"; then :
10346  lt_cv_ld_exported_symbols_list=yes
10347else
10348  lt_cv_ld_exported_symbols_list=no
10349fi
10350rm -f core conftest.err conftest.$ac_objext \
10351    conftest$ac_exeext conftest.$ac_ext
10352	LDFLAGS="$save_LDFLAGS"
10353
10354fi
10355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10356$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10357
10358    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10359$as_echo_n "checking for -force_load linker flag... " >&6; }
10360if ${lt_cv_ld_force_load+:} false; then :
10361  $as_echo_n "(cached) " >&6
10362else
10363  lt_cv_ld_force_load=no
10364      cat > conftest.c << _LT_EOF
10365int forced_loaded() { return 2;}
10366_LT_EOF
10367      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10368      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10369      echo "$AR cru libconftest.a conftest.o" >&5
10370      $AR cru libconftest.a conftest.o 2>&5
10371      echo "$RANLIB libconftest.a" >&5
10372      $RANLIB libconftest.a 2>&5
10373      cat > conftest.c << _LT_EOF
10374int main() { return 0;}
10375_LT_EOF
10376      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10377      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10378      _lt_result=$?
10379      if test -s conftest.err && $GREP force_load conftest.err; then
10380	cat conftest.err >&5
10381      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
10382	lt_cv_ld_force_load=yes
10383      else
10384	cat conftest.err >&5
10385      fi
10386        rm -f conftest.err libconftest.a conftest conftest.c
10387        rm -rf conftest.dSYM
10388
10389fi
10390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10391$as_echo "$lt_cv_ld_force_load" >&6; }
10392    case $host_os in
10393    rhapsody* | darwin1.[012])
10394      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10395    darwin1.*)
10396      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10397    darwin*) # darwin 5.x on
10398      # if running on 10.5 or later, the deployment target defaults
10399      # to the OS version, if on x86, and 10.4, the deployment
10400      # target defaults to 10.4. Don't you love it?
10401      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10402	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10403	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10404	10.[012]*)
10405	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10406	10.*)
10407	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10408      esac
10409    ;;
10410  esac
10411    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10412      _lt_dar_single_mod='$single_module'
10413    fi
10414    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10415      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10416    else
10417      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10418    fi
10419    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
10420      _lt_dsymutil='~$DSYMUTIL $lib || :'
10421    else
10422      _lt_dsymutil=
10423    fi
10424    ;;
10425  esac
10426
10427for ac_header in dlfcn.h
10428do :
10429  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10430"
10431if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10432  cat >>confdefs.h <<_ACEOF
10433#define HAVE_DLFCN_H 1
10434_ACEOF
10435
10436fi
10437
10438done
10439
10440
10441
10442
10443
10444# Set options
10445
10446
10447
10448        enable_dlopen=no
10449
10450
10451
10452            # Check whether --enable-shared was given.
10453if test "${enable_shared+set}" = set; then :
10454  enableval=$enable_shared; p=${PACKAGE-default}
10455    case $enableval in
10456    yes) enable_shared=yes ;;
10457    no) enable_shared=no ;;
10458    *)
10459      enable_shared=no
10460      # Look at the argument we got.  We use all the common list separators.
10461      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10462      for pkg in $enableval; do
10463	IFS="$lt_save_ifs"
10464	if test "X$pkg" = "X$p"; then
10465	  enable_shared=yes
10466	fi
10467      done
10468      IFS="$lt_save_ifs"
10469      ;;
10470    esac
10471else
10472  enable_shared=yes
10473fi
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483  # Check whether --enable-static was given.
10484if test "${enable_static+set}" = set; then :
10485  enableval=$enable_static; p=${PACKAGE-default}
10486    case $enableval in
10487    yes) enable_static=yes ;;
10488    no) enable_static=no ;;
10489    *)
10490     enable_static=no
10491      # Look at the argument we got.  We use all the common list separators.
10492      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10493      for pkg in $enableval; do
10494	IFS="$lt_save_ifs"
10495	if test "X$pkg" = "X$p"; then
10496	  enable_static=yes
10497	fi
10498      done
10499      IFS="$lt_save_ifs"
10500      ;;
10501    esac
10502else
10503  enable_static=yes
10504fi
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515# Check whether --with-pic was given.
10516if test "${with_pic+set}" = set; then :
10517  withval=$with_pic; lt_p=${PACKAGE-default}
10518    case $withval in
10519    yes|no) pic_mode=$withval ;;
10520    *)
10521      pic_mode=default
10522      # Look at the argument we got.  We use all the common list separators.
10523      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10524      for lt_pkg in $withval; do
10525	IFS="$lt_save_ifs"
10526	if test "X$lt_pkg" = "X$lt_p"; then
10527	  pic_mode=yes
10528	fi
10529      done
10530      IFS="$lt_save_ifs"
10531      ;;
10532    esac
10533else
10534  pic_mode=default
10535fi
10536
10537
10538test -z "$pic_mode" && pic_mode=default
10539
10540
10541
10542
10543
10544
10545
10546  # Check whether --enable-fast-install was given.
10547if test "${enable_fast_install+set}" = set; then :
10548  enableval=$enable_fast_install; p=${PACKAGE-default}
10549    case $enableval in
10550    yes) enable_fast_install=yes ;;
10551    no) enable_fast_install=no ;;
10552    *)
10553      enable_fast_install=no
10554      # Look at the argument we got.  We use all the common list separators.
10555      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10556      for pkg in $enableval; do
10557	IFS="$lt_save_ifs"
10558	if test "X$pkg" = "X$p"; then
10559	  enable_fast_install=yes
10560	fi
10561      done
10562      IFS="$lt_save_ifs"
10563      ;;
10564    esac
10565else
10566  enable_fast_install=yes
10567fi
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579# This can be used to rebuild libtool when needed
10580LIBTOOL_DEPS="$ltmain"
10581
10582# Always use our own libtool.
10583LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614test -z "$LN_S" && LN_S="ln -s"
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629if test -n "${ZSH_VERSION+set}" ; then
10630   setopt NO_GLOB_SUBST
10631fi
10632
10633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10634$as_echo_n "checking for objdir... " >&6; }
10635if ${lt_cv_objdir+:} false; then :
10636  $as_echo_n "(cached) " >&6
10637else
10638  rm -f .libs 2>/dev/null
10639mkdir .libs 2>/dev/null
10640if test -d .libs; then
10641  lt_cv_objdir=.libs
10642else
10643  # MS-DOS does not allow filenames that begin with a dot.
10644  lt_cv_objdir=_libs
10645fi
10646rmdir .libs 2>/dev/null
10647fi
10648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10649$as_echo "$lt_cv_objdir" >&6; }
10650objdir=$lt_cv_objdir
10651
10652
10653
10654
10655
10656cat >>confdefs.h <<_ACEOF
10657#define LT_OBJDIR "$lt_cv_objdir/"
10658_ACEOF
10659
10660
10661
10662
10663case $host_os in
10664aix3*)
10665  # AIX sometimes has problems with the GCC collect2 program.  For some
10666  # reason, if we set the COLLECT_NAMES environment variable, the problems
10667  # vanish in a puff of smoke.
10668  if test "X${COLLECT_NAMES+set}" != Xset; then
10669    COLLECT_NAMES=
10670    export COLLECT_NAMES
10671  fi
10672  ;;
10673esac
10674
10675# Global variables:
10676ofile=libtool
10677can_build_shared=yes
10678
10679# All known linkers require a `.a' archive for static linking (except MSVC,
10680# which needs '.lib').
10681libext=a
10682
10683with_gnu_ld="$lt_cv_prog_gnu_ld"
10684
10685old_CC="$CC"
10686old_CFLAGS="$CFLAGS"
10687
10688# Set sane defaults for various variables
10689test -z "$CC" && CC=cc
10690test -z "$LTCC" && LTCC=$CC
10691test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10692test -z "$LD" && LD=ld
10693test -z "$ac_objext" && ac_objext=o
10694
10695for cc_temp in $compiler""; do
10696  case $cc_temp in
10697    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10698    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10699    \-*) ;;
10700    *) break;;
10701  esac
10702done
10703cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10704
10705
10706# Only perform the check for file, if the check method requires it
10707test -z "$MAGIC_CMD" && MAGIC_CMD=file
10708case $deplibs_check_method in
10709file_magic*)
10710  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10711    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10712$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10713if ${lt_cv_path_MAGIC_CMD+:} false; then :
10714  $as_echo_n "(cached) " >&6
10715else
10716  case $MAGIC_CMD in
10717[\\/*] |  ?:[\\/]*)
10718  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10719  ;;
10720*)
10721  lt_save_MAGIC_CMD="$MAGIC_CMD"
10722  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10723  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10724  for ac_dir in $ac_dummy; do
10725    IFS="$lt_save_ifs"
10726    test -z "$ac_dir" && ac_dir=.
10727    if test -f $ac_dir/${ac_tool_prefix}file; then
10728      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10729      if test -n "$file_magic_test_file"; then
10730	case $deplibs_check_method in
10731	"file_magic "*)
10732	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10733	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10734	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10735	    $EGREP "$file_magic_regex" > /dev/null; then
10736	    :
10737	  else
10738	    cat <<_LT_EOF 1>&2
10739
10740*** Warning: the command libtool uses to detect shared libraries,
10741*** $file_magic_cmd, produces output that libtool cannot recognize.
10742*** The result is that libtool may fail to recognize shared libraries
10743*** as such.  This will affect the creation of libtool libraries that
10744*** depend on shared libraries, but programs linked with such libtool
10745*** libraries will work regardless of this problem.  Nevertheless, you
10746*** may want to report the problem to your system manager and/or to
10747*** bug-libtool@gnu.org
10748
10749_LT_EOF
10750	  fi ;;
10751	esac
10752      fi
10753      break
10754    fi
10755  done
10756  IFS="$lt_save_ifs"
10757  MAGIC_CMD="$lt_save_MAGIC_CMD"
10758  ;;
10759esac
10760fi
10761
10762MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10763if test -n "$MAGIC_CMD"; then
10764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10765$as_echo "$MAGIC_CMD" >&6; }
10766else
10767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10768$as_echo "no" >&6; }
10769fi
10770
10771
10772
10773
10774
10775if test -z "$lt_cv_path_MAGIC_CMD"; then
10776  if test -n "$ac_tool_prefix"; then
10777    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10778$as_echo_n "checking for file... " >&6; }
10779if ${lt_cv_path_MAGIC_CMD+:} false; then :
10780  $as_echo_n "(cached) " >&6
10781else
10782  case $MAGIC_CMD in
10783[\\/*] |  ?:[\\/]*)
10784  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10785  ;;
10786*)
10787  lt_save_MAGIC_CMD="$MAGIC_CMD"
10788  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10789  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10790  for ac_dir in $ac_dummy; do
10791    IFS="$lt_save_ifs"
10792    test -z "$ac_dir" && ac_dir=.
10793    if test -f $ac_dir/file; then
10794      lt_cv_path_MAGIC_CMD="$ac_dir/file"
10795      if test -n "$file_magic_test_file"; then
10796	case $deplibs_check_method in
10797	"file_magic "*)
10798	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10799	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10800	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10801	    $EGREP "$file_magic_regex" > /dev/null; then
10802	    :
10803	  else
10804	    cat <<_LT_EOF 1>&2
10805
10806*** Warning: the command libtool uses to detect shared libraries,
10807*** $file_magic_cmd, produces output that libtool cannot recognize.
10808*** The result is that libtool may fail to recognize shared libraries
10809*** as such.  This will affect the creation of libtool libraries that
10810*** depend on shared libraries, but programs linked with such libtool
10811*** libraries will work regardless of this problem.  Nevertheless, you
10812*** may want to report the problem to your system manager and/or to
10813*** bug-libtool@gnu.org
10814
10815_LT_EOF
10816	  fi ;;
10817	esac
10818      fi
10819      break
10820    fi
10821  done
10822  IFS="$lt_save_ifs"
10823  MAGIC_CMD="$lt_save_MAGIC_CMD"
10824  ;;
10825esac
10826fi
10827
10828MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10829if test -n "$MAGIC_CMD"; then
10830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10831$as_echo "$MAGIC_CMD" >&6; }
10832else
10833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10834$as_echo "no" >&6; }
10835fi
10836
10837
10838  else
10839    MAGIC_CMD=:
10840  fi
10841fi
10842
10843  fi
10844  ;;
10845esac
10846
10847# Use C for the default configuration in the libtool script
10848
10849lt_save_CC="$CC"
10850ac_ext=c
10851ac_cpp='$CPP $CPPFLAGS'
10852ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10853ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10854ac_compiler_gnu=$ac_cv_c_compiler_gnu
10855
10856
10857# Source file extension for C test sources.
10858ac_ext=c
10859
10860# Object file extension for compiled C test sources.
10861objext=o
10862objext=$objext
10863
10864# Code to be used in simple compile tests
10865lt_simple_compile_test_code="int some_variable = 0;"
10866
10867# Code to be used in simple link tests
10868lt_simple_link_test_code='int main(){return(0);}'
10869
10870
10871
10872
10873
10874
10875
10876# If no C compiler was specified, use CC.
10877LTCC=${LTCC-"$CC"}
10878
10879# If no C compiler flags were specified, use CFLAGS.
10880LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10881
10882# Allow CC to be a program name with arguments.
10883compiler=$CC
10884
10885# Save the default compiler, since it gets overwritten when the other
10886# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10887compiler_DEFAULT=$CC
10888
10889# save warnings/boilerplate of simple test code
10890ac_outfile=conftest.$ac_objext
10891echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10892eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10893_lt_compiler_boilerplate=`cat conftest.err`
10894$RM conftest*
10895
10896ac_outfile=conftest.$ac_objext
10897echo "$lt_simple_link_test_code" >conftest.$ac_ext
10898eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10899_lt_linker_boilerplate=`cat conftest.err`
10900$RM -r conftest*
10901
10902
10903## CAVEAT EMPTOR:
10904## There is no encapsulation within the following macros, do not change
10905## the running order or otherwise move them around unless you know exactly
10906## what you are doing...
10907if test -n "$compiler"; then
10908
10909lt_prog_compiler_no_builtin_flag=
10910
10911if test "$GCC" = yes; then
10912  case $cc_basename in
10913  nvcc*)
10914    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10915  *)
10916    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10917  esac
10918
10919  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10920$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10921if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10922  $as_echo_n "(cached) " >&6
10923else
10924  lt_cv_prog_compiler_rtti_exceptions=no
10925   ac_outfile=conftest.$ac_objext
10926   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10927   lt_compiler_flag="-fno-rtti -fno-exceptions"
10928   # Insert the option either (1) after the last *FLAGS variable, or
10929   # (2) before a word containing "conftest.", or (3) at the end.
10930   # Note that $ac_compile itself does not contain backslashes and begins
10931   # with a dollar sign (not a hyphen), so the echo should work correctly.
10932   # The option is referenced via a variable to avoid confusing sed.
10933   lt_compile=`echo "$ac_compile" | $SED \
10934   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10935   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10936   -e 's:$: $lt_compiler_flag:'`
10937   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10938   (eval "$lt_compile" 2>conftest.err)
10939   ac_status=$?
10940   cat conftest.err >&5
10941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942   if (exit $ac_status) && test -s "$ac_outfile"; then
10943     # The compiler can only warn and ignore the option if not recognized
10944     # So say no if there are warnings other than the usual output.
10945     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10946     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10947     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10948       lt_cv_prog_compiler_rtti_exceptions=yes
10949     fi
10950   fi
10951   $RM conftest*
10952
10953fi
10954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10955$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10956
10957if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10958    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10959else
10960    :
10961fi
10962
10963fi
10964
10965
10966
10967
10968
10969
10970  lt_prog_compiler_wl=
10971lt_prog_compiler_pic=
10972lt_prog_compiler_static=
10973
10974
10975  if test "$GCC" = yes; then
10976    lt_prog_compiler_wl='-Wl,'
10977    lt_prog_compiler_static='-static'
10978
10979    case $host_os in
10980      aix*)
10981      # All AIX code is PIC.
10982      if test "$host_cpu" = ia64; then
10983	# AIX 5 now supports IA64 processor
10984	lt_prog_compiler_static='-Bstatic'
10985      fi
10986      ;;
10987
10988    amigaos*)
10989      case $host_cpu in
10990      powerpc)
10991            # see comment about AmigaOS4 .so support
10992            lt_prog_compiler_pic='-fPIC'
10993        ;;
10994      m68k)
10995            # FIXME: we need at least 68020 code to build shared libraries, but
10996            # adding the `-m68020' flag to GCC prevents building anything better,
10997            # like `-m68040'.
10998            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10999        ;;
11000      esac
11001      ;;
11002
11003    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11004      # PIC is the default for these OSes.
11005      ;;
11006
11007    mingw* | cygwin* | pw32* | os2* | cegcc*)
11008      # This hack is so that the source file can tell whether it is being
11009      # built for inclusion in a dll (and should export symbols for example).
11010      # Although the cygwin gcc ignores -fPIC, still need this for old-style
11011      # (--disable-auto-import) libraries
11012      lt_prog_compiler_pic='-DDLL_EXPORT'
11013      ;;
11014
11015    darwin* | rhapsody*)
11016      # PIC is the default on this platform
11017      # Common symbols not allowed in MH_DYLIB files
11018      lt_prog_compiler_pic='-fno-common'
11019      ;;
11020
11021    haiku*)
11022      # PIC is the default for Haiku.
11023      # The "-static" flag exists, but is broken.
11024      lt_prog_compiler_static=
11025      ;;
11026
11027    hpux*)
11028      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11029      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11030      # sets the default TLS model and affects inlining.
11031      case $host_cpu in
11032      hppa*64*)
11033	# +Z the default
11034	;;
11035      *)
11036	lt_prog_compiler_pic='-fPIC'
11037	;;
11038      esac
11039      ;;
11040
11041    interix[3-9]*)
11042      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11043      # Instead, we relocate shared libraries at runtime.
11044      ;;
11045
11046    msdosdjgpp*)
11047      # Just because we use GCC doesn't mean we suddenly get shared libraries
11048      # on systems that don't support them.
11049      lt_prog_compiler_can_build_shared=no
11050      enable_shared=no
11051      ;;
11052
11053    *nto* | *qnx*)
11054      # QNX uses GNU C++, but need to define -shared option too, otherwise
11055      # it will coredump.
11056      lt_prog_compiler_pic='-fPIC -shared'
11057      ;;
11058
11059    sysv4*MP*)
11060      if test -d /usr/nec; then
11061	lt_prog_compiler_pic=-Kconform_pic
11062      fi
11063      ;;
11064
11065    *)
11066      lt_prog_compiler_pic='-fPIC'
11067      ;;
11068    esac
11069
11070    case $cc_basename in
11071    nvcc*) # Cuda Compiler Driver 2.2
11072      lt_prog_compiler_wl='-Xlinker '
11073      if test -n "$lt_prog_compiler_pic"; then
11074        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11075      fi
11076      ;;
11077    esac
11078  else
11079    # PORTME Check for flag to pass linker flags through the system compiler.
11080    case $host_os in
11081    aix*)
11082      lt_prog_compiler_wl='-Wl,'
11083      if test "$host_cpu" = ia64; then
11084	# AIX 5 now supports IA64 processor
11085	lt_prog_compiler_static='-Bstatic'
11086      else
11087	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11088      fi
11089      ;;
11090
11091    mingw* | cygwin* | pw32* | os2* | cegcc*)
11092      # This hack is so that the source file can tell whether it is being
11093      # built for inclusion in a dll (and should export symbols for example).
11094      lt_prog_compiler_pic='-DDLL_EXPORT'
11095      ;;
11096
11097    hpux9* | hpux10* | hpux11*)
11098      lt_prog_compiler_wl='-Wl,'
11099      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11100      # not for PA HP-UX.
11101      case $host_cpu in
11102      hppa*64*|ia64*)
11103	# +Z the default
11104	;;
11105      *)
11106	lt_prog_compiler_pic='+Z'
11107	;;
11108      esac
11109      # Is there a better lt_prog_compiler_static that works with the bundled CC?
11110      lt_prog_compiler_static='${wl}-a ${wl}archive'
11111      ;;
11112
11113    irix5* | irix6* | nonstopux*)
11114      lt_prog_compiler_wl='-Wl,'
11115      # PIC (with -KPIC) is the default.
11116      lt_prog_compiler_static='-non_shared'
11117      ;;
11118
11119    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11120      case $cc_basename in
11121      # old Intel for x86_64 which still supported -KPIC.
11122      ecc*)
11123	lt_prog_compiler_wl='-Wl,'
11124	lt_prog_compiler_pic='-KPIC'
11125	lt_prog_compiler_static='-static'
11126        ;;
11127      # icc used to be incompatible with GCC.
11128      # ICC 10 doesn't accept -KPIC any more.
11129      icc* | ifort*)
11130	lt_prog_compiler_wl='-Wl,'
11131	lt_prog_compiler_pic='-fPIC'
11132	lt_prog_compiler_static='-static'
11133        ;;
11134      # Lahey Fortran 8.1.
11135      lf95*)
11136	lt_prog_compiler_wl='-Wl,'
11137	lt_prog_compiler_pic='--shared'
11138	lt_prog_compiler_static='--static'
11139	;;
11140      nagfor*)
11141	# NAG Fortran compiler
11142	lt_prog_compiler_wl='-Wl,-Wl,,'
11143	lt_prog_compiler_pic='-PIC'
11144	lt_prog_compiler_static='-Bstatic'
11145	;;
11146      tcc*)
11147	# Fabrice Bellard et al's Tiny C Compiler
11148	# When it learns to make shared objects, it will
11149	# presumably use -fPIC.
11150	lt_prog_compiler_wl='-Wl,'
11151	lt_prog_compiler_pic='-fPIC'
11152	lt_prog_compiler_static='-static'
11153	;;
11154      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11155        # Portland Group compilers (*not* the Pentium gcc compiler,
11156	# which looks to be a dead project)
11157	lt_prog_compiler_wl='-Wl,'
11158	lt_prog_compiler_pic='-fpic'
11159	lt_prog_compiler_static='-Bstatic'
11160        ;;
11161      ccc*)
11162        lt_prog_compiler_wl='-Wl,'
11163        # All Alpha code is PIC.
11164        lt_prog_compiler_static='-non_shared'
11165        ;;
11166      xl* | bgxl* | bgf* | mpixl*)
11167	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11168	lt_prog_compiler_wl='-Wl,'
11169	lt_prog_compiler_pic='-qpic'
11170	lt_prog_compiler_static='-qstaticlink'
11171	;;
11172      *)
11173	case `$CC -V 2>&1 | sed 5q` in
11174	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11175	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
11176	  lt_prog_compiler_pic='-KPIC'
11177	  lt_prog_compiler_static='-Bstatic'
11178	  lt_prog_compiler_wl=''
11179	  ;;
11180	*Sun\ F* | *Sun*Fortran*)
11181	  lt_prog_compiler_pic='-KPIC'
11182	  lt_prog_compiler_static='-Bstatic'
11183	  lt_prog_compiler_wl='-Qoption ld '
11184	  ;;
11185	*Sun\ C*)
11186	  # Sun C 5.9
11187	  lt_prog_compiler_pic='-KPIC'
11188	  lt_prog_compiler_static='-Bstatic'
11189	  lt_prog_compiler_wl='-Wl,'
11190	  ;;
11191        *Intel*\ [CF]*Compiler*)
11192	  lt_prog_compiler_wl='-Wl,'
11193	  lt_prog_compiler_pic='-fPIC'
11194	  lt_prog_compiler_static='-static'
11195	  ;;
11196	*Portland\ Group*)
11197	  lt_prog_compiler_wl='-Wl,'
11198	  lt_prog_compiler_pic='-fpic'
11199	  lt_prog_compiler_static='-Bstatic'
11200	  ;;
11201	esac
11202	;;
11203      esac
11204      ;;
11205
11206    newsos6)
11207      lt_prog_compiler_pic='-KPIC'
11208      lt_prog_compiler_static='-Bstatic'
11209      ;;
11210
11211    *nto* | *qnx*)
11212      # QNX uses GNU C++, but need to define -shared option too, otherwise
11213      # it will coredump.
11214      lt_prog_compiler_pic='-fPIC -shared'
11215      ;;
11216
11217    osf3* | osf4* | osf5*)
11218      lt_prog_compiler_wl='-Wl,'
11219      # All OSF/1 code is PIC.
11220      lt_prog_compiler_static='-non_shared'
11221      ;;
11222
11223    rdos*)
11224      lt_prog_compiler_static='-non_shared'
11225      ;;
11226
11227    solaris*)
11228      lt_prog_compiler_pic='-KPIC'
11229      lt_prog_compiler_static='-Bstatic'
11230      case $cc_basename in
11231      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11232	lt_prog_compiler_wl='-Qoption ld ';;
11233      *)
11234	lt_prog_compiler_wl='-Wl,';;
11235      esac
11236      ;;
11237
11238    sunos4*)
11239      lt_prog_compiler_wl='-Qoption ld '
11240      lt_prog_compiler_pic='-PIC'
11241      lt_prog_compiler_static='-Bstatic'
11242      ;;
11243
11244    sysv4 | sysv4.2uw2* | sysv4.3*)
11245      lt_prog_compiler_wl='-Wl,'
11246      lt_prog_compiler_pic='-KPIC'
11247      lt_prog_compiler_static='-Bstatic'
11248      ;;
11249
11250    sysv4*MP*)
11251      if test -d /usr/nec ;then
11252	lt_prog_compiler_pic='-Kconform_pic'
11253	lt_prog_compiler_static='-Bstatic'
11254      fi
11255      ;;
11256
11257    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11258      lt_prog_compiler_wl='-Wl,'
11259      lt_prog_compiler_pic='-KPIC'
11260      lt_prog_compiler_static='-Bstatic'
11261      ;;
11262
11263    unicos*)
11264      lt_prog_compiler_wl='-Wl,'
11265      lt_prog_compiler_can_build_shared=no
11266      ;;
11267
11268    uts4*)
11269      lt_prog_compiler_pic='-pic'
11270      lt_prog_compiler_static='-Bstatic'
11271      ;;
11272
11273    *)
11274      lt_prog_compiler_can_build_shared=no
11275      ;;
11276    esac
11277  fi
11278
11279case $host_os in
11280  # For platforms which do not support PIC, -DPIC is meaningless:
11281  *djgpp*)
11282    lt_prog_compiler_pic=
11283    ;;
11284  *)
11285    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11286    ;;
11287esac
11288
11289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11290$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11291if ${lt_cv_prog_compiler_pic+:} false; then :
11292  $as_echo_n "(cached) " >&6
11293else
11294  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11295fi
11296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11297$as_echo "$lt_cv_prog_compiler_pic" >&6; }
11298lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11299
11300#
11301# Check to make sure the PIC flag actually works.
11302#
11303if test -n "$lt_prog_compiler_pic"; then
11304  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11305$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11306if ${lt_cv_prog_compiler_pic_works+:} false; then :
11307  $as_echo_n "(cached) " >&6
11308else
11309  lt_cv_prog_compiler_pic_works=no
11310   ac_outfile=conftest.$ac_objext
11311   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11312   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11313   # Insert the option either (1) after the last *FLAGS variable, or
11314   # (2) before a word containing "conftest.", or (3) at the end.
11315   # Note that $ac_compile itself does not contain backslashes and begins
11316   # with a dollar sign (not a hyphen), so the echo should work correctly.
11317   # The option is referenced via a variable to avoid confusing sed.
11318   lt_compile=`echo "$ac_compile" | $SED \
11319   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11320   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11321   -e 's:$: $lt_compiler_flag:'`
11322   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11323   (eval "$lt_compile" 2>conftest.err)
11324   ac_status=$?
11325   cat conftest.err >&5
11326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327   if (exit $ac_status) && test -s "$ac_outfile"; then
11328     # The compiler can only warn and ignore the option if not recognized
11329     # So say no if there are warnings other than the usual output.
11330     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11331     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11332     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11333       lt_cv_prog_compiler_pic_works=yes
11334     fi
11335   fi
11336   $RM conftest*
11337
11338fi
11339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11340$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11341
11342if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11343    case $lt_prog_compiler_pic in
11344     "" | " "*) ;;
11345     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11346     esac
11347else
11348    lt_prog_compiler_pic=
11349     lt_prog_compiler_can_build_shared=no
11350fi
11351
11352fi
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364#
11365# Check to make sure the static flag actually works.
11366#
11367wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11369$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11370if ${lt_cv_prog_compiler_static_works+:} false; then :
11371  $as_echo_n "(cached) " >&6
11372else
11373  lt_cv_prog_compiler_static_works=no
11374   save_LDFLAGS="$LDFLAGS"
11375   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11376   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11377   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11378     # The linker can only warn and ignore the option if not recognized
11379     # So say no if there are warnings
11380     if test -s conftest.err; then
11381       # Append any errors to the config.log.
11382       cat conftest.err 1>&5
11383       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11384       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11385       if diff conftest.exp conftest.er2 >/dev/null; then
11386         lt_cv_prog_compiler_static_works=yes
11387       fi
11388     else
11389       lt_cv_prog_compiler_static_works=yes
11390     fi
11391   fi
11392   $RM -r conftest*
11393   LDFLAGS="$save_LDFLAGS"
11394
11395fi
11396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11397$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11398
11399if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11400    :
11401else
11402    lt_prog_compiler_static=
11403fi
11404
11405
11406
11407
11408
11409
11410
11411  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11412$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11413if ${lt_cv_prog_compiler_c_o+:} false; then :
11414  $as_echo_n "(cached) " >&6
11415else
11416  lt_cv_prog_compiler_c_o=no
11417   $RM -r conftest 2>/dev/null
11418   mkdir conftest
11419   cd conftest
11420   mkdir out
11421   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11422
11423   lt_compiler_flag="-o out/conftest2.$ac_objext"
11424   # Insert the option either (1) after the last *FLAGS variable, or
11425   # (2) before a word containing "conftest.", or (3) at the end.
11426   # Note that $ac_compile itself does not contain backslashes and begins
11427   # with a dollar sign (not a hyphen), so the echo should work correctly.
11428   lt_compile=`echo "$ac_compile" | $SED \
11429   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11430   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11431   -e 's:$: $lt_compiler_flag:'`
11432   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11433   (eval "$lt_compile" 2>out/conftest.err)
11434   ac_status=$?
11435   cat out/conftest.err >&5
11436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11438   then
11439     # The compiler can only warn and ignore the option if not recognized
11440     # So say no if there are warnings
11441     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11442     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11443     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11444       lt_cv_prog_compiler_c_o=yes
11445     fi
11446   fi
11447   chmod u+w . 2>&5
11448   $RM conftest*
11449   # SGI C++ compiler will create directory out/ii_files/ for
11450   # template instantiation
11451   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11452   $RM out/* && rmdir out
11453   cd ..
11454   $RM -r conftest
11455   $RM conftest*
11456
11457fi
11458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11459$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11460
11461
11462
11463
11464
11465
11466  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11467$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11468if ${lt_cv_prog_compiler_c_o+:} false; then :
11469  $as_echo_n "(cached) " >&6
11470else
11471  lt_cv_prog_compiler_c_o=no
11472   $RM -r conftest 2>/dev/null
11473   mkdir conftest
11474   cd conftest
11475   mkdir out
11476   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11477
11478   lt_compiler_flag="-o out/conftest2.$ac_objext"
11479   # Insert the option either (1) after the last *FLAGS variable, or
11480   # (2) before a word containing "conftest.", or (3) at the end.
11481   # Note that $ac_compile itself does not contain backslashes and begins
11482   # with a dollar sign (not a hyphen), so the echo should work correctly.
11483   lt_compile=`echo "$ac_compile" | $SED \
11484   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11485   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11486   -e 's:$: $lt_compiler_flag:'`
11487   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11488   (eval "$lt_compile" 2>out/conftest.err)
11489   ac_status=$?
11490   cat out/conftest.err >&5
11491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11493   then
11494     # The compiler can only warn and ignore the option if not recognized
11495     # So say no if there are warnings
11496     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11497     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11498     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11499       lt_cv_prog_compiler_c_o=yes
11500     fi
11501   fi
11502   chmod u+w . 2>&5
11503   $RM conftest*
11504   # SGI C++ compiler will create directory out/ii_files/ for
11505   # template instantiation
11506   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11507   $RM out/* && rmdir out
11508   cd ..
11509   $RM -r conftest
11510   $RM conftest*
11511
11512fi
11513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11514$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11515
11516
11517
11518
11519hard_links="nottested"
11520if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11521  # do not overwrite the value of need_locks provided by the user
11522  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11523$as_echo_n "checking if we can lock with hard links... " >&6; }
11524  hard_links=yes
11525  $RM conftest*
11526  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11527  touch conftest.a
11528  ln conftest.a conftest.b 2>&5 || hard_links=no
11529  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11531$as_echo "$hard_links" >&6; }
11532  if test "$hard_links" = no; then
11533    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11534$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11535    need_locks=warn
11536  fi
11537else
11538  need_locks=no
11539fi
11540
11541
11542
11543
11544
11545
11546  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11547$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11548
11549  runpath_var=
11550  allow_undefined_flag=
11551  always_export_symbols=no
11552  archive_cmds=
11553  archive_expsym_cmds=
11554  compiler_needs_object=no
11555  enable_shared_with_static_runtimes=no
11556  export_dynamic_flag_spec=
11557  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11558  hardcode_automatic=no
11559  hardcode_direct=no
11560  hardcode_direct_absolute=no
11561  hardcode_libdir_flag_spec=
11562  hardcode_libdir_separator=
11563  hardcode_minus_L=no
11564  hardcode_shlibpath_var=unsupported
11565  inherit_rpath=no
11566  link_all_deplibs=unknown
11567  module_cmds=
11568  module_expsym_cmds=
11569  old_archive_from_new_cmds=
11570  old_archive_from_expsyms_cmds=
11571  thread_safe_flag_spec=
11572  whole_archive_flag_spec=
11573  # include_expsyms should be a list of space-separated symbols to be *always*
11574  # included in the symbol list
11575  include_expsyms=
11576  # exclude_expsyms can be an extended regexp of symbols to exclude
11577  # it will be wrapped by ` (' and `)$', so one must not match beginning or
11578  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11579  # as well as any symbol that contains `d'.
11580  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11581  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11582  # platforms (ab)use it in PIC code, but their linkers get confused if
11583  # the symbol is explicitly referenced.  Since portable code cannot
11584  # rely on this symbol name, it's probably fine to never include it in
11585  # preloaded symbol tables.
11586  # Exclude shared library initialization/finalization symbols.
11587  extract_expsyms_cmds=
11588
11589  case $host_os in
11590  cygwin* | mingw* | pw32* | cegcc*)
11591    # FIXME: the MSVC++ port hasn't been tested in a loooong time
11592    # When not using gcc, we currently assume that we are using
11593    # Microsoft Visual C++.
11594    if test "$GCC" != yes; then
11595      with_gnu_ld=no
11596    fi
11597    ;;
11598  interix*)
11599    # we just hope/assume this is gcc and not c89 (= MSVC++)
11600    with_gnu_ld=yes
11601    ;;
11602  openbsd*)
11603    with_gnu_ld=no
11604    ;;
11605  linux* | k*bsd*-gnu | gnu*)
11606    link_all_deplibs=no
11607    ;;
11608  esac
11609
11610  ld_shlibs=yes
11611
11612  # On some targets, GNU ld is compatible enough with the native linker
11613  # that we're better off using the native interface for both.
11614  lt_use_gnu_ld_interface=no
11615  if test "$with_gnu_ld" = yes; then
11616    case $host_os in
11617      aix*)
11618	# The AIX port of GNU ld has always aspired to compatibility
11619	# with the native linker.  However, as the warning in the GNU ld
11620	# block says, versions before 2.19.5* couldn't really create working
11621	# shared libraries, regardless of the interface used.
11622	case `$LD -v 2>&1` in
11623	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11624	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11625	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11626	  *)
11627	    lt_use_gnu_ld_interface=yes
11628	    ;;
11629	esac
11630	;;
11631      *)
11632	lt_use_gnu_ld_interface=yes
11633	;;
11634    esac
11635  fi
11636
11637  if test "$lt_use_gnu_ld_interface" = yes; then
11638    # If archive_cmds runs LD, not CC, wlarc should be empty
11639    wlarc='${wl}'
11640
11641    # Set some defaults for GNU ld with shared library support. These
11642    # are reset later if shared libraries are not supported. Putting them
11643    # here allows them to be overridden if necessary.
11644    runpath_var=LD_RUN_PATH
11645    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11646    export_dynamic_flag_spec='${wl}--export-dynamic'
11647    # ancient GNU ld didn't support --whole-archive et. al.
11648    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11649      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11650    else
11651      whole_archive_flag_spec=
11652    fi
11653    supports_anon_versioning=no
11654    case `$LD -v 2>&1` in
11655      *GNU\ gold*) supports_anon_versioning=yes ;;
11656      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11657      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11658      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11659      *\ 2.11.*) ;; # other 2.11 versions
11660      *) supports_anon_versioning=yes ;;
11661    esac
11662
11663    # See if GNU ld supports shared libraries.
11664    case $host_os in
11665    aix[3-9]*)
11666      # On AIX/PPC, the GNU linker is very broken
11667      if test "$host_cpu" != ia64; then
11668	ld_shlibs=no
11669	cat <<_LT_EOF 1>&2
11670
11671*** Warning: the GNU linker, at least up to release 2.19, is reported
11672*** to be unable to reliably create shared libraries on AIX.
11673*** Therefore, libtool is disabling shared libraries support.  If you
11674*** really care for shared libraries, you may want to install binutils
11675*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11676*** You will then need to restart the configuration process.
11677
11678_LT_EOF
11679      fi
11680      ;;
11681
11682    amigaos*)
11683      case $host_cpu in
11684      powerpc)
11685            # see comment about AmigaOS4 .so support
11686            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11687            archive_expsym_cmds=''
11688        ;;
11689      m68k)
11690            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)'
11691            hardcode_libdir_flag_spec='-L$libdir'
11692            hardcode_minus_L=yes
11693        ;;
11694      esac
11695      ;;
11696
11697    beos*)
11698      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11699	allow_undefined_flag=unsupported
11700	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11701	# support --undefined.  This deserves some investigation.  FIXME
11702	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11703      else
11704	ld_shlibs=no
11705      fi
11706      ;;
11707
11708    cygwin* | mingw* | pw32* | cegcc*)
11709      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11710      # as there is no search path for DLLs.
11711      hardcode_libdir_flag_spec='-L$libdir'
11712      export_dynamic_flag_spec='${wl}--export-all-symbols'
11713      allow_undefined_flag=unsupported
11714      always_export_symbols=no
11715      enable_shared_with_static_runtimes=yes
11716      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'
11717      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11718
11719      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11720        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11721	# If the export-symbols file already is a .def file (1st line
11722	# is EXPORTS), use it as is; otherwise, prepend...
11723	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11724	  cp $export_symbols $output_objdir/$soname.def;
11725	else
11726	  echo EXPORTS > $output_objdir/$soname.def;
11727	  cat $export_symbols >> $output_objdir/$soname.def;
11728	fi~
11729	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11730      else
11731	ld_shlibs=no
11732      fi
11733      ;;
11734
11735    haiku*)
11736      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11737      link_all_deplibs=yes
11738      ;;
11739
11740    interix[3-9]*)
11741      hardcode_direct=no
11742      hardcode_shlibpath_var=no
11743      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11744      export_dynamic_flag_spec='${wl}-E'
11745      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11746      # Instead, shared libraries are loaded at an image base (0x10000000 by
11747      # default) and relocated if they conflict, which is a slow very memory
11748      # consuming and fragmenting process.  To avoid this, we pick a random,
11749      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11750      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11751      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11752      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'
11753      ;;
11754
11755    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11756      tmp_diet=no
11757      if test "$host_os" = linux-dietlibc; then
11758	case $cc_basename in
11759	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
11760	esac
11761      fi
11762      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11763	 && test "$tmp_diet" = no
11764      then
11765	tmp_addflag=' $pic_flag'
11766	tmp_sharedflag='-shared'
11767	case $cc_basename,$host_cpu in
11768        pgcc*)				# Portland Group C compiler
11769	  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'
11770	  tmp_addflag=' $pic_flag'
11771	  ;;
11772	pgf77* | pgf90* | pgf95* | pgfortran*)
11773					# Portland Group f77 and f90 compilers
11774	  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'
11775	  tmp_addflag=' $pic_flag -Mnomain' ;;
11776	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
11777	  tmp_addflag=' -i_dynamic' ;;
11778	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
11779	  tmp_addflag=' -i_dynamic -nofor_main' ;;
11780	ifc* | ifort*)			# Intel Fortran compiler
11781	  tmp_addflag=' -nofor_main' ;;
11782	lf95*)				# Lahey Fortran 8.1
11783	  whole_archive_flag_spec=
11784	  tmp_sharedflag='--shared' ;;
11785	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11786	  tmp_sharedflag='-qmkshrobj'
11787	  tmp_addflag= ;;
11788	nvcc*)	# Cuda Compiler Driver 2.2
11789	  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'
11790	  compiler_needs_object=yes
11791	  ;;
11792	esac
11793	case `$CC -V 2>&1 | sed 5q` in
11794	*Sun\ C*)			# Sun C 5.9
11795	  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'
11796	  compiler_needs_object=yes
11797	  tmp_sharedflag='-G' ;;
11798	*Sun\ F*)			# Sun Fortran 8.3
11799	  tmp_sharedflag='-G' ;;
11800	esac
11801	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11802
11803        if test "x$supports_anon_versioning" = xyes; then
11804          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11805	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11806	    echo "local: *; };" >> $output_objdir/$libname.ver~
11807	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11808        fi
11809
11810	case $cc_basename in
11811	xlf* | bgf* | bgxlf* | mpixlf*)
11812	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11813	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11814	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11815	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11816	  if test "x$supports_anon_versioning" = xyes; then
11817	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11818	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11819	      echo "local: *; };" >> $output_objdir/$libname.ver~
11820	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11821	  fi
11822	  ;;
11823	esac
11824      else
11825        ld_shlibs=no
11826      fi
11827      ;;
11828
11829    netbsd* | netbsdelf*-gnu)
11830      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11831	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11832	wlarc=
11833      else
11834	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11835	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11836      fi
11837      ;;
11838
11839    solaris*)
11840      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11841	ld_shlibs=no
11842	cat <<_LT_EOF 1>&2
11843
11844*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11845*** create shared libraries on Solaris systems.  Therefore, libtool
11846*** is disabling shared libraries support.  We urge you to upgrade GNU
11847*** binutils to release 2.9.1 or newer.  Another option is to modify
11848*** your PATH or compiler configuration so that the native linker is
11849*** used, and then restart.
11850
11851_LT_EOF
11852      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11853	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11854	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11855      else
11856	ld_shlibs=no
11857      fi
11858      ;;
11859
11860    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11861      case `$LD -v 2>&1` in
11862        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11863	ld_shlibs=no
11864	cat <<_LT_EOF 1>&2
11865
11866*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11867*** reliably create shared libraries on SCO systems.  Therefore, libtool
11868*** is disabling shared libraries support.  We urge you to upgrade GNU
11869*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11870*** your PATH or compiler configuration so that the native linker is
11871*** used, and then restart.
11872
11873_LT_EOF
11874	;;
11875	*)
11876	  # For security reasons, it is highly recommended that you always
11877	  # use absolute paths for naming shared libraries, and exclude the
11878	  # DT_RUNPATH tag from executables and libraries.  But doing so
11879	  # requires that you compile everything twice, which is a pain.
11880	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11881	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11882	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11883	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11884	  else
11885	    ld_shlibs=no
11886	  fi
11887	;;
11888      esac
11889      ;;
11890
11891    sunos4*)
11892      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11893      wlarc=
11894      hardcode_direct=yes
11895      hardcode_shlibpath_var=no
11896      ;;
11897
11898    *)
11899      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11900	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11901	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11902      else
11903	ld_shlibs=no
11904      fi
11905      ;;
11906    esac
11907
11908    if test "$ld_shlibs" = no; then
11909      runpath_var=
11910      hardcode_libdir_flag_spec=
11911      export_dynamic_flag_spec=
11912      whole_archive_flag_spec=
11913    fi
11914  else
11915    # PORTME fill in a description of your system's linker (not GNU ld)
11916    case $host_os in
11917    aix3*)
11918      allow_undefined_flag=unsupported
11919      always_export_symbols=yes
11920      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'
11921      # Note: this linker hardcodes the directories in LIBPATH if there
11922      # are no directories specified by -L.
11923      hardcode_minus_L=yes
11924      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11925	# Neither direct hardcoding nor static linking is supported with a
11926	# broken collect2.
11927	hardcode_direct=unsupported
11928      fi
11929      ;;
11930
11931    aix[4-9]*)
11932      if test "$host_cpu" = ia64; then
11933	# On IA64, the linker does run time linking by default, so we don't
11934	# have to do anything special.
11935	aix_use_runtimelinking=no
11936	exp_sym_flag='-Bexport'
11937	no_entry_flag=""
11938      else
11939	# If we're using GNU nm, then we don't want the "-C" option.
11940	# -C means demangle to AIX nm, but means don't demangle with GNU nm
11941	# Also, AIX nm treats weak defined symbols like other global
11942	# defined symbols, whereas GNU nm marks them as "W".
11943	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11944	  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'
11945	else
11946	  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'
11947	fi
11948	aix_use_runtimelinking=no
11949
11950	# Test if we are trying to use run time linking or normal
11951	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11952	# need to do runtime linking.
11953	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11954	  for ld_flag in $LDFLAGS; do
11955	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11956	    aix_use_runtimelinking=yes
11957	    break
11958	  fi
11959	  done
11960	  ;;
11961	esac
11962
11963	exp_sym_flag='-bexport'
11964	no_entry_flag='-bnoentry'
11965      fi
11966
11967      # When large executables or shared objects are built, AIX ld can
11968      # have problems creating the table of contents.  If linking a library
11969      # or program results in "error TOC overflow" add -mminimal-toc to
11970      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11971      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11972
11973      archive_cmds=''
11974      hardcode_direct=yes
11975      hardcode_direct_absolute=yes
11976      hardcode_libdir_separator=':'
11977      link_all_deplibs=yes
11978      file_list_spec='${wl}-f,'
11979
11980      if test "$GCC" = yes; then
11981	case $host_os in aix4.[012]|aix4.[012].*)
11982	# We only want to do this on AIX 4.2 and lower, the check
11983	# below for broken collect2 doesn't work under 4.3+
11984	  collect2name=`${CC} -print-prog-name=collect2`
11985	  if test -f "$collect2name" &&
11986	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11987	  then
11988	  # We have reworked collect2
11989	  :
11990	  else
11991	  # We have old collect2
11992	  hardcode_direct=unsupported
11993	  # It fails to find uninstalled libraries when the uninstalled
11994	  # path is not listed in the libpath.  Setting hardcode_minus_L
11995	  # to unsupported forces relinking
11996	  hardcode_minus_L=yes
11997	  hardcode_libdir_flag_spec='-L$libdir'
11998	  hardcode_libdir_separator=
11999	  fi
12000	  ;;
12001	esac
12002	shared_flag='-shared'
12003	if test "$aix_use_runtimelinking" = yes; then
12004	  shared_flag="$shared_flag "'${wl}-G'
12005	fi
12006	link_all_deplibs=no
12007      else
12008	# not using gcc
12009	if test "$host_cpu" = ia64; then
12010	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12011	# chokes on -Wl,-G. The following line is correct:
12012	  shared_flag='-G'
12013	else
12014	  if test "$aix_use_runtimelinking" = yes; then
12015	    shared_flag='${wl}-G'
12016	  else
12017	    shared_flag='${wl}-bM:SRE'
12018	  fi
12019	fi
12020      fi
12021
12022      export_dynamic_flag_spec='${wl}-bexpall'
12023      # It seems that -bexpall does not export symbols beginning with
12024      # underscore (_), so it is better to generate a list of symbols to export.
12025      always_export_symbols=yes
12026      if test "$aix_use_runtimelinking" = yes; then
12027	# Warning - without using the other runtime loading flags (-brtl),
12028	# -berok will link without error, but may produce a broken library.
12029	allow_undefined_flag='-berok'
12030        # Determine the default libpath from the value encoded in an
12031        # empty executable.
12032        if test "${lt_cv_aix_libpath+set}" = set; then
12033  aix_libpath=$lt_cv_aix_libpath
12034else
12035  if ${lt_cv_aix_libpath_+:} false; then :
12036  $as_echo_n "(cached) " >&6
12037else
12038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12039/* end confdefs.h.  */
12040
12041int
12042main ()
12043{
12044
12045  ;
12046  return 0;
12047}
12048_ACEOF
12049if ac_fn_c_try_link "$LINENO"; then :
12050
12051  lt_aix_libpath_sed='
12052      /Import File Strings/,/^$/ {
12053	  /^0/ {
12054	      s/^0  *\([^ ]*\) *$/\1/
12055	      p
12056	  }
12057      }'
12058  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12059  # Check for a 64-bit object if we didn't find anything.
12060  if test -z "$lt_cv_aix_libpath_"; then
12061    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12062  fi
12063fi
12064rm -f core conftest.err conftest.$ac_objext \
12065    conftest$ac_exeext conftest.$ac_ext
12066  if test -z "$lt_cv_aix_libpath_"; then
12067    lt_cv_aix_libpath_="/usr/lib:/lib"
12068  fi
12069
12070fi
12071
12072  aix_libpath=$lt_cv_aix_libpath_
12073fi
12074
12075        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12076        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"
12077      else
12078	if test "$host_cpu" = ia64; then
12079	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12080	  allow_undefined_flag="-z nodefs"
12081	  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"
12082	else
12083	 # Determine the default libpath from the value encoded in an
12084	 # empty executable.
12085	 if test "${lt_cv_aix_libpath+set}" = set; then
12086  aix_libpath=$lt_cv_aix_libpath
12087else
12088  if ${lt_cv_aix_libpath_+:} false; then :
12089  $as_echo_n "(cached) " >&6
12090else
12091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12092/* end confdefs.h.  */
12093
12094int
12095main ()
12096{
12097
12098  ;
12099  return 0;
12100}
12101_ACEOF
12102if ac_fn_c_try_link "$LINENO"; then :
12103
12104  lt_aix_libpath_sed='
12105      /Import File Strings/,/^$/ {
12106	  /^0/ {
12107	      s/^0  *\([^ ]*\) *$/\1/
12108	      p
12109	  }
12110      }'
12111  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12112  # Check for a 64-bit object if we didn't find anything.
12113  if test -z "$lt_cv_aix_libpath_"; then
12114    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12115  fi
12116fi
12117rm -f core conftest.err conftest.$ac_objext \
12118    conftest$ac_exeext conftest.$ac_ext
12119  if test -z "$lt_cv_aix_libpath_"; then
12120    lt_cv_aix_libpath_="/usr/lib:/lib"
12121  fi
12122
12123fi
12124
12125  aix_libpath=$lt_cv_aix_libpath_
12126fi
12127
12128	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12129	  # Warning - without using the other run time loading flags,
12130	  # -berok will link without error, but may produce a broken library.
12131	  no_undefined_flag=' ${wl}-bernotok'
12132	  allow_undefined_flag=' ${wl}-berok'
12133	  if test "$with_gnu_ld" = yes; then
12134	    # We only use this code for GNU lds that support --whole-archive.
12135	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12136	  else
12137	    # Exported symbols can be pulled into shared objects from archives
12138	    whole_archive_flag_spec='$convenience'
12139	  fi
12140	  archive_cmds_need_lc=yes
12141	  # This is similar to how AIX traditionally builds its shared libraries.
12142	  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'
12143	fi
12144      fi
12145      ;;
12146
12147    amigaos*)
12148      case $host_cpu in
12149      powerpc)
12150            # see comment about AmigaOS4 .so support
12151            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12152            archive_expsym_cmds=''
12153        ;;
12154      m68k)
12155            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)'
12156            hardcode_libdir_flag_spec='-L$libdir'
12157            hardcode_minus_L=yes
12158        ;;
12159      esac
12160      ;;
12161
12162    bsdi[45]*)
12163      export_dynamic_flag_spec=-rdynamic
12164      ;;
12165
12166    cygwin* | mingw* | pw32* | cegcc*)
12167      # When not using gcc, we currently assume that we are using
12168      # Microsoft Visual C++.
12169      # hardcode_libdir_flag_spec is actually meaningless, as there is
12170      # no search path for DLLs.
12171      case $cc_basename in
12172      cl*)
12173	# Native MSVC
12174	hardcode_libdir_flag_spec=' '
12175	allow_undefined_flag=unsupported
12176	always_export_symbols=yes
12177	file_list_spec='@'
12178	# Tell ltmain to make .lib files, not .a files.
12179	libext=lib
12180	# Tell ltmain to make .dll files, not .so files.
12181	shrext_cmds=".dll"
12182	# FIXME: Setting linknames here is a bad hack.
12183	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12184	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12185	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12186	  else
12187	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12188	  fi~
12189	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12190	  linknames='
12191	# The linker will not automatically build a static lib if we build a DLL.
12192	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12193	enable_shared_with_static_runtimes=yes
12194	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12195	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12196	# Don't use ranlib
12197	old_postinstall_cmds='chmod 644 $oldlib'
12198	postlink_cmds='lt_outputfile="@OUTPUT@"~
12199	  lt_tool_outputfile="@TOOL_OUTPUT@"~
12200	  case $lt_outputfile in
12201	    *.exe|*.EXE) ;;
12202	    *)
12203	      lt_outputfile="$lt_outputfile.exe"
12204	      lt_tool_outputfile="$lt_tool_outputfile.exe"
12205	      ;;
12206	  esac~
12207	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12208	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12209	    $RM "$lt_outputfile.manifest";
12210	  fi'
12211	;;
12212      *)
12213	# Assume MSVC wrapper
12214	hardcode_libdir_flag_spec=' '
12215	allow_undefined_flag=unsupported
12216	# Tell ltmain to make .lib files, not .a files.
12217	libext=lib
12218	# Tell ltmain to make .dll files, not .so files.
12219	shrext_cmds=".dll"
12220	# FIXME: Setting linknames here is a bad hack.
12221	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12222	# The linker will automatically build a .lib file if we build a DLL.
12223	old_archive_from_new_cmds='true'
12224	# FIXME: Should let the user specify the lib program.
12225	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12226	enable_shared_with_static_runtimes=yes
12227	;;
12228      esac
12229      ;;
12230
12231    darwin* | rhapsody*)
12232
12233
12234  archive_cmds_need_lc=no
12235  hardcode_direct=no
12236  hardcode_automatic=yes
12237  hardcode_shlibpath_var=unsupported
12238  if test "$lt_cv_ld_force_load" = "yes"; then
12239    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\"`'
12240
12241  else
12242    whole_archive_flag_spec=''
12243  fi
12244  link_all_deplibs=yes
12245  allow_undefined_flag="$_lt_dar_allow_undefined"
12246  case $cc_basename in
12247     ifort*) _lt_dar_can_shared=yes ;;
12248     *) _lt_dar_can_shared=$GCC ;;
12249  esac
12250  if test "$_lt_dar_can_shared" = "yes"; then
12251    output_verbose_link_cmd=func_echo_all
12252    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12253    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12254    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}"
12255    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}"
12256
12257  else
12258  ld_shlibs=no
12259  fi
12260
12261      ;;
12262
12263    dgux*)
12264      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12265      hardcode_libdir_flag_spec='-L$libdir'
12266      hardcode_shlibpath_var=no
12267      ;;
12268
12269    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12270    # support.  Future versions do this automatically, but an explicit c++rt0.o
12271    # does not break anything, and helps significantly (at the cost of a little
12272    # extra space).
12273    freebsd2.2*)
12274      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12275      hardcode_libdir_flag_spec='-R$libdir'
12276      hardcode_direct=yes
12277      hardcode_shlibpath_var=no
12278      ;;
12279
12280    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12281    freebsd2.*)
12282      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12283      hardcode_direct=yes
12284      hardcode_minus_L=yes
12285      hardcode_shlibpath_var=no
12286      ;;
12287
12288    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12289    freebsd* | dragonfly*)
12290      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12291      hardcode_libdir_flag_spec='-R$libdir'
12292      hardcode_direct=yes
12293      hardcode_shlibpath_var=no
12294      ;;
12295
12296    hpux9*)
12297      if test "$GCC" = yes; then
12298	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'
12299      else
12300	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'
12301      fi
12302      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12303      hardcode_libdir_separator=:
12304      hardcode_direct=yes
12305
12306      # hardcode_minus_L: Not really in the search PATH,
12307      # but as the default location of the library.
12308      hardcode_minus_L=yes
12309      export_dynamic_flag_spec='${wl}-E'
12310      ;;
12311
12312    hpux10*)
12313      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12314	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12315      else
12316	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12317      fi
12318      if test "$with_gnu_ld" = no; then
12319	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12320	hardcode_libdir_separator=:
12321	hardcode_direct=yes
12322	hardcode_direct_absolute=yes
12323	export_dynamic_flag_spec='${wl}-E'
12324	# hardcode_minus_L: Not really in the search PATH,
12325	# but as the default location of the library.
12326	hardcode_minus_L=yes
12327      fi
12328      ;;
12329
12330    hpux11*)
12331      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12332	case $host_cpu in
12333	hppa*64*)
12334	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12335	  ;;
12336	ia64*)
12337	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12338	  ;;
12339	*)
12340	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12341	  ;;
12342	esac
12343      else
12344	case $host_cpu in
12345	hppa*64*)
12346	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12347	  ;;
12348	ia64*)
12349	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12350	  ;;
12351	*)
12352
12353	  # Older versions of the 11.00 compiler do not understand -b yet
12354	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12355	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12356$as_echo_n "checking if $CC understands -b... " >&6; }
12357if ${lt_cv_prog_compiler__b+:} false; then :
12358  $as_echo_n "(cached) " >&6
12359else
12360  lt_cv_prog_compiler__b=no
12361   save_LDFLAGS="$LDFLAGS"
12362   LDFLAGS="$LDFLAGS -b"
12363   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12364   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12365     # The linker can only warn and ignore the option if not recognized
12366     # So say no if there are warnings
12367     if test -s conftest.err; then
12368       # Append any errors to the config.log.
12369       cat conftest.err 1>&5
12370       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12371       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12372       if diff conftest.exp conftest.er2 >/dev/null; then
12373         lt_cv_prog_compiler__b=yes
12374       fi
12375     else
12376       lt_cv_prog_compiler__b=yes
12377     fi
12378   fi
12379   $RM -r conftest*
12380   LDFLAGS="$save_LDFLAGS"
12381
12382fi
12383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12384$as_echo "$lt_cv_prog_compiler__b" >&6; }
12385
12386if test x"$lt_cv_prog_compiler__b" = xyes; then
12387    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12388else
12389    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12390fi
12391
12392	  ;;
12393	esac
12394      fi
12395      if test "$with_gnu_ld" = no; then
12396	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12397	hardcode_libdir_separator=:
12398
12399	case $host_cpu in
12400	hppa*64*|ia64*)
12401	  hardcode_direct=no
12402	  hardcode_shlibpath_var=no
12403	  ;;
12404	*)
12405	  hardcode_direct=yes
12406	  hardcode_direct_absolute=yes
12407	  export_dynamic_flag_spec='${wl}-E'
12408
12409	  # hardcode_minus_L: Not really in the search PATH,
12410	  # but as the default location of the library.
12411	  hardcode_minus_L=yes
12412	  ;;
12413	esac
12414      fi
12415      ;;
12416
12417    irix5* | irix6* | nonstopux*)
12418      if test "$GCC" = yes; then
12419	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'
12420	# Try to use the -exported_symbol ld option, if it does not
12421	# work, assume that -exports_file does not work either and
12422	# implicitly export all symbols.
12423	# This should be the same for all languages, so no per-tag cache variable.
12424	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12425$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12426if ${lt_cv_irix_exported_symbol+:} false; then :
12427  $as_echo_n "(cached) " >&6
12428else
12429  save_LDFLAGS="$LDFLAGS"
12430	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12431	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12432/* end confdefs.h.  */
12433int foo (void) { return 0; }
12434_ACEOF
12435if ac_fn_c_try_link "$LINENO"; then :
12436  lt_cv_irix_exported_symbol=yes
12437else
12438  lt_cv_irix_exported_symbol=no
12439fi
12440rm -f core conftest.err conftest.$ac_objext \
12441    conftest$ac_exeext conftest.$ac_ext
12442           LDFLAGS="$save_LDFLAGS"
12443fi
12444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12445$as_echo "$lt_cv_irix_exported_symbol" >&6; }
12446	if test "$lt_cv_irix_exported_symbol" = yes; then
12447          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'
12448	fi
12449      else
12450	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'
12451	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'
12452      fi
12453      archive_cmds_need_lc='no'
12454      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12455      hardcode_libdir_separator=:
12456      inherit_rpath=yes
12457      link_all_deplibs=yes
12458      ;;
12459
12460    netbsd* | netbsdelf*-gnu)
12461      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12462	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12463      else
12464	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12465      fi
12466      hardcode_libdir_flag_spec='-R$libdir'
12467      hardcode_direct=yes
12468      hardcode_shlibpath_var=no
12469      ;;
12470
12471    newsos6)
12472      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12473      hardcode_direct=yes
12474      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12475      hardcode_libdir_separator=:
12476      hardcode_shlibpath_var=no
12477      ;;
12478
12479    *nto* | *qnx*)
12480      ;;
12481
12482    openbsd*)
12483      if test -f /usr/libexec/ld.so; then
12484	hardcode_direct=yes
12485	hardcode_shlibpath_var=no
12486	hardcode_direct_absolute=yes
12487	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12488	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12489	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12490	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12491	  export_dynamic_flag_spec='${wl}-E'
12492	else
12493	  case $host_os in
12494	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12495	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12496	     hardcode_libdir_flag_spec='-R$libdir'
12497	     ;;
12498	   *)
12499	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12500	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12501	     ;;
12502	  esac
12503	fi
12504      else
12505	ld_shlibs=no
12506      fi
12507      ;;
12508
12509    os2*)
12510      hardcode_libdir_flag_spec='-L$libdir'
12511      hardcode_minus_L=yes
12512      allow_undefined_flag=unsupported
12513      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'
12514      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12515      ;;
12516
12517    osf3*)
12518      if test "$GCC" = yes; then
12519	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12520	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'
12521      else
12522	allow_undefined_flag=' -expect_unresolved \*'
12523	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'
12524      fi
12525      archive_cmds_need_lc='no'
12526      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12527      hardcode_libdir_separator=:
12528      ;;
12529
12530    osf4* | osf5*)	# as osf3* with the addition of -msym flag
12531      if test "$GCC" = yes; then
12532	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12533	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'
12534	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12535      else
12536	allow_undefined_flag=' -expect_unresolved \*'
12537	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'
12538	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~
12539	$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'
12540
12541	# Both c and cxx compiler support -rpath directly
12542	hardcode_libdir_flag_spec='-rpath $libdir'
12543      fi
12544      archive_cmds_need_lc='no'
12545      hardcode_libdir_separator=:
12546      ;;
12547
12548    solaris*)
12549      no_undefined_flag=' -z defs'
12550      if test "$GCC" = yes; then
12551	wlarc='${wl}'
12552	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12553	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12554	  $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'
12555      else
12556	case `$CC -V 2>&1` in
12557	*"Compilers 5.0"*)
12558	  wlarc=''
12559	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12560	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12561	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12562	  ;;
12563	*)
12564	  wlarc='${wl}'
12565	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12566	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12567	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12568	  ;;
12569	esac
12570      fi
12571      hardcode_libdir_flag_spec='-R$libdir'
12572      hardcode_shlibpath_var=no
12573      case $host_os in
12574      solaris2.[0-5] | solaris2.[0-5].*) ;;
12575      *)
12576	# The compiler driver will combine and reorder linker options,
12577	# but understands `-z linker_flag'.  GCC discards it without `$wl',
12578	# but is careful enough not to reorder.
12579	# Supported since Solaris 2.6 (maybe 2.5.1?)
12580	if test "$GCC" = yes; then
12581	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12582	else
12583	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12584	fi
12585	;;
12586      esac
12587      link_all_deplibs=yes
12588      ;;
12589
12590    sunos4*)
12591      if test "x$host_vendor" = xsequent; then
12592	# Use $CC to link under sequent, because it throws in some extra .o
12593	# files that make .init and .fini sections work.
12594	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12595      else
12596	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12597      fi
12598      hardcode_libdir_flag_spec='-L$libdir'
12599      hardcode_direct=yes
12600      hardcode_minus_L=yes
12601      hardcode_shlibpath_var=no
12602      ;;
12603
12604    sysv4)
12605      case $host_vendor in
12606	sni)
12607	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12608	  hardcode_direct=yes # is this really true???
12609	;;
12610	siemens)
12611	  ## LD is ld it makes a PLAMLIB
12612	  ## CC just makes a GrossModule.
12613	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12614	  reload_cmds='$CC -r -o $output$reload_objs'
12615	  hardcode_direct=no
12616        ;;
12617	motorola)
12618	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12619	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12620	;;
12621      esac
12622      runpath_var='LD_RUN_PATH'
12623      hardcode_shlibpath_var=no
12624      ;;
12625
12626    sysv4.3*)
12627      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12628      hardcode_shlibpath_var=no
12629      export_dynamic_flag_spec='-Bexport'
12630      ;;
12631
12632    sysv4*MP*)
12633      if test -d /usr/nec; then
12634	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12635	hardcode_shlibpath_var=no
12636	runpath_var=LD_RUN_PATH
12637	hardcode_runpath_var=yes
12638	ld_shlibs=yes
12639      fi
12640      ;;
12641
12642    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12643      no_undefined_flag='${wl}-z,text'
12644      archive_cmds_need_lc=no
12645      hardcode_shlibpath_var=no
12646      runpath_var='LD_RUN_PATH'
12647
12648      if test "$GCC" = yes; then
12649	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12650	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12651      else
12652	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12653	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12654      fi
12655      ;;
12656
12657    sysv5* | sco3.2v5* | sco5v6*)
12658      # Note: We can NOT use -z defs as we might desire, because we do not
12659      # link with -lc, and that would cause any symbols used from libc to
12660      # always be unresolved, which means just about no library would
12661      # ever link correctly.  If we're not using GNU ld we use -z text
12662      # though, which does catch some bad symbols but isn't as heavy-handed
12663      # as -z defs.
12664      no_undefined_flag='${wl}-z,text'
12665      allow_undefined_flag='${wl}-z,nodefs'
12666      archive_cmds_need_lc=no
12667      hardcode_shlibpath_var=no
12668      hardcode_libdir_flag_spec='${wl}-R,$libdir'
12669      hardcode_libdir_separator=':'
12670      link_all_deplibs=yes
12671      export_dynamic_flag_spec='${wl}-Bexport'
12672      runpath_var='LD_RUN_PATH'
12673
12674      if test "$GCC" = yes; then
12675	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12676	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12677      else
12678	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12679	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12680      fi
12681      ;;
12682
12683    uts4*)
12684      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12685      hardcode_libdir_flag_spec='-L$libdir'
12686      hardcode_shlibpath_var=no
12687      ;;
12688
12689    *)
12690      ld_shlibs=no
12691      ;;
12692    esac
12693
12694    if test x$host_vendor = xsni; then
12695      case $host in
12696      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12697	export_dynamic_flag_spec='${wl}-Blargedynsym'
12698	;;
12699      esac
12700    fi
12701  fi
12702
12703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12704$as_echo "$ld_shlibs" >&6; }
12705test "$ld_shlibs" = no && can_build_shared=no
12706
12707with_gnu_ld=$with_gnu_ld
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723#
12724# Do we need to explicitly link libc?
12725#
12726case "x$archive_cmds_need_lc" in
12727x|xyes)
12728  # Assume -lc should be added
12729  archive_cmds_need_lc=yes
12730
12731  if test "$enable_shared" = yes && test "$GCC" = yes; then
12732    case $archive_cmds in
12733    *'~'*)
12734      # FIXME: we may have to deal with multi-command sequences.
12735      ;;
12736    '$CC '*)
12737      # Test whether the compiler implicitly links with -lc since on some
12738      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12739      # to ld, don't add -lc before -lgcc.
12740      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12741$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12742if ${lt_cv_archive_cmds_need_lc+:} false; then :
12743  $as_echo_n "(cached) " >&6
12744else
12745  $RM conftest*
12746	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12747
12748	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12749  (eval $ac_compile) 2>&5
12750  ac_status=$?
12751  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12752  test $ac_status = 0; } 2>conftest.err; then
12753	  soname=conftest
12754	  lib=conftest
12755	  libobjs=conftest.$ac_objext
12756	  deplibs=
12757	  wl=$lt_prog_compiler_wl
12758	  pic_flag=$lt_prog_compiler_pic
12759	  compiler_flags=-v
12760	  linker_flags=-v
12761	  verstring=
12762	  output_objdir=.
12763	  libname=conftest
12764	  lt_save_allow_undefined_flag=$allow_undefined_flag
12765	  allow_undefined_flag=
12766	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12767  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12768  ac_status=$?
12769  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12770  test $ac_status = 0; }
12771	  then
12772	    lt_cv_archive_cmds_need_lc=no
12773	  else
12774	    lt_cv_archive_cmds_need_lc=yes
12775	  fi
12776	  allow_undefined_flag=$lt_save_allow_undefined_flag
12777	else
12778	  cat conftest.err 1>&5
12779	fi
12780	$RM conftest*
12781
12782fi
12783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12784$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12785      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12786      ;;
12787    esac
12788  fi
12789  ;;
12790esac
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12944$as_echo_n "checking dynamic linker characteristics... " >&6; }
12945
12946if test "$GCC" = yes; then
12947  case $host_os in
12948    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12949    *) lt_awk_arg="/^libraries:/" ;;
12950  esac
12951  case $host_os in
12952    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12953    *) lt_sed_strip_eq="s,=/,/,g" ;;
12954  esac
12955  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12956  case $lt_search_path_spec in
12957  *\;*)
12958    # if the path contains ";" then we assume it to be the separator
12959    # otherwise default to the standard path separator (i.e. ":") - it is
12960    # assumed that no part of a normal pathname contains ";" but that should
12961    # okay in the real world where ";" in dirpaths is itself problematic.
12962    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12963    ;;
12964  *)
12965    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12966    ;;
12967  esac
12968  # Ok, now we have the path, separated by spaces, we can step through it
12969  # and add multilib dir if necessary.
12970  lt_tmp_lt_search_path_spec=
12971  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12972  for lt_sys_path in $lt_search_path_spec; do
12973    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12974      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12975    else
12976      test -d "$lt_sys_path" && \
12977	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12978    fi
12979  done
12980  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12981BEGIN {RS=" "; FS="/|\n";} {
12982  lt_foo="";
12983  lt_count=0;
12984  for (lt_i = NF; lt_i > 0; lt_i--) {
12985    if ($lt_i != "" && $lt_i != ".") {
12986      if ($lt_i == "..") {
12987        lt_count++;
12988      } else {
12989        if (lt_count == 0) {
12990          lt_foo="/" $lt_i lt_foo;
12991        } else {
12992          lt_count--;
12993        }
12994      }
12995    }
12996  }
12997  if (lt_foo != "") { lt_freq[lt_foo]++; }
12998  if (lt_freq[lt_foo] == 1) { print lt_foo; }
12999}'`
13000  # AWK program above erroneously prepends '/' to C:/dos/paths
13001  # for these hosts.
13002  case $host_os in
13003    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13004      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
13005  esac
13006  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13007else
13008  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13009fi
13010library_names_spec=
13011libname_spec='lib$name'
13012soname_spec=
13013shrext_cmds=".so"
13014postinstall_cmds=
13015postuninstall_cmds=
13016finish_cmds=
13017finish_eval=
13018shlibpath_var=
13019shlibpath_overrides_runpath=unknown
13020version_type=none
13021dynamic_linker="$host_os ld.so"
13022sys_lib_dlsearch_path_spec="/lib /usr/lib"
13023need_lib_prefix=unknown
13024hardcode_into_libs=no
13025
13026# when you set need_version to no, make sure it does not cause -set_version
13027# flags to be left without arguments
13028need_version=unknown
13029
13030case $host_os in
13031aix3*)
13032  version_type=linux # correct to gnu/linux during the next big refactor
13033  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13034  shlibpath_var=LIBPATH
13035
13036  # AIX 3 has no versioning support, so we append a major version to the name.
13037  soname_spec='${libname}${release}${shared_ext}$major'
13038  ;;
13039
13040aix[4-9]*)
13041  version_type=linux # correct to gnu/linux during the next big refactor
13042  need_lib_prefix=no
13043  need_version=no
13044  hardcode_into_libs=yes
13045  if test "$host_cpu" = ia64; then
13046    # AIX 5 supports IA64
13047    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13048    shlibpath_var=LD_LIBRARY_PATH
13049  else
13050    # With GCC up to 2.95.x, collect2 would create an import file
13051    # for dependence libraries.  The import file would start with
13052    # the line `#! .'.  This would cause the generated library to
13053    # depend on `.', always an invalid library.  This was fixed in
13054    # development snapshots of GCC prior to 3.0.
13055    case $host_os in
13056      aix4 | aix4.[01] | aix4.[01].*)
13057      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13058	   echo ' yes '
13059	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13060	:
13061      else
13062	can_build_shared=no
13063      fi
13064      ;;
13065    esac
13066    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13067    # soname into executable. Probably we can add versioning support to
13068    # collect2, so additional links can be useful in future.
13069    if test "$aix_use_runtimelinking" = yes; then
13070      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13071      # instead of lib<name>.a to let people know that these are not
13072      # typical AIX shared libraries.
13073      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13074    else
13075      # We preserve .a as extension for shared libraries through AIX4.2
13076      # and later when we are not doing run time linking.
13077      library_names_spec='${libname}${release}.a $libname.a'
13078      soname_spec='${libname}${release}${shared_ext}$major'
13079    fi
13080    shlibpath_var=LIBPATH
13081  fi
13082  ;;
13083
13084amigaos*)
13085  case $host_cpu in
13086  powerpc)
13087    # Since July 2007 AmigaOS4 officially supports .so libraries.
13088    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13089    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13090    ;;
13091  m68k)
13092    library_names_spec='$libname.ixlibrary $libname.a'
13093    # Create ${libname}_ixlibrary.a entries in /sys/libs.
13094    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'
13095    ;;
13096  esac
13097  ;;
13098
13099beos*)
13100  library_names_spec='${libname}${shared_ext}'
13101  dynamic_linker="$host_os ld.so"
13102  shlibpath_var=LIBRARY_PATH
13103  ;;
13104
13105bsdi[45]*)
13106  version_type=linux # correct to gnu/linux during the next big refactor
13107  need_version=no
13108  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13109  soname_spec='${libname}${release}${shared_ext}$major'
13110  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13111  shlibpath_var=LD_LIBRARY_PATH
13112  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13113  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13114  # the default ld.so.conf also contains /usr/contrib/lib and
13115  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13116  # libtool to hard-code these into programs
13117  ;;
13118
13119cygwin* | mingw* | pw32* | cegcc*)
13120  version_type=windows
13121  shrext_cmds=".dll"
13122  need_version=no
13123  need_lib_prefix=no
13124
13125  case $GCC,$cc_basename in
13126  yes,*)
13127    # gcc
13128    library_names_spec='$libname.dll.a'
13129    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13130    postinstall_cmds='base_file=`basename \${file}`~
13131      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13132      dldir=$destdir/`dirname \$dlpath`~
13133      test -d \$dldir || mkdir -p \$dldir~
13134      $install_prog $dir/$dlname \$dldir/$dlname~
13135      chmod a+x \$dldir/$dlname~
13136      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13137        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13138      fi'
13139    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13140      dlpath=$dir/\$dldll~
13141       $RM \$dlpath'
13142    shlibpath_overrides_runpath=yes
13143
13144    case $host_os in
13145    cygwin*)
13146      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13147      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13148
13149      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13150      ;;
13151    mingw* | cegcc*)
13152      # MinGW DLLs use traditional 'lib' prefix
13153      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13154      ;;
13155    pw32*)
13156      # pw32 DLLs use 'pw' prefix rather than 'lib'
13157      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13158      ;;
13159    esac
13160    dynamic_linker='Win32 ld.exe'
13161    ;;
13162
13163  *,cl*)
13164    # Native MSVC
13165    libname_spec='$name'
13166    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13167    library_names_spec='${libname}.dll.lib'
13168
13169    case $build_os in
13170    mingw*)
13171      sys_lib_search_path_spec=
13172      lt_save_ifs=$IFS
13173      IFS=';'
13174      for lt_path in $LIB
13175      do
13176        IFS=$lt_save_ifs
13177        # Let DOS variable expansion print the short 8.3 style file name.
13178        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13179        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13180      done
13181      IFS=$lt_save_ifs
13182      # Convert to MSYS style.
13183      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13184      ;;
13185    cygwin*)
13186      # Convert to unix form, then to dos form, then back to unix form
13187      # but this time dos style (no spaces!) so that the unix form looks
13188      # like /cygdrive/c/PROGRA~1:/cygdr...
13189      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13190      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13191      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13192      ;;
13193    *)
13194      sys_lib_search_path_spec="$LIB"
13195      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13196        # It is most probably a Windows format PATH.
13197        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13198      else
13199        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13200      fi
13201      # FIXME: find the short name or the path components, as spaces are
13202      # common. (e.g. "Program Files" -> "PROGRA~1")
13203      ;;
13204    esac
13205
13206    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13207    postinstall_cmds='base_file=`basename \${file}`~
13208      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13209      dldir=$destdir/`dirname \$dlpath`~
13210      test -d \$dldir || mkdir -p \$dldir~
13211      $install_prog $dir/$dlname \$dldir/$dlname'
13212    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13213      dlpath=$dir/\$dldll~
13214       $RM \$dlpath'
13215    shlibpath_overrides_runpath=yes
13216    dynamic_linker='Win32 link.exe'
13217    ;;
13218
13219  *)
13220    # Assume MSVC wrapper
13221    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13222    dynamic_linker='Win32 ld.exe'
13223    ;;
13224  esac
13225  # FIXME: first we should search . and the directory the executable is in
13226  shlibpath_var=PATH
13227  ;;
13228
13229darwin* | rhapsody*)
13230  dynamic_linker="$host_os dyld"
13231  version_type=darwin
13232  need_lib_prefix=no
13233  need_version=no
13234  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13235  soname_spec='${libname}${release}${major}$shared_ext'
13236  shlibpath_overrides_runpath=yes
13237  shlibpath_var=DYLD_LIBRARY_PATH
13238  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13239
13240  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13241  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13242  ;;
13243
13244dgux*)
13245  version_type=linux # correct to gnu/linux during the next big refactor
13246  need_lib_prefix=no
13247  need_version=no
13248  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13249  soname_spec='${libname}${release}${shared_ext}$major'
13250  shlibpath_var=LD_LIBRARY_PATH
13251  ;;
13252
13253freebsd* | dragonfly*)
13254  # DragonFly does not have aout.  When/if they implement a new
13255  # versioning mechanism, adjust this.
13256  if test -x /usr/bin/objformat; then
13257    objformat=`/usr/bin/objformat`
13258  else
13259    case $host_os in
13260    freebsd[23].*) objformat=aout ;;
13261    *) objformat=elf ;;
13262    esac
13263  fi
13264  version_type=freebsd-$objformat
13265  case $version_type in
13266    freebsd-elf*)
13267      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13268      need_version=no
13269      need_lib_prefix=no
13270      ;;
13271    freebsd-*)
13272      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13273      need_version=yes
13274      ;;
13275  esac
13276  shlibpath_var=LD_LIBRARY_PATH
13277  case $host_os in
13278  freebsd2.*)
13279    shlibpath_overrides_runpath=yes
13280    ;;
13281  freebsd3.[01]* | freebsdelf3.[01]*)
13282    shlibpath_overrides_runpath=yes
13283    hardcode_into_libs=yes
13284    ;;
13285  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13286  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13287    shlibpath_overrides_runpath=no
13288    hardcode_into_libs=yes
13289    ;;
13290  *) # from 4.6 on, and DragonFly
13291    shlibpath_overrides_runpath=yes
13292    hardcode_into_libs=yes
13293    ;;
13294  esac
13295  ;;
13296
13297haiku*)
13298  version_type=linux # correct to gnu/linux during the next big refactor
13299  need_lib_prefix=no
13300  need_version=no
13301  dynamic_linker="$host_os runtime_loader"
13302  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13303  soname_spec='${libname}${release}${shared_ext}$major'
13304  shlibpath_var=LIBRARY_PATH
13305  shlibpath_overrides_runpath=yes
13306  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13307  hardcode_into_libs=yes
13308  ;;
13309
13310hpux9* | hpux10* | hpux11*)
13311  # Give a soname corresponding to the major version so that dld.sl refuses to
13312  # link against other versions.
13313  version_type=sunos
13314  need_lib_prefix=no
13315  need_version=no
13316  case $host_cpu in
13317  ia64*)
13318    shrext_cmds='.so'
13319    hardcode_into_libs=yes
13320    dynamic_linker="$host_os dld.so"
13321    shlibpath_var=LD_LIBRARY_PATH
13322    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13323    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13324    soname_spec='${libname}${release}${shared_ext}$major'
13325    if test "X$HPUX_IA64_MODE" = X32; then
13326      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13327    else
13328      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13329    fi
13330    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13331    ;;
13332  hppa*64*)
13333    shrext_cmds='.sl'
13334    hardcode_into_libs=yes
13335    dynamic_linker="$host_os dld.sl"
13336    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13337    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13338    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13339    soname_spec='${libname}${release}${shared_ext}$major'
13340    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13341    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13342    ;;
13343  *)
13344    shrext_cmds='.sl'
13345    dynamic_linker="$host_os dld.sl"
13346    shlibpath_var=SHLIB_PATH
13347    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13348    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13349    soname_spec='${libname}${release}${shared_ext}$major'
13350    ;;
13351  esac
13352  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13353  postinstall_cmds='chmod 555 $lib'
13354  # or fails outright, so override atomically:
13355  install_override_mode=555
13356  ;;
13357
13358interix[3-9]*)
13359  version_type=linux # correct to gnu/linux during the next big refactor
13360  need_lib_prefix=no
13361  need_version=no
13362  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13363  soname_spec='${libname}${release}${shared_ext}$major'
13364  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13365  shlibpath_var=LD_LIBRARY_PATH
13366  shlibpath_overrides_runpath=no
13367  hardcode_into_libs=yes
13368  ;;
13369
13370irix5* | irix6* | nonstopux*)
13371  case $host_os in
13372    nonstopux*) version_type=nonstopux ;;
13373    *)
13374	if test "$lt_cv_prog_gnu_ld" = yes; then
13375		version_type=linux # correct to gnu/linux during the next big refactor
13376	else
13377		version_type=irix
13378	fi ;;
13379  esac
13380  need_lib_prefix=no
13381  need_version=no
13382  soname_spec='${libname}${release}${shared_ext}$major'
13383  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13384  case $host_os in
13385  irix5* | nonstopux*)
13386    libsuff= shlibsuff=
13387    ;;
13388  *)
13389    case $LD in # libtool.m4 will add one of these switches to LD
13390    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13391      libsuff= shlibsuff= libmagic=32-bit;;
13392    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13393      libsuff=32 shlibsuff=N32 libmagic=N32;;
13394    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13395      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13396    *) libsuff= shlibsuff= libmagic=never-match;;
13397    esac
13398    ;;
13399  esac
13400  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13401  shlibpath_overrides_runpath=no
13402  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13403  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13404  hardcode_into_libs=yes
13405  ;;
13406
13407# No shared lib support for Linux oldld, aout, or coff.
13408linux*oldld* | linux*aout* | linux*coff*)
13409  dynamic_linker=no
13410  ;;
13411
13412# This must be glibc/ELF.
13413linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13414  version_type=linux # correct to gnu/linux during the next big refactor
13415  need_lib_prefix=no
13416  need_version=no
13417  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13418  soname_spec='${libname}${release}${shared_ext}$major'
13419  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13420  shlibpath_var=LD_LIBRARY_PATH
13421  shlibpath_overrides_runpath=no
13422
13423  # Some binutils ld are patched to set DT_RUNPATH
13424  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13425  $as_echo_n "(cached) " >&6
13426else
13427  lt_cv_shlibpath_overrides_runpath=no
13428    save_LDFLAGS=$LDFLAGS
13429    save_libdir=$libdir
13430    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13431	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13432    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13433/* end confdefs.h.  */
13434
13435int
13436main ()
13437{
13438
13439  ;
13440  return 0;
13441}
13442_ACEOF
13443if ac_fn_c_try_link "$LINENO"; then :
13444  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13445  lt_cv_shlibpath_overrides_runpath=yes
13446fi
13447fi
13448rm -f core conftest.err conftest.$ac_objext \
13449    conftest$ac_exeext conftest.$ac_ext
13450    LDFLAGS=$save_LDFLAGS
13451    libdir=$save_libdir
13452
13453fi
13454
13455  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13456
13457  # This implies no fast_install, which is unacceptable.
13458  # Some rework will be needed to allow for fast_install
13459  # before this can be enabled.
13460  hardcode_into_libs=yes
13461
13462  # Append ld.so.conf contents to the search path
13463  if test -f /etc/ld.so.conf; then
13464    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' ' '`
13465    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13466  fi
13467
13468  # We used to test for /lib/ld.so.1 and disable shared libraries on
13469  # powerpc, because MkLinux only supported shared libraries with the
13470  # GNU dynamic linker.  Since this was broken with cross compilers,
13471  # most powerpc-linux boxes support dynamic linking these days and
13472  # people can always --disable-shared, the test was removed, and we
13473  # assume the GNU/Linux dynamic linker is in use.
13474  dynamic_linker='GNU/Linux ld.so'
13475  ;;
13476
13477netbsdelf*-gnu)
13478  version_type=linux
13479  need_lib_prefix=no
13480  need_version=no
13481  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13482  soname_spec='${libname}${release}${shared_ext}$major'
13483  shlibpath_var=LD_LIBRARY_PATH
13484  shlibpath_overrides_runpath=no
13485  hardcode_into_libs=yes
13486  dynamic_linker='NetBSD ld.elf_so'
13487  ;;
13488
13489netbsd*)
13490  version_type=sunos
13491  need_lib_prefix=no
13492  need_version=no
13493  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13494    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13495    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13496    dynamic_linker='NetBSD (a.out) ld.so'
13497  else
13498    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13499    soname_spec='${libname}${release}${shared_ext}$major'
13500    dynamic_linker='NetBSD ld.elf_so'
13501  fi
13502  shlibpath_var=LD_LIBRARY_PATH
13503  shlibpath_overrides_runpath=yes
13504  hardcode_into_libs=yes
13505  ;;
13506
13507newsos6)
13508  version_type=linux # correct to gnu/linux during the next big refactor
13509  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13510  shlibpath_var=LD_LIBRARY_PATH
13511  shlibpath_overrides_runpath=yes
13512  ;;
13513
13514*nto* | *qnx*)
13515  version_type=qnx
13516  need_lib_prefix=no
13517  need_version=no
13518  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13519  soname_spec='${libname}${release}${shared_ext}$major'
13520  shlibpath_var=LD_LIBRARY_PATH
13521  shlibpath_overrides_runpath=no
13522  hardcode_into_libs=yes
13523  dynamic_linker='ldqnx.so'
13524  ;;
13525
13526openbsd*)
13527  version_type=sunos
13528  sys_lib_dlsearch_path_spec="/usr/lib"
13529  need_lib_prefix=no
13530  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13531  case $host_os in
13532    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
13533    *)				need_version=no  ;;
13534  esac
13535  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13536  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13537  shlibpath_var=LD_LIBRARY_PATH
13538  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13539    case $host_os in
13540      openbsd2.[89] | openbsd2.[89].*)
13541	shlibpath_overrides_runpath=no
13542	;;
13543      *)
13544	shlibpath_overrides_runpath=yes
13545	;;
13546      esac
13547  else
13548    shlibpath_overrides_runpath=yes
13549  fi
13550  ;;
13551
13552os2*)
13553  libname_spec='$name'
13554  shrext_cmds=".dll"
13555  need_lib_prefix=no
13556  library_names_spec='$libname${shared_ext} $libname.a'
13557  dynamic_linker='OS/2 ld.exe'
13558  shlibpath_var=LIBPATH
13559  ;;
13560
13561osf3* | osf4* | osf5*)
13562  version_type=osf
13563  need_lib_prefix=no
13564  need_version=no
13565  soname_spec='${libname}${release}${shared_ext}$major'
13566  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13567  shlibpath_var=LD_LIBRARY_PATH
13568  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13569  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13570  ;;
13571
13572rdos*)
13573  dynamic_linker=no
13574  ;;
13575
13576solaris*)
13577  version_type=linux # correct to gnu/linux during the next big refactor
13578  need_lib_prefix=no
13579  need_version=no
13580  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13581  soname_spec='${libname}${release}${shared_ext}$major'
13582  shlibpath_var=LD_LIBRARY_PATH
13583  shlibpath_overrides_runpath=yes
13584  hardcode_into_libs=yes
13585  # ldd complains unless libraries are executable
13586  postinstall_cmds='chmod +x $lib'
13587  ;;
13588
13589sunos4*)
13590  version_type=sunos
13591  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13592  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13593  shlibpath_var=LD_LIBRARY_PATH
13594  shlibpath_overrides_runpath=yes
13595  if test "$with_gnu_ld" = yes; then
13596    need_lib_prefix=no
13597  fi
13598  need_version=yes
13599  ;;
13600
13601sysv4 | sysv4.3*)
13602  version_type=linux # correct to gnu/linux during the next big refactor
13603  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13604  soname_spec='${libname}${release}${shared_ext}$major'
13605  shlibpath_var=LD_LIBRARY_PATH
13606  case $host_vendor in
13607    sni)
13608      shlibpath_overrides_runpath=no
13609      need_lib_prefix=no
13610      runpath_var=LD_RUN_PATH
13611      ;;
13612    siemens)
13613      need_lib_prefix=no
13614      ;;
13615    motorola)
13616      need_lib_prefix=no
13617      need_version=no
13618      shlibpath_overrides_runpath=no
13619      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13620      ;;
13621  esac
13622  ;;
13623
13624sysv4*MP*)
13625  if test -d /usr/nec ;then
13626    version_type=linux # correct to gnu/linux during the next big refactor
13627    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13628    soname_spec='$libname${shared_ext}.$major'
13629    shlibpath_var=LD_LIBRARY_PATH
13630  fi
13631  ;;
13632
13633sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13634  version_type=freebsd-elf
13635  need_lib_prefix=no
13636  need_version=no
13637  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13638  soname_spec='${libname}${release}${shared_ext}$major'
13639  shlibpath_var=LD_LIBRARY_PATH
13640  shlibpath_overrides_runpath=yes
13641  hardcode_into_libs=yes
13642  if test "$with_gnu_ld" = yes; then
13643    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13644  else
13645    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13646    case $host_os in
13647      sco3.2v5*)
13648        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13649	;;
13650    esac
13651  fi
13652  sys_lib_dlsearch_path_spec='/usr/lib'
13653  ;;
13654
13655tpf*)
13656  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13657  version_type=linux # correct to gnu/linux during the next big refactor
13658  need_lib_prefix=no
13659  need_version=no
13660  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13661  shlibpath_var=LD_LIBRARY_PATH
13662  shlibpath_overrides_runpath=no
13663  hardcode_into_libs=yes
13664  ;;
13665
13666uts4*)
13667  version_type=linux # correct to gnu/linux during the next big refactor
13668  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13669  soname_spec='${libname}${release}${shared_ext}$major'
13670  shlibpath_var=LD_LIBRARY_PATH
13671  ;;
13672
13673*)
13674  dynamic_linker=no
13675  ;;
13676esac
13677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13678$as_echo "$dynamic_linker" >&6; }
13679test "$dynamic_linker" = no && can_build_shared=no
13680
13681variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13682if test "$GCC" = yes; then
13683  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13684fi
13685
13686if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13687  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13688fi
13689if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13690  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13691fi
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13785$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13786hardcode_action=
13787if test -n "$hardcode_libdir_flag_spec" ||
13788   test -n "$runpath_var" ||
13789   test "X$hardcode_automatic" = "Xyes" ; then
13790
13791  # We can hardcode non-existent directories.
13792  if test "$hardcode_direct" != no &&
13793     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13794     # have to relink, otherwise we might link with an installed library
13795     # when we should be linking with a yet-to-be-installed one
13796     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13797     test "$hardcode_minus_L" != no; then
13798    # Linking always hardcodes the temporary library directory.
13799    hardcode_action=relink
13800  else
13801    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13802    hardcode_action=immediate
13803  fi
13804else
13805  # We cannot hardcode anything, or else we can only hardcode existing
13806  # directories.
13807  hardcode_action=unsupported
13808fi
13809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13810$as_echo "$hardcode_action" >&6; }
13811
13812if test "$hardcode_action" = relink ||
13813   test "$inherit_rpath" = yes; then
13814  # Fast installation is not supported
13815  enable_fast_install=no
13816elif test "$shlibpath_overrides_runpath" = yes ||
13817     test "$enable_shared" = no; then
13818  # Fast installation is not necessary
13819  enable_fast_install=needless
13820fi
13821
13822
13823
13824
13825
13826
13827  if test "x$enable_dlopen" != xyes; then
13828  enable_dlopen=unknown
13829  enable_dlopen_self=unknown
13830  enable_dlopen_self_static=unknown
13831else
13832  lt_cv_dlopen=no
13833  lt_cv_dlopen_libs=
13834
13835  case $host_os in
13836  beos*)
13837    lt_cv_dlopen="load_add_on"
13838    lt_cv_dlopen_libs=
13839    lt_cv_dlopen_self=yes
13840    ;;
13841
13842  mingw* | pw32* | cegcc*)
13843    lt_cv_dlopen="LoadLibrary"
13844    lt_cv_dlopen_libs=
13845    ;;
13846
13847  cygwin*)
13848    lt_cv_dlopen="dlopen"
13849    lt_cv_dlopen_libs=
13850    ;;
13851
13852  darwin*)
13853  # if libdl is installed we need to link against it
13854    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13855$as_echo_n "checking for dlopen in -ldl... " >&6; }
13856if ${ac_cv_lib_dl_dlopen+:} false; then :
13857  $as_echo_n "(cached) " >&6
13858else
13859  ac_check_lib_save_LIBS=$LIBS
13860LIBS="-ldl  $LIBS"
13861cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13862/* end confdefs.h.  */
13863
13864/* Override any GCC internal prototype to avoid an error.
13865   Use char because int might match the return type of a GCC
13866   builtin and then its argument prototype would still apply.  */
13867#ifdef __cplusplus
13868extern "C"
13869#endif
13870char dlopen ();
13871int
13872main ()
13873{
13874return dlopen ();
13875  ;
13876  return 0;
13877}
13878_ACEOF
13879if ac_fn_c_try_link "$LINENO"; then :
13880  ac_cv_lib_dl_dlopen=yes
13881else
13882  ac_cv_lib_dl_dlopen=no
13883fi
13884rm -f core conftest.err conftest.$ac_objext \
13885    conftest$ac_exeext conftest.$ac_ext
13886LIBS=$ac_check_lib_save_LIBS
13887fi
13888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13889$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13890if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13891  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13892else
13893
13894    lt_cv_dlopen="dyld"
13895    lt_cv_dlopen_libs=
13896    lt_cv_dlopen_self=yes
13897
13898fi
13899
13900    ;;
13901
13902  *)
13903    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13904if test "x$ac_cv_func_shl_load" = xyes; then :
13905  lt_cv_dlopen="shl_load"
13906else
13907  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13908$as_echo_n "checking for shl_load in -ldld... " >&6; }
13909if ${ac_cv_lib_dld_shl_load+:} false; then :
13910  $as_echo_n "(cached) " >&6
13911else
13912  ac_check_lib_save_LIBS=$LIBS
13913LIBS="-ldld  $LIBS"
13914cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13915/* end confdefs.h.  */
13916
13917/* Override any GCC internal prototype to avoid an error.
13918   Use char because int might match the return type of a GCC
13919   builtin and then its argument prototype would still apply.  */
13920#ifdef __cplusplus
13921extern "C"
13922#endif
13923char shl_load ();
13924int
13925main ()
13926{
13927return shl_load ();
13928  ;
13929  return 0;
13930}
13931_ACEOF
13932if ac_fn_c_try_link "$LINENO"; then :
13933  ac_cv_lib_dld_shl_load=yes
13934else
13935  ac_cv_lib_dld_shl_load=no
13936fi
13937rm -f core conftest.err conftest.$ac_objext \
13938    conftest$ac_exeext conftest.$ac_ext
13939LIBS=$ac_check_lib_save_LIBS
13940fi
13941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13942$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13943if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13944  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13945else
13946  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13947if test "x$ac_cv_func_dlopen" = xyes; then :
13948  lt_cv_dlopen="dlopen"
13949else
13950  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13951$as_echo_n "checking for dlopen in -ldl... " >&6; }
13952if ${ac_cv_lib_dl_dlopen+:} false; then :
13953  $as_echo_n "(cached) " >&6
13954else
13955  ac_check_lib_save_LIBS=$LIBS
13956LIBS="-ldl  $LIBS"
13957cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13958/* end confdefs.h.  */
13959
13960/* Override any GCC internal prototype to avoid an error.
13961   Use char because int might match the return type of a GCC
13962   builtin and then its argument prototype would still apply.  */
13963#ifdef __cplusplus
13964extern "C"
13965#endif
13966char dlopen ();
13967int
13968main ()
13969{
13970return dlopen ();
13971  ;
13972  return 0;
13973}
13974_ACEOF
13975if ac_fn_c_try_link "$LINENO"; then :
13976  ac_cv_lib_dl_dlopen=yes
13977else
13978  ac_cv_lib_dl_dlopen=no
13979fi
13980rm -f core conftest.err conftest.$ac_objext \
13981    conftest$ac_exeext conftest.$ac_ext
13982LIBS=$ac_check_lib_save_LIBS
13983fi
13984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13985$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13986if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13987  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13988else
13989  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13990$as_echo_n "checking for dlopen in -lsvld... " >&6; }
13991if ${ac_cv_lib_svld_dlopen+:} false; then :
13992  $as_echo_n "(cached) " >&6
13993else
13994  ac_check_lib_save_LIBS=$LIBS
13995LIBS="-lsvld  $LIBS"
13996cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13997/* end confdefs.h.  */
13998
13999/* Override any GCC internal prototype to avoid an error.
14000   Use char because int might match the return type of a GCC
14001   builtin and then its argument prototype would still apply.  */
14002#ifdef __cplusplus
14003extern "C"
14004#endif
14005char dlopen ();
14006int
14007main ()
14008{
14009return dlopen ();
14010  ;
14011  return 0;
14012}
14013_ACEOF
14014if ac_fn_c_try_link "$LINENO"; then :
14015  ac_cv_lib_svld_dlopen=yes
14016else
14017  ac_cv_lib_svld_dlopen=no
14018fi
14019rm -f core conftest.err conftest.$ac_objext \
14020    conftest$ac_exeext conftest.$ac_ext
14021LIBS=$ac_check_lib_save_LIBS
14022fi
14023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14024$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14025if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14026  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14027else
14028  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14029$as_echo_n "checking for dld_link in -ldld... " >&6; }
14030if ${ac_cv_lib_dld_dld_link+:} false; then :
14031  $as_echo_n "(cached) " >&6
14032else
14033  ac_check_lib_save_LIBS=$LIBS
14034LIBS="-ldld  $LIBS"
14035cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14036/* end confdefs.h.  */
14037
14038/* Override any GCC internal prototype to avoid an error.
14039   Use char because int might match the return type of a GCC
14040   builtin and then its argument prototype would still apply.  */
14041#ifdef __cplusplus
14042extern "C"
14043#endif
14044char dld_link ();
14045int
14046main ()
14047{
14048return dld_link ();
14049  ;
14050  return 0;
14051}
14052_ACEOF
14053if ac_fn_c_try_link "$LINENO"; then :
14054  ac_cv_lib_dld_dld_link=yes
14055else
14056  ac_cv_lib_dld_dld_link=no
14057fi
14058rm -f core conftest.err conftest.$ac_objext \
14059    conftest$ac_exeext conftest.$ac_ext
14060LIBS=$ac_check_lib_save_LIBS
14061fi
14062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14063$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14064if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14065  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14066fi
14067
14068
14069fi
14070
14071
14072fi
14073
14074
14075fi
14076
14077
14078fi
14079
14080
14081fi
14082
14083    ;;
14084  esac
14085
14086  if test "x$lt_cv_dlopen" != xno; then
14087    enable_dlopen=yes
14088  else
14089    enable_dlopen=no
14090  fi
14091
14092  case $lt_cv_dlopen in
14093  dlopen)
14094    save_CPPFLAGS="$CPPFLAGS"
14095    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14096
14097    save_LDFLAGS="$LDFLAGS"
14098    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14099
14100    save_LIBS="$LIBS"
14101    LIBS="$lt_cv_dlopen_libs $LIBS"
14102
14103    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14104$as_echo_n "checking whether a program can dlopen itself... " >&6; }
14105if ${lt_cv_dlopen_self+:} false; then :
14106  $as_echo_n "(cached) " >&6
14107else
14108  	  if test "$cross_compiling" = yes; then :
14109  lt_cv_dlopen_self=cross
14110else
14111  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14112  lt_status=$lt_dlunknown
14113  cat > conftest.$ac_ext <<_LT_EOF
14114#line $LINENO "configure"
14115#include "confdefs.h"
14116
14117#if HAVE_DLFCN_H
14118#include <dlfcn.h>
14119#endif
14120
14121#include <stdio.h>
14122
14123#ifdef RTLD_GLOBAL
14124#  define LT_DLGLOBAL		RTLD_GLOBAL
14125#else
14126#  ifdef DL_GLOBAL
14127#    define LT_DLGLOBAL		DL_GLOBAL
14128#  else
14129#    define LT_DLGLOBAL		0
14130#  endif
14131#endif
14132
14133/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14134   find out it does not work in some platform. */
14135#ifndef LT_DLLAZY_OR_NOW
14136#  ifdef RTLD_LAZY
14137#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14138#  else
14139#    ifdef DL_LAZY
14140#      define LT_DLLAZY_OR_NOW		DL_LAZY
14141#    else
14142#      ifdef RTLD_NOW
14143#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14144#      else
14145#        ifdef DL_NOW
14146#          define LT_DLLAZY_OR_NOW	DL_NOW
14147#        else
14148#          define LT_DLLAZY_OR_NOW	0
14149#        endif
14150#      endif
14151#    endif
14152#  endif
14153#endif
14154
14155/* When -fvisbility=hidden is used, assume the code has been annotated
14156   correspondingly for the symbols needed.  */
14157#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14158int fnord () __attribute__((visibility("default")));
14159#endif
14160
14161int fnord () { return 42; }
14162int main ()
14163{
14164  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14165  int status = $lt_dlunknown;
14166
14167  if (self)
14168    {
14169      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14170      else
14171        {
14172	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14173          else puts (dlerror ());
14174	}
14175      /* dlclose (self); */
14176    }
14177  else
14178    puts (dlerror ());
14179
14180  return status;
14181}
14182_LT_EOF
14183  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14184  (eval $ac_link) 2>&5
14185  ac_status=$?
14186  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14187  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14188    (./conftest; exit; ) >&5 2>/dev/null
14189    lt_status=$?
14190    case x$lt_status in
14191      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14192      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14193      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14194    esac
14195  else :
14196    # compilation failed
14197    lt_cv_dlopen_self=no
14198  fi
14199fi
14200rm -fr conftest*
14201
14202
14203fi
14204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14205$as_echo "$lt_cv_dlopen_self" >&6; }
14206
14207    if test "x$lt_cv_dlopen_self" = xyes; then
14208      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14209      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14210$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14211if ${lt_cv_dlopen_self_static+:} false; then :
14212  $as_echo_n "(cached) " >&6
14213else
14214  	  if test "$cross_compiling" = yes; then :
14215  lt_cv_dlopen_self_static=cross
14216else
14217  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14218  lt_status=$lt_dlunknown
14219  cat > conftest.$ac_ext <<_LT_EOF
14220#line $LINENO "configure"
14221#include "confdefs.h"
14222
14223#if HAVE_DLFCN_H
14224#include <dlfcn.h>
14225#endif
14226
14227#include <stdio.h>
14228
14229#ifdef RTLD_GLOBAL
14230#  define LT_DLGLOBAL		RTLD_GLOBAL
14231#else
14232#  ifdef DL_GLOBAL
14233#    define LT_DLGLOBAL		DL_GLOBAL
14234#  else
14235#    define LT_DLGLOBAL		0
14236#  endif
14237#endif
14238
14239/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14240   find out it does not work in some platform. */
14241#ifndef LT_DLLAZY_OR_NOW
14242#  ifdef RTLD_LAZY
14243#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14244#  else
14245#    ifdef DL_LAZY
14246#      define LT_DLLAZY_OR_NOW		DL_LAZY
14247#    else
14248#      ifdef RTLD_NOW
14249#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14250#      else
14251#        ifdef DL_NOW
14252#          define LT_DLLAZY_OR_NOW	DL_NOW
14253#        else
14254#          define LT_DLLAZY_OR_NOW	0
14255#        endif
14256#      endif
14257#    endif
14258#  endif
14259#endif
14260
14261/* When -fvisbility=hidden is used, assume the code has been annotated
14262   correspondingly for the symbols needed.  */
14263#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14264int fnord () __attribute__((visibility("default")));
14265#endif
14266
14267int fnord () { return 42; }
14268int main ()
14269{
14270  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14271  int status = $lt_dlunknown;
14272
14273  if (self)
14274    {
14275      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14276      else
14277        {
14278	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14279          else puts (dlerror ());
14280	}
14281      /* dlclose (self); */
14282    }
14283  else
14284    puts (dlerror ());
14285
14286  return status;
14287}
14288_LT_EOF
14289  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14290  (eval $ac_link) 2>&5
14291  ac_status=$?
14292  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14293  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14294    (./conftest; exit; ) >&5 2>/dev/null
14295    lt_status=$?
14296    case x$lt_status in
14297      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14298      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14299      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14300    esac
14301  else :
14302    # compilation failed
14303    lt_cv_dlopen_self_static=no
14304  fi
14305fi
14306rm -fr conftest*
14307
14308
14309fi
14310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14311$as_echo "$lt_cv_dlopen_self_static" >&6; }
14312    fi
14313
14314    CPPFLAGS="$save_CPPFLAGS"
14315    LDFLAGS="$save_LDFLAGS"
14316    LIBS="$save_LIBS"
14317    ;;
14318  esac
14319
14320  case $lt_cv_dlopen_self in
14321  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14322  *) enable_dlopen_self=unknown ;;
14323  esac
14324
14325  case $lt_cv_dlopen_self_static in
14326  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14327  *) enable_dlopen_self_static=unknown ;;
14328  esac
14329fi
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347striplib=
14348old_striplib=
14349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14350$as_echo_n "checking whether stripping libraries is possible... " >&6; }
14351if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14352  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14353  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14355$as_echo "yes" >&6; }
14356else
14357# FIXME - insert some real tests, host_os isn't really good enough
14358  case $host_os in
14359  darwin*)
14360    if test -n "$STRIP" ; then
14361      striplib="$STRIP -x"
14362      old_striplib="$STRIP -S"
14363      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14364$as_echo "yes" >&6; }
14365    else
14366      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14367$as_echo "no" >&6; }
14368    fi
14369    ;;
14370  *)
14371    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14372$as_echo "no" >&6; }
14373    ;;
14374  esac
14375fi
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388  # Report which library types will actually be built
14389  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14390$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14391  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14392$as_echo "$can_build_shared" >&6; }
14393
14394  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14395$as_echo_n "checking whether to build shared libraries... " >&6; }
14396  test "$can_build_shared" = "no" && enable_shared=no
14397
14398  # On AIX, shared libraries and static libraries use the same namespace, and
14399  # are all built from PIC.
14400  case $host_os in
14401  aix3*)
14402    test "$enable_shared" = yes && enable_static=no
14403    if test -n "$RANLIB"; then
14404      archive_cmds="$archive_cmds~\$RANLIB \$lib"
14405      postinstall_cmds='$RANLIB $lib'
14406    fi
14407    ;;
14408
14409  aix[4-9]*)
14410    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14411      test "$enable_shared" = yes && enable_static=no
14412    fi
14413    ;;
14414  esac
14415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14416$as_echo "$enable_shared" >&6; }
14417
14418  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14419$as_echo_n "checking whether to build static libraries... " >&6; }
14420  # Make sure either enable_shared or enable_static is yes.
14421  test "$enable_shared" = yes || enable_static=yes
14422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14423$as_echo "$enable_static" >&6; }
14424
14425
14426
14427
14428fi
14429ac_ext=c
14430ac_cpp='$CPP $CPPFLAGS'
14431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14433ac_compiler_gnu=$ac_cv_c_compiler_gnu
14434
14435CC="$lt_save_CC"
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451        ac_config_commands="$ac_config_commands libtool"
14452
14453
14454
14455
14456# Only expand once:
14457
14458
14459
14460
14461
14462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((mode (XX))) works" >&5
14463$as_echo_n "checking whether gcc __attribute__ ((mode (XX))) works... " >&6; }
14464if ${gmp_cv_c_attribute_mode+:} false; then :
14465  $as_echo_n "(cached) " >&6
14466else
14467  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14468/* end confdefs.h.  */
14469typedef int SItype __attribute__ ((mode (SI)));
14470int
14471main ()
14472{
14473
14474  ;
14475  return 0;
14476}
14477_ACEOF
14478if ac_fn_c_try_compile "$LINENO"; then :
14479  gmp_cv_c_attribute_mode=yes
14480else
14481  gmp_cv_c_attribute_mode=no
14482fi
14483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14484
14485fi
14486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_mode" >&5
14487$as_echo "$gmp_cv_c_attribute_mode" >&6; }
14488if test $gmp_cv_c_attribute_mode = yes; then
14489
14490$as_echo "#define HAVE_ATTRIBUTE_MODE 1" >>confdefs.h
14491
14492fi
14493
14494
14495
14496
14497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent GMP" >&5
14498$as_echo_n "checking for recent GMP... " >&6; }
14499cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14500/* end confdefs.h.  */
14501
14502#include "gmp.h"
14503#if (__GNU_MP_VERSION*100+__GNU_MP_VERSION_MINOR*10 < 410)
14504# error "min GMP version is 4.1.0"
14505error
14506#endif
14507
14508_ACEOF
14509if ac_fn_c_try_compile "$LINENO"; then :
14510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14511$as_echo "yes" >&6; }
14512else
14513
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14515$as_echo "no" >&6; }
14516 as_fn_error $? "GMP 4.1.0 min required" "$LINENO" 5
14517
14518fi
14519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14520
14521if test "$use_gmp_build" = yes ; then
14522   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gmp internal files" >&5
14523$as_echo_n "checking for gmp internal files... " >&6; }
14524   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14525/* end confdefs.h.  */
14526
14527   #include "gmp.h"
14528   #include "gmp-impl.h"
14529   #include "longlong.h"
14530
14531_ACEOF
14532if ac_fn_c_try_compile "$LINENO"; then :
14533
14534     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14535$as_echo "yes" >&6; }
14536
14537$as_echo "#define MPFR_HAVE_GMP_IMPL 1" >>confdefs.h
14538
14539
14540else
14541
14542     as_fn_error $? "header files gmp-impl.h and longlong.h not found" "$LINENO" 5
14543
14544fi
14545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14546fi
14547
14548if test "$use_gmp_build" = yes ; then
14549  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for valid GMP_NUMB_BITS" >&5
14550$as_echo_n "checking for valid GMP_NUMB_BITS... " >&6; }
14551  if test "$cross_compiling" = yes; then :
14552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't test" >&5
14553$as_echo "can't test" >&6; }
14554else
14555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14556/* end confdefs.h.  */
14557
14558#include <limits.h>
14559#include "gmp.h"
14560#include "gmp-impl.h"
14561
14562int
14563main ()
14564{
14565
14566  return GMP_NUMB_BITS == BYTES_PER_MP_LIMB * CHAR_BIT
14567         && sizeof(mp_limb_t) == BYTES_PER_MP_LIMB ? 0 : 1;
14568
14569  ;
14570  return 0;
14571}
14572_ACEOF
14573if ac_fn_c_try_run "$LINENO"; then :
14574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14575$as_echo "yes" >&6; }
14576else
14577
14578       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14579$as_echo "no" >&6; }
14580       as_fn_error $? "GMP_NUMB_BITS is incorrect.
14581You probably need to change some of the GMP or MPFR compile options." "$LINENO" 5
14582fi
14583rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14584  conftest.$ac_objext conftest.beam conftest.$ac_ext
14585fi
14586
14587fi
14588
14589
14590if test "$dont_link_with_gmp" = yes ; then
14591LIBS="-lgmp $LIBS"
14592else
14593
14594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_init in -lgmp" >&5
14595$as_echo_n "checking for __gmpz_init in -lgmp... " >&6; }
14596if ${ac_cv_lib_gmp___gmpz_init+:} false; then :
14597  $as_echo_n "(cached) " >&6
14598else
14599  ac_check_lib_save_LIBS=$LIBS
14600LIBS="-lgmp  $LIBS"
14601cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14602/* end confdefs.h.  */
14603
14604/* Override any GCC internal prototype to avoid an error.
14605   Use char because int might match the return type of a GCC
14606   builtin and then its argument prototype would still apply.  */
14607#ifdef __cplusplus
14608extern "C"
14609#endif
14610char __gmpz_init ();
14611int
14612main ()
14613{
14614return __gmpz_init ();
14615  ;
14616  return 0;
14617}
14618_ACEOF
14619if ac_fn_c_try_link "$LINENO"; then :
14620  ac_cv_lib_gmp___gmpz_init=yes
14621else
14622  ac_cv_lib_gmp___gmpz_init=no
14623fi
14624rm -f core conftest.err conftest.$ac_objext \
14625    conftest$ac_exeext conftest.$ac_ext
14626LIBS=$ac_check_lib_save_LIBS
14627fi
14628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_init" >&5
14629$as_echo "$ac_cv_lib_gmp___gmpz_init" >&6; }
14630if test "x$ac_cv_lib_gmp___gmpz_init" = xyes; then :
14631  LIBS="-lgmp $LIBS"
14632else
14633  as_fn_error $? "libgmp not found or uses a different ABI (including static vs shared).
14634Please read the INSTALL file -- see \"In case of problem\"." "$LINENO" 5
14635fi
14636
14637
14638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmp.h version and libgmp version are the same" >&5
14639$as_echo_n "checking if gmp.h version and libgmp version are the same... " >&6; }
14640saved_LD_RUN_PATH="$LD_RUN_PATH"
14641LD_RUN_PATH="${LD_RUN_PATH:+$LD_RUN_PATH$PATH_SEPARATOR}$gmp_lib_path"
14642export LD_RUN_PATH
14643if test "$cross_compiling" = yes; then :
14644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: can not test" >&5
14645$as_echo "can not test" >&6; }
14646
14647else
14648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14649/* end confdefs.h.  */
14650
14651#include <stdio.h>
14652#include <string.h>
14653#include "gmp.h"
14654
14655int
14656main ()
14657{
14658
14659  char buffer[100];
14660  sprintf (buffer, "%d.%d.%d", __GNU_MP_VERSION, __GNU_MP_VERSION_MINOR,
14661           __GNU_MP_VERSION_PATCHLEVEL);
14662  printf ("(%s/%s) ", buffer, gmp_version);
14663  if (strcmp (buffer, gmp_version) == 0)
14664    return 0;
14665  if (__GNU_MP_VERSION_PATCHLEVEL != 0)
14666    return 1;
14667  sprintf (buffer, "%d.%d", __GNU_MP_VERSION, __GNU_MP_VERSION_MINOR);
14668  return (strcmp (buffer, gmp_version) != 0) ? 1 : 0;
14669
14670  ;
14671  return 0;
14672}
14673_ACEOF
14674if ac_fn_c_try_run "$LINENO"; then :
14675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14676$as_echo "yes" >&6; }
14677
14678if test "$ac_cv_type_intmax_t" = yes; then
14679
14680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%jd\"" >&5
14681$as_echo_n "checking if gmp_printf supports \"%jd\"... " >&6; }
14682if test "$cross_compiling" = yes; then :
14683  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14684$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14685as_fn_error $? "cannot run test program while cross compiling
14686See \`config.log' for more details" "$LINENO" 5; }
14687else
14688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14689/* end confdefs.h.  */
14690
14691#include <stdio.h>
14692
14693#ifdef HAVE_INTTYPES_H
14694# include <inttypes.h>
14695#endif
14696#ifdef HAVE_STDINT_H
14697# include <stdint.h>
14698#endif
14699
14700#include <gmp.h>
14701
14702int
14703main ()
14704{
14705
14706  char s[256];
14707  intmax_t a = 17;
14708
14709  if (gmp_sprintf (s, "(%0.0jd)(%d)", a, 42) == -1) return 1;
14710  return (strcmp (s, "(17)(42)") != 0);
14711
14712  ;
14713  return 0;
14714}
14715_ACEOF
14716if ac_fn_c_try_run "$LINENO"; then :
14717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14718$as_echo "yes" >&6; }
14719
14720else
14721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14722$as_echo "no" >&6; }
14723
14724$as_echo "#define NPRINTF_J 1" >>confdefs.h
14725
14726fi
14727rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14728  conftest.$ac_objext conftest.beam conftest.$ac_ext
14729fi
14730
14731
14732fi
14733
14734
14735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%hhd\"" >&5
14736$as_echo_n "checking if gmp_printf supports \"%hhd\"... " >&6; }
14737if test "$cross_compiling" = yes; then :
14738  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14739$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14740as_fn_error $? "cannot run test program while cross compiling
14741See \`config.log' for more details" "$LINENO" 5; }
14742else
14743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14744/* end confdefs.h.  */
14745
14746#include <stdio.h>
14747
14748#include <gmp.h>
14749
14750#include <gmp.h>
14751
14752int
14753main ()
14754{
14755
14756  char s[256];
14757  char a = 17;
14758
14759  if (gmp_sprintf (s, "(%0.0hhd)(%d)", a, 42) == -1) return 1;
14760  return (strcmp (s, "(17)(42)") != 0);
14761
14762  ;
14763  return 0;
14764}
14765_ACEOF
14766if ac_fn_c_try_run "$LINENO"; then :
14767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14768$as_echo "yes" >&6; }
14769
14770else
14771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14772$as_echo "no" >&6; }
14773
14774$as_echo "#define NPRINTF_HH 1" >>confdefs.h
14775
14776fi
14777rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14778  conftest.$ac_objext conftest.beam conftest.$ac_ext
14779fi
14780
14781
14782
14783
14784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%lld\"" >&5
14785$as_echo_n "checking if gmp_printf supports \"%lld\"... " >&6; }
14786if test "$cross_compiling" = yes; then :
14787  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14788$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14789as_fn_error $? "cannot run test program while cross compiling
14790See \`config.log' for more details" "$LINENO" 5; }
14791else
14792  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14793/* end confdefs.h.  */
14794
14795#include <stdio.h>
14796
14797#include <gmp.h>
14798
14799#include <gmp.h>
14800
14801int
14802main ()
14803{
14804
14805  char s[256];
14806  long long int a = 17;
14807
14808  if (gmp_sprintf (s, "(%0.0lld)(%d)", a, 42) == -1) return 1;
14809  return (strcmp (s, "(17)(42)") != 0);
14810
14811  ;
14812  return 0;
14813}
14814_ACEOF
14815if ac_fn_c_try_run "$LINENO"; then :
14816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14817$as_echo "yes" >&6; }
14818
14819else
14820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14821$as_echo "no" >&6; }
14822
14823$as_echo "#define NPRINTF_LL 1" >>confdefs.h
14824
14825fi
14826rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14827  conftest.$ac_objext conftest.beam conftest.$ac_ext
14828fi
14829
14830
14831
14832
14833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%Lf\"" >&5
14834$as_echo_n "checking if gmp_printf supports \"%Lf\"... " >&6; }
14835if test "$cross_compiling" = yes; then :
14836  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14837$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14838as_fn_error $? "cannot run test program while cross compiling
14839See \`config.log' for more details" "$LINENO" 5; }
14840else
14841  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14842/* end confdefs.h.  */
14843
14844#include <stdio.h>
14845
14846#include <gmp.h>
14847
14848#include <gmp.h>
14849
14850int
14851main ()
14852{
14853
14854  char s[256];
14855  long double a = 17;
14856
14857  if (gmp_sprintf (s, "(%0.0Lf)(%d)", a, 42) == -1) return 1;
14858  return (strcmp (s, "(17)(42)") != 0);
14859
14860  ;
14861  return 0;
14862}
14863_ACEOF
14864if ac_fn_c_try_run "$LINENO"; then :
14865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14866$as_echo "yes" >&6; }
14867
14868else
14869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14870$as_echo "no" >&6; }
14871
14872$as_echo "#define NPRINTF_L 1" >>confdefs.h
14873
14874fi
14875rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14876  conftest.$ac_objext conftest.beam conftest.$ac_ext
14877fi
14878
14879
14880
14881
14882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%td\"" >&5
14883$as_echo_n "checking if gmp_printf supports \"%td\"... " >&6; }
14884if test "$cross_compiling" = yes; then :
14885  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14886$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14887as_fn_error $? "cannot run test program while cross compiling
14888See \`config.log' for more details" "$LINENO" 5; }
14889else
14890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14891/* end confdefs.h.  */
14892
14893#include <stdio.h>
14894
14895#if defined (__cplusplus)
14896#include <cstddef>
14897#else
14898#include <stddef.h>
14899#endif
14900#include "gmp.h"
14901
14902#include <gmp.h>
14903
14904int
14905main ()
14906{
14907
14908  char s[256];
14909  ptrdiff_t a = 17;
14910
14911  if (gmp_sprintf (s, "(%0.0td)(%d)", a, 42) == -1) return 1;
14912  return (strcmp (s, "(17)(42)") != 0);
14913
14914  ;
14915  return 0;
14916}
14917_ACEOF
14918if ac_fn_c_try_run "$LINENO"; then :
14919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14920$as_echo "yes" >&6; }
14921
14922else
14923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14924$as_echo "no" >&6; }
14925
14926$as_echo "#define NPRINTF_T 1" >>confdefs.h
14927
14928fi
14929rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14930  conftest.$ac_objext conftest.beam conftest.$ac_ext
14931fi
14932
14933
14934
14935else
14936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14937$as_echo "no" >&6; }
14938    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ==========================================================" >&5
14939$as_echo "$as_me: WARNING: ==========================================================" >&2;}
14940    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'gmp.h' and 'libgmp' seem to have different versions or" >&5
14941$as_echo "$as_me: WARNING: 'gmp.h' and 'libgmp' seem to have different versions or" >&2;}
14942    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: we cannot run a program linked with GMP (if you cannot" >&5
14943$as_echo "$as_me: WARNING: we cannot run a program linked with GMP (if you cannot" >&2;}
14944    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see the version numbers above). A cause may be different" >&5
14945$as_echo "$as_me: WARNING: see the version numbers above). A cause may be different" >&2;}
14946    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GMP versions with different ABI's or the use of --with-gmp" >&5
14947$as_echo "$as_me: WARNING: GMP versions with different ABI's or the use of --with-gmp" >&2;}
14948    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: or --with-gmp-include with a system include directory" >&5
14949$as_echo "$as_me: WARNING: or --with-gmp-include with a system include directory" >&2;}
14950    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: (such as /usr/include or /usr/local/include)." >&5
14951$as_echo "$as_me: WARNING: (such as /usr/include or /usr/local/include)." >&2;}
14952    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: However since we can't use 'libtool' inside the configure," >&5
14953$as_echo "$as_me: WARNING: However since we can't use 'libtool' inside the configure," >&2;}
14954    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: we can't be sure. See 'config.log' for details." >&5
14955$as_echo "$as_me: WARNING: we can't be sure. See 'config.log' for details." >&2;}
14956    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ==========================================================" >&5
14957$as_echo "$as_me: WARNING: ==========================================================" >&2;}
14958
14959fi
14960rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14961  conftest.$ac_objext conftest.beam conftest.$ac_ext
14962fi
14963
14964LD_RUN_PATH="$saved_LD_RUN_PATH"
14965
14966for ac_func in __gmpn_rootrem __gmpn_sbpi1_divappr_q
14967do :
14968  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14969ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14970if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14971  cat >>confdefs.h <<_ACEOF
14972#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14973_ACEOF
14974
14975fi
14976done
14977
14978
14979fi
14980
14981if test -f confdefs.h; then
14982  $SED '/#define PACKAGE_/d' <confdefs.h >confdefs.tmp
14983  $SED '/#define HAVE_STRING/d' <confdefs.tmp >confdefs.h
14984  $SED '/#define HAVE_ALLOCA /d' <confdefs.h >confdefs.tmp
14985  $SED '/#define HAVE_DLFCN_H/d' <confdefs.tmp >confdefs.h
14986  $SED '/#define HAVE_MEM/d' <confdefs.h >confdefs.tmp
14987  $SED '/#define STDC_HEADERS/d' <confdefs.tmp >confdefs.h
14988  $SED '/#define HAVE_STRTOL/d' <confdefs.h >confdefs.tmp
14989  $SED '/#define HAVE_STDLIB_H/d' <confdefs.tmp >confdefs.h
14990  $SED '/#define HAVE_UNISTD_H/d' <confdefs.h >confdefs.tmp
14991  $SED '/#define HAVE_STDC_HEADERS/d' <confdefs.tmp >confdefs.h
14992  $SED '/#define HAVE_LONG_DOUBLE/d' <confdefs.h >confdefs.tmp
14993  $SED '/#define HAVE_SYS_STAT_H/d' <confdefs.tmp >confdefs.h
14994  $SED '/#define HAVE_SYS_TYPES_H/d' <confdefs.h >confdefs.tmp
14995  $SED '/#define PROTOTYPES/d' <confdefs.tmp >confdefs.h
14996  $SED '/#define __PROTOTYPES/d' <confdefs.h >confdefs.tmp
14997
14998  mv confdefs.tmp confdefs.h
14999fi
15000
15001if $EGREP -q -e '-dev$' $srcdir/VERSION; then
15002    DATAFILES=`echo \`$SED -n \
15003    's/^ *data_check *("\(data\/[^"]*\)".*/tests\/\1/p' \
15004    $srcdir/tests/*.c\``
15005fi
15006
15007ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile tests/Makefile tune/Makefile src/mparam.h:src/mparam_h.in"
15008
15009cat >confcache <<\_ACEOF
15010# This file is a shell script that caches the results of configure
15011# tests run on this system so they can be shared between configure
15012# scripts and configure runs, see configure's option --config-cache.
15013# It is not useful on other systems.  If it contains results you don't
15014# want to keep, you may remove or edit it.
15015#
15016# config.status only pays attention to the cache file if you give it
15017# the --recheck option to rerun configure.
15018#
15019# `ac_cv_env_foo' variables (set or unset) will be overridden when
15020# loading this file, other *unset* `ac_cv_foo' will be assigned the
15021# following values.
15022
15023_ACEOF
15024
15025# The following way of writing the cache mishandles newlines in values,
15026# but we know of no workaround that is simple, portable, and efficient.
15027# So, we kill variables containing newlines.
15028# Ultrix sh set writes to stderr and can't be redirected directly,
15029# and sets the high bit in the cache file unless we assign to the vars.
15030(
15031  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15032    eval ac_val=\$$ac_var
15033    case $ac_val in #(
15034    *${as_nl}*)
15035      case $ac_var in #(
15036      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15037$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15038      esac
15039      case $ac_var in #(
15040      _ | IFS | as_nl) ;; #(
15041      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15042      *) { eval $ac_var=; unset $ac_var;} ;;
15043      esac ;;
15044    esac
15045  done
15046
15047  (set) 2>&1 |
15048    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15049    *${as_nl}ac_space=\ *)
15050      # `set' does not quote correctly, so add quotes: double-quote
15051      # substitution turns \\\\ into \\, and sed turns \\ into \.
15052      sed -n \
15053	"s/'/'\\\\''/g;
15054	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15055      ;; #(
15056    *)
15057      # `set' quotes correctly as required by POSIX, so do not add quotes.
15058      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15059      ;;
15060    esac |
15061    sort
15062) |
15063  sed '
15064     /^ac_cv_env_/b end
15065     t clear
15066     :clear
15067     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15068     t end
15069     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15070     :end' >>confcache
15071if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15072  if test -w "$cache_file"; then
15073    if test "x$cache_file" != "x/dev/null"; then
15074      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15075$as_echo "$as_me: updating cache $cache_file" >&6;}
15076      if test ! -f "$cache_file" || test -h "$cache_file"; then
15077	cat confcache >"$cache_file"
15078      else
15079        case $cache_file in #(
15080        */* | ?:*)
15081	  mv -f confcache "$cache_file"$$ &&
15082	  mv -f "$cache_file"$$ "$cache_file" ;; #(
15083        *)
15084	  mv -f confcache "$cache_file" ;;
15085	esac
15086      fi
15087    fi
15088  else
15089    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15090$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15091  fi
15092fi
15093rm -f confcache
15094
15095test "x$prefix" = xNONE && prefix=$ac_default_prefix
15096# Let make expand exec_prefix.
15097test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15098
15099# Transform confdefs.h into DEFS.
15100# Protect against shell expansion while executing Makefile rules.
15101# Protect against Makefile macro expansion.
15102#
15103# If the first sed substitution is executed (which looks for macros that
15104# take arguments), then branch to the quote section.  Otherwise,
15105# look for a macro that doesn't take arguments.
15106ac_script='
15107:mline
15108/\\$/{
15109 N
15110 s,\\\n,,
15111 b mline
15112}
15113t clear
15114:clear
15115s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
15116t quote
15117s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
15118t quote
15119b any
15120:quote
15121s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15122s/\[/\\&/g
15123s/\]/\\&/g
15124s/\$/$$/g
15125H
15126:any
15127${
15128	g
15129	s/^\n//
15130	s/\n/ /g
15131	p
15132}
15133'
15134DEFS=`sed -n "$ac_script" confdefs.h`
15135
15136
15137ac_libobjs=
15138ac_ltlibobjs=
15139U=
15140for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15141  # 1. Remove the extension, and $U if already installed.
15142  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15143  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15144  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15145  #    will be set to the directory where LIBOBJS objects are built.
15146  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15147  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15148done
15149LIBOBJS=$ac_libobjs
15150
15151LTLIBOBJS=$ac_ltlibobjs
15152
15153
15154 if test -n "$EXEEXT"; then
15155  am__EXEEXT_TRUE=
15156  am__EXEEXT_FALSE='#'
15157else
15158  am__EXEEXT_TRUE='#'
15159  am__EXEEXT_FALSE=
15160fi
15161
15162if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15163  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15164Usually this means the macro was only invoked conditionally." "$LINENO" 5
15165fi
15166if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15167  as_fn_error $? "conditional \"AMDEP\" was never defined.
15168Usually this means the macro was only invoked conditionally." "$LINENO" 5
15169fi
15170if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15171  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15172Usually this means the macro was only invoked conditionally." "$LINENO" 5
15173fi
15174
15175: "${CONFIG_STATUS=./config.status}"
15176ac_write_fail=0
15177ac_clean_files_save=$ac_clean_files
15178ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15179{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15180$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15181as_write_fail=0
15182cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15183#! $SHELL
15184# Generated by $as_me.
15185# Run this file to recreate the current configuration.
15186# Compiler output produced by configure, useful for debugging
15187# configure, is in config.log if it exists.
15188
15189debug=false
15190ac_cs_recheck=false
15191ac_cs_silent=false
15192
15193SHELL=\${CONFIG_SHELL-$SHELL}
15194export SHELL
15195_ASEOF
15196cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15197## -------------------- ##
15198## M4sh Initialization. ##
15199## -------------------- ##
15200
15201# Be more Bourne compatible
15202DUALCASE=1; export DUALCASE # for MKS sh
15203if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15204  emulate sh
15205  NULLCMD=:
15206  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15207  # is contrary to our usage.  Disable this feature.
15208  alias -g '${1+"$@"}'='"$@"'
15209  setopt NO_GLOB_SUBST
15210else
15211  case `(set -o) 2>/dev/null` in #(
15212  *posix*) :
15213    set -o posix ;; #(
15214  *) :
15215     ;;
15216esac
15217fi
15218
15219
15220as_nl='
15221'
15222export as_nl
15223# Printing a long string crashes Solaris 7 /usr/bin/printf.
15224as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15225as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15226as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15227# Prefer a ksh shell builtin over an external printf program on Solaris,
15228# but without wasting forks for bash or zsh.
15229if test -z "$BASH_VERSION$ZSH_VERSION" \
15230    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15231  as_echo='print -r --'
15232  as_echo_n='print -rn --'
15233elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15234  as_echo='printf %s\n'
15235  as_echo_n='printf %s'
15236else
15237  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15238    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15239    as_echo_n='/usr/ucb/echo -n'
15240  else
15241    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15242    as_echo_n_body='eval
15243      arg=$1;
15244      case $arg in #(
15245      *"$as_nl"*)
15246	expr "X$arg" : "X\\(.*\\)$as_nl";
15247	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15248      esac;
15249      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15250    '
15251    export as_echo_n_body
15252    as_echo_n='sh -c $as_echo_n_body as_echo'
15253  fi
15254  export as_echo_body
15255  as_echo='sh -c $as_echo_body as_echo'
15256fi
15257
15258# The user is always right.
15259if test "${PATH_SEPARATOR+set}" != set; then
15260  PATH_SEPARATOR=:
15261  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15262    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15263      PATH_SEPARATOR=';'
15264  }
15265fi
15266
15267
15268# IFS
15269# We need space, tab and new line, in precisely that order.  Quoting is
15270# there to prevent editors from complaining about space-tab.
15271# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15272# splitting by setting IFS to empty value.)
15273IFS=" ""	$as_nl"
15274
15275# Find who we are.  Look in the path if we contain no directory separator.
15276as_myself=
15277case $0 in #((
15278  *[\\/]* ) as_myself=$0 ;;
15279  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15280for as_dir in $PATH
15281do
15282  IFS=$as_save_IFS
15283  test -z "$as_dir" && as_dir=.
15284    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15285  done
15286IFS=$as_save_IFS
15287
15288     ;;
15289esac
15290# We did not find ourselves, most probably we were run as `sh COMMAND'
15291# in which case we are not to be found in the path.
15292if test "x$as_myself" = x; then
15293  as_myself=$0
15294fi
15295if test ! -f "$as_myself"; then
15296  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15297  exit 1
15298fi
15299
15300# Unset variables that we do not need and which cause bugs (e.g. in
15301# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15302# suppresses any "Segmentation fault" message there.  '((' could
15303# trigger a bug in pdksh 5.2.14.
15304for as_var in BASH_ENV ENV MAIL MAILPATH
15305do eval test x\${$as_var+set} = xset \
15306  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15307done
15308PS1='$ '
15309PS2='> '
15310PS4='+ '
15311
15312# NLS nuisances.
15313LC_ALL=C
15314export LC_ALL
15315LANGUAGE=C
15316export LANGUAGE
15317
15318# CDPATH.
15319(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15320
15321
15322# as_fn_error STATUS ERROR [LINENO LOG_FD]
15323# ----------------------------------------
15324# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15325# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15326# script with STATUS, using 1 if that was 0.
15327as_fn_error ()
15328{
15329  as_status=$1; test $as_status -eq 0 && as_status=1
15330  if test "$4"; then
15331    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15332    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15333  fi
15334  $as_echo "$as_me: error: $2" >&2
15335  as_fn_exit $as_status
15336} # as_fn_error
15337
15338
15339# as_fn_set_status STATUS
15340# -----------------------
15341# Set $? to STATUS, without forking.
15342as_fn_set_status ()
15343{
15344  return $1
15345} # as_fn_set_status
15346
15347# as_fn_exit STATUS
15348# -----------------
15349# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15350as_fn_exit ()
15351{
15352  set +e
15353  as_fn_set_status $1
15354  exit $1
15355} # as_fn_exit
15356
15357# as_fn_unset VAR
15358# ---------------
15359# Portably unset VAR.
15360as_fn_unset ()
15361{
15362  { eval $1=; unset $1;}
15363}
15364as_unset=as_fn_unset
15365# as_fn_append VAR VALUE
15366# ----------------------
15367# Append the text in VALUE to the end of the definition contained in VAR. Take
15368# advantage of any shell optimizations that allow amortized linear growth over
15369# repeated appends, instead of the typical quadratic growth present in naive
15370# implementations.
15371if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15372  eval 'as_fn_append ()
15373  {
15374    eval $1+=\$2
15375  }'
15376else
15377  as_fn_append ()
15378  {
15379    eval $1=\$$1\$2
15380  }
15381fi # as_fn_append
15382
15383# as_fn_arith ARG...
15384# ------------------
15385# Perform arithmetic evaluation on the ARGs, and store the result in the
15386# global $as_val. Take advantage of shells that can avoid forks. The arguments
15387# must be portable across $(()) and expr.
15388if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15389  eval 'as_fn_arith ()
15390  {
15391    as_val=$(( $* ))
15392  }'
15393else
15394  as_fn_arith ()
15395  {
15396    as_val=`expr "$@" || test $? -eq 1`
15397  }
15398fi # as_fn_arith
15399
15400
15401if expr a : '\(a\)' >/dev/null 2>&1 &&
15402   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15403  as_expr=expr
15404else
15405  as_expr=false
15406fi
15407
15408if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15409  as_basename=basename
15410else
15411  as_basename=false
15412fi
15413
15414if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15415  as_dirname=dirname
15416else
15417  as_dirname=false
15418fi
15419
15420as_me=`$as_basename -- "$0" ||
15421$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15422	 X"$0" : 'X\(//\)$' \| \
15423	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15424$as_echo X/"$0" |
15425    sed '/^.*\/\([^/][^/]*\)\/*$/{
15426	    s//\1/
15427	    q
15428	  }
15429	  /^X\/\(\/\/\)$/{
15430	    s//\1/
15431	    q
15432	  }
15433	  /^X\/\(\/\).*/{
15434	    s//\1/
15435	    q
15436	  }
15437	  s/.*/./; q'`
15438
15439# Avoid depending upon Character Ranges.
15440as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15441as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15442as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15443as_cr_digits='0123456789'
15444as_cr_alnum=$as_cr_Letters$as_cr_digits
15445
15446ECHO_C= ECHO_N= ECHO_T=
15447case `echo -n x` in #(((((
15448-n*)
15449  case `echo 'xy\c'` in
15450  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15451  xy)  ECHO_C='\c';;
15452  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15453       ECHO_T='	';;
15454  esac;;
15455*)
15456  ECHO_N='-n';;
15457esac
15458
15459rm -f conf$$ conf$$.exe conf$$.file
15460if test -d conf$$.dir; then
15461  rm -f conf$$.dir/conf$$.file
15462else
15463  rm -f conf$$.dir
15464  mkdir conf$$.dir 2>/dev/null
15465fi
15466if (echo >conf$$.file) 2>/dev/null; then
15467  if ln -s conf$$.file conf$$ 2>/dev/null; then
15468    as_ln_s='ln -s'
15469    # ... but there are two gotchas:
15470    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15471    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15472    # In both cases, we have to default to `cp -pR'.
15473    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15474      as_ln_s='cp -pR'
15475  elif ln conf$$.file conf$$ 2>/dev/null; then
15476    as_ln_s=ln
15477  else
15478    as_ln_s='cp -pR'
15479  fi
15480else
15481  as_ln_s='cp -pR'
15482fi
15483rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15484rmdir conf$$.dir 2>/dev/null
15485
15486
15487# as_fn_mkdir_p
15488# -------------
15489# Create "$as_dir" as a directory, including parents if necessary.
15490as_fn_mkdir_p ()
15491{
15492
15493  case $as_dir in #(
15494  -*) as_dir=./$as_dir;;
15495  esac
15496  test -d "$as_dir" || eval $as_mkdir_p || {
15497    as_dirs=
15498    while :; do
15499      case $as_dir in #(
15500      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15501      *) as_qdir=$as_dir;;
15502      esac
15503      as_dirs="'$as_qdir' $as_dirs"
15504      as_dir=`$as_dirname -- "$as_dir" ||
15505$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15506	 X"$as_dir" : 'X\(//\)[^/]' \| \
15507	 X"$as_dir" : 'X\(//\)$' \| \
15508	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15509$as_echo X"$as_dir" |
15510    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15511	    s//\1/
15512	    q
15513	  }
15514	  /^X\(\/\/\)[^/].*/{
15515	    s//\1/
15516	    q
15517	  }
15518	  /^X\(\/\/\)$/{
15519	    s//\1/
15520	    q
15521	  }
15522	  /^X\(\/\).*/{
15523	    s//\1/
15524	    q
15525	  }
15526	  s/.*/./; q'`
15527      test -d "$as_dir" && break
15528    done
15529    test -z "$as_dirs" || eval "mkdir $as_dirs"
15530  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15531
15532
15533} # as_fn_mkdir_p
15534if mkdir -p . 2>/dev/null; then
15535  as_mkdir_p='mkdir -p "$as_dir"'
15536else
15537  test -d ./-p && rmdir ./-p
15538  as_mkdir_p=false
15539fi
15540
15541
15542# as_fn_executable_p FILE
15543# -----------------------
15544# Test if FILE is an executable regular file.
15545as_fn_executable_p ()
15546{
15547  test -f "$1" && test -x "$1"
15548} # as_fn_executable_p
15549as_test_x='test -x'
15550as_executable_p=as_fn_executable_p
15551
15552# Sed expression to map a string onto a valid CPP name.
15553as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15554
15555# Sed expression to map a string onto a valid variable name.
15556as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15557
15558
15559exec 6>&1
15560## ----------------------------------- ##
15561## Main body of $CONFIG_STATUS script. ##
15562## ----------------------------------- ##
15563_ASEOF
15564test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15565
15566cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15567# Save the log message, to keep $0 and so on meaningful, and to
15568# report actual input values of CONFIG_FILES etc. instead of their
15569# values after options handling.
15570ac_log="
15571This file was extended by MPFR $as_me 3.1.2, which was
15572generated by GNU Autoconf 2.69.  Invocation command line was
15573
15574  CONFIG_FILES    = $CONFIG_FILES
15575  CONFIG_HEADERS  = $CONFIG_HEADERS
15576  CONFIG_LINKS    = $CONFIG_LINKS
15577  CONFIG_COMMANDS = $CONFIG_COMMANDS
15578  $ $0 $@
15579
15580on `(hostname || uname -n) 2>/dev/null | sed 1q`
15581"
15582
15583_ACEOF
15584
15585case $ac_config_files in *"
15586"*) set x $ac_config_files; shift; ac_config_files=$*;;
15587esac
15588
15589
15590
15591cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15592# Files that config.status was made for.
15593config_files="$ac_config_files"
15594config_commands="$ac_config_commands"
15595
15596_ACEOF
15597
15598cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15599ac_cs_usage="\
15600\`$as_me' instantiates files and other configuration actions
15601from templates according to the current configuration.  Unless the files
15602and actions are specified as TAGs, all are instantiated by default.
15603
15604Usage: $0 [OPTION]... [TAG]...
15605
15606  -h, --help       print this help, then exit
15607  -V, --version    print version number and configuration settings, then exit
15608      --config     print configuration, then exit
15609  -q, --quiet, --silent
15610                   do not print progress messages
15611  -d, --debug      don't remove temporary files
15612      --recheck    update $as_me by reconfiguring in the same conditions
15613      --file=FILE[:TEMPLATE]
15614                   instantiate the configuration file FILE
15615
15616Configuration files:
15617$config_files
15618
15619Configuration commands:
15620$config_commands
15621
15622Report bugs to the package provider."
15623
15624_ACEOF
15625cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15626ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15627ac_cs_version="\\
15628MPFR config.status 3.1.2
15629configured by $0, generated by GNU Autoconf 2.69,
15630  with options \\"\$ac_cs_config\\"
15631
15632Copyright (C) 2012 Free Software Foundation, Inc.
15633This config.status script is free software; the Free Software Foundation
15634gives unlimited permission to copy, distribute and modify it."
15635
15636ac_pwd='$ac_pwd'
15637srcdir='$srcdir'
15638INSTALL='$INSTALL'
15639MKDIR_P='$MKDIR_P'
15640AWK='$AWK'
15641test -n "\$AWK" || AWK=awk
15642_ACEOF
15643
15644cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15645# The default lists apply if the user does not specify any file.
15646ac_need_defaults=:
15647while test $# != 0
15648do
15649  case $1 in
15650  --*=?*)
15651    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15652    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15653    ac_shift=:
15654    ;;
15655  --*=)
15656    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15657    ac_optarg=
15658    ac_shift=:
15659    ;;
15660  *)
15661    ac_option=$1
15662    ac_optarg=$2
15663    ac_shift=shift
15664    ;;
15665  esac
15666
15667  case $ac_option in
15668  # Handling of the options.
15669  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15670    ac_cs_recheck=: ;;
15671  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15672    $as_echo "$ac_cs_version"; exit ;;
15673  --config | --confi | --conf | --con | --co | --c )
15674    $as_echo "$ac_cs_config"; exit ;;
15675  --debug | --debu | --deb | --de | --d | -d )
15676    debug=: ;;
15677  --file | --fil | --fi | --f )
15678    $ac_shift
15679    case $ac_optarg in
15680    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15681    '') as_fn_error $? "missing file argument" ;;
15682    esac
15683    as_fn_append CONFIG_FILES " '$ac_optarg'"
15684    ac_need_defaults=false;;
15685  --he | --h |  --help | --hel | -h )
15686    $as_echo "$ac_cs_usage"; exit ;;
15687  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15688  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15689    ac_cs_silent=: ;;
15690
15691  # This is an error.
15692  -*) as_fn_error $? "unrecognized option: \`$1'
15693Try \`$0 --help' for more information." ;;
15694
15695  *) as_fn_append ac_config_targets " $1"
15696     ac_need_defaults=false ;;
15697
15698  esac
15699  shift
15700done
15701
15702ac_configure_extra_args=
15703
15704if $ac_cs_silent; then
15705  exec 6>/dev/null
15706  ac_configure_extra_args="$ac_configure_extra_args --silent"
15707fi
15708
15709_ACEOF
15710cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15711if \$ac_cs_recheck; then
15712  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15713  shift
15714  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15715  CONFIG_SHELL='$SHELL'
15716  export CONFIG_SHELL
15717  exec "\$@"
15718fi
15719
15720_ACEOF
15721cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15722exec 5>>config.log
15723{
15724  echo
15725  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15726## Running $as_me. ##
15727_ASBOX
15728  $as_echo "$ac_log"
15729} >&5
15730
15731_ACEOF
15732cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15733#
15734# INIT-COMMANDS
15735#
15736AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15737
15738
15739# The HP-UX ksh and POSIX shell print the target directory to stdout
15740# if CDPATH is set.
15741(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15742
15743sed_quote_subst='$sed_quote_subst'
15744double_quote_subst='$double_quote_subst'
15745delay_variable_subst='$delay_variable_subst'
15746AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
15747DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15748OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15749macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15750macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15751enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15752enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15753pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15754enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15755SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15756ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15757PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15758host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15759host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15760host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15761build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15762build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15763build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15764SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15765Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15766GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15767EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15768FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15769LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15770NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15771LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15772max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15773ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15774exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15775lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15776lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15777lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15778lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15779lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15780reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15781reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15782deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15783file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15784file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15785want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15786sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15787AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15788AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15789archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15790STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15791RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15792old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15793old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15794old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15795lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15796CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15797CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15798compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15799GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15800lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15801lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15802lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15803lt_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"`'
15804nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15805lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15806objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15807MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15808lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15809lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15810lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15811lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15812lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15813need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15814MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15815DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15816NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15817LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15818OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15819OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15820libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15821shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15822extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15823archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15824enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15825export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15826whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15827compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15828old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15829old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15830archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15831archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15832module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15833module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15834with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15835allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15836no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15837hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15838hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15839hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15840hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15841hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15842hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15843hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15844inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15845link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15846always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15847export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15848exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15849include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15850prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15851postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15852file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15853variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15854need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15855need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15856version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15857runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15858shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15859shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15860libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15861library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15862soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15863install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15864postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15865postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15866finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15867finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15868hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15869sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15870sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15871hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15872enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15873enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15874enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15875old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15876striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15877
15878LTCC='$LTCC'
15879LTCFLAGS='$LTCFLAGS'
15880compiler='$compiler_DEFAULT'
15881
15882# A function that is used when there is no print builtin or printf.
15883func_fallback_echo ()
15884{
15885  eval 'cat <<_LTECHO_EOF
15886\$1
15887_LTECHO_EOF'
15888}
15889
15890# Quote evaled strings.
15891for var in AS \
15892DLLTOOL \
15893OBJDUMP \
15894SHELL \
15895ECHO \
15896PATH_SEPARATOR \
15897SED \
15898GREP \
15899EGREP \
15900FGREP \
15901LD \
15902NM \
15903LN_S \
15904lt_SP2NL \
15905lt_NL2SP \
15906reload_flag \
15907deplibs_check_method \
15908file_magic_cmd \
15909file_magic_glob \
15910want_nocaseglob \
15911sharedlib_from_linklib_cmd \
15912AR \
15913AR_FLAGS \
15914archiver_list_spec \
15915STRIP \
15916RANLIB \
15917CC \
15918CFLAGS \
15919compiler \
15920lt_cv_sys_global_symbol_pipe \
15921lt_cv_sys_global_symbol_to_cdecl \
15922lt_cv_sys_global_symbol_to_c_name_address \
15923lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15924nm_file_list_spec \
15925lt_prog_compiler_no_builtin_flag \
15926lt_prog_compiler_pic \
15927lt_prog_compiler_wl \
15928lt_prog_compiler_static \
15929lt_cv_prog_compiler_c_o \
15930need_locks \
15931MANIFEST_TOOL \
15932DSYMUTIL \
15933NMEDIT \
15934LIPO \
15935OTOOL \
15936OTOOL64 \
15937shrext_cmds \
15938export_dynamic_flag_spec \
15939whole_archive_flag_spec \
15940compiler_needs_object \
15941with_gnu_ld \
15942allow_undefined_flag \
15943no_undefined_flag \
15944hardcode_libdir_flag_spec \
15945hardcode_libdir_separator \
15946exclude_expsyms \
15947include_expsyms \
15948file_list_spec \
15949variables_saved_for_relink \
15950libname_spec \
15951library_names_spec \
15952soname_spec \
15953install_override_mode \
15954finish_eval \
15955old_striplib \
15956striplib; do
15957    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15958    *[\\\\\\\`\\"\\\$]*)
15959      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15960      ;;
15961    *)
15962      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15963      ;;
15964    esac
15965done
15966
15967# Double-quote double-evaled strings.
15968for var in reload_cmds \
15969old_postinstall_cmds \
15970old_postuninstall_cmds \
15971old_archive_cmds \
15972extract_expsyms_cmds \
15973old_archive_from_new_cmds \
15974old_archive_from_expsyms_cmds \
15975archive_cmds \
15976archive_expsym_cmds \
15977module_cmds \
15978module_expsym_cmds \
15979export_symbols_cmds \
15980prelink_cmds \
15981postlink_cmds \
15982postinstall_cmds \
15983postuninstall_cmds \
15984finish_cmds \
15985sys_lib_search_path_spec \
15986sys_lib_dlsearch_path_spec; do
15987    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15988    *[\\\\\\\`\\"\\\$]*)
15989      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15990      ;;
15991    *)
15992      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15993      ;;
15994    esac
15995done
15996
15997ac_aux_dir='$ac_aux_dir'
15998xsi_shell='$xsi_shell'
15999lt_shell_append='$lt_shell_append'
16000
16001# See if we are running on zsh, and set the options which allow our
16002# commands through without removal of \ escapes INIT.
16003if test -n "\${ZSH_VERSION+set}" ; then
16004   setopt NO_GLOB_SUBST
16005fi
16006
16007
16008    PACKAGE='$PACKAGE'
16009    VERSION='$VERSION'
16010    TIMESTAMP='$TIMESTAMP'
16011    RM='$RM'
16012    ofile='$ofile'
16013
16014
16015
16016
16017_ACEOF
16018
16019cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16020
16021# Handling of arguments.
16022for ac_config_target in $ac_config_targets
16023do
16024  case $ac_config_target in
16025    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16026    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16027    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16028    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16029    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16030    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
16031    "tune/Makefile") CONFIG_FILES="$CONFIG_FILES tune/Makefile" ;;
16032    "src/mparam.h") CONFIG_FILES="$CONFIG_FILES src/mparam.h:src/mparam_h.in" ;;
16033
16034  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16035  esac
16036done
16037
16038
16039# If the user did not use the arguments to specify the items to instantiate,
16040# then the envvar interface is used.  Set only those that are not.
16041# We use the long form for the default assignment because of an extremely
16042# bizarre bug on SunOS 4.1.3.
16043if $ac_need_defaults; then
16044  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16045  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16046fi
16047
16048# Have a temporary directory for convenience.  Make it in the build tree
16049# simply because there is no reason against having it here, and in addition,
16050# creating and moving files from /tmp can sometimes cause problems.
16051# Hook for its removal unless debugging.
16052# Note that there is a small window in which the directory will not be cleaned:
16053# after its creation but before its name has been assigned to `$tmp'.
16054$debug ||
16055{
16056  tmp= ac_tmp=
16057  trap 'exit_status=$?
16058  : "${ac_tmp:=$tmp}"
16059  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16060' 0
16061  trap 'as_fn_exit 1' 1 2 13 15
16062}
16063# Create a (secure) tmp directory for tmp files.
16064
16065{
16066  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16067  test -d "$tmp"
16068}  ||
16069{
16070  tmp=./conf$$-$RANDOM
16071  (umask 077 && mkdir "$tmp")
16072} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16073ac_tmp=$tmp
16074
16075# Set up the scripts for CONFIG_FILES section.
16076# No need to generate them if there are no CONFIG_FILES.
16077# This happens for instance with `./config.status config.h'.
16078if test -n "$CONFIG_FILES"; then
16079
16080
16081ac_cr=`echo X | tr X '\015'`
16082# On cygwin, bash can eat \r inside `` if the user requested igncr.
16083# But we know of no other shell where ac_cr would be empty at this
16084# point, so we can use a bashism as a fallback.
16085if test "x$ac_cr" = x; then
16086  eval ac_cr=\$\'\\r\'
16087fi
16088ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16089if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16090  ac_cs_awk_cr='\\r'
16091else
16092  ac_cs_awk_cr=$ac_cr
16093fi
16094
16095echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16096_ACEOF
16097
16098
16099{
16100  echo "cat >conf$$subs.awk <<_ACEOF" &&
16101  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16102  echo "_ACEOF"
16103} >conf$$subs.sh ||
16104  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16105ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16106ac_delim='%!_!# '
16107for ac_last_try in false false false false false :; do
16108  . ./conf$$subs.sh ||
16109    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16110
16111  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16112  if test $ac_delim_n = $ac_delim_num; then
16113    break
16114  elif $ac_last_try; then
16115    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16116  else
16117    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16118  fi
16119done
16120rm -f conf$$subs.sh
16121
16122cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16123cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16124_ACEOF
16125sed -n '
16126h
16127s/^/S["/; s/!.*/"]=/
16128p
16129g
16130s/^[^!]*!//
16131:repl
16132t repl
16133s/'"$ac_delim"'$//
16134t delim
16135:nl
16136h
16137s/\(.\{148\}\)..*/\1/
16138t more1
16139s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16140p
16141n
16142b repl
16143:more1
16144s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16145p
16146g
16147s/.\{148\}//
16148t nl
16149:delim
16150h
16151s/\(.\{148\}\)..*/\1/
16152t more2
16153s/["\\]/\\&/g; s/^/"/; s/$/"/
16154p
16155b
16156:more2
16157s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16158p
16159g
16160s/.\{148\}//
16161t delim
16162' <conf$$subs.awk | sed '
16163/^[^""]/{
16164  N
16165  s/\n//
16166}
16167' >>$CONFIG_STATUS || ac_write_fail=1
16168rm -f conf$$subs.awk
16169cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16170_ACAWK
16171cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16172  for (key in S) S_is_set[key] = 1
16173  FS = ""
16174
16175}
16176{
16177  line = $ 0
16178  nfields = split(line, field, "@")
16179  substed = 0
16180  len = length(field[1])
16181  for (i = 2; i < nfields; i++) {
16182    key = field[i]
16183    keylen = length(key)
16184    if (S_is_set[key]) {
16185      value = S[key]
16186      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16187      len += length(value) + length(field[++i])
16188      substed = 1
16189    } else
16190      len += 1 + keylen
16191  }
16192
16193  print line
16194}
16195
16196_ACAWK
16197_ACEOF
16198cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16199if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16200  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16201else
16202  cat
16203fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16204  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16205_ACEOF
16206
16207# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16208# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16209# trailing colons and then remove the whole line if VPATH becomes empty
16210# (actually we leave an empty line to preserve line numbers).
16211if test "x$srcdir" = x.; then
16212  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
16213h
16214s///
16215s/^/:/
16216s/[	 ]*$/:/
16217s/:\$(srcdir):/:/g
16218s/:\${srcdir}:/:/g
16219s/:@srcdir@:/:/g
16220s/^:*//
16221s/:*$//
16222x
16223s/\(=[	 ]*\).*/\1/
16224G
16225s/\n//
16226s/^[^=]*=[	 ]*$//
16227}'
16228fi
16229
16230cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16231fi # test -n "$CONFIG_FILES"
16232
16233
16234eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
16235shift
16236for ac_tag
16237do
16238  case $ac_tag in
16239  :[FHLC]) ac_mode=$ac_tag; continue;;
16240  esac
16241  case $ac_mode$ac_tag in
16242  :[FHL]*:*);;
16243  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16244  :[FH]-) ac_tag=-:-;;
16245  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16246  esac
16247  ac_save_IFS=$IFS
16248  IFS=:
16249  set x $ac_tag
16250  IFS=$ac_save_IFS
16251  shift
16252  ac_file=$1
16253  shift
16254
16255  case $ac_mode in
16256  :L) ac_source=$1;;
16257  :[FH])
16258    ac_file_inputs=
16259    for ac_f
16260    do
16261      case $ac_f in
16262      -) ac_f="$ac_tmp/stdin";;
16263      *) # Look for the file first in the build tree, then in the source tree
16264	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
16265	 # because $ac_f cannot contain `:'.
16266	 test -f "$ac_f" ||
16267	   case $ac_f in
16268	   [\\/$]*) false;;
16269	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16270	   esac ||
16271	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16272      esac
16273      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16274      as_fn_append ac_file_inputs " '$ac_f'"
16275    done
16276
16277    # Let's still pretend it is `configure' which instantiates (i.e., don't
16278    # use $as_me), people would be surprised to read:
16279    #    /* config.h.  Generated by config.status.  */
16280    configure_input='Generated from '`
16281	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16282	`' by configure.'
16283    if test x"$ac_file" != x-; then
16284      configure_input="$ac_file.  $configure_input"
16285      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16286$as_echo "$as_me: creating $ac_file" >&6;}
16287    fi
16288    # Neutralize special characters interpreted by sed in replacement strings.
16289    case $configure_input in #(
16290    *\&* | *\|* | *\\* )
16291       ac_sed_conf_input=`$as_echo "$configure_input" |
16292       sed 's/[\\\\&|]/\\\\&/g'`;; #(
16293    *) ac_sed_conf_input=$configure_input;;
16294    esac
16295
16296    case $ac_tag in
16297    *:-:* | *:-) cat >"$ac_tmp/stdin" \
16298      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16299    esac
16300    ;;
16301  esac
16302
16303  ac_dir=`$as_dirname -- "$ac_file" ||
16304$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16305	 X"$ac_file" : 'X\(//\)[^/]' \| \
16306	 X"$ac_file" : 'X\(//\)$' \| \
16307	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16308$as_echo X"$ac_file" |
16309    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16310	    s//\1/
16311	    q
16312	  }
16313	  /^X\(\/\/\)[^/].*/{
16314	    s//\1/
16315	    q
16316	  }
16317	  /^X\(\/\/\)$/{
16318	    s//\1/
16319	    q
16320	  }
16321	  /^X\(\/\).*/{
16322	    s//\1/
16323	    q
16324	  }
16325	  s/.*/./; q'`
16326  as_dir="$ac_dir"; as_fn_mkdir_p
16327  ac_builddir=.
16328
16329case "$ac_dir" in
16330.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16331*)
16332  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16333  # A ".." for each directory in $ac_dir_suffix.
16334  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16335  case $ac_top_builddir_sub in
16336  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16337  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16338  esac ;;
16339esac
16340ac_abs_top_builddir=$ac_pwd
16341ac_abs_builddir=$ac_pwd$ac_dir_suffix
16342# for backward compatibility:
16343ac_top_builddir=$ac_top_build_prefix
16344
16345case $srcdir in
16346  .)  # We are building in place.
16347    ac_srcdir=.
16348    ac_top_srcdir=$ac_top_builddir_sub
16349    ac_abs_top_srcdir=$ac_pwd ;;
16350  [\\/]* | ?:[\\/]* )  # Absolute name.
16351    ac_srcdir=$srcdir$ac_dir_suffix;
16352    ac_top_srcdir=$srcdir
16353    ac_abs_top_srcdir=$srcdir ;;
16354  *) # Relative name.
16355    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16356    ac_top_srcdir=$ac_top_build_prefix$srcdir
16357    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16358esac
16359ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16360
16361
16362  case $ac_mode in
16363  :F)
16364  #
16365  # CONFIG_FILE
16366  #
16367
16368  case $INSTALL in
16369  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16370  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16371  esac
16372  ac_MKDIR_P=$MKDIR_P
16373  case $MKDIR_P in
16374  [\\/$]* | ?:[\\/]* ) ;;
16375  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16376  esac
16377_ACEOF
16378
16379cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16380# If the template does not know about datarootdir, expand it.
16381# FIXME: This hack should be removed a few years after 2.60.
16382ac_datarootdir_hack=; ac_datarootdir_seen=
16383ac_sed_dataroot='
16384/datarootdir/ {
16385  p
16386  q
16387}
16388/@datadir@/p
16389/@docdir@/p
16390/@infodir@/p
16391/@localedir@/p
16392/@mandir@/p'
16393case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16394*datarootdir*) ac_datarootdir_seen=yes;;
16395*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16396  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16397$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16398_ACEOF
16399cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16400  ac_datarootdir_hack='
16401  s&@datadir@&$datadir&g
16402  s&@docdir@&$docdir&g
16403  s&@infodir@&$infodir&g
16404  s&@localedir@&$localedir&g
16405  s&@mandir@&$mandir&g
16406  s&\\\${datarootdir}&$datarootdir&g' ;;
16407esac
16408_ACEOF
16409
16410# Neutralize VPATH when `$srcdir' = `.'.
16411# Shell code in configure.ac might set extrasub.
16412# FIXME: do we really want to maintain this feature?
16413cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16414ac_sed_extra="$ac_vpsub
16415$extrasub
16416_ACEOF
16417cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16418:t
16419/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16420s|@configure_input@|$ac_sed_conf_input|;t t
16421s&@top_builddir@&$ac_top_builddir_sub&;t t
16422s&@top_build_prefix@&$ac_top_build_prefix&;t t
16423s&@srcdir@&$ac_srcdir&;t t
16424s&@abs_srcdir@&$ac_abs_srcdir&;t t
16425s&@top_srcdir@&$ac_top_srcdir&;t t
16426s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16427s&@builddir@&$ac_builddir&;t t
16428s&@abs_builddir@&$ac_abs_builddir&;t t
16429s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16430s&@INSTALL@&$ac_INSTALL&;t t
16431s&@MKDIR_P@&$ac_MKDIR_P&;t t
16432$ac_datarootdir_hack
16433"
16434eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16435  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16436
16437test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16438  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16439  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
16440      "$ac_tmp/out"`; test -z "$ac_out"; } &&
16441  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16442which seems to be undefined.  Please make sure it is defined" >&5
16443$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16444which seems to be undefined.  Please make sure it is defined" >&2;}
16445
16446  rm -f "$ac_tmp/stdin"
16447  case $ac_file in
16448  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16449  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16450  esac \
16451  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16452 ;;
16453
16454
16455  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16456$as_echo "$as_me: executing $ac_file commands" >&6;}
16457 ;;
16458  esac
16459
16460
16461  case $ac_file$ac_mode in
16462    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16463  # Autoconf 2.62 quotes --file arguments for eval, but not when files
16464  # are listed without --file.  Let's play safe and only enable the eval
16465  # if we detect the quoting.
16466  case $CONFIG_FILES in
16467  *\'*) eval set x "$CONFIG_FILES" ;;
16468  *)   set x $CONFIG_FILES ;;
16469  esac
16470  shift
16471  for mf
16472  do
16473    # Strip MF so we end up with the name of the file.
16474    mf=`echo "$mf" | sed -e 's/:.*$//'`
16475    # Check whether this is an Automake generated Makefile or not.
16476    # We used to match only the files named `Makefile.in', but
16477    # some people rename them; so instead we look at the file content.
16478    # Grep'ing the first line is not enough: some people post-process
16479    # each Makefile.in and add a new line on top of each file to say so.
16480    # Grep'ing the whole file is not good either: AIX grep has a line
16481    # limit of 2048, but all sed's we know have understand at least 4000.
16482    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16483      dirpart=`$as_dirname -- "$mf" ||
16484$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16485	 X"$mf" : 'X\(//\)[^/]' \| \
16486	 X"$mf" : 'X\(//\)$' \| \
16487	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16488$as_echo X"$mf" |
16489    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16490	    s//\1/
16491	    q
16492	  }
16493	  /^X\(\/\/\)[^/].*/{
16494	    s//\1/
16495	    q
16496	  }
16497	  /^X\(\/\/\)$/{
16498	    s//\1/
16499	    q
16500	  }
16501	  /^X\(\/\).*/{
16502	    s//\1/
16503	    q
16504	  }
16505	  s/.*/./; q'`
16506    else
16507      continue
16508    fi
16509    # Extract the definition of DEPDIR, am__include, and am__quote
16510    # from the Makefile without running `make'.
16511    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16512    test -z "$DEPDIR" && continue
16513    am__include=`sed -n 's/^am__include = //p' < "$mf"`
16514    test -z "am__include" && continue
16515    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16516    # When using ansi2knr, U may be empty or an underscore; expand it
16517    U=`sed -n 's/^U = //p' < "$mf"`
16518    # Find all dependency output files, they are included files with
16519    # $(DEPDIR) in their names.  We invoke sed twice because it is the
16520    # simplest approach to changing $(DEPDIR) to its actual value in the
16521    # expansion.
16522    for file in `sed -n "
16523      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16524	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16525      # Make sure the directory exists.
16526      test -f "$dirpart/$file" && continue
16527      fdir=`$as_dirname -- "$file" ||
16528$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16529	 X"$file" : 'X\(//\)[^/]' \| \
16530	 X"$file" : 'X\(//\)$' \| \
16531	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16532$as_echo X"$file" |
16533    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16534	    s//\1/
16535	    q
16536	  }
16537	  /^X\(\/\/\)[^/].*/{
16538	    s//\1/
16539	    q
16540	  }
16541	  /^X\(\/\/\)$/{
16542	    s//\1/
16543	    q
16544	  }
16545	  /^X\(\/\).*/{
16546	    s//\1/
16547	    q
16548	  }
16549	  s/.*/./; q'`
16550      as_dir=$dirpart/$fdir; as_fn_mkdir_p
16551      # echo "creating $dirpart/$file"
16552      echo '# dummy' > "$dirpart/$file"
16553    done
16554  done
16555}
16556 ;;
16557    "libtool":C)
16558
16559    # See if we are running on zsh, and set the options which allow our
16560    # commands through without removal of \ escapes.
16561    if test -n "${ZSH_VERSION+set}" ; then
16562      setopt NO_GLOB_SUBST
16563    fi
16564
16565    cfgfile="${ofile}T"
16566    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16567    $RM "$cfgfile"
16568
16569    cat <<_LT_EOF >> "$cfgfile"
16570#! $SHELL
16571
16572# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16573# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16574# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16575# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16576#
16577#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16578#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16579#                 Foundation, Inc.
16580#   Written by Gordon Matzigkeit, 1996
16581#
16582#   This file is part of GNU Libtool.
16583#
16584# GNU Libtool is free software; you can redistribute it and/or
16585# modify it under the terms of the GNU General Public License as
16586# published by the Free Software Foundation; either version 2 of
16587# the License, or (at your option) any later version.
16588#
16589# As a special exception to the GNU General Public License,
16590# if you distribute this file as part of a program or library that
16591# is built using GNU Libtool, you may include this file under the
16592# same distribution terms that you use for the rest of that program.
16593#
16594# GNU Libtool is distributed in the hope that it will be useful,
16595# but WITHOUT ANY WARRANTY; without even the implied warranty of
16596# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16597# GNU General Public License for more details.
16598#
16599# You should have received a copy of the GNU General Public License
16600# along with GNU Libtool; see the file COPYING.  If not, a copy
16601# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16602# obtained by writing to the Free Software Foundation, Inc.,
16603# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16604
16605
16606# The names of the tagged configurations supported by this script.
16607available_tags=""
16608
16609# ### BEGIN LIBTOOL CONFIG
16610
16611# Assembler program.
16612AS=$lt_AS
16613
16614# DLL creation program.
16615DLLTOOL=$lt_DLLTOOL
16616
16617# Object dumper program.
16618OBJDUMP=$lt_OBJDUMP
16619
16620# Which release of libtool.m4 was used?
16621macro_version=$macro_version
16622macro_revision=$macro_revision
16623
16624# Whether or not to build shared libraries.
16625build_libtool_libs=$enable_shared
16626
16627# Whether or not to build static libraries.
16628build_old_libs=$enable_static
16629
16630# What type of objects to build.
16631pic_mode=$pic_mode
16632
16633# Whether or not to optimize for fast installation.
16634fast_install=$enable_fast_install
16635
16636# Shell to use when invoking shell scripts.
16637SHELL=$lt_SHELL
16638
16639# An echo program that protects backslashes.
16640ECHO=$lt_ECHO
16641
16642# The PATH separator for the build system.
16643PATH_SEPARATOR=$lt_PATH_SEPARATOR
16644
16645# The host system.
16646host_alias=$host_alias
16647host=$host
16648host_os=$host_os
16649
16650# The build system.
16651build_alias=$build_alias
16652build=$build
16653build_os=$build_os
16654
16655# A sed program that does not truncate output.
16656SED=$lt_SED
16657
16658# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16659Xsed="\$SED -e 1s/^X//"
16660
16661# A grep program that handles long lines.
16662GREP=$lt_GREP
16663
16664# An ERE matcher.
16665EGREP=$lt_EGREP
16666
16667# A literal string matcher.
16668FGREP=$lt_FGREP
16669
16670# A BSD- or MS-compatible name lister.
16671NM=$lt_NM
16672
16673# Whether we need soft or hard links.
16674LN_S=$lt_LN_S
16675
16676# What is the maximum length of a command?
16677max_cmd_len=$max_cmd_len
16678
16679# Object file suffix (normally "o").
16680objext=$ac_objext
16681
16682# Executable file suffix (normally "").
16683exeext=$exeext
16684
16685# whether the shell understands "unset".
16686lt_unset=$lt_unset
16687
16688# turn spaces into newlines.
16689SP2NL=$lt_lt_SP2NL
16690
16691# turn newlines into spaces.
16692NL2SP=$lt_lt_NL2SP
16693
16694# convert \$build file names to \$host format.
16695to_host_file_cmd=$lt_cv_to_host_file_cmd
16696
16697# convert \$build files to toolchain format.
16698to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16699
16700# Method to check whether dependent libraries are shared objects.
16701deplibs_check_method=$lt_deplibs_check_method
16702
16703# Command to use when deplibs_check_method = "file_magic".
16704file_magic_cmd=$lt_file_magic_cmd
16705
16706# How to find potential files when deplibs_check_method = "file_magic".
16707file_magic_glob=$lt_file_magic_glob
16708
16709# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16710want_nocaseglob=$lt_want_nocaseglob
16711
16712# Command to associate shared and link libraries.
16713sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16714
16715# The archiver.
16716AR=$lt_AR
16717
16718# Flags to create an archive.
16719AR_FLAGS=$lt_AR_FLAGS
16720
16721# How to feed a file listing to the archiver.
16722archiver_list_spec=$lt_archiver_list_spec
16723
16724# A symbol stripping program.
16725STRIP=$lt_STRIP
16726
16727# Commands used to install an old-style archive.
16728RANLIB=$lt_RANLIB
16729old_postinstall_cmds=$lt_old_postinstall_cmds
16730old_postuninstall_cmds=$lt_old_postuninstall_cmds
16731
16732# Whether to use a lock for old archive extraction.
16733lock_old_archive_extraction=$lock_old_archive_extraction
16734
16735# A C compiler.
16736LTCC=$lt_CC
16737
16738# LTCC compiler flags.
16739LTCFLAGS=$lt_CFLAGS
16740
16741# Take the output of nm and produce a listing of raw symbols and C names.
16742global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16743
16744# Transform the output of nm in a proper C declaration.
16745global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16746
16747# Transform the output of nm in a C name address pair.
16748global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16749
16750# Transform the output of nm in a C name address pair when lib prefix is needed.
16751global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16752
16753# Specify filename containing input files for \$NM.
16754nm_file_list_spec=$lt_nm_file_list_spec
16755
16756# The root where to search for dependent libraries,and in which our libraries should be installed.
16757lt_sysroot=$lt_sysroot
16758
16759# The name of the directory that contains temporary libtool files.
16760objdir=$objdir
16761
16762# Used to examine libraries when file_magic_cmd begins with "file".
16763MAGIC_CMD=$MAGIC_CMD
16764
16765# Must we lock files when doing compilation?
16766need_locks=$lt_need_locks
16767
16768# Manifest tool.
16769MANIFEST_TOOL=$lt_MANIFEST_TOOL
16770
16771# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16772DSYMUTIL=$lt_DSYMUTIL
16773
16774# Tool to change global to local symbols on Mac OS X.
16775NMEDIT=$lt_NMEDIT
16776
16777# Tool to manipulate fat objects and archives on Mac OS X.
16778LIPO=$lt_LIPO
16779
16780# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16781OTOOL=$lt_OTOOL
16782
16783# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16784OTOOL64=$lt_OTOOL64
16785
16786# Old archive suffix (normally "a").
16787libext=$libext
16788
16789# Shared library suffix (normally ".so").
16790shrext_cmds=$lt_shrext_cmds
16791
16792# The commands to extract the exported symbol list from a shared archive.
16793extract_expsyms_cmds=$lt_extract_expsyms_cmds
16794
16795# Variables whose values should be saved in libtool wrapper scripts and
16796# restored at link time.
16797variables_saved_for_relink=$lt_variables_saved_for_relink
16798
16799# Do we need the "lib" prefix for modules?
16800need_lib_prefix=$need_lib_prefix
16801
16802# Do we need a version for libraries?
16803need_version=$need_version
16804
16805# Library versioning type.
16806version_type=$version_type
16807
16808# Shared library runtime path variable.
16809runpath_var=$runpath_var
16810
16811# Shared library path variable.
16812shlibpath_var=$shlibpath_var
16813
16814# Is shlibpath searched before the hard-coded library search path?
16815shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16816
16817# Format of library name prefix.
16818libname_spec=$lt_libname_spec
16819
16820# List of archive names.  First name is the real one, the rest are links.
16821# The last name is the one that the linker finds with -lNAME
16822library_names_spec=$lt_library_names_spec
16823
16824# The coded name of the library, if different from the real name.
16825soname_spec=$lt_soname_spec
16826
16827# Permission mode override for installation of shared libraries.
16828install_override_mode=$lt_install_override_mode
16829
16830# Command to use after installation of a shared archive.
16831postinstall_cmds=$lt_postinstall_cmds
16832
16833# Command to use after uninstallation of a shared archive.
16834postuninstall_cmds=$lt_postuninstall_cmds
16835
16836# Commands used to finish a libtool library installation in a directory.
16837finish_cmds=$lt_finish_cmds
16838
16839# As "finish_cmds", except a single script fragment to be evaled but
16840# not shown.
16841finish_eval=$lt_finish_eval
16842
16843# Whether we should hardcode library paths into libraries.
16844hardcode_into_libs=$hardcode_into_libs
16845
16846# Compile-time system search path for libraries.
16847sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16848
16849# Run-time system search path for libraries.
16850sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16851
16852# Whether dlopen is supported.
16853dlopen_support=$enable_dlopen
16854
16855# Whether dlopen of programs is supported.
16856dlopen_self=$enable_dlopen_self
16857
16858# Whether dlopen of statically linked programs is supported.
16859dlopen_self_static=$enable_dlopen_self_static
16860
16861# Commands to strip libraries.
16862old_striplib=$lt_old_striplib
16863striplib=$lt_striplib
16864
16865
16866# The linker used to build libraries.
16867LD=$lt_LD
16868
16869# How to create reloadable object files.
16870reload_flag=$lt_reload_flag
16871reload_cmds=$lt_reload_cmds
16872
16873# Commands used to build an old-style archive.
16874old_archive_cmds=$lt_old_archive_cmds
16875
16876# A language specific compiler.
16877CC=$lt_compiler
16878
16879# Is the compiler the GNU compiler?
16880with_gcc=$GCC
16881
16882# Compiler flag to turn off builtin functions.
16883no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16884
16885# Additional compiler flags for building library objects.
16886pic_flag=$lt_lt_prog_compiler_pic
16887
16888# How to pass a linker flag through the compiler.
16889wl=$lt_lt_prog_compiler_wl
16890
16891# Compiler flag to prevent dynamic linking.
16892link_static_flag=$lt_lt_prog_compiler_static
16893
16894# Does compiler simultaneously support -c and -o options?
16895compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16896
16897# Whether or not to add -lc for building shared libraries.
16898build_libtool_need_lc=$archive_cmds_need_lc
16899
16900# Whether or not to disallow shared libs when runtime libs are static.
16901allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16902
16903# Compiler flag to allow reflexive dlopens.
16904export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16905
16906# Compiler flag to generate shared objects directly from archives.
16907whole_archive_flag_spec=$lt_whole_archive_flag_spec
16908
16909# Whether the compiler copes with passing no objects directly.
16910compiler_needs_object=$lt_compiler_needs_object
16911
16912# Create an old-style archive from a shared archive.
16913old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16914
16915# Create a temporary old-style archive to link instead of a shared archive.
16916old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16917
16918# Commands used to build a shared archive.
16919archive_cmds=$lt_archive_cmds
16920archive_expsym_cmds=$lt_archive_expsym_cmds
16921
16922# Commands used to build a loadable module if different from building
16923# a shared archive.
16924module_cmds=$lt_module_cmds
16925module_expsym_cmds=$lt_module_expsym_cmds
16926
16927# Whether we are building with GNU ld or not.
16928with_gnu_ld=$lt_with_gnu_ld
16929
16930# Flag that allows shared libraries with undefined symbols to be built.
16931allow_undefined_flag=$lt_allow_undefined_flag
16932
16933# Flag that enforces no undefined symbols.
16934no_undefined_flag=$lt_no_undefined_flag
16935
16936# Flag to hardcode \$libdir into a binary during linking.
16937# This must work even if \$libdir does not exist
16938hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16939
16940# Whether we need a single "-rpath" flag with a separated argument.
16941hardcode_libdir_separator=$lt_hardcode_libdir_separator
16942
16943# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16944# DIR into the resulting binary.
16945hardcode_direct=$hardcode_direct
16946
16947# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16948# DIR into the resulting binary and the resulting library dependency is
16949# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16950# library is relocated.
16951hardcode_direct_absolute=$hardcode_direct_absolute
16952
16953# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16954# into the resulting binary.
16955hardcode_minus_L=$hardcode_minus_L
16956
16957# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16958# into the resulting binary.
16959hardcode_shlibpath_var=$hardcode_shlibpath_var
16960
16961# Set to "yes" if building a shared library automatically hardcodes DIR
16962# into the library and all subsequent libraries and executables linked
16963# against it.
16964hardcode_automatic=$hardcode_automatic
16965
16966# Set to yes if linker adds runtime paths of dependent libraries
16967# to runtime path list.
16968inherit_rpath=$inherit_rpath
16969
16970# Whether libtool must link a program against all its dependency libraries.
16971link_all_deplibs=$link_all_deplibs
16972
16973# Set to "yes" if exported symbols are required.
16974always_export_symbols=$always_export_symbols
16975
16976# The commands to list exported symbols.
16977export_symbols_cmds=$lt_export_symbols_cmds
16978
16979# Symbols that should not be listed in the preloaded symbols.
16980exclude_expsyms=$lt_exclude_expsyms
16981
16982# Symbols that must always be exported.
16983include_expsyms=$lt_include_expsyms
16984
16985# Commands necessary for linking programs (against libraries) with templates.
16986prelink_cmds=$lt_prelink_cmds
16987
16988# Commands necessary for finishing linking programs.
16989postlink_cmds=$lt_postlink_cmds
16990
16991# Specify filename containing input files.
16992file_list_spec=$lt_file_list_spec
16993
16994# How to hardcode a shared library path into an executable.
16995hardcode_action=$hardcode_action
16996
16997# ### END LIBTOOL CONFIG
16998
16999_LT_EOF
17000
17001  case $host_os in
17002  aix3*)
17003    cat <<\_LT_EOF >> "$cfgfile"
17004# AIX sometimes has problems with the GCC collect2 program.  For some
17005# reason, if we set the COLLECT_NAMES environment variable, the problems
17006# vanish in a puff of smoke.
17007if test "X${COLLECT_NAMES+set}" != Xset; then
17008  COLLECT_NAMES=
17009  export COLLECT_NAMES
17010fi
17011_LT_EOF
17012    ;;
17013  esac
17014
17015
17016ltmain="$ac_aux_dir/ltmain.sh"
17017
17018
17019  # We use sed instead of cat because bash on DJGPP gets confused if
17020  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17021  # text mode, it properly converts lines to CR/LF.  This bash problem
17022  # is reportedly fixed, but why not run on old versions too?
17023  sed '$q' "$ltmain" >> "$cfgfile" \
17024     || (rm -f "$cfgfile"; exit 1)
17025
17026  if test x"$xsi_shell" = xyes; then
17027  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17028func_dirname ()\
17029{\
17030\    case ${1} in\
17031\      */*) func_dirname_result="${1%/*}${2}" ;;\
17032\      *  ) func_dirname_result="${3}" ;;\
17033\    esac\
17034} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17035  && mv -f "$cfgfile.tmp" "$cfgfile" \
17036    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17037test 0 -eq $? || _lt_function_replace_fail=:
17038
17039
17040  sed -e '/^func_basename ()$/,/^} # func_basename /c\
17041func_basename ()\
17042{\
17043\    func_basename_result="${1##*/}"\
17044} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17045  && mv -f "$cfgfile.tmp" "$cfgfile" \
17046    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17047test 0 -eq $? || _lt_function_replace_fail=:
17048
17049
17050  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17051func_dirname_and_basename ()\
17052{\
17053\    case ${1} in\
17054\      */*) func_dirname_result="${1%/*}${2}" ;;\
17055\      *  ) func_dirname_result="${3}" ;;\
17056\    esac\
17057\    func_basename_result="${1##*/}"\
17058} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17059  && mv -f "$cfgfile.tmp" "$cfgfile" \
17060    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17061test 0 -eq $? || _lt_function_replace_fail=:
17062
17063
17064  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17065func_stripname ()\
17066{\
17067\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17068\    # positional parameters, so assign one to ordinary parameter first.\
17069\    func_stripname_result=${3}\
17070\    func_stripname_result=${func_stripname_result#"${1}"}\
17071\    func_stripname_result=${func_stripname_result%"${2}"}\
17072} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17073  && mv -f "$cfgfile.tmp" "$cfgfile" \
17074    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17075test 0 -eq $? || _lt_function_replace_fail=:
17076
17077
17078  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17079func_split_long_opt ()\
17080{\
17081\    func_split_long_opt_name=${1%%=*}\
17082\    func_split_long_opt_arg=${1#*=}\
17083} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17084  && mv -f "$cfgfile.tmp" "$cfgfile" \
17085    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17086test 0 -eq $? || _lt_function_replace_fail=:
17087
17088
17089  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17090func_split_short_opt ()\
17091{\
17092\    func_split_short_opt_arg=${1#??}\
17093\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17094} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17095  && mv -f "$cfgfile.tmp" "$cfgfile" \
17096    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17097test 0 -eq $? || _lt_function_replace_fail=:
17098
17099
17100  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17101func_lo2o ()\
17102{\
17103\    case ${1} in\
17104\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17105\      *)    func_lo2o_result=${1} ;;\
17106\    esac\
17107} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17108  && mv -f "$cfgfile.tmp" "$cfgfile" \
17109    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17110test 0 -eq $? || _lt_function_replace_fail=:
17111
17112
17113  sed -e '/^func_xform ()$/,/^} # func_xform /c\
17114func_xform ()\
17115{\
17116    func_xform_result=${1%.*}.lo\
17117} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17118  && mv -f "$cfgfile.tmp" "$cfgfile" \
17119    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17120test 0 -eq $? || _lt_function_replace_fail=:
17121
17122
17123  sed -e '/^func_arith ()$/,/^} # func_arith /c\
17124func_arith ()\
17125{\
17126    func_arith_result=$(( $* ))\
17127} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17128  && mv -f "$cfgfile.tmp" "$cfgfile" \
17129    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17130test 0 -eq $? || _lt_function_replace_fail=:
17131
17132
17133  sed -e '/^func_len ()$/,/^} # func_len /c\
17134func_len ()\
17135{\
17136    func_len_result=${#1}\
17137} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17138  && mv -f "$cfgfile.tmp" "$cfgfile" \
17139    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17140test 0 -eq $? || _lt_function_replace_fail=:
17141
17142fi
17143
17144if test x"$lt_shell_append" = xyes; then
17145  sed -e '/^func_append ()$/,/^} # func_append /c\
17146func_append ()\
17147{\
17148    eval "${1}+=\\${2}"\
17149} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17150  && mv -f "$cfgfile.tmp" "$cfgfile" \
17151    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17152test 0 -eq $? || _lt_function_replace_fail=:
17153
17154
17155  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17156func_append_quoted ()\
17157{\
17158\    func_quote_for_eval "${2}"\
17159\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17160} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17161  && mv -f "$cfgfile.tmp" "$cfgfile" \
17162    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17163test 0 -eq $? || _lt_function_replace_fail=:
17164
17165
17166  # Save a `func_append' function call where possible by direct use of '+='
17167  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17168    && mv -f "$cfgfile.tmp" "$cfgfile" \
17169      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17170  test 0 -eq $? || _lt_function_replace_fail=:
17171else
17172  # Save a `func_append' function call even when '+=' is not available
17173  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17174    && mv -f "$cfgfile.tmp" "$cfgfile" \
17175      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17176  test 0 -eq $? || _lt_function_replace_fail=:
17177fi
17178
17179if test x"$_lt_function_replace_fail" = x":"; then
17180  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17181$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17182fi
17183
17184
17185   mv -f "$cfgfile" "$ofile" ||
17186    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17187  chmod +x "$ofile"
17188
17189 ;;
17190
17191  esac
17192done # for ac_tag
17193
17194
17195as_fn_exit 0
17196_ACEOF
17197ac_clean_files=$ac_clean_files_save
17198
17199test $ac_write_fail = 0 ||
17200  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17201
17202
17203# configure is writing to config.log, and then calls config.status.
17204# config.status does its own redirection, appending to config.log.
17205# Unfortunately, on DOS this fails, as config.log is still kept open
17206# by configure, so config.status won't be able to write to it; its
17207# output is simply discarded.  So we exec the FD to /dev/null,
17208# effectively closing config.log, so it can be properly (re)opened and
17209# appended to by config.status.  When coming back to configure, we
17210# need to make the FD available again.
17211if test "$no_create" != yes; then
17212  ac_cs_success=:
17213  ac_config_status_args=
17214  test "$silent" = yes &&
17215    ac_config_status_args="$ac_config_status_args --quiet"
17216  exec 5>/dev/null
17217  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17218  exec 5>>config.log
17219  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17220  # would make configure fail if this is the last instruction.
17221  $ac_cs_success || as_fn_exit 1
17222fi
17223if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17224  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17225$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17226fi
17227
17228
17229