1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.67 for MPFR 3.0.1.
4#
5#
6# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
7# Contributed by the Arenaire and Cacao 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, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
29# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
30# Foundation, Inc.
31#
32#
33# This configure script is free software; the Free Software Foundation
34# gives unlimited permission to copy, distribute and modify it.
35## -------------------- ##
36## M4sh Initialization. ##
37## -------------------- ##
38
39# Be more Bourne compatible
40DUALCASE=1; export DUALCASE # for MKS sh
41if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
42  emulate sh
43  NULLCMD=:
44  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
45  # is contrary to our usage.  Disable this feature.
46  alias -g '${1+"$@"}'='"$@"'
47  setopt NO_GLOB_SUBST
48else
49  case `(set -o) 2>/dev/null` in #(
50  *posix*) :
51    set -o posix ;; #(
52  *) :
53     ;;
54esac
55fi
56
57
58as_nl='
59'
60export as_nl
61# Printing a long string crashes Solaris 7 /usr/bin/printf.
62as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
63as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
64as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
65# Prefer a ksh shell builtin over an external printf program on Solaris,
66# but without wasting forks for bash or zsh.
67if test -z "$BASH_VERSION$ZSH_VERSION" \
68    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
69  as_echo='print -r --'
70  as_echo_n='print -rn --'
71elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
72  as_echo='printf %s\n'
73  as_echo_n='printf %s'
74else
75  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
76    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
77    as_echo_n='/usr/ucb/echo -n'
78  else
79    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
80    as_echo_n_body='eval
81      arg=$1;
82      case $arg in #(
83      *"$as_nl"*)
84	expr "X$arg" : "X\\(.*\\)$as_nl";
85	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
86      esac;
87      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
88    '
89    export as_echo_n_body
90    as_echo_n='sh -c $as_echo_n_body as_echo'
91  fi
92  export as_echo_body
93  as_echo='sh -c $as_echo_body as_echo'
94fi
95
96# The user is always right.
97if test "${PATH_SEPARATOR+set}" != set; then
98  PATH_SEPARATOR=:
99  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
100    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
101      PATH_SEPARATOR=';'
102  }
103fi
104
105
106# IFS
107# We need space, tab and new line, in precisely that order.  Quoting is
108# there to prevent editors from complaining about space-tab.
109# (If _AS_PATH_WALK were called with IFS unset, it would disable word
110# splitting by setting IFS to empty value.)
111IFS=" ""	$as_nl"
112
113# Find who we are.  Look in the path if we contain no directory separator.
114case $0 in #((
115  *[\\/]* ) as_myself=$0 ;;
116  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
117for as_dir in $PATH
118do
119  IFS=$as_save_IFS
120  test -z "$as_dir" && as_dir=.
121    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
122  done
123IFS=$as_save_IFS
124
125     ;;
126esac
127# We did not find ourselves, most probably we were run as `sh COMMAND'
128# in which case we are not to be found in the path.
129if test "x$as_myself" = x; then
130  as_myself=$0
131fi
132if test ! -f "$as_myself"; then
133  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
134  exit 1
135fi
136
137# Unset variables that we do not need and which cause bugs (e.g. in
138# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
139# suppresses any "Segmentation fault" message there.  '((' could
140# trigger a bug in pdksh 5.2.14.
141for as_var in BASH_ENV ENV MAIL MAILPATH
142do eval test x\${$as_var+set} = xset \
143  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
144done
145PS1='$ '
146PS2='> '
147PS4='+ '
148
149# NLS nuisances.
150LC_ALL=C
151export LC_ALL
152LANGUAGE=C
153export LANGUAGE
154
155# CDPATH.
156(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
157
158if test "x$CONFIG_SHELL" = x; then
159  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
160  emulate sh
161  NULLCMD=:
162  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
163  # is contrary to our usage.  Disable this feature.
164  alias -g '\${1+\"\$@\"}'='\"\$@\"'
165  setopt NO_GLOB_SUBST
166else
167  case \`(set -o) 2>/dev/null\` in #(
168  *posix*) :
169    set -o posix ;; #(
170  *) :
171     ;;
172esac
173fi
174"
175  as_required="as_fn_return () { (exit \$1); }
176as_fn_success () { as_fn_return 0; }
177as_fn_failure () { as_fn_return 1; }
178as_fn_ret_success () { return 0; }
179as_fn_ret_failure () { return 1; }
180
181exitcode=0
182as_fn_success || { exitcode=1; echo as_fn_success failed.; }
183as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
184as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
185as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
186if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
187
188else
189  exitcode=1; echo positional parameters were not saved.
190fi
191test x\$exitcode = x0 || exit 1"
192  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
193  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
194  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
195  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
196test \$(( 1 + 1 )) = 2 || exit 1"
197  if (eval "$as_required") 2>/dev/null; then :
198  as_have_required=yes
199else
200  as_have_required=no
201fi
202  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
203
204else
205  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206as_found=false
207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208do
209  IFS=$as_save_IFS
210  test -z "$as_dir" && as_dir=.
211  as_found=:
212  case $as_dir in #(
213	 /*)
214	   for as_base in sh bash ksh sh5; do
215	     # Try only shells that exist, to save several forks.
216	     as_shell=$as_dir/$as_base
217	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
218		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
219  CONFIG_SHELL=$as_shell as_have_required=yes
220		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
221  break 2
222fi
223fi
224	   done;;
225       esac
226  as_found=false
227done
228$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
229	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
230  CONFIG_SHELL=$SHELL as_have_required=yes
231fi; }
232IFS=$as_save_IFS
233
234
235      if test "x$CONFIG_SHELL" != x; then :
236  # We cannot yet assume a decent shell, so we have to provide a
237	# neutralization value for shells without unset; and this also
238	# works around shells that cannot unset nonexistent variables.
239	BASH_ENV=/dev/null
240	ENV=/dev/null
241	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
242	export CONFIG_SHELL
243	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
244fi
245
246    if test x$as_have_required = xno; then :
247  $as_echo "$0: This script requires a shell more modern than all"
248  $as_echo "$0: the shells that I found on your system."
249  if test x${ZSH_VERSION+set} = xset ; then
250    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
251    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
252  else
253    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
254$0: including any error possibly output before this
255$0: message. Then install a modern shell, or manually run
256$0: the script under such a shell if you do have one."
257  fi
258  exit 1
259fi
260fi
261fi
262SHELL=${CONFIG_SHELL-/bin/sh}
263export SHELL
264# Unset more variables known to interfere with behavior of common tools.
265CLICOLOR_FORCE= GREP_OPTIONS=
266unset CLICOLOR_FORCE GREP_OPTIONS
267
268## --------------------- ##
269## M4sh Shell Functions. ##
270## --------------------- ##
271# as_fn_unset VAR
272# ---------------
273# Portably unset VAR.
274as_fn_unset ()
275{
276  { eval $1=; unset $1;}
277}
278as_unset=as_fn_unset
279
280# as_fn_set_status STATUS
281# -----------------------
282# Set $? to STATUS, without forking.
283as_fn_set_status ()
284{
285  return $1
286} # as_fn_set_status
287
288# as_fn_exit STATUS
289# -----------------
290# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
291as_fn_exit ()
292{
293  set +e
294  as_fn_set_status $1
295  exit $1
296} # as_fn_exit
297
298# as_fn_mkdir_p
299# -------------
300# Create "$as_dir" as a directory, including parents if necessary.
301as_fn_mkdir_p ()
302{
303
304  case $as_dir in #(
305  -*) as_dir=./$as_dir;;
306  esac
307  test -d "$as_dir" || eval $as_mkdir_p || {
308    as_dirs=
309    while :; do
310      case $as_dir in #(
311      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
312      *) as_qdir=$as_dir;;
313      esac
314      as_dirs="'$as_qdir' $as_dirs"
315      as_dir=`$as_dirname -- "$as_dir" ||
316$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
317	 X"$as_dir" : 'X\(//\)[^/]' \| \
318	 X"$as_dir" : 'X\(//\)$' \| \
319	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
320$as_echo X"$as_dir" |
321    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
322	    s//\1/
323	    q
324	  }
325	  /^X\(\/\/\)[^/].*/{
326	    s//\1/
327	    q
328	  }
329	  /^X\(\/\/\)$/{
330	    s//\1/
331	    q
332	  }
333	  /^X\(\/\).*/{
334	    s//\1/
335	    q
336	  }
337	  s/.*/./; q'`
338      test -d "$as_dir" && break
339    done
340    test -z "$as_dirs" || eval "mkdir $as_dirs"
341  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
342
343
344} # as_fn_mkdir_p
345# as_fn_append VAR VALUE
346# ----------------------
347# Append the text in VALUE to the end of the definition contained in VAR. Take
348# advantage of any shell optimizations that allow amortized linear growth over
349# repeated appends, instead of the typical quadratic growth present in naive
350# implementations.
351if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
352  eval 'as_fn_append ()
353  {
354    eval $1+=\$2
355  }'
356else
357  as_fn_append ()
358  {
359    eval $1=\$$1\$2
360  }
361fi # as_fn_append
362
363# as_fn_arith ARG...
364# ------------------
365# Perform arithmetic evaluation on the ARGs, and store the result in the
366# global $as_val. Take advantage of shells that can avoid forks. The arguments
367# must be portable across $(()) and expr.
368if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
369  eval 'as_fn_arith ()
370  {
371    as_val=$(( $* ))
372  }'
373else
374  as_fn_arith ()
375  {
376    as_val=`expr "$@" || test $? -eq 1`
377  }
378fi # as_fn_arith
379
380
381# as_fn_error STATUS ERROR [LINENO LOG_FD]
382# ----------------------------------------
383# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
384# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
385# script with STATUS, using 1 if that was 0.
386as_fn_error ()
387{
388  as_status=$1; test $as_status -eq 0 && as_status=1
389  if test "$4"; then
390    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
391    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
392  fi
393  $as_echo "$as_me: error: $2" >&2
394  as_fn_exit $as_status
395} # as_fn_error
396
397if expr a : '\(a\)' >/dev/null 2>&1 &&
398   test "X`expr 00001 : '.*\(...\)'`" = X001; then
399  as_expr=expr
400else
401  as_expr=false
402fi
403
404if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
405  as_basename=basename
406else
407  as_basename=false
408fi
409
410if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
411  as_dirname=dirname
412else
413  as_dirname=false
414fi
415
416as_me=`$as_basename -- "$0" ||
417$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
418	 X"$0" : 'X\(//\)$' \| \
419	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
420$as_echo X/"$0" |
421    sed '/^.*\/\([^/][^/]*\)\/*$/{
422	    s//\1/
423	    q
424	  }
425	  /^X\/\(\/\/\)$/{
426	    s//\1/
427	    q
428	  }
429	  /^X\/\(\/\).*/{
430	    s//\1/
431	    q
432	  }
433	  s/.*/./; q'`
434
435# Avoid depending upon Character Ranges.
436as_cr_letters='abcdefghijklmnopqrstuvwxyz'
437as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
438as_cr_Letters=$as_cr_letters$as_cr_LETTERS
439as_cr_digits='0123456789'
440as_cr_alnum=$as_cr_Letters$as_cr_digits
441
442
443  as_lineno_1=$LINENO as_lineno_1a=$LINENO
444  as_lineno_2=$LINENO as_lineno_2a=$LINENO
445  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
446  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
447  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
448  sed -n '
449    p
450    /[$]LINENO/=
451  ' <$as_myself |
452    sed '
453      s/[$]LINENO.*/&-/
454      t lineno
455      b
456      :lineno
457      N
458      :loop
459      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
460      t loop
461      s/-\n.*//
462    ' >$as_me.lineno &&
463  chmod +x "$as_me.lineno" ||
464    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
465
466  # Don't try to exec as it changes $[0], causing all sort of problems
467  # (the dirname of $[0] is not the place where we might find the
468  # original and so on.  Autoconf is especially sensitive to this).
469  . "./$as_me.lineno"
470  # Exit status is that of the last command.
471  exit
472}
473
474ECHO_C= ECHO_N= ECHO_T=
475case `echo -n x` in #(((((
476-n*)
477  case `echo 'xy\c'` in
478  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
479  xy)  ECHO_C='\c';;
480  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
481       ECHO_T='	';;
482  esac;;
483*)
484  ECHO_N='-n';;
485esac
486
487rm -f conf$$ conf$$.exe conf$$.file
488if test -d conf$$.dir; then
489  rm -f conf$$.dir/conf$$.file
490else
491  rm -f conf$$.dir
492  mkdir conf$$.dir 2>/dev/null
493fi
494if (echo >conf$$.file) 2>/dev/null; then
495  if ln -s conf$$.file conf$$ 2>/dev/null; then
496    as_ln_s='ln -s'
497    # ... but there are two gotchas:
498    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
499    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
500    # In both cases, we have to default to `cp -p'.
501    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
502      as_ln_s='cp -p'
503  elif ln conf$$.file conf$$ 2>/dev/null; then
504    as_ln_s=ln
505  else
506    as_ln_s='cp -p'
507  fi
508else
509  as_ln_s='cp -p'
510fi
511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null
513
514if mkdir -p . 2>/dev/null; then
515  as_mkdir_p='mkdir -p "$as_dir"'
516else
517  test -d ./-p && rmdir ./-p
518  as_mkdir_p=false
519fi
520
521if test -x / >/dev/null 2>&1; then
522  as_test_x='test -x'
523else
524  if ls -dL / >/dev/null 2>&1; then
525    as_ls_L_option=L
526  else
527    as_ls_L_option=
528  fi
529  as_test_x='
530    eval sh -c '\''
531      if test -d "$1"; then
532	test -d "$1/.";
533      else
534	case $1 in #(
535	-*)set "./$1";;
536	esac;
537	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
538	???[sx]*):;;*)false;;esac;fi
539    '\'' sh
540  '
541fi
542as_executable_p=$as_test_x
543
544# Sed expression to map a string onto a valid CPP name.
545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547# Sed expression to map a string onto a valid variable name.
548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552# Check that we are running under the correct shell.
553SHELL=${CONFIG_SHELL-/bin/sh}
554
555case X$lt_ECHO in
556X*--fallback-echo)
557  # Remove one level of quotation (which was required for Make).
558  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
559  ;;
560esac
561
562ECHO=${lt_ECHO-echo}
563if test "X$1" = X--no-reexec; then
564  # Discard the --no-reexec flag, and continue.
565  shift
566elif test "X$1" = X--fallback-echo; then
567  # Avoid inline document here, it may be left over
568  :
569elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
570  # Yippee, $ECHO works!
571  :
572else
573  # Restart under the correct shell.
574  exec $SHELL "$0" --no-reexec ${1+"$@"}
575fi
576
577if test "X$1" = X--fallback-echo; then
578  # used as fallback echo
579  shift
580  cat <<_LT_EOF
581$*
582_LT_EOF
583  exit 0
584fi
585
586# The HP-UX ksh and POSIX shell print the target directory to stdout
587# if CDPATH is set.
588(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
589
590if test -z "$lt_ECHO"; then
591  if test "X${echo_test_string+set}" != Xset; then
592    # find a string as large as possible, as long as the shell can cope with it
593    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
594      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
595      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
596	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
597      then
598        break
599      fi
600    done
601  fi
602
603  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
604     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
605     test "X$echo_testing_string" = "X$echo_test_string"; then
606    :
607  else
608    # The Solaris, AIX, and Digital Unix default echo programs unquote
609    # backslashes.  This makes it impossible to quote backslashes using
610    #   echo "$something" | sed 's/\\/\\\\/g'
611    #
612    # So, first we look for a working echo in the user's PATH.
613
614    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
615    for dir in $PATH /usr/ucb; do
616      IFS="$lt_save_ifs"
617      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
618         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
619         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
620         test "X$echo_testing_string" = "X$echo_test_string"; then
621        ECHO="$dir/echo"
622        break
623      fi
624    done
625    IFS="$lt_save_ifs"
626
627    if test "X$ECHO" = Xecho; then
628      # We didn't find a better echo, so look for alternatives.
629      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
630         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
631         test "X$echo_testing_string" = "X$echo_test_string"; then
632        # This shell has a builtin print -r that does the trick.
633        ECHO='print -r'
634      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
635	   test "X$CONFIG_SHELL" != X/bin/ksh; then
636        # If we have ksh, try running configure again with it.
637        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
638        export ORIGINAL_CONFIG_SHELL
639        CONFIG_SHELL=/bin/ksh
640        export CONFIG_SHELL
641        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
642      else
643        # Try using printf.
644        ECHO='printf %s\n'
645        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
646	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
647	   test "X$echo_testing_string" = "X$echo_test_string"; then
648	  # Cool, printf works
649	  :
650        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651	     test "X$echo_testing_string" = 'X\t' &&
652	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653	     test "X$echo_testing_string" = "X$echo_test_string"; then
654	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
655	  export CONFIG_SHELL
656	  SHELL="$CONFIG_SHELL"
657	  export SHELL
658	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
659        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
660	     test "X$echo_testing_string" = 'X\t' &&
661	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
662	     test "X$echo_testing_string" = "X$echo_test_string"; then
663	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
664        else
665	  # maybe with a smaller string...
666	  prev=:
667
668	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
669	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
670	    then
671	      break
672	    fi
673	    prev="$cmd"
674	  done
675
676	  if test "$prev" != 'sed 50q "$0"'; then
677	    echo_test_string=`eval $prev`
678	    export echo_test_string
679	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
680	  else
681	    # Oops.  We lost completely, so just stick with echo.
682	    ECHO=echo
683	  fi
684        fi
685      fi
686    fi
687  fi
688fi
689
690# Copy echo and quote the copy suitably for passing to libtool from
691# the Makefile, instead of quoting the original, which is used later.
692lt_ECHO=$ECHO
693if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
694   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
695fi
696
697
698
699
700test -n "$DJDIR" || exec 7<&0 </dev/null
701exec 6>&1
702
703# Name of the host.
704# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
705# so uname gets run too.
706ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
707
708#
709# Initializations.
710#
711ac_default_prefix=/usr/local
712ac_clean_files=
713ac_config_libobj_dir=.
714LIBOBJS=
715cross_compiling=no
716subdirs=
717MFLAGS=
718MAKEFLAGS=
719
720# Identity of this package.
721PACKAGE_NAME='MPFR'
722PACKAGE_TARNAME='mpfr'
723PACKAGE_VERSION='3.0.1'
724PACKAGE_STRING='MPFR 3.0.1'
725PACKAGE_BUGREPORT=''
726PACKAGE_URL=''
727
728# Factoring default headers for most tests.
729ac_includes_default="\
730#include <stdio.h>
731#ifdef HAVE_SYS_TYPES_H
732# include <sys/types.h>
733#endif
734#ifdef HAVE_SYS_STAT_H
735# include <sys/stat.h>
736#endif
737#ifdef STDC_HEADERS
738# include <stdlib.h>
739# include <stddef.h>
740#else
741# ifdef HAVE_STDLIB_H
742#  include <stdlib.h>
743# endif
744#endif
745#ifdef HAVE_STRING_H
746# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
747#  include <memory.h>
748# endif
749# include <string.h>
750#endif
751#ifdef HAVE_STRINGS_H
752# include <strings.h>
753#endif
754#ifdef HAVE_INTTYPES_H
755# include <inttypes.h>
756#endif
757#ifdef HAVE_STDINT_H
758# include <stdint.h>
759#endif
760#ifdef HAVE_UNISTD_H
761# include <unistd.h>
762#endif"
763
764ac_subst_vars='am__EXEEXT_FALSE
765am__EXEEXT_TRUE
766LTLIBOBJS
767LIBOBJS
768OTOOL64
769OTOOL
770LIPO
771NMEDIT
772DSYMUTIL
773lt_ECHO
774RANLIB
775AR
776LN_S
777NM
778ac_ct_DUMPBIN
779DUMPBIN
780LD
781FGREP
782LIBTOOL
783OBJDUMP
784DLLTOOL
785AS
786ALLOCA
787MPFR_LIBM
788ANSI2KNR
789U
790CPP
791am__fastdepCC_FALSE
792am__fastdepCC_TRUE
793CCDEPMODE
794AMDEPBACKSLASH
795AMDEP_FALSE
796AMDEP_TRUE
797am__quote
798am__include
799DEPDIR
800OBJEXT
801EXEEXT
802ac_ct_CC
803CPPFLAGS
804LDFLAGS
805CFLAGS
806CC
807SED
808EGREP
809GREP
810host_os
811host_vendor
812host_cpu
813host
814build_os
815build_vendor
816build_cpu
817build
818MAINT
819MAINTAINER_MODE_FALSE
820MAINTAINER_MODE_TRUE
821am__untar
822am__tar
823AMTAR
824am__leading_dot
825SET_MAKE
826AWK
827mkdir_p
828MKDIR_P
829INSTALL_STRIP_PROGRAM
830STRIP
831install_sh
832MAKEINFO
833AUTOHEADER
834AUTOMAKE
835AUTOCONF
836ACLOCAL
837VERSION
838PACKAGE
839CYGPATH_W
840am__isrc
841INSTALL_DATA
842INSTALL_SCRIPT
843INSTALL_PROGRAM
844target_alias
845host_alias
846build_alias
847LIBS
848ECHO_T
849ECHO_N
850ECHO_C
851DEFS
852mandir
853localedir
854libdir
855psdir
856pdfdir
857dvidir
858htmldir
859infodir
860docdir
861oldincludedir
862includedir
863localstatedir
864sharedstatedir
865sysconfdir
866datadir
867datarootdir
868libexecdir
869sbindir
870bindir
871program_transform_name
872prefix
873exec_prefix
874PACKAGE_URL
875PACKAGE_BUGREPORT
876PACKAGE_STRING
877PACKAGE_VERSION
878PACKAGE_TARNAME
879PACKAGE_NAME
880PATH_SEPARATOR
881SHELL'
882ac_subst_files=''
883ac_user_opts='
884enable_option_checking
885enable_maintainer_mode
886with_gmp_include
887with_gmp_lib
888with_gmp
889with_gmp_build
890with_mulhigh_size
891enable_assert
892enable_logging
893enable_thread_safe
894enable_warnings
895enable_tests_timeout
896enable_dependency_tracking
897enable_decimal_float
898enable_shared
899enable_static
900with_pic
901enable_fast_install
902with_gnu_ld
903enable_libtool_lock
904'
905      ac_precious_vars='build_alias
906host_alias
907target_alias
908CC
909CFLAGS
910LDFLAGS
911LIBS
912CPPFLAGS
913CPP'
914
915
916# Initialize some variables set by options.
917ac_init_help=
918ac_init_version=false
919ac_unrecognized_opts=
920ac_unrecognized_sep=
921# The variables have the same names as the options, with
922# dashes changed to underlines.
923cache_file=/dev/null
924exec_prefix=NONE
925no_create=
926no_recursion=
927prefix=NONE
928program_prefix=NONE
929program_suffix=NONE
930program_transform_name=s,x,x,
931silent=
932site=
933srcdir=
934verbose=
935x_includes=NONE
936x_libraries=NONE
937
938# Installation directory options.
939# These are left unexpanded so users can "make install exec_prefix=/foo"
940# and all the variables that are supposed to be based on exec_prefix
941# by default will actually change.
942# Use braces instead of parens because sh, perl, etc. also accept them.
943# (The list follows the same order as the GNU Coding Standards.)
944bindir='${exec_prefix}/bin'
945sbindir='${exec_prefix}/sbin'
946libexecdir='${exec_prefix}/libexec'
947datarootdir='${prefix}/share'
948datadir='${datarootdir}'
949sysconfdir='${prefix}/etc'
950sharedstatedir='${prefix}/com'
951localstatedir='${prefix}/var'
952includedir='${prefix}/include'
953oldincludedir='/usr/include'
954docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
955infodir='${datarootdir}/info'
956htmldir='${docdir}'
957dvidir='${docdir}'
958pdfdir='${docdir}'
959psdir='${docdir}'
960libdir='${exec_prefix}/lib'
961localedir='${datarootdir}/locale'
962mandir='${datarootdir}/man'
963
964ac_prev=
965ac_dashdash=
966for ac_option
967do
968  # If the previous option needs an argument, assign it.
969  if test -n "$ac_prev"; then
970    eval $ac_prev=\$ac_option
971    ac_prev=
972    continue
973  fi
974
975  case $ac_option in
976  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
977  *=)   ac_optarg= ;;
978  *)    ac_optarg=yes ;;
979  esac
980
981  # Accept the important Cygnus configure options, so we can diagnose typos.
982
983  case $ac_dashdash$ac_option in
984  --)
985    ac_dashdash=yes ;;
986
987  -bindir | --bindir | --bindi | --bind | --bin | --bi)
988    ac_prev=bindir ;;
989  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
990    bindir=$ac_optarg ;;
991
992  -build | --build | --buil | --bui | --bu)
993    ac_prev=build_alias ;;
994  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
995    build_alias=$ac_optarg ;;
996
997  -cache-file | --cache-file | --cache-fil | --cache-fi \
998  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
999    ac_prev=cache_file ;;
1000  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1001  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1002    cache_file=$ac_optarg ;;
1003
1004  --config-cache | -C)
1005    cache_file=config.cache ;;
1006
1007  -datadir | --datadir | --datadi | --datad)
1008    ac_prev=datadir ;;
1009  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1010    datadir=$ac_optarg ;;
1011
1012  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1013  | --dataroo | --dataro | --datar)
1014    ac_prev=datarootdir ;;
1015  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1016  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1017    datarootdir=$ac_optarg ;;
1018
1019  -disable-* | --disable-*)
1020    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1021    # Reject names that are not valid shell variable names.
1022    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1023      as_fn_error $? "invalid feature name: $ac_useropt"
1024    ac_useropt_orig=$ac_useropt
1025    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1026    case $ac_user_opts in
1027      *"
1028"enable_$ac_useropt"
1029"*) ;;
1030      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1031	 ac_unrecognized_sep=', ';;
1032    esac
1033    eval enable_$ac_useropt=no ;;
1034
1035  -docdir | --docdir | --docdi | --doc | --do)
1036    ac_prev=docdir ;;
1037  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1038    docdir=$ac_optarg ;;
1039
1040  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1041    ac_prev=dvidir ;;
1042  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1043    dvidir=$ac_optarg ;;
1044
1045  -enable-* | --enable-*)
1046    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1047    # Reject names that are not valid shell variable names.
1048    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1049      as_fn_error $? "invalid feature name: $ac_useropt"
1050    ac_useropt_orig=$ac_useropt
1051    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1052    case $ac_user_opts in
1053      *"
1054"enable_$ac_useropt"
1055"*) ;;
1056      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1057	 ac_unrecognized_sep=', ';;
1058    esac
1059    eval enable_$ac_useropt=\$ac_optarg ;;
1060
1061  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1062  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1063  | --exec | --exe | --ex)
1064    ac_prev=exec_prefix ;;
1065  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1066  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1067  | --exec=* | --exe=* | --ex=*)
1068    exec_prefix=$ac_optarg ;;
1069
1070  -gas | --gas | --ga | --g)
1071    # Obsolete; use --with-gas.
1072    with_gas=yes ;;
1073
1074  -help | --help | --hel | --he | -h)
1075    ac_init_help=long ;;
1076  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1077    ac_init_help=recursive ;;
1078  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1079    ac_init_help=short ;;
1080
1081  -host | --host | --hos | --ho)
1082    ac_prev=host_alias ;;
1083  -host=* | --host=* | --hos=* | --ho=*)
1084    host_alias=$ac_optarg ;;
1085
1086  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1087    ac_prev=htmldir ;;
1088  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1089  | --ht=*)
1090    htmldir=$ac_optarg ;;
1091
1092  -includedir | --includedir | --includedi | --included | --include \
1093  | --includ | --inclu | --incl | --inc)
1094    ac_prev=includedir ;;
1095  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1096  | --includ=* | --inclu=* | --incl=* | --inc=*)
1097    includedir=$ac_optarg ;;
1098
1099  -infodir | --infodir | --infodi | --infod | --info | --inf)
1100    ac_prev=infodir ;;
1101  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1102    infodir=$ac_optarg ;;
1103
1104  -libdir | --libdir | --libdi | --libd)
1105    ac_prev=libdir ;;
1106  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1107    libdir=$ac_optarg ;;
1108
1109  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1110  | --libexe | --libex | --libe)
1111    ac_prev=libexecdir ;;
1112  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1113  | --libexe=* | --libex=* | --libe=*)
1114    libexecdir=$ac_optarg ;;
1115
1116  -localedir | --localedir | --localedi | --localed | --locale)
1117    ac_prev=localedir ;;
1118  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1119    localedir=$ac_optarg ;;
1120
1121  -localstatedir | --localstatedir | --localstatedi | --localstated \
1122  | --localstate | --localstat | --localsta | --localst | --locals)
1123    ac_prev=localstatedir ;;
1124  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1125  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1126    localstatedir=$ac_optarg ;;
1127
1128  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1129    ac_prev=mandir ;;
1130  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1131    mandir=$ac_optarg ;;
1132
1133  -nfp | --nfp | --nf)
1134    # Obsolete; use --without-fp.
1135    with_fp=no ;;
1136
1137  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1138  | --no-cr | --no-c | -n)
1139    no_create=yes ;;
1140
1141  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1142  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1143    no_recursion=yes ;;
1144
1145  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1146  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1147  | --oldin | --oldi | --old | --ol | --o)
1148    ac_prev=oldincludedir ;;
1149  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1150  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1151  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1152    oldincludedir=$ac_optarg ;;
1153
1154  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1155    ac_prev=prefix ;;
1156  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1157    prefix=$ac_optarg ;;
1158
1159  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1160  | --program-pre | --program-pr | --program-p)
1161    ac_prev=program_prefix ;;
1162  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1163  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1164    program_prefix=$ac_optarg ;;
1165
1166  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1167  | --program-suf | --program-su | --program-s)
1168    ac_prev=program_suffix ;;
1169  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1170  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1171    program_suffix=$ac_optarg ;;
1172
1173  -program-transform-name | --program-transform-name \
1174  | --program-transform-nam | --program-transform-na \
1175  | --program-transform-n | --program-transform- \
1176  | --program-transform | --program-transfor \
1177  | --program-transfo | --program-transf \
1178  | --program-trans | --program-tran \
1179  | --progr-tra | --program-tr | --program-t)
1180    ac_prev=program_transform_name ;;
1181  -program-transform-name=* | --program-transform-name=* \
1182  | --program-transform-nam=* | --program-transform-na=* \
1183  | --program-transform-n=* | --program-transform-=* \
1184  | --program-transform=* | --program-transfor=* \
1185  | --program-transfo=* | --program-transf=* \
1186  | --program-trans=* | --program-tran=* \
1187  | --progr-tra=* | --program-tr=* | --program-t=*)
1188    program_transform_name=$ac_optarg ;;
1189
1190  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1191    ac_prev=pdfdir ;;
1192  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1193    pdfdir=$ac_optarg ;;
1194
1195  -psdir | --psdir | --psdi | --psd | --ps)
1196    ac_prev=psdir ;;
1197  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1198    psdir=$ac_optarg ;;
1199
1200  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1201  | -silent | --silent | --silen | --sile | --sil)
1202    silent=yes ;;
1203
1204  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1205    ac_prev=sbindir ;;
1206  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1207  | --sbi=* | --sb=*)
1208    sbindir=$ac_optarg ;;
1209
1210  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1211  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1212  | --sharedst | --shareds | --shared | --share | --shar \
1213  | --sha | --sh)
1214    ac_prev=sharedstatedir ;;
1215  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1216  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1217  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1218  | --sha=* | --sh=*)
1219    sharedstatedir=$ac_optarg ;;
1220
1221  -site | --site | --sit)
1222    ac_prev=site ;;
1223  -site=* | --site=* | --sit=*)
1224    site=$ac_optarg ;;
1225
1226  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1227    ac_prev=srcdir ;;
1228  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1229    srcdir=$ac_optarg ;;
1230
1231  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1232  | --syscon | --sysco | --sysc | --sys | --sy)
1233    ac_prev=sysconfdir ;;
1234  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1235  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1236    sysconfdir=$ac_optarg ;;
1237
1238  -target | --target | --targe | --targ | --tar | --ta | --t)
1239    ac_prev=target_alias ;;
1240  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1241    target_alias=$ac_optarg ;;
1242
1243  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1244    verbose=yes ;;
1245
1246  -version | --version | --versio | --versi | --vers | -V)
1247    ac_init_version=: ;;
1248
1249  -with-* | --with-*)
1250    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1251    # Reject names that are not valid shell variable names.
1252    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1253      as_fn_error $? "invalid package name: $ac_useropt"
1254    ac_useropt_orig=$ac_useropt
1255    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1256    case $ac_user_opts in
1257      *"
1258"with_$ac_useropt"
1259"*) ;;
1260      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1261	 ac_unrecognized_sep=', ';;
1262    esac
1263    eval with_$ac_useropt=\$ac_optarg ;;
1264
1265  -without-* | --without-*)
1266    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1267    # Reject names that are not valid shell variable names.
1268    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1269      as_fn_error $? "invalid package name: $ac_useropt"
1270    ac_useropt_orig=$ac_useropt
1271    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1272    case $ac_user_opts in
1273      *"
1274"with_$ac_useropt"
1275"*) ;;
1276      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1277	 ac_unrecognized_sep=', ';;
1278    esac
1279    eval with_$ac_useropt=no ;;
1280
1281  --x)
1282    # Obsolete; use --with-x.
1283    with_x=yes ;;
1284
1285  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1286  | --x-incl | --x-inc | --x-in | --x-i)
1287    ac_prev=x_includes ;;
1288  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1289  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1290    x_includes=$ac_optarg ;;
1291
1292  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1293  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1294    ac_prev=x_libraries ;;
1295  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1296  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1297    x_libraries=$ac_optarg ;;
1298
1299  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1300Try \`$0 --help' for more information"
1301    ;;
1302
1303  *=*)
1304    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1305    # Reject names that are not valid shell variable names.
1306    case $ac_envvar in #(
1307      '' | [0-9]* | *[!_$as_cr_alnum]* )
1308      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1309    esac
1310    eval $ac_envvar=\$ac_optarg
1311    export $ac_envvar ;;
1312
1313  *)
1314    # FIXME: should be removed in autoconf 3.0.
1315    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1316    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1317      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1318    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1319    ;;
1320
1321  esac
1322done
1323
1324if test -n "$ac_prev"; then
1325  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1326  as_fn_error $? "missing argument to $ac_option"
1327fi
1328
1329if test -n "$ac_unrecognized_opts"; then
1330  case $enable_option_checking in
1331    no) ;;
1332    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1333    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1334  esac
1335fi
1336
1337# Check all directory arguments for consistency.
1338for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1339		datadir sysconfdir sharedstatedir localstatedir includedir \
1340		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1341		libdir localedir mandir
1342do
1343  eval ac_val=\$$ac_var
1344  # Remove trailing slashes.
1345  case $ac_val in
1346    */ )
1347      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1348      eval $ac_var=\$ac_val;;
1349  esac
1350  # Be sure to have absolute directory names.
1351  case $ac_val in
1352    [\\/$]* | ?:[\\/]* )  continue;;
1353    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1354  esac
1355  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1356done
1357
1358# There might be people who depend on the old broken behavior: `$host'
1359# used to hold the argument of --host etc.
1360# FIXME: To remove some day.
1361build=$build_alias
1362host=$host_alias
1363target=$target_alias
1364
1365# FIXME: To remove some day.
1366if test "x$host_alias" != x; then
1367  if test "x$build_alias" = x; then
1368    cross_compiling=maybe
1369    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1370    If a cross compiler is detected then cross compile mode will be used" >&2
1371  elif test "x$build_alias" != "x$host_alias"; then
1372    cross_compiling=yes
1373  fi
1374fi
1375
1376ac_tool_prefix=
1377test -n "$host_alias" && ac_tool_prefix=$host_alias-
1378
1379test "$silent" = yes && exec 6>/dev/null
1380
1381
1382ac_pwd=`pwd` && test -n "$ac_pwd" &&
1383ac_ls_di=`ls -di .` &&
1384ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1385  as_fn_error $? "working directory cannot be determined"
1386test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1387  as_fn_error $? "pwd does not report name of working directory"
1388
1389
1390# Find the source files, if location was not specified.
1391if test -z "$srcdir"; then
1392  ac_srcdir_defaulted=yes
1393  # Try the directory containing this script, then the parent directory.
1394  ac_confdir=`$as_dirname -- "$as_myself" ||
1395$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1396	 X"$as_myself" : 'X\(//\)[^/]' \| \
1397	 X"$as_myself" : 'X\(//\)$' \| \
1398	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1399$as_echo X"$as_myself" |
1400    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1401	    s//\1/
1402	    q
1403	  }
1404	  /^X\(\/\/\)[^/].*/{
1405	    s//\1/
1406	    q
1407	  }
1408	  /^X\(\/\/\)$/{
1409	    s//\1/
1410	    q
1411	  }
1412	  /^X\(\/\).*/{
1413	    s//\1/
1414	    q
1415	  }
1416	  s/.*/./; q'`
1417  srcdir=$ac_confdir
1418  if test ! -r "$srcdir/$ac_unique_file"; then
1419    srcdir=..
1420  fi
1421else
1422  ac_srcdir_defaulted=no
1423fi
1424if test ! -r "$srcdir/$ac_unique_file"; then
1425  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1426  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1427fi
1428ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1429ac_abs_confdir=`(
1430	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1431	pwd)`
1432# When building in place, set srcdir=.
1433if test "$ac_abs_confdir" = "$ac_pwd"; then
1434  srcdir=.
1435fi
1436# Remove unnecessary trailing slashes from srcdir.
1437# Double slashes in file names in object file debugging info
1438# mess up M-x gdb in Emacs.
1439case $srcdir in
1440*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1441esac
1442for ac_var in $ac_precious_vars; do
1443  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1444  eval ac_env_${ac_var}_value=\$${ac_var}
1445  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1446  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1447done
1448
1449#
1450# Report the --help message.
1451#
1452if test "$ac_init_help" = "long"; then
1453  # Omit some internal or obsolete options to make the list less imposing.
1454  # This message is too long to be a string in the A/UX 3.1 sh.
1455  cat <<_ACEOF
1456\`configure' configures MPFR 3.0.1 to adapt to many kinds of systems.
1457
1458Usage: $0 [OPTION]... [VAR=VALUE]...
1459
1460To assign environment variables (e.g., CC, CFLAGS...), specify them as
1461VAR=VALUE.  See below for descriptions of some of the useful variables.
1462
1463Defaults for the options are specified in brackets.
1464
1465Configuration:
1466  -h, --help              display this help and exit
1467      --help=short        display options specific to this package
1468      --help=recursive    display the short help of all the included packages
1469  -V, --version           display version information and exit
1470  -q, --quiet, --silent   do not print \`checking ...' messages
1471      --cache-file=FILE   cache test results in FILE [disabled]
1472  -C, --config-cache      alias for \`--cache-file=config.cache'
1473  -n, --no-create         do not create output files
1474      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1475
1476Installation directories:
1477  --prefix=PREFIX         install architecture-independent files in PREFIX
1478                          [$ac_default_prefix]
1479  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1480                          [PREFIX]
1481
1482By default, \`make install' will install all the files in
1483\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1484an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1485for instance \`--prefix=\$HOME'.
1486
1487For better control, use the options below.
1488
1489Fine tuning of the installation directories:
1490  --bindir=DIR            user executables [EPREFIX/bin]
1491  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1492  --libexecdir=DIR        program executables [EPREFIX/libexec]
1493  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1494  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1495  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1496  --libdir=DIR            object code libraries [EPREFIX/lib]
1497  --includedir=DIR        C header files [PREFIX/include]
1498  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1499  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1500  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1501  --infodir=DIR           info documentation [DATAROOTDIR/info]
1502  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1503  --mandir=DIR            man documentation [DATAROOTDIR/man]
1504  --docdir=DIR            documentation root [DATAROOTDIR/doc/mpfr]
1505  --htmldir=DIR           html documentation [DOCDIR]
1506  --dvidir=DIR            dvi documentation [DOCDIR]
1507  --pdfdir=DIR            pdf documentation [DOCDIR]
1508  --psdir=DIR             ps documentation [DOCDIR]
1509_ACEOF
1510
1511  cat <<\_ACEOF
1512
1513Program names:
1514  --program-prefix=PREFIX            prepend PREFIX to installed program names
1515  --program-suffix=SUFFIX            append SUFFIX to installed program names
1516  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1517
1518System types:
1519  --build=BUILD     configure for building on BUILD [guessed]
1520  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1521_ACEOF
1522fi
1523
1524if test -n "$ac_init_help"; then
1525  case $ac_init_help in
1526     short | recursive ) echo "Configuration of MPFR 3.0.1:";;
1527   esac
1528  cat <<\_ACEOF
1529
1530Optional Features:
1531  --disable-option-checking  ignore unrecognized --enable/--with options
1532  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1533  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1534  --disable-maintainer-mode  disable make rules and dependencies not useful
1535			  (and sometimes confusing) to the casual installer
1536  --enable-assert         enable ASSERT checking [default=no]
1537  --enable-logging        enable MPFR logging (the system must support it)
1538                          [default=no]
1539  --enable-thread-safe    build MPFR as thread safe (the system must support
1540                          it) [default=no]
1541  --enable-warnings       allow MPFR to output warnings to stderr [default=no]
1542  --enable-tests-timeout=NUM    enable timeout (NUM seconds) for test programs
1543                          (NUM <= 9999) [default=no]; if enabled, env variable
1544                          $MPFR_TESTS_TIMEOUT overrides NUM (0: no timeout).
1545  --disable-dependency-tracking  speeds up one-time build
1546  --enable-dependency-tracking   do not reject slow dependency extractors
1547  --enable-decimal-float  build conversion functions from/to decimal floats
1548                          [default=no]
1549  --enable-shared[=PKGS]  build shared libraries [default=yes]
1550  --enable-static[=PKGS]  build static libraries [default=yes]
1551  --enable-fast-install[=PKGS]
1552                          optimize for fast installation [default=yes]
1553  --disable-libtool-lock  avoid locking (might break parallel builds)
1554
1555Optional Packages:
1556  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1557  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1558  --with-gmp-include=DIR  GMP include directory
1559  --with-gmp-lib=DIR      GMP lib directory
1560  --with-gmp=DIR          GMP install directory
1561  --with-gmp-build=DIR    GMP build directory (please read INSTALL file)
1562  --with-mulhigh-size=NUM internal threshold table for mulhigh
1563  --with-pic              try to use only PIC/non-PIC objects [default=use
1564                          both]
1565  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1566
1567Some influential environment variables:
1568  CC          C compiler command
1569  CFLAGS      C compiler flags
1570  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1571              nonstandard directory <lib dir>
1572  LIBS        libraries to pass to the linker, e.g. -l<library>
1573  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1574              you have headers in a nonstandard directory <include dir>
1575  CPP         C preprocessor
1576
1577Use these variables to override the choices made by `configure' or to help
1578it to find libraries and programs with nonstandard names/locations.
1579
1580Report bugs to the package provider.
1581_ACEOF
1582ac_status=$?
1583fi
1584
1585if test "$ac_init_help" = "recursive"; then
1586  # If there are subdirs, report their specific --help.
1587  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1588    test -d "$ac_dir" ||
1589      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1590      continue
1591    ac_builddir=.
1592
1593case "$ac_dir" in
1594.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1595*)
1596  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1597  # A ".." for each directory in $ac_dir_suffix.
1598  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1599  case $ac_top_builddir_sub in
1600  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1601  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1602  esac ;;
1603esac
1604ac_abs_top_builddir=$ac_pwd
1605ac_abs_builddir=$ac_pwd$ac_dir_suffix
1606# for backward compatibility:
1607ac_top_builddir=$ac_top_build_prefix
1608
1609case $srcdir in
1610  .)  # We are building in place.
1611    ac_srcdir=.
1612    ac_top_srcdir=$ac_top_builddir_sub
1613    ac_abs_top_srcdir=$ac_pwd ;;
1614  [\\/]* | ?:[\\/]* )  # Absolute name.
1615    ac_srcdir=$srcdir$ac_dir_suffix;
1616    ac_top_srcdir=$srcdir
1617    ac_abs_top_srcdir=$srcdir ;;
1618  *) # Relative name.
1619    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1620    ac_top_srcdir=$ac_top_build_prefix$srcdir
1621    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1622esac
1623ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1624
1625    cd "$ac_dir" || { ac_status=$?; continue; }
1626    # Check for guested configure.
1627    if test -f "$ac_srcdir/configure.gnu"; then
1628      echo &&
1629      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1630    elif test -f "$ac_srcdir/configure"; then
1631      echo &&
1632      $SHELL "$ac_srcdir/configure" --help=recursive
1633    else
1634      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1635    fi || ac_status=$?
1636    cd "$ac_pwd" || { ac_status=$?; break; }
1637  done
1638fi
1639
1640test -n "$ac_init_help" && exit $ac_status
1641if $ac_init_version; then
1642  cat <<\_ACEOF
1643MPFR configure 3.0.1
1644generated by GNU Autoconf 2.67
1645
1646Copyright (C) 2010 Free Software Foundation, Inc.
1647This configure script is free software; the Free Software Foundation
1648gives unlimited permission to copy, distribute and modify it.
1649
1650
1651Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
1652Contributed by the Arenaire and Cacao projects, INRIA.
1653
1654This file is part of the GNU MPFR Library.
1655
1656The GNU MPFR Library is free software; you can redistribute it and/or modify
1657it under the terms of the GNU Lesser General Public License as published
1658by the Free Software Foundation; either version 3 of the License, or (at
1659your option) any later version.
1660
1661The GNU MPFR Library is distributed in the hope that it will be useful, but
1662WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
1663or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
1664License for more details.
1665
1666You should have received a copy of the GNU Lesser General Public License
1667along with the GNU MPFR Library; see the file COPYING.LESSER.  If not, see
1668http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc.,
166951 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
1670
1671_ACEOF
1672  exit
1673fi
1674
1675## ------------------------ ##
1676## Autoconf initialization. ##
1677## ------------------------ ##
1678
1679# ac_fn_c_try_compile LINENO
1680# --------------------------
1681# Try to compile conftest.$ac_ext, and return whether this succeeded.
1682ac_fn_c_try_compile ()
1683{
1684  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685  rm -f conftest.$ac_objext
1686  if { { ac_try="$ac_compile"
1687case "(($ac_try" in
1688  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689  *) ac_try_echo=$ac_try;;
1690esac
1691eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692$as_echo "$ac_try_echo"; } >&5
1693  (eval "$ac_compile") 2>conftest.err
1694  ac_status=$?
1695  if test -s conftest.err; then
1696    grep -v '^ *+' conftest.err >conftest.er1
1697    cat conftest.er1 >&5
1698    mv -f conftest.er1 conftest.err
1699  fi
1700  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701  test $ac_status = 0; } && {
1702	 test -z "$ac_c_werror_flag" ||
1703	 test ! -s conftest.err
1704       } && test -s conftest.$ac_objext; then :
1705  ac_retval=0
1706else
1707  $as_echo "$as_me: failed program was:" >&5
1708sed 's/^/| /' conftest.$ac_ext >&5
1709
1710	ac_retval=1
1711fi
1712  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1713  as_fn_set_status $ac_retval
1714
1715} # ac_fn_c_try_compile
1716
1717# ac_fn_c_try_cpp LINENO
1718# ----------------------
1719# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1720ac_fn_c_try_cpp ()
1721{
1722  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723  if { { ac_try="$ac_cpp conftest.$ac_ext"
1724case "(($ac_try" in
1725  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726  *) ac_try_echo=$ac_try;;
1727esac
1728eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729$as_echo "$ac_try_echo"; } >&5
1730  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1731  ac_status=$?
1732  if test -s conftest.err; then
1733    grep -v '^ *+' conftest.err >conftest.er1
1734    cat conftest.er1 >&5
1735    mv -f conftest.er1 conftest.err
1736  fi
1737  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738  test $ac_status = 0; } > conftest.i && {
1739	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1740	 test ! -s conftest.err
1741       }; then :
1742  ac_retval=0
1743else
1744  $as_echo "$as_me: failed program was:" >&5
1745sed 's/^/| /' conftest.$ac_ext >&5
1746
1747    ac_retval=1
1748fi
1749  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1750  as_fn_set_status $ac_retval
1751
1752} # ac_fn_c_try_cpp
1753
1754# ac_fn_c_try_run LINENO
1755# ----------------------
1756# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1757# that executables *can* be run.
1758ac_fn_c_try_run ()
1759{
1760  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761  if { { ac_try="$ac_link"
1762case "(($ac_try" in
1763  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764  *) ac_try_echo=$ac_try;;
1765esac
1766eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767$as_echo "$ac_try_echo"; } >&5
1768  (eval "$ac_link") 2>&5
1769  ac_status=$?
1770  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1772  { { case "(($ac_try" in
1773  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774  *) ac_try_echo=$ac_try;;
1775esac
1776eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777$as_echo "$ac_try_echo"; } >&5
1778  (eval "$ac_try") 2>&5
1779  ac_status=$?
1780  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781  test $ac_status = 0; }; }; then :
1782  ac_retval=0
1783else
1784  $as_echo "$as_me: program exited with status $ac_status" >&5
1785       $as_echo "$as_me: failed program was:" >&5
1786sed 's/^/| /' conftest.$ac_ext >&5
1787
1788       ac_retval=$ac_status
1789fi
1790  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1791  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1792  as_fn_set_status $ac_retval
1793
1794} # ac_fn_c_try_run
1795
1796# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1797# -------------------------------------------------------
1798# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1799# the include files in INCLUDES and setting the cache variable VAR
1800# accordingly.
1801ac_fn_c_check_header_mongrel ()
1802{
1803  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804  if eval "test \"\${$3+set}\"" = set; then :
1805  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1806$as_echo_n "checking for $2... " >&6; }
1807if eval "test \"\${$3+set}\"" = set; then :
1808  $as_echo_n "(cached) " >&6
1809fi
1810eval ac_res=\$$3
1811	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1812$as_echo "$ac_res" >&6; }
1813else
1814  # Is the header compilable?
1815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1816$as_echo_n "checking $2 usability... " >&6; }
1817cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1818/* end confdefs.h.  */
1819$4
1820#include <$2>
1821_ACEOF
1822if ac_fn_c_try_compile "$LINENO"; then :
1823  ac_header_compiler=yes
1824else
1825  ac_header_compiler=no
1826fi
1827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1829$as_echo "$ac_header_compiler" >&6; }
1830
1831# Is the header present?
1832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1833$as_echo_n "checking $2 presence... " >&6; }
1834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1835/* end confdefs.h.  */
1836#include <$2>
1837_ACEOF
1838if ac_fn_c_try_cpp "$LINENO"; then :
1839  ac_header_preproc=yes
1840else
1841  ac_header_preproc=no
1842fi
1843rm -f conftest.err conftest.i conftest.$ac_ext
1844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1845$as_echo "$ac_header_preproc" >&6; }
1846
1847# So?  What about this header?
1848case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1849  yes:no: )
1850    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1851$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1852    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1853$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1854    ;;
1855  no:yes:* )
1856    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1857$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1858    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1859$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1860    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1861$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1862    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1863$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1864    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1865$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1866    ;;
1867esac
1868  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1869$as_echo_n "checking for $2... " >&6; }
1870if eval "test \"\${$3+set}\"" = set; then :
1871  $as_echo_n "(cached) " >&6
1872else
1873  eval "$3=\$ac_header_compiler"
1874fi
1875eval ac_res=\$$3
1876	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877$as_echo "$ac_res" >&6; }
1878fi
1879  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1880
1881} # ac_fn_c_check_header_mongrel
1882
1883# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1884# -------------------------------------------------------
1885# Tests whether HEADER exists and can be compiled using the include files in
1886# INCLUDES, setting the cache variable VAR accordingly.
1887ac_fn_c_check_header_compile ()
1888{
1889  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1891$as_echo_n "checking for $2... " >&6; }
1892if eval "test \"\${$3+set}\"" = set; then :
1893  $as_echo_n "(cached) " >&6
1894else
1895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1896/* end confdefs.h.  */
1897$4
1898#include <$2>
1899_ACEOF
1900if ac_fn_c_try_compile "$LINENO"; then :
1901  eval "$3=yes"
1902else
1903  eval "$3=no"
1904fi
1905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1906fi
1907eval ac_res=\$$3
1908	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1909$as_echo "$ac_res" >&6; }
1910  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1911
1912} # ac_fn_c_check_header_compile
1913
1914# ac_fn_c_try_link LINENO
1915# -----------------------
1916# Try to link conftest.$ac_ext, and return whether this succeeded.
1917ac_fn_c_try_link ()
1918{
1919  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920  rm -f conftest.$ac_objext conftest$ac_exeext
1921  if { { ac_try="$ac_link"
1922case "(($ac_try" in
1923  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1924  *) ac_try_echo=$ac_try;;
1925esac
1926eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1927$as_echo "$ac_try_echo"; } >&5
1928  (eval "$ac_link") 2>conftest.err
1929  ac_status=$?
1930  if test -s conftest.err; then
1931    grep -v '^ *+' conftest.err >conftest.er1
1932    cat conftest.er1 >&5
1933    mv -f conftest.er1 conftest.err
1934  fi
1935  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1936  test $ac_status = 0; } && {
1937	 test -z "$ac_c_werror_flag" ||
1938	 test ! -s conftest.err
1939       } && test -s conftest$ac_exeext && {
1940	 test "$cross_compiling" = yes ||
1941	 $as_test_x conftest$ac_exeext
1942       }; then :
1943  ac_retval=0
1944else
1945  $as_echo "$as_me: failed program was:" >&5
1946sed 's/^/| /' conftest.$ac_ext >&5
1947
1948	ac_retval=1
1949fi
1950  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1951  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1952  # interfere with the next link command; also delete a directory that is
1953  # left behind by Apple's compiler.  We do this before executing the actions.
1954  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1955  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1956  as_fn_set_status $ac_retval
1957
1958} # ac_fn_c_try_link
1959
1960# ac_fn_c_check_func LINENO FUNC VAR
1961# ----------------------------------
1962# Tests whether FUNC exists, setting the cache variable VAR accordingly
1963ac_fn_c_check_func ()
1964{
1965  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1967$as_echo_n "checking for $2... " >&6; }
1968if eval "test \"\${$3+set}\"" = set; then :
1969  $as_echo_n "(cached) " >&6
1970else
1971  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1972/* end confdefs.h.  */
1973/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1974   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1975#define $2 innocuous_$2
1976
1977/* System header to define __stub macros and hopefully few prototypes,
1978    which can conflict with char $2 (); below.
1979    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1980    <limits.h> exists even on freestanding compilers.  */
1981
1982#ifdef __STDC__
1983# include <limits.h>
1984#else
1985# include <assert.h>
1986#endif
1987
1988#undef $2
1989
1990/* Override any GCC internal prototype to avoid an error.
1991   Use char because int might match the return type of a GCC
1992   builtin and then its argument prototype would still apply.  */
1993#ifdef __cplusplus
1994extern "C"
1995#endif
1996char $2 ();
1997/* The GNU C library defines this for functions which it implements
1998    to always fail with ENOSYS.  Some functions are actually named
1999    something starting with __ and the normal name is an alias.  */
2000#if defined __stub_$2 || defined __stub___$2
2001choke me
2002#endif
2003
2004int
2005main ()
2006{
2007return $2 ();
2008  ;
2009  return 0;
2010}
2011_ACEOF
2012if ac_fn_c_try_link "$LINENO"; then :
2013  eval "$3=yes"
2014else
2015  eval "$3=no"
2016fi
2017rm -f core conftest.err conftest.$ac_objext \
2018    conftest$ac_exeext conftest.$ac_ext
2019fi
2020eval ac_res=\$$3
2021	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2022$as_echo "$ac_res" >&6; }
2023  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2024
2025} # ac_fn_c_check_func
2026
2027# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2028# --------------------------------------------
2029# Tries to find the compile-time value of EXPR in a program that includes
2030# INCLUDES, setting VAR accordingly. Returns whether the value could be
2031# computed
2032ac_fn_c_compute_int ()
2033{
2034  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2035  if test "$cross_compiling" = yes; then
2036    # Depending upon the size, compute the lo and hi bounds.
2037cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038/* end confdefs.h.  */
2039$4
2040int
2041main ()
2042{
2043static int test_array [1 - 2 * !(($2) >= 0)];
2044test_array [0] = 0
2045
2046  ;
2047  return 0;
2048}
2049_ACEOF
2050if ac_fn_c_try_compile "$LINENO"; then :
2051  ac_lo=0 ac_mid=0
2052  while :; do
2053    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054/* end confdefs.h.  */
2055$4
2056int
2057main ()
2058{
2059static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2060test_array [0] = 0
2061
2062  ;
2063  return 0;
2064}
2065_ACEOF
2066if ac_fn_c_try_compile "$LINENO"; then :
2067  ac_hi=$ac_mid; break
2068else
2069  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2070			if test $ac_lo -le $ac_mid; then
2071			  ac_lo= ac_hi=
2072			  break
2073			fi
2074			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2075fi
2076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2077  done
2078else
2079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080/* end confdefs.h.  */
2081$4
2082int
2083main ()
2084{
2085static int test_array [1 - 2 * !(($2) < 0)];
2086test_array [0] = 0
2087
2088  ;
2089  return 0;
2090}
2091_ACEOF
2092if ac_fn_c_try_compile "$LINENO"; then :
2093  ac_hi=-1 ac_mid=-1
2094  while :; do
2095    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2096/* end confdefs.h.  */
2097$4
2098int
2099main ()
2100{
2101static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2102test_array [0] = 0
2103
2104  ;
2105  return 0;
2106}
2107_ACEOF
2108if ac_fn_c_try_compile "$LINENO"; then :
2109  ac_lo=$ac_mid; break
2110else
2111  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2112			if test $ac_mid -le $ac_hi; then
2113			  ac_lo= ac_hi=
2114			  break
2115			fi
2116			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2117fi
2118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2119  done
2120else
2121  ac_lo= ac_hi=
2122fi
2123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2124fi
2125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2126# Binary search between lo and hi bounds.
2127while test "x$ac_lo" != "x$ac_hi"; do
2128  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2129  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2130/* end confdefs.h.  */
2131$4
2132int
2133main ()
2134{
2135static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2136test_array [0] = 0
2137
2138  ;
2139  return 0;
2140}
2141_ACEOF
2142if ac_fn_c_try_compile "$LINENO"; then :
2143  ac_hi=$ac_mid
2144else
2145  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2146fi
2147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2148done
2149case $ac_lo in #((
2150?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2151'') ac_retval=1 ;;
2152esac
2153  else
2154    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2155/* end confdefs.h.  */
2156$4
2157static long int longval () { return $2; }
2158static unsigned long int ulongval () { return $2; }
2159#include <stdio.h>
2160#include <stdlib.h>
2161int
2162main ()
2163{
2164
2165  FILE *f = fopen ("conftest.val", "w");
2166  if (! f)
2167    return 1;
2168  if (($2) < 0)
2169    {
2170      long int i = longval ();
2171      if (i != ($2))
2172	return 1;
2173      fprintf (f, "%ld", i);
2174    }
2175  else
2176    {
2177      unsigned long int i = ulongval ();
2178      if (i != ($2))
2179	return 1;
2180      fprintf (f, "%lu", i);
2181    }
2182  /* Do not output a trailing newline, as this causes \r\n confusion
2183     on some platforms.  */
2184  return ferror (f) || fclose (f) != 0;
2185
2186  ;
2187  return 0;
2188}
2189_ACEOF
2190if ac_fn_c_try_run "$LINENO"; then :
2191  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2192else
2193  ac_retval=1
2194fi
2195rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2196  conftest.$ac_objext conftest.beam conftest.$ac_ext
2197rm -f conftest.val
2198
2199  fi
2200  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2201  as_fn_set_status $ac_retval
2202
2203} # ac_fn_c_compute_int
2204
2205# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2206# -------------------------------------------
2207# Tests whether TYPE exists after having included INCLUDES, setting cache
2208# variable VAR accordingly.
2209ac_fn_c_check_type ()
2210{
2211  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2212  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2213$as_echo_n "checking for $2... " >&6; }
2214if eval "test \"\${$3+set}\"" = set; then :
2215  $as_echo_n "(cached) " >&6
2216else
2217  eval "$3=no"
2218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219/* end confdefs.h.  */
2220$4
2221int
2222main ()
2223{
2224if (sizeof ($2))
2225	 return 0;
2226  ;
2227  return 0;
2228}
2229_ACEOF
2230if ac_fn_c_try_compile "$LINENO"; then :
2231  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2232/* end confdefs.h.  */
2233$4
2234int
2235main ()
2236{
2237if (sizeof (($2)))
2238	    return 0;
2239  ;
2240  return 0;
2241}
2242_ACEOF
2243if ac_fn_c_try_compile "$LINENO"; then :
2244
2245else
2246  eval "$3=yes"
2247fi
2248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2249fi
2250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2251fi
2252eval ac_res=\$$3
2253	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2254$as_echo "$ac_res" >&6; }
2255  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2256
2257} # ac_fn_c_check_type
2258cat >config.log <<_ACEOF
2259This file contains any messages produced by compilers while
2260running configure, to aid debugging if configure makes a mistake.
2261
2262It was created by MPFR $as_me 3.0.1, which was
2263generated by GNU Autoconf 2.67.  Invocation command line was
2264
2265  $ $0 $@
2266
2267_ACEOF
2268exec 5>>config.log
2269{
2270cat <<_ASUNAME
2271## --------- ##
2272## Platform. ##
2273## --------- ##
2274
2275hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2276uname -m = `(uname -m) 2>/dev/null || echo unknown`
2277uname -r = `(uname -r) 2>/dev/null || echo unknown`
2278uname -s = `(uname -s) 2>/dev/null || echo unknown`
2279uname -v = `(uname -v) 2>/dev/null || echo unknown`
2280
2281/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2282/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2283
2284/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2285/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2286/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2287/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2288/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2289/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2290/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2291
2292_ASUNAME
2293
2294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2295for as_dir in $PATH
2296do
2297  IFS=$as_save_IFS
2298  test -z "$as_dir" && as_dir=.
2299    $as_echo "PATH: $as_dir"
2300  done
2301IFS=$as_save_IFS
2302
2303} >&5
2304
2305cat >&5 <<_ACEOF
2306
2307
2308## ----------- ##
2309## Core tests. ##
2310## ----------- ##
2311
2312_ACEOF
2313
2314
2315# Keep a trace of the command line.
2316# Strip out --no-create and --no-recursion so they do not pile up.
2317# Strip out --silent because we don't want to record it for future runs.
2318# Also quote any args containing shell meta-characters.
2319# Make two passes to allow for proper duplicate-argument suppression.
2320ac_configure_args=
2321ac_configure_args0=
2322ac_configure_args1=
2323ac_must_keep_next=false
2324for ac_pass in 1 2
2325do
2326  for ac_arg
2327  do
2328    case $ac_arg in
2329    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2330    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2331    | -silent | --silent | --silen | --sile | --sil)
2332      continue ;;
2333    *\'*)
2334      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2335    esac
2336    case $ac_pass in
2337    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2338    2)
2339      as_fn_append ac_configure_args1 " '$ac_arg'"
2340      if test $ac_must_keep_next = true; then
2341	ac_must_keep_next=false # Got value, back to normal.
2342      else
2343	case $ac_arg in
2344	  *=* | --config-cache | -C | -disable-* | --disable-* \
2345	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2346	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2347	  | -with-* | --with-* | -without-* | --without-* | --x)
2348	    case "$ac_configure_args0 " in
2349	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2350	    esac
2351	    ;;
2352	  -* ) ac_must_keep_next=true ;;
2353	esac
2354      fi
2355      as_fn_append ac_configure_args " '$ac_arg'"
2356      ;;
2357    esac
2358  done
2359done
2360{ ac_configure_args0=; unset ac_configure_args0;}
2361{ ac_configure_args1=; unset ac_configure_args1;}
2362
2363# When interrupted or exit'd, cleanup temporary files, and complete
2364# config.log.  We remove comments because anyway the quotes in there
2365# would cause problems or look ugly.
2366# WARNING: Use '\'' to represent an apostrophe within the trap.
2367# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2368trap 'exit_status=$?
2369  # Save into config.log some information that might help in debugging.
2370  {
2371    echo
2372
2373    $as_echo "## ---------------- ##
2374## Cache variables. ##
2375## ---------------- ##"
2376    echo
2377    # The following way of writing the cache mishandles newlines in values,
2378(
2379  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2380    eval ac_val=\$$ac_var
2381    case $ac_val in #(
2382    *${as_nl}*)
2383      case $ac_var in #(
2384      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2385$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2386      esac
2387      case $ac_var in #(
2388      _ | IFS | as_nl) ;; #(
2389      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2390      *) { eval $ac_var=; unset $ac_var;} ;;
2391      esac ;;
2392    esac
2393  done
2394  (set) 2>&1 |
2395    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2396    *${as_nl}ac_space=\ *)
2397      sed -n \
2398	"s/'\''/'\''\\\\'\'''\''/g;
2399	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2400      ;; #(
2401    *)
2402      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2403      ;;
2404    esac |
2405    sort
2406)
2407    echo
2408
2409    $as_echo "## ----------------- ##
2410## Output variables. ##
2411## ----------------- ##"
2412    echo
2413    for ac_var in $ac_subst_vars
2414    do
2415      eval ac_val=\$$ac_var
2416      case $ac_val in
2417      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2418      esac
2419      $as_echo "$ac_var='\''$ac_val'\''"
2420    done | sort
2421    echo
2422
2423    if test -n "$ac_subst_files"; then
2424      $as_echo "## ------------------- ##
2425## File substitutions. ##
2426## ------------------- ##"
2427      echo
2428      for ac_var in $ac_subst_files
2429      do
2430	eval ac_val=\$$ac_var
2431	case $ac_val in
2432	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2433	esac
2434	$as_echo "$ac_var='\''$ac_val'\''"
2435      done | sort
2436      echo
2437    fi
2438
2439    if test -s confdefs.h; then
2440      $as_echo "## ----------- ##
2441## confdefs.h. ##
2442## ----------- ##"
2443      echo
2444      cat confdefs.h
2445      echo
2446    fi
2447    test "$ac_signal" != 0 &&
2448      $as_echo "$as_me: caught signal $ac_signal"
2449    $as_echo "$as_me: exit $exit_status"
2450  } >&5
2451  rm -f core *.core core.conftest.* &&
2452    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2453    exit $exit_status
2454' 0
2455for ac_signal in 1 2 13 15; do
2456  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2457done
2458ac_signal=0
2459
2460# confdefs.h avoids OS command line length limits that DEFS can exceed.
2461rm -f -r conftest* confdefs.h
2462
2463$as_echo "/* confdefs.h */" > confdefs.h
2464
2465# Predefined preprocessor variables.
2466
2467cat >>confdefs.h <<_ACEOF
2468#define PACKAGE_NAME "$PACKAGE_NAME"
2469_ACEOF
2470
2471cat >>confdefs.h <<_ACEOF
2472#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2473_ACEOF
2474
2475cat >>confdefs.h <<_ACEOF
2476#define PACKAGE_VERSION "$PACKAGE_VERSION"
2477_ACEOF
2478
2479cat >>confdefs.h <<_ACEOF
2480#define PACKAGE_STRING "$PACKAGE_STRING"
2481_ACEOF
2482
2483cat >>confdefs.h <<_ACEOF
2484#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2485_ACEOF
2486
2487cat >>confdefs.h <<_ACEOF
2488#define PACKAGE_URL "$PACKAGE_URL"
2489_ACEOF
2490
2491
2492# Let the site file select an alternate cache file if it wants to.
2493# Prefer an explicitly selected file to automatically selected ones.
2494ac_site_file1=NONE
2495ac_site_file2=NONE
2496if test -n "$CONFIG_SITE"; then
2497  # We do not want a PATH search for config.site.
2498  case $CONFIG_SITE in #((
2499    -*)  ac_site_file1=./$CONFIG_SITE;;
2500    */*) ac_site_file1=$CONFIG_SITE;;
2501    *)   ac_site_file1=./$CONFIG_SITE;;
2502  esac
2503elif test "x$prefix" != xNONE; then
2504  ac_site_file1=$prefix/share/config.site
2505  ac_site_file2=$prefix/etc/config.site
2506else
2507  ac_site_file1=$ac_default_prefix/share/config.site
2508  ac_site_file2=$ac_default_prefix/etc/config.site
2509fi
2510for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2511do
2512  test "x$ac_site_file" = xNONE && continue
2513  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2514    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2515$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2516    sed 's/^/| /' "$ac_site_file" >&5
2517    . "$ac_site_file" \
2518      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2519$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2520as_fn_error $? "failed to load site script $ac_site_file
2521See \`config.log' for more details" "$LINENO" 5 ; }
2522  fi
2523done
2524
2525if test -r "$cache_file"; then
2526  # Some versions of bash will fail to source /dev/null (special files
2527  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2528  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2529    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2530$as_echo "$as_me: loading cache $cache_file" >&6;}
2531    case $cache_file in
2532      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2533      *)                      . "./$cache_file";;
2534    esac
2535  fi
2536else
2537  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2538$as_echo "$as_me: creating cache $cache_file" >&6;}
2539  >$cache_file
2540fi
2541
2542# Check that the precious variables saved in the cache have kept the same
2543# value.
2544ac_cache_corrupted=false
2545for ac_var in $ac_precious_vars; do
2546  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2547  eval ac_new_set=\$ac_env_${ac_var}_set
2548  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2549  eval ac_new_val=\$ac_env_${ac_var}_value
2550  case $ac_old_set,$ac_new_set in
2551    set,)
2552      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2553$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2554      ac_cache_corrupted=: ;;
2555    ,set)
2556      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2557$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2558      ac_cache_corrupted=: ;;
2559    ,);;
2560    *)
2561      if test "x$ac_old_val" != "x$ac_new_val"; then
2562	# differences in whitespace do not lead to failure.
2563	ac_old_val_w=`echo x $ac_old_val`
2564	ac_new_val_w=`echo x $ac_new_val`
2565	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2566	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2567$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2568	  ac_cache_corrupted=:
2569	else
2570	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2571$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2572	  eval $ac_var=\$ac_old_val
2573	fi
2574	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2575$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2576	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2577$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2578      fi;;
2579  esac
2580  # Pass precious variables to config.status.
2581  if test "$ac_new_set" = set; then
2582    case $ac_new_val in
2583    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2584    *) ac_arg=$ac_var=$ac_new_val ;;
2585    esac
2586    case " $ac_configure_args " in
2587      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2588      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2589    esac
2590  fi
2591done
2592if $ac_cache_corrupted; then
2593  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2594$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2595  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2596$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2597  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2598fi
2599## -------------------- ##
2600## Main body of script. ##
2601## -------------------- ##
2602
2603ac_ext=c
2604ac_cpp='$CPP $CPPFLAGS'
2605ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2606ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2607ac_compiler_gnu=$ac_cv_c_compiler_gnu
2608
2609
2610
2611am__api_version='1.11'
2612
2613ac_aux_dir=
2614for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2615  if test -f "$ac_dir/install-sh"; then
2616    ac_aux_dir=$ac_dir
2617    ac_install_sh="$ac_aux_dir/install-sh -c"
2618    break
2619  elif test -f "$ac_dir/install.sh"; then
2620    ac_aux_dir=$ac_dir
2621    ac_install_sh="$ac_aux_dir/install.sh -c"
2622    break
2623  elif test -f "$ac_dir/shtool"; then
2624    ac_aux_dir=$ac_dir
2625    ac_install_sh="$ac_aux_dir/shtool install -c"
2626    break
2627  fi
2628done
2629if test -z "$ac_aux_dir"; then
2630  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2631fi
2632
2633# These three variables are undocumented and unsupported,
2634# and are intended to be withdrawn in a future Autoconf release.
2635# They can cause serious problems if a builder's source tree is in a directory
2636# whose full name contains unusual characters.
2637ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2638ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2639ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2640
2641
2642# Find a good install program.  We prefer a C program (faster),
2643# so one script is as good as another.  But avoid the broken or
2644# incompatible versions:
2645# SysV /etc/install, /usr/sbin/install
2646# SunOS /usr/etc/install
2647# IRIX /sbin/install
2648# AIX /bin/install
2649# AmigaOS /C/install, which installs bootblocks on floppy discs
2650# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2651# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2652# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2653# OS/2's system install, which has a completely different semantic
2654# ./install, which can be erroneously created by make from ./install.sh.
2655# Reject install programs that cannot install multiple files.
2656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2657$as_echo_n "checking for a BSD-compatible install... " >&6; }
2658if test -z "$INSTALL"; then
2659if test "${ac_cv_path_install+set}" = set; then :
2660  $as_echo_n "(cached) " >&6
2661else
2662  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663for as_dir in $PATH
2664do
2665  IFS=$as_save_IFS
2666  test -z "$as_dir" && as_dir=.
2667    # Account for people who put trailing slashes in PATH elements.
2668case $as_dir/ in #((
2669  ./ | .// | /[cC]/* | \
2670  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2671  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2672  /usr/ucb/* ) ;;
2673  *)
2674    # OSF1 and SCO ODT 3.0 have their own names for install.
2675    # Don't use installbsd from OSF since it installs stuff as root
2676    # by default.
2677    for ac_prog in ginstall scoinst install; do
2678      for ac_exec_ext in '' $ac_executable_extensions; do
2679	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2680	  if test $ac_prog = install &&
2681	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2682	    # AIX install.  It has an incompatible calling convention.
2683	    :
2684	  elif test $ac_prog = install &&
2685	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2686	    # program-specific install script used by HP pwplus--don't use.
2687	    :
2688	  else
2689	    rm -rf conftest.one conftest.two conftest.dir
2690	    echo one > conftest.one
2691	    echo two > conftest.two
2692	    mkdir conftest.dir
2693	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2694	      test -s conftest.one && test -s conftest.two &&
2695	      test -s conftest.dir/conftest.one &&
2696	      test -s conftest.dir/conftest.two
2697	    then
2698	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2699	      break 3
2700	    fi
2701	  fi
2702	fi
2703      done
2704    done
2705    ;;
2706esac
2707
2708  done
2709IFS=$as_save_IFS
2710
2711rm -rf conftest.one conftest.two conftest.dir
2712
2713fi
2714  if test "${ac_cv_path_install+set}" = set; then
2715    INSTALL=$ac_cv_path_install
2716  else
2717    # As a last resort, use the slow shell script.  Don't cache a
2718    # value for INSTALL within a source directory, because that will
2719    # break other packages using the cache if that directory is
2720    # removed, or if the value is a relative name.
2721    INSTALL=$ac_install_sh
2722  fi
2723fi
2724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2725$as_echo "$INSTALL" >&6; }
2726
2727# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2728# It thinks the first close brace ends the variable substitution.
2729test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2730
2731test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2732
2733test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2734
2735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2736$as_echo_n "checking whether build environment is sane... " >&6; }
2737# Just in case
2738sleep 1
2739echo timestamp > conftest.file
2740# Reject unsafe characters in $srcdir or the absolute working directory
2741# name.  Accept space and tab only in the latter.
2742am_lf='
2743'
2744case `pwd` in
2745  *[\\\"\#\$\&\'\`$am_lf]*)
2746    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2747esac
2748case $srcdir in
2749  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2750    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2751esac
2752
2753# Do `set' in a subshell so we don't clobber the current shell's
2754# arguments.  Must try -L first in case configure is actually a
2755# symlink; some systems play weird games with the mod time of symlinks
2756# (eg FreeBSD returns the mod time of the symlink's containing
2757# directory).
2758if (
2759   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2760   if test "$*" = "X"; then
2761      # -L didn't work.
2762      set X `ls -t "$srcdir/configure" conftest.file`
2763   fi
2764   rm -f conftest.file
2765   if test "$*" != "X $srcdir/configure conftest.file" \
2766      && test "$*" != "X conftest.file $srcdir/configure"; then
2767
2768      # If neither matched, then we have a broken ls.  This can happen
2769      # if, for instance, CONFIG_SHELL is bash and it inherits a
2770      # broken ls alias from the environment.  This has actually
2771      # happened.  Such a system could not be considered "sane".
2772      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2773alias in your environment" "$LINENO" 5
2774   fi
2775
2776   test "$2" = conftest.file
2777   )
2778then
2779   # Ok.
2780   :
2781else
2782   as_fn_error $? "newly created file is older than distributed files!
2783Check your system clock" "$LINENO" 5
2784fi
2785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2786$as_echo "yes" >&6; }
2787test "$program_prefix" != NONE &&
2788  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2789# Use a double $ so make ignores it.
2790test "$program_suffix" != NONE &&
2791  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2792# Double any \ or $.
2793# By default was `s,x,x', remove it if useless.
2794ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2795program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2796
2797# expand $ac_aux_dir to an absolute path
2798am_aux_dir=`cd $ac_aux_dir && pwd`
2799
2800if test x"${MISSING+set}" != xset; then
2801  case $am_aux_dir in
2802  *\ * | *\	*)
2803    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2804  *)
2805    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2806  esac
2807fi
2808# Use eval to expand $SHELL
2809if eval "$MISSING --run true"; then
2810  am_missing_run="$MISSING --run "
2811else
2812  am_missing_run=
2813  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2814$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2815fi
2816
2817if test x"${install_sh}" != xset; then
2818  case $am_aux_dir in
2819  *\ * | *\	*)
2820    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2821  *)
2822    install_sh="\${SHELL} $am_aux_dir/install-sh"
2823  esac
2824fi
2825
2826# Installed binaries are usually stripped using `strip' when the user
2827# run `make install-strip'.  However `strip' might not be the right
2828# tool to use in cross-compilation environments, therefore Automake
2829# will honor the `STRIP' environment variable to overrule this program.
2830if test "$cross_compiling" != no; then
2831  if test -n "$ac_tool_prefix"; then
2832  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2833set dummy ${ac_tool_prefix}strip; ac_word=$2
2834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2835$as_echo_n "checking for $ac_word... " >&6; }
2836if test "${ac_cv_prog_STRIP+set}" = set; then :
2837  $as_echo_n "(cached) " >&6
2838else
2839  if test -n "$STRIP"; then
2840  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2841else
2842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2843for as_dir in $PATH
2844do
2845  IFS=$as_save_IFS
2846  test -z "$as_dir" && as_dir=.
2847    for ac_exec_ext in '' $ac_executable_extensions; do
2848  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2849    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2850    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2851    break 2
2852  fi
2853done
2854  done
2855IFS=$as_save_IFS
2856
2857fi
2858fi
2859STRIP=$ac_cv_prog_STRIP
2860if test -n "$STRIP"; then
2861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2862$as_echo "$STRIP" >&6; }
2863else
2864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2865$as_echo "no" >&6; }
2866fi
2867
2868
2869fi
2870if test -z "$ac_cv_prog_STRIP"; then
2871  ac_ct_STRIP=$STRIP
2872  # Extract the first word of "strip", so it can be a program name with args.
2873set dummy strip; ac_word=$2
2874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2875$as_echo_n "checking for $ac_word... " >&6; }
2876if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2877  $as_echo_n "(cached) " >&6
2878else
2879  if test -n "$ac_ct_STRIP"; then
2880  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2881else
2882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883for as_dir in $PATH
2884do
2885  IFS=$as_save_IFS
2886  test -z "$as_dir" && as_dir=.
2887    for ac_exec_ext in '' $ac_executable_extensions; do
2888  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2889    ac_cv_prog_ac_ct_STRIP="strip"
2890    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2891    break 2
2892  fi
2893done
2894  done
2895IFS=$as_save_IFS
2896
2897fi
2898fi
2899ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2900if test -n "$ac_ct_STRIP"; then
2901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2902$as_echo "$ac_ct_STRIP" >&6; }
2903else
2904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2905$as_echo "no" >&6; }
2906fi
2907
2908  if test "x$ac_ct_STRIP" = x; then
2909    STRIP=":"
2910  else
2911    case $cross_compiling:$ac_tool_warned in
2912yes:)
2913{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2914$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2915ac_tool_warned=yes ;;
2916esac
2917    STRIP=$ac_ct_STRIP
2918  fi
2919else
2920  STRIP="$ac_cv_prog_STRIP"
2921fi
2922
2923fi
2924INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2925
2926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2927$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2928if test -z "$MKDIR_P"; then
2929  if test "${ac_cv_path_mkdir+set}" = set; then :
2930  $as_echo_n "(cached) " >&6
2931else
2932  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2934do
2935  IFS=$as_save_IFS
2936  test -z "$as_dir" && as_dir=.
2937    for ac_prog in mkdir gmkdir; do
2938	 for ac_exec_ext in '' $ac_executable_extensions; do
2939	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2940	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2941	     'mkdir (GNU coreutils) '* | \
2942	     'mkdir (coreutils) '* | \
2943	     'mkdir (fileutils) '4.1*)
2944	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2945	       break 3;;
2946	   esac
2947	 done
2948       done
2949  done
2950IFS=$as_save_IFS
2951
2952fi
2953
2954  test -d ./--version && rmdir ./--version
2955  if test "${ac_cv_path_mkdir+set}" = set; then
2956    MKDIR_P="$ac_cv_path_mkdir -p"
2957  else
2958    # As a last resort, use the slow shell script.  Don't cache a
2959    # value for MKDIR_P within a source directory, because that will
2960    # break other packages using the cache if that directory is
2961    # removed, or if the value is a relative name.
2962    MKDIR_P="$ac_install_sh -d"
2963  fi
2964fi
2965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2966$as_echo "$MKDIR_P" >&6; }
2967
2968mkdir_p="$MKDIR_P"
2969case $mkdir_p in
2970  [\\/$]* | ?:[\\/]*) ;;
2971  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2972esac
2973
2974for ac_prog in gawk mawk nawk awk
2975do
2976  # Extract the first word of "$ac_prog", so it can be a program name with args.
2977set dummy $ac_prog; ac_word=$2
2978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2979$as_echo_n "checking for $ac_word... " >&6; }
2980if test "${ac_cv_prog_AWK+set}" = set; then :
2981  $as_echo_n "(cached) " >&6
2982else
2983  if test -n "$AWK"; then
2984  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2985else
2986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987for as_dir in $PATH
2988do
2989  IFS=$as_save_IFS
2990  test -z "$as_dir" && as_dir=.
2991    for ac_exec_ext in '' $ac_executable_extensions; do
2992  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2993    ac_cv_prog_AWK="$ac_prog"
2994    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2995    break 2
2996  fi
2997done
2998  done
2999IFS=$as_save_IFS
3000
3001fi
3002fi
3003AWK=$ac_cv_prog_AWK
3004if test -n "$AWK"; then
3005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3006$as_echo "$AWK" >&6; }
3007else
3008  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3009$as_echo "no" >&6; }
3010fi
3011
3012
3013  test -n "$AWK" && break
3014done
3015
3016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3017$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3018set x ${MAKE-make}
3019ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3020if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3021  $as_echo_n "(cached) " >&6
3022else
3023  cat >conftest.make <<\_ACEOF
3024SHELL = /bin/sh
3025all:
3026	@echo '@@@%%%=$(MAKE)=@@@%%%'
3027_ACEOF
3028# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3029case `${MAKE-make} -f conftest.make 2>/dev/null` in
3030  *@@@%%%=?*=@@@%%%*)
3031    eval ac_cv_prog_make_${ac_make}_set=yes;;
3032  *)
3033    eval ac_cv_prog_make_${ac_make}_set=no;;
3034esac
3035rm -f conftest.make
3036fi
3037if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3039$as_echo "yes" >&6; }
3040  SET_MAKE=
3041else
3042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3043$as_echo "no" >&6; }
3044  SET_MAKE="MAKE=${MAKE-make}"
3045fi
3046
3047rm -rf .tst 2>/dev/null
3048mkdir .tst 2>/dev/null
3049if test -d .tst; then
3050  am__leading_dot=.
3051else
3052  am__leading_dot=_
3053fi
3054rmdir .tst 2>/dev/null
3055
3056if test "`cd $srcdir && pwd`" != "`pwd`"; then
3057  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3058  # is not polluted with repeated "-I."
3059  am__isrc=' -I$(srcdir)'
3060  # test to see if srcdir already configured
3061  if test -f $srcdir/config.status; then
3062    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3063  fi
3064fi
3065
3066# test whether we have cygpath
3067if test -z "$CYGPATH_W"; then
3068  if (cygpath --version) >/dev/null 2>/dev/null; then
3069    CYGPATH_W='cygpath -w'
3070  else
3071    CYGPATH_W=echo
3072  fi
3073fi
3074
3075
3076# Define the identity of the package.
3077 PACKAGE='mpfr'
3078 VERSION='3.0.1'
3079
3080
3081# Some tools Automake needs.
3082
3083ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3084
3085
3086AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3087
3088
3089AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3090
3091
3092AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3093
3094
3095MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3096
3097# We need awk for the "check" target.  The system "awk" is bad on
3098# some platforms.
3099# Always define AMTAR for backward compatibility.
3100
3101AMTAR=${AMTAR-"${am_missing_run}tar"}
3102
3103am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3104
3105
3106
3107
3108
3109
3110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable maintainer-specific portions of Makefiles" >&5
3111$as_echo_n "checking whether to disable maintainer-specific portions of Makefiles... " >&6; }
3112    # Check whether --enable-maintainer-mode was given.
3113if test "${enable_maintainer_mode+set}" = set; then :
3114  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3115else
3116  USE_MAINTAINER_MODE=yes
3117fi
3118
3119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3120$as_echo "$USE_MAINTAINER_MODE" >&6; }
3121   if test $USE_MAINTAINER_MODE = yes; then
3122  MAINTAINER_MODE_TRUE=
3123  MAINTAINER_MODE_FALSE='#'
3124else
3125  MAINTAINER_MODE_TRUE='#'
3126  MAINTAINER_MODE_FALSE=
3127fi
3128
3129  MAINT=$MAINTAINER_MODE_TRUE
3130
3131
3132
3133
3134
3135
3136test_CFLAGS=${CFLAGS+set}
3137
3138# Make sure we can run config.sub.
3139$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3140  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3141
3142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3143$as_echo_n "checking build system type... " >&6; }
3144if test "${ac_cv_build+set}" = set; then :
3145  $as_echo_n "(cached) " >&6
3146else
3147  ac_build_alias=$build_alias
3148test "x$ac_build_alias" = x &&
3149  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3150test "x$ac_build_alias" = x &&
3151  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3152ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3153  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3154
3155fi
3156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3157$as_echo "$ac_cv_build" >&6; }
3158case $ac_cv_build in
3159*-*-*) ;;
3160*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
3161esac
3162build=$ac_cv_build
3163ac_save_IFS=$IFS; IFS='-'
3164set x $ac_cv_build
3165shift
3166build_cpu=$1
3167build_vendor=$2
3168shift; shift
3169# Remember, the first character of IFS is used to create $*,
3170# except with old shells:
3171build_os=$*
3172IFS=$ac_save_IFS
3173case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3174
3175
3176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3177$as_echo_n "checking host system type... " >&6; }
3178if test "${ac_cv_host+set}" = set; then :
3179  $as_echo_n "(cached) " >&6
3180else
3181  if test "x$host_alias" = x; then
3182  ac_cv_host=$ac_cv_build
3183else
3184  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3185    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3186fi
3187
3188fi
3189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3190$as_echo "$ac_cv_host" >&6; }
3191case $ac_cv_host in
3192*-*-*) ;;
3193*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
3194esac
3195host=$ac_cv_host
3196ac_save_IFS=$IFS; IFS='-'
3197set x $ac_cv_host
3198shift
3199host_cpu=$1
3200host_vendor=$2
3201shift; shift
3202# Remember, the first character of IFS is used to create $*,
3203# except with old shells:
3204host_os=$*
3205IFS=$ac_save_IFS
3206case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3207
3208
3209
3210
3211unset gmp_lib_path GMP_CFLAGS GMP_CC
3212
3213# Check whether --with-gmp_include was given.
3214if test "${with_gmp_include+set}" = set; then :
3215  withval=$with_gmp_include; CPPFLAGS="$CPPFLAGS -I$withval"
3216fi
3217
3218
3219# Check whether --with-gmp_lib was given.
3220if test "${with_gmp_lib+set}" = set; then :
3221  withval=$with_gmp_lib;
3222   LDFLAGS="$LDFLAGS -L$withval"
3223   gmp_lib_path="$withval"
3224
3225fi
3226
3227
3228# Check whether --with-gmp was given.
3229if test "${with_gmp+set}" = set; then :
3230  withval=$with_gmp;
3231   if test -z "$with_gmp_lib" && test -z "$with_gmp_include" ; then
3232      CPPFLAGS="$CPPFLAGS -I$withval/include"
3233      LDFLAGS="$LDFLAGS -L$withval/lib"
3234      gmp_lib_path="$withval/lib"
3235   else
3236      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3237$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3238as_fn_error $? "Do not use --with-gmp and --with-gmp-include/--with-gmp-lib options simultaneously.
3239See \`config.log' for more details" "$LINENO" 5 ; }
3240   fi
3241
3242fi
3243
3244
3245
3246# Check whether --with-gmp_build was given.
3247if test "${with_gmp_build+set}" = set; then :
3248  withval=$with_gmp_build;
3249   if test -z "$gmp_lib_path" && test -z "$with_gmp_include" ; then
3250      CPPFLAGS="$CPPFLAGS -I$withval -I$withval/tune"
3251      LDFLAGS="$LDFLAGS -L$withval -L$withval/.libs -L$withval/tune/"
3252      gmp_lib_path="$withval$PATH_SEPARATOR$withval/.libs$PATH_SEPARATOR$withval/tune"
3253      if test -r $withval/Makefile ; then
3254         GMP_CFLAGS=`grep -w "CFLAGS =" $withval/Makefile | sed 's/CFLAGS = //'`
3255         GMP_CC=`grep -w "CC =" $withval/Makefile | sed 's/CC = //'`
3256      fi
3257      use_gmp_build=yes
3258   else
3259      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3260$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3261as_fn_error $? "Do not use --with-gmp-build and other --with-gmp options simultaneously.
3262See \`config.log' for more details" "$LINENO" 5 ; }
3263   fi
3264
3265fi
3266
3267
3268
3269# Check whether --with-mulhigh_size was given.
3270if test "${with_mulhigh_size+set}" = set; then :
3271  withval=$with_mulhigh_size;
3272cat >>confdefs.h <<_ACEOF
3273#define MPFR_MULHIGH_SIZE $withval
3274_ACEOF
3275
3276fi
3277
3278
3279# Check whether --enable-assert was given.
3280if test "${enable_assert+set}" = set; then :
3281  enableval=$enable_assert;  case $enableval in
3282      yes)
3283$as_echo "#define WANT_ASSERT 1" >>confdefs.h
3284 ;;
3285      no)  ;;
3286      full)
3287$as_echo "#define WANT_ASSERT 2" >>confdefs.h
3288 ;;
3289      *) as_fn_error $? "bad value for --enable-assert: yes, no or full" "$LINENO" 5  ;;
3290     esac
3291fi
3292
3293# Check whether --enable-logging was given.
3294if test "${enable_logging+set}" = set; then :
3295  enableval=$enable_logging;  disable_gcc_format_warning=yes
3296     case $enableval in
3297      yes)
3298$as_echo "#define MPFR_USE_LOGGING 1" >>confdefs.h
3299 ;;
3300      no)  ;;
3301      *)   as_fn_error $? "bad value for --enable-logging: yes or no" "$LINENO" 5  ;;
3302     esac
3303fi
3304
3305# Check whether --enable-thread-safe was given.
3306if test "${enable_thread_safe+set}" = set; then :
3307  enableval=$enable_thread_safe;  case $enableval in
3308      yes)
3309$as_echo "#define MPFR_USE_THREAD_SAFE 1" >>confdefs.h
3310 ;;
3311      no)  ;;
3312      *)   as_fn_error $? "bad value for --enable-thread-safe: yes or no" "$LINENO" 5  ;;
3313     esac
3314fi
3315
3316# Check whether --enable-warnings was given.
3317if test "${enable_warnings+set}" = set; then :
3318  enableval=$enable_warnings;  case $enableval in
3319      yes)
3320$as_echo "#define MPFR_USE_WARNINGS 1" >>confdefs.h
3321 ;;
3322      no)  ;;
3323      *)   as_fn_error $? "bad value for --enable-warnings: yes or no" "$LINENO" 5  ;;
3324     esac
3325fi
3326
3327
3328# Check whether --enable-tests-timeout was given.
3329if test "${enable_tests_timeout+set}" = set; then :
3330  enableval=$enable_tests_timeout;  case $enableval in
3331      no)   ;;
3332      yes)
3333$as_echo "#define MPFR_TESTS_TIMEOUT 0" >>confdefs.h
3334 ;;
3335      [0-9]|[0-9][0-9]|[0-9][0-9][0-9]|[0-9][0-9][0-9][0-9])
3336
3337cat >>confdefs.h <<_ACEOF
3338#define MPFR_TESTS_TIMEOUT $enableval
3339_ACEOF
3340 ;;
3341      *)    as_fn_error $? "bad value for --enable-tests-timeout" "$LINENO" 5  ;;
3342     esac
3343fi
3344
3345
3346
3347
3348if test -n "$CFLAGS" || test -n "$CC" ; then
3349 user_redefine_cc=yes
3350fi
3351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3352$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3353if test "${ac_cv_path_GREP+set}" = set; then :
3354  $as_echo_n "(cached) " >&6
3355else
3356  if test -z "$GREP"; then
3357  ac_path_GREP_found=false
3358  # Loop through the user's path and test for each of PROGNAME-LIST
3359  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3360for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3361do
3362  IFS=$as_save_IFS
3363  test -z "$as_dir" && as_dir=.
3364    for ac_prog in grep ggrep; do
3365    for ac_exec_ext in '' $ac_executable_extensions; do
3366      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3367      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3368# Check for GNU ac_path_GREP and select it if it is found.
3369  # Check for GNU $ac_path_GREP
3370case `"$ac_path_GREP" --version 2>&1` in
3371*GNU*)
3372  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3373*)
3374  ac_count=0
3375  $as_echo_n 0123456789 >"conftest.in"
3376  while :
3377  do
3378    cat "conftest.in" "conftest.in" >"conftest.tmp"
3379    mv "conftest.tmp" "conftest.in"
3380    cp "conftest.in" "conftest.nl"
3381    $as_echo 'GREP' >> "conftest.nl"
3382    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3383    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3384    as_fn_arith $ac_count + 1 && ac_count=$as_val
3385    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3386      # Best one so far, save it but keep looking for a better one
3387      ac_cv_path_GREP="$ac_path_GREP"
3388      ac_path_GREP_max=$ac_count
3389    fi
3390    # 10*(2^10) chars as input seems more than enough
3391    test $ac_count -gt 10 && break
3392  done
3393  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3394esac
3395
3396      $ac_path_GREP_found && break 3
3397    done
3398  done
3399  done
3400IFS=$as_save_IFS
3401  if test -z "$ac_cv_path_GREP"; then
3402    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3403  fi
3404else
3405  ac_cv_path_GREP=$GREP
3406fi
3407
3408fi
3409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3410$as_echo "$ac_cv_path_GREP" >&6; }
3411 GREP="$ac_cv_path_GREP"
3412
3413
3414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3415$as_echo_n "checking for egrep... " >&6; }
3416if test "${ac_cv_path_EGREP+set}" = set; then :
3417  $as_echo_n "(cached) " >&6
3418else
3419  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3420   then ac_cv_path_EGREP="$GREP -E"
3421   else
3422     if test -z "$EGREP"; then
3423  ac_path_EGREP_found=false
3424  # Loop through the user's path and test for each of PROGNAME-LIST
3425  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3426for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3427do
3428  IFS=$as_save_IFS
3429  test -z "$as_dir" && as_dir=.
3430    for ac_prog in egrep; do
3431    for ac_exec_ext in '' $ac_executable_extensions; do
3432      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3433      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3434# Check for GNU ac_path_EGREP and select it if it is found.
3435  # Check for GNU $ac_path_EGREP
3436case `"$ac_path_EGREP" --version 2>&1` in
3437*GNU*)
3438  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3439*)
3440  ac_count=0
3441  $as_echo_n 0123456789 >"conftest.in"
3442  while :
3443  do
3444    cat "conftest.in" "conftest.in" >"conftest.tmp"
3445    mv "conftest.tmp" "conftest.in"
3446    cp "conftest.in" "conftest.nl"
3447    $as_echo 'EGREP' >> "conftest.nl"
3448    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3449    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3450    as_fn_arith $ac_count + 1 && ac_count=$as_val
3451    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3452      # Best one so far, save it but keep looking for a better one
3453      ac_cv_path_EGREP="$ac_path_EGREP"
3454      ac_path_EGREP_max=$ac_count
3455    fi
3456    # 10*(2^10) chars as input seems more than enough
3457    test $ac_count -gt 10 && break
3458  done
3459  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3460esac
3461
3462      $ac_path_EGREP_found && break 3
3463    done
3464  done
3465  done
3466IFS=$as_save_IFS
3467  if test -z "$ac_cv_path_EGREP"; then
3468    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3469  fi
3470else
3471  ac_cv_path_EGREP=$EGREP
3472fi
3473
3474   fi
3475fi
3476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3477$as_echo "$ac_cv_path_EGREP" >&6; }
3478 EGREP="$ac_cv_path_EGREP"
3479
3480
3481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3482$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3483if test "${ac_cv_path_SED+set}" = set; then :
3484  $as_echo_n "(cached) " >&6
3485else
3486            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3487     for ac_i in 1 2 3 4 5 6 7; do
3488       ac_script="$ac_script$as_nl$ac_script"
3489     done
3490     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3491     { ac_script=; unset ac_script;}
3492     if test -z "$SED"; then
3493  ac_path_SED_found=false
3494  # Loop through the user's path and test for each of PROGNAME-LIST
3495  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3496for as_dir in $PATH
3497do
3498  IFS=$as_save_IFS
3499  test -z "$as_dir" && as_dir=.
3500    for ac_prog in sed gsed; do
3501    for ac_exec_ext in '' $ac_executable_extensions; do
3502      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3503      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3504# Check for GNU ac_path_SED and select it if it is found.
3505  # Check for GNU $ac_path_SED
3506case `"$ac_path_SED" --version 2>&1` in
3507*GNU*)
3508  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3509*)
3510  ac_count=0
3511  $as_echo_n 0123456789 >"conftest.in"
3512  while :
3513  do
3514    cat "conftest.in" "conftest.in" >"conftest.tmp"
3515    mv "conftest.tmp" "conftest.in"
3516    cp "conftest.in" "conftest.nl"
3517    $as_echo '' >> "conftest.nl"
3518    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3519    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3520    as_fn_arith $ac_count + 1 && ac_count=$as_val
3521    if test $ac_count -gt ${ac_path_SED_max-0}; then
3522      # Best one so far, save it but keep looking for a better one
3523      ac_cv_path_SED="$ac_path_SED"
3524      ac_path_SED_max=$ac_count
3525    fi
3526    # 10*(2^10) chars as input seems more than enough
3527    test $ac_count -gt 10 && break
3528  done
3529  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3530esac
3531
3532      $ac_path_SED_found && break 3
3533    done
3534  done
3535  done
3536IFS=$as_save_IFS
3537  if test -z "$ac_cv_path_SED"; then
3538    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3539  fi
3540else
3541  ac_cv_path_SED=$SED
3542fi
3543
3544fi
3545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3546$as_echo "$ac_cv_path_SED" >&6; }
3547 SED="$ac_cv_path_SED"
3548  rm -f conftest.sed
3549
3550
3551
3552if test -z "$user_redefine_cc" && test "$cross_compiling" != yes ; then
3553
3554if test -z "$GMP_CC$GMP_CFLAGS" ; then
3555   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CC and CFLAGS in gmp.h" >&5
3556$as_echo_n "checking for CC and CFLAGS in gmp.h... " >&6; }
3557   GMP_CC=__GMP_CC
3558   GMP_CFLAGS=__GMP_CFLAGS
3559   for cpp in /lib/cpp gcc cc c99
3560   do
3561     test $cpp = /lib/cpp || cpp="$cpp -E"
3562     echo foo > conftest.c
3563     if $cpp $CPPFLAGS conftest.c > /dev/null 2> /dev/null ; then
3564       # Get CC
3565       echo "#include \"gmp.h\"" >  conftest.c
3566       echo "MPFR_OPTION __GMP_CC"           >> conftest.c
3567       GMP_CC=`$cpp $CPPFLAGS conftest.c 2> /dev/null | $EGREP MPFR_OPTION | $SED -e 's/MPFR_OPTION //g' | $SED -e 's/"//g'`
3568       # Get CFLAGS
3569       echo "#include \"gmp.h\"" >  conftest.c
3570       echo "MPFR_OPTION __GMP_CFLAGS"           >> conftest.c
3571       GMP_CFLAGS=`$cpp $CPPFLAGS conftest.c 2> /dev/null | $EGREP MPFR_OPTION | $SED -e 's/MPFR_OPTION //g'| $SED -e 's/"//g'`
3572       break
3573     fi
3574   done
3575   rm -f conftest*
3576   if test "x$GMP_CC" = "x__GMP_CC" || test "x$GMP_CFLAGS" = "x__GMP_CFLAGS" ; then
3577      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3578$as_echo "no" >&6; }
3579      GMP_CFLAGS=
3580      GMP_CC=
3581   else
3582      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CC=$GMP_CC CFLAGS=$GMP_CFLAGS" >&5
3583$as_echo "yes CC=$GMP_CC CFLAGS=$GMP_CFLAGS" >&6; }
3584   fi
3585fi
3586
3587if test -n "$GMP_CC$GMP_CFLAGS" ; then
3588   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CC=$GMP_CC and CFLAGS=$GMP_CFLAGS" >&5
3589$as_echo_n "checking for CC=$GMP_CC and CFLAGS=$GMP_CFLAGS... " >&6; }
3590   echo "int main (void) { return 0; }" > conftest.c
3591   if $GMP_CC $GMP_CFLAGS -o conftest conftest.c 2> /dev/null ; then
3592     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3593$as_echo "yes" >&6; }
3594     CFLAGS=$GMP_CFLAGS
3595     CC=$GMP_CC
3596   else
3597     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3598$as_echo "no" >&6; }
3599   fi
3600   rm -f conftest*
3601fi
3602
3603fi
3604
3605
3606ac_ext=c
3607ac_cpp='$CPP $CPPFLAGS'
3608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3610ac_compiler_gnu=$ac_cv_c_compiler_gnu
3611if test -n "$ac_tool_prefix"; then
3612  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3613set dummy ${ac_tool_prefix}gcc; ac_word=$2
3614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3615$as_echo_n "checking for $ac_word... " >&6; }
3616if test "${ac_cv_prog_CC+set}" = set; then :
3617  $as_echo_n "(cached) " >&6
3618else
3619  if test -n "$CC"; then
3620  ac_cv_prog_CC="$CC" # Let the user override the test.
3621else
3622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3623for as_dir in $PATH
3624do
3625  IFS=$as_save_IFS
3626  test -z "$as_dir" && as_dir=.
3627    for ac_exec_ext in '' $ac_executable_extensions; do
3628  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3629    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3630    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3631    break 2
3632  fi
3633done
3634  done
3635IFS=$as_save_IFS
3636
3637fi
3638fi
3639CC=$ac_cv_prog_CC
3640if test -n "$CC"; then
3641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3642$as_echo "$CC" >&6; }
3643else
3644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3645$as_echo "no" >&6; }
3646fi
3647
3648
3649fi
3650if test -z "$ac_cv_prog_CC"; then
3651  ac_ct_CC=$CC
3652  # Extract the first word of "gcc", so it can be a program name with args.
3653set dummy gcc; ac_word=$2
3654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3655$as_echo_n "checking for $ac_word... " >&6; }
3656if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3657  $as_echo_n "(cached) " >&6
3658else
3659  if test -n "$ac_ct_CC"; then
3660  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3661else
3662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663for as_dir in $PATH
3664do
3665  IFS=$as_save_IFS
3666  test -z "$as_dir" && as_dir=.
3667    for ac_exec_ext in '' $ac_executable_extensions; do
3668  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3669    ac_cv_prog_ac_ct_CC="gcc"
3670    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3671    break 2
3672  fi
3673done
3674  done
3675IFS=$as_save_IFS
3676
3677fi
3678fi
3679ac_ct_CC=$ac_cv_prog_ac_ct_CC
3680if test -n "$ac_ct_CC"; then
3681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3682$as_echo "$ac_ct_CC" >&6; }
3683else
3684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3685$as_echo "no" >&6; }
3686fi
3687
3688  if test "x$ac_ct_CC" = x; then
3689    CC=""
3690  else
3691    case $cross_compiling:$ac_tool_warned in
3692yes:)
3693{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3694$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3695ac_tool_warned=yes ;;
3696esac
3697    CC=$ac_ct_CC
3698  fi
3699else
3700  CC="$ac_cv_prog_CC"
3701fi
3702
3703if test -z "$CC"; then
3704          if test -n "$ac_tool_prefix"; then
3705    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3706set dummy ${ac_tool_prefix}cc; ac_word=$2
3707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3708$as_echo_n "checking for $ac_word... " >&6; }
3709if test "${ac_cv_prog_CC+set}" = set; then :
3710  $as_echo_n "(cached) " >&6
3711else
3712  if test -n "$CC"; then
3713  ac_cv_prog_CC="$CC" # Let the user override the test.
3714else
3715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3716for as_dir in $PATH
3717do
3718  IFS=$as_save_IFS
3719  test -z "$as_dir" && as_dir=.
3720    for ac_exec_ext in '' $ac_executable_extensions; do
3721  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3722    ac_cv_prog_CC="${ac_tool_prefix}cc"
3723    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3724    break 2
3725  fi
3726done
3727  done
3728IFS=$as_save_IFS
3729
3730fi
3731fi
3732CC=$ac_cv_prog_CC
3733if test -n "$CC"; then
3734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3735$as_echo "$CC" >&6; }
3736else
3737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3738$as_echo "no" >&6; }
3739fi
3740
3741
3742  fi
3743fi
3744if test -z "$CC"; then
3745  # Extract the first word of "cc", so it can be a program name with args.
3746set dummy cc; ac_word=$2
3747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3748$as_echo_n "checking for $ac_word... " >&6; }
3749if test "${ac_cv_prog_CC+set}" = set; then :
3750  $as_echo_n "(cached) " >&6
3751else
3752  if test -n "$CC"; then
3753  ac_cv_prog_CC="$CC" # Let the user override the test.
3754else
3755  ac_prog_rejected=no
3756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3757for as_dir in $PATH
3758do
3759  IFS=$as_save_IFS
3760  test -z "$as_dir" && as_dir=.
3761    for ac_exec_ext in '' $ac_executable_extensions; do
3762  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3763    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3764       ac_prog_rejected=yes
3765       continue
3766     fi
3767    ac_cv_prog_CC="cc"
3768    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3769    break 2
3770  fi
3771done
3772  done
3773IFS=$as_save_IFS
3774
3775if test $ac_prog_rejected = yes; then
3776  # We found a bogon in the path, so make sure we never use it.
3777  set dummy $ac_cv_prog_CC
3778  shift
3779  if test $# != 0; then
3780    # We chose a different compiler from the bogus one.
3781    # However, it has the same basename, so the bogon will be chosen
3782    # first if we set CC to just the basename; use the full file name.
3783    shift
3784    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3785  fi
3786fi
3787fi
3788fi
3789CC=$ac_cv_prog_CC
3790if test -n "$CC"; then
3791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3792$as_echo "$CC" >&6; }
3793else
3794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3795$as_echo "no" >&6; }
3796fi
3797
3798
3799fi
3800if test -z "$CC"; then
3801  if test -n "$ac_tool_prefix"; then
3802  for ac_prog in cl.exe
3803  do
3804    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3805set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3807$as_echo_n "checking for $ac_word... " >&6; }
3808if test "${ac_cv_prog_CC+set}" = set; then :
3809  $as_echo_n "(cached) " >&6
3810else
3811  if test -n "$CC"; then
3812  ac_cv_prog_CC="$CC" # Let the user override the test.
3813else
3814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3815for as_dir in $PATH
3816do
3817  IFS=$as_save_IFS
3818  test -z "$as_dir" && as_dir=.
3819    for ac_exec_ext in '' $ac_executable_extensions; do
3820  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3821    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3822    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3823    break 2
3824  fi
3825done
3826  done
3827IFS=$as_save_IFS
3828
3829fi
3830fi
3831CC=$ac_cv_prog_CC
3832if test -n "$CC"; then
3833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3834$as_echo "$CC" >&6; }
3835else
3836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3837$as_echo "no" >&6; }
3838fi
3839
3840
3841    test -n "$CC" && break
3842  done
3843fi
3844if test -z "$CC"; then
3845  ac_ct_CC=$CC
3846  for ac_prog in cl.exe
3847do
3848  # Extract the first word of "$ac_prog", so it can be a program name with args.
3849set dummy $ac_prog; ac_word=$2
3850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3851$as_echo_n "checking for $ac_word... " >&6; }
3852if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3853  $as_echo_n "(cached) " >&6
3854else
3855  if test -n "$ac_ct_CC"; then
3856  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3857else
3858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3859for as_dir in $PATH
3860do
3861  IFS=$as_save_IFS
3862  test -z "$as_dir" && as_dir=.
3863    for ac_exec_ext in '' $ac_executable_extensions; do
3864  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3865    ac_cv_prog_ac_ct_CC="$ac_prog"
3866    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3867    break 2
3868  fi
3869done
3870  done
3871IFS=$as_save_IFS
3872
3873fi
3874fi
3875ac_ct_CC=$ac_cv_prog_ac_ct_CC
3876if test -n "$ac_ct_CC"; then
3877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3878$as_echo "$ac_ct_CC" >&6; }
3879else
3880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3881$as_echo "no" >&6; }
3882fi
3883
3884
3885  test -n "$ac_ct_CC" && break
3886done
3887
3888  if test "x$ac_ct_CC" = x; then
3889    CC=""
3890  else
3891    case $cross_compiling:$ac_tool_warned in
3892yes:)
3893{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3894$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3895ac_tool_warned=yes ;;
3896esac
3897    CC=$ac_ct_CC
3898  fi
3899fi
3900
3901fi
3902
3903
3904test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3905$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3906as_fn_error $? "no acceptable C compiler found in \$PATH
3907See \`config.log' for more details" "$LINENO" 5 ; }
3908
3909# Provide some information about the compiler.
3910$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3911set X $ac_compile
3912ac_compiler=$2
3913for ac_option in --version -v -V -qversion; do
3914  { { ac_try="$ac_compiler $ac_option >&5"
3915case "(($ac_try" in
3916  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3917  *) ac_try_echo=$ac_try;;
3918esac
3919eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3920$as_echo "$ac_try_echo"; } >&5
3921  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3922  ac_status=$?
3923  if test -s conftest.err; then
3924    sed '10a\
3925... rest of stderr output deleted ...
3926         10q' conftest.err >conftest.er1
3927    cat conftest.er1 >&5
3928  fi
3929  rm -f conftest.er1 conftest.err
3930  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3931  test $ac_status = 0; }
3932done
3933
3934cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3935/* end confdefs.h.  */
3936
3937int
3938main ()
3939{
3940
3941  ;
3942  return 0;
3943}
3944_ACEOF
3945ac_clean_files_save=$ac_clean_files
3946ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3947# Try to create an executable without -o first, disregard a.out.
3948# It will help us diagnose broken compilers, and finding out an intuition
3949# of exeext.
3950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3951$as_echo_n "checking whether the C compiler works... " >&6; }
3952ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3953
3954# The possible output files:
3955ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3956
3957ac_rmfiles=
3958for ac_file in $ac_files
3959do
3960  case $ac_file in
3961    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3962    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3963  esac
3964done
3965rm -f $ac_rmfiles
3966
3967if { { ac_try="$ac_link_default"
3968case "(($ac_try" in
3969  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3970  *) ac_try_echo=$ac_try;;
3971esac
3972eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3973$as_echo "$ac_try_echo"; } >&5
3974  (eval "$ac_link_default") 2>&5
3975  ac_status=$?
3976  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3977  test $ac_status = 0; }; then :
3978  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3979# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3980# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3981# so that the user can short-circuit this test for compilers unknown to
3982# Autoconf.
3983for ac_file in $ac_files ''
3984do
3985  test -f "$ac_file" || continue
3986  case $ac_file in
3987    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3988	;;
3989    [ab].out )
3990	# We found the default executable, but exeext='' is most
3991	# certainly right.
3992	break;;
3993    *.* )
3994	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3995	then :; else
3996	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3997	fi
3998	# We set ac_cv_exeext here because the later test for it is not
3999	# safe: cross compilers may not add the suffix if given an `-o'
4000	# argument, so we may need to know it at that point already.
4001	# Even if this section looks crufty: it has the advantage of
4002	# actually working.
4003	break;;
4004    * )
4005	break;;
4006  esac
4007done
4008test "$ac_cv_exeext" = no && ac_cv_exeext=
4009
4010else
4011  ac_file=''
4012fi
4013if test -z "$ac_file"; then :
4014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4015$as_echo "no" >&6; }
4016$as_echo "$as_me: failed program was:" >&5
4017sed 's/^/| /' conftest.$ac_ext >&5
4018
4019{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4020$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4021as_fn_error 77 "C compiler cannot create executables
4022See \`config.log' for more details" "$LINENO" 5 ; }
4023else
4024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4025$as_echo "yes" >&6; }
4026fi
4027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4028$as_echo_n "checking for C compiler default output file name... " >&6; }
4029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4030$as_echo "$ac_file" >&6; }
4031ac_exeext=$ac_cv_exeext
4032
4033rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4034ac_clean_files=$ac_clean_files_save
4035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4036$as_echo_n "checking for suffix of executables... " >&6; }
4037if { { ac_try="$ac_link"
4038case "(($ac_try" in
4039  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4040  *) ac_try_echo=$ac_try;;
4041esac
4042eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4043$as_echo "$ac_try_echo"; } >&5
4044  (eval "$ac_link") 2>&5
4045  ac_status=$?
4046  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4047  test $ac_status = 0; }; then :
4048  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4049# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4050# work properly (i.e., refer to `conftest.exe'), while it won't with
4051# `rm'.
4052for ac_file in conftest.exe conftest conftest.*; do
4053  test -f "$ac_file" || continue
4054  case $ac_file in
4055    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4056    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4057	  break;;
4058    * ) break;;
4059  esac
4060done
4061else
4062  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4063$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4064as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4065See \`config.log' for more details" "$LINENO" 5 ; }
4066fi
4067rm -f conftest conftest$ac_cv_exeext
4068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4069$as_echo "$ac_cv_exeext" >&6; }
4070
4071rm -f conftest.$ac_ext
4072EXEEXT=$ac_cv_exeext
4073ac_exeext=$EXEEXT
4074cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075/* end confdefs.h.  */
4076#include <stdio.h>
4077int
4078main ()
4079{
4080FILE *f = fopen ("conftest.out", "w");
4081 return ferror (f) || fclose (f) != 0;
4082
4083  ;
4084  return 0;
4085}
4086_ACEOF
4087ac_clean_files="$ac_clean_files conftest.out"
4088# Check that the compiler produces executables we can run.  If not, either
4089# the compiler is broken, or we cross compile.
4090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4091$as_echo_n "checking whether we are cross compiling... " >&6; }
4092if test "$cross_compiling" != yes; then
4093  { { ac_try="$ac_link"
4094case "(($ac_try" in
4095  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4096  *) ac_try_echo=$ac_try;;
4097esac
4098eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4099$as_echo "$ac_try_echo"; } >&5
4100  (eval "$ac_link") 2>&5
4101  ac_status=$?
4102  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4103  test $ac_status = 0; }
4104  if { ac_try='./conftest$ac_cv_exeext'
4105  { { case "(($ac_try" in
4106  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4107  *) ac_try_echo=$ac_try;;
4108esac
4109eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4110$as_echo "$ac_try_echo"; } >&5
4111  (eval "$ac_try") 2>&5
4112  ac_status=$?
4113  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4114  test $ac_status = 0; }; }; then
4115    cross_compiling=no
4116  else
4117    if test "$cross_compiling" = maybe; then
4118	cross_compiling=yes
4119    else
4120	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4121$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4122as_fn_error $? "cannot run C compiled programs.
4123If you meant to cross compile, use \`--host'.
4124See \`config.log' for more details" "$LINENO" 5 ; }
4125    fi
4126  fi
4127fi
4128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4129$as_echo "$cross_compiling" >&6; }
4130
4131rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4132ac_clean_files=$ac_clean_files_save
4133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4134$as_echo_n "checking for suffix of object files... " >&6; }
4135if test "${ac_cv_objext+set}" = set; then :
4136  $as_echo_n "(cached) " >&6
4137else
4138  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4139/* end confdefs.h.  */
4140
4141int
4142main ()
4143{
4144
4145  ;
4146  return 0;
4147}
4148_ACEOF
4149rm -f conftest.o conftest.obj
4150if { { ac_try="$ac_compile"
4151case "(($ac_try" in
4152  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4153  *) ac_try_echo=$ac_try;;
4154esac
4155eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4156$as_echo "$ac_try_echo"; } >&5
4157  (eval "$ac_compile") 2>&5
4158  ac_status=$?
4159  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4160  test $ac_status = 0; }; then :
4161  for ac_file in conftest.o conftest.obj conftest.*; do
4162  test -f "$ac_file" || continue;
4163  case $ac_file in
4164    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4165    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4166       break;;
4167  esac
4168done
4169else
4170  $as_echo "$as_me: failed program was:" >&5
4171sed 's/^/| /' conftest.$ac_ext >&5
4172
4173{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4174$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4175as_fn_error $? "cannot compute suffix of object files: cannot compile
4176See \`config.log' for more details" "$LINENO" 5 ; }
4177fi
4178rm -f conftest.$ac_cv_objext conftest.$ac_ext
4179fi
4180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4181$as_echo "$ac_cv_objext" >&6; }
4182OBJEXT=$ac_cv_objext
4183ac_objext=$OBJEXT
4184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4185$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4186if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4187  $as_echo_n "(cached) " >&6
4188else
4189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4190/* end confdefs.h.  */
4191
4192int
4193main ()
4194{
4195#ifndef __GNUC__
4196       choke me
4197#endif
4198
4199  ;
4200  return 0;
4201}
4202_ACEOF
4203if ac_fn_c_try_compile "$LINENO"; then :
4204  ac_compiler_gnu=yes
4205else
4206  ac_compiler_gnu=no
4207fi
4208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4209ac_cv_c_compiler_gnu=$ac_compiler_gnu
4210
4211fi
4212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4213$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4214if test $ac_compiler_gnu = yes; then
4215  GCC=yes
4216else
4217  GCC=
4218fi
4219ac_test_CFLAGS=${CFLAGS+set}
4220ac_save_CFLAGS=$CFLAGS
4221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4222$as_echo_n "checking whether $CC accepts -g... " >&6; }
4223if test "${ac_cv_prog_cc_g+set}" = set; then :
4224  $as_echo_n "(cached) " >&6
4225else
4226  ac_save_c_werror_flag=$ac_c_werror_flag
4227   ac_c_werror_flag=yes
4228   ac_cv_prog_cc_g=no
4229   CFLAGS="-g"
4230   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4231/* end confdefs.h.  */
4232
4233int
4234main ()
4235{
4236
4237  ;
4238  return 0;
4239}
4240_ACEOF
4241if ac_fn_c_try_compile "$LINENO"; then :
4242  ac_cv_prog_cc_g=yes
4243else
4244  CFLAGS=""
4245      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4246/* end confdefs.h.  */
4247
4248int
4249main ()
4250{
4251
4252  ;
4253  return 0;
4254}
4255_ACEOF
4256if ac_fn_c_try_compile "$LINENO"; then :
4257
4258else
4259  ac_c_werror_flag=$ac_save_c_werror_flag
4260	 CFLAGS="-g"
4261	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4262/* end confdefs.h.  */
4263
4264int
4265main ()
4266{
4267
4268  ;
4269  return 0;
4270}
4271_ACEOF
4272if ac_fn_c_try_compile "$LINENO"; then :
4273  ac_cv_prog_cc_g=yes
4274fi
4275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4276fi
4277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4278fi
4279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4280   ac_c_werror_flag=$ac_save_c_werror_flag
4281fi
4282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4283$as_echo "$ac_cv_prog_cc_g" >&6; }
4284if test "$ac_test_CFLAGS" = set; then
4285  CFLAGS=$ac_save_CFLAGS
4286elif test $ac_cv_prog_cc_g = yes; then
4287  if test "$GCC" = yes; then
4288    CFLAGS="-g -O2"
4289  else
4290    CFLAGS="-g"
4291  fi
4292else
4293  if test "$GCC" = yes; then
4294    CFLAGS="-O2"
4295  else
4296    CFLAGS=
4297  fi
4298fi
4299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4300$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4301if test "${ac_cv_prog_cc_c89+set}" = set; then :
4302  $as_echo_n "(cached) " >&6
4303else
4304  ac_cv_prog_cc_c89=no
4305ac_save_CC=$CC
4306cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4307/* end confdefs.h.  */
4308#include <stdarg.h>
4309#include <stdio.h>
4310#include <sys/types.h>
4311#include <sys/stat.h>
4312/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4313struct buf { int x; };
4314FILE * (*rcsopen) (struct buf *, struct stat *, int);
4315static char *e (p, i)
4316     char **p;
4317     int i;
4318{
4319  return p[i];
4320}
4321static char *f (char * (*g) (char **, int), char **p, ...)
4322{
4323  char *s;
4324  va_list v;
4325  va_start (v,p);
4326  s = g (p, va_arg (v,int));
4327  va_end (v);
4328  return s;
4329}
4330
4331/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4332   function prototypes and stuff, but not '\xHH' hex character constants.
4333   These don't provoke an error unfortunately, instead are silently treated
4334   as 'x'.  The following induces an error, until -std is added to get
4335   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4336   array size at least.  It's necessary to write '\x00'==0 to get something
4337   that's true only with -std.  */
4338int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4339
4340/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4341   inside strings and character constants.  */
4342#define FOO(x) 'x'
4343int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4344
4345int test (int i, double x);
4346struct s1 {int (*f) (int a);};
4347struct s2 {int (*f) (double a);};
4348int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4349int argc;
4350char **argv;
4351int
4352main ()
4353{
4354return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4355  ;
4356  return 0;
4357}
4358_ACEOF
4359for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4360	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4361do
4362  CC="$ac_save_CC $ac_arg"
4363  if ac_fn_c_try_compile "$LINENO"; then :
4364  ac_cv_prog_cc_c89=$ac_arg
4365fi
4366rm -f core conftest.err conftest.$ac_objext
4367  test "x$ac_cv_prog_cc_c89" != "xno" && break
4368done
4369rm -f conftest.$ac_ext
4370CC=$ac_save_CC
4371
4372fi
4373# AC_CACHE_VAL
4374case "x$ac_cv_prog_cc_c89" in
4375  x)
4376    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4377$as_echo "none needed" >&6; } ;;
4378  xno)
4379    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4380$as_echo "unsupported" >&6; } ;;
4381  *)
4382    CC="$CC $ac_cv_prog_cc_c89"
4383    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4384$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4385esac
4386if test "x$ac_cv_prog_cc_c89" != xno; then :
4387
4388fi
4389
4390ac_ext=c
4391ac_cpp='$CPP $CPPFLAGS'
4392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4394ac_compiler_gnu=$ac_cv_c_compiler_gnu
4395DEPDIR="${am__leading_dot}deps"
4396
4397ac_config_commands="$ac_config_commands depfiles"
4398
4399
4400am_make=${MAKE-make}
4401cat > confinc << 'END'
4402am__doit:
4403	@echo this is the am__doit target
4404.PHONY: am__doit
4405END
4406# If we don't find an include directive, just comment out the code.
4407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4408$as_echo_n "checking for style of include used by $am_make... " >&6; }
4409am__include="#"
4410am__quote=
4411_am_result=none
4412# First try GNU make style include.
4413echo "include confinc" > confmf
4414# Ignore all kinds of additional output from `make'.
4415case `$am_make -s -f confmf 2> /dev/null` in #(
4416*the\ am__doit\ target*)
4417  am__include=include
4418  am__quote=
4419  _am_result=GNU
4420  ;;
4421esac
4422# Now try BSD make style include.
4423if test "$am__include" = "#"; then
4424   echo '.include "confinc"' > confmf
4425   case `$am_make -s -f confmf 2> /dev/null` in #(
4426   *the\ am__doit\ target*)
4427     am__include=.include
4428     am__quote="\""
4429     _am_result=BSD
4430     ;;
4431   esac
4432fi
4433
4434
4435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4436$as_echo "$_am_result" >&6; }
4437rm -f confinc confmf
4438
4439# Check whether --enable-dependency-tracking was given.
4440if test "${enable_dependency_tracking+set}" = set; then :
4441  enableval=$enable_dependency_tracking;
4442fi
4443
4444if test "x$enable_dependency_tracking" != xno; then
4445  am_depcomp="$ac_aux_dir/depcomp"
4446  AMDEPBACKSLASH='\'
4447fi
4448 if test "x$enable_dependency_tracking" != xno; then
4449  AMDEP_TRUE=
4450  AMDEP_FALSE='#'
4451else
4452  AMDEP_TRUE='#'
4453  AMDEP_FALSE=
4454fi
4455
4456
4457
4458depcc="$CC"   am_compiler_list=
4459
4460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4461$as_echo_n "checking dependency style of $depcc... " >&6; }
4462if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4463  $as_echo_n "(cached) " >&6
4464else
4465  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4466  # We make a subdir and do the tests there.  Otherwise we can end up
4467  # making bogus files that we don't know about and never remove.  For
4468  # instance it was reported that on HP-UX the gcc test will end up
4469  # making a dummy file named `D' -- because `-MD' means `put the output
4470  # in D'.
4471  mkdir conftest.dir
4472  # Copy depcomp to subdir because otherwise we won't find it if we're
4473  # using a relative directory.
4474  cp "$am_depcomp" conftest.dir
4475  cd conftest.dir
4476  # We will build objects and dependencies in a subdirectory because
4477  # it helps to detect inapplicable dependency modes.  For instance
4478  # both Tru64's cc and ICC support -MD to output dependencies as a
4479  # side effect of compilation, but ICC will put the dependencies in
4480  # the current directory while Tru64 will put them in the object
4481  # directory.
4482  mkdir sub
4483
4484  am_cv_CC_dependencies_compiler_type=none
4485  if test "$am_compiler_list" = ""; then
4486     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4487  fi
4488  am__universal=false
4489  case " $depcc " in #(
4490     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4491     esac
4492
4493  for depmode in $am_compiler_list; do
4494    # Setup a source with many dependencies, because some compilers
4495    # like to wrap large dependency lists on column 80 (with \), and
4496    # we should not choose a depcomp mode which is confused by this.
4497    #
4498    # We need to recreate these files for each test, as the compiler may
4499    # overwrite some of them when testing with obscure command lines.
4500    # This happens at least with the AIX C compiler.
4501    : > sub/conftest.c
4502    for i in 1 2 3 4 5 6; do
4503      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4504      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4505      # Solaris 8's {/usr,}/bin/sh.
4506      touch sub/conftst$i.h
4507    done
4508    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4509
4510    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4511    # mode.  It turns out that the SunPro C++ compiler does not properly
4512    # handle `-M -o', and we need to detect this.  Also, some Intel
4513    # versions had trouble with output in subdirs
4514    am__obj=sub/conftest.${OBJEXT-o}
4515    am__minus_obj="-o $am__obj"
4516    case $depmode in
4517    gcc)
4518      # This depmode causes a compiler race in universal mode.
4519      test "$am__universal" = false || continue
4520      ;;
4521    nosideeffect)
4522      # after this tag, mechanisms are not by side-effect, so they'll
4523      # only be used when explicitly requested
4524      if test "x$enable_dependency_tracking" = xyes; then
4525	continue
4526      else
4527	break
4528      fi
4529      ;;
4530    msvisualcpp | msvcmsys)
4531      # This compiler won't grok `-c -o', but also, the minuso test has
4532      # not run yet.  These depmodes are late enough in the game, and
4533      # so weak that their functioning should not be impacted.
4534      am__obj=conftest.${OBJEXT-o}
4535      am__minus_obj=
4536      ;;
4537    none) break ;;
4538    esac
4539    if depmode=$depmode \
4540       source=sub/conftest.c object=$am__obj \
4541       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4542       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4543         >/dev/null 2>conftest.err &&
4544       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4545       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4546       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4547       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4548      # icc doesn't choke on unknown options, it will just issue warnings
4549      # or remarks (even with -Werror).  So we grep stderr for any message
4550      # that says an option was ignored or not supported.
4551      # When given -MP, icc 7.0 and 7.1 complain thusly:
4552      #   icc: Command line warning: ignoring option '-M'; no argument required
4553      # The diagnosis changed in icc 8.0:
4554      #   icc: Command line remark: option '-MP' not supported
4555      if (grep 'ignoring option' conftest.err ||
4556          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4557        am_cv_CC_dependencies_compiler_type=$depmode
4558        break
4559      fi
4560    fi
4561  done
4562
4563  cd ..
4564  rm -rf conftest.dir
4565else
4566  am_cv_CC_dependencies_compiler_type=none
4567fi
4568
4569fi
4570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4571$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4572CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4573
4574 if
4575  test "x$enable_dependency_tracking" != xno \
4576  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4577  am__fastdepCC_TRUE=
4578  am__fastdepCC_FALSE='#'
4579else
4580  am__fastdepCC_TRUE='#'
4581  am__fastdepCC_FALSE=
4582fi
4583
4584
4585ac_ext=c
4586ac_cpp='$CPP $CPPFLAGS'
4587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4589ac_compiler_gnu=$ac_cv_c_compiler_gnu
4590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4591$as_echo_n "checking how to run the C preprocessor... " >&6; }
4592# On Suns, sometimes $CPP names a directory.
4593if test -n "$CPP" && test -d "$CPP"; then
4594  CPP=
4595fi
4596if test -z "$CPP"; then
4597  if test "${ac_cv_prog_CPP+set}" = set; then :
4598  $as_echo_n "(cached) " >&6
4599else
4600      # Double quotes because CPP needs to be expanded
4601    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4602    do
4603      ac_preproc_ok=false
4604for ac_c_preproc_warn_flag in '' yes
4605do
4606  # Use a header file that comes with gcc, so configuring glibc
4607  # with a fresh cross-compiler works.
4608  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4609  # <limits.h> exists even on freestanding compilers.
4610  # On the NeXT, cc -E runs the code through the compiler's parser,
4611  # not just through cpp. "Syntax error" is here to catch this case.
4612  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4613/* end confdefs.h.  */
4614#ifdef __STDC__
4615# include <limits.h>
4616#else
4617# include <assert.h>
4618#endif
4619		     Syntax error
4620_ACEOF
4621if ac_fn_c_try_cpp "$LINENO"; then :
4622
4623else
4624  # Broken: fails on valid input.
4625continue
4626fi
4627rm -f conftest.err conftest.i conftest.$ac_ext
4628
4629  # OK, works on sane cases.  Now check whether nonexistent headers
4630  # can be detected and how.
4631  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4632/* end confdefs.h.  */
4633#include <ac_nonexistent.h>
4634_ACEOF
4635if ac_fn_c_try_cpp "$LINENO"; then :
4636  # Broken: success on invalid input.
4637continue
4638else
4639  # Passes both tests.
4640ac_preproc_ok=:
4641break
4642fi
4643rm -f conftest.err conftest.i conftest.$ac_ext
4644
4645done
4646# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4647rm -f conftest.i conftest.err conftest.$ac_ext
4648if $ac_preproc_ok; then :
4649  break
4650fi
4651
4652    done
4653    ac_cv_prog_CPP=$CPP
4654
4655fi
4656  CPP=$ac_cv_prog_CPP
4657else
4658  ac_cv_prog_CPP=$CPP
4659fi
4660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4661$as_echo "$CPP" >&6; }
4662ac_preproc_ok=false
4663for ac_c_preproc_warn_flag in '' yes
4664do
4665  # Use a header file that comes with gcc, so configuring glibc
4666  # with a fresh cross-compiler works.
4667  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4668  # <limits.h> exists even on freestanding compilers.
4669  # On the NeXT, cc -E runs the code through the compiler's parser,
4670  # not just through cpp. "Syntax error" is here to catch this case.
4671  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4672/* end confdefs.h.  */
4673#ifdef __STDC__
4674# include <limits.h>
4675#else
4676# include <assert.h>
4677#endif
4678		     Syntax error
4679_ACEOF
4680if ac_fn_c_try_cpp "$LINENO"; then :
4681
4682else
4683  # Broken: fails on valid input.
4684continue
4685fi
4686rm -f conftest.err conftest.i conftest.$ac_ext
4687
4688  # OK, works on sane cases.  Now check whether nonexistent headers
4689  # can be detected and how.
4690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4691/* end confdefs.h.  */
4692#include <ac_nonexistent.h>
4693_ACEOF
4694if ac_fn_c_try_cpp "$LINENO"; then :
4695  # Broken: success on invalid input.
4696continue
4697else
4698  # Passes both tests.
4699ac_preproc_ok=:
4700break
4701fi
4702rm -f conftest.err conftest.i conftest.$ac_ext
4703
4704done
4705# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4706rm -f conftest.i conftest.err conftest.$ac_ext
4707if $ac_preproc_ok; then :
4708
4709else
4710  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4711$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4712as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4713See \`config.log' for more details" "$LINENO" 5 ; }
4714fi
4715
4716ac_ext=c
4717ac_cpp='$CPP $CPPFLAGS'
4718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4720ac_compiler_gnu=$ac_cv_c_compiler_gnu
4721
4722ac_ext=c
4723ac_cpp='$CPP $CPPFLAGS'
4724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4726ac_compiler_gnu=$ac_cv_c_compiler_gnu
4727
4728
4729
4730# Check whether --enable-decimal-float was given.
4731if test "${enable_decimal_float+set}" = set; then :
4732  enableval=$enable_decimal_float;  case $enableval in
4733      yes)
4734$as_echo "#define MPFR_WANT_DECIMAL_FLOATS 1" >>confdefs.h
4735
4736           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler knows _Decimal64" >&5
4737$as_echo_n "checking if compiler knows _Decimal64... " >&6; }
4738           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739/* end confdefs.h.  */
4740_Decimal64 x;
4741int
4742main ()
4743{
4744
4745  ;
4746  return 0;
4747}
4748_ACEOF
4749if ac_fn_c_try_compile "$LINENO"; then :
4750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4751$as_echo "yes" >&6; }
4752               if test "$use_gmp_build" != yes ; then
4753                  as_fn_error $? "decimal float support requires --with-gmp-build" "$LINENO" 5
4754               fi
4755               { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _GMP_IEEE_FLOATS is defined" >&5
4756$as_echo_n "checking if _GMP_IEEE_FLOATS is defined... " >&6; }
4757               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4758/* end confdefs.h.  */
4759
4760#include "gmp.h"
4761#include "gmp-impl.h"
4762#ifndef _GMP_IEEE_FLOATS
4763#error "_GMP_IEEE_FLOATS is not defined"
4764#endif
4765_ACEOF
4766if ac_fn_c_try_compile "$LINENO"; then :
4767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4768$as_echo "yes" >&6; }
4769else
4770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4771$as_echo "no" >&6; }
4772                  as_fn_error $? "decimal float support requires _GMP_IEEE_FLOATS" "$LINENO" 5
4773fi
4774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4775
4776else
4777  as_fn_error $? "Compiler doesn't know _Decimal64; try GCC >= 4.2, configured with --enable-decimal-float
4778           " "$LINENO" 5
4779fi
4780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4781           { $as_echo "$as_me:${as_lineno-$LINENO}: checking decimal float format" >&5
4782$as_echo_n "checking decimal float format... " >&6; }
4783           if test "$cross_compiling" = yes; then :
4784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming DPD" >&5
4785$as_echo "assuming DPD" >&6; }
4786       $as_echo "#define DPD_FORMAT 1" >>confdefs.h
4787
4788else
4789  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4790/* end confdefs.h.  */
4791
4792#include <stdlib.h>
4793
4794int
4795main ()
4796{
4797
4798union { double d; _Decimal64 d64; } y;
4799y.d64 = 1234567890123456.0dd;
4800return y.d == 0.14894469406741037E-123 ? 0 :
4801       y.d == 0.59075095508629822E-68  ? 1 : 2;
4802
4803  ;
4804  return 0;
4805}
4806_ACEOF
4807if ac_fn_c_try_run "$LINENO"; then :
4808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: DPD" >&5
4809$as_echo "DPD" >&6; }
4810       $as_echo "#define DPD_FORMAT 1" >>confdefs.h
4811
4812else
4813  if test "$?" != 1 ; then
4814          { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4815$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4816as_fn_error $? "neither DPD nor BID
4817See \`config.log' for more details" "$LINENO" 5 ; }
4818       fi
4819       { $as_echo "$as_me:${as_lineno-$LINENO}: result: BID" >&5
4820$as_echo "BID" >&6; }
4821fi
4822rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4823  conftest.$ac_objext conftest.beam conftest.$ac_ext
4824fi
4825
4826           ;;
4827      no)  ;;
4828      *)   as_fn_error $? "bad value for --enable-decimal-float: yes or no" "$LINENO" 5  ;;
4829     esac
4830fi
4831
4832
4833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICC" >&5
4834$as_echo_n "checking for ICC... " >&6; }
4835cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4836/* end confdefs.h.  */
4837
4838#if !defined(__ICC)
4839# error "ICC Not Found"
4840error
4841#endif
4842
4843int
4844main ()
4845{
4846
4847  ;
4848  return 0;
4849}
4850_ACEOF
4851if ac_fn_c_try_compile "$LINENO"; then :
4852
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4854$as_echo "yes" >&6; }
4855 CFLAGS="-fp_port -mp -wd1572 -wd265 -wd186 -wd239 $CFLAGS"
4856
4857else
4858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4859$as_echo "no" >&6; }
4860fi
4861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4862
4863if test "$test_CFLAGS" != set && test -n "$GCC"; then
4864  CFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith $CFLAGS"
4865  if test -n "$disable_gcc_format_warning" ; then
4866   CFLAGS="$CFLAGS -Wno-format"
4867  fi
4868fi
4869
4870if test "x$CC" != xcc; then
4871  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4872$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4873else
4874  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4875$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4876fi
4877set dummy $CC; ac_cc=`$as_echo "$2" |
4878		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4879if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
4880  $as_echo_n "(cached) " >&6
4881else
4882  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4883/* end confdefs.h.  */
4884
4885int
4886main ()
4887{
4888
4889  ;
4890  return 0;
4891}
4892_ACEOF
4893# Make sure it works both with $CC and with simple cc.
4894# We do the test twice because some compilers refuse to overwrite an
4895# existing .o file with -o, though they will create one.
4896ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4897rm -f conftest2.*
4898if { { case "(($ac_try" in
4899  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4900  *) ac_try_echo=$ac_try;;
4901esac
4902eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4903$as_echo "$ac_try_echo"; } >&5
4904  (eval "$ac_try") 2>&5
4905  ac_status=$?
4906  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4907  test $ac_status = 0; } &&
4908   test -f conftest2.$ac_objext && { { case "(($ac_try" in
4909  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4910  *) ac_try_echo=$ac_try;;
4911esac
4912eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4913$as_echo "$ac_try_echo"; } >&5
4914  (eval "$ac_try") 2>&5
4915  ac_status=$?
4916  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4917  test $ac_status = 0; };
4918then
4919  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4920  if test "x$CC" != xcc; then
4921    # Test first that cc exists at all.
4922    if { ac_try='cc -c conftest.$ac_ext >&5'
4923  { { case "(($ac_try" in
4924  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4925  *) ac_try_echo=$ac_try;;
4926esac
4927eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4928$as_echo "$ac_try_echo"; } >&5
4929  (eval "$ac_try") 2>&5
4930  ac_status=$?
4931  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4932  test $ac_status = 0; }; }; then
4933      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4934      rm -f conftest2.*
4935      if { { case "(($ac_try" in
4936  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4937  *) ac_try_echo=$ac_try;;
4938esac
4939eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4940$as_echo "$ac_try_echo"; } >&5
4941  (eval "$ac_try") 2>&5
4942  ac_status=$?
4943  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4944  test $ac_status = 0; } &&
4945	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4946  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4947  *) ac_try_echo=$ac_try;;
4948esac
4949eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4950$as_echo "$ac_try_echo"; } >&5
4951  (eval "$ac_try") 2>&5
4952  ac_status=$?
4953  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4954  test $ac_status = 0; };
4955      then
4956	# cc works too.
4957	:
4958      else
4959	# cc exists but doesn't like -o.
4960	eval ac_cv_prog_cc_${ac_cc}_c_o=no
4961      fi
4962    fi
4963  fi
4964else
4965  eval ac_cv_prog_cc_${ac_cc}_c_o=no
4966fi
4967rm -f core conftest*
4968
4969fi
4970if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4972$as_echo "yes" >&6; }
4973else
4974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4975$as_echo "no" >&6; }
4976
4977$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4978
4979fi
4980
4981# FIXME: we rely on the cache variable name because
4982# there is no other way.
4983set dummy $CC
4984am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4985eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4986if test "$am_t" != yes; then
4987   # Losing compiler, so override with the script.
4988   # FIXME: It is wrong to rewrite CC.
4989   # But if we don't then we get into trouble of one sort or another.
4990   # A longer-term fix would be to have automake use am__CC in this case,
4991   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4992   CC="$am_aux_dir/compile $CC"
4993fi
4994
4995
4996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
4997$as_echo_n "checking for function prototypes... " >&6; }
4998if test "$ac_cv_prog_cc_c89" != no; then
4999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5000$as_echo "yes" >&6; }
5001
5002$as_echo "#define PROTOTYPES 1" >>confdefs.h
5003
5004
5005$as_echo "#define __PROTOTYPES 1" >>confdefs.h
5006
5007else
5008  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5009$as_echo "no" >&6; }
5010fi
5011
5012
5013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5014$as_echo_n "checking for ANSI C header files... " >&6; }
5015if test "${ac_cv_header_stdc+set}" = set; then :
5016  $as_echo_n "(cached) " >&6
5017else
5018  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5019/* end confdefs.h.  */
5020#include <stdlib.h>
5021#include <stdarg.h>
5022#include <string.h>
5023#include <float.h>
5024
5025int
5026main ()
5027{
5028
5029  ;
5030  return 0;
5031}
5032_ACEOF
5033if ac_fn_c_try_compile "$LINENO"; then :
5034  ac_cv_header_stdc=yes
5035else
5036  ac_cv_header_stdc=no
5037fi
5038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5039
5040if test $ac_cv_header_stdc = yes; then
5041  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5042  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5043/* end confdefs.h.  */
5044#include <string.h>
5045
5046_ACEOF
5047if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5048  $EGREP "memchr" >/dev/null 2>&1; then :
5049
5050else
5051  ac_cv_header_stdc=no
5052fi
5053rm -f conftest*
5054
5055fi
5056
5057if test $ac_cv_header_stdc = yes; then
5058  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5060/* end confdefs.h.  */
5061#include <stdlib.h>
5062
5063_ACEOF
5064if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5065  $EGREP "free" >/dev/null 2>&1; then :
5066
5067else
5068  ac_cv_header_stdc=no
5069fi
5070rm -f conftest*
5071
5072fi
5073
5074if test $ac_cv_header_stdc = yes; then
5075  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5076  if test "$cross_compiling" = yes; then :
5077  :
5078else
5079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5080/* end confdefs.h.  */
5081#include <ctype.h>
5082#include <stdlib.h>
5083#if ((' ' & 0x0FF) == 0x020)
5084# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5085# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5086#else
5087# define ISLOWER(c) \
5088		   (('a' <= (c) && (c) <= 'i') \
5089		     || ('j' <= (c) && (c) <= 'r') \
5090		     || ('s' <= (c) && (c) <= 'z'))
5091# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5092#endif
5093
5094#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5095int
5096main ()
5097{
5098  int i;
5099  for (i = 0; i < 256; i++)
5100    if (XOR (islower (i), ISLOWER (i))
5101	|| toupper (i) != TOUPPER (i))
5102      return 2;
5103  return 0;
5104}
5105_ACEOF
5106if ac_fn_c_try_run "$LINENO"; then :
5107
5108else
5109  ac_cv_header_stdc=no
5110fi
5111rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5112  conftest.$ac_objext conftest.beam conftest.$ac_ext
5113fi
5114
5115fi
5116fi
5117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5118$as_echo "$ac_cv_header_stdc" >&6; }
5119if test $ac_cv_header_stdc = yes; then
5120
5121$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5122
5123fi
5124
5125# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5126for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5127		  inttypes.h stdint.h unistd.h
5128do :
5129  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5130ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5131"
5132if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5133  cat >>confdefs.h <<_ACEOF
5134#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5135_ACEOF
5136
5137fi
5138
5139done
5140
5141
5142
5143if test "$ac_cv_prog_cc_stdc" != no; then
5144  U= ANSI2KNR=
5145else
5146  U=_ ANSI2KNR=./ansi2knr
5147fi
5148# Ensure some checks needed by ansi2knr itself.
5149
5150for ac_header in string.h
5151do :
5152  ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
5153if test "x$ac_cv_header_string_h" = x""yes; then :
5154  cat >>confdefs.h <<_ACEOF
5155#define HAVE_STRING_H 1
5156_ACEOF
5157
5158fi
5159
5160done
5161
5162
5163
5164case $host in
5165  *-apple-darwin*)
5166    case "$LD $LDFLAGS" in
5167  *-Wl,-search_paths_first*) ;;
5168  *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler understands -Wl,-search_paths_first" >&5
5169$as_echo_n "checking if the compiler understands -Wl,-search_paths_first... " >&6; }
5170     saved_LDFLAGS="$LDFLAGS"
5171     LDFLAGS="-Wl,-search_paths_first $LDFLAGS"
5172     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5173/* end confdefs.h.  */
5174
5175int
5176main ()
5177{
5178
5179  ;
5180  return 0;
5181}
5182_ACEOF
5183if ac_fn_c_try_link "$LINENO"; then :
5184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5185$as_echo "yes" >&6; }
5186else
5187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5188$as_echo "no" >&6; }
5189        LDFLAGS="$saved_LDFLAGS"
5190fi
5191rm -f core conftest.err conftest.$ac_objext \
5192    conftest$ac_exeext conftest.$ac_ext
5193     ;;
5194 esac
5195 ;;
5196esac
5197
5198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5199$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5200if test "${ac_cv_c_const+set}" = set; then :
5201  $as_echo_n "(cached) " >&6
5202else
5203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5204/* end confdefs.h.  */
5205
5206int
5207main ()
5208{
5209/* FIXME: Include the comments suggested by Paul. */
5210#ifndef __cplusplus
5211  /* Ultrix mips cc rejects this.  */
5212  typedef int charset[2];
5213  const charset cs;
5214  /* SunOS 4.1.1 cc rejects this.  */
5215  char const *const *pcpcc;
5216  char **ppc;
5217  /* NEC SVR4.0.2 mips cc rejects this.  */
5218  struct point {int x, y;};
5219  static struct point const zero = {0,0};
5220  /* AIX XL C 1.02.0.0 rejects this.
5221     It does not let you subtract one const X* pointer from another in
5222     an arm of an if-expression whose if-part is not a constant
5223     expression */
5224  const char *g = "string";
5225  pcpcc = &g + (g ? g-g : 0);
5226  /* HPUX 7.0 cc rejects these. */
5227  ++pcpcc;
5228  ppc = (char**) pcpcc;
5229  pcpcc = (char const *const *) ppc;
5230  { /* SCO 3.2v4 cc rejects this.  */
5231    char *t;
5232    char const *s = 0 ? (char *) 0 : (char const *) 0;
5233
5234    *t++ = 0;
5235    if (s) return 0;
5236  }
5237  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5238    int x[] = {25, 17};
5239    const int *foo = &x[0];
5240    ++foo;
5241  }
5242  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5243    typedef const int *iptr;
5244    iptr p = 0;
5245    ++p;
5246  }
5247  { /* AIX XL C 1.02.0.0 rejects this saying
5248       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5249    struct s { int j; const int *ap[3]; };
5250    struct s *b; b->j = 5;
5251  }
5252  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5253    const int foo = 10;
5254    if (!foo) return 0;
5255  }
5256  return !cs[0] && !zero.x;
5257#endif
5258
5259  ;
5260  return 0;
5261}
5262_ACEOF
5263if ac_fn_c_try_compile "$LINENO"; then :
5264  ac_cv_c_const=yes
5265else
5266  ac_cv_c_const=no
5267fi
5268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5269fi
5270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5271$as_echo "$ac_cv_c_const" >&6; }
5272if test $ac_cv_c_const = no; then
5273
5274$as_echo "#define const /**/" >>confdefs.h
5275
5276fi
5277
5278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
5279$as_echo_n "checking for working volatile... " >&6; }
5280if test "${ac_cv_c_volatile+set}" = set; then :
5281  $as_echo_n "(cached) " >&6
5282else
5283  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5284/* end confdefs.h.  */
5285
5286int
5287main ()
5288{
5289
5290volatile int x;
5291int * volatile y = (int *) 0;
5292return !x && !y;
5293  ;
5294  return 0;
5295}
5296_ACEOF
5297if ac_fn_c_try_compile "$LINENO"; then :
5298  ac_cv_c_volatile=yes
5299else
5300  ac_cv_c_volatile=no
5301fi
5302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5303fi
5304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
5305$as_echo "$ac_cv_c_volatile" >&6; }
5306if test $ac_cv_c_volatile = no; then
5307
5308$as_echo "#define volatile /**/" >>confdefs.h
5309
5310fi
5311
5312
5313
5314MPFR_LIBM=''
5315
5316case $host in
5317  *-*-beos* | *-*-cygwin* | *-*-pw32*)
5318    # According to libtool AC CHECK LIBM, these systems don't have libm
5319    ;;
5320  *-*-solaris*)
5321    # On Solaris the math functions new in C99 are in -lm9x.
5322    # FIXME: Do we need -lm9x as well as -lm, or just instead of?
5323    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm9x" >&5
5324$as_echo_n "checking for main in -lm9x... " >&6; }
5325if test "${ac_cv_lib_m9x_main+set}" = set; then :
5326  $as_echo_n "(cached) " >&6
5327else
5328  ac_check_lib_save_LIBS=$LIBS
5329LIBS="-lm9x  $LIBS"
5330cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5331/* end confdefs.h.  */
5332
5333
5334int
5335main ()
5336{
5337return main ();
5338  ;
5339  return 0;
5340}
5341_ACEOF
5342if ac_fn_c_try_link "$LINENO"; then :
5343  ac_cv_lib_m9x_main=yes
5344else
5345  ac_cv_lib_m9x_main=no
5346fi
5347rm -f core conftest.err conftest.$ac_objext \
5348    conftest$ac_exeext conftest.$ac_ext
5349LIBS=$ac_check_lib_save_LIBS
5350fi
5351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m9x_main" >&5
5352$as_echo "$ac_cv_lib_m9x_main" >&6; }
5353if test "x$ac_cv_lib_m9x_main" = x""yes; then :
5354  MPFR_LIBM="-lm9x"
5355fi
5356
5357    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
5358$as_echo_n "checking for main in -lm... " >&6; }
5359if test "${ac_cv_lib_m_main+set}" = set; then :
5360  $as_echo_n "(cached) " >&6
5361else
5362  ac_check_lib_save_LIBS=$LIBS
5363LIBS="-lm  $LIBS"
5364cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5365/* end confdefs.h.  */
5366
5367
5368int
5369main ()
5370{
5371return main ();
5372  ;
5373  return 0;
5374}
5375_ACEOF
5376if ac_fn_c_try_link "$LINENO"; then :
5377  ac_cv_lib_m_main=yes
5378else
5379  ac_cv_lib_m_main=no
5380fi
5381rm -f core conftest.err conftest.$ac_objext \
5382    conftest$ac_exeext conftest.$ac_ext
5383LIBS=$ac_check_lib_save_LIBS
5384fi
5385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
5386$as_echo "$ac_cv_lib_m_main" >&6; }
5387if test "x$ac_cv_lib_m_main" = x""yes; then :
5388  MPFR_LIBM="$MPFR_LIBM -lm"
5389fi
5390
5391    ;;
5392  *-ncr-sysv4.3*)
5393    # FIXME: What does -lmw mean?  Libtool AC CHECK LIBM does it this way.
5394    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
5395$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
5396if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then :
5397  $as_echo_n "(cached) " >&6
5398else
5399  ac_check_lib_save_LIBS=$LIBS
5400LIBS="-lmw  $LIBS"
5401cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5402/* end confdefs.h.  */
5403
5404/* Override any GCC internal prototype to avoid an error.
5405   Use char because int might match the return type of a GCC
5406   builtin and then its argument prototype would still apply.  */
5407#ifdef __cplusplus
5408extern "C"
5409#endif
5410char _mwvalidcheckl ();
5411int
5412main ()
5413{
5414return _mwvalidcheckl ();
5415  ;
5416  return 0;
5417}
5418_ACEOF
5419if ac_fn_c_try_link "$LINENO"; then :
5420  ac_cv_lib_mw__mwvalidcheckl=yes
5421else
5422  ac_cv_lib_mw__mwvalidcheckl=no
5423fi
5424rm -f core conftest.err conftest.$ac_objext \
5425    conftest$ac_exeext conftest.$ac_ext
5426LIBS=$ac_check_lib_save_LIBS
5427fi
5428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
5429$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
5430if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then :
5431  MPFR_LIBM="-lmw"
5432fi
5433
5434    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
5435$as_echo_n "checking for main in -lm... " >&6; }
5436if test "${ac_cv_lib_m_main+set}" = set; then :
5437  $as_echo_n "(cached) " >&6
5438else
5439  ac_check_lib_save_LIBS=$LIBS
5440LIBS="-lm  $LIBS"
5441cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5442/* end confdefs.h.  */
5443
5444
5445int
5446main ()
5447{
5448return main ();
5449  ;
5450  return 0;
5451}
5452_ACEOF
5453if ac_fn_c_try_link "$LINENO"; then :
5454  ac_cv_lib_m_main=yes
5455else
5456  ac_cv_lib_m_main=no
5457fi
5458rm -f core conftest.err conftest.$ac_objext \
5459    conftest$ac_exeext conftest.$ac_ext
5460LIBS=$ac_check_lib_save_LIBS
5461fi
5462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
5463$as_echo "$ac_cv_lib_m_main" >&6; }
5464if test "x$ac_cv_lib_m_main" = x""yes; then :
5465  MPFR_LIBM="$MPFR_LIBM -lm"
5466fi
5467
5468    ;;
5469  *)
5470    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
5471$as_echo_n "checking for main in -lm... " >&6; }
5472if test "${ac_cv_lib_m_main+set}" = set; then :
5473  $as_echo_n "(cached) " >&6
5474else
5475  ac_check_lib_save_LIBS=$LIBS
5476LIBS="-lm  $LIBS"
5477cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5478/* end confdefs.h.  */
5479
5480
5481int
5482main ()
5483{
5484return main ();
5485  ;
5486  return 0;
5487}
5488_ACEOF
5489if ac_fn_c_try_link "$LINENO"; then :
5490  ac_cv_lib_m_main=yes
5491else
5492  ac_cv_lib_m_main=no
5493fi
5494rm -f core conftest.err conftest.$ac_objext \
5495    conftest$ac_exeext conftest.$ac_ext
5496LIBS=$ac_check_lib_save_LIBS
5497fi
5498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
5499$as_echo "$ac_cv_lib_m_main" >&6; }
5500if test "x$ac_cv_lib_m_main" = x""yes; then :
5501  MPFR_LIBM="-lm"
5502fi
5503
5504    ;;
5505esac
5506
5507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5508$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5509if test "${ac_cv_header_time+set}" = set; then :
5510  $as_echo_n "(cached) " >&6
5511else
5512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5513/* end confdefs.h.  */
5514#include <sys/types.h>
5515#include <sys/time.h>
5516#include <time.h>
5517
5518int
5519main ()
5520{
5521if ((struct tm *) 0)
5522return 0;
5523  ;
5524  return 0;
5525}
5526_ACEOF
5527if ac_fn_c_try_compile "$LINENO"; then :
5528  ac_cv_header_time=yes
5529else
5530  ac_cv_header_time=no
5531fi
5532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5533fi
5534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5535$as_echo "$ac_cv_header_time" >&6; }
5536if test $ac_cv_header_time = yes; then
5537
5538$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5539
5540fi
5541
5542
5543
5544
5545
5546
5547
5548ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
5549if test "x$ac_cv_header_limits_h" = x""yes; then :
5550
5551else
5552  as_fn_error $? "limits.h not found" "$LINENO" 5
5553fi
5554
5555
5556ac_fn_c_check_header_mongrel "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
5557if test "x$ac_cv_header_float_h" = x""yes; then :
5558
5559else
5560  as_fn_error $? "float.h not found" "$LINENO" 5
5561fi
5562
5563
5564ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
5565if test "x$ac_cv_header_string_h" = x""yes; then :
5566
5567else
5568  as_fn_error $? "string.h not found" "$LINENO" 5
5569fi
5570
5571
5572
5573for ac_header in locale.h
5574do :
5575  ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
5576if test "x$ac_cv_header_locale_h" = x""yes; then :
5577  cat >>confdefs.h <<_ACEOF
5578#define HAVE_LOCALE_H 1
5579_ACEOF
5580
5581fi
5582
5583done
5584
5585
5586for ac_header in wchar.h
5587do :
5588  ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
5589if test "x$ac_cv_header_wchar_h" = x""yes; then :
5590  cat >>confdefs.h <<_ACEOF
5591#define HAVE_WCHAR_H 1
5592_ACEOF
5593
5594fi
5595
5596done
5597
5598
5599ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
5600if test "x$ac_cv_header_stdarg_h" = x""yes; then :
5601
5602$as_echo "#define HAVE_STDARG 1" >>confdefs.h
5603
5604else
5605  ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
5606if test "x$ac_cv_header_varargs_h" = x""yes; then :
5607
5608else
5609  as_fn_error $? "stdarg.h or varargs.h not found" "$LINENO" 5
5610fi
5611
5612
5613fi
5614
5615
5616
5617for ac_header in sys/time.h sys/fpu.h
5618do :
5619  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5620ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5621if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5622  cat >>confdefs.h <<_ACEOF
5623#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5624_ACEOF
5625
5626fi
5627
5628done
5629
5630
5631# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5632# for constant arguments.  Useless!
5633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5634$as_echo_n "checking for working alloca.h... " >&6; }
5635if test "${ac_cv_working_alloca_h+set}" = set; then :
5636  $as_echo_n "(cached) " >&6
5637else
5638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5639/* end confdefs.h.  */
5640#include <alloca.h>
5641int
5642main ()
5643{
5644char *p = (char *) alloca (2 * sizeof (int));
5645			  if (p) return 0;
5646  ;
5647  return 0;
5648}
5649_ACEOF
5650if ac_fn_c_try_link "$LINENO"; then :
5651  ac_cv_working_alloca_h=yes
5652else
5653  ac_cv_working_alloca_h=no
5654fi
5655rm -f core conftest.err conftest.$ac_objext \
5656    conftest$ac_exeext conftest.$ac_ext
5657fi
5658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5659$as_echo "$ac_cv_working_alloca_h" >&6; }
5660if test $ac_cv_working_alloca_h = yes; then
5661
5662$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5663
5664fi
5665
5666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5667$as_echo_n "checking for alloca... " >&6; }
5668if test "${ac_cv_func_alloca_works+set}" = set; then :
5669  $as_echo_n "(cached) " >&6
5670else
5671  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5672/* end confdefs.h.  */
5673#ifdef __GNUC__
5674# define alloca __builtin_alloca
5675#else
5676# ifdef _MSC_VER
5677#  include <malloc.h>
5678#  define alloca _alloca
5679# else
5680#  ifdef HAVE_ALLOCA_H
5681#   include <alloca.h>
5682#  else
5683#   ifdef _AIX
5684 #pragma alloca
5685#   else
5686#    ifndef alloca /* predefined by HP cc +Olibcalls */
5687char *alloca ();
5688#    endif
5689#   endif
5690#  endif
5691# endif
5692#endif
5693
5694int
5695main ()
5696{
5697char *p = (char *) alloca (1);
5698				    if (p) return 0;
5699  ;
5700  return 0;
5701}
5702_ACEOF
5703if ac_fn_c_try_link "$LINENO"; then :
5704  ac_cv_func_alloca_works=yes
5705else
5706  ac_cv_func_alloca_works=no
5707fi
5708rm -f core conftest.err conftest.$ac_objext \
5709    conftest$ac_exeext conftest.$ac_ext
5710fi
5711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5712$as_echo "$ac_cv_func_alloca_works" >&6; }
5713
5714if test $ac_cv_func_alloca_works = yes; then
5715
5716$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5717
5718else
5719  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5720# that cause trouble.  Some versions do not even contain alloca or
5721# contain a buggy version.  If you still want to use their alloca,
5722# use ar to extract alloca.o from them instead of compiling alloca.c.
5723
5724ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5725
5726$as_echo "#define C_ALLOCA 1" >>confdefs.h
5727
5728
5729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5730$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5731if test "${ac_cv_os_cray+set}" = set; then :
5732  $as_echo_n "(cached) " >&6
5733else
5734  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5735/* end confdefs.h.  */
5736#if defined CRAY && ! defined CRAY2
5737webecray
5738#else
5739wenotbecray
5740#endif
5741
5742_ACEOF
5743if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5744  $EGREP "webecray" >/dev/null 2>&1; then :
5745  ac_cv_os_cray=yes
5746else
5747  ac_cv_os_cray=no
5748fi
5749rm -f conftest*
5750
5751fi
5752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5753$as_echo "$ac_cv_os_cray" >&6; }
5754if test $ac_cv_os_cray = yes; then
5755  for ac_func in _getb67 GETB67 getb67; do
5756    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5757ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5758if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5759
5760cat >>confdefs.h <<_ACEOF
5761#define CRAY_STACKSEG_END $ac_func
5762_ACEOF
5763
5764    break
5765fi
5766
5767  done
5768fi
5769
5770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5771$as_echo_n "checking stack direction for C alloca... " >&6; }
5772if test "${ac_cv_c_stack_direction+set}" = set; then :
5773  $as_echo_n "(cached) " >&6
5774else
5775  if test "$cross_compiling" = yes; then :
5776  ac_cv_c_stack_direction=0
5777else
5778  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5779/* end confdefs.h.  */
5780$ac_includes_default
5781int
5782find_stack_direction ()
5783{
5784  static char *addr = 0;
5785  auto char dummy;
5786  if (addr == 0)
5787    {
5788      addr = &dummy;
5789      return find_stack_direction ();
5790    }
5791  else
5792    return (&dummy > addr) ? 1 : -1;
5793}
5794
5795int
5796main ()
5797{
5798  return find_stack_direction () < 0;
5799}
5800_ACEOF
5801if ac_fn_c_try_run "$LINENO"; then :
5802  ac_cv_c_stack_direction=1
5803else
5804  ac_cv_c_stack_direction=-1
5805fi
5806rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5807  conftest.$ac_objext conftest.beam conftest.$ac_ext
5808fi
5809
5810fi
5811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5812$as_echo "$ac_cv_c_stack_direction" >&6; }
5813cat >>confdefs.h <<_ACEOF
5814#define STACK_DIRECTION $ac_cv_c_stack_direction
5815_ACEOF
5816
5817
5818fi
5819
5820
5821
5822  for ac_header in stdint.h
5823do :
5824  ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
5825if test "x$ac_cv_header_stdint_h" = x""yes; then :
5826  cat >>confdefs.h <<_ACEOF
5827#define HAVE_STDINT_H 1
5828_ACEOF
5829
5830fi
5831
5832done
5833
5834    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
5835$as_echo_n "checking for SIZE_MAX... " >&6; }
5836  if test "${gl_cv_size_max+set}" = set; then :
5837  $as_echo_n "(cached) " >&6
5838else
5839
5840    gl_cv_size_max=
5841    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5842/* end confdefs.h.  */
5843
5844#include <limits.h>
5845#if HAVE_STDINT_H
5846#include <stdint.h>
5847#endif
5848#ifdef SIZE_MAX
5849Found it
5850#endif
5851
5852_ACEOF
5853if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5854  $EGREP "Found it" >/dev/null 2>&1; then :
5855  gl_cv_size_max=yes
5856fi
5857rm -f conftest*
5858
5859    if test -z "$gl_cv_size_max"; then
5860                        if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
5861#include <limits.h>"; then :
5862
5863else
5864  size_t_bits_minus_1=
5865fi
5866
5867      if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
5868
5869else
5870  fits_in_uint=
5871fi
5872
5873      if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
5874        if test $fits_in_uint = 1; then
5875                              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5876/* end confdefs.h.  */
5877#include <stddef.h>
5878            extern size_t foo;
5879            extern unsigned long foo;
5880
5881int
5882main ()
5883{
5884
5885  ;
5886  return 0;
5887}
5888_ACEOF
5889if ac_fn_c_try_compile "$LINENO"; then :
5890  fits_in_uint=0
5891fi
5892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5893        fi
5894                                if test $fits_in_uint = 1; then
5895          gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
5896        else
5897          gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
5898        fi
5899      else
5900                gl_cv_size_max='((size_t)~(size_t)0)'
5901      fi
5902    fi
5903
5904fi
5905
5906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
5907$as_echo "$gl_cv_size_max" >&6; }
5908  if test "$gl_cv_size_max" != yes; then
5909
5910cat >>confdefs.h <<_ACEOF
5911#define SIZE_MAX $gl_cv_size_max
5912_ACEOF
5913
5914  fi
5915
5916
5917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to copy va_list" >&5
5918$as_echo_n "checking how to copy va_list... " >&6; }
5919cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5920/* end confdefs.h.  */
5921
5922#include <stdarg.h>
5923
5924int
5925main ()
5926{
5927
5928   va_list ap1, ap2;
5929   va_copy(ap1, ap2);
5930
5931  ;
5932  return 0;
5933}
5934_ACEOF
5935if ac_fn_c_try_link "$LINENO"; then :
5936
5937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: va_copy" >&5
5938$as_echo "va_copy" >&6; }
5939   $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
5940
5941
5942else
5943  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5944/* end confdefs.h.  */
5945
5946#include <stdarg.h>
5947
5948int
5949main ()
5950{
5951
5952   va_list ap1, ap2;
5953   __va_copy(ap1, ap2);
5954
5955  ;
5956  return 0;
5957}
5958_ACEOF
5959if ac_fn_c_try_link "$LINENO"; then :
5960  $as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: __va_copy" >&5
5962$as_echo "__va_copy" >&6; }
5963else
5964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: memcpy" >&5
5965$as_echo "memcpy" >&6; }
5966fi
5967rm -f core conftest.err conftest.$ac_objext \
5968    conftest$ac_exeext conftest.$ac_ext
5969fi
5970rm -f core conftest.err conftest.$ac_objext \
5971    conftest$ac_exeext conftest.$ac_ext
5972
5973for ac_func in memmove memset setlocale strtol gettimeofday
5974do :
5975  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5976ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5977if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5978  cat >>confdefs.h <<_ACEOF
5979#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5980_ACEOF
5981
5982fi
5983done
5984
5985
5986case $host in
5987alpha*-*-*)
5988  saved_CFLAGS="$CFLAGS"
5989  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IEEE-754 switches" >&5
5990$as_echo_n "checking for IEEE-754 switches... " >&6; }
5991if test "${mpfr_cv_ieee_switches+set}" = set; then :
5992  $as_echo_n "(cached) " >&6
5993else
5994
5995  if test -n "$GCC"; then
5996    mpfr_cv_ieee_switches="-mfp-rounding-mode=d -mieee-with-inexact"
5997  else
5998    mpfr_cv_ieee_switches="-fprm d -ieee_with_inexact"
5999  fi
6000  CFLAGS="$CFLAGS $mpfr_cv_ieee_switches"
6001  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6002/* end confdefs.h.  */
6003
6004int
6005main ()
6006{
6007
6008  ;
6009  return 0;
6010}
6011_ACEOF
6012if ac_fn_c_try_compile "$LINENO"; then :
6013
6014else
6015  mpfr_cv_ieee_switches="none"
6016fi
6017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6018
6019fi
6020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_ieee_switches" >&5
6021$as_echo "$mpfr_cv_ieee_switches" >&6; }
6022  if test "$mpfr_cv_ieee_switches" = "none"; then
6023    CFLAGS="$saved_CFLAGS"
6024  else
6025    CFLAGS="$saved_CFLAGS $mpfr_cv_ieee_switches"
6026  fi
6027esac
6028
6029ac_fn_c_check_type "$LINENO" "long long int" "ac_cv_type_long_long_int" "$ac_includes_default"
6030if test "x$ac_cv_type_long_long_int" = x""yes; then :
6031
6032$as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
6033
6034fi
6035
6036
6037ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6038if test "x$ac_cv_type_intmax_t" = x""yes; then :
6039
6040cat >>confdefs.h <<_ACEOF
6041#define HAVE_INTMAX_T 1
6042_ACEOF
6043
6044
6045fi
6046
6047if test "$ac_cv_type_intmax_t" = yes; then
6048  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working INTMAX_MAX" >&5
6049$as_echo_n "checking for working INTMAX_MAX... " >&6; }
6050if test "${mpfr_cv_have_intmax_max+set}" = set; then :
6051  $as_echo_n "(cached) " >&6
6052else
6053
6054    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6055/* end confdefs.h.  */
6056#include <stdint.h>
6057int
6058main ()
6059{
6060intmax_t x = INTMAX_MAX;
6061  ;
6062  return 0;
6063}
6064_ACEOF
6065if ac_fn_c_try_compile "$LINENO"; then :
6066  mpfr_cv_have_intmax_max=yes
6067else
6068  mpfr_cv_have_intmax_max=no
6069fi
6070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6071
6072fi
6073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_have_intmax_max" >&5
6074$as_echo "$mpfr_cv_have_intmax_max" >&6; }
6075  if test "$mpfr_cv_have_intmax_max" = "yes"; then
6076
6077$as_echo "#define MPFR_HAVE_INTMAX_MAX 1" >>confdefs.h
6078
6079  fi
6080fi
6081
6082ac_fn_c_check_type "$LINENO" "union fpc_csr" "ac_cv_type_union_fpc_csr" "
6083#if HAVE_SYS_FPU_H
6084#  include <sys/fpu.h>
6085#endif
6086
6087"
6088if test "x$ac_cv_type_union_fpc_csr" = x""yes; then :
6089
6090$as_echo "#define HAVE_FPC_CSR 1" >>confdefs.h
6091
6092fi
6093
6094
6095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fesetround" >&5
6096$as_echo_n "checking for fesetround... " >&6; }
6097if test "${mpfr_cv_have_fesetround+set}" = set; then :
6098  $as_echo_n "(cached) " >&6
6099else
6100
6101saved_LIBS="$LIBS"
6102LIBS="$LIBS $MPFR_LIBM"
6103cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6104/* end confdefs.h.  */
6105#include <fenv.h>
6106int
6107main ()
6108{
6109fesetround(FE_TONEAREST);
6110  ;
6111  return 0;
6112}
6113_ACEOF
6114if ac_fn_c_try_link "$LINENO"; then :
6115  mpfr_cv_have_fesetround=yes
6116else
6117  mpfr_cv_have_fesetround=no
6118fi
6119rm -f core conftest.err conftest.$ac_objext \
6120    conftest$ac_exeext conftest.$ac_ext
6121LIBS="$saved_LIBS"
6122
6123fi
6124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_have_fesetround" >&5
6125$as_echo "$mpfr_cv_have_fesetround" >&6; }
6126if test "$mpfr_cv_have_fesetround" = "yes"; then
6127
6128$as_echo "#define MPFR_HAVE_FESETROUND 1" >>confdefs.h
6129
6130fi
6131
6132if test -n "$GCC"; then
6133  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc float-conversion bug" >&5
6134$as_echo_n "checking for gcc float-conversion bug... " >&6; }
6135if test "${mpfr_cv_gcc_floatconv_bug+set}" = set; then :
6136  $as_echo_n "(cached) " >&6
6137else
6138
6139  saved_LIBS="$LIBS"
6140  LIBS="$LIBS $MPFR_LIBM"
6141  if test "$cross_compiling" = yes; then :
6142  mpfr_cv_gcc_floatconv_bug="cannot test, use -ffloat-store"
6143else
6144  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6145/* end confdefs.h.  */
6146
6147#include <float.h>
6148#ifdef MPFR_HAVE_FESETROUND
6149#include <fenv.h>
6150#endif
6151static double get_max (void);
6152int main() {
6153  double x = 0.5;
6154  double y;
6155  int i;
6156  for (i = 1; i <= 11; i++)
6157    x *= x;
6158  if (x != 0)
6159    return 1;
6160#ifdef MPFR_HAVE_FESETROUND
6161  /* Useful test for the G4 PowerPC */
6162  fesetround(FE_TOWARDZERO);
6163  x = y = get_max ();
6164  x *= 2.0;
6165  if (x != y)
6166    return 1;
6167#endif
6168  return 0;
6169}
6170static double get_max (void) { static volatile double d = DBL_MAX; return d; }
6171
6172_ACEOF
6173if ac_fn_c_try_run "$LINENO"; then :
6174  mpfr_cv_gcc_floatconv_bug="no"
6175else
6176  mpfr_cv_gcc_floatconv_bug="yes, use -ffloat-store"
6177fi
6178rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6179  conftest.$ac_objext conftest.beam conftest.$ac_ext
6180fi
6181
6182  LIBS="$saved_LIBS"
6183
6184fi
6185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_gcc_floatconv_bug" >&5
6186$as_echo "$mpfr_cv_gcc_floatconv_bug" >&6; }
6187  if test "$mpfr_cv_gcc_floatconv_bug" != "no"; then
6188    CFLAGS="$CFLAGS -ffloat-store"
6189  fi
6190fi
6191
6192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for denormalized numbers" >&5
6193$as_echo_n "checking for denormalized numbers... " >&6; }
6194if test "${mpfr_cv_have_denorms+set}" = set; then :
6195  $as_echo_n "(cached) " >&6
6196else
6197
6198if test "$cross_compiling" = yes; then :
6199  mpfr_cv_have_denorms=no
6200else
6201  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6202/* end confdefs.h.  */
6203
6204#include <math.h>
6205#include <stdio.h>
6206int main() {
6207  double x = 2.22507385850720138309e-308;
6208  fprintf (stderr, "%e\n", x / 2.0);
6209  return 2.0 * (x / 2.0) != x;
6210}
6211
6212_ACEOF
6213if ac_fn_c_try_run "$LINENO"; then :
6214  mpfr_cv_have_denorms=yes
6215else
6216  mpfr_cv_have_denorms=no
6217fi
6218rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6219  conftest.$ac_objext conftest.beam conftest.$ac_ext
6220fi
6221
6222
6223fi
6224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_have_denorms" >&5
6225$as_echo "$mpfr_cv_have_denorms" >&6; }
6226if test "$mpfr_cv_have_denorms" = "yes"; then
6227
6228$as_echo "#define HAVE_DENORMS 1" >>confdefs.h
6229
6230fi
6231
6232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if NAN == NAN" >&5
6233$as_echo_n "checking if NAN == NAN... " >&6; }
6234if test "${mpfr_cv_nanisnan+set}" = set; then :
6235  $as_echo_n "(cached) " >&6
6236else
6237
6238if test "$cross_compiling" = yes; then :
6239  mpfr_cv_nanisnan="cannot test, assume no"
6240else
6241  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6242/* end confdefs.h.  */
6243
6244#include <stdio.h>
6245#include <math.h>
6246#ifndef NAN
6247# define NAN (0.0/0.0)
6248#endif
6249int main() {
6250  double d;
6251  d = NAN;
6252  return d != d;
6253}
6254
6255_ACEOF
6256if ac_fn_c_try_run "$LINENO"; then :
6257  mpfr_cv_nanisnan="yes"
6258else
6259  mpfr_cv_nanisnan="no"
6260fi
6261rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6262  conftest.$ac_objext conftest.beam conftest.$ac_ext
6263fi
6264
6265
6266fi
6267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_nanisnan" >&5
6268$as_echo "$mpfr_cv_nanisnan" >&6; }
6269if test "$mpfr_cv_nanisnan" = "yes"; then
6270
6271$as_echo "#define MPFR_NANISNAN 1" >>confdefs.h
6272
6273  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The test NAN != NAN is false. The probable reason is that" >&5
6274$as_echo "$as_me: WARNING: The test NAN != NAN is false. The probable reason is that" >&2;}
6275  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your compiler optimizes floating-point expressions in an" >&5
6276$as_echo "$as_me: WARNING: your compiler optimizes floating-point expressions in an" >&2;}
6277  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unsafe way because some option, such as -ffast-math or" >&5
6278$as_echo "$as_me: WARNING: unsafe way because some option, such as -ffast-math or" >&2;}
6279  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: -fast (depending on the compiler), has been used.  You" >&5
6280$as_echo "$as_me: WARNING: -fast (depending on the compiler), has been used.  You" >&2;}
6281  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: should NOT use such an option, otherwise MPFR functions" >&5
6282$as_echo "$as_me: WARNING: should NOT use such an option, otherwise MPFR functions" >&2;}
6283  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: such as mpfr_get_d and mpfr_set_d may return incorrect" >&5
6284$as_echo "$as_me: WARNING: such as mpfr_get_d and mpfr_set_d may return incorrect" >&2;}
6285  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: results on special FP numbers (e.g. NaN or signed zeros)." >&5
6286$as_echo "$as_me: WARNING: results on special FP numbers (e.g. NaN or signed zeros)." >&2;}
6287  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you did not use such an option, please send us a bug" >&5
6288$as_echo "$as_me: WARNING: If you did not use such an option, please send us a bug" >&2;}
6289  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: report so that we can try to find a workaround for your" >&5
6290$as_echo "$as_me: WARNING: report so that we can try to find a workaround for your" >&2;}
6291  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: platform and/or document the behavior." >&5
6292$as_echo "$as_me: WARNING: platform and/or document the behavior." >&2;}
6293fi
6294
6295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if charset has consecutive values" >&5
6296$as_echo_n "checking if charset has consecutive values... " >&6; }
6297if test "$cross_compiling" = yes; then :
6298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: can not test" >&5
6299$as_echo "can not test" >&6; }
6300else
6301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6302/* end confdefs.h.  */
6303
6304char *number = "0123456789";
6305char *lower  = "abcdefghijklmnopqrstuvwxyz";
6306char *upper  = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
6307
6308int
6309main ()
6310{
6311
6312 int i;
6313 unsigned char *p;
6314 for (p = (unsigned char*) number, i = 0; i < 9; i++)
6315   if ( (*p)+1 != *(p+1) ) return 1;
6316 for (p = (unsigned char*) lower, i = 0; i < 25; i++)
6317   if ( (*p)+1 != *(p+1) ) return 1;
6318 for (p = (unsigned char*) upper, i = 0; i < 25; i++)
6319   if ( (*p)+1 != *(p+1) ) return 1;
6320
6321  ;
6322  return 0;
6323}
6324_ACEOF
6325if ac_fn_c_try_run "$LINENO"; then :
6326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6327$as_echo "yes" >&6; }
6328else
6329
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6331$as_echo "no" >&6; }
6332
6333$as_echo "#define MPFR_NO_CONSECUTIVE_CHARSET 1" >>confdefs.h
6334
6335
6336fi
6337rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6338  conftest.$ac_objext conftest.beam conftest.$ac_ext
6339fi
6340
6341
6342saved_LIBS="$LIBS"
6343LIBS="$LIBS $MPFR_LIBM"
6344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for math/round" >&5
6345$as_echo_n "checking for math/round... " >&6; }
6346cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6347/* end confdefs.h.  */
6348
6349#include <math.h>
6350int f (double (*func)(double)) { return 0;}
6351
6352int
6353main ()
6354{
6355
6356 double a = 17.42;
6357 a = f (round);
6358 return 0;
6359
6360  ;
6361  return 0;
6362}
6363_ACEOF
6364if ac_fn_c_try_link "$LINENO"; then :
6365
6366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6367$as_echo "yes" >&6; }
6368
6369$as_echo "#define HAVE_ROUND 1" >>confdefs.h
6370
6371
6372else
6373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6374$as_echo "no" >&6; }
6375fi
6376rm -f core conftest.err conftest.$ac_objext \
6377    conftest$ac_exeext conftest.$ac_ext
6378
6379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for math/trunc" >&5
6380$as_echo_n "checking for math/trunc... " >&6; }
6381cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6382/* end confdefs.h.  */
6383
6384#include <math.h>
6385int f (double (*func)(double)) { return 0;}
6386
6387int
6388main ()
6389{
6390
6391 double a = 17.42;
6392 a = f(trunc);
6393 return 0;
6394
6395  ;
6396  return 0;
6397}
6398_ACEOF
6399if ac_fn_c_try_link "$LINENO"; then :
6400
6401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6402$as_echo "yes" >&6; }
6403
6404$as_echo "#define HAVE_TRUNC 1" >>confdefs.h
6405
6406
6407else
6408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6409$as_echo "no" >&6; }
6410fi
6411rm -f core conftest.err conftest.$ac_objext \
6412    conftest$ac_exeext conftest.$ac_ext
6413
6414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for math/floor" >&5
6415$as_echo_n "checking for math/floor... " >&6; }
6416cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6417/* end confdefs.h.  */
6418
6419#include <math.h>
6420int f (double (*func)(double)) { return 0;}
6421
6422int
6423main ()
6424{
6425
6426 double a = 17.42;
6427 a = f(floor);
6428 return 0;
6429
6430  ;
6431  return 0;
6432}
6433_ACEOF
6434if ac_fn_c_try_link "$LINENO"; then :
6435
6436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6437$as_echo "yes" >&6; }
6438
6439$as_echo "#define HAVE_FLOOR 1" >>confdefs.h
6440
6441
6442else
6443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6444$as_echo "no" >&6; }
6445fi
6446rm -f core conftest.err conftest.$ac_objext \
6447    conftest$ac_exeext conftest.$ac_ext
6448
6449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for math/ceil" >&5
6450$as_echo_n "checking for math/ceil... " >&6; }
6451cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6452/* end confdefs.h.  */
6453
6454#include <math.h>
6455int f (double (*func)(double)) { return 0;}
6456
6457int
6458main ()
6459{
6460
6461 double a = 17.42;
6462 a = f(ceil);
6463 return 0;
6464
6465  ;
6466  return 0;
6467}
6468_ACEOF
6469if ac_fn_c_try_link "$LINENO"; then :
6470
6471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6472$as_echo "yes" >&6; }
6473
6474$as_echo "#define HAVE_CEIL 1" >>confdefs.h
6475
6476
6477else
6478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6479$as_echo "no" >&6; }
6480fi
6481rm -f core conftest.err conftest.$ac_objext \
6482    conftest$ac_exeext conftest.$ac_ext
6483
6484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for math/rint" >&5
6485$as_echo_n "checking for math/rint... " >&6; }
6486cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6487/* end confdefs.h.  */
6488
6489#include <math.h>
6490int f (double (*func)(double)) { return 0;}
6491
6492int
6493main ()
6494{
6495
6496 double a = 17.42;
6497 a = f(nearbyint);
6498 return 0;
6499
6500  ;
6501  return 0;
6502}
6503_ACEOF
6504if ac_fn_c_try_link "$LINENO"; then :
6505
6506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6507$as_echo "yes" >&6; }
6508
6509$as_echo "#define HAVE_NEARBYINT 1" >>confdefs.h
6510
6511
6512else
6513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6514$as_echo "no" >&6; }
6515fi
6516rm -f core conftest.err conftest.$ac_objext \
6517    conftest$ac_exeext conftest.$ac_ext
6518
6519LIBS="$saved_LIBS"
6520
6521
6522
6523
6524ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default"
6525if test "x$ac_cv_type_long_double" = x""yes; then :
6526
6527cat >>confdefs.h <<_ACEOF
6528#define HAVE_LONG_DOUBLE 1
6529_ACEOF
6530
6531
6532fi
6533
6534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking format of \`long double' floating point" >&5
6535$as_echo_n "checking format of \`long double' floating point... " >&6; }
6536if test "${mpfr_cv_c_long_double_format+set}" = set; then :
6537  $as_echo_n "(cached) " >&6
6538else
6539  mpfr_cv_c_long_double_format=unknown
6540if test "$ac_cv_type_long_double" != yes; then
6541  mpfr_cv_c_long_double_format="not available"
6542else
6543  cat >conftest.c <<\EOF
6544
6545/* "before" is 16 bytes to ensure there's no padding between it and "x".
6546   We're not expecting any "long double" bigger than 16 bytes or with
6547   alignment requirements stricter than 16 bytes.  */
6548struct {
6549  char         before[16];
6550  long double  x;
6551  char         after[8];
6552} foo = {
6553  { '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
6554    '\001', '\043', '\105', '\147', '\211', '\253', '\315', '\357' },
6555  -123456789.0,
6556  { '\376', '\334', '\272', '\230', '\166', '\124', '\062', '\020' }
6557};
6558
6559EOF
6560  mpfr_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >&5 2>&1"
6561  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mpfr_compile\""; } >&5
6562  (eval $mpfr_compile) 2>&5
6563  ac_status=$?
6564  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6565  test $ac_status = 0; }; then
6566    cat >conftest.awk <<\EOF
6567
6568BEGIN {
6569  found = 0
6570}
6571
6572# got[] holds a sliding window of bytes read the input.  got[0] is the most
6573# recent byte read, and got[31] the oldest byte read, so when looking to
6574# match some data the indices are "reversed".
6575#
6576{
6577  for (f = 2; f <= NF; f++)
6578    {
6579      # new byte, shift others up
6580      for (i = 31; i >= 0; i--)
6581        got[i+1] = got[i];
6582      got[0] = $f;
6583
6584      # end sequence
6585      if (got[7] != "376") continue
6586      if (got[6] != "334") continue
6587      if (got[5] != "272") continue
6588      if (got[4] != "230") continue
6589      if (got[3] != "166") continue
6590      if (got[2] != "124") continue
6591      if (got[1] != "062") continue
6592      if (got[0] != "020") continue
6593
6594      # start sequence, with 8-byte body
6595      if (got[23] == "001" && \
6596          got[22] == "043" && \
6597          got[21] == "105" && \
6598          got[20] == "147" && \
6599          got[19] == "211" && \
6600          got[18] == "253" && \
6601          got[17] == "315" && \
6602          got[16] == "357")
6603        {
6604          saw = " (" got[15] \
6605                 " " got[14] \
6606                 " " got[13] \
6607                 " " got[12] \
6608                 " " got[11] \
6609                 " " got[10] \
6610                 " " got[9]  \
6611                 " " got[8] ")"
6612
6613          if (got[15] == "301" && \
6614              got[14] == "235" && \
6615              got[13] == "157" && \
6616              got[12] == "064" && \
6617              got[11] == "124" && \
6618              got[10] == "000" && \
6619              got[9] ==  "000" && \
6620              got[8] ==  "000")
6621            {
6622              print "IEEE double, big endian"
6623              found = 1
6624              exit
6625            }
6626
6627          if (got[15] == "000" && \
6628              got[14] == "000" && \
6629              got[13] == "000" && \
6630              got[12] == "124" && \
6631              got[11] == "064" && \
6632              got[10] == "157" && \
6633              got[9] ==  "235" && \
6634              got[8] ==  "301")
6635            {
6636              print "IEEE double, little endian"
6637              found = 1
6638              exit
6639            }
6640        }
6641
6642      # start sequence, with 12-byte body
6643      if (got[27] == "001" && \
6644          got[26] == "043" && \
6645          got[25] == "105" && \
6646          got[24] == "147" && \
6647          got[23] == "211" && \
6648          got[22] == "253" && \
6649          got[21] == "315" && \
6650          got[20] == "357")
6651        {
6652          saw = " (" got[19] \
6653                 " " got[18] \
6654                 " " got[17] \
6655                 " " got[16] \
6656                 " " got[15] \
6657                 " " got[14] \
6658                 " " got[13] \
6659                 " " got[12] \
6660                 " " got[11] \
6661                 " " got[10] \
6662                 " " got[9]  \
6663                 " " got[8] ")"
6664
6665          if (got[19] == "000" && \
6666              got[18] == "000" && \
6667              got[17] == "000" && \
6668              got[16] == "000" && \
6669              got[15] == "240" && \
6670              got[14] == "242" && \
6671              got[13] == "171" && \
6672              got[12] == "353" && \
6673              got[11] == "031" && \
6674              got[10] == "300")
6675            {
6676              print "IEEE extended, little endian"
6677              found = 1
6678              exit
6679            }
6680        }
6681
6682      # start sequence, with 16-byte body
6683      if (got[31] == "001" && \
6684          got[30] == "043" && \
6685          got[29] == "105" && \
6686          got[28] == "147" && \
6687          got[27] == "211" && \
6688          got[26] == "253" && \
6689          got[25] == "315" && \
6690          got[24] == "357")
6691        {
6692          saw = " (" got[23] \
6693                 " " got[22] \
6694                 " " got[21] \
6695                 " " got[20] \
6696                 " " got[19] \
6697                 " " got[18] \
6698                 " " got[17] \
6699                 " " got[16] \
6700                 " " got[15] \
6701                 " " got[14] \
6702                 " " got[13] \
6703                 " " got[12] \
6704                 " " got[11] \
6705                 " " got[10] \
6706                 " " got[9]  \
6707                 " " got[8] ")"
6708
6709          if (got[23] == "000" && \
6710              got[22] == "000" && \
6711              got[21] == "000" && \
6712              got[20] == "000" && \
6713              got[19] == "240" && \
6714              got[18] == "242" && \
6715              got[17] == "171" && \
6716              got[16] == "353" && \
6717              got[15] == "031" && \
6718              got[14] == "300")
6719            {
6720              print "IEEE extended, little endian"
6721              found = 1
6722              exit
6723            }
6724
6725          if (got[23] == "300" && \
6726              got[22] == "031" && \
6727              got[21] == "326" && \
6728              got[20] == "363" && \
6729              got[19] == "105" && \
6730              got[18] == "100" && \
6731              got[17] == "000" && \
6732              got[16] == "000" && \
6733              got[15] == "000" && \
6734              got[14] == "000" && \
6735              got[13] == "000" && \
6736              got[12] == "000" && \
6737              got[11] == "000" && \
6738              got[10] == "000" && \
6739              got[9]  == "000" && \
6740              got[8]  == "000")
6741            {
6742              print "IEEE quad, big endian"
6743              found = 1
6744              exit
6745            }
6746
6747          if (got[23] == "000" && \
6748              got[22] == "000" && \
6749              got[21] == "000" && \
6750              got[20] == "000" && \
6751              got[19] == "000" && \
6752              got[18] == "000" && \
6753              got[17] == "000" && \
6754              got[16] == "000" && \
6755              got[15] == "000" && \
6756              got[14] == "000" && \
6757              got[13] == "100" && \
6758              got[12] == "105" && \
6759              got[11] == "363" && \
6760              got[10] == "326" && \
6761              got[9]  == "031" && \
6762	      got[8]  == "300")
6763            {
6764              print "IEEE quad, little endian"
6765              found = 1
6766              exit
6767            }
6768
6769          if (got[23] == "301" && \
6770              got[22] == "235" && \
6771              got[21] == "157" && \
6772              got[20] == "064" && \
6773              got[19] == "124" && \
6774              got[18] == "000" && \
6775              got[17] == "000" && \
6776              got[16] == "000" && \
6777              got[15] == "000" && \
6778              got[14] == "000" && \
6779              got[13] == "000" && \
6780              got[12] == "000" && \
6781              got[11] == "000" && \
6782              got[10] == "000" && \
6783              got[9]  == "000" && \
6784              got[8]  == "000")
6785            {
6786              print "possibly double-double, big endian"
6787              found = 1
6788              exit
6789            }
6790        }
6791    }
6792}
6793
6794END {
6795  if (! found)
6796    print "unknown", saw
6797}
6798
6799EOF
6800    mpfr_cv_c_long_double_format=`od -b conftest.$OBJEXT | $AWK -f conftest.awk`
6801    case $mpfr_cv_c_long_double_format in
6802    unknown*)
6803      echo "cannot match anything, conftest.$OBJEXT contains" >&5
6804      od -b conftest.$OBJEXT >&5
6805      ;;
6806    esac
6807  else
6808    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: oops, cannot compile test program" >&5
6809$as_echo "$as_me: WARNING: oops, cannot compile test program" >&2;}
6810  fi
6811fi
6812rm -f conftest*
6813
6814fi
6815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_c_long_double_format" >&5
6816$as_echo "$mpfr_cv_c_long_double_format" >&6; }
6817
6818
6819
6820case $mpfr_cv_c_long_double_format in
6821  "IEEE extended, little endian")
6822    $as_echo "#define HAVE_LDOUBLE_IEEE_EXT_LITTLE 1" >>confdefs.h
6823
6824    ;;
6825  "IEEE quad, big endian")
6826    $as_echo "#define HAVE_LDOUBLE_IEEE_QUAD_BIG 1" >>confdefs.h
6827
6828    ;;
6829  "IEEE quad, little endian")
6830    $as_echo "#define HAVE_LDOUBLE_IEEE_QUAD_LITTLE 1" >>confdefs.h
6831
6832    ;;
6833  "possibly double-double, big endian")
6834    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This format is known on GCC/PowerPC platforms," >&5
6835$as_echo "$as_me: WARNING: This format is known on GCC/PowerPC platforms," >&2;}
6836    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but due to GCC PR26374, we can't test further." >&5
6837$as_echo "$as_me: WARNING: but due to GCC PR26374, we can't test further." >&2;}
6838    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You can safely ignore this warning, though." >&5
6839$as_echo "$as_me: WARNING: You can safely ignore this warning, though." >&2;}
6840    # Since we are not sure, we do not want to define a macro.
6841    ;;
6842  unknown* | "not available")
6843    ;;
6844  *)
6845    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: oops, unrecognised float format: $mpfr_cv_c_long_double_format" >&5
6846$as_echo "$as_me: WARNING: oops, unrecognised float format: $mpfr_cv_c_long_double_format" >&2;}
6847    ;;
6848esac
6849
6850
6851if test "$enable_thread_safe" = yes; then
6852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS support" >&5
6853$as_echo_n "checking for TLS support... " >&6; }
6854if test "${mpfr_cv_working_tls+set}" = set; then :
6855  $as_echo_n "(cached) " >&6
6856else
6857
6858saved_CPPFLAGS="$CPPFLAGS"
6859# The -I$srcdir is necessary when objdir is different from srcdir.
6860CPPFLAGS="$CPPFLAGS -I$srcdir"
6861if test "$cross_compiling" = yes; then :
6862  mpfr_cv_working_tls="cannot test, assume yes"
6863else
6864  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6865/* end confdefs.h.  */
6866
6867#define MPFR_USE_THREAD_SAFE 1
6868#include "mpfr-thread.h"
6869MPFR_THREAD_ATTR int x = 17;
6870int main() {
6871  return x != 17;
6872}
6873
6874_ACEOF
6875if ac_fn_c_try_run "$LINENO"; then :
6876  mpfr_cv_working_tls="yes"
6877else
6878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6879$as_echo "no" >&6; }
6880      as_fn_error $? "please configure with --disable-thread-safe" "$LINENO" 5
6881fi
6882rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6883  conftest.$ac_objext conftest.beam conftest.$ac_ext
6884fi
6885
6886CPPFLAGS="$saved_CPPFLAGS"
6887
6888fi
6889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_working_tls" >&5
6890$as_echo "$mpfr_cv_working_tls" >&6; }
6891fi
6892
6893
6894
6895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gmp.h" >&5
6896$as_echo_n "checking for gmp.h... " >&6; }
6897cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6898/* end confdefs.h.  */
6899
6900#include "gmp.h"
6901
6902_ACEOF
6903if ac_fn_c_try_compile "$LINENO"; then :
6904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6905$as_echo "yes" >&6; }
6906else
6907
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6909$as_echo "no" >&6; }
6910 as_fn_error $? "gmp.h can't be found, or is unusable." "$LINENO" 5
6911
6912fi
6913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6914
6915enable_win32_dll=yes
6916
6917case $host in
6918*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
6919  if test -n "$ac_tool_prefix"; then
6920  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6921set dummy ${ac_tool_prefix}as; ac_word=$2
6922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6923$as_echo_n "checking for $ac_word... " >&6; }
6924if test "${ac_cv_prog_AS+set}" = set; then :
6925  $as_echo_n "(cached) " >&6
6926else
6927  if test -n "$AS"; then
6928  ac_cv_prog_AS="$AS" # Let the user override the test.
6929else
6930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6931for as_dir in $PATH
6932do
6933  IFS=$as_save_IFS
6934  test -z "$as_dir" && as_dir=.
6935    for ac_exec_ext in '' $ac_executable_extensions; do
6936  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6937    ac_cv_prog_AS="${ac_tool_prefix}as"
6938    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6939    break 2
6940  fi
6941done
6942  done
6943IFS=$as_save_IFS
6944
6945fi
6946fi
6947AS=$ac_cv_prog_AS
6948if test -n "$AS"; then
6949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
6950$as_echo "$AS" >&6; }
6951else
6952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6953$as_echo "no" >&6; }
6954fi
6955
6956
6957fi
6958if test -z "$ac_cv_prog_AS"; then
6959  ac_ct_AS=$AS
6960  # Extract the first word of "as", so it can be a program name with args.
6961set dummy as; ac_word=$2
6962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6963$as_echo_n "checking for $ac_word... " >&6; }
6964if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
6965  $as_echo_n "(cached) " >&6
6966else
6967  if test -n "$ac_ct_AS"; then
6968  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6969else
6970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6971for as_dir in $PATH
6972do
6973  IFS=$as_save_IFS
6974  test -z "$as_dir" && as_dir=.
6975    for ac_exec_ext in '' $ac_executable_extensions; do
6976  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6977    ac_cv_prog_ac_ct_AS="as"
6978    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6979    break 2
6980  fi
6981done
6982  done
6983IFS=$as_save_IFS
6984
6985fi
6986fi
6987ac_ct_AS=$ac_cv_prog_ac_ct_AS
6988if test -n "$ac_ct_AS"; then
6989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
6990$as_echo "$ac_ct_AS" >&6; }
6991else
6992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6993$as_echo "no" >&6; }
6994fi
6995
6996  if test "x$ac_ct_AS" = x; then
6997    AS="false"
6998  else
6999    case $cross_compiling:$ac_tool_warned in
7000yes:)
7001{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7002$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7003ac_tool_warned=yes ;;
7004esac
7005    AS=$ac_ct_AS
7006  fi
7007else
7008  AS="$ac_cv_prog_AS"
7009fi
7010
7011  if test -n "$ac_tool_prefix"; then
7012  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7013set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7015$as_echo_n "checking for $ac_word... " >&6; }
7016if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7017  $as_echo_n "(cached) " >&6
7018else
7019  if test -n "$DLLTOOL"; then
7020  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7021else
7022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7023for as_dir in $PATH
7024do
7025  IFS=$as_save_IFS
7026  test -z "$as_dir" && as_dir=.
7027    for ac_exec_ext in '' $ac_executable_extensions; do
7028  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7029    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7030    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7031    break 2
7032  fi
7033done
7034  done
7035IFS=$as_save_IFS
7036
7037fi
7038fi
7039DLLTOOL=$ac_cv_prog_DLLTOOL
7040if test -n "$DLLTOOL"; then
7041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7042$as_echo "$DLLTOOL" >&6; }
7043else
7044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7045$as_echo "no" >&6; }
7046fi
7047
7048
7049fi
7050if test -z "$ac_cv_prog_DLLTOOL"; then
7051  ac_ct_DLLTOOL=$DLLTOOL
7052  # Extract the first word of "dlltool", so it can be a program name with args.
7053set dummy dlltool; ac_word=$2
7054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7055$as_echo_n "checking for $ac_word... " >&6; }
7056if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
7057  $as_echo_n "(cached) " >&6
7058else
7059  if test -n "$ac_ct_DLLTOOL"; then
7060  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7061else
7062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7063for as_dir in $PATH
7064do
7065  IFS=$as_save_IFS
7066  test -z "$as_dir" && as_dir=.
7067    for ac_exec_ext in '' $ac_executable_extensions; do
7068  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7069    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7070    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7071    break 2
7072  fi
7073done
7074  done
7075IFS=$as_save_IFS
7076
7077fi
7078fi
7079ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7080if test -n "$ac_ct_DLLTOOL"; then
7081  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7082$as_echo "$ac_ct_DLLTOOL" >&6; }
7083else
7084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7085$as_echo "no" >&6; }
7086fi
7087
7088  if test "x$ac_ct_DLLTOOL" = x; then
7089    DLLTOOL="false"
7090  else
7091    case $cross_compiling:$ac_tool_warned in
7092yes:)
7093{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7094$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7095ac_tool_warned=yes ;;
7096esac
7097    DLLTOOL=$ac_ct_DLLTOOL
7098  fi
7099else
7100  DLLTOOL="$ac_cv_prog_DLLTOOL"
7101fi
7102
7103  if test -n "$ac_tool_prefix"; then
7104  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7105set dummy ${ac_tool_prefix}objdump; ac_word=$2
7106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7107$as_echo_n "checking for $ac_word... " >&6; }
7108if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7109  $as_echo_n "(cached) " >&6
7110else
7111  if test -n "$OBJDUMP"; then
7112  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7113else
7114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7115for as_dir in $PATH
7116do
7117  IFS=$as_save_IFS
7118  test -z "$as_dir" && as_dir=.
7119    for ac_exec_ext in '' $ac_executable_extensions; do
7120  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7121    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7122    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7123    break 2
7124  fi
7125done
7126  done
7127IFS=$as_save_IFS
7128
7129fi
7130fi
7131OBJDUMP=$ac_cv_prog_OBJDUMP
7132if test -n "$OBJDUMP"; then
7133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7134$as_echo "$OBJDUMP" >&6; }
7135else
7136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7137$as_echo "no" >&6; }
7138fi
7139
7140
7141fi
7142if test -z "$ac_cv_prog_OBJDUMP"; then
7143  ac_ct_OBJDUMP=$OBJDUMP
7144  # Extract the first word of "objdump", so it can be a program name with args.
7145set dummy objdump; ac_word=$2
7146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7147$as_echo_n "checking for $ac_word... " >&6; }
7148if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7149  $as_echo_n "(cached) " >&6
7150else
7151  if test -n "$ac_ct_OBJDUMP"; then
7152  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7153else
7154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7155for as_dir in $PATH
7156do
7157  IFS=$as_save_IFS
7158  test -z "$as_dir" && as_dir=.
7159    for ac_exec_ext in '' $ac_executable_extensions; do
7160  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7161    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7162    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7163    break 2
7164  fi
7165done
7166  done
7167IFS=$as_save_IFS
7168
7169fi
7170fi
7171ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7172if test -n "$ac_ct_OBJDUMP"; then
7173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7174$as_echo "$ac_ct_OBJDUMP" >&6; }
7175else
7176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7177$as_echo "no" >&6; }
7178fi
7179
7180  if test "x$ac_ct_OBJDUMP" = x; then
7181    OBJDUMP="false"
7182  else
7183    case $cross_compiling:$ac_tool_warned in
7184yes:)
7185{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7186$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7187ac_tool_warned=yes ;;
7188esac
7189    OBJDUMP=$ac_ct_OBJDUMP
7190  fi
7191else
7192  OBJDUMP="$ac_cv_prog_OBJDUMP"
7193fi
7194
7195  ;;
7196esac
7197
7198test -z "$AS" && AS=as
7199
7200
7201
7202
7203
7204test -z "$DLLTOOL" && DLLTOOL=dlltool
7205
7206
7207
7208
7209
7210test -z "$OBJDUMP" && OBJDUMP=objdump
7211
7212
7213
7214
7215
7216
7217
7218case $host in
7219  *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
7220   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLL/static GMP" >&5
7221$as_echo_n "checking for DLL/static GMP... " >&6; }
7222   if test "$enable_shared" = yes; then
7223     LDFLAGS="$LDFLAGS -no-undefined"
7224     dont_link_with_gmp="yes"
7225     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7226/* end confdefs.h.  */
7227
7228#include "gmp.h"
7229#if !__GMP_LIBGMP_DLL
7230# error "Dead man"
7231error
7232#endif
7233
7234int
7235main ()
7236{
7237
7238  ;
7239  return 0;
7240}
7241_ACEOF
7242if ac_fn_c_try_compile "$LINENO"; then :
7243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: DLL" >&5
7244$as_echo "DLL" >&6; }
7245else
7246
7247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5
7248$as_echo "static" >&6; }
7249  as_fn_error $? "gmp.h isn't a DLL: use --enable-static --disable-shared" "$LINENO" 5
7250fi
7251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7252   else
7253     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7254/* end confdefs.h.  */
7255
7256#include "gmp.h"
7257#if __GMP_LIBGMP_DLL
7258# error "Dead man"
7259error
7260#endif
7261
7262int
7263main ()
7264{
7265
7266  ;
7267  return 0;
7268}
7269_ACEOF
7270if ac_fn_c_try_compile "$LINENO"; then :
7271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5
7272$as_echo "static" >&6; }
7273else
7274
7275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: DLL" >&5
7276$as_echo "DLL" >&6; }
7277  as_fn_error $? "gmp.h is a DLL: use --disable-static --enable-shared" "$LINENO" 5
7278fi
7279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7280  fi
7281  ;;
7282esac
7283case `pwd` in
7284  *\ * | *\	*)
7285    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7286$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7287esac
7288
7289
7290
7291macro_version='2.2.6b'
7292macro_revision='1.3017'
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306ltmain="$ac_aux_dir/ltmain.sh"
7307
7308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7309$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7310if test "${ac_cv_path_SED+set}" = set; then :
7311  $as_echo_n "(cached) " >&6
7312else
7313            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7314     for ac_i in 1 2 3 4 5 6 7; do
7315       ac_script="$ac_script$as_nl$ac_script"
7316     done
7317     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7318     { ac_script=; unset ac_script;}
7319     if test -z "$SED"; then
7320  ac_path_SED_found=false
7321  # Loop through the user's path and test for each of PROGNAME-LIST
7322  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7323for as_dir in $PATH
7324do
7325  IFS=$as_save_IFS
7326  test -z "$as_dir" && as_dir=.
7327    for ac_prog in sed gsed; do
7328    for ac_exec_ext in '' $ac_executable_extensions; do
7329      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7330      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7331# Check for GNU ac_path_SED and select it if it is found.
7332  # Check for GNU $ac_path_SED
7333case `"$ac_path_SED" --version 2>&1` in
7334*GNU*)
7335  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7336*)
7337  ac_count=0
7338  $as_echo_n 0123456789 >"conftest.in"
7339  while :
7340  do
7341    cat "conftest.in" "conftest.in" >"conftest.tmp"
7342    mv "conftest.tmp" "conftest.in"
7343    cp "conftest.in" "conftest.nl"
7344    $as_echo '' >> "conftest.nl"
7345    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7346    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7347    as_fn_arith $ac_count + 1 && ac_count=$as_val
7348    if test $ac_count -gt ${ac_path_SED_max-0}; then
7349      # Best one so far, save it but keep looking for a better one
7350      ac_cv_path_SED="$ac_path_SED"
7351      ac_path_SED_max=$ac_count
7352    fi
7353    # 10*(2^10) chars as input seems more than enough
7354    test $ac_count -gt 10 && break
7355  done
7356  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7357esac
7358
7359      $ac_path_SED_found && break 3
7360    done
7361  done
7362  done
7363IFS=$as_save_IFS
7364  if test -z "$ac_cv_path_SED"; then
7365    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7366  fi
7367else
7368  ac_cv_path_SED=$SED
7369fi
7370
7371fi
7372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7373$as_echo "$ac_cv_path_SED" >&6; }
7374 SED="$ac_cv_path_SED"
7375  rm -f conftest.sed
7376
7377test -z "$SED" && SED=sed
7378Xsed="$SED -e 1s/^X//"
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7391$as_echo_n "checking for fgrep... " >&6; }
7392if test "${ac_cv_path_FGREP+set}" = set; then :
7393  $as_echo_n "(cached) " >&6
7394else
7395  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7396   then ac_cv_path_FGREP="$GREP -F"
7397   else
7398     if test -z "$FGREP"; then
7399  ac_path_FGREP_found=false
7400  # Loop through the user's path and test for each of PROGNAME-LIST
7401  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7402for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7403do
7404  IFS=$as_save_IFS
7405  test -z "$as_dir" && as_dir=.
7406    for ac_prog in fgrep; do
7407    for ac_exec_ext in '' $ac_executable_extensions; do
7408      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7409      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7410# Check for GNU ac_path_FGREP and select it if it is found.
7411  # Check for GNU $ac_path_FGREP
7412case `"$ac_path_FGREP" --version 2>&1` in
7413*GNU*)
7414  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7415*)
7416  ac_count=0
7417  $as_echo_n 0123456789 >"conftest.in"
7418  while :
7419  do
7420    cat "conftest.in" "conftest.in" >"conftest.tmp"
7421    mv "conftest.tmp" "conftest.in"
7422    cp "conftest.in" "conftest.nl"
7423    $as_echo 'FGREP' >> "conftest.nl"
7424    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7425    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7426    as_fn_arith $ac_count + 1 && ac_count=$as_val
7427    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7428      # Best one so far, save it but keep looking for a better one
7429      ac_cv_path_FGREP="$ac_path_FGREP"
7430      ac_path_FGREP_max=$ac_count
7431    fi
7432    # 10*(2^10) chars as input seems more than enough
7433    test $ac_count -gt 10 && break
7434  done
7435  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7436esac
7437
7438      $ac_path_FGREP_found && break 3
7439    done
7440  done
7441  done
7442IFS=$as_save_IFS
7443  if test -z "$ac_cv_path_FGREP"; then
7444    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7445  fi
7446else
7447  ac_cv_path_FGREP=$FGREP
7448fi
7449
7450   fi
7451fi
7452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7453$as_echo "$ac_cv_path_FGREP" >&6; }
7454 FGREP="$ac_cv_path_FGREP"
7455
7456
7457test -z "$GREP" && GREP=grep
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477# Check whether --with-gnu-ld was given.
7478if test "${with_gnu_ld+set}" = set; then :
7479  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7480else
7481  with_gnu_ld=no
7482fi
7483
7484ac_prog=ld
7485if test "$GCC" = yes; then
7486  # Check if gcc -print-prog-name=ld gives a path.
7487  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7488$as_echo_n "checking for ld used by $CC... " >&6; }
7489  case $host in
7490  *-*-mingw*)
7491    # gcc leaves a trailing carriage return which upsets mingw
7492    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7493  *)
7494    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7495  esac
7496  case $ac_prog in
7497    # Accept absolute paths.
7498    [\\/]* | ?:[\\/]*)
7499      re_direlt='/[^/][^/]*/\.\./'
7500      # Canonicalize the pathname of ld
7501      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7502      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7503	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7504      done
7505      test -z "$LD" && LD="$ac_prog"
7506      ;;
7507  "")
7508    # If it fails, then pretend we aren't using GCC.
7509    ac_prog=ld
7510    ;;
7511  *)
7512    # If it is relative, then search for the first ld in PATH.
7513    with_gnu_ld=unknown
7514    ;;
7515  esac
7516elif test "$with_gnu_ld" = yes; then
7517  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7518$as_echo_n "checking for GNU ld... " >&6; }
7519else
7520  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7521$as_echo_n "checking for non-GNU ld... " >&6; }
7522fi
7523if test "${lt_cv_path_LD+set}" = set; then :
7524  $as_echo_n "(cached) " >&6
7525else
7526  if test -z "$LD"; then
7527  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7528  for ac_dir in $PATH; do
7529    IFS="$lt_save_ifs"
7530    test -z "$ac_dir" && ac_dir=.
7531    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7532      lt_cv_path_LD="$ac_dir/$ac_prog"
7533      # Check to see if the program is GNU ld.  I'd rather use --version,
7534      # but apparently some variants of GNU ld only accept -v.
7535      # Break only if it was the GNU/non-GNU ld that we prefer.
7536      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7537      *GNU* | *'with BFD'*)
7538	test "$with_gnu_ld" != no && break
7539	;;
7540      *)
7541	test "$with_gnu_ld" != yes && break
7542	;;
7543      esac
7544    fi
7545  done
7546  IFS="$lt_save_ifs"
7547else
7548  lt_cv_path_LD="$LD" # Let the user override the test with a path.
7549fi
7550fi
7551
7552LD="$lt_cv_path_LD"
7553if test -n "$LD"; then
7554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7555$as_echo "$LD" >&6; }
7556else
7557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7558$as_echo "no" >&6; }
7559fi
7560test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7562$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7563if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7564  $as_echo_n "(cached) " >&6
7565else
7566  # I'd rather use --version here, but apparently some GNU lds only accept -v.
7567case `$LD -v 2>&1 </dev/null` in
7568*GNU* | *'with BFD'*)
7569  lt_cv_prog_gnu_ld=yes
7570  ;;
7571*)
7572  lt_cv_prog_gnu_ld=no
7573  ;;
7574esac
7575fi
7576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7577$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7578with_gnu_ld=$lt_cv_prog_gnu_ld
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7589$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7590if test "${lt_cv_path_NM+set}" = set; then :
7591  $as_echo_n "(cached) " >&6
7592else
7593  if test -n "$NM"; then
7594  # Let the user override the test.
7595  lt_cv_path_NM="$NM"
7596else
7597  lt_nm_to_check="${ac_tool_prefix}nm"
7598  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7599    lt_nm_to_check="$lt_nm_to_check nm"
7600  fi
7601  for lt_tmp_nm in $lt_nm_to_check; do
7602    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7603    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7604      IFS="$lt_save_ifs"
7605      test -z "$ac_dir" && ac_dir=.
7606      tmp_nm="$ac_dir/$lt_tmp_nm"
7607      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7608	# Check to see if the nm accepts a BSD-compat flag.
7609	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
7610	#   nm: unknown option "B" ignored
7611	# Tru64's nm complains that /dev/null is an invalid object file
7612	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7613	*/dev/null* | *'Invalid file or object type'*)
7614	  lt_cv_path_NM="$tmp_nm -B"
7615	  break
7616	  ;;
7617	*)
7618	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7619	  */dev/null*)
7620	    lt_cv_path_NM="$tmp_nm -p"
7621	    break
7622	    ;;
7623	  *)
7624	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7625	    continue # so that we can try to find one that supports BSD flags
7626	    ;;
7627	  esac
7628	  ;;
7629	esac
7630      fi
7631    done
7632    IFS="$lt_save_ifs"
7633  done
7634  : ${lt_cv_path_NM=no}
7635fi
7636fi
7637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7638$as_echo "$lt_cv_path_NM" >&6; }
7639if test "$lt_cv_path_NM" != "no"; then
7640  NM="$lt_cv_path_NM"
7641else
7642  # Didn't find any BSD compatible name lister, look for dumpbin.
7643  if test -n "$ac_tool_prefix"; then
7644  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
7645  do
7646    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7647set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7649$as_echo_n "checking for $ac_word... " >&6; }
7650if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
7651  $as_echo_n "(cached) " >&6
7652else
7653  if test -n "$DUMPBIN"; then
7654  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7655else
7656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7657for as_dir in $PATH
7658do
7659  IFS=$as_save_IFS
7660  test -z "$as_dir" && as_dir=.
7661    for ac_exec_ext in '' $ac_executable_extensions; do
7662  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7663    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7664    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7665    break 2
7666  fi
7667done
7668  done
7669IFS=$as_save_IFS
7670
7671fi
7672fi
7673DUMPBIN=$ac_cv_prog_DUMPBIN
7674if test -n "$DUMPBIN"; then
7675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7676$as_echo "$DUMPBIN" >&6; }
7677else
7678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7679$as_echo "no" >&6; }
7680fi
7681
7682
7683    test -n "$DUMPBIN" && break
7684  done
7685fi
7686if test -z "$DUMPBIN"; then
7687  ac_ct_DUMPBIN=$DUMPBIN
7688  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
7689do
7690  # Extract the first word of "$ac_prog", so it can be a program name with args.
7691set dummy $ac_prog; ac_word=$2
7692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7693$as_echo_n "checking for $ac_word... " >&6; }
7694if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
7695  $as_echo_n "(cached) " >&6
7696else
7697  if test -n "$ac_ct_DUMPBIN"; then
7698  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7699else
7700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7701for as_dir in $PATH
7702do
7703  IFS=$as_save_IFS
7704  test -z "$as_dir" && as_dir=.
7705    for ac_exec_ext in '' $ac_executable_extensions; do
7706  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7707    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7708    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7709    break 2
7710  fi
7711done
7712  done
7713IFS=$as_save_IFS
7714
7715fi
7716fi
7717ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7718if test -n "$ac_ct_DUMPBIN"; then
7719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7720$as_echo "$ac_ct_DUMPBIN" >&6; }
7721else
7722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7723$as_echo "no" >&6; }
7724fi
7725
7726
7727  test -n "$ac_ct_DUMPBIN" && break
7728done
7729
7730  if test "x$ac_ct_DUMPBIN" = x; then
7731    DUMPBIN=":"
7732  else
7733    case $cross_compiling:$ac_tool_warned in
7734yes:)
7735{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7736$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7737ac_tool_warned=yes ;;
7738esac
7739    DUMPBIN=$ac_ct_DUMPBIN
7740  fi
7741fi
7742
7743
7744  if test "$DUMPBIN" != ":"; then
7745    NM="$DUMPBIN"
7746  fi
7747fi
7748test -z "$NM" && NM=nm
7749
7750
7751
7752
7753
7754
7755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7756$as_echo_n "checking the name lister ($NM) interface... " >&6; }
7757if test "${lt_cv_nm_interface+set}" = set; then :
7758  $as_echo_n "(cached) " >&6
7759else
7760  lt_cv_nm_interface="BSD nm"
7761  echo "int some_variable = 0;" > conftest.$ac_ext
7762  (eval echo "\"\$as_me:7762: $ac_compile\"" >&5)
7763  (eval "$ac_compile" 2>conftest.err)
7764  cat conftest.err >&5
7765  (eval echo "\"\$as_me:7765: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7766  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7767  cat conftest.err >&5
7768  (eval echo "\"\$as_me:7768: output\"" >&5)
7769  cat conftest.out >&5
7770  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7771    lt_cv_nm_interface="MS dumpbin"
7772  fi
7773  rm -f conftest*
7774fi
7775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7776$as_echo "$lt_cv_nm_interface" >&6; }
7777
7778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7779$as_echo_n "checking whether ln -s works... " >&6; }
7780LN_S=$as_ln_s
7781if test "$LN_S" = "ln -s"; then
7782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7783$as_echo "yes" >&6; }
7784else
7785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7786$as_echo "no, using $LN_S" >&6; }
7787fi
7788
7789# find the maximum length of command line arguments
7790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7791$as_echo_n "checking the maximum length of command line arguments... " >&6; }
7792if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
7793  $as_echo_n "(cached) " >&6
7794else
7795    i=0
7796  teststring="ABCD"
7797
7798  case $build_os in
7799  msdosdjgpp*)
7800    # On DJGPP, this test can blow up pretty badly due to problems in libc
7801    # (any single argument exceeding 2000 bytes causes a buffer overrun
7802    # during glob expansion).  Even if it were fixed, the result of this
7803    # check would be larger than it should be.
7804    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7805    ;;
7806
7807  gnu*)
7808    # Under GNU Hurd, this test is not required because there is
7809    # no limit to the length of command line arguments.
7810    # Libtool will interpret -1 as no limit whatsoever
7811    lt_cv_sys_max_cmd_len=-1;
7812    ;;
7813
7814  cygwin* | mingw* | cegcc*)
7815    # On Win9x/ME, this test blows up -- it succeeds, but takes
7816    # about 5 minutes as the teststring grows exponentially.
7817    # Worse, since 9x/ME are not pre-emptively multitasking,
7818    # you end up with a "frozen" computer, even though with patience
7819    # the test eventually succeeds (with a max line length of 256k).
7820    # Instead, let's just punt: use the minimum linelength reported by
7821    # all of the supported platforms: 8192 (on NT/2K/XP).
7822    lt_cv_sys_max_cmd_len=8192;
7823    ;;
7824
7825  amigaos*)
7826    # On AmigaOS with pdksh, this test takes hours, literally.
7827    # So we just punt and use a minimum line length of 8192.
7828    lt_cv_sys_max_cmd_len=8192;
7829    ;;
7830
7831  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7832    # This has been around since 386BSD, at least.  Likely further.
7833    if test -x /sbin/sysctl; then
7834      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7835    elif test -x /usr/sbin/sysctl; then
7836      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7837    else
7838      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
7839    fi
7840    # And add a safety zone
7841    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7842    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7843    ;;
7844
7845  interix*)
7846    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7847    lt_cv_sys_max_cmd_len=196608
7848    ;;
7849
7850  osf*)
7851    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7852    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7853    # nice to cause kernel panics so lets avoid the loop below.
7854    # First set a reasonable default.
7855    lt_cv_sys_max_cmd_len=16384
7856    #
7857    if test -x /sbin/sysconfig; then
7858      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7859        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7860      esac
7861    fi
7862    ;;
7863  sco3.2v5*)
7864    lt_cv_sys_max_cmd_len=102400
7865    ;;
7866  sysv5* | sco5v6* | sysv4.2uw2*)
7867    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7868    if test -n "$kargmax"; then
7869      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
7870    else
7871      lt_cv_sys_max_cmd_len=32768
7872    fi
7873    ;;
7874  *)
7875    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7876    if test -n "$lt_cv_sys_max_cmd_len"; then
7877      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7878      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7879    else
7880      # Make teststring a little bigger before we do anything with it.
7881      # a 1K string should be a reasonable start.
7882      for i in 1 2 3 4 5 6 7 8 ; do
7883        teststring=$teststring$teststring
7884      done
7885      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7886      # If test is not a shell built-in, we'll probably end up computing a
7887      # maximum length that is only half of the actual maximum length, but
7888      # we can't tell.
7889      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
7890	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
7891	      test $i != 17 # 1/2 MB should be enough
7892      do
7893        i=`expr $i + 1`
7894        teststring=$teststring$teststring
7895      done
7896      # Only check the string length outside the loop.
7897      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7898      teststring=
7899      # Add a significant safety factor because C++ compilers can tack on
7900      # massive amounts of additional arguments before passing them to the
7901      # linker.  It appears as though 1/2 is a usable value.
7902      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7903    fi
7904    ;;
7905  esac
7906
7907fi
7908
7909if test -n $lt_cv_sys_max_cmd_len ; then
7910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7911$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7912else
7913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7914$as_echo "none" >&6; }
7915fi
7916max_cmd_len=$lt_cv_sys_max_cmd_len
7917
7918
7919
7920
7921
7922
7923: ${CP="cp -f"}
7924: ${MV="mv -f"}
7925: ${RM="rm -f"}
7926
7927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7928$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7929# Try some XSI features
7930xsi_shell=no
7931( _lt_dummy="a/b/c"
7932  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7933      = c,a/b,, \
7934    && eval 'test $(( 1 + 1 )) -eq 2 \
7935    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7936  && xsi_shell=yes
7937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7938$as_echo "$xsi_shell" >&6; }
7939
7940
7941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7942$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7943lt_shell_append=no
7944( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7945    >/dev/null 2>&1 \
7946  && lt_shell_append=yes
7947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7948$as_echo "$lt_shell_append" >&6; }
7949
7950
7951if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7952  lt_unset=unset
7953else
7954  lt_unset=false
7955fi
7956
7957
7958
7959
7960
7961# test EBCDIC or ASCII
7962case `echo X|tr X '\101'` in
7963 A) # ASCII based system
7964    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7965  lt_SP2NL='tr \040 \012'
7966  lt_NL2SP='tr \015\012 \040\040'
7967  ;;
7968 *) # EBCDIC based system
7969  lt_SP2NL='tr \100 \n'
7970  lt_NL2SP='tr \r\n \100\100'
7971  ;;
7972esac
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7983$as_echo_n "checking for $LD option to reload object files... " >&6; }
7984if test "${lt_cv_ld_reload_flag+set}" = set; then :
7985  $as_echo_n "(cached) " >&6
7986else
7987  lt_cv_ld_reload_flag='-r'
7988fi
7989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7990$as_echo "$lt_cv_ld_reload_flag" >&6; }
7991reload_flag=$lt_cv_ld_reload_flag
7992case $reload_flag in
7993"" | " "*) ;;
7994*) reload_flag=" $reload_flag" ;;
7995esac
7996reload_cmds='$LD$reload_flag -o $output$reload_objs'
7997case $host_os in
7998  darwin*)
7999    if test "$GCC" = yes; then
8000      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8001    else
8002      reload_cmds='$LD$reload_flag -o $output$reload_objs'
8003    fi
8004    ;;
8005esac
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015if test -n "$ac_tool_prefix"; then
8016  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8017set dummy ${ac_tool_prefix}objdump; ac_word=$2
8018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8019$as_echo_n "checking for $ac_word... " >&6; }
8020if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
8021  $as_echo_n "(cached) " >&6
8022else
8023  if test -n "$OBJDUMP"; then
8024  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8025else
8026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8027for as_dir in $PATH
8028do
8029  IFS=$as_save_IFS
8030  test -z "$as_dir" && as_dir=.
8031    for ac_exec_ext in '' $ac_executable_extensions; do
8032  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8033    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8034    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8035    break 2
8036  fi
8037done
8038  done
8039IFS=$as_save_IFS
8040
8041fi
8042fi
8043OBJDUMP=$ac_cv_prog_OBJDUMP
8044if test -n "$OBJDUMP"; then
8045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8046$as_echo "$OBJDUMP" >&6; }
8047else
8048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8049$as_echo "no" >&6; }
8050fi
8051
8052
8053fi
8054if test -z "$ac_cv_prog_OBJDUMP"; then
8055  ac_ct_OBJDUMP=$OBJDUMP
8056  # Extract the first word of "objdump", so it can be a program name with args.
8057set dummy objdump; ac_word=$2
8058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8059$as_echo_n "checking for $ac_word... " >&6; }
8060if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
8061  $as_echo_n "(cached) " >&6
8062else
8063  if test -n "$ac_ct_OBJDUMP"; then
8064  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8065else
8066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8067for as_dir in $PATH
8068do
8069  IFS=$as_save_IFS
8070  test -z "$as_dir" && as_dir=.
8071    for ac_exec_ext in '' $ac_executable_extensions; do
8072  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8073    ac_cv_prog_ac_ct_OBJDUMP="objdump"
8074    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8075    break 2
8076  fi
8077done
8078  done
8079IFS=$as_save_IFS
8080
8081fi
8082fi
8083ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8084if test -n "$ac_ct_OBJDUMP"; then
8085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8086$as_echo "$ac_ct_OBJDUMP" >&6; }
8087else
8088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8089$as_echo "no" >&6; }
8090fi
8091
8092  if test "x$ac_ct_OBJDUMP" = x; then
8093    OBJDUMP="false"
8094  else
8095    case $cross_compiling:$ac_tool_warned in
8096yes:)
8097{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8098$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8099ac_tool_warned=yes ;;
8100esac
8101    OBJDUMP=$ac_ct_OBJDUMP
8102  fi
8103else
8104  OBJDUMP="$ac_cv_prog_OBJDUMP"
8105fi
8106
8107test -z "$OBJDUMP" && OBJDUMP=objdump
8108
8109
8110
8111
8112
8113
8114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8115$as_echo_n "checking how to recognize dependent libraries... " >&6; }
8116if test "${lt_cv_deplibs_check_method+set}" = set; then :
8117  $as_echo_n "(cached) " >&6
8118else
8119  lt_cv_file_magic_cmd='$MAGIC_CMD'
8120lt_cv_file_magic_test_file=
8121lt_cv_deplibs_check_method='unknown'
8122# Need to set the preceding variable on all platforms that support
8123# interlibrary dependencies.
8124# 'none' -- dependencies not supported.
8125# `unknown' -- same as none, but documents that we really don't know.
8126# 'pass_all' -- all dependencies passed with no checks.
8127# 'test_compile' -- check by making test program.
8128# 'file_magic [[regex]]' -- check by looking for files in library path
8129# which responds to the $file_magic_cmd with a given extended regex.
8130# If you have `file' or equivalent on your system and you're not sure
8131# whether `pass_all' will *always* work, you probably want this one.
8132
8133case $host_os in
8134aix[4-9]*)
8135  lt_cv_deplibs_check_method=pass_all
8136  ;;
8137
8138beos*)
8139  lt_cv_deplibs_check_method=pass_all
8140  ;;
8141
8142bsdi[45]*)
8143  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8144  lt_cv_file_magic_cmd='/usr/bin/file -L'
8145  lt_cv_file_magic_test_file=/shlib/libc.so
8146  ;;
8147
8148cygwin*)
8149  # func_win32_libid is a shell function defined in ltmain.sh
8150  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8151  lt_cv_file_magic_cmd='func_win32_libid'
8152  ;;
8153
8154mingw* | pw32*)
8155  # Base MSYS/MinGW do not provide the 'file' command needed by
8156  # func_win32_libid shell function, so use a weaker test based on 'objdump',
8157  # unless we find 'file', for example because we are cross-compiling.
8158  if ( file / ) >/dev/null 2>&1; then
8159    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8160    lt_cv_file_magic_cmd='func_win32_libid'
8161  else
8162    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
8163    lt_cv_file_magic_cmd='$OBJDUMP -f'
8164  fi
8165  ;;
8166
8167cegcc)
8168  # use the weaker test based on 'objdump'. See mingw*.
8169  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8170  lt_cv_file_magic_cmd='$OBJDUMP -f'
8171  ;;
8172
8173darwin* | rhapsody*)
8174  lt_cv_deplibs_check_method=pass_all
8175  ;;
8176
8177freebsd* | dragonfly*)
8178  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8179    case $host_cpu in
8180    i*86 )
8181      # Not sure whether the presence of OpenBSD here was a mistake.
8182      # Let's accept both of them until this is cleared up.
8183      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8184      lt_cv_file_magic_cmd=/usr/bin/file
8185      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8186      ;;
8187    esac
8188  else
8189    lt_cv_deplibs_check_method=pass_all
8190  fi
8191  ;;
8192
8193gnu*)
8194  lt_cv_deplibs_check_method=pass_all
8195  ;;
8196
8197hpux10.20* | hpux11*)
8198  lt_cv_file_magic_cmd=/usr/bin/file
8199  case $host_cpu in
8200  ia64*)
8201    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8202    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8203    ;;
8204  hppa*64*)
8205    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
8206    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8207    ;;
8208  *)
8209    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
8210    lt_cv_file_magic_test_file=/usr/lib/libc.sl
8211    ;;
8212  esac
8213  ;;
8214
8215interix[3-9]*)
8216  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8217  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8218  ;;
8219
8220irix5* | irix6* | nonstopux*)
8221  case $LD in
8222  *-32|*"-32 ") libmagic=32-bit;;
8223  *-n32|*"-n32 ") libmagic=N32;;
8224  *-64|*"-64 ") libmagic=64-bit;;
8225  *) libmagic=never-match;;
8226  esac
8227  lt_cv_deplibs_check_method=pass_all
8228  ;;
8229
8230# This must be Linux ELF.
8231linux* | k*bsd*-gnu | kopensolaris*-gnu)
8232  lt_cv_deplibs_check_method=pass_all
8233  ;;
8234
8235netbsd* | netbsdelf*-gnu)
8236  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8237    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8238  else
8239    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8240  fi
8241  ;;
8242
8243newos6*)
8244  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8245  lt_cv_file_magic_cmd=/usr/bin/file
8246  lt_cv_file_magic_test_file=/usr/lib/libnls.so
8247  ;;
8248
8249*nto* | *qnx*)
8250  lt_cv_deplibs_check_method=pass_all
8251  ;;
8252
8253openbsd*)
8254  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8255    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8256  else
8257    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8258  fi
8259  ;;
8260
8261osf3* | osf4* | osf5*)
8262  lt_cv_deplibs_check_method=pass_all
8263  ;;
8264
8265rdos*)
8266  lt_cv_deplibs_check_method=pass_all
8267  ;;
8268
8269solaris*)
8270  lt_cv_deplibs_check_method=pass_all
8271  ;;
8272
8273sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8274  lt_cv_deplibs_check_method=pass_all
8275  ;;
8276
8277sysv4 | sysv4.3*)
8278  case $host_vendor in
8279  motorola)
8280    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]'
8281    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8282    ;;
8283  ncr)
8284    lt_cv_deplibs_check_method=pass_all
8285    ;;
8286  sequent)
8287    lt_cv_file_magic_cmd='/bin/file'
8288    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8289    ;;
8290  sni)
8291    lt_cv_file_magic_cmd='/bin/file'
8292    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8293    lt_cv_file_magic_test_file=/lib/libc.so
8294    ;;
8295  siemens)
8296    lt_cv_deplibs_check_method=pass_all
8297    ;;
8298  pc)
8299    lt_cv_deplibs_check_method=pass_all
8300    ;;
8301  esac
8302  ;;
8303
8304tpf*)
8305  lt_cv_deplibs_check_method=pass_all
8306  ;;
8307esac
8308
8309fi
8310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8311$as_echo "$lt_cv_deplibs_check_method" >&6; }
8312file_magic_cmd=$lt_cv_file_magic_cmd
8313deplibs_check_method=$lt_cv_deplibs_check_method
8314test -z "$deplibs_check_method" && deplibs_check_method=unknown
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327if test -n "$ac_tool_prefix"; then
8328  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8329set dummy ${ac_tool_prefix}ar; ac_word=$2
8330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8331$as_echo_n "checking for $ac_word... " >&6; }
8332if test "${ac_cv_prog_AR+set}" = set; then :
8333  $as_echo_n "(cached) " >&6
8334else
8335  if test -n "$AR"; then
8336  ac_cv_prog_AR="$AR" # Let the user override the test.
8337else
8338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8339for as_dir in $PATH
8340do
8341  IFS=$as_save_IFS
8342  test -z "$as_dir" && as_dir=.
8343    for ac_exec_ext in '' $ac_executable_extensions; do
8344  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8345    ac_cv_prog_AR="${ac_tool_prefix}ar"
8346    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8347    break 2
8348  fi
8349done
8350  done
8351IFS=$as_save_IFS
8352
8353fi
8354fi
8355AR=$ac_cv_prog_AR
8356if test -n "$AR"; then
8357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8358$as_echo "$AR" >&6; }
8359else
8360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8361$as_echo "no" >&6; }
8362fi
8363
8364
8365fi
8366if test -z "$ac_cv_prog_AR"; then
8367  ac_ct_AR=$AR
8368  # Extract the first word of "ar", so it can be a program name with args.
8369set dummy ar; ac_word=$2
8370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8371$as_echo_n "checking for $ac_word... " >&6; }
8372if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8373  $as_echo_n "(cached) " >&6
8374else
8375  if test -n "$ac_ct_AR"; then
8376  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8377else
8378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8379for as_dir in $PATH
8380do
8381  IFS=$as_save_IFS
8382  test -z "$as_dir" && as_dir=.
8383    for ac_exec_ext in '' $ac_executable_extensions; do
8384  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8385    ac_cv_prog_ac_ct_AR="ar"
8386    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8387    break 2
8388  fi
8389done
8390  done
8391IFS=$as_save_IFS
8392
8393fi
8394fi
8395ac_ct_AR=$ac_cv_prog_ac_ct_AR
8396if test -n "$ac_ct_AR"; then
8397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8398$as_echo "$ac_ct_AR" >&6; }
8399else
8400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8401$as_echo "no" >&6; }
8402fi
8403
8404  if test "x$ac_ct_AR" = x; then
8405    AR="false"
8406  else
8407    case $cross_compiling:$ac_tool_warned in
8408yes:)
8409{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8410$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8411ac_tool_warned=yes ;;
8412esac
8413    AR=$ac_ct_AR
8414  fi
8415else
8416  AR="$ac_cv_prog_AR"
8417fi
8418
8419test -z "$AR" && AR=ar
8420test -z "$AR_FLAGS" && AR_FLAGS=cru
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432if test -n "$ac_tool_prefix"; then
8433  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8434set dummy ${ac_tool_prefix}strip; ac_word=$2
8435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8436$as_echo_n "checking for $ac_word... " >&6; }
8437if test "${ac_cv_prog_STRIP+set}" = set; then :
8438  $as_echo_n "(cached) " >&6
8439else
8440  if test -n "$STRIP"; then
8441  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8442else
8443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8444for as_dir in $PATH
8445do
8446  IFS=$as_save_IFS
8447  test -z "$as_dir" && as_dir=.
8448    for ac_exec_ext in '' $ac_executable_extensions; do
8449  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8450    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8451    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8452    break 2
8453  fi
8454done
8455  done
8456IFS=$as_save_IFS
8457
8458fi
8459fi
8460STRIP=$ac_cv_prog_STRIP
8461if test -n "$STRIP"; then
8462  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8463$as_echo "$STRIP" >&6; }
8464else
8465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8466$as_echo "no" >&6; }
8467fi
8468
8469
8470fi
8471if test -z "$ac_cv_prog_STRIP"; then
8472  ac_ct_STRIP=$STRIP
8473  # Extract the first word of "strip", so it can be a program name with args.
8474set dummy strip; ac_word=$2
8475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8476$as_echo_n "checking for $ac_word... " >&6; }
8477if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8478  $as_echo_n "(cached) " >&6
8479else
8480  if test -n "$ac_ct_STRIP"; then
8481  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8482else
8483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8484for as_dir in $PATH
8485do
8486  IFS=$as_save_IFS
8487  test -z "$as_dir" && as_dir=.
8488    for ac_exec_ext in '' $ac_executable_extensions; do
8489  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8490    ac_cv_prog_ac_ct_STRIP="strip"
8491    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8492    break 2
8493  fi
8494done
8495  done
8496IFS=$as_save_IFS
8497
8498fi
8499fi
8500ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8501if test -n "$ac_ct_STRIP"; then
8502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8503$as_echo "$ac_ct_STRIP" >&6; }
8504else
8505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8506$as_echo "no" >&6; }
8507fi
8508
8509  if test "x$ac_ct_STRIP" = x; then
8510    STRIP=":"
8511  else
8512    case $cross_compiling:$ac_tool_warned in
8513yes:)
8514{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8515$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8516ac_tool_warned=yes ;;
8517esac
8518    STRIP=$ac_ct_STRIP
8519  fi
8520else
8521  STRIP="$ac_cv_prog_STRIP"
8522fi
8523
8524test -z "$STRIP" && STRIP=:
8525
8526
8527
8528
8529
8530
8531if test -n "$ac_tool_prefix"; then
8532  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8533set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8535$as_echo_n "checking for $ac_word... " >&6; }
8536if test "${ac_cv_prog_RANLIB+set}" = set; then :
8537  $as_echo_n "(cached) " >&6
8538else
8539  if test -n "$RANLIB"; then
8540  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8541else
8542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8543for as_dir in $PATH
8544do
8545  IFS=$as_save_IFS
8546  test -z "$as_dir" && as_dir=.
8547    for ac_exec_ext in '' $ac_executable_extensions; do
8548  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8549    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8550    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8551    break 2
8552  fi
8553done
8554  done
8555IFS=$as_save_IFS
8556
8557fi
8558fi
8559RANLIB=$ac_cv_prog_RANLIB
8560if test -n "$RANLIB"; then
8561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8562$as_echo "$RANLIB" >&6; }
8563else
8564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8565$as_echo "no" >&6; }
8566fi
8567
8568
8569fi
8570if test -z "$ac_cv_prog_RANLIB"; then
8571  ac_ct_RANLIB=$RANLIB
8572  # Extract the first word of "ranlib", so it can be a program name with args.
8573set dummy ranlib; ac_word=$2
8574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8575$as_echo_n "checking for $ac_word... " >&6; }
8576if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8577  $as_echo_n "(cached) " >&6
8578else
8579  if test -n "$ac_ct_RANLIB"; then
8580  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8581else
8582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8583for as_dir in $PATH
8584do
8585  IFS=$as_save_IFS
8586  test -z "$as_dir" && as_dir=.
8587    for ac_exec_ext in '' $ac_executable_extensions; do
8588  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8589    ac_cv_prog_ac_ct_RANLIB="ranlib"
8590    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8591    break 2
8592  fi
8593done
8594  done
8595IFS=$as_save_IFS
8596
8597fi
8598fi
8599ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8600if test -n "$ac_ct_RANLIB"; then
8601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8602$as_echo "$ac_ct_RANLIB" >&6; }
8603else
8604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8605$as_echo "no" >&6; }
8606fi
8607
8608  if test "x$ac_ct_RANLIB" = x; then
8609    RANLIB=":"
8610  else
8611    case $cross_compiling:$ac_tool_warned in
8612yes:)
8613{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8614$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8615ac_tool_warned=yes ;;
8616esac
8617    RANLIB=$ac_ct_RANLIB
8618  fi
8619else
8620  RANLIB="$ac_cv_prog_RANLIB"
8621fi
8622
8623test -z "$RANLIB" && RANLIB=:
8624
8625
8626
8627
8628
8629
8630# Determine commands to create old-style static archives.
8631old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8632old_postinstall_cmds='chmod 644 $oldlib'
8633old_postuninstall_cmds=
8634
8635if test -n "$RANLIB"; then
8636  case $host_os in
8637  openbsd*)
8638    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8639    ;;
8640  *)
8641    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8642    ;;
8643  esac
8644  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8645fi
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680# If no C compiler was specified, use CC.
8681LTCC=${LTCC-"$CC"}
8682
8683# If no C compiler flags were specified, use CFLAGS.
8684LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8685
8686# Allow CC to be a program name with arguments.
8687compiler=$CC
8688
8689
8690# Check for command to grab the raw symbol name followed by C symbol from nm.
8691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8692$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8693if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
8694  $as_echo_n "(cached) " >&6
8695else
8696
8697# These are sane defaults that work on at least a few old systems.
8698# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8699
8700# Character class describing NM global symbol codes.
8701symcode='[BCDEGRST]'
8702
8703# Regexp to match symbols that can be accessed directly from C.
8704sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8705
8706# Define system-specific variables.
8707case $host_os in
8708aix*)
8709  symcode='[BCDT]'
8710  ;;
8711cygwin* | mingw* | pw32* | cegcc*)
8712  symcode='[ABCDGISTW]'
8713  ;;
8714hpux*)
8715  if test "$host_cpu" = ia64; then
8716    symcode='[ABCDEGRST]'
8717  fi
8718  ;;
8719irix* | nonstopux*)
8720  symcode='[BCDEGRST]'
8721  ;;
8722osf*)
8723  symcode='[BCDEGQRST]'
8724  ;;
8725solaris*)
8726  symcode='[BDRT]'
8727  ;;
8728sco3.2v5*)
8729  symcode='[DT]'
8730  ;;
8731sysv4.2uw2*)
8732  symcode='[DT]'
8733  ;;
8734sysv5* | sco5v6* | unixware* | OpenUNIX*)
8735  symcode='[ABDT]'
8736  ;;
8737sysv4)
8738  symcode='[DFNSTU]'
8739  ;;
8740esac
8741
8742# If we're using GNU nm, then use its standard symbol codes.
8743case `$NM -V 2>&1` in
8744*GNU* | *'with BFD'*)
8745  symcode='[ABCDGIRSTW]' ;;
8746esac
8747
8748# Transform an extracted symbol line into a proper C declaration.
8749# Some systems (esp. on ia64) link data and code symbols differently,
8750# so use this general approach.
8751lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8752
8753# Transform an extracted symbol line into symbol name and symbol address
8754lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
8755lt_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'"
8756
8757# Handle CRLF in mingw tool chain
8758opt_cr=
8759case $build_os in
8760mingw*)
8761  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8762  ;;
8763esac
8764
8765# Try without a prefix underscore, then with it.
8766for ac_symprfx in "" "_"; do
8767
8768  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8769  symxfrm="\\1 $ac_symprfx\\2 \\2"
8770
8771  # Write the raw and C identifiers.
8772  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8773    # Fake it for dumpbin and say T for any non-static function
8774    # and D for any global variable.
8775    # Also find C++ and __fastcall symbols from MSVC++,
8776    # which start with @ or ?.
8777    lt_cv_sys_global_symbol_pipe="$AWK '"\
8778"     {last_section=section; section=\$ 3};"\
8779"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8780"     \$ 0!~/External *\|/{next};"\
8781"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8782"     {if(hide[section]) next};"\
8783"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8784"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8785"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
8786"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8787"     ' prfx=^$ac_symprfx"
8788  else
8789    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8790  fi
8791
8792  # Check to see that the pipe works correctly.
8793  pipe_works=no
8794
8795  rm -f conftest*
8796  cat > conftest.$ac_ext <<_LT_EOF
8797#ifdef __cplusplus
8798extern "C" {
8799#endif
8800char nm_test_var;
8801void nm_test_func(void);
8802void nm_test_func(void){}
8803#ifdef __cplusplus
8804}
8805#endif
8806int main(){nm_test_var='a';nm_test_func();return(0);}
8807_LT_EOF
8808
8809  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8810  (eval $ac_compile) 2>&5
8811  ac_status=$?
8812  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8813  test $ac_status = 0; }; then
8814    # Now try to grab the symbols.
8815    nlist=conftest.nm
8816    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
8817  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8818  ac_status=$?
8819  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8820  test $ac_status = 0; } && test -s "$nlist"; then
8821      # Try sorting and uniquifying the output.
8822      if sort "$nlist" | uniq > "$nlist"T; then
8823	mv -f "$nlist"T "$nlist"
8824      else
8825	rm -f "$nlist"T
8826      fi
8827
8828      # Make sure that we snagged all the symbols we need.
8829      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8830	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8831	  cat <<_LT_EOF > conftest.$ac_ext
8832#ifdef __cplusplus
8833extern "C" {
8834#endif
8835
8836_LT_EOF
8837	  # Now generate the symbol file.
8838	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8839
8840	  cat <<_LT_EOF >> conftest.$ac_ext
8841
8842/* The mapping between symbol names and symbols.  */
8843const struct {
8844  const char *name;
8845  void       *address;
8846}
8847lt__PROGRAM__LTX_preloaded_symbols[] =
8848{
8849  { "@PROGRAM@", (void *) 0 },
8850_LT_EOF
8851	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8852	  cat <<\_LT_EOF >> conftest.$ac_ext
8853  {0, (void *) 0}
8854};
8855
8856/* This works around a problem in FreeBSD linker */
8857#ifdef FREEBSD_WORKAROUND
8858static const void *lt_preloaded_setup() {
8859  return lt__PROGRAM__LTX_preloaded_symbols;
8860}
8861#endif
8862
8863#ifdef __cplusplus
8864}
8865#endif
8866_LT_EOF
8867	  # Now try linking the two files.
8868	  mv conftest.$ac_objext conftstm.$ac_objext
8869	  lt_save_LIBS="$LIBS"
8870	  lt_save_CFLAGS="$CFLAGS"
8871	  LIBS="conftstm.$ac_objext"
8872	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8873	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8874  (eval $ac_link) 2>&5
8875  ac_status=$?
8876  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8877  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8878	    pipe_works=yes
8879	  fi
8880	  LIBS="$lt_save_LIBS"
8881	  CFLAGS="$lt_save_CFLAGS"
8882	else
8883	  echo "cannot find nm_test_func in $nlist" >&5
8884	fi
8885      else
8886	echo "cannot find nm_test_var in $nlist" >&5
8887      fi
8888    else
8889      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8890    fi
8891  else
8892    echo "$progname: failed program was:" >&5
8893    cat conftest.$ac_ext >&5
8894  fi
8895  rm -rf conftest* conftst*
8896
8897  # Do not use the global_symbol_pipe unless it works.
8898  if test "$pipe_works" = yes; then
8899    break
8900  else
8901    lt_cv_sys_global_symbol_pipe=
8902  fi
8903done
8904
8905fi
8906
8907if test -z "$lt_cv_sys_global_symbol_pipe"; then
8908  lt_cv_sys_global_symbol_to_cdecl=
8909fi
8910if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8912$as_echo "failed" >&6; }
8913else
8914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8915$as_echo "ok" >&6; }
8916fi
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939# Check whether --enable-libtool-lock was given.
8940if test "${enable_libtool_lock+set}" = set; then :
8941  enableval=$enable_libtool_lock;
8942fi
8943
8944test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8945
8946# Some flags need to be propagated to the compiler or linker for good
8947# libtool support.
8948case $host in
8949ia64-*-hpux*)
8950  # Find out which ABI we are using.
8951  echo 'int i;' > conftest.$ac_ext
8952  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8953  (eval $ac_compile) 2>&5
8954  ac_status=$?
8955  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8956  test $ac_status = 0; }; then
8957    case `/usr/bin/file conftest.$ac_objext` in
8958      *ELF-32*)
8959	HPUX_IA64_MODE="32"
8960	;;
8961      *ELF-64*)
8962	HPUX_IA64_MODE="64"
8963	;;
8964    esac
8965  fi
8966  rm -rf conftest*
8967  ;;
8968*-*-irix6*)
8969  # Find out which ABI we are using.
8970  echo '#line 8970 "configure"' > conftest.$ac_ext
8971  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8972  (eval $ac_compile) 2>&5
8973  ac_status=$?
8974  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8975  test $ac_status = 0; }; then
8976    if test "$lt_cv_prog_gnu_ld" = yes; then
8977      case `/usr/bin/file conftest.$ac_objext` in
8978	*32-bit*)
8979	  LD="${LD-ld} -melf32bsmip"
8980	  ;;
8981	*N32*)
8982	  LD="${LD-ld} -melf32bmipn32"
8983	  ;;
8984	*64-bit*)
8985	  LD="${LD-ld} -melf64bmip"
8986	;;
8987      esac
8988    else
8989      case `/usr/bin/file conftest.$ac_objext` in
8990	*32-bit*)
8991	  LD="${LD-ld} -32"
8992	  ;;
8993	*N32*)
8994	  LD="${LD-ld} -n32"
8995	  ;;
8996	*64-bit*)
8997	  LD="${LD-ld} -64"
8998	  ;;
8999      esac
9000    fi
9001  fi
9002  rm -rf conftest*
9003  ;;
9004
9005x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
9006s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9007  # Find out which ABI we are using.
9008  echo 'int i;' > conftest.$ac_ext
9009  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9010  (eval $ac_compile) 2>&5
9011  ac_status=$?
9012  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9013  test $ac_status = 0; }; then
9014    case `/usr/bin/file conftest.o` in
9015      *32-bit*)
9016	case $host in
9017	  x86_64-*kfreebsd*-gnu)
9018	    LD="${LD-ld} -m elf_i386_fbsd"
9019	    ;;
9020	  x86_64-*linux*)
9021	    LD="${LD-ld} -m elf_i386"
9022	    ;;
9023	  ppc64-*linux*|powerpc64-*linux*)
9024	    LD="${LD-ld} -m elf32ppclinux"
9025	    ;;
9026	  s390x-*linux*)
9027	    LD="${LD-ld} -m elf_s390"
9028	    ;;
9029	  sparc64-*linux*)
9030	    LD="${LD-ld} -m elf32_sparc"
9031	    ;;
9032	esac
9033	;;
9034      *64-bit*)
9035	case $host in
9036	  x86_64-*kfreebsd*-gnu)
9037	    LD="${LD-ld} -m elf_x86_64_fbsd"
9038	    ;;
9039	  x86_64-*linux*)
9040	    LD="${LD-ld} -m elf_x86_64"
9041	    ;;
9042	  ppc*-*linux*|powerpc*-*linux*)
9043	    LD="${LD-ld} -m elf64ppc"
9044	    ;;
9045	  s390*-*linux*|s390*-*tpf*)
9046	    LD="${LD-ld} -m elf64_s390"
9047	    ;;
9048	  sparc*-*linux*)
9049	    LD="${LD-ld} -m elf64_sparc"
9050	    ;;
9051	esac
9052	;;
9053    esac
9054  fi
9055  rm -rf conftest*
9056  ;;
9057
9058*-*-sco3.2v5*)
9059  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9060  SAVE_CFLAGS="$CFLAGS"
9061  CFLAGS="$CFLAGS -belf"
9062  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9063$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9064if test "${lt_cv_cc_needs_belf+set}" = set; then :
9065  $as_echo_n "(cached) " >&6
9066else
9067  ac_ext=c
9068ac_cpp='$CPP $CPPFLAGS'
9069ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9070ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9071ac_compiler_gnu=$ac_cv_c_compiler_gnu
9072
9073     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9074/* end confdefs.h.  */
9075
9076int
9077main ()
9078{
9079
9080  ;
9081  return 0;
9082}
9083_ACEOF
9084if ac_fn_c_try_link "$LINENO"; then :
9085  lt_cv_cc_needs_belf=yes
9086else
9087  lt_cv_cc_needs_belf=no
9088fi
9089rm -f core conftest.err conftest.$ac_objext \
9090    conftest$ac_exeext conftest.$ac_ext
9091     ac_ext=c
9092ac_cpp='$CPP $CPPFLAGS'
9093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9095ac_compiler_gnu=$ac_cv_c_compiler_gnu
9096
9097fi
9098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9099$as_echo "$lt_cv_cc_needs_belf" >&6; }
9100  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9101    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9102    CFLAGS="$SAVE_CFLAGS"
9103  fi
9104  ;;
9105sparc*-*solaris*)
9106  # Find out which ABI we are using.
9107  echo 'int i;' > conftest.$ac_ext
9108  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9109  (eval $ac_compile) 2>&5
9110  ac_status=$?
9111  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9112  test $ac_status = 0; }; then
9113    case `/usr/bin/file conftest.o` in
9114    *64-bit*)
9115      case $lt_cv_prog_gnu_ld in
9116      yes*) LD="${LD-ld} -m elf64_sparc" ;;
9117      *)
9118	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9119	  LD="${LD-ld} -64"
9120	fi
9121	;;
9122      esac
9123      ;;
9124    esac
9125  fi
9126  rm -rf conftest*
9127  ;;
9128esac
9129
9130need_locks="$enable_libtool_lock"
9131
9132
9133  case $host_os in
9134    rhapsody* | darwin*)
9135    if test -n "$ac_tool_prefix"; then
9136  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9137set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9139$as_echo_n "checking for $ac_word... " >&6; }
9140if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
9141  $as_echo_n "(cached) " >&6
9142else
9143  if test -n "$DSYMUTIL"; then
9144  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9145else
9146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9147for as_dir in $PATH
9148do
9149  IFS=$as_save_IFS
9150  test -z "$as_dir" && as_dir=.
9151    for ac_exec_ext in '' $ac_executable_extensions; do
9152  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9153    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9154    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9155    break 2
9156  fi
9157done
9158  done
9159IFS=$as_save_IFS
9160
9161fi
9162fi
9163DSYMUTIL=$ac_cv_prog_DSYMUTIL
9164if test -n "$DSYMUTIL"; then
9165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9166$as_echo "$DSYMUTIL" >&6; }
9167else
9168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9169$as_echo "no" >&6; }
9170fi
9171
9172
9173fi
9174if test -z "$ac_cv_prog_DSYMUTIL"; then
9175  ac_ct_DSYMUTIL=$DSYMUTIL
9176  # Extract the first word of "dsymutil", so it can be a program name with args.
9177set dummy dsymutil; ac_word=$2
9178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9179$as_echo_n "checking for $ac_word... " >&6; }
9180if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
9181  $as_echo_n "(cached) " >&6
9182else
9183  if test -n "$ac_ct_DSYMUTIL"; then
9184  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9185else
9186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9187for as_dir in $PATH
9188do
9189  IFS=$as_save_IFS
9190  test -z "$as_dir" && as_dir=.
9191    for ac_exec_ext in '' $ac_executable_extensions; do
9192  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9193    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9194    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9195    break 2
9196  fi
9197done
9198  done
9199IFS=$as_save_IFS
9200
9201fi
9202fi
9203ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9204if test -n "$ac_ct_DSYMUTIL"; then
9205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9206$as_echo "$ac_ct_DSYMUTIL" >&6; }
9207else
9208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9209$as_echo "no" >&6; }
9210fi
9211
9212  if test "x$ac_ct_DSYMUTIL" = x; then
9213    DSYMUTIL=":"
9214  else
9215    case $cross_compiling:$ac_tool_warned in
9216yes:)
9217{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9218$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9219ac_tool_warned=yes ;;
9220esac
9221    DSYMUTIL=$ac_ct_DSYMUTIL
9222  fi
9223else
9224  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9225fi
9226
9227    if test -n "$ac_tool_prefix"; then
9228  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9229set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9231$as_echo_n "checking for $ac_word... " >&6; }
9232if test "${ac_cv_prog_NMEDIT+set}" = set; then :
9233  $as_echo_n "(cached) " >&6
9234else
9235  if test -n "$NMEDIT"; then
9236  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9237else
9238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9239for as_dir in $PATH
9240do
9241  IFS=$as_save_IFS
9242  test -z "$as_dir" && as_dir=.
9243    for ac_exec_ext in '' $ac_executable_extensions; do
9244  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9245    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9246    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9247    break 2
9248  fi
9249done
9250  done
9251IFS=$as_save_IFS
9252
9253fi
9254fi
9255NMEDIT=$ac_cv_prog_NMEDIT
9256if test -n "$NMEDIT"; then
9257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9258$as_echo "$NMEDIT" >&6; }
9259else
9260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9261$as_echo "no" >&6; }
9262fi
9263
9264
9265fi
9266if test -z "$ac_cv_prog_NMEDIT"; then
9267  ac_ct_NMEDIT=$NMEDIT
9268  # Extract the first word of "nmedit", so it can be a program name with args.
9269set dummy nmedit; ac_word=$2
9270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9271$as_echo_n "checking for $ac_word... " >&6; }
9272if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
9273  $as_echo_n "(cached) " >&6
9274else
9275  if test -n "$ac_ct_NMEDIT"; then
9276  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9277else
9278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9279for as_dir in $PATH
9280do
9281  IFS=$as_save_IFS
9282  test -z "$as_dir" && as_dir=.
9283    for ac_exec_ext in '' $ac_executable_extensions; do
9284  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9285    ac_cv_prog_ac_ct_NMEDIT="nmedit"
9286    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9287    break 2
9288  fi
9289done
9290  done
9291IFS=$as_save_IFS
9292
9293fi
9294fi
9295ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9296if test -n "$ac_ct_NMEDIT"; then
9297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9298$as_echo "$ac_ct_NMEDIT" >&6; }
9299else
9300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9301$as_echo "no" >&6; }
9302fi
9303
9304  if test "x$ac_ct_NMEDIT" = x; then
9305    NMEDIT=":"
9306  else
9307    case $cross_compiling:$ac_tool_warned in
9308yes:)
9309{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9310$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9311ac_tool_warned=yes ;;
9312esac
9313    NMEDIT=$ac_ct_NMEDIT
9314  fi
9315else
9316  NMEDIT="$ac_cv_prog_NMEDIT"
9317fi
9318
9319    if test -n "$ac_tool_prefix"; then
9320  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9321set dummy ${ac_tool_prefix}lipo; ac_word=$2
9322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9323$as_echo_n "checking for $ac_word... " >&6; }
9324if test "${ac_cv_prog_LIPO+set}" = set; then :
9325  $as_echo_n "(cached) " >&6
9326else
9327  if test -n "$LIPO"; then
9328  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9329else
9330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9331for as_dir in $PATH
9332do
9333  IFS=$as_save_IFS
9334  test -z "$as_dir" && as_dir=.
9335    for ac_exec_ext in '' $ac_executable_extensions; do
9336  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9337    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9338    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9339    break 2
9340  fi
9341done
9342  done
9343IFS=$as_save_IFS
9344
9345fi
9346fi
9347LIPO=$ac_cv_prog_LIPO
9348if test -n "$LIPO"; then
9349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9350$as_echo "$LIPO" >&6; }
9351else
9352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9353$as_echo "no" >&6; }
9354fi
9355
9356
9357fi
9358if test -z "$ac_cv_prog_LIPO"; then
9359  ac_ct_LIPO=$LIPO
9360  # Extract the first word of "lipo", so it can be a program name with args.
9361set dummy lipo; ac_word=$2
9362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9363$as_echo_n "checking for $ac_word... " >&6; }
9364if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
9365  $as_echo_n "(cached) " >&6
9366else
9367  if test -n "$ac_ct_LIPO"; then
9368  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9369else
9370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9371for as_dir in $PATH
9372do
9373  IFS=$as_save_IFS
9374  test -z "$as_dir" && as_dir=.
9375    for ac_exec_ext in '' $ac_executable_extensions; do
9376  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9377    ac_cv_prog_ac_ct_LIPO="lipo"
9378    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9379    break 2
9380  fi
9381done
9382  done
9383IFS=$as_save_IFS
9384
9385fi
9386fi
9387ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9388if test -n "$ac_ct_LIPO"; then
9389  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9390$as_echo "$ac_ct_LIPO" >&6; }
9391else
9392  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9393$as_echo "no" >&6; }
9394fi
9395
9396  if test "x$ac_ct_LIPO" = x; then
9397    LIPO=":"
9398  else
9399    case $cross_compiling:$ac_tool_warned in
9400yes:)
9401{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9402$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9403ac_tool_warned=yes ;;
9404esac
9405    LIPO=$ac_ct_LIPO
9406  fi
9407else
9408  LIPO="$ac_cv_prog_LIPO"
9409fi
9410
9411    if test -n "$ac_tool_prefix"; then
9412  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9413set dummy ${ac_tool_prefix}otool; ac_word=$2
9414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9415$as_echo_n "checking for $ac_word... " >&6; }
9416if test "${ac_cv_prog_OTOOL+set}" = set; then :
9417  $as_echo_n "(cached) " >&6
9418else
9419  if test -n "$OTOOL"; then
9420  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9421else
9422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9423for as_dir in $PATH
9424do
9425  IFS=$as_save_IFS
9426  test -z "$as_dir" && as_dir=.
9427    for ac_exec_ext in '' $ac_executable_extensions; do
9428  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9429    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9430    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9431    break 2
9432  fi
9433done
9434  done
9435IFS=$as_save_IFS
9436
9437fi
9438fi
9439OTOOL=$ac_cv_prog_OTOOL
9440if test -n "$OTOOL"; then
9441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9442$as_echo "$OTOOL" >&6; }
9443else
9444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9445$as_echo "no" >&6; }
9446fi
9447
9448
9449fi
9450if test -z "$ac_cv_prog_OTOOL"; then
9451  ac_ct_OTOOL=$OTOOL
9452  # Extract the first word of "otool", so it can be a program name with args.
9453set dummy otool; ac_word=$2
9454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9455$as_echo_n "checking for $ac_word... " >&6; }
9456if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
9457  $as_echo_n "(cached) " >&6
9458else
9459  if test -n "$ac_ct_OTOOL"; then
9460  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9461else
9462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9463for as_dir in $PATH
9464do
9465  IFS=$as_save_IFS
9466  test -z "$as_dir" && as_dir=.
9467    for ac_exec_ext in '' $ac_executable_extensions; do
9468  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9469    ac_cv_prog_ac_ct_OTOOL="otool"
9470    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9471    break 2
9472  fi
9473done
9474  done
9475IFS=$as_save_IFS
9476
9477fi
9478fi
9479ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9480if test -n "$ac_ct_OTOOL"; then
9481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9482$as_echo "$ac_ct_OTOOL" >&6; }
9483else
9484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9485$as_echo "no" >&6; }
9486fi
9487
9488  if test "x$ac_ct_OTOOL" = x; then
9489    OTOOL=":"
9490  else
9491    case $cross_compiling:$ac_tool_warned in
9492yes:)
9493{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9494$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9495ac_tool_warned=yes ;;
9496esac
9497    OTOOL=$ac_ct_OTOOL
9498  fi
9499else
9500  OTOOL="$ac_cv_prog_OTOOL"
9501fi
9502
9503    if test -n "$ac_tool_prefix"; then
9504  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9505set dummy ${ac_tool_prefix}otool64; ac_word=$2
9506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9507$as_echo_n "checking for $ac_word... " >&6; }
9508if test "${ac_cv_prog_OTOOL64+set}" = set; then :
9509  $as_echo_n "(cached) " >&6
9510else
9511  if test -n "$OTOOL64"; then
9512  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9513else
9514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9515for as_dir in $PATH
9516do
9517  IFS=$as_save_IFS
9518  test -z "$as_dir" && as_dir=.
9519    for ac_exec_ext in '' $ac_executable_extensions; do
9520  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9521    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9522    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9523    break 2
9524  fi
9525done
9526  done
9527IFS=$as_save_IFS
9528
9529fi
9530fi
9531OTOOL64=$ac_cv_prog_OTOOL64
9532if test -n "$OTOOL64"; then
9533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9534$as_echo "$OTOOL64" >&6; }
9535else
9536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9537$as_echo "no" >&6; }
9538fi
9539
9540
9541fi
9542if test -z "$ac_cv_prog_OTOOL64"; then
9543  ac_ct_OTOOL64=$OTOOL64
9544  # Extract the first word of "otool64", so it can be a program name with args.
9545set dummy otool64; ac_word=$2
9546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9547$as_echo_n "checking for $ac_word... " >&6; }
9548if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
9549  $as_echo_n "(cached) " >&6
9550else
9551  if test -n "$ac_ct_OTOOL64"; then
9552  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9553else
9554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9555for as_dir in $PATH
9556do
9557  IFS=$as_save_IFS
9558  test -z "$as_dir" && as_dir=.
9559    for ac_exec_ext in '' $ac_executable_extensions; do
9560  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9561    ac_cv_prog_ac_ct_OTOOL64="otool64"
9562    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9563    break 2
9564  fi
9565done
9566  done
9567IFS=$as_save_IFS
9568
9569fi
9570fi
9571ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9572if test -n "$ac_ct_OTOOL64"; then
9573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9574$as_echo "$ac_ct_OTOOL64" >&6; }
9575else
9576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9577$as_echo "no" >&6; }
9578fi
9579
9580  if test "x$ac_ct_OTOOL64" = x; then
9581    OTOOL64=":"
9582  else
9583    case $cross_compiling:$ac_tool_warned in
9584yes:)
9585{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9586$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9587ac_tool_warned=yes ;;
9588esac
9589    OTOOL64=$ac_ct_OTOOL64
9590  fi
9591else
9592  OTOOL64="$ac_cv_prog_OTOOL64"
9593fi
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9622$as_echo_n "checking for -single_module linker flag... " >&6; }
9623if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
9624  $as_echo_n "(cached) " >&6
9625else
9626  lt_cv_apple_cc_single_mod=no
9627      if test -z "${LT_MULTI_MODULE}"; then
9628	# By default we will add the -single_module flag. You can override
9629	# by either setting the environment variable LT_MULTI_MODULE
9630	# non-empty at configure time, or by adding -multi_module to the
9631	# link flags.
9632	rm -rf libconftest.dylib*
9633	echo "int foo(void){return 1;}" > conftest.c
9634	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9635-dynamiclib -Wl,-single_module conftest.c" >&5
9636	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9637	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9638        _lt_result=$?
9639	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9640	  lt_cv_apple_cc_single_mod=yes
9641	else
9642	  cat conftest.err >&5
9643	fi
9644	rm -rf libconftest.dylib*
9645	rm -f conftest.*
9646      fi
9647fi
9648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9649$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9650    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9651$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9652if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
9653  $as_echo_n "(cached) " >&6
9654else
9655  lt_cv_ld_exported_symbols_list=no
9656      save_LDFLAGS=$LDFLAGS
9657      echo "_main" > conftest.sym
9658      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9659      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9660/* end confdefs.h.  */
9661
9662int
9663main ()
9664{
9665
9666  ;
9667  return 0;
9668}
9669_ACEOF
9670if ac_fn_c_try_link "$LINENO"; then :
9671  lt_cv_ld_exported_symbols_list=yes
9672else
9673  lt_cv_ld_exported_symbols_list=no
9674fi
9675rm -f core conftest.err conftest.$ac_objext \
9676    conftest$ac_exeext conftest.$ac_ext
9677	LDFLAGS="$save_LDFLAGS"
9678
9679fi
9680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9681$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9682    case $host_os in
9683    rhapsody* | darwin1.[012])
9684      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9685    darwin1.*)
9686      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9687    darwin*) # darwin 5.x on
9688      # if running on 10.5 or later, the deployment target defaults
9689      # to the OS version, if on x86, and 10.4, the deployment
9690      # target defaults to 10.4. Don't you love it?
9691      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9692	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9693	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9694	10.[012]*)
9695	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9696	10.*)
9697	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9698      esac
9699    ;;
9700  esac
9701    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9702      _lt_dar_single_mod='$single_module'
9703    fi
9704    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9705      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9706    else
9707      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9708    fi
9709    if test "$DSYMUTIL" != ":"; then
9710      _lt_dsymutil='~$DSYMUTIL $lib || :'
9711    else
9712      _lt_dsymutil=
9713    fi
9714    ;;
9715  esac
9716
9717for ac_header in dlfcn.h
9718do :
9719  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9720"
9721if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9722  cat >>confdefs.h <<_ACEOF
9723#define HAVE_DLFCN_H 1
9724_ACEOF
9725
9726fi
9727
9728done
9729
9730
9731
9732# Set options
9733
9734
9735
9736        enable_dlopen=no
9737
9738
9739
9740            # Check whether --enable-shared was given.
9741if test "${enable_shared+set}" = set; then :
9742  enableval=$enable_shared; p=${PACKAGE-default}
9743    case $enableval in
9744    yes) enable_shared=yes ;;
9745    no) enable_shared=no ;;
9746    *)
9747      enable_shared=no
9748      # Look at the argument we got.  We use all the common list separators.
9749      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9750      for pkg in $enableval; do
9751	IFS="$lt_save_ifs"
9752	if test "X$pkg" = "X$p"; then
9753	  enable_shared=yes
9754	fi
9755      done
9756      IFS="$lt_save_ifs"
9757      ;;
9758    esac
9759else
9760  enable_shared=yes
9761fi
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771  # Check whether --enable-static was given.
9772if test "${enable_static+set}" = set; then :
9773  enableval=$enable_static; p=${PACKAGE-default}
9774    case $enableval in
9775    yes) enable_static=yes ;;
9776    no) enable_static=no ;;
9777    *)
9778     enable_static=no
9779      # Look at the argument we got.  We use all the common list separators.
9780      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9781      for pkg in $enableval; do
9782	IFS="$lt_save_ifs"
9783	if test "X$pkg" = "X$p"; then
9784	  enable_static=yes
9785	fi
9786      done
9787      IFS="$lt_save_ifs"
9788      ;;
9789    esac
9790else
9791  enable_static=yes
9792fi
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803# Check whether --with-pic was given.
9804if test "${with_pic+set}" = set; then :
9805  withval=$with_pic; pic_mode="$withval"
9806else
9807  pic_mode=default
9808fi
9809
9810
9811test -z "$pic_mode" && pic_mode=default
9812
9813
9814
9815
9816
9817
9818
9819  # Check whether --enable-fast-install was given.
9820if test "${enable_fast_install+set}" = set; then :
9821  enableval=$enable_fast_install; p=${PACKAGE-default}
9822    case $enableval in
9823    yes) enable_fast_install=yes ;;
9824    no) enable_fast_install=no ;;
9825    *)
9826      enable_fast_install=no
9827      # Look at the argument we got.  We use all the common list separators.
9828      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9829      for pkg in $enableval; do
9830	IFS="$lt_save_ifs"
9831	if test "X$pkg" = "X$p"; then
9832	  enable_fast_install=yes
9833	fi
9834      done
9835      IFS="$lt_save_ifs"
9836      ;;
9837    esac
9838else
9839  enable_fast_install=yes
9840fi
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852# This can be used to rebuild libtool when needed
9853LIBTOOL_DEPS="$ltmain"
9854
9855# Always use our own libtool.
9856LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882test -z "$LN_S" && LN_S="ln -s"
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897if test -n "${ZSH_VERSION+set}" ; then
9898   setopt NO_GLOB_SUBST
9899fi
9900
9901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9902$as_echo_n "checking for objdir... " >&6; }
9903if test "${lt_cv_objdir+set}" = set; then :
9904  $as_echo_n "(cached) " >&6
9905else
9906  rm -f .libs 2>/dev/null
9907mkdir .libs 2>/dev/null
9908if test -d .libs; then
9909  lt_cv_objdir=.libs
9910else
9911  # MS-DOS does not allow filenames that begin with a dot.
9912  lt_cv_objdir=_libs
9913fi
9914rmdir .libs 2>/dev/null
9915fi
9916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9917$as_echo "$lt_cv_objdir" >&6; }
9918objdir=$lt_cv_objdir
9919
9920
9921
9922
9923
9924cat >>confdefs.h <<_ACEOF
9925#define LT_OBJDIR "$lt_cv_objdir/"
9926_ACEOF
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944case $host_os in
9945aix3*)
9946  # AIX sometimes has problems with the GCC collect2 program.  For some
9947  # reason, if we set the COLLECT_NAMES environment variable, the problems
9948  # vanish in a puff of smoke.
9949  if test "X${COLLECT_NAMES+set}" != Xset; then
9950    COLLECT_NAMES=
9951    export COLLECT_NAMES
9952  fi
9953  ;;
9954esac
9955
9956# Sed substitution that helps us do robust quoting.  It backslashifies
9957# metacharacters that are still active within double-quoted strings.
9958sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9959
9960# Same as above, but do not quote variable references.
9961double_quote_subst='s/\(["`\\]\)/\\\1/g'
9962
9963# Sed substitution to delay expansion of an escaped shell variable in a
9964# double_quote_subst'ed string.
9965delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9966
9967# Sed substitution to delay expansion of an escaped single quote.
9968delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9969
9970# Sed substitution to avoid accidental globbing in evaled expressions
9971no_glob_subst='s/\*/\\\*/g'
9972
9973# Global variables:
9974ofile=libtool
9975can_build_shared=yes
9976
9977# All known linkers require a `.a' archive for static linking (except MSVC,
9978# which needs '.lib').
9979libext=a
9980
9981with_gnu_ld="$lt_cv_prog_gnu_ld"
9982
9983old_CC="$CC"
9984old_CFLAGS="$CFLAGS"
9985
9986# Set sane defaults for various variables
9987test -z "$CC" && CC=cc
9988test -z "$LTCC" && LTCC=$CC
9989test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9990test -z "$LD" && LD=ld
9991test -z "$ac_objext" && ac_objext=o
9992
9993for cc_temp in $compiler""; do
9994  case $cc_temp in
9995    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9996    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9997    \-*) ;;
9998    *) break;;
9999  esac
10000done
10001cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10002
10003
10004# Only perform the check for file, if the check method requires it
10005test -z "$MAGIC_CMD" && MAGIC_CMD=file
10006case $deplibs_check_method in
10007file_magic*)
10008  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10009    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10010$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10011if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10012  $as_echo_n "(cached) " >&6
10013else
10014  case $MAGIC_CMD in
10015[\\/*] |  ?:[\\/]*)
10016  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10017  ;;
10018*)
10019  lt_save_MAGIC_CMD="$MAGIC_CMD"
10020  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10021  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10022  for ac_dir in $ac_dummy; do
10023    IFS="$lt_save_ifs"
10024    test -z "$ac_dir" && ac_dir=.
10025    if test -f $ac_dir/${ac_tool_prefix}file; then
10026      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10027      if test -n "$file_magic_test_file"; then
10028	case $deplibs_check_method in
10029	"file_magic "*)
10030	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10031	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10032	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10033	    $EGREP "$file_magic_regex" > /dev/null; then
10034	    :
10035	  else
10036	    cat <<_LT_EOF 1>&2
10037
10038*** Warning: the command libtool uses to detect shared libraries,
10039*** $file_magic_cmd, produces output that libtool cannot recognize.
10040*** The result is that libtool may fail to recognize shared libraries
10041*** as such.  This will affect the creation of libtool libraries that
10042*** depend on shared libraries, but programs linked with such libtool
10043*** libraries will work regardless of this problem.  Nevertheless, you
10044*** may want to report the problem to your system manager and/or to
10045*** bug-libtool@gnu.org
10046
10047_LT_EOF
10048	  fi ;;
10049	esac
10050      fi
10051      break
10052    fi
10053  done
10054  IFS="$lt_save_ifs"
10055  MAGIC_CMD="$lt_save_MAGIC_CMD"
10056  ;;
10057esac
10058fi
10059
10060MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10061if test -n "$MAGIC_CMD"; then
10062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10063$as_echo "$MAGIC_CMD" >&6; }
10064else
10065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10066$as_echo "no" >&6; }
10067fi
10068
10069
10070
10071
10072
10073if test -z "$lt_cv_path_MAGIC_CMD"; then
10074  if test -n "$ac_tool_prefix"; then
10075    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10076$as_echo_n "checking for file... " >&6; }
10077if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10078  $as_echo_n "(cached) " >&6
10079else
10080  case $MAGIC_CMD in
10081[\\/*] |  ?:[\\/]*)
10082  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10083  ;;
10084*)
10085  lt_save_MAGIC_CMD="$MAGIC_CMD"
10086  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10087  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10088  for ac_dir in $ac_dummy; do
10089    IFS="$lt_save_ifs"
10090    test -z "$ac_dir" && ac_dir=.
10091    if test -f $ac_dir/file; then
10092      lt_cv_path_MAGIC_CMD="$ac_dir/file"
10093      if test -n "$file_magic_test_file"; then
10094	case $deplibs_check_method in
10095	"file_magic "*)
10096	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10097	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10098	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10099	    $EGREP "$file_magic_regex" > /dev/null; then
10100	    :
10101	  else
10102	    cat <<_LT_EOF 1>&2
10103
10104*** Warning: the command libtool uses to detect shared libraries,
10105*** $file_magic_cmd, produces output that libtool cannot recognize.
10106*** The result is that libtool may fail to recognize shared libraries
10107*** as such.  This will affect the creation of libtool libraries that
10108*** depend on shared libraries, but programs linked with such libtool
10109*** libraries will work regardless of this problem.  Nevertheless, you
10110*** may want to report the problem to your system manager and/or to
10111*** bug-libtool@gnu.org
10112
10113_LT_EOF
10114	  fi ;;
10115	esac
10116      fi
10117      break
10118    fi
10119  done
10120  IFS="$lt_save_ifs"
10121  MAGIC_CMD="$lt_save_MAGIC_CMD"
10122  ;;
10123esac
10124fi
10125
10126MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10127if test -n "$MAGIC_CMD"; then
10128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10129$as_echo "$MAGIC_CMD" >&6; }
10130else
10131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10132$as_echo "no" >&6; }
10133fi
10134
10135
10136  else
10137    MAGIC_CMD=:
10138  fi
10139fi
10140
10141  fi
10142  ;;
10143esac
10144
10145# Use C for the default configuration in the libtool script
10146
10147lt_save_CC="$CC"
10148ac_ext=c
10149ac_cpp='$CPP $CPPFLAGS'
10150ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10151ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10152ac_compiler_gnu=$ac_cv_c_compiler_gnu
10153
10154
10155# Source file extension for C test sources.
10156ac_ext=c
10157
10158# Object file extension for compiled C test sources.
10159objext=o
10160objext=$objext
10161
10162# Code to be used in simple compile tests
10163lt_simple_compile_test_code="int some_variable = 0;"
10164
10165# Code to be used in simple link tests
10166lt_simple_link_test_code='int main(){return(0);}'
10167
10168
10169
10170
10171
10172
10173
10174# If no C compiler was specified, use CC.
10175LTCC=${LTCC-"$CC"}
10176
10177# If no C compiler flags were specified, use CFLAGS.
10178LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10179
10180# Allow CC to be a program name with arguments.
10181compiler=$CC
10182
10183# Save the default compiler, since it gets overwritten when the other
10184# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10185compiler_DEFAULT=$CC
10186
10187# save warnings/boilerplate of simple test code
10188ac_outfile=conftest.$ac_objext
10189echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10190eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10191_lt_compiler_boilerplate=`cat conftest.err`
10192$RM conftest*
10193
10194ac_outfile=conftest.$ac_objext
10195echo "$lt_simple_link_test_code" >conftest.$ac_ext
10196eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10197_lt_linker_boilerplate=`cat conftest.err`
10198$RM -r conftest*
10199
10200
10201## CAVEAT EMPTOR:
10202## There is no encapsulation within the following macros, do not change
10203## the running order or otherwise move them around unless you know exactly
10204## what you are doing...
10205if test -n "$compiler"; then
10206
10207lt_prog_compiler_no_builtin_flag=
10208
10209if test "$GCC" = yes; then
10210  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
10211
10212  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10213$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10214if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
10215  $as_echo_n "(cached) " >&6
10216else
10217  lt_cv_prog_compiler_rtti_exceptions=no
10218   ac_outfile=conftest.$ac_objext
10219   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10220   lt_compiler_flag="-fno-rtti -fno-exceptions"
10221   # Insert the option either (1) after the last *FLAGS variable, or
10222   # (2) before a word containing "conftest.", or (3) at the end.
10223   # Note that $ac_compile itself does not contain backslashes and begins
10224   # with a dollar sign (not a hyphen), so the echo should work correctly.
10225   # The option is referenced via a variable to avoid confusing sed.
10226   lt_compile=`echo "$ac_compile" | $SED \
10227   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10228   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10229   -e 's:$: $lt_compiler_flag:'`
10230   (eval echo "\"\$as_me:10230: $lt_compile\"" >&5)
10231   (eval "$lt_compile" 2>conftest.err)
10232   ac_status=$?
10233   cat conftest.err >&5
10234   echo "$as_me:10234: \$? = $ac_status" >&5
10235   if (exit $ac_status) && test -s "$ac_outfile"; then
10236     # The compiler can only warn and ignore the option if not recognized
10237     # So say no if there are warnings other than the usual output.
10238     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10239     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10240     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10241       lt_cv_prog_compiler_rtti_exceptions=yes
10242     fi
10243   fi
10244   $RM conftest*
10245
10246fi
10247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10248$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10249
10250if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10251    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10252else
10253    :
10254fi
10255
10256fi
10257
10258
10259
10260
10261
10262
10263  lt_prog_compiler_wl=
10264lt_prog_compiler_pic=
10265lt_prog_compiler_static=
10266
10267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10268$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10269
10270  if test "$GCC" = yes; then
10271    lt_prog_compiler_wl='-Wl,'
10272    lt_prog_compiler_static='-static'
10273
10274    case $host_os in
10275      aix*)
10276      # All AIX code is PIC.
10277      if test "$host_cpu" = ia64; then
10278	# AIX 5 now supports IA64 processor
10279	lt_prog_compiler_static='-Bstatic'
10280      fi
10281      ;;
10282
10283    amigaos*)
10284      case $host_cpu in
10285      powerpc)
10286            # see comment about AmigaOS4 .so support
10287            lt_prog_compiler_pic='-fPIC'
10288        ;;
10289      m68k)
10290            # FIXME: we need at least 68020 code to build shared libraries, but
10291            # adding the `-m68020' flag to GCC prevents building anything better,
10292            # like `-m68040'.
10293            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10294        ;;
10295      esac
10296      ;;
10297
10298    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10299      # PIC is the default for these OSes.
10300      ;;
10301
10302    mingw* | cygwin* | pw32* | os2* | cegcc*)
10303      # This hack is so that the source file can tell whether it is being
10304      # built for inclusion in a dll (and should export symbols for example).
10305      # Although the cygwin gcc ignores -fPIC, still need this for old-style
10306      # (--disable-auto-import) libraries
10307      lt_prog_compiler_pic='-DDLL_EXPORT'
10308      ;;
10309
10310    darwin* | rhapsody*)
10311      # PIC is the default on this platform
10312      # Common symbols not allowed in MH_DYLIB files
10313      lt_prog_compiler_pic='-fno-common'
10314      ;;
10315
10316    hpux*)
10317      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10318      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10319      # sets the default TLS model and affects inlining.
10320      case $host_cpu in
10321      hppa*64*)
10322	# +Z the default
10323	;;
10324      *)
10325	lt_prog_compiler_pic='-fPIC'
10326	;;
10327      esac
10328      ;;
10329
10330    interix[3-9]*)
10331      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10332      # Instead, we relocate shared libraries at runtime.
10333      ;;
10334
10335    msdosdjgpp*)
10336      # Just because we use GCC doesn't mean we suddenly get shared libraries
10337      # on systems that don't support them.
10338      lt_prog_compiler_can_build_shared=no
10339      enable_shared=no
10340      ;;
10341
10342    *nto* | *qnx*)
10343      # QNX uses GNU C++, but need to define -shared option too, otherwise
10344      # it will coredump.
10345      lt_prog_compiler_pic='-fPIC -shared'
10346      ;;
10347
10348    sysv4*MP*)
10349      if test -d /usr/nec; then
10350	lt_prog_compiler_pic=-Kconform_pic
10351      fi
10352      ;;
10353
10354    *)
10355      lt_prog_compiler_pic='-fPIC'
10356      ;;
10357    esac
10358  else
10359    # PORTME Check for flag to pass linker flags through the system compiler.
10360    case $host_os in
10361    aix*)
10362      lt_prog_compiler_wl='-Wl,'
10363      if test "$host_cpu" = ia64; then
10364	# AIX 5 now supports IA64 processor
10365	lt_prog_compiler_static='-Bstatic'
10366      else
10367	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10368      fi
10369      ;;
10370
10371    mingw* | cygwin* | pw32* | os2* | cegcc*)
10372      # This hack is so that the source file can tell whether it is being
10373      # built for inclusion in a dll (and should export symbols for example).
10374      lt_prog_compiler_pic='-DDLL_EXPORT'
10375      ;;
10376
10377    hpux9* | hpux10* | hpux11*)
10378      lt_prog_compiler_wl='-Wl,'
10379      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10380      # not for PA HP-UX.
10381      case $host_cpu in
10382      hppa*64*|ia64*)
10383	# +Z the default
10384	;;
10385      *)
10386	lt_prog_compiler_pic='+Z'
10387	;;
10388      esac
10389      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10390      lt_prog_compiler_static='${wl}-a ${wl}archive'
10391      ;;
10392
10393    irix5* | irix6* | nonstopux*)
10394      lt_prog_compiler_wl='-Wl,'
10395      # PIC (with -KPIC) is the default.
10396      lt_prog_compiler_static='-non_shared'
10397      ;;
10398
10399    linux* | k*bsd*-gnu | kopensolaris*-gnu)
10400      case $cc_basename in
10401      # old Intel for x86_64 which still supported -KPIC.
10402      ecc*)
10403	lt_prog_compiler_wl='-Wl,'
10404	lt_prog_compiler_pic='-KPIC'
10405	lt_prog_compiler_static='-static'
10406        ;;
10407      # icc used to be incompatible with GCC.
10408      # ICC 10 doesn't accept -KPIC any more.
10409      icc* | ifort*)
10410	lt_prog_compiler_wl='-Wl,'
10411	lt_prog_compiler_pic='-fPIC'
10412	lt_prog_compiler_static='-static'
10413        ;;
10414      # Lahey Fortran 8.1.
10415      lf95*)
10416	lt_prog_compiler_wl='-Wl,'
10417	lt_prog_compiler_pic='--shared'
10418	lt_prog_compiler_static='--static'
10419	;;
10420      pgcc* | pgf77* | pgf90* | pgf95*)
10421        # Portland Group compilers (*not* the Pentium gcc compiler,
10422	# which looks to be a dead project)
10423	lt_prog_compiler_wl='-Wl,'
10424	lt_prog_compiler_pic='-fpic'
10425	lt_prog_compiler_static='-Bstatic'
10426        ;;
10427      ccc*)
10428        lt_prog_compiler_wl='-Wl,'
10429        # All Alpha code is PIC.
10430        lt_prog_compiler_static='-non_shared'
10431        ;;
10432      xl*)
10433	# IBM XL C 8.0/Fortran 10.1 on PPC
10434	lt_prog_compiler_wl='-Wl,'
10435	lt_prog_compiler_pic='-qpic'
10436	lt_prog_compiler_static='-qstaticlink'
10437	;;
10438      *)
10439	case `$CC -V 2>&1 | sed 5q` in
10440	*Sun\ C*)
10441	  # Sun C 5.9
10442	  lt_prog_compiler_pic='-KPIC'
10443	  lt_prog_compiler_static='-Bstatic'
10444	  lt_prog_compiler_wl='-Wl,'
10445	  ;;
10446	*Sun\ F*)
10447	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
10448	  lt_prog_compiler_pic='-KPIC'
10449	  lt_prog_compiler_static='-Bstatic'
10450	  lt_prog_compiler_wl=''
10451	  ;;
10452	esac
10453	;;
10454      esac
10455      ;;
10456
10457    newsos6)
10458      lt_prog_compiler_pic='-KPIC'
10459      lt_prog_compiler_static='-Bstatic'
10460      ;;
10461
10462    *nto* | *qnx*)
10463      # QNX uses GNU C++, but need to define -shared option too, otherwise
10464      # it will coredump.
10465      lt_prog_compiler_pic='-fPIC -shared'
10466      ;;
10467
10468    osf3* | osf4* | osf5*)
10469      lt_prog_compiler_wl='-Wl,'
10470      # All OSF/1 code is PIC.
10471      lt_prog_compiler_static='-non_shared'
10472      ;;
10473
10474    rdos*)
10475      lt_prog_compiler_static='-non_shared'
10476      ;;
10477
10478    solaris*)
10479      lt_prog_compiler_pic='-KPIC'
10480      lt_prog_compiler_static='-Bstatic'
10481      case $cc_basename in
10482      f77* | f90* | f95*)
10483	lt_prog_compiler_wl='-Qoption ld ';;
10484      *)
10485	lt_prog_compiler_wl='-Wl,';;
10486      esac
10487      ;;
10488
10489    sunos4*)
10490      lt_prog_compiler_wl='-Qoption ld '
10491      lt_prog_compiler_pic='-PIC'
10492      lt_prog_compiler_static='-Bstatic'
10493      ;;
10494
10495    sysv4 | sysv4.2uw2* | sysv4.3*)
10496      lt_prog_compiler_wl='-Wl,'
10497      lt_prog_compiler_pic='-KPIC'
10498      lt_prog_compiler_static='-Bstatic'
10499      ;;
10500
10501    sysv4*MP*)
10502      if test -d /usr/nec ;then
10503	lt_prog_compiler_pic='-Kconform_pic'
10504	lt_prog_compiler_static='-Bstatic'
10505      fi
10506      ;;
10507
10508    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10509      lt_prog_compiler_wl='-Wl,'
10510      lt_prog_compiler_pic='-KPIC'
10511      lt_prog_compiler_static='-Bstatic'
10512      ;;
10513
10514    unicos*)
10515      lt_prog_compiler_wl='-Wl,'
10516      lt_prog_compiler_can_build_shared=no
10517      ;;
10518
10519    uts4*)
10520      lt_prog_compiler_pic='-pic'
10521      lt_prog_compiler_static='-Bstatic'
10522      ;;
10523
10524    *)
10525      lt_prog_compiler_can_build_shared=no
10526      ;;
10527    esac
10528  fi
10529
10530case $host_os in
10531  # For platforms which do not support PIC, -DPIC is meaningless:
10532  *djgpp*)
10533    lt_prog_compiler_pic=
10534    ;;
10535  *)
10536    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10537    ;;
10538esac
10539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10540$as_echo "$lt_prog_compiler_pic" >&6; }
10541
10542
10543
10544
10545
10546
10547#
10548# Check to make sure the PIC flag actually works.
10549#
10550if test -n "$lt_prog_compiler_pic"; then
10551  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10552$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10553if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
10554  $as_echo_n "(cached) " >&6
10555else
10556  lt_cv_prog_compiler_pic_works=no
10557   ac_outfile=conftest.$ac_objext
10558   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10559   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10560   # Insert the option either (1) after the last *FLAGS variable, or
10561   # (2) before a word containing "conftest.", or (3) at the end.
10562   # Note that $ac_compile itself does not contain backslashes and begins
10563   # with a dollar sign (not a hyphen), so the echo should work correctly.
10564   # The option is referenced via a variable to avoid confusing sed.
10565   lt_compile=`echo "$ac_compile" | $SED \
10566   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10567   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10568   -e 's:$: $lt_compiler_flag:'`
10569   (eval echo "\"\$as_me:10569: $lt_compile\"" >&5)
10570   (eval "$lt_compile" 2>conftest.err)
10571   ac_status=$?
10572   cat conftest.err >&5
10573   echo "$as_me:10573: \$? = $ac_status" >&5
10574   if (exit $ac_status) && test -s "$ac_outfile"; then
10575     # The compiler can only warn and ignore the option if not recognized
10576     # So say no if there are warnings other than the usual output.
10577     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10578     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10579     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10580       lt_cv_prog_compiler_pic_works=yes
10581     fi
10582   fi
10583   $RM conftest*
10584
10585fi
10586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10587$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10588
10589if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10590    case $lt_prog_compiler_pic in
10591     "" | " "*) ;;
10592     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10593     esac
10594else
10595    lt_prog_compiler_pic=
10596     lt_prog_compiler_can_build_shared=no
10597fi
10598
10599fi
10600
10601
10602
10603
10604
10605
10606#
10607# Check to make sure the static flag actually works.
10608#
10609wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10611$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10612if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
10613  $as_echo_n "(cached) " >&6
10614else
10615  lt_cv_prog_compiler_static_works=no
10616   save_LDFLAGS="$LDFLAGS"
10617   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10618   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10619   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10620     # The linker can only warn and ignore the option if not recognized
10621     # So say no if there are warnings
10622     if test -s conftest.err; then
10623       # Append any errors to the config.log.
10624       cat conftest.err 1>&5
10625       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10626       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10627       if diff conftest.exp conftest.er2 >/dev/null; then
10628         lt_cv_prog_compiler_static_works=yes
10629       fi
10630     else
10631       lt_cv_prog_compiler_static_works=yes
10632     fi
10633   fi
10634   $RM -r conftest*
10635   LDFLAGS="$save_LDFLAGS"
10636
10637fi
10638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10639$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10640
10641if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10642    :
10643else
10644    lt_prog_compiler_static=
10645fi
10646
10647
10648
10649
10650
10651
10652
10653  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10654$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10655if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10656  $as_echo_n "(cached) " >&6
10657else
10658  lt_cv_prog_compiler_c_o=no
10659   $RM -r conftest 2>/dev/null
10660   mkdir conftest
10661   cd conftest
10662   mkdir out
10663   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10664
10665   lt_compiler_flag="-o out/conftest2.$ac_objext"
10666   # Insert the option either (1) after the last *FLAGS variable, or
10667   # (2) before a word containing "conftest.", or (3) at the end.
10668   # Note that $ac_compile itself does not contain backslashes and begins
10669   # with a dollar sign (not a hyphen), so the echo should work correctly.
10670   lt_compile=`echo "$ac_compile" | $SED \
10671   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10672   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10673   -e 's:$: $lt_compiler_flag:'`
10674   (eval echo "\"\$as_me:10674: $lt_compile\"" >&5)
10675   (eval "$lt_compile" 2>out/conftest.err)
10676   ac_status=$?
10677   cat out/conftest.err >&5
10678   echo "$as_me:10678: \$? = $ac_status" >&5
10679   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10680   then
10681     # The compiler can only warn and ignore the option if not recognized
10682     # So say no if there are warnings
10683     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10684     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10685     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10686       lt_cv_prog_compiler_c_o=yes
10687     fi
10688   fi
10689   chmod u+w . 2>&5
10690   $RM conftest*
10691   # SGI C++ compiler will create directory out/ii_files/ for
10692   # template instantiation
10693   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10694   $RM out/* && rmdir out
10695   cd ..
10696   $RM -r conftest
10697   $RM conftest*
10698
10699fi
10700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10701$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10702
10703
10704
10705
10706
10707
10708  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10709$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10710if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10711  $as_echo_n "(cached) " >&6
10712else
10713  lt_cv_prog_compiler_c_o=no
10714   $RM -r conftest 2>/dev/null
10715   mkdir conftest
10716   cd conftest
10717   mkdir out
10718   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10719
10720   lt_compiler_flag="-o out/conftest2.$ac_objext"
10721   # Insert the option either (1) after the last *FLAGS variable, or
10722   # (2) before a word containing "conftest.", or (3) at the end.
10723   # Note that $ac_compile itself does not contain backslashes and begins
10724   # with a dollar sign (not a hyphen), so the echo should work correctly.
10725   lt_compile=`echo "$ac_compile" | $SED \
10726   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10727   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10728   -e 's:$: $lt_compiler_flag:'`
10729   (eval echo "\"\$as_me:10729: $lt_compile\"" >&5)
10730   (eval "$lt_compile" 2>out/conftest.err)
10731   ac_status=$?
10732   cat out/conftest.err >&5
10733   echo "$as_me:10733: \$? = $ac_status" >&5
10734   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10735   then
10736     # The compiler can only warn and ignore the option if not recognized
10737     # So say no if there are warnings
10738     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10739     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10740     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10741       lt_cv_prog_compiler_c_o=yes
10742     fi
10743   fi
10744   chmod u+w . 2>&5
10745   $RM conftest*
10746   # SGI C++ compiler will create directory out/ii_files/ for
10747   # template instantiation
10748   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10749   $RM out/* && rmdir out
10750   cd ..
10751   $RM -r conftest
10752   $RM conftest*
10753
10754fi
10755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10756$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10757
10758
10759
10760
10761hard_links="nottested"
10762if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10763  # do not overwrite the value of need_locks provided by the user
10764  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10765$as_echo_n "checking if we can lock with hard links... " >&6; }
10766  hard_links=yes
10767  $RM conftest*
10768  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10769  touch conftest.a
10770  ln conftest.a conftest.b 2>&5 || hard_links=no
10771  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10773$as_echo "$hard_links" >&6; }
10774  if test "$hard_links" = no; then
10775    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10776$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10777    need_locks=warn
10778  fi
10779else
10780  need_locks=no
10781fi
10782
10783
10784
10785
10786
10787
10788  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10789$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10790
10791  runpath_var=
10792  allow_undefined_flag=
10793  always_export_symbols=no
10794  archive_cmds=
10795  archive_expsym_cmds=
10796  compiler_needs_object=no
10797  enable_shared_with_static_runtimes=no
10798  export_dynamic_flag_spec=
10799  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10800  hardcode_automatic=no
10801  hardcode_direct=no
10802  hardcode_direct_absolute=no
10803  hardcode_libdir_flag_spec=
10804  hardcode_libdir_flag_spec_ld=
10805  hardcode_libdir_separator=
10806  hardcode_minus_L=no
10807  hardcode_shlibpath_var=unsupported
10808  inherit_rpath=no
10809  link_all_deplibs=unknown
10810  module_cmds=
10811  module_expsym_cmds=
10812  old_archive_from_new_cmds=
10813  old_archive_from_expsyms_cmds=
10814  thread_safe_flag_spec=
10815  whole_archive_flag_spec=
10816  # include_expsyms should be a list of space-separated symbols to be *always*
10817  # included in the symbol list
10818  include_expsyms=
10819  # exclude_expsyms can be an extended regexp of symbols to exclude
10820  # it will be wrapped by ` (' and `)$', so one must not match beginning or
10821  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10822  # as well as any symbol that contains `d'.
10823  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10824  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10825  # platforms (ab)use it in PIC code, but their linkers get confused if
10826  # the symbol is explicitly referenced.  Since portable code cannot
10827  # rely on this symbol name, it's probably fine to never include it in
10828  # preloaded symbol tables.
10829  # Exclude shared library initialization/finalization symbols.
10830  extract_expsyms_cmds=
10831
10832  case $host_os in
10833  cygwin* | mingw* | pw32* | cegcc*)
10834    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10835    # When not using gcc, we currently assume that we are using
10836    # Microsoft Visual C++.
10837    if test "$GCC" != yes; then
10838      with_gnu_ld=no
10839    fi
10840    ;;
10841  interix*)
10842    # we just hope/assume this is gcc and not c89 (= MSVC++)
10843    with_gnu_ld=yes
10844    ;;
10845  openbsd*)
10846    with_gnu_ld=no
10847    ;;
10848  linux* | k*bsd*-gnu)
10849    link_all_deplibs=no
10850    ;;
10851  esac
10852
10853  ld_shlibs=yes
10854  if test "$with_gnu_ld" = yes; then
10855    # If archive_cmds runs LD, not CC, wlarc should be empty
10856    wlarc='${wl}'
10857
10858    # Set some defaults for GNU ld with shared library support. These
10859    # are reset later if shared libraries are not supported. Putting them
10860    # here allows them to be overridden if necessary.
10861    runpath_var=LD_RUN_PATH
10862    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10863    export_dynamic_flag_spec='${wl}--export-dynamic'
10864    # ancient GNU ld didn't support --whole-archive et. al.
10865    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10866      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10867    else
10868      whole_archive_flag_spec=
10869    fi
10870    supports_anon_versioning=no
10871    case `$LD -v 2>&1` in
10872      *GNU\ gold*) supports_anon_versioning=yes ;;
10873      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10874      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10875      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10876      *\ 2.11.*) ;; # other 2.11 versions
10877      *) supports_anon_versioning=yes ;;
10878    esac
10879
10880    # See if GNU ld supports shared libraries.
10881    case $host_os in
10882    aix[3-9]*)
10883      # On AIX/PPC, the GNU linker is very broken
10884      if test "$host_cpu" != ia64; then
10885	ld_shlibs=no
10886	cat <<_LT_EOF 1>&2
10887
10888*** Warning: the GNU linker, at least up to release 2.9.1, is reported
10889*** to be unable to reliably create shared libraries on AIX.
10890*** Therefore, libtool is disabling shared libraries support.  If you
10891*** really care for shared libraries, you may want to modify your PATH
10892*** so that a non-GNU linker is found, and then restart.
10893
10894_LT_EOF
10895      fi
10896      ;;
10897
10898    amigaos*)
10899      case $host_cpu in
10900      powerpc)
10901            # see comment about AmigaOS4 .so support
10902            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10903            archive_expsym_cmds=''
10904        ;;
10905      m68k)
10906            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)'
10907            hardcode_libdir_flag_spec='-L$libdir'
10908            hardcode_minus_L=yes
10909        ;;
10910      esac
10911      ;;
10912
10913    beos*)
10914      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10915	allow_undefined_flag=unsupported
10916	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10917	# support --undefined.  This deserves some investigation.  FIXME
10918	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10919      else
10920	ld_shlibs=no
10921      fi
10922      ;;
10923
10924    cygwin* | mingw* | pw32* | cegcc*)
10925      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10926      # as there is no search path for DLLs.
10927      hardcode_libdir_flag_spec='-L$libdir'
10928      allow_undefined_flag=unsupported
10929      always_export_symbols=no
10930      enable_shared_with_static_runtimes=yes
10931      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10932
10933      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10934        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10935	# If the export-symbols file already is a .def file (1st line
10936	# is EXPORTS), use it as is; otherwise, prepend...
10937	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10938	  cp $export_symbols $output_objdir/$soname.def;
10939	else
10940	  echo EXPORTS > $output_objdir/$soname.def;
10941	  cat $export_symbols >> $output_objdir/$soname.def;
10942	fi~
10943	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10944      else
10945	ld_shlibs=no
10946      fi
10947      ;;
10948
10949    interix[3-9]*)
10950      hardcode_direct=no
10951      hardcode_shlibpath_var=no
10952      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10953      export_dynamic_flag_spec='${wl}-E'
10954      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10955      # Instead, shared libraries are loaded at an image base (0x10000000 by
10956      # default) and relocated if they conflict, which is a slow very memory
10957      # consuming and fragmenting process.  To avoid this, we pick a random,
10958      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10959      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10960      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10961      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'
10962      ;;
10963
10964    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10965      tmp_diet=no
10966      if test "$host_os" = linux-dietlibc; then
10967	case $cc_basename in
10968	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10969	esac
10970      fi
10971      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10972	 && test "$tmp_diet" = no
10973      then
10974	tmp_addflag=
10975	tmp_sharedflag='-shared'
10976	case $cc_basename,$host_cpu in
10977        pgcc*)				# Portland Group C compiler
10978	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10979	  tmp_addflag=' $pic_flag'
10980	  ;;
10981	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
10982	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10983	  tmp_addflag=' $pic_flag -Mnomain' ;;
10984	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10985	  tmp_addflag=' -i_dynamic' ;;
10986	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10987	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10988	ifc* | ifort*)			# Intel Fortran compiler
10989	  tmp_addflag=' -nofor_main' ;;
10990	lf95*)				# Lahey Fortran 8.1
10991	  whole_archive_flag_spec=
10992	  tmp_sharedflag='--shared' ;;
10993	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
10994	  tmp_sharedflag='-qmkshrobj'
10995	  tmp_addflag= ;;
10996	esac
10997	case `$CC -V 2>&1 | sed 5q` in
10998	*Sun\ C*)			# Sun C 5.9
10999	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
11000	  compiler_needs_object=yes
11001	  tmp_sharedflag='-G' ;;
11002	*Sun\ F*)			# Sun Fortran 8.3
11003	  tmp_sharedflag='-G' ;;
11004	esac
11005	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11006
11007        if test "x$supports_anon_versioning" = xyes; then
11008          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11009	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11010	    echo "local: *; };" >> $output_objdir/$libname.ver~
11011	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11012        fi
11013
11014	case $cc_basename in
11015	xlf*)
11016	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11017	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11018	  hardcode_libdir_flag_spec=
11019	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
11020	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
11021	  if test "x$supports_anon_versioning" = xyes; then
11022	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11023	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11024	      echo "local: *; };" >> $output_objdir/$libname.ver~
11025	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11026	  fi
11027	  ;;
11028	esac
11029      else
11030        ld_shlibs=no
11031      fi
11032      ;;
11033
11034    netbsd* | netbsdelf*-gnu)
11035      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11036	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11037	wlarc=
11038      else
11039	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11040	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11041      fi
11042      ;;
11043
11044    solaris*)
11045      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11046	ld_shlibs=no
11047	cat <<_LT_EOF 1>&2
11048
11049*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11050*** create shared libraries on Solaris systems.  Therefore, libtool
11051*** is disabling shared libraries support.  We urge you to upgrade GNU
11052*** binutils to release 2.9.1 or newer.  Another option is to modify
11053*** your PATH or compiler configuration so that the native linker is
11054*** used, and then restart.
11055
11056_LT_EOF
11057      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11058	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11059	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11060      else
11061	ld_shlibs=no
11062      fi
11063      ;;
11064
11065    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11066      case `$LD -v 2>&1` in
11067        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11068	ld_shlibs=no
11069	cat <<_LT_EOF 1>&2
11070
11071*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11072*** reliably create shared libraries on SCO systems.  Therefore, libtool
11073*** is disabling shared libraries support.  We urge you to upgrade GNU
11074*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11075*** your PATH or compiler configuration so that the native linker is
11076*** used, and then restart.
11077
11078_LT_EOF
11079	;;
11080	*)
11081	  # For security reasons, it is highly recommended that you always
11082	  # use absolute paths for naming shared libraries, and exclude the
11083	  # DT_RUNPATH tag from executables and libraries.  But doing so
11084	  # requires that you compile everything twice, which is a pain.
11085	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11086	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11087	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11088	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11089	  else
11090	    ld_shlibs=no
11091	  fi
11092	;;
11093      esac
11094      ;;
11095
11096    sunos4*)
11097      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11098      wlarc=
11099      hardcode_direct=yes
11100      hardcode_shlibpath_var=no
11101      ;;
11102
11103    *)
11104      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11105	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11106	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11107      else
11108	ld_shlibs=no
11109      fi
11110      ;;
11111    esac
11112
11113    if test "$ld_shlibs" = no; then
11114      runpath_var=
11115      hardcode_libdir_flag_spec=
11116      export_dynamic_flag_spec=
11117      whole_archive_flag_spec=
11118    fi
11119  else
11120    # PORTME fill in a description of your system's linker (not GNU ld)
11121    case $host_os in
11122    aix3*)
11123      allow_undefined_flag=unsupported
11124      always_export_symbols=yes
11125      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'
11126      # Note: this linker hardcodes the directories in LIBPATH if there
11127      # are no directories specified by -L.
11128      hardcode_minus_L=yes
11129      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11130	# Neither direct hardcoding nor static linking is supported with a
11131	# broken collect2.
11132	hardcode_direct=unsupported
11133      fi
11134      ;;
11135
11136    aix[4-9]*)
11137      if test "$host_cpu" = ia64; then
11138	# On IA64, the linker does run time linking by default, so we don't
11139	# have to do anything special.
11140	aix_use_runtimelinking=no
11141	exp_sym_flag='-Bexport'
11142	no_entry_flag=""
11143      else
11144	# If we're using GNU nm, then we don't want the "-C" option.
11145	# -C means demangle to AIX nm, but means don't demangle with GNU nm
11146	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11147	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11148	else
11149	  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'
11150	fi
11151	aix_use_runtimelinking=no
11152
11153	# Test if we are trying to use run time linking or normal
11154	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11155	# need to do runtime linking.
11156	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11157	  for ld_flag in $LDFLAGS; do
11158	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11159	    aix_use_runtimelinking=yes
11160	    break
11161	  fi
11162	  done
11163	  ;;
11164	esac
11165
11166	exp_sym_flag='-bexport'
11167	no_entry_flag='-bnoentry'
11168      fi
11169
11170      # When large executables or shared objects are built, AIX ld can
11171      # have problems creating the table of contents.  If linking a library
11172      # or program results in "error TOC overflow" add -mminimal-toc to
11173      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11174      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11175
11176      archive_cmds=''
11177      hardcode_direct=yes
11178      hardcode_direct_absolute=yes
11179      hardcode_libdir_separator=':'
11180      link_all_deplibs=yes
11181      file_list_spec='${wl}-f,'
11182
11183      if test "$GCC" = yes; then
11184	case $host_os in aix4.[012]|aix4.[012].*)
11185	# We only want to do this on AIX 4.2 and lower, the check
11186	# below for broken collect2 doesn't work under 4.3+
11187	  collect2name=`${CC} -print-prog-name=collect2`
11188	  if test -f "$collect2name" &&
11189	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11190	  then
11191	  # We have reworked collect2
11192	  :
11193	  else
11194	  # We have old collect2
11195	  hardcode_direct=unsupported
11196	  # It fails to find uninstalled libraries when the uninstalled
11197	  # path is not listed in the libpath.  Setting hardcode_minus_L
11198	  # to unsupported forces relinking
11199	  hardcode_minus_L=yes
11200	  hardcode_libdir_flag_spec='-L$libdir'
11201	  hardcode_libdir_separator=
11202	  fi
11203	  ;;
11204	esac
11205	shared_flag='-shared'
11206	if test "$aix_use_runtimelinking" = yes; then
11207	  shared_flag="$shared_flag "'${wl}-G'
11208	fi
11209	link_all_deplibs=no
11210      else
11211	# not using gcc
11212	if test "$host_cpu" = ia64; then
11213	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11214	# chokes on -Wl,-G. The following line is correct:
11215	  shared_flag='-G'
11216	else
11217	  if test "$aix_use_runtimelinking" = yes; then
11218	    shared_flag='${wl}-G'
11219	  else
11220	    shared_flag='${wl}-bM:SRE'
11221	  fi
11222	fi
11223      fi
11224
11225      export_dynamic_flag_spec='${wl}-bexpall'
11226      # It seems that -bexpall does not export symbols beginning with
11227      # underscore (_), so it is better to generate a list of symbols to export.
11228      always_export_symbols=yes
11229      if test "$aix_use_runtimelinking" = yes; then
11230	# Warning - without using the other runtime loading flags (-brtl),
11231	# -berok will link without error, but may produce a broken library.
11232	allow_undefined_flag='-berok'
11233        # Determine the default libpath from the value encoded in an
11234        # empty executable.
11235        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11236/* end confdefs.h.  */
11237
11238int
11239main ()
11240{
11241
11242  ;
11243  return 0;
11244}
11245_ACEOF
11246if ac_fn_c_try_link "$LINENO"; then :
11247
11248lt_aix_libpath_sed='
11249    /Import File Strings/,/^$/ {
11250	/^0/ {
11251	    s/^0  *\(.*\)$/\1/
11252	    p
11253	}
11254    }'
11255aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11256# Check for a 64-bit object if we didn't find anything.
11257if test -z "$aix_libpath"; then
11258  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11259fi
11260fi
11261rm -f core conftest.err conftest.$ac_objext \
11262    conftest$ac_exeext conftest.$ac_ext
11263if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11264
11265        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11266        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11267      else
11268	if test "$host_cpu" = ia64; then
11269	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11270	  allow_undefined_flag="-z nodefs"
11271	  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"
11272	else
11273	 # Determine the default libpath from the value encoded in an
11274	 # empty executable.
11275	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11276/* end confdefs.h.  */
11277
11278int
11279main ()
11280{
11281
11282  ;
11283  return 0;
11284}
11285_ACEOF
11286if ac_fn_c_try_link "$LINENO"; then :
11287
11288lt_aix_libpath_sed='
11289    /Import File Strings/,/^$/ {
11290	/^0/ {
11291	    s/^0  *\(.*\)$/\1/
11292	    p
11293	}
11294    }'
11295aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11296# Check for a 64-bit object if we didn't find anything.
11297if test -z "$aix_libpath"; then
11298  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11299fi
11300fi
11301rm -f core conftest.err conftest.$ac_objext \
11302    conftest$ac_exeext conftest.$ac_ext
11303if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11304
11305	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11306	  # Warning - without using the other run time loading flags,
11307	  # -berok will link without error, but may produce a broken library.
11308	  no_undefined_flag=' ${wl}-bernotok'
11309	  allow_undefined_flag=' ${wl}-berok'
11310	  # Exported symbols can be pulled into shared objects from archives
11311	  whole_archive_flag_spec='$convenience'
11312	  archive_cmds_need_lc=yes
11313	  # This is similar to how AIX traditionally builds its shared libraries.
11314	  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'
11315	fi
11316      fi
11317      ;;
11318
11319    amigaos*)
11320      case $host_cpu in
11321      powerpc)
11322            # see comment about AmigaOS4 .so support
11323            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11324            archive_expsym_cmds=''
11325        ;;
11326      m68k)
11327            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)'
11328            hardcode_libdir_flag_spec='-L$libdir'
11329            hardcode_minus_L=yes
11330        ;;
11331      esac
11332      ;;
11333
11334    bsdi[45]*)
11335      export_dynamic_flag_spec=-rdynamic
11336      ;;
11337
11338    cygwin* | mingw* | pw32* | cegcc*)
11339      # When not using gcc, we currently assume that we are using
11340      # Microsoft Visual C++.
11341      # hardcode_libdir_flag_spec is actually meaningless, as there is
11342      # no search path for DLLs.
11343      hardcode_libdir_flag_spec=' '
11344      allow_undefined_flag=unsupported
11345      # Tell ltmain to make .lib files, not .a files.
11346      libext=lib
11347      # Tell ltmain to make .dll files, not .so files.
11348      shrext_cmds=".dll"
11349      # FIXME: Setting linknames here is a bad hack.
11350      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
11351      # The linker will automatically build a .lib file if we build a DLL.
11352      old_archive_from_new_cmds='true'
11353      # FIXME: Should let the user specify the lib program.
11354      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11355      fix_srcfile_path='`cygpath -w "$srcfile"`'
11356      enable_shared_with_static_runtimes=yes
11357      ;;
11358
11359    darwin* | rhapsody*)
11360
11361
11362  archive_cmds_need_lc=no
11363  hardcode_direct=no
11364  hardcode_automatic=yes
11365  hardcode_shlibpath_var=unsupported
11366  whole_archive_flag_spec=''
11367  link_all_deplibs=yes
11368  allow_undefined_flag="$_lt_dar_allow_undefined"
11369  case $cc_basename in
11370     ifort*) _lt_dar_can_shared=yes ;;
11371     *) _lt_dar_can_shared=$GCC ;;
11372  esac
11373  if test "$_lt_dar_can_shared" = "yes"; then
11374    output_verbose_link_cmd=echo
11375    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11376    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11377    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}"
11378    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}"
11379
11380  else
11381  ld_shlibs=no
11382  fi
11383
11384      ;;
11385
11386    dgux*)
11387      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11388      hardcode_libdir_flag_spec='-L$libdir'
11389      hardcode_shlibpath_var=no
11390      ;;
11391
11392    freebsd1*)
11393      ld_shlibs=no
11394      ;;
11395
11396    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11397    # support.  Future versions do this automatically, but an explicit c++rt0.o
11398    # does not break anything, and helps significantly (at the cost of a little
11399    # extra space).
11400    freebsd2.2*)
11401      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11402      hardcode_libdir_flag_spec='-R$libdir'
11403      hardcode_direct=yes
11404      hardcode_shlibpath_var=no
11405      ;;
11406
11407    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11408    freebsd2*)
11409      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11410      hardcode_direct=yes
11411      hardcode_minus_L=yes
11412      hardcode_shlibpath_var=no
11413      ;;
11414
11415    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11416    freebsd* | dragonfly*)
11417      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11418      hardcode_libdir_flag_spec='-R$libdir'
11419      hardcode_direct=yes
11420      hardcode_shlibpath_var=no
11421      ;;
11422
11423    hpux9*)
11424      if test "$GCC" = yes; then
11425	archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11426      else
11427	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'
11428      fi
11429      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11430      hardcode_libdir_separator=:
11431      hardcode_direct=yes
11432
11433      # hardcode_minus_L: Not really in the search PATH,
11434      # but as the default location of the library.
11435      hardcode_minus_L=yes
11436      export_dynamic_flag_spec='${wl}-E'
11437      ;;
11438
11439    hpux10*)
11440      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11441	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11442      else
11443	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11444      fi
11445      if test "$with_gnu_ld" = no; then
11446	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11447	hardcode_libdir_flag_spec_ld='+b $libdir'
11448	hardcode_libdir_separator=:
11449	hardcode_direct=yes
11450	hardcode_direct_absolute=yes
11451	export_dynamic_flag_spec='${wl}-E'
11452	# hardcode_minus_L: Not really in the search PATH,
11453	# but as the default location of the library.
11454	hardcode_minus_L=yes
11455      fi
11456      ;;
11457
11458    hpux11*)
11459      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11460	case $host_cpu in
11461	hppa*64*)
11462	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11463	  ;;
11464	ia64*)
11465	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11466	  ;;
11467	*)
11468	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11469	  ;;
11470	esac
11471      else
11472	case $host_cpu in
11473	hppa*64*)
11474	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11475	  ;;
11476	ia64*)
11477	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11478	  ;;
11479	*)
11480	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11481	  ;;
11482	esac
11483      fi
11484      if test "$with_gnu_ld" = no; then
11485	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11486	hardcode_libdir_separator=:
11487
11488	case $host_cpu in
11489	hppa*64*|ia64*)
11490	  hardcode_direct=no
11491	  hardcode_shlibpath_var=no
11492	  ;;
11493	*)
11494	  hardcode_direct=yes
11495	  hardcode_direct_absolute=yes
11496	  export_dynamic_flag_spec='${wl}-E'
11497
11498	  # hardcode_minus_L: Not really in the search PATH,
11499	  # but as the default location of the library.
11500	  hardcode_minus_L=yes
11501	  ;;
11502	esac
11503      fi
11504      ;;
11505
11506    irix5* | irix6* | nonstopux*)
11507      if test "$GCC" = yes; then
11508	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11509	# Try to use the -exported_symbol ld option, if it does not
11510	# work, assume that -exports_file does not work either and
11511	# implicitly export all symbols.
11512        save_LDFLAGS="$LDFLAGS"
11513        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11514        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11515/* end confdefs.h.  */
11516int foo(void) {}
11517_ACEOF
11518if ac_fn_c_try_link "$LINENO"; then :
11519  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
11520
11521fi
11522rm -f core conftest.err conftest.$ac_objext \
11523    conftest$ac_exeext conftest.$ac_ext
11524        LDFLAGS="$save_LDFLAGS"
11525      else
11526	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11527	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
11528      fi
11529      archive_cmds_need_lc='no'
11530      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11531      hardcode_libdir_separator=:
11532      inherit_rpath=yes
11533      link_all_deplibs=yes
11534      ;;
11535
11536    netbsd* | netbsdelf*-gnu)
11537      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11538	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11539      else
11540	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11541      fi
11542      hardcode_libdir_flag_spec='-R$libdir'
11543      hardcode_direct=yes
11544      hardcode_shlibpath_var=no
11545      ;;
11546
11547    newsos6)
11548      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11549      hardcode_direct=yes
11550      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11551      hardcode_libdir_separator=:
11552      hardcode_shlibpath_var=no
11553      ;;
11554
11555    *nto* | *qnx*)
11556      ;;
11557
11558    openbsd*)
11559      if test -f /usr/libexec/ld.so; then
11560	hardcode_direct=yes
11561	hardcode_shlibpath_var=no
11562	hardcode_direct_absolute=yes
11563	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11564	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11565	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11566	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11567	  export_dynamic_flag_spec='${wl}-E'
11568	else
11569	  case $host_os in
11570	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11571	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11572	     hardcode_libdir_flag_spec='-R$libdir'
11573	     ;;
11574	   *)
11575	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11576	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11577	     ;;
11578	  esac
11579	fi
11580      else
11581	ld_shlibs=no
11582      fi
11583      ;;
11584
11585    os2*)
11586      hardcode_libdir_flag_spec='-L$libdir'
11587      hardcode_minus_L=yes
11588      allow_undefined_flag=unsupported
11589      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'
11590      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11591      ;;
11592
11593    osf3*)
11594      if test "$GCC" = yes; then
11595	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11596	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11597      else
11598	allow_undefined_flag=' -expect_unresolved \*'
11599	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11600      fi
11601      archive_cmds_need_lc='no'
11602      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11603      hardcode_libdir_separator=:
11604      ;;
11605
11606    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11607      if test "$GCC" = yes; then
11608	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11609	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11610	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11611      else
11612	allow_undefined_flag=' -expect_unresolved \*'
11613	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11614	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~
11615	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
11616
11617	# Both c and cxx compiler support -rpath directly
11618	hardcode_libdir_flag_spec='-rpath $libdir'
11619      fi
11620      archive_cmds_need_lc='no'
11621      hardcode_libdir_separator=:
11622      ;;
11623
11624    solaris*)
11625      no_undefined_flag=' -z defs'
11626      if test "$GCC" = yes; then
11627	wlarc='${wl}'
11628	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11629	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11630	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11631      else
11632	case `$CC -V 2>&1` in
11633	*"Compilers 5.0"*)
11634	  wlarc=''
11635	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11636	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11637	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11638	  ;;
11639	*)
11640	  wlarc='${wl}'
11641	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11642	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11643	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11644	  ;;
11645	esac
11646      fi
11647      hardcode_libdir_flag_spec='-R$libdir'
11648      hardcode_shlibpath_var=no
11649      case $host_os in
11650      solaris2.[0-5] | solaris2.[0-5].*) ;;
11651      *)
11652	# The compiler driver will combine and reorder linker options,
11653	# but understands `-z linker_flag'.  GCC discards it without `$wl',
11654	# but is careful enough not to reorder.
11655	# Supported since Solaris 2.6 (maybe 2.5.1?)
11656	if test "$GCC" = yes; then
11657	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11658	else
11659	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11660	fi
11661	;;
11662      esac
11663      link_all_deplibs=yes
11664      ;;
11665
11666    sunos4*)
11667      if test "x$host_vendor" = xsequent; then
11668	# Use $CC to link under sequent, because it throws in some extra .o
11669	# files that make .init and .fini sections work.
11670	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11671      else
11672	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11673      fi
11674      hardcode_libdir_flag_spec='-L$libdir'
11675      hardcode_direct=yes
11676      hardcode_minus_L=yes
11677      hardcode_shlibpath_var=no
11678      ;;
11679
11680    sysv4)
11681      case $host_vendor in
11682	sni)
11683	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11684	  hardcode_direct=yes # is this really true???
11685	;;
11686	siemens)
11687	  ## LD is ld it makes a PLAMLIB
11688	  ## CC just makes a GrossModule.
11689	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11690	  reload_cmds='$CC -r -o $output$reload_objs'
11691	  hardcode_direct=no
11692        ;;
11693	motorola)
11694	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11695	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11696	;;
11697      esac
11698      runpath_var='LD_RUN_PATH'
11699      hardcode_shlibpath_var=no
11700      ;;
11701
11702    sysv4.3*)
11703      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11704      hardcode_shlibpath_var=no
11705      export_dynamic_flag_spec='-Bexport'
11706      ;;
11707
11708    sysv4*MP*)
11709      if test -d /usr/nec; then
11710	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11711	hardcode_shlibpath_var=no
11712	runpath_var=LD_RUN_PATH
11713	hardcode_runpath_var=yes
11714	ld_shlibs=yes
11715      fi
11716      ;;
11717
11718    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11719      no_undefined_flag='${wl}-z,text'
11720      archive_cmds_need_lc=no
11721      hardcode_shlibpath_var=no
11722      runpath_var='LD_RUN_PATH'
11723
11724      if test "$GCC" = yes; then
11725	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11726	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11727      else
11728	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11729	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11730      fi
11731      ;;
11732
11733    sysv5* | sco3.2v5* | sco5v6*)
11734      # Note: We can NOT use -z defs as we might desire, because we do not
11735      # link with -lc, and that would cause any symbols used from libc to
11736      # always be unresolved, which means just about no library would
11737      # ever link correctly.  If we're not using GNU ld we use -z text
11738      # though, which does catch some bad symbols but isn't as heavy-handed
11739      # as -z defs.
11740      no_undefined_flag='${wl}-z,text'
11741      allow_undefined_flag='${wl}-z,nodefs'
11742      archive_cmds_need_lc=no
11743      hardcode_shlibpath_var=no
11744      hardcode_libdir_flag_spec='${wl}-R,$libdir'
11745      hardcode_libdir_separator=':'
11746      link_all_deplibs=yes
11747      export_dynamic_flag_spec='${wl}-Bexport'
11748      runpath_var='LD_RUN_PATH'
11749
11750      if test "$GCC" = yes; then
11751	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11752	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11753      else
11754	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11755	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11756      fi
11757      ;;
11758
11759    uts4*)
11760      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11761      hardcode_libdir_flag_spec='-L$libdir'
11762      hardcode_shlibpath_var=no
11763      ;;
11764
11765    *)
11766      ld_shlibs=no
11767      ;;
11768    esac
11769
11770    if test x$host_vendor = xsni; then
11771      case $host in
11772      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11773	export_dynamic_flag_spec='${wl}-Blargedynsym'
11774	;;
11775      esac
11776    fi
11777  fi
11778
11779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11780$as_echo "$ld_shlibs" >&6; }
11781test "$ld_shlibs" = no && can_build_shared=no
11782
11783with_gnu_ld=$with_gnu_ld
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799#
11800# Do we need to explicitly link libc?
11801#
11802case "x$archive_cmds_need_lc" in
11803x|xyes)
11804  # Assume -lc should be added
11805  archive_cmds_need_lc=yes
11806
11807  if test "$enable_shared" = yes && test "$GCC" = yes; then
11808    case $archive_cmds in
11809    *'~'*)
11810      # FIXME: we may have to deal with multi-command sequences.
11811      ;;
11812    '$CC '*)
11813      # Test whether the compiler implicitly links with -lc since on some
11814      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11815      # to ld, don't add -lc before -lgcc.
11816      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11817$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11818      $RM conftest*
11819      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11820
11821      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11822  (eval $ac_compile) 2>&5
11823  ac_status=$?
11824  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11825  test $ac_status = 0; } 2>conftest.err; then
11826        soname=conftest
11827        lib=conftest
11828        libobjs=conftest.$ac_objext
11829        deplibs=
11830        wl=$lt_prog_compiler_wl
11831	pic_flag=$lt_prog_compiler_pic
11832        compiler_flags=-v
11833        linker_flags=-v
11834        verstring=
11835        output_objdir=.
11836        libname=conftest
11837        lt_save_allow_undefined_flag=$allow_undefined_flag
11838        allow_undefined_flag=
11839        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11840  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11841  ac_status=$?
11842  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11843  test $ac_status = 0; }
11844        then
11845	  archive_cmds_need_lc=no
11846        else
11847	  archive_cmds_need_lc=yes
11848        fi
11849        allow_undefined_flag=$lt_save_allow_undefined_flag
11850      else
11851        cat conftest.err 1>&5
11852      fi
11853      $RM conftest*
11854      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
11855$as_echo "$archive_cmds_need_lc" >&6; }
11856      ;;
11857    esac
11858  fi
11859  ;;
11860esac
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12019$as_echo_n "checking dynamic linker characteristics... " >&6; }
12020
12021if test "$GCC" = yes; then
12022  case $host_os in
12023    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12024    *) lt_awk_arg="/^libraries:/" ;;
12025  esac
12026  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12027  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
12028    # if the path contains ";" then we assume it to be the separator
12029    # otherwise default to the standard path separator (i.e. ":") - it is
12030    # assumed that no part of a normal pathname contains ";" but that should
12031    # okay in the real world where ";" in dirpaths is itself problematic.
12032    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
12033  else
12034    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12035  fi
12036  # Ok, now we have the path, separated by spaces, we can step through it
12037  # and add multilib dir if necessary.
12038  lt_tmp_lt_search_path_spec=
12039  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12040  for lt_sys_path in $lt_search_path_spec; do
12041    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12042      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12043    else
12044      test -d "$lt_sys_path" && \
12045	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12046    fi
12047  done
12048  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
12049BEGIN {RS=" "; FS="/|\n";} {
12050  lt_foo="";
12051  lt_count=0;
12052  for (lt_i = NF; lt_i > 0; lt_i--) {
12053    if ($lt_i != "" && $lt_i != ".") {
12054      if ($lt_i == "..") {
12055        lt_count++;
12056      } else {
12057        if (lt_count == 0) {
12058          lt_foo="/" $lt_i lt_foo;
12059        } else {
12060          lt_count--;
12061        }
12062      }
12063    }
12064  }
12065  if (lt_foo != "") { lt_freq[lt_foo]++; }
12066  if (lt_freq[lt_foo] == 1) { print lt_foo; }
12067}'`
12068  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
12069else
12070  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12071fi
12072library_names_spec=
12073libname_spec='lib$name'
12074soname_spec=
12075shrext_cmds=".so"
12076postinstall_cmds=
12077postuninstall_cmds=
12078finish_cmds=
12079finish_eval=
12080shlibpath_var=
12081shlibpath_overrides_runpath=unknown
12082version_type=none
12083dynamic_linker="$host_os ld.so"
12084sys_lib_dlsearch_path_spec="/lib /usr/lib"
12085need_lib_prefix=unknown
12086hardcode_into_libs=no
12087
12088# when you set need_version to no, make sure it does not cause -set_version
12089# flags to be left without arguments
12090need_version=unknown
12091
12092case $host_os in
12093aix3*)
12094  version_type=linux
12095  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12096  shlibpath_var=LIBPATH
12097
12098  # AIX 3 has no versioning support, so we append a major version to the name.
12099  soname_spec='${libname}${release}${shared_ext}$major'
12100  ;;
12101
12102aix[4-9]*)
12103  version_type=linux
12104  need_lib_prefix=no
12105  need_version=no
12106  hardcode_into_libs=yes
12107  if test "$host_cpu" = ia64; then
12108    # AIX 5 supports IA64
12109    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12110    shlibpath_var=LD_LIBRARY_PATH
12111  else
12112    # With GCC up to 2.95.x, collect2 would create an import file
12113    # for dependence libraries.  The import file would start with
12114    # the line `#! .'.  This would cause the generated library to
12115    # depend on `.', always an invalid library.  This was fixed in
12116    # development snapshots of GCC prior to 3.0.
12117    case $host_os in
12118      aix4 | aix4.[01] | aix4.[01].*)
12119      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12120	   echo ' yes '
12121	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12122	:
12123      else
12124	can_build_shared=no
12125      fi
12126      ;;
12127    esac
12128    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12129    # soname into executable. Probably we can add versioning support to
12130    # collect2, so additional links can be useful in future.
12131    if test "$aix_use_runtimelinking" = yes; then
12132      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12133      # instead of lib<name>.a to let people know that these are not
12134      # typical AIX shared libraries.
12135      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12136    else
12137      # We preserve .a as extension for shared libraries through AIX4.2
12138      # and later when we are not doing run time linking.
12139      library_names_spec='${libname}${release}.a $libname.a'
12140      soname_spec='${libname}${release}${shared_ext}$major'
12141    fi
12142    shlibpath_var=LIBPATH
12143  fi
12144  ;;
12145
12146amigaos*)
12147  case $host_cpu in
12148  powerpc)
12149    # Since July 2007 AmigaOS4 officially supports .so libraries.
12150    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12151    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12152    ;;
12153  m68k)
12154    library_names_spec='$libname.ixlibrary $libname.a'
12155    # Create ${libname}_ixlibrary.a entries in /sys/libs.
12156    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
12157    ;;
12158  esac
12159  ;;
12160
12161beos*)
12162  library_names_spec='${libname}${shared_ext}'
12163  dynamic_linker="$host_os ld.so"
12164  shlibpath_var=LIBRARY_PATH
12165  ;;
12166
12167bsdi[45]*)
12168  version_type=linux
12169  need_version=no
12170  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12171  soname_spec='${libname}${release}${shared_ext}$major'
12172  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12173  shlibpath_var=LD_LIBRARY_PATH
12174  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12175  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12176  # the default ld.so.conf also contains /usr/contrib/lib and
12177  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12178  # libtool to hard-code these into programs
12179  ;;
12180
12181cygwin* | mingw* | pw32* | cegcc*)
12182  version_type=windows
12183  shrext_cmds=".dll"
12184  need_version=no
12185  need_lib_prefix=no
12186
12187  case $GCC,$host_os in
12188  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
12189    library_names_spec='$libname.dll.a'
12190    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12191    postinstall_cmds='base_file=`basename \${file}`~
12192      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12193      dldir=$destdir/`dirname \$dlpath`~
12194      test -d \$dldir || mkdir -p \$dldir~
12195      $install_prog $dir/$dlname \$dldir/$dlname~
12196      chmod a+x \$dldir/$dlname~
12197      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12198        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12199      fi'
12200    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12201      dlpath=$dir/\$dldll~
12202       $RM \$dlpath'
12203    shlibpath_overrides_runpath=yes
12204
12205    case $host_os in
12206    cygwin*)
12207      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12208      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12209      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12210      ;;
12211    mingw* | cegcc*)
12212      # MinGW DLLs use traditional 'lib' prefix
12213      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12214      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12215      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12216        # It is most probably a Windows format PATH printed by
12217        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12218        # path with ; separators, and with drive letters. We can handle the
12219        # drive letters (cygwin fileutils understands them), so leave them,
12220        # especially as we might pass files found there to a mingw objdump,
12221        # which wouldn't understand a cygwinified path. Ahh.
12222        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12223      else
12224        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12225      fi
12226      ;;
12227    pw32*)
12228      # pw32 DLLs use 'pw' prefix rather than 'lib'
12229      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12230      ;;
12231    esac
12232    ;;
12233
12234  *)
12235    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12236    ;;
12237  esac
12238  dynamic_linker='Win32 ld.exe'
12239  # FIXME: first we should search . and the directory the executable is in
12240  shlibpath_var=PATH
12241  ;;
12242
12243darwin* | rhapsody*)
12244  dynamic_linker="$host_os dyld"
12245  version_type=darwin
12246  need_lib_prefix=no
12247  need_version=no
12248  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12249  soname_spec='${libname}${release}${major}$shared_ext'
12250  shlibpath_overrides_runpath=yes
12251  shlibpath_var=DYLD_LIBRARY_PATH
12252  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12253
12254  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12255  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12256  ;;
12257
12258dgux*)
12259  version_type=linux
12260  need_lib_prefix=no
12261  need_version=no
12262  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12263  soname_spec='${libname}${release}${shared_ext}$major'
12264  shlibpath_var=LD_LIBRARY_PATH
12265  ;;
12266
12267freebsd1*)
12268  dynamic_linker=no
12269  ;;
12270
12271freebsd* | dragonfly*)
12272  # DragonFly does not have aout.  When/if they implement a new
12273  # versioning mechanism, adjust this.
12274  if test -x /usr/bin/objformat; then
12275    objformat=`/usr/bin/objformat`
12276  else
12277    case $host_os in
12278    freebsd[123]*) objformat=aout ;;
12279    *) objformat=elf ;;
12280    esac
12281  fi
12282  version_type=freebsd-$objformat
12283  case $version_type in
12284    freebsd-elf*)
12285      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12286      need_version=no
12287      need_lib_prefix=no
12288      ;;
12289    freebsd-*)
12290      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12291      need_version=yes
12292      ;;
12293  esac
12294  shlibpath_var=LD_LIBRARY_PATH
12295  case $host_os in
12296  freebsd2*)
12297    shlibpath_overrides_runpath=yes
12298    ;;
12299  freebsd3.[01]* | freebsdelf3.[01]*)
12300    shlibpath_overrides_runpath=yes
12301    hardcode_into_libs=yes
12302    ;;
12303  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12304  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12305    shlibpath_overrides_runpath=no
12306    hardcode_into_libs=yes
12307    ;;
12308  *) # from 4.6 on, and DragonFly
12309    shlibpath_overrides_runpath=yes
12310    hardcode_into_libs=yes
12311    ;;
12312  esac
12313  ;;
12314
12315gnu*)
12316  version_type=linux
12317  need_lib_prefix=no
12318  need_version=no
12319  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12320  soname_spec='${libname}${release}${shared_ext}$major'
12321  shlibpath_var=LD_LIBRARY_PATH
12322  hardcode_into_libs=yes
12323  ;;
12324
12325hpux9* | hpux10* | hpux11*)
12326  # Give a soname corresponding to the major version so that dld.sl refuses to
12327  # link against other versions.
12328  version_type=sunos
12329  need_lib_prefix=no
12330  need_version=no
12331  case $host_cpu in
12332  ia64*)
12333    shrext_cmds='.so'
12334    hardcode_into_libs=yes
12335    dynamic_linker="$host_os dld.so"
12336    shlibpath_var=LD_LIBRARY_PATH
12337    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12338    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12339    soname_spec='${libname}${release}${shared_ext}$major'
12340    if test "X$HPUX_IA64_MODE" = X32; then
12341      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12342    else
12343      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12344    fi
12345    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12346    ;;
12347  hppa*64*)
12348    shrext_cmds='.sl'
12349    hardcode_into_libs=yes
12350    dynamic_linker="$host_os dld.sl"
12351    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12352    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12353    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12354    soname_spec='${libname}${release}${shared_ext}$major'
12355    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12356    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12357    ;;
12358  *)
12359    shrext_cmds='.sl'
12360    dynamic_linker="$host_os dld.sl"
12361    shlibpath_var=SHLIB_PATH
12362    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12363    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12364    soname_spec='${libname}${release}${shared_ext}$major'
12365    ;;
12366  esac
12367  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12368  postinstall_cmds='chmod 555 $lib'
12369  ;;
12370
12371interix[3-9]*)
12372  version_type=linux
12373  need_lib_prefix=no
12374  need_version=no
12375  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12376  soname_spec='${libname}${release}${shared_ext}$major'
12377  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12378  shlibpath_var=LD_LIBRARY_PATH
12379  shlibpath_overrides_runpath=no
12380  hardcode_into_libs=yes
12381  ;;
12382
12383irix5* | irix6* | nonstopux*)
12384  case $host_os in
12385    nonstopux*) version_type=nonstopux ;;
12386    *)
12387	if test "$lt_cv_prog_gnu_ld" = yes; then
12388		version_type=linux
12389	else
12390		version_type=irix
12391	fi ;;
12392  esac
12393  need_lib_prefix=no
12394  need_version=no
12395  soname_spec='${libname}${release}${shared_ext}$major'
12396  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12397  case $host_os in
12398  irix5* | nonstopux*)
12399    libsuff= shlibsuff=
12400    ;;
12401  *)
12402    case $LD in # libtool.m4 will add one of these switches to LD
12403    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12404      libsuff= shlibsuff= libmagic=32-bit;;
12405    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12406      libsuff=32 shlibsuff=N32 libmagic=N32;;
12407    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12408      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12409    *) libsuff= shlibsuff= libmagic=never-match;;
12410    esac
12411    ;;
12412  esac
12413  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12414  shlibpath_overrides_runpath=no
12415  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12416  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12417  hardcode_into_libs=yes
12418  ;;
12419
12420# No shared lib support for Linux oldld, aout, or coff.
12421linux*oldld* | linux*aout* | linux*coff*)
12422  dynamic_linker=no
12423  ;;
12424
12425# This must be Linux ELF.
12426linux* | k*bsd*-gnu | kopensolaris*-gnu)
12427  version_type=linux
12428  need_lib_prefix=no
12429  need_version=no
12430  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12431  soname_spec='${libname}${release}${shared_ext}$major'
12432  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12433  shlibpath_var=LD_LIBRARY_PATH
12434  shlibpath_overrides_runpath=no
12435  # Some binutils ld are patched to set DT_RUNPATH
12436  save_LDFLAGS=$LDFLAGS
12437  save_libdir=$libdir
12438  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12439       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12440  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12441/* end confdefs.h.  */
12442
12443int
12444main ()
12445{
12446
12447  ;
12448  return 0;
12449}
12450_ACEOF
12451if ac_fn_c_try_link "$LINENO"; then :
12452  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12453  shlibpath_overrides_runpath=yes
12454fi
12455fi
12456rm -f core conftest.err conftest.$ac_objext \
12457    conftest$ac_exeext conftest.$ac_ext
12458  LDFLAGS=$save_LDFLAGS
12459  libdir=$save_libdir
12460
12461  # This implies no fast_install, which is unacceptable.
12462  # Some rework will be needed to allow for fast_install
12463  # before this can be enabled.
12464  hardcode_into_libs=yes
12465
12466  # Append ld.so.conf contents to the search path
12467  if test -f /etc/ld.so.conf; then
12468    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;/^$/d' | tr '\n' ' '`
12469    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12470  fi
12471
12472  # We used to test for /lib/ld.so.1 and disable shared libraries on
12473  # powerpc, because MkLinux only supported shared libraries with the
12474  # GNU dynamic linker.  Since this was broken with cross compilers,
12475  # most powerpc-linux boxes support dynamic linking these days and
12476  # people can always --disable-shared, the test was removed, and we
12477  # assume the GNU/Linux dynamic linker is in use.
12478  dynamic_linker='GNU/Linux ld.so'
12479  ;;
12480
12481netbsdelf*-gnu)
12482  version_type=linux
12483  need_lib_prefix=no
12484  need_version=no
12485  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12486  soname_spec='${libname}${release}${shared_ext}$major'
12487  shlibpath_var=LD_LIBRARY_PATH
12488  shlibpath_overrides_runpath=no
12489  hardcode_into_libs=yes
12490  dynamic_linker='NetBSD ld.elf_so'
12491  ;;
12492
12493netbsd*)
12494  version_type=sunos
12495  need_lib_prefix=no
12496  need_version=no
12497  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12498    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12499    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12500    dynamic_linker='NetBSD (a.out) ld.so'
12501  else
12502    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12503    soname_spec='${libname}${release}${shared_ext}$major'
12504    dynamic_linker='NetBSD ld.elf_so'
12505  fi
12506  shlibpath_var=LD_LIBRARY_PATH
12507  shlibpath_overrides_runpath=yes
12508  hardcode_into_libs=yes
12509  ;;
12510
12511newsos6)
12512  version_type=linux
12513  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12514  shlibpath_var=LD_LIBRARY_PATH
12515  shlibpath_overrides_runpath=yes
12516  ;;
12517
12518*nto* | *qnx*)
12519  version_type=qnx
12520  need_lib_prefix=no
12521  need_version=no
12522  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12523  soname_spec='${libname}${release}${shared_ext}$major'
12524  shlibpath_var=LD_LIBRARY_PATH
12525  shlibpath_overrides_runpath=no
12526  hardcode_into_libs=yes
12527  dynamic_linker='ldqnx.so'
12528  ;;
12529
12530openbsd*)
12531  version_type=sunos
12532  sys_lib_dlsearch_path_spec="/usr/lib"
12533  need_lib_prefix=no
12534  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12535  case $host_os in
12536    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
12537    *)				need_version=no  ;;
12538  esac
12539  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12540  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12541  shlibpath_var=LD_LIBRARY_PATH
12542  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12543    case $host_os in
12544      openbsd2.[89] | openbsd2.[89].*)
12545	shlibpath_overrides_runpath=no
12546	;;
12547      *)
12548	shlibpath_overrides_runpath=yes
12549	;;
12550      esac
12551  else
12552    shlibpath_overrides_runpath=yes
12553  fi
12554  ;;
12555
12556os2*)
12557  libname_spec='$name'
12558  shrext_cmds=".dll"
12559  need_lib_prefix=no
12560  library_names_spec='$libname${shared_ext} $libname.a'
12561  dynamic_linker='OS/2 ld.exe'
12562  shlibpath_var=LIBPATH
12563  ;;
12564
12565osf3* | osf4* | osf5*)
12566  version_type=osf
12567  need_lib_prefix=no
12568  need_version=no
12569  soname_spec='${libname}${release}${shared_ext}$major'
12570  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12571  shlibpath_var=LD_LIBRARY_PATH
12572  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12573  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12574  ;;
12575
12576rdos*)
12577  dynamic_linker=no
12578  ;;
12579
12580solaris*)
12581  version_type=linux
12582  need_lib_prefix=no
12583  need_version=no
12584  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12585  soname_spec='${libname}${release}${shared_ext}$major'
12586  shlibpath_var=LD_LIBRARY_PATH
12587  shlibpath_overrides_runpath=yes
12588  hardcode_into_libs=yes
12589  # ldd complains unless libraries are executable
12590  postinstall_cmds='chmod +x $lib'
12591  ;;
12592
12593sunos4*)
12594  version_type=sunos
12595  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12596  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12597  shlibpath_var=LD_LIBRARY_PATH
12598  shlibpath_overrides_runpath=yes
12599  if test "$with_gnu_ld" = yes; then
12600    need_lib_prefix=no
12601  fi
12602  need_version=yes
12603  ;;
12604
12605sysv4 | sysv4.3*)
12606  version_type=linux
12607  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12608  soname_spec='${libname}${release}${shared_ext}$major'
12609  shlibpath_var=LD_LIBRARY_PATH
12610  case $host_vendor in
12611    sni)
12612      shlibpath_overrides_runpath=no
12613      need_lib_prefix=no
12614      runpath_var=LD_RUN_PATH
12615      ;;
12616    siemens)
12617      need_lib_prefix=no
12618      ;;
12619    motorola)
12620      need_lib_prefix=no
12621      need_version=no
12622      shlibpath_overrides_runpath=no
12623      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12624      ;;
12625  esac
12626  ;;
12627
12628sysv4*MP*)
12629  if test -d /usr/nec ;then
12630    version_type=linux
12631    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12632    soname_spec='$libname${shared_ext}.$major'
12633    shlibpath_var=LD_LIBRARY_PATH
12634  fi
12635  ;;
12636
12637sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12638  version_type=freebsd-elf
12639  need_lib_prefix=no
12640  need_version=no
12641  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12642  soname_spec='${libname}${release}${shared_ext}$major'
12643  shlibpath_var=LD_LIBRARY_PATH
12644  shlibpath_overrides_runpath=yes
12645  hardcode_into_libs=yes
12646  if test "$with_gnu_ld" = yes; then
12647    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12648  else
12649    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12650    case $host_os in
12651      sco3.2v5*)
12652        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12653	;;
12654    esac
12655  fi
12656  sys_lib_dlsearch_path_spec='/usr/lib'
12657  ;;
12658
12659tpf*)
12660  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12661  version_type=linux
12662  need_lib_prefix=no
12663  need_version=no
12664  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12665  shlibpath_var=LD_LIBRARY_PATH
12666  shlibpath_overrides_runpath=no
12667  hardcode_into_libs=yes
12668  ;;
12669
12670uts4*)
12671  version_type=linux
12672  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12673  soname_spec='${libname}${release}${shared_ext}$major'
12674  shlibpath_var=LD_LIBRARY_PATH
12675  ;;
12676
12677*)
12678  dynamic_linker=no
12679  ;;
12680esac
12681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12682$as_echo "$dynamic_linker" >&6; }
12683test "$dynamic_linker" = no && can_build_shared=no
12684
12685variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12686if test "$GCC" = yes; then
12687  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12688fi
12689
12690if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12691  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12692fi
12693if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12694  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12695fi
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12784$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12785hardcode_action=
12786if test -n "$hardcode_libdir_flag_spec" ||
12787   test -n "$runpath_var" ||
12788   test "X$hardcode_automatic" = "Xyes" ; then
12789
12790  # We can hardcode non-existent directories.
12791  if test "$hardcode_direct" != no &&
12792     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12793     # have to relink, otherwise we might link with an installed library
12794     # when we should be linking with a yet-to-be-installed one
12795     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12796     test "$hardcode_minus_L" != no; then
12797    # Linking always hardcodes the temporary library directory.
12798    hardcode_action=relink
12799  else
12800    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12801    hardcode_action=immediate
12802  fi
12803else
12804  # We cannot hardcode anything, or else we can only hardcode existing
12805  # directories.
12806  hardcode_action=unsupported
12807fi
12808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12809$as_echo "$hardcode_action" >&6; }
12810
12811if test "$hardcode_action" = relink ||
12812   test "$inherit_rpath" = yes; then
12813  # Fast installation is not supported
12814  enable_fast_install=no
12815elif test "$shlibpath_overrides_runpath" = yes ||
12816     test "$enable_shared" = no; then
12817  # Fast installation is not necessary
12818  enable_fast_install=needless
12819fi
12820
12821
12822
12823
12824
12825
12826  if test "x$enable_dlopen" != xyes; then
12827  enable_dlopen=unknown
12828  enable_dlopen_self=unknown
12829  enable_dlopen_self_static=unknown
12830else
12831  lt_cv_dlopen=no
12832  lt_cv_dlopen_libs=
12833
12834  case $host_os in
12835  beos*)
12836    lt_cv_dlopen="load_add_on"
12837    lt_cv_dlopen_libs=
12838    lt_cv_dlopen_self=yes
12839    ;;
12840
12841  mingw* | pw32* | cegcc*)
12842    lt_cv_dlopen="LoadLibrary"
12843    lt_cv_dlopen_libs=
12844    ;;
12845
12846  cygwin*)
12847    lt_cv_dlopen="dlopen"
12848    lt_cv_dlopen_libs=
12849    ;;
12850
12851  darwin*)
12852  # if libdl is installed we need to link against it
12853    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12854$as_echo_n "checking for dlopen in -ldl... " >&6; }
12855if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12856  $as_echo_n "(cached) " >&6
12857else
12858  ac_check_lib_save_LIBS=$LIBS
12859LIBS="-ldl  $LIBS"
12860cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12861/* end confdefs.h.  */
12862
12863/* Override any GCC internal prototype to avoid an error.
12864   Use char because int might match the return type of a GCC
12865   builtin and then its argument prototype would still apply.  */
12866#ifdef __cplusplus
12867extern "C"
12868#endif
12869char dlopen ();
12870int
12871main ()
12872{
12873return dlopen ();
12874  ;
12875  return 0;
12876}
12877_ACEOF
12878if ac_fn_c_try_link "$LINENO"; then :
12879  ac_cv_lib_dl_dlopen=yes
12880else
12881  ac_cv_lib_dl_dlopen=no
12882fi
12883rm -f core conftest.err conftest.$ac_objext \
12884    conftest$ac_exeext conftest.$ac_ext
12885LIBS=$ac_check_lib_save_LIBS
12886fi
12887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12888$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12889if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12890  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12891else
12892
12893    lt_cv_dlopen="dyld"
12894    lt_cv_dlopen_libs=
12895    lt_cv_dlopen_self=yes
12896
12897fi
12898
12899    ;;
12900
12901  *)
12902    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12903if test "x$ac_cv_func_shl_load" = x""yes; then :
12904  lt_cv_dlopen="shl_load"
12905else
12906  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12907$as_echo_n "checking for shl_load in -ldld... " >&6; }
12908if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12909  $as_echo_n "(cached) " >&6
12910else
12911  ac_check_lib_save_LIBS=$LIBS
12912LIBS="-ldld  $LIBS"
12913cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12914/* end confdefs.h.  */
12915
12916/* Override any GCC internal prototype to avoid an error.
12917   Use char because int might match the return type of a GCC
12918   builtin and then its argument prototype would still apply.  */
12919#ifdef __cplusplus
12920extern "C"
12921#endif
12922char shl_load ();
12923int
12924main ()
12925{
12926return shl_load ();
12927  ;
12928  return 0;
12929}
12930_ACEOF
12931if ac_fn_c_try_link "$LINENO"; then :
12932  ac_cv_lib_dld_shl_load=yes
12933else
12934  ac_cv_lib_dld_shl_load=no
12935fi
12936rm -f core conftest.err conftest.$ac_objext \
12937    conftest$ac_exeext conftest.$ac_ext
12938LIBS=$ac_check_lib_save_LIBS
12939fi
12940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12941$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12942if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12943  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12944else
12945  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12946if test "x$ac_cv_func_dlopen" = x""yes; then :
12947  lt_cv_dlopen="dlopen"
12948else
12949  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12950$as_echo_n "checking for dlopen in -ldl... " >&6; }
12951if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12952  $as_echo_n "(cached) " >&6
12953else
12954  ac_check_lib_save_LIBS=$LIBS
12955LIBS="-ldl  $LIBS"
12956cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12957/* end confdefs.h.  */
12958
12959/* Override any GCC internal prototype to avoid an error.
12960   Use char because int might match the return type of a GCC
12961   builtin and then its argument prototype would still apply.  */
12962#ifdef __cplusplus
12963extern "C"
12964#endif
12965char dlopen ();
12966int
12967main ()
12968{
12969return dlopen ();
12970  ;
12971  return 0;
12972}
12973_ACEOF
12974if ac_fn_c_try_link "$LINENO"; then :
12975  ac_cv_lib_dl_dlopen=yes
12976else
12977  ac_cv_lib_dl_dlopen=no
12978fi
12979rm -f core conftest.err conftest.$ac_objext \
12980    conftest$ac_exeext conftest.$ac_ext
12981LIBS=$ac_check_lib_save_LIBS
12982fi
12983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12984$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12985if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12986  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12987else
12988  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12989$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12990if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12991  $as_echo_n "(cached) " >&6
12992else
12993  ac_check_lib_save_LIBS=$LIBS
12994LIBS="-lsvld  $LIBS"
12995cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12996/* end confdefs.h.  */
12997
12998/* Override any GCC internal prototype to avoid an error.
12999   Use char because int might match the return type of a GCC
13000   builtin and then its argument prototype would still apply.  */
13001#ifdef __cplusplus
13002extern "C"
13003#endif
13004char dlopen ();
13005int
13006main ()
13007{
13008return dlopen ();
13009  ;
13010  return 0;
13011}
13012_ACEOF
13013if ac_fn_c_try_link "$LINENO"; then :
13014  ac_cv_lib_svld_dlopen=yes
13015else
13016  ac_cv_lib_svld_dlopen=no
13017fi
13018rm -f core conftest.err conftest.$ac_objext \
13019    conftest$ac_exeext conftest.$ac_ext
13020LIBS=$ac_check_lib_save_LIBS
13021fi
13022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13023$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13024if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
13025  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13026else
13027  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13028$as_echo_n "checking for dld_link in -ldld... " >&6; }
13029if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
13030  $as_echo_n "(cached) " >&6
13031else
13032  ac_check_lib_save_LIBS=$LIBS
13033LIBS="-ldld  $LIBS"
13034cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13035/* end confdefs.h.  */
13036
13037/* Override any GCC internal prototype to avoid an error.
13038   Use char because int might match the return type of a GCC
13039   builtin and then its argument prototype would still apply.  */
13040#ifdef __cplusplus
13041extern "C"
13042#endif
13043char dld_link ();
13044int
13045main ()
13046{
13047return dld_link ();
13048  ;
13049  return 0;
13050}
13051_ACEOF
13052if ac_fn_c_try_link "$LINENO"; then :
13053  ac_cv_lib_dld_dld_link=yes
13054else
13055  ac_cv_lib_dld_dld_link=no
13056fi
13057rm -f core conftest.err conftest.$ac_objext \
13058    conftest$ac_exeext conftest.$ac_ext
13059LIBS=$ac_check_lib_save_LIBS
13060fi
13061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13062$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13063if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
13064  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13065fi
13066
13067
13068fi
13069
13070
13071fi
13072
13073
13074fi
13075
13076
13077fi
13078
13079
13080fi
13081
13082    ;;
13083  esac
13084
13085  if test "x$lt_cv_dlopen" != xno; then
13086    enable_dlopen=yes
13087  else
13088    enable_dlopen=no
13089  fi
13090
13091  case $lt_cv_dlopen in
13092  dlopen)
13093    save_CPPFLAGS="$CPPFLAGS"
13094    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13095
13096    save_LDFLAGS="$LDFLAGS"
13097    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13098
13099    save_LIBS="$LIBS"
13100    LIBS="$lt_cv_dlopen_libs $LIBS"
13101
13102    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13103$as_echo_n "checking whether a program can dlopen itself... " >&6; }
13104if test "${lt_cv_dlopen_self+set}" = set; then :
13105  $as_echo_n "(cached) " >&6
13106else
13107  	  if test "$cross_compiling" = yes; then :
13108  lt_cv_dlopen_self=cross
13109else
13110  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13111  lt_status=$lt_dlunknown
13112  cat > conftest.$ac_ext <<_LT_EOF
13113#line 13113 "configure"
13114#include "confdefs.h"
13115
13116#if HAVE_DLFCN_H
13117#include <dlfcn.h>
13118#endif
13119
13120#include <stdio.h>
13121
13122#ifdef RTLD_GLOBAL
13123#  define LT_DLGLOBAL		RTLD_GLOBAL
13124#else
13125#  ifdef DL_GLOBAL
13126#    define LT_DLGLOBAL		DL_GLOBAL
13127#  else
13128#    define LT_DLGLOBAL		0
13129#  endif
13130#endif
13131
13132/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13133   find out it does not work in some platform. */
13134#ifndef LT_DLLAZY_OR_NOW
13135#  ifdef RTLD_LAZY
13136#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13137#  else
13138#    ifdef DL_LAZY
13139#      define LT_DLLAZY_OR_NOW		DL_LAZY
13140#    else
13141#      ifdef RTLD_NOW
13142#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13143#      else
13144#        ifdef DL_NOW
13145#          define LT_DLLAZY_OR_NOW	DL_NOW
13146#        else
13147#          define LT_DLLAZY_OR_NOW	0
13148#        endif
13149#      endif
13150#    endif
13151#  endif
13152#endif
13153
13154void fnord() { int i=42;}
13155int main ()
13156{
13157  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13158  int status = $lt_dlunknown;
13159
13160  if (self)
13161    {
13162      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13163      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13164      /* dlclose (self); */
13165    }
13166  else
13167    puts (dlerror ());
13168
13169  return status;
13170}
13171_LT_EOF
13172  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13173  (eval $ac_link) 2>&5
13174  ac_status=$?
13175  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13176  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13177    (./conftest; exit; ) >&5 2>/dev/null
13178    lt_status=$?
13179    case x$lt_status in
13180      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13181      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13182      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13183    esac
13184  else :
13185    # compilation failed
13186    lt_cv_dlopen_self=no
13187  fi
13188fi
13189rm -fr conftest*
13190
13191
13192fi
13193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13194$as_echo "$lt_cv_dlopen_self" >&6; }
13195
13196    if test "x$lt_cv_dlopen_self" = xyes; then
13197      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13198      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13199$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13200if test "${lt_cv_dlopen_self_static+set}" = set; then :
13201  $as_echo_n "(cached) " >&6
13202else
13203  	  if test "$cross_compiling" = yes; then :
13204  lt_cv_dlopen_self_static=cross
13205else
13206  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13207  lt_status=$lt_dlunknown
13208  cat > conftest.$ac_ext <<_LT_EOF
13209#line 13209 "configure"
13210#include "confdefs.h"
13211
13212#if HAVE_DLFCN_H
13213#include <dlfcn.h>
13214#endif
13215
13216#include <stdio.h>
13217
13218#ifdef RTLD_GLOBAL
13219#  define LT_DLGLOBAL		RTLD_GLOBAL
13220#else
13221#  ifdef DL_GLOBAL
13222#    define LT_DLGLOBAL		DL_GLOBAL
13223#  else
13224#    define LT_DLGLOBAL		0
13225#  endif
13226#endif
13227
13228/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13229   find out it does not work in some platform. */
13230#ifndef LT_DLLAZY_OR_NOW
13231#  ifdef RTLD_LAZY
13232#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13233#  else
13234#    ifdef DL_LAZY
13235#      define LT_DLLAZY_OR_NOW		DL_LAZY
13236#    else
13237#      ifdef RTLD_NOW
13238#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13239#      else
13240#        ifdef DL_NOW
13241#          define LT_DLLAZY_OR_NOW	DL_NOW
13242#        else
13243#          define LT_DLLAZY_OR_NOW	0
13244#        endif
13245#      endif
13246#    endif
13247#  endif
13248#endif
13249
13250void fnord() { int i=42;}
13251int main ()
13252{
13253  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13254  int status = $lt_dlunknown;
13255
13256  if (self)
13257    {
13258      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13259      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13260      /* dlclose (self); */
13261    }
13262  else
13263    puts (dlerror ());
13264
13265  return status;
13266}
13267_LT_EOF
13268  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13269  (eval $ac_link) 2>&5
13270  ac_status=$?
13271  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13272  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13273    (./conftest; exit; ) >&5 2>/dev/null
13274    lt_status=$?
13275    case x$lt_status in
13276      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13277      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13278      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13279    esac
13280  else :
13281    # compilation failed
13282    lt_cv_dlopen_self_static=no
13283  fi
13284fi
13285rm -fr conftest*
13286
13287
13288fi
13289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13290$as_echo "$lt_cv_dlopen_self_static" >&6; }
13291    fi
13292
13293    CPPFLAGS="$save_CPPFLAGS"
13294    LDFLAGS="$save_LDFLAGS"
13295    LIBS="$save_LIBS"
13296    ;;
13297  esac
13298
13299  case $lt_cv_dlopen_self in
13300  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13301  *) enable_dlopen_self=unknown ;;
13302  esac
13303
13304  case $lt_cv_dlopen_self_static in
13305  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13306  *) enable_dlopen_self_static=unknown ;;
13307  esac
13308fi
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326striplib=
13327old_striplib=
13328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13329$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13330if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13331  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13332  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13334$as_echo "yes" >&6; }
13335else
13336# FIXME - insert some real tests, host_os isn't really good enough
13337  case $host_os in
13338  darwin*)
13339    if test -n "$STRIP" ; then
13340      striplib="$STRIP -x"
13341      old_striplib="$STRIP -S"
13342      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13343$as_echo "yes" >&6; }
13344    else
13345      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13346$as_echo "no" >&6; }
13347    fi
13348    ;;
13349  *)
13350    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13351$as_echo "no" >&6; }
13352    ;;
13353  esac
13354fi
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367  # Report which library types will actually be built
13368  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13369$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13371$as_echo "$can_build_shared" >&6; }
13372
13373  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13374$as_echo_n "checking whether to build shared libraries... " >&6; }
13375  test "$can_build_shared" = "no" && enable_shared=no
13376
13377  # On AIX, shared libraries and static libraries use the same namespace, and
13378  # are all built from PIC.
13379  case $host_os in
13380  aix3*)
13381    test "$enable_shared" = yes && enable_static=no
13382    if test -n "$RANLIB"; then
13383      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13384      postinstall_cmds='$RANLIB $lib'
13385    fi
13386    ;;
13387
13388  aix[4-9]*)
13389    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13390      test "$enable_shared" = yes && enable_static=no
13391    fi
13392    ;;
13393  esac
13394  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13395$as_echo "$enable_shared" >&6; }
13396
13397  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13398$as_echo_n "checking whether to build static libraries... " >&6; }
13399  # Make sure either enable_shared or enable_static is yes.
13400  test "$enable_shared" = yes || enable_static=yes
13401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13402$as_echo "$enable_static" >&6; }
13403
13404
13405
13406
13407fi
13408ac_ext=c
13409ac_cpp='$CPP $CPPFLAGS'
13410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13412ac_compiler_gnu=$ac_cv_c_compiler_gnu
13413
13414CC="$lt_save_CC"
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428        ac_config_commands="$ac_config_commands libtool"
13429
13430
13431
13432
13433# Only expand once:
13434
13435
13436
13437
13438
13439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((mode (XX))) works" >&5
13440$as_echo_n "checking whether gcc __attribute__ ((mode (XX))) works... " >&6; }
13441if test "${gmp_cv_c_attribute_mode+set}" = set; then :
13442  $as_echo_n "(cached) " >&6
13443else
13444  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13445/* end confdefs.h.  */
13446typedef int SItype __attribute__ ((mode (SI)));
13447int
13448main ()
13449{
13450
13451  ;
13452  return 0;
13453}
13454_ACEOF
13455if ac_fn_c_try_compile "$LINENO"; then :
13456  gmp_cv_c_attribute_mode=yes
13457else
13458  gmp_cv_c_attribute_mode=no
13459fi
13460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13461
13462fi
13463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_mode" >&5
13464$as_echo "$gmp_cv_c_attribute_mode" >&6; }
13465if test $gmp_cv_c_attribute_mode = yes; then
13466
13467$as_echo "#define HAVE_ATTRIBUTE_MODE 1" >>confdefs.h
13468
13469fi
13470
13471
13472
13473
13474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent GMP" >&5
13475$as_echo_n "checking for recent GMP... " >&6; }
13476cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13477/* end confdefs.h.  */
13478
13479#include "gmp.h"
13480#if (__GNU_MP_VERSION*100+__GNU_MP_VERSION_MINOR*10 < 410)
13481# error "min GMP version is 4.1.0"
13482error
13483#endif
13484
13485_ACEOF
13486if ac_fn_c_try_compile "$LINENO"; then :
13487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13488$as_echo "yes" >&6; }
13489else
13490
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13492$as_echo "no" >&6; }
13493 as_fn_error $? "GMP 4.1.0 min required" "$LINENO" 5
13494
13495fi
13496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13497
13498if test "$use_gmp_build" = yes ; then
13499   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gmp internal files" >&5
13500$as_echo_n "checking for gmp internal files... " >&6; }
13501   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13502/* end confdefs.h.  */
13503
13504   #include "gmp.h"
13505   #include "gmp-impl.h"
13506   #include "longlong.h"
13507
13508_ACEOF
13509if ac_fn_c_try_compile "$LINENO"; then :
13510
13511     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13512$as_echo "yes" >&6; }
13513
13514$as_echo "#define MPFR_HAVE_GMP_IMPL 1" >>confdefs.h
13515
13516
13517else
13518
13519     as_fn_error $? "header files gmp-impl.h and longlong.h not found" "$LINENO" 5
13520
13521fi
13522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13523fi
13524
13525if test "$use_gmp_build" = yes ; then
13526  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for valid GMP_NUMB_BITS" >&5
13527$as_echo_n "checking for valid GMP_NUMB_BITS... " >&6; }
13528  if test "$cross_compiling" = yes; then :
13529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't test" >&5
13530$as_echo "can't test" >&6; }
13531else
13532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13533/* end confdefs.h.  */
13534
13535#include <limits.h>
13536#include "gmp.h"
13537#include "gmp-impl.h"
13538
13539int
13540main ()
13541{
13542
13543  return GMP_NUMB_BITS == BYTES_PER_MP_LIMB * CHAR_BIT
13544         && sizeof(mp_limb_t) == BYTES_PER_MP_LIMB ? 0 : 1;
13545
13546  ;
13547  return 0;
13548}
13549_ACEOF
13550if ac_fn_c_try_run "$LINENO"; then :
13551  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13552$as_echo "yes" >&6; }
13553else
13554
13555       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13556$as_echo "no" >&6; }
13557       as_fn_error $? "GMP_NUMB_BITS is incorrect.
13558You probably need to change some of the GMP or MPFR compile options." "$LINENO" 5
13559fi
13560rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13561  conftest.$ac_objext conftest.beam conftest.$ac_ext
13562fi
13563
13564fi
13565
13566
13567if test "$dont_link_with_gmp" = yes ; then
13568LIBS="-lgmp $LIBS"
13569else
13570
13571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_init in -lgmp" >&5
13572$as_echo_n "checking for __gmpz_init in -lgmp... " >&6; }
13573if test "${ac_cv_lib_gmp___gmpz_init+set}" = set; then :
13574  $as_echo_n "(cached) " >&6
13575else
13576  ac_check_lib_save_LIBS=$LIBS
13577LIBS="-lgmp  $LIBS"
13578cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13579/* end confdefs.h.  */
13580
13581/* Override any GCC internal prototype to avoid an error.
13582   Use char because int might match the return type of a GCC
13583   builtin and then its argument prototype would still apply.  */
13584#ifdef __cplusplus
13585extern "C"
13586#endif
13587char __gmpz_init ();
13588int
13589main ()
13590{
13591return __gmpz_init ();
13592  ;
13593  return 0;
13594}
13595_ACEOF
13596if ac_fn_c_try_link "$LINENO"; then :
13597  ac_cv_lib_gmp___gmpz_init=yes
13598else
13599  ac_cv_lib_gmp___gmpz_init=no
13600fi
13601rm -f core conftest.err conftest.$ac_objext \
13602    conftest$ac_exeext conftest.$ac_ext
13603LIBS=$ac_check_lib_save_LIBS
13604fi
13605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_init" >&5
13606$as_echo "$ac_cv_lib_gmp___gmpz_init" >&6; }
13607if test "x$ac_cv_lib_gmp___gmpz_init" = x""yes; then :
13608  LIBS="-lgmp $LIBS"
13609else
13610  as_fn_error $? "libgmp not found or uses a different ABI.
13611Please read the INSTALL file -- see \"In case of problem\"." "$LINENO" 5
13612fi
13613
13614
13615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmp.h version and libgmp version are the same" >&5
13616$as_echo_n "checking if gmp.h version and libgmp version are the same... " >&6; }
13617saved_LD_RUN_PATH="$LD_RUN_PATH"
13618LD_RUN_PATH="${LD_RUN_PATH:+$LD_RUN_PATH$PATH_SEPARATOR}$gmp_lib_path"
13619export LD_RUN_PATH
13620if test "$cross_compiling" = yes; then :
13621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: can not test" >&5
13622$as_echo "can not test" >&6; }
13623
13624else
13625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13626/* end confdefs.h.  */
13627
13628#include <stdio.h>
13629#include <string.h>
13630#include "gmp.h"
13631
13632int
13633main ()
13634{
13635
13636  char buffer[100];
13637  sprintf (buffer, "%d.%d.%d", __GNU_MP_VERSION, __GNU_MP_VERSION_MINOR,
13638           __GNU_MP_VERSION_PATCHLEVEL);
13639  printf ("(%s/%s) ", buffer, gmp_version);
13640  if (strcmp (buffer, gmp_version) == 0)
13641    return 0;
13642  if (__GNU_MP_VERSION_PATCHLEVEL != 0)
13643    return 1;
13644  sprintf (buffer, "%d.%d", __GNU_MP_VERSION, __GNU_MP_VERSION_MINOR);
13645  return (strcmp (buffer, gmp_version) != 0) ? 1 : 0;
13646
13647  ;
13648  return 0;
13649}
13650_ACEOF
13651if ac_fn_c_try_run "$LINENO"; then :
13652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13653$as_echo "yes" >&6; }
13654
13655if test "$ac_cv_type_intmax_t" = yes; then
13656
13657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%jd\"" >&5
13658$as_echo_n "checking if gmp_printf supports \"%jd\"... " >&6; }
13659if test "$cross_compiling" = yes; then :
13660  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13661$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13662as_fn_error $? "cannot run test program while cross compiling
13663See \`config.log' for more details" "$LINENO" 5 ; }
13664else
13665  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13666/* end confdefs.h.  */
13667
13668#include <stdio.h>
13669
13670#ifdef HAVE_STDINT_H
13671# include <stdint.h>
13672#endif
13673#ifdef HAVE_INTTYPES_H
13674# include <inttypes.h>
13675#endif
13676
13677#include <gmp.h>
13678
13679int
13680main ()
13681{
13682
13683  char s[256];
13684  intmax_t a = 17;
13685
13686  if (gmp_sprintf (s, "(%0.0jd)(%d)", a, 42) == -1) return 1;
13687  return (strcmp (s, "(17)(42)") != 0);
13688
13689  ;
13690  return 0;
13691}
13692_ACEOF
13693if ac_fn_c_try_run "$LINENO"; then :
13694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13695$as_echo "yes" >&6; }
13696
13697else
13698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13699$as_echo "no" >&6; }
13700
13701$as_echo "#define NPRINTF_J 1" >>confdefs.h
13702
13703fi
13704rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13705  conftest.$ac_objext conftest.beam conftest.$ac_ext
13706fi
13707
13708
13709fi
13710
13711
13712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%hhd\"" >&5
13713$as_echo_n "checking if gmp_printf supports \"%hhd\"... " >&6; }
13714if test "$cross_compiling" = yes; then :
13715  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13716$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13717as_fn_error $? "cannot run test program while cross compiling
13718See \`config.log' for more details" "$LINENO" 5 ; }
13719else
13720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13721/* end confdefs.h.  */
13722
13723#include <stdio.h>
13724
13725#include <gmp.h>
13726
13727#include <gmp.h>
13728
13729int
13730main ()
13731{
13732
13733  char s[256];
13734  char a = 17;
13735
13736  if (gmp_sprintf (s, "(%0.0hhd)(%d)", a, 42) == -1) return 1;
13737  return (strcmp (s, "(17)(42)") != 0);
13738
13739  ;
13740  return 0;
13741}
13742_ACEOF
13743if ac_fn_c_try_run "$LINENO"; then :
13744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13745$as_echo "yes" >&6; }
13746
13747else
13748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13749$as_echo "no" >&6; }
13750
13751$as_echo "#define NPRINTF_HH 1" >>confdefs.h
13752
13753fi
13754rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13755  conftest.$ac_objext conftest.beam conftest.$ac_ext
13756fi
13757
13758
13759
13760
13761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%lld\"" >&5
13762$as_echo_n "checking if gmp_printf supports \"%lld\"... " >&6; }
13763if test "$cross_compiling" = yes; then :
13764  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13765$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13766as_fn_error $? "cannot run test program while cross compiling
13767See \`config.log' for more details" "$LINENO" 5 ; }
13768else
13769  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13770/* end confdefs.h.  */
13771
13772#include <stdio.h>
13773
13774#include <gmp.h>
13775
13776#include <gmp.h>
13777
13778int
13779main ()
13780{
13781
13782  char s[256];
13783  long long int a = 17;
13784
13785  if (gmp_sprintf (s, "(%0.0lld)(%d)", a, 42) == -1) return 1;
13786  return (strcmp (s, "(17)(42)") != 0);
13787
13788  ;
13789  return 0;
13790}
13791_ACEOF
13792if ac_fn_c_try_run "$LINENO"; then :
13793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13794$as_echo "yes" >&6; }
13795
13796else
13797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13798$as_echo "no" >&6; }
13799
13800$as_echo "#define NPRINTF_LL 1" >>confdefs.h
13801
13802fi
13803rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13804  conftest.$ac_objext conftest.beam conftest.$ac_ext
13805fi
13806
13807
13808
13809
13810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%Lf\"" >&5
13811$as_echo_n "checking if gmp_printf supports \"%Lf\"... " >&6; }
13812if test "$cross_compiling" = yes; then :
13813  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13814$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13815as_fn_error $? "cannot run test program while cross compiling
13816See \`config.log' for more details" "$LINENO" 5 ; }
13817else
13818  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13819/* end confdefs.h.  */
13820
13821#include <stdio.h>
13822
13823#include <gmp.h>
13824
13825#include <gmp.h>
13826
13827int
13828main ()
13829{
13830
13831  char s[256];
13832  long double a = 17;
13833
13834  if (gmp_sprintf (s, "(%0.0Lf)(%d)", a, 42) == -1) return 1;
13835  return (strcmp (s, "(17)(42)") != 0);
13836
13837  ;
13838  return 0;
13839}
13840_ACEOF
13841if ac_fn_c_try_run "$LINENO"; then :
13842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13843$as_echo "yes" >&6; }
13844
13845else
13846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13847$as_echo "no" >&6; }
13848
13849$as_echo "#define NPRINTF_L 1" >>confdefs.h
13850
13851fi
13852rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13853  conftest.$ac_objext conftest.beam conftest.$ac_ext
13854fi
13855
13856
13857
13858
13859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%td\"" >&5
13860$as_echo_n "checking if gmp_printf supports \"%td\"... " >&6; }
13861if test "$cross_compiling" = yes; then :
13862  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13863$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13864as_fn_error $? "cannot run test program while cross compiling
13865See \`config.log' for more details" "$LINENO" 5 ; }
13866else
13867  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13868/* end confdefs.h.  */
13869
13870#include <stdio.h>
13871
13872#if defined (__cplusplus)
13873#include <cstddef>
13874#else
13875#include <stddef.h>
13876#endif
13877#include "gmp.h"
13878
13879#include <gmp.h>
13880
13881int
13882main ()
13883{
13884
13885  char s[256];
13886  ptrdiff_t a = 17;
13887
13888  if (gmp_sprintf (s, "(%0.0td)(%d)", a, 42) == -1) return 1;
13889  return (strcmp (s, "(17)(42)") != 0);
13890
13891  ;
13892  return 0;
13893}
13894_ACEOF
13895if ac_fn_c_try_run "$LINENO"; then :
13896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13897$as_echo "yes" >&6; }
13898
13899else
13900  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13901$as_echo "no" >&6; }
13902
13903$as_echo "#define NPRINTF_T 1" >>confdefs.h
13904
13905fi
13906rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13907  conftest.$ac_objext conftest.beam conftest.$ac_ext
13908fi
13909
13910
13911
13912else
13913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13914$as_echo "no" >&6; }
13915    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'gmp.h' and 'libgmp' seems to have different versions or" >&5
13916$as_echo "$as_me: WARNING: 'gmp.h' and 'libgmp' seems to have different versions or" >&2;}
13917    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: we cannot run a program linked with GMP (if you cannot" >&5
13918$as_echo "$as_me: WARNING: we cannot run a program linked with GMP (if you cannot" >&2;}
13919    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see the version numbers above). A cause may be different" >&5
13920$as_echo "$as_me: WARNING: see the version numbers above). A cause may be different" >&2;}
13921    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GMP versions with different ABI's." >&5
13922$as_echo "$as_me: WARNING: GMP versions with different ABI's." >&2;}
13923    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: However since we can't use 'libtool' inside the configure," >&5
13924$as_echo "$as_me: WARNING: However since we can't use 'libtool' inside the configure," >&2;}
13925    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: we can't be sure. See 'config.log' for details." >&5
13926$as_echo "$as_me: WARNING: we can't be sure. See 'config.log' for details." >&2;}
13927
13928fi
13929rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13930  conftest.$ac_objext conftest.beam conftest.$ac_ext
13931fi
13932
13933LD_RUN_PATH="$saved_LD_RUN_PATH"
13934
13935fi
13936
13937if test -f confdefs.h; then
13938  sed '/#define PACKAGE_/d' <confdefs.h >confdefs.tmp
13939  sed '/#define HAVE_STRING/d' <confdefs.tmp >confdefs.h
13940  sed '/#define HAVE_ALLOCA /d' <confdefs.h >confdefs.tmp
13941  sed '/#define HAVE_DLFCN_H/d' <confdefs.tmp >confdefs.h
13942  sed '/#define HAVE_MEM/d' <confdefs.h >confdefs.tmp
13943  sed '/#define STDC_HEADERS/d' <confdefs.tmp >confdefs.h
13944  sed '/#define HAVE_STRTOL/d' <confdefs.h >confdefs.tmp
13945  sed '/#define HAVE_STDLIB_H/d' <confdefs.tmp >confdefs.h
13946  sed '/#define HAVE_UNISTD_H/d' <confdefs.h >confdefs.tmp
13947  sed '/#define HAVE_STDC_HEADERS/d' <confdefs.tmp >confdefs.h
13948  sed '/#define HAVE_LONG_DOUBLE/d' <confdefs.h >confdefs.tmp
13949  sed '/#define HAVE_SYS_STAT_H/d' <confdefs.tmp >confdefs.h
13950  sed '/#define HAVE_SYS_TYPES_H/d' <confdefs.h >confdefs.tmp
13951  sed '/#define PROTOTYPES/d' <confdefs.tmp >confdefs.h
13952  sed '/#define __PROTOTYPES/d' <confdefs.h >confdefs.tmp
13953
13954  mv confdefs.tmp confdefs.h
13955fi
13956
13957ac_config_files="$ac_config_files Makefile tests/Makefile mparam.h:mparam_h.in"
13958
13959cat >confcache <<\_ACEOF
13960# This file is a shell script that caches the results of configure
13961# tests run on this system so they can be shared between configure
13962# scripts and configure runs, see configure's option --config-cache.
13963# It is not useful on other systems.  If it contains results you don't
13964# want to keep, you may remove or edit it.
13965#
13966# config.status only pays attention to the cache file if you give it
13967# the --recheck option to rerun configure.
13968#
13969# `ac_cv_env_foo' variables (set or unset) will be overridden when
13970# loading this file, other *unset* `ac_cv_foo' will be assigned the
13971# following values.
13972
13973_ACEOF
13974
13975# The following way of writing the cache mishandles newlines in values,
13976# but we know of no workaround that is simple, portable, and efficient.
13977# So, we kill variables containing newlines.
13978# Ultrix sh set writes to stderr and can't be redirected directly,
13979# and sets the high bit in the cache file unless we assign to the vars.
13980(
13981  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13982    eval ac_val=\$$ac_var
13983    case $ac_val in #(
13984    *${as_nl}*)
13985      case $ac_var in #(
13986      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13987$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13988      esac
13989      case $ac_var in #(
13990      _ | IFS | as_nl) ;; #(
13991      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13992      *) { eval $ac_var=; unset $ac_var;} ;;
13993      esac ;;
13994    esac
13995  done
13996
13997  (set) 2>&1 |
13998    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13999    *${as_nl}ac_space=\ *)
14000      # `set' does not quote correctly, so add quotes: double-quote
14001      # substitution turns \\\\ into \\, and sed turns \\ into \.
14002      sed -n \
14003	"s/'/'\\\\''/g;
14004	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14005      ;; #(
14006    *)
14007      # `set' quotes correctly as required by POSIX, so do not add quotes.
14008      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14009      ;;
14010    esac |
14011    sort
14012) |
14013  sed '
14014     /^ac_cv_env_/b end
14015     t clear
14016     :clear
14017     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14018     t end
14019     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14020     :end' >>confcache
14021if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14022  if test -w "$cache_file"; then
14023    test "x$cache_file" != "x/dev/null" &&
14024      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14025$as_echo "$as_me: updating cache $cache_file" >&6;}
14026    cat confcache >$cache_file
14027  else
14028    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14029$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14030  fi
14031fi
14032rm -f confcache
14033
14034test "x$prefix" = xNONE && prefix=$ac_default_prefix
14035# Let make expand exec_prefix.
14036test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14037
14038# Transform confdefs.h into DEFS.
14039# Protect against shell expansion while executing Makefile rules.
14040# Protect against Makefile macro expansion.
14041#
14042# If the first sed substitution is executed (which looks for macros that
14043# take arguments), then branch to the quote section.  Otherwise,
14044# look for a macro that doesn't take arguments.
14045ac_script='
14046:mline
14047/\\$/{
14048 N
14049 s,\\\n,,
14050 b mline
14051}
14052t clear
14053:clear
14054s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
14055t quote
14056s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
14057t quote
14058b any
14059:quote
14060s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14061s/\[/\\&/g
14062s/\]/\\&/g
14063s/\$/$$/g
14064H
14065:any
14066${
14067	g
14068	s/^\n//
14069	s/\n/ /g
14070	p
14071}
14072'
14073DEFS=`sed -n "$ac_script" confdefs.h`
14074
14075
14076ac_libobjs=
14077ac_ltlibobjs=
14078for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14079  # 1. Remove the extension, and $U if already installed.
14080  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14081  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14082  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14083  #    will be set to the directory where LIBOBJS objects are built.
14084  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14085  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14086done
14087LIBOBJS=$ac_libobjs
14088
14089LTLIBOBJS=$ac_ltlibobjs
14090
14091
14092 if test -n "$EXEEXT"; then
14093  am__EXEEXT_TRUE=
14094  am__EXEEXT_FALSE='#'
14095else
14096  am__EXEEXT_TRUE='#'
14097  am__EXEEXT_FALSE=
14098fi
14099
14100if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14101  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14102Usually this means the macro was only invoked conditionally." "$LINENO" 5
14103fi
14104if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14105  as_fn_error $? "conditional \"AMDEP\" was never defined.
14106Usually this means the macro was only invoked conditionally." "$LINENO" 5
14107fi
14108if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14109  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14110Usually this means the macro was only invoked conditionally." "$LINENO" 5
14111fi
14112
14113: ${CONFIG_STATUS=./config.status}
14114ac_write_fail=0
14115ac_clean_files_save=$ac_clean_files
14116ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14117{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14118$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14119as_write_fail=0
14120cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14121#! $SHELL
14122# Generated by $as_me.
14123# Run this file to recreate the current configuration.
14124# Compiler output produced by configure, useful for debugging
14125# configure, is in config.log if it exists.
14126
14127debug=false
14128ac_cs_recheck=false
14129ac_cs_silent=false
14130
14131SHELL=\${CONFIG_SHELL-$SHELL}
14132export SHELL
14133_ASEOF
14134cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14135## -------------------- ##
14136## M4sh Initialization. ##
14137## -------------------- ##
14138
14139# Be more Bourne compatible
14140DUALCASE=1; export DUALCASE # for MKS sh
14141if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14142  emulate sh
14143  NULLCMD=:
14144  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14145  # is contrary to our usage.  Disable this feature.
14146  alias -g '${1+"$@"}'='"$@"'
14147  setopt NO_GLOB_SUBST
14148else
14149  case `(set -o) 2>/dev/null` in #(
14150  *posix*) :
14151    set -o posix ;; #(
14152  *) :
14153     ;;
14154esac
14155fi
14156
14157
14158as_nl='
14159'
14160export as_nl
14161# Printing a long string crashes Solaris 7 /usr/bin/printf.
14162as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14163as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14164as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14165# Prefer a ksh shell builtin over an external printf program on Solaris,
14166# but without wasting forks for bash or zsh.
14167if test -z "$BASH_VERSION$ZSH_VERSION" \
14168    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14169  as_echo='print -r --'
14170  as_echo_n='print -rn --'
14171elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14172  as_echo='printf %s\n'
14173  as_echo_n='printf %s'
14174else
14175  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14176    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14177    as_echo_n='/usr/ucb/echo -n'
14178  else
14179    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14180    as_echo_n_body='eval
14181      arg=$1;
14182      case $arg in #(
14183      *"$as_nl"*)
14184	expr "X$arg" : "X\\(.*\\)$as_nl";
14185	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14186      esac;
14187      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14188    '
14189    export as_echo_n_body
14190    as_echo_n='sh -c $as_echo_n_body as_echo'
14191  fi
14192  export as_echo_body
14193  as_echo='sh -c $as_echo_body as_echo'
14194fi
14195
14196# The user is always right.
14197if test "${PATH_SEPARATOR+set}" != set; then
14198  PATH_SEPARATOR=:
14199  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14200    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14201      PATH_SEPARATOR=';'
14202  }
14203fi
14204
14205
14206# IFS
14207# We need space, tab and new line, in precisely that order.  Quoting is
14208# there to prevent editors from complaining about space-tab.
14209# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14210# splitting by setting IFS to empty value.)
14211IFS=" ""	$as_nl"
14212
14213# Find who we are.  Look in the path if we contain no directory separator.
14214case $0 in #((
14215  *[\\/]* ) as_myself=$0 ;;
14216  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14217for as_dir in $PATH
14218do
14219  IFS=$as_save_IFS
14220  test -z "$as_dir" && as_dir=.
14221    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14222  done
14223IFS=$as_save_IFS
14224
14225     ;;
14226esac
14227# We did not find ourselves, most probably we were run as `sh COMMAND'
14228# in which case we are not to be found in the path.
14229if test "x$as_myself" = x; then
14230  as_myself=$0
14231fi
14232if test ! -f "$as_myself"; then
14233  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14234  exit 1
14235fi
14236
14237# Unset variables that we do not need and which cause bugs (e.g. in
14238# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14239# suppresses any "Segmentation fault" message there.  '((' could
14240# trigger a bug in pdksh 5.2.14.
14241for as_var in BASH_ENV ENV MAIL MAILPATH
14242do eval test x\${$as_var+set} = xset \
14243  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14244done
14245PS1='$ '
14246PS2='> '
14247PS4='+ '
14248
14249# NLS nuisances.
14250LC_ALL=C
14251export LC_ALL
14252LANGUAGE=C
14253export LANGUAGE
14254
14255# CDPATH.
14256(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14257
14258
14259# as_fn_error STATUS ERROR [LINENO LOG_FD]
14260# ----------------------------------------
14261# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14262# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14263# script with STATUS, using 1 if that was 0.
14264as_fn_error ()
14265{
14266  as_status=$1; test $as_status -eq 0 && as_status=1
14267  if test "$4"; then
14268    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14269    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14270  fi
14271  $as_echo "$as_me: error: $2" >&2
14272  as_fn_exit $as_status
14273} # as_fn_error
14274
14275
14276# as_fn_set_status STATUS
14277# -----------------------
14278# Set $? to STATUS, without forking.
14279as_fn_set_status ()
14280{
14281  return $1
14282} # as_fn_set_status
14283
14284# as_fn_exit STATUS
14285# -----------------
14286# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14287as_fn_exit ()
14288{
14289  set +e
14290  as_fn_set_status $1
14291  exit $1
14292} # as_fn_exit
14293
14294# as_fn_unset VAR
14295# ---------------
14296# Portably unset VAR.
14297as_fn_unset ()
14298{
14299  { eval $1=; unset $1;}
14300}
14301as_unset=as_fn_unset
14302# as_fn_append VAR VALUE
14303# ----------------------
14304# Append the text in VALUE to the end of the definition contained in VAR. Take
14305# advantage of any shell optimizations that allow amortized linear growth over
14306# repeated appends, instead of the typical quadratic growth present in naive
14307# implementations.
14308if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14309  eval 'as_fn_append ()
14310  {
14311    eval $1+=\$2
14312  }'
14313else
14314  as_fn_append ()
14315  {
14316    eval $1=\$$1\$2
14317  }
14318fi # as_fn_append
14319
14320# as_fn_arith ARG...
14321# ------------------
14322# Perform arithmetic evaluation on the ARGs, and store the result in the
14323# global $as_val. Take advantage of shells that can avoid forks. The arguments
14324# must be portable across $(()) and expr.
14325if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14326  eval 'as_fn_arith ()
14327  {
14328    as_val=$(( $* ))
14329  }'
14330else
14331  as_fn_arith ()
14332  {
14333    as_val=`expr "$@" || test $? -eq 1`
14334  }
14335fi # as_fn_arith
14336
14337
14338if expr a : '\(a\)' >/dev/null 2>&1 &&
14339   test "X`expr 00001 : '.*\(...\)'`" = X001; then
14340  as_expr=expr
14341else
14342  as_expr=false
14343fi
14344
14345if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14346  as_basename=basename
14347else
14348  as_basename=false
14349fi
14350
14351if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14352  as_dirname=dirname
14353else
14354  as_dirname=false
14355fi
14356
14357as_me=`$as_basename -- "$0" ||
14358$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14359	 X"$0" : 'X\(//\)$' \| \
14360	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14361$as_echo X/"$0" |
14362    sed '/^.*\/\([^/][^/]*\)\/*$/{
14363	    s//\1/
14364	    q
14365	  }
14366	  /^X\/\(\/\/\)$/{
14367	    s//\1/
14368	    q
14369	  }
14370	  /^X\/\(\/\).*/{
14371	    s//\1/
14372	    q
14373	  }
14374	  s/.*/./; q'`
14375
14376# Avoid depending upon Character Ranges.
14377as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14378as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14379as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14380as_cr_digits='0123456789'
14381as_cr_alnum=$as_cr_Letters$as_cr_digits
14382
14383ECHO_C= ECHO_N= ECHO_T=
14384case `echo -n x` in #(((((
14385-n*)
14386  case `echo 'xy\c'` in
14387  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
14388  xy)  ECHO_C='\c';;
14389  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14390       ECHO_T='	';;
14391  esac;;
14392*)
14393  ECHO_N='-n';;
14394esac
14395
14396rm -f conf$$ conf$$.exe conf$$.file
14397if test -d conf$$.dir; then
14398  rm -f conf$$.dir/conf$$.file
14399else
14400  rm -f conf$$.dir
14401  mkdir conf$$.dir 2>/dev/null
14402fi
14403if (echo >conf$$.file) 2>/dev/null; then
14404  if ln -s conf$$.file conf$$ 2>/dev/null; then
14405    as_ln_s='ln -s'
14406    # ... but there are two gotchas:
14407    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14408    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14409    # In both cases, we have to default to `cp -p'.
14410    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14411      as_ln_s='cp -p'
14412  elif ln conf$$.file conf$$ 2>/dev/null; then
14413    as_ln_s=ln
14414  else
14415    as_ln_s='cp -p'
14416  fi
14417else
14418  as_ln_s='cp -p'
14419fi
14420rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14421rmdir conf$$.dir 2>/dev/null
14422
14423
14424# as_fn_mkdir_p
14425# -------------
14426# Create "$as_dir" as a directory, including parents if necessary.
14427as_fn_mkdir_p ()
14428{
14429
14430  case $as_dir in #(
14431  -*) as_dir=./$as_dir;;
14432  esac
14433  test -d "$as_dir" || eval $as_mkdir_p || {
14434    as_dirs=
14435    while :; do
14436      case $as_dir in #(
14437      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14438      *) as_qdir=$as_dir;;
14439      esac
14440      as_dirs="'$as_qdir' $as_dirs"
14441      as_dir=`$as_dirname -- "$as_dir" ||
14442$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14443	 X"$as_dir" : 'X\(//\)[^/]' \| \
14444	 X"$as_dir" : 'X\(//\)$' \| \
14445	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14446$as_echo X"$as_dir" |
14447    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14448	    s//\1/
14449	    q
14450	  }
14451	  /^X\(\/\/\)[^/].*/{
14452	    s//\1/
14453	    q
14454	  }
14455	  /^X\(\/\/\)$/{
14456	    s//\1/
14457	    q
14458	  }
14459	  /^X\(\/\).*/{
14460	    s//\1/
14461	    q
14462	  }
14463	  s/.*/./; q'`
14464      test -d "$as_dir" && break
14465    done
14466    test -z "$as_dirs" || eval "mkdir $as_dirs"
14467  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14468
14469
14470} # as_fn_mkdir_p
14471if mkdir -p . 2>/dev/null; then
14472  as_mkdir_p='mkdir -p "$as_dir"'
14473else
14474  test -d ./-p && rmdir ./-p
14475  as_mkdir_p=false
14476fi
14477
14478if test -x / >/dev/null 2>&1; then
14479  as_test_x='test -x'
14480else
14481  if ls -dL / >/dev/null 2>&1; then
14482    as_ls_L_option=L
14483  else
14484    as_ls_L_option=
14485  fi
14486  as_test_x='
14487    eval sh -c '\''
14488      if test -d "$1"; then
14489	test -d "$1/.";
14490      else
14491	case $1 in #(
14492	-*)set "./$1";;
14493	esac;
14494	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14495	???[sx]*):;;*)false;;esac;fi
14496    '\'' sh
14497  '
14498fi
14499as_executable_p=$as_test_x
14500
14501# Sed expression to map a string onto a valid CPP name.
14502as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14503
14504# Sed expression to map a string onto a valid variable name.
14505as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14506
14507
14508exec 6>&1
14509## ----------------------------------- ##
14510## Main body of $CONFIG_STATUS script. ##
14511## ----------------------------------- ##
14512_ASEOF
14513test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14514
14515cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14516# Save the log message, to keep $0 and so on meaningful, and to
14517# report actual input values of CONFIG_FILES etc. instead of their
14518# values after options handling.
14519ac_log="
14520This file was extended by MPFR $as_me 3.0.1, which was
14521generated by GNU Autoconf 2.67.  Invocation command line was
14522
14523  CONFIG_FILES    = $CONFIG_FILES
14524  CONFIG_HEADERS  = $CONFIG_HEADERS
14525  CONFIG_LINKS    = $CONFIG_LINKS
14526  CONFIG_COMMANDS = $CONFIG_COMMANDS
14527  $ $0 $@
14528
14529on `(hostname || uname -n) 2>/dev/null | sed 1q`
14530"
14531
14532_ACEOF
14533
14534case $ac_config_files in *"
14535"*) set x $ac_config_files; shift; ac_config_files=$*;;
14536esac
14537
14538
14539
14540cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14541# Files that config.status was made for.
14542config_files="$ac_config_files"
14543config_commands="$ac_config_commands"
14544
14545_ACEOF
14546
14547cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14548ac_cs_usage="\
14549\`$as_me' instantiates files and other configuration actions
14550from templates according to the current configuration.  Unless the files
14551and actions are specified as TAGs, all are instantiated by default.
14552
14553Usage: $0 [OPTION]... [TAG]...
14554
14555  -h, --help       print this help, then exit
14556  -V, --version    print version number and configuration settings, then exit
14557      --config     print configuration, then exit
14558  -q, --quiet, --silent
14559                   do not print progress messages
14560  -d, --debug      don't remove temporary files
14561      --recheck    update $as_me by reconfiguring in the same conditions
14562      --file=FILE[:TEMPLATE]
14563                   instantiate the configuration file FILE
14564
14565Configuration files:
14566$config_files
14567
14568Configuration commands:
14569$config_commands
14570
14571Report bugs to the package provider."
14572
14573_ACEOF
14574cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14575ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14576ac_cs_version="\\
14577MPFR config.status 3.0.1
14578configured by $0, generated by GNU Autoconf 2.67,
14579  with options \\"\$ac_cs_config\\"
14580
14581Copyright (C) 2010 Free Software Foundation, Inc.
14582This config.status script is free software; the Free Software Foundation
14583gives unlimited permission to copy, distribute and modify it."
14584
14585ac_pwd='$ac_pwd'
14586srcdir='$srcdir'
14587INSTALL='$INSTALL'
14588MKDIR_P='$MKDIR_P'
14589AWK='$AWK'
14590test -n "\$AWK" || AWK=awk
14591_ACEOF
14592
14593cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14594# The default lists apply if the user does not specify any file.
14595ac_need_defaults=:
14596while test $# != 0
14597do
14598  case $1 in
14599  --*=?*)
14600    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14601    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14602    ac_shift=:
14603    ;;
14604  --*=)
14605    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14606    ac_optarg=
14607    ac_shift=:
14608    ;;
14609  *)
14610    ac_option=$1
14611    ac_optarg=$2
14612    ac_shift=shift
14613    ;;
14614  esac
14615
14616  case $ac_option in
14617  # Handling of the options.
14618  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14619    ac_cs_recheck=: ;;
14620  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14621    $as_echo "$ac_cs_version"; exit ;;
14622  --config | --confi | --conf | --con | --co | --c )
14623    $as_echo "$ac_cs_config"; exit ;;
14624  --debug | --debu | --deb | --de | --d | -d )
14625    debug=: ;;
14626  --file | --fil | --fi | --f )
14627    $ac_shift
14628    case $ac_optarg in
14629    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14630    '') as_fn_error $? "missing file argument" ;;
14631    esac
14632    as_fn_append CONFIG_FILES " '$ac_optarg'"
14633    ac_need_defaults=false;;
14634  --he | --h |  --help | --hel | -h )
14635    $as_echo "$ac_cs_usage"; exit ;;
14636  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14637  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14638    ac_cs_silent=: ;;
14639
14640  # This is an error.
14641  -*) as_fn_error $? "unrecognized option: \`$1'
14642Try \`$0 --help' for more information." ;;
14643
14644  *) as_fn_append ac_config_targets " $1"
14645     ac_need_defaults=false ;;
14646
14647  esac
14648  shift
14649done
14650
14651ac_configure_extra_args=
14652
14653if $ac_cs_silent; then
14654  exec 6>/dev/null
14655  ac_configure_extra_args="$ac_configure_extra_args --silent"
14656fi
14657
14658_ACEOF
14659cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14660if \$ac_cs_recheck; then
14661  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14662  shift
14663  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14664  CONFIG_SHELL='$SHELL'
14665  export CONFIG_SHELL
14666  exec "\$@"
14667fi
14668
14669_ACEOF
14670cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14671exec 5>>config.log
14672{
14673  echo
14674  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14675## Running $as_me. ##
14676_ASBOX
14677  $as_echo "$ac_log"
14678} >&5
14679
14680_ACEOF
14681cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14682#
14683# INIT-COMMANDS
14684#
14685AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14686
14687
14688# The HP-UX ksh and POSIX shell print the target directory to stdout
14689# if CDPATH is set.
14690(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14691
14692sed_quote_subst='$sed_quote_subst'
14693double_quote_subst='$double_quote_subst'
14694delay_variable_subst='$delay_variable_subst'
14695AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
14696DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14697OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14698macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14699macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14700enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14701enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14702pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14703enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14704host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14705host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14706host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14707build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14708build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14709build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14710SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14711Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14712GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14713EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14714FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14715LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14716NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14717LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14718max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14719ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14720exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14721lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14722lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14723lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14724reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14725reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14726deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14727file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14728AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14729AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14730STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14731RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14732old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14733old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14734old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14735CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14736CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14737compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14738GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14739lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14740lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14741lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
14742lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14743objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14744SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14745ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14746MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14747lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14748lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14749lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14750lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14751lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14752need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14753DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14754NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14755LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14756OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14757OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14758libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14759shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14760extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14761archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14762enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14763export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14764whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14765compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14766old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14767old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14768archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14769archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14770module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14771module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14772with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14773allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14774no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14775hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14776hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14777hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14778hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14779hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14780hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14781hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14782hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14783inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14784link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14785fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14786always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14787export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14788exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14789include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14790prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14791file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14792variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14793need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14794need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14795version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14796runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14797shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14798shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14799libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14800library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14801soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14802postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14803postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14804finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14805finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14806hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14807sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14808sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14809hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14810enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14811enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14812enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14813old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14814striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14815
14816LTCC='$LTCC'
14817LTCFLAGS='$LTCFLAGS'
14818compiler='$compiler_DEFAULT'
14819
14820# Quote evaled strings.
14821for var in SED \
14822GREP \
14823EGREP \
14824FGREP \
14825LD \
14826NM \
14827LN_S \
14828lt_SP2NL \
14829lt_NL2SP \
14830reload_flag \
14831deplibs_check_method \
14832file_magic_cmd \
14833AR \
14834AR_FLAGS \
14835STRIP \
14836RANLIB \
14837CC \
14838CFLAGS \
14839compiler \
14840lt_cv_sys_global_symbol_pipe \
14841lt_cv_sys_global_symbol_to_cdecl \
14842lt_cv_sys_global_symbol_to_c_name_address \
14843lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14844SHELL \
14845ECHO \
14846lt_prog_compiler_no_builtin_flag \
14847lt_prog_compiler_wl \
14848lt_prog_compiler_pic \
14849lt_prog_compiler_static \
14850lt_cv_prog_compiler_c_o \
14851need_locks \
14852DSYMUTIL \
14853NMEDIT \
14854LIPO \
14855OTOOL \
14856OTOOL64 \
14857shrext_cmds \
14858export_dynamic_flag_spec \
14859whole_archive_flag_spec \
14860compiler_needs_object \
14861with_gnu_ld \
14862allow_undefined_flag \
14863no_undefined_flag \
14864hardcode_libdir_flag_spec \
14865hardcode_libdir_flag_spec_ld \
14866hardcode_libdir_separator \
14867fix_srcfile_path \
14868exclude_expsyms \
14869include_expsyms \
14870file_list_spec \
14871variables_saved_for_relink \
14872libname_spec \
14873library_names_spec \
14874soname_spec \
14875finish_eval \
14876old_striplib \
14877striplib; do
14878    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14879    *[\\\\\\\`\\"\\\$]*)
14880      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14881      ;;
14882    *)
14883      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14884      ;;
14885    esac
14886done
14887
14888# Double-quote double-evaled strings.
14889for var in reload_cmds \
14890old_postinstall_cmds \
14891old_postuninstall_cmds \
14892old_archive_cmds \
14893extract_expsyms_cmds \
14894old_archive_from_new_cmds \
14895old_archive_from_expsyms_cmds \
14896archive_cmds \
14897archive_expsym_cmds \
14898module_cmds \
14899module_expsym_cmds \
14900export_symbols_cmds \
14901prelink_cmds \
14902postinstall_cmds \
14903postuninstall_cmds \
14904finish_cmds \
14905sys_lib_search_path_spec \
14906sys_lib_dlsearch_path_spec; do
14907    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14908    *[\\\\\\\`\\"\\\$]*)
14909      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14910      ;;
14911    *)
14912      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14913      ;;
14914    esac
14915done
14916
14917# Fix-up fallback echo if it was mangled by the above quoting rules.
14918case \$lt_ECHO in
14919*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14920  ;;
14921esac
14922
14923ac_aux_dir='$ac_aux_dir'
14924xsi_shell='$xsi_shell'
14925lt_shell_append='$lt_shell_append'
14926
14927# See if we are running on zsh, and set the options which allow our
14928# commands through without removal of \ escapes INIT.
14929if test -n "\${ZSH_VERSION+set}" ; then
14930   setopt NO_GLOB_SUBST
14931fi
14932
14933
14934    PACKAGE='$PACKAGE'
14935    VERSION='$VERSION'
14936    TIMESTAMP='$TIMESTAMP'
14937    RM='$RM'
14938    ofile='$ofile'
14939
14940
14941
14942
14943_ACEOF
14944
14945cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14946
14947# Handling of arguments.
14948for ac_config_target in $ac_config_targets
14949do
14950  case $ac_config_target in
14951    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14952    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14953    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14954    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
14955    "mparam.h") CONFIG_FILES="$CONFIG_FILES mparam.h:mparam_h.in" ;;
14956
14957  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
14958  esac
14959done
14960
14961
14962# If the user did not use the arguments to specify the items to instantiate,
14963# then the envvar interface is used.  Set only those that are not.
14964# We use the long form for the default assignment because of an extremely
14965# bizarre bug on SunOS 4.1.3.
14966if $ac_need_defaults; then
14967  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14968  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14969fi
14970
14971# Have a temporary directory for convenience.  Make it in the build tree
14972# simply because there is no reason against having it here, and in addition,
14973# creating and moving files from /tmp can sometimes cause problems.
14974# Hook for its removal unless debugging.
14975# Note that there is a small window in which the directory will not be cleaned:
14976# after its creation but before its name has been assigned to `$tmp'.
14977$debug ||
14978{
14979  tmp=
14980  trap 'exit_status=$?
14981  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14982' 0
14983  trap 'as_fn_exit 1' 1 2 13 15
14984}
14985# Create a (secure) tmp directory for tmp files.
14986
14987{
14988  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14989  test -n "$tmp" && test -d "$tmp"
14990}  ||
14991{
14992  tmp=./conf$$-$RANDOM
14993  (umask 077 && mkdir "$tmp")
14994} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14995
14996# Set up the scripts for CONFIG_FILES section.
14997# No need to generate them if there are no CONFIG_FILES.
14998# This happens for instance with `./config.status config.h'.
14999if test -n "$CONFIG_FILES"; then
15000
15001
15002ac_cr=`echo X | tr X '\015'`
15003# On cygwin, bash can eat \r inside `` if the user requested igncr.
15004# But we know of no other shell where ac_cr would be empty at this
15005# point, so we can use a bashism as a fallback.
15006if test "x$ac_cr" = x; then
15007  eval ac_cr=\$\'\\r\'
15008fi
15009ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15010if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15011  ac_cs_awk_cr='\\r'
15012else
15013  ac_cs_awk_cr=$ac_cr
15014fi
15015
15016echo 'BEGIN {' >"$tmp/subs1.awk" &&
15017_ACEOF
15018
15019
15020{
15021  echo "cat >conf$$subs.awk <<_ACEOF" &&
15022  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15023  echo "_ACEOF"
15024} >conf$$subs.sh ||
15025  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15026ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15027ac_delim='%!_!# '
15028for ac_last_try in false false false false false :; do
15029  . ./conf$$subs.sh ||
15030    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15031
15032  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15033  if test $ac_delim_n = $ac_delim_num; then
15034    break
15035  elif $ac_last_try; then
15036    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15037  else
15038    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15039  fi
15040done
15041rm -f conf$$subs.sh
15042
15043cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15044cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15045_ACEOF
15046sed -n '
15047h
15048s/^/S["/; s/!.*/"]=/
15049p
15050g
15051s/^[^!]*!//
15052:repl
15053t repl
15054s/'"$ac_delim"'$//
15055t delim
15056:nl
15057h
15058s/\(.\{148\}\)..*/\1/
15059t more1
15060s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15061p
15062n
15063b repl
15064:more1
15065s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15066p
15067g
15068s/.\{148\}//
15069t nl
15070:delim
15071h
15072s/\(.\{148\}\)..*/\1/
15073t more2
15074s/["\\]/\\&/g; s/^/"/; s/$/"/
15075p
15076b
15077:more2
15078s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15079p
15080g
15081s/.\{148\}//
15082t delim
15083' <conf$$subs.awk | sed '
15084/^[^""]/{
15085  N
15086  s/\n//
15087}
15088' >>$CONFIG_STATUS || ac_write_fail=1
15089rm -f conf$$subs.awk
15090cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15091_ACAWK
15092cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15093  for (key in S) S_is_set[key] = 1
15094  FS = ""
15095
15096}
15097{
15098  line = $ 0
15099  nfields = split(line, field, "@")
15100  substed = 0
15101  len = length(field[1])
15102  for (i = 2; i < nfields; i++) {
15103    key = field[i]
15104    keylen = length(key)
15105    if (S_is_set[key]) {
15106      value = S[key]
15107      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15108      len += length(value) + length(field[++i])
15109      substed = 1
15110    } else
15111      len += 1 + keylen
15112  }
15113
15114  print line
15115}
15116
15117_ACAWK
15118_ACEOF
15119cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15120if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15121  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15122else
15123  cat
15124fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15125  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15126_ACEOF
15127
15128# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15129# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15130# trailing colons and then remove the whole line if VPATH becomes empty
15131# (actually we leave an empty line to preserve line numbers).
15132if test "x$srcdir" = x.; then
15133  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
15134h
15135s///
15136s/^/:/
15137s/[	 ]*$/:/
15138s/:\$(srcdir):/:/g
15139s/:\${srcdir}:/:/g
15140s/:@srcdir@:/:/g
15141s/^:*//
15142s/:*$//
15143x
15144s/\(=[	 ]*\).*/\1/
15145G
15146s/\n//
15147s/^[^=]*=[	 ]*$//
15148}'
15149fi
15150
15151cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15152fi # test -n "$CONFIG_FILES"
15153
15154
15155eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
15156shift
15157for ac_tag
15158do
15159  case $ac_tag in
15160  :[FHLC]) ac_mode=$ac_tag; continue;;
15161  esac
15162  case $ac_mode$ac_tag in
15163  :[FHL]*:*);;
15164  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
15165  :[FH]-) ac_tag=-:-;;
15166  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15167  esac
15168  ac_save_IFS=$IFS
15169  IFS=:
15170  set x $ac_tag
15171  IFS=$ac_save_IFS
15172  shift
15173  ac_file=$1
15174  shift
15175
15176  case $ac_mode in
15177  :L) ac_source=$1;;
15178  :[FH])
15179    ac_file_inputs=
15180    for ac_f
15181    do
15182      case $ac_f in
15183      -) ac_f="$tmp/stdin";;
15184      *) # Look for the file first in the build tree, then in the source tree
15185	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
15186	 # because $ac_f cannot contain `:'.
15187	 test -f "$ac_f" ||
15188	   case $ac_f in
15189	   [\\/$]*) false;;
15190	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15191	   esac ||
15192	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
15193      esac
15194      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15195      as_fn_append ac_file_inputs " '$ac_f'"
15196    done
15197
15198    # Let's still pretend it is `configure' which instantiates (i.e., don't
15199    # use $as_me), people would be surprised to read:
15200    #    /* config.h.  Generated by config.status.  */
15201    configure_input='Generated from '`
15202	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15203	`' by configure.'
15204    if test x"$ac_file" != x-; then
15205      configure_input="$ac_file.  $configure_input"
15206      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15207$as_echo "$as_me: creating $ac_file" >&6;}
15208    fi
15209    # Neutralize special characters interpreted by sed in replacement strings.
15210    case $configure_input in #(
15211    *\&* | *\|* | *\\* )
15212       ac_sed_conf_input=`$as_echo "$configure_input" |
15213       sed 's/[\\\\&|]/\\\\&/g'`;; #(
15214    *) ac_sed_conf_input=$configure_input;;
15215    esac
15216
15217    case $ac_tag in
15218    *:-:* | *:-) cat >"$tmp/stdin" \
15219      || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
15220    esac
15221    ;;
15222  esac
15223
15224  ac_dir=`$as_dirname -- "$ac_file" ||
15225$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15226	 X"$ac_file" : 'X\(//\)[^/]' \| \
15227	 X"$ac_file" : 'X\(//\)$' \| \
15228	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15229$as_echo X"$ac_file" |
15230    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15231	    s//\1/
15232	    q
15233	  }
15234	  /^X\(\/\/\)[^/].*/{
15235	    s//\1/
15236	    q
15237	  }
15238	  /^X\(\/\/\)$/{
15239	    s//\1/
15240	    q
15241	  }
15242	  /^X\(\/\).*/{
15243	    s//\1/
15244	    q
15245	  }
15246	  s/.*/./; q'`
15247  as_dir="$ac_dir"; as_fn_mkdir_p
15248  ac_builddir=.
15249
15250case "$ac_dir" in
15251.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15252*)
15253  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15254  # A ".." for each directory in $ac_dir_suffix.
15255  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15256  case $ac_top_builddir_sub in
15257  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15258  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15259  esac ;;
15260esac
15261ac_abs_top_builddir=$ac_pwd
15262ac_abs_builddir=$ac_pwd$ac_dir_suffix
15263# for backward compatibility:
15264ac_top_builddir=$ac_top_build_prefix
15265
15266case $srcdir in
15267  .)  # We are building in place.
15268    ac_srcdir=.
15269    ac_top_srcdir=$ac_top_builddir_sub
15270    ac_abs_top_srcdir=$ac_pwd ;;
15271  [\\/]* | ?:[\\/]* )  # Absolute name.
15272    ac_srcdir=$srcdir$ac_dir_suffix;
15273    ac_top_srcdir=$srcdir
15274    ac_abs_top_srcdir=$srcdir ;;
15275  *) # Relative name.
15276    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15277    ac_top_srcdir=$ac_top_build_prefix$srcdir
15278    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15279esac
15280ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15281
15282
15283  case $ac_mode in
15284  :F)
15285  #
15286  # CONFIG_FILE
15287  #
15288
15289  case $INSTALL in
15290  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15291  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15292  esac
15293  ac_MKDIR_P=$MKDIR_P
15294  case $MKDIR_P in
15295  [\\/$]* | ?:[\\/]* ) ;;
15296  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15297  esac
15298_ACEOF
15299
15300cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15301# If the template does not know about datarootdir, expand it.
15302# FIXME: This hack should be removed a few years after 2.60.
15303ac_datarootdir_hack=; ac_datarootdir_seen=
15304ac_sed_dataroot='
15305/datarootdir/ {
15306  p
15307  q
15308}
15309/@datadir@/p
15310/@docdir@/p
15311/@infodir@/p
15312/@localedir@/p
15313/@mandir@/p'
15314case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15315*datarootdir*) ac_datarootdir_seen=yes;;
15316*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15317  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15318$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15319_ACEOF
15320cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15321  ac_datarootdir_hack='
15322  s&@datadir@&$datadir&g
15323  s&@docdir@&$docdir&g
15324  s&@infodir@&$infodir&g
15325  s&@localedir@&$localedir&g
15326  s&@mandir@&$mandir&g
15327  s&\\\${datarootdir}&$datarootdir&g' ;;
15328esac
15329_ACEOF
15330
15331# Neutralize VPATH when `$srcdir' = `.'.
15332# Shell code in configure.ac might set extrasub.
15333# FIXME: do we really want to maintain this feature?
15334cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15335ac_sed_extra="$ac_vpsub
15336$extrasub
15337_ACEOF
15338cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15339:t
15340/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15341s|@configure_input@|$ac_sed_conf_input|;t t
15342s&@top_builddir@&$ac_top_builddir_sub&;t t
15343s&@top_build_prefix@&$ac_top_build_prefix&;t t
15344s&@srcdir@&$ac_srcdir&;t t
15345s&@abs_srcdir@&$ac_abs_srcdir&;t t
15346s&@top_srcdir@&$ac_top_srcdir&;t t
15347s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15348s&@builddir@&$ac_builddir&;t t
15349s&@abs_builddir@&$ac_abs_builddir&;t t
15350s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15351s&@INSTALL@&$ac_INSTALL&;t t
15352s&@MKDIR_P@&$ac_MKDIR_P&;t t
15353$ac_datarootdir_hack
15354"
15355eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15356  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15357
15358test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15359  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15360  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15361  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15362which seems to be undefined.  Please make sure it is defined" >&5
15363$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15364which seems to be undefined.  Please make sure it is defined" >&2;}
15365
15366  rm -f "$tmp/stdin"
15367  case $ac_file in
15368  -) cat "$tmp/out" && rm -f "$tmp/out";;
15369  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15370  esac \
15371  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15372 ;;
15373
15374
15375  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15376$as_echo "$as_me: executing $ac_file commands" >&6;}
15377 ;;
15378  esac
15379
15380
15381  case $ac_file$ac_mode in
15382    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15383  # Autoconf 2.62 quotes --file arguments for eval, but not when files
15384  # are listed without --file.  Let's play safe and only enable the eval
15385  # if we detect the quoting.
15386  case $CONFIG_FILES in
15387  *\'*) eval set x "$CONFIG_FILES" ;;
15388  *)   set x $CONFIG_FILES ;;
15389  esac
15390  shift
15391  for mf
15392  do
15393    # Strip MF so we end up with the name of the file.
15394    mf=`echo "$mf" | sed -e 's/:.*$//'`
15395    # Check whether this is an Automake generated Makefile or not.
15396    # We used to match only the files named `Makefile.in', but
15397    # some people rename them; so instead we look at the file content.
15398    # Grep'ing the first line is not enough: some people post-process
15399    # each Makefile.in and add a new line on top of each file to say so.
15400    # Grep'ing the whole file is not good either: AIX grep has a line
15401    # limit of 2048, but all sed's we know have understand at least 4000.
15402    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15403      dirpart=`$as_dirname -- "$mf" ||
15404$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15405	 X"$mf" : 'X\(//\)[^/]' \| \
15406	 X"$mf" : 'X\(//\)$' \| \
15407	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15408$as_echo X"$mf" |
15409    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15410	    s//\1/
15411	    q
15412	  }
15413	  /^X\(\/\/\)[^/].*/{
15414	    s//\1/
15415	    q
15416	  }
15417	  /^X\(\/\/\)$/{
15418	    s//\1/
15419	    q
15420	  }
15421	  /^X\(\/\).*/{
15422	    s//\1/
15423	    q
15424	  }
15425	  s/.*/./; q'`
15426    else
15427      continue
15428    fi
15429    # Extract the definition of DEPDIR, am__include, and am__quote
15430    # from the Makefile without running `make'.
15431    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15432    test -z "$DEPDIR" && continue
15433    am__include=`sed -n 's/^am__include = //p' < "$mf"`
15434    test -z "am__include" && continue
15435    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15436    # When using ansi2knr, U may be empty or an underscore; expand it
15437    U=`sed -n 's/^U = //p' < "$mf"`
15438    # Find all dependency output files, they are included files with
15439    # $(DEPDIR) in their names.  We invoke sed twice because it is the
15440    # simplest approach to changing $(DEPDIR) to its actual value in the
15441    # expansion.
15442    for file in `sed -n "
15443      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15444	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15445      # Make sure the directory exists.
15446      test -f "$dirpart/$file" && continue
15447      fdir=`$as_dirname -- "$file" ||
15448$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15449	 X"$file" : 'X\(//\)[^/]' \| \
15450	 X"$file" : 'X\(//\)$' \| \
15451	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15452$as_echo X"$file" |
15453    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15454	    s//\1/
15455	    q
15456	  }
15457	  /^X\(\/\/\)[^/].*/{
15458	    s//\1/
15459	    q
15460	  }
15461	  /^X\(\/\/\)$/{
15462	    s//\1/
15463	    q
15464	  }
15465	  /^X\(\/\).*/{
15466	    s//\1/
15467	    q
15468	  }
15469	  s/.*/./; q'`
15470      as_dir=$dirpart/$fdir; as_fn_mkdir_p
15471      # echo "creating $dirpart/$file"
15472      echo '# dummy' > "$dirpart/$file"
15473    done
15474  done
15475}
15476 ;;
15477    "libtool":C)
15478
15479    # See if we are running on zsh, and set the options which allow our
15480    # commands through without removal of \ escapes.
15481    if test -n "${ZSH_VERSION+set}" ; then
15482      setopt NO_GLOB_SUBST
15483    fi
15484
15485    cfgfile="${ofile}T"
15486    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15487    $RM "$cfgfile"
15488
15489    cat <<_LT_EOF >> "$cfgfile"
15490#! $SHELL
15491
15492# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15493# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15494# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15495# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15496#
15497#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15498#                 2006, 2007, 2008 Free Software Foundation, Inc.
15499#   Written by Gordon Matzigkeit, 1996
15500#
15501#   This file is part of GNU Libtool.
15502#
15503# GNU Libtool is free software; you can redistribute it and/or
15504# modify it under the terms of the GNU General Public License as
15505# published by the Free Software Foundation; either version 2 of
15506# the License, or (at your option) any later version.
15507#
15508# As a special exception to the GNU General Public License,
15509# if you distribute this file as part of a program or library that
15510# is built using GNU Libtool, you may include this file under the
15511# same distribution terms that you use for the rest of that program.
15512#
15513# GNU Libtool is distributed in the hope that it will be useful,
15514# but WITHOUT ANY WARRANTY; without even the implied warranty of
15515# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15516# GNU General Public License for more details.
15517#
15518# You should have received a copy of the GNU General Public License
15519# along with GNU Libtool; see the file COPYING.  If not, a copy
15520# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15521# obtained by writing to the Free Software Foundation, Inc.,
15522# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15523
15524
15525# The names of the tagged configurations supported by this script.
15526available_tags=""
15527
15528# ### BEGIN LIBTOOL CONFIG
15529
15530# Assembler program.
15531AS=$AS
15532
15533# DLL creation program.
15534DLLTOOL=$DLLTOOL
15535
15536# Object dumper program.
15537OBJDUMP=$OBJDUMP
15538
15539# Which release of libtool.m4 was used?
15540macro_version=$macro_version
15541macro_revision=$macro_revision
15542
15543# Whether or not to build shared libraries.
15544build_libtool_libs=$enable_shared
15545
15546# Whether or not to build static libraries.
15547build_old_libs=$enable_static
15548
15549# What type of objects to build.
15550pic_mode=$pic_mode
15551
15552# Whether or not to optimize for fast installation.
15553fast_install=$enable_fast_install
15554
15555# The host system.
15556host_alias=$host_alias
15557host=$host
15558host_os=$host_os
15559
15560# The build system.
15561build_alias=$build_alias
15562build=$build
15563build_os=$build_os
15564
15565# A sed program that does not truncate output.
15566SED=$lt_SED
15567
15568# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15569Xsed="\$SED -e 1s/^X//"
15570
15571# A grep program that handles long lines.
15572GREP=$lt_GREP
15573
15574# An ERE matcher.
15575EGREP=$lt_EGREP
15576
15577# A literal string matcher.
15578FGREP=$lt_FGREP
15579
15580# A BSD- or MS-compatible name lister.
15581NM=$lt_NM
15582
15583# Whether we need soft or hard links.
15584LN_S=$lt_LN_S
15585
15586# What is the maximum length of a command?
15587max_cmd_len=$max_cmd_len
15588
15589# Object file suffix (normally "o").
15590objext=$ac_objext
15591
15592# Executable file suffix (normally "").
15593exeext=$exeext
15594
15595# whether the shell understands "unset".
15596lt_unset=$lt_unset
15597
15598# turn spaces into newlines.
15599SP2NL=$lt_lt_SP2NL
15600
15601# turn newlines into spaces.
15602NL2SP=$lt_lt_NL2SP
15603
15604# How to create reloadable object files.
15605reload_flag=$lt_reload_flag
15606reload_cmds=$lt_reload_cmds
15607
15608# Method to check whether dependent libraries are shared objects.
15609deplibs_check_method=$lt_deplibs_check_method
15610
15611# Command to use when deplibs_check_method == "file_magic".
15612file_magic_cmd=$lt_file_magic_cmd
15613
15614# The archiver.
15615AR=$lt_AR
15616AR_FLAGS=$lt_AR_FLAGS
15617
15618# A symbol stripping program.
15619STRIP=$lt_STRIP
15620
15621# Commands used to install an old-style archive.
15622RANLIB=$lt_RANLIB
15623old_postinstall_cmds=$lt_old_postinstall_cmds
15624old_postuninstall_cmds=$lt_old_postuninstall_cmds
15625
15626# A C compiler.
15627LTCC=$lt_CC
15628
15629# LTCC compiler flags.
15630LTCFLAGS=$lt_CFLAGS
15631
15632# Take the output of nm and produce a listing of raw symbols and C names.
15633global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15634
15635# Transform the output of nm in a proper C declaration.
15636global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15637
15638# Transform the output of nm in a C name address pair.
15639global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15640
15641# Transform the output of nm in a C name address pair when lib prefix is needed.
15642global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15643
15644# The name of the directory that contains temporary libtool files.
15645objdir=$objdir
15646
15647# Shell to use when invoking shell scripts.
15648SHELL=$lt_SHELL
15649
15650# An echo program that does not interpret backslashes.
15651ECHO=$lt_ECHO
15652
15653# Used to examine libraries when file_magic_cmd begins with "file".
15654MAGIC_CMD=$MAGIC_CMD
15655
15656# Must we lock files when doing compilation?
15657need_locks=$lt_need_locks
15658
15659# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15660DSYMUTIL=$lt_DSYMUTIL
15661
15662# Tool to change global to local symbols on Mac OS X.
15663NMEDIT=$lt_NMEDIT
15664
15665# Tool to manipulate fat objects and archives on Mac OS X.
15666LIPO=$lt_LIPO
15667
15668# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15669OTOOL=$lt_OTOOL
15670
15671# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15672OTOOL64=$lt_OTOOL64
15673
15674# Old archive suffix (normally "a").
15675libext=$libext
15676
15677# Shared library suffix (normally ".so").
15678shrext_cmds=$lt_shrext_cmds
15679
15680# The commands to extract the exported symbol list from a shared archive.
15681extract_expsyms_cmds=$lt_extract_expsyms_cmds
15682
15683# Variables whose values should be saved in libtool wrapper scripts and
15684# restored at link time.
15685variables_saved_for_relink=$lt_variables_saved_for_relink
15686
15687# Do we need the "lib" prefix for modules?
15688need_lib_prefix=$need_lib_prefix
15689
15690# Do we need a version for libraries?
15691need_version=$need_version
15692
15693# Library versioning type.
15694version_type=$version_type
15695
15696# Shared library runtime path variable.
15697runpath_var=$runpath_var
15698
15699# Shared library path variable.
15700shlibpath_var=$shlibpath_var
15701
15702# Is shlibpath searched before the hard-coded library search path?
15703shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15704
15705# Format of library name prefix.
15706libname_spec=$lt_libname_spec
15707
15708# List of archive names.  First name is the real one, the rest are links.
15709# The last name is the one that the linker finds with -lNAME
15710library_names_spec=$lt_library_names_spec
15711
15712# The coded name of the library, if different from the real name.
15713soname_spec=$lt_soname_spec
15714
15715# Command to use after installation of a shared archive.
15716postinstall_cmds=$lt_postinstall_cmds
15717
15718# Command to use after uninstallation of a shared archive.
15719postuninstall_cmds=$lt_postuninstall_cmds
15720
15721# Commands used to finish a libtool library installation in a directory.
15722finish_cmds=$lt_finish_cmds
15723
15724# As "finish_cmds", except a single script fragment to be evaled but
15725# not shown.
15726finish_eval=$lt_finish_eval
15727
15728# Whether we should hardcode library paths into libraries.
15729hardcode_into_libs=$hardcode_into_libs
15730
15731# Compile-time system search path for libraries.
15732sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15733
15734# Run-time system search path for libraries.
15735sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15736
15737# Whether dlopen is supported.
15738dlopen_support=$enable_dlopen
15739
15740# Whether dlopen of programs is supported.
15741dlopen_self=$enable_dlopen_self
15742
15743# Whether dlopen of statically linked programs is supported.
15744dlopen_self_static=$enable_dlopen_self_static
15745
15746# Commands to strip libraries.
15747old_striplib=$lt_old_striplib
15748striplib=$lt_striplib
15749
15750
15751# The linker used to build libraries.
15752LD=$lt_LD
15753
15754# Commands used to build an old-style archive.
15755old_archive_cmds=$lt_old_archive_cmds
15756
15757# A language specific compiler.
15758CC=$lt_compiler
15759
15760# Is the compiler the GNU compiler?
15761with_gcc=$GCC
15762
15763# Compiler flag to turn off builtin functions.
15764no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15765
15766# How to pass a linker flag through the compiler.
15767wl=$lt_lt_prog_compiler_wl
15768
15769# Additional compiler flags for building library objects.
15770pic_flag=$lt_lt_prog_compiler_pic
15771
15772# Compiler flag to prevent dynamic linking.
15773link_static_flag=$lt_lt_prog_compiler_static
15774
15775# Does compiler simultaneously support -c and -o options?
15776compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15777
15778# Whether or not to add -lc for building shared libraries.
15779build_libtool_need_lc=$archive_cmds_need_lc
15780
15781# Whether or not to disallow shared libs when runtime libs are static.
15782allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15783
15784# Compiler flag to allow reflexive dlopens.
15785export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15786
15787# Compiler flag to generate shared objects directly from archives.
15788whole_archive_flag_spec=$lt_whole_archive_flag_spec
15789
15790# Whether the compiler copes with passing no objects directly.
15791compiler_needs_object=$lt_compiler_needs_object
15792
15793# Create an old-style archive from a shared archive.
15794old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15795
15796# Create a temporary old-style archive to link instead of a shared archive.
15797old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15798
15799# Commands used to build a shared archive.
15800archive_cmds=$lt_archive_cmds
15801archive_expsym_cmds=$lt_archive_expsym_cmds
15802
15803# Commands used to build a loadable module if different from building
15804# a shared archive.
15805module_cmds=$lt_module_cmds
15806module_expsym_cmds=$lt_module_expsym_cmds
15807
15808# Whether we are building with GNU ld or not.
15809with_gnu_ld=$lt_with_gnu_ld
15810
15811# Flag that allows shared libraries with undefined symbols to be built.
15812allow_undefined_flag=$lt_allow_undefined_flag
15813
15814# Flag that enforces no undefined symbols.
15815no_undefined_flag=$lt_no_undefined_flag
15816
15817# Flag to hardcode \$libdir into a binary during linking.
15818# This must work even if \$libdir does not exist
15819hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15820
15821# If ld is used when linking, flag to hardcode \$libdir into a binary
15822# during linking.  This must work even if \$libdir does not exist.
15823hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15824
15825# Whether we need a single "-rpath" flag with a separated argument.
15826hardcode_libdir_separator=$lt_hardcode_libdir_separator
15827
15828# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15829# DIR into the resulting binary.
15830hardcode_direct=$hardcode_direct
15831
15832# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15833# DIR into the resulting binary and the resulting library dependency is
15834# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15835# library is relocated.
15836hardcode_direct_absolute=$hardcode_direct_absolute
15837
15838# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15839# into the resulting binary.
15840hardcode_minus_L=$hardcode_minus_L
15841
15842# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15843# into the resulting binary.
15844hardcode_shlibpath_var=$hardcode_shlibpath_var
15845
15846# Set to "yes" if building a shared library automatically hardcodes DIR
15847# into the library and all subsequent libraries and executables linked
15848# against it.
15849hardcode_automatic=$hardcode_automatic
15850
15851# Set to yes if linker adds runtime paths of dependent libraries
15852# to runtime path list.
15853inherit_rpath=$inherit_rpath
15854
15855# Whether libtool must link a program against all its dependency libraries.
15856link_all_deplibs=$link_all_deplibs
15857
15858# Fix the shell variable \$srcfile for the compiler.
15859fix_srcfile_path=$lt_fix_srcfile_path
15860
15861# Set to "yes" if exported symbols are required.
15862always_export_symbols=$always_export_symbols
15863
15864# The commands to list exported symbols.
15865export_symbols_cmds=$lt_export_symbols_cmds
15866
15867# Symbols that should not be listed in the preloaded symbols.
15868exclude_expsyms=$lt_exclude_expsyms
15869
15870# Symbols that must always be exported.
15871include_expsyms=$lt_include_expsyms
15872
15873# Commands necessary for linking programs (against libraries) with templates.
15874prelink_cmds=$lt_prelink_cmds
15875
15876# Specify filename containing input files.
15877file_list_spec=$lt_file_list_spec
15878
15879# How to hardcode a shared library path into an executable.
15880hardcode_action=$hardcode_action
15881
15882# ### END LIBTOOL CONFIG
15883
15884_LT_EOF
15885
15886  case $host_os in
15887  aix3*)
15888    cat <<\_LT_EOF >> "$cfgfile"
15889# AIX sometimes has problems with the GCC collect2 program.  For some
15890# reason, if we set the COLLECT_NAMES environment variable, the problems
15891# vanish in a puff of smoke.
15892if test "X${COLLECT_NAMES+set}" != Xset; then
15893  COLLECT_NAMES=
15894  export COLLECT_NAMES
15895fi
15896_LT_EOF
15897    ;;
15898  esac
15899
15900
15901ltmain="$ac_aux_dir/ltmain.sh"
15902
15903
15904  # We use sed instead of cat because bash on DJGPP gets confused if
15905  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15906  # text mode, it properly converts lines to CR/LF.  This bash problem
15907  # is reportedly fixed, but why not run on old versions too?
15908  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15909    || (rm -f "$cfgfile"; exit 1)
15910
15911  case $xsi_shell in
15912  yes)
15913    cat << \_LT_EOF >> "$cfgfile"
15914
15915# func_dirname file append nondir_replacement
15916# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15917# otherwise set result to NONDIR_REPLACEMENT.
15918func_dirname ()
15919{
15920  case ${1} in
15921    */*) func_dirname_result="${1%/*}${2}" ;;
15922    *  ) func_dirname_result="${3}" ;;
15923  esac
15924}
15925
15926# func_basename file
15927func_basename ()
15928{
15929  func_basename_result="${1##*/}"
15930}
15931
15932# func_dirname_and_basename file append nondir_replacement
15933# perform func_basename and func_dirname in a single function
15934# call:
15935#   dirname:  Compute the dirname of FILE.  If nonempty,
15936#             add APPEND to the result, otherwise set result
15937#             to NONDIR_REPLACEMENT.
15938#             value returned in "$func_dirname_result"
15939#   basename: Compute filename of FILE.
15940#             value retuned in "$func_basename_result"
15941# Implementation must be kept synchronized with func_dirname
15942# and func_basename. For efficiency, we do not delegate to
15943# those functions but instead duplicate the functionality here.
15944func_dirname_and_basename ()
15945{
15946  case ${1} in
15947    */*) func_dirname_result="${1%/*}${2}" ;;
15948    *  ) func_dirname_result="${3}" ;;
15949  esac
15950  func_basename_result="${1##*/}"
15951}
15952
15953# func_stripname prefix suffix name
15954# strip PREFIX and SUFFIX off of NAME.
15955# PREFIX and SUFFIX must not contain globbing or regex special
15956# characters, hashes, percent signs, but SUFFIX may contain a leading
15957# dot (in which case that matches only a dot).
15958func_stripname ()
15959{
15960  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15961  # positional parameters, so assign one to ordinary parameter first.
15962  func_stripname_result=${3}
15963  func_stripname_result=${func_stripname_result#"${1}"}
15964  func_stripname_result=${func_stripname_result%"${2}"}
15965}
15966
15967# func_opt_split
15968func_opt_split ()
15969{
15970  func_opt_split_opt=${1%%=*}
15971  func_opt_split_arg=${1#*=}
15972}
15973
15974# func_lo2o object
15975func_lo2o ()
15976{
15977  case ${1} in
15978    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15979    *)    func_lo2o_result=${1} ;;
15980  esac
15981}
15982
15983# func_xform libobj-or-source
15984func_xform ()
15985{
15986  func_xform_result=${1%.*}.lo
15987}
15988
15989# func_arith arithmetic-term...
15990func_arith ()
15991{
15992  func_arith_result=$(( $* ))
15993}
15994
15995# func_len string
15996# STRING may not start with a hyphen.
15997func_len ()
15998{
15999  func_len_result=${#1}
16000}
16001
16002_LT_EOF
16003    ;;
16004  *) # Bourne compatible functions.
16005    cat << \_LT_EOF >> "$cfgfile"
16006
16007# func_dirname file append nondir_replacement
16008# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16009# otherwise set result to NONDIR_REPLACEMENT.
16010func_dirname ()
16011{
16012  # Extract subdirectory from the argument.
16013  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16014  if test "X$func_dirname_result" = "X${1}"; then
16015    func_dirname_result="${3}"
16016  else
16017    func_dirname_result="$func_dirname_result${2}"
16018  fi
16019}
16020
16021# func_basename file
16022func_basename ()
16023{
16024  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16025}
16026
16027
16028# func_stripname prefix suffix name
16029# strip PREFIX and SUFFIX off of NAME.
16030# PREFIX and SUFFIX must not contain globbing or regex special
16031# characters, hashes, percent signs, but SUFFIX may contain a leading
16032# dot (in which case that matches only a dot).
16033# func_strip_suffix prefix name
16034func_stripname ()
16035{
16036  case ${2} in
16037    .*) func_stripname_result=`$ECHO "X${3}" \
16038           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16039    *)  func_stripname_result=`$ECHO "X${3}" \
16040           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16041  esac
16042}
16043
16044# sed scripts:
16045my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16046my_sed_long_arg='1s/^-[^=]*=//'
16047
16048# func_opt_split
16049func_opt_split ()
16050{
16051  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16052  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16053}
16054
16055# func_lo2o object
16056func_lo2o ()
16057{
16058  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16059}
16060
16061# func_xform libobj-or-source
16062func_xform ()
16063{
16064  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16065}
16066
16067# func_arith arithmetic-term...
16068func_arith ()
16069{
16070  func_arith_result=`expr "$@"`
16071}
16072
16073# func_len string
16074# STRING may not start with a hyphen.
16075func_len ()
16076{
16077  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16078}
16079
16080_LT_EOF
16081esac
16082
16083case $lt_shell_append in
16084  yes)
16085    cat << \_LT_EOF >> "$cfgfile"
16086
16087# func_append var value
16088# Append VALUE to the end of shell variable VAR.
16089func_append ()
16090{
16091  eval "$1+=\$2"
16092}
16093_LT_EOF
16094    ;;
16095  *)
16096    cat << \_LT_EOF >> "$cfgfile"
16097
16098# func_append var value
16099# Append VALUE to the end of shell variable VAR.
16100func_append ()
16101{
16102  eval "$1=\$$1\$2"
16103}
16104
16105_LT_EOF
16106    ;;
16107  esac
16108
16109
16110  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16111    || (rm -f "$cfgfile"; exit 1)
16112
16113  mv -f "$cfgfile" "$ofile" ||
16114    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16115  chmod +x "$ofile"
16116
16117 ;;
16118
16119  esac
16120done # for ac_tag
16121
16122
16123as_fn_exit 0
16124_ACEOF
16125ac_clean_files=$ac_clean_files_save
16126
16127test $ac_write_fail = 0 ||
16128  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16129
16130
16131# configure is writing to config.log, and then calls config.status.
16132# config.status does its own redirection, appending to config.log.
16133# Unfortunately, on DOS this fails, as config.log is still kept open
16134# by configure, so config.status won't be able to write to it; its
16135# output is simply discarded.  So we exec the FD to /dev/null,
16136# effectively closing config.log, so it can be properly (re)opened and
16137# appended to by config.status.  When coming back to configure, we
16138# need to make the FD available again.
16139if test "$no_create" != yes; then
16140  ac_cs_success=:
16141  ac_config_status_args=
16142  test "$silent" = yes &&
16143    ac_config_status_args="$ac_config_status_args --quiet"
16144  exec 5>/dev/null
16145  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16146  exec 5>>config.log
16147  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16148  # would make configure fail if this is the last instruction.
16149  $ac_cs_success || as_fn_exit 1
16150fi
16151if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16152  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16153$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16154fi
16155
16156
16157