1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61 for gsl 1.11.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization.  ##
11## --------------------- ##
12
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21  setopt NO_GLOB_SUBST
22else
23  case `(set -o) 2>/dev/null` in
24  *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42  echo "#! /bin/sh" >conf$$.sh
43  echo  "exit 0"   >>conf$$.sh
44  chmod +x conf$$.sh
45  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46    PATH_SEPARATOR=';'
47  else
48    PATH_SEPARATOR=:
49  fi
50  rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55  as_unset=unset
56else
57  as_unset=false
58fi
59
60
61# IFS
62# We need space, tab and new line, in precisely that order.  Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" ""	$as_nl"
69
70# Find who we are.  Look in the path if we contain no directory separator.
71case $0 in
72  *[\\/]* ) as_myself=$0 ;;
73  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH
75do
76  IFS=$as_save_IFS
77  test -z "$as_dir" && as_dir=.
78  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
80IFS=$as_save_IFS
81
82     ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87  as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91  { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106  LC_TELEPHONE LC_TIME
107do
108  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109    eval $as_var=C; export $as_var
110  else
111    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112  fi
113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117   test "X`expr 00001 : '.*\(...\)'`" = X001; then
118  as_expr=expr
119else
120  as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124  as_basename=basename
125else
126  as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133	 X"$0" : 'X\(//\)$' \| \
134	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136    sed '/^.*\/\([^/][^/]*\)\/*$/{
137	    s//\1/
138	    q
139	  }
140	  /^X\/\(\/\/\)$/{
141	    s//\1/
142	    q
143	  }
144	  /^X\/\(\/\).*/{
145	    s//\1/
146	    q
147	  }
148	  s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155  if (eval ":") 2>/dev/null; then
156  as_have_required=yes
157else
158  as_have_required=no
159fi
160
161  if test $as_have_required = yes && 	 (eval ":
162(as_func_return () {
163  (exit \$1)
164}
165as_func_success () {
166  as_func_return 0
167}
168as_func_failure () {
169  as_func_return 1
170}
171as_func_ret_success () {
172  return 0
173}
174as_func_ret_failure () {
175  return 1
176}
177
178exitcode=0
179if as_func_success; then
180  :
181else
182  exitcode=1
183  echo as_func_success failed.
184fi
185
186if as_func_failure; then
187  exitcode=1
188  echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192  :
193else
194  exitcode=1
195  echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199  exitcode=1
200  echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204  :
205else
206  exitcode=1
207  echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213  as_lineno_1=\$LINENO
214  as_lineno_2=\$LINENO
215  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218  :
219else
220  as_candidate_shells=
221    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224  IFS=$as_save_IFS
225  test -z "$as_dir" && as_dir=.
226  case $as_dir in
227	 /*)
228	   for as_base in sh bash ksh sh5; do
229	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230	   done;;
231       esac
232done
233IFS=$as_save_IFS
234
235
236      for as_shell in $as_candidate_shells $SHELL; do
237	 # Try only shells that exist, to save several forks.
238	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239		{ ("$as_shell") 2> /dev/null <<\_ASEOF
240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241  emulate sh
242  NULLCMD=:
243  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244  # is contrary to our usage.  Disable this feature.
245  alias -g '${1+"$@"}'='"$@"'
246  setopt NO_GLOB_SUBST
247else
248  case `(set -o) 2>/dev/null` in
249  *posix*) set -o posix ;;
250esac
251
252fi
253
254
255:
256_ASEOF
257}; then
258  CONFIG_SHELL=$as_shell
259	       as_have_required=yes
260	       if { "$as_shell" 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262  emulate sh
263  NULLCMD=:
264  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265  # is contrary to our usage.  Disable this feature.
266  alias -g '${1+"$@"}'='"$@"'
267  setopt NO_GLOB_SUBST
268else
269  case `(set -o) 2>/dev/null` in
270  *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277(as_func_return () {
278  (exit $1)
279}
280as_func_success () {
281  as_func_return 0
282}
283as_func_failure () {
284  as_func_return 1
285}
286as_func_ret_success () {
287  return 0
288}
289as_func_ret_failure () {
290  return 1
291}
292
293exitcode=0
294if as_func_success; then
295  :
296else
297  exitcode=1
298  echo as_func_success failed.
299fi
300
301if as_func_failure; then
302  exitcode=1
303  echo as_func_failure succeeded.
304fi
305
306if as_func_ret_success; then
307  :
308else
309  exitcode=1
310  echo as_func_ret_success failed.
311fi
312
313if as_func_ret_failure; then
314  exitcode=1
315  echo as_func_ret_failure succeeded.
316fi
317
318if ( set x; as_func_ret_success y && test x = "$1" ); then
319  :
320else
321  exitcode=1
322  echo positional parameters were not saved.
323fi
324
325test $exitcode = 0) || { (exit 1); exit 1; }
326
327(
328  as_lineno_1=$LINENO
329  as_lineno_2=$LINENO
330  test "x$as_lineno_1" != "x$as_lineno_2" &&
331  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333_ASEOF
334}; then
335  break
336fi
337
338fi
339
340      done
341
342      if test "x$CONFIG_SHELL" != x; then
343  for as_var in BASH_ENV ENV
344        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345        done
346        export CONFIG_SHELL
347        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348fi
349
350
351    if test $as_have_required = no; then
352  echo This script requires a shell more modern than all the
353      echo shells that I found on your system.  Please install a
354      echo modern shell, or manually run the script under such a
355      echo shell if you do have one.
356      { (exit 1); exit 1; }
357fi
358
359
360fi
361
362fi
363
364
365
366(eval "as_func_return () {
367  (exit \$1)
368}
369as_func_success () {
370  as_func_return 0
371}
372as_func_failure () {
373  as_func_return 1
374}
375as_func_ret_success () {
376  return 0
377}
378as_func_ret_failure () {
379  return 1
380}
381
382exitcode=0
383if as_func_success; then
384  :
385else
386  exitcode=1
387  echo as_func_success failed.
388fi
389
390if as_func_failure; then
391  exitcode=1
392  echo as_func_failure succeeded.
393fi
394
395if as_func_ret_success; then
396  :
397else
398  exitcode=1
399  echo as_func_ret_success failed.
400fi
401
402if as_func_ret_failure; then
403  exitcode=1
404  echo as_func_ret_failure succeeded.
405fi
406
407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408  :
409else
410  exitcode=1
411  echo positional parameters were not saved.
412fi
413
414test \$exitcode = 0") || {
415  echo No shell found that supports shell functions.
416  echo Please tell autoconf@gnu.org about your system,
417  echo including any error possibly output before this
418  echo message
419}
420
421
422
423  as_lineno_1=$LINENO
424  as_lineno_2=$LINENO
425  test "x$as_lineno_1" != "x$as_lineno_2" &&
426  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429  # uniformly replaced by the line number.  The first 'sed' inserts a
430  # line-number line after each line using $LINENO; the second 'sed'
431  # does the real work.  The second script uses 'N' to pair each
432  # line-number line with the line containing $LINENO, and appends
433  # trailing '-' during substitution so that $LINENO is not a special
434  # case at line end.
435  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436  # scripts with optimization help from Paolo Bonzini.  Blame Lee
437  # E. McMahon (1931-1989) for sed's syntax.  :-)
438  sed -n '
439    p
440    /[$]LINENO/=
441  ' <$as_myself |
442    sed '
443      s/[$]LINENO.*/&-/
444      t lineno
445      b
446      :lineno
447      N
448      :loop
449      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450      t loop
451      s/-\n.*//
452    ' >$as_me.lineno &&
453  chmod +x "$as_me.lineno" ||
454    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455   { (exit 1); exit 1; }; }
456
457  # Don't try to exec as it changes $[0], causing all sort of problems
458  # (the dirname of $[0] is not the place where we might find the
459  # original and so on.  Autoconf is especially sensitive to this).
460  . "./$as_me.lineno"
461  # Exit status is that of the last command.
462  exit
463}
464
465
466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467  as_dirname=dirname
468else
469  as_dirname=false
470fi
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in
474-n*)
475  case `echo 'x\c'` in
476  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
477  *)   ECHO_C='\c';;
478  esac;;
479*)
480  ECHO_N='-n';;
481esac
482
483if expr a : '\(a\)' >/dev/null 2>&1 &&
484   test "X`expr 00001 : '.*\(...\)'`" = X001; then
485  as_expr=expr
486else
487  as_expr=false
488fi
489
490rm -f conf$$ conf$$.exe conf$$.file
491if test -d conf$$.dir; then
492  rm -f conf$$.dir/conf$$.file
493else
494  rm -f conf$$.dir
495  mkdir conf$$.dir
496fi
497echo >conf$$.file
498if ln -s conf$$.file conf$$ 2>/dev/null; then
499  as_ln_s='ln -s'
500  # ... but there are two gotchas:
501  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503  # In both cases, we have to default to `cp -p'.
504  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505    as_ln_s='cp -p'
506elif ln conf$$.file conf$$ 2>/dev/null; then
507  as_ln_s=ln
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=:
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
553# Check that we are running under the correct shell.
554SHELL=${CONFIG_SHELL-/bin/sh}
555
556case X$lt_ECHO in
557X*--fallback-echo)
558  # Remove one level of quotation (which was required for Make).
559  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
560  ;;
561esac
562
563ECHO=${lt_ECHO-echo}
564if test "X$1" = X--no-reexec; then
565  # Discard the --no-reexec flag, and continue.
566  shift
567elif test "X$1" = X--fallback-echo; then
568  # Avoid inline document here, it may be left over
569  :
570elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
571  # Yippee, $ECHO works!
572  :
573else
574  # Restart under the correct shell.
575  exec $SHELL "$0" --no-reexec ${1+"$@"}
576fi
577
578if test "X$1" = X--fallback-echo; then
579  # used as fallback echo
580  shift
581  cat <<_LT_EOF
582$*
583_LT_EOF
584  exit 0
585fi
586
587# The HP-UX ksh and POSIX shell print the target directory to stdout
588# if CDPATH is set.
589(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591if test -z "$lt_ECHO"; then
592  if test "X${echo_test_string+set}" != Xset; then
593    # find a string as large as possible, as long as the shell can cope with it
594    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
597	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
598      then
599        break
600      fi
601    done
602  fi
603
604  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
605     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
606     test "X$echo_testing_string" = "X$echo_test_string"; then
607    :
608  else
609    # The Solaris, AIX, and Digital Unix default echo programs unquote
610    # backslashes.  This makes it impossible to quote backslashes using
611    #   echo "$something" | sed 's/\\/\\\\/g'
612    #
613    # So, first we look for a working echo in the user's PATH.
614
615    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
616    for dir in $PATH /usr/ucb; do
617      IFS="$lt_save_ifs"
618      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
619         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
620         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
621         test "X$echo_testing_string" = "X$echo_test_string"; then
622        ECHO="$dir/echo"
623        break
624      fi
625    done
626    IFS="$lt_save_ifs"
627
628    if test "X$ECHO" = Xecho; then
629      # We didn't find a better echo, so look for alternatives.
630      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
631         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
632         test "X$echo_testing_string" = "X$echo_test_string"; then
633        # This shell has a builtin print -r that does the trick.
634        ECHO='print -r'
635      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
636	   test "X$CONFIG_SHELL" != X/bin/ksh; then
637        # If we have ksh, try running configure again with it.
638        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
639        export ORIGINAL_CONFIG_SHELL
640        CONFIG_SHELL=/bin/ksh
641        export CONFIG_SHELL
642        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
643      else
644        # Try using printf.
645        ECHO='printf %s\n'
646        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
647	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
648	   test "X$echo_testing_string" = "X$echo_test_string"; then
649	  # Cool, printf works
650	  :
651        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
652	     test "X$echo_testing_string" = 'X\t' &&
653	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
654	     test "X$echo_testing_string" = "X$echo_test_string"; then
655	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
656	  export CONFIG_SHELL
657	  SHELL="$CONFIG_SHELL"
658	  export SHELL
659	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
660        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661	     test "X$echo_testing_string" = 'X\t' &&
662	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663	     test "X$echo_testing_string" = "X$echo_test_string"; then
664	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
665        else
666	  # maybe with a smaller string...
667	  prev=:
668
669	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
670	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
671	    then
672	      break
673	    fi
674	    prev="$cmd"
675	  done
676
677	  if test "$prev" != 'sed 50q "$0"'; then
678	    echo_test_string=`eval $prev`
679	    export echo_test_string
680	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
681	  else
682	    # Oops.  We lost completely, so just stick with echo.
683	    ECHO=echo
684	  fi
685        fi
686      fi
687    fi
688  fi
689fi
690
691# Copy echo and quote the copy suitably for passing to libtool from
692# the Makefile, instead of quoting the original, which is used later.
693lt_ECHO=$ECHO
694if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
695   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
696fi
697
698
699
700
701exec 7<&0 </dev/null 6>&1
702
703# Name of the host.
704# hostname on some systems (SVR3.2, 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=
719SHELL=${CONFIG_SHELL-/bin/sh}
720
721# Identity of this package.
722PACKAGE_NAME='gsl'
723PACKAGE_TARNAME='gsl'
724PACKAGE_VERSION='1.11'
725PACKAGE_STRING='gsl 1.11'
726PACKAGE_BUGREPORT=''
727
728ac_unique_file="gsl_math.h"
729# Factoring default headers for most tests.
730ac_includes_default="\
731#include <stdio.h>
732#ifdef HAVE_SYS_TYPES_H
733# include <sys/types.h>
734#endif
735#ifdef HAVE_SYS_STAT_H
736# include <sys/stat.h>
737#endif
738#ifdef STDC_HEADERS
739# include <stdlib.h>
740# include <stddef.h>
741#else
742# ifdef HAVE_STDLIB_H
743#  include <stdlib.h>
744# endif
745#endif
746#ifdef HAVE_STRING_H
747# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
748#  include <memory.h>
749# endif
750# include <string.h>
751#endif
752#ifdef HAVE_STRINGS_H
753# include <strings.h>
754#endif
755#ifdef HAVE_INTTYPES_H
756# include <inttypes.h>
757#endif
758#ifdef HAVE_STDINT_H
759# include <stdint.h>
760#endif
761#ifdef HAVE_UNISTD_H
762# include <unistd.h>
763#endif"
764
765ac_subst_vars='SHELL
766PATH_SEPARATOR
767PACKAGE_NAME
768PACKAGE_TARNAME
769PACKAGE_VERSION
770PACKAGE_STRING
771PACKAGE_BUGREPORT
772exec_prefix
773prefix
774program_transform_name
775bindir
776sbindir
777libexecdir
778datarootdir
779datadir
780sysconfdir
781sharedstatedir
782localstatedir
783includedir
784oldincludedir
785docdir
786infodir
787htmldir
788dvidir
789pdfdir
790psdir
791libdir
792localedir
793mandir
794DEFS
795ECHO_C
796ECHO_N
797ECHO_T
798LIBS
799build_alias
800host_alias
801target_alias
802INSTALL_PROGRAM
803INSTALL_SCRIPT
804INSTALL_DATA
805am__isrc
806CYGPATH_W
807PACKAGE
808VERSION
809ACLOCAL
810AUTOCONF
811AUTOMAKE
812AUTOHEADER
813MAKEINFO
814install_sh
815STRIP
816INSTALL_STRIP_PROGRAM
817mkdir_p
818AWK
819SET_MAKE
820am__leading_dot
821AMTAR
822am__tar
823am__untar
824MAINTAINER_MODE_TRUE
825MAINTAINER_MODE_FALSE
826MAINT
827GSL_LT_VERSION
828GSL_LT_CBLAS_VERSION
829build
830build_cpu
831build_vendor
832build_os
833host
834host_cpu
835host_vendor
836host_os
837CC
838CFLAGS
839LDFLAGS
840CPPFLAGS
841ac_ct_CC
842EXEEXT
843OBJEXT
844CPP
845LN_S
846LIBTOOL
847SED
848GREP
849EGREP
850FGREP
851LD
852DUMPBIN
853ac_ct_DUMPBIN
854NM
855AR
856RANLIB
857lt_ECHO
858DSYMUTIL
859NMEDIT
860GSL_CFLAGS
861GSL_LIBS
862MINGW32_HOST_TRUE
863MINGW32_HOST_FALSE
864LIBOBJS
865HAVE_GNUSPARC_IEEE_INTERFACE
866HAVE_GNUM68K_IEEE_INTERFACE
867HAVE_GNUPPC_IEEE_INTERFACE
868HAVE_GNUX86_IEEE_INTERFACE
869HAVE_SUNOS4_IEEE_INTERFACE
870HAVE_SOLARIS_IEEE_INTERFACE
871HAVE_HPUX11_IEEE_INTERFACE
872HAVE_HPUX_IEEE_INTERFACE
873HAVE_TRU64_IEEE_INTERFACE
874HAVE_IRIX_IEEE_INTERFACE
875HAVE_AIX_IEEE_INTERFACE
876HAVE_FREEBSD_IEEE_INTERFACE
877HAVE_OS2EMX_IEEE_INTERFACE
878HAVE_NETBSD_IEEE_INTERFACE
879HAVE_OPENBSD_IEEE_INTERFACE
880HAVE_DARWIN_IEEE_INTERFACE
881HAVE_DARWIN86_IEEE_INTERFACE
882LTLIBOBJS'
883ac_subst_files=''
884      ac_precious_vars='build_alias
885host_alias
886target_alias
887CC
888CFLAGS
889LDFLAGS
890LIBS
891CPPFLAGS
892CPP'
893
894
895# Initialize some variables set by options.
896ac_init_help=
897ac_init_version=false
898# The variables have the same names as the options, with
899# dashes changed to underlines.
900cache_file=/dev/null
901exec_prefix=NONE
902no_create=
903no_recursion=
904prefix=NONE
905program_prefix=NONE
906program_suffix=NONE
907program_transform_name=s,x,x,
908silent=
909site=
910srcdir=
911verbose=
912x_includes=NONE
913x_libraries=NONE
914
915# Installation directory options.
916# These are left unexpanded so users can "make install exec_prefix=/foo"
917# and all the variables that are supposed to be based on exec_prefix
918# by default will actually change.
919# Use braces instead of parens because sh, perl, etc. also accept them.
920# (The list follows the same order as the GNU Coding Standards.)
921bindir='${exec_prefix}/bin'
922sbindir='${exec_prefix}/sbin'
923libexecdir='${exec_prefix}/libexec'
924datarootdir='${prefix}/share'
925datadir='${datarootdir}'
926sysconfdir='${prefix}/etc'
927sharedstatedir='${prefix}/com'
928localstatedir='${prefix}/var'
929includedir='${prefix}/include'
930oldincludedir='/usr/include'
931docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
932infodir='${datarootdir}/info'
933htmldir='${docdir}'
934dvidir='${docdir}'
935pdfdir='${docdir}'
936psdir='${docdir}'
937libdir='${exec_prefix}/lib'
938localedir='${datarootdir}/locale'
939mandir='${datarootdir}/man'
940
941ac_prev=
942ac_dashdash=
943for ac_option
944do
945  # If the previous option needs an argument, assign it.
946  if test -n "$ac_prev"; then
947    eval $ac_prev=\$ac_option
948    ac_prev=
949    continue
950  fi
951
952  case $ac_option in
953  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
954  *)	ac_optarg=yes ;;
955  esac
956
957  # Accept the important Cygnus configure options, so we can diagnose typos.
958
959  case $ac_dashdash$ac_option in
960  --)
961    ac_dashdash=yes ;;
962
963  -bindir | --bindir | --bindi | --bind | --bin | --bi)
964    ac_prev=bindir ;;
965  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
966    bindir=$ac_optarg ;;
967
968  -build | --build | --buil | --bui | --bu)
969    ac_prev=build_alias ;;
970  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
971    build_alias=$ac_optarg ;;
972
973  -cache-file | --cache-file | --cache-fil | --cache-fi \
974  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
975    ac_prev=cache_file ;;
976  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
977  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
978    cache_file=$ac_optarg ;;
979
980  --config-cache | -C)
981    cache_file=config.cache ;;
982
983  -datadir | --datadir | --datadi | --datad)
984    ac_prev=datadir ;;
985  -datadir=* | --datadir=* | --datadi=* | --datad=*)
986    datadir=$ac_optarg ;;
987
988  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
989  | --dataroo | --dataro | --datar)
990    ac_prev=datarootdir ;;
991  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
992  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
993    datarootdir=$ac_optarg ;;
994
995  -disable-* | --disable-*)
996    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
997    # Reject names that are not valid shell variable names.
998    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
999      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1000   { (exit 1); exit 1; }; }
1001    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1002    eval enable_$ac_feature=no ;;
1003
1004  -docdir | --docdir | --docdi | --doc | --do)
1005    ac_prev=docdir ;;
1006  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1007    docdir=$ac_optarg ;;
1008
1009  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1010    ac_prev=dvidir ;;
1011  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1012    dvidir=$ac_optarg ;;
1013
1014  -enable-* | --enable-*)
1015    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1016    # Reject names that are not valid shell variable names.
1017    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1018      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1019   { (exit 1); exit 1; }; }
1020    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1021    eval enable_$ac_feature=\$ac_optarg ;;
1022
1023  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1024  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1025  | --exec | --exe | --ex)
1026    ac_prev=exec_prefix ;;
1027  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1028  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1029  | --exec=* | --exe=* | --ex=*)
1030    exec_prefix=$ac_optarg ;;
1031
1032  -gas | --gas | --ga | --g)
1033    # Obsolete; use --with-gas.
1034    with_gas=yes ;;
1035
1036  -help | --help | --hel | --he | -h)
1037    ac_init_help=long ;;
1038  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1039    ac_init_help=recursive ;;
1040  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1041    ac_init_help=short ;;
1042
1043  -host | --host | --hos | --ho)
1044    ac_prev=host_alias ;;
1045  -host=* | --host=* | --hos=* | --ho=*)
1046    host_alias=$ac_optarg ;;
1047
1048  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1049    ac_prev=htmldir ;;
1050  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1051  | --ht=*)
1052    htmldir=$ac_optarg ;;
1053
1054  -includedir | --includedir | --includedi | --included | --include \
1055  | --includ | --inclu | --incl | --inc)
1056    ac_prev=includedir ;;
1057  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1058  | --includ=* | --inclu=* | --incl=* | --inc=*)
1059    includedir=$ac_optarg ;;
1060
1061  -infodir | --infodir | --infodi | --infod | --info | --inf)
1062    ac_prev=infodir ;;
1063  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1064    infodir=$ac_optarg ;;
1065
1066  -libdir | --libdir | --libdi | --libd)
1067    ac_prev=libdir ;;
1068  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1069    libdir=$ac_optarg ;;
1070
1071  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1072  | --libexe | --libex | --libe)
1073    ac_prev=libexecdir ;;
1074  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1075  | --libexe=* | --libex=* | --libe=*)
1076    libexecdir=$ac_optarg ;;
1077
1078  -localedir | --localedir | --localedi | --localed | --locale)
1079    ac_prev=localedir ;;
1080  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1081    localedir=$ac_optarg ;;
1082
1083  -localstatedir | --localstatedir | --localstatedi | --localstated \
1084  | --localstate | --localstat | --localsta | --localst | --locals)
1085    ac_prev=localstatedir ;;
1086  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1087  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1088    localstatedir=$ac_optarg ;;
1089
1090  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1091    ac_prev=mandir ;;
1092  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1093    mandir=$ac_optarg ;;
1094
1095  -nfp | --nfp | --nf)
1096    # Obsolete; use --without-fp.
1097    with_fp=no ;;
1098
1099  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1100  | --no-cr | --no-c | -n)
1101    no_create=yes ;;
1102
1103  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1104  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1105    no_recursion=yes ;;
1106
1107  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1108  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1109  | --oldin | --oldi | --old | --ol | --o)
1110    ac_prev=oldincludedir ;;
1111  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1112  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1113  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1114    oldincludedir=$ac_optarg ;;
1115
1116  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1117    ac_prev=prefix ;;
1118  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1119    prefix=$ac_optarg ;;
1120
1121  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1122  | --program-pre | --program-pr | --program-p)
1123    ac_prev=program_prefix ;;
1124  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1125  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1126    program_prefix=$ac_optarg ;;
1127
1128  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1129  | --program-suf | --program-su | --program-s)
1130    ac_prev=program_suffix ;;
1131  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1132  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1133    program_suffix=$ac_optarg ;;
1134
1135  -program-transform-name | --program-transform-name \
1136  | --program-transform-nam | --program-transform-na \
1137  | --program-transform-n | --program-transform- \
1138  | --program-transform | --program-transfor \
1139  | --program-transfo | --program-transf \
1140  | --program-trans | --program-tran \
1141  | --progr-tra | --program-tr | --program-t)
1142    ac_prev=program_transform_name ;;
1143  -program-transform-name=* | --program-transform-name=* \
1144  | --program-transform-nam=* | --program-transform-na=* \
1145  | --program-transform-n=* | --program-transform-=* \
1146  | --program-transform=* | --program-transfor=* \
1147  | --program-transfo=* | --program-transf=* \
1148  | --program-trans=* | --program-tran=* \
1149  | --progr-tra=* | --program-tr=* | --program-t=*)
1150    program_transform_name=$ac_optarg ;;
1151
1152  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1153    ac_prev=pdfdir ;;
1154  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1155    pdfdir=$ac_optarg ;;
1156
1157  -psdir | --psdir | --psdi | --psd | --ps)
1158    ac_prev=psdir ;;
1159  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1160    psdir=$ac_optarg ;;
1161
1162  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1163  | -silent | --silent | --silen | --sile | --sil)
1164    silent=yes ;;
1165
1166  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1167    ac_prev=sbindir ;;
1168  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1169  | --sbi=* | --sb=*)
1170    sbindir=$ac_optarg ;;
1171
1172  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1173  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1174  | --sharedst | --shareds | --shared | --share | --shar \
1175  | --sha | --sh)
1176    ac_prev=sharedstatedir ;;
1177  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1178  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1179  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1180  | --sha=* | --sh=*)
1181    sharedstatedir=$ac_optarg ;;
1182
1183  -site | --site | --sit)
1184    ac_prev=site ;;
1185  -site=* | --site=* | --sit=*)
1186    site=$ac_optarg ;;
1187
1188  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1189    ac_prev=srcdir ;;
1190  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1191    srcdir=$ac_optarg ;;
1192
1193  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1194  | --syscon | --sysco | --sysc | --sys | --sy)
1195    ac_prev=sysconfdir ;;
1196  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1197  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1198    sysconfdir=$ac_optarg ;;
1199
1200  -target | --target | --targe | --targ | --tar | --ta | --t)
1201    ac_prev=target_alias ;;
1202  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1203    target_alias=$ac_optarg ;;
1204
1205  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1206    verbose=yes ;;
1207
1208  -version | --version | --versio | --versi | --vers | -V)
1209    ac_init_version=: ;;
1210
1211  -with-* | --with-*)
1212    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1213    # Reject names that are not valid shell variable names.
1214    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1215      { echo "$as_me: error: invalid package name: $ac_package" >&2
1216   { (exit 1); exit 1; }; }
1217    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1218    eval with_$ac_package=\$ac_optarg ;;
1219
1220  -without-* | --without-*)
1221    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1222    # Reject names that are not valid shell variable names.
1223    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1224      { echo "$as_me: error: invalid package name: $ac_package" >&2
1225   { (exit 1); exit 1; }; }
1226    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1227    eval with_$ac_package=no ;;
1228
1229  --x)
1230    # Obsolete; use --with-x.
1231    with_x=yes ;;
1232
1233  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1234  | --x-incl | --x-inc | --x-in | --x-i)
1235    ac_prev=x_includes ;;
1236  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1237  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1238    x_includes=$ac_optarg ;;
1239
1240  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1241  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1242    ac_prev=x_libraries ;;
1243  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1244  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1245    x_libraries=$ac_optarg ;;
1246
1247  -*) { echo "$as_me: error: unrecognized option: $ac_option
1248Try \`$0 --help' for more information." >&2
1249   { (exit 1); exit 1; }; }
1250    ;;
1251
1252  *=*)
1253    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1254    # Reject names that are not valid shell variable names.
1255    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1256      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1257   { (exit 1); exit 1; }; }
1258    eval $ac_envvar=\$ac_optarg
1259    export $ac_envvar ;;
1260
1261  *)
1262    # FIXME: should be removed in autoconf 3.0.
1263    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1264    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1265      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1266    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1267    ;;
1268
1269  esac
1270done
1271
1272if test -n "$ac_prev"; then
1273  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1274  { echo "$as_me: error: missing argument to $ac_option" >&2
1275   { (exit 1); exit 1; }; }
1276fi
1277
1278# Be sure to have absolute directory names.
1279for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1280		datadir sysconfdir sharedstatedir localstatedir includedir \
1281		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1282		libdir localedir mandir
1283do
1284  eval ac_val=\$$ac_var
1285  case $ac_val in
1286    [\\/$]* | ?:[\\/]* )  continue;;
1287    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1288  esac
1289  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1290   { (exit 1); exit 1; }; }
1291done
1292
1293# There might be people who depend on the old broken behavior: `$host'
1294# used to hold the argument of --host etc.
1295# FIXME: To remove some day.
1296build=$build_alias
1297host=$host_alias
1298target=$target_alias
1299
1300# FIXME: To remove some day.
1301if test "x$host_alias" != x; then
1302  if test "x$build_alias" = x; then
1303    cross_compiling=maybe
1304    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1305    If a cross compiler is detected then cross compile mode will be used." >&2
1306  elif test "x$build_alias" != "x$host_alias"; then
1307    cross_compiling=yes
1308  fi
1309fi
1310
1311ac_tool_prefix=
1312test -n "$host_alias" && ac_tool_prefix=$host_alias-
1313
1314test "$silent" = yes && exec 6>/dev/null
1315
1316
1317ac_pwd=`pwd` && test -n "$ac_pwd" &&
1318ac_ls_di=`ls -di .` &&
1319ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1320  { echo "$as_me: error: Working directory cannot be determined" >&2
1321   { (exit 1); exit 1; }; }
1322test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1323  { echo "$as_me: error: pwd does not report name of working directory" >&2
1324   { (exit 1); exit 1; }; }
1325
1326
1327# Find the source files, if location was not specified.
1328if test -z "$srcdir"; then
1329  ac_srcdir_defaulted=yes
1330  # Try the directory containing this script, then the parent directory.
1331  ac_confdir=`$as_dirname -- "$0" ||
1332$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1333	 X"$0" : 'X\(//\)[^/]' \| \
1334	 X"$0" : 'X\(//\)$' \| \
1335	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1336echo X"$0" |
1337    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1338	    s//\1/
1339	    q
1340	  }
1341	  /^X\(\/\/\)[^/].*/{
1342	    s//\1/
1343	    q
1344	  }
1345	  /^X\(\/\/\)$/{
1346	    s//\1/
1347	    q
1348	  }
1349	  /^X\(\/\).*/{
1350	    s//\1/
1351	    q
1352	  }
1353	  s/.*/./; q'`
1354  srcdir=$ac_confdir
1355  if test ! -r "$srcdir/$ac_unique_file"; then
1356    srcdir=..
1357  fi
1358else
1359  ac_srcdir_defaulted=no
1360fi
1361if test ! -r "$srcdir/$ac_unique_file"; then
1362  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1363  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1364   { (exit 1); exit 1; }; }
1365fi
1366ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1367ac_abs_confdir=`(
1368	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1369   { (exit 1); exit 1; }; }
1370	pwd)`
1371# When building in place, set srcdir=.
1372if test "$ac_abs_confdir" = "$ac_pwd"; then
1373  srcdir=.
1374fi
1375# Remove unnecessary trailing slashes from srcdir.
1376# Double slashes in file names in object file debugging info
1377# mess up M-x gdb in Emacs.
1378case $srcdir in
1379*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1380esac
1381for ac_var in $ac_precious_vars; do
1382  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1383  eval ac_env_${ac_var}_value=\$${ac_var}
1384  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1385  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1386done
1387
1388#
1389# Report the --help message.
1390#
1391if test "$ac_init_help" = "long"; then
1392  # Omit some internal or obsolete options to make the list less imposing.
1393  # This message is too long to be a string in the A/UX 3.1 sh.
1394  cat <<_ACEOF
1395\`configure' configures gsl 1.11 to adapt to many kinds of systems.
1396
1397Usage: $0 [OPTION]... [VAR=VALUE]...
1398
1399To assign environment variables (e.g., CC, CFLAGS...), specify them as
1400VAR=VALUE.  See below for descriptions of some of the useful variables.
1401
1402Defaults for the options are specified in brackets.
1403
1404Configuration:
1405  -h, --help              display this help and exit
1406      --help=short        display options specific to this package
1407      --help=recursive    display the short help of all the included packages
1408  -V, --version           display version information and exit
1409  -q, --quiet, --silent   do not print \`checking...' messages
1410      --cache-file=FILE   cache test results in FILE [disabled]
1411  -C, --config-cache      alias for \`--cache-file=config.cache'
1412  -n, --no-create         do not create output files
1413      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1414
1415Installation directories:
1416  --prefix=PREFIX         install architecture-independent files in PREFIX
1417			  [$ac_default_prefix]
1418  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1419			  [PREFIX]
1420
1421By default, \`make install' will install all the files in
1422\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1423an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1424for instance \`--prefix=\$HOME'.
1425
1426For better control, use the options below.
1427
1428Fine tuning of the installation directories:
1429  --bindir=DIR           user executables [EPREFIX/bin]
1430  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1431  --libexecdir=DIR       program executables [EPREFIX/libexec]
1432  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1433  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1434  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1435  --libdir=DIR           object code libraries [EPREFIX/lib]
1436  --includedir=DIR       C header files [PREFIX/include]
1437  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1438  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1439  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1440  --infodir=DIR          info documentation [DATAROOTDIR/info]
1441  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1442  --mandir=DIR           man documentation [DATAROOTDIR/man]
1443  --docdir=DIR           documentation root [DATAROOTDIR/doc/gsl]
1444  --htmldir=DIR          html documentation [DOCDIR]
1445  --dvidir=DIR           dvi documentation [DOCDIR]
1446  --pdfdir=DIR           pdf documentation [DOCDIR]
1447  --psdir=DIR            ps documentation [DOCDIR]
1448_ACEOF
1449
1450  cat <<\_ACEOF
1451
1452Program names:
1453  --program-prefix=PREFIX            prepend PREFIX to installed program names
1454  --program-suffix=SUFFIX            append SUFFIX to installed program names
1455  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1456
1457System types:
1458  --build=BUILD     configure for building on BUILD [guessed]
1459  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1460_ACEOF
1461fi
1462
1463if test -n "$ac_init_help"; then
1464  case $ac_init_help in
1465     short | recursive ) echo "Configuration of gsl 1.11:";;
1466   esac
1467  cat <<\_ACEOF
1468
1469Optional Features:
1470  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1471  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1472  --enable-maintainer-mode  enable make rules and dependencies not useful
1473			  (and sometimes confusing) to the casual installer
1474  --enable-shared[=PKGS]  build shared libraries [default=yes]
1475  --enable-static[=PKGS]  build static libraries [default=yes]
1476  --enable-fast-install[=PKGS]
1477                          optimize for fast installation [default=yes]
1478  --disable-libtool-lock  avoid locking (might break parallel builds)
1479
1480Optional Packages:
1481  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1482  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1483  --with-pic              try to use only PIC/non-PIC objects [default=use
1484                          both]
1485  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1486
1487Some influential environment variables:
1488  CC          C compiler command
1489  CFLAGS      C compiler flags
1490  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1491              nonstandard directory <lib dir>
1492  LIBS        libraries to pass to the linker, e.g. -l<library>
1493  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1494              you have headers in a nonstandard directory <include dir>
1495  CPP         C preprocessor
1496
1497Use these variables to override the choices made by `configure' or to help
1498it to find libraries and programs with nonstandard names/locations.
1499
1500_ACEOF
1501ac_status=$?
1502fi
1503
1504if test "$ac_init_help" = "recursive"; then
1505  # If there are subdirs, report their specific --help.
1506  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1507    test -d "$ac_dir" || continue
1508    ac_builddir=.
1509
1510case "$ac_dir" in
1511.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1512*)
1513  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1514  # A ".." for each directory in $ac_dir_suffix.
1515  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1516  case $ac_top_builddir_sub in
1517  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1519  esac ;;
1520esac
1521ac_abs_top_builddir=$ac_pwd
1522ac_abs_builddir=$ac_pwd$ac_dir_suffix
1523# for backward compatibility:
1524ac_top_builddir=$ac_top_build_prefix
1525
1526case $srcdir in
1527  .)  # We are building in place.
1528    ac_srcdir=.
1529    ac_top_srcdir=$ac_top_builddir_sub
1530    ac_abs_top_srcdir=$ac_pwd ;;
1531  [\\/]* | ?:[\\/]* )  # Absolute name.
1532    ac_srcdir=$srcdir$ac_dir_suffix;
1533    ac_top_srcdir=$srcdir
1534    ac_abs_top_srcdir=$srcdir ;;
1535  *) # Relative name.
1536    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1537    ac_top_srcdir=$ac_top_build_prefix$srcdir
1538    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1539esac
1540ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1541
1542    cd "$ac_dir" || { ac_status=$?; continue; }
1543    # Check for guested configure.
1544    if test -f "$ac_srcdir/configure.gnu"; then
1545      echo &&
1546      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1547    elif test -f "$ac_srcdir/configure"; then
1548      echo &&
1549      $SHELL "$ac_srcdir/configure" --help=recursive
1550    else
1551      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1552    fi || ac_status=$?
1553    cd "$ac_pwd" || { ac_status=$?; break; }
1554  done
1555fi
1556
1557test -n "$ac_init_help" && exit $ac_status
1558if $ac_init_version; then
1559  cat <<\_ACEOF
1560gsl configure 1.11
1561generated by GNU Autoconf 2.61
1562
1563Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15642002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1565This configure script is free software; the Free Software Foundation
1566gives unlimited permission to copy, distribute and modify it.
1567_ACEOF
1568  exit
1569fi
1570cat >config.log <<_ACEOF
1571This file contains any messages produced by compilers while
1572running configure, to aid debugging if configure makes a mistake.
1573
1574It was created by gsl $as_me 1.11, which was
1575generated by GNU Autoconf 2.61.  Invocation command line was
1576
1577  $ $0 $@
1578
1579_ACEOF
1580exec 5>>config.log
1581{
1582cat <<_ASUNAME
1583## --------- ##
1584## Platform. ##
1585## --------- ##
1586
1587hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1588uname -m = `(uname -m) 2>/dev/null || echo unknown`
1589uname -r = `(uname -r) 2>/dev/null || echo unknown`
1590uname -s = `(uname -s) 2>/dev/null || echo unknown`
1591uname -v = `(uname -v) 2>/dev/null || echo unknown`
1592
1593/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1594/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1595
1596/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1597/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1598/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1599/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1600/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1601/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1602/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1603
1604_ASUNAME
1605
1606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607for as_dir in $PATH
1608do
1609  IFS=$as_save_IFS
1610  test -z "$as_dir" && as_dir=.
1611  echo "PATH: $as_dir"
1612done
1613IFS=$as_save_IFS
1614
1615} >&5
1616
1617cat >&5 <<_ACEOF
1618
1619
1620## ----------- ##
1621## Core tests. ##
1622## ----------- ##
1623
1624_ACEOF
1625
1626
1627# Keep a trace of the command line.
1628# Strip out --no-create and --no-recursion so they do not pile up.
1629# Strip out --silent because we don't want to record it for future runs.
1630# Also quote any args containing shell meta-characters.
1631# Make two passes to allow for proper duplicate-argument suppression.
1632ac_configure_args=
1633ac_configure_args0=
1634ac_configure_args1=
1635ac_must_keep_next=false
1636for ac_pass in 1 2
1637do
1638  for ac_arg
1639  do
1640    case $ac_arg in
1641    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1642    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1643    | -silent | --silent | --silen | --sile | --sil)
1644      continue ;;
1645    *\'*)
1646      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1647    esac
1648    case $ac_pass in
1649    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1650    2)
1651      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1652      if test $ac_must_keep_next = true; then
1653	ac_must_keep_next=false # Got value, back to normal.
1654      else
1655	case $ac_arg in
1656	  *=* | --config-cache | -C | -disable-* | --disable-* \
1657	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1658	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1659	  | -with-* | --with-* | -without-* | --without-* | --x)
1660	    case "$ac_configure_args0 " in
1661	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1662	    esac
1663	    ;;
1664	  -* ) ac_must_keep_next=true ;;
1665	esac
1666      fi
1667      ac_configure_args="$ac_configure_args '$ac_arg'"
1668      ;;
1669    esac
1670  done
1671done
1672$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1673$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1674
1675# When interrupted or exit'd, cleanup temporary files, and complete
1676# config.log.  We remove comments because anyway the quotes in there
1677# would cause problems or look ugly.
1678# WARNING: Use '\'' to represent an apostrophe within the trap.
1679# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1680trap 'exit_status=$?
1681  # Save into config.log some information that might help in debugging.
1682  {
1683    echo
1684
1685    cat <<\_ASBOX
1686## ---------------- ##
1687## Cache variables. ##
1688## ---------------- ##
1689_ASBOX
1690    echo
1691    # The following way of writing the cache mishandles newlines in values,
1692(
1693  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1694    eval ac_val=\$$ac_var
1695    case $ac_val in #(
1696    *${as_nl}*)
1697      case $ac_var in #(
1698      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1699echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1700      esac
1701      case $ac_var in #(
1702      _ | IFS | as_nl) ;; #(
1703      *) $as_unset $ac_var ;;
1704      esac ;;
1705    esac
1706  done
1707  (set) 2>&1 |
1708    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1709    *${as_nl}ac_space=\ *)
1710      sed -n \
1711	"s/'\''/'\''\\\\'\'''\''/g;
1712	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1713      ;; #(
1714    *)
1715      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1716      ;;
1717    esac |
1718    sort
1719)
1720    echo
1721
1722    cat <<\_ASBOX
1723## ----------------- ##
1724## Output variables. ##
1725## ----------------- ##
1726_ASBOX
1727    echo
1728    for ac_var in $ac_subst_vars
1729    do
1730      eval ac_val=\$$ac_var
1731      case $ac_val in
1732      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1733      esac
1734      echo "$ac_var='\''$ac_val'\''"
1735    done | sort
1736    echo
1737
1738    if test -n "$ac_subst_files"; then
1739      cat <<\_ASBOX
1740## ------------------- ##
1741## File substitutions. ##
1742## ------------------- ##
1743_ASBOX
1744      echo
1745      for ac_var in $ac_subst_files
1746      do
1747	eval ac_val=\$$ac_var
1748	case $ac_val in
1749	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1750	esac
1751	echo "$ac_var='\''$ac_val'\''"
1752      done | sort
1753      echo
1754    fi
1755
1756    if test -s confdefs.h; then
1757      cat <<\_ASBOX
1758## ----------- ##
1759## confdefs.h. ##
1760## ----------- ##
1761_ASBOX
1762      echo
1763      cat confdefs.h
1764      echo
1765    fi
1766    test "$ac_signal" != 0 &&
1767      echo "$as_me: caught signal $ac_signal"
1768    echo "$as_me: exit $exit_status"
1769  } >&5
1770  rm -f core *.core core.conftest.* &&
1771    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1772    exit $exit_status
1773' 0
1774for ac_signal in 1 2 13 15; do
1775  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1776done
1777ac_signal=0
1778
1779# confdefs.h avoids OS command line length limits that DEFS can exceed.
1780rm -f -r conftest* confdefs.h
1781
1782# Predefined preprocessor variables.
1783
1784cat >>confdefs.h <<_ACEOF
1785#define PACKAGE_NAME "$PACKAGE_NAME"
1786_ACEOF
1787
1788
1789cat >>confdefs.h <<_ACEOF
1790#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1791_ACEOF
1792
1793
1794cat >>confdefs.h <<_ACEOF
1795#define PACKAGE_VERSION "$PACKAGE_VERSION"
1796_ACEOF
1797
1798
1799cat >>confdefs.h <<_ACEOF
1800#define PACKAGE_STRING "$PACKAGE_STRING"
1801_ACEOF
1802
1803
1804cat >>confdefs.h <<_ACEOF
1805#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1806_ACEOF
1807
1808
1809# Let the site file select an alternate cache file if it wants to.
1810# Prefer explicitly selected file to automatically selected ones.
1811if test -n "$CONFIG_SITE"; then
1812  set x "$CONFIG_SITE"
1813elif test "x$prefix" != xNONE; then
1814  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1815else
1816  set x "$ac_default_prefix/share/config.site" \
1817	"$ac_default_prefix/etc/config.site"
1818fi
1819shift
1820for ac_site_file
1821do
1822  if test -r "$ac_site_file"; then
1823    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1824echo "$as_me: loading site script $ac_site_file" >&6;}
1825    sed 's/^/| /' "$ac_site_file" >&5
1826    . "$ac_site_file"
1827  fi
1828done
1829
1830if test -r "$cache_file"; then
1831  # Some versions of bash will fail to source /dev/null (special
1832  # files actually), so we avoid doing that.
1833  if test -f "$cache_file"; then
1834    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1835echo "$as_me: loading cache $cache_file" >&6;}
1836    case $cache_file in
1837      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1838      *)                      . "./$cache_file";;
1839    esac
1840  fi
1841else
1842  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1843echo "$as_me: creating cache $cache_file" >&6;}
1844  >$cache_file
1845fi
1846
1847# Check that the precious variables saved in the cache have kept the same
1848# value.
1849ac_cache_corrupted=false
1850for ac_var in $ac_precious_vars; do
1851  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1852  eval ac_new_set=\$ac_env_${ac_var}_set
1853  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1854  eval ac_new_val=\$ac_env_${ac_var}_value
1855  case $ac_old_set,$ac_new_set in
1856    set,)
1857      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1858echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1859      ac_cache_corrupted=: ;;
1860    ,set)
1861      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1862echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1863      ac_cache_corrupted=: ;;
1864    ,);;
1865    *)
1866      if test "x$ac_old_val" != "x$ac_new_val"; then
1867	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1868echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1869	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1870echo "$as_me:   former value:  $ac_old_val" >&2;}
1871	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1872echo "$as_me:   current value: $ac_new_val" >&2;}
1873	ac_cache_corrupted=:
1874      fi;;
1875  esac
1876  # Pass precious variables to config.status.
1877  if test "$ac_new_set" = set; then
1878    case $ac_new_val in
1879    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1880    *) ac_arg=$ac_var=$ac_new_val ;;
1881    esac
1882    case " $ac_configure_args " in
1883      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1884      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1885    esac
1886  fi
1887done
1888if $ac_cache_corrupted; then
1889  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1890echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1891  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1892echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1893   { (exit 1); exit 1; }; }
1894fi
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920ac_ext=c
1921ac_cpp='$CPP $CPPFLAGS'
1922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1924ac_compiler_gnu=$ac_cv_c_compiler_gnu
1925
1926
1927
1928
1929am__api_version='1.10'
1930
1931ac_aux_dir=
1932for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1933  if test -f "$ac_dir/install-sh"; then
1934    ac_aux_dir=$ac_dir
1935    ac_install_sh="$ac_aux_dir/install-sh -c"
1936    break
1937  elif test -f "$ac_dir/install.sh"; then
1938    ac_aux_dir=$ac_dir
1939    ac_install_sh="$ac_aux_dir/install.sh -c"
1940    break
1941  elif test -f "$ac_dir/shtool"; then
1942    ac_aux_dir=$ac_dir
1943    ac_install_sh="$ac_aux_dir/shtool install -c"
1944    break
1945  fi
1946done
1947if test -z "$ac_aux_dir"; then
1948  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1949echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1950   { (exit 1); exit 1; }; }
1951fi
1952
1953# These three variables are undocumented and unsupported,
1954# and are intended to be withdrawn in a future Autoconf release.
1955# They can cause serious problems if a builder's source tree is in a directory
1956# whose full name contains unusual characters.
1957ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1958ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1959ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1960
1961
1962# Find a good install program.  We prefer a C program (faster),
1963# so one script is as good as another.  But avoid the broken or
1964# incompatible versions:
1965# SysV /etc/install, /usr/sbin/install
1966# SunOS /usr/etc/install
1967# IRIX /sbin/install
1968# AIX /bin/install
1969# AmigaOS /C/install, which installs bootblocks on floppy discs
1970# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1971# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1972# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1973# OS/2's system install, which has a completely different semantic
1974# ./install, which can be erroneously created by make from ./install.sh.
1975{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1976echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1977if test -z "$INSTALL"; then
1978if test "${ac_cv_path_install+set}" = set; then
1979  echo $ECHO_N "(cached) $ECHO_C" >&6
1980else
1981  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1982for as_dir in $PATH
1983do
1984  IFS=$as_save_IFS
1985  test -z "$as_dir" && as_dir=.
1986  # Account for people who put trailing slashes in PATH elements.
1987case $as_dir/ in
1988  ./ | .// | /cC/* | \
1989  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1990  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1991  /usr/ucb/* ) ;;
1992  *)
1993    # OSF1 and SCO ODT 3.0 have their own names for install.
1994    # Don't use installbsd from OSF since it installs stuff as root
1995    # by default.
1996    for ac_prog in ginstall scoinst install; do
1997      for ac_exec_ext in '' $ac_executable_extensions; do
1998	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1999	  if test $ac_prog = install &&
2000	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2001	    # AIX install.  It has an incompatible calling convention.
2002	    :
2003	  elif test $ac_prog = install &&
2004	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2005	    # program-specific install script used by HP pwplus--don't use.
2006	    :
2007	  else
2008	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2009	    break 3
2010	  fi
2011	fi
2012      done
2013    done
2014    ;;
2015esac
2016done
2017IFS=$as_save_IFS
2018
2019
2020fi
2021  if test "${ac_cv_path_install+set}" = set; then
2022    INSTALL=$ac_cv_path_install
2023  else
2024    # As a last resort, use the slow shell script.  Don't cache a
2025    # value for INSTALL within a source directory, because that will
2026    # break other packages using the cache if that directory is
2027    # removed, or if the value is a relative name.
2028    INSTALL=$ac_install_sh
2029  fi
2030fi
2031{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2032echo "${ECHO_T}$INSTALL" >&6; }
2033
2034# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2035# It thinks the first close brace ends the variable substitution.
2036test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2037
2038test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2039
2040test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2041
2042{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2043echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2044# Just in case
2045sleep 1
2046echo timestamp > conftest.file
2047# Do `set' in a subshell so we don't clobber the current shell's
2048# arguments.  Must try -L first in case configure is actually a
2049# symlink; some systems play weird games with the mod time of symlinks
2050# (eg FreeBSD returns the mod time of the symlink's containing
2051# directory).
2052if (
2053   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2054   if test "$*" = "X"; then
2055      # -L didn't work.
2056      set X `ls -t $srcdir/configure conftest.file`
2057   fi
2058   rm -f conftest.file
2059   if test "$*" != "X $srcdir/configure conftest.file" \
2060      && test "$*" != "X conftest.file $srcdir/configure"; then
2061
2062      # If neither matched, then we have a broken ls.  This can happen
2063      # if, for instance, CONFIG_SHELL is bash and it inherits a
2064      # broken ls alias from the environment.  This has actually
2065      # happened.  Such a system could not be considered "sane".
2066      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2067alias in your environment" >&5
2068echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2069alias in your environment" >&2;}
2070   { (exit 1); exit 1; }; }
2071   fi
2072
2073   test "$2" = conftest.file
2074   )
2075then
2076   # Ok.
2077   :
2078else
2079   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2080Check your system clock" >&5
2081echo "$as_me: error: newly created file is older than distributed files!
2082Check your system clock" >&2;}
2083   { (exit 1); exit 1; }; }
2084fi
2085{ echo "$as_me:$LINENO: result: yes" >&5
2086echo "${ECHO_T}yes" >&6; }
2087test "$program_prefix" != NONE &&
2088  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2089# Use a double $ so make ignores it.
2090test "$program_suffix" != NONE &&
2091  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2092# Double any \ or $.  echo might interpret backslashes.
2093# By default was `s,x,x', remove it if useless.
2094cat <<\_ACEOF >conftest.sed
2095s/[\\$]/&&/g;s/;s,x,x,$//
2096_ACEOF
2097program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2098rm -f conftest.sed
2099
2100# expand $ac_aux_dir to an absolute path
2101am_aux_dir=`cd $ac_aux_dir && pwd`
2102
2103test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2104# Use eval to expand $SHELL
2105if eval "$MISSING --run true"; then
2106  am_missing_run="$MISSING --run "
2107else
2108  am_missing_run=
2109  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2110echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2111fi
2112
2113{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2114echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2115if test -z "$MKDIR_P"; then
2116  if test "${ac_cv_path_mkdir+set}" = set; then
2117  echo $ECHO_N "(cached) $ECHO_C" >&6
2118else
2119  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2120for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2121do
2122  IFS=$as_save_IFS
2123  test -z "$as_dir" && as_dir=.
2124  for ac_prog in mkdir gmkdir; do
2125	 for ac_exec_ext in '' $ac_executable_extensions; do
2126	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2127	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2128	     'mkdir (GNU coreutils) '* | \
2129	     'mkdir (coreutils) '* | \
2130	     'mkdir (fileutils) '4.1*)
2131	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2132	       break 3;;
2133	   esac
2134	 done
2135       done
2136done
2137IFS=$as_save_IFS
2138
2139fi
2140
2141  if test "${ac_cv_path_mkdir+set}" = set; then
2142    MKDIR_P="$ac_cv_path_mkdir -p"
2143  else
2144    # As a last resort, use the slow shell script.  Don't cache a
2145    # value for MKDIR_P within a source directory, because that will
2146    # break other packages using the cache if that directory is
2147    # removed, or if the value is a relative name.
2148    test -d ./--version && rmdir ./--version
2149    MKDIR_P="$ac_install_sh -d"
2150  fi
2151fi
2152{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2153echo "${ECHO_T}$MKDIR_P" >&6; }
2154
2155mkdir_p="$MKDIR_P"
2156case $mkdir_p in
2157  [\\/$]* | ?:[\\/]*) ;;
2158  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2159esac
2160
2161for ac_prog in gawk mawk nawk awk
2162do
2163  # Extract the first word of "$ac_prog", so it can be a program name with args.
2164set dummy $ac_prog; ac_word=$2
2165{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2166echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2167if test "${ac_cv_prog_AWK+set}" = set; then
2168  echo $ECHO_N "(cached) $ECHO_C" >&6
2169else
2170  if test -n "$AWK"; then
2171  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2172else
2173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2174for as_dir in $PATH
2175do
2176  IFS=$as_save_IFS
2177  test -z "$as_dir" && as_dir=.
2178  for ac_exec_ext in '' $ac_executable_extensions; do
2179  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2180    ac_cv_prog_AWK="$ac_prog"
2181    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2182    break 2
2183  fi
2184done
2185done
2186IFS=$as_save_IFS
2187
2188fi
2189fi
2190AWK=$ac_cv_prog_AWK
2191if test -n "$AWK"; then
2192  { echo "$as_me:$LINENO: result: $AWK" >&5
2193echo "${ECHO_T}$AWK" >&6; }
2194else
2195  { echo "$as_me:$LINENO: result: no" >&5
2196echo "${ECHO_T}no" >&6; }
2197fi
2198
2199
2200  test -n "$AWK" && break
2201done
2202
2203{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2204echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2205set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2206if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2207  echo $ECHO_N "(cached) $ECHO_C" >&6
2208else
2209  cat >conftest.make <<\_ACEOF
2210SHELL = /bin/sh
2211all:
2212	@echo '@@@%%%=$(MAKE)=@@@%%%'
2213_ACEOF
2214# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2215case `${MAKE-make} -f conftest.make 2>/dev/null` in
2216  *@@@%%%=?*=@@@%%%*)
2217    eval ac_cv_prog_make_${ac_make}_set=yes;;
2218  *)
2219    eval ac_cv_prog_make_${ac_make}_set=no;;
2220esac
2221rm -f conftest.make
2222fi
2223if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2224  { echo "$as_me:$LINENO: result: yes" >&5
2225echo "${ECHO_T}yes" >&6; }
2226  SET_MAKE=
2227else
2228  { echo "$as_me:$LINENO: result: no" >&5
2229echo "${ECHO_T}no" >&6; }
2230  SET_MAKE="MAKE=${MAKE-make}"
2231fi
2232
2233rm -rf .tst 2>/dev/null
2234mkdir .tst 2>/dev/null
2235if test -d .tst; then
2236  am__leading_dot=.
2237else
2238  am__leading_dot=_
2239fi
2240rmdir .tst 2>/dev/null
2241
2242if test "`cd $srcdir && pwd`" != "`pwd`"; then
2243  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2244  # is not polluted with repeated "-I."
2245  am__isrc=' -I$(srcdir)'
2246  # test to see if srcdir already configured
2247  if test -f $srcdir/config.status; then
2248    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2249echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2250   { (exit 1); exit 1; }; }
2251  fi
2252fi
2253
2254# test whether we have cygpath
2255if test -z "$CYGPATH_W"; then
2256  if (cygpath --version) >/dev/null 2>/dev/null; then
2257    CYGPATH_W='cygpath -w'
2258  else
2259    CYGPATH_W=echo
2260  fi
2261fi
2262
2263
2264# Define the identity of the package.
2265 PACKAGE='gsl'
2266 VERSION='1.11'
2267
2268
2269cat >>confdefs.h <<_ACEOF
2270#define PACKAGE "$PACKAGE"
2271_ACEOF
2272
2273
2274cat >>confdefs.h <<_ACEOF
2275#define VERSION "$VERSION"
2276_ACEOF
2277
2278# Some tools Automake needs.
2279
2280ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2281
2282
2283AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2284
2285
2286AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2287
2288
2289AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2290
2291
2292MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2293
2294install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2295
2296# Installed binaries are usually stripped using `strip' when the user
2297# run `make install-strip'.  However `strip' might not be the right
2298# tool to use in cross-compilation environments, therefore Automake
2299# will honor the `STRIP' environment variable to overrule this program.
2300if test "$cross_compiling" != no; then
2301  if test -n "$ac_tool_prefix"; then
2302  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2303set dummy ${ac_tool_prefix}strip; ac_word=$2
2304{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2305echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2306if test "${ac_cv_prog_STRIP+set}" = set; then
2307  echo $ECHO_N "(cached) $ECHO_C" >&6
2308else
2309  if test -n "$STRIP"; then
2310  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2311else
2312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2313for as_dir in $PATH
2314do
2315  IFS=$as_save_IFS
2316  test -z "$as_dir" && as_dir=.
2317  for ac_exec_ext in '' $ac_executable_extensions; do
2318  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2319    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2320    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2321    break 2
2322  fi
2323done
2324done
2325IFS=$as_save_IFS
2326
2327fi
2328fi
2329STRIP=$ac_cv_prog_STRIP
2330if test -n "$STRIP"; then
2331  { echo "$as_me:$LINENO: result: $STRIP" >&5
2332echo "${ECHO_T}$STRIP" >&6; }
2333else
2334  { echo "$as_me:$LINENO: result: no" >&5
2335echo "${ECHO_T}no" >&6; }
2336fi
2337
2338
2339fi
2340if test -z "$ac_cv_prog_STRIP"; then
2341  ac_ct_STRIP=$STRIP
2342  # Extract the first word of "strip", so it can be a program name with args.
2343set dummy strip; ac_word=$2
2344{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2346if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2347  echo $ECHO_N "(cached) $ECHO_C" >&6
2348else
2349  if test -n "$ac_ct_STRIP"; then
2350  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2351else
2352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2353for as_dir in $PATH
2354do
2355  IFS=$as_save_IFS
2356  test -z "$as_dir" && as_dir=.
2357  for ac_exec_ext in '' $ac_executable_extensions; do
2358  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2359    ac_cv_prog_ac_ct_STRIP="strip"
2360    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2361    break 2
2362  fi
2363done
2364done
2365IFS=$as_save_IFS
2366
2367fi
2368fi
2369ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2370if test -n "$ac_ct_STRIP"; then
2371  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2372echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2373else
2374  { echo "$as_me:$LINENO: result: no" >&5
2375echo "${ECHO_T}no" >&6; }
2376fi
2377
2378  if test "x$ac_ct_STRIP" = x; then
2379    STRIP=":"
2380  else
2381    case $cross_compiling:$ac_tool_warned in
2382yes:)
2383{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2384whose name does not start with the host triplet.  If you think this
2385configuration is useful to you, please write to autoconf@gnu.org." >&5
2386echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2387whose name does not start with the host triplet.  If you think this
2388configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2389ac_tool_warned=yes ;;
2390esac
2391    STRIP=$ac_ct_STRIP
2392  fi
2393else
2394  STRIP="$ac_cv_prog_STRIP"
2395fi
2396
2397fi
2398INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2399
2400# We need awk for the "check" target.  The system "awk" is bad on
2401# some platforms.
2402# Always define AMTAR for backward compatibility.
2403
2404AMTAR=${AMTAR-"${am_missing_run}tar"}
2405
2406am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2407
2408
2409
2410
2411
2412ac_config_headers="$ac_config_headers config.h"
2413
2414{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2415echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2416    # Check whether --enable-maintainer-mode was given.
2417if test "${enable_maintainer_mode+set}" = set; then
2418  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2419else
2420  USE_MAINTAINER_MODE=no
2421fi
2422
2423  { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2424echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2425   if test $USE_MAINTAINER_MODE = yes; then
2426  MAINTAINER_MODE_TRUE=
2427  MAINTAINER_MODE_FALSE='#'
2428else
2429  MAINTAINER_MODE_TRUE='#'
2430  MAINTAINER_MODE_FALSE=
2431fi
2432
2433  MAINT=$MAINTAINER_MODE_TRUE
2434
2435
2436
2437
2438GSL_CURRENT=12
2439GSL_REVISION=0
2440GSL_AGE=12
2441CBLAS_CURRENT=0
2442CBLAS_REVISION=0
2443CBLAS_AGE=0
2444
2445GSL_LT_VERSION="${GSL_CURRENT}:${GSL_REVISION}:${GSL_AGE}"
2446
2447
2448GSL_LT_CBLAS_VERSION="${CBLAS_CURRENT}:${CBLAS_REVISION}:${CBLAS_AGE}"
2449
2450
2451case "$VERSION" in
2452    *+)
2453        ;;
2454    *)
2455
2456cat >>confdefs.h <<\_ACEOF
2457#define RELEASED
2458_ACEOF
2459
2460        ;;
2461esac
2462
2463{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2464echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2465set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2466if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2467  echo $ECHO_N "(cached) $ECHO_C" >&6
2468else
2469  cat >conftest.make <<\_ACEOF
2470SHELL = /bin/sh
2471all:
2472	@echo '@@@%%%=$(MAKE)=@@@%%%'
2473_ACEOF
2474# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2475case `${MAKE-make} -f conftest.make 2>/dev/null` in
2476  *@@@%%%=?*=@@@%%%*)
2477    eval ac_cv_prog_make_${ac_make}_set=yes;;
2478  *)
2479    eval ac_cv_prog_make_${ac_make}_set=no;;
2480esac
2481rm -f conftest.make
2482fi
2483if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2484  { echo "$as_me:$LINENO: result: yes" >&5
2485echo "${ECHO_T}yes" >&6; }
2486  SET_MAKE=
2487else
2488  { echo "$as_me:$LINENO: result: no" >&5
2489echo "${ECHO_T}no" >&6; }
2490  SET_MAKE="MAKE=${MAKE-make}"
2491fi
2492
2493
2494# Make sure we can run config.sub.
2495$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2496  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2497echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2498   { (exit 1); exit 1; }; }
2499
2500{ echo "$as_me:$LINENO: checking build system type" >&5
2501echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2502if test "${ac_cv_build+set}" = set; then
2503  echo $ECHO_N "(cached) $ECHO_C" >&6
2504else
2505  ac_build_alias=$build_alias
2506test "x$ac_build_alias" = x &&
2507  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2508test "x$ac_build_alias" = x &&
2509  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2510echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2511   { (exit 1); exit 1; }; }
2512ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2513  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2514echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2515   { (exit 1); exit 1; }; }
2516
2517fi
2518{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2519echo "${ECHO_T}$ac_cv_build" >&6; }
2520case $ac_cv_build in
2521*-*-*) ;;
2522*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2523echo "$as_me: error: invalid value of canonical build" >&2;}
2524   { (exit 1); exit 1; }; };;
2525esac
2526build=$ac_cv_build
2527ac_save_IFS=$IFS; IFS='-'
2528set x $ac_cv_build
2529shift
2530build_cpu=$1
2531build_vendor=$2
2532shift; shift
2533# Remember, the first character of IFS is used to create $*,
2534# except with old shells:
2535build_os=$*
2536IFS=$ac_save_IFS
2537case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2538
2539
2540{ echo "$as_me:$LINENO: checking host system type" >&5
2541echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2542if test "${ac_cv_host+set}" = set; then
2543  echo $ECHO_N "(cached) $ECHO_C" >&6
2544else
2545  if test "x$host_alias" = x; then
2546  ac_cv_host=$ac_cv_build
2547else
2548  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2549    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2550echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2551   { (exit 1); exit 1; }; }
2552fi
2553
2554fi
2555{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2556echo "${ECHO_T}$ac_cv_host" >&6; }
2557case $ac_cv_host in
2558*-*-*) ;;
2559*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2560echo "$as_me: error: invalid value of canonical host" >&2;}
2561   { (exit 1); exit 1; }; };;
2562esac
2563host=$ac_cv_host
2564ac_save_IFS=$IFS; IFS='-'
2565set x $ac_cv_host
2566shift
2567host_cpu=$1
2568host_vendor=$2
2569shift; shift
2570# Remember, the first character of IFS is used to create $*,
2571# except with old shells:
2572host_os=$*
2573IFS=$ac_save_IFS
2574case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2575
2576
2577
2578ac_ext=c
2579ac_cpp='$CPP $CPPFLAGS'
2580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2582ac_compiler_gnu=$ac_cv_c_compiler_gnu
2583
2584ac_ext=c
2585ac_cpp='$CPP $CPPFLAGS'
2586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2588ac_compiler_gnu=$ac_cv_c_compiler_gnu
2589if test -n "$ac_tool_prefix"; then
2590  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2591set dummy ${ac_tool_prefix}gcc; ac_word=$2
2592{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2594if test "${ac_cv_prog_CC+set}" = set; then
2595  echo $ECHO_N "(cached) $ECHO_C" >&6
2596else
2597  if test -n "$CC"; then
2598  ac_cv_prog_CC="$CC" # Let the user override the test.
2599else
2600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2601for as_dir in $PATH
2602do
2603  IFS=$as_save_IFS
2604  test -z "$as_dir" && as_dir=.
2605  for ac_exec_ext in '' $ac_executable_extensions; do
2606  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2607    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2608    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2609    break 2
2610  fi
2611done
2612done
2613IFS=$as_save_IFS
2614
2615fi
2616fi
2617CC=$ac_cv_prog_CC
2618if test -n "$CC"; then
2619  { echo "$as_me:$LINENO: result: $CC" >&5
2620echo "${ECHO_T}$CC" >&6; }
2621else
2622  { echo "$as_me:$LINENO: result: no" >&5
2623echo "${ECHO_T}no" >&6; }
2624fi
2625
2626
2627fi
2628if test -z "$ac_cv_prog_CC"; then
2629  ac_ct_CC=$CC
2630  # Extract the first word of "gcc", so it can be a program name with args.
2631set dummy gcc; ac_word=$2
2632{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2634if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2635  echo $ECHO_N "(cached) $ECHO_C" >&6
2636else
2637  if test -n "$ac_ct_CC"; then
2638  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2639else
2640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641for as_dir in $PATH
2642do
2643  IFS=$as_save_IFS
2644  test -z "$as_dir" && as_dir=.
2645  for ac_exec_ext in '' $ac_executable_extensions; do
2646  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2647    ac_cv_prog_ac_ct_CC="gcc"
2648    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2649    break 2
2650  fi
2651done
2652done
2653IFS=$as_save_IFS
2654
2655fi
2656fi
2657ac_ct_CC=$ac_cv_prog_ac_ct_CC
2658if test -n "$ac_ct_CC"; then
2659  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2660echo "${ECHO_T}$ac_ct_CC" >&6; }
2661else
2662  { echo "$as_me:$LINENO: result: no" >&5
2663echo "${ECHO_T}no" >&6; }
2664fi
2665
2666  if test "x$ac_ct_CC" = x; then
2667    CC=""
2668  else
2669    case $cross_compiling:$ac_tool_warned in
2670yes:)
2671{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2672whose name does not start with the host triplet.  If you think this
2673configuration is useful to you, please write to autoconf@gnu.org." >&5
2674echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2675whose name does not start with the host triplet.  If you think this
2676configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2677ac_tool_warned=yes ;;
2678esac
2679    CC=$ac_ct_CC
2680  fi
2681else
2682  CC="$ac_cv_prog_CC"
2683fi
2684
2685if test -z "$CC"; then
2686          if test -n "$ac_tool_prefix"; then
2687    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2688set dummy ${ac_tool_prefix}cc; ac_word=$2
2689{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2691if test "${ac_cv_prog_CC+set}" = set; then
2692  echo $ECHO_N "(cached) $ECHO_C" >&6
2693else
2694  if test -n "$CC"; then
2695  ac_cv_prog_CC="$CC" # Let the user override the test.
2696else
2697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2698for as_dir in $PATH
2699do
2700  IFS=$as_save_IFS
2701  test -z "$as_dir" && as_dir=.
2702  for ac_exec_ext in '' $ac_executable_extensions; do
2703  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2704    ac_cv_prog_CC="${ac_tool_prefix}cc"
2705    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2706    break 2
2707  fi
2708done
2709done
2710IFS=$as_save_IFS
2711
2712fi
2713fi
2714CC=$ac_cv_prog_CC
2715if test -n "$CC"; then
2716  { echo "$as_me:$LINENO: result: $CC" >&5
2717echo "${ECHO_T}$CC" >&6; }
2718else
2719  { echo "$as_me:$LINENO: result: no" >&5
2720echo "${ECHO_T}no" >&6; }
2721fi
2722
2723
2724  fi
2725fi
2726if test -z "$CC"; then
2727  # Extract the first word of "cc", so it can be a program name with args.
2728set dummy cc; ac_word=$2
2729{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2731if test "${ac_cv_prog_CC+set}" = set; then
2732  echo $ECHO_N "(cached) $ECHO_C" >&6
2733else
2734  if test -n "$CC"; then
2735  ac_cv_prog_CC="$CC" # Let the user override the test.
2736else
2737  ac_prog_rejected=no
2738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739for as_dir in $PATH
2740do
2741  IFS=$as_save_IFS
2742  test -z "$as_dir" && as_dir=.
2743  for ac_exec_ext in '' $ac_executable_extensions; do
2744  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2745    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2746       ac_prog_rejected=yes
2747       continue
2748     fi
2749    ac_cv_prog_CC="cc"
2750    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2751    break 2
2752  fi
2753done
2754done
2755IFS=$as_save_IFS
2756
2757if test $ac_prog_rejected = yes; then
2758  # We found a bogon in the path, so make sure we never use it.
2759  set dummy $ac_cv_prog_CC
2760  shift
2761  if test $# != 0; then
2762    # We chose a different compiler from the bogus one.
2763    # However, it has the same basename, so the bogon will be chosen
2764    # first if we set CC to just the basename; use the full file name.
2765    shift
2766    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2767  fi
2768fi
2769fi
2770fi
2771CC=$ac_cv_prog_CC
2772if test -n "$CC"; then
2773  { echo "$as_me:$LINENO: result: $CC" >&5
2774echo "${ECHO_T}$CC" >&6; }
2775else
2776  { echo "$as_me:$LINENO: result: no" >&5
2777echo "${ECHO_T}no" >&6; }
2778fi
2779
2780
2781fi
2782if test -z "$CC"; then
2783  if test -n "$ac_tool_prefix"; then
2784  for ac_prog in cl.exe
2785  do
2786    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2787set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2788{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2790if test "${ac_cv_prog_CC+set}" = set; then
2791  echo $ECHO_N "(cached) $ECHO_C" >&6
2792else
2793  if test -n "$CC"; then
2794  ac_cv_prog_CC="$CC" # Let the user override the test.
2795else
2796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797for as_dir in $PATH
2798do
2799  IFS=$as_save_IFS
2800  test -z "$as_dir" && as_dir=.
2801  for ac_exec_ext in '' $ac_executable_extensions; do
2802  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2803    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2804    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2805    break 2
2806  fi
2807done
2808done
2809IFS=$as_save_IFS
2810
2811fi
2812fi
2813CC=$ac_cv_prog_CC
2814if test -n "$CC"; then
2815  { echo "$as_me:$LINENO: result: $CC" >&5
2816echo "${ECHO_T}$CC" >&6; }
2817else
2818  { echo "$as_me:$LINENO: result: no" >&5
2819echo "${ECHO_T}no" >&6; }
2820fi
2821
2822
2823    test -n "$CC" && break
2824  done
2825fi
2826if test -z "$CC"; then
2827  ac_ct_CC=$CC
2828  for ac_prog in cl.exe
2829do
2830  # Extract the first word of "$ac_prog", so it can be a program name with args.
2831set dummy $ac_prog; ac_word=$2
2832{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2834if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2835  echo $ECHO_N "(cached) $ECHO_C" >&6
2836else
2837  if test -n "$ac_ct_CC"; then
2838  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2839else
2840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841for as_dir in $PATH
2842do
2843  IFS=$as_save_IFS
2844  test -z "$as_dir" && as_dir=.
2845  for ac_exec_ext in '' $ac_executable_extensions; do
2846  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2847    ac_cv_prog_ac_ct_CC="$ac_prog"
2848    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2849    break 2
2850  fi
2851done
2852done
2853IFS=$as_save_IFS
2854
2855fi
2856fi
2857ac_ct_CC=$ac_cv_prog_ac_ct_CC
2858if test -n "$ac_ct_CC"; then
2859  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2860echo "${ECHO_T}$ac_ct_CC" >&6; }
2861else
2862  { echo "$as_me:$LINENO: result: no" >&5
2863echo "${ECHO_T}no" >&6; }
2864fi
2865
2866
2867  test -n "$ac_ct_CC" && break
2868done
2869
2870  if test "x$ac_ct_CC" = x; then
2871    CC=""
2872  else
2873    case $cross_compiling:$ac_tool_warned in
2874yes:)
2875{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2876whose name does not start with the host triplet.  If you think this
2877configuration is useful to you, please write to autoconf@gnu.org." >&5
2878echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2879whose name does not start with the host triplet.  If you think this
2880configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2881ac_tool_warned=yes ;;
2882esac
2883    CC=$ac_ct_CC
2884  fi
2885fi
2886
2887fi
2888
2889
2890test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2891See \`config.log' for more details." >&5
2892echo "$as_me: error: no acceptable C compiler found in \$PATH
2893See \`config.log' for more details." >&2;}
2894   { (exit 1); exit 1; }; }
2895
2896# Provide some information about the compiler.
2897echo "$as_me:$LINENO: checking for C compiler version" >&5
2898ac_compiler=`set X $ac_compile; echo $2`
2899{ (ac_try="$ac_compiler --version >&5"
2900case "(($ac_try" in
2901  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2902  *) ac_try_echo=$ac_try;;
2903esac
2904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2905  (eval "$ac_compiler --version >&5") 2>&5
2906  ac_status=$?
2907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908  (exit $ac_status); }
2909{ (ac_try="$ac_compiler -v >&5"
2910case "(($ac_try" in
2911  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2912  *) ac_try_echo=$ac_try;;
2913esac
2914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2915  (eval "$ac_compiler -v >&5") 2>&5
2916  ac_status=$?
2917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918  (exit $ac_status); }
2919{ (ac_try="$ac_compiler -V >&5"
2920case "(($ac_try" in
2921  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2922  *) ac_try_echo=$ac_try;;
2923esac
2924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2925  (eval "$ac_compiler -V >&5") 2>&5
2926  ac_status=$?
2927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928  (exit $ac_status); }
2929
2930cat >conftest.$ac_ext <<_ACEOF
2931/* confdefs.h.  */
2932_ACEOF
2933cat confdefs.h >>conftest.$ac_ext
2934cat >>conftest.$ac_ext <<_ACEOF
2935/* end confdefs.h.  */
2936
2937int
2938main ()
2939{
2940
2941  ;
2942  return 0;
2943}
2944_ACEOF
2945ac_clean_files_save=$ac_clean_files
2946ac_clean_files="$ac_clean_files a.out a.exe b.out"
2947# Try to create an executable without -o first, disregard a.out.
2948# It will help us diagnose broken compilers, and finding out an intuition
2949# of exeext.
2950{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2951echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2952ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2953#
2954# List of possible output files, starting from the most likely.
2955# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2956# only as a last resort.  b.out is created by i960 compilers.
2957ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2958#
2959# The IRIX 6 linker writes into existing files which may not be
2960# executable, retaining their permissions.  Remove them first so a
2961# subsequent execution test works.
2962ac_rmfiles=
2963for ac_file in $ac_files
2964do
2965  case $ac_file in
2966    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2967    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2968  esac
2969done
2970rm -f $ac_rmfiles
2971
2972if { (ac_try="$ac_link_default"
2973case "(($ac_try" in
2974  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2975  *) ac_try_echo=$ac_try;;
2976esac
2977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2978  (eval "$ac_link_default") 2>&5
2979  ac_status=$?
2980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981  (exit $ac_status); }; then
2982  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2983# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2984# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2985# so that the user can short-circuit this test for compilers unknown to
2986# Autoconf.
2987for ac_file in $ac_files ''
2988do
2989  test -f "$ac_file" || continue
2990  case $ac_file in
2991    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2992	;;
2993    [ab].out )
2994	# We found the default executable, but exeext='' is most
2995	# certainly right.
2996	break;;
2997    *.* )
2998        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2999	then :; else
3000	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3001	fi
3002	# We set ac_cv_exeext here because the later test for it is not
3003	# safe: cross compilers may not add the suffix if given an `-o'
3004	# argument, so we may need to know it at that point already.
3005	# Even if this section looks crufty: it has the advantage of
3006	# actually working.
3007	break;;
3008    * )
3009	break;;
3010  esac
3011done
3012test "$ac_cv_exeext" = no && ac_cv_exeext=
3013
3014else
3015  ac_file=''
3016fi
3017
3018{ echo "$as_me:$LINENO: result: $ac_file" >&5
3019echo "${ECHO_T}$ac_file" >&6; }
3020if test -z "$ac_file"; then
3021  echo "$as_me: failed program was:" >&5
3022sed 's/^/| /' conftest.$ac_ext >&5
3023
3024{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3025See \`config.log' for more details." >&5
3026echo "$as_me: error: C compiler cannot create executables
3027See \`config.log' for more details." >&2;}
3028   { (exit 77); exit 77; }; }
3029fi
3030
3031ac_exeext=$ac_cv_exeext
3032
3033# Check that the compiler produces executables we can run.  If not, either
3034# the compiler is broken, or we cross compile.
3035{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3036echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3037# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3038# If not cross compiling, check that we can run a simple program.
3039if test "$cross_compiling" != yes; then
3040  if { ac_try='./$ac_file'
3041  { (case "(($ac_try" in
3042  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043  *) ac_try_echo=$ac_try;;
3044esac
3045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3046  (eval "$ac_try") 2>&5
3047  ac_status=$?
3048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049  (exit $ac_status); }; }; then
3050    cross_compiling=no
3051  else
3052    if test "$cross_compiling" = maybe; then
3053	cross_compiling=yes
3054    else
3055	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3056If you meant to cross compile, use \`--host'.
3057See \`config.log' for more details." >&5
3058echo "$as_me: error: cannot run C compiled programs.
3059If you meant to cross compile, use \`--host'.
3060See \`config.log' for more details." >&2;}
3061   { (exit 1); exit 1; }; }
3062    fi
3063  fi
3064fi
3065{ echo "$as_me:$LINENO: result: yes" >&5
3066echo "${ECHO_T}yes" >&6; }
3067
3068rm -f a.out a.exe conftest$ac_cv_exeext b.out
3069ac_clean_files=$ac_clean_files_save
3070# Check that the compiler produces executables we can run.  If not, either
3071# the compiler is broken, or we cross compile.
3072{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3073echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3074{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3075echo "${ECHO_T}$cross_compiling" >&6; }
3076
3077{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3078echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3079if { (ac_try="$ac_link"
3080case "(($ac_try" in
3081  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082  *) ac_try_echo=$ac_try;;
3083esac
3084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3085  (eval "$ac_link") 2>&5
3086  ac_status=$?
3087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088  (exit $ac_status); }; then
3089  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3090# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3091# work properly (i.e., refer to `conftest.exe'), while it won't with
3092# `rm'.
3093for ac_file in conftest.exe conftest conftest.*; do
3094  test -f "$ac_file" || continue
3095  case $ac_file in
3096    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3097    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3098	  break;;
3099    * ) break;;
3100  esac
3101done
3102else
3103  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3104See \`config.log' for more details." >&5
3105echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3106See \`config.log' for more details." >&2;}
3107   { (exit 1); exit 1; }; }
3108fi
3109
3110rm -f conftest$ac_cv_exeext
3111{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3112echo "${ECHO_T}$ac_cv_exeext" >&6; }
3113
3114rm -f conftest.$ac_ext
3115EXEEXT=$ac_cv_exeext
3116ac_exeext=$EXEEXT
3117{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3118echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3119if test "${ac_cv_objext+set}" = set; then
3120  echo $ECHO_N "(cached) $ECHO_C" >&6
3121else
3122  cat >conftest.$ac_ext <<_ACEOF
3123/* confdefs.h.  */
3124_ACEOF
3125cat confdefs.h >>conftest.$ac_ext
3126cat >>conftest.$ac_ext <<_ACEOF
3127/* end confdefs.h.  */
3128
3129int
3130main ()
3131{
3132
3133  ;
3134  return 0;
3135}
3136_ACEOF
3137rm -f conftest.o conftest.obj
3138if { (ac_try="$ac_compile"
3139case "(($ac_try" in
3140  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141  *) ac_try_echo=$ac_try;;
3142esac
3143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144  (eval "$ac_compile") 2>&5
3145  ac_status=$?
3146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147  (exit $ac_status); }; then
3148  for ac_file in conftest.o conftest.obj conftest.*; do
3149  test -f "$ac_file" || continue;
3150  case $ac_file in
3151    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3152    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3153       break;;
3154  esac
3155done
3156else
3157  echo "$as_me: failed program was:" >&5
3158sed 's/^/| /' conftest.$ac_ext >&5
3159
3160{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3161See \`config.log' for more details." >&5
3162echo "$as_me: error: cannot compute suffix of object files: cannot compile
3163See \`config.log' for more details." >&2;}
3164   { (exit 1); exit 1; }; }
3165fi
3166
3167rm -f conftest.$ac_cv_objext conftest.$ac_ext
3168fi
3169{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3170echo "${ECHO_T}$ac_cv_objext" >&6; }
3171OBJEXT=$ac_cv_objext
3172ac_objext=$OBJEXT
3173{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3174echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3175if test "${ac_cv_c_compiler_gnu+set}" = set; then
3176  echo $ECHO_N "(cached) $ECHO_C" >&6
3177else
3178  cat >conftest.$ac_ext <<_ACEOF
3179/* confdefs.h.  */
3180_ACEOF
3181cat confdefs.h >>conftest.$ac_ext
3182cat >>conftest.$ac_ext <<_ACEOF
3183/* end confdefs.h.  */
3184
3185int
3186main ()
3187{
3188#ifndef __GNUC__
3189       choke me
3190#endif
3191
3192  ;
3193  return 0;
3194}
3195_ACEOF
3196rm -f conftest.$ac_objext
3197if { (ac_try="$ac_compile"
3198case "(($ac_try" in
3199  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200  *) ac_try_echo=$ac_try;;
3201esac
3202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3203  (eval "$ac_compile") 2>conftest.er1
3204  ac_status=$?
3205  grep -v '^ *+' conftest.er1 >conftest.err
3206  rm -f conftest.er1
3207  cat conftest.err >&5
3208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209  (exit $ac_status); } && {
3210	 test -z "$ac_c_werror_flag" ||
3211	 test ! -s conftest.err
3212       } && test -s conftest.$ac_objext; then
3213  ac_compiler_gnu=yes
3214else
3215  echo "$as_me: failed program was:" >&5
3216sed 's/^/| /' conftest.$ac_ext >&5
3217
3218	ac_compiler_gnu=no
3219fi
3220
3221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3222ac_cv_c_compiler_gnu=$ac_compiler_gnu
3223
3224fi
3225{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3226echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3227GCC=`test $ac_compiler_gnu = yes && echo yes`
3228ac_test_CFLAGS=${CFLAGS+set}
3229ac_save_CFLAGS=$CFLAGS
3230{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3231echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3232if test "${ac_cv_prog_cc_g+set}" = set; then
3233  echo $ECHO_N "(cached) $ECHO_C" >&6
3234else
3235  ac_save_c_werror_flag=$ac_c_werror_flag
3236   ac_c_werror_flag=yes
3237   ac_cv_prog_cc_g=no
3238   CFLAGS="-g"
3239   cat >conftest.$ac_ext <<_ACEOF
3240/* confdefs.h.  */
3241_ACEOF
3242cat confdefs.h >>conftest.$ac_ext
3243cat >>conftest.$ac_ext <<_ACEOF
3244/* end confdefs.h.  */
3245
3246int
3247main ()
3248{
3249
3250  ;
3251  return 0;
3252}
3253_ACEOF
3254rm -f conftest.$ac_objext
3255if { (ac_try="$ac_compile"
3256case "(($ac_try" in
3257  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3258  *) ac_try_echo=$ac_try;;
3259esac
3260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3261  (eval "$ac_compile") 2>conftest.er1
3262  ac_status=$?
3263  grep -v '^ *+' conftest.er1 >conftest.err
3264  rm -f conftest.er1
3265  cat conftest.err >&5
3266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267  (exit $ac_status); } && {
3268	 test -z "$ac_c_werror_flag" ||
3269	 test ! -s conftest.err
3270       } && test -s conftest.$ac_objext; then
3271  ac_cv_prog_cc_g=yes
3272else
3273  echo "$as_me: failed program was:" >&5
3274sed 's/^/| /' conftest.$ac_ext >&5
3275
3276	CFLAGS=""
3277      cat >conftest.$ac_ext <<_ACEOF
3278/* confdefs.h.  */
3279_ACEOF
3280cat confdefs.h >>conftest.$ac_ext
3281cat >>conftest.$ac_ext <<_ACEOF
3282/* end confdefs.h.  */
3283
3284int
3285main ()
3286{
3287
3288  ;
3289  return 0;
3290}
3291_ACEOF
3292rm -f conftest.$ac_objext
3293if { (ac_try="$ac_compile"
3294case "(($ac_try" in
3295  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3296  *) ac_try_echo=$ac_try;;
3297esac
3298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3299  (eval "$ac_compile") 2>conftest.er1
3300  ac_status=$?
3301  grep -v '^ *+' conftest.er1 >conftest.err
3302  rm -f conftest.er1
3303  cat conftest.err >&5
3304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305  (exit $ac_status); } && {
3306	 test -z "$ac_c_werror_flag" ||
3307	 test ! -s conftest.err
3308       } && test -s conftest.$ac_objext; then
3309  :
3310else
3311  echo "$as_me: failed program was:" >&5
3312sed 's/^/| /' conftest.$ac_ext >&5
3313
3314	ac_c_werror_flag=$ac_save_c_werror_flag
3315	 CFLAGS="-g"
3316	 cat >conftest.$ac_ext <<_ACEOF
3317/* confdefs.h.  */
3318_ACEOF
3319cat confdefs.h >>conftest.$ac_ext
3320cat >>conftest.$ac_ext <<_ACEOF
3321/* end confdefs.h.  */
3322
3323int
3324main ()
3325{
3326
3327  ;
3328  return 0;
3329}
3330_ACEOF
3331rm -f conftest.$ac_objext
3332if { (ac_try="$ac_compile"
3333case "(($ac_try" in
3334  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3335  *) ac_try_echo=$ac_try;;
3336esac
3337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3338  (eval "$ac_compile") 2>conftest.er1
3339  ac_status=$?
3340  grep -v '^ *+' conftest.er1 >conftest.err
3341  rm -f conftest.er1
3342  cat conftest.err >&5
3343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344  (exit $ac_status); } && {
3345	 test -z "$ac_c_werror_flag" ||
3346	 test ! -s conftest.err
3347       } && test -s conftest.$ac_objext; then
3348  ac_cv_prog_cc_g=yes
3349else
3350  echo "$as_me: failed program was:" >&5
3351sed 's/^/| /' conftest.$ac_ext >&5
3352
3353
3354fi
3355
3356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3357fi
3358
3359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3360fi
3361
3362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3363   ac_c_werror_flag=$ac_save_c_werror_flag
3364fi
3365{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3366echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3367if test "$ac_test_CFLAGS" = set; then
3368  CFLAGS=$ac_save_CFLAGS
3369elif test $ac_cv_prog_cc_g = yes; then
3370  if test "$GCC" = yes; then
3371    CFLAGS="-g -O2"
3372  else
3373    CFLAGS="-g"
3374  fi
3375else
3376  if test "$GCC" = yes; then
3377    CFLAGS="-O2"
3378  else
3379    CFLAGS=
3380  fi
3381fi
3382{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3383echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3384if test "${ac_cv_prog_cc_c89+set}" = set; then
3385  echo $ECHO_N "(cached) $ECHO_C" >&6
3386else
3387  ac_cv_prog_cc_c89=no
3388ac_save_CC=$CC
3389cat >conftest.$ac_ext <<_ACEOF
3390/* confdefs.h.  */
3391_ACEOF
3392cat confdefs.h >>conftest.$ac_ext
3393cat >>conftest.$ac_ext <<_ACEOF
3394/* end confdefs.h.  */
3395#include <stdarg.h>
3396#include <stdio.h>
3397#include <sys/types.h>
3398#include <sys/stat.h>
3399/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3400struct buf { int x; };
3401FILE * (*rcsopen) (struct buf *, struct stat *, int);
3402static char *e (p, i)
3403     char **p;
3404     int i;
3405{
3406  return p[i];
3407}
3408static char *f (char * (*g) (char **, int), char **p, ...)
3409{
3410  char *s;
3411  va_list v;
3412  va_start (v,p);
3413  s = g (p, va_arg (v,int));
3414  va_end (v);
3415  return s;
3416}
3417
3418/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3419   function prototypes and stuff, but not '\xHH' hex character constants.
3420   These don't provoke an error unfortunately, instead are silently treated
3421   as 'x'.  The following induces an error, until -std is added to get
3422   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3423   array size at least.  It's necessary to write '\x00'==0 to get something
3424   that's true only with -std.  */
3425int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3426
3427/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3428   inside strings and character constants.  */
3429#define FOO(x) 'x'
3430int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3431
3432int test (int i, double x);
3433struct s1 {int (*f) (int a);};
3434struct s2 {int (*f) (double a);};
3435int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3436int argc;
3437char **argv;
3438int
3439main ()
3440{
3441return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3442  ;
3443  return 0;
3444}
3445_ACEOF
3446for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3447	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3448do
3449  CC="$ac_save_CC $ac_arg"
3450  rm -f conftest.$ac_objext
3451if { (ac_try="$ac_compile"
3452case "(($ac_try" in
3453  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3454  *) ac_try_echo=$ac_try;;
3455esac
3456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3457  (eval "$ac_compile") 2>conftest.er1
3458  ac_status=$?
3459  grep -v '^ *+' conftest.er1 >conftest.err
3460  rm -f conftest.er1
3461  cat conftest.err >&5
3462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463  (exit $ac_status); } && {
3464	 test -z "$ac_c_werror_flag" ||
3465	 test ! -s conftest.err
3466       } && test -s conftest.$ac_objext; then
3467  ac_cv_prog_cc_c89=$ac_arg
3468else
3469  echo "$as_me: failed program was:" >&5
3470sed 's/^/| /' conftest.$ac_ext >&5
3471
3472
3473fi
3474
3475rm -f core conftest.err conftest.$ac_objext
3476  test "x$ac_cv_prog_cc_c89" != "xno" && break
3477done
3478rm -f conftest.$ac_ext
3479CC=$ac_save_CC
3480
3481fi
3482# AC_CACHE_VAL
3483case "x$ac_cv_prog_cc_c89" in
3484  x)
3485    { echo "$as_me:$LINENO: result: none needed" >&5
3486echo "${ECHO_T}none needed" >&6; } ;;
3487  xno)
3488    { echo "$as_me:$LINENO: result: unsupported" >&5
3489echo "${ECHO_T}unsupported" >&6; } ;;
3490  *)
3491    CC="$CC $ac_cv_prog_cc_c89"
3492    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3493echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3494esac
3495
3496
3497ac_ext=c
3498ac_cpp='$CPP $CPPFLAGS'
3499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3501ac_compiler_gnu=$ac_cv_c_compiler_gnu
3502
3503ac_ext=c
3504ac_cpp='$CPP $CPPFLAGS'
3505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3507ac_compiler_gnu=$ac_cv_c_compiler_gnu
3508{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3509echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3510# On Suns, sometimes $CPP names a directory.
3511if test -n "$CPP" && test -d "$CPP"; then
3512  CPP=
3513fi
3514if test -z "$CPP"; then
3515  if test "${ac_cv_prog_CPP+set}" = set; then
3516  echo $ECHO_N "(cached) $ECHO_C" >&6
3517else
3518      # Double quotes because CPP needs to be expanded
3519    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3520    do
3521      ac_preproc_ok=false
3522for ac_c_preproc_warn_flag in '' yes
3523do
3524  # Use a header file that comes with gcc, so configuring glibc
3525  # with a fresh cross-compiler works.
3526  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3527  # <limits.h> exists even on freestanding compilers.
3528  # On the NeXT, cc -E runs the code through the compiler's parser,
3529  # not just through cpp. "Syntax error" is here to catch this case.
3530  cat >conftest.$ac_ext <<_ACEOF
3531/* confdefs.h.  */
3532_ACEOF
3533cat confdefs.h >>conftest.$ac_ext
3534cat >>conftest.$ac_ext <<_ACEOF
3535/* end confdefs.h.  */
3536#ifdef __STDC__
3537# include <limits.h>
3538#else
3539# include <assert.h>
3540#endif
3541		     Syntax error
3542_ACEOF
3543if { (ac_try="$ac_cpp conftest.$ac_ext"
3544case "(($ac_try" in
3545  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3546  *) ac_try_echo=$ac_try;;
3547esac
3548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3549  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3550  ac_status=$?
3551  grep -v '^ *+' conftest.er1 >conftest.err
3552  rm -f conftest.er1
3553  cat conftest.err >&5
3554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555  (exit $ac_status); } >/dev/null && {
3556	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3557	 test ! -s conftest.err
3558       }; then
3559  :
3560else
3561  echo "$as_me: failed program was:" >&5
3562sed 's/^/| /' conftest.$ac_ext >&5
3563
3564  # Broken: fails on valid input.
3565continue
3566fi
3567
3568rm -f conftest.err conftest.$ac_ext
3569
3570  # OK, works on sane cases.  Now check whether nonexistent headers
3571  # can be detected and how.
3572  cat >conftest.$ac_ext <<_ACEOF
3573/* confdefs.h.  */
3574_ACEOF
3575cat confdefs.h >>conftest.$ac_ext
3576cat >>conftest.$ac_ext <<_ACEOF
3577/* end confdefs.h.  */
3578#include <ac_nonexistent.h>
3579_ACEOF
3580if { (ac_try="$ac_cpp conftest.$ac_ext"
3581case "(($ac_try" in
3582  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3583  *) ac_try_echo=$ac_try;;
3584esac
3585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3586  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3587  ac_status=$?
3588  grep -v '^ *+' conftest.er1 >conftest.err
3589  rm -f conftest.er1
3590  cat conftest.err >&5
3591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592  (exit $ac_status); } >/dev/null && {
3593	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3594	 test ! -s conftest.err
3595       }; then
3596  # Broken: success on invalid input.
3597continue
3598else
3599  echo "$as_me: failed program was:" >&5
3600sed 's/^/| /' conftest.$ac_ext >&5
3601
3602  # Passes both tests.
3603ac_preproc_ok=:
3604break
3605fi
3606
3607rm -f conftest.err conftest.$ac_ext
3608
3609done
3610# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3611rm -f conftest.err conftest.$ac_ext
3612if $ac_preproc_ok; then
3613  break
3614fi
3615
3616    done
3617    ac_cv_prog_CPP=$CPP
3618
3619fi
3620  CPP=$ac_cv_prog_CPP
3621else
3622  ac_cv_prog_CPP=$CPP
3623fi
3624{ echo "$as_me:$LINENO: result: $CPP" >&5
3625echo "${ECHO_T}$CPP" >&6; }
3626ac_preproc_ok=false
3627for ac_c_preproc_warn_flag in '' yes
3628do
3629  # Use a header file that comes with gcc, so configuring glibc
3630  # with a fresh cross-compiler works.
3631  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3632  # <limits.h> exists even on freestanding compilers.
3633  # On the NeXT, cc -E runs the code through the compiler's parser,
3634  # not just through cpp. "Syntax error" is here to catch this case.
3635  cat >conftest.$ac_ext <<_ACEOF
3636/* confdefs.h.  */
3637_ACEOF
3638cat confdefs.h >>conftest.$ac_ext
3639cat >>conftest.$ac_ext <<_ACEOF
3640/* end confdefs.h.  */
3641#ifdef __STDC__
3642# include <limits.h>
3643#else
3644# include <assert.h>
3645#endif
3646		     Syntax error
3647_ACEOF
3648if { (ac_try="$ac_cpp conftest.$ac_ext"
3649case "(($ac_try" in
3650  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3651  *) ac_try_echo=$ac_try;;
3652esac
3653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3654  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3655  ac_status=$?
3656  grep -v '^ *+' conftest.er1 >conftest.err
3657  rm -f conftest.er1
3658  cat conftest.err >&5
3659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660  (exit $ac_status); } >/dev/null && {
3661	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3662	 test ! -s conftest.err
3663       }; then
3664  :
3665else
3666  echo "$as_me: failed program was:" >&5
3667sed 's/^/| /' conftest.$ac_ext >&5
3668
3669  # Broken: fails on valid input.
3670continue
3671fi
3672
3673rm -f conftest.err conftest.$ac_ext
3674
3675  # OK, works on sane cases.  Now check whether nonexistent headers
3676  # can be detected and how.
3677  cat >conftest.$ac_ext <<_ACEOF
3678/* confdefs.h.  */
3679_ACEOF
3680cat confdefs.h >>conftest.$ac_ext
3681cat >>conftest.$ac_ext <<_ACEOF
3682/* end confdefs.h.  */
3683#include <ac_nonexistent.h>
3684_ACEOF
3685if { (ac_try="$ac_cpp conftest.$ac_ext"
3686case "(($ac_try" in
3687  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3688  *) ac_try_echo=$ac_try;;
3689esac
3690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3691  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3692  ac_status=$?
3693  grep -v '^ *+' conftest.er1 >conftest.err
3694  rm -f conftest.er1
3695  cat conftest.err >&5
3696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697  (exit $ac_status); } >/dev/null && {
3698	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3699	 test ! -s conftest.err
3700       }; then
3701  # Broken: success on invalid input.
3702continue
3703else
3704  echo "$as_me: failed program was:" >&5
3705sed 's/^/| /' conftest.$ac_ext >&5
3706
3707  # Passes both tests.
3708ac_preproc_ok=:
3709break
3710fi
3711
3712rm -f conftest.err conftest.$ac_ext
3713
3714done
3715# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3716rm -f conftest.err conftest.$ac_ext
3717if $ac_preproc_ok; then
3718  :
3719else
3720  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3721See \`config.log' for more details." >&5
3722echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3723See \`config.log' for more details." >&2;}
3724   { (exit 1); exit 1; }; }
3725fi
3726
3727ac_ext=c
3728ac_cpp='$CPP $CPPFLAGS'
3729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3731ac_compiler_gnu=$ac_cv_c_compiler_gnu
3732
3733# Find a good install program.  We prefer a C program (faster),
3734# so one script is as good as another.  But avoid the broken or
3735# incompatible versions:
3736# SysV /etc/install, /usr/sbin/install
3737# SunOS /usr/etc/install
3738# IRIX /sbin/install
3739# AIX /bin/install
3740# AmigaOS /C/install, which installs bootblocks on floppy discs
3741# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3742# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3743# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3744# OS/2's system install, which has a completely different semantic
3745# ./install, which can be erroneously created by make from ./install.sh.
3746{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3747echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3748if test -z "$INSTALL"; then
3749if test "${ac_cv_path_install+set}" = set; then
3750  echo $ECHO_N "(cached) $ECHO_C" >&6
3751else
3752  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3753for as_dir in $PATH
3754do
3755  IFS=$as_save_IFS
3756  test -z "$as_dir" && as_dir=.
3757  # Account for people who put trailing slashes in PATH elements.
3758case $as_dir/ in
3759  ./ | .// | /cC/* | \
3760  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3761  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3762  /usr/ucb/* ) ;;
3763  *)
3764    # OSF1 and SCO ODT 3.0 have their own names for install.
3765    # Don't use installbsd from OSF since it installs stuff as root
3766    # by default.
3767    for ac_prog in ginstall scoinst install; do
3768      for ac_exec_ext in '' $ac_executable_extensions; do
3769	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3770	  if test $ac_prog = install &&
3771	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3772	    # AIX install.  It has an incompatible calling convention.
3773	    :
3774	  elif test $ac_prog = install &&
3775	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3776	    # program-specific install script used by HP pwplus--don't use.
3777	    :
3778	  else
3779	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3780	    break 3
3781	  fi
3782	fi
3783      done
3784    done
3785    ;;
3786esac
3787done
3788IFS=$as_save_IFS
3789
3790
3791fi
3792  if test "${ac_cv_path_install+set}" = set; then
3793    INSTALL=$ac_cv_path_install
3794  else
3795    # As a last resort, use the slow shell script.  Don't cache a
3796    # value for INSTALL within a source directory, because that will
3797    # break other packages using the cache if that directory is
3798    # removed, or if the value is a relative name.
3799    INSTALL=$ac_install_sh
3800  fi
3801fi
3802{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3803echo "${ECHO_T}$INSTALL" >&6; }
3804
3805# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3806# It thinks the first close brace ends the variable substitution.
3807test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3808
3809test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3810
3811test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3812
3813{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
3814echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3815LN_S=$as_ln_s
3816if test "$LN_S" = "ln -s"; then
3817  { echo "$as_me:$LINENO: result: yes" >&5
3818echo "${ECHO_T}yes" >&6; }
3819else
3820  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3821echo "${ECHO_T}no, using $LN_S" >&6; }
3822fi
3823
3824case `pwd` in
3825  *\ * | *\	*)
3826    { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3827echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3828esac
3829
3830
3831
3832macro_version='2.2'
3833macro_revision='1.2599'
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847ltmain="$ac_aux_dir/ltmain.sh"
3848
3849{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3850echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3851if test "${ac_cv_path_SED+set}" = set; then
3852  echo $ECHO_N "(cached) $ECHO_C" >&6
3853else
3854            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3855     for ac_i in 1 2 3 4 5 6 7; do
3856       ac_script="$ac_script$as_nl$ac_script"
3857     done
3858     echo "$ac_script" | sed 99q >conftest.sed
3859     $as_unset ac_script || ac_script=
3860     # Extract the first word of "sed gsed" to use in msg output
3861if test -z "$SED"; then
3862set dummy sed gsed; ac_prog_name=$2
3863if test "${ac_cv_path_SED+set}" = set; then
3864  echo $ECHO_N "(cached) $ECHO_C" >&6
3865else
3866  ac_path_SED_found=false
3867# Loop through the user's path and test for each of PROGNAME-LIST
3868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3869for as_dir in $PATH
3870do
3871  IFS=$as_save_IFS
3872  test -z "$as_dir" && as_dir=.
3873  for ac_prog in sed gsed; do
3874  for ac_exec_ext in '' $ac_executable_extensions; do
3875    ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3876    { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3877    # Check for GNU ac_path_SED and select it if it is found.
3878  # Check for GNU $ac_path_SED
3879case `"$ac_path_SED" --version 2>&1` in
3880*GNU*)
3881  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3882*)
3883  ac_count=0
3884  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3885  while :
3886  do
3887    cat "conftest.in" "conftest.in" >"conftest.tmp"
3888    mv "conftest.tmp" "conftest.in"
3889    cp "conftest.in" "conftest.nl"
3890    echo '' >> "conftest.nl"
3891    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3892    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3893    ac_count=`expr $ac_count + 1`
3894    if test $ac_count -gt ${ac_path_SED_max-0}; then
3895      # Best one so far, save it but keep looking for a better one
3896      ac_cv_path_SED="$ac_path_SED"
3897      ac_path_SED_max=$ac_count
3898    fi
3899    # 10*(2^10) chars as input seems more than enough
3900    test $ac_count -gt 10 && break
3901  done
3902  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3903esac
3904
3905
3906    $ac_path_SED_found && break 3
3907  done
3908done
3909
3910done
3911IFS=$as_save_IFS
3912
3913
3914fi
3915
3916SED="$ac_cv_path_SED"
3917if test -z "$SED"; then
3918  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
3919echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
3920   { (exit 1); exit 1; }; }
3921fi
3922
3923else
3924  ac_cv_path_SED=$SED
3925fi
3926
3927fi
3928{ echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3929echo "${ECHO_T}$ac_cv_path_SED" >&6; }
3930 SED="$ac_cv_path_SED"
3931  rm -f conftest.sed
3932
3933test -z "$SED" && SED=sed
3934Xsed="$SED -e 1s/^X//"
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3947echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3948if test "${ac_cv_path_GREP+set}" = set; then
3949  echo $ECHO_N "(cached) $ECHO_C" >&6
3950else
3951  # Extract the first word of "grep ggrep" to use in msg output
3952if test -z "$GREP"; then
3953set dummy grep ggrep; ac_prog_name=$2
3954if test "${ac_cv_path_GREP+set}" = set; then
3955  echo $ECHO_N "(cached) $ECHO_C" >&6
3956else
3957  ac_path_GREP_found=false
3958# Loop through the user's path and test for each of PROGNAME-LIST
3959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3960for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3961do
3962  IFS=$as_save_IFS
3963  test -z "$as_dir" && as_dir=.
3964  for ac_prog in grep ggrep; do
3965  for ac_exec_ext in '' $ac_executable_extensions; do
3966    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3967    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3968    # Check for GNU ac_path_GREP and select it if it is found.
3969  # Check for GNU $ac_path_GREP
3970case `"$ac_path_GREP" --version 2>&1` in
3971*GNU*)
3972  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3973*)
3974  ac_count=0
3975  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3976  while :
3977  do
3978    cat "conftest.in" "conftest.in" >"conftest.tmp"
3979    mv "conftest.tmp" "conftest.in"
3980    cp "conftest.in" "conftest.nl"
3981    echo 'GREP' >> "conftest.nl"
3982    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3983    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3984    ac_count=`expr $ac_count + 1`
3985    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3986      # Best one so far, save it but keep looking for a better one
3987      ac_cv_path_GREP="$ac_path_GREP"
3988      ac_path_GREP_max=$ac_count
3989    fi
3990    # 10*(2^10) chars as input seems more than enough
3991    test $ac_count -gt 10 && break
3992  done
3993  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3994esac
3995
3996
3997    $ac_path_GREP_found && break 3
3998  done
3999done
4000
4001done
4002IFS=$as_save_IFS
4003
4004
4005fi
4006
4007GREP="$ac_cv_path_GREP"
4008if test -z "$GREP"; then
4009  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4010echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4011   { (exit 1); exit 1; }; }
4012fi
4013
4014else
4015  ac_cv_path_GREP=$GREP
4016fi
4017
4018
4019fi
4020{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4021echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4022 GREP="$ac_cv_path_GREP"
4023
4024
4025{ echo "$as_me:$LINENO: checking for egrep" >&5
4026echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4027if test "${ac_cv_path_EGREP+set}" = set; then
4028  echo $ECHO_N "(cached) $ECHO_C" >&6
4029else
4030  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4031   then ac_cv_path_EGREP="$GREP -E"
4032   else
4033     # Extract the first word of "egrep" to use in msg output
4034if test -z "$EGREP"; then
4035set dummy egrep; ac_prog_name=$2
4036if test "${ac_cv_path_EGREP+set}" = set; then
4037  echo $ECHO_N "(cached) $ECHO_C" >&6
4038else
4039  ac_path_EGREP_found=false
4040# Loop through the user's path and test for each of PROGNAME-LIST
4041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4042for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4043do
4044  IFS=$as_save_IFS
4045  test -z "$as_dir" && as_dir=.
4046  for ac_prog in egrep; do
4047  for ac_exec_ext in '' $ac_executable_extensions; do
4048    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4049    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4050    # Check for GNU ac_path_EGREP and select it if it is found.
4051  # Check for GNU $ac_path_EGREP
4052case `"$ac_path_EGREP" --version 2>&1` in
4053*GNU*)
4054  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4055*)
4056  ac_count=0
4057  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4058  while :
4059  do
4060    cat "conftest.in" "conftest.in" >"conftest.tmp"
4061    mv "conftest.tmp" "conftest.in"
4062    cp "conftest.in" "conftest.nl"
4063    echo 'EGREP' >> "conftest.nl"
4064    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4065    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4066    ac_count=`expr $ac_count + 1`
4067    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4068      # Best one so far, save it but keep looking for a better one
4069      ac_cv_path_EGREP="$ac_path_EGREP"
4070      ac_path_EGREP_max=$ac_count
4071    fi
4072    # 10*(2^10) chars as input seems more than enough
4073    test $ac_count -gt 10 && break
4074  done
4075  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4076esac
4077
4078
4079    $ac_path_EGREP_found && break 3
4080  done
4081done
4082
4083done
4084IFS=$as_save_IFS
4085
4086
4087fi
4088
4089EGREP="$ac_cv_path_EGREP"
4090if test -z "$EGREP"; then
4091  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4092echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4093   { (exit 1); exit 1; }; }
4094fi
4095
4096else
4097  ac_cv_path_EGREP=$EGREP
4098fi
4099
4100
4101   fi
4102fi
4103{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4104echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4105 EGREP="$ac_cv_path_EGREP"
4106
4107
4108{ echo "$as_me:$LINENO: checking for fgrep" >&5
4109echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
4110if test "${ac_cv_path_FGREP+set}" = set; then
4111  echo $ECHO_N "(cached) $ECHO_C" >&6
4112else
4113  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4114   then ac_cv_path_FGREP="$GREP -F"
4115   else
4116     # Extract the first word of "fgrep" to use in msg output
4117if test -z "$FGREP"; then
4118set dummy fgrep; ac_prog_name=$2
4119if test "${ac_cv_path_FGREP+set}" = set; then
4120  echo $ECHO_N "(cached) $ECHO_C" >&6
4121else
4122  ac_path_FGREP_found=false
4123# Loop through the user's path and test for each of PROGNAME-LIST
4124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4126do
4127  IFS=$as_save_IFS
4128  test -z "$as_dir" && as_dir=.
4129  for ac_prog in fgrep; do
4130  for ac_exec_ext in '' $ac_executable_extensions; do
4131    ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4132    { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4133    # Check for GNU ac_path_FGREP and select it if it is found.
4134  # Check for GNU $ac_path_FGREP
4135case `"$ac_path_FGREP" --version 2>&1` in
4136*GNU*)
4137  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4138*)
4139  ac_count=0
4140  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4141  while :
4142  do
4143    cat "conftest.in" "conftest.in" >"conftest.tmp"
4144    mv "conftest.tmp" "conftest.in"
4145    cp "conftest.in" "conftest.nl"
4146    echo 'FGREP' >> "conftest.nl"
4147    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4148    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4149    ac_count=`expr $ac_count + 1`
4150    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4151      # Best one so far, save it but keep looking for a better one
4152      ac_cv_path_FGREP="$ac_path_FGREP"
4153      ac_path_FGREP_max=$ac_count
4154    fi
4155    # 10*(2^10) chars as input seems more than enough
4156    test $ac_count -gt 10 && break
4157  done
4158  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4159esac
4160
4161
4162    $ac_path_FGREP_found && break 3
4163  done
4164done
4165
4166done
4167IFS=$as_save_IFS
4168
4169
4170fi
4171
4172FGREP="$ac_cv_path_FGREP"
4173if test -z "$FGREP"; then
4174  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4175echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4176   { (exit 1); exit 1; }; }
4177fi
4178
4179else
4180  ac_cv_path_FGREP=$FGREP
4181fi
4182
4183
4184   fi
4185fi
4186{ echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4187echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
4188 FGREP="$ac_cv_path_FGREP"
4189
4190
4191test -z "$GREP" && GREP=grep
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211# Check whether --with-gnu-ld was given.
4212if test "${with_gnu_ld+set}" = set; then
4213  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4214else
4215  with_gnu_ld=no
4216fi
4217
4218ac_prog=ld
4219if test "$GCC" = yes; then
4220  # Check if gcc -print-prog-name=ld gives a path.
4221  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4222echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4223  case $host in
4224  *-*-mingw*)
4225    # gcc leaves a trailing carriage return which upsets mingw
4226    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4227  *)
4228    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4229  esac
4230  case $ac_prog in
4231    # Accept absolute paths.
4232    [\\/]* | ?:[\\/]*)
4233      re_direlt='/[^/][^/]*/\.\./'
4234      # Canonicalize the pathname of ld
4235      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4236      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4237	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4238      done
4239      test -z "$LD" && LD="$ac_prog"
4240      ;;
4241  "")
4242    # If it fails, then pretend we aren't using GCC.
4243    ac_prog=ld
4244    ;;
4245  *)
4246    # If it is relative, then search for the first ld in PATH.
4247    with_gnu_ld=unknown
4248    ;;
4249  esac
4250elif test "$with_gnu_ld" = yes; then
4251  { echo "$as_me:$LINENO: checking for GNU ld" >&5
4252echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4253else
4254  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4255echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4256fi
4257if test "${lt_cv_path_LD+set}" = set; then
4258  echo $ECHO_N "(cached) $ECHO_C" >&6
4259else
4260  if test -z "$LD"; then
4261  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4262  for ac_dir in $PATH; do
4263    IFS="$lt_save_ifs"
4264    test -z "$ac_dir" && ac_dir=.
4265    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4266      lt_cv_path_LD="$ac_dir/$ac_prog"
4267      # Check to see if the program is GNU ld.  I'd rather use --version,
4268      # but apparently some variants of GNU ld only accept -v.
4269      # Break only if it was the GNU/non-GNU ld that we prefer.
4270      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4271      *GNU* | *'with BFD'*)
4272	test "$with_gnu_ld" != no && break
4273	;;
4274      *)
4275	test "$with_gnu_ld" != yes && break
4276	;;
4277      esac
4278    fi
4279  done
4280  IFS="$lt_save_ifs"
4281else
4282  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4283fi
4284fi
4285
4286LD="$lt_cv_path_LD"
4287if test -n "$LD"; then
4288  { echo "$as_me:$LINENO: result: $LD" >&5
4289echo "${ECHO_T}$LD" >&6; }
4290else
4291  { echo "$as_me:$LINENO: result: no" >&5
4292echo "${ECHO_T}no" >&6; }
4293fi
4294test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4295echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4296   { (exit 1); exit 1; }; }
4297{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4298echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4299if test "${lt_cv_prog_gnu_ld+set}" = set; then
4300  echo $ECHO_N "(cached) $ECHO_C" >&6
4301else
4302  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4303case `$LD -v 2>&1 </dev/null` in
4304*GNU* | *'with BFD'*)
4305  lt_cv_prog_gnu_ld=yes
4306  ;;
4307*)
4308  lt_cv_prog_gnu_ld=no
4309  ;;
4310esac
4311fi
4312{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4313echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4314with_gnu_ld=$lt_cv_prog_gnu_ld
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325{ echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4326echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
4327if test "${lt_cv_path_NM+set}" = set; then
4328  echo $ECHO_N "(cached) $ECHO_C" >&6
4329else
4330  if test -n "$NM"; then
4331  # Let the user override the test.
4332  lt_cv_path_NM="$NM"
4333else
4334  lt_nm_to_check="${ac_tool_prefix}nm"
4335  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4336    lt_nm_to_check="$lt_nm_to_check nm"
4337  fi
4338  for lt_tmp_nm in $lt_nm_to_check; do
4339    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4340    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4341      IFS="$lt_save_ifs"
4342      test -z "$ac_dir" && ac_dir=.
4343      tmp_nm="$ac_dir/$lt_tmp_nm"
4344      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4345	# Check to see if the nm accepts a BSD-compat flag.
4346	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4347	#   nm: unknown option "B" ignored
4348	# Tru64's nm complains that /dev/null is an invalid object file
4349	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4350	*/dev/null* | *'Invalid file or object type'*)
4351	  lt_cv_path_NM="$tmp_nm -B"
4352	  break
4353	  ;;
4354	*)
4355	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4356	  */dev/null*)
4357	    lt_cv_path_NM="$tmp_nm -p"
4358	    break
4359	    ;;
4360	  *)
4361	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4362	    continue # so that we can try to find one that supports BSD flags
4363	    ;;
4364	  esac
4365	  ;;
4366	esac
4367      fi
4368    done
4369    IFS="$lt_save_ifs"
4370  done
4371  : ${lt_cv_path_NM=no}
4372fi
4373fi
4374{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4375echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4376if test "$lt_cv_path_NM" != "no"; then
4377  NM="$lt_cv_path_NM"
4378else
4379  # Didn't find any BSD compatible name lister, look for dumpbin.
4380  if test -n "$ac_tool_prefix"; then
4381  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4382  do
4383    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4384set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4385{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4386echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4387if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4388  echo $ECHO_N "(cached) $ECHO_C" >&6
4389else
4390  if test -n "$DUMPBIN"; then
4391  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4392else
4393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394for as_dir in $PATH
4395do
4396  IFS=$as_save_IFS
4397  test -z "$as_dir" && as_dir=.
4398  for ac_exec_ext in '' $ac_executable_extensions; do
4399  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4400    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4401    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4402    break 2
4403  fi
4404done
4405done
4406IFS=$as_save_IFS
4407
4408fi
4409fi
4410DUMPBIN=$ac_cv_prog_DUMPBIN
4411if test -n "$DUMPBIN"; then
4412  { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4413echo "${ECHO_T}$DUMPBIN" >&6; }
4414else
4415  { echo "$as_me:$LINENO: result: no" >&5
4416echo "${ECHO_T}no" >&6; }
4417fi
4418
4419
4420    test -n "$DUMPBIN" && break
4421  done
4422fi
4423if test -z "$DUMPBIN"; then
4424  ac_ct_DUMPBIN=$DUMPBIN
4425  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4426do
4427  # Extract the first word of "$ac_prog", so it can be a program name with args.
4428set dummy $ac_prog; ac_word=$2
4429{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4431if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4432  echo $ECHO_N "(cached) $ECHO_C" >&6
4433else
4434  if test -n "$ac_ct_DUMPBIN"; then
4435  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4436else
4437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438for as_dir in $PATH
4439do
4440  IFS=$as_save_IFS
4441  test -z "$as_dir" && as_dir=.
4442  for ac_exec_ext in '' $ac_executable_extensions; do
4443  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4444    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4445    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4446    break 2
4447  fi
4448done
4449done
4450IFS=$as_save_IFS
4451
4452fi
4453fi
4454ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4455if test -n "$ac_ct_DUMPBIN"; then
4456  { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4457echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
4458else
4459  { echo "$as_me:$LINENO: result: no" >&5
4460echo "${ECHO_T}no" >&6; }
4461fi
4462
4463
4464  test -n "$ac_ct_DUMPBIN" && break
4465done
4466
4467  if test "x$ac_ct_DUMPBIN" = x; then
4468    DUMPBIN=":"
4469  else
4470    case $cross_compiling:$ac_tool_warned in
4471yes:)
4472{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4473whose name does not start with the host triplet.  If you think this
4474configuration is useful to you, please write to autoconf@gnu.org." >&5
4475echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4476whose name does not start with the host triplet.  If you think this
4477configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4478ac_tool_warned=yes ;;
4479esac
4480    DUMPBIN=$ac_ct_DUMPBIN
4481  fi
4482fi
4483
4484
4485  if test "$DUMPBIN" != ":"; then
4486    NM="$DUMPBIN"
4487  fi
4488fi
4489test -z "$NM" && NM=nm
4490
4491
4492
4493
4494
4495
4496{ echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4497echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
4498if test "${lt_cv_nm_interface+set}" = set; then
4499  echo $ECHO_N "(cached) $ECHO_C" >&6
4500else
4501  lt_cv_nm_interface="BSD nm"
4502  echo "int some_variable = 0;" > conftest.$ac_ext
4503  (eval echo "\"\$as_me:4503: $ac_compile\"" >&5)
4504  (eval "$ac_compile" 2>conftest.err)
4505  cat conftest.err >&5
4506  (eval echo "\"\$as_me:4506: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4507  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4508  cat conftest.err >&5
4509  (eval echo "\"\$as_me:4509: output\"" >&5)
4510  cat conftest.out >&5
4511  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4512    lt_cv_nm_interface="MS dumpbin"
4513  fi
4514  rm -f conftest*
4515fi
4516{ echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4517echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
4518
4519# find the maximum length of command line arguments
4520{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4521echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
4522if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4523  echo $ECHO_N "(cached) $ECHO_C" >&6
4524else
4525    i=0
4526  teststring="ABCD"
4527
4528  case $build_os in
4529  msdosdjgpp*)
4530    # On DJGPP, this test can blow up pretty badly due to problems in libc
4531    # (any single argument exceeding 2000 bytes causes a buffer overrun
4532    # during glob expansion).  Even if it were fixed, the result of this
4533    # check would be larger than it should be.
4534    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4535    ;;
4536
4537  gnu*)
4538    # Under GNU Hurd, this test is not required because there is
4539    # no limit to the length of command line arguments.
4540    # Libtool will interpret -1 as no limit whatsoever
4541    lt_cv_sys_max_cmd_len=-1;
4542    ;;
4543
4544  cygwin* | mingw*)
4545    # On Win9x/ME, this test blows up -- it succeeds, but takes
4546    # about 5 minutes as the teststring grows exponentially.
4547    # Worse, since 9x/ME are not pre-emptively multitasking,
4548    # you end up with a "frozen" computer, even though with patience
4549    # the test eventually succeeds (with a max line length of 256k).
4550    # Instead, let's just punt: use the minimum linelength reported by
4551    # all of the supported platforms: 8192 (on NT/2K/XP).
4552    lt_cv_sys_max_cmd_len=8192;
4553    ;;
4554
4555  amigaos*)
4556    # On AmigaOS with pdksh, this test takes hours, literally.
4557    # So we just punt and use a minimum line length of 8192.
4558    lt_cv_sys_max_cmd_len=8192;
4559    ;;
4560
4561  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4562    # This has been around since 386BSD, at least.  Likely further.
4563    if test -x /sbin/sysctl; then
4564      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4565    elif test -x /usr/sbin/sysctl; then
4566      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4567    else
4568      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4569    fi
4570    # And add a safety zone
4571    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4572    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4573    ;;
4574
4575  interix*)
4576    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4577    lt_cv_sys_max_cmd_len=196608
4578    ;;
4579
4580  osf*)
4581    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4582    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4583    # nice to cause kernel panics so lets avoid the loop below.
4584    # First set a reasonable default.
4585    lt_cv_sys_max_cmd_len=16384
4586    #
4587    if test -x /sbin/sysconfig; then
4588      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4589        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4590      esac
4591    fi
4592    ;;
4593  sco3.2v5*)
4594    lt_cv_sys_max_cmd_len=102400
4595    ;;
4596  sysv5* | sco5v6* | sysv4.2uw2*)
4597    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4598    if test -n "$kargmax"; then
4599      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4600    else
4601      lt_cv_sys_max_cmd_len=32768
4602    fi
4603    ;;
4604  *)
4605    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4606    if test -n "$lt_cv_sys_max_cmd_len"; then
4607      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4608      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4609    else
4610      # Make teststring a little bigger before we do anything with it.
4611      # a 1K string should be a reasonable start.
4612      for i in 1 2 3 4 5 6 7 8 ; do
4613        teststring=$teststring$teststring
4614      done
4615      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4616      # If test is not a shell built-in, we'll probably end up computing a
4617      # maximum length that is only half of the actual maximum length, but
4618      # we can't tell.
4619      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4620	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4621	      test $i != 17 # 1/2 MB should be enough
4622      do
4623        i=`expr $i + 1`
4624        teststring=$teststring$teststring
4625      done
4626      # Only check the string length outside the loop.
4627      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4628      teststring=
4629      # Add a significant safety factor because C++ compilers can tack on
4630      # massive amounts of additional arguments before passing them to the
4631      # linker.  It appears as though 1/2 is a usable value.
4632      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4633    fi
4634    ;;
4635  esac
4636
4637fi
4638
4639if test -n $lt_cv_sys_max_cmd_len ; then
4640  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4641echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
4642else
4643  { echo "$as_me:$LINENO: result: none" >&5
4644echo "${ECHO_T}none" >&6; }
4645fi
4646max_cmd_len=$lt_cv_sys_max_cmd_len
4647
4648
4649
4650
4651
4652
4653
4654: ${CP="cp -f"}
4655: ${MV="mv -f"}
4656: ${RM="rm -f"}
4657
4658{ echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4659echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
4660# Try some XSI features
4661xsi_shell=no
4662( _lt_dummy="a/b/c"
4663  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4664      = c,a/b,, ) >/dev/null 2>&1 \
4665  && xsi_shell=yes
4666{ echo "$as_me:$LINENO: result: $xsi_shell" >&5
4667echo "${ECHO_T}$xsi_shell" >&6; }
4668
4669
4670{ echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4671echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
4672lt_shell_append=no
4673( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4674    >/dev/null 2>&1 \
4675  && lt_shell_append=yes
4676{ echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4677echo "${ECHO_T}$lt_shell_append" >&6; }
4678
4679
4680if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4681  lt_unset=unset
4682else
4683  lt_unset=false
4684fi
4685
4686
4687
4688
4689
4690# test EBCDIC or ASCII
4691case `echo X|tr X '\101'` in
4692 A) # ASCII based system
4693    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4694  lt_SP2NL='tr \040 \012'
4695  lt_NL2SP='tr \015\012 \040\040'
4696  ;;
4697 *) # EBCDIC based system
4698  lt_SP2NL='tr \100 \n'
4699  lt_NL2SP='tr \r\n \100\100'
4700  ;;
4701esac
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4712echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4713if test "${lt_cv_ld_reload_flag+set}" = set; then
4714  echo $ECHO_N "(cached) $ECHO_C" >&6
4715else
4716  lt_cv_ld_reload_flag='-r'
4717fi
4718{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4719echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4720reload_flag=$lt_cv_ld_reload_flag
4721case $reload_flag in
4722"" | " "*) ;;
4723*) reload_flag=" $reload_flag" ;;
4724esac
4725reload_cmds='$LD$reload_flag -o $output$reload_objs'
4726case $host_os in
4727  darwin*)
4728    if test "$GCC" = yes; then
4729      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4730    else
4731      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4732    fi
4733    ;;
4734esac
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4746echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4747if test "${lt_cv_deplibs_check_method+set}" = set; then
4748  echo $ECHO_N "(cached) $ECHO_C" >&6
4749else
4750  lt_cv_file_magic_cmd='$MAGIC_CMD'
4751lt_cv_file_magic_test_file=
4752lt_cv_deplibs_check_method='unknown'
4753# Need to set the preceding variable on all platforms that support
4754# interlibrary dependencies.
4755# 'none' -- dependencies not supported.
4756# `unknown' -- same as none, but documents that we really don't know.
4757# 'pass_all' -- all dependencies passed with no checks.
4758# 'test_compile' -- check by making test program.
4759# 'file_magic [[regex]]' -- check by looking for files in library path
4760# which responds to the $file_magic_cmd with a given extended regex.
4761# If you have `file' or equivalent on your system and you're not sure
4762# whether `pass_all' will *always* work, you probably want this one.
4763
4764case $host_os in
4765aix[4-9]*)
4766  lt_cv_deplibs_check_method=pass_all
4767  ;;
4768
4769beos*)
4770  lt_cv_deplibs_check_method=pass_all
4771  ;;
4772
4773bsdi[45]*)
4774  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4775  lt_cv_file_magic_cmd='/usr/bin/file -L'
4776  lt_cv_file_magic_test_file=/shlib/libc.so
4777  ;;
4778
4779cygwin*)
4780  # func_win32_libid is a shell function defined in ltmain.sh
4781  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4782  lt_cv_file_magic_cmd='func_win32_libid'
4783  ;;
4784
4785mingw* | pw32*)
4786  # Base MSYS/MinGW do not provide the 'file' command needed by
4787  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4788  # unless we find 'file', for example because we are cross-compiling.
4789  if ( file / ) >/dev/null 2>&1; then
4790    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4791    lt_cv_file_magic_cmd='func_win32_libid'
4792  else
4793    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4794    lt_cv_file_magic_cmd='$OBJDUMP -f'
4795  fi
4796  ;;
4797
4798darwin* | rhapsody*)
4799  lt_cv_deplibs_check_method=pass_all
4800  ;;
4801
4802freebsd* | dragonfly*)
4803  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4804    case $host_cpu in
4805    i*86 )
4806      # Not sure whether the presence of OpenBSD here was a mistake.
4807      # Let's accept both of them until this is cleared up.
4808      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4809      lt_cv_file_magic_cmd=/usr/bin/file
4810      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4811      ;;
4812    esac
4813  else
4814    lt_cv_deplibs_check_method=pass_all
4815  fi
4816  ;;
4817
4818gnu*)
4819  lt_cv_deplibs_check_method=pass_all
4820  ;;
4821
4822hpux10.20* | hpux11*)
4823  lt_cv_file_magic_cmd=/usr/bin/file
4824  case $host_cpu in
4825  ia64*)
4826    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4827    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4828    ;;
4829  hppa*64*)
4830    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]'
4831    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4832    ;;
4833  *)
4834    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4835    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4836    ;;
4837  esac
4838  ;;
4839
4840interix[3-9]*)
4841  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4842  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4843  ;;
4844
4845irix5* | irix6* | nonstopux*)
4846  case $LD in
4847  *-32|*"-32 ") libmagic=32-bit;;
4848  *-n32|*"-n32 ") libmagic=N32;;
4849  *-64|*"-64 ") libmagic=64-bit;;
4850  *) libmagic=never-match;;
4851  esac
4852  lt_cv_deplibs_check_method=pass_all
4853  ;;
4854
4855# This must be Linux ELF.
4856linux* | k*bsd*-gnu)
4857  lt_cv_deplibs_check_method=pass_all
4858  ;;
4859
4860netbsd*)
4861  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4862    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4863  else
4864    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4865  fi
4866  ;;
4867
4868newos6*)
4869  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4870  lt_cv_file_magic_cmd=/usr/bin/file
4871  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4872  ;;
4873
4874*nto* | *qnx*)
4875  lt_cv_deplibs_check_method=pass_all
4876  ;;
4877
4878openbsd*)
4879  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4880    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4881  else
4882    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4883  fi
4884  ;;
4885
4886osf3* | osf4* | osf5*)
4887  lt_cv_deplibs_check_method=pass_all
4888  ;;
4889
4890rdos*)
4891  lt_cv_deplibs_check_method=pass_all
4892  ;;
4893
4894solaris*)
4895  lt_cv_deplibs_check_method=pass_all
4896  ;;
4897
4898sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4899  lt_cv_deplibs_check_method=pass_all
4900  ;;
4901
4902sysv4 | sysv4.3*)
4903  case $host_vendor in
4904  motorola)
4905    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]'
4906    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4907    ;;
4908  ncr)
4909    lt_cv_deplibs_check_method=pass_all
4910    ;;
4911  sequent)
4912    lt_cv_file_magic_cmd='/bin/file'
4913    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4914    ;;
4915  sni)
4916    lt_cv_file_magic_cmd='/bin/file'
4917    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4918    lt_cv_file_magic_test_file=/lib/libc.so
4919    ;;
4920  siemens)
4921    lt_cv_deplibs_check_method=pass_all
4922    ;;
4923  pc)
4924    lt_cv_deplibs_check_method=pass_all
4925    ;;
4926  esac
4927  ;;
4928
4929tpf*)
4930  lt_cv_deplibs_check_method=pass_all
4931  ;;
4932esac
4933
4934fi
4935{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4936echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4937file_magic_cmd=$lt_cv_file_magic_cmd
4938deplibs_check_method=$lt_cv_deplibs_check_method
4939test -z "$deplibs_check_method" && deplibs_check_method=unknown
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952if test -n "$ac_tool_prefix"; then
4953  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4954set dummy ${ac_tool_prefix}ar; ac_word=$2
4955{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4956echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4957if test "${ac_cv_prog_AR+set}" = set; then
4958  echo $ECHO_N "(cached) $ECHO_C" >&6
4959else
4960  if test -n "$AR"; then
4961  ac_cv_prog_AR="$AR" # Let the user override the test.
4962else
4963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4964for as_dir in $PATH
4965do
4966  IFS=$as_save_IFS
4967  test -z "$as_dir" && as_dir=.
4968  for ac_exec_ext in '' $ac_executable_extensions; do
4969  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4970    ac_cv_prog_AR="${ac_tool_prefix}ar"
4971    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4972    break 2
4973  fi
4974done
4975done
4976IFS=$as_save_IFS
4977
4978fi
4979fi
4980AR=$ac_cv_prog_AR
4981if test -n "$AR"; then
4982  { echo "$as_me:$LINENO: result: $AR" >&5
4983echo "${ECHO_T}$AR" >&6; }
4984else
4985  { echo "$as_me:$LINENO: result: no" >&5
4986echo "${ECHO_T}no" >&6; }
4987fi
4988
4989
4990fi
4991if test -z "$ac_cv_prog_AR"; then
4992  ac_ct_AR=$AR
4993  # Extract the first word of "ar", so it can be a program name with args.
4994set dummy ar; ac_word=$2
4995{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4996echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4997if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4998  echo $ECHO_N "(cached) $ECHO_C" >&6
4999else
5000  if test -n "$ac_ct_AR"; then
5001  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5002else
5003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5004for as_dir in $PATH
5005do
5006  IFS=$as_save_IFS
5007  test -z "$as_dir" && as_dir=.
5008  for ac_exec_ext in '' $ac_executable_extensions; do
5009  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5010    ac_cv_prog_ac_ct_AR="ar"
5011    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5012    break 2
5013  fi
5014done
5015done
5016IFS=$as_save_IFS
5017
5018fi
5019fi
5020ac_ct_AR=$ac_cv_prog_ac_ct_AR
5021if test -n "$ac_ct_AR"; then
5022  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5023echo "${ECHO_T}$ac_ct_AR" >&6; }
5024else
5025  { echo "$as_me:$LINENO: result: no" >&5
5026echo "${ECHO_T}no" >&6; }
5027fi
5028
5029  if test "x$ac_ct_AR" = x; then
5030    AR="false"
5031  else
5032    case $cross_compiling:$ac_tool_warned in
5033yes:)
5034{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5035whose name does not start with the host triplet.  If you think this
5036configuration is useful to you, please write to autoconf@gnu.org." >&5
5037echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5038whose name does not start with the host triplet.  If you think this
5039configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5040ac_tool_warned=yes ;;
5041esac
5042    AR=$ac_ct_AR
5043  fi
5044else
5045  AR="$ac_cv_prog_AR"
5046fi
5047
5048test -z "$AR" && AR=ar
5049test -z "$AR_FLAGS" && AR_FLAGS=cru
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061if test -n "$ac_tool_prefix"; then
5062  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5063set dummy ${ac_tool_prefix}strip; ac_word=$2
5064{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5066if test "${ac_cv_prog_STRIP+set}" = set; then
5067  echo $ECHO_N "(cached) $ECHO_C" >&6
5068else
5069  if test -n "$STRIP"; then
5070  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5071else
5072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073for as_dir in $PATH
5074do
5075  IFS=$as_save_IFS
5076  test -z "$as_dir" && as_dir=.
5077  for ac_exec_ext in '' $ac_executable_extensions; do
5078  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5079    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5080    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5081    break 2
5082  fi
5083done
5084done
5085IFS=$as_save_IFS
5086
5087fi
5088fi
5089STRIP=$ac_cv_prog_STRIP
5090if test -n "$STRIP"; then
5091  { echo "$as_me:$LINENO: result: $STRIP" >&5
5092echo "${ECHO_T}$STRIP" >&6; }
5093else
5094  { echo "$as_me:$LINENO: result: no" >&5
5095echo "${ECHO_T}no" >&6; }
5096fi
5097
5098
5099fi
5100if test -z "$ac_cv_prog_STRIP"; then
5101  ac_ct_STRIP=$STRIP
5102  # Extract the first word of "strip", so it can be a program name with args.
5103set dummy strip; ac_word=$2
5104{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5106if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5107  echo $ECHO_N "(cached) $ECHO_C" >&6
5108else
5109  if test -n "$ac_ct_STRIP"; then
5110  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5111else
5112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5113for as_dir in $PATH
5114do
5115  IFS=$as_save_IFS
5116  test -z "$as_dir" && as_dir=.
5117  for ac_exec_ext in '' $ac_executable_extensions; do
5118  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5119    ac_cv_prog_ac_ct_STRIP="strip"
5120    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5121    break 2
5122  fi
5123done
5124done
5125IFS=$as_save_IFS
5126
5127fi
5128fi
5129ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5130if test -n "$ac_ct_STRIP"; then
5131  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5132echo "${ECHO_T}$ac_ct_STRIP" >&6; }
5133else
5134  { echo "$as_me:$LINENO: result: no" >&5
5135echo "${ECHO_T}no" >&6; }
5136fi
5137
5138  if test "x$ac_ct_STRIP" = x; then
5139    STRIP=":"
5140  else
5141    case $cross_compiling:$ac_tool_warned in
5142yes:)
5143{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5144whose name does not start with the host triplet.  If you think this
5145configuration is useful to you, please write to autoconf@gnu.org." >&5
5146echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5147whose name does not start with the host triplet.  If you think this
5148configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5149ac_tool_warned=yes ;;
5150esac
5151    STRIP=$ac_ct_STRIP
5152  fi
5153else
5154  STRIP="$ac_cv_prog_STRIP"
5155fi
5156
5157test -z "$STRIP" && STRIP=:
5158
5159
5160
5161
5162
5163
5164if test -n "$ac_tool_prefix"; then
5165  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5166set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5167{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5168echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5169if test "${ac_cv_prog_RANLIB+set}" = set; then
5170  echo $ECHO_N "(cached) $ECHO_C" >&6
5171else
5172  if test -n "$RANLIB"; then
5173  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5174else
5175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176for as_dir in $PATH
5177do
5178  IFS=$as_save_IFS
5179  test -z "$as_dir" && as_dir=.
5180  for ac_exec_ext in '' $ac_executable_extensions; do
5181  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5182    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5183    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5184    break 2
5185  fi
5186done
5187done
5188IFS=$as_save_IFS
5189
5190fi
5191fi
5192RANLIB=$ac_cv_prog_RANLIB
5193if test -n "$RANLIB"; then
5194  { echo "$as_me:$LINENO: result: $RANLIB" >&5
5195echo "${ECHO_T}$RANLIB" >&6; }
5196else
5197  { echo "$as_me:$LINENO: result: no" >&5
5198echo "${ECHO_T}no" >&6; }
5199fi
5200
5201
5202fi
5203if test -z "$ac_cv_prog_RANLIB"; then
5204  ac_ct_RANLIB=$RANLIB
5205  # Extract the first word of "ranlib", so it can be a program name with args.
5206set dummy ranlib; ac_word=$2
5207{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5208echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5209if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5210  echo $ECHO_N "(cached) $ECHO_C" >&6
5211else
5212  if test -n "$ac_ct_RANLIB"; then
5213  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5214else
5215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5216for as_dir in $PATH
5217do
5218  IFS=$as_save_IFS
5219  test -z "$as_dir" && as_dir=.
5220  for ac_exec_ext in '' $ac_executable_extensions; do
5221  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5222    ac_cv_prog_ac_ct_RANLIB="ranlib"
5223    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5224    break 2
5225  fi
5226done
5227done
5228IFS=$as_save_IFS
5229
5230fi
5231fi
5232ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5233if test -n "$ac_ct_RANLIB"; then
5234  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5235echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5236else
5237  { echo "$as_me:$LINENO: result: no" >&5
5238echo "${ECHO_T}no" >&6; }
5239fi
5240
5241  if test "x$ac_ct_RANLIB" = x; then
5242    RANLIB=":"
5243  else
5244    case $cross_compiling:$ac_tool_warned in
5245yes:)
5246{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5247whose name does not start with the host triplet.  If you think this
5248configuration is useful to you, please write to autoconf@gnu.org." >&5
5249echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5250whose name does not start with the host triplet.  If you think this
5251configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5252ac_tool_warned=yes ;;
5253esac
5254    RANLIB=$ac_ct_RANLIB
5255  fi
5256else
5257  RANLIB="$ac_cv_prog_RANLIB"
5258fi
5259
5260test -z "$RANLIB" && RANLIB=:
5261
5262
5263
5264
5265
5266
5267# Determine commands to create old-style static archives.
5268old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5269old_postinstall_cmds='chmod 644 $oldlib'
5270old_postuninstall_cmds=
5271
5272if test -n "$RANLIB"; then
5273  case $host_os in
5274  openbsd*)
5275    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5276    ;;
5277  *)
5278    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5279    ;;
5280  esac
5281  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5282fi
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317# If no C compiler was specified, use CC.
5318LTCC=${LTCC-"$CC"}
5319
5320# If no C compiler flags were specified, use CFLAGS.
5321LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5322
5323# Allow CC to be a program name with arguments.
5324compiler=$CC
5325
5326
5327# Check for command to grab the raw symbol name followed by C symbol from nm.
5328{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5329echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5330if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5331  echo $ECHO_N "(cached) $ECHO_C" >&6
5332else
5333
5334# These are sane defaults that work on at least a few old systems.
5335# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5336
5337# Character class describing NM global symbol codes.
5338symcode='[BCDEGRST]'
5339
5340# Regexp to match symbols that can be accessed directly from C.
5341sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5342
5343# Define system-specific variables.
5344case $host_os in
5345aix*)
5346  symcode='[BCDT]'
5347  ;;
5348cygwin* | mingw* | pw32*)
5349  symcode='[ABCDGISTW]'
5350  ;;
5351hpux*)
5352  if test "$host_cpu" = ia64; then
5353    symcode='[ABCDEGRST]'
5354  fi
5355  ;;
5356irix* | nonstopux*)
5357  symcode='[BCDEGRST]'
5358  ;;
5359osf*)
5360  symcode='[BCDEGQRST]'
5361  ;;
5362solaris*)
5363  symcode='[BDRT]'
5364  ;;
5365sco3.2v5*)
5366  symcode='[DT]'
5367  ;;
5368sysv4.2uw2*)
5369  symcode='[DT]'
5370  ;;
5371sysv5* | sco5v6* | unixware* | OpenUNIX*)
5372  symcode='[ABDT]'
5373  ;;
5374sysv4)
5375  symcode='[DFNSTU]'
5376  ;;
5377esac
5378
5379# If we're using GNU nm, then use its standard symbol codes.
5380case `$NM -V 2>&1` in
5381*GNU* | *'with BFD'*)
5382  symcode='[ABCDGIRSTW]' ;;
5383esac
5384
5385# Transform an extracted symbol line into a proper C declaration.
5386# Some systems (esp. on ia64) link data and code symbols differently,
5387# so use this general approach.
5388lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5389
5390# Transform an extracted symbol line into symbol name and symbol address
5391lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5392lt_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'"
5393
5394# Handle CRLF in mingw tool chain
5395opt_cr=
5396case $build_os in
5397mingw*)
5398  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5399  ;;
5400esac
5401
5402# Try without a prefix underscore, then with it.
5403for ac_symprfx in "" "_"; do
5404
5405  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5406  symxfrm="\\1 $ac_symprfx\\2 \\2"
5407
5408  # Write the raw and C identifiers.
5409  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5410    # Fake it for dumpbin and say T for any non-static function
5411    # and D for any global variable.
5412    # Also find C++ and __fastcall symbols from MSVC++,
5413    # which start with @ or ?.
5414    lt_cv_sys_global_symbol_pipe="$AWK '"\
5415"     {last_section=section; section=\$ 3};"\
5416"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5417"     \$ 0!~/External *\|/{next};"\
5418"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5419"     {if(hide[section]) next};"\
5420"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5421"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5422"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5423"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5424"     ' prfx=^$ac_symprfx"
5425  else
5426    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5427  fi
5428
5429  # Check to see that the pipe works correctly.
5430  pipe_works=no
5431
5432  rm -f conftest*
5433  cat > conftest.$ac_ext <<_LT_EOF
5434#ifdef __cplusplus
5435extern "C" {
5436#endif
5437char nm_test_var;
5438void nm_test_func(void);
5439void nm_test_func(void){}
5440#ifdef __cplusplus
5441}
5442#endif
5443int main(){nm_test_var='a';nm_test_func();return(0);}
5444_LT_EOF
5445
5446  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5447  (eval $ac_compile) 2>&5
5448  ac_status=$?
5449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450  (exit $ac_status); }; then
5451    # Now try to grab the symbols.
5452    nlist=conftest.nm
5453    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5454  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5455  ac_status=$?
5456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457  (exit $ac_status); } && test -s "$nlist"; then
5458      # Try sorting and uniquifying the output.
5459      if sort "$nlist" | uniq > "$nlist"T; then
5460	mv -f "$nlist"T "$nlist"
5461      else
5462	rm -f "$nlist"T
5463      fi
5464
5465      # Make sure that we snagged all the symbols we need.
5466      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5467	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5468	  cat <<_LT_EOF > conftest.$ac_ext
5469#ifdef __cplusplus
5470extern "C" {
5471#endif
5472
5473_LT_EOF
5474	  # Now generate the symbol file.
5475	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5476
5477	  cat <<_LT_EOF >> conftest.$ac_ext
5478
5479/* The mapping between symbol names and symbols.  */
5480const struct {
5481  const char *name;
5482  void       *address;
5483}
5484lt__PROGRAM__LTX_preloaded_symbols[] =
5485{
5486  { "@PROGRAM@", (void *) 0 },
5487_LT_EOF
5488	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5489	  cat <<\_LT_EOF >> conftest.$ac_ext
5490  {0, (void *) 0}
5491};
5492
5493/* This works around a problem in FreeBSD linker */
5494#ifdef FREEBSD_WORKAROUND
5495static const void *lt_preloaded_setup() {
5496  return lt__PROGRAM__LTX_preloaded_symbols;
5497}
5498#endif
5499
5500#ifdef __cplusplus
5501}
5502#endif
5503_LT_EOF
5504	  # Now try linking the two files.
5505	  mv conftest.$ac_objext conftstm.$ac_objext
5506	  lt_save_LIBS="$LIBS"
5507	  lt_save_CFLAGS="$CFLAGS"
5508	  LIBS="conftstm.$ac_objext"
5509	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5510	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5511  (eval $ac_link) 2>&5
5512  ac_status=$?
5513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5515	    pipe_works=yes
5516	  fi
5517	  LIBS="$lt_save_LIBS"
5518	  CFLAGS="$lt_save_CFLAGS"
5519	else
5520	  echo "cannot find nm_test_func in $nlist" >&5
5521	fi
5522      else
5523	echo "cannot find nm_test_var in $nlist" >&5
5524      fi
5525    else
5526      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5527    fi
5528  else
5529    echo "$progname: failed program was:" >&5
5530    cat conftest.$ac_ext >&5
5531  fi
5532  rm -rf conftest* conftst*
5533
5534  # Do not use the global_symbol_pipe unless it works.
5535  if test "$pipe_works" = yes; then
5536    break
5537  else
5538    lt_cv_sys_global_symbol_pipe=
5539  fi
5540done
5541
5542fi
5543
5544if test -z "$lt_cv_sys_global_symbol_pipe"; then
5545  lt_cv_sys_global_symbol_to_cdecl=
5546fi
5547if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5548  { echo "$as_me:$LINENO: result: failed" >&5
5549echo "${ECHO_T}failed" >&6; }
5550else
5551  { echo "$as_me:$LINENO: result: ok" >&5
5552echo "${ECHO_T}ok" >&6; }
5553fi
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577# Check whether --enable-libtool-lock was given.
5578if test "${enable_libtool_lock+set}" = set; then
5579  enableval=$enable_libtool_lock;
5580fi
5581
5582test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5583
5584# Some flags need to be propagated to the compiler or linker for good
5585# libtool support.
5586case $host in
5587ia64-*-hpux*)
5588  # Find out which ABI we are using.
5589  echo 'int i;' > conftest.$ac_ext
5590  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5591  (eval $ac_compile) 2>&5
5592  ac_status=$?
5593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594  (exit $ac_status); }; then
5595    case `/usr/bin/file conftest.$ac_objext` in
5596      *ELF-32*)
5597	HPUX_IA64_MODE="32"
5598	;;
5599      *ELF-64*)
5600	HPUX_IA64_MODE="64"
5601	;;
5602    esac
5603  fi
5604  rm -rf conftest*
5605  ;;
5606*-*-irix6*)
5607  # Find out which ABI we are using.
5608  echo '#line 5608 "configure"' > conftest.$ac_ext
5609  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5610  (eval $ac_compile) 2>&5
5611  ac_status=$?
5612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613  (exit $ac_status); }; then
5614    if test "$lt_cv_prog_gnu_ld" = yes; then
5615      case `/usr/bin/file conftest.$ac_objext` in
5616	*32-bit*)
5617	  LD="${LD-ld} -melf32bsmip"
5618	  ;;
5619	*N32*)
5620	  LD="${LD-ld} -melf32bmipn32"
5621	  ;;
5622	*64-bit*)
5623	  LD="${LD-ld} -melf64bmip"
5624	;;
5625      esac
5626    else
5627      case `/usr/bin/file conftest.$ac_objext` in
5628	*32-bit*)
5629	  LD="${LD-ld} -32"
5630	  ;;
5631	*N32*)
5632	  LD="${LD-ld} -n32"
5633	  ;;
5634	*64-bit*)
5635	  LD="${LD-ld} -64"
5636	  ;;
5637      esac
5638    fi
5639  fi
5640  rm -rf conftest*
5641  ;;
5642
5643x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5644s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5645  # Find out which ABI we are using.
5646  echo 'int i;' > conftest.$ac_ext
5647  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5648  (eval $ac_compile) 2>&5
5649  ac_status=$?
5650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651  (exit $ac_status); }; then
5652    case `/usr/bin/file conftest.o` in
5653      *32-bit*)
5654	case $host in
5655	  x86_64-*kfreebsd*-gnu)
5656	    LD="${LD-ld} -m elf_i386_fbsd"
5657	    ;;
5658	  x86_64-*linux*)
5659	    LD="${LD-ld} -m elf_i386"
5660	    ;;
5661	  ppc64-*linux*|powerpc64-*linux*)
5662	    LD="${LD-ld} -m elf32ppclinux"
5663	    ;;
5664	  s390x-*linux*)
5665	    LD="${LD-ld} -m elf_s390"
5666	    ;;
5667	  sparc64-*linux*)
5668	    LD="${LD-ld} -m elf32_sparc"
5669	    ;;
5670	esac
5671	;;
5672      *64-bit*)
5673	case $host in
5674	  x86_64-*kfreebsd*-gnu)
5675	    LD="${LD-ld} -m elf_x86_64_fbsd"
5676	    ;;
5677	  x86_64-*linux*)
5678	    LD="${LD-ld} -m elf_x86_64"
5679	    ;;
5680	  ppc*-*linux*|powerpc*-*linux*)
5681	    LD="${LD-ld} -m elf64ppc"
5682	    ;;
5683	  s390*-*linux*|s390*-*tpf*)
5684	    LD="${LD-ld} -m elf64_s390"
5685	    ;;
5686	  sparc*-*linux*)
5687	    LD="${LD-ld} -m elf64_sparc"
5688	    ;;
5689	esac
5690	;;
5691    esac
5692  fi
5693  rm -rf conftest*
5694  ;;
5695
5696*-*-sco3.2v5*)
5697  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5698  SAVE_CFLAGS="$CFLAGS"
5699  CFLAGS="$CFLAGS -belf"
5700  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5701echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5702if test "${lt_cv_cc_needs_belf+set}" = set; then
5703  echo $ECHO_N "(cached) $ECHO_C" >&6
5704else
5705  ac_ext=c
5706ac_cpp='$CPP $CPPFLAGS'
5707ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5708ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5709ac_compiler_gnu=$ac_cv_c_compiler_gnu
5710
5711     cat >conftest.$ac_ext <<_ACEOF
5712/* confdefs.h.  */
5713_ACEOF
5714cat confdefs.h >>conftest.$ac_ext
5715cat >>conftest.$ac_ext <<_ACEOF
5716/* end confdefs.h.  */
5717
5718int
5719main ()
5720{
5721
5722  ;
5723  return 0;
5724}
5725_ACEOF
5726rm -f conftest.$ac_objext conftest$ac_exeext
5727if { (ac_try="$ac_link"
5728case "(($ac_try" in
5729  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5730  *) ac_try_echo=$ac_try;;
5731esac
5732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5733  (eval "$ac_link") 2>conftest.er1
5734  ac_status=$?
5735  grep -v '^ *+' conftest.er1 >conftest.err
5736  rm -f conftest.er1
5737  cat conftest.err >&5
5738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739  (exit $ac_status); } && {
5740	 test -z "$ac_c_werror_flag" ||
5741	 test ! -s conftest.err
5742       } && test -s conftest$ac_exeext &&
5743       $as_test_x conftest$ac_exeext; then
5744  lt_cv_cc_needs_belf=yes
5745else
5746  echo "$as_me: failed program was:" >&5
5747sed 's/^/| /' conftest.$ac_ext >&5
5748
5749	lt_cv_cc_needs_belf=no
5750fi
5751
5752rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5753      conftest$ac_exeext conftest.$ac_ext
5754     ac_ext=c
5755ac_cpp='$CPP $CPPFLAGS'
5756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5758ac_compiler_gnu=$ac_cv_c_compiler_gnu
5759
5760fi
5761{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5762echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5763  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5764    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5765    CFLAGS="$SAVE_CFLAGS"
5766  fi
5767  ;;
5768sparc*-*solaris*)
5769  # Find out which ABI we are using.
5770  echo 'int i;' > conftest.$ac_ext
5771  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5772  (eval $ac_compile) 2>&5
5773  ac_status=$?
5774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775  (exit $ac_status); }; then
5776    case `/usr/bin/file conftest.o` in
5777    *64-bit*)
5778      case $lt_cv_prog_gnu_ld in
5779      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5780      *)
5781	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5782	  LD="${LD-ld} -64"
5783	fi
5784	;;
5785      esac
5786      ;;
5787    esac
5788  fi
5789  rm -rf conftest*
5790  ;;
5791esac
5792
5793need_locks="$enable_libtool_lock"
5794
5795
5796  case $host_os in
5797    rhapsody* | darwin*)
5798    if test -n "$ac_tool_prefix"; then
5799  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5800set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5801{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5802echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5803if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5804  echo $ECHO_N "(cached) $ECHO_C" >&6
5805else
5806  if test -n "$DSYMUTIL"; then
5807  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5808else
5809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5810for as_dir in $PATH
5811do
5812  IFS=$as_save_IFS
5813  test -z "$as_dir" && as_dir=.
5814  for ac_exec_ext in '' $ac_executable_extensions; do
5815  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5816    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5817    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5818    break 2
5819  fi
5820done
5821done
5822IFS=$as_save_IFS
5823
5824fi
5825fi
5826DSYMUTIL=$ac_cv_prog_DSYMUTIL
5827if test -n "$DSYMUTIL"; then
5828  { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5829echo "${ECHO_T}$DSYMUTIL" >&6; }
5830else
5831  { echo "$as_me:$LINENO: result: no" >&5
5832echo "${ECHO_T}no" >&6; }
5833fi
5834
5835
5836fi
5837if test -z "$ac_cv_prog_DSYMUTIL"; then
5838  ac_ct_DSYMUTIL=$DSYMUTIL
5839  # Extract the first word of "dsymutil", so it can be a program name with args.
5840set dummy dsymutil; ac_word=$2
5841{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5843if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5844  echo $ECHO_N "(cached) $ECHO_C" >&6
5845else
5846  if test -n "$ac_ct_DSYMUTIL"; then
5847  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5848else
5849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5850for as_dir in $PATH
5851do
5852  IFS=$as_save_IFS
5853  test -z "$as_dir" && as_dir=.
5854  for ac_exec_ext in '' $ac_executable_extensions; do
5855  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5856    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5857    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5858    break 2
5859  fi
5860done
5861done
5862IFS=$as_save_IFS
5863
5864fi
5865fi
5866ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5867if test -n "$ac_ct_DSYMUTIL"; then
5868  { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5869echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
5870else
5871  { echo "$as_me:$LINENO: result: no" >&5
5872echo "${ECHO_T}no" >&6; }
5873fi
5874
5875  if test "x$ac_ct_DSYMUTIL" = x; then
5876    DSYMUTIL=":"
5877  else
5878    case $cross_compiling:$ac_tool_warned in
5879yes:)
5880{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5881whose name does not start with the host triplet.  If you think this
5882configuration is useful to you, please write to autoconf@gnu.org." >&5
5883echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5884whose name does not start with the host triplet.  If you think this
5885configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5886ac_tool_warned=yes ;;
5887esac
5888    DSYMUTIL=$ac_ct_DSYMUTIL
5889  fi
5890else
5891  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5892fi
5893
5894    if test -n "$ac_tool_prefix"; then
5895  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5896set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5897{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5899if test "${ac_cv_prog_NMEDIT+set}" = set; then
5900  echo $ECHO_N "(cached) $ECHO_C" >&6
5901else
5902  if test -n "$NMEDIT"; then
5903  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5904else
5905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5906for as_dir in $PATH
5907do
5908  IFS=$as_save_IFS
5909  test -z "$as_dir" && as_dir=.
5910  for ac_exec_ext in '' $ac_executable_extensions; do
5911  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5912    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5913    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5914    break 2
5915  fi
5916done
5917done
5918IFS=$as_save_IFS
5919
5920fi
5921fi
5922NMEDIT=$ac_cv_prog_NMEDIT
5923if test -n "$NMEDIT"; then
5924  { echo "$as_me:$LINENO: result: $NMEDIT" >&5
5925echo "${ECHO_T}$NMEDIT" >&6; }
5926else
5927  { echo "$as_me:$LINENO: result: no" >&5
5928echo "${ECHO_T}no" >&6; }
5929fi
5930
5931
5932fi
5933if test -z "$ac_cv_prog_NMEDIT"; then
5934  ac_ct_NMEDIT=$NMEDIT
5935  # Extract the first word of "nmedit", so it can be a program name with args.
5936set dummy nmedit; ac_word=$2
5937{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5938echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5939if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5940  echo $ECHO_N "(cached) $ECHO_C" >&6
5941else
5942  if test -n "$ac_ct_NMEDIT"; then
5943  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5944else
5945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5946for as_dir in $PATH
5947do
5948  IFS=$as_save_IFS
5949  test -z "$as_dir" && as_dir=.
5950  for ac_exec_ext in '' $ac_executable_extensions; do
5951  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5952    ac_cv_prog_ac_ct_NMEDIT="nmedit"
5953    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5954    break 2
5955  fi
5956done
5957done
5958IFS=$as_save_IFS
5959
5960fi
5961fi
5962ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5963if test -n "$ac_ct_NMEDIT"; then
5964  { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5965echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
5966else
5967  { echo "$as_me:$LINENO: result: no" >&5
5968echo "${ECHO_T}no" >&6; }
5969fi
5970
5971  if test "x$ac_ct_NMEDIT" = x; then
5972    NMEDIT=":"
5973  else
5974    case $cross_compiling:$ac_tool_warned in
5975yes:)
5976{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5977whose name does not start with the host triplet.  If you think this
5978configuration is useful to you, please write to autoconf@gnu.org." >&5
5979echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5980whose name does not start with the host triplet.  If you think this
5981configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5982ac_tool_warned=yes ;;
5983esac
5984    NMEDIT=$ac_ct_NMEDIT
5985  fi
5986else
5987  NMEDIT="$ac_cv_prog_NMEDIT"
5988fi
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001    { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6002echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
6003if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6004  echo $ECHO_N "(cached) $ECHO_C" >&6
6005else
6006  lt_cv_apple_cc_single_mod=no
6007      if test -z "${LT_MULTI_MODULE}"; then
6008	# By default we will add the -single_module flag. You can override
6009	# by either setting the environment variable LT_MULTI_MODULE
6010	# non-empty at configure time, or by adding -multi_module to the
6011	# link flags.
6012	echo "int foo(void){return 1;}" > conftest.c
6013	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6014	  -dynamiclib ${wl}-single_module conftest.c
6015	if test -f libconftest.dylib; then
6016	  lt_cv_apple_cc_single_mod=yes
6017	  rm -rf libconftest.dylib*
6018	fi
6019	rm conftest.c
6020      fi
6021fi
6022{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6023echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
6024    { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6025echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
6026if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6027  echo $ECHO_N "(cached) $ECHO_C" >&6
6028else
6029  lt_cv_ld_exported_symbols_list=no
6030      save_LDFLAGS=$LDFLAGS
6031      echo "_main" > conftest.sym
6032      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6033      cat >conftest.$ac_ext <<_ACEOF
6034/* confdefs.h.  */
6035_ACEOF
6036cat confdefs.h >>conftest.$ac_ext
6037cat >>conftest.$ac_ext <<_ACEOF
6038/* end confdefs.h.  */
6039
6040int
6041main ()
6042{
6043
6044  ;
6045  return 0;
6046}
6047_ACEOF
6048rm -f conftest.$ac_objext conftest$ac_exeext
6049if { (ac_try="$ac_link"
6050case "(($ac_try" in
6051  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6052  *) ac_try_echo=$ac_try;;
6053esac
6054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6055  (eval "$ac_link") 2>conftest.er1
6056  ac_status=$?
6057  grep -v '^ *+' conftest.er1 >conftest.err
6058  rm -f conftest.er1
6059  cat conftest.err >&5
6060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061  (exit $ac_status); } && {
6062	 test -z "$ac_c_werror_flag" ||
6063	 test ! -s conftest.err
6064       } && test -s conftest$ac_exeext &&
6065       $as_test_x conftest$ac_exeext; then
6066  lt_cv_ld_exported_symbols_list=yes
6067else
6068  echo "$as_me: failed program was:" >&5
6069sed 's/^/| /' conftest.$ac_ext >&5
6070
6071	lt_cv_ld_exported_symbols_list=no
6072fi
6073
6074rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6075      conftest$ac_exeext conftest.$ac_ext
6076	LDFLAGS="$save_LDFLAGS"
6077
6078fi
6079{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6080echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
6081    case $host_os in
6082    rhapsody* | darwin1.[012])
6083      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6084    darwin1.*)
6085      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6086    darwin*) # darwin 5.x on
6087      # if running on 10.5 or later, the deployment target defaults
6088      # to the OS version, if on x86, and 10.4, the deployment
6089      # target defaults to 10.4. Don't you love it?
6090      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6091	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6092	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6093	10.[012]*)
6094	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6095	10.*)
6096	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6097      esac
6098    ;;
6099  esac
6100    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6101      _lt_dar_single_mod='$single_module'
6102    fi
6103    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6104      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6105    else
6106      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6107    fi
6108    if test "$DSYMUTIL" != ":"; then
6109      _lt_dsymutil='~$DSYMUTIL $lib || :'
6110    else
6111      _lt_dsymutil=
6112    fi
6113    ;;
6114  esac
6115
6116
6117{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6118echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6119if test "${ac_cv_header_stdc+set}" = set; then
6120  echo $ECHO_N "(cached) $ECHO_C" >&6
6121else
6122  cat >conftest.$ac_ext <<_ACEOF
6123/* confdefs.h.  */
6124_ACEOF
6125cat confdefs.h >>conftest.$ac_ext
6126cat >>conftest.$ac_ext <<_ACEOF
6127/* end confdefs.h.  */
6128#include <stdlib.h>
6129#include <stdarg.h>
6130#include <string.h>
6131#include <float.h>
6132
6133int
6134main ()
6135{
6136
6137  ;
6138  return 0;
6139}
6140_ACEOF
6141rm -f conftest.$ac_objext
6142if { (ac_try="$ac_compile"
6143case "(($ac_try" in
6144  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6145  *) ac_try_echo=$ac_try;;
6146esac
6147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6148  (eval "$ac_compile") 2>conftest.er1
6149  ac_status=$?
6150  grep -v '^ *+' conftest.er1 >conftest.err
6151  rm -f conftest.er1
6152  cat conftest.err >&5
6153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154  (exit $ac_status); } && {
6155	 test -z "$ac_c_werror_flag" ||
6156	 test ! -s conftest.err
6157       } && test -s conftest.$ac_objext; then
6158  ac_cv_header_stdc=yes
6159else
6160  echo "$as_me: failed program was:" >&5
6161sed 's/^/| /' conftest.$ac_ext >&5
6162
6163	ac_cv_header_stdc=no
6164fi
6165
6166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6167
6168if test $ac_cv_header_stdc = yes; then
6169  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6170  cat >conftest.$ac_ext <<_ACEOF
6171/* confdefs.h.  */
6172_ACEOF
6173cat confdefs.h >>conftest.$ac_ext
6174cat >>conftest.$ac_ext <<_ACEOF
6175/* end confdefs.h.  */
6176#include <string.h>
6177
6178_ACEOF
6179if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6180  $EGREP "memchr" >/dev/null 2>&1; then
6181  :
6182else
6183  ac_cv_header_stdc=no
6184fi
6185rm -f conftest*
6186
6187fi
6188
6189if test $ac_cv_header_stdc = yes; then
6190  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6191  cat >conftest.$ac_ext <<_ACEOF
6192/* confdefs.h.  */
6193_ACEOF
6194cat confdefs.h >>conftest.$ac_ext
6195cat >>conftest.$ac_ext <<_ACEOF
6196/* end confdefs.h.  */
6197#include <stdlib.h>
6198
6199_ACEOF
6200if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6201  $EGREP "free" >/dev/null 2>&1; then
6202  :
6203else
6204  ac_cv_header_stdc=no
6205fi
6206rm -f conftest*
6207
6208fi
6209
6210if test $ac_cv_header_stdc = yes; then
6211  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6212  if test "$cross_compiling" = yes; then
6213  :
6214else
6215  cat >conftest.$ac_ext <<_ACEOF
6216/* confdefs.h.  */
6217_ACEOF
6218cat confdefs.h >>conftest.$ac_ext
6219cat >>conftest.$ac_ext <<_ACEOF
6220/* end confdefs.h.  */
6221#include <ctype.h>
6222#include <stdlib.h>
6223#if ((' ' & 0x0FF) == 0x020)
6224# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6225# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6226#else
6227# define ISLOWER(c) \
6228		   (('a' <= (c) && (c) <= 'i') \
6229		     || ('j' <= (c) && (c) <= 'r') \
6230		     || ('s' <= (c) && (c) <= 'z'))
6231# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6232#endif
6233
6234#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6235int
6236main ()
6237{
6238  int i;
6239  for (i = 0; i < 256; i++)
6240    if (XOR (islower (i), ISLOWER (i))
6241	|| toupper (i) != TOUPPER (i))
6242      return 2;
6243  return 0;
6244}
6245_ACEOF
6246rm -f conftest$ac_exeext
6247if { (ac_try="$ac_link"
6248case "(($ac_try" in
6249  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6250  *) ac_try_echo=$ac_try;;
6251esac
6252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6253  (eval "$ac_link") 2>&5
6254  ac_status=$?
6255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6257  { (case "(($ac_try" in
6258  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6259  *) ac_try_echo=$ac_try;;
6260esac
6261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6262  (eval "$ac_try") 2>&5
6263  ac_status=$?
6264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265  (exit $ac_status); }; }; then
6266  :
6267else
6268  echo "$as_me: program exited with status $ac_status" >&5
6269echo "$as_me: failed program was:" >&5
6270sed 's/^/| /' conftest.$ac_ext >&5
6271
6272( exit $ac_status )
6273ac_cv_header_stdc=no
6274fi
6275rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6276fi
6277
6278
6279fi
6280fi
6281{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6282echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6283if test $ac_cv_header_stdc = yes; then
6284
6285cat >>confdefs.h <<\_ACEOF
6286#define STDC_HEADERS 1
6287_ACEOF
6288
6289fi
6290
6291# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6302		  inttypes.h stdint.h unistd.h
6303do
6304as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6305{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6306echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6307if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6308  echo $ECHO_N "(cached) $ECHO_C" >&6
6309else
6310  cat >conftest.$ac_ext <<_ACEOF
6311/* confdefs.h.  */
6312_ACEOF
6313cat confdefs.h >>conftest.$ac_ext
6314cat >>conftest.$ac_ext <<_ACEOF
6315/* end confdefs.h.  */
6316$ac_includes_default
6317
6318#include <$ac_header>
6319_ACEOF
6320rm -f conftest.$ac_objext
6321if { (ac_try="$ac_compile"
6322case "(($ac_try" in
6323  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6324  *) ac_try_echo=$ac_try;;
6325esac
6326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6327  (eval "$ac_compile") 2>conftest.er1
6328  ac_status=$?
6329  grep -v '^ *+' conftest.er1 >conftest.err
6330  rm -f conftest.er1
6331  cat conftest.err >&5
6332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333  (exit $ac_status); } && {
6334	 test -z "$ac_c_werror_flag" ||
6335	 test ! -s conftest.err
6336       } && test -s conftest.$ac_objext; then
6337  eval "$as_ac_Header=yes"
6338else
6339  echo "$as_me: failed program was:" >&5
6340sed 's/^/| /' conftest.$ac_ext >&5
6341
6342	eval "$as_ac_Header=no"
6343fi
6344
6345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6346fi
6347ac_res=`eval echo '${'$as_ac_Header'}'`
6348	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6349echo "${ECHO_T}$ac_res" >&6; }
6350if test `eval echo '${'$as_ac_Header'}'` = yes; then
6351  cat >>confdefs.h <<_ACEOF
6352#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6353_ACEOF
6354
6355fi
6356
6357done
6358
6359
6360
6361for ac_header in dlfcn.h
6362do
6363as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6364{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6365echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6366if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6367  echo $ECHO_N "(cached) $ECHO_C" >&6
6368else
6369  cat >conftest.$ac_ext <<_ACEOF
6370/* confdefs.h.  */
6371_ACEOF
6372cat confdefs.h >>conftest.$ac_ext
6373cat >>conftest.$ac_ext <<_ACEOF
6374/* end confdefs.h.  */
6375$ac_includes_default
6376
6377#include <$ac_header>
6378_ACEOF
6379rm -f conftest.$ac_objext
6380if { (ac_try="$ac_compile"
6381case "(($ac_try" in
6382  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6383  *) ac_try_echo=$ac_try;;
6384esac
6385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6386  (eval "$ac_compile") 2>conftest.er1
6387  ac_status=$?
6388  grep -v '^ *+' conftest.er1 >conftest.err
6389  rm -f conftest.er1
6390  cat conftest.err >&5
6391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392  (exit $ac_status); } && {
6393	 test -z "$ac_c_werror_flag" ||
6394	 test ! -s conftest.err
6395       } && test -s conftest.$ac_objext; then
6396  eval "$as_ac_Header=yes"
6397else
6398  echo "$as_me: failed program was:" >&5
6399sed 's/^/| /' conftest.$ac_ext >&5
6400
6401	eval "$as_ac_Header=no"
6402fi
6403
6404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6405fi
6406ac_res=`eval echo '${'$as_ac_Header'}'`
6407	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6408echo "${ECHO_T}$ac_res" >&6; }
6409if test `eval echo '${'$as_ac_Header'}'` = yes; then
6410  cat >>confdefs.h <<_ACEOF
6411#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6412_ACEOF
6413
6414fi
6415
6416done
6417
6418
6419
6420# Set options
6421
6422
6423
6424        enable_dlopen=no
6425
6426
6427  enable_win32_dll=no
6428
6429
6430            # Check whether --enable-shared was given.
6431if test "${enable_shared+set}" = set; then
6432  enableval=$enable_shared; p=${PACKAGE-default}
6433    case $enableval in
6434    yes) enable_shared=yes ;;
6435    no) enable_shared=no ;;
6436    *)
6437      enable_shared=no
6438      # Look at the argument we got.  We use all the common list separators.
6439      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6440      for pkg in $enableval; do
6441	IFS="$lt_save_ifs"
6442	if test "X$pkg" = "X$p"; then
6443	  enable_shared=yes
6444	fi
6445      done
6446      IFS="$lt_save_ifs"
6447      ;;
6448    esac
6449else
6450  enable_shared=yes
6451fi
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461  # Check whether --enable-static was given.
6462if test "${enable_static+set}" = set; then
6463  enableval=$enable_static; p=${PACKAGE-default}
6464    case $enableval in
6465    yes) enable_static=yes ;;
6466    no) enable_static=no ;;
6467    *)
6468     enable_static=no
6469      # Look at the argument we got.  We use all the common list separators.
6470      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6471      for pkg in $enableval; do
6472	IFS="$lt_save_ifs"
6473	if test "X$pkg" = "X$p"; then
6474	  enable_static=yes
6475	fi
6476      done
6477      IFS="$lt_save_ifs"
6478      ;;
6479    esac
6480else
6481  enable_static=yes
6482fi
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493# Check whether --with-pic was given.
6494if test "${with_pic+set}" = set; then
6495  withval=$with_pic; pic_mode="$withval"
6496else
6497  pic_mode=default
6498fi
6499
6500
6501test -z "$pic_mode" && pic_mode=default
6502
6503
6504
6505
6506
6507
6508
6509  # Check whether --enable-fast-install was given.
6510if test "${enable_fast_install+set}" = set; then
6511  enableval=$enable_fast_install; p=${PACKAGE-default}
6512    case $enableval in
6513    yes) enable_fast_install=yes ;;
6514    no) enable_fast_install=no ;;
6515    *)
6516      enable_fast_install=no
6517      # Look at the argument we got.  We use all the common list separators.
6518      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6519      for pkg in $enableval; do
6520	IFS="$lt_save_ifs"
6521	if test "X$pkg" = "X$p"; then
6522	  enable_fast_install=yes
6523	fi
6524      done
6525      IFS="$lt_save_ifs"
6526      ;;
6527    esac
6528else
6529  enable_fast_install=yes
6530fi
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542# This can be used to rebuild libtool when needed
6543LIBTOOL_DEPS="$ltmain"
6544
6545# Always use our own libtool.
6546LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572test -z "$LN_S" && LN_S="ln -s"
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587if test -n "${ZSH_VERSION+set}" ; then
6588   setopt NO_GLOB_SUBST
6589fi
6590
6591{ echo "$as_me:$LINENO: checking for objdir" >&5
6592echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6593if test "${lt_cv_objdir+set}" = set; then
6594  echo $ECHO_N "(cached) $ECHO_C" >&6
6595else
6596  rm -f .libs 2>/dev/null
6597mkdir .libs 2>/dev/null
6598if test -d .libs; then
6599  lt_cv_objdir=.libs
6600else
6601  # MS-DOS does not allow filenames that begin with a dot.
6602  lt_cv_objdir=_libs
6603fi
6604rmdir .libs 2>/dev/null
6605fi
6606{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6607echo "${ECHO_T}$lt_cv_objdir" >&6; }
6608objdir=$lt_cv_objdir
6609
6610
6611
6612
6613
6614cat >>confdefs.h <<_ACEOF
6615#define LT_OBJDIR "$lt_cv_objdir/"
6616_ACEOF
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634case $host_os in
6635aix3*)
6636  # AIX sometimes has problems with the GCC collect2 program.  For some
6637  # reason, if we set the COLLECT_NAMES environment variable, the problems
6638  # vanish in a puff of smoke.
6639  if test "X${COLLECT_NAMES+set}" != Xset; then
6640    COLLECT_NAMES=
6641    export COLLECT_NAMES
6642  fi
6643  ;;
6644esac
6645
6646# Sed substitution that helps us do robust quoting.  It backslashifies
6647# metacharacters that are still active within double-quoted strings.
6648sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6649
6650# Same as above, but do not quote variable references.
6651double_quote_subst='s/\(["`\\]\)/\\\1/g'
6652
6653# Sed substitution to delay expansion of an escaped shell variable in a
6654# double_quote_subst'ed string.
6655delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6656
6657# Sed substitution to delay expansion of an escaped single quote.
6658delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6659
6660# Sed substitution to avoid accidental globbing in evaled expressions
6661no_glob_subst='s/\*/\\\*/g'
6662
6663# Global variables:
6664ofile=libtool
6665can_build_shared=yes
6666
6667# All known linkers require a `.a' archive for static linking (except MSVC,
6668# which needs '.lib').
6669libext=a
6670
6671with_gnu_ld="$lt_cv_prog_gnu_ld"
6672
6673old_CC="$CC"
6674old_CFLAGS="$CFLAGS"
6675
6676# Set sane defaults for various variables
6677test -z "$CC" && CC=cc
6678test -z "$LTCC" && LTCC=$CC
6679test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6680test -z "$LD" && LD=ld
6681test -z "$ac_objext" && ac_objext=o
6682
6683for cc_temp in $compiler""; do
6684  case $cc_temp in
6685    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6686    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6687    \-*) ;;
6688    *) break;;
6689  esac
6690done
6691cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6692
6693
6694# Only perform the check for file, if the check method requires it
6695test -z "$MAGIC_CMD" && MAGIC_CMD=file
6696case $deplibs_check_method in
6697file_magic*)
6698  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6699    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6700echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6701if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6702  echo $ECHO_N "(cached) $ECHO_C" >&6
6703else
6704  case $MAGIC_CMD in
6705[\\/*] |  ?:[\\/]*)
6706  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6707  ;;
6708*)
6709  lt_save_MAGIC_CMD="$MAGIC_CMD"
6710  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6711  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6712  for ac_dir in $ac_dummy; do
6713    IFS="$lt_save_ifs"
6714    test -z "$ac_dir" && ac_dir=.
6715    if test -f $ac_dir/${ac_tool_prefix}file; then
6716      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6717      if test -n "$file_magic_test_file"; then
6718	case $deplibs_check_method in
6719	"file_magic "*)
6720	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6721	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6722	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6723	    $EGREP "$file_magic_regex" > /dev/null; then
6724	    :
6725	  else
6726	    cat <<_LT_EOF 1>&2
6727
6728*** Warning: the command libtool uses to detect shared libraries,
6729*** $file_magic_cmd, produces output that libtool cannot recognize.
6730*** The result is that libtool may fail to recognize shared libraries
6731*** as such.  This will affect the creation of libtool libraries that
6732*** depend on shared libraries, but programs linked with such libtool
6733*** libraries will work regardless of this problem.  Nevertheless, you
6734*** may want to report the problem to your system manager and/or to
6735*** bug-libtool@gnu.org
6736
6737_LT_EOF
6738	  fi ;;
6739	esac
6740      fi
6741      break
6742    fi
6743  done
6744  IFS="$lt_save_ifs"
6745  MAGIC_CMD="$lt_save_MAGIC_CMD"
6746  ;;
6747esac
6748fi
6749
6750MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6751if test -n "$MAGIC_CMD"; then
6752  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6753echo "${ECHO_T}$MAGIC_CMD" >&6; }
6754else
6755  { echo "$as_me:$LINENO: result: no" >&5
6756echo "${ECHO_T}no" >&6; }
6757fi
6758
6759
6760
6761
6762
6763if test -z "$lt_cv_path_MAGIC_CMD"; then
6764  if test -n "$ac_tool_prefix"; then
6765    { echo "$as_me:$LINENO: checking for file" >&5
6766echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6767if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6768  echo $ECHO_N "(cached) $ECHO_C" >&6
6769else
6770  case $MAGIC_CMD in
6771[\\/*] |  ?:[\\/]*)
6772  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6773  ;;
6774*)
6775  lt_save_MAGIC_CMD="$MAGIC_CMD"
6776  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6777  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6778  for ac_dir in $ac_dummy; do
6779    IFS="$lt_save_ifs"
6780    test -z "$ac_dir" && ac_dir=.
6781    if test -f $ac_dir/file; then
6782      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6783      if test -n "$file_magic_test_file"; then
6784	case $deplibs_check_method in
6785	"file_magic "*)
6786	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6787	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6788	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6789	    $EGREP "$file_magic_regex" > /dev/null; then
6790	    :
6791	  else
6792	    cat <<_LT_EOF 1>&2
6793
6794*** Warning: the command libtool uses to detect shared libraries,
6795*** $file_magic_cmd, produces output that libtool cannot recognize.
6796*** The result is that libtool may fail to recognize shared libraries
6797*** as such.  This will affect the creation of libtool libraries that
6798*** depend on shared libraries, but programs linked with such libtool
6799*** libraries will work regardless of this problem.  Nevertheless, you
6800*** may want to report the problem to your system manager and/or to
6801*** bug-libtool@gnu.org
6802
6803_LT_EOF
6804	  fi ;;
6805	esac
6806      fi
6807      break
6808    fi
6809  done
6810  IFS="$lt_save_ifs"
6811  MAGIC_CMD="$lt_save_MAGIC_CMD"
6812  ;;
6813esac
6814fi
6815
6816MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6817if test -n "$MAGIC_CMD"; then
6818  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6819echo "${ECHO_T}$MAGIC_CMD" >&6; }
6820else
6821  { echo "$as_me:$LINENO: result: no" >&5
6822echo "${ECHO_T}no" >&6; }
6823fi
6824
6825
6826  else
6827    MAGIC_CMD=:
6828  fi
6829fi
6830
6831  fi
6832  ;;
6833esac
6834
6835# Use C for the default configuration in the libtool script
6836
6837lt_save_CC="$CC"
6838ac_ext=c
6839ac_cpp='$CPP $CPPFLAGS'
6840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6842ac_compiler_gnu=$ac_cv_c_compiler_gnu
6843
6844
6845# Source file extension for C test sources.
6846ac_ext=c
6847
6848# Object file extension for compiled C test sources.
6849objext=o
6850objext=$objext
6851
6852# Code to be used in simple compile tests
6853lt_simple_compile_test_code="int some_variable = 0;"
6854
6855# Code to be used in simple link tests
6856lt_simple_link_test_code='int main(){return(0);}'
6857
6858
6859
6860
6861
6862
6863
6864# If no C compiler was specified, use CC.
6865LTCC=${LTCC-"$CC"}
6866
6867# If no C compiler flags were specified, use CFLAGS.
6868LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6869
6870# Allow CC to be a program name with arguments.
6871compiler=$CC
6872
6873# Save the default compiler, since it gets overwritten when the other
6874# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6875compiler_DEFAULT=$CC
6876
6877# save warnings/boilerplate of simple test code
6878ac_outfile=conftest.$ac_objext
6879echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6880eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6881_lt_compiler_boilerplate=`cat conftest.err`
6882$RM conftest*
6883
6884ac_outfile=conftest.$ac_objext
6885echo "$lt_simple_link_test_code" >conftest.$ac_ext
6886eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6887_lt_linker_boilerplate=`cat conftest.err`
6888$RM -r conftest*
6889
6890
6891if test -n "$compiler"; then
6892
6893lt_prog_compiler_no_builtin_flag=
6894
6895if test "$GCC" = yes; then
6896  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6897
6898  { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6899echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6900if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6901  echo $ECHO_N "(cached) $ECHO_C" >&6
6902else
6903  lt_cv_prog_compiler_rtti_exceptions=no
6904   ac_outfile=conftest.$ac_objext
6905   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6906   lt_compiler_flag="-fno-rtti -fno-exceptions"
6907   # Insert the option either (1) after the last *FLAGS variable, or
6908   # (2) before a word containing "conftest.", or (3) at the end.
6909   # Note that $ac_compile itself does not contain backslashes and begins
6910   # with a dollar sign (not a hyphen), so the echo should work correctly.
6911   # The option is referenced via a variable to avoid confusing sed.
6912   lt_compile=`echo "$ac_compile" | $SED \
6913   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6914   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6915   -e 's:$: $lt_compiler_flag:'`
6916   (eval echo "\"\$as_me:6916: $lt_compile\"" >&5)
6917   (eval "$lt_compile" 2>conftest.err)
6918   ac_status=$?
6919   cat conftest.err >&5
6920   echo "$as_me:6920: \$? = $ac_status" >&5
6921   if (exit $ac_status) && test -s "$ac_outfile"; then
6922     # The compiler can only warn and ignore the option if not recognized
6923     # So say no if there are warnings other than the usual output.
6924     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6925     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6926     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6927       lt_cv_prog_compiler_rtti_exceptions=yes
6928     fi
6929   fi
6930   $RM conftest*
6931
6932fi
6933{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6934echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6935
6936if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6937    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6938else
6939    :
6940fi
6941
6942fi
6943
6944
6945
6946
6947
6948
6949  lt_prog_compiler_wl=
6950lt_prog_compiler_pic=
6951lt_prog_compiler_static=
6952
6953{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6954echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
6955
6956  if test "$GCC" = yes; then
6957    lt_prog_compiler_wl='-Wl,'
6958    lt_prog_compiler_static='-static'
6959
6960    case $host_os in
6961      aix*)
6962      # All AIX code is PIC.
6963      if test "$host_cpu" = ia64; then
6964	# AIX 5 now supports IA64 processor
6965	lt_prog_compiler_static='-Bstatic'
6966      fi
6967      ;;
6968
6969    amigaos*)
6970      if test "$host_cpu" = m68k; then
6971        # FIXME: we need at least 68020 code to build shared libraries, but
6972        # adding the `-m68020' flag to GCC prevents building anything better,
6973        # like `-m68040'.
6974        lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6975      fi
6976      ;;
6977
6978    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6979      # PIC is the default for these OSes.
6980      ;;
6981
6982    mingw* | cygwin* | pw32* | os2*)
6983      # This hack is so that the source file can tell whether it is being
6984      # built for inclusion in a dll (and should export symbols for example).
6985      # Although the cygwin gcc ignores -fPIC, still need this for old-style
6986      # (--disable-auto-import) libraries
6987      lt_prog_compiler_pic='-DDLL_EXPORT'
6988      ;;
6989
6990    darwin* | rhapsody*)
6991      # PIC is the default on this platform
6992      # Common symbols not allowed in MH_DYLIB files
6993      lt_prog_compiler_pic='-fno-common'
6994      ;;
6995
6996    hpux*)
6997      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6998      # not for PA HP-UX.
6999      case $host_cpu in
7000      hppa*64*|ia64*)
7001	# +Z the default
7002	;;
7003      *)
7004	lt_prog_compiler_pic='-fPIC'
7005	;;
7006      esac
7007      ;;
7008
7009    interix[3-9]*)
7010      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7011      # Instead, we relocate shared libraries at runtime.
7012      ;;
7013
7014    msdosdjgpp*)
7015      # Just because we use GCC doesn't mean we suddenly get shared libraries
7016      # on systems that don't support them.
7017      lt_prog_compiler_can_build_shared=no
7018      enable_shared=no
7019      ;;
7020
7021    *nto* | *qnx*)
7022      # QNX uses GNU C++, but need to define -shared option too, otherwise
7023      # it will coredump.
7024      lt_prog_compiler_pic='-fPIC -shared'
7025      ;;
7026
7027    sysv4*MP*)
7028      if test -d /usr/nec; then
7029	lt_prog_compiler_pic=-Kconform_pic
7030      fi
7031      ;;
7032
7033    *)
7034      lt_prog_compiler_pic='-fPIC'
7035      ;;
7036    esac
7037  else
7038    # PORTME Check for flag to pass linker flags through the system compiler.
7039    case $host_os in
7040    aix*)
7041      lt_prog_compiler_wl='-Wl,'
7042      if test "$host_cpu" = ia64; then
7043	# AIX 5 now supports IA64 processor
7044	lt_prog_compiler_static='-Bstatic'
7045      else
7046	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7047      fi
7048      ;;
7049
7050    mingw* | cygwin* | pw32* | os2*)
7051      # This hack is so that the source file can tell whether it is being
7052      # built for inclusion in a dll (and should export symbols for example).
7053      lt_prog_compiler_pic='-DDLL_EXPORT'
7054      ;;
7055
7056    hpux9* | hpux10* | hpux11*)
7057      lt_prog_compiler_wl='-Wl,'
7058      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7059      # not for PA HP-UX.
7060      case $host_cpu in
7061      hppa*64*|ia64*)
7062	# +Z the default
7063	;;
7064      *)
7065	lt_prog_compiler_pic='+Z'
7066	;;
7067      esac
7068      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7069      lt_prog_compiler_static='${wl}-a ${wl}archive'
7070      ;;
7071
7072    irix5* | irix6* | nonstopux*)
7073      lt_prog_compiler_wl='-Wl,'
7074      # PIC (with -KPIC) is the default.
7075      lt_prog_compiler_static='-non_shared'
7076      ;;
7077
7078    linux* | k*bsd*-gnu)
7079      case $cc_basename in
7080      icc* | ecc* | ifort*)
7081	lt_prog_compiler_wl='-Wl,'
7082	lt_prog_compiler_pic='-KPIC'
7083	lt_prog_compiler_static='-static'
7084        ;;
7085      pgcc* | pgf77* | pgf90* | pgf95*)
7086        # Portland Group compilers (*not* the Pentium gcc compiler,
7087	# which looks to be a dead project)
7088	lt_prog_compiler_wl='-Wl,'
7089	lt_prog_compiler_pic='-fpic'
7090	lt_prog_compiler_static='-Bstatic'
7091        ;;
7092      ccc*)
7093        lt_prog_compiler_wl='-Wl,'
7094        # All Alpha code is PIC.
7095        lt_prog_compiler_static='-non_shared'
7096        ;;
7097      xl*)
7098	# IBM XL C 8.0/Fortran 10.1 on PPC
7099	lt_prog_compiler_wl='-Wl,'
7100	lt_prog_compiler_pic='-qpic'
7101	lt_prog_compiler_static='-qstaticlink'
7102	;;
7103      *)
7104	case `$CC -V 2>&1 | sed 5q` in
7105	*Sun\ C*)
7106	  # Sun C 5.9
7107	  lt_prog_compiler_pic='-KPIC'
7108	  lt_prog_compiler_static='-Bstatic'
7109	  lt_prog_compiler_wl='-Wl,'
7110	  ;;
7111	*Sun\ F*)
7112	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7113	  lt_prog_compiler_pic='-KPIC'
7114	  lt_prog_compiler_static='-Bstatic'
7115	  lt_prog_compiler_wl=''
7116	  ;;
7117	esac
7118	;;
7119      esac
7120      ;;
7121
7122    newsos6)
7123      lt_prog_compiler_pic='-KPIC'
7124      lt_prog_compiler_static='-Bstatic'
7125      ;;
7126
7127    *nto* | *qnx*)
7128      # QNX uses GNU C++, but need to define -shared option too, otherwise
7129      # it will coredump.
7130      lt_prog_compiler_pic='-fPIC -shared'
7131      ;;
7132
7133    osf3* | osf4* | osf5*)
7134      lt_prog_compiler_wl='-Wl,'
7135      # All OSF/1 code is PIC.
7136      lt_prog_compiler_static='-non_shared'
7137      ;;
7138
7139    rdos*)
7140      lt_prog_compiler_static='-non_shared'
7141      ;;
7142
7143    solaris*)
7144      lt_prog_compiler_pic='-KPIC'
7145      lt_prog_compiler_static='-Bstatic'
7146      case $cc_basename in
7147      f77* | f90* | f95*)
7148	lt_prog_compiler_wl='-Qoption ld ';;
7149      *)
7150	lt_prog_compiler_wl='-Wl,';;
7151      esac
7152      ;;
7153
7154    sunos4*)
7155      lt_prog_compiler_wl='-Qoption ld '
7156      lt_prog_compiler_pic='-PIC'
7157      lt_prog_compiler_static='-Bstatic'
7158      ;;
7159
7160    sysv4 | sysv4.2uw2* | sysv4.3*)
7161      lt_prog_compiler_wl='-Wl,'
7162      lt_prog_compiler_pic='-KPIC'
7163      lt_prog_compiler_static='-Bstatic'
7164      ;;
7165
7166    sysv4*MP*)
7167      if test -d /usr/nec ;then
7168	lt_prog_compiler_pic='-Kconform_pic'
7169	lt_prog_compiler_static='-Bstatic'
7170      fi
7171      ;;
7172
7173    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7174      lt_prog_compiler_wl='-Wl,'
7175      lt_prog_compiler_pic='-KPIC'
7176      lt_prog_compiler_static='-Bstatic'
7177      ;;
7178
7179    unicos*)
7180      lt_prog_compiler_wl='-Wl,'
7181      lt_prog_compiler_can_build_shared=no
7182      ;;
7183
7184    uts4*)
7185      lt_prog_compiler_pic='-pic'
7186      lt_prog_compiler_static='-Bstatic'
7187      ;;
7188
7189    *)
7190      lt_prog_compiler_can_build_shared=no
7191      ;;
7192    esac
7193  fi
7194
7195case $host_os in
7196  # For platforms which do not support PIC, -DPIC is meaningless:
7197  *djgpp*)
7198    lt_prog_compiler_pic=
7199    ;;
7200  *)
7201    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7202    ;;
7203esac
7204{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7205echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7206
7207
7208
7209
7210
7211
7212#
7213# Check to make sure the PIC flag actually works.
7214#
7215if test -n "$lt_prog_compiler_pic"; then
7216  { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7217echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7218if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7219  echo $ECHO_N "(cached) $ECHO_C" >&6
7220else
7221  lt_cv_prog_compiler_pic_works=no
7222   ac_outfile=conftest.$ac_objext
7223   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7224   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7225   # Insert the option either (1) after the last *FLAGS variable, or
7226   # (2) before a word containing "conftest.", or (3) at the end.
7227   # Note that $ac_compile itself does not contain backslashes and begins
7228   # with a dollar sign (not a hyphen), so the echo should work correctly.
7229   # The option is referenced via a variable to avoid confusing sed.
7230   lt_compile=`echo "$ac_compile" | $SED \
7231   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7232   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7233   -e 's:$: $lt_compiler_flag:'`
7234   (eval echo "\"\$as_me:7234: $lt_compile\"" >&5)
7235   (eval "$lt_compile" 2>conftest.err)
7236   ac_status=$?
7237   cat conftest.err >&5
7238   echo "$as_me:7238: \$? = $ac_status" >&5
7239   if (exit $ac_status) && test -s "$ac_outfile"; then
7240     # The compiler can only warn and ignore the option if not recognized
7241     # So say no if there are warnings other than the usual output.
7242     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7243     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7244     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7245       lt_cv_prog_compiler_pic_works=yes
7246     fi
7247   fi
7248   $RM conftest*
7249
7250fi
7251{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7252echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7253
7254if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7255    case $lt_prog_compiler_pic in
7256     "" | " "*) ;;
7257     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7258     esac
7259else
7260    lt_prog_compiler_pic=
7261     lt_prog_compiler_can_build_shared=no
7262fi
7263
7264fi
7265
7266
7267
7268
7269
7270
7271#
7272# Check to make sure the static flag actually works.
7273#
7274wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7275{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7276echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7277if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7278  echo $ECHO_N "(cached) $ECHO_C" >&6
7279else
7280  lt_cv_prog_compiler_static_works=no
7281   save_LDFLAGS="$LDFLAGS"
7282   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7283   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7284   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7285     # The linker can only warn and ignore the option if not recognized
7286     # So say no if there are warnings
7287     if test -s conftest.err; then
7288       # Append any errors to the config.log.
7289       cat conftest.err 1>&5
7290       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7291       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7292       if diff conftest.exp conftest.er2 >/dev/null; then
7293         lt_cv_prog_compiler_static_works=yes
7294       fi
7295     else
7296       lt_cv_prog_compiler_static_works=yes
7297     fi
7298   fi
7299   $RM -r conftest*
7300   LDFLAGS="$save_LDFLAGS"
7301
7302fi
7303{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7304echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7305
7306if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7307    :
7308else
7309    lt_prog_compiler_static=
7310fi
7311
7312
7313
7314
7315
7316
7317
7318  { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7319echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7320if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7321  echo $ECHO_N "(cached) $ECHO_C" >&6
7322else
7323  lt_cv_prog_compiler_c_o=no
7324   $RM -r conftest 2>/dev/null
7325   mkdir conftest
7326   cd conftest
7327   mkdir out
7328   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7329
7330   lt_compiler_flag="-o out/conftest2.$ac_objext"
7331   # Insert the option either (1) after the last *FLAGS variable, or
7332   # (2) before a word containing "conftest.", or (3) at the end.
7333   # Note that $ac_compile itself does not contain backslashes and begins
7334   # with a dollar sign (not a hyphen), so the echo should work correctly.
7335   lt_compile=`echo "$ac_compile" | $SED \
7336   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7337   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7338   -e 's:$: $lt_compiler_flag:'`
7339   (eval echo "\"\$as_me:7339: $lt_compile\"" >&5)
7340   (eval "$lt_compile" 2>out/conftest.err)
7341   ac_status=$?
7342   cat out/conftest.err >&5
7343   echo "$as_me:7343: \$? = $ac_status" >&5
7344   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7345   then
7346     # The compiler can only warn and ignore the option if not recognized
7347     # So say no if there are warnings
7348     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7349     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7350     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7351       lt_cv_prog_compiler_c_o=yes
7352     fi
7353   fi
7354   chmod u+w . 2>&5
7355   $RM conftest*
7356   # SGI C++ compiler will create directory out/ii_files/ for
7357   # template instantiation
7358   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7359   $RM out/* && rmdir out
7360   cd ..
7361   $RM -r conftest
7362   $RM conftest*
7363
7364fi
7365{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7366echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7367
7368
7369
7370
7371
7372
7373  { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7374echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7375if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7376  echo $ECHO_N "(cached) $ECHO_C" >&6
7377else
7378  lt_cv_prog_compiler_c_o=no
7379   $RM -r conftest 2>/dev/null
7380   mkdir conftest
7381   cd conftest
7382   mkdir out
7383   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7384
7385   lt_compiler_flag="-o out/conftest2.$ac_objext"
7386   # Insert the option either (1) after the last *FLAGS variable, or
7387   # (2) before a word containing "conftest.", or (3) at the end.
7388   # Note that $ac_compile itself does not contain backslashes and begins
7389   # with a dollar sign (not a hyphen), so the echo should work correctly.
7390   lt_compile=`echo "$ac_compile" | $SED \
7391   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7392   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7393   -e 's:$: $lt_compiler_flag:'`
7394   (eval echo "\"\$as_me:7394: $lt_compile\"" >&5)
7395   (eval "$lt_compile" 2>out/conftest.err)
7396   ac_status=$?
7397   cat out/conftest.err >&5
7398   echo "$as_me:7398: \$? = $ac_status" >&5
7399   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7400   then
7401     # The compiler can only warn and ignore the option if not recognized
7402     # So say no if there are warnings
7403     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7404     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7405     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7406       lt_cv_prog_compiler_c_o=yes
7407     fi
7408   fi
7409   chmod u+w . 2>&5
7410   $RM conftest*
7411   # SGI C++ compiler will create directory out/ii_files/ for
7412   # template instantiation
7413   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7414   $RM out/* && rmdir out
7415   cd ..
7416   $RM -r conftest
7417   $RM conftest*
7418
7419fi
7420{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7421echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7422
7423
7424
7425
7426hard_links="nottested"
7427if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7428  # do not overwrite the value of need_locks provided by the user
7429  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7430echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7431  hard_links=yes
7432  $RM conftest*
7433  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7434  touch conftest.a
7435  ln conftest.a conftest.b 2>&5 || hard_links=no
7436  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7437  { echo "$as_me:$LINENO: result: $hard_links" >&5
7438echo "${ECHO_T}$hard_links" >&6; }
7439  if test "$hard_links" = no; then
7440    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7441echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7442    need_locks=warn
7443  fi
7444else
7445  need_locks=no
7446fi
7447
7448
7449
7450
7451
7452
7453  { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7454echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7455
7456  runpath_var=
7457  allow_undefined_flag=
7458  always_export_symbols=no
7459  archive_cmds=
7460  archive_expsym_cmds=
7461  compiler_needs_object=no
7462  enable_shared_with_static_runtimes=no
7463  export_dynamic_flag_spec=
7464  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7465  hardcode_automatic=no
7466  hardcode_direct=no
7467  hardcode_direct_absolute=no
7468  hardcode_libdir_flag_spec=
7469  hardcode_libdir_flag_spec_ld=
7470  hardcode_libdir_separator=
7471  hardcode_minus_L=no
7472  hardcode_shlibpath_var=unsupported
7473  inherit_rpath=no
7474  link_all_deplibs=unknown
7475  module_cmds=
7476  module_expsym_cmds=
7477  old_archive_from_new_cmds=
7478  old_archive_from_expsyms_cmds=
7479  thread_safe_flag_spec=
7480  whole_archive_flag_spec=
7481  # include_expsyms should be a list of space-separated symbols to be *always*
7482  # included in the symbol list
7483  include_expsyms=
7484  # exclude_expsyms can be an extended regexp of symbols to exclude
7485  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7486  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7487  # as well as any symbol that contains `d'.
7488  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7489  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7490  # platforms (ab)use it in PIC code, but their linkers get confused if
7491  # the symbol is explicitly referenced.  Since portable code cannot
7492  # rely on this symbol name, it's probably fine to never include it in
7493  # preloaded symbol tables.
7494  # Exclude shared library initialization/finalization symbols.
7495  extract_expsyms_cmds=
7496
7497  case $host_os in
7498  cygwin* | mingw* | pw32*)
7499    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7500    # When not using gcc, we currently assume that we are using
7501    # Microsoft Visual C++.
7502    if test "$GCC" != yes; then
7503      with_gnu_ld=no
7504    fi
7505    ;;
7506  interix*)
7507    # we just hope/assume this is gcc and not c89 (= MSVC++)
7508    with_gnu_ld=yes
7509    ;;
7510  openbsd*)
7511    with_gnu_ld=no
7512    ;;
7513  esac
7514
7515  ld_shlibs=yes
7516  if test "$with_gnu_ld" = yes; then
7517    # If archive_cmds runs LD, not CC, wlarc should be empty
7518    wlarc='${wl}'
7519
7520    # Set some defaults for GNU ld with shared library support. These
7521    # are reset later if shared libraries are not supported. Putting them
7522    # here allows them to be overridden if necessary.
7523    runpath_var=LD_RUN_PATH
7524    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7525    export_dynamic_flag_spec='${wl}--export-dynamic'
7526    # ancient GNU ld didn't support --whole-archive et. al.
7527    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7528      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7529    else
7530      whole_archive_flag_spec=
7531    fi
7532    supports_anon_versioning=no
7533    case `$LD -v 2>&1` in
7534      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7535      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7536      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7537      *\ 2.11.*) ;; # other 2.11 versions
7538      *) supports_anon_versioning=yes ;;
7539    esac
7540
7541    # See if GNU ld supports shared libraries.
7542    case $host_os in
7543    aix[3-9]*)
7544      # On AIX/PPC, the GNU linker is very broken
7545      if test "$host_cpu" != ia64; then
7546	ld_shlibs=no
7547	cat <<_LT_EOF 1>&2
7548
7549*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7550*** to be unable to reliably create shared libraries on AIX.
7551*** Therefore, libtool is disabling shared libraries support.  If you
7552*** really care for shared libraries, you may want to modify your PATH
7553*** so that a non-GNU linker is found, and then restart.
7554
7555_LT_EOF
7556      fi
7557      ;;
7558
7559    amigaos*)
7560      if test "$host_cpu" = m68k; then
7561        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)'
7562        hardcode_libdir_flag_spec='-L$libdir'
7563        hardcode_minus_L=yes
7564      fi
7565
7566      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7567      # that the semantics of dynamic libraries on AmigaOS, at least up
7568      # to version 4, is to share data among multiple programs linked
7569      # with the same dynamic library.  Since this doesn't match the
7570      # behavior of shared libraries on other platforms, we can't use
7571      # them.
7572      ld_shlibs=no
7573      ;;
7574
7575    beos*)
7576      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7577	allow_undefined_flag=unsupported
7578	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7579	# support --undefined.  This deserves some investigation.  FIXME
7580	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7581      else
7582	ld_shlibs=no
7583      fi
7584      ;;
7585
7586    cygwin* | mingw* | pw32*)
7587      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7588      # as there is no search path for DLLs.
7589      hardcode_libdir_flag_spec='-L$libdir'
7590      allow_undefined_flag=unsupported
7591      always_export_symbols=no
7592      enable_shared_with_static_runtimes=yes
7593      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7594
7595      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7596        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7597	# If the export-symbols file already is a .def file (1st line
7598	# is EXPORTS), use it as is; otherwise, prepend...
7599	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7600	  cp $export_symbols $output_objdir/$soname.def;
7601	else
7602	  echo EXPORTS > $output_objdir/$soname.def;
7603	  cat $export_symbols >> $output_objdir/$soname.def;
7604	fi~
7605	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7606      else
7607	ld_shlibs=no
7608      fi
7609      ;;
7610
7611    interix[3-9]*)
7612      hardcode_direct=no
7613      hardcode_shlibpath_var=no
7614      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7615      export_dynamic_flag_spec='${wl}-E'
7616      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7617      # Instead, shared libraries are loaded at an image base (0x10000000 by
7618      # default) and relocated if they conflict, which is a slow very memory
7619      # consuming and fragmenting process.  To avoid this, we pick a random,
7620      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7621      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7622      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7623      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'
7624      ;;
7625
7626    gnu* | linux* | tpf* | k*bsd*-gnu)
7627      tmp_diet=no
7628      if test "$host_os" = linux-dietlibc; then
7629	case $cc_basename in
7630	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
7631	esac
7632      fi
7633      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7634	 && test "$tmp_diet" = no
7635      then
7636	tmp_addflag=
7637	tmp_sharedflag='-shared'
7638	case $cc_basename,$host_cpu in
7639        pgcc*)				# Portland Group C compiler
7640	  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'
7641	  tmp_addflag=' $pic_flag'
7642	  ;;
7643	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7644	  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'
7645	  tmp_addflag=' $pic_flag -Mnomain' ;;
7646	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
7647	  tmp_addflag=' -i_dynamic' ;;
7648	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7649	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7650	ifc* | ifort*)			# Intel Fortran compiler
7651	  tmp_addflag=' -nofor_main' ;;
7652	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
7653	  tmp_sharedflag='-qmkshrobj'
7654	  tmp_addflag= ;;
7655	esac
7656	case `$CC -V 2>&1 | sed 5q` in
7657	*Sun\ C*)			# Sun C 5.9
7658	  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'
7659	  compiler_needs_object=yes
7660	  tmp_sharedflag='-G' ;;
7661	*Sun\ F*)			# Sun Fortran 8.3
7662	  tmp_sharedflag='-G' ;;
7663	esac
7664	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7665
7666        if test "x$supports_anon_versioning" = xyes; then
7667          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7668	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7669	    echo "local: *; };" >> $output_objdir/$libname.ver~
7670	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7671        fi
7672
7673	case $cc_basename in
7674	xlf*)
7675	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7676	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7677	  hardcode_libdir_flag_spec=
7678	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
7679	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7680	  if test "x$supports_anon_versioning" = xyes; then
7681	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7682	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7683	      echo "local: *; };" >> $output_objdir/$libname.ver~
7684	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7685	  fi
7686	  ;;
7687	esac
7688      else
7689        ld_shlibs=no
7690      fi
7691      ;;
7692
7693    netbsd*)
7694      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7695	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7696	wlarc=
7697      else
7698	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7699	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7700      fi
7701      ;;
7702
7703    solaris*)
7704      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7705	ld_shlibs=no
7706	cat <<_LT_EOF 1>&2
7707
7708*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7709*** create shared libraries on Solaris systems.  Therefore, libtool
7710*** is disabling shared libraries support.  We urge you to upgrade GNU
7711*** binutils to release 2.9.1 or newer.  Another option is to modify
7712*** your PATH or compiler configuration so that the native linker is
7713*** used, and then restart.
7714
7715_LT_EOF
7716      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7717	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7718	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7719      else
7720	ld_shlibs=no
7721      fi
7722      ;;
7723
7724    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7725      case `$LD -v 2>&1` in
7726        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7727	ld_shlibs=no
7728	cat <<_LT_EOF 1>&2
7729
7730*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7731*** reliably create shared libraries on SCO systems.  Therefore, libtool
7732*** is disabling shared libraries support.  We urge you to upgrade GNU
7733*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7734*** your PATH or compiler configuration so that the native linker is
7735*** used, and then restart.
7736
7737_LT_EOF
7738	;;
7739	*)
7740	  # For security reasons, it is highly recommended that you always
7741	  # use absolute paths for naming shared libraries, and exclude the
7742	  # DT_RUNPATH tag from executables and libraries.  But doing so
7743	  # requires that you compile everything twice, which is a pain.
7744	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7745	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7746	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7747	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7748	  else
7749	    ld_shlibs=no
7750	  fi
7751	;;
7752      esac
7753      ;;
7754
7755    sunos4*)
7756      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7757      wlarc=
7758      hardcode_direct=yes
7759      hardcode_shlibpath_var=no
7760      ;;
7761
7762    *)
7763      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7764	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7765	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7766      else
7767	ld_shlibs=no
7768      fi
7769      ;;
7770    esac
7771
7772    if test "$ld_shlibs" = no; then
7773      runpath_var=
7774      hardcode_libdir_flag_spec=
7775      export_dynamic_flag_spec=
7776      whole_archive_flag_spec=
7777    fi
7778  else
7779    # PORTME fill in a description of your system's linker (not GNU ld)
7780    case $host_os in
7781    aix3*)
7782      allow_undefined_flag=unsupported
7783      always_export_symbols=yes
7784      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'
7785      # Note: this linker hardcodes the directories in LIBPATH if there
7786      # are no directories specified by -L.
7787      hardcode_minus_L=yes
7788      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7789	# Neither direct hardcoding nor static linking is supported with a
7790	# broken collect2.
7791	hardcode_direct=unsupported
7792      fi
7793      ;;
7794
7795    aix[4-9]*)
7796      if test "$host_cpu" = ia64; then
7797	# On IA64, the linker does run time linking by default, so we don't
7798	# have to do anything special.
7799	aix_use_runtimelinking=no
7800	exp_sym_flag='-Bexport'
7801	no_entry_flag=""
7802      else
7803	# If we're using GNU nm, then we don't want the "-C" option.
7804	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7805	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7806	  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'
7807	else
7808	  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'
7809	fi
7810	aix_use_runtimelinking=no
7811
7812	# Test if we are trying to use run time linking or normal
7813	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7814	# need to do runtime linking.
7815	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7816	  for ld_flag in $LDFLAGS; do
7817	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7818	    aix_use_runtimelinking=yes
7819	    break
7820	  fi
7821	  done
7822	  ;;
7823	esac
7824
7825	exp_sym_flag='-bexport'
7826	no_entry_flag='-bnoentry'
7827      fi
7828
7829      # When large executables or shared objects are built, AIX ld can
7830      # have problems creating the table of contents.  If linking a library
7831      # or program results in "error TOC overflow" add -mminimal-toc to
7832      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7833      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7834
7835      archive_cmds=''
7836      hardcode_direct=yes
7837      hardcode_direct_absolute=yes
7838      hardcode_libdir_separator=':'
7839      link_all_deplibs=yes
7840      file_list_spec='${wl}-f,'
7841
7842      if test "$GCC" = yes; then
7843	case $host_os in aix4.[012]|aix4.[012].*)
7844	# We only want to do this on AIX 4.2 and lower, the check
7845	# below for broken collect2 doesn't work under 4.3+
7846	  collect2name=`${CC} -print-prog-name=collect2`
7847	  if test -f "$collect2name" &&
7848	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7849	  then
7850	  # We have reworked collect2
7851	  :
7852	  else
7853	  # We have old collect2
7854	  hardcode_direct=unsupported
7855	  # It fails to find uninstalled libraries when the uninstalled
7856	  # path is not listed in the libpath.  Setting hardcode_minus_L
7857	  # to unsupported forces relinking
7858	  hardcode_minus_L=yes
7859	  hardcode_libdir_flag_spec='-L$libdir'
7860	  hardcode_libdir_separator=
7861	  fi
7862	  ;;
7863	esac
7864	shared_flag='-shared'
7865	if test "$aix_use_runtimelinking" = yes; then
7866	  shared_flag="$shared_flag "'${wl}-G'
7867	fi
7868      else
7869	# not using gcc
7870	if test "$host_cpu" = ia64; then
7871	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7872	# chokes on -Wl,-G. The following line is correct:
7873	  shared_flag='-G'
7874	else
7875	  if test "$aix_use_runtimelinking" = yes; then
7876	    shared_flag='${wl}-G'
7877	  else
7878	    shared_flag='${wl}-bM:SRE'
7879	  fi
7880	fi
7881      fi
7882
7883      # It seems that -bexpall does not export symbols beginning with
7884      # underscore (_), so it is better to generate a list of symbols to export.
7885      always_export_symbols=yes
7886      if test "$aix_use_runtimelinking" = yes; then
7887	# Warning - without using the other runtime loading flags (-brtl),
7888	# -berok will link without error, but may produce a broken library.
7889	allow_undefined_flag='-berok'
7890        # Determine the default libpath from the value encoded in an
7891        # empty executable.
7892        cat >conftest.$ac_ext <<_ACEOF
7893/* confdefs.h.  */
7894_ACEOF
7895cat confdefs.h >>conftest.$ac_ext
7896cat >>conftest.$ac_ext <<_ACEOF
7897/* end confdefs.h.  */
7898
7899int
7900main ()
7901{
7902
7903  ;
7904  return 0;
7905}
7906_ACEOF
7907rm -f conftest.$ac_objext conftest$ac_exeext
7908if { (ac_try="$ac_link"
7909case "(($ac_try" in
7910  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7911  *) ac_try_echo=$ac_try;;
7912esac
7913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7914  (eval "$ac_link") 2>conftest.er1
7915  ac_status=$?
7916  grep -v '^ *+' conftest.er1 >conftest.err
7917  rm -f conftest.er1
7918  cat conftest.err >&5
7919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920  (exit $ac_status); } && {
7921	 test -z "$ac_c_werror_flag" ||
7922	 test ! -s conftest.err
7923       } && test -s conftest$ac_exeext &&
7924       $as_test_x conftest$ac_exeext; then
7925
7926lt_aix_libpath_sed='
7927    /Import File Strings/,/^$/ {
7928	/^0/ {
7929	    s/^0  *\(.*\)$/\1/
7930	    p
7931	}
7932    }'
7933aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7934# Check for a 64-bit object if we didn't find anything.
7935if test -z "$aix_libpath"; then
7936  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7937fi
7938else
7939  echo "$as_me: failed program was:" >&5
7940sed 's/^/| /' conftest.$ac_ext >&5
7941
7942
7943fi
7944
7945rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7946      conftest$ac_exeext conftest.$ac_ext
7947if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7948
7949        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7950        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"
7951      else
7952	if test "$host_cpu" = ia64; then
7953	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7954	  allow_undefined_flag="-z nodefs"
7955	  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"
7956	else
7957	 # Determine the default libpath from the value encoded in an
7958	 # empty executable.
7959	 cat >conftest.$ac_ext <<_ACEOF
7960/* confdefs.h.  */
7961_ACEOF
7962cat confdefs.h >>conftest.$ac_ext
7963cat >>conftest.$ac_ext <<_ACEOF
7964/* end confdefs.h.  */
7965
7966int
7967main ()
7968{
7969
7970  ;
7971  return 0;
7972}
7973_ACEOF
7974rm -f conftest.$ac_objext conftest$ac_exeext
7975if { (ac_try="$ac_link"
7976case "(($ac_try" in
7977  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7978  *) ac_try_echo=$ac_try;;
7979esac
7980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7981  (eval "$ac_link") 2>conftest.er1
7982  ac_status=$?
7983  grep -v '^ *+' conftest.er1 >conftest.err
7984  rm -f conftest.er1
7985  cat conftest.err >&5
7986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987  (exit $ac_status); } && {
7988	 test -z "$ac_c_werror_flag" ||
7989	 test ! -s conftest.err
7990       } && test -s conftest$ac_exeext &&
7991       $as_test_x conftest$ac_exeext; then
7992
7993lt_aix_libpath_sed='
7994    /Import File Strings/,/^$/ {
7995	/^0/ {
7996	    s/^0  *\(.*\)$/\1/
7997	    p
7998	}
7999    }'
8000aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8001# Check for a 64-bit object if we didn't find anything.
8002if test -z "$aix_libpath"; then
8003  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8004fi
8005else
8006  echo "$as_me: failed program was:" >&5
8007sed 's/^/| /' conftest.$ac_ext >&5
8008
8009
8010fi
8011
8012rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8013      conftest$ac_exeext conftest.$ac_ext
8014if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8015
8016	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8017	  # Warning - without using the other run time loading flags,
8018	  # -berok will link without error, but may produce a broken library.
8019	  no_undefined_flag=' ${wl}-bernotok'
8020	  allow_undefined_flag=' ${wl}-berok'
8021	  # Exported symbols can be pulled into shared objects from archives
8022	  whole_archive_flag_spec='$convenience'
8023	  archive_cmds_need_lc=yes
8024	  # This is similar to how AIX traditionally builds its shared libraries.
8025	  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'
8026	fi
8027      fi
8028      ;;
8029
8030    amigaos*)
8031      if test "$host_cpu" = m68k; then
8032        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)'
8033        hardcode_libdir_flag_spec='-L$libdir'
8034        hardcode_minus_L=yes
8035      fi
8036      # see comment about different semantics on the GNU ld section
8037      ld_shlibs=no
8038      ;;
8039
8040    bsdi[45]*)
8041      export_dynamic_flag_spec=-rdynamic
8042      ;;
8043
8044    cygwin* | mingw* | pw32*)
8045      # When not using gcc, we currently assume that we are using
8046      # Microsoft Visual C++.
8047      # hardcode_libdir_flag_spec is actually meaningless, as there is
8048      # no search path for DLLs.
8049      hardcode_libdir_flag_spec=' '
8050      allow_undefined_flag=unsupported
8051      # Tell ltmain to make .lib files, not .a files.
8052      libext=lib
8053      # Tell ltmain to make .dll files, not .so files.
8054      shrext_cmds=".dll"
8055      # FIXME: Setting linknames here is a bad hack.
8056      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8057      # The linker will automatically build a .lib file if we build a DLL.
8058      old_archive_from_new_cmds='true'
8059      # FIXME: Should let the user specify the lib program.
8060      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8061      fix_srcfile_path='`cygpath -w "$srcfile"`'
8062      enable_shared_with_static_runtimes=yes
8063      ;;
8064
8065    darwin* | rhapsody*)
8066
8067
8068  archive_cmds_need_lc=no
8069  hardcode_direct=no
8070  hardcode_automatic=yes
8071  hardcode_shlibpath_var=unsupported
8072  whole_archive_flag_spec=''
8073  link_all_deplibs=yes
8074  allow_undefined_flag="$_lt_dar_allow_undefined"
8075  if test "$GCC" = "yes"; then
8076    output_verbose_link_cmd=echo
8077    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8078    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8079    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}"
8080    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}"
8081
8082  else
8083  ld_shlibs=no
8084  fi
8085
8086      ;;
8087
8088    dgux*)
8089      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8090      hardcode_libdir_flag_spec='-L$libdir'
8091      hardcode_shlibpath_var=no
8092      ;;
8093
8094    freebsd1*)
8095      ld_shlibs=no
8096      ;;
8097
8098    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8099    # support.  Future versions do this automatically, but an explicit c++rt0.o
8100    # does not break anything, and helps significantly (at the cost of a little
8101    # extra space).
8102    freebsd2.2*)
8103      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8104      hardcode_libdir_flag_spec='-R$libdir'
8105      hardcode_direct=yes
8106      hardcode_shlibpath_var=no
8107      ;;
8108
8109    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8110    freebsd2*)
8111      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8112      hardcode_direct=yes
8113      hardcode_minus_L=yes
8114      hardcode_shlibpath_var=no
8115      ;;
8116
8117    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8118    freebsd* | dragonfly*)
8119      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8120      hardcode_libdir_flag_spec='-R$libdir'
8121      hardcode_direct=yes
8122      hardcode_shlibpath_var=no
8123      ;;
8124
8125    hpux9*)
8126      if test "$GCC" = yes; then
8127	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'
8128      else
8129	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'
8130      fi
8131      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8132      hardcode_libdir_separator=:
8133      hardcode_direct=yes
8134
8135      # hardcode_minus_L: Not really in the search PATH,
8136      # but as the default location of the library.
8137      hardcode_minus_L=yes
8138      export_dynamic_flag_spec='${wl}-E'
8139      ;;
8140
8141    hpux10*)
8142      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8143	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8144      else
8145	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8146      fi
8147      if test "$with_gnu_ld" = no; then
8148	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8149	hardcode_libdir_flag_spec_ld='+b $libdir'
8150	hardcode_libdir_separator=:
8151	hardcode_direct=yes
8152	hardcode_direct_absolute=yes
8153	export_dynamic_flag_spec='${wl}-E'
8154	# hardcode_minus_L: Not really in the search PATH,
8155	# but as the default location of the library.
8156	hardcode_minus_L=yes
8157      fi
8158      ;;
8159
8160    hpux11*)
8161      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8162	case $host_cpu in
8163	hppa*64*)
8164	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8165	  ;;
8166	ia64*)
8167	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8168	  ;;
8169	*)
8170	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8171	  ;;
8172	esac
8173      else
8174	case $host_cpu in
8175	hppa*64*)
8176	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8177	  ;;
8178	ia64*)
8179	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8180	  ;;
8181	*)
8182	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8183	  ;;
8184	esac
8185      fi
8186      if test "$with_gnu_ld" = no; then
8187	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8188	hardcode_libdir_separator=:
8189
8190	case $host_cpu in
8191	hppa*64*|ia64*)
8192	  hardcode_direct=no
8193	  hardcode_shlibpath_var=no
8194	  ;;
8195	*)
8196	  hardcode_direct=yes
8197	  hardcode_direct_absolute=yes
8198	  export_dynamic_flag_spec='${wl}-E'
8199
8200	  # hardcode_minus_L: Not really in the search PATH,
8201	  # but as the default location of the library.
8202	  hardcode_minus_L=yes
8203	  ;;
8204	esac
8205      fi
8206      ;;
8207
8208    irix5* | irix6* | nonstopux*)
8209      if test "$GCC" = yes; then
8210	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'
8211	# Try to use the -exported_symbol ld option, if it does not
8212	# work, assume that -exports_file does not work either and
8213	# implicitly export all symbols.
8214        save_LDFLAGS="$LDFLAGS"
8215        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8216        cat >conftest.$ac_ext <<_ACEOF
8217int foo(void) {}
8218_ACEOF
8219rm -f conftest.$ac_objext conftest$ac_exeext
8220if { (ac_try="$ac_link"
8221case "(($ac_try" in
8222  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8223  *) ac_try_echo=$ac_try;;
8224esac
8225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8226  (eval "$ac_link") 2>conftest.er1
8227  ac_status=$?
8228  grep -v '^ *+' conftest.er1 >conftest.err
8229  rm -f conftest.er1
8230  cat conftest.err >&5
8231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232  (exit $ac_status); } && {
8233	 test -z "$ac_c_werror_flag" ||
8234	 test ! -s conftest.err
8235       } && test -s conftest$ac_exeext &&
8236       $as_test_x conftest$ac_exeext; then
8237  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'
8238
8239else
8240  echo "$as_me: failed program was:" >&5
8241sed 's/^/| /' conftest.$ac_ext >&5
8242
8243
8244fi
8245
8246rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8247      conftest$ac_exeext conftest.$ac_ext
8248        LDFLAGS="$save_LDFLAGS"
8249      else
8250	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'
8251	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'
8252      fi
8253      archive_cmds_need_lc='no'
8254      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8255      hardcode_libdir_separator=:
8256      inherit_rpath=yes
8257      link_all_deplibs=yes
8258      ;;
8259
8260    netbsd*)
8261      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8262	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8263      else
8264	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8265      fi
8266      hardcode_libdir_flag_spec='-R$libdir'
8267      hardcode_direct=yes
8268      hardcode_shlibpath_var=no
8269      ;;
8270
8271    newsos6)
8272      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8273      hardcode_direct=yes
8274      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8275      hardcode_libdir_separator=:
8276      hardcode_shlibpath_var=no
8277      ;;
8278
8279    *nto* | *qnx*)
8280      ;;
8281
8282    openbsd*)
8283      if test -f /usr/libexec/ld.so; then
8284	hardcode_direct=yes
8285	hardcode_shlibpath_var=no
8286	hardcode_direct_absolute=yes
8287	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8288	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8289	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8290	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8291	  export_dynamic_flag_spec='${wl}-E'
8292	else
8293	  case $host_os in
8294	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8295	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8296	     hardcode_libdir_flag_spec='-R$libdir'
8297	     ;;
8298	   *)
8299	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8300	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8301	     ;;
8302	  esac
8303	fi
8304      else
8305	ld_shlibs=no
8306      fi
8307      ;;
8308
8309    os2*)
8310      hardcode_libdir_flag_spec='-L$libdir'
8311      hardcode_minus_L=yes
8312      allow_undefined_flag=unsupported
8313      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'
8314      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8315      ;;
8316
8317    osf3*)
8318      if test "$GCC" = yes; then
8319	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8320	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'
8321      else
8322	allow_undefined_flag=' -expect_unresolved \*'
8323	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'
8324      fi
8325      archive_cmds_need_lc='no'
8326      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8327      hardcode_libdir_separator=:
8328      ;;
8329
8330    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8331      if test "$GCC" = yes; then
8332	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8333	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'
8334	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8335      else
8336	allow_undefined_flag=' -expect_unresolved \*'
8337	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'
8338	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~
8339	$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'
8340
8341	# Both c and cxx compiler support -rpath directly
8342	hardcode_libdir_flag_spec='-rpath $libdir'
8343      fi
8344      archive_cmds_need_lc='no'
8345      hardcode_libdir_separator=:
8346      ;;
8347
8348    solaris*)
8349      no_undefined_flag=' -z defs'
8350      if test "$GCC" = yes; then
8351	wlarc='${wl}'
8352	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8353	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8354	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8355      else
8356	case `$CC -V 2>&1` in
8357	*"Compilers 5.0"*)
8358	  wlarc=''
8359	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8360	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8361	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8362	  ;;
8363	*)
8364	  wlarc='${wl}'
8365	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8366	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8367	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8368	  ;;
8369	esac
8370      fi
8371      hardcode_libdir_flag_spec='-R$libdir'
8372      hardcode_shlibpath_var=no
8373      case $host_os in
8374      solaris2.[0-5] | solaris2.[0-5].*) ;;
8375      *)
8376	# The compiler driver will combine and reorder linker options,
8377	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8378	# but is careful enough not to reorder.
8379	# Supported since Solaris 2.6 (maybe 2.5.1?)
8380	if test "$GCC" = yes; then
8381	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8382	else
8383	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8384	fi
8385	;;
8386      esac
8387      link_all_deplibs=yes
8388      ;;
8389
8390    sunos4*)
8391      if test "x$host_vendor" = xsequent; then
8392	# Use $CC to link under sequent, because it throws in some extra .o
8393	# files that make .init and .fini sections work.
8394	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8395      else
8396	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8397      fi
8398      hardcode_libdir_flag_spec='-L$libdir'
8399      hardcode_direct=yes
8400      hardcode_minus_L=yes
8401      hardcode_shlibpath_var=no
8402      ;;
8403
8404    sysv4)
8405      case $host_vendor in
8406	sni)
8407	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8408	  hardcode_direct=yes # is this really true???
8409	;;
8410	siemens)
8411	  ## LD is ld it makes a PLAMLIB
8412	  ## CC just makes a GrossModule.
8413	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8414	  reload_cmds='$CC -r -o $output$reload_objs'
8415	  hardcode_direct=no
8416        ;;
8417	motorola)
8418	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8419	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8420	;;
8421      esac
8422      runpath_var='LD_RUN_PATH'
8423      hardcode_shlibpath_var=no
8424      ;;
8425
8426    sysv4.3*)
8427      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8428      hardcode_shlibpath_var=no
8429      export_dynamic_flag_spec='-Bexport'
8430      ;;
8431
8432    sysv4*MP*)
8433      if test -d /usr/nec; then
8434	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8435	hardcode_shlibpath_var=no
8436	runpath_var=LD_RUN_PATH
8437	hardcode_runpath_var=yes
8438	ld_shlibs=yes
8439      fi
8440      ;;
8441
8442    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8443      no_undefined_flag='${wl}-z,text'
8444      archive_cmds_need_lc=no
8445      hardcode_shlibpath_var=no
8446      runpath_var='LD_RUN_PATH'
8447
8448      if test "$GCC" = yes; then
8449	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8450	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8451      else
8452	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8453	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8454      fi
8455      ;;
8456
8457    sysv5* | sco3.2v5* | sco5v6*)
8458      # Note: We can NOT use -z defs as we might desire, because we do not
8459      # link with -lc, and that would cause any symbols used from libc to
8460      # always be unresolved, which means just about no library would
8461      # ever link correctly.  If we're not using GNU ld we use -z text
8462      # though, which does catch some bad symbols but isn't as heavy-handed
8463      # as -z defs.
8464      no_undefined_flag='${wl}-z,text'
8465      allow_undefined_flag='${wl}-z,nodefs'
8466      archive_cmds_need_lc=no
8467      hardcode_shlibpath_var=no
8468      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8469      hardcode_libdir_separator=':'
8470      link_all_deplibs=yes
8471      export_dynamic_flag_spec='${wl}-Bexport'
8472      runpath_var='LD_RUN_PATH'
8473
8474      if test "$GCC" = yes; then
8475	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8476	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8477      else
8478	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8479	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8480      fi
8481      ;;
8482
8483    uts4*)
8484      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8485      hardcode_libdir_flag_spec='-L$libdir'
8486      hardcode_shlibpath_var=no
8487      ;;
8488
8489    *)
8490      ld_shlibs=no
8491      ;;
8492    esac
8493
8494    if test x$host_vendor = xsni; then
8495      case $host in
8496      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8497	export_dynamic_flag_spec='${wl}-Blargedynsym'
8498	;;
8499      esac
8500    fi
8501  fi
8502
8503{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8504echo "${ECHO_T}$ld_shlibs" >&6; }
8505test "$ld_shlibs" = no && can_build_shared=no
8506
8507with_gnu_ld=$with_gnu_ld
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523#
8524# Do we need to explicitly link libc?
8525#
8526case "x$archive_cmds_need_lc" in
8527x|xyes)
8528  # Assume -lc should be added
8529  archive_cmds_need_lc=yes
8530
8531  if test "$enable_shared" = yes && test "$GCC" = yes; then
8532    case $archive_cmds in
8533    *'~'*)
8534      # FIXME: we may have to deal with multi-command sequences.
8535      ;;
8536    '$CC '*)
8537      # Test whether the compiler implicitly links with -lc since on some
8538      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8539      # to ld, don't add -lc before -lgcc.
8540      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8541echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8542      $RM conftest*
8543      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8544
8545      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8546  (eval $ac_compile) 2>&5
8547  ac_status=$?
8548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549  (exit $ac_status); } 2>conftest.err; then
8550        soname=conftest
8551        lib=conftest
8552        libobjs=conftest.$ac_objext
8553        deplibs=
8554        wl=$lt_prog_compiler_wl
8555	pic_flag=$lt_prog_compiler_pic
8556        compiler_flags=-v
8557        linker_flags=-v
8558        verstring=
8559        output_objdir=.
8560        libname=conftest
8561        lt_save_allow_undefined_flag=$allow_undefined_flag
8562        allow_undefined_flag=
8563        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8564  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8565  ac_status=$?
8566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567  (exit $ac_status); }
8568        then
8569	  archive_cmds_need_lc=no
8570        else
8571	  archive_cmds_need_lc=yes
8572        fi
8573        allow_undefined_flag=$lt_save_allow_undefined_flag
8574      else
8575        cat conftest.err 1>&5
8576      fi
8577      $RM conftest*
8578      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8579echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8580      ;;
8581    esac
8582  fi
8583  ;;
8584esac
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
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
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742  { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8743echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8744
8745if test "$GCC" = yes; then
8746  case $host_os in
8747    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8748    *) lt_awk_arg="/^libraries:/" ;;
8749  esac
8750  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8751  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8752    # if the path contains ";" then we assume it to be the separator
8753    # otherwise default to the standard path separator (i.e. ":") - it is
8754    # assumed that no part of a normal pathname contains ";" but that should
8755    # okay in the real world where ";" in dirpaths is itself problematic.
8756    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8757  else
8758    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8759  fi
8760  # Ok, now we have the path, separated by spaces, we can step through it
8761  # and add multilib dir if necessary.
8762  lt_tmp_lt_search_path_spec=
8763  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8764  for lt_sys_path in $lt_search_path_spec; do
8765    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8766      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8767    else
8768      test -d "$lt_sys_path" && \
8769	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8770    fi
8771  done
8772  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8773BEGIN {RS=" "; FS="/|\n";} {
8774  lt_foo="";
8775  lt_count=0;
8776  for (lt_i = NF; lt_i > 0; lt_i--) {
8777    if ($lt_i != "" && $lt_i != ".") {
8778      if ($lt_i == "..") {
8779        lt_count++;
8780      } else {
8781        if (lt_count == 0) {
8782          lt_foo="/" $lt_i lt_foo;
8783        } else {
8784          lt_count--;
8785        }
8786      }
8787    }
8788  }
8789  if (lt_foo != "") { lt_freq[lt_foo]++; }
8790  if (lt_freq[lt_foo] == 1) { print lt_foo; }
8791}'`
8792  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8793else
8794  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8795fi
8796library_names_spec=
8797libname_spec='lib$name'
8798soname_spec=
8799shrext_cmds=".so"
8800postinstall_cmds=
8801postuninstall_cmds=
8802finish_cmds=
8803finish_eval=
8804shlibpath_var=
8805shlibpath_overrides_runpath=unknown
8806version_type=none
8807dynamic_linker="$host_os ld.so"
8808sys_lib_dlsearch_path_spec="/lib /usr/lib"
8809need_lib_prefix=unknown
8810hardcode_into_libs=no
8811
8812# when you set need_version to no, make sure it does not cause -set_version
8813# flags to be left without arguments
8814need_version=unknown
8815
8816case $host_os in
8817aix3*)
8818  version_type=linux
8819  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8820  shlibpath_var=LIBPATH
8821
8822  # AIX 3 has no versioning support, so we append a major version to the name.
8823  soname_spec='${libname}${release}${shared_ext}$major'
8824  ;;
8825
8826aix[4-9]*)
8827  version_type=linux
8828  need_lib_prefix=no
8829  need_version=no
8830  hardcode_into_libs=yes
8831  if test "$host_cpu" = ia64; then
8832    # AIX 5 supports IA64
8833    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8834    shlibpath_var=LD_LIBRARY_PATH
8835  else
8836    # With GCC up to 2.95.x, collect2 would create an import file
8837    # for dependence libraries.  The import file would start with
8838    # the line `#! .'.  This would cause the generated library to
8839    # depend on `.', always an invalid library.  This was fixed in
8840    # development snapshots of GCC prior to 3.0.
8841    case $host_os in
8842      aix4 | aix4.[01] | aix4.[01].*)
8843      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8844	   echo ' yes '
8845	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8846	:
8847      else
8848	can_build_shared=no
8849      fi
8850      ;;
8851    esac
8852    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8853    # soname into executable. Probably we can add versioning support to
8854    # collect2, so additional links can be useful in future.
8855    if test "$aix_use_runtimelinking" = yes; then
8856      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8857      # instead of lib<name>.a to let people know that these are not
8858      # typical AIX shared libraries.
8859      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8860    else
8861      # We preserve .a as extension for shared libraries through AIX4.2
8862      # and later when we are not doing run time linking.
8863      library_names_spec='${libname}${release}.a $libname.a'
8864      soname_spec='${libname}${release}${shared_ext}$major'
8865    fi
8866    shlibpath_var=LIBPATH
8867  fi
8868  ;;
8869
8870amigaos*)
8871  if test "$host_cpu" = m68k; then
8872    library_names_spec='$libname.ixlibrary $libname.a'
8873    # Create ${libname}_ixlibrary.a entries in /sys/libs.
8874    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'
8875  else
8876    dynamic_linker=no
8877  fi
8878  ;;
8879
8880beos*)
8881  library_names_spec='${libname}${shared_ext}'
8882  dynamic_linker="$host_os ld.so"
8883  shlibpath_var=LIBRARY_PATH
8884  ;;
8885
8886bsdi[45]*)
8887  version_type=linux
8888  need_version=no
8889  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8890  soname_spec='${libname}${release}${shared_ext}$major'
8891  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8892  shlibpath_var=LD_LIBRARY_PATH
8893  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8894  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8895  # the default ld.so.conf also contains /usr/contrib/lib and
8896  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8897  # libtool to hard-code these into programs
8898  ;;
8899
8900cygwin* | mingw* | pw32*)
8901  version_type=windows
8902  shrext_cmds=".dll"
8903  need_version=no
8904  need_lib_prefix=no
8905
8906  case $GCC,$host_os in
8907  yes,cygwin* | yes,mingw* | yes,pw32*)
8908    library_names_spec='$libname.dll.a'
8909    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8910    postinstall_cmds='base_file=`basename \${file}`~
8911      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8912      dldir=$destdir/`dirname \$dlpath`~
8913      test -d \$dldir || mkdir -p \$dldir~
8914      $install_prog $dir/$dlname \$dldir/$dlname~
8915      chmod a+x \$dldir/$dlname~
8916      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8917        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8918      fi'
8919    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8920      dlpath=$dir/\$dldll~
8921       $RM \$dlpath'
8922    shlibpath_overrides_runpath=yes
8923
8924    case $host_os in
8925    cygwin*)
8926      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8927      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8928      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8929      ;;
8930    mingw*)
8931      # MinGW DLLs use traditional 'lib' prefix
8932      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8933      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8934      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8935        # It is most probably a Windows format PATH printed by
8936        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8937        # path with ; separators, and with drive letters. We can handle the
8938        # drive letters (cygwin fileutils understands them), so leave them,
8939        # especially as we might pass files found there to a mingw objdump,
8940        # which wouldn't understand a cygwinified path. Ahh.
8941        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8942      else
8943        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8944      fi
8945      ;;
8946    pw32*)
8947      # pw32 DLLs use 'pw' prefix rather than 'lib'
8948      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8949      ;;
8950    esac
8951    ;;
8952
8953  *)
8954    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8955    ;;
8956  esac
8957  dynamic_linker='Win32 ld.exe'
8958  # FIXME: first we should search . and the directory the executable is in
8959  shlibpath_var=PATH
8960  ;;
8961
8962darwin* | rhapsody*)
8963  dynamic_linker="$host_os dyld"
8964  version_type=darwin
8965  need_lib_prefix=no
8966  need_version=no
8967  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8968  soname_spec='${libname}${release}${major}$shared_ext'
8969  shlibpath_overrides_runpath=yes
8970  shlibpath_var=DYLD_LIBRARY_PATH
8971  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8972
8973  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8974  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8975  ;;
8976
8977dgux*)
8978  version_type=linux
8979  need_lib_prefix=no
8980  need_version=no
8981  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8982  soname_spec='${libname}${release}${shared_ext}$major'
8983  shlibpath_var=LD_LIBRARY_PATH
8984  ;;
8985
8986freebsd1*)
8987  dynamic_linker=no
8988  ;;
8989
8990freebsd* | dragonfly*)
8991  # DragonFly does not have aout.  When/if they implement a new
8992  # versioning mechanism, adjust this.
8993  if test -x /usr/bin/objformat; then
8994    objformat=`/usr/bin/objformat`
8995  else
8996    case $host_os in
8997    freebsd[123]*) objformat=aout ;;
8998    *) objformat=elf ;;
8999    esac
9000  fi
9001  version_type=freebsd-$objformat
9002  case $version_type in
9003    freebsd-elf*)
9004      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9005      need_version=no
9006      need_lib_prefix=no
9007      ;;
9008    freebsd-*)
9009      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9010      need_version=yes
9011      ;;
9012  esac
9013  shlibpath_var=LD_LIBRARY_PATH
9014  case $host_os in
9015  freebsd2*)
9016    shlibpath_overrides_runpath=yes
9017    ;;
9018  freebsd3.[01]* | freebsdelf3.[01]*)
9019    shlibpath_overrides_runpath=yes
9020    hardcode_into_libs=yes
9021    ;;
9022  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9023  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9024    shlibpath_overrides_runpath=no
9025    hardcode_into_libs=yes
9026    ;;
9027  *) # from 4.6 on, and DragonFly
9028    shlibpath_overrides_runpath=yes
9029    hardcode_into_libs=yes
9030    ;;
9031  esac
9032  ;;
9033
9034gnu*)
9035  version_type=linux
9036  need_lib_prefix=no
9037  need_version=no
9038  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9039  soname_spec='${libname}${release}${shared_ext}$major'
9040  shlibpath_var=LD_LIBRARY_PATH
9041  hardcode_into_libs=yes
9042  ;;
9043
9044hpux9* | hpux10* | hpux11*)
9045  # Give a soname corresponding to the major version so that dld.sl refuses to
9046  # link against other versions.
9047  version_type=sunos
9048  need_lib_prefix=no
9049  need_version=no
9050  case $host_cpu in
9051  ia64*)
9052    shrext_cmds='.so'
9053    hardcode_into_libs=yes
9054    dynamic_linker="$host_os dld.so"
9055    shlibpath_var=LD_LIBRARY_PATH
9056    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9057    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9058    soname_spec='${libname}${release}${shared_ext}$major'
9059    if test "X$HPUX_IA64_MODE" = X32; then
9060      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9061    else
9062      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9063    fi
9064    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9065    ;;
9066  hppa*64*)
9067    shrext_cmds='.sl'
9068    hardcode_into_libs=yes
9069    dynamic_linker="$host_os dld.sl"
9070    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9071    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9072    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9073    soname_spec='${libname}${release}${shared_ext}$major'
9074    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9075    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9076    ;;
9077  *)
9078    shrext_cmds='.sl'
9079    dynamic_linker="$host_os dld.sl"
9080    shlibpath_var=SHLIB_PATH
9081    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9082    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9083    soname_spec='${libname}${release}${shared_ext}$major'
9084    ;;
9085  esac
9086  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9087  postinstall_cmds='chmod 555 $lib'
9088  ;;
9089
9090interix[3-9]*)
9091  version_type=linux
9092  need_lib_prefix=no
9093  need_version=no
9094  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9095  soname_spec='${libname}${release}${shared_ext}$major'
9096  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9097  shlibpath_var=LD_LIBRARY_PATH
9098  shlibpath_overrides_runpath=no
9099  hardcode_into_libs=yes
9100  ;;
9101
9102irix5* | irix6* | nonstopux*)
9103  case $host_os in
9104    nonstopux*) version_type=nonstopux ;;
9105    *)
9106	if test "$lt_cv_prog_gnu_ld" = yes; then
9107		version_type=linux
9108	else
9109		version_type=irix
9110	fi ;;
9111  esac
9112  need_lib_prefix=no
9113  need_version=no
9114  soname_spec='${libname}${release}${shared_ext}$major'
9115  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9116  case $host_os in
9117  irix5* | nonstopux*)
9118    libsuff= shlibsuff=
9119    ;;
9120  *)
9121    case $LD in # libtool.m4 will add one of these switches to LD
9122    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9123      libsuff= shlibsuff= libmagic=32-bit;;
9124    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9125      libsuff=32 shlibsuff=N32 libmagic=N32;;
9126    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9127      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9128    *) libsuff= shlibsuff= libmagic=never-match;;
9129    esac
9130    ;;
9131  esac
9132  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9133  shlibpath_overrides_runpath=no
9134  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9135  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9136  hardcode_into_libs=yes
9137  ;;
9138
9139# No shared lib support for Linux oldld, aout, or coff.
9140linux*oldld* | linux*aout* | linux*coff*)
9141  dynamic_linker=no
9142  ;;
9143
9144# This must be Linux ELF.
9145linux* | k*bsd*-gnu)
9146  version_type=linux
9147  need_lib_prefix=no
9148  need_version=no
9149  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9150  soname_spec='${libname}${release}${shared_ext}$major'
9151  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9152  shlibpath_var=LD_LIBRARY_PATH
9153  shlibpath_overrides_runpath=no
9154  # Some binutils ld are patched to set DT_RUNPATH
9155  save_LDFLAGS=$LDFLAGS
9156  save_libdir=$libdir
9157  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9158       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9159  cat >conftest.$ac_ext <<_ACEOF
9160/* confdefs.h.  */
9161_ACEOF
9162cat confdefs.h >>conftest.$ac_ext
9163cat >>conftest.$ac_ext <<_ACEOF
9164/* end confdefs.h.  */
9165
9166int
9167main ()
9168{
9169
9170  ;
9171  return 0;
9172}
9173_ACEOF
9174rm -f conftest.$ac_objext conftest$ac_exeext
9175if { (ac_try="$ac_link"
9176case "(($ac_try" in
9177  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9178  *) ac_try_echo=$ac_try;;
9179esac
9180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9181  (eval "$ac_link") 2>conftest.er1
9182  ac_status=$?
9183  grep -v '^ *+' conftest.er1 >conftest.err
9184  rm -f conftest.er1
9185  cat conftest.err >&5
9186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187  (exit $ac_status); } && {
9188	 test -z "$ac_c_werror_flag" ||
9189	 test ! -s conftest.err
9190       } && test -s conftest$ac_exeext &&
9191       $as_test_x conftest$ac_exeext; then
9192  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9193  shlibpath_overrides_runpath=yes
9194fi
9195
9196else
9197  echo "$as_me: failed program was:" >&5
9198sed 's/^/| /' conftest.$ac_ext >&5
9199
9200
9201fi
9202
9203rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9204      conftest$ac_exeext conftest.$ac_ext
9205  LDFLAGS=$save_LDFLAGS
9206  libdir=$save_libdir
9207
9208  # This implies no fast_install, which is unacceptable.
9209  # Some rework will be needed to allow for fast_install
9210  # before this can be enabled.
9211  hardcode_into_libs=yes
9212
9213  # Append ld.so.conf contents to the search path
9214  if test -f /etc/ld.so.conf; then
9215    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' ' '`
9216    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9217  fi
9218
9219  # We used to test for /lib/ld.so.1 and disable shared libraries on
9220  # powerpc, because MkLinux only supported shared libraries with the
9221  # GNU dynamic linker.  Since this was broken with cross compilers,
9222  # most powerpc-linux boxes support dynamic linking these days and
9223  # people can always --disable-shared, the test was removed, and we
9224  # assume the GNU/Linux dynamic linker is in use.
9225  dynamic_linker='GNU/Linux ld.so'
9226  ;;
9227
9228netbsd*)
9229  version_type=sunos
9230  need_lib_prefix=no
9231  need_version=no
9232  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9233    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9234    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9235    dynamic_linker='NetBSD (a.out) ld.so'
9236  else
9237    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9238    soname_spec='${libname}${release}${shared_ext}$major'
9239    dynamic_linker='NetBSD ld.elf_so'
9240  fi
9241  shlibpath_var=LD_LIBRARY_PATH
9242  shlibpath_overrides_runpath=yes
9243  hardcode_into_libs=yes
9244  ;;
9245
9246newsos6)
9247  version_type=linux
9248  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9249  shlibpath_var=LD_LIBRARY_PATH
9250  shlibpath_overrides_runpath=yes
9251  ;;
9252
9253*nto* | *qnx*)
9254  version_type=qnx
9255  need_lib_prefix=no
9256  need_version=no
9257  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9258  soname_spec='${libname}${release}${shared_ext}$major'
9259  shlibpath_var=LD_LIBRARY_PATH
9260  shlibpath_overrides_runpath=no
9261  hardcode_into_libs=yes
9262  dynamic_linker='ldqnx.so'
9263  ;;
9264
9265openbsd*)
9266  version_type=sunos
9267  sys_lib_dlsearch_path_spec="/usr/lib"
9268  need_lib_prefix=no
9269  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9270  case $host_os in
9271    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
9272    *)				need_version=no  ;;
9273  esac
9274  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9275  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9276  shlibpath_var=LD_LIBRARY_PATH
9277  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9278    case $host_os in
9279      openbsd2.[89] | openbsd2.[89].*)
9280	shlibpath_overrides_runpath=no
9281	;;
9282      *)
9283	shlibpath_overrides_runpath=yes
9284	;;
9285      esac
9286  else
9287    shlibpath_overrides_runpath=yes
9288  fi
9289  ;;
9290
9291os2*)
9292  libname_spec='$name'
9293  shrext_cmds=".dll"
9294  need_lib_prefix=no
9295  library_names_spec='$libname${shared_ext} $libname.a'
9296  dynamic_linker='OS/2 ld.exe'
9297  shlibpath_var=LIBPATH
9298  ;;
9299
9300osf3* | osf4* | osf5*)
9301  version_type=osf
9302  need_lib_prefix=no
9303  need_version=no
9304  soname_spec='${libname}${release}${shared_ext}$major'
9305  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9306  shlibpath_var=LD_LIBRARY_PATH
9307  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9308  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9309  ;;
9310
9311rdos*)
9312  dynamic_linker=no
9313  ;;
9314
9315solaris*)
9316  version_type=linux
9317  need_lib_prefix=no
9318  need_version=no
9319  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9320  soname_spec='${libname}${release}${shared_ext}$major'
9321  shlibpath_var=LD_LIBRARY_PATH
9322  shlibpath_overrides_runpath=yes
9323  hardcode_into_libs=yes
9324  # ldd complains unless libraries are executable
9325  postinstall_cmds='chmod +x $lib'
9326  ;;
9327
9328sunos4*)
9329  version_type=sunos
9330  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9331  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9332  shlibpath_var=LD_LIBRARY_PATH
9333  shlibpath_overrides_runpath=yes
9334  if test "$with_gnu_ld" = yes; then
9335    need_lib_prefix=no
9336  fi
9337  need_version=yes
9338  ;;
9339
9340sysv4 | sysv4.3*)
9341  version_type=linux
9342  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9343  soname_spec='${libname}${release}${shared_ext}$major'
9344  shlibpath_var=LD_LIBRARY_PATH
9345  case $host_vendor in
9346    sni)
9347      shlibpath_overrides_runpath=no
9348      need_lib_prefix=no
9349      runpath_var=LD_RUN_PATH
9350      ;;
9351    siemens)
9352      need_lib_prefix=no
9353      ;;
9354    motorola)
9355      need_lib_prefix=no
9356      need_version=no
9357      shlibpath_overrides_runpath=no
9358      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9359      ;;
9360  esac
9361  ;;
9362
9363sysv4*MP*)
9364  if test -d /usr/nec ;then
9365    version_type=linux
9366    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9367    soname_spec='$libname${shared_ext}.$major'
9368    shlibpath_var=LD_LIBRARY_PATH
9369  fi
9370  ;;
9371
9372sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9373  version_type=freebsd-elf
9374  need_lib_prefix=no
9375  need_version=no
9376  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9377  soname_spec='${libname}${release}${shared_ext}$major'
9378  shlibpath_var=LD_LIBRARY_PATH
9379  shlibpath_overrides_runpath=yes
9380  hardcode_into_libs=yes
9381  if test "$with_gnu_ld" = yes; then
9382    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9383  else
9384    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9385    case $host_os in
9386      sco3.2v5*)
9387        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9388	;;
9389    esac
9390  fi
9391  sys_lib_dlsearch_path_spec='/usr/lib'
9392  ;;
9393
9394tpf*)
9395  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9396  version_type=linux
9397  need_lib_prefix=no
9398  need_version=no
9399  library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9400  shlibpath_var=LD_LIBRARY_PATH
9401  shlibpath_overrides_runpath=no
9402  hardcode_into_libs=yes
9403  ;;
9404
9405uts4*)
9406  version_type=linux
9407  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9408  soname_spec='${libname}${release}${shared_ext}$major'
9409  shlibpath_var=LD_LIBRARY_PATH
9410  ;;
9411
9412*)
9413  dynamic_linker=no
9414  ;;
9415esac
9416{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9417echo "${ECHO_T}$dynamic_linker" >&6; }
9418test "$dynamic_linker" = no && can_build_shared=no
9419
9420variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9421if test "$GCC" = yes; then
9422  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9423fi
9424
9425if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9426  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9427fi
9428if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9429  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9430fi
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518  { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9519echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9520hardcode_action=
9521if test -n "$hardcode_libdir_flag_spec" ||
9522   test -n "$runpath_var" ||
9523   test "X$hardcode_automatic" = "Xyes" ; then
9524
9525  # We can hardcode non-existent directories.
9526  if test "$hardcode_direct" != no &&
9527     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9528     # have to relink, otherwise we might link with an installed library
9529     # when we should be linking with a yet-to-be-installed one
9530     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9531     test "$hardcode_minus_L" != no; then
9532    # Linking always hardcodes the temporary library directory.
9533    hardcode_action=relink
9534  else
9535    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9536    hardcode_action=immediate
9537  fi
9538else
9539  # We cannot hardcode anything, or else we can only hardcode existing
9540  # directories.
9541  hardcode_action=unsupported
9542fi
9543{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9544echo "${ECHO_T}$hardcode_action" >&6; }
9545
9546if test "$hardcode_action" = relink ||
9547   test "$inherit_rpath" = yes; then
9548  # Fast installation is not supported
9549  enable_fast_install=no
9550elif test "$shlibpath_overrides_runpath" = yes ||
9551     test "$enable_shared" = no; then
9552  # Fast installation is not necessary
9553  enable_fast_install=needless
9554fi
9555
9556
9557
9558
9559
9560
9561  if test "x$enable_dlopen" != xyes; then
9562  enable_dlopen=unknown
9563  enable_dlopen_self=unknown
9564  enable_dlopen_self_static=unknown
9565else
9566  lt_cv_dlopen=no
9567  lt_cv_dlopen_libs=
9568
9569  case $host_os in
9570  beos*)
9571    lt_cv_dlopen="load_add_on"
9572    lt_cv_dlopen_libs=
9573    lt_cv_dlopen_self=yes
9574    ;;
9575
9576  mingw* | pw32*)
9577    lt_cv_dlopen="LoadLibrary"
9578    lt_cv_dlopen_libs=
9579    ;;
9580
9581  cygwin*)
9582    lt_cv_dlopen="dlopen"
9583    lt_cv_dlopen_libs=
9584    ;;
9585
9586  darwin*)
9587  # if libdl is installed we need to link against it
9588    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9589echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9590if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9591  echo $ECHO_N "(cached) $ECHO_C" >&6
9592else
9593  ac_check_lib_save_LIBS=$LIBS
9594LIBS="-ldl  $LIBS"
9595cat >conftest.$ac_ext <<_ACEOF
9596/* confdefs.h.  */
9597_ACEOF
9598cat confdefs.h >>conftest.$ac_ext
9599cat >>conftest.$ac_ext <<_ACEOF
9600/* end confdefs.h.  */
9601
9602/* Override any GCC internal prototype to avoid an error.
9603   Use char because int might match the return type of a GCC
9604   builtin and then its argument prototype would still apply.  */
9605#ifdef __cplusplus
9606extern "C"
9607#endif
9608char dlopen ();
9609int
9610main ()
9611{
9612return dlopen ();
9613  ;
9614  return 0;
9615}
9616_ACEOF
9617rm -f conftest.$ac_objext conftest$ac_exeext
9618if { (ac_try="$ac_link"
9619case "(($ac_try" in
9620  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9621  *) ac_try_echo=$ac_try;;
9622esac
9623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9624  (eval "$ac_link") 2>conftest.er1
9625  ac_status=$?
9626  grep -v '^ *+' conftest.er1 >conftest.err
9627  rm -f conftest.er1
9628  cat conftest.err >&5
9629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630  (exit $ac_status); } && {
9631	 test -z "$ac_c_werror_flag" ||
9632	 test ! -s conftest.err
9633       } && test -s conftest$ac_exeext &&
9634       $as_test_x conftest$ac_exeext; then
9635  ac_cv_lib_dl_dlopen=yes
9636else
9637  echo "$as_me: failed program was:" >&5
9638sed 's/^/| /' conftest.$ac_ext >&5
9639
9640	ac_cv_lib_dl_dlopen=no
9641fi
9642
9643rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9644      conftest$ac_exeext conftest.$ac_ext
9645LIBS=$ac_check_lib_save_LIBS
9646fi
9647{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9648echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9649if test $ac_cv_lib_dl_dlopen = yes; then
9650  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9651else
9652
9653    lt_cv_dlopen="dyld"
9654    lt_cv_dlopen_libs=
9655    lt_cv_dlopen_self=yes
9656
9657fi
9658
9659    ;;
9660
9661  *)
9662    { echo "$as_me:$LINENO: checking for shl_load" >&5
9663echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9664if test "${ac_cv_func_shl_load+set}" = set; then
9665  echo $ECHO_N "(cached) $ECHO_C" >&6
9666else
9667  cat >conftest.$ac_ext <<_ACEOF
9668/* confdefs.h.  */
9669_ACEOF
9670cat confdefs.h >>conftest.$ac_ext
9671cat >>conftest.$ac_ext <<_ACEOF
9672/* end confdefs.h.  */
9673/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9674   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9675#define shl_load innocuous_shl_load
9676
9677/* System header to define __stub macros and hopefully few prototypes,
9678    which can conflict with char shl_load (); below.
9679    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9680    <limits.h> exists even on freestanding compilers.  */
9681
9682#ifdef __STDC__
9683# include <limits.h>
9684#else
9685# include <assert.h>
9686#endif
9687
9688#undef shl_load
9689
9690/* Override any GCC internal prototype to avoid an error.
9691   Use char because int might match the return type of a GCC
9692   builtin and then its argument prototype would still apply.  */
9693#ifdef __cplusplus
9694extern "C"
9695#endif
9696char shl_load ();
9697/* The GNU C library defines this for functions which it implements
9698    to always fail with ENOSYS.  Some functions are actually named
9699    something starting with __ and the normal name is an alias.  */
9700#if defined __stub_shl_load || defined __stub___shl_load
9701choke me
9702#endif
9703
9704int
9705main ()
9706{
9707return shl_load ();
9708  ;
9709  return 0;
9710}
9711_ACEOF
9712rm -f conftest.$ac_objext conftest$ac_exeext
9713if { (ac_try="$ac_link"
9714case "(($ac_try" in
9715  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9716  *) ac_try_echo=$ac_try;;
9717esac
9718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9719  (eval "$ac_link") 2>conftest.er1
9720  ac_status=$?
9721  grep -v '^ *+' conftest.er1 >conftest.err
9722  rm -f conftest.er1
9723  cat conftest.err >&5
9724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725  (exit $ac_status); } && {
9726	 test -z "$ac_c_werror_flag" ||
9727	 test ! -s conftest.err
9728       } && test -s conftest$ac_exeext &&
9729       $as_test_x conftest$ac_exeext; then
9730  ac_cv_func_shl_load=yes
9731else
9732  echo "$as_me: failed program was:" >&5
9733sed 's/^/| /' conftest.$ac_ext >&5
9734
9735	ac_cv_func_shl_load=no
9736fi
9737
9738rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9739      conftest$ac_exeext conftest.$ac_ext
9740fi
9741{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9742echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9743if test $ac_cv_func_shl_load = yes; then
9744  lt_cv_dlopen="shl_load"
9745else
9746  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9747echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9748if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9749  echo $ECHO_N "(cached) $ECHO_C" >&6
9750else
9751  ac_check_lib_save_LIBS=$LIBS
9752LIBS="-ldld  $LIBS"
9753cat >conftest.$ac_ext <<_ACEOF
9754/* confdefs.h.  */
9755_ACEOF
9756cat confdefs.h >>conftest.$ac_ext
9757cat >>conftest.$ac_ext <<_ACEOF
9758/* end confdefs.h.  */
9759
9760/* Override any GCC internal prototype to avoid an error.
9761   Use char because int might match the return type of a GCC
9762   builtin and then its argument prototype would still apply.  */
9763#ifdef __cplusplus
9764extern "C"
9765#endif
9766char shl_load ();
9767int
9768main ()
9769{
9770return shl_load ();
9771  ;
9772  return 0;
9773}
9774_ACEOF
9775rm -f conftest.$ac_objext conftest$ac_exeext
9776if { (ac_try="$ac_link"
9777case "(($ac_try" in
9778  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9779  *) ac_try_echo=$ac_try;;
9780esac
9781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9782  (eval "$ac_link") 2>conftest.er1
9783  ac_status=$?
9784  grep -v '^ *+' conftest.er1 >conftest.err
9785  rm -f conftest.er1
9786  cat conftest.err >&5
9787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788  (exit $ac_status); } && {
9789	 test -z "$ac_c_werror_flag" ||
9790	 test ! -s conftest.err
9791       } && test -s conftest$ac_exeext &&
9792       $as_test_x conftest$ac_exeext; then
9793  ac_cv_lib_dld_shl_load=yes
9794else
9795  echo "$as_me: failed program was:" >&5
9796sed 's/^/| /' conftest.$ac_ext >&5
9797
9798	ac_cv_lib_dld_shl_load=no
9799fi
9800
9801rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9802      conftest$ac_exeext conftest.$ac_ext
9803LIBS=$ac_check_lib_save_LIBS
9804fi
9805{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9806echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9807if test $ac_cv_lib_dld_shl_load = yes; then
9808  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9809else
9810  { echo "$as_me:$LINENO: checking for dlopen" >&5
9811echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9812if test "${ac_cv_func_dlopen+set}" = set; then
9813  echo $ECHO_N "(cached) $ECHO_C" >&6
9814else
9815  cat >conftest.$ac_ext <<_ACEOF
9816/* confdefs.h.  */
9817_ACEOF
9818cat confdefs.h >>conftest.$ac_ext
9819cat >>conftest.$ac_ext <<_ACEOF
9820/* end confdefs.h.  */
9821/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9822   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9823#define dlopen innocuous_dlopen
9824
9825/* System header to define __stub macros and hopefully few prototypes,
9826    which can conflict with char dlopen (); below.
9827    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9828    <limits.h> exists even on freestanding compilers.  */
9829
9830#ifdef __STDC__
9831# include <limits.h>
9832#else
9833# include <assert.h>
9834#endif
9835
9836#undef dlopen
9837
9838/* Override any GCC internal prototype to avoid an error.
9839   Use char because int might match the return type of a GCC
9840   builtin and then its argument prototype would still apply.  */
9841#ifdef __cplusplus
9842extern "C"
9843#endif
9844char dlopen ();
9845/* The GNU C library defines this for functions which it implements
9846    to always fail with ENOSYS.  Some functions are actually named
9847    something starting with __ and the normal name is an alias.  */
9848#if defined __stub_dlopen || defined __stub___dlopen
9849choke me
9850#endif
9851
9852int
9853main ()
9854{
9855return dlopen ();
9856  ;
9857  return 0;
9858}
9859_ACEOF
9860rm -f conftest.$ac_objext conftest$ac_exeext
9861if { (ac_try="$ac_link"
9862case "(($ac_try" in
9863  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9864  *) ac_try_echo=$ac_try;;
9865esac
9866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9867  (eval "$ac_link") 2>conftest.er1
9868  ac_status=$?
9869  grep -v '^ *+' conftest.er1 >conftest.err
9870  rm -f conftest.er1
9871  cat conftest.err >&5
9872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873  (exit $ac_status); } && {
9874	 test -z "$ac_c_werror_flag" ||
9875	 test ! -s conftest.err
9876       } && test -s conftest$ac_exeext &&
9877       $as_test_x conftest$ac_exeext; then
9878  ac_cv_func_dlopen=yes
9879else
9880  echo "$as_me: failed program was:" >&5
9881sed 's/^/| /' conftest.$ac_ext >&5
9882
9883	ac_cv_func_dlopen=no
9884fi
9885
9886rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9887      conftest$ac_exeext conftest.$ac_ext
9888fi
9889{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9890echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9891if test $ac_cv_func_dlopen = yes; then
9892  lt_cv_dlopen="dlopen"
9893else
9894  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9895echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9896if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9897  echo $ECHO_N "(cached) $ECHO_C" >&6
9898else
9899  ac_check_lib_save_LIBS=$LIBS
9900LIBS="-ldl  $LIBS"
9901cat >conftest.$ac_ext <<_ACEOF
9902/* confdefs.h.  */
9903_ACEOF
9904cat confdefs.h >>conftest.$ac_ext
9905cat >>conftest.$ac_ext <<_ACEOF
9906/* end confdefs.h.  */
9907
9908/* Override any GCC internal prototype to avoid an error.
9909   Use char because int might match the return type of a GCC
9910   builtin and then its argument prototype would still apply.  */
9911#ifdef __cplusplus
9912extern "C"
9913#endif
9914char dlopen ();
9915int
9916main ()
9917{
9918return dlopen ();
9919  ;
9920  return 0;
9921}
9922_ACEOF
9923rm -f conftest.$ac_objext conftest$ac_exeext
9924if { (ac_try="$ac_link"
9925case "(($ac_try" in
9926  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9927  *) ac_try_echo=$ac_try;;
9928esac
9929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9930  (eval "$ac_link") 2>conftest.er1
9931  ac_status=$?
9932  grep -v '^ *+' conftest.er1 >conftest.err
9933  rm -f conftest.er1
9934  cat conftest.err >&5
9935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936  (exit $ac_status); } && {
9937	 test -z "$ac_c_werror_flag" ||
9938	 test ! -s conftest.err
9939       } && test -s conftest$ac_exeext &&
9940       $as_test_x conftest$ac_exeext; then
9941  ac_cv_lib_dl_dlopen=yes
9942else
9943  echo "$as_me: failed program was:" >&5
9944sed 's/^/| /' conftest.$ac_ext >&5
9945
9946	ac_cv_lib_dl_dlopen=no
9947fi
9948
9949rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9950      conftest$ac_exeext conftest.$ac_ext
9951LIBS=$ac_check_lib_save_LIBS
9952fi
9953{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9954echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9955if test $ac_cv_lib_dl_dlopen = yes; then
9956  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9957else
9958  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9959echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9960if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9961  echo $ECHO_N "(cached) $ECHO_C" >&6
9962else
9963  ac_check_lib_save_LIBS=$LIBS
9964LIBS="-lsvld  $LIBS"
9965cat >conftest.$ac_ext <<_ACEOF
9966/* confdefs.h.  */
9967_ACEOF
9968cat confdefs.h >>conftest.$ac_ext
9969cat >>conftest.$ac_ext <<_ACEOF
9970/* end confdefs.h.  */
9971
9972/* Override any GCC internal prototype to avoid an error.
9973   Use char because int might match the return type of a GCC
9974   builtin and then its argument prototype would still apply.  */
9975#ifdef __cplusplus
9976extern "C"
9977#endif
9978char dlopen ();
9979int
9980main ()
9981{
9982return dlopen ();
9983  ;
9984  return 0;
9985}
9986_ACEOF
9987rm -f conftest.$ac_objext conftest$ac_exeext
9988if { (ac_try="$ac_link"
9989case "(($ac_try" in
9990  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9991  *) ac_try_echo=$ac_try;;
9992esac
9993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9994  (eval "$ac_link") 2>conftest.er1
9995  ac_status=$?
9996  grep -v '^ *+' conftest.er1 >conftest.err
9997  rm -f conftest.er1
9998  cat conftest.err >&5
9999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000  (exit $ac_status); } && {
10001	 test -z "$ac_c_werror_flag" ||
10002	 test ! -s conftest.err
10003       } && test -s conftest$ac_exeext &&
10004       $as_test_x conftest$ac_exeext; then
10005  ac_cv_lib_svld_dlopen=yes
10006else
10007  echo "$as_me: failed program was:" >&5
10008sed 's/^/| /' conftest.$ac_ext >&5
10009
10010	ac_cv_lib_svld_dlopen=no
10011fi
10012
10013rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10014      conftest$ac_exeext conftest.$ac_ext
10015LIBS=$ac_check_lib_save_LIBS
10016fi
10017{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10018echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10019if test $ac_cv_lib_svld_dlopen = yes; then
10020  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10021else
10022  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10023echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10024if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10025  echo $ECHO_N "(cached) $ECHO_C" >&6
10026else
10027  ac_check_lib_save_LIBS=$LIBS
10028LIBS="-ldld  $LIBS"
10029cat >conftest.$ac_ext <<_ACEOF
10030/* confdefs.h.  */
10031_ACEOF
10032cat confdefs.h >>conftest.$ac_ext
10033cat >>conftest.$ac_ext <<_ACEOF
10034/* end confdefs.h.  */
10035
10036/* Override any GCC internal prototype to avoid an error.
10037   Use char because int might match the return type of a GCC
10038   builtin and then its argument prototype would still apply.  */
10039#ifdef __cplusplus
10040extern "C"
10041#endif
10042char dld_link ();
10043int
10044main ()
10045{
10046return dld_link ();
10047  ;
10048  return 0;
10049}
10050_ACEOF
10051rm -f conftest.$ac_objext conftest$ac_exeext
10052if { (ac_try="$ac_link"
10053case "(($ac_try" in
10054  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10055  *) ac_try_echo=$ac_try;;
10056esac
10057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10058  (eval "$ac_link") 2>conftest.er1
10059  ac_status=$?
10060  grep -v '^ *+' conftest.er1 >conftest.err
10061  rm -f conftest.er1
10062  cat conftest.err >&5
10063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064  (exit $ac_status); } && {
10065	 test -z "$ac_c_werror_flag" ||
10066	 test ! -s conftest.err
10067       } && test -s conftest$ac_exeext &&
10068       $as_test_x conftest$ac_exeext; then
10069  ac_cv_lib_dld_dld_link=yes
10070else
10071  echo "$as_me: failed program was:" >&5
10072sed 's/^/| /' conftest.$ac_ext >&5
10073
10074	ac_cv_lib_dld_dld_link=no
10075fi
10076
10077rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10078      conftest$ac_exeext conftest.$ac_ext
10079LIBS=$ac_check_lib_save_LIBS
10080fi
10081{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10082echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10083if test $ac_cv_lib_dld_dld_link = yes; then
10084  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10085fi
10086
10087
10088fi
10089
10090
10091fi
10092
10093
10094fi
10095
10096
10097fi
10098
10099
10100fi
10101
10102    ;;
10103  esac
10104
10105  if test "x$lt_cv_dlopen" != xno; then
10106    enable_dlopen=yes
10107  else
10108    enable_dlopen=no
10109  fi
10110
10111  case $lt_cv_dlopen in
10112  dlopen)
10113    save_CPPFLAGS="$CPPFLAGS"
10114    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10115
10116    save_LDFLAGS="$LDFLAGS"
10117    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10118
10119    save_LIBS="$LIBS"
10120    LIBS="$lt_cv_dlopen_libs $LIBS"
10121
10122    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10123echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10124if test "${lt_cv_dlopen_self+set}" = set; then
10125  echo $ECHO_N "(cached) $ECHO_C" >&6
10126else
10127  	  if test "$cross_compiling" = yes; then :
10128  lt_cv_dlopen_self=cross
10129else
10130  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10131  lt_status=$lt_dlunknown
10132  cat > conftest.$ac_ext <<_LT_EOF
10133#line 10133 "configure"
10134#include "confdefs.h"
10135
10136#if HAVE_DLFCN_H
10137#include <dlfcn.h>
10138#endif
10139
10140#include <stdio.h>
10141
10142#ifdef RTLD_GLOBAL
10143#  define LT_DLGLOBAL		RTLD_GLOBAL
10144#else
10145#  ifdef DL_GLOBAL
10146#    define LT_DLGLOBAL		DL_GLOBAL
10147#  else
10148#    define LT_DLGLOBAL		0
10149#  endif
10150#endif
10151
10152/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10153   find out it does not work in some platform. */
10154#ifndef LT_DLLAZY_OR_NOW
10155#  ifdef RTLD_LAZY
10156#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10157#  else
10158#    ifdef DL_LAZY
10159#      define LT_DLLAZY_OR_NOW		DL_LAZY
10160#    else
10161#      ifdef RTLD_NOW
10162#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10163#      else
10164#        ifdef DL_NOW
10165#          define LT_DLLAZY_OR_NOW	DL_NOW
10166#        else
10167#          define LT_DLLAZY_OR_NOW	0
10168#        endif
10169#      endif
10170#    endif
10171#  endif
10172#endif
10173
10174#ifdef __cplusplus
10175extern "C" void exit (int);
10176#endif
10177
10178void fnord() { int i=42;}
10179int main ()
10180{
10181  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10182  int status = $lt_dlunknown;
10183
10184  if (self)
10185    {
10186      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10187      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10188      /* dlclose (self); */
10189    }
10190  else
10191    puts (dlerror ());
10192
10193    exit (status);
10194}
10195_LT_EOF
10196  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10197  (eval $ac_link) 2>&5
10198  ac_status=$?
10199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10201    (./conftest; exit; ) >&5 2>/dev/null
10202    lt_status=$?
10203    case x$lt_status in
10204      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10205      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10206      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10207    esac
10208  else :
10209    # compilation failed
10210    lt_cv_dlopen_self=no
10211  fi
10212fi
10213rm -fr conftest*
10214
10215
10216fi
10217{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10218echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10219
10220    if test "x$lt_cv_dlopen_self" = xyes; then
10221      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10222      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10223echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10224if test "${lt_cv_dlopen_self_static+set}" = set; then
10225  echo $ECHO_N "(cached) $ECHO_C" >&6
10226else
10227  	  if test "$cross_compiling" = yes; then :
10228  lt_cv_dlopen_self_static=cross
10229else
10230  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10231  lt_status=$lt_dlunknown
10232  cat > conftest.$ac_ext <<_LT_EOF
10233#line 10233 "configure"
10234#include "confdefs.h"
10235
10236#if HAVE_DLFCN_H
10237#include <dlfcn.h>
10238#endif
10239
10240#include <stdio.h>
10241
10242#ifdef RTLD_GLOBAL
10243#  define LT_DLGLOBAL		RTLD_GLOBAL
10244#else
10245#  ifdef DL_GLOBAL
10246#    define LT_DLGLOBAL		DL_GLOBAL
10247#  else
10248#    define LT_DLGLOBAL		0
10249#  endif
10250#endif
10251
10252/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10253   find out it does not work in some platform. */
10254#ifndef LT_DLLAZY_OR_NOW
10255#  ifdef RTLD_LAZY
10256#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10257#  else
10258#    ifdef DL_LAZY
10259#      define LT_DLLAZY_OR_NOW		DL_LAZY
10260#    else
10261#      ifdef RTLD_NOW
10262#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10263#      else
10264#        ifdef DL_NOW
10265#          define LT_DLLAZY_OR_NOW	DL_NOW
10266#        else
10267#          define LT_DLLAZY_OR_NOW	0
10268#        endif
10269#      endif
10270#    endif
10271#  endif
10272#endif
10273
10274#ifdef __cplusplus
10275extern "C" void exit (int);
10276#endif
10277
10278void fnord() { int i=42;}
10279int main ()
10280{
10281  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10282  int status = $lt_dlunknown;
10283
10284  if (self)
10285    {
10286      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10287      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10288      /* dlclose (self); */
10289    }
10290  else
10291    puts (dlerror ());
10292
10293    exit (status);
10294}
10295_LT_EOF
10296  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10297  (eval $ac_link) 2>&5
10298  ac_status=$?
10299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10301    (./conftest; exit; ) >&5 2>/dev/null
10302    lt_status=$?
10303    case x$lt_status in
10304      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10305      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10306      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10307    esac
10308  else :
10309    # compilation failed
10310    lt_cv_dlopen_self_static=no
10311  fi
10312fi
10313rm -fr conftest*
10314
10315
10316fi
10317{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10318echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10319    fi
10320
10321    CPPFLAGS="$save_CPPFLAGS"
10322    LDFLAGS="$save_LDFLAGS"
10323    LIBS="$save_LIBS"
10324    ;;
10325  esac
10326
10327  case $lt_cv_dlopen_self in
10328  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10329  *) enable_dlopen_self=unknown ;;
10330  esac
10331
10332  case $lt_cv_dlopen_self_static in
10333  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10334  *) enable_dlopen_self_static=unknown ;;
10335  esac
10336fi
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354striplib=
10355old_striplib=
10356{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10357echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10358if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10359  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10360  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10361  { echo "$as_me:$LINENO: result: yes" >&5
10362echo "${ECHO_T}yes" >&6; }
10363else
10364# FIXME - insert some real tests, host_os isn't really good enough
10365  case $host_os in
10366  darwin*)
10367    if test -n "$STRIP" ; then
10368      striplib="$STRIP -x"
10369      old_striplib="$STRIP -S"
10370      { echo "$as_me:$LINENO: result: yes" >&5
10371echo "${ECHO_T}yes" >&6; }
10372    else
10373      { echo "$as_me:$LINENO: result: no" >&5
10374echo "${ECHO_T}no" >&6; }
10375    fi
10376    ;;
10377  *)
10378    { echo "$as_me:$LINENO: result: no" >&5
10379echo "${ECHO_T}no" >&6; }
10380    ;;
10381  esac
10382fi
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395  # Report which library types will actually be built
10396  { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10397echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10398  { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10399echo "${ECHO_T}$can_build_shared" >&6; }
10400
10401  { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10402echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10403  test "$can_build_shared" = "no" && enable_shared=no
10404
10405  # On AIX, shared libraries and static libraries use the same namespace, and
10406  # are all built from PIC.
10407  case $host_os in
10408  aix3*)
10409    test "$enable_shared" = yes && enable_static=no
10410    if test -n "$RANLIB"; then
10411      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10412      postinstall_cmds='$RANLIB $lib'
10413    fi
10414    ;;
10415
10416  aix[4-9]*)
10417    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10418      test "$enable_shared" = yes && enable_static=no
10419    fi
10420    ;;
10421  esac
10422  { echo "$as_me:$LINENO: result: $enable_shared" >&5
10423echo "${ECHO_T}$enable_shared" >&6; }
10424
10425  { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10426echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10427  # Make sure either enable_shared or enable_static is yes.
10428  test "$enable_shared" = yes || enable_static=yes
10429  { echo "$as_me:$LINENO: result: $enable_static" >&5
10430echo "${ECHO_T}$enable_static" >&6; }
10431
10432
10433
10434
10435fi
10436ac_ext=c
10437ac_cpp='$CPP $CPPFLAGS'
10438ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10439ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10440ac_compiler_gnu=$ac_cv_c_compiler_gnu
10441
10442CC="$lt_save_CC"
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456        ac_config_commands="$ac_config_commands"
10457
10458
10459
10460
10461# Only expand once:
10462
10463
10464
10465{ echo "$as_me:$LINENO: checking for size_t" >&5
10466echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
10467if test "${ac_cv_type_size_t+set}" = set; then
10468  echo $ECHO_N "(cached) $ECHO_C" >&6
10469else
10470  cat >conftest.$ac_ext <<_ACEOF
10471/* confdefs.h.  */
10472_ACEOF
10473cat confdefs.h >>conftest.$ac_ext
10474cat >>conftest.$ac_ext <<_ACEOF
10475/* end confdefs.h.  */
10476$ac_includes_default
10477typedef size_t ac__type_new_;
10478int
10479main ()
10480{
10481if ((ac__type_new_ *) 0)
10482  return 0;
10483if (sizeof (ac__type_new_))
10484  return 0;
10485  ;
10486  return 0;
10487}
10488_ACEOF
10489rm -f conftest.$ac_objext
10490if { (ac_try="$ac_compile"
10491case "(($ac_try" in
10492  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10493  *) ac_try_echo=$ac_try;;
10494esac
10495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10496  (eval "$ac_compile") 2>conftest.er1
10497  ac_status=$?
10498  grep -v '^ *+' conftest.er1 >conftest.err
10499  rm -f conftest.er1
10500  cat conftest.err >&5
10501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502  (exit $ac_status); } && {
10503	 test -z "$ac_c_werror_flag" ||
10504	 test ! -s conftest.err
10505       } && test -s conftest.$ac_objext; then
10506  ac_cv_type_size_t=yes
10507else
10508  echo "$as_me: failed program was:" >&5
10509sed 's/^/| /' conftest.$ac_ext >&5
10510
10511	ac_cv_type_size_t=no
10512fi
10513
10514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10515fi
10516{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10517echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10518if test $ac_cv_type_size_t = yes; then
10519  :
10520else
10521
10522cat >>confdefs.h <<_ACEOF
10523#define size_t unsigned int
10524_ACEOF
10525
10526fi
10527
10528{ echo "$as_me:$LINENO: checking for working volatile" >&5
10529echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
10530if test "${ac_cv_c_volatile+set}" = set; then
10531  echo $ECHO_N "(cached) $ECHO_C" >&6
10532else
10533  cat >conftest.$ac_ext <<_ACEOF
10534/* confdefs.h.  */
10535_ACEOF
10536cat confdefs.h >>conftest.$ac_ext
10537cat >>conftest.$ac_ext <<_ACEOF
10538/* end confdefs.h.  */
10539
10540int
10541main ()
10542{
10543
10544volatile int x;
10545int * volatile y = (int *) 0;
10546return !x && !y;
10547  ;
10548  return 0;
10549}
10550_ACEOF
10551rm -f conftest.$ac_objext
10552if { (ac_try="$ac_compile"
10553case "(($ac_try" in
10554  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10555  *) ac_try_echo=$ac_try;;
10556esac
10557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10558  (eval "$ac_compile") 2>conftest.er1
10559  ac_status=$?
10560  grep -v '^ *+' conftest.er1 >conftest.err
10561  rm -f conftest.er1
10562  cat conftest.err >&5
10563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564  (exit $ac_status); } && {
10565	 test -z "$ac_c_werror_flag" ||
10566	 test ! -s conftest.err
10567       } && test -s conftest.$ac_objext; then
10568  ac_cv_c_volatile=yes
10569else
10570  echo "$as_me: failed program was:" >&5
10571sed 's/^/| /' conftest.$ac_ext >&5
10572
10573	ac_cv_c_volatile=no
10574fi
10575
10576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10577fi
10578{ echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
10579echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
10580if test $ac_cv_c_volatile = no; then
10581
10582cat >>confdefs.h <<\_ACEOF
10583#define volatile
10584_ACEOF
10585
10586fi
10587
10588{ echo "$as_me:$LINENO: checking for inline" >&5
10589echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
10590if test "${ac_cv_c_inline+set}" = set; then
10591  echo $ECHO_N "(cached) $ECHO_C" >&6
10592else
10593  ac_cv_c_inline=no
10594for ac_kw in inline __inline__ __inline; do
10595  cat >conftest.$ac_ext <<_ACEOF
10596/* confdefs.h.  */
10597_ACEOF
10598cat confdefs.h >>conftest.$ac_ext
10599cat >>conftest.$ac_ext <<_ACEOF
10600/* end confdefs.h.  */
10601#ifndef __cplusplus
10602typedef int foo_t;
10603static $ac_kw foo_t static_foo () {return 0; }
10604$ac_kw foo_t foo () {return 0; }
10605#endif
10606
10607_ACEOF
10608rm -f conftest.$ac_objext
10609if { (ac_try="$ac_compile"
10610case "(($ac_try" in
10611  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10612  *) ac_try_echo=$ac_try;;
10613esac
10614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10615  (eval "$ac_compile") 2>conftest.er1
10616  ac_status=$?
10617  grep -v '^ *+' conftest.er1 >conftest.err
10618  rm -f conftest.er1
10619  cat conftest.err >&5
10620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621  (exit $ac_status); } && {
10622	 test -z "$ac_c_werror_flag" ||
10623	 test ! -s conftest.err
10624       } && test -s conftest.$ac_objext; then
10625  ac_cv_c_inline=$ac_kw
10626else
10627  echo "$as_me: failed program was:" >&5
10628sed 's/^/| /' conftest.$ac_ext >&5
10629
10630
10631fi
10632
10633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10634  test "$ac_cv_c_inline" != no && break
10635done
10636
10637fi
10638{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10639echo "${ECHO_T}$ac_cv_c_inline" >&6; }
10640
10641
10642case $ac_cv_c_inline in
10643  inline | yes) ;;
10644  *)
10645    case $ac_cv_c_inline in
10646      no) ac_val=;;
10647      *) ac_val=$ac_cv_c_inline;;
10648    esac
10649    cat >>confdefs.h <<_ACEOF
10650#ifndef __cplusplus
10651#define inline $ac_val
10652#endif
10653_ACEOF
10654    ;;
10655esac
10656
10657
10658{ echo "$as_me:$LINENO: checking whether char is unsigned" >&5
10659echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
10660if test "${ac_cv_c_char_unsigned+set}" = set; then
10661  echo $ECHO_N "(cached) $ECHO_C" >&6
10662else
10663  cat >conftest.$ac_ext <<_ACEOF
10664/* confdefs.h.  */
10665_ACEOF
10666cat confdefs.h >>conftest.$ac_ext
10667cat >>conftest.$ac_ext <<_ACEOF
10668/* end confdefs.h.  */
10669$ac_includes_default
10670int
10671main ()
10672{
10673static int test_array [1 - 2 * !(((char) -1) < 0)];
10674test_array [0] = 0
10675
10676  ;
10677  return 0;
10678}
10679_ACEOF
10680rm -f conftest.$ac_objext
10681if { (ac_try="$ac_compile"
10682case "(($ac_try" in
10683  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10684  *) ac_try_echo=$ac_try;;
10685esac
10686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10687  (eval "$ac_compile") 2>conftest.er1
10688  ac_status=$?
10689  grep -v '^ *+' conftest.er1 >conftest.err
10690  rm -f conftest.er1
10691  cat conftest.err >&5
10692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10693  (exit $ac_status); } && {
10694	 test -z "$ac_c_werror_flag" ||
10695	 test ! -s conftest.err
10696       } && test -s conftest.$ac_objext; then
10697  ac_cv_c_char_unsigned=no
10698else
10699  echo "$as_me: failed program was:" >&5
10700sed 's/^/| /' conftest.$ac_ext >&5
10701
10702	ac_cv_c_char_unsigned=yes
10703fi
10704
10705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10706fi
10707{ echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
10708echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
10709if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
10710  cat >>confdefs.h <<\_ACEOF
10711#define __CHAR_UNSIGNED__ 1
10712_ACEOF
10713
10714fi
10715
10716
10717GSL_CFLAGS="-I$includedir"
10718GSL_LIBS="-L$libdir -lgsl"
10719
10720
10721
10722
10723{ echo "$as_me:$LINENO: checking for extern inline" >&5
10724echo $ECHO_N "checking for extern inline... $ECHO_C" >&6; }
10725if test "${ac_cv_c_extern_inline+set}" = set; then
10726  echo $ECHO_N "(cached) $ECHO_C" >&6
10727else
10728  ac_cv_c_extern_inline=no
10729cat >conftest.$ac_ext <<_ACEOF
10730/* confdefs.h.  */
10731_ACEOF
10732cat confdefs.h >>conftest.$ac_ext
10733cat >>conftest.$ac_ext <<_ACEOF
10734/* end confdefs.h.  */
10735extern $ac_cv_c_inline double foo(double x);
10736extern $ac_cv_c_inline double foo(double x) { return x + 1.0 ; } ;
10737double foo (double x) { return x + 1.0 ; };
10738int
10739main ()
10740{
10741  foo(1.0)
10742  ;
10743  return 0;
10744}
10745_ACEOF
10746rm -f conftest.$ac_objext
10747if { (ac_try="$ac_compile"
10748case "(($ac_try" in
10749  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10750  *) ac_try_echo=$ac_try;;
10751esac
10752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10753  (eval "$ac_compile") 2>conftest.er1
10754  ac_status=$?
10755  grep -v '^ *+' conftest.er1 >conftest.err
10756  rm -f conftest.er1
10757  cat conftest.err >&5
10758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759  (exit $ac_status); } && {
10760	 test -z "$ac_c_werror_flag" ||
10761	 test ! -s conftest.err
10762       } && test -s conftest.$ac_objext; then
10763  ac_cv_c_extern_inline="yes"
10764else
10765  echo "$as_me: failed program was:" >&5
10766sed 's/^/| /' conftest.$ac_ext >&5
10767
10768
10769fi
10770
10771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10772
10773fi
10774{ echo "$as_me:$LINENO: result: $ac_cv_c_extern_inline" >&5
10775echo "${ECHO_T}$ac_cv_c_extern_inline" >&6; }
10776
10777if test "$ac_cv_c_extern_inline" != no ; then
10778
10779cat >>confdefs.h <<\_ACEOF
10780#define HAVE_INLINE
10781_ACEOF
10782
10783fi
10784
10785
10786for ac_header in ieeefp.h
10787do
10788as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10789if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10790  { echo "$as_me:$LINENO: checking for $ac_header" >&5
10791echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10792if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10793  echo $ECHO_N "(cached) $ECHO_C" >&6
10794fi
10795ac_res=`eval echo '${'$as_ac_Header'}'`
10796	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10797echo "${ECHO_T}$ac_res" >&6; }
10798else
10799  # Is the header compilable?
10800{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10801echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10802cat >conftest.$ac_ext <<_ACEOF
10803/* confdefs.h.  */
10804_ACEOF
10805cat confdefs.h >>conftest.$ac_ext
10806cat >>conftest.$ac_ext <<_ACEOF
10807/* end confdefs.h.  */
10808$ac_includes_default
10809#include <$ac_header>
10810_ACEOF
10811rm -f conftest.$ac_objext
10812if { (ac_try="$ac_compile"
10813case "(($ac_try" in
10814  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10815  *) ac_try_echo=$ac_try;;
10816esac
10817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10818  (eval "$ac_compile") 2>conftest.er1
10819  ac_status=$?
10820  grep -v '^ *+' conftest.er1 >conftest.err
10821  rm -f conftest.er1
10822  cat conftest.err >&5
10823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824  (exit $ac_status); } && {
10825	 test -z "$ac_c_werror_flag" ||
10826	 test ! -s conftest.err
10827       } && test -s conftest.$ac_objext; then
10828  ac_header_compiler=yes
10829else
10830  echo "$as_me: failed program was:" >&5
10831sed 's/^/| /' conftest.$ac_ext >&5
10832
10833	ac_header_compiler=no
10834fi
10835
10836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10837{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10838echo "${ECHO_T}$ac_header_compiler" >&6; }
10839
10840# Is the header present?
10841{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10842echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10843cat >conftest.$ac_ext <<_ACEOF
10844/* confdefs.h.  */
10845_ACEOF
10846cat confdefs.h >>conftest.$ac_ext
10847cat >>conftest.$ac_ext <<_ACEOF
10848/* end confdefs.h.  */
10849#include <$ac_header>
10850_ACEOF
10851if { (ac_try="$ac_cpp conftest.$ac_ext"
10852case "(($ac_try" in
10853  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10854  *) ac_try_echo=$ac_try;;
10855esac
10856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10857  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10858  ac_status=$?
10859  grep -v '^ *+' conftest.er1 >conftest.err
10860  rm -f conftest.er1
10861  cat conftest.err >&5
10862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863  (exit $ac_status); } >/dev/null && {
10864	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10865	 test ! -s conftest.err
10866       }; then
10867  ac_header_preproc=yes
10868else
10869  echo "$as_me: failed program was:" >&5
10870sed 's/^/| /' conftest.$ac_ext >&5
10871
10872  ac_header_preproc=no
10873fi
10874
10875rm -f conftest.err conftest.$ac_ext
10876{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10877echo "${ECHO_T}$ac_header_preproc" >&6; }
10878
10879# So?  What about this header?
10880case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10881  yes:no: )
10882    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10883echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10884    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10885echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10886    ac_header_preproc=yes
10887    ;;
10888  no:yes:* )
10889    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10890echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10891    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10892echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10893    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10894echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10895    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10896echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10897    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10898echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10899    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10900echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10901
10902    ;;
10903esac
10904{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10905echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10906if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10907  echo $ECHO_N "(cached) $ECHO_C" >&6
10908else
10909  eval "$as_ac_Header=\$ac_header_preproc"
10910fi
10911ac_res=`eval echo '${'$as_ac_Header'}'`
10912	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10913echo "${ECHO_T}$ac_res" >&6; }
10914
10915fi
10916if test `eval echo '${'$as_ac_Header'}'` = yes; then
10917  cat >>confdefs.h <<_ACEOF
10918#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10919_ACEOF
10920
10921fi
10922
10923done
10924
10925
10926
10927case "$host_os" in
10928     *mingw*)
10929	MINGW=true
10930	;;
10931esac
10932
10933 if test "$MINGW" = "true"; then
10934  MINGW32_HOST_TRUE=
10935  MINGW32_HOST_FALSE='#'
10936else
10937  MINGW32_HOST_TRUE='#'
10938  MINGW32_HOST_FALSE=
10939fi
10940
10941
10942
10943
10944for ac_func in vprintf
10945do
10946as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10947{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10948echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10949if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10950  echo $ECHO_N "(cached) $ECHO_C" >&6
10951else
10952  cat >conftest.$ac_ext <<_ACEOF
10953/* confdefs.h.  */
10954_ACEOF
10955cat confdefs.h >>conftest.$ac_ext
10956cat >>conftest.$ac_ext <<_ACEOF
10957/* end confdefs.h.  */
10958/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10959   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10960#define $ac_func innocuous_$ac_func
10961
10962/* System header to define __stub macros and hopefully few prototypes,
10963    which can conflict with char $ac_func (); below.
10964    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10965    <limits.h> exists even on freestanding compilers.  */
10966
10967#ifdef __STDC__
10968# include <limits.h>
10969#else
10970# include <assert.h>
10971#endif
10972
10973#undef $ac_func
10974
10975/* Override any GCC internal prototype to avoid an error.
10976   Use char because int might match the return type of a GCC
10977   builtin and then its argument prototype would still apply.  */
10978#ifdef __cplusplus
10979extern "C"
10980#endif
10981char $ac_func ();
10982/* The GNU C library defines this for functions which it implements
10983    to always fail with ENOSYS.  Some functions are actually named
10984    something starting with __ and the normal name is an alias.  */
10985#if defined __stub_$ac_func || defined __stub___$ac_func
10986choke me
10987#endif
10988
10989int
10990main ()
10991{
10992return $ac_func ();
10993  ;
10994  return 0;
10995}
10996_ACEOF
10997rm -f conftest.$ac_objext conftest$ac_exeext
10998if { (ac_try="$ac_link"
10999case "(($ac_try" in
11000  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11001  *) ac_try_echo=$ac_try;;
11002esac
11003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11004  (eval "$ac_link") 2>conftest.er1
11005  ac_status=$?
11006  grep -v '^ *+' conftest.er1 >conftest.err
11007  rm -f conftest.er1
11008  cat conftest.err >&5
11009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010  (exit $ac_status); } && {
11011	 test -z "$ac_c_werror_flag" ||
11012	 test ! -s conftest.err
11013       } && test -s conftest$ac_exeext &&
11014       $as_test_x conftest$ac_exeext; then
11015  eval "$as_ac_var=yes"
11016else
11017  echo "$as_me: failed program was:" >&5
11018sed 's/^/| /' conftest.$ac_ext >&5
11019
11020	eval "$as_ac_var=no"
11021fi
11022
11023rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11024      conftest$ac_exeext conftest.$ac_ext
11025fi
11026ac_res=`eval echo '${'$as_ac_var'}'`
11027	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11028echo "${ECHO_T}$ac_res" >&6; }
11029if test `eval echo '${'$as_ac_var'}'` = yes; then
11030  cat >>confdefs.h <<_ACEOF
11031#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11032_ACEOF
11033
11034{ echo "$as_me:$LINENO: checking for _doprnt" >&5
11035echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
11036if test "${ac_cv_func__doprnt+set}" = set; then
11037  echo $ECHO_N "(cached) $ECHO_C" >&6
11038else
11039  cat >conftest.$ac_ext <<_ACEOF
11040/* confdefs.h.  */
11041_ACEOF
11042cat confdefs.h >>conftest.$ac_ext
11043cat >>conftest.$ac_ext <<_ACEOF
11044/* end confdefs.h.  */
11045/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
11046   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11047#define _doprnt innocuous__doprnt
11048
11049/* System header to define __stub macros and hopefully few prototypes,
11050    which can conflict with char _doprnt (); below.
11051    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11052    <limits.h> exists even on freestanding compilers.  */
11053
11054#ifdef __STDC__
11055# include <limits.h>
11056#else
11057# include <assert.h>
11058#endif
11059
11060#undef _doprnt
11061
11062/* Override any GCC internal prototype to avoid an error.
11063   Use char because int might match the return type of a GCC
11064   builtin and then its argument prototype would still apply.  */
11065#ifdef __cplusplus
11066extern "C"
11067#endif
11068char _doprnt ();
11069/* The GNU C library defines this for functions which it implements
11070    to always fail with ENOSYS.  Some functions are actually named
11071    something starting with __ and the normal name is an alias.  */
11072#if defined __stub__doprnt || defined __stub____doprnt
11073choke me
11074#endif
11075
11076int
11077main ()
11078{
11079return _doprnt ();
11080  ;
11081  return 0;
11082}
11083_ACEOF
11084rm -f conftest.$ac_objext conftest$ac_exeext
11085if { (ac_try="$ac_link"
11086case "(($ac_try" in
11087  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11088  *) ac_try_echo=$ac_try;;
11089esac
11090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11091  (eval "$ac_link") 2>conftest.er1
11092  ac_status=$?
11093  grep -v '^ *+' conftest.er1 >conftest.err
11094  rm -f conftest.er1
11095  cat conftest.err >&5
11096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097  (exit $ac_status); } && {
11098	 test -z "$ac_c_werror_flag" ||
11099	 test ! -s conftest.err
11100       } && test -s conftest$ac_exeext &&
11101       $as_test_x conftest$ac_exeext; then
11102  ac_cv_func__doprnt=yes
11103else
11104  echo "$as_me: failed program was:" >&5
11105sed 's/^/| /' conftest.$ac_ext >&5
11106
11107	ac_cv_func__doprnt=no
11108fi
11109
11110rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11111      conftest$ac_exeext conftest.$ac_ext
11112fi
11113{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
11114echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
11115if test $ac_cv_func__doprnt = yes; then
11116
11117cat >>confdefs.h <<\_ACEOF
11118#define HAVE_DOPRNT 1
11119_ACEOF
11120
11121fi
11122
11123fi
11124done
11125
11126
11127
11128
11129
11130
11131
11132
11133for ac_func in memcpy memmove strdup strtol strtoul
11134do
11135as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11136{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11137echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11138if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11139  echo $ECHO_N "(cached) $ECHO_C" >&6
11140else
11141  cat >conftest.$ac_ext <<_ACEOF
11142/* confdefs.h.  */
11143_ACEOF
11144cat confdefs.h >>conftest.$ac_ext
11145cat >>conftest.$ac_ext <<_ACEOF
11146/* end confdefs.h.  */
11147/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11148   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11149#define $ac_func innocuous_$ac_func
11150
11151/* System header to define __stub macros and hopefully few prototypes,
11152    which can conflict with char $ac_func (); below.
11153    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11154    <limits.h> exists even on freestanding compilers.  */
11155
11156#ifdef __STDC__
11157# include <limits.h>
11158#else
11159# include <assert.h>
11160#endif
11161
11162#undef $ac_func
11163
11164/* Override any GCC internal prototype to avoid an error.
11165   Use char because int might match the return type of a GCC
11166   builtin and then its argument prototype would still apply.  */
11167#ifdef __cplusplus
11168extern "C"
11169#endif
11170char $ac_func ();
11171/* The GNU C library defines this for functions which it implements
11172    to always fail with ENOSYS.  Some functions are actually named
11173    something starting with __ and the normal name is an alias.  */
11174#if defined __stub_$ac_func || defined __stub___$ac_func
11175choke me
11176#endif
11177
11178int
11179main ()
11180{
11181return $ac_func ();
11182  ;
11183  return 0;
11184}
11185_ACEOF
11186rm -f conftest.$ac_objext conftest$ac_exeext
11187if { (ac_try="$ac_link"
11188case "(($ac_try" in
11189  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11190  *) ac_try_echo=$ac_try;;
11191esac
11192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11193  (eval "$ac_link") 2>conftest.er1
11194  ac_status=$?
11195  grep -v '^ *+' conftest.er1 >conftest.err
11196  rm -f conftest.er1
11197  cat conftest.err >&5
11198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199  (exit $ac_status); } && {
11200	 test -z "$ac_c_werror_flag" ||
11201	 test ! -s conftest.err
11202       } && test -s conftest$ac_exeext &&
11203       $as_test_x conftest$ac_exeext; then
11204  eval "$as_ac_var=yes"
11205else
11206  echo "$as_me: failed program was:" >&5
11207sed 's/^/| /' conftest.$ac_ext >&5
11208
11209	eval "$as_ac_var=no"
11210fi
11211
11212rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11213      conftest$ac_exeext conftest.$ac_ext
11214fi
11215ac_res=`eval echo '${'$as_ac_var'}'`
11216	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11217echo "${ECHO_T}$ac_res" >&6; }
11218if test `eval echo '${'$as_ac_var'}'` = yes; then
11219  cat >>confdefs.h <<_ACEOF
11220#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11221_ACEOF
11222
11223else
11224  case " $LIBOBJS " in
11225  *" $ac_func.$ac_objext "* ) ;;
11226  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11227 ;;
11228esac
11229
11230fi
11231done
11232
11233
11234
11235{ echo "$as_me:$LINENO: checking for EXIT_SUCCESS and EXIT_FAILURE" >&5
11236echo $ECHO_N "checking for EXIT_SUCCESS and EXIT_FAILURE... $ECHO_C" >&6; }
11237if test "${ac_cv_decl_exit_success_and_failure+set}" = set; then
11238  echo $ECHO_N "(cached) $ECHO_C" >&6
11239else
11240  cat >conftest.$ac_ext <<_ACEOF
11241/* confdefs.h.  */
11242_ACEOF
11243cat confdefs.h >>conftest.$ac_ext
11244cat >>conftest.$ac_ext <<_ACEOF
11245/* end confdefs.h.  */
11246
11247#include <stdlib.h>
11248#ifdef EXIT_SUCCESS
11249yes
11250#endif
11251
11252_ACEOF
11253if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11254  $EGREP "yes" >/dev/null 2>&1; then
11255  ac_cv_decl_exit_success_and_failure=yes
11256else
11257  ac_cv_decl_exit_success_and_failure=no
11258fi
11259rm -f conftest*
11260
11261
11262fi
11263{ echo "$as_me:$LINENO: result: $ac_cv_decl_exit_success_and_failure" >&5
11264echo "${ECHO_T}$ac_cv_decl_exit_success_and_failure" >&6; }
11265
11266if test "$ac_cv_decl_exit_success_and_failure" = yes ; then
11267
11268cat >>confdefs.h <<\_ACEOF
11269#define HAVE_EXIT_SUCCESS_AND_FAILURE 1
11270_ACEOF
11271
11272fi ;
11273
11274
11275if test "x$LIBS" = "x" ; then
11276
11277{ echo "$as_me:$LINENO: checking for cos in -lm" >&5
11278echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6; }
11279if test "${ac_cv_lib_m_cos+set}" = set; then
11280  echo $ECHO_N "(cached) $ECHO_C" >&6
11281else
11282  ac_check_lib_save_LIBS=$LIBS
11283LIBS="-lm  $LIBS"
11284cat >conftest.$ac_ext <<_ACEOF
11285/* confdefs.h.  */
11286_ACEOF
11287cat confdefs.h >>conftest.$ac_ext
11288cat >>conftest.$ac_ext <<_ACEOF
11289/* end confdefs.h.  */
11290
11291/* Override any GCC internal prototype to avoid an error.
11292   Use char because int might match the return type of a GCC
11293   builtin and then its argument prototype would still apply.  */
11294#ifdef __cplusplus
11295extern "C"
11296#endif
11297char cos ();
11298int
11299main ()
11300{
11301return cos ();
11302  ;
11303  return 0;
11304}
11305_ACEOF
11306rm -f conftest.$ac_objext conftest$ac_exeext
11307if { (ac_try="$ac_link"
11308case "(($ac_try" in
11309  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11310  *) ac_try_echo=$ac_try;;
11311esac
11312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11313  (eval "$ac_link") 2>conftest.er1
11314  ac_status=$?
11315  grep -v '^ *+' conftest.er1 >conftest.err
11316  rm -f conftest.er1
11317  cat conftest.err >&5
11318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319  (exit $ac_status); } && {
11320	 test -z "$ac_c_werror_flag" ||
11321	 test ! -s conftest.err
11322       } && test -s conftest$ac_exeext &&
11323       $as_test_x conftest$ac_exeext; then
11324  ac_cv_lib_m_cos=yes
11325else
11326  echo "$as_me: failed program was:" >&5
11327sed 's/^/| /' conftest.$ac_ext >&5
11328
11329	ac_cv_lib_m_cos=no
11330fi
11331
11332rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11333      conftest$ac_exeext conftest.$ac_ext
11334LIBS=$ac_check_lib_save_LIBS
11335fi
11336{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
11337echo "${ECHO_T}$ac_cv_lib_m_cos" >&6; }
11338if test $ac_cv_lib_m_cos = yes; then
11339  cat >>confdefs.h <<_ACEOF
11340#define HAVE_LIBM 1
11341_ACEOF
11342
11343  LIBS="-lm $LIBS"
11344
11345fi
11346
11347fi
11348
11349{ echo "$as_me:$LINENO: checking whether feenableexcept is declared" >&5
11350echo $ECHO_N "checking whether feenableexcept is declared... $ECHO_C" >&6; }
11351if test "${ac_cv_have_decl_feenableexcept+set}" = set; then
11352  echo $ECHO_N "(cached) $ECHO_C" >&6
11353else
11354  cat >conftest.$ac_ext <<_ACEOF
11355/* confdefs.h.  */
11356_ACEOF
11357cat confdefs.h >>conftest.$ac_ext
11358cat >>conftest.$ac_ext <<_ACEOF
11359/* end confdefs.h.  */
11360#define _GNU_SOURCE 1
11361#include <fenv.h>
11362
11363int
11364main ()
11365{
11366#ifndef feenableexcept
11367  (void) feenableexcept;
11368#endif
11369
11370  ;
11371  return 0;
11372}
11373_ACEOF
11374rm -f conftest.$ac_objext
11375if { (ac_try="$ac_compile"
11376case "(($ac_try" in
11377  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11378  *) ac_try_echo=$ac_try;;
11379esac
11380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11381  (eval "$ac_compile") 2>conftest.er1
11382  ac_status=$?
11383  grep -v '^ *+' conftest.er1 >conftest.err
11384  rm -f conftest.er1
11385  cat conftest.err >&5
11386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387  (exit $ac_status); } && {
11388	 test -z "$ac_c_werror_flag" ||
11389	 test ! -s conftest.err
11390       } && test -s conftest.$ac_objext; then
11391  ac_cv_have_decl_feenableexcept=yes
11392else
11393  echo "$as_me: failed program was:" >&5
11394sed 's/^/| /' conftest.$ac_ext >&5
11395
11396	ac_cv_have_decl_feenableexcept=no
11397fi
11398
11399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11400fi
11401{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_feenableexcept" >&5
11402echo "${ECHO_T}$ac_cv_have_decl_feenableexcept" >&6; }
11403if test $ac_cv_have_decl_feenableexcept = yes; then
11404
11405cat >>confdefs.h <<_ACEOF
11406#define HAVE_DECL_FEENABLEEXCEPT 1
11407_ACEOF
11408
11409
11410else
11411  cat >>confdefs.h <<_ACEOF
11412#define HAVE_DECL_FEENABLEEXCEPT 0
11413_ACEOF
11414
11415
11416fi
11417
11418
11419{ echo "$as_me:$LINENO: checking whether fesettrapenable is declared" >&5
11420echo $ECHO_N "checking whether fesettrapenable is declared... $ECHO_C" >&6; }
11421if test "${ac_cv_have_decl_fesettrapenable+set}" = set; then
11422  echo $ECHO_N "(cached) $ECHO_C" >&6
11423else
11424  cat >conftest.$ac_ext <<_ACEOF
11425/* confdefs.h.  */
11426_ACEOF
11427cat confdefs.h >>conftest.$ac_ext
11428cat >>conftest.$ac_ext <<_ACEOF
11429/* end confdefs.h.  */
11430#define _GNU_SOURCE 1
11431#include <fenv.h>
11432
11433int
11434main ()
11435{
11436#ifndef fesettrapenable
11437  (void) fesettrapenable;
11438#endif
11439
11440  ;
11441  return 0;
11442}
11443_ACEOF
11444rm -f conftest.$ac_objext
11445if { (ac_try="$ac_compile"
11446case "(($ac_try" in
11447  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11448  *) ac_try_echo=$ac_try;;
11449esac
11450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11451  (eval "$ac_compile") 2>conftest.er1
11452  ac_status=$?
11453  grep -v '^ *+' conftest.er1 >conftest.err
11454  rm -f conftest.er1
11455  cat conftest.err >&5
11456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457  (exit $ac_status); } && {
11458	 test -z "$ac_c_werror_flag" ||
11459	 test ! -s conftest.err
11460       } && test -s conftest.$ac_objext; then
11461  ac_cv_have_decl_fesettrapenable=yes
11462else
11463  echo "$as_me: failed program was:" >&5
11464sed 's/^/| /' conftest.$ac_ext >&5
11465
11466	ac_cv_have_decl_fesettrapenable=no
11467fi
11468
11469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11470fi
11471{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fesettrapenable" >&5
11472echo "${ECHO_T}$ac_cv_have_decl_fesettrapenable" >&6; }
11473if test $ac_cv_have_decl_fesettrapenable = yes; then
11474
11475cat >>confdefs.h <<_ACEOF
11476#define HAVE_DECL_FESETTRAPENABLE 1
11477_ACEOF
11478
11479
11480else
11481  cat >>confdefs.h <<_ACEOF
11482#define HAVE_DECL_FESETTRAPENABLE 0
11483_ACEOF
11484
11485
11486fi
11487
11488
11489{ echo "$as_me:$LINENO: checking whether hypot is declared" >&5
11490echo $ECHO_N "checking whether hypot is declared... $ECHO_C" >&6; }
11491if test "${ac_cv_have_decl_hypot+set}" = set; then
11492  echo $ECHO_N "(cached) $ECHO_C" >&6
11493else
11494  cat >conftest.$ac_ext <<_ACEOF
11495/* confdefs.h.  */
11496_ACEOF
11497cat confdefs.h >>conftest.$ac_ext
11498cat >>conftest.$ac_ext <<_ACEOF
11499/* end confdefs.h.  */
11500#include <math.h>
11501
11502int
11503main ()
11504{
11505#ifndef hypot
11506  (void) hypot;
11507#endif
11508
11509  ;
11510  return 0;
11511}
11512_ACEOF
11513rm -f conftest.$ac_objext
11514if { (ac_try="$ac_compile"
11515case "(($ac_try" in
11516  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11517  *) ac_try_echo=$ac_try;;
11518esac
11519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11520  (eval "$ac_compile") 2>conftest.er1
11521  ac_status=$?
11522  grep -v '^ *+' conftest.er1 >conftest.err
11523  rm -f conftest.er1
11524  cat conftest.err >&5
11525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526  (exit $ac_status); } && {
11527	 test -z "$ac_c_werror_flag" ||
11528	 test ! -s conftest.err
11529       } && test -s conftest.$ac_objext; then
11530  ac_cv_have_decl_hypot=yes
11531else
11532  echo "$as_me: failed program was:" >&5
11533sed 's/^/| /' conftest.$ac_ext >&5
11534
11535	ac_cv_have_decl_hypot=no
11536fi
11537
11538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11539fi
11540{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_hypot" >&5
11541echo "${ECHO_T}$ac_cv_have_decl_hypot" >&6; }
11542if test $ac_cv_have_decl_hypot = yes; then
11543
11544cat >>confdefs.h <<_ACEOF
11545#define HAVE_DECL_HYPOT 1
11546_ACEOF
11547
11548
11549else
11550  cat >>confdefs.h <<_ACEOF
11551#define HAVE_DECL_HYPOT 0
11552_ACEOF
11553
11554
11555fi
11556
11557
11558{ echo "$as_me:$LINENO: checking whether expm1 is declared" >&5
11559echo $ECHO_N "checking whether expm1 is declared... $ECHO_C" >&6; }
11560if test "${ac_cv_have_decl_expm1+set}" = set; then
11561  echo $ECHO_N "(cached) $ECHO_C" >&6
11562else
11563  cat >conftest.$ac_ext <<_ACEOF
11564/* confdefs.h.  */
11565_ACEOF
11566cat confdefs.h >>conftest.$ac_ext
11567cat >>conftest.$ac_ext <<_ACEOF
11568/* end confdefs.h.  */
11569#include <math.h>
11570
11571int
11572main ()
11573{
11574#ifndef expm1
11575  (void) expm1;
11576#endif
11577
11578  ;
11579  return 0;
11580}
11581_ACEOF
11582rm -f conftest.$ac_objext
11583if { (ac_try="$ac_compile"
11584case "(($ac_try" in
11585  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11586  *) ac_try_echo=$ac_try;;
11587esac
11588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11589  (eval "$ac_compile") 2>conftest.er1
11590  ac_status=$?
11591  grep -v '^ *+' conftest.er1 >conftest.err
11592  rm -f conftest.er1
11593  cat conftest.err >&5
11594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595  (exit $ac_status); } && {
11596	 test -z "$ac_c_werror_flag" ||
11597	 test ! -s conftest.err
11598       } && test -s conftest.$ac_objext; then
11599  ac_cv_have_decl_expm1=yes
11600else
11601  echo "$as_me: failed program was:" >&5
11602sed 's/^/| /' conftest.$ac_ext >&5
11603
11604	ac_cv_have_decl_expm1=no
11605fi
11606
11607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11608fi
11609{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_expm1" >&5
11610echo "${ECHO_T}$ac_cv_have_decl_expm1" >&6; }
11611if test $ac_cv_have_decl_expm1 = yes; then
11612
11613cat >>confdefs.h <<_ACEOF
11614#define HAVE_DECL_EXPM1 1
11615_ACEOF
11616
11617
11618else
11619  cat >>confdefs.h <<_ACEOF
11620#define HAVE_DECL_EXPM1 0
11621_ACEOF
11622
11623
11624fi
11625
11626
11627{ echo "$as_me:$LINENO: checking whether acosh is declared" >&5
11628echo $ECHO_N "checking whether acosh is declared... $ECHO_C" >&6; }
11629if test "${ac_cv_have_decl_acosh+set}" = set; then
11630  echo $ECHO_N "(cached) $ECHO_C" >&6
11631else
11632  cat >conftest.$ac_ext <<_ACEOF
11633/* confdefs.h.  */
11634_ACEOF
11635cat confdefs.h >>conftest.$ac_ext
11636cat >>conftest.$ac_ext <<_ACEOF
11637/* end confdefs.h.  */
11638#include <math.h>
11639
11640int
11641main ()
11642{
11643#ifndef acosh
11644  (void) acosh;
11645#endif
11646
11647  ;
11648  return 0;
11649}
11650_ACEOF
11651rm -f conftest.$ac_objext
11652if { (ac_try="$ac_compile"
11653case "(($ac_try" in
11654  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11655  *) ac_try_echo=$ac_try;;
11656esac
11657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11658  (eval "$ac_compile") 2>conftest.er1
11659  ac_status=$?
11660  grep -v '^ *+' conftest.er1 >conftest.err
11661  rm -f conftest.er1
11662  cat conftest.err >&5
11663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664  (exit $ac_status); } && {
11665	 test -z "$ac_c_werror_flag" ||
11666	 test ! -s conftest.err
11667       } && test -s conftest.$ac_objext; then
11668  ac_cv_have_decl_acosh=yes
11669else
11670  echo "$as_me: failed program was:" >&5
11671sed 's/^/| /' conftest.$ac_ext >&5
11672
11673	ac_cv_have_decl_acosh=no
11674fi
11675
11676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11677fi
11678{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_acosh" >&5
11679echo "${ECHO_T}$ac_cv_have_decl_acosh" >&6; }
11680if test $ac_cv_have_decl_acosh = yes; then
11681
11682cat >>confdefs.h <<_ACEOF
11683#define HAVE_DECL_ACOSH 1
11684_ACEOF
11685
11686
11687else
11688  cat >>confdefs.h <<_ACEOF
11689#define HAVE_DECL_ACOSH 0
11690_ACEOF
11691
11692
11693fi
11694
11695
11696{ echo "$as_me:$LINENO: checking whether asinh is declared" >&5
11697echo $ECHO_N "checking whether asinh is declared... $ECHO_C" >&6; }
11698if test "${ac_cv_have_decl_asinh+set}" = set; then
11699  echo $ECHO_N "(cached) $ECHO_C" >&6
11700else
11701  cat >conftest.$ac_ext <<_ACEOF
11702/* confdefs.h.  */
11703_ACEOF
11704cat confdefs.h >>conftest.$ac_ext
11705cat >>conftest.$ac_ext <<_ACEOF
11706/* end confdefs.h.  */
11707#include <math.h>
11708
11709int
11710main ()
11711{
11712#ifndef asinh
11713  (void) asinh;
11714#endif
11715
11716  ;
11717  return 0;
11718}
11719_ACEOF
11720rm -f conftest.$ac_objext
11721if { (ac_try="$ac_compile"
11722case "(($ac_try" in
11723  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11724  *) ac_try_echo=$ac_try;;
11725esac
11726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11727  (eval "$ac_compile") 2>conftest.er1
11728  ac_status=$?
11729  grep -v '^ *+' conftest.er1 >conftest.err
11730  rm -f conftest.er1
11731  cat conftest.err >&5
11732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733  (exit $ac_status); } && {
11734	 test -z "$ac_c_werror_flag" ||
11735	 test ! -s conftest.err
11736       } && test -s conftest.$ac_objext; then
11737  ac_cv_have_decl_asinh=yes
11738else
11739  echo "$as_me: failed program was:" >&5
11740sed 's/^/| /' conftest.$ac_ext >&5
11741
11742	ac_cv_have_decl_asinh=no
11743fi
11744
11745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11746fi
11747{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_asinh" >&5
11748echo "${ECHO_T}$ac_cv_have_decl_asinh" >&6; }
11749if test $ac_cv_have_decl_asinh = yes; then
11750
11751cat >>confdefs.h <<_ACEOF
11752#define HAVE_DECL_ASINH 1
11753_ACEOF
11754
11755
11756else
11757  cat >>confdefs.h <<_ACEOF
11758#define HAVE_DECL_ASINH 0
11759_ACEOF
11760
11761
11762fi
11763
11764
11765{ echo "$as_me:$LINENO: checking whether atanh is declared" >&5
11766echo $ECHO_N "checking whether atanh is declared... $ECHO_C" >&6; }
11767if test "${ac_cv_have_decl_atanh+set}" = set; then
11768  echo $ECHO_N "(cached) $ECHO_C" >&6
11769else
11770  cat >conftest.$ac_ext <<_ACEOF
11771/* confdefs.h.  */
11772_ACEOF
11773cat confdefs.h >>conftest.$ac_ext
11774cat >>conftest.$ac_ext <<_ACEOF
11775/* end confdefs.h.  */
11776#include <math.h>
11777
11778int
11779main ()
11780{
11781#ifndef atanh
11782  (void) atanh;
11783#endif
11784
11785  ;
11786  return 0;
11787}
11788_ACEOF
11789rm -f conftest.$ac_objext
11790if { (ac_try="$ac_compile"
11791case "(($ac_try" in
11792  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11793  *) ac_try_echo=$ac_try;;
11794esac
11795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11796  (eval "$ac_compile") 2>conftest.er1
11797  ac_status=$?
11798  grep -v '^ *+' conftest.er1 >conftest.err
11799  rm -f conftest.er1
11800  cat conftest.err >&5
11801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802  (exit $ac_status); } && {
11803	 test -z "$ac_c_werror_flag" ||
11804	 test ! -s conftest.err
11805       } && test -s conftest.$ac_objext; then
11806  ac_cv_have_decl_atanh=yes
11807else
11808  echo "$as_me: failed program was:" >&5
11809sed 's/^/| /' conftest.$ac_ext >&5
11810
11811	ac_cv_have_decl_atanh=no
11812fi
11813
11814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11815fi
11816{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_atanh" >&5
11817echo "${ECHO_T}$ac_cv_have_decl_atanh" >&6; }
11818if test $ac_cv_have_decl_atanh = yes; then
11819
11820cat >>confdefs.h <<_ACEOF
11821#define HAVE_DECL_ATANH 1
11822_ACEOF
11823
11824
11825else
11826  cat >>confdefs.h <<_ACEOF
11827#define HAVE_DECL_ATANH 0
11828_ACEOF
11829
11830
11831fi
11832
11833
11834{ echo "$as_me:$LINENO: checking whether ldexp is declared" >&5
11835echo $ECHO_N "checking whether ldexp is declared... $ECHO_C" >&6; }
11836if test "${ac_cv_have_decl_ldexp+set}" = set; then
11837  echo $ECHO_N "(cached) $ECHO_C" >&6
11838else
11839  cat >conftest.$ac_ext <<_ACEOF
11840/* confdefs.h.  */
11841_ACEOF
11842cat confdefs.h >>conftest.$ac_ext
11843cat >>conftest.$ac_ext <<_ACEOF
11844/* end confdefs.h.  */
11845#include <math.h>
11846
11847int
11848main ()
11849{
11850#ifndef ldexp
11851  (void) ldexp;
11852#endif
11853
11854  ;
11855  return 0;
11856}
11857_ACEOF
11858rm -f conftest.$ac_objext
11859if { (ac_try="$ac_compile"
11860case "(($ac_try" in
11861  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11862  *) ac_try_echo=$ac_try;;
11863esac
11864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11865  (eval "$ac_compile") 2>conftest.er1
11866  ac_status=$?
11867  grep -v '^ *+' conftest.er1 >conftest.err
11868  rm -f conftest.er1
11869  cat conftest.err >&5
11870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871  (exit $ac_status); } && {
11872	 test -z "$ac_c_werror_flag" ||
11873	 test ! -s conftest.err
11874       } && test -s conftest.$ac_objext; then
11875  ac_cv_have_decl_ldexp=yes
11876else
11877  echo "$as_me: failed program was:" >&5
11878sed 's/^/| /' conftest.$ac_ext >&5
11879
11880	ac_cv_have_decl_ldexp=no
11881fi
11882
11883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11884fi
11885{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_ldexp" >&5
11886echo "${ECHO_T}$ac_cv_have_decl_ldexp" >&6; }
11887if test $ac_cv_have_decl_ldexp = yes; then
11888
11889cat >>confdefs.h <<_ACEOF
11890#define HAVE_DECL_LDEXP 1
11891_ACEOF
11892
11893
11894else
11895  cat >>confdefs.h <<_ACEOF
11896#define HAVE_DECL_LDEXP 0
11897_ACEOF
11898
11899
11900fi
11901
11902
11903{ echo "$as_me:$LINENO: checking whether frexp is declared" >&5
11904echo $ECHO_N "checking whether frexp is declared... $ECHO_C" >&6; }
11905if test "${ac_cv_have_decl_frexp+set}" = set; then
11906  echo $ECHO_N "(cached) $ECHO_C" >&6
11907else
11908  cat >conftest.$ac_ext <<_ACEOF
11909/* confdefs.h.  */
11910_ACEOF
11911cat confdefs.h >>conftest.$ac_ext
11912cat >>conftest.$ac_ext <<_ACEOF
11913/* end confdefs.h.  */
11914#include <math.h>
11915
11916int
11917main ()
11918{
11919#ifndef frexp
11920  (void) frexp;
11921#endif
11922
11923  ;
11924  return 0;
11925}
11926_ACEOF
11927rm -f conftest.$ac_objext
11928if { (ac_try="$ac_compile"
11929case "(($ac_try" in
11930  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11931  *) ac_try_echo=$ac_try;;
11932esac
11933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11934  (eval "$ac_compile") 2>conftest.er1
11935  ac_status=$?
11936  grep -v '^ *+' conftest.er1 >conftest.err
11937  rm -f conftest.er1
11938  cat conftest.err >&5
11939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940  (exit $ac_status); } && {
11941	 test -z "$ac_c_werror_flag" ||
11942	 test ! -s conftest.err
11943       } && test -s conftest.$ac_objext; then
11944  ac_cv_have_decl_frexp=yes
11945else
11946  echo "$as_me: failed program was:" >&5
11947sed 's/^/| /' conftest.$ac_ext >&5
11948
11949	ac_cv_have_decl_frexp=no
11950fi
11951
11952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11953fi
11954{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_frexp" >&5
11955echo "${ECHO_T}$ac_cv_have_decl_frexp" >&6; }
11956if test $ac_cv_have_decl_frexp = yes; then
11957
11958cat >>confdefs.h <<_ACEOF
11959#define HAVE_DECL_FREXP 1
11960_ACEOF
11961
11962
11963else
11964  cat >>confdefs.h <<_ACEOF
11965#define HAVE_DECL_FREXP 0
11966_ACEOF
11967
11968
11969fi
11970
11971
11972{ echo "$as_me:$LINENO: checking whether isinf is declared" >&5
11973echo $ECHO_N "checking whether isinf is declared... $ECHO_C" >&6; }
11974if test "${ac_cv_have_decl_isinf+set}" = set; then
11975  echo $ECHO_N "(cached) $ECHO_C" >&6
11976else
11977  cat >conftest.$ac_ext <<_ACEOF
11978/* confdefs.h.  */
11979_ACEOF
11980cat confdefs.h >>conftest.$ac_ext
11981cat >>conftest.$ac_ext <<_ACEOF
11982/* end confdefs.h.  */
11983#include <math.h>
11984
11985int
11986main ()
11987{
11988#ifndef isinf
11989  (void) isinf;
11990#endif
11991
11992  ;
11993  return 0;
11994}
11995_ACEOF
11996rm -f conftest.$ac_objext
11997if { (ac_try="$ac_compile"
11998case "(($ac_try" in
11999  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12000  *) ac_try_echo=$ac_try;;
12001esac
12002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12003  (eval "$ac_compile") 2>conftest.er1
12004  ac_status=$?
12005  grep -v '^ *+' conftest.er1 >conftest.err
12006  rm -f conftest.er1
12007  cat conftest.err >&5
12008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009  (exit $ac_status); } && {
12010	 test -z "$ac_c_werror_flag" ||
12011	 test ! -s conftest.err
12012       } && test -s conftest.$ac_objext; then
12013  ac_cv_have_decl_isinf=yes
12014else
12015  echo "$as_me: failed program was:" >&5
12016sed 's/^/| /' conftest.$ac_ext >&5
12017
12018	ac_cv_have_decl_isinf=no
12019fi
12020
12021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12022fi
12023{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5
12024echo "${ECHO_T}$ac_cv_have_decl_isinf" >&6; }
12025if test $ac_cv_have_decl_isinf = yes; then
12026
12027cat >>confdefs.h <<_ACEOF
12028#define HAVE_DECL_ISINF 1
12029_ACEOF
12030
12031
12032else
12033  cat >>confdefs.h <<_ACEOF
12034#define HAVE_DECL_ISINF 0
12035_ACEOF
12036
12037
12038fi
12039
12040
12041{ echo "$as_me:$LINENO: checking whether isfinite is declared" >&5
12042echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6; }
12043if test "${ac_cv_have_decl_isfinite+set}" = set; then
12044  echo $ECHO_N "(cached) $ECHO_C" >&6
12045else
12046  cat >conftest.$ac_ext <<_ACEOF
12047/* confdefs.h.  */
12048_ACEOF
12049cat confdefs.h >>conftest.$ac_ext
12050cat >>conftest.$ac_ext <<_ACEOF
12051/* end confdefs.h.  */
12052#include <math.h>
12053
12054int
12055main ()
12056{
12057#ifndef isfinite
12058  (void) isfinite;
12059#endif
12060
12061  ;
12062  return 0;
12063}
12064_ACEOF
12065rm -f conftest.$ac_objext
12066if { (ac_try="$ac_compile"
12067case "(($ac_try" in
12068  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12069  *) ac_try_echo=$ac_try;;
12070esac
12071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12072  (eval "$ac_compile") 2>conftest.er1
12073  ac_status=$?
12074  grep -v '^ *+' conftest.er1 >conftest.err
12075  rm -f conftest.er1
12076  cat conftest.err >&5
12077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12078  (exit $ac_status); } && {
12079	 test -z "$ac_c_werror_flag" ||
12080	 test ! -s conftest.err
12081       } && test -s conftest.$ac_objext; then
12082  ac_cv_have_decl_isfinite=yes
12083else
12084  echo "$as_me: failed program was:" >&5
12085sed 's/^/| /' conftest.$ac_ext >&5
12086
12087	ac_cv_have_decl_isfinite=no
12088fi
12089
12090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12091fi
12092{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5
12093echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6; }
12094if test $ac_cv_have_decl_isfinite = yes; then
12095
12096cat >>confdefs.h <<_ACEOF
12097#define HAVE_DECL_ISFINITE 1
12098_ACEOF
12099
12100
12101else
12102  cat >>confdefs.h <<_ACEOF
12103#define HAVE_DECL_ISFINITE 0
12104_ACEOF
12105
12106
12107fi
12108
12109
12110{ echo "$as_me:$LINENO: checking whether finite is declared" >&5
12111echo $ECHO_N "checking whether finite is declared... $ECHO_C" >&6; }
12112if test "${ac_cv_have_decl_finite+set}" = set; then
12113  echo $ECHO_N "(cached) $ECHO_C" >&6
12114else
12115  cat >conftest.$ac_ext <<_ACEOF
12116/* confdefs.h.  */
12117_ACEOF
12118cat confdefs.h >>conftest.$ac_ext
12119cat >>conftest.$ac_ext <<_ACEOF
12120/* end confdefs.h.  */
12121#include <math.h>
12122#if HAVE_IEEEFP_H
12123#include <ieeefp.h>
12124#endif
12125
12126int
12127main ()
12128{
12129#ifndef finite
12130  (void) finite;
12131#endif
12132
12133  ;
12134  return 0;
12135}
12136_ACEOF
12137rm -f conftest.$ac_objext
12138if { (ac_try="$ac_compile"
12139case "(($ac_try" in
12140  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12141  *) ac_try_echo=$ac_try;;
12142esac
12143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12144  (eval "$ac_compile") 2>conftest.er1
12145  ac_status=$?
12146  grep -v '^ *+' conftest.er1 >conftest.err
12147  rm -f conftest.er1
12148  cat conftest.err >&5
12149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150  (exit $ac_status); } && {
12151	 test -z "$ac_c_werror_flag" ||
12152	 test ! -s conftest.err
12153       } && test -s conftest.$ac_objext; then
12154  ac_cv_have_decl_finite=yes
12155else
12156  echo "$as_me: failed program was:" >&5
12157sed 's/^/| /' conftest.$ac_ext >&5
12158
12159	ac_cv_have_decl_finite=no
12160fi
12161
12162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12163fi
12164{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_finite" >&5
12165echo "${ECHO_T}$ac_cv_have_decl_finite" >&6; }
12166if test $ac_cv_have_decl_finite = yes; then
12167
12168cat >>confdefs.h <<_ACEOF
12169#define HAVE_DECL_FINITE 1
12170_ACEOF
12171
12172
12173else
12174  cat >>confdefs.h <<_ACEOF
12175#define HAVE_DECL_FINITE 0
12176_ACEOF
12177
12178
12179fi
12180
12181
12182{ echo "$as_me:$LINENO: checking whether isnan is declared" >&5
12183echo $ECHO_N "checking whether isnan is declared... $ECHO_C" >&6; }
12184if test "${ac_cv_have_decl_isnan+set}" = set; then
12185  echo $ECHO_N "(cached) $ECHO_C" >&6
12186else
12187  cat >conftest.$ac_ext <<_ACEOF
12188/* confdefs.h.  */
12189_ACEOF
12190cat confdefs.h >>conftest.$ac_ext
12191cat >>conftest.$ac_ext <<_ACEOF
12192/* end confdefs.h.  */
12193#include <math.h>
12194
12195int
12196main ()
12197{
12198#ifndef isnan
12199  (void) isnan;
12200#endif
12201
12202  ;
12203  return 0;
12204}
12205_ACEOF
12206rm -f conftest.$ac_objext
12207if { (ac_try="$ac_compile"
12208case "(($ac_try" in
12209  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12210  *) ac_try_echo=$ac_try;;
12211esac
12212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12213  (eval "$ac_compile") 2>conftest.er1
12214  ac_status=$?
12215  grep -v '^ *+' conftest.er1 >conftest.err
12216  rm -f conftest.er1
12217  cat conftest.err >&5
12218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219  (exit $ac_status); } && {
12220	 test -z "$ac_c_werror_flag" ||
12221	 test ! -s conftest.err
12222       } && test -s conftest.$ac_objext; then
12223  ac_cv_have_decl_isnan=yes
12224else
12225  echo "$as_me: failed program was:" >&5
12226sed 's/^/| /' conftest.$ac_ext >&5
12227
12228	ac_cv_have_decl_isnan=no
12229fi
12230
12231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12232fi
12233{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5
12234echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6; }
12235if test $ac_cv_have_decl_isnan = yes; then
12236
12237cat >>confdefs.h <<_ACEOF
12238#define HAVE_DECL_ISNAN 1
12239_ACEOF
12240
12241
12242else
12243  cat >>confdefs.h <<_ACEOF
12244#define HAVE_DECL_ISNAN 0
12245_ACEOF
12246
12247
12248fi
12249
12250
12251
12252case "$host" in
12253    *-*-*openbsd*)
12254       { echo "$as_me:$LINENO: result: avoiding OpenBSD system log1p - using gsl version" >&5
12255echo "${ECHO_T}avoiding OpenBSD system log1p - using gsl version" >&6; }
12256       ;;
12257    *)
12258        { echo "$as_me:$LINENO: checking whether log1p is declared" >&5
12259echo $ECHO_N "checking whether log1p is declared... $ECHO_C" >&6; }
12260if test "${ac_cv_have_decl_log1p+set}" = set; then
12261  echo $ECHO_N "(cached) $ECHO_C" >&6
12262else
12263  cat >conftest.$ac_ext <<_ACEOF
12264/* confdefs.h.  */
12265_ACEOF
12266cat confdefs.h >>conftest.$ac_ext
12267cat >>conftest.$ac_ext <<_ACEOF
12268/* end confdefs.h.  */
12269#include <math.h>
12270
12271int
12272main ()
12273{
12274#ifndef log1p
12275  (void) log1p;
12276#endif
12277
12278  ;
12279  return 0;
12280}
12281_ACEOF
12282rm -f conftest.$ac_objext
12283if { (ac_try="$ac_compile"
12284case "(($ac_try" in
12285  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12286  *) ac_try_echo=$ac_try;;
12287esac
12288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12289  (eval "$ac_compile") 2>conftest.er1
12290  ac_status=$?
12291  grep -v '^ *+' conftest.er1 >conftest.err
12292  rm -f conftest.er1
12293  cat conftest.err >&5
12294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295  (exit $ac_status); } && {
12296	 test -z "$ac_c_werror_flag" ||
12297	 test ! -s conftest.err
12298       } && test -s conftest.$ac_objext; then
12299  ac_cv_have_decl_log1p=yes
12300else
12301  echo "$as_me: failed program was:" >&5
12302sed 's/^/| /' conftest.$ac_ext >&5
12303
12304	ac_cv_have_decl_log1p=no
12305fi
12306
12307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12308fi
12309{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_log1p" >&5
12310echo "${ECHO_T}$ac_cv_have_decl_log1p" >&6; }
12311if test $ac_cv_have_decl_log1p = yes; then
12312
12313cat >>confdefs.h <<_ACEOF
12314#define HAVE_DECL_LOG1P 1
12315_ACEOF
12316
12317
12318else
12319  cat >>confdefs.h <<_ACEOF
12320#define HAVE_DECL_LOG1P 0
12321_ACEOF
12322
12323
12324fi
12325
12326
12327       ;;
12328esac
12329
12330{ echo "$as_me:$LINENO: checking for long double stdio" >&5
12331echo $ECHO_N "checking for long double stdio... $ECHO_C" >&6; }
12332if test "${ac_cv_func_printf_longdouble+set}" = set; then
12333  echo $ECHO_N "(cached) $ECHO_C" >&6
12334else
12335  if test "$cross_compiling" = yes; then
12336  ac_cv_func_printf_longdouble="no"
12337else
12338  cat >conftest.$ac_ext <<_ACEOF
12339/* confdefs.h.  */
12340_ACEOF
12341cat confdefs.h >>conftest.$ac_ext
12342cat >>conftest.$ac_ext <<_ACEOF
12343/* end confdefs.h.  */
12344
12345#include <stdlib.h>
12346#include <stdio.h>
12347int main (void)
12348{
12349const char * s = "5678.25"; long double x = 1.234 ;
12350fprintf(stderr,"%Lg\n",x) ;
12351sscanf(s, "%Lg", &x);
12352if (x == 5678.25) {exit (0);} else {exit(1); };
12353}
12354_ACEOF
12355rm -f conftest$ac_exeext
12356if { (ac_try="$ac_link"
12357case "(($ac_try" in
12358  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12359  *) ac_try_echo=$ac_try;;
12360esac
12361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12362  (eval "$ac_link") 2>&5
12363  ac_status=$?
12364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12366  { (case "(($ac_try" in
12367  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12368  *) ac_try_echo=$ac_try;;
12369esac
12370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12371  (eval "$ac_try") 2>&5
12372  ac_status=$?
12373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374  (exit $ac_status); }; }; then
12375  ac_cv_func_printf_longdouble="yes"
12376else
12377  echo "$as_me: program exited with status $ac_status" >&5
12378echo "$as_me: failed program was:" >&5
12379sed 's/^/| /' conftest.$ac_ext >&5
12380
12381( exit $ac_status )
12382ac_cv_func_printf_longdouble="no"
12383fi
12384rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12385fi
12386
12387
12388fi
12389{ echo "$as_me:$LINENO: result: $ac_cv_func_printf_longdouble" >&5
12390echo "${ECHO_T}$ac_cv_func_printf_longdouble" >&6; }
12391
12392if test "$ac_cv_func_printf_longdouble" != no; then
12393
12394cat >>confdefs.h <<\_ACEOF
12395#define HAVE_PRINTF_LONGDOUBLE 1
12396_ACEOF
12397
12398fi
12399
12400{ echo "$as_me:$LINENO: checking for extended floating point registers" >&5
12401echo $ECHO_N "checking for extended floating point registers... $ECHO_C" >&6; }
12402if test "${ac_cv_c_extended_fp+set}" = set; then
12403  echo $ECHO_N "(cached) $ECHO_C" >&6
12404else
12405  case "$host" in
12406    *sparc*-*-*)
12407        ac_cv_c_extended_fp=no
12408        ;;
12409    *powerpc*-*-*)
12410        ac_cv_c_extended_fp=no
12411        ;;
12412    *hppa*-*-*)
12413        ac_cv_c_extended_fp=no
12414        ;;
12415    *alpha*-*-*)
12416        ac_cv_c_extended_fp=no
12417        ;;
12418    *68k*-*-*)
12419        ac_cv_c_extended_fp=yes
12420        ;;
12421    *86-*-*)
12422        ac_cv_c_extended_fp=yes
12423        ;;
12424    x86_64-*-*)
12425        ac_cv_c_extended_fp=yes
12426        ;;
12427    *)
12428        ac_cv_c_extended_fp=unknown
12429        ;;
12430esac
12431
12432fi
12433{ echo "$as_me:$LINENO: result: $ac_cv_c_extended_fp" >&5
12434echo "${ECHO_T}$ac_cv_c_extended_fp" >&6; }
12435
12436if test $ac_cv_c_extended_fp != "no" ; then
12437
12438cat >>confdefs.h <<\_ACEOF
12439#define HAVE_EXTENDED_PRECISION_REGISTERS 1
12440_ACEOF
12441
12442fi
12443
12444{ echo "$as_me:$LINENO: checking for IEEE arithmetic interface type" >&5
12445echo $ECHO_N "checking for IEEE arithmetic interface type... $ECHO_C" >&6; }
12446if test "${ac_cv_c_ieee_interface+set}" = set; then
12447  echo $ECHO_N "(cached) $ECHO_C" >&6
12448else
12449  case "$host" in
12450    sparc-*-linux*)
12451        ac_cv_c_ieee_interface=gnusparc
12452        ;;
12453    m68k-*-linux*)
12454        ac_cv_c_ieee_interface=gnum68k
12455        ;;
12456    powerpc-*-linux*)
12457        ac_cv_c_ieee_interface=gnuppc
12458        ;;
12459    *86-*-gnu | *86_64-*-gnu | *86-*-linux* | *86_64-*-linux*)
12460        ac_cv_c_ieee_interface=gnux86
12461        ;;
12462    *-*-sunos4*)
12463        ac_cv_c_ieee_interface=sunos4
12464        ;;
12465    *-*-solaris*)
12466        ac_cv_c_ieee_interface=solaris
12467        ;;
12468    *-*-hpux11*)
12469        ac_cv_c_ieee_interface=hpux11
12470        ;;
12471    *-*-hpux*)
12472        ac_cv_c_ieee_interface=hpux
12473        ;;
12474    *-*-osf*)
12475        ac_cv_c_ieee_interface=tru64
12476        ;;
12477    *-*-aix*)
12478        ac_cv_c_ieee_interface=aix
12479        ;;
12480    *-*-irix*)
12481        ac_cv_c_ieee_interface=irix
12482        ;;
12483    powerpc-*-*darwin*)
12484        ac_cv_c_ieee_interface=darwin
12485        ;;
12486    *86-*-*darwin*)
12487        ac_cv_c_ieee_interface=darwin86
12488        ;;
12489    *-*-*netbsd*)
12490        ac_cv_c_ieee_interface=netbsd
12491        ;;
12492    *-*-*openbsd*)
12493        ac_cv_c_ieee_interface=openbsd
12494        ;;
12495    *-*-*bsd*)
12496        ac_cv_c_ieee_interface=freebsd
12497        ;;
12498    *-*-os2*)
12499        ac_cv_c_ieee_interface=os2emx
12500        ;;
12501    *)
12502        ac_cv_c_ieee_interface=unknown
12503        ;;
12504esac
12505
12506fi
12507{ echo "$as_me:$LINENO: result: $ac_cv_c_ieee_interface" >&5
12508echo "${ECHO_T}$ac_cv_c_ieee_interface" >&6; }
12509
12510if test "$ac_cv_c_ieee_interface" = "gnux86" ; then
12511    { echo "$as_me:$LINENO: checking for FPU_SETCW" >&5
12512echo $ECHO_N "checking for FPU_SETCW... $ECHO_C" >&6; }
12513if test "${ac_cv_c_fpu_setcw+set}" = set; then
12514  echo $ECHO_N "(cached) $ECHO_C" >&6
12515else
12516  ac_cv_c_fpu_setcw=no
12517    cat >conftest.$ac_ext <<_ACEOF
12518/* confdefs.h.  */
12519_ACEOF
12520cat confdefs.h >>conftest.$ac_ext
12521cat >>conftest.$ac_ext <<_ACEOF
12522/* end confdefs.h.  */
12523#include <fpu_control.h>
12524#ifndef _FPU_SETCW
12525#include <i386/fpu_control.h>
12526#define _FPU_SETCW(cw) __setfpucw(cw)
12527#endif
12528
12529int
12530main ()
12531{
12532 unsigned short mode = 0 ; _FPU_SETCW(mode);
12533  ;
12534  return 0;
12535}
12536_ACEOF
12537rm -f conftest.$ac_objext
12538if { (ac_try="$ac_compile"
12539case "(($ac_try" in
12540  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12541  *) ac_try_echo=$ac_try;;
12542esac
12543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12544  (eval "$ac_compile") 2>conftest.er1
12545  ac_status=$?
12546  grep -v '^ *+' conftest.er1 >conftest.err
12547  rm -f conftest.er1
12548  cat conftest.err >&5
12549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550  (exit $ac_status); } && {
12551	 test -z "$ac_c_werror_flag" ||
12552	 test ! -s conftest.err
12553       } && test -s conftest.$ac_objext; then
12554  ac_cv_c_fpu_setcw="yes"
12555else
12556  echo "$as_me: failed program was:" >&5
12557sed 's/^/| /' conftest.$ac_ext >&5
12558
12559	ac_cv_c_ieee_interface=unknown
12560fi
12561
12562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12563
12564fi
12565{ echo "$as_me:$LINENO: result: $ac_cv_c_fpu_setcw" >&5
12566echo "${ECHO_T}$ac_cv_c_fpu_setcw" >&6; }
12567fi
12568
12569if test "$ac_cv_c_ieee_interface" = "gnux86" ; then
12570    { echo "$as_me:$LINENO: checking for SSE extensions" >&5
12571echo $ECHO_N "checking for SSE extensions... $ECHO_C" >&6; }
12572if test "${ac_cv_c_fpu_sse+set}" = set; then
12573  echo $ECHO_N "(cached) $ECHO_C" >&6
12574else
12575  ac_cv_c_fpu_sse=no
12576    if test "$cross_compiling" = yes; then
12577  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12578See \`config.log' for more details." >&5
12579echo "$as_me: error: cannot run test program while cross compiling
12580See \`config.log' for more details." >&2;}
12581   { (exit 1); exit 1; }; }
12582else
12583  cat >conftest.$ac_ext <<_ACEOF
12584/* confdefs.h.  */
12585_ACEOF
12586cat confdefs.h >>conftest.$ac_ext
12587cat >>conftest.$ac_ext <<_ACEOF
12588/* end confdefs.h.  */
12589
12590#include <stdlib.h>
12591#define _FPU_SETMXCSR(cw_sse) asm volatile ("ldmxcsr %0" : : "m" (*&cw_sse))
12592
12593int
12594main ()
12595{
12596 unsigned int mode = 0x1f80 ; _FPU_SETMXCSR(mode); exit(0);
12597  ;
12598  return 0;
12599}
12600_ACEOF
12601rm -f conftest$ac_exeext
12602if { (ac_try="$ac_link"
12603case "(($ac_try" in
12604  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12605  *) ac_try_echo=$ac_try;;
12606esac
12607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12608  (eval "$ac_link") 2>&5
12609  ac_status=$?
12610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12612  { (case "(($ac_try" in
12613  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12614  *) ac_try_echo=$ac_try;;
12615esac
12616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12617  (eval "$ac_try") 2>&5
12618  ac_status=$?
12619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620  (exit $ac_status); }; }; then
12621  ac_cv_c_fpu_sse="yes"
12622else
12623  echo "$as_me: program exited with status $ac_status" >&5
12624echo "$as_me: failed program was:" >&5
12625sed 's/^/| /' conftest.$ac_ext >&5
12626
12627fi
12628rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12629fi
12630
12631
12632
12633fi
12634{ echo "$as_me:$LINENO: result: $ac_cv_c_fpu_sse" >&5
12635echo "${ECHO_T}$ac_cv_c_fpu_sse" >&6; }
12636    if test $ac_cv_c_fpu_sse = yes; then
12637
12638cat >>confdefs.h <<\_ACEOF
12639#define HAVE_FPU_X86_SSE 1
12640_ACEOF
12641
12642   fi
12643fi
12644
12645ac_tr_ieee_interface=HAVE_`echo $ac_cv_c_ieee_interface | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_IEEE_INTERFACE
12646
12647cat >>confdefs.h <<_ACEOF
12648#define $ac_tr_ieee_interface 1
12649_ACEOF
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671save_cflags="$CFLAGS"
12672{ echo "$as_me:$LINENO: checking for IEEE compiler flags" >&5
12673echo $ECHO_N "checking for IEEE compiler flags... $ECHO_C" >&6; }
12674if test "${ac_cv_c_ieee_flags+set}" = set; then
12675  echo $ECHO_N "(cached) $ECHO_C" >&6
12676else
12677
12678case "$host" in
12679    alpha*-*-*)
12680        if test X"$GCC" = Xyes ; then
12681            ieee_flags='-mieee -mfp-rounding-mode=d'
12682        else
12683            # This assumes Compaq's C compiler.
12684            ieee_flags='-ieee -fprm d'
12685        fi
12686        ;;
12687esac
12688if test X"$ieee_flags" != X ; then
12689  CFLAGS="$ieee_flags $CFLAGS"
12690  cat >conftest.$ac_ext <<_ACEOF
12691/* confdefs.h.  */
12692_ACEOF
12693cat confdefs.h >>conftest.$ac_ext
12694cat >>conftest.$ac_ext <<_ACEOF
12695/* end confdefs.h.  */
12696
12697int
12698main ()
12699{
12700int foo;
12701  ;
12702  return 0;
12703}
12704_ACEOF
12705rm -f conftest.$ac_objext
12706if { (ac_try="$ac_compile"
12707case "(($ac_try" in
12708  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12709  *) ac_try_echo=$ac_try;;
12710esac
12711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12712  (eval "$ac_compile") 2>conftest.er1
12713  ac_status=$?
12714  grep -v '^ *+' conftest.er1 >conftest.err
12715  rm -f conftest.er1
12716  cat conftest.err >&5
12717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718  (exit $ac_status); } && {
12719	 test -z "$ac_c_werror_flag" ||
12720	 test ! -s conftest.err
12721       } && test -s conftest.$ac_objext; then
12722  ac_cv_c_ieee_flags="$ieee_flags"
12723else
12724  echo "$as_me: failed program was:" >&5
12725sed 's/^/| /' conftest.$ac_ext >&5
12726
12727	ac_cv_c_ieee_flags="none"
12728fi
12729
12730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12731else
12732  ac_cv_c_ieee_flags="none"
12733fi
12734fi
12735{ echo "$as_me:$LINENO: result: $ac_cv_c_ieee_flags" >&5
12736echo "${ECHO_T}$ac_cv_c_ieee_flags" >&6; }
12737
12738if test "$ac_cv_c_ieee_flags" != "none" ; then
12739   CFLAGS="$ac_cv_c_ieee_flags $save_cflags"
12740else
12741   CFLAGS="$save_cflags"
12742fi
12743
12744{ echo "$as_me:$LINENO: checking for IEEE comparisons" >&5
12745echo $ECHO_N "checking for IEEE comparisons... $ECHO_C" >&6; }
12746if test "${ac_cv_c_ieee_comparisons+set}" = set; then
12747  echo $ECHO_N "(cached) $ECHO_C" >&6
12748else
12749  if test "$cross_compiling" = yes; then
12750  ac_cv_c_ieee_comparisons="yes"
12751else
12752  cat >conftest.$ac_ext <<_ACEOF
12753/* confdefs.h.  */
12754_ACEOF
12755cat confdefs.h >>conftest.$ac_ext
12756cat >>conftest.$ac_ext <<_ACEOF
12757/* end confdefs.h.  */
12758
12759#include <math.h>
12760int main (void)
12761{
12762   int status; double inf, nan;
12763   inf = exp(1.0e10);
12764   nan = inf / inf ;
12765   status = (nan == nan);
12766   exit (status);
12767}
12768_ACEOF
12769rm -f conftest$ac_exeext
12770if { (ac_try="$ac_link"
12771case "(($ac_try" in
12772  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12773  *) ac_try_echo=$ac_try;;
12774esac
12775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12776  (eval "$ac_link") 2>&5
12777  ac_status=$?
12778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12780  { (case "(($ac_try" in
12781  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12782  *) ac_try_echo=$ac_try;;
12783esac
12784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12785  (eval "$ac_try") 2>&5
12786  ac_status=$?
12787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788  (exit $ac_status); }; }; then
12789  ac_cv_c_ieee_comparisons="yes"
12790else
12791  echo "$as_me: program exited with status $ac_status" >&5
12792echo "$as_me: failed program was:" >&5
12793sed 's/^/| /' conftest.$ac_ext >&5
12794
12795( exit $ac_status )
12796ac_cv_c_ieee_comparisons="no"
12797fi
12798rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12799fi
12800
12801
12802
12803fi
12804{ echo "$as_me:$LINENO: result: $ac_cv_c_ieee_comparisons" >&5
12805echo "${ECHO_T}$ac_cv_c_ieee_comparisons" >&6; }
12806
12807if test "$ac_cv_c_ieee_comparisons" != no ; then
12808
12809cat >>confdefs.h <<\_ACEOF
12810#define HAVE_IEEE_COMPARISONS 1
12811_ACEOF
12812
12813fi
12814
12815{ echo "$as_me:$LINENO: checking for IEEE denormalized values" >&5
12816echo $ECHO_N "checking for IEEE denormalized values... $ECHO_C" >&6; }
12817if test "${ac_cv_c_ieee_denormals+set}" = set; then
12818  echo $ECHO_N "(cached) $ECHO_C" >&6
12819else
12820  if test "$cross_compiling" = yes; then
12821  ac_cv_c_ieee_denormals="yes"
12822else
12823  cat >conftest.$ac_ext <<_ACEOF
12824/* confdefs.h.  */
12825_ACEOF
12826cat confdefs.h >>conftest.$ac_ext
12827cat >>conftest.$ac_ext <<_ACEOF
12828/* end confdefs.h.  */
12829
12830#include <math.h>
12831int main (void)
12832{
12833   int i, status;
12834   volatile double z = 1e-308;
12835   for (i = 0; i < 5; i++) { z = z / 10.0 ; };
12836   for (i = 0; i < 5; i++) { z = z * 10.0 ; };
12837   status = (z == 0.0);
12838   exit (status);
12839}
12840_ACEOF
12841rm -f conftest$ac_exeext
12842if { (ac_try="$ac_link"
12843case "(($ac_try" in
12844  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12845  *) ac_try_echo=$ac_try;;
12846esac
12847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12848  (eval "$ac_link") 2>&5
12849  ac_status=$?
12850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12852  { (case "(($ac_try" in
12853  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12854  *) ac_try_echo=$ac_try;;
12855esac
12856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12857  (eval "$ac_try") 2>&5
12858  ac_status=$?
12859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860  (exit $ac_status); }; }; then
12861  ac_cv_c_ieee_denormals="yes"
12862else
12863  echo "$as_me: program exited with status $ac_status" >&5
12864echo "$as_me: failed program was:" >&5
12865sed 's/^/| /' conftest.$ac_ext >&5
12866
12867( exit $ac_status )
12868ac_cv_c_ieee_denormals="no"
12869fi
12870rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12871fi
12872
12873
12874
12875fi
12876{ echo "$as_me:$LINENO: result: $ac_cv_c_ieee_denormals" >&5
12877echo "${ECHO_T}$ac_cv_c_ieee_denormals" >&6; }
12878
12879if test "$ac_cv_c_ieee_denormals" != no ; then
12880
12881cat >>confdefs.h <<\_ACEOF
12882#define HAVE_IEEE_DENORMALS 1
12883_ACEOF
12884
12885fi
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911ac_config_files="$ac_config_files gsl-config gsl.pc gsl_version.h gsl.spec"
12912
12913cat >confcache <<\_ACEOF
12914# This file is a shell script that caches the results of configure
12915# tests run on this system so they can be shared between configure
12916# scripts and configure runs, see configure's option --config-cache.
12917# It is not useful on other systems.  If it contains results you don't
12918# want to keep, you may remove or edit it.
12919#
12920# config.status only pays attention to the cache file if you give it
12921# the --recheck option to rerun configure.
12922#
12923# `ac_cv_env_foo' variables (set or unset) will be overridden when
12924# loading this file, other *unset* `ac_cv_foo' will be assigned the
12925# following values.
12926
12927_ACEOF
12928
12929# The following way of writing the cache mishandles newlines in values,
12930# but we know of no workaround that is simple, portable, and efficient.
12931# So, we kill variables containing newlines.
12932# Ultrix sh set writes to stderr and can't be redirected directly,
12933# and sets the high bit in the cache file unless we assign to the vars.
12934(
12935  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12936    eval ac_val=\$$ac_var
12937    case $ac_val in #(
12938    *${as_nl}*)
12939      case $ac_var in #(
12940      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12941echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12942      esac
12943      case $ac_var in #(
12944      _ | IFS | as_nl) ;; #(
12945      *) $as_unset $ac_var ;;
12946      esac ;;
12947    esac
12948  done
12949
12950  (set) 2>&1 |
12951    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12952    *${as_nl}ac_space=\ *)
12953      # `set' does not quote correctly, so add quotes (double-quote
12954      # substitution turns \\\\ into \\, and sed turns \\ into \).
12955      sed -n \
12956	"s/'/'\\\\''/g;
12957	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12958      ;; #(
12959    *)
12960      # `set' quotes correctly as required by POSIX, so do not add quotes.
12961      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12962      ;;
12963    esac |
12964    sort
12965) |
12966  sed '
12967     /^ac_cv_env_/b end
12968     t clear
12969     :clear
12970     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12971     t end
12972     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12973     :end' >>confcache
12974if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12975  if test -w "$cache_file"; then
12976    test "x$cache_file" != "x/dev/null" &&
12977      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
12978echo "$as_me: updating cache $cache_file" >&6;}
12979    cat confcache >$cache_file
12980  else
12981    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12982echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12983  fi
12984fi
12985rm -f confcache
12986
12987test "x$prefix" = xNONE && prefix=$ac_default_prefix
12988# Let make expand exec_prefix.
12989test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12990
12991DEFS=-DHAVE_CONFIG_H
12992
12993ac_libobjs=
12994ac_ltlibobjs=
12995for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12996  # 1. Remove the extension, and $U if already installed.
12997  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12998  ac_i=`echo "$ac_i" | sed "$ac_script"`
12999  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13000  #    will be set to the directory where LIBOBJS objects are built.
13001  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13002  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13003done
13004LIBOBJS=$ac_libobjs
13005
13006LTLIBOBJS=$ac_ltlibobjs
13007
13008
13009if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13010  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13011Usually this means the macro was only invoked conditionally." >&5
13012echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13013Usually this means the macro was only invoked conditionally." >&2;}
13014   { (exit 1); exit 1; }; }
13015fi
13016if test -z "${MINGW32_HOST_TRUE}" && test -z "${MINGW32_HOST_FALSE}"; then
13017  { { echo "$as_me:$LINENO: error: conditional \"MINGW32_HOST\" was never defined.
13018Usually this means the macro was only invoked conditionally." >&5
13019echo "$as_me: error: conditional \"MINGW32_HOST\" was never defined.
13020Usually this means the macro was only invoked conditionally." >&2;}
13021   { (exit 1); exit 1; }; }
13022fi
13023
13024: ${CONFIG_STATUS=./config.status}
13025ac_clean_files_save=$ac_clean_files
13026ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13027{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13028echo "$as_me: creating $CONFIG_STATUS" >&6;}
13029cat >$CONFIG_STATUS <<_ACEOF
13030#! $SHELL
13031# Generated by $as_me.
13032# Run this file to recreate the current configuration.
13033# Compiler output produced by configure, useful for debugging
13034# configure, is in config.log if it exists.
13035
13036debug=false
13037ac_cs_recheck=false
13038ac_cs_silent=false
13039SHELL=\${CONFIG_SHELL-$SHELL}
13040_ACEOF
13041
13042cat >>$CONFIG_STATUS <<\_ACEOF
13043## --------------------- ##
13044## M4sh Initialization.  ##
13045## --------------------- ##
13046
13047# Be more Bourne compatible
13048DUALCASE=1; export DUALCASE # for MKS sh
13049if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13050  emulate sh
13051  NULLCMD=:
13052  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13053  # is contrary to our usage.  Disable this feature.
13054  alias -g '${1+"$@"}'='"$@"'
13055  setopt NO_GLOB_SUBST
13056else
13057  case `(set -o) 2>/dev/null` in
13058  *posix*) set -o posix ;;
13059esac
13060
13061fi
13062
13063
13064
13065
13066# PATH needs CR
13067# Avoid depending upon Character Ranges.
13068as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13069as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13070as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13071as_cr_digits='0123456789'
13072as_cr_alnum=$as_cr_Letters$as_cr_digits
13073
13074# The user is always right.
13075if test "${PATH_SEPARATOR+set}" != set; then
13076  echo "#! /bin/sh" >conf$$.sh
13077  echo  "exit 0"   >>conf$$.sh
13078  chmod +x conf$$.sh
13079  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13080    PATH_SEPARATOR=';'
13081  else
13082    PATH_SEPARATOR=:
13083  fi
13084  rm -f conf$$.sh
13085fi
13086
13087# Support unset when possible.
13088if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13089  as_unset=unset
13090else
13091  as_unset=false
13092fi
13093
13094
13095# IFS
13096# We need space, tab and new line, in precisely that order.  Quoting is
13097# there to prevent editors from complaining about space-tab.
13098# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13099# splitting by setting IFS to empty value.)
13100as_nl='
13101'
13102IFS=" ""	$as_nl"
13103
13104# Find who we are.  Look in the path if we contain no directory separator.
13105case $0 in
13106  *[\\/]* ) as_myself=$0 ;;
13107  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13108for as_dir in $PATH
13109do
13110  IFS=$as_save_IFS
13111  test -z "$as_dir" && as_dir=.
13112  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13113done
13114IFS=$as_save_IFS
13115
13116     ;;
13117esac
13118# We did not find ourselves, most probably we were run as `sh COMMAND'
13119# in which case we are not to be found in the path.
13120if test "x$as_myself" = x; then
13121  as_myself=$0
13122fi
13123if test ! -f "$as_myself"; then
13124  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13125  { (exit 1); exit 1; }
13126fi
13127
13128# Work around bugs in pre-3.0 UWIN ksh.
13129for as_var in ENV MAIL MAILPATH
13130do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13131done
13132PS1='$ '
13133PS2='> '
13134PS4='+ '
13135
13136# NLS nuisances.
13137for as_var in \
13138  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13139  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13140  LC_TELEPHONE LC_TIME
13141do
13142  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13143    eval $as_var=C; export $as_var
13144  else
13145    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13146  fi
13147done
13148
13149# Required to use basename.
13150if expr a : '\(a\)' >/dev/null 2>&1 &&
13151   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13152  as_expr=expr
13153else
13154  as_expr=false
13155fi
13156
13157if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13158  as_basename=basename
13159else
13160  as_basename=false
13161fi
13162
13163
13164# Name of the executable.
13165as_me=`$as_basename -- "$0" ||
13166$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13167	 X"$0" : 'X\(//\)$' \| \
13168	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13169echo X/"$0" |
13170    sed '/^.*\/\([^/][^/]*\)\/*$/{
13171	    s//\1/
13172	    q
13173	  }
13174	  /^X\/\(\/\/\)$/{
13175	    s//\1/
13176	    q
13177	  }
13178	  /^X\/\(\/\).*/{
13179	    s//\1/
13180	    q
13181	  }
13182	  s/.*/./; q'`
13183
13184# CDPATH.
13185$as_unset CDPATH
13186
13187
13188
13189  as_lineno_1=$LINENO
13190  as_lineno_2=$LINENO
13191  test "x$as_lineno_1" != "x$as_lineno_2" &&
13192  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13193
13194  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13195  # uniformly replaced by the line number.  The first 'sed' inserts a
13196  # line-number line after each line using $LINENO; the second 'sed'
13197  # does the real work.  The second script uses 'N' to pair each
13198  # line-number line with the line containing $LINENO, and appends
13199  # trailing '-' during substitution so that $LINENO is not a special
13200  # case at line end.
13201  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13202  # scripts with optimization help from Paolo Bonzini.  Blame Lee
13203  # E. McMahon (1931-1989) for sed's syntax.  :-)
13204  sed -n '
13205    p
13206    /[$]LINENO/=
13207  ' <$as_myself |
13208    sed '
13209      s/[$]LINENO.*/&-/
13210      t lineno
13211      b
13212      :lineno
13213      N
13214      :loop
13215      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13216      t loop
13217      s/-\n.*//
13218    ' >$as_me.lineno &&
13219  chmod +x "$as_me.lineno" ||
13220    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13221   { (exit 1); exit 1; }; }
13222
13223  # Don't try to exec as it changes $[0], causing all sort of problems
13224  # (the dirname of $[0] is not the place where we might find the
13225  # original and so on.  Autoconf is especially sensitive to this).
13226  . "./$as_me.lineno"
13227  # Exit status is that of the last command.
13228  exit
13229}
13230
13231
13232if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13233  as_dirname=dirname
13234else
13235  as_dirname=false
13236fi
13237
13238ECHO_C= ECHO_N= ECHO_T=
13239case `echo -n x` in
13240-n*)
13241  case `echo 'x\c'` in
13242  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13243  *)   ECHO_C='\c';;
13244  esac;;
13245*)
13246  ECHO_N='-n';;
13247esac
13248
13249if expr a : '\(a\)' >/dev/null 2>&1 &&
13250   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13251  as_expr=expr
13252else
13253  as_expr=false
13254fi
13255
13256rm -f conf$$ conf$$.exe conf$$.file
13257if test -d conf$$.dir; then
13258  rm -f conf$$.dir/conf$$.file
13259else
13260  rm -f conf$$.dir
13261  mkdir conf$$.dir
13262fi
13263echo >conf$$.file
13264if ln -s conf$$.file conf$$ 2>/dev/null; then
13265  as_ln_s='ln -s'
13266  # ... but there are two gotchas:
13267  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13268  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13269  # In both cases, we have to default to `cp -p'.
13270  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13271    as_ln_s='cp -p'
13272elif ln conf$$.file conf$$ 2>/dev/null; then
13273  as_ln_s=ln
13274else
13275  as_ln_s='cp -p'
13276fi
13277rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13278rmdir conf$$.dir 2>/dev/null
13279
13280if mkdir -p . 2>/dev/null; then
13281  as_mkdir_p=:
13282else
13283  test -d ./-p && rmdir ./-p
13284  as_mkdir_p=false
13285fi
13286
13287if test -x / >/dev/null 2>&1; then
13288  as_test_x='test -x'
13289else
13290  if ls -dL / >/dev/null 2>&1; then
13291    as_ls_L_option=L
13292  else
13293    as_ls_L_option=
13294  fi
13295  as_test_x='
13296    eval sh -c '\''
13297      if test -d "$1"; then
13298        test -d "$1/.";
13299      else
13300	case $1 in
13301        -*)set "./$1";;
13302	esac;
13303	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13304	???[sx]*):;;*)false;;esac;fi
13305    '\'' sh
13306  '
13307fi
13308as_executable_p=$as_test_x
13309
13310# Sed expression to map a string onto a valid CPP name.
13311as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13312
13313# Sed expression to map a string onto a valid variable name.
13314as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13315
13316
13317exec 6>&1
13318
13319# Save the log message, to keep $[0] and so on meaningful, and to
13320# report actual input values of CONFIG_FILES etc. instead of their
13321# values after options handling.
13322ac_log="
13323This file was extended by gsl $as_me 1.11, which was
13324generated by GNU Autoconf 2.61.  Invocation command line was
13325
13326  CONFIG_FILES    = $CONFIG_FILES
13327  CONFIG_HEADERS  = $CONFIG_HEADERS
13328  CONFIG_LINKS    = $CONFIG_LINKS
13329  CONFIG_COMMANDS = $CONFIG_COMMANDS
13330  $ $0 $@
13331
13332on `(hostname || uname -n) 2>/dev/null | sed 1q`
13333"
13334
13335_ACEOF
13336
13337cat >>$CONFIG_STATUS <<_ACEOF
13338# Files that config.status was made for.
13339config_files="$ac_config_files"
13340config_headers="$ac_config_headers"
13341config_commands="$ac_config_commands"
13342
13343_ACEOF
13344
13345cat >>$CONFIG_STATUS <<\_ACEOF
13346ac_cs_usage="\
13347\`$as_me' instantiates files from templates according to the
13348current configuration.
13349
13350Usage: $0 [OPTIONS] [FILE]...
13351
13352  -h, --help       print this help, then exit
13353  -V, --version    print version number and configuration settings, then exit
13354  -q, --quiet      do not print progress messages
13355  -d, --debug      don't remove temporary files
13356      --recheck    update $as_me by reconfiguring in the same conditions
13357  --file=FILE[:TEMPLATE]
13358		   instantiate the configuration file FILE
13359  --header=FILE[:TEMPLATE]
13360		   instantiate the configuration header FILE
13361
13362Configuration files:
13363$config_files
13364
13365Configuration headers:
13366$config_headers
13367
13368Configuration commands:
13369$config_commands
13370
13371Report bugs to <bug-autoconf@gnu.org>."
13372
13373_ACEOF
13374cat >>$CONFIG_STATUS <<_ACEOF
13375ac_cs_version="\\
13376gsl config.status 1.11
13377configured by $0, generated by GNU Autoconf 2.61,
13378  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13379
13380Copyright (C) 2006 Free Software Foundation, Inc.
13381This config.status script is free software; the Free Software Foundation
13382gives unlimited permission to copy, distribute and modify it."
13383
13384ac_pwd='$ac_pwd'
13385srcdir='$srcdir'
13386INSTALL='$INSTALL'
13387MKDIR_P='$MKDIR_P'
13388_ACEOF
13389
13390cat >>$CONFIG_STATUS <<\_ACEOF
13391# If no file are specified by the user, then we need to provide default
13392# value.  By we need to know if files were specified by the user.
13393ac_need_defaults=:
13394while test $# != 0
13395do
13396  case $1 in
13397  --*=*)
13398    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13399    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13400    ac_shift=:
13401    ;;
13402  *)
13403    ac_option=$1
13404    ac_optarg=$2
13405    ac_shift=shift
13406    ;;
13407  esac
13408
13409  case $ac_option in
13410  # Handling of the options.
13411  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13412    ac_cs_recheck=: ;;
13413  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13414    echo "$ac_cs_version"; exit ;;
13415  --debug | --debu | --deb | --de | --d | -d )
13416    debug=: ;;
13417  --file | --fil | --fi | --f )
13418    $ac_shift
13419    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13420    ac_need_defaults=false;;
13421  --header | --heade | --head | --hea )
13422    $ac_shift
13423    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13424    ac_need_defaults=false;;
13425  --he | --h)
13426    # Conflict between --help and --header
13427    { echo "$as_me: error: ambiguous option: $1
13428Try \`$0 --help' for more information." >&2
13429   { (exit 1); exit 1; }; };;
13430  --help | --hel | -h )
13431    echo "$ac_cs_usage"; exit ;;
13432  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13433  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13434    ac_cs_silent=: ;;
13435
13436  # This is an error.
13437  -*) { echo "$as_me: error: unrecognized option: $1
13438Try \`$0 --help' for more information." >&2
13439   { (exit 1); exit 1; }; } ;;
13440
13441  *) ac_config_targets="$ac_config_targets $1"
13442     ac_need_defaults=false ;;
13443
13444  esac
13445  shift
13446done
13447
13448ac_configure_extra_args=
13449
13450if $ac_cs_silent; then
13451  exec 6>/dev/null
13452  ac_configure_extra_args="$ac_configure_extra_args --silent"
13453fi
13454
13455_ACEOF
13456cat >>$CONFIG_STATUS <<_ACEOF
13457if \$ac_cs_recheck; then
13458  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13459  CONFIG_SHELL=$SHELL
13460  export CONFIG_SHELL
13461  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13462fi
13463
13464_ACEOF
13465cat >>$CONFIG_STATUS <<\_ACEOF
13466exec 5>>config.log
13467{
13468  echo
13469  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13470## Running $as_me. ##
13471_ASBOX
13472  echo "$ac_log"
13473} >&5
13474
13475_ACEOF
13476cat >>$CONFIG_STATUS <<_ACEOF
13477#
13478# INIT-COMMANDS
13479#
13480
13481
13482# The HP-UX ksh and POSIX shell print the target directory to stdout
13483# if CDPATH is set.
13484(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13485
13486sed_quote_subst='$sed_quote_subst'
13487double_quote_subst='$double_quote_subst'
13488delay_variable_subst='$delay_variable_subst'
13489macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13490macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13491enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13492enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13493pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13494enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13495host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13496host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13497host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13498build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13499build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13500build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13501SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13502Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13503GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13504EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13505FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13506LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13507NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13508LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13509max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13510ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13511exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13512lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13513lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13514lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13515reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13516reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13517deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13518file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13519AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13520AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13521STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13522RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13523old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13524old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13525old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13526CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13527CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13528compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13529GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13530lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13531lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13532lt_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"`'
13533lt_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"`'
13534objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13535SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13536ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13537MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13538lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13539lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13540lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13541lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13542lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13543need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13544DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13545NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13546libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13547shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13548extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13549archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13550enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13551export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13552whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13553compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13554old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13555old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13556archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13557archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13558module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13559module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13560with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13561allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13562no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13563hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13564hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13565hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13566hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13567hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13568hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13569hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13570hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13571inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13572link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13573fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13574always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13575export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13576exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13577include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13578prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13579file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13580variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13581need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13582need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13583version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13584runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13585shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13586shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13587libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13588library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13589soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13590postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13591postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13592finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13593finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13594hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13595sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13596sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13597hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13598enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13599enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13600enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13601old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13602striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13603
13604LTCC='$LTCC'
13605LTCFLAGS='$LTCFLAGS'
13606compiler='$compiler_DEFAULT'
13607
13608# Quote evaled strings.
13609for var in SED \
13610GREP \
13611EGREP \
13612FGREP \
13613LD \
13614NM \
13615LN_S \
13616lt_SP2NL \
13617lt_NL2SP \
13618reload_flag \
13619deplibs_check_method \
13620file_magic_cmd \
13621AR \
13622AR_FLAGS \
13623STRIP \
13624RANLIB \
13625CC \
13626CFLAGS \
13627compiler \
13628lt_cv_sys_global_symbol_pipe \
13629lt_cv_sys_global_symbol_to_cdecl \
13630lt_cv_sys_global_symbol_to_c_name_address \
13631lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13632SHELL \
13633ECHO \
13634lt_prog_compiler_no_builtin_flag \
13635lt_prog_compiler_wl \
13636lt_prog_compiler_pic \
13637lt_prog_compiler_static \
13638lt_cv_prog_compiler_c_o \
13639need_locks \
13640DSYMUTIL \
13641NMEDIT \
13642shrext_cmds \
13643export_dynamic_flag_spec \
13644whole_archive_flag_spec \
13645compiler_needs_object \
13646with_gnu_ld \
13647allow_undefined_flag \
13648no_undefined_flag \
13649hardcode_libdir_flag_spec \
13650hardcode_libdir_flag_spec_ld \
13651hardcode_libdir_separator \
13652fix_srcfile_path \
13653exclude_expsyms \
13654include_expsyms \
13655file_list_spec \
13656variables_saved_for_relink \
13657libname_spec \
13658library_names_spec \
13659soname_spec \
13660finish_eval \
13661old_striplib \
13662striplib; do
13663    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13664    *[\\\\\\\`\\"\\\$]*)
13665      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13666      ;;
13667    *)
13668      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13669      ;;
13670    esac
13671done
13672
13673# Double-quote double-evaled strings.
13674for var in reload_cmds \
13675old_postinstall_cmds \
13676old_postuninstall_cmds \
13677old_archive_cmds \
13678extract_expsyms_cmds \
13679old_archive_from_new_cmds \
13680old_archive_from_expsyms_cmds \
13681archive_cmds \
13682archive_expsym_cmds \
13683module_cmds \
13684module_expsym_cmds \
13685export_symbols_cmds \
13686prelink_cmds \
13687postinstall_cmds \
13688postuninstall_cmds \
13689finish_cmds \
13690sys_lib_search_path_spec \
13691sys_lib_dlsearch_path_spec; do
13692    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13693    *[\\\\\\\`\\"\\\$]*)
13694      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13695      ;;
13696    *)
13697      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13698      ;;
13699    esac
13700done
13701
13702# Fix-up fallback echo if it was mangled by the above quoting rules.
13703case \$lt_ECHO in
13704*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13705  ;;
13706esac
13707
13708ac_aux_dir='$ac_aux_dir'
13709xsi_shell='$xsi_shell'
13710lt_shell_append='$lt_shell_append'
13711
13712# See if we are running on zsh, and set the options which allow our
13713# commands through without removal of \ escapes INIT.
13714if test -n "\${ZSH_VERSION+set}" ; then
13715   setopt NO_GLOB_SUBST
13716fi
13717
13718
13719    PACKAGE='$PACKAGE'
13720    VERSION='$VERSION'
13721    TIMESTAMP='$TIMESTAMP'
13722    RM='$RM'
13723    ofile='$ofile'
13724
13725
13726
13727
13728_ACEOF
13729
13730cat >>$CONFIG_STATUS <<\_ACEOF
13731
13732# Handling of arguments.
13733for ac_config_target in $ac_config_targets
13734do
13735  case $ac_config_target in
13736    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13737    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13738    "gsl-config") CONFIG_FILES="$CONFIG_FILES gsl-config" ;;
13739    "gsl.pc") CONFIG_FILES="$CONFIG_FILES gsl.pc" ;;
13740    "gsl_version.h") CONFIG_FILES="$CONFIG_FILES gsl_version.h" ;;
13741    "gsl.spec") CONFIG_FILES="$CONFIG_FILES gsl.spec" ;;
13742    "gsl/Makefile") CONFIG_FILES="$CONFIG_FILES gsl/Makefile" ;;
13743    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
13744    "err/Makefile") CONFIG_FILES="$CONFIG_FILES err/Makefile" ;;
13745    "sys/Makefile") CONFIG_FILES="$CONFIG_FILES sys/Makefile" ;;
13746    "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
13747    "const/Makefile") CONFIG_FILES="$CONFIG_FILES const/Makefile" ;;
13748    "min/Makefile") CONFIG_FILES="$CONFIG_FILES min/Makefile" ;;
13749    "multimin/Makefile") CONFIG_FILES="$CONFIG_FILES multimin/Makefile" ;;
13750    "ieee-utils/Makefile") CONFIG_FILES="$CONFIG_FILES ieee-utils/Makefile" ;;
13751    "fft/Makefile") CONFIG_FILES="$CONFIG_FILES fft/Makefile" ;;
13752    "specfunc/Makefile") CONFIG_FILES="$CONFIG_FILES specfunc/Makefile" ;;
13753    "dht/Makefile") CONFIG_FILES="$CONFIG_FILES dht/Makefile" ;;
13754    "fit/Makefile") CONFIG_FILES="$CONFIG_FILES fit/Makefile" ;;
13755    "multifit/Makefile") CONFIG_FILES="$CONFIG_FILES multifit/Makefile" ;;
13756    "bspline/Makefile") CONFIG_FILES="$CONFIG_FILES bspline/Makefile" ;;
13757    "statistics/Makefile") CONFIG_FILES="$CONFIG_FILES statistics/Makefile" ;;
13758    "sum/Makefile") CONFIG_FILES="$CONFIG_FILES sum/Makefile" ;;
13759    "roots/Makefile") CONFIG_FILES="$CONFIG_FILES roots/Makefile" ;;
13760    "multiroots/Makefile") CONFIG_FILES="$CONFIG_FILES multiroots/Makefile" ;;
13761    "ntuple/Makefile") CONFIG_FILES="$CONFIG_FILES ntuple/Makefile" ;;
13762    "poly/Makefile") CONFIG_FILES="$CONFIG_FILES poly/Makefile" ;;
13763    "qrng/Makefile") CONFIG_FILES="$CONFIG_FILES qrng/Makefile" ;;
13764    "rng/Makefile") CONFIG_FILES="$CONFIG_FILES rng/Makefile" ;;
13765    "randist/Makefile") CONFIG_FILES="$CONFIG_FILES randist/Makefile" ;;
13766    "siman/Makefile") CONFIG_FILES="$CONFIG_FILES siman/Makefile" ;;
13767    "integration/Makefile") CONFIG_FILES="$CONFIG_FILES integration/Makefile" ;;
13768    "interpolation/Makefile") CONFIG_FILES="$CONFIG_FILES interpolation/Makefile" ;;
13769    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13770    "block/Makefile") CONFIG_FILES="$CONFIG_FILES block/Makefile" ;;
13771    "vector/Makefile") CONFIG_FILES="$CONFIG_FILES vector/Makefile" ;;
13772    "matrix/Makefile") CONFIG_FILES="$CONFIG_FILES matrix/Makefile" ;;
13773    "histogram/Makefile") CONFIG_FILES="$CONFIG_FILES histogram/Makefile" ;;
13774    "monte/Makefile") CONFIG_FILES="$CONFIG_FILES monte/Makefile" ;;
13775    "ode-initval/Makefile") CONFIG_FILES="$CONFIG_FILES ode-initval/Makefile" ;;
13776    "cblas/Makefile") CONFIG_FILES="$CONFIG_FILES cblas/Makefile" ;;
13777    "blas/Makefile") CONFIG_FILES="$CONFIG_FILES blas/Makefile" ;;
13778    "linalg/Makefile") CONFIG_FILES="$CONFIG_FILES linalg/Makefile" ;;
13779    "eigen/Makefile") CONFIG_FILES="$CONFIG_FILES eigen/Makefile" ;;
13780    "permutation/Makefile") CONFIG_FILES="$CONFIG_FILES permutation/Makefile" ;;
13781    "combination/Makefile") CONFIG_FILES="$CONFIG_FILES combination/Makefile" ;;
13782    "sort/Makefile") CONFIG_FILES="$CONFIG_FILES sort/Makefile" ;;
13783    "complex/Makefile") CONFIG_FILES="$CONFIG_FILES complex/Makefile" ;;
13784    "diff/Makefile") CONFIG_FILES="$CONFIG_FILES diff/Makefile" ;;
13785    "deriv/Makefile") CONFIG_FILES="$CONFIG_FILES deriv/Makefile" ;;
13786    "cheb/Makefile") CONFIG_FILES="$CONFIG_FILES cheb/Makefile" ;;
13787    "cdf/Makefile") CONFIG_FILES="$CONFIG_FILES cdf/Makefile" ;;
13788    "wavelet/Makefile") CONFIG_FILES="$CONFIG_FILES wavelet/Makefile" ;;
13789    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13790
13791  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13792echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13793   { (exit 1); exit 1; }; };;
13794  esac
13795done
13796
13797
13798# If the user did not use the arguments to specify the items to instantiate,
13799# then the envvar interface is used.  Set only those that are not.
13800# We use the long form for the default assignment because of an extremely
13801# bizarre bug on SunOS 4.1.3.
13802if $ac_need_defaults; then
13803  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13804  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13805  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13806fi
13807
13808# Have a temporary directory for convenience.  Make it in the build tree
13809# simply because there is no reason against having it here, and in addition,
13810# creating and moving files from /tmp can sometimes cause problems.
13811# Hook for its removal unless debugging.
13812# Note that there is a small window in which the directory will not be cleaned:
13813# after its creation but before its name has been assigned to `$tmp'.
13814$debug ||
13815{
13816  tmp=
13817  trap 'exit_status=$?
13818  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13819' 0
13820  trap '{ (exit 1); exit 1; }' 1 2 13 15
13821}
13822# Create a (secure) tmp directory for tmp files.
13823
13824{
13825  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13826  test -n "$tmp" && test -d "$tmp"
13827}  ||
13828{
13829  tmp=./conf$$-$RANDOM
13830  (umask 077 && mkdir "$tmp")
13831} ||
13832{
13833   echo "$me: cannot create a temporary directory in ." >&2
13834   { (exit 1); exit 1; }
13835}
13836
13837#
13838# Set up the sed scripts for CONFIG_FILES section.
13839#
13840
13841# No need to generate the scripts if there are no CONFIG_FILES.
13842# This happens for instance when ./config.status config.h
13843if test -n "$CONFIG_FILES"; then
13844
13845_ACEOF
13846
13847
13848
13849ac_delim='%!_!# '
13850for ac_last_try in false false false false false :; do
13851  cat >conf$$subs.sed <<_ACEOF
13852SHELL!$SHELL$ac_delim
13853PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
13854PACKAGE_NAME!$PACKAGE_NAME$ac_delim
13855PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
13856PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
13857PACKAGE_STRING!$PACKAGE_STRING$ac_delim
13858PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
13859exec_prefix!$exec_prefix$ac_delim
13860prefix!$prefix$ac_delim
13861program_transform_name!$program_transform_name$ac_delim
13862bindir!$bindir$ac_delim
13863sbindir!$sbindir$ac_delim
13864libexecdir!$libexecdir$ac_delim
13865datarootdir!$datarootdir$ac_delim
13866datadir!$datadir$ac_delim
13867sysconfdir!$sysconfdir$ac_delim
13868sharedstatedir!$sharedstatedir$ac_delim
13869localstatedir!$localstatedir$ac_delim
13870includedir!$includedir$ac_delim
13871oldincludedir!$oldincludedir$ac_delim
13872docdir!$docdir$ac_delim
13873infodir!$infodir$ac_delim
13874htmldir!$htmldir$ac_delim
13875dvidir!$dvidir$ac_delim
13876pdfdir!$pdfdir$ac_delim
13877psdir!$psdir$ac_delim
13878libdir!$libdir$ac_delim
13879localedir!$localedir$ac_delim
13880mandir!$mandir$ac_delim
13881DEFS!$DEFS$ac_delim
13882ECHO_C!$ECHO_C$ac_delim
13883ECHO_N!$ECHO_N$ac_delim
13884ECHO_T!$ECHO_T$ac_delim
13885LIBS!$LIBS$ac_delim
13886build_alias!$build_alias$ac_delim
13887host_alias!$host_alias$ac_delim
13888target_alias!$target_alias$ac_delim
13889INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
13890INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
13891INSTALL_DATA!$INSTALL_DATA$ac_delim
13892am__isrc!$am__isrc$ac_delim
13893CYGPATH_W!$CYGPATH_W$ac_delim
13894PACKAGE!$PACKAGE$ac_delim
13895VERSION!$VERSION$ac_delim
13896ACLOCAL!$ACLOCAL$ac_delim
13897AUTOCONF!$AUTOCONF$ac_delim
13898AUTOMAKE!$AUTOMAKE$ac_delim
13899AUTOHEADER!$AUTOHEADER$ac_delim
13900MAKEINFO!$MAKEINFO$ac_delim
13901install_sh!$install_sh$ac_delim
13902STRIP!$STRIP$ac_delim
13903INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
13904mkdir_p!$mkdir_p$ac_delim
13905AWK!$AWK$ac_delim
13906SET_MAKE!$SET_MAKE$ac_delim
13907am__leading_dot!$am__leading_dot$ac_delim
13908AMTAR!$AMTAR$ac_delim
13909am__tar!$am__tar$ac_delim
13910am__untar!$am__untar$ac_delim
13911MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
13912MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
13913MAINT!$MAINT$ac_delim
13914GSL_LT_VERSION!$GSL_LT_VERSION$ac_delim
13915GSL_LT_CBLAS_VERSION!$GSL_LT_CBLAS_VERSION$ac_delim
13916build!$build$ac_delim
13917build_cpu!$build_cpu$ac_delim
13918build_vendor!$build_vendor$ac_delim
13919build_os!$build_os$ac_delim
13920host!$host$ac_delim
13921host_cpu!$host_cpu$ac_delim
13922host_vendor!$host_vendor$ac_delim
13923host_os!$host_os$ac_delim
13924CC!$CC$ac_delim
13925CFLAGS!$CFLAGS$ac_delim
13926LDFLAGS!$LDFLAGS$ac_delim
13927CPPFLAGS!$CPPFLAGS$ac_delim
13928ac_ct_CC!$ac_ct_CC$ac_delim
13929EXEEXT!$EXEEXT$ac_delim
13930OBJEXT!$OBJEXT$ac_delim
13931CPP!$CPP$ac_delim
13932LN_S!$LN_S$ac_delim
13933LIBTOOL!$LIBTOOL$ac_delim
13934SED!$SED$ac_delim
13935GREP!$GREP$ac_delim
13936EGREP!$EGREP$ac_delim
13937FGREP!$FGREP$ac_delim
13938LD!$LD$ac_delim
13939DUMPBIN!$DUMPBIN$ac_delim
13940ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
13941NM!$NM$ac_delim
13942AR!$AR$ac_delim
13943RANLIB!$RANLIB$ac_delim
13944lt_ECHO!$lt_ECHO$ac_delim
13945DSYMUTIL!$DSYMUTIL$ac_delim
13946NMEDIT!$NMEDIT$ac_delim
13947GSL_CFLAGS!$GSL_CFLAGS$ac_delim
13948GSL_LIBS!$GSL_LIBS$ac_delim
13949_ACEOF
13950
13951  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
13952    break
13953  elif $ac_last_try; then
13954    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13955echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13956   { (exit 1); exit 1; }; }
13957  else
13958    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13959  fi
13960done
13961
13962ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13963if test -n "$ac_eof"; then
13964  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13965  ac_eof=`expr $ac_eof + 1`
13966fi
13967
13968cat >>$CONFIG_STATUS <<_ACEOF
13969cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
13970/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13971_ACEOF
13972sed '
13973s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13974s/^/s,@/; s/!/@,|#_!!_#|/
13975:n
13976t n
13977s/'"$ac_delim"'$/,g/; t
13978s/$/\\/; p
13979N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13980' >>$CONFIG_STATUS <conf$$subs.sed
13981rm -f conf$$subs.sed
13982cat >>$CONFIG_STATUS <<_ACEOF
13983CEOF$ac_eof
13984_ACEOF
13985
13986
13987ac_delim='%!_!# '
13988for ac_last_try in false false false false false :; do
13989  cat >conf$$subs.sed <<_ACEOF
13990MINGW32_HOST_TRUE!$MINGW32_HOST_TRUE$ac_delim
13991MINGW32_HOST_FALSE!$MINGW32_HOST_FALSE$ac_delim
13992LIBOBJS!$LIBOBJS$ac_delim
13993HAVE_GNUSPARC_IEEE_INTERFACE!$HAVE_GNUSPARC_IEEE_INTERFACE$ac_delim
13994HAVE_GNUM68K_IEEE_INTERFACE!$HAVE_GNUM68K_IEEE_INTERFACE$ac_delim
13995HAVE_GNUPPC_IEEE_INTERFACE!$HAVE_GNUPPC_IEEE_INTERFACE$ac_delim
13996HAVE_GNUX86_IEEE_INTERFACE!$HAVE_GNUX86_IEEE_INTERFACE$ac_delim
13997HAVE_SUNOS4_IEEE_INTERFACE!$HAVE_SUNOS4_IEEE_INTERFACE$ac_delim
13998HAVE_SOLARIS_IEEE_INTERFACE!$HAVE_SOLARIS_IEEE_INTERFACE$ac_delim
13999HAVE_HPUX11_IEEE_INTERFACE!$HAVE_HPUX11_IEEE_INTERFACE$ac_delim
14000HAVE_HPUX_IEEE_INTERFACE!$HAVE_HPUX_IEEE_INTERFACE$ac_delim
14001HAVE_TRU64_IEEE_INTERFACE!$HAVE_TRU64_IEEE_INTERFACE$ac_delim
14002HAVE_IRIX_IEEE_INTERFACE!$HAVE_IRIX_IEEE_INTERFACE$ac_delim
14003HAVE_AIX_IEEE_INTERFACE!$HAVE_AIX_IEEE_INTERFACE$ac_delim
14004HAVE_FREEBSD_IEEE_INTERFACE!$HAVE_FREEBSD_IEEE_INTERFACE$ac_delim
14005HAVE_OS2EMX_IEEE_INTERFACE!$HAVE_OS2EMX_IEEE_INTERFACE$ac_delim
14006HAVE_NETBSD_IEEE_INTERFACE!$HAVE_NETBSD_IEEE_INTERFACE$ac_delim
14007HAVE_OPENBSD_IEEE_INTERFACE!$HAVE_OPENBSD_IEEE_INTERFACE$ac_delim
14008HAVE_DARWIN_IEEE_INTERFACE!$HAVE_DARWIN_IEEE_INTERFACE$ac_delim
14009HAVE_DARWIN86_IEEE_INTERFACE!$HAVE_DARWIN86_IEEE_INTERFACE$ac_delim
14010LTLIBOBJS!$LTLIBOBJS$ac_delim
14011_ACEOF
14012
14013  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 21; then
14014    break
14015  elif $ac_last_try; then
14016    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14017echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14018   { (exit 1); exit 1; }; }
14019  else
14020    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14021  fi
14022done
14023
14024ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14025if test -n "$ac_eof"; then
14026  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14027  ac_eof=`expr $ac_eof + 1`
14028fi
14029
14030cat >>$CONFIG_STATUS <<_ACEOF
14031cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
14032/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
14033_ACEOF
14034sed '
14035s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14036s/^/s,@/; s/!/@,|#_!!_#|/
14037:n
14038t n
14039s/'"$ac_delim"'$/,g/; t
14040s/$/\\/; p
14041N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14042' >>$CONFIG_STATUS <conf$$subs.sed
14043rm -f conf$$subs.sed
14044cat >>$CONFIG_STATUS <<_ACEOF
14045:end
14046s/|#_!!_#|//g
14047CEOF$ac_eof
14048_ACEOF
14049
14050
14051# VPATH may cause trouble with some makes, so we remove $(srcdir),
14052# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14053# trailing colons and then remove the whole line if VPATH becomes empty
14054# (actually we leave an empty line to preserve line numbers).
14055if test "x$srcdir" = x.; then
14056  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
14057s/:*\$(srcdir):*/:/
14058s/:*\${srcdir}:*/:/
14059s/:*@srcdir@:*/:/
14060s/^\([^=]*=[	 ]*\):*/\1/
14061s/:*$//
14062s/^[^=]*=[	 ]*$//
14063}'
14064fi
14065
14066cat >>$CONFIG_STATUS <<\_ACEOF
14067fi # test -n "$CONFIG_FILES"
14068
14069
14070for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
14071do
14072  case $ac_tag in
14073  :[FHLC]) ac_mode=$ac_tag; continue;;
14074  esac
14075  case $ac_mode$ac_tag in
14076  :[FHL]*:*);;
14077  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14078echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14079   { (exit 1); exit 1; }; };;
14080  :[FH]-) ac_tag=-:-;;
14081  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14082  esac
14083  ac_save_IFS=$IFS
14084  IFS=:
14085  set x $ac_tag
14086  IFS=$ac_save_IFS
14087  shift
14088  ac_file=$1
14089  shift
14090
14091  case $ac_mode in
14092  :L) ac_source=$1;;
14093  :[FH])
14094    ac_file_inputs=
14095    for ac_f
14096    do
14097      case $ac_f in
14098      -) ac_f="$tmp/stdin";;
14099      *) # Look for the file first in the build tree, then in the source tree
14100	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14101	 # because $ac_f cannot contain `:'.
14102	 test -f "$ac_f" ||
14103	   case $ac_f in
14104	   [\\/$]*) false;;
14105	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14106	   esac ||
14107	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14108echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14109   { (exit 1); exit 1; }; };;
14110      esac
14111      ac_file_inputs="$ac_file_inputs $ac_f"
14112    done
14113
14114    # Let's still pretend it is `configure' which instantiates (i.e., don't
14115    # use $as_me), people would be surprised to read:
14116    #    /* config.h.  Generated by config.status.  */
14117    configure_input="Generated from "`IFS=:
14118	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
14119    if test x"$ac_file" != x-; then
14120      configure_input="$ac_file.  $configure_input"
14121      { echo "$as_me:$LINENO: creating $ac_file" >&5
14122echo "$as_me: creating $ac_file" >&6;}
14123    fi
14124
14125    case $ac_tag in
14126    *:-:* | *:-) cat >"$tmp/stdin";;
14127    esac
14128    ;;
14129  esac
14130
14131  ac_dir=`$as_dirname -- "$ac_file" ||
14132$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14133	 X"$ac_file" : 'X\(//\)[^/]' \| \
14134	 X"$ac_file" : 'X\(//\)$' \| \
14135	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14136echo X"$ac_file" |
14137    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14138	    s//\1/
14139	    q
14140	  }
14141	  /^X\(\/\/\)[^/].*/{
14142	    s//\1/
14143	    q
14144	  }
14145	  /^X\(\/\/\)$/{
14146	    s//\1/
14147	    q
14148	  }
14149	  /^X\(\/\).*/{
14150	    s//\1/
14151	    q
14152	  }
14153	  s/.*/./; q'`
14154  { as_dir="$ac_dir"
14155  case $as_dir in #(
14156  -*) as_dir=./$as_dir;;
14157  esac
14158  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14159    as_dirs=
14160    while :; do
14161      case $as_dir in #(
14162      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14163      *) as_qdir=$as_dir;;
14164      esac
14165      as_dirs="'$as_qdir' $as_dirs"
14166      as_dir=`$as_dirname -- "$as_dir" ||
14167$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14168	 X"$as_dir" : 'X\(//\)[^/]' \| \
14169	 X"$as_dir" : 'X\(//\)$' \| \
14170	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14171echo X"$as_dir" |
14172    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14173	    s//\1/
14174	    q
14175	  }
14176	  /^X\(\/\/\)[^/].*/{
14177	    s//\1/
14178	    q
14179	  }
14180	  /^X\(\/\/\)$/{
14181	    s//\1/
14182	    q
14183	  }
14184	  /^X\(\/\).*/{
14185	    s//\1/
14186	    q
14187	  }
14188	  s/.*/./; q'`
14189      test -d "$as_dir" && break
14190    done
14191    test -z "$as_dirs" || eval "mkdir $as_dirs"
14192  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14193echo "$as_me: error: cannot create directory $as_dir" >&2;}
14194   { (exit 1); exit 1; }; }; }
14195  ac_builddir=.
14196
14197case "$ac_dir" in
14198.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14199*)
14200  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14201  # A ".." for each directory in $ac_dir_suffix.
14202  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
14203  case $ac_top_builddir_sub in
14204  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14205  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14206  esac ;;
14207esac
14208ac_abs_top_builddir=$ac_pwd
14209ac_abs_builddir=$ac_pwd$ac_dir_suffix
14210# for backward compatibility:
14211ac_top_builddir=$ac_top_build_prefix
14212
14213case $srcdir in
14214  .)  # We are building in place.
14215    ac_srcdir=.
14216    ac_top_srcdir=$ac_top_builddir_sub
14217    ac_abs_top_srcdir=$ac_pwd ;;
14218  [\\/]* | ?:[\\/]* )  # Absolute name.
14219    ac_srcdir=$srcdir$ac_dir_suffix;
14220    ac_top_srcdir=$srcdir
14221    ac_abs_top_srcdir=$srcdir ;;
14222  *) # Relative name.
14223    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14224    ac_top_srcdir=$ac_top_build_prefix$srcdir
14225    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14226esac
14227ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14228
14229
14230  case $ac_mode in
14231  :F)
14232  #
14233  # CONFIG_FILE
14234  #
14235
14236  case $INSTALL in
14237  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14238  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14239  esac
14240  ac_MKDIR_P=$MKDIR_P
14241  case $MKDIR_P in
14242  [\\/$]* | ?:[\\/]* ) ;;
14243  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14244  esac
14245_ACEOF
14246
14247cat >>$CONFIG_STATUS <<\_ACEOF
14248# If the template does not know about datarootdir, expand it.
14249# FIXME: This hack should be removed a few years after 2.60.
14250ac_datarootdir_hack=; ac_datarootdir_seen=
14251
14252case `sed -n '/datarootdir/ {
14253  p
14254  q
14255}
14256/@datadir@/p
14257/@docdir@/p
14258/@infodir@/p
14259/@localedir@/p
14260/@mandir@/p
14261' $ac_file_inputs` in
14262*datarootdir*) ac_datarootdir_seen=yes;;
14263*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14264  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14265echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14266_ACEOF
14267cat >>$CONFIG_STATUS <<_ACEOF
14268  ac_datarootdir_hack='
14269  s&@datadir@&$datadir&g
14270  s&@docdir@&$docdir&g
14271  s&@infodir@&$infodir&g
14272  s&@localedir@&$localedir&g
14273  s&@mandir@&$mandir&g
14274    s&\\\${datarootdir}&$datarootdir&g' ;;
14275esac
14276_ACEOF
14277
14278# Neutralize VPATH when `$srcdir' = `.'.
14279# Shell code in configure.ac might set extrasub.
14280# FIXME: do we really want to maintain this feature?
14281cat >>$CONFIG_STATUS <<_ACEOF
14282  sed "$ac_vpsub
14283$extrasub
14284_ACEOF
14285cat >>$CONFIG_STATUS <<\_ACEOF
14286:t
14287/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14288s&@configure_input@&$configure_input&;t t
14289s&@top_builddir@&$ac_top_builddir_sub&;t t
14290s&@srcdir@&$ac_srcdir&;t t
14291s&@abs_srcdir@&$ac_abs_srcdir&;t t
14292s&@top_srcdir@&$ac_top_srcdir&;t t
14293s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14294s&@builddir@&$ac_builddir&;t t
14295s&@abs_builddir@&$ac_abs_builddir&;t t
14296s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14297s&@INSTALL@&$ac_INSTALL&;t t
14298s&@MKDIR_P@&$ac_MKDIR_P&;t t
14299$ac_datarootdir_hack
14300" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
14301
14302test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14303  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14304  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14305  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14306which seems to be undefined.  Please make sure it is defined." >&5
14307echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14308which seems to be undefined.  Please make sure it is defined." >&2;}
14309
14310  rm -f "$tmp/stdin"
14311  case $ac_file in
14312  -) cat "$tmp/out"; rm -f "$tmp/out";;
14313  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
14314  esac
14315 ;;
14316  :H)
14317  #
14318  # CONFIG_HEADER
14319  #
14320_ACEOF
14321
14322# Transform confdefs.h into a sed script `conftest.defines', that
14323# substitutes the proper values into config.h.in to produce config.h.
14324rm -f conftest.defines conftest.tail
14325# First, append a space to every undef/define line, to ease matching.
14326echo 's/$/ /' >conftest.defines
14327# Then, protect against being on the right side of a sed subst, or in
14328# an unquoted here document, in config.status.  If some macros were
14329# called several times there might be several #defines for the same
14330# symbol, which is useless.  But do not sort them, since the last
14331# AC_DEFINE must be honored.
14332ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14333# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
14334# NAME is the cpp macro being defined, VALUE is the value it is being given.
14335# PARAMS is the parameter list in the macro definition--in most cases, it's
14336# just an empty string.
14337ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
14338ac_dB='\\)[	 (].*,\\1define\\2'
14339ac_dC=' '
14340ac_dD=' ,'
14341
14342uniq confdefs.h |
14343  sed -n '
14344	t rset
14345	:rset
14346	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
14347	t ok
14348	d
14349	:ok
14350	s/[\\&,]/\\&/g
14351	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
14352	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
14353  ' >>conftest.defines
14354
14355# Remove the space that was appended to ease matching.
14356# Then replace #undef with comments.  This is necessary, for
14357# example, in the case of _POSIX_SOURCE, which is predefined and required
14358# on some systems where configure will not decide to define it.
14359# (The regexp can be short, since the line contains either #define or #undef.)
14360echo 's/ $//
14361s,^[	 #]*u.*,/* & */,' >>conftest.defines
14362
14363# Break up conftest.defines:
14364ac_max_sed_lines=50
14365
14366# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
14367# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
14368# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
14369# et cetera.
14370ac_in='$ac_file_inputs'
14371ac_out='"$tmp/out1"'
14372ac_nxt='"$tmp/out2"'
14373
14374while :
14375do
14376  # Write a here document:
14377    cat >>$CONFIG_STATUS <<_ACEOF
14378    # First, check the format of the line:
14379    cat >"\$tmp/defines.sed" <<\\CEOF
14380/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
14381/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
14382b
14383:def
14384_ACEOF
14385  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
14386  echo 'CEOF
14387    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
14388  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
14389  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
14390  grep . conftest.tail >/dev/null || break
14391  rm -f conftest.defines
14392  mv conftest.tail conftest.defines
14393done
14394rm -f conftest.defines conftest.tail
14395
14396echo "ac_result=$ac_in" >>$CONFIG_STATUS
14397cat >>$CONFIG_STATUS <<\_ACEOF
14398  if test x"$ac_file" != x-; then
14399    echo "/* $configure_input  */" >"$tmp/config.h"
14400    cat "$ac_result" >>"$tmp/config.h"
14401    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
14402      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14403echo "$as_me: $ac_file is unchanged" >&6;}
14404    else
14405      rm -f $ac_file
14406      mv "$tmp/config.h" $ac_file
14407    fi
14408  else
14409    echo "/* $configure_input  */"
14410    cat "$ac_result"
14411  fi
14412  rm -f "$tmp/out12"
14413# Compute $ac_file's index in $config_headers.
14414_am_arg=$ac_file
14415_am_stamp_count=1
14416for _am_header in $config_headers :; do
14417  case $_am_header in
14418    $_am_arg | $_am_arg:* )
14419      break ;;
14420    * )
14421      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14422  esac
14423done
14424echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14425$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14426	 X"$_am_arg" : 'X\(//\)[^/]' \| \
14427	 X"$_am_arg" : 'X\(//\)$' \| \
14428	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14429echo X"$_am_arg" |
14430    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14431	    s//\1/
14432	    q
14433	  }
14434	  /^X\(\/\/\)[^/].*/{
14435	    s//\1/
14436	    q
14437	  }
14438	  /^X\(\/\/\)$/{
14439	    s//\1/
14440	    q
14441	  }
14442	  /^X\(\/\).*/{
14443	    s//\1/
14444	    q
14445	  }
14446	  s/.*/./; q'`/stamp-h$_am_stamp_count
14447 ;;
14448
14449  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
14450echo "$as_me: executing $ac_file commands" >&6;}
14451 ;;
14452  esac
14453
14454
14455  case $ac_file$ac_mode in
14456    "libtool":C)
14457
14458    # See if we are running on zsh, and set the options which allow our
14459    # commands through without removal of \ escapes.
14460    if test -n "${ZSH_VERSION+set}" ; then
14461      setopt NO_GLOB_SUBST
14462    fi
14463
14464    cfgfile="${ofile}T"
14465    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14466    $RM "$cfgfile"
14467
14468    cat <<_LT_EOF >> "$cfgfile"
14469#! $SHELL
14470
14471# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14472# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
14473# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14474# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14475#
14476#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14477#                 2006, 2007, 2008 Free Software Foundation, Inc.
14478#   Written by Gordon Matzigkeit, 1996
14479#
14480#   This file is part of GNU Libtool.
14481#
14482# GNU Libtool is free software; you can redistribute it and/or
14483# modify it under the terms of the GNU General Public License as
14484# published by the Free Software Foundation; either version 2 of
14485# the License, or (at your option) any later version.
14486#
14487# As a special exception to the GNU General Public License,
14488# if you distribute this file as part of a program or library that
14489# is built using GNU Libtool, you may include this file under the
14490# same distribution terms that you use for the rest of that program.
14491#
14492# GNU Libtool is distributed in the hope that it will be useful,
14493# but WITHOUT ANY WARRANTY; without even the implied warranty of
14494# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14495# GNU General Public License for more details.
14496#
14497# You should have received a copy of the GNU General Public License
14498# along with GNU Libtool; see the file COPYING.  If not, a copy
14499# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14500# obtained by writing to the Free Software Foundation, Inc.,
14501# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14502
14503
14504# The names of the tagged configurations supported by this script.
14505available_tags=""
14506
14507# ### BEGIN LIBTOOL CONFIG
14508
14509# Which release of libtool.m4 was used?
14510macro_version=$macro_version
14511macro_revision=$macro_revision
14512
14513# Whether or not to build shared libraries.
14514build_libtool_libs=$enable_shared
14515
14516# Whether or not to build static libraries.
14517build_old_libs=$enable_static
14518
14519# What type of objects to build.
14520pic_mode=$pic_mode
14521
14522# Whether or not to optimize for fast installation.
14523fast_install=$enable_fast_install
14524
14525# The host system.
14526host_alias=$host_alias
14527host=$host
14528host_os=$host_os
14529
14530# The build system.
14531build_alias=$build_alias
14532build=$build
14533build_os=$build_os
14534
14535# A sed program that does not truncate output.
14536SED=$lt_SED
14537
14538# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14539Xsed="\$SED -e 1s/^X//"
14540
14541# A grep program that handles long lines.
14542GREP=$lt_GREP
14543
14544# An ERE matcher.
14545EGREP=$lt_EGREP
14546
14547# A literal string matcher.
14548FGREP=$lt_FGREP
14549
14550# A BSD- or MS-compatible name lister.
14551NM=$lt_NM
14552
14553# Whether we need soft or hard links.
14554LN_S=$lt_LN_S
14555
14556# What is the maximum length of a command?
14557max_cmd_len=$max_cmd_len
14558
14559# Object file suffix (normally "o").
14560objext=$ac_objext
14561
14562# Executable file suffix (normally "").
14563exeext=$exeext
14564
14565# whether the shell understands "unset".
14566lt_unset=$lt_unset
14567
14568# turn spaces into newlines.
14569SP2NL=$lt_lt_SP2NL
14570
14571# turn newlines into spaces.
14572NL2SP=$lt_lt_NL2SP
14573
14574# How to create reloadable object files.
14575reload_flag=$lt_reload_flag
14576reload_cmds=$lt_reload_cmds
14577
14578# Method to check whether dependent libraries are shared objects.
14579deplibs_check_method=$lt_deplibs_check_method
14580
14581# Command to use when deplibs_check_method == "file_magic".
14582file_magic_cmd=$lt_file_magic_cmd
14583
14584# The archiver.
14585AR=$lt_AR
14586AR_FLAGS=$lt_AR_FLAGS
14587
14588# A symbol stripping program.
14589STRIP=$lt_STRIP
14590
14591# Commands used to install an old-style archive.
14592RANLIB=$lt_RANLIB
14593old_postinstall_cmds=$lt_old_postinstall_cmds
14594old_postuninstall_cmds=$lt_old_postuninstall_cmds
14595
14596# A C compiler.
14597LTCC=$lt_CC
14598
14599# LTCC compiler flags.
14600LTCFLAGS=$lt_CFLAGS
14601
14602# Take the output of nm and produce a listing of raw symbols and C names.
14603global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14604
14605# Transform the output of nm in a proper C declaration.
14606global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14607
14608# Transform the output of nm in a C name address pair.
14609global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14610
14611# Transform the output of nm in a C name address pair when lib prefix is needed.
14612global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14613
14614# The name of the directory that contains temporary libtool files.
14615objdir=$objdir
14616
14617# Shell to use when invoking shell scripts.
14618SHELL=$lt_SHELL
14619
14620# An echo program that does not interpret backslashes.
14621ECHO=$lt_ECHO
14622
14623# Used to examine libraries when file_magic_cmd begins with "file".
14624MAGIC_CMD=$MAGIC_CMD
14625
14626# Must we lock files when doing compilation?
14627need_locks=$lt_need_locks
14628
14629# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14630DSYMUTIL=$lt_DSYMUTIL
14631
14632# Tool to change global to local symbols on Mac OS X.
14633NMEDIT=$lt_NMEDIT
14634
14635# Old archive suffix (normally "a").
14636libext=$libext
14637
14638# Shared library suffix (normally ".so").
14639shrext_cmds=$lt_shrext_cmds
14640
14641# The commands to extract the exported symbol list from a shared archive.
14642extract_expsyms_cmds=$lt_extract_expsyms_cmds
14643
14644# Variables whose values should be saved in libtool wrapper scripts and
14645# restored at link time.
14646variables_saved_for_relink=$lt_variables_saved_for_relink
14647
14648# Do we need the "lib" prefix for modules?
14649need_lib_prefix=$need_lib_prefix
14650
14651# Do we need a version for libraries?
14652need_version=$need_version
14653
14654# Library versioning type.
14655version_type=$version_type
14656
14657# Shared library runtime path variable.
14658runpath_var=$runpath_var
14659
14660# Shared library path variable.
14661shlibpath_var=$shlibpath_var
14662
14663# Is shlibpath searched before the hard-coded library search path?
14664shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14665
14666# Format of library name prefix.
14667libname_spec=$lt_libname_spec
14668
14669# List of archive names.  First name is the real one, the rest are links.
14670# The last name is the one that the linker finds with -lNAME
14671library_names_spec=$lt_library_names_spec
14672
14673# The coded name of the library, if different from the real name.
14674soname_spec=$lt_soname_spec
14675
14676# Command to use after installation of a shared archive.
14677postinstall_cmds=$lt_postinstall_cmds
14678
14679# Command to use after uninstallation of a shared archive.
14680postuninstall_cmds=$lt_postuninstall_cmds
14681
14682# Commands used to finish a libtool library installation in a directory.
14683finish_cmds=$lt_finish_cmds
14684
14685# As "finish_cmds", except a single script fragment to be evaled but
14686# not shown.
14687finish_eval=$lt_finish_eval
14688
14689# Whether we should hardcode library paths into libraries.
14690hardcode_into_libs=$hardcode_into_libs
14691
14692# Compile-time system search path for libraries.
14693sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14694
14695# Run-time system search path for libraries.
14696sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14697
14698# Whether dlopen is supported.
14699dlopen_support=$enable_dlopen
14700
14701# Whether dlopen of programs is supported.
14702dlopen_self=$enable_dlopen_self
14703
14704# Whether dlopen of statically linked programs is supported.
14705dlopen_self_static=$enable_dlopen_self_static
14706
14707# Commands to strip libraries.
14708old_striplib=$lt_old_striplib
14709striplib=$lt_striplib
14710
14711
14712# The linker used to build libraries.
14713LD=$lt_LD
14714
14715# Commands used to build an old-style archive.
14716old_archive_cmds=$lt_old_archive_cmds
14717
14718# A language specific compiler.
14719CC=$lt_compiler
14720
14721# Is the compiler the GNU compiler?
14722with_gcc=$GCC
14723
14724# Compiler flag to turn off builtin functions.
14725no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14726
14727# How to pass a linker flag through the compiler.
14728wl=$lt_lt_prog_compiler_wl
14729
14730# Additional compiler flags for building library objects.
14731pic_flag=$lt_lt_prog_compiler_pic
14732
14733# Compiler flag to prevent dynamic linking.
14734link_static_flag=$lt_lt_prog_compiler_static
14735
14736# Does compiler simultaneously support -c and -o options?
14737compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14738
14739# Whether or not to add -lc for building shared libraries.
14740build_libtool_need_lc=$archive_cmds_need_lc
14741
14742# Whether or not to disallow shared libs when runtime libs are static.
14743allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14744
14745# Compiler flag to allow reflexive dlopens.
14746export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14747
14748# Compiler flag to generate shared objects directly from archives.
14749whole_archive_flag_spec=$lt_whole_archive_flag_spec
14750
14751# Whether the compiler copes with passing no objects directly.
14752compiler_needs_object=$lt_compiler_needs_object
14753
14754# Create an old-style archive from a shared archive.
14755old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14756
14757# Create a temporary old-style archive to link instead of a shared archive.
14758old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14759
14760# Commands used to build a shared archive.
14761archive_cmds=$lt_archive_cmds
14762archive_expsym_cmds=$lt_archive_expsym_cmds
14763
14764# Commands used to build a loadable module if different from building
14765# a shared archive.
14766module_cmds=$lt_module_cmds
14767module_expsym_cmds=$lt_module_expsym_cmds
14768
14769# Whether we are building with GNU ld or not.
14770with_gnu_ld=$lt_with_gnu_ld
14771
14772# Flag that allows shared libraries with undefined symbols to be built.
14773allow_undefined_flag=$lt_allow_undefined_flag
14774
14775# Flag that enforces no undefined symbols.
14776no_undefined_flag=$lt_no_undefined_flag
14777
14778# Flag to hardcode \$libdir into a binary during linking.
14779# This must work even if \$libdir does not exist
14780hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14781
14782# If ld is used when linking, flag to hardcode \$libdir into a binary
14783# during linking.  This must work even if \$libdir does not exist.
14784hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14785
14786# Whether we need a single "-rpath" flag with a separated argument.
14787hardcode_libdir_separator=$lt_hardcode_libdir_separator
14788
14789# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14790# DIR into the resulting binary.
14791hardcode_direct=$hardcode_direct
14792
14793# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14794# DIR into the resulting binary and the resulting library dependency is
14795# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14796# library is relocated.
14797hardcode_direct_absolute=$hardcode_direct_absolute
14798
14799# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14800# into the resulting binary.
14801hardcode_minus_L=$hardcode_minus_L
14802
14803# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14804# into the resulting binary.
14805hardcode_shlibpath_var=$hardcode_shlibpath_var
14806
14807# Set to "yes" if building a shared library automatically hardcodes DIR
14808# into the library and all subsequent libraries and executables linked
14809# against it.
14810hardcode_automatic=$hardcode_automatic
14811
14812# Set to yes if linker adds runtime paths of dependent libraries
14813# to runtime path list.
14814inherit_rpath=$inherit_rpath
14815
14816# Whether libtool must link a program against all its dependency libraries.
14817link_all_deplibs=$link_all_deplibs
14818
14819# Fix the shell variable \$srcfile for the compiler.
14820fix_srcfile_path=$lt_fix_srcfile_path
14821
14822# Set to "yes" if exported symbols are required.
14823always_export_symbols=$always_export_symbols
14824
14825# The commands to list exported symbols.
14826export_symbols_cmds=$lt_export_symbols_cmds
14827
14828# Symbols that should not be listed in the preloaded symbols.
14829exclude_expsyms=$lt_exclude_expsyms
14830
14831# Symbols that must always be exported.
14832include_expsyms=$lt_include_expsyms
14833
14834# Commands necessary for linking programs (against libraries) with templates.
14835prelink_cmds=$lt_prelink_cmds
14836
14837# Specify filename containing input files.
14838file_list_spec=$lt_file_list_spec
14839
14840# How to hardcode a shared library path into an executable.
14841hardcode_action=$hardcode_action
14842
14843# ### END LIBTOOL CONFIG
14844
14845_LT_EOF
14846
14847  case $host_os in
14848  aix3*)
14849    cat <<\_LT_EOF >> "$cfgfile"
14850# AIX sometimes has problems with the GCC collect2 program.  For some
14851# reason, if we set the COLLECT_NAMES environment variable, the problems
14852# vanish in a puff of smoke.
14853if test "X${COLLECT_NAMES+set}" != Xset; then
14854  COLLECT_NAMES=
14855  export COLLECT_NAMES
14856fi
14857_LT_EOF
14858    ;;
14859  esac
14860
14861
14862ltmain="$ac_aux_dir/ltmain.sh"
14863
14864
14865  # We use sed instead of cat because bash on DJGPP gets confused if
14866  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14867  # text mode, it properly converts lines to CR/LF.  This bash problem
14868  # is reportedly fixed, but why not run on old versions too?
14869  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14870    || (rm -f "$cfgfile"; exit 1)
14871
14872  case $xsi_shell in
14873  yes)
14874    cat << \_LT_EOF >> "$cfgfile"
14875# func_dirname file append nondir_replacement
14876# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14877# otherwise set result to NONDIR_REPLACEMENT.
14878func_dirname ()
14879{
14880  case ${1} in
14881    */*) func_dirname_result="${1%/*}${2}" ;;
14882    *  ) func_dirname_result="${3}" ;;
14883  esac
14884}
14885
14886# func_basename file
14887func_basename ()
14888{
14889  func_basename_result="${1##*/}"
14890}
14891
14892# func_dirname_and_basename file append nondir_replacement
14893# perform func_basename and func_dirname in a single function
14894# call:
14895#   dirname:  Compute the dirname of FILE.  If nonempty,
14896#             add APPEND to the result, otherwise set result
14897#             to NONDIR_REPLACEMENT.
14898#             value returned in "$func_dirname_result"
14899#   basename: Compute filename of FILE.
14900#             value retuned in "$func_basename_result"
14901# Implementation must be kept synchronized with func_dirname
14902# and func_basename. For efficiency, we do not delegate to
14903# those functions but instead duplicate the functionality here.
14904func_dirname_and_basename ()
14905{
14906  case ${1} in
14907    */*) func_dirname_result="${1%/*}${2}" ;;
14908    *  ) func_dirname_result="${3}" ;;
14909  esac
14910  func_basename_result="${1##*/}"
14911}
14912
14913# func_stripname prefix suffix name
14914# strip PREFIX and SUFFIX off of NAME.
14915# PREFIX and SUFFIX must not contain globbing or regex special
14916# characters, hashes, percent signs, but SUFFIX may contain a leading
14917# dot (in which case that matches only a dot).
14918func_stripname ()
14919{
14920  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14921  # positional parameters, so assign one to ordinary parameter first.
14922  func_stripname_result=${3}
14923  func_stripname_result=${func_stripname_result#"${1}"}
14924  func_stripname_result=${func_stripname_result%"${2}"}
14925}
14926
14927# func_opt_split
14928func_opt_split ()
14929{
14930  func_opt_split_opt=${1%%=*}
14931  func_opt_split_arg=${1#*=}
14932}
14933
14934# func_lo2o object
14935func_lo2o ()
14936{
14937  case ${1} in
14938    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14939    *)    func_lo2o_result=${1} ;;
14940  esac
14941}
14942_LT_EOF
14943    ;;
14944  *) # Bourne compatible functions.
14945    cat << \_LT_EOF >> "$cfgfile"
14946# func_dirname file append nondir_replacement
14947# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14948# otherwise set result to NONDIR_REPLACEMENT.
14949func_dirname ()
14950{
14951  # Extract subdirectory from the argument.
14952  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14953  if test "X$func_dirname_result" = "X${1}"; then
14954    func_dirname_result="${3}"
14955  else
14956    func_dirname_result="$func_dirname_result${2}"
14957  fi
14958}
14959
14960# func_basename file
14961func_basename ()
14962{
14963  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14964}
14965
14966# func_dirname_and_basename file append nondir_replacement
14967# perform func_basename and func_dirname in a single function
14968# call:
14969#   dirname:  Compute the dirname of FILE.  If nonempty,
14970#             add APPEND to the result, otherwise set result
14971#             to NONDIR_REPLACEMENT.
14972#             value returned in "$func_dirname_result"
14973#   basename: Compute filename of FILE.
14974#             value retuned in "$func_basename_result"
14975# Implementation must be kept synchronized with func_dirname
14976# and func_basename. For efficiency, we do not delegate to
14977# those functions but instead duplicate the functionality here.
14978func_dirname_and_basename ()
14979{
14980  # Extract subdirectory from the argument.
14981  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14982  if test "X$func_dirname_result" = "X${1}"; then
14983    func_dirname_result="${3}"
14984  else
14985    func_dirname_result="$func_dirname_result${2}"
14986  fi
14987  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14988}
14989
14990# func_stripname prefix suffix name
14991# strip PREFIX and SUFFIX off of NAME.
14992# PREFIX and SUFFIX must not contain globbing or regex special
14993# characters, hashes, percent signs, but SUFFIX may contain a leading
14994# dot (in which case that matches only a dot).
14995# func_strip_suffix prefix name
14996func_stripname ()
14997{
14998  case ${2} in
14999    .*) func_stripname_result=`$ECHO "X${3}" \
15000           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15001    *)  func_stripname_result=`$ECHO "X${3}" \
15002           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15003  esac
15004}
15005
15006# sed scripts:
15007my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15008my_sed_long_arg='1s/^-[^=]*=//'
15009
15010# func_opt_split
15011func_opt_split ()
15012{
15013  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15014  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15015}
15016
15017# func_lo2o object
15018func_lo2o ()
15019{
15020  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15021}
15022_LT_EOF
15023esac
15024
15025case $lt_shell_append in
15026  yes)
15027    cat << \_LT_EOF >> "$cfgfile"
15028
15029# func_append var value
15030# Append VALUE to the end of shell variable VAR.
15031func_append ()
15032{
15033  eval "$1+=\$2"
15034}
15035_LT_EOF
15036    ;;
15037  *)
15038    cat << \_LT_EOF >> "$cfgfile"
15039
15040# func_append var value
15041# Append VALUE to the end of shell variable VAR.
15042func_append ()
15043{
15044  eval "$1=\$$1\$2"
15045}
15046_LT_EOF
15047    ;;
15048  esac
15049
15050
15051  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15052    || (rm -f "$cfgfile"; exit 1)
15053
15054  mv -f "$cfgfile" "$ofile" ||
15055    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15056  chmod +x "$ofile"
15057
15058 ;;
15059
15060  esac
15061done # for ac_tag
15062
15063
15064{ (exit 0); exit 0; }
15065_ACEOF
15066chmod +x $CONFIG_STATUS
15067ac_clean_files=$ac_clean_files_save
15068
15069
15070# configure is writing to config.log, and then calls config.status.
15071# config.status does its own redirection, appending to config.log.
15072# Unfortunately, on DOS this fails, as config.log is still kept open
15073# by configure, so config.status won't be able to write to it; its
15074# output is simply discarded.  So we exec the FD to /dev/null,
15075# effectively closing config.log, so it can be properly (re)opened and
15076# appended to by config.status.  When coming back to configure, we
15077# need to make the FD available again.
15078if test "$no_create" != yes; then
15079  ac_cs_success=:
15080  ac_config_status_args=
15081  test "$silent" = yes &&
15082    ac_config_status_args="$ac_config_status_args --quiet"
15083  exec 5>/dev/null
15084  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15085  exec 5>>config.log
15086  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15087  # would make configure fail if this is the last instruction.
15088  $ac_cs_success || { (exit 1); exit 1; }
15089fi
15090
15091